@adyen/adyen-platform-experience-web 1.4.2 → 1.5.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 -1
- package/dist/{angle-right-C1JIrQTg.cjs → angle-right-B2I_t62j.cjs} +2 -2
- package/dist/{angle-right-C1JIrQTg.cjs.map → angle-right-B2I_t62j.cjs.map} +1 -1
- package/dist/{checkmark-B8DhX3p1.cjs → checkmark-CIwP_FdK.cjs} +2 -2
- package/dist/{checkmark-B8DhX3p1.cjs.map → checkmark-CIwP_FdK.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs → checkmark-circle-fill-Cw5UXqzN.cjs} +2 -2
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs.map → checkmark-circle-fill-Cw5UXqzN.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs → checkmark-square-fill-BwkQfKCG.cjs} +2 -2
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs.map → checkmark-square-fill-BwkQfKCG.cjs.map} +1 -1
- package/dist/{chevron-down-CB77LxQY.cjs → chevron-down-BuYiZOY7.cjs} +2 -2
- package/dist/{chevron-down-CB77LxQY.cjs.map → chevron-down-BuYiZOY7.cjs.map} +1 -1
- package/dist/{chevron-left-DMAmIvLF.cjs → chevron-left-DhRCcHqQ.cjs} +2 -2
- package/dist/{chevron-left-DMAmIvLF.cjs.map → chevron-left-DhRCcHqQ.cjs.map} +1 -1
- package/dist/{chevron-right-BxLJu7Zf.cjs → chevron-right-DvPR8FD2.cjs} +2 -2
- package/dist/{chevron-right-BxLJu7Zf.cjs.map → chevron-right-DvPR8FD2.cjs.map} +1 -1
- package/dist/{chevron-up-CT79XJdh.cjs → chevron-up-DFrrO8PJ.cjs} +2 -2
- package/dist/{chevron-up-CT79XJdh.cjs.map → chevron-up-DFrrO8PJ.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-7UpFtMvt.cjs → copy-Bl3l133y.cjs} +2 -2
- package/dist/{copy-7UpFtMvt.cjs.map → copy-Bl3l133y.cjs.map} +1 -1
- package/dist/{cross-DtVirgrN.cjs → cross-BtdvCTEP.cjs} +2 -2
- package/dist/{cross-DtVirgrN.cjs.map → cross-BtdvCTEP.cjs.map} +1 -1
- package/dist/{cross-circle-fill-C47yImD2.cjs → cross-circle-fill-BBjJLOad.cjs} +2 -2
- package/dist/{cross-circle-fill-C47yImD2.cjs.map → cross-circle-fill-BBjJLOad.cjs.map} +1 -1
- package/dist/da-DK-qSZWEjaU.cjs +2 -0
- package/dist/da-DK-qSZWEjaU.cjs.map +1 -0
- package/dist/de-DE-Dngq7NwF.cjs +2 -0
- package/dist/de-DE-Dngq7NwF.cjs.map +1 -0
- package/dist/{download-A1m1wB_K.cjs → download-Cqu4yqTE.cjs} +2 -2
- package/dist/{download-A1m1wB_K.cjs.map → download-Cqu4yqTE.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +14 -14
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +20 -20
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +73 -62
- package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +6 -6
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +0 -1
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +14 -14
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +4 -4
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +1 -1
- package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +13 -13
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +2 -2
- package/dist/es/components/external/CapitalOverview/constants.js +0 -1
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +21 -21
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +17 -17
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +4 -4
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +16 -16
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +20 -20
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +4 -4
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +8 -8
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +2 -2
- package/dist/es/components/external/TransactionDetails/context/details/context.js +10 -10
- package/dist/es/components/external/TransactionDetails/context/refund/context.js +1 -1
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +2 -2
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +20 -20
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +8 -8
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +66 -66
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +19 -19
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +3 -3
- package/dist/es/components/internal/Accordion/Accordion.js +10 -10
- package/dist/es/components/internal/Alert/Alert.js +1 -1
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +5 -5
- package/dist/es/components/internal/Button/hooks/useButton.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +104 -104
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +12 -12
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -14
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +58 -58
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +6 -6
- package/dist/es/components/internal/Calendar/calendar/utils.js +22 -22
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +11 -11
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +22 -22
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +7 -7
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +12 -12
- package/dist/es/components/internal/CapitalHeader/constants.js +4 -4
- package/dist/es/components/internal/CapitalHeader/helpers.js +14 -12
- package/dist/es/components/internal/Card/Card.js +9 -9
- package/dist/es/components/internal/DataGrid/DataGridCell.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableCells.js +16 -16
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +13 -13
- 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 +3 -3
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -2
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +23 -23
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +31 -31
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +15 -15
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +9 -9
- package/dist/es/components/internal/FormFields/InputBase.js +5 -5
- package/dist/es/components/internal/FormFields/Select/Select.js +15 -15
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +43 -43
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +14 -14
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +5 -5
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +2 -2
- package/dist/es/components/internal/Header/Header.js +4 -4
- package/dist/es/components/internal/Icon/Icon.js +3 -3
- package/dist/es/components/internal/Img/Img.js +2 -2
- package/dist/es/components/internal/Link/Link.js +2 -2
- package/dist/es/components/internal/Modal/Modal.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +12 -12
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +22 -22
- package/dist/es/components/internal/Popover/Popover.js +4 -4
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +3 -3
- package/dist/es/components/internal/SVGIcons/Checkmark.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +12 -10
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +12 -10
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +1 -1
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/es/components/internal/StructuredList/StructuredList.js +4 -4
- package/dist/es/components/internal/Translation/Translation.js +15 -15
- package/dist/es/components/utils/getErrorMessage.js +2 -2
- package/dist/es/constants/dateFormats.js +3 -3
- package/dist/es/core/ConfigContext/context.js +18 -18
- package/dist/es/core/ConfigContext/session/AuthSession.js +36 -36
- package/dist/es/core/ConfigContext/session/AuthSessionSpecification.js +7 -7
- package/dist/es/core/ConfigContext/session/SetupContext.js +5 -5
- package/dist/es/core/ConfigContext/session/constants.js +8 -8
- package/dist/es/core/ConfigContext/session/utils/sessionReady.js +5 -5
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/Localization.js +32 -32
- package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
- package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
- package/dist/es/core/Localization/utils.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +40 -40
- package/dist/es/external/preact/dist/preact.module.js +197 -195
- package/dist/es/external/preact/hooks/dist/hooks.module.js +71 -67
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -9
- package/dist/es/hooks/element/useDetachedRender.js +11 -11
- package/dist/es/hooks/element/useFocusTrap.js +5 -5
- package/dist/es/hooks/useBalanceAccountSelection.js +10 -10
- package/dist/es/hooks/useCommitAction/useCommitAction.js +7 -7
- package/dist/es/hooks/useContainerQuery.js +4 -4
- package/dist/es/hooks/useCustomColumnsData.js +2 -2
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +18 -18
- package/dist/es/hooks/useFetch.js +22 -22
- package/dist/es/hooks/useModalDetails/useModalDetails.js +7 -7
- package/dist/es/hooks/useMutation/useMutation.js +3 -3
- package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -21
- package/dist/es/hooks/useResponsiveContainer.js +7 -10
- package/dist/es/hooks/useTabbedControl.js +9 -9
- package/dist/es/primitives/async/abortable/main.js +9 -9
- package/dist/es/primitives/async/deferred/main.js +1 -1
- package/dist/es/primitives/auxiliary/errorContainer/main.js +9 -9
- package/dist/es/primitives/auxiliary/indexed/helpers.js +4 -4
- package/dist/es/primitives/auxiliary/indexed/main.js +7 -7
- package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
- package/dist/es/primitives/context/session/internal/deadline.js +22 -22
- package/dist/es/primitives/context/session/internal/refresher.js +19 -19
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -3
- package/dist/es/primitives/reactive/eventEmitter/main.js +3 -3
- package/dist/es/primitives/reactive/reflex/main.js +22 -22
- package/dist/es/primitives/reactive/reflex/register.js +25 -25
- package/dist/es/primitives/reactive/watchlist/main.js +24 -24
- package/dist/es/primitives/time/clock/main.js +6 -6
- package/dist/es/primitives/time/interval/main.js +9 -9
- package/dist/es/translations/da-DK.json.js +55 -46
- package/dist/es/translations/de-DE.json.js +67 -58
- package/dist/es/translations/en-US.json.js +33 -30
- package/dist/es/translations/es-ES.json.js +91 -82
- package/dist/es/translations/fi-FI.json.js +93 -84
- package/dist/es/translations/fr-FR.json.js +75 -66
- package/dist/es/translations/it-IT.json.js +95 -86
- package/dist/es/translations/nl-NL.json.js +92 -83
- package/dist/es/translations/no-NO.json.js +71 -62
- package/dist/es/translations/pt-BR.json.js +67 -58
- package/dist/es/translations/sv-SE.json.js +95 -86
- package/dist/es/utils/abort/internals.js +3 -3
- package/dist/es/utils/abort/main.js +19 -19
- package/dist/es/utils/collection/main.js +14 -14
- package/dist/es/utils/datetime/main.js +3 -3
- package/dist/es/utils/preact/className.js +2 -2
- package/dist/es/utils/struct/main.js +8 -8
- package/dist/es/utils/value/is.js +9 -9
- package/dist/es/utils/value/number.js +2 -2
- package/dist/es-ES-Bjddx94n.cjs +2 -0
- package/dist/es-ES-Bjddx94n.cjs.map +1 -0
- package/dist/{external-link-Ct-WlQoY.cjs → external-link-CqDz5BtK.cjs} +2 -2
- package/dist/{external-link-Ct-WlQoY.cjs.map → external-link-CqDz5BtK.cjs.map} +1 -1
- package/dist/fi-FI-CNpmToDG.cjs +2 -0
- package/dist/fi-FI-CNpmToDG.cjs.map +1 -0
- package/dist/{filter-DwSaMAG7.cjs → filter-DLAt7sYb.cjs} +2 -2
- package/dist/{filter-DwSaMAG7.cjs.map → filter-DLAt7sYb.cjs.map} +1 -1
- package/dist/fr-FR-CUUHB8JU.cjs +2 -0
- package/dist/fr-FR-CUUHB8JU.cjs.map +1 -0
- package/dist/index-DbNUA_xB.cjs +12 -0
- package/dist/index-DbNUA_xB.cjs.map +1 -0
- package/dist/{info-filled-bhD2VGA2.cjs → info-filled-B9fmmNGT.cjs} +2 -2
- package/dist/{info-filled-bhD2VGA2.cjs.map → info-filled-B9fmmNGT.cjs.map} +1 -1
- package/dist/it-IT-B-E80zCo.cjs +2 -0
- package/dist/it-IT-B-E80zCo.cjs.map +1 -0
- package/dist/{minus-circle-outline-pNXlRjce.cjs → minus-circle-outline-JkeH7g3f.cjs} +2 -2
- package/dist/{minus-circle-outline-pNXlRjce.cjs.map → minus-circle-outline-JkeH7g3f.cjs.map} +1 -1
- package/dist/nl-NL--CGhOJhH.cjs +2 -0
- package/dist/nl-NL--CGhOJhH.cjs.map +1 -0
- package/dist/no-NO-D0UNXgzr.cjs +2 -0
- package/dist/no-NO-D0UNXgzr.cjs.map +1 -0
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs → plus-circle-outline-Cmz1Lb00.cjs} +2 -2
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs.map → plus-circle-outline-Cmz1Lb00.cjs.map} +1 -1
- package/dist/pt-BR-Du4cDUgf.cjs +2 -0
- package/dist/pt-BR-Du4cDUgf.cjs.map +1 -0
- package/dist/{square-C3hb1Bxz.cjs → square-Bow_5TP1.cjs} +2 -2
- package/dist/{square-C3hb1Bxz.cjs.map → square-Bow_5TP1.cjs.map} +1 -1
- package/dist/sv-SE-C92aO-iv.cjs +2 -0
- package/dist/sv-SE-C92aO-iv.cjs.map +1 -0
- package/dist/{trash-can-D2GRVBnJ.cjs → trash-can-DLEmgXUG.cjs} +2 -2
- package/dist/{trash-can-D2GRVBnJ.cjs.map → trash-can-DLEmgXUG.cjs.map} +1 -1
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +71 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts +2 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -3
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +1 -1
- 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/CloseCircle.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +2 -0
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +4 -0
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +2 -0
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +3 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +1 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
- package/dist/{upload-CeUcEWmW.cjs → upload-DWOtVcWc.cjs} +2 -2
- package/dist/{upload-CeUcEWmW.cjs.map → upload-DWOtVcWc.cjs.map} +1 -1
- package/dist/{warning-C2NpcmL8.cjs → warning-DNUR39rT.cjs} +2 -2
- package/dist/{warning-C2NpcmL8.cjs.map → warning-DNUR39rT.cjs.map} +1 -1
- package/dist/{warning-filled-Bo82QPPc.cjs → warning-filled-qxDqTfWV.cjs} +2 -2
- package/dist/{warning-filled-Bo82QPPc.cjs.map → warning-filled-qxDqTfWV.cjs.map} +1 -1
- package/package.json +15 -14
- package/dist/da-DK-DHGqGo8Q.cjs +0 -2
- package/dist/da-DK-DHGqGo8Q.cjs.map +0 -1
- package/dist/de-DE-k_BRPv7a.cjs +0 -2
- package/dist/de-DE-k_BRPv7a.cjs.map +0 -1
- package/dist/es-ES-Cy-9bm8z.cjs +0 -2
- package/dist/es-ES-Cy-9bm8z.cjs.map +0 -1
- package/dist/fi-FI-C7ICLuS8.cjs +0 -2
- package/dist/fi-FI-C7ICLuS8.cjs.map +0 -1
- package/dist/fr-FR-DH8euUOp.cjs +0 -2
- package/dist/fr-FR-DH8euUOp.cjs.map +0 -1
- package/dist/index-CpBGZ2AH.cjs +0 -12
- package/dist/index-CpBGZ2AH.cjs.map +0 -1
- package/dist/it-IT-DsfPVAun.cjs +0 -2
- package/dist/it-IT-DsfPVAun.cjs.map +0 -1
- package/dist/nl-NL-DP_t6EpF.cjs +0 -2
- package/dist/nl-NL-DP_t6EpF.cjs.map +0 -1
- package/dist/no-NO-ARsXLWv0.cjs +0 -2
- package/dist/no-NO-ARsXLWv0.cjs.map +0 -1
- package/dist/pt-BR-CuTqntp7.cjs +0 -2
- package/dist/pt-BR-CuTqntp7.cjs.map +0 -1
- package/dist/sv-SE-DDAIHLKD.cjs +0 -2
- package/dist/sv-SE-DDAIHLKD.cjs.map +0 -1
package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useCallback as A, useMemo as
|
|
2
|
+
import { useCallback as A, useMemo as c, useEffect as Q } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import V from "../../../../../hooks/useBalanceAccountSelection.js";
|
|
4
4
|
import W from "../../../../../hooks/useDefaultOverviewFilterParams.js";
|
|
5
5
|
import X from "../../../../internal/FilterBar/filters/DateFilter/DateFilter.js";
|
|
@@ -15,11 +15,11 @@ import oe from "../../../../internal/Pagination/hooks/useCursorPaginatedRecords.
|
|
|
15
15
|
import { useFilterBarState as le, FilterBarMobileSwitch as ie, FilterBar as pe } from "../../../../internal/FilterBar/FilterBar.js";
|
|
16
16
|
import me from "../../../../internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js";
|
|
17
17
|
import { useConfigContext as fe } from "../../../../../core/ConfigContext/context.js";
|
|
18
|
-
import { isFunction as
|
|
19
|
-
import { Header as
|
|
18
|
+
import { isFunction as ce } from "../../../../../utils/value/is.js";
|
|
19
|
+
import { Header as ne } from "../../../../internal/Header/Header.js";
|
|
20
20
|
const we = ({
|
|
21
21
|
onFiltersChanged: i,
|
|
22
|
-
balanceAccounts:
|
|
22
|
+
balanceAccounts: n,
|
|
23
23
|
allowLimitSelection: d,
|
|
24
24
|
preferredLimit: _ = $,
|
|
25
25
|
isLoadingBalanceAccount: L,
|
|
@@ -27,8 +27,8 @@ const we = ({
|
|
|
27
27
|
hideTitle: h,
|
|
28
28
|
dataCustomization: e
|
|
29
29
|
}) => {
|
|
30
|
-
var S,
|
|
31
|
-
const { getReports: p } = fe().endpoints, { activeBalanceAccount: r, balanceAccountSelectionOptions: O, onBalanceAccountSelection: g } = V(
|
|
30
|
+
var S, D, R, u;
|
|
31
|
+
const { getReports: p } = fe().endpoints, { activeBalanceAccount: r, balanceAccountSelectionOptions: O, onBalanceAccountSelection: g } = V(n), { defaultParams: o, nowTimestamp: N, refreshNowTimestamp: m } = W("reports", r), b = A(
|
|
32
32
|
async (t, f) => p({ signal: f, errorLevel: "error" }, {
|
|
33
33
|
query: {
|
|
34
34
|
...t,
|
|
@@ -39,7 +39,7 @@ const we = ({
|
|
|
39
39
|
}
|
|
40
40
|
}),
|
|
41
41
|
[r == null ? void 0 : r.id, o, p]
|
|
42
|
-
), E = le(), y =
|
|
42
|
+
), E = le(), y = c(() => ce(i) ? i : void 0, [i]), U = c(() => d ? Z : void 0, [d]), { canResetFilters: w, error: v, fetching: M, filters: T, limit: x, limitOptions: q, records: F, resetFilters: de, updateFilters: K, updateLimit: j, ...k } = oe({
|
|
43
43
|
fetchRecords: b,
|
|
44
44
|
dataField: "data",
|
|
45
45
|
filterParams: o.current.defaultFilterParams,
|
|
@@ -51,19 +51,19 @@ const we = ({
|
|
|
51
51
|
}), B = A(
|
|
52
52
|
({ records: t, retrievedData: f }) => se(t, f, (I, J) => I.createdAt === J.createdAt),
|
|
53
53
|
[]
|
|
54
|
-
), G =
|
|
54
|
+
), G = c(() => {
|
|
55
55
|
var t;
|
|
56
56
|
return te((t = e == null ? void 0 : e.list) == null ? void 0 : t.fields, a);
|
|
57
57
|
}, [(S = e == null ? void 0 : e.list) == null ? void 0 : S.fields]), { customRecords: H, loadingCustomRecords: Y } = re({
|
|
58
58
|
records: F,
|
|
59
59
|
hasCustomColumn: G,
|
|
60
|
-
onDataRetrieve: (
|
|
60
|
+
onDataRetrieve: (D = e == null ? void 0 : e.list) == null ? void 0 : D.onDataRetrieve,
|
|
61
61
|
mergeCustomData: B
|
|
62
62
|
});
|
|
63
63
|
return Q(() => {
|
|
64
64
|
m();
|
|
65
65
|
}, [T, m]), /* @__PURE__ */ s("div", { className: z, children: [
|
|
66
|
-
/* @__PURE__ */ s(
|
|
66
|
+
/* @__PURE__ */ s(ne, { hideTitle: h, titleKey: "reportsTitle", subtitleKey: "reportsNotice", children: /* @__PURE__ */ s(ie, { ...E }) }),
|
|
67
67
|
/* @__PURE__ */ s(pe, { ...E, children: [
|
|
68
68
|
/* @__PURE__ */ s(
|
|
69
69
|
me,
|
|
@@ -91,15 +91,15 @@ const we = ({
|
|
|
91
91
|
C,
|
|
92
92
|
{
|
|
93
93
|
balanceAccountId: r == null ? void 0 : r.id,
|
|
94
|
-
loading:
|
|
95
|
-
data: (
|
|
94
|
+
loading: M || L || !n || !r || Y,
|
|
95
|
+
data: (R = e == null ? void 0 : e.list) != null && R.onDataRetrieve ? H : F,
|
|
96
96
|
showPagination: !0,
|
|
97
|
-
limit:
|
|
98
|
-
limitOptions:
|
|
97
|
+
limit: x,
|
|
98
|
+
limitOptions: q,
|
|
99
99
|
onContactSupport: P,
|
|
100
100
|
onLimitSelection: j,
|
|
101
|
-
error:
|
|
102
|
-
customColumns: (
|
|
101
|
+
error: v,
|
|
102
|
+
customColumns: (u = e == null ? void 0 : e.list) == null ? void 0 : u.fields,
|
|
103
103
|
...k
|
|
104
104
|
}
|
|
105
105
|
)
|
|
@@ -15,8 +15,8 @@ import { BASE_CLASS as G, DATE_TYPE_CLASS as $, DATE_TYPE_DATE_SECTION_CLASS as
|
|
|
15
15
|
/* empty css */
|
|
16
16
|
import { useTableColumns as V } from "../../../../../hooks/useTableColumns.js";
|
|
17
17
|
import g from "../../../../internal/DataGrid/DataGrid.js";
|
|
18
|
-
import { DATE_FORMAT_REPORTS as D } from "../../../../../constants/dateFormats.js";
|
|
19
18
|
import X from "../../../../internal/Pagination/Pagination.js";
|
|
19
|
+
import { DATE_FORMAT_REPORTS as D } from "../../../../../constants/dateFormats.js";
|
|
20
20
|
import { useConfigContext as H } from "../../../../../core/ConfigContext/context.js";
|
|
21
21
|
const J = ["createdAt", "dateAndReportType", "reportType", "reportFile"], ge = ({
|
|
22
22
|
error: i,
|
|
@@ -4,26 +4,26 @@ import { useState as N, useMemo as V, useCallback as i, useLayoutEffect as X } f
|
|
|
4
4
|
import ue from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import { useFetch as de } from "../../../../../hooks/useFetch.js";
|
|
6
6
|
import { Alert as v } from "../../../../internal/Alert/Alert.js";
|
|
7
|
-
import {
|
|
7
|
+
import { AlertVariantOption as b, AlertTypeOption as Y } from "../../../../internal/Alert/types.js";
|
|
8
8
|
import fe from "../../../../internal/Button/ButtonActions/ButtonActions.js";
|
|
9
9
|
import { ButtonActionsLayoutBasic as pe } from "../../../../internal/Button/ButtonActions/types.js";
|
|
10
|
-
import { ButtonVariant as
|
|
10
|
+
import { ButtonVariant as h } from "../../../../internal/Button/types.js";
|
|
11
11
|
import Ae from "../../../../internal/DataOverviewDetails/DataOverviewDetailsSkeleton.js";
|
|
12
|
-
import {
|
|
12
|
+
import { TypographyVariant as H, TypographyModifier as Te } from "../../../../internal/Typography/types.js";
|
|
13
13
|
import x from "../../../../internal/Typography/Typography.js";
|
|
14
14
|
import { ActiveView as a, RefundMode as y } from "../../context/types.js";
|
|
15
|
-
import { TX_DATA_ACTION_BAR as Re, TX_REFUND_STATUSES_CONTAINER as Ne, TX_REFUND_RESPONSE_ICON as G, TX_REFUND_RESPONSE_ERROR_ICON as Ee, TX_REFUND_RESPONSE_SUCCESS_ICON as Se, TX_STATUS_BOX as _e,
|
|
15
|
+
import { TX_DATA_ACTION_BAR as Re, TX_REFUND_STATUSES_CONTAINER as Ne, TX_REFUND_RESPONSE_ICON as G, TX_REFUND_RESPONSE_ERROR_ICON as Ee, TX_REFUND_RESPONSE_SUCCESS_ICON as Se, TX_STATUS_BOX as _e, TX_REFUND_RESPONSE as De, TX_DATA_CLASS as Ie } from "../constants.js";
|
|
16
16
|
import ve from "../details/TransactionDataProperties.js";
|
|
17
17
|
import $ from "../details/TransactionDetailsDataContainer.js";
|
|
18
|
-
import
|
|
19
|
-
import { TransactionRefundFullAmountInput as
|
|
18
|
+
import be from "../details/TransactionStatusBox.js";
|
|
19
|
+
import { TransactionRefundFullAmountInput as he, TransactionRefundPartialAmountInput as ye } from "../refund/TransactionRefundAmount.js";
|
|
20
20
|
import Ce from "../refund/TransactionRefundNotice.js";
|
|
21
21
|
import Oe from "../refund/TransactionRefundReason.js";
|
|
22
22
|
/* empty css */
|
|
23
23
|
import { useTransaction as ge } from "../../hooks/useTransaction/useTransaction.js";
|
|
24
24
|
import { useTransactionRefundMetadata as Pe } from "../../hooks/useTransactionRefundMetadata/useTransactionRefundMetadata.js";
|
|
25
|
-
import
|
|
26
|
-
import q from "../../../../internal/
|
|
25
|
+
import j from "../../../../internal/Button/Button.js";
|
|
26
|
+
import { Icon as q } from "../../../../internal/Icon/Icon.js";
|
|
27
27
|
import { TransactionRefundProvider as Le } from "../../context/refund/context.js";
|
|
28
28
|
import { TransactionDetailsProvider as Be } from "../../context/details/context.js";
|
|
29
29
|
import { EMPTY_ARRAY as Ue, EMPTY_OBJECT as Me } from "../../../../../utils/value/constants.js";
|
|
@@ -32,7 +32,7 @@ const W = ({
|
|
|
32
32
|
children: s,
|
|
33
33
|
renderViewActionButtons: o,
|
|
34
34
|
renderViewMessageBox: c
|
|
35
|
-
}) => /* @__PURE__ */ e("div", { className:
|
|
35
|
+
}) => /* @__PURE__ */ e("div", { className: Ie, children: [
|
|
36
36
|
s,
|
|
37
37
|
c && c(),
|
|
38
38
|
o()
|
|
@@ -41,7 +41,7 @@ const W = ({
|
|
|
41
41
|
title: o,
|
|
42
42
|
renderIcon: c,
|
|
43
43
|
subtitle: p
|
|
44
|
-
}) => /* @__PURE__ */ e("div", { className:
|
|
44
|
+
}) => /* @__PURE__ */ e("div", { className: De, children: [
|
|
45
45
|
c && c(),
|
|
46
46
|
/* @__PURE__ */ e(x, { className: Te.MEDIUM, variant: H.TITLE, children: o }),
|
|
47
47
|
/* @__PURE__ */ e(x, { variant: H.BODY, children: p }),
|
|
@@ -81,7 +81,7 @@ const W = ({
|
|
|
81
81
|
var k, w;
|
|
82
82
|
return {
|
|
83
83
|
title: l.value,
|
|
84
|
-
variant:
|
|
84
|
+
variant: h.SECONDARY,
|
|
85
85
|
event: (k = l.config) == null ? void 0 : k.action,
|
|
86
86
|
classNames: (w = l.config) != null && w.className ? [l.config.className] : []
|
|
87
87
|
};
|
|
@@ -94,14 +94,14 @@ const W = ({
|
|
|
94
94
|
v,
|
|
95
95
|
{
|
|
96
96
|
type: Y.HIGHLIGHT,
|
|
97
|
-
variant:
|
|
97
|
+
variant: b.TIP,
|
|
98
98
|
description: `${r.get("refund.theRefundIsBeingProcessed")} ${r.get("pleaseComeBackLater")}`
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
101
|
u.map((t, R) => /* @__PURE__ */ e(
|
|
102
102
|
v,
|
|
103
103
|
{
|
|
104
|
-
variant:
|
|
104
|
+
variant: b.TIP,
|
|
105
105
|
type: (t == null ? void 0 : t.type) ?? Y.HIGHLIGHT,
|
|
106
106
|
description: t == null ? void 0 : t.label
|
|
107
107
|
},
|
|
@@ -134,7 +134,7 @@ const W = ({
|
|
|
134
134
|
extraFields: o,
|
|
135
135
|
dataCustomization: c,
|
|
136
136
|
children: [
|
|
137
|
-
/* @__PURE__ */ e($, { className: _e, children: /* @__PURE__ */ e(
|
|
137
|
+
/* @__PURE__ */ e($, { className: _e, children: /* @__PURE__ */ e(be, { transaction: n, refundedState: oe }) }),
|
|
138
138
|
/* @__PURE__ */ e(ve, {})
|
|
139
139
|
]
|
|
140
140
|
}
|
|
@@ -152,12 +152,12 @@ const W = ({
|
|
|
152
152
|
children: [
|
|
153
153
|
/* @__PURE__ */ e(Ce, {}),
|
|
154
154
|
ee && /* @__PURE__ */ e(Oe, {}),
|
|
155
|
-
T === y.FULL_AMOUNT && /* @__PURE__ */ e(
|
|
155
|
+
T === y.FULL_AMOUNT && /* @__PURE__ */ e(he, {}),
|
|
156
156
|
(T === y.PARTIAL_AMOUNT || T === y.PARTIAL_LINE_ITEMS) && /* @__PURE__ */ e(ye, { locale: r.locale }),
|
|
157
157
|
S && /* @__PURE__ */ e(
|
|
158
158
|
v,
|
|
159
159
|
{
|
|
160
|
-
variant:
|
|
160
|
+
variant: b.TIP,
|
|
161
161
|
type: S.type,
|
|
162
162
|
description: S.description
|
|
163
163
|
}
|
|
@@ -169,20 +169,20 @@ const W = ({
|
|
|
169
169
|
return /* @__PURE__ */ e(
|
|
170
170
|
z,
|
|
171
171
|
{
|
|
172
|
-
renderIcon: () => /* @__PURE__ */ e(
|
|
172
|
+
renderIcon: () => /* @__PURE__ */ e(q, { name: "checkmark-circle-fill", className: F(G, Se) }),
|
|
173
173
|
title: r.get("refundActionSuccessTitle"),
|
|
174
174
|
subtitle: r.get("refundActionSuccessSubtitle"),
|
|
175
|
-
action: () => /* @__PURE__ */ e(
|
|
175
|
+
action: () => /* @__PURE__ */ e(j, { variant: h.SECONDARY, onClick: le, children: r.get("goBack") })
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
case a.REFUND_ERROR:
|
|
179
179
|
return /* @__PURE__ */ e(
|
|
180
180
|
z,
|
|
181
181
|
{
|
|
182
|
-
renderIcon: () => /* @__PURE__ */ e(
|
|
182
|
+
renderIcon: () => /* @__PURE__ */ e(q, { name: "cross-circle-fill", className: F(G, Ee) }),
|
|
183
183
|
title: r.get("refundActionErrorTitle"),
|
|
184
184
|
subtitle: r.get("refundActionErrorSubtitle"),
|
|
185
|
-
action: () => /* @__PURE__ */ e(
|
|
185
|
+
action: () => /* @__PURE__ */ e(j, { variant: h.SECONDARY, onClick: A, children: r.get("goBack") })
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
default:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as L } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import S from "../../../../internal/CopyText/CopyText.js";
|
|
4
4
|
import { TX_DETAILS_RESERVED_FIELDS_SET as b, TX_DATA_LIST as F, TX_DATA_LABEL as B } from "../constants.js";
|
|
5
5
|
import { isCustomDataObject as p } from "../../../../internal/DataGrid/components/TableCells.js";
|
|
@@ -15,7 +15,7 @@ import { isNullish as X } from "../../../../../utils/value/is.js";
|
|
|
15
15
|
const re = () => {
|
|
16
16
|
var y;
|
|
17
17
|
const { i18n: u } = C(), { transaction: m, extraFields: f, dataCustomization: i } = j();
|
|
18
|
-
return
|
|
18
|
+
return L(() => {
|
|
19
19
|
const { balanceAccount: l, category: _, id: x, paymentPspReference: R, refundMetadata: n } = m, d = _ === "Refund", a = null, T = (t) => {
|
|
20
20
|
if (X(t)) return null;
|
|
21
21
|
const { value: r, currency: o } = t;
|
|
@@ -61,9 +61,9 @@ const re = () => {
|
|
|
61
61
|
if (o === "link" && e)
|
|
62
62
|
return /* @__PURE__ */ s(K, { classNames: [c(e == null ? void 0 : e.className)], href: e.href, target: e.target || "_blank", children: t });
|
|
63
63
|
if (o === "icon" && e) {
|
|
64
|
-
const
|
|
64
|
+
const v = { url: e == null ? void 0 : e.src, alt: e.alt || t };
|
|
65
65
|
return /* @__PURE__ */ s("div", { className: c("adyen-pe-transaction-data__list-icon-value", e == null ? void 0 : e.className), children: [
|
|
66
|
-
/* @__PURE__ */ s(O, { ...
|
|
66
|
+
/* @__PURE__ */ s(O, { ...v }),
|
|
67
67
|
/* @__PURE__ */ s(D, { variant: k.BODY, children: [
|
|
68
68
|
" ",
|
|
69
69
|
t,
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { TX_DATA_CONTAINER as U, TX_DATA_INPUT_HEAD as S,
|
|
2
|
+
import { TX_DATA_CONTAINER as U, TX_DATA_INPUT_HEAD as S, TX_DATA_INPUT as $, TX_DATA_INPUT_CONTAINER_WITH_ERROR as B, TX_DATA_INPUT_CONTAINER_TEXT as q, TX_DATA_INPUT_CONTAINER_SHORT as H, TX_DATA_INPUT_CONTAINER as L } from "../constants.js";
|
|
3
3
|
import M from "classnames";
|
|
4
4
|
import { useState as R, useMemo as V, useRef as v } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
5
|
import C from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import Y from "../../../../internal/SVGIcons/CloseCircle.js";
|
|
7
7
|
import j from "../../../../internal/FormFields/InputBase.js";
|
|
8
8
|
import h from "../../../../internal/Typography/Typography.js";
|
|
9
|
-
import {
|
|
9
|
+
import { TypographyVariant as b, TypographyElement as D } from "../../../../internal/Typography/types.js";
|
|
10
10
|
import { getDecimalAmount as w, getDivider as W } from "../../../../../core/Localization/amount/amount-util.js";
|
|
11
11
|
import { ARIA_ERROR_SUFFIX as k } from "../../../../../core/Errors/constants.js";
|
|
12
12
|
import { TagVariant as z } from "../../../../internal/Tag/types.js";
|
|
@@ -24,15 +24,15 @@ const P = (r, n) => w(r, n).toFixed(_(n)), _ = (r) => Math.log10(W(r)), x = ({
|
|
|
24
24
|
}) => {
|
|
25
25
|
const { i18n: a } = C(), i = v(E()), m = v(E()), p = e ? l ? a.get(e, { values: { amount: l } }) : a.get(e) : "";
|
|
26
26
|
return /* @__PURE__ */ t("div", { className: U, children: [
|
|
27
|
-
/* @__PURE__ */ t("div", { className: S, children: /* @__PURE__ */ t("div", { id: m.current, children: /* @__PURE__ */ t(h, { el:
|
|
27
|
+
/* @__PURE__ */ t("div", { className: S, children: /* @__PURE__ */ t("div", { id: m.current, children: /* @__PURE__ */ t(h, { el: D.SPAN, variant: b.BODY, stronger: !0, children: a.get("refundAmount") }) }) }),
|
|
28
28
|
/* @__PURE__ */ t(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: M({
|
|
32
|
-
[
|
|
33
|
-
[
|
|
32
|
+
[L]: !0,
|
|
33
|
+
[H]: !0,
|
|
34
34
|
[q]: !0,
|
|
35
|
-
[
|
|
35
|
+
[B]: !!e
|
|
36
36
|
}),
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ t("label", { htmlFor: i.current, "aria-labelledby": m.current, children: [
|
|
@@ -42,7 +42,7 @@ const P = (r, n) => w(r, n).toFixed(_(n)), _ = (r) => Math.log10(W(r)), x = ({
|
|
|
42
42
|
{
|
|
43
43
|
min: 0,
|
|
44
44
|
type: "number",
|
|
45
|
-
className:
|
|
45
|
+
className: $,
|
|
46
46
|
disabled: J(n),
|
|
47
47
|
lang: a.locale,
|
|
48
48
|
onInput: A,
|
|
@@ -53,7 +53,7 @@ const P = (r, n) => w(r, n).toFixed(_(n)), _ = (r) => Math.log10(W(r)), x = ({
|
|
|
53
53
|
] }),
|
|
54
54
|
e && /* @__PURE__ */ t("div", { className: "adyen-pe-input__refund-invalid-value", id: `${i.current}${k}`, children: [
|
|
55
55
|
/* @__PURE__ */ t(Y, {}),
|
|
56
|
-
/* @__PURE__ */ t(h, { el:
|
|
56
|
+
/* @__PURE__ */ t(h, { el: D.SPAN, variant: b.BODY, children: p })
|
|
57
57
|
] })
|
|
58
58
|
]
|
|
59
59
|
}
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js
CHANGED
|
@@ -3,7 +3,7 @@ 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 {
|
|
6
|
+
import { TypographyVariant as e, TypographyElement as p } from "../../../../internal/Typography/types.js";
|
|
7
7
|
const A = () => {
|
|
8
8
|
const { i18n: r } = m();
|
|
9
9
|
return n(
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js
CHANGED
|
@@ -4,7 +4,7 @@ import { TX_DATA_CONTAINER as d, TX_DATA_INPUT_HEAD as T, TX_DATA_INPUT_CONTAINE
|
|
|
4
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
|
-
import {
|
|
7
|
+
import { TypographyVariant as _, TypographyElement 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
10
|
const P = () => {
|
|
@@ -22,7 +22,7 @@ const P = () => {
|
|
|
22
22
|
[r]
|
|
23
23
|
);
|
|
24
24
|
return /* @__PURE__ */ o("div", { className: d, children: [
|
|
25
|
-
/* @__PURE__ */ o("div", { className: T, children: /* @__PURE__ */ o(A, { el:
|
|
25
|
+
/* @__PURE__ */ o("div", { className: T, children: /* @__PURE__ */ o(A, { el: h.SPAN, variant: _.BODY, stronger: !0, children: n.get("refundReason") }) }),
|
|
26
26
|
/* @__PURE__ */ o("div", { className: `${u} ${p}`, children: /* @__PURE__ */ o(
|
|
27
27
|
C,
|
|
28
28
|
{
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { memo as N } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Fragment as R, createContext as O } from "../../../../../external/preact/dist/preact.module.js";
|
|
4
4
|
import { useMemo as o, useCallback as w, useEffect as y, useContext as j } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
5
|
import z from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import { ButtonVariant as A } from "../../../../internal/Button/types.js";
|
|
7
7
|
import { ActiveView as B } from "../types.js";
|
|
8
8
|
import { Icon as E } from "../../../../internal/Icon/Icon.js";
|
|
9
|
-
import {
|
|
9
|
+
import { EMPTY_OBJECT as l, EMPTY_ARRAY as _ } from "../../../../../utils/value/constants.js";
|
|
10
10
|
import { noop as D } from "../../../../../utils/common.js";
|
|
11
11
|
const M = O({
|
|
12
12
|
availableItems: _,
|
|
13
13
|
primaryAction: D,
|
|
14
14
|
secondaryAction: D,
|
|
15
|
-
transaction:
|
|
16
|
-
extraFields:
|
|
17
|
-
dataCustomization:
|
|
15
|
+
transaction: l,
|
|
16
|
+
extraFields: l,
|
|
17
|
+
dataCustomization: l
|
|
18
18
|
}), S = N(
|
|
19
19
|
({
|
|
20
20
|
children: P,
|
|
21
21
|
lineItems: Y,
|
|
22
22
|
refundAvailable: n,
|
|
23
|
-
refundDisabled:
|
|
24
|
-
setActiveView:
|
|
23
|
+
refundDisabled: f,
|
|
24
|
+
setActiveView: u,
|
|
25
25
|
setPrimaryAction: p,
|
|
26
26
|
setSecondaryAction: v,
|
|
27
27
|
transaction: i,
|
|
@@ -29,9 +29,9 @@ const M = O({
|
|
|
29
29
|
extraFields: F,
|
|
30
30
|
dataCustomization: I
|
|
31
31
|
}) => {
|
|
32
|
-
const { i18n: r } = z(), { currentTransaction: T, canNavigateBackward: g, canNavigateForward: C, backward: x, forward: b } = k, h = o(() => ({ title: r.get("refundAction") }), [r]), a = o(() => !n ||
|
|
33
|
-
() => void (!a &&
|
|
34
|
-
[a,
|
|
32
|
+
const { i18n: r } = z(), { currentTransaction: T, canNavigateBackward: g, canNavigateForward: C, backward: x, forward: b } = k, h = o(() => ({ title: r.get("refundAction") }), [r]), a = o(() => !n || f, [n, f]), s = w(
|
|
33
|
+
() => void (!a && u(B.REFUND)),
|
|
34
|
+
[a, u]
|
|
35
35
|
), t = o(() => {
|
|
36
36
|
if (T === i.id) {
|
|
37
37
|
if (g) return 2;
|
|
@@ -10,8 +10,8 @@ import { useRefundContextReason as S } from "./hooks/useRefundContextReason.js";
|
|
|
10
10
|
import Y from "../../../../../hooks/useMutation/useMutation.js";
|
|
11
11
|
import { RefundMode as j } from "../types.js";
|
|
12
12
|
import { useConfigContext as q } from "../../../../../core/ConfigContext/context.js";
|
|
13
|
-
import { EMPTY_ARRAY as f } from "../../../../../utils/value/constants.js";
|
|
14
13
|
import { noop as t } from "../../../../../utils/common.js";
|
|
14
|
+
import { EMPTY_ARRAY as f } from "../../../../../utils/value/constants.js";
|
|
15
15
|
const d = E({
|
|
16
16
|
amount: 0,
|
|
17
17
|
availableAmount: 0,
|
|
@@ -24,8 +24,8 @@ const T = ({ currency: c, lineItems: n }) => {
|
|
|
24
24
|
), i = b(
|
|
25
25
|
function(a) {
|
|
26
26
|
m((t) => {
|
|
27
|
-
const
|
|
28
|
-
return p(u, t,
|
|
27
|
+
const d = [...arguments.length === 0 ? new Map(t.map(({ id: r }) => [r, 0])) : new Map((a == null ? void 0 : a.map((r) => [r, 0])) ?? o)].map(([r, g]) => ({ id: r, quantity: g }));
|
|
28
|
+
return p(u, t, d);
|
|
29
29
|
});
|
|
30
30
|
},
|
|
31
31
|
[u]
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { isEmptyString as l } from "../../../../../../utils/value/string.js";
|
|
2
|
-
import { struct as g } from "../../../../../../utils/struct/main.js";
|
|
3
|
-
import { enumerable as d, getter as i } from "../../../../../../utils/struct/property.js";
|
|
4
2
|
import { EMPTY_ARRAY as T } from "../../../../../../utils/value/constants.js";
|
|
3
|
+
import { struct as g } from "../../../../../../utils/struct/main.js";
|
|
4
|
+
import { enumerable as d, getter as e } from "../../../../../../utils/struct/property.js";
|
|
5
5
|
import { isNullish as k, isFunction as b } from "../../../../../../utils/value/is.js";
|
|
6
6
|
const A = () => {
|
|
7
|
-
let [t,
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
7
|
+
let [t, i, a, o] = T;
|
|
8
|
+
const m = () => !!(t && t === o && a), u = () => !!(t && t === a && o);
|
|
9
|
+
let n = null;
|
|
10
|
+
const v = () => {
|
|
11
|
+
m() && (i = t, t = a, c());
|
|
12
|
+
}, p = () => {
|
|
13
|
+
u() && (i = t, t = o, c());
|
|
14
14
|
}, w = (r, s) => {
|
|
15
15
|
const f = t;
|
|
16
|
-
t =
|
|
16
|
+
t = i = a = o = void 0, !l(r) && !l(s) && (a = r, o = s, t = f === a || f === o ? f : a, f !== t && c());
|
|
17
17
|
}, N = (r) => {
|
|
18
|
-
k(r) ?
|
|
18
|
+
k(r) ? n = null : b(r) && n !== (n = r) && c();
|
|
19
19
|
}, c = () => {
|
|
20
|
-
const r =
|
|
21
|
-
|
|
20
|
+
const r = i, s = t;
|
|
21
|
+
i = void 0, n == null || n(
|
|
22
22
|
g({
|
|
23
|
-
from:
|
|
24
|
-
to:
|
|
23
|
+
from: e(() => r),
|
|
24
|
+
to: e(() => s)
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
27
|
};
|
|
28
28
|
return g({
|
|
29
|
-
backward: d(
|
|
30
|
-
forward: d(
|
|
31
|
-
canNavigateBackward:
|
|
32
|
-
canNavigateForward:
|
|
33
|
-
currentTransaction:
|
|
29
|
+
backward: d(v),
|
|
30
|
+
forward: d(p),
|
|
31
|
+
canNavigateBackward: e(m),
|
|
32
|
+
canNavigateForward: e(u),
|
|
33
|
+
currentTransaction: e(() => t),
|
|
34
34
|
onNavigation: { set: N },
|
|
35
35
|
reset: d(w)
|
|
36
36
|
});
|
package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js
CHANGED
|
@@ -20,10 +20,10 @@ const J = (s) => {
|
|
|
20
20
|
return m(() => {
|
|
21
21
|
t || r(i.id);
|
|
22
22
|
}, [t, i]), m(() => {
|
|
23
|
-
var
|
|
23
|
+
var v;
|
|
24
24
|
const n = h.current, f = g.current;
|
|
25
|
-
return f.category === "Refund" && (n.reset(f.id, (
|
|
26
|
-
u.current = !0, E(performance.now()),
|
|
25
|
+
return f.category === "Refund" && (n.reset(f.id, (v = f.refundMetadata) == null ? void 0 : v.originalPaymentId), n.onNavigation = ({ to: F }) => {
|
|
26
|
+
u.current = !0, E(performance.now()), F && r(F);
|
|
27
27
|
}), () => {
|
|
28
28
|
u.current = !1, n.onNavigation = null, n.reset();
|
|
29
29
|
};
|
package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import e from "classnames";
|
|
3
|
-
import { BASE_CLASS as m,
|
|
3
|
+
import { BASE_CLASS as m, MARGIN_CLASS as a, LOADING_CLASS as S } from "./constants.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
const n = ({ hasMargin: o = !1, isLoading: t = !1, width: r }) => /* @__PURE__ */ s("span", { className: e(m, { [
|
|
5
|
+
const n = ({ hasMargin: o = !1, isLoading: t = !1, width: r }) => /* @__PURE__ */ s("span", { className: e(m, { [S]: t, [a]: o }), style: { width: r } });
|
|
6
6
|
export {
|
|
7
7
|
n as AmountSkeleton,
|
|
8
8
|
n as default
|
package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { AmountSkeleton as d } from "../AmountSkeleton/AmountSkeleton.js";
|
|
3
|
-
import { BASE_CLASS as y,
|
|
3
|
+
import { BASE_CLASS as y, PLACEHOLDER_CLASS as T, AMOUNT_CLASS as E, LABEL_CLASS as b, BODY_CLASS as B } from "./constants.js";
|
|
4
4
|
import { SummaryItemLabel as C } from "./SummaryItemLabel.js";
|
|
5
5
|
import { Tooltip as N } from "../../../../internal/Tooltip/Tooltip.js";
|
|
6
6
|
import { TypographyVariant as n } from "../../../../internal/Typography/types.js";
|
|
@@ -32,15 +32,15 @@ const W = ({
|
|
|
32
32
|
(t, r) => t.valueHasLabelStyle ? n.CAPTION : r && !S ? n.BODY : n.TITLE,
|
|
33
33
|
[S]
|
|
34
34
|
);
|
|
35
|
-
return /* @__PURE__ */ e("div", { className: p(y, { [
|
|
35
|
+
return /* @__PURE__ */ e("div", { className: p(y, { [B]: !u }), children: i.map((t, r) => {
|
|
36
36
|
const a = t.getValue(), o = !!a && a.length > 12;
|
|
37
37
|
return /* @__PURE__ */ e("div", { children: [
|
|
38
38
|
u && (t.tooltipLabel ? /* @__PURE__ */ e(N, { content: s.get(`${t.tooltipLabel}`), isContainerHovered: h, children: /* @__PURE__ */ e(C, { config: t, i18n: s, isSkeletonVisible: l }) }) : /* @__PURE__ */ e(C, { config: t, i18n: s, isSkeletonVisible: l })),
|
|
39
|
-
l ? /* @__PURE__ */ e(d, { isLoading: c, hasMargin: t.hasSkeletonMargin, width: t.skeletonWidth + "px" }) : A ? /* @__PURE__ */ e("span", { className: p([y,
|
|
39
|
+
l ? /* @__PURE__ */ e(d, { isLoading: c, hasMargin: t.hasSkeletonMargin, width: t.skeletonWidth + "px" }) : A ? /* @__PURE__ */ e("span", { className: p([y, T]) }) : /* @__PURE__ */ e("div", { ref: t.ref, style: f(r), children: /* @__PURE__ */ e(
|
|
40
40
|
O,
|
|
41
41
|
{
|
|
42
42
|
variant: v(t, o),
|
|
43
|
-
className: p({ [b]: t.valueHasLabelStyle, [
|
|
43
|
+
className: p({ [b]: t.valueHasLabelStyle, [E]: !t.valueHasLabelStyle }),
|
|
44
44
|
children: a
|
|
45
45
|
}
|
|
46
46
|
) })
|
package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import {
|
|
2
|
+
import { LABEL_CLASS as l, LABEL_CONTAINER_CLASS as L, LABEL_CONTAINER_CLASS_LOADING as i } from "./constants.js";
|
|
3
3
|
import { TypographyVariant as s } from "../../../../internal/Typography/types.js";
|
|
4
4
|
import A from "../../../../internal/Typography/Typography.js";
|
|
5
5
|
import f from "classnames";
|
|
@@ -8,11 +8,11 @@ const d = y(
|
|
|
8
8
|
({ config: r, i18n: e, isSkeletonVisible: m, className: o, ...t }, p) => /* @__PURE__ */ a(
|
|
9
9
|
"span",
|
|
10
10
|
{
|
|
11
|
-
className: f(
|
|
11
|
+
className: f(L, o, { [i]: m }),
|
|
12
12
|
style: { cursor: "default" },
|
|
13
13
|
ref: p,
|
|
14
14
|
...t,
|
|
15
|
-
children: r.labelKey && /* @__PURE__ */ a(A, { variant: s.CAPTION, className:
|
|
15
|
+
children: r.labelKey && /* @__PURE__ */ a(A, { variant: s.CAPTION, className: l, children: e.get(r.labelKey) })
|
|
16
16
|
}
|
|
17
17
|
)
|
|
18
18
|
);
|
package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
2
|
+
import { useState as p, useMemo as c } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import h from "../../../../internal/ExpandableCard/ExpandableCard.js";
|
|
4
4
|
import { memo as M } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
5
|
-
import { TransactionTotalItem as
|
|
5
|
+
import { TransactionTotalItem as u } from "../TransactionTotalItem/TransactionTotalItem.js";
|
|
6
6
|
import { BaseList as x } from "../../../../internal/BaseList/BaseList.js";
|
|
7
7
|
import { useMaxWidthsState as T } from "../../hooks/useMaxWidths.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
const C = M(({ totals: s, isLoading: o, hiddenField: a, fullWidth: l }) => {
|
|
10
|
-
const [m, n] = T(), [i, t] =
|
|
10
|
+
const [m, n] = T(), [i, t] = p(!1), [f, ...d] = c(() => s.map((e) => (e.key = `${e.currency}-${Math.random()}`, e)), [s]);
|
|
11
11
|
return /* @__PURE__ */ r(
|
|
12
|
-
|
|
12
|
+
h,
|
|
13
13
|
{
|
|
14
14
|
renderHeader: /* @__PURE__ */ r(
|
|
15
|
-
|
|
15
|
+
u,
|
|
16
16
|
{
|
|
17
17
|
isHovered: i,
|
|
18
18
|
total: f,
|
|
@@ -29,8 +29,8 @@ const C = M(({ totals: s, isLoading: o, hiddenField: a, fullWidth: l }) => {
|
|
|
29
29
|
onFocus: () => t(!0),
|
|
30
30
|
onMouseLeave: () => t(!1),
|
|
31
31
|
onBlur: () => t(!1),
|
|
32
|
-
children: !o &&
|
|
33
|
-
|
|
32
|
+
children: !o && d.length && /* @__PURE__ */ r(x, { children: d.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
33
|
+
u,
|
|
34
34
|
{
|
|
35
35
|
isHovered: i,
|
|
36
36
|
total: e,
|