@adyen/adyen-platform-experience-web 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-DFK1XWip.cjs → angle-right-DTy2TWx4.cjs} +2 -2
- package/dist/{angle-right-DFK1XWip.cjs.map → angle-right-DTy2TWx4.cjs.map} +1 -1
- package/dist/{arrow-right-CZ1F_uRT.cjs → arrow-right-B6dKAgxC.cjs} +2 -2
- package/dist/{arrow-right-CZ1F_uRT.cjs.map → arrow-right-B6dKAgxC.cjs.map} +1 -1
- package/dist/{checkbox-disabled-CiswqFEh.cjs → checkbox-disabled-6YdgSLrS.cjs} +2 -2
- package/dist/{checkbox-disabled-CiswqFEh.cjs.map → checkbox-disabled-6YdgSLrS.cjs.map} +1 -1
- package/dist/{checkmark-Dlu9dKL2.cjs → checkmark-Cj21KYtP.cjs} +2 -2
- package/dist/{checkmark-Dlu9dKL2.cjs.map → checkmark-Cj21KYtP.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-D23DKFpy.cjs → checkmark-circle-fill-DnOmKCts.cjs} +2 -2
- package/dist/{checkmark-circle-fill-D23DKFpy.cjs.map → checkmark-circle-fill-DnOmKCts.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-BllnBadT.cjs → checkmark-square-fill-TZSUoFxb.cjs} +2 -2
- package/dist/{checkmark-square-fill-BllnBadT.cjs.map → checkmark-square-fill-TZSUoFxb.cjs.map} +1 -1
- package/dist/{chevron-down-BjPOpPFg.cjs → chevron-down-BdvakWqj.cjs} +2 -2
- package/dist/{chevron-down-BjPOpPFg.cjs.map → chevron-down-BdvakWqj.cjs.map} +1 -1
- package/dist/{chevron-left-w1GDYuEM.cjs → chevron-left-DX05QuGW.cjs} +2 -2
- package/dist/{chevron-left-w1GDYuEM.cjs.map → chevron-left-DX05QuGW.cjs.map} +1 -1
- package/dist/{chevron-right-C4n0pSGH.cjs → chevron-right-QttS4nKf.cjs} +2 -2
- package/dist/{chevron-right-C4n0pSGH.cjs.map → chevron-right-QttS4nKf.cjs.map} +1 -1
- package/dist/{chevron-up-BWw2Y-DY.cjs → chevron-up-DZGBIDS6.cjs} +2 -2
- package/dist/{chevron-up-BWw2Y-DY.cjs.map → chevron-up-DZGBIDS6.cjs.map} +1 -1
- package/dist/{chevron-up-down-0CejMoYD.cjs → chevron-up-down-Db3jqYfl.cjs} +2 -2
- package/dist/{chevron-up-down-0CejMoYD.cjs.map → chevron-up-down-Db3jqYfl.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{cog-zCi8ed-S.cjs → cog-CUHLvzAw.cjs} +2 -2
- package/dist/{cog-zCi8ed-S.cjs.map → cog-CUHLvzAw.cjs.map} +1 -1
- package/dist/{copy-DCwuC7lR.cjs → copy-BTOZkU8Q.cjs} +2 -2
- package/dist/{copy-DCwuC7lR.cjs.map → copy-BTOZkU8Q.cjs.map} +1 -1
- package/dist/{cross-BG2GJUzl.cjs → cross-Bllu7Gj8.cjs} +2 -2
- package/dist/{cross-BG2GJUzl.cjs.map → cross-Bllu7Gj8.cjs.map} +1 -1
- package/dist/{cross-circle-fill-D1c2YpdT.cjs → cross-circle-fill-5WmWlQcI.cjs} +2 -2
- package/dist/{cross-circle-fill-D1c2YpdT.cjs.map → cross-circle-fill-5WmWlQcI.cjs.map} +1 -1
- package/dist/{download-BxWw1k2Q.cjs → download-Cq_hJlBy.cjs} +2 -2
- package/dist/{download-BxWw1k2Q.cjs.map → download-Cq_hJlBy.cjs.map} +1 -1
- package/dist/es/assets/translations/en-US.json.js +4 -0
- package/dist/es/components/external/BaseElement.js +18 -22
- package/dist/es/components/external/CapitalOffer/CapitalOfferElement.js +10 -14
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +51 -52
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferLegalNotice/CapitalOfferLegalNotice.js +35 -38
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +102 -104
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +99 -101
- package/dist/es/components/external/CapitalOverview/CapitalOverviewElement.js +21 -26
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +77 -81
- package/dist/es/components/external/CapitalOverview/components/GrantActions/GrantActions.js +55 -56
- package/dist/es/components/external/CapitalOverview/components/GrantActions/utils.js +1 -4
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +125 -129
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +19 -21
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +25 -26
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +24 -28
- package/dist/es/components/external/CapitalOverview/components/PreQualifiedIntro.js +26 -27
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +6 -6
- package/dist/es/components/external/DisputeManagement/DisputeManagementElement.js +10 -14
- package/dist/es/components/external/DisputeManagement/components/AcceptDisputeFlow/AcceptDisputeFlow.js +43 -43
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeFileUpload.js +93 -95
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeFlow.js +14 -14
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeReason.js +97 -106
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeResponse.js +16 -16
- package/dist/es/components/external/DisputeManagement/components/DefendDisputeFlow/SelectAndUploadOptionalDoc.js +53 -55
- package/dist/es/components/external/DisputeManagement/components/DisputesData/DisputeData.js +151 -154
- package/dist/es/components/external/DisputeManagement/components/DisputesData/DisputeDataProperties.js +126 -133
- package/dist/es/components/external/DisputeManagement/components/DisputesData/DisputeIssuerComments.js +36 -38
- package/dist/es/components/external/DisputeManagement/context/dispute/context.js +44 -44
- package/dist/es/components/external/DisputeManagement/utils/index.js +15 -15
- package/dist/es/components/external/DisputesOverview/DisputesOverviewElement.js +10 -14
- package/dist/es/components/external/DisputesOverview/components/DisputesOverview/DisputesOverview.js +167 -167
- package/dist/es/components/external/DisputesOverview/components/DisputesTable/DisputeStatusTag.js +10 -10
- package/dist/es/components/external/DisputesOverview/components/DisputesTable/DisputesTable.js +56 -56
- package/dist/es/components/external/PaymentLinkCreation/PaymentLinkCreationElement.js +10 -13
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/CustomerDetailsForm.js +100 -172
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingAddressSection.js +88 -0
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingCityField.js +29 -0
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingCountryField.js +29 -23
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingHouseNumberField.js +29 -0
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingPostalCodeField.js +29 -0
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingStreetField.js +29 -0
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/DeliveryAddressSection.js +65 -0
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingCityField.js +18 -19
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingCountryField.js +27 -29
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingHouseNumberField.js +20 -21
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingPostalCodeField.js +20 -21
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingStreetField.js +20 -21
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/BillingAndShippingCheckboxField.js +20 -16
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/CountryRegionField.js +16 -17
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/LanguageField.js +22 -22
- package/dist/es/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/ShopperPhoneField.js +46 -47
- package/dist/es/components/external/PaymentLinkCreation/components/Form/PaymentDetailsForm/Fields/AmountField.js +41 -53
- package/dist/es/components/external/PaymentLinkCreation/components/Form/PaymentDetailsForm/Fields/LinkTypeField.js +16 -19
- package/dist/es/components/external/PaymentLinkCreation/components/Form/PaymentDetailsForm/Fields/ValidityField.js +91 -100
- package/dist/es/components/external/PaymentLinkCreation/components/Form/StoreForm/Fields/StoreField.js +15 -16
- package/dist/es/components/external/PaymentLinkCreation/components/Form/Summary/FormSummary.js +72 -85
- package/dist/es/components/external/PaymentLinkCreation/components/PaymentLinkCreationContainer/PaymentLinkCreationContainer.js +14 -15
- package/dist/es/components/external/PaymentLinkCreation/components/PaymentLinkCreationFormContainer/FormStepRenderer.js +26 -26
- package/dist/es/components/external/PaymentLinkCreation/components/PaymentLinkCreationFormContainer/PaymentLinkCreationFormContainer.js +163 -173
- package/dist/es/components/external/PaymentLinkCreation/components/PaymentLinkCreationFormContainer/usePaymentLinkFormData.js +77 -78
- package/dist/es/components/external/PaymentLinkCreation/hooks/useInvalidFieldsConfig.js +12 -12
- package/dist/es/components/external/PaymentLinkCreation/utils.js +202 -210
- package/dist/es/components/external/PaymentLinkDetails/PaymentLinkDetailsElement.js +10 -14
- package/dist/es/components/external/PaymentLinkDetails/components/PaymentLinkDetails/PaymentLinkDetails.js +113 -103
- package/dist/es/components/external/PaymentLinkDetails/components/PaymentLinkSummary/PaymentLinkSummary.js +31 -26
- package/dist/es/components/external/PaymentLinkDetails/components/PaymentLinkTabs/PaymentLinkTabs.js +82 -83
- package/dist/es/components/external/PaymentLinkSettings/PaymentLinkSettingsElement.js +10 -13
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/PaymentLinkSettings.js +32 -32
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/PaymentLinkSettingsContainer.js +23 -23
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/components/PaymentLinkSettingsContent/PaymentLinkSettingsContent.js +43 -31
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/components/SettingsActionButtons/SettingsActionButtons.js +31 -30
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/components/SettingsError/SettingsError.js +15 -15
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/context/context.js +112 -112
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/utils/getSettingsErrorMessage.js +30 -22
- package/dist/es/components/external/PaymentLinkSettings/components/PaymentLinkThemeContainer/components/ThemeForm/ThemeForm.js +67 -69
- package/dist/es/components/external/PaymentLinkSettings/components/TermsAndConditions/Requirements/useTermsRequirementsConfig.js +9 -9
- package/dist/es/components/external/PaymentLinkSettings/components/TermsAndConditions/TermsAndConditions.js +82 -84
- package/dist/es/components/external/PaymentLinkSettings/hooks/useSaveAction.js +24 -24
- package/dist/es/components/external/PaymentLinkSettings/hooks/useSettingsPermission.js +11 -0
- package/dist/es/components/external/PaymentLinkSettings/hooks/useStoreTermsAndConditions.js +10 -10
- package/dist/es/components/external/PaymentLinkSettings/hooks/useStoreTheme.js +20 -20
- package/dist/es/components/external/PaymentLinksOverview/PaymentLinksOverviewElement.js +10 -14
- package/dist/es/components/external/PaymentLinksOverview/components/PaymentLinksErrors.js +19 -19
- package/dist/es/components/external/PaymentLinksOverview/components/PaymentLinksOverview.js +274 -255
- package/dist/es/components/external/PaymentLinksOverview/components/PaymentLinksOverviewContainer.js +4 -4
- package/dist/es/components/external/PaymentLinksOverview/components/PaymentLinksOverviewModal.js +42 -43
- package/dist/es/components/external/PaymentLinksOverview/components/PaymentLinksTable.js +52 -53
- package/dist/es/components/external/PaymentLinksOverview/components/constants.js +17 -15
- package/dist/es/components/external/PaymentLinksOverview/utils/getPaymentLinksErrorMessage.js +24 -25
- package/dist/es/components/external/PayoutDetails/PayoutDetails.js +10 -14
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +118 -128
- package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +10 -14
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +102 -106
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +65 -66
- package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +10 -14
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +78 -82
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +11 -11
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +8 -12
- package/dist/es/components/external/TransactionDetails/components/PaymentDetails/PaymentDetails.js +18 -21
- package/dist/es/components/external/TransactionDetails/components/PaymentDetails/PaymentDetailsActions.js +49 -53
- package/dist/es/components/external/TransactionDetails/components/PaymentDetails/PaymentDetailsProperties.js +82 -87
- package/dist/es/components/external/TransactionDetails/components/PaymentDetails/PaymentDetailsStatusBox.js +28 -29
- package/dist/es/components/external/TransactionDetails/components/PaymentDetails/PaymentDetailsSummary.js +49 -55
- package/dist/es/components/external/TransactionDetails/components/PaymentDetails/PaymentDetailsTimeline.js +31 -32
- package/dist/es/components/external/TransactionDetails/components/PaymentRefund/PaymentRefund.js +63 -65
- package/dist/es/components/external/TransactionDetails/components/PaymentRefund/PaymentRefundActions.js +38 -39
- package/dist/es/components/external/TransactionDetails/components/PaymentRefund/PaymentRefundAmount.js +50 -51
- package/dist/es/components/external/TransactionDetails/components/PaymentRefund/PaymentRefundReason.js +23 -24
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +43 -44
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +45 -45
- package/dist/es/components/external/TransactionDetails/constants.js +12 -13
- package/dist/es/components/external/TransactionDetails/hooks/useRefundMetadata/useRefundMetadata.js +46 -50
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +25 -25
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +32 -33
- package/dist/es/components/external/TransactionDetails/utils.js +9 -9
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +8 -12
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -22
- package/dist/es/components/external/TransactionsOverview/components/Balances/BalancesCard.js +27 -27
- package/dist/es/components/external/TransactionsOverview/components/InsightsTotals/InsightsTotals.js +38 -37
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +18 -18
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +26 -29
- package/dist/es/components/external/TransactionsOverview/components/TransactionFilters/TransactionDateFilter.js +71 -67
- package/dist/es/components/external/TransactionsOverview/components/TransactionFilters/TransactionFilters.js +99 -89
- package/dist/es/components/external/TransactionsOverview/components/TransactionFilters/TransactionPspReferenceFilter.js +73 -59
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +15 -15
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +39 -39
- package/dist/es/components/external/TransactionsOverview/components/TransactionsExport/TransactionsExport.js +175 -175
- package/dist/es/components/external/TransactionsOverview/components/TransactionsExport/constants.js +1 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsList/TransactionsList.js +40 -41
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +103 -85
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverviewInsights.js +9 -12
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverviewList.js +45 -50
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +44 -44
- package/dist/es/components/external/TransactionsOverview/components/utils.js +32 -29
- package/dist/es/components/external/TransactionsOverview/constants.js +51 -42
- package/dist/es/components/external/TransactionsOverview/hooks/useCurrenciesLookup.js +50 -0
- package/dist/es/components/external/TransactionsOverview/hooks/useCurrencySelection.js +31 -28
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsList.js +55 -54
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsTotals.js +35 -37
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsViewSwitcher.js +18 -0
- package/dist/es/components/external/UIElement/UIElement.js +27 -33
- package/dist/es/components/internal/Accordion/Accordion.js +19 -20
- package/dist/es/components/internal/Alert/Alert.js +18 -18
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +46 -46
- package/dist/es/components/internal/Button/hooks/useButton.js +31 -31
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +360 -409
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +98 -105
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +218 -232
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +42 -28
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +21 -36
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +18 -18
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +14 -14
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +81 -81
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +7 -7
- package/dist/es/components/internal/CapitalHeader/CapitalHeader.js +12 -13
- package/dist/es/components/internal/CapitalHeader/helpers.js +16 -20
- package/dist/es/components/internal/CapitalSlider/CapitalSlider.js +33 -33
- package/dist/es/components/internal/Checkbox/Checkbox.js +25 -26
- package/dist/es/components/internal/DataGrid/DataGrid.js +41 -45
- package/dist/es/components/internal/DataGrid/DataGridCell.js +15 -16
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +27 -27
- package/dist/es/components/internal/DataGrid/components/TableBody.js +15 -15
- package/dist/es/components/internal/DataGrid/components/TableCells.js +36 -38
- package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +12 -13
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +38 -41
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +44 -46
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +23 -23
- package/dist/es/components/internal/DatePicker/DatePicker.js +33 -34
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +24 -24
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +47 -48
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +55 -54
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +43 -44
- package/dist/es/components/internal/FilterBar/FilterBar.js +23 -23
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +75 -74
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +61 -62
- package/dist/es/components/internal/FormFields/CalendarInput/CalendarInput.js +35 -36
- package/dist/es/components/internal/FormFields/CalendarInput/components/CalendarInputButton.js +18 -18
- package/dist/es/components/internal/FormFields/CalendarInput/components/CalendarInputPopover.js +28 -27
- package/dist/es/components/internal/FormFields/CurrencyInput/CurrencyInput.js +75 -80
- package/dist/es/components/internal/FormFields/FileInput/FileInput.js +36 -36
- package/dist/es/components/internal/FormFields/FileInput/components/Dropzone.js +77 -79
- package/dist/es/components/internal/FormFields/InputBase.js +110 -111
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +30 -30
- package/dist/es/components/internal/FormFields/Select/Select.js +199 -200
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +80 -84
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +15 -15
- package/dist/es/components/internal/FormFields/utils.js +5 -5
- package/dist/es/components/internal/FormWrappers/FormCalendarInput.js +27 -33
- package/dist/es/components/internal/FormWrappers/FormSelect.js +51 -55
- package/dist/es/components/internal/FormWrappers/FormTextInput.js +51 -55
- package/dist/es/components/internal/FormWrappers/VisibleField.js +7 -8
- package/dist/es/components/internal/Header/Header.js +35 -35
- package/dist/es/components/internal/Img/Img.js +6 -6
- package/dist/es/components/internal/Modal/Modal.js +51 -53
- package/dist/es/components/internal/Pagination/Pagination.js +42 -42
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +48 -46
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +30 -32
- package/dist/es/components/internal/Popover/Popover.js +117 -121
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +29 -26
- package/dist/es/components/internal/Popover/utils/utils.js +21 -22
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +25 -25
- package/dist/es/components/internal/SecondaryNav/SecondaryNav.js +19 -19
- package/dist/es/components/internal/StatusBox/StatusBox.js +9 -9
- package/dist/es/components/internal/StatusBox/utils.js +4 -7
- package/dist/es/components/internal/Stepper/Stepper.js +29 -32
- package/dist/es/components/internal/ToggleSwitch/ToggleSwitch.js +17 -17
- package/dist/es/components/internal/Tooltip/Tooltip.js +24 -27
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +19 -19
- package/dist/es/components/utils/customData/hasCustomField.js +10 -11
- package/dist/es/components/utils/customData/normalizeCustomFields.js +8 -9
- package/dist/es/components/utils/translation/factory.js +10 -10
- package/dist/es/components/utils/translation/getters.js +18 -14
- package/dist/es/core/Analytics/analytics/customTranslations.js +32 -41
- package/dist/es/core/Analytics/analytics/user-events.js +23 -26
- package/dist/es/core/Analytics/analytics/utils.js +12 -7
- package/dist/es/core/Assets/Assets.js +5 -8
- package/dist/es/core/ConfigContext/session/AuthSession.js +51 -54
- package/dist/es/core/ConfigContext/session/AuthSessionSpecification.js +50 -53
- package/dist/es/core/ConfigContext/session/SetupContext.js +59 -60
- package/dist/es/core/ConfigContext/session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityRegistry.js +1 -1
- package/dist/es/core/ConfigContext/session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js +5 -8
- package/dist/es/core/ConfigContext/session/utils/sessionReady.js +2 -2
- package/dist/es/core/Context/CoreProvider.js +21 -21
- package/dist/es/core/Context/analytics/AnalyticsProvider.js +19 -24
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +9 -13
- package/dist/es/core/Http/http.js +30 -30
- package/dist/es/core/Http/utils.js +2 -6
- package/dist/es/core/Localization/Localization.js +100 -110
- package/dist/es/core/Localization/datetime/restamper/restamper.js +19 -19
- package/dist/es/core/Localization/datetime/restamper/utils.js +23 -25
- package/dist/es/core/Localization/localization-utils.js +15 -16
- package/dist/es/core/Localization/utils.js +49 -49
- package/dist/es/core/core.js +54 -61
- package/dist/es/core/utils.js +37 -46
- package/dist/es/hooks/element/useClickOutside.js +20 -20
- package/dist/es/hooks/element/useFocusCursor.js +7 -7
- package/dist/es/hooks/element/useFocusTrap.js +38 -40
- package/dist/es/hooks/element/usePopoverPositioner.js +135 -101
- package/dist/es/hooks/form/useForm.js +86 -86
- package/dist/es/hooks/form/wizard/useWizardForm.js +1 -1
- package/dist/es/hooks/useAccountBalances.js +33 -31
- package/dist/es/hooks/useAnalytics/useDurationEvent.js +13 -14
- package/dist/es/hooks/useAnalytics/useFilterAnalyticsEvent.js +16 -17
- package/dist/es/hooks/useAnalytics/useLandedPageEvent.js +7 -8
- package/dist/es/hooks/useAnalytics/usePushAnalyticEvent.js +10 -10
- package/dist/es/hooks/useBalanceAccountSelection.js +35 -35
- package/dist/es/hooks/useBalanceAccounts.js +24 -24
- package/dist/es/hooks/useCommitAction/useCommitAction.js +31 -31
- package/dist/es/hooks/useComponentHeadingElement.js +12 -13
- package/dist/es/hooks/useContainerQuery.js +11 -12
- package/dist/es/hooks/useCustomColumnsData.js +13 -13
- package/dist/es/hooks/useFetch.js +24 -24
- package/dist/es/hooks/useModalDetails/useModalDetails.js +14 -23
- package/dist/es/hooks/useMultiSelectionFilterProps.js +22 -22
- package/dist/es/hooks/useMutation/useMutation.js +23 -23
- package/dist/es/hooks/usePaymentLinkFilters.js +13 -13
- package/dist/es/hooks/useStores.js +28 -35
- package/dist/es/hooks/useTabbedControl.js +46 -47
- package/dist/es/hooks/useTableColumns.js +36 -37
- package/dist/es/hooks/useTrackedRef.js +6 -6
- package/dist/es/primitives/auxiliary/errorContainer/main.js +0 -1
- package/dist/es/primitives/context/session/SessionContext.js +25 -28
- package/dist/es/primitives/context/session/internal/deadline.js +43 -43
- package/dist/es/primitives/context/session/internal/refresher.js +38 -39
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +43 -44
- package/dist/es/primitives/reactive/watchlist/main.js +39 -39
- package/dist/es/primitives/time/clock/main.js +4 -4
- package/dist/es/primitives/time/interval/main.js +22 -23
- package/dist/es/primitives/time/today/main.js +26 -26
- package/dist/es/utils/abort/main.js +1 -1
- package/dist/es/utils/file/upload.js +9 -9
- package/dist/es/utils/preact/className.js +5 -5
- package/dist/es/utils/preact/memoComparator/main.js +10 -10
- package/dist/es/utils/preact/props.js +3 -3
- package/dist/es/utils/value/string.js +3 -3
- package/dist/{external-link-Do522Qjt.cjs → external-link-D2YLetxs.cjs} +2 -2
- package/dist/{external-link-Do522Qjt.cjs.map → external-link-D2YLetxs.cjs.map} +1 -1
- package/dist/{filter-6B73tLOP.cjs → filter-CKtA0pkK.cjs} +2 -2
- package/dist/{filter-6B73tLOP.cjs.map → filter-CKtA0pkK.cjs.map} +1 -1
- package/dist/index-WqTob51p.cjs +12 -0
- package/dist/index-WqTob51p.cjs.map +1 -0
- package/dist/{info-DqFoQd5P.cjs → info-B2W15PDg.cjs} +2 -2
- package/dist/{info-DqFoQd5P.cjs.map → info-B2W15PDg.cjs.map} +1 -1
- package/dist/{info-filled-B5pVGuJ8.cjs → info-filled-BDKVrESq.cjs} +2 -2
- package/dist/{info-filled-B5pVGuJ8.cjs.map → info-filled-BDKVrESq.cjs.map} +1 -1
- package/dist/{minus-circle-outline-Mcf_kMSi.cjs → minus-circle-outline-Cu3Bj3E6.cjs} +2 -2
- package/dist/{minus-circle-outline-Mcf_kMSi.cjs.map → minus-circle-outline-Cu3Bj3E6.cjs.map} +1 -1
- package/dist/{plus-EU2UHO2V.cjs → plus-DNTi3wgg.cjs} +2 -2
- package/dist/{plus-EU2UHO2V.cjs.map → plus-DNTi3wgg.cjs.map} +1 -1
- package/dist/{plus-circle-outline-DSIoo7so.cjs → plus-circle-outline-CF85OXY-.cjs} +2 -2
- package/dist/{plus-circle-outline-DSIoo7so.cjs.map → plus-circle-outline-CF85OXY-.cjs.map} +1 -1
- package/dist/{search--An9znzz.cjs → search-n5YUXFFI.cjs} +2 -2
- package/dist/{search--An9znzz.cjs.map → search-n5YUXFFI.cjs.map} +1 -1
- package/dist/{square-5S1xqTOx.cjs → square-6eUylWPu.cjs} +2 -2
- package/dist/{square-5S1xqTOx.cjs.map → square-6eUylWPu.cjs.map} +1 -1
- package/dist/{square-small-fill-BKgrg2zd.cjs → square-small-fill-DrJJvWZc.cjs} +2 -2
- package/dist/{square-small-fill-BKgrg2zd.cjs.map → square-small-fill-DrJJvWZc.cjs.map} +1 -1
- package/dist/{trash-can-CfN0iDyZ.cjs → trash-can-DBTU4_IJ.cjs} +2 -2
- package/dist/{trash-can-CfN0iDyZ.cjs.map → trash-can-DBTU4_IJ.cjs.map} +1 -1
- package/dist/types/components/external/DisputeManagement/components/DefendDisputeFlow/DefendDisputeReason.d.ts.map +1 -1
- package/dist/types/components/external/DisputeManagement/components/DefendDisputeFlow/SelectAndUploadOptionalDoc.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/CustomerDetailsForm.d.ts +3 -3
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/CustomerDetailsForm.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingAddressSection.d.ts +20 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingAddressSection.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingCityField.d.ts +9 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingCityField.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingCountryField.d.ts +3 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingCountryField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingHouseNumberField.d.ts +9 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingHouseNumberField.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingPostalCodeField.d.ts +9 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingPostalCodeField.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingStreetField.d.ts +9 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/BillingStreetField.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/DeliveryAddressSection.d.ts +19 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/DeliveryAddressSection.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingCityField.d.ts +2 -2
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingCityField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingCountryField.d.ts +2 -2
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingCountryField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingHouseNumberField.d.ts +2 -2
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingHouseNumberField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingPostalCodeField.d.ts +2 -2
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingPostalCodeField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingStreetField.d.ts +2 -2
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/Address/ShippingStreetField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/BillingAndShippingCheckboxField.d.ts +4 -3
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/BillingAndShippingCheckboxField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/LanguageField.d.ts +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/LanguageField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/ShopperPhoneField.d.ts +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/Form/CustomerDetailsForm/Fields/ShopperPhoneField.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/PaymentLinkCreationFormContainer/FormStepRenderer.d.ts +3 -3
- package/dist/types/components/external/PaymentLinkCreation/components/PaymentLinkCreationFormContainer/FormStepRenderer.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/components/PaymentLinkCreationFormContainer/PaymentLinkCreationFormContainer.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkCreation/utils.d.ts +1 -1
- package/dist/types/components/external/PaymentLinkCreation/utils.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkDetails/components/PaymentLinkDetails/PaymentLinkDetails.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkDetails/components/PaymentLinkSummary/PaymentLinkSummary.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/components/PaymentLinkSettingsContent/PaymentLinkSettingsContent.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/components/SettingsActionButtons/SettingsActionButtons.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/context/context.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/utils/getSettingsErrorMessage.d.ts +1 -0
- package/dist/types/components/external/PaymentLinkSettings/components/PaymentLinkSettingsContainer/utils/getSettingsErrorMessage.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkSettings/components/TermsAndConditions/TermsAndConditions.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinkSettings/hooks/useSettingsPermission.d.ts +5 -0
- package/dist/types/components/external/PaymentLinkSettings/hooks/useSettingsPermission.d.ts.map +1 -0
- package/dist/types/components/external/PaymentLinksOverview/components/PaymentLinksOverview.d.ts.map +1 -1
- package/dist/types/components/external/PaymentLinksOverview/components/constants.d.ts +2 -0
- package/dist/types/components/external/PaymentLinksOverview/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/PaymentDetails/PaymentDetailsSummary.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/InsightsTotals/InsightsTotals.d.ts +2 -8
- package/dist/types/components/external/TransactionsOverview/components/InsightsTotals/InsightsTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionFilters/TransactionDateFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionFilters/TransactionFilters.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionFilters/TransactionFilters.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionFilters/TransactionPspReferenceFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsExport/TransactionsExport.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsExport/TransactionsExport.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsExport/constants.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsExport/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsList/TransactionsList.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsList/TransactionsList.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsList/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsList/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverviewInsights.d.ts +4 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverviewInsights.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverviewList.d.ts +3 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverviewList.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/constants.d.ts +13 -2
- package/dist/types/components/external/TransactionsOverview/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useCurrenciesLookup.d.ts +20 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useCurrenciesLookup.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useCurrencySelection.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsList.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsList.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsTotals.d.ts +10 -13
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsViewSwitcher.d.ts +17 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsViewSwitcher.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/index.d.ts +1 -0
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNMonths.d.ts +8 -0
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNMonths.d.ts.map +1 -0
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +5 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +2 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/CalendarInput/components/CalendarInputPopover.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/types.d.ts +2 -0
- package/dist/types/components/internal/FormFields/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormWrappers/FormSelect.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts.map +1 -1
- package/dist/types/components/internal/SecondaryNav/SecondaryNav.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/components/utils/translation/getters.d.ts +1 -0
- package/dist/types/components/utils/translation/getters.d.ts.map +1 -1
- package/dist/types/core/Analytics/analytics/customTranslations.d.ts.map +1 -1
- package/dist/types/core/Analytics/analytics/user-events.d.ts.map +1 -1
- package/dist/types/core/Analytics/analytics/utils.d.ts +1 -0
- package/dist/types/core/Analytics/analytics/utils.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +4 -0
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +8 -0
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +4 -0
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/core/utils.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useAccountBalances.d.ts +2 -10
- package/dist/types/hooks/useAccountBalances.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +4 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/models/payByLink.d.ts +1 -0
- package/dist/types/types/api/models/payByLink.d.ts.map +1 -1
- package/dist/types/types/api/resources/TransactionsResourceV2.d.ts +4 -0
- package/dist/types/types/api/resources/TransactionsResourceV2.d.ts.map +1 -1
- package/dist/{upload-DhJ5Ryve.cjs → upload-DU_Zw02S.cjs} +2 -2
- package/dist/{upload-DhJ5Ryve.cjs.map → upload-DU_Zw02S.cjs.map} +1 -1
- package/dist/{warning-Cd0hhCpU.cjs → warning-DPnFvfFh.cjs} +2 -2
- package/dist/{warning-Cd0hhCpU.cjs.map → warning-DPnFvfFh.cjs.map} +1 -1
- package/dist/{warning-filled-CS3RxwaE.cjs → warning-filled-CVFCE8nl.cjs} +2 -2
- package/dist/{warning-filled-CS3RxwaE.cjs.map → warning-filled-CVFCE8nl.cjs.map} +1 -1
- package/package.json +12 -19
- package/dist/es/components/internal/Popover/PopoverContainer.js +0 -36
- package/dist/index-B_Fws5NV.cjs +0 -12
- package/dist/index-B_Fws5NV.cjs.map +0 -1
- package/dist/types/components/internal/Popover/PopoverContainer.d.ts +0 -6
- package/dist/types/components/internal/Popover/PopoverContainer.d.ts.map +0 -1
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { useMemo as
|
|
1
|
+
import { jsx as n } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { memo as p } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
3
|
+
import { useMemo as i } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import { TX_TIMELINE_VALUE as C, TX_TIMELINE_LABEL as D } from "../../constants.js";
|
|
5
5
|
import { getTransactionTimelineTxType as _, getTransactionTimelineTxStatus as g } from "../../../../utils/translation/getters.js";
|
|
6
|
-
import { TimelineDateFormat as
|
|
7
|
-
import { TypographyVariant as
|
|
8
|
-
import { TimelineItem as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { uniqueId as
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const s = e.createdAt, t = e.events, i = (r = e.balanceAccount) == null ? void 0 : r.timeZone, n = m(
|
|
6
|
+
import { TimelineDateFormat as v } from "../../../../internal/Timeline/types.js";
|
|
7
|
+
import { TypographyVariant as T, TypographyElement as d } from "../../../../internal/Typography/types.js";
|
|
8
|
+
import { TimelineItem as M } from "../../../../internal/Timeline/components/TimelineItem.js";
|
|
9
|
+
import N from "../../../../../core/Context/useCoreContext.js";
|
|
10
|
+
import f from "../../../../internal/Typography/Typography.js";
|
|
11
|
+
import w from "../../../../internal/Timeline/Timeline.js";
|
|
12
|
+
import x from "../../../../internal/StructuredList/StructuredList.js";
|
|
13
|
+
import { uniqueId as P } from "../../../../../utils/random/uniqueId.js";
|
|
14
|
+
const c = ({ transaction: t }) => {
|
|
15
|
+
const m = t.createdAt, r = t.events, a = t.balanceAccount?.timeZone, o = i(
|
|
17
16
|
() => ({
|
|
18
|
-
format:
|
|
19
|
-
date: new Date(
|
|
20
|
-
timezone:
|
|
17
|
+
format: v.FULL_DATE_EXACT_TIME_WITHOUT_SECONDS,
|
|
18
|
+
date: new Date(m),
|
|
19
|
+
timezone: a
|
|
21
20
|
}),
|
|
22
|
-
[
|
|
23
|
-
),
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
}, [
|
|
27
|
-
return
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
const { amount:
|
|
31
|
-
const { currency:
|
|
21
|
+
[m, a]
|
|
22
|
+
), s = i(() => {
|
|
23
|
+
const e = /* @__PURE__ */ new WeakMap();
|
|
24
|
+
return r?.forEach((l) => e.set(l, P())), e;
|
|
25
|
+
}, [r]);
|
|
26
|
+
return r ? /* @__PURE__ */ n(w, { showMore: { limit: 2, placement: "before-last" }, children: r.map((e) => /* @__PURE__ */ n(c.Item, { event: e, defaultTimestamp: o }, s.get(e))) }) : null;
|
|
27
|
+
}, V = (t) => /* @__PURE__ */ n(f, { el: d.DIV, variant: T.CAPTION, className: D, children: t }), S = (t) => /* @__PURE__ */ n(f, { el: d.DIV, variant: T.CAPTION, className: C, children: t });
|
|
28
|
+
c.Item = p(({ defaultTimestamp: t, event: m }) => {
|
|
29
|
+
const { amount: r, createdAt: a, status: o, type: s } = m, { i18n: e } = N(), l = i(() => ({ ...t, date: new Date(a) }), [t, a]), y = i(() => _(e, s), [e, s]), I = i(() => {
|
|
30
|
+
const { currency: u, value: E } = r, h = `${e.amount(E, u, { hideCurrency: !0 })} ${u}`, A = g(e, o);
|
|
32
31
|
return [
|
|
33
32
|
{ key: "transactions.details.timeline.fields.amount", value: h },
|
|
34
33
|
{ key: "transactions.details.timeline.fields.status", value: A }
|
|
35
34
|
];
|
|
36
|
-
}, [
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
35
|
+
}, [e, r, o]), L = o.toLowerCase().includes("refund") ? "Refund" : o.toLowerCase().includes("auth") ? "Capture" : y;
|
|
36
|
+
return /* @__PURE__ */ n(M, { title: L, timestamp: l, children: /* @__PURE__ */ n(
|
|
37
|
+
x,
|
|
39
38
|
{
|
|
40
39
|
align: "start",
|
|
41
40
|
layout: "3-9",
|
|
42
41
|
items: I,
|
|
43
|
-
renderLabel:
|
|
42
|
+
renderLabel: V,
|
|
44
43
|
renderValue: S
|
|
45
44
|
}
|
|
46
45
|
) });
|
|
47
46
|
});
|
|
48
|
-
const K =
|
|
47
|
+
const K = p(c);
|
|
49
48
|
export {
|
|
50
49
|
K as default
|
|
51
50
|
};
|
package/dist/es/components/external/TransactionDetails/components/PaymentRefund/PaymentRefund.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { sharedTransactionDetailsEventProperties as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { useState as
|
|
2
|
+
import { sharedTransactionDetailsEventProperties as v, TX_DATA_CLASS as M, TX_REFUND_RESPONSE as L, TX_REFUND_RESPONSE_ICON as F, TX_REFUND_RESPONSE_SUCCESS_ICON as b, TX_REFUND_RESPONSE_ERROR_ICON as w, REFUND_REASONS as K } from "../../constants.js";
|
|
3
|
+
import { memo as C } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
4
|
+
import { useState as T, useCallback as _, useRef as P, useEffect as y, useMemo as S } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
5
|
import k from "../../../../../core/Context/analytics/useAnalyticsContext.js";
|
|
6
|
-
import
|
|
6
|
+
import D from "../../../../../core/Context/useCoreContext.js";
|
|
7
7
|
import X from "../../../../../hooks/useComponentTiming.js";
|
|
8
8
|
import B from "./PaymentRefundActions.js";
|
|
9
9
|
import V from "./PaymentRefundAmount.js";
|
|
@@ -11,117 +11,115 @@ import H from "./PaymentRefundNotice.js";
|
|
|
11
11
|
import Y from "./PaymentRefundReason.js";
|
|
12
12
|
import { Alert as x } from "../../../../internal/Alert/Alert.js";
|
|
13
13
|
import G from "../../../../internal/Button/Button.js";
|
|
14
|
-
import
|
|
15
|
-
import { ActiveView as W, RefundMode as
|
|
16
|
-
import { TypographyVariant as
|
|
14
|
+
import h from "../../../../internal/Typography/Typography.js";
|
|
15
|
+
import { ActiveView as W, RefundMode as f } from "../../types.js";
|
|
16
|
+
import { TypographyVariant as I, TypographyElement as j, TypographyModifier as q } from "../../../../internal/Typography/types.js";
|
|
17
17
|
import { AlertTypeOption as z, AlertVariantOption as J } from "../../../../internal/Alert/types.js";
|
|
18
18
|
import { ButtonVariant as Q } from "../../../../internal/Button/types.js";
|
|
19
19
|
import Z from "classnames";
|
|
20
20
|
import { Icon as $ } from "../../../../internal/Icon/Icon.js";
|
|
21
21
|
import { clamp as ee } from "../../../../../utils/value/number.js";
|
|
22
|
-
const
|
|
23
|
-
const [
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
u.current !== void 0 && !E.current && ((d = o.addEvent) == null || d.call(o, "Cancelled refund", C));
|
|
32
|
-
}, [u, o]), s ? /* @__PURE__ */ e(_.Result, { result: s, refreshTransaction: a, showDetails: n }) : /* @__PURE__ */ e(_.Form, { ...f, beginRefund: R, setRefundResult: p, showDetails: n });
|
|
22
|
+
const A = ({ disabled: i, refreshTransaction: s, setActiveView: r, setLocked: t, ...l }) => {
|
|
23
|
+
const [o, m] = T(), p = _(() => void (R.current = !0), []), c = _(() => t(!0), [t]), n = _(() => r(W.DETAILS), [r]), { duration: u } = X(), a = P(!1), R = P(!1), d = k();
|
|
24
|
+
return y(() => {
|
|
25
|
+
a.current || (a.current = !0, d.addEvent?.("Switched to refund view", v));
|
|
26
|
+
}, [d]), y(() => {
|
|
27
|
+
i && !o && n(), o === "done" && c();
|
|
28
|
+
}, [i, c, o, n]), y(() => () => {
|
|
29
|
+
u.current !== void 0 && !R.current && d.addEvent?.("Cancelled refund", v);
|
|
30
|
+
}, [u, d]), o ? /* @__PURE__ */ e(A.Result, { result: o, refreshTransaction: s, showDetails: n }) : /* @__PURE__ */ e(A.Form, { ...l, beginRefund: p, setRefundResult: m, showDetails: n });
|
|
33
31
|
};
|
|
34
|
-
|
|
32
|
+
A.Form = C(
|
|
35
33
|
({
|
|
36
|
-
beginRefund:
|
|
37
|
-
currency:
|
|
34
|
+
beginRefund: i,
|
|
35
|
+
currency: s,
|
|
38
36
|
maxAmount: r,
|
|
39
37
|
mode: t,
|
|
40
|
-
refundedAmount:
|
|
41
|
-
refundingAmounts:
|
|
42
|
-
setRefundResult:
|
|
43
|
-
showDetails:
|
|
44
|
-
transaction:
|
|
38
|
+
refundedAmount: l,
|
|
39
|
+
refundingAmounts: o,
|
|
40
|
+
setRefundResult: m,
|
|
41
|
+
showDetails: p,
|
|
42
|
+
transaction: c
|
|
45
43
|
}) => {
|
|
46
|
-
const [n, u] =
|
|
44
|
+
const [n, u] = T(!1), [a, R] = T(K[0]), [d, U] = T(0), { i18n: E } = D(), g = S(() => {
|
|
47
45
|
switch (t) {
|
|
48
|
-
case
|
|
49
|
-
case
|
|
50
|
-
case
|
|
46
|
+
case f.FULL_AMOUNT:
|
|
47
|
+
case f.PARTIAL_AMOUNT:
|
|
48
|
+
case f.PARTIAL_LINE_ITEMS:
|
|
51
49
|
return r;
|
|
52
50
|
// case RefundMode.PARTIAL_LINE_ITEMS:
|
|
53
51
|
// return refundingItems.reduce((total, { amount, quantity }) => total + amount * quantity, 0);
|
|
54
52
|
default:
|
|
55
53
|
return 0;
|
|
56
54
|
}
|
|
57
|
-
}, [r, t]),
|
|
55
|
+
}, [r, t]), O = S(() => {
|
|
58
56
|
if (r > 0) {
|
|
59
|
-
const
|
|
57
|
+
const N = { amount: E.amount(r, s) };
|
|
60
58
|
switch (t) {
|
|
61
|
-
case
|
|
62
|
-
return
|
|
63
|
-
case
|
|
64
|
-
return
|
|
59
|
+
case f.FULL_AMOUNT:
|
|
60
|
+
return E.get("transactions.details.refund.alerts.refundableAmount", { values: N });
|
|
61
|
+
case f.PARTIAL_AMOUNT:
|
|
62
|
+
return E.get("transactions.details.refund.alerts.refundableMaximum", { values: N });
|
|
65
63
|
}
|
|
66
64
|
}
|
|
67
|
-
}, [
|
|
65
|
+
}, [E, s, r, t]);
|
|
68
66
|
return /* @__PURE__ */ e("div", { className: M, children: [
|
|
69
67
|
/* @__PURE__ */ e(H, {}),
|
|
70
|
-
/* @__PURE__ */ e(Y, { disabled: n, reason:
|
|
68
|
+
/* @__PURE__ */ e(Y, { disabled: n, reason: a, onChange: R }),
|
|
71
69
|
/* @__PURE__ */ e(
|
|
72
70
|
V,
|
|
73
71
|
{
|
|
74
|
-
currency:
|
|
75
|
-
disabled: n || t !==
|
|
76
|
-
onChange: (
|
|
77
|
-
value:
|
|
72
|
+
currency: s,
|
|
73
|
+
disabled: n || t !== f.PARTIAL_AMOUNT,
|
|
74
|
+
onChange: (N) => U(ee(0, N, g)),
|
|
75
|
+
value: g
|
|
78
76
|
}
|
|
79
77
|
),
|
|
80
|
-
|
|
78
|
+
O && /* @__PURE__ */ e(x, { variant: J.TIP, type: z.HIGHLIGHT, children: /* @__PURE__ */ e(h, { className: "adyen-pe-alert__description", el: j.DIV, variant: I.BODY, wide: !0, children: O }) }),
|
|
81
79
|
/* @__PURE__ */ e(
|
|
82
80
|
B,
|
|
83
81
|
{
|
|
84
|
-
beginRefund:
|
|
85
|
-
currency:
|
|
82
|
+
beginRefund: i,
|
|
83
|
+
currency: s,
|
|
86
84
|
disabled: n,
|
|
87
85
|
maxAmount: r,
|
|
88
|
-
refundAmount:
|
|
89
|
-
refundedAmount:
|
|
90
|
-
refundingAmounts:
|
|
91
|
-
refundReason:
|
|
86
|
+
refundAmount: d,
|
|
87
|
+
refundedAmount: l,
|
|
88
|
+
refundingAmounts: o,
|
|
89
|
+
refundReason: a,
|
|
92
90
|
setRefundInProgress: u,
|
|
93
|
-
setRefundResult:
|
|
94
|
-
showDetails:
|
|
95
|
-
transactionId:
|
|
91
|
+
setRefundResult: m,
|
|
92
|
+
showDetails: p,
|
|
93
|
+
transactionId: c.id
|
|
96
94
|
}
|
|
97
95
|
)
|
|
98
96
|
] });
|
|
99
97
|
}
|
|
100
98
|
);
|
|
101
|
-
|
|
102
|
-
const { i18n: t } =
|
|
103
|
-
let
|
|
104
|
-
const
|
|
105
|
-
return
|
|
106
|
-
}, [
|
|
99
|
+
A.Result = C(({ result: i, refreshTransaction: s, showDetails: r }) => {
|
|
100
|
+
const { i18n: t } = D(), { isErrorResult: l, iconName: o, titleKey: m, descriptionKey: p } = S(() => {
|
|
101
|
+
let c = "checkmark-circle-fill", n = "transactions.details.refund.alerts.refundSent", u = "transactions.details.refund.alerts.refundSuccess";
|
|
102
|
+
const a = i === "error";
|
|
103
|
+
return a && (c = "cross-circle-fill", n = "common.errors.somethingWentWrong", u = "transactions.details.refund.alerts.refundFailure"), { isErrorResult: a, iconName: c, titleKey: n, descriptionKey: u };
|
|
104
|
+
}, [i]);
|
|
107
105
|
return /* @__PURE__ */ e("div", { className: L, children: [
|
|
108
106
|
/* @__PURE__ */ e(
|
|
109
107
|
$,
|
|
110
108
|
{
|
|
111
109
|
className: Z(F, {
|
|
112
|
-
[w]:
|
|
113
|
-
[b]: !
|
|
110
|
+
[w]: l,
|
|
111
|
+
[b]: !l
|
|
114
112
|
}),
|
|
115
|
-
name:
|
|
113
|
+
name: o
|
|
116
114
|
}
|
|
117
115
|
),
|
|
118
|
-
/* @__PURE__ */ e(
|
|
119
|
-
/* @__PURE__ */ e(
|
|
116
|
+
/* @__PURE__ */ e(h, { className: q.MEDIUM, variant: I.TITLE, children: t.get(m) }),
|
|
117
|
+
/* @__PURE__ */ e(h, { variant: I.BODY, children: t.get(p) }),
|
|
120
118
|
/* @__PURE__ */ e(
|
|
121
119
|
G,
|
|
122
120
|
{
|
|
123
121
|
onClick: () => {
|
|
124
|
-
r(),
|
|
122
|
+
r(), s();
|
|
125
123
|
},
|
|
126
124
|
variant: Q.SECONDARY,
|
|
127
125
|
children: t.get("transactions.details.refund.actions.back")
|
|
@@ -130,5 +128,5 @@ _.Result = U(({ result: c, refreshTransaction: a, showDetails: r }) => {
|
|
|
130
128
|
] });
|
|
131
129
|
});
|
|
132
130
|
export {
|
|
133
|
-
|
|
131
|
+
A as default
|
|
134
132
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { ButtonVariant as
|
|
1
|
+
import { jsx as b } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import x from "classnames";
|
|
3
|
+
import { useMemo as e, useEffect as P } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { ButtonVariant as A } from "../../../../internal/Button/types.js";
|
|
5
5
|
import { ButtonActionsLayoutBasic as O } from "../../../../internal/Button/ButtonActions/types.js";
|
|
6
6
|
import { TX_DATA_CONTAINER as F, TX_DATA_ACTION_BAR as M, sharedTransactionDetailsEventProperties as W } from "../../constants.js";
|
|
7
7
|
import j from "../../../../internal/Button/ButtonActions/ButtonActions.js";
|
|
@@ -9,58 +9,57 @@ import k from "../../../../../core/Context/analytics/useAnalyticsContext.js";
|
|
|
9
9
|
import I from "../../../../../hooks/useMutation/useMutation.js";
|
|
10
10
|
import S from "../../../../../core/Context/useCoreContext.js";
|
|
11
11
|
import { useConfigContext as X } from "../../../../../core/ConfigContext/context.js";
|
|
12
|
-
const
|
|
13
|
-
beginRefund:
|
|
14
|
-
currency:
|
|
15
|
-
disabled:
|
|
16
|
-
maxAmount:
|
|
12
|
+
const Z = ({
|
|
13
|
+
beginRefund: T,
|
|
14
|
+
currency: a,
|
|
15
|
+
disabled: s,
|
|
16
|
+
maxAmount: i,
|
|
17
17
|
refundAmount: n,
|
|
18
|
-
refundedAmount:
|
|
19
|
-
refundingAmounts:
|
|
20
|
-
refundReason:
|
|
21
|
-
setRefundInProgress:
|
|
22
|
-
setRefundResult:
|
|
23
|
-
showDetails:
|
|
24
|
-
transactionId:
|
|
18
|
+
refundedAmount: g,
|
|
19
|
+
refundingAmounts: v,
|
|
20
|
+
refundReason: r,
|
|
21
|
+
setRefundInProgress: c,
|
|
22
|
+
setRefundResult: l,
|
|
23
|
+
showDetails: B,
|
|
24
|
+
transactionId: h
|
|
25
25
|
}) => {
|
|
26
|
-
const { initiateRefund:
|
|
26
|
+
const { initiateRefund: C } = X().endpoints, { isLoading: o, mutate: E } = I({ queryFn: C }), { i18n: t } = S(), u = n > 0 && n <= i, L = g === 0 && v.length === 0 && n === i, d = s || o || !u, N = e(() => t.get("transactions.details.refund.actions.back"), [t]), m = e(
|
|
27
27
|
() => ({
|
|
28
28
|
idle: t.get("transactions.details.refund.actions.refund.labels.payment"),
|
|
29
29
|
inProgress: `${t.get("transactions.details.refund.actions.refund.labels.inProgress")}..`
|
|
30
30
|
}),
|
|
31
31
|
[t]
|
|
32
|
-
),
|
|
33
|
-
const
|
|
34
|
-
return t.get("transactions.details.refund.actions.refund.labels.amount", { values:
|
|
35
|
-
}, [t,
|
|
36
|
-
disabled:
|
|
32
|
+
), f = e(() => {
|
|
33
|
+
const y = { amount: t.amount(n, a) };
|
|
34
|
+
return t.get("transactions.details.refund.actions.refund.labels.amount", { values: y });
|
|
35
|
+
}, [t, a, n]), p = o ? m.inProgress : u ? f : m.idle, D = k(), R = {
|
|
36
|
+
disabled: d,
|
|
37
37
|
event: async () => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
g(), (a = i.addEvent) == null || a.call(i, "Completed refund", {
|
|
38
|
+
if (!d) {
|
|
39
|
+
T(), D.addEvent?.("Completed refund", {
|
|
41
40
|
...W,
|
|
42
|
-
isFullRefund:
|
|
43
|
-
refundReason:
|
|
41
|
+
isFullRefund: L,
|
|
42
|
+
refundReason: r
|
|
44
43
|
});
|
|
45
44
|
try {
|
|
46
|
-
await
|
|
45
|
+
await E({ contentType: "application/json", body: { amount: { currency: a, value: n }, refundReason: r } }, { path: { transactionId: h } }), l("done");
|
|
47
46
|
} catch {
|
|
48
|
-
|
|
47
|
+
l("error");
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
state: o ? "loading" : void 0,
|
|
53
|
-
title:
|
|
54
|
-
variant:
|
|
55
|
-
ariaLabel: o ?
|
|
56
|
-
},
|
|
57
|
-
disabled:
|
|
58
|
-
event:
|
|
59
|
-
title:
|
|
60
|
-
variant:
|
|
52
|
+
title: p,
|
|
53
|
+
variant: A.PRIMARY,
|
|
54
|
+
ariaLabel: o ? f : p
|
|
55
|
+
}, _ = {
|
|
56
|
+
disabled: s,
|
|
57
|
+
event: B,
|
|
58
|
+
title: N,
|
|
59
|
+
variant: A.SECONDARY
|
|
61
60
|
};
|
|
62
|
-
return P(() =>
|
|
61
|
+
return P(() => c(o), [o, c]), /* @__PURE__ */ b("div", { className: x(F, M), children: /* @__PURE__ */ b(j, { actions: [R, _], layout: O.BUTTONS_END }) });
|
|
63
62
|
};
|
|
64
63
|
export {
|
|
65
|
-
|
|
64
|
+
Z as default
|
|
66
65
|
};
|
|
@@ -1,81 +1,80 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { TX_DATA_CONTAINER as
|
|
3
|
-
import
|
|
4
|
-
import { memo as
|
|
5
|
-
import { Tag as
|
|
6
|
-
import { TagVariant as
|
|
7
|
-
import { ARIA_ERROR_SUFFIX as
|
|
8
|
-
import { getDecimalAmount as
|
|
9
|
-
import { TypographyVariant as
|
|
10
|
-
import { useState as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useUniqueId as
|
|
15
|
-
import { Icon as
|
|
16
|
-
const
|
|
17
|
-
const { i18n: t } =
|
|
2
|
+
import { TX_DATA_CONTAINER as F, TX_DATA_INPUT_HEAD as M, TX_DATA_INPUT as $, TX_DATA_INPUT_CONTAINER_WITH_ERROR as B, TX_DATA_INPUT_CONTAINER_TEXT as H, TX_DATA_INPUT_CONTAINER_SHORT as L, TX_DATA_INPUT_CONTAINER as V } from "../../constants.js";
|
|
3
|
+
import Y from "classnames";
|
|
4
|
+
import { memo as j } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
5
|
+
import { Tag as k } from "../../../../internal/Tag/Tag.js";
|
|
6
|
+
import { TagVariant as W } from "../../../../internal/Tag/types.js";
|
|
7
|
+
import { ARIA_ERROR_SUFFIX as w } from "../../../../../core/Errors/constants.js";
|
|
8
|
+
import { getDecimalAmount as z, getDivider as G } from "../../../../../core/Localization/amount/amount-util.js";
|
|
9
|
+
import { TypographyVariant as R, TypographyElement as h } from "../../../../internal/Typography/types.js";
|
|
10
|
+
import { useState as E, useMemo as D, useRef as P, useCallback as J, useEffect as K } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
11
|
+
import Q from "../../../../../core/Context/useCoreContext.js";
|
|
12
|
+
import b from "../../../../internal/Typography/Typography.js";
|
|
13
|
+
import Z from "../../../../internal/FormFields/InputBase.js";
|
|
14
|
+
import { useUniqueId as O } from "../../../../../hooks/useUniqueId.js";
|
|
15
|
+
import { Icon as ee } from "../../../../internal/Icon/Icon.js";
|
|
16
|
+
const Ae = j(({ currency: n, disabled: c, onChange: g, value: x }) => {
|
|
17
|
+
const { i18n: t } = Q(), d = O(), I = O(), i = Math.log10(G(n)), r = parseInt(`${x}`, 10), f = z(r, n).toFixed(i), [U, X] = E(f), [p, y] = E(), C = D(() => {
|
|
18
18
|
const a = { amount: t.amount(r, n) };
|
|
19
19
|
return {
|
|
20
20
|
excess: t.get("transactions.details.refund.inputs.amount.errors.excess", { values: a }),
|
|
21
21
|
negative: t.get("transactions.details.refund.inputs.amount.errors.negative"),
|
|
22
22
|
required: t.get("transactions.details.refund.inputs.amount.errors.required")
|
|
23
23
|
};
|
|
24
|
-
}, [t, n, r]),
|
|
24
|
+
}, [t, n, r]), T = p && C[p], S = D(() => t.get("transactions.details.refund.inputs.amount.label"), [t]), s = P(null), A = J(
|
|
25
25
|
(a) => {
|
|
26
|
-
var R;
|
|
27
26
|
let l, o = a.value.trim();
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
let
|
|
34
|
-
|
|
27
|
+
const u = Math.trunc(+`${parseFloat(o)}e${i}`) || 0;
|
|
28
|
+
u || o ? (u < 0 && (l = "negative"), u > r && (l = "excess")) : l = "required";
|
|
29
|
+
const v = 1.1.toLocaleString(t.locale).match(/\d(.*?)\d/)?.[1] || ".", _ = o.split(v);
|
|
30
|
+
if (_.length === 2) {
|
|
31
|
+
const q = _[0];
|
|
32
|
+
let m = _[1];
|
|
33
|
+
m.length >= i && (m = m.substring(0, i), o = q + v + m, a.value = o);
|
|
35
34
|
}
|
|
36
|
-
|
|
35
|
+
X(o), y(l), g?.(l ? 0 : u);
|
|
37
36
|
},
|
|
38
|
-
[i, r,
|
|
39
|
-
),
|
|
40
|
-
return
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
else if (
|
|
44
|
-
s.current.value =
|
|
37
|
+
[i, r, g]
|
|
38
|
+
), N = P();
|
|
39
|
+
return K(() => {
|
|
40
|
+
if (N.current !== r)
|
|
41
|
+
N.current = r;
|
|
42
|
+
else if (c && p && s.current)
|
|
43
|
+
s.current.value = f;
|
|
45
44
|
else return;
|
|
46
|
-
s.current &&
|
|
47
|
-
}, [
|
|
48
|
-
/* @__PURE__ */ e("div", { className:
|
|
45
|
+
s.current && A(s.current);
|
|
46
|
+
}, [A, c, f, r]), /* @__PURE__ */ e("div", { className: F, children: [
|
|
47
|
+
/* @__PURE__ */ e("div", { className: M, children: /* @__PURE__ */ e("div", { id: I, children: /* @__PURE__ */ e(b, { el: h.SPAN, variant: R.BODY, stronger: !0, children: S }) }) }),
|
|
49
48
|
/* @__PURE__ */ e(
|
|
50
49
|
"div",
|
|
51
50
|
{
|
|
52
|
-
className:
|
|
53
|
-
[Y]: !0,
|
|
51
|
+
className: Y({
|
|
54
52
|
[V]: !0,
|
|
55
53
|
[L]: !0,
|
|
56
|
-
[H]:
|
|
54
|
+
[H]: !0,
|
|
55
|
+
[B]: T
|
|
57
56
|
}),
|
|
58
57
|
children: [
|
|
59
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
60
|
-
n && /* @__PURE__ */ e(
|
|
58
|
+
/* @__PURE__ */ e("label", { htmlFor: d, "aria-labelledby": I, children: [
|
|
59
|
+
n && /* @__PURE__ */ e(k, { label: n, variant: W.DEFAULT }),
|
|
61
60
|
/* @__PURE__ */ e(
|
|
62
|
-
|
|
61
|
+
Z,
|
|
63
62
|
{
|
|
64
63
|
min: 0,
|
|
65
64
|
type: "number",
|
|
66
|
-
className:
|
|
67
|
-
disabled:
|
|
65
|
+
className: $,
|
|
66
|
+
disabled: c,
|
|
68
67
|
lang: t.locale,
|
|
69
|
-
onInput: (a) =>
|
|
70
|
-
value:
|
|
71
|
-
uniqueId:
|
|
68
|
+
onInput: (a) => A(a.currentTarget),
|
|
69
|
+
value: U,
|
|
70
|
+
uniqueId: d,
|
|
72
71
|
ref: s
|
|
73
72
|
}
|
|
74
73
|
)
|
|
75
74
|
] }),
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */ e(
|
|
78
|
-
/* @__PURE__ */ e(
|
|
75
|
+
T && /* @__PURE__ */ e("div", { className: "adyen-pe-input__refund-invalid-value", id: `${d}${w}`, children: [
|
|
76
|
+
/* @__PURE__ */ e(ee, { name: "cross-circle-fill" }),
|
|
77
|
+
/* @__PURE__ */ e(b, { el: h.SPAN, variant: R.BODY, children: T })
|
|
79
78
|
] })
|
|
80
79
|
]
|
|
81
80
|
}
|
|
@@ -83,5 +82,5 @@ const _e = k(({ currency: n, disabled: d, onChange: u, value: U }) => {
|
|
|
83
82
|
] });
|
|
84
83
|
});
|
|
85
84
|
export {
|
|
86
|
-
|
|
85
|
+
Ae as default
|
|
87
86
|
};
|
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { REFUND_REASONS as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { getTransactionRefundReason as
|
|
5
|
-
import { TypographyVariant as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useUniqueId as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
const { i18n: a } =
|
|
12
|
-
() =>
|
|
13
|
-
name:
|
|
2
|
+
import { REFUND_REASONS as T, TX_DATA_CONTAINER as p, TX_DATA_INPUT_HEAD as f, TX_DATA_INPUT_CONTAINER as u, TX_DATA_INPUT_CONTAINER_SHORT as N } from "../../constants.js";
|
|
3
|
+
import { useMemo as n, useCallback as A } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { getTransactionRefundReason as _ } from "../../../../utils/translation/getters.js";
|
|
5
|
+
import { TypographyVariant as R, TypographyElement as y } from "../../../../internal/Typography/types.js";
|
|
6
|
+
import g from "../../../../../core/Context/useCoreContext.js";
|
|
7
|
+
import h from "../../../../internal/Typography/Typography.js";
|
|
8
|
+
import { useUniqueId as I } from "../../../../../hooks/useUniqueId.js";
|
|
9
|
+
import b from "../../../../internal/FormFields/Select/Select.js";
|
|
10
|
+
const x = ({ disabled: l, onChange: r, reason: i }) => {
|
|
11
|
+
const { i18n: a } = g(), o = I(), m = n(() => a.get("transactions.details.refund.inputs.reason.label"), [a]), c = n(
|
|
12
|
+
() => T.map((t) => ({
|
|
13
|
+
name: _(a, t),
|
|
14
14
|
id: t
|
|
15
15
|
})),
|
|
16
16
|
[a]
|
|
17
|
-
),
|
|
17
|
+
), d = A(
|
|
18
18
|
(t) => {
|
|
19
|
-
|
|
20
|
-
const s = (n = t.target) == null ? void 0 : n.value;
|
|
19
|
+
const s = t.target?.value;
|
|
21
20
|
s && r(s);
|
|
22
21
|
},
|
|
23
22
|
[r]
|
|
24
23
|
);
|
|
25
|
-
return /* @__PURE__ */ e("div", { className:
|
|
26
|
-
/* @__PURE__ */ e("div", { id: o, className:
|
|
27
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
28
|
-
|
|
24
|
+
return /* @__PURE__ */ e("div", { className: p, children: [
|
|
25
|
+
/* @__PURE__ */ e("div", { id: o, className: f, children: /* @__PURE__ */ e(h, { el: y.SPAN, variant: R.BODY, stronger: !0, children: m }) }),
|
|
26
|
+
/* @__PURE__ */ e("div", { className: `${u} ${N}`, children: /* @__PURE__ */ e(
|
|
27
|
+
b,
|
|
29
28
|
{
|
|
30
29
|
"aria-labelledby": o,
|
|
31
30
|
filterable: !1,
|
|
32
31
|
multiSelect: !1,
|
|
33
|
-
readonly:
|
|
34
|
-
items:
|
|
35
|
-
onChange:
|
|
36
|
-
selected:
|
|
32
|
+
readonly: l,
|
|
33
|
+
items: c,
|
|
34
|
+
onChange: d,
|
|
35
|
+
selected: i
|
|
37
36
|
}
|
|
38
37
|
) })
|
|
39
38
|
] });
|
|
40
39
|
};
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
x as default
|
|
43
42
|
};
|