@adyen/adyen-platform-experience-web 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adyen-platform-experience-web.css +1 -0
- package/dist/angle-right-B9TwrrKy.cjs +2 -0
- package/dist/{angle-right-1899f206.cjs.map → angle-right-B9TwrrKy.cjs.map} +1 -1
- package/dist/checkmark-circle-fill-061Mhd-a.cjs +2 -0
- package/dist/{checkmark-circle-fill-edd7d360.cjs.map → checkmark-circle-fill-061Mhd-a.cjs.map} +1 -1
- package/dist/checkmark-fAQym7H_.cjs +2 -0
- package/dist/{checkmark-9399af30.cjs.map → checkmark-fAQym7H_.cjs.map} +1 -1
- package/dist/checkmark-square-fill-1aNDqK2E.cjs +2 -0
- package/dist/{checkmark-square-fill-4f33ffa1.cjs.map → checkmark-square-fill-1aNDqK2E.cjs.map} +1 -1
- package/dist/chevron-down-FgsluyBm.cjs +2 -0
- package/dist/{chevron-down-2eec7c98.cjs.map → chevron-down-FgsluyBm.cjs.map} +1 -1
- package/dist/chevron-left-CjTZhNFk.cjs +2 -0
- package/dist/{chevron-left-20950420.cjs.map → chevron-left-CjTZhNFk.cjs.map} +1 -1
- package/dist/chevron-right-B13OLmlL.cjs +2 -0
- package/dist/{chevron-right-a975d4ef.cjs.map → chevron-right-B13OLmlL.cjs.map} +1 -1
- package/dist/chevron-up-ulfmWZTv.cjs +2 -0
- package/dist/{chevron-up-ad09fd0d.cjs.map → chevron-up-ulfmWZTv.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/copy-Dj92kOrj.cjs +2 -0
- package/dist/{copy-969cde48.cjs.map → copy-Dj92kOrj.cjs.map} +1 -1
- package/dist/cross-C1Q8Ul1O.cjs +2 -0
- package/dist/{cross-6133edca.cjs.map → cross-C1Q8Ul1O.cjs.map} +1 -1
- package/dist/cross-circle-fill-W0NrbuG5.cjs +2 -0
- package/dist/{cross-circle-fill-afd9ea6e.cjs.map → cross-circle-fill-W0NrbuG5.cjs.map} +1 -1
- package/dist/da-DK-UDr4zLEm.cjs +2 -0
- package/dist/da-DK-UDr4zLEm.cjs.map +1 -0
- package/dist/de-DE-CRXo3Lip.cjs +2 -0
- package/dist/de-DE-CRXo3Lip.cjs.map +1 -0
- package/dist/download-BhFibCDx.cjs +2 -0
- package/dist/{download-ffe5624f.cjs.map → download-BhFibCDx.cjs.map} +1 -1
- package/dist/es/components/external/BaseElement.js +17 -20
- package/dist/es/components/external/CapitalOffer/CapitalOfferElement.js +13 -14
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +53 -46
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/constants.js +2 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.js +43 -0
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +22 -22
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +57 -55
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/constants.js +4 -0
- package/dist/es/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.js +21 -19
- package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
- package/dist/es/components/external/CapitalOverview/CapitalOverviewElement.js +24 -20
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +83 -63
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +17 -17
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +17 -18
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +73 -71
- package/dist/es/components/external/CapitalOverview/components/GrantItem/constants.js +0 -1
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +15 -15
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +5 -5
- package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +26 -19
- package/dist/es/components/external/CapitalOverview/components/PreQualifiedIntro.js +12 -10
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +3 -3
- package/dist/es/components/external/PayoutDetails/PayoutDetails.js +12 -13
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +45 -40
- package/dist/es/components/external/PayoutDetails/components/constants.js +9 -8
- package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +9 -10
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +22 -22
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +8 -8
- package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +16 -17
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +33 -33
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +16 -16
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -16
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +16 -17
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +13 -14
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDetailsDataContainer.js +3 -3
- package/dist/es/components/external/TransactionDetails/components/details/TransactionStatusBox.js +12 -12
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +5 -5
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +17 -17
- package/dist/es/components/external/TransactionDetails/context/details/context.js +27 -29
- package/dist/es/components/external/TransactionDetails/context/refund/context.js +20 -18
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextAmount.js +2 -0
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +1 -2
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +27 -27
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +21 -21
- package/dist/es/components/external/TransactionDetails/hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js +25 -25
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +14 -15
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +5 -5
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +14 -16
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +12 -12
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +6 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +34 -34
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +42 -42
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +12 -12
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +11 -11
- package/dist/es/components/external/TransactionsOverview/components/utils.js +4 -4
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +14 -14
- package/dist/es/components/external/UIElement/UIElement.js +6 -7
- package/dist/es/components/internal/Accordion/Accordion.js +1 -1
- package/dist/es/components/internal/Alert/Alert.js +8 -8
- package/dist/es/components/internal/Alert/AlertIcon.js +1 -1
- package/dist/es/components/internal/AnchorButton/AnchorButton.js +22 -0
- package/dist/es/components/internal/BaseButton/BaseButton.js +19 -18
- package/dist/es/components/internal/BaseList/BaseList.js +1 -1
- package/dist/es/components/internal/Button/Button.js +20 -55
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +1 -1
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +1 -1
- package/dist/es/components/internal/Button/DownloadButton/useDownload.js +7 -7
- package/dist/es/components/internal/Button/hooks/useButton.js +40 -13
- package/dist/es/components/internal/Calendar/Calendar.js +1 -1
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +259 -295
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +14 -14
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -15
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +1 -2
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +92 -100
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +180 -194
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +18 -18
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +5 -5
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +8 -8
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +11 -11
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +5 -5
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +1 -1
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +22 -26
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +5 -5
- package/dist/es/components/internal/Calendar/calendar/utils.js +19 -20
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +1 -1
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +5 -5
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +16 -17
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +26 -27
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +19 -21
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +9 -9
- package/dist/es/components/internal/CapitalHeader/CapitalHeader.js +16 -4
- package/dist/es/components/internal/CapitalHeader/constants.js +7 -0
- package/dist/es/components/internal/CapitalHeader/helpers.js +34 -0
- package/dist/es/components/internal/CapitalSlider/CapitalSlider.js +5 -5
- package/dist/es/components/internal/Card/Card.js +20 -20
- package/dist/es/components/internal/CopyText/CopyText.js +11 -11
- package/dist/es/components/internal/DataGrid/DataGrid.js +5 -5
- package/dist/es/components/internal/DataGrid/DataGridCell.js +2 -2
- package/dist/es/components/internal/DataGrid/components/Icon.js +3 -3
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +4 -4
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +9 -9
- package/dist/es/components/internal/DataGrid/components/TableCells.js +7 -7
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +1 -2
- package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +18 -18
- package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +8 -8
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +5 -5
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +1 -1
- package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +9 -9
- package/dist/es/components/internal/DatePicker/DatePicker.js +13 -13
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +8 -8
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +25 -25
- package/dist/es/components/internal/Divider/Divider.js +1 -1
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +7 -7
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +60 -56
- package/dist/es/components/internal/ExpandableCard/constants.js +11 -9
- package/dist/es/components/internal/FilterBar/FilterBar.js +19 -19
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +14 -14
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +23 -23
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +16 -16
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +14 -14
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +5 -8
- package/dist/es/components/internal/FormFields/InputBase.js +23 -23
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +20 -20
- package/dist/es/components/internal/FormFields/Select/Select.js +22 -24
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +36 -36
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +8 -8
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +7 -7
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +8 -10
- package/dist/es/components/internal/Header/Header.js +24 -16
- package/dist/es/components/internal/Icon/Icon.js +5 -5
- package/dist/es/components/internal/Img/Img.js +1 -1
- package/dist/es/components/internal/InfoBox/InfoBox.js +5 -5
- package/dist/es/components/internal/Modal/Modal.js +8 -8
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +1 -1
- package/dist/es/components/internal/Pagination/Pagination.js +3 -3
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +5 -5
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +15 -15
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +7 -7
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +39 -46
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +6 -8
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +6 -6
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +28 -31
- package/dist/es/components/internal/Popover/Popover.js +12 -14
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +2 -2
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +1 -1
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +1 -1
- package/dist/es/components/internal/Popover/utils/utils.js +8 -8
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +15 -15
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +5 -5
- package/dist/es/components/internal/SVGIcons/Checkmark.js +4 -4
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +7 -7
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +5 -5
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +6 -6
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +2 -2
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +4 -4
- package/dist/es/components/internal/SVGIcons/Download.js +3 -3
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +5 -5
- package/dist/es/components/internal/SVGIcons/Warning.js +3 -3
- package/dist/es/components/internal/Slider/Slider.js +1 -1
- package/dist/es/components/internal/Slider/calculateProgress.js +2 -4
- package/dist/es/components/internal/Spinner/Spinner.js +3 -3
- package/dist/es/components/internal/StructuredList/StructuredList.js +1 -1
- package/dist/es/components/internal/Tabs/Tabs.js +12 -13
- package/dist/es/components/internal/Tag/Tag.js +1 -1
- package/dist/es/components/internal/Tooltip/Tooltip.js +10 -10
- package/dist/es/components/internal/Translation/Translation.js +33 -0
- package/dist/es/components/internal/Typography/Typography.js +6 -6
- package/dist/es/components/utils/capital/getCapitalErrorMessage.js +8 -6
- package/dist/es/components/utils/getCommonErrorCode.js +1 -2
- package/dist/es/components/utils/getErrorMessage.js +4 -6
- package/dist/es/constants/dateFormats.js +3 -3
- package/dist/es/core/ConfigContext/context.js +40 -0
- package/dist/es/core/{Auth → ConfigContext}/session/AuthSession.js +38 -38
- package/dist/es/core/{Auth → ConfigContext}/session/AuthSessionSpecification.js +24 -26
- package/dist/es/core/ConfigContext/session/SetupContext.js +75 -0
- package/dist/es/core/{Auth → ConfigContext}/session/constants.js +4 -4
- package/dist/es/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.js +4 -4
- package/dist/es/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.js +3 -3
- package/dist/es/core/ConfigContext/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +10 -0
- package/dist/es/core/ConfigContext/session/utils/sessionReady.js +25 -0
- package/dist/es/core/Context/CoreProvider.js +10 -10
- package/dist/es/core/Context/useCoreContext.js +2 -2
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +10 -11
- package/dist/es/core/Http/http.js +1 -0
- package/dist/es/core/Http/utils.js +2 -2
- package/dist/es/core/Localization/Localization.js +54 -60
- package/dist/es/core/Localization/constants/currency-codes.js +2 -2
- package/dist/es/core/Localization/constants/currency-decimals.js +2 -2
- package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
- package/dist/es/core/Localization/datetime/restamper/restamper.js +15 -17
- package/dist/es/core/Localization/utils.js +52 -45
- package/dist/es/core/core.js +24 -25
- package/dist/es/core/utils.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +100 -115
- package/dist/es/external/preact/dist/preact.module.js +221 -281
- package/dist/es/external/preact/hooks/dist/hooks.module.js +63 -67
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -11
- package/dist/es/hooks/element/useDetachedRender.js +12 -12
- package/dist/es/hooks/element/useFocusCursor.js +11 -11
- package/dist/es/hooks/element/useFocusTrap.js +9 -9
- package/dist/es/hooks/element/usePopoverPositioner.js +14 -16
- package/dist/es/hooks/element/useUniqueIdentifier.js +12 -12
- package/dist/es/hooks/useBalanceAccountSelection.js +11 -11
- package/dist/es/hooks/useBalanceAccounts.js +19 -19
- package/dist/es/hooks/useBooleanState.js +4 -4
- package/dist/es/hooks/useCommitAction/useCommitAction.js +9 -9
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +16 -16
- package/dist/es/hooks/useFetch.js +23 -25
- package/dist/es/hooks/useFreezePeriod.js +6 -6
- package/dist/es/hooks/useMounted.js +6 -6
- package/dist/es/hooks/useMutation/useMutation.js +2 -2
- package/dist/es/hooks/useReactiveState/useReactiveState.js +24 -26
- package/dist/es/hooks/useReflex.js +6 -6
- package/dist/es/hooks/useTableColumns.js +7 -7
- package/dist/es/hooks/useTimezoneAwareDateFormatting.js +3 -3
- package/dist/es/images/generic-use-first-touch.svg.js +2 -2
- package/dist/es/images/no-data-female.svg.js +2 -2
- package/dist/es/images/no-results.svg.js +2 -2
- package/dist/es/index.js +33 -33
- package/dist/es/primitives/async/abortable/main.js +10 -12
- package/dist/es/primitives/auxiliary/errorContainer/main.js +7 -7
- package/dist/es/primitives/context/session/SessionContext.js +4 -7
- package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
- package/dist/es/primitives/context/session/internal/deadline.js +22 -28
- package/dist/es/primitives/context/session/internal/refresher.js +10 -14
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +24 -32
- package/dist/es/primitives/reactive/eventEmitter/main.js +1 -2
- package/dist/es/primitives/reactive/reflex/helpers.js +1 -2
- package/dist/es/primitives/reactive/reflex/main.js +24 -27
- package/dist/es/primitives/reactive/reflex/register.js +27 -29
- package/dist/es/primitives/reactive/watchlist/main.js +22 -25
- package/dist/es/primitives/time/clock/main.js +9 -9
- package/dist/es/primitives/time/interval/main.js +8 -8
- package/dist/es/primitives/time/today/main.js +11 -13
- package/dist/es/style/index.scss.js +1 -4
- package/dist/es/translations/da-DK.json.js +396 -2
- package/dist/es/translations/de-DE.json.js +396 -2
- package/dist/es/translations/en-US.json.js +396 -2
- package/dist/es/translations/es-ES.json.js +396 -2
- package/dist/es/translations/fi-FI.json.js +396 -2
- package/dist/es/translations/fr-FR.json.js +396 -2
- package/dist/es/translations/it-IT.json.js +396 -2
- package/dist/es/translations/nl-NL.json.js +396 -2
- package/dist/es/translations/no-NO.json.js +396 -2
- package/dist/es/translations/pt-BR.json.js +396 -2
- package/dist/es/translations/sv-SE.json.js +396 -2
- package/dist/es/utils/abort/internals.js +1 -2
- package/dist/es/utils/abort/main.js +21 -24
- package/dist/es/utils/collection/main.js +14 -14
- package/dist/es/utils/common.js +9 -5
- package/dist/es/utils/datetime/main.js +3 -3
- package/dist/es/utils/preact/className.js +2 -2
- package/dist/es/utils/preact/memoComparator/main.js +1 -2
- package/dist/es/utils/random/uniqueId.js +5 -5
- package/dist/es/utils/random/uuid.js +1 -1
- package/dist/es/utils/struct/main.js +8 -8
- package/dist/es/utils/value/is.js +9 -9
- package/dist/es-ES-DKE_miHr.cjs +2 -0
- package/dist/es-ES-DKE_miHr.cjs.map +1 -0
- package/dist/fi-FI-MQMNSR--.cjs +2 -0
- package/dist/fi-FI-MQMNSR--.cjs.map +1 -0
- package/dist/filter-CeIqJaST.cjs +2 -0
- package/dist/{filter-9a3e4c7a.cjs.map → filter-CeIqJaST.cjs.map} +1 -1
- package/dist/fr-FR-Bq797--M.cjs +2 -0
- package/dist/fr-FR-Bq797--M.cjs.map +1 -0
- package/dist/index-Ct9UXGI3.cjs +12 -0
- package/dist/index-Ct9UXGI3.cjs.map +1 -0
- package/dist/info-filled-DwtOooEl.cjs +2 -0
- package/dist/{info-filled-7e7648a0.cjs.map → info-filled-DwtOooEl.cjs.map} +1 -1
- package/dist/it-IT-P4aG92g4.cjs +2 -0
- package/dist/it-IT-P4aG92g4.cjs.map +1 -0
- package/dist/minus-circle-outline-DAHjwW5H.cjs +2 -0
- package/dist/{minus-circle-outline-0f20287b.cjs.map → minus-circle-outline-DAHjwW5H.cjs.map} +1 -1
- package/dist/nl-NL-CkNmbOjk.cjs +2 -0
- package/dist/nl-NL-CkNmbOjk.cjs.map +1 -0
- package/dist/no-NO-Cb48UzO1.cjs +2 -0
- package/dist/no-NO-Cb48UzO1.cjs.map +1 -0
- package/dist/plus-circle-outline-2ZyFInVA.cjs +2 -0
- package/dist/{plus-circle-outline-58879e3c.cjs.map → plus-circle-outline-2ZyFInVA.cjs.map} +1 -1
- package/dist/pt-BR-7QdWAx4z.cjs +2 -0
- package/dist/pt-BR-7QdWAx4z.cjs.map +1 -0
- package/dist/square-DcJgSNdY.cjs +2 -0
- package/dist/{square-a26e52f2.cjs.map → square-DcJgSNdY.cjs.map} +1 -1
- package/dist/sv-SE-DDU8uUdf.cjs +2 -0
- package/dist/sv-SE-DDU8uUdf.cjs.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOffer/constants.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.d.ts +3 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/constants.d.ts +2 -0
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts +2 -1
- package/dist/types/components/external/CapitalOffer/components/utils/CapitalErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/CapitalOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantDetails/GrantDetails.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts +0 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts +3 -3
- package/dist/types/components/external/CapitalOverview/components/PreQualified/PreQualified.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts +3 -3
- package/dist/types/components/external/CapitalOverview/components/PreQualifiedIntro.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/types.d.ts +1 -1
- package/dist/types/components/external/CapitalOverview/types.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +1 -0
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts +1 -0
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/refund/context.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.d.ts +1 -0
- package/dist/types/components/external/TransactionDetails/hooks/useTransaction/useTransaction.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/internal/AnchorButton/AnchorButton.d.ts +7 -0
- package/dist/types/components/internal/AnchorButton/AnchorButton.d.ts.map +1 -0
- package/dist/types/components/internal/BaseButton/BaseButton.d.ts +1 -1
- package/dist/types/components/internal/BaseButton/BaseButton.d.ts.map +1 -1
- package/dist/types/components/internal/BaseButton/types.d.ts +2 -2
- package/dist/types/components/internal/BaseButton/types.d.ts.map +1 -1
- package/dist/types/components/internal/Button/Button.d.ts +4 -4
- package/dist/types/components/internal/Button/Button.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +4 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/Button/hooks/useButton.d.ts +18 -1
- package/dist/types/components/internal/Button/hooks/useButton.d.ts.map +1 -1
- package/dist/types/components/internal/Button/types.d.ts +9 -3
- package/dist/types/components/internal/Button/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.d.ts +1 -1
- package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts +1 -0
- package/dist/types/components/internal/CapitalHeader/CapitalHeader.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts +9 -0
- package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -0
- package/dist/types/components/internal/CapitalHeader/helpers.d.ts +5 -0
- package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -0
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/constants.d.ts +5 -3
- package/dist/types/components/internal/ExpandableCard/constants.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/types.d.ts +1 -0
- package/dist/types/components/internal/ExpandableCard/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/components/FilterButton/FilterButton.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/components/FilterButton/FilterButton.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/components/FilterButton/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/components/FilterButton/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +9 -9
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/Header/Header.d.ts +6 -0
- package/dist/types/components/internal/Header/Header.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +2 -2
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +2 -2
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/internal/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/internal/Translation/Translation.d.ts +5 -0
- package/dist/types/components/internal/Translation/Translation.d.ts.map +1 -0
- package/dist/types/components/internal/Translation/index.d.ts +3 -0
- package/dist/types/components/internal/Translation/index.d.ts.map +1 -0
- package/dist/types/components/internal/Translation/types.d.ts +11 -0
- package/dist/types/components/internal/Translation/types.d.ts.map +1 -0
- package/dist/types/components/utils/capital/getCapitalErrorMessage.d.ts.map +1 -1
- package/dist/types/core/{Auth → ConfigContext}/context.d.ts +57 -52
- package/dist/types/core/{Auth → ConfigContext}/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/index.d.ts.map +1 -0
- package/dist/types/core/{Auth → ConfigContext}/session/AuthSession.d.ts +106 -96
- package/dist/types/core/{Auth → ConfigContext}/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSessionSpecification.d.ts.map +1 -0
- package/dist/types/core/{Auth/session/AuthSetupContext.d.ts → ConfigContext/session/SetupContext.d.ts} +58 -52
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/constants.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/index.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/utils/sessionAwareComponentAvailability/types.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/session/utils/sessionReady.d.ts.map +1 -0
- package/dist/types/core/{Auth → ConfigContext}/types.d.ts +8 -6
- package/dist/types/core/ConfigContext/types.d.ts.map +1 -0
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +1 -1
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +10 -2
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/models/index.d.ts +1 -0
- package/dist/types/types/api/models/index.d.ts.map +1 -1
- package/dist/types/types/api/models/setup.d.ts +3 -0
- package/dist/types/types/api/models/setup.d.ts.map +1 -0
- package/dist/types/types/api/resources/PayoutsResource.d.ts +1 -0
- package/dist/types/types/api/resources/PayoutsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/ReportsResource.d.ts +7 -0
- package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/SetupResource.d.ts +18 -6
- package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/TransactionsResource.d.ts +48 -47
- package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
- package/dist/types/utils/common.d.ts +2 -1
- package/dist/types/utils/common.d.ts.map +1 -1
- package/dist/types/utils/preact/fixedForwardRef.d.ts +2 -2
- package/dist/types/utils/preact/fixedForwardRef.d.ts.map +1 -1
- package/dist/types/utils/types.d.ts +5 -0
- package/dist/types/utils/types.d.ts.map +1 -1
- package/dist/warning-DKdIv71G.cjs +2 -0
- package/dist/{warning-4d681371.cjs.map → warning-DKdIv71G.cjs.map} +1 -1
- package/dist/warning-filled-BUBUS_3c.cjs +2 -0
- package/dist/{warning-filled-ed9b80d5.cjs.map → warning-filled-BUBUS_3c.cjs.map} +1 -1
- package/package.json +12 -10
- package/dist/angle-right-1899f206.cjs +0 -2
- package/dist/checkmark-9399af30.cjs +0 -2
- package/dist/checkmark-circle-fill-edd7d360.cjs +0 -2
- package/dist/checkmark-square-fill-4f33ffa1.cjs +0 -2
- package/dist/chevron-down-2eec7c98.cjs +0 -2
- package/dist/chevron-left-20950420.cjs +0 -2
- package/dist/chevron-right-a975d4ef.cjs +0 -2
- package/dist/chevron-up-ad09fd0d.cjs +0 -2
- package/dist/copy-969cde48.cjs +0 -2
- package/dist/cross-6133edca.cjs +0 -2
- package/dist/cross-circle-fill-afd9ea6e.cjs +0 -2
- package/dist/da-DK-a6a8435e.cjs +0 -2
- package/dist/da-DK-a6a8435e.cjs.map +0 -1
- package/dist/de-DE-d692ac19.cjs +0 -2
- package/dist/de-DE-d692ac19.cjs.map +0 -1
- package/dist/download-ffe5624f.cjs +0 -2
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.scss.js +0 -4
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.scss.js +0 -4
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.scss.js +0 -4
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.scss.js +0 -4
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.scss.js +0 -4
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.scss.js +0 -4
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.scss.js +0 -4
- package/dist/es/components/external/PayoutDetails/components/PayoutData.scss.js +0 -4
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.scss.js +0 -4
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.scss.js +0 -4
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +0 -4
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +0 -4
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.scss.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +0 -4
- package/dist/es/components/external/UIElement/UIElement.scss.js +0 -4
- package/dist/es/components/internal/Accordion/Accordion.scss.js +0 -4
- package/dist/es/components/internal/Alert/Alert.scss.js +0 -4
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +0 -4
- package/dist/es/components/internal/BaseList/BaseList.scss.js +0 -4
- package/dist/es/components/internal/Button/Button.scss.js +0 -4
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +0 -4
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +0 -4
- package/dist/es/components/internal/Calendar/Calendar.scss.js +0 -4
- package/dist/es/components/internal/CapitalSlider/CapitalSlider.scss.js +0 -4
- package/dist/es/components/internal/Card/Card.scss.js +0 -4
- package/dist/es/components/internal/CopyText/CopyText.scss.js +0 -4
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +0 -4
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.scss.js +0 -4
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +0 -4
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +0 -4
- package/dist/es/components/internal/Divider/Divider.scss.js +0 -4
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +0 -4
- package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.js +0 -34
- package/dist/es/components/internal/ExpandableContainer/ExpandableContainer.scss.js +0 -4
- package/dist/es/components/internal/ExpandableContainer/constants.js +0 -8
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.scss.js +0 -4
- package/dist/es/components/internal/FormFields/FormFields.scss.js +0 -4
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.scss.js +0 -4
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +0 -4
- package/dist/es/components/internal/Header/Header.scss.js +0 -4
- package/dist/es/components/internal/Icon/Icon.scss.js +0 -4
- package/dist/es/components/internal/Img/Img.scss.js +0 -4
- package/dist/es/components/internal/InfoBox/InfoBox.scss.js +0 -4
- package/dist/es/components/internal/Modal/Modal.scss.js +0 -4
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.scss.js +0 -4
- package/dist/es/components/internal/Pagination/Pagination.scss.js +0 -4
- package/dist/es/components/internal/Popover/Popover.scss.js +0 -4
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +0 -4
- package/dist/es/components/internal/ProgressBar/ProgressBar.scss.js +0 -4
- package/dist/es/components/internal/Slider/Slider.scss.js +0 -4
- package/dist/es/components/internal/Spinner/Spinner.scss.js +0 -4
- package/dist/es/components/internal/StructuredList/StructuredList.scss.js +0 -4
- package/dist/es/components/internal/Tabs/Tabs.scss.js +0 -4
- package/dist/es/components/internal/Tag/Tag.scss.js +0 -4
- package/dist/es/components/internal/Tooltip/Tooltip.scss.js +0 -4
- package/dist/es/components/internal/Typography/Typography.scss.js +0 -4
- package/dist/es/components/shared.scss.js +0 -4
- package/dist/es/core/Auth/context.js +0 -39
- package/dist/es/core/Auth/session/AuthSetupContext.js +0 -72
- package/dist/es/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +0 -10
- package/dist/es/core/Auth/session/utils/sessionReady.js +0 -23
- package/dist/es-ES-143780e6.cjs +0 -2
- package/dist/es-ES-143780e6.cjs.map +0 -1
- package/dist/fi-FI-99b94b3f.cjs +0 -2
- package/dist/fi-FI-99b94b3f.cjs.map +0 -1
- package/dist/filter-9a3e4c7a.cjs +0 -2
- package/dist/fr-FR-e0317359.cjs +0 -2
- package/dist/fr-FR-e0317359.cjs.map +0 -1
- package/dist/index-17716b7b.cjs +0 -12
- package/dist/index-17716b7b.cjs.map +0 -1
- package/dist/info-filled-7e7648a0.cjs +0 -2
- package/dist/it-IT-1dc05e46.cjs +0 -2
- package/dist/it-IT-1dc05e46.cjs.map +0 -1
- package/dist/minus-circle-outline-0f20287b.cjs +0 -2
- package/dist/nl-NL-40171335.cjs +0 -2
- package/dist/nl-NL-40171335.cjs.map +0 -1
- package/dist/no-NO-d689e9ff.cjs +0 -2
- package/dist/no-NO-d689e9ff.cjs.map +0 -1
- package/dist/plus-circle-outline-58879e3c.cjs +0 -2
- package/dist/pt-BR-4b1fd7f1.cjs +0 -2
- package/dist/pt-BR-4b1fd7f1.cjs.map +0 -1
- package/dist/square-a26e52f2.cjs +0 -2
- package/dist/style.css +0 -1
- package/dist/sv-SE-2f0e50d2.cjs +0 -2
- package/dist/sv-SE-2f0e50d2.cjs.map +0 -1
- package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts +0 -5
- package/dist/types/components/internal/ExpandableContainer/ExpandableContainer.d.ts.map +0 -1
- package/dist/types/components/internal/ExpandableContainer/constants.d.ts +0 -6
- package/dist/types/components/internal/ExpandableContainer/constants.d.ts.map +0 -1
- package/dist/types/components/internal/ExpandableContainer/types.d.ts +0 -7
- package/dist/types/components/internal/ExpandableContainer/types.d.ts.map +0 -1
- package/dist/types/core/Auth/index.d.ts.map +0 -1
- package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts.map +0 -1
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +0 -1
- package/dist/types/core/Auth/session/constants.d.ts.map +0 -1
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts.map +0 -1
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts.map +0 -1
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/index.d.ts.map +0 -1
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts.map +0 -1
- package/dist/types/core/Auth/session/utils/sessionAwareComponentAvailability/types.d.ts.map +0 -1
- package/dist/types/core/Auth/session/utils/sessionReady.d.ts.map +0 -1
- package/dist/types/core/Auth/types.d.ts.map +0 -1
- package/dist/warning-4d681371.cjs +0 -2
- package/dist/warning-filled-ed9b80d5.cjs +0 -2
- /package/dist/types/core/{Auth → ConfigContext}/index.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/AuthSessionSpecification.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/constants.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/index.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionAwareComponentAvailability/types.d.ts +0 -0
- /package/dist/types/core/{Auth → ConfigContext}/session/utils/sessionReady.d.ts +0 -0
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
class
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var s = (o, e, t) => e in o ? n(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var r = (o, e, t) => s(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as p } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
|
+
import c from "./components/ReportsOverviewContainer/ReportsOverviewContainer.js";
|
|
6
|
+
import { UIElement as i } from "../UIElement/UIElement.js";
|
|
7
|
+
class m extends i {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
super(t);
|
|
10
|
+
r(this, "componentToRender", () => /* @__PURE__ */ p(
|
|
11
|
+
c,
|
|
12
12
|
{
|
|
13
13
|
...this.props,
|
|
14
14
|
balanceAccountId: this.props.balanceAccountId,
|
|
15
|
-
ref: (
|
|
16
|
-
this.componentRef =
|
|
15
|
+
ref: (t) => {
|
|
16
|
+
this.componentRef = t;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
));
|
|
20
20
|
this.componentToRender = this.componentToRender.bind(this);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
const h = r;
|
|
23
|
+
r(m, "type", "reports");
|
|
25
24
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
m as ReportsElement,
|
|
26
|
+
m as default
|
|
28
27
|
};
|
package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useCallback as
|
|
1
|
+
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { useCallback as U, useMemo as f, useEffect as w } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import M from "../../../../../hooks/useBalanceAccountSelection.js";
|
|
4
4
|
import x from "../../../../../hooks/useDefaultOverviewFilterParams.js";
|
|
5
5
|
import q from "../../../../internal/FilterBar/filters/DateFilter/DateFilter.js";
|
|
6
6
|
import { LIMIT_OPTIONS as K, DEFAULT_PAGE_LIMIT as j } from "../../../../internal/Pagination/constants.js";
|
|
7
7
|
import { FilterParam as o } from "../../../../types.js";
|
|
8
8
|
import { ReportsTable as k } from "../ReportsTable/ReportsTable.js";
|
|
9
|
-
import { BASE_CLASS as
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { isFunction as
|
|
16
|
-
import { Header as
|
|
9
|
+
import { BASE_CLASS as z, EARLIEST_PAYOUT_SINCE_DATE as B } from "./constants.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import G from "../../../../internal/Pagination/hooks/useCursorPaginatedRecords.js";
|
|
12
|
+
import { useFilterBarState as H, FilterBarMobileSwitch as Y, FilterBar as J } from "../../../../internal/FilterBar/FilterBar.js";
|
|
13
|
+
import Q from "../../../../internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js";
|
|
14
|
+
import { useConfigContext as V } from "../../../../../core/ConfigContext/context.js";
|
|
15
|
+
import { isFunction as W } from "../../../../../utils/value/is.js";
|
|
16
|
+
import { Header as X } from "../../../../internal/Header/Header.js";
|
|
17
17
|
const Er = ({
|
|
18
18
|
onFiltersChanged: i,
|
|
19
19
|
balanceAccounts: a,
|
|
@@ -23,60 +23,60 @@ const Er = ({
|
|
|
23
23
|
onContactSupport: E,
|
|
24
24
|
hideTitle: T
|
|
25
25
|
}) => {
|
|
26
|
-
const { getReports: s } =
|
|
27
|
-
async (
|
|
26
|
+
const { getReports: s } = V().endpoints, { activeBalanceAccount: r, balanceAccountSelectionOptions: S, onBalanceAccountSelection: F } = M(a), { defaultParams: t, nowTimestamp: C, refreshNowTimestamp: n } = x("reports", r), I = U(
|
|
27
|
+
async (m, g) => s({ signal: g, errorLevel: "error" }, {
|
|
28
28
|
query: {
|
|
29
|
-
...
|
|
29
|
+
...m,
|
|
30
30
|
type: "payout",
|
|
31
|
-
createdSince:
|
|
32
|
-
createdUntil:
|
|
31
|
+
createdSince: m[o.CREATED_SINCE] ?? t.current.defaultFilterParams[o.CREATED_SINCE],
|
|
32
|
+
createdUntil: m[o.CREATED_UNTIL] ?? t.current.defaultFilterParams[o.CREATED_UNTIL],
|
|
33
33
|
balanceAccountId: (r == null ? void 0 : r.id) ?? ""
|
|
34
34
|
}
|
|
35
35
|
}),
|
|
36
|
-
[r == null ? void 0 : r.id,
|
|
37
|
-
), p = H(), _ = f(() =>
|
|
36
|
+
[r == null ? void 0 : r.id, t, s]
|
|
37
|
+
), p = H(), _ = f(() => W(i) ? i : void 0, [i]), P = f(() => l ? K : void 0, [l]), { canResetFilters: A, error: D, fetching: L, filters: d, limit: O, limitOptions: R, records: N, resetFilters: Z, updateFilters: h, updateLimit: b, ...y } = G({
|
|
38
38
|
fetchRecords: I,
|
|
39
39
|
dataField: "data",
|
|
40
|
-
filterParams:
|
|
40
|
+
filterParams: t.current.defaultFilterParams,
|
|
41
41
|
initialFiltersSameAsDefault: !0,
|
|
42
42
|
onFiltersChanged: _,
|
|
43
43
|
preferredLimit: u,
|
|
44
|
-
preferredLimitOptions:
|
|
44
|
+
preferredLimitOptions: P,
|
|
45
45
|
enabled: !!(r != null && r.id) && !!s
|
|
46
46
|
});
|
|
47
47
|
return w(() => {
|
|
48
|
-
|
|
49
|
-
}, [d,
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
48
|
+
n();
|
|
49
|
+
}, [d, n]), /* @__PURE__ */ e("div", { className: z, children: [
|
|
50
|
+
/* @__PURE__ */ e(X, { hideTitle: T, titleKey: "reportsTitle", subtitleKey: "reportsNotice", children: /* @__PURE__ */ e(Y, { ...p }) }),
|
|
51
|
+
/* @__PURE__ */ e(J, { ...p, children: [
|
|
52
|
+
/* @__PURE__ */ e(
|
|
53
|
+
Q,
|
|
54
54
|
{
|
|
55
55
|
activeBalanceAccount: r,
|
|
56
56
|
balanceAccountSelectionOptions: S,
|
|
57
57
|
onBalanceAccountSelection: F
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ e(
|
|
61
61
|
q,
|
|
62
62
|
{
|
|
63
|
-
canResetFilters:
|
|
64
|
-
defaultParams:
|
|
63
|
+
canResetFilters: A,
|
|
64
|
+
defaultParams: t,
|
|
65
65
|
filters: d,
|
|
66
66
|
nowTimestamp: C,
|
|
67
|
-
refreshNowTimestamp:
|
|
68
|
-
sinceDate:
|
|
67
|
+
refreshNowTimestamp: n,
|
|
68
|
+
sinceDate: B,
|
|
69
69
|
timezone: "UTC",
|
|
70
|
-
updateFilters:
|
|
70
|
+
updateFilters: h
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
73
|
] }),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
75
|
k,
|
|
76
76
|
{
|
|
77
77
|
balanceAccountId: r == null ? void 0 : r.id,
|
|
78
78
|
loading: L || c || !a || !r,
|
|
79
|
-
data:
|
|
79
|
+
data: N,
|
|
80
80
|
showPagination: !0,
|
|
81
81
|
limit: O,
|
|
82
82
|
limitOptions: R,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { useState as B, useMemo as n, useCallback as Y } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import M from "../../../../../core/Context/useCoreContext.js";
|
|
4
|
-
import P from "../../../../../hooks/useFreezePeriod.js";
|
|
4
|
+
import { useFreezePeriod as P } from "../../../../../hooks/useFreezePeriod.js";
|
|
5
5
|
import I from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
6
|
-
import x from "../../../../internal/Alert/Alert.js";
|
|
6
|
+
import { Alert as x } from "../../../../internal/Alert/Alert.js";
|
|
7
7
|
import { AlertTypeOption as V } from "../../../../internal/Alert/types.js";
|
|
8
8
|
import q from "../../../../internal/Button/DownloadButton/DownloadButton.js";
|
|
9
9
|
import { CellTextPosition as z } from "../../../../internal/DataGrid/types.js";
|
|
@@ -12,13 +12,13 @@ import U from "../../../../internal/SVGIcons/Warning.js";
|
|
|
12
12
|
import { TypographyVariant as a } from "../../../../internal/Typography/types.js";
|
|
13
13
|
import i from "../../../../internal/Typography/Typography.js";
|
|
14
14
|
import { getLabel as $ } from "../../../../utils/getLabel.js";
|
|
15
|
-
import { useResponsiveViewport as
|
|
15
|
+
import { useResponsiveViewport as g, mediaQueries as D } from "../../../../../hooks/useResponsiveViewport.js";
|
|
16
16
|
import { BASE_CLASS as j, DATE_TYPE_CLASS as H, DATE_TYPE_DATE_SECTION_CLASS as Q, DISABLED_BUTTONS_TIMEOUT as X } from "./constants.js";
|
|
17
|
-
|
|
17
|
+
/* empty css */
|
|
18
18
|
import E from "../../../../internal/DataGrid/DataGrid.js";
|
|
19
19
|
import { DATE_FORMAT_REPORTS as h } from "../../../../../constants/dateFormats.js";
|
|
20
20
|
import k from "../../../../internal/Pagination/Pagination.js";
|
|
21
|
-
import {
|
|
21
|
+
import { useConfigContext as J } from "../../../../../core/ConfigContext/context.js";
|
|
22
22
|
const K = ["createdAt", "dateAndReportType", "reportType", "reportFile"], Ee = ({
|
|
23
23
|
error: s,
|
|
24
24
|
loading: p,
|
|
@@ -28,7 +28,7 @@ const K = ["createdAt", "dateAndReportType", "reportType", "reportFile"], Ee = (
|
|
|
28
28
|
data: T,
|
|
29
29
|
...R
|
|
30
30
|
}) => {
|
|
31
|
-
const { i18n: t } = M(), { dateFormat:
|
|
31
|
+
const { i18n: t } = M(), { dateFormat: u } = I("UTC"), { freeze: S, frozen: C } = P(X), [A, d] = B(null), { refreshing: f } = J(), b = n(() => p || f, [p, f]), m = g(D.up.sm), c = g(D.down.xs), y = n(
|
|
32
32
|
() => ({
|
|
33
33
|
dateAndReportType: c,
|
|
34
34
|
createdAt: m,
|
|
@@ -52,10 +52,10 @@ const K = ["createdAt", "dateAndReportType", "reportType", "reportFile"], Ee = (
|
|
|
52
52
|
}, []), N = {
|
|
53
53
|
title: "noReportsFound",
|
|
54
54
|
message: ["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]
|
|
55
|
-
},
|
|
55
|
+
}, L = n(
|
|
56
56
|
() => () => /* @__PURE__ */ r(G, { error: s, errorMessage: "weCouldNotLoadYourReports", onContactSupport: l }),
|
|
57
57
|
[s, l]
|
|
58
|
-
),
|
|
58
|
+
), W = n(() => /* @__PURE__ */ r(U, {}), []), v = n(
|
|
59
59
|
() => (e) => {
|
|
60
60
|
const o = {};
|
|
61
61
|
switch (e == null ? void 0 : e.errorCode) {
|
|
@@ -72,22 +72,22 @@ const K = ["createdAt", "dateAndReportType", "reportType", "reportFile"], Ee = (
|
|
|
72
72
|
[s, l]
|
|
73
73
|
);
|
|
74
74
|
return p && d(null), /* @__PURE__ */ r("div", { className: j, children: [
|
|
75
|
-
|
|
75
|
+
A && /* @__PURE__ */ r(x, { onClose: O, type: V.WARNING, className: "adyen-pe-reports-table-alert", ...A }),
|
|
76
76
|
/* @__PURE__ */ r(
|
|
77
77
|
E,
|
|
78
78
|
{
|
|
79
|
-
errorDisplay:
|
|
79
|
+
errorDisplay: L,
|
|
80
80
|
error: s,
|
|
81
81
|
columns: F,
|
|
82
82
|
data: T,
|
|
83
|
-
loading:
|
|
83
|
+
loading: b,
|
|
84
84
|
outline: !1,
|
|
85
85
|
emptyTableMessage: N,
|
|
86
86
|
customCells: {
|
|
87
|
-
createdAt: ({ value: e }) => e ? e && /* @__PURE__ */ r(i, { variant: a.BODY, children:
|
|
87
|
+
createdAt: ({ value: e }) => e ? e && /* @__PURE__ */ r(i, { variant: a.BODY, children: u(e, h) }) : null,
|
|
88
88
|
dateAndReportType: ({ item: e }) => /* @__PURE__ */ r("div", { className: H, children: [
|
|
89
89
|
/* @__PURE__ */ r(i, { variant: a.BODY, stronger: !0, children: t.get(`reportType.${e == null ? void 0 : e.type}`) }),
|
|
90
|
-
/* @__PURE__ */ r(i, { className: Q, variant: a.BODY, children:
|
|
90
|
+
/* @__PURE__ */ r(i, { className: Q, variant: a.BODY, children: u(e.createdAt, h) })
|
|
91
91
|
] }),
|
|
92
92
|
reportType: ({ item: e }) => (e == null ? void 0 : e.type) && /* @__PURE__ */ r(i, { variant: a.BODY, children: t.get(`reportType.${e == null ? void 0 : e.type}`) }),
|
|
93
93
|
reportFile: ({ item: e }) => {
|
|
@@ -99,11 +99,11 @@ const K = ["createdAt", "dateAndReportType", "reportType", "reportFile"], Ee = (
|
|
|
99
99
|
{
|
|
100
100
|
className: "adyen-pe-reports-table--download",
|
|
101
101
|
endpointName: "downloadReport",
|
|
102
|
-
disabled:
|
|
102
|
+
disabled: C,
|
|
103
103
|
params: o,
|
|
104
104
|
onDownloadRequested: S,
|
|
105
|
-
setError:
|
|
106
|
-
errorDisplay:
|
|
105
|
+
setError: v,
|
|
106
|
+
errorDisplay: W
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (o,
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
class
|
|
8
|
-
constructor(
|
|
9
|
-
super(
|
|
10
|
-
n(this, "componentToRender", () => /* @__PURE__ */
|
|
11
|
-
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var s = (o, t, e) => t in o ? r(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var n = (o, t, e) => s(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { jsx as i } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
|
+
import { UIElement as a } from "../UIElement/UIElement.js";
|
|
6
|
+
import p from "../../internal/DataOverviewDetails/DataOverviewDetails.js";
|
|
7
|
+
class m extends a {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
super(e);
|
|
10
|
+
n(this, "componentToRender", () => /* @__PURE__ */ i(
|
|
11
|
+
p,
|
|
12
12
|
{
|
|
13
13
|
...this.props,
|
|
14
14
|
type: "transaction",
|
|
15
|
-
ref: (
|
|
15
|
+
ref: (e) => void (this.componentRef = e)
|
|
16
16
|
}
|
|
17
17
|
));
|
|
18
18
|
this.componentToRender = this.componentToRender.bind(this);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
n(
|
|
22
|
-
const h = r;
|
|
21
|
+
n(m, "type", "transactionDetails");
|
|
23
22
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
m as TransactionElement,
|
|
24
|
+
m as default
|
|
26
25
|
};
|
package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import e from "../../../../internal/DataOverviewDetails/DataOverviewDetailsSkeleton.js";
|
|
3
|
-
import a from "./TransactionDataContent.js";
|
|
3
|
+
import { TransactionDataContent as a } from "./TransactionDataContent.js";
|
|
4
4
|
import { boolOrFalse as s } from "../../../../../utils/value/bool.js";
|
|
5
5
|
const g = ({ error: n, isFetching: i, transaction: o, extraFields: r }) => s(i) || !(o || n) ? /* @__PURE__ */ t(e, { skeletonRowNumber: 5 }) : o ? /* @__PURE__ */ t(a, { transaction: o, extraFields: r }) : null;
|
|
6
6
|
export {
|
|
@@ -3,7 +3,7 @@ import L from "classnames";
|
|
|
3
3
|
import { useState as A, useMemo as B, useCallback as i, useLayoutEffect as U } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import ce from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import { useFetch as se } from "../../../../../hooks/useFetch.js";
|
|
6
|
-
import N from "../../../../internal/Alert/Alert.js";
|
|
6
|
+
import { Alert as N } from "../../../../internal/Alert/Alert.js";
|
|
7
7
|
import { AlertTypeOption as M, AlertVariantOption as D } from "../../../../internal/Alert/types.js";
|
|
8
8
|
import le from "../../../../internal/Button/ButtonActions/ButtonActions.js";
|
|
9
9
|
import { ButtonActionsLayoutBasic as me } from "../../../../internal/Button/ButtonActions/types.js";
|
|
@@ -19,15 +19,15 @@ import Ne from "../details/TransactionStatusBox.js";
|
|
|
19
19
|
import { TransactionRefundFullAmountInput as De, TransactionRefundPartialAmountInput as Ie } from "../refund/TransactionRefundAmount.js";
|
|
20
20
|
import he from "../refund/TransactionRefundNotice.js";
|
|
21
21
|
import be from "../refund/TransactionRefundReason.js";
|
|
22
|
-
|
|
23
|
-
import ve from "../../hooks/useTransaction/useTransaction.js";
|
|
24
|
-
import ye from "../../hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js";
|
|
25
|
-
import x from "../../../../internal/Icon/Icon.js";
|
|
22
|
+
/* empty css */
|
|
23
|
+
import { useTransaction as ve } from "../../hooks/useTransaction/useTransaction.js";
|
|
24
|
+
import { useTransactionRefundMetadata as ye } from "../../hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js";
|
|
25
|
+
import { Icon as x } from "../../../../internal/Icon/Icon.js";
|
|
26
26
|
import H from "../../../../internal/Button/Button.js";
|
|
27
27
|
import { TransactionRefundProvider as Ce } from "../../context/refund/context.js";
|
|
28
28
|
import { TransactionDetailsProvider as Oe } from "../../context/details/context.js";
|
|
29
29
|
import { EMPTY_ARRAY as Pe, EMPTY_OBJECT as ge } from "../../../../../utils/value/constants.js";
|
|
30
|
-
import {
|
|
30
|
+
import { useConfigContext as Le } from "../../../../../core/ConfigContext/context.js";
|
|
31
31
|
const Y = ({
|
|
32
32
|
children: c,
|
|
33
33
|
renderViewActionButtons: s,
|
|
@@ -36,7 +36,7 @@ const Y = ({
|
|
|
36
36
|
c,
|
|
37
37
|
o && o(),
|
|
38
38
|
s()
|
|
39
|
-
] }),
|
|
39
|
+
] }), G = ({
|
|
40
40
|
action: c,
|
|
41
41
|
title: s,
|
|
42
42
|
renderIcon: o,
|
|
@@ -46,9 +46,9 @@ const Y = ({
|
|
|
46
46
|
/* @__PURE__ */ e(w, { className: ue.MEDIUM, variant: F.TITLE, children: s }),
|
|
47
47
|
/* @__PURE__ */ e(w, { variant: F.BODY, children: l }),
|
|
48
48
|
c && c()
|
|
49
|
-
] }),
|
|
49
|
+
] }), lt = ({ transaction: c, extraFields: s }) => {
|
|
50
50
|
var g;
|
|
51
|
-
const [o, l] = A(a.DETAILS), [h,
|
|
51
|
+
const [o, l] = A(a.DETAILS), [h, $] = A(), [b, j] = A(), [m, v] = A(!1), { fetchingTransaction: q, refreshTransaction: p, transaction: n, transactionNavigator: W } = ve(c), {
|
|
52
52
|
refundable: z,
|
|
53
53
|
refundableAmount: J,
|
|
54
54
|
refundableAmountLabel: R,
|
|
@@ -59,7 +59,7 @@ const Y = ({
|
|
|
59
59
|
refundStatuses: d,
|
|
60
60
|
refundMode: T,
|
|
61
61
|
refundLocked: E
|
|
62
|
-
} = ye(n), u = B(() => y || m, [y, m]), { i18n: r } = ce(), ee = Object.freeze((n == null ? void 0 : n.lineItems) ?? Pe), te = i((t) =>
|
|
62
|
+
} = ye(n), u = B(() => y || m, [y, m]), { i18n: r } = ce(), ee = Object.freeze((n == null ? void 0 : n.lineItems) ?? Pe), te = i((t) => $(t), []), ne = i((t) => j(t), []), S = i(
|
|
63
63
|
(t) => t === a.REFUND && u,
|
|
64
64
|
[u]
|
|
65
65
|
), { getBalanceAccounts: f } = Le().endpoints, { data: _ } = se(
|
|
@@ -106,8 +106,7 @@ const Y = ({
|
|
|
106
106
|
u && l(a.DETAILS);
|
|
107
107
|
}, [u]), q)
|
|
108
108
|
return /* @__PURE__ */ e(de, { skeletonRowNumber: 5 });
|
|
109
|
-
if (S(o))
|
|
110
|
-
return null;
|
|
109
|
+
if (S(o)) return null;
|
|
111
110
|
const P = {
|
|
112
111
|
lineItems: ee,
|
|
113
112
|
refundAvailable: K,
|
|
@@ -159,7 +158,7 @@ const Y = ({
|
|
|
159
158
|
) });
|
|
160
159
|
case a.REFUND_SUCCESS:
|
|
161
160
|
return /* @__PURE__ */ e(
|
|
162
|
-
|
|
161
|
+
G,
|
|
163
162
|
{
|
|
164
163
|
renderIcon: () => /* @__PURE__ */ e(x, { name: "checkmark-circle-fill", className: L(V, Ae) }),
|
|
165
164
|
title: r.get("refundActionSuccessTitle"),
|
|
@@ -169,7 +168,7 @@ const Y = ({
|
|
|
169
168
|
);
|
|
170
169
|
case a.REFUND_ERROR:
|
|
171
170
|
return /* @__PURE__ */ e(
|
|
172
|
-
|
|
171
|
+
G,
|
|
173
172
|
{
|
|
174
173
|
renderIcon: () => /* @__PURE__ */ e(x, { name: "cross-circle-fill", className: L(V, Te) }),
|
|
175
174
|
title: r.get("refundActionErrorTitle"),
|
|
@@ -180,8 +179,8 @@ const Y = ({
|
|
|
180
179
|
default:
|
|
181
180
|
return null;
|
|
182
181
|
}
|
|
183
|
-
}
|
|
182
|
+
};
|
|
184
183
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
lt as TransactionDataContent,
|
|
185
|
+
lt as default
|
|
187
186
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { jsx as i } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { useMemo as v } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
-
import
|
|
4
|
-
import { TX_DETAILS_RESERVED_FIELDS_SET as
|
|
3
|
+
import g from "../../../../internal/CopyText/CopyText.js";
|
|
4
|
+
import { TX_DETAILS_RESERVED_FIELDS_SET as x, TX_DATA_LIST as E, TX_DATA_LABEL as P } from "../constants.js";
|
|
5
5
|
import { _isCustomDataObject as k } from "../../../../internal/DataGrid/components/TableCells.js";
|
|
6
6
|
import C from "../../../../../core/Context/useCoreContext.js";
|
|
7
7
|
import { useTransactionDetailsContext as I } from "../../context/details/context.js";
|
|
8
8
|
import L from "../../../../internal/StructuredList/StructuredList.js";
|
|
9
9
|
import { isNullish as S } from "../../../../../utils/value/is.js";
|
|
10
|
-
const
|
|
10
|
+
const $ = () => {
|
|
11
11
|
const { i18n: s } = C(), { transaction: u, extraFields: l } = I();
|
|
12
12
|
return v(() => {
|
|
13
|
-
const { balanceAccount: a, category: p, id: y, paymentPspReference:
|
|
14
|
-
if (S(n))
|
|
15
|
-
return null;
|
|
13
|
+
const { balanceAccount: a, category: p, id: y, paymentPspReference: f, refundMetadata: e } = u, r = p === "Refund", t = null, c = (n) => {
|
|
14
|
+
if (S(n)) return null;
|
|
16
15
|
const { value: o, currency: _ } = n;
|
|
17
16
|
return s.amount(o, _);
|
|
18
|
-
}, m =
|
|
17
|
+
}, m = c(u.deductedAmount), d = c(u.originalAmount), R = r ? "refund.refundFee" : "refund.fee", T = r ? "refund.originalPayment" : "refund.originalAmount", A = r ? "refund.paymentPspReference" : "refund.pspReference", D = [
|
|
19
18
|
// amounts
|
|
20
19
|
d ? { key: T, value: d } : t,
|
|
21
20
|
m ? { key: R, value: m } : t,
|
|
22
21
|
// balance account
|
|
23
22
|
a != null && a.description ? { key: "account", value: a.description } : t,
|
|
24
23
|
// custom data
|
|
25
|
-
...Object.entries(l || {}).filter(([n]) => !
|
|
24
|
+
...Object.entries(l || {}).filter(([n]) => !x.has(n)).map(([n, o]) => ({
|
|
26
25
|
key: n,
|
|
27
26
|
value: k(o) ? o.value : o
|
|
28
27
|
})) || {},
|
|
@@ -32,22 +31,22 @@ const h = () => {
|
|
|
32
31
|
value: s.has(`refundReason.${e.refundReason}`) ? s.get(`refundReason.${e.refundReason}`) : e.refundReason
|
|
33
32
|
} : t,
|
|
34
33
|
// reference id
|
|
35
|
-
{ key: "referenceID", value: /* @__PURE__ */ i(
|
|
34
|
+
{ key: "referenceID", value: /* @__PURE__ */ i(g, { type: "Default", textToCopy: y, showCopyTextTooltip: !1 }) },
|
|
36
35
|
r && (e != null && e.refundPspReference) ? { key: "refund.refundPspReference", value: e.refundPspReference } : t,
|
|
37
36
|
// psp reference
|
|
38
|
-
|
|
37
|
+
f ? { key: A, value: f } : t
|
|
39
38
|
].filter(Boolean);
|
|
40
39
|
return /* @__PURE__ */ i(
|
|
41
40
|
L,
|
|
42
41
|
{
|
|
43
|
-
classNames:
|
|
42
|
+
classNames: E,
|
|
44
43
|
items: D,
|
|
45
44
|
layout: "5-7",
|
|
46
|
-
renderLabel: (n) => /* @__PURE__ */ i("div", { className:
|
|
45
|
+
renderLabel: (n) => /* @__PURE__ */ i("div", { className: P, children: n })
|
|
47
46
|
}
|
|
48
47
|
);
|
|
49
48
|
}, [s, u]);
|
|
50
|
-
}
|
|
49
|
+
};
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
$ as default
|
|
53
52
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { TX_DATA_CONTAINER as r } from "../constants.js";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
const
|
|
4
|
+
const n = ({ children: a, className: o }) => /* @__PURE__ */ t("div", { className: s(r, o), children: a });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
n as default
|
|
7
7
|
};
|
package/dist/es/components/external/TransactionDetails/components/details/TransactionStatusBox.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { TX_DATA_TAGS as E, TX_DATA_AMOUNT as p, TX_DATA_PAY_METHOD as h, TX_DATA_PAY_METHOD_LOGO_CONTAINER as v, TX_DATA_PAY_METHOD_LOGO as
|
|
3
|
-
import { getPaymentMethodTypeForTransaction as
|
|
4
|
-
import
|
|
5
|
-
import { memo as
|
|
2
|
+
import { TX_DATA_TAGS as E, TX_DATA_AMOUNT as p, TX_DATA_PAY_METHOD as h, TX_DATA_PAY_METHOD_LOGO_CONTAINER as v, TX_DATA_PAY_METHOD_LOGO as M, TX_DATA_PAY_METHOD_DETAIL as N, TX_DATA_LABEL as O } from "../constants.js";
|
|
3
|
+
import { getPaymentMethodTypeForTransaction as S, getDisplayablePaymentMethodForTransaction as F, getRefundTypeForTransaction as C, getAmountStyleForTransaction as P } from "../utils.js";
|
|
4
|
+
import R from "classnames";
|
|
5
|
+
import { memo as U } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
6
6
|
import { useMemo as u } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
7
|
-
import
|
|
7
|
+
import b from "../../../../../core/Context/useCoreContext.js";
|
|
8
8
|
import x from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
9
9
|
import { RefundType as _, RefundedState as f } from "../../context/types.js";
|
|
10
10
|
import { Image as I } from "../../../../internal/Image/Image.js";
|
|
@@ -14,7 +14,7 @@ import { Fragment as D } from "../../../../../external/preact/dist/preact.module
|
|
|
14
14
|
import { DATE_FORMAT_TRANSACTION_DETAILS as X } from "../../../../../constants/dateFormats.js";
|
|
15
15
|
const $ = ({ refundedState: n, transaction: r }) => {
|
|
16
16
|
var s;
|
|
17
|
-
const { i18n: t } =
|
|
17
|
+
const { i18n: t } = b(), { dateFormat: g } = x((s = r == null ? void 0 : r.balanceAccount) == null ? void 0 : s.timeZone), {
|
|
18
18
|
amount: l,
|
|
19
19
|
category: i,
|
|
20
20
|
createdAt: A
|
|
@@ -24,8 +24,8 @@ const $ = ({ refundedState: n, transaction: r }) => {
|
|
|
24
24
|
return `${t.amount(L, c, { hideCurrency: !0 })} ${c}`;
|
|
25
25
|
}, [l, t]), [m, y, T] = u(
|
|
26
26
|
() => [
|
|
27
|
+
S(r),
|
|
27
28
|
F(r),
|
|
28
|
-
M(r),
|
|
29
29
|
C(r)
|
|
30
30
|
],
|
|
31
31
|
[r]
|
|
@@ -40,14 +40,14 @@ const $ = ({ refundedState: n, transaction: r }) => {
|
|
|
40
40
|
n === f.FULL && /* @__PURE__ */ e(o, { label: t.get("refunded.full"), variant: a.SUCCESS }),
|
|
41
41
|
n === f.PARTIAL && /* @__PURE__ */ e(o, { label: t.get("refunded.partial"), variant: a.BLUE })
|
|
42
42
|
] }),
|
|
43
|
-
d && /* @__PURE__ */ e("div", { className:
|
|
43
|
+
d && /* @__PURE__ */ e("div", { className: R(p, `${p}--${P(r)}`), children: d }),
|
|
44
44
|
m && /* @__PURE__ */ e("div", { className: h, children: [
|
|
45
|
-
/* @__PURE__ */ e("div", { className: v, children: /* @__PURE__ */ e(I, { className:
|
|
46
|
-
/* @__PURE__ */ e("div", { className:
|
|
45
|
+
/* @__PURE__ */ e("div", { className: v, children: /* @__PURE__ */ e(I, { className: M, name: m, alt: m, folder: "logos/" }) }),
|
|
46
|
+
/* @__PURE__ */ e("div", { className: N, children: y })
|
|
47
47
|
] }),
|
|
48
|
-
A && /* @__PURE__ */ e("div", { className:
|
|
48
|
+
A && /* @__PURE__ */ e("div", { className: O, children: g(new Date(A), X) })
|
|
49
49
|
] });
|
|
50
|
-
}, W =
|
|
50
|
+
}, W = U($);
|
|
51
51
|
export {
|
|
52
52
|
W as default
|
|
53
53
|
};
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js
CHANGED
|
@@ -3,17 +3,17 @@ import { useMemo as n } from "../../../../../external/preact/hooks/dist/hooks.mo
|
|
|
3
3
|
import { TX_DATA_CONTAINER as i, TX_DATA_HEAD_CONTAINER as a } from "../constants.js";
|
|
4
4
|
import m from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import t from "../../../../internal/Typography/Typography.js";
|
|
6
|
-
import { TypographyElement as
|
|
7
|
-
const
|
|
6
|
+
import { TypographyElement as p, TypographyVariant as e } from "../../../../internal/Typography/types.js";
|
|
7
|
+
const A = () => {
|
|
8
8
|
const { i18n: r } = m();
|
|
9
9
|
return n(
|
|
10
10
|
() => /* @__PURE__ */ o("div", { className: `${i} ${a}`, children: [
|
|
11
|
-
/* @__PURE__ */ o(t, { el:
|
|
11
|
+
/* @__PURE__ */ o(t, { el: p.DIV, variant: e.SUBTITLE, stronger: !0, children: r.get("refundAction") }),
|
|
12
12
|
/* @__PURE__ */ o(t, { variant: e.BODY, children: r.get("refundNotice") })
|
|
13
13
|
] }),
|
|
14
14
|
[r]
|
|
15
15
|
);
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
A as default
|
|
19
19
|
};
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as f, useCallback as
|
|
3
|
-
import { TX_DATA_CONTAINER as d, TX_DATA_INPUT_HEAD as T, TX_DATA_INPUT_CONTAINER as u, TX_DATA_INPUT_CONTAINER_SHORT as
|
|
4
|
-
import { REFUND_REASONS as
|
|
1
|
+
import { jsx as o } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { useMemo as f, useCallback as c } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import { TX_DATA_CONTAINER as d, TX_DATA_INPUT_HEAD as T, TX_DATA_INPUT_CONTAINER as u, TX_DATA_INPUT_CONTAINER_SHORT as p } from "../constants.js";
|
|
4
|
+
import { REFUND_REASONS as R } from "../../context/constants.js";
|
|
5
5
|
import N from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import A from "../../../../internal/Typography/Typography.js";
|
|
7
7
|
import { TypographyElement as _, TypographyVariant as h } from "../../../../internal/Typography/types.js";
|
|
8
8
|
import { useTransactionRefundContext as g } from "../../context/refund/context.js";
|
|
9
9
|
import C from "../../../../internal/FormFields/Select/Select.js";
|
|
10
|
-
const
|
|
11
|
-
const { i18n:
|
|
10
|
+
const P = () => {
|
|
11
|
+
const { i18n: n } = N(), { interactionsDisabled: s, refundReason: i, setRefundReason: r } = g(), m = f(
|
|
12
12
|
() => Object.freeze(
|
|
13
|
-
|
|
13
|
+
R.map((e) => ({ id: e, name: n.has(`refundReason.${e}`) ? n.get(`refundReason.${e}`) : e }))
|
|
14
14
|
),
|
|
15
|
-
[
|
|
16
|
-
),
|
|
15
|
+
[n]
|
|
16
|
+
), l = c(
|
|
17
17
|
(e) => {
|
|
18
18
|
var t;
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const a = (t = e.target) == null ? void 0 : t.value;
|
|
20
|
+
a && r(a);
|
|
21
21
|
},
|
|
22
|
-
[
|
|
22
|
+
[r]
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ o("div", { className: d, children: [
|
|
25
|
+
/* @__PURE__ */ o("div", { className: T, children: /* @__PURE__ */ o(A, { el: _.SPAN, variant: h.BODY, stronger: !0, children: n.get("refundReason") }) }),
|
|
26
|
+
/* @__PURE__ */ o("div", { className: `${u} ${p}`, children: /* @__PURE__ */ o(
|
|
27
27
|
C,
|
|
28
28
|
{
|
|
29
29
|
items: m,
|
|
30
30
|
readonly: s,
|
|
31
31
|
filterable: !1,
|
|
32
32
|
multiSelect: !1,
|
|
33
|
-
onChange:
|
|
33
|
+
onChange: l,
|
|
34
34
|
selected: i
|
|
35
35
|
}
|
|
36
36
|
) })
|
|
37
37
|
] });
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
export {
|
|
40
40
|
P as default
|
|
41
41
|
};
|