@adyen/adyen-platform-experience-web 1.4.2 → 1.5.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-C1JIrQTg.cjs → angle-right-DCDtBphj.cjs} +2 -2
- package/dist/{angle-right-C1JIrQTg.cjs.map → angle-right-DCDtBphj.cjs.map} +1 -1
- package/dist/{checkmark-B8DhX3p1.cjs → checkmark-BUtjcpAC.cjs} +2 -2
- package/dist/{checkmark-B8DhX3p1.cjs.map → checkmark-BUtjcpAC.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs → checkmark-circle-fill-CtUhQzOt.cjs} +2 -2
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs.map → checkmark-circle-fill-CtUhQzOt.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs → checkmark-square-fill-Cpdn8YWp.cjs} +2 -2
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs.map → checkmark-square-fill-Cpdn8YWp.cjs.map} +1 -1
- package/dist/{chevron-down-CB77LxQY.cjs → chevron-down-CEgNjZK_.cjs} +2 -2
- package/dist/{chevron-down-CB77LxQY.cjs.map → chevron-down-CEgNjZK_.cjs.map} +1 -1
- package/dist/{chevron-left-DMAmIvLF.cjs → chevron-left-BgN_rxGR.cjs} +2 -2
- package/dist/{chevron-left-DMAmIvLF.cjs.map → chevron-left-BgN_rxGR.cjs.map} +1 -1
- package/dist/{chevron-right-BxLJu7Zf.cjs → chevron-right-Jwt5BuB-.cjs} +2 -2
- package/dist/{chevron-right-BxLJu7Zf.cjs.map → chevron-right-Jwt5BuB-.cjs.map} +1 -1
- package/dist/{chevron-up-CT79XJdh.cjs → chevron-up-B_O0vmIX.cjs} +2 -2
- package/dist/{chevron-up-CT79XJdh.cjs.map → chevron-up-B_O0vmIX.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-7UpFtMvt.cjs → copy-DztEPGun.cjs} +2 -2
- package/dist/{copy-7UpFtMvt.cjs.map → copy-DztEPGun.cjs.map} +1 -1
- package/dist/{cross-DtVirgrN.cjs → cross-B9ojc3kB.cjs} +2 -2
- package/dist/{cross-DtVirgrN.cjs.map → cross-B9ojc3kB.cjs.map} +1 -1
- package/dist/{cross-circle-fill-C47yImD2.cjs → cross-circle-fill-Dy_LlcFp.cjs} +2 -2
- package/dist/{cross-circle-fill-C47yImD2.cjs.map → cross-circle-fill-Dy_LlcFp.cjs.map} +1 -1
- package/dist/da-DK-DAJvnb2s.cjs +2 -0
- package/dist/da-DK-DAJvnb2s.cjs.map +1 -0
- package/dist/de-DE-DFMmcoWN.cjs +2 -0
- package/dist/de-DE-DFMmcoWN.cjs.map +1 -0
- package/dist/{download-A1m1wB_K.cjs → download-DsN3U6Xn.cjs} +2 -2
- package/dist/{download-A1m1wB_K.cjs.map → download-DsN3U6Xn.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 +71 -62
- package/dist/es/translations/en-US.json.js +41 -38
- package/dist/es/translations/es-ES.json.js +79 -70
- package/dist/es/translations/fi-FI.json.js +97 -88
- package/dist/es/translations/fr-FR.json.js +75 -66
- package/dist/es/translations/it-IT.json.js +107 -98
- package/dist/es/translations/nl-NL.json.js +80 -71
- package/dist/es/translations/no-NO.json.js +67 -58
- package/dist/es/translations/pt-BR.json.js +71 -62
- 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-DWJu_JsZ.cjs +2 -0
- package/dist/es-ES-DWJu_JsZ.cjs.map +1 -0
- package/dist/{external-link-Ct-WlQoY.cjs → external-link-DgHiKqPL.cjs} +2 -2
- package/dist/{external-link-Ct-WlQoY.cjs.map → external-link-DgHiKqPL.cjs.map} +1 -1
- package/dist/fi-FI-MXUK5vu0.cjs +2 -0
- package/dist/fi-FI-MXUK5vu0.cjs.map +1 -0
- package/dist/{filter-DwSaMAG7.cjs → filter-C7stlLTD.cjs} +2 -2
- package/dist/{filter-DwSaMAG7.cjs.map → filter-C7stlLTD.cjs.map} +1 -1
- package/dist/fr-FR-NK-BqBuh.cjs +2 -0
- package/dist/fr-FR-NK-BqBuh.cjs.map +1 -0
- package/dist/index-ejbaSyzM.cjs +12 -0
- package/dist/index-ejbaSyzM.cjs.map +1 -0
- package/dist/{info-filled-bhD2VGA2.cjs → info-filled-Bk8waEjd.cjs} +2 -2
- package/dist/{info-filled-bhD2VGA2.cjs.map → info-filled-Bk8waEjd.cjs.map} +1 -1
- package/dist/it-IT-CckThmyL.cjs +2 -0
- package/dist/it-IT-CckThmyL.cjs.map +1 -0
- package/dist/{minus-circle-outline-pNXlRjce.cjs → minus-circle-outline-8LuhQHmx.cjs} +2 -2
- package/dist/{minus-circle-outline-pNXlRjce.cjs.map → minus-circle-outline-8LuhQHmx.cjs.map} +1 -1
- package/dist/nl-NL-73Hql9dE.cjs +2 -0
- package/dist/nl-NL-73Hql9dE.cjs.map +1 -0
- package/dist/no-NO-C5RVnfc6.cjs +2 -0
- package/dist/no-NO-C5RVnfc6.cjs.map +1 -0
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs → plus-circle-outline-x53czuRo.cjs} +2 -2
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs.map → plus-circle-outline-x53czuRo.cjs.map} +1 -1
- package/dist/pt-BR-DR3yYVRn.cjs +2 -0
- package/dist/pt-BR-DR3yYVRn.cjs.map +1 -0
- package/dist/{square-C3hb1Bxz.cjs → square-BzY0pIfq.cjs} +2 -2
- package/dist/{square-C3hb1Bxz.cjs.map → square-BzY0pIfq.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-oPrHRWRq.cjs} +2 -2
- package/dist/{trash-can-D2GRVBnJ.cjs.map → trash-can-oPrHRWRq.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-CEAJdOXV.cjs} +2 -2
- package/dist/{upload-CeUcEWmW.cjs.map → upload-CEAJdOXV.cjs.map} +1 -1
- package/dist/{warning-C2NpcmL8.cjs → warning-BzXJLvmN.cjs} +2 -2
- package/dist/{warning-C2NpcmL8.cjs.map → warning-BzXJLvmN.cjs.map} +1 -1
- package/dist/{warning-filled-Bo82QPPc.cjs → warning-filled-P8HTOKkP.cjs} +2 -2
- package/dist/{warning-filled-Bo82QPPc.cjs.map → warning-filled-P8HTOKkP.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
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { DAY_MS as
|
|
2
|
-
import { parseDate as
|
|
3
|
-
const
|
|
4
|
-
let t,
|
|
5
|
-
function
|
|
6
|
-
clearTimeout(t),
|
|
7
|
-
e(
|
|
8
|
-
},
|
|
1
|
+
import { DAY_MS as c } from "../../../../internal/Calendar/calendar/constants.js";
|
|
2
|
+
import { parseDate as i } from "../../../../../utils/datetime/main.js";
|
|
3
|
+
const u = (e, n = 0) => new Date(new Date(e).setUTCHours(0, 0, 0, 0) + Math.floor(n) * c), l = (e) => i(u(/* @__PURE__ */ new Date(), e)), d = (e) => e ? Math.ceil(e / 30) : null, p = (e, n) => {
|
|
4
|
+
let t, o;
|
|
5
|
+
function r(...a) {
|
|
6
|
+
clearTimeout(t), o = a, t = setTimeout(() => {
|
|
7
|
+
e(o), o = void 0;
|
|
8
|
+
}, n);
|
|
9
9
|
}
|
|
10
|
-
return
|
|
11
|
-
t && (clearTimeout(t), t = void 0,
|
|
12
|
-
},
|
|
13
|
-
},
|
|
10
|
+
return r.cancel = () => {
|
|
11
|
+
t && (clearTimeout(t), t = void 0, o = void 0);
|
|
12
|
+
}, r;
|
|
13
|
+
}, f = (e) => e / 100;
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
d as calculateMaximumRepaymentPeriodInMonths,
|
|
16
|
+
p as debounce,
|
|
17
|
+
l as getExpectedRepaymentDate,
|
|
18
|
+
f as getPercentage
|
|
19
19
|
};
|
package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as r } from "../../../../../external/preact/jsx-runtime/dist/jsxRun
|
|
|
2
2
|
import c from "../../../../internal/CopyText/CopyText.js";
|
|
3
3
|
import d from "../../../../../core/Context/useCoreContext.js";
|
|
4
4
|
import t from "../../../../internal/Typography/Typography.js";
|
|
5
|
-
import {
|
|
5
|
+
import { TypographyVariant as a, TypographyElement as i } from "../../../../internal/Typography/types.js";
|
|
6
6
|
const x = ({
|
|
7
7
|
className: p,
|
|
8
8
|
content: e,
|
|
@@ -13,8 +13,8 @@ const x = ({
|
|
|
13
13
|
}) => {
|
|
14
14
|
const { i18n: s } = d();
|
|
15
15
|
return /* @__PURE__ */ r("div", { className: p, children: [
|
|
16
|
-
/* @__PURE__ */ r("dt", { className: m, children: /* @__PURE__ */ r(t, { el:
|
|
17
|
-
/* @__PURE__ */ r("dd", { className: l, children: o ? /* @__PURE__ */ r(c, { buttonLabel: e, textToCopy: o, showCopyTextTooltip: !1, type: "Text" }) : /* @__PURE__ */ r(t, { el:
|
|
16
|
+
/* @__PURE__ */ r("dt", { className: m, children: /* @__PURE__ */ r(t, { el: i.SPAN, variant: a.CAPTION, children: s.get(n) }) }),
|
|
17
|
+
/* @__PURE__ */ r("dd", { className: l, children: o ? /* @__PURE__ */ r(c, { buttonLabel: e, textToCopy: o, showCopyTextTooltip: !1, type: "Text" }) : /* @__PURE__ */ r(t, { el: i.SPAN, variant: a.BODY, children: e }) })
|
|
18
18
|
] });
|
|
19
19
|
};
|
|
20
20
|
export {
|
package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js
CHANGED
|
@@ -3,7 +3,7 @@ import A from "classnames";
|
|
|
3
3
|
import { useMemo as C } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import { AccountDetail as F } from "./AccountDetail.js";
|
|
5
5
|
import { Fragment as _ } from "../../../../../external/preact/dist/preact.module.js";
|
|
6
|
-
import {
|
|
6
|
+
import { getAccountFieldTextToCopy as y, getAccountFieldFormattedValue as S, getAccountFieldTranslationKey as b } from "./utils.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
const o = "adyen-pe-capital-account-details", n = {
|
|
9
9
|
detail: `${o}__detail`,
|
|
@@ -22,9 +22,9 @@ const o = "adyen-pe-capital-account-details", n = {
|
|
|
22
22
|
className: n.detail,
|
|
23
23
|
contentClassName: n.detailContent,
|
|
24
24
|
labelClassName: n.detailLabel,
|
|
25
|
-
label:
|
|
25
|
+
label: b(t),
|
|
26
26
|
content: S(t, e),
|
|
27
|
-
textToCopy:
|
|
27
|
+
textToCopy: y(t, e)
|
|
28
28
|
}
|
|
29
29
|
) }, t) : null;
|
|
30
30
|
}) });
|
|
@@ -16,7 +16,7 @@ const n = (e, t = !0) => {
|
|
|
16
16
|
default:
|
|
17
17
|
return !1;
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, o = (e, t) => r(e) ? t : void 0, u = (e, t) => {
|
|
20
20
|
switch (e) {
|
|
21
21
|
case "iban":
|
|
22
22
|
return t && n(t);
|
|
@@ -40,7 +40,7 @@ const n = (e, t = !0) => {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
u as getAccountFieldFormattedValue,
|
|
44
|
+
o as getAccountFieldTextToCopy,
|
|
45
45
|
s as getAccountFieldTranslationKey
|
|
46
46
|
};
|
|
@@ -5,11 +5,11 @@ import F from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
|
5
5
|
import { GRANT_ACTION_CLASS_NAMES as l } from "./constants.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { Alert as p } from "../../../../internal/Alert/Alert.js";
|
|
8
|
-
import { AlertTypeOption as
|
|
8
|
+
import { AlertTypeOption as d } from "../../../../internal/Alert/types.js";
|
|
9
9
|
import { useFetch as S } from "../../../../../hooks/useFetch.js";
|
|
10
10
|
import "../../../../../external/preact/compat/dist/compat.module.js";
|
|
11
11
|
import { getTopWindowHref as _, setTopWindowHref as b } from "./utils.js";
|
|
12
|
-
import
|
|
12
|
+
import f from "../../../../internal/Button/Button.js";
|
|
13
13
|
import { DATE_FORMAT_CAPITAL_OVERVIEW as I } from "../../../../../constants/dateFormats.js";
|
|
14
14
|
import { useConfigContext as N } from "../../../../../core/ConfigContext/context.js";
|
|
15
15
|
import { EMPTY_OBJECT as W } from "../../../../../utils/value/constants.js";
|
|
@@ -33,22 +33,22 @@ const D = ({ action: n, className: s, offerExpiresAt: m }) => {
|
|
|
33
33
|
p,
|
|
34
34
|
{
|
|
35
35
|
className: s,
|
|
36
|
-
type:
|
|
36
|
+
type: d.CRITICAL,
|
|
37
37
|
title: e.get("somethingWentWrongTryRefreshingOrComeBackLater"),
|
|
38
|
-
description: /* @__PURE__ */ r(
|
|
38
|
+
description: /* @__PURE__ */ r(f, { className: l.button, onClick: u, children: e.get("refresh") })
|
|
39
39
|
}
|
|
40
40
|
) : /* @__PURE__ */ r(
|
|
41
41
|
p,
|
|
42
42
|
{
|
|
43
43
|
className: s,
|
|
44
|
-
type:
|
|
44
|
+
type: d.WARNING,
|
|
45
45
|
title: `${e.get("capital.signTermsAndConditionsToReceiveFunds")}${m ? ` ${e.get("capital.thisOfferExpiresOn", {
|
|
46
46
|
values: {
|
|
47
47
|
date: T(m, I)
|
|
48
48
|
}
|
|
49
49
|
})}` : ""}`,
|
|
50
50
|
description: /* @__PURE__ */ r(
|
|
51
|
-
|
|
51
|
+
f,
|
|
52
52
|
{
|
|
53
53
|
className: l.button,
|
|
54
54
|
onClick: () => C(!0),
|
|
@@ -2,10 +2,10 @@ import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRun
|
|
|
2
2
|
import { useCallback as s, useMemo as p } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import y from "../../../../../core/Context/useCoreContext.js";
|
|
4
4
|
import r from "../../../../internal/Typography/Typography.js";
|
|
5
|
-
import {
|
|
5
|
+
import { TypographyVariant as o, TypographyElement as m } from "../../../../internal/Typography/types.js";
|
|
6
6
|
import { GRANT_DETAILS_CLASS_NAMES as l } from "./constants.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import {
|
|
8
|
+
import { getPercentage as d } from "../../../CapitalOffer/components/utils/utils.js";
|
|
9
9
|
import { Tooltip as A } from "../../../../internal/Tooltip/Tooltip.js";
|
|
10
10
|
import { CAPITAL_REPAYMENT_FREQUENCY as v } from "../../../../constants.js";
|
|
11
11
|
import h from "../../../../internal/StructuredList/StructuredList.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TagVariant as
|
|
2
|
-
const u = (e) => e === "Active", c = (e) => e === "Repaid",
|
|
1
|
+
import { TagVariant as s } from "../../../../internal/Tag/types.js";
|
|
2
|
+
const u = (e) => e === "Active", c = (e) => e === "Repaid", o = (e) => e === "Active" ? "capital.remaining" : "capital.requestedFunds", r = (e) => e.status === "Active" ? e.remainingTotalAmount : e.grantAmount, d = ({ status: e, missingActions: t }) => {
|
|
3
3
|
switch (e) {
|
|
4
4
|
case "Active":
|
|
5
5
|
return;
|
|
@@ -17,26 +17,26 @@ const u = (e) => e === "Active", c = (e) => e === "Repaid", r = (e) => e === "Ac
|
|
|
17
17
|
}, l = ({ status: e, missingActions: t }) => {
|
|
18
18
|
switch (e) {
|
|
19
19
|
case "Failed":
|
|
20
|
-
return
|
|
20
|
+
return s.ERROR;
|
|
21
21
|
case "Pending":
|
|
22
|
-
return t != null && t.length ?
|
|
22
|
+
return t != null && t.length ? s.WARNING : s.DEFAULT;
|
|
23
23
|
case "Repaid":
|
|
24
|
-
return
|
|
24
|
+
return s.LIGHT;
|
|
25
25
|
case "Revoked":
|
|
26
26
|
case "WrittenOff":
|
|
27
|
-
return
|
|
27
|
+
return s.WARNING;
|
|
28
28
|
default:
|
|
29
|
-
return
|
|
29
|
+
return s.DEFAULT;
|
|
30
30
|
}
|
|
31
31
|
}, p = (e) => {
|
|
32
32
|
const t = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
|
|
33
33
|
return a.setDate(t.getDate() + e), a;
|
|
34
34
|
}, y = (e) => {
|
|
35
|
-
var a,
|
|
35
|
+
var a, n;
|
|
36
36
|
const t = ((a = e.missingActions) == null ? void 0 : a.some((i) => i.type === "signToS")) || !1;
|
|
37
37
|
switch (e.status) {
|
|
38
38
|
case "Pending":
|
|
39
|
-
return (
|
|
39
|
+
return (n = e.missingActions) != null && n.length ? t ? "capital.signTheTermsToReceiveYourFunds" : void 0 : "capital.youShouldGetTheFundsWithinOneBusinessDay";
|
|
40
40
|
case "Failed":
|
|
41
41
|
return "capital.weCouldNotProcessThisRequestTryAgain";
|
|
42
42
|
case "WrittenOff":
|
|
@@ -47,14 +47,14 @@ const u = (e) => e === "Active", c = (e) => e === "Repaid", r = (e) => e === "Ac
|
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
}, T = (e) => {
|
|
50
|
-
var
|
|
50
|
+
var n;
|
|
51
51
|
const t = e.status === "Active", a = e.status === "Pending";
|
|
52
52
|
return {
|
|
53
|
-
amount:
|
|
54
|
-
amountLabelKey:
|
|
53
|
+
amount: r(e),
|
|
54
|
+
amountLabelKey: o(e.status),
|
|
55
55
|
hasAlerts: a,
|
|
56
56
|
hasDetails: u(e.status),
|
|
57
|
-
hasUnscheduledRepaymentDetails: t && !!((
|
|
57
|
+
hasUnscheduledRepaymentDetails: t && !!((n = e.unscheduledRepaymentAccounts) != null && n.length),
|
|
58
58
|
// The grant revocation account details is currently not ready to be rendered.
|
|
59
59
|
// A future iteration of this component might include revocation account details.
|
|
60
60
|
// Only then should the following line be uncommented.
|
|
@@ -66,7 +66,7 @@ const u = (e) => e === "Active", c = (e) => e === "Repaid", r = (e) => e === "Ac
|
|
|
66
66
|
isLabelColorSecondary: t,
|
|
67
67
|
isProgressBarVisible: t,
|
|
68
68
|
repaymentPeriodEndDate: p(e.repaymentPeriodLeft),
|
|
69
|
-
statusKey:
|
|
69
|
+
statusKey: d(e),
|
|
70
70
|
statusTagVariant: l(e),
|
|
71
71
|
statusTooltipKey: y(e)
|
|
72
72
|
};
|
|
@@ -3,7 +3,7 @@ import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRun
|
|
|
3
3
|
import { useState as k, useCallback as t } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import { CapitalOffer as C } from "../../../CapitalOffer/components/CapitalOffer/CapitalOffer.js";
|
|
5
5
|
import { GrantsDisplay as b } from "./GrantsDisplay.js";
|
|
6
|
-
import { Fragment as
|
|
6
|
+
import { Fragment as x } from "../../../../../external/preact/dist/preact.module.js";
|
|
7
7
|
const V = ({
|
|
8
8
|
externalDynamicOffersConfig: l,
|
|
9
9
|
grantList: p,
|
|
@@ -20,7 +20,7 @@ const V = ({
|
|
|
20
20
|
},
|
|
21
21
|
[e, i]
|
|
22
22
|
);
|
|
23
|
-
return /* @__PURE__ */ a(
|
|
23
|
+
return /* @__PURE__ */ a(x, { children: c ? /* @__PURE__ */ a(
|
|
24
24
|
C,
|
|
25
25
|
{
|
|
26
26
|
externalDynamicOffersConfig: l,
|
|
@@ -10,8 +10,8 @@ import { useState as G, useMemo as l, useCallback as D } from "../../../../../ex
|
|
|
10
10
|
import E from "../../../../internal/Button/Button.js";
|
|
11
11
|
import { ButtonVariant as U } from "../../../../internal/Button/types.js";
|
|
12
12
|
import { CapitalHeader as k } from "../../../../internal/CapitalHeader/CapitalHeader.js";
|
|
13
|
-
const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(C, { classNames: "adyen-pe-grant-list__items", children: t.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(_, { grant: n, showDetails: c.bind(null, n) }) }, n.id)) }), Y = ({ grantList: t, hideTitle: c, newOfferAvailable: n, onNewOfferRequest:
|
|
14
|
-
const [
|
|
13
|
+
const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(C, { classNames: "adyen-pe-grant-list__items", children: t.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(_, { grant: n, showDetails: c.bind(null, n) }) }, n.id)) }), Y = ({ grantList: t, hideTitle: c, newOfferAvailable: n, onNewOfferRequest: v }) => {
|
|
14
|
+
const [g, h] = G(), [a, y] = G(), { i18n: N } = B(), [i, m] = l(() => {
|
|
15
15
|
const s = [], r = [];
|
|
16
16
|
return t == null || t.forEach((o) => {
|
|
17
17
|
o.status === "Active" || o.status === "Pending" ? s.push(o) : r.push(o);
|
|
@@ -20,7 +20,7 @@ const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(C, { classNames:
|
|
|
20
20
|
h(r), y(s);
|
|
21
21
|
}, []);
|
|
22
22
|
if (a)
|
|
23
|
-
switch (
|
|
23
|
+
switch (g) {
|
|
24
24
|
case R.unscheduledRepayment: {
|
|
25
25
|
if (d != null && d.hasUnscheduledRepaymentDetails)
|
|
26
26
|
return /* @__PURE__ */ e(T, { grant: a, onDetailsClose: w });
|
|
@@ -30,7 +30,7 @@ const u = ({ grants: t, showDetails: c }) => /* @__PURE__ */ e(C, { classNames:
|
|
|
30
30
|
return /* @__PURE__ */ e("div", { className: "adyen-pe-grant-list", children: [
|
|
31
31
|
/* @__PURE__ */ e("div", { className: "adyen-pe-grant-list__header-container", children: [
|
|
32
32
|
/* @__PURE__ */ e(k, { hideTitle: c, titleKey: "capital.businessFinancing" }),
|
|
33
|
-
S ? /* @__PURE__ */ e(E, { onClick:
|
|
33
|
+
S ? /* @__PURE__ */ e(E, { onClick: v, className: "adyen-pe-grant-list__offer-button", variant: U.SECONDARY, children: N.get("capital.seeNewOffer") }) : null
|
|
34
34
|
] }),
|
|
35
35
|
f === "UnifiedGrants" && /* @__PURE__ */ e(u, { grants: t, showDetails: p }),
|
|
36
36
|
f === "SegmentedGrants" && /* @__PURE__ */ e(
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRun
|
|
|
2
2
|
import { useMemo as s } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import d from "../../../../../core/Context/useCoreContext.js";
|
|
4
4
|
import o from "../../../../internal/Typography/Typography.js";
|
|
5
|
-
import {
|
|
5
|
+
import { TypographyVariant as c, TypographyElement as m } from "../../../../internal/Typography/types.js";
|
|
6
6
|
import { AccountDetails as A } from "../AccountDetails/AccountDetails.js";
|
|
7
7
|
import { GrantAdjustmentDetails as f } from "../GrantAdjustmentDetails/GrantAdjustmentDetails.js";
|
|
8
8
|
/* empty css */
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import u from "../PreQualifiedIntro.js";
|
|
3
|
-
import { useState as d, useCallback as
|
|
4
|
-
import { CapitalOffer as
|
|
5
|
-
import { Fragment as
|
|
3
|
+
import { useState as d, useCallback as s, useMemo as C } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { CapitalOffer as g } from "../../../CapitalOffer/components/CapitalOffer/CapitalOffer.js";
|
|
5
|
+
import { Fragment as h } from "../../../../../external/preact/dist/preact.module.js";
|
|
6
6
|
const q = ({
|
|
7
7
|
hideTitle: f,
|
|
8
8
|
dynamicOffer: o,
|
|
9
|
-
skipPreQualifiedIntro:
|
|
10
|
-
onOfferOptionsRequest:
|
|
11
|
-
onFundsRequest:
|
|
9
|
+
skipPreQualifiedIntro: a,
|
|
10
|
+
onOfferOptionsRequest: r,
|
|
11
|
+
onFundsRequest: n,
|
|
12
12
|
onOfferDismiss: t
|
|
13
13
|
}) => {
|
|
14
|
-
const [m, i] = d(
|
|
15
|
-
|
|
16
|
-
}, [
|
|
14
|
+
const [m, i] = d(a ? "capitalOffer" : "intro"), c = s(() => {
|
|
15
|
+
r ? r() : i("capitalOffer");
|
|
16
|
+
}, [r]), l = C(() => !a || !!t, [t, a]), p = s(() => {
|
|
17
17
|
t ? t() : i("intro");
|
|
18
18
|
}, [t]);
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
19
|
+
return /* @__PURE__ */ e(h, { children: m === "intro" ? /* @__PURE__ */ e(u, { hideTitle: f, dynamicOfferConfig: o, onOfferOptionsRequest: c }) : /* @__PURE__ */ e(
|
|
20
|
+
g,
|
|
21
21
|
{
|
|
22
|
-
onFundsRequest:
|
|
22
|
+
onFundsRequest: n,
|
|
23
23
|
onOfferDismiss: l ? p : void 0,
|
|
24
24
|
externalDynamicOffersConfig: o
|
|
25
25
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "../../../../external/preact/jsx-runtime/dist/jsxRuntim
|
|
|
2
2
|
import r from "../../../../core/Context/useCoreContext.js";
|
|
3
3
|
import t from "../../../../images/generic-use-first-touch.svg.js";
|
|
4
4
|
import o from "../../../internal/Typography/Typography.js";
|
|
5
|
-
import {
|
|
5
|
+
import { TypographyVariant as l, TypographyElement as n } from "../../../internal/Typography/types.js";
|
|
6
6
|
import { Fragment as m } from "../../../../external/preact/dist/preact.module.js";
|
|
7
7
|
import { CapitalHeader as p } from "../../../internal/CapitalHeader/CapitalHeader.js";
|
|
8
8
|
const h = ({ hideTitle: a }) => {
|
|
@@ -11,7 +11,7 @@ const h = ({ hideTitle: a }) => {
|
|
|
11
11
|
/* @__PURE__ */ e(p, { hideTitle: a, titleKey: "capital.needSomeExtraMoney" }),
|
|
12
12
|
/* @__PURE__ */ e("div", { className: "adyen-pe-capital-overview__unqualified-state", children: [
|
|
13
13
|
/* @__PURE__ */ e("div", { className: "adyen-pe-capital-overview__unqualified-state-img", children: /* @__PURE__ */ e("img", { srcSet: t, alt: "" }) }),
|
|
14
|
-
/* @__PURE__ */ e(o, { el:
|
|
14
|
+
/* @__PURE__ */ e(o, { el: n.PARAGRAPH, variant: l.BODY, large: !0, children: i.get("capital.youWillSoonQualifyForAFinancialOffer") })
|
|
15
15
|
] })
|
|
16
16
|
] });
|
|
17
17
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
base: "adyen-pe-capital-overview",
|
|
3
|
-
title: "adyen-pe-capital-overview__title",
|
|
4
3
|
skeleton: "adyen-pe-capital-overview__skeleton",
|
|
5
4
|
headerSkeleton: "adyen-pe-capital-overview__header-skeleton",
|
|
6
5
|
skeletonContainer: "adyen-pe-capital-overview__header-skeleton-container",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import l from "classnames";
|
|
3
|
-
import { useMemo as
|
|
3
|
+
import { useMemo as S } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import F from "../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import x from "../../../internal/Accordion/Accordion.js";
|
|
6
6
|
import g from "../../../internal/Card/Card.js";
|
|
@@ -9,7 +9,7 @@ import a from "../../../internal/Typography/Typography.js";
|
|
|
9
9
|
import G from "../../../internal/DataOverviewDetails/DataOverviewDetailsSkeleton.js";
|
|
10
10
|
import J from "../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { PD_BASE_CLASS as K,
|
|
12
|
+
import { PD_BASE_CLASS as K, PD_TITLE_CONTAINER_CLASS as W, PD_SECTION_CLASS as _, PD_TITLE_BA_CLASS as q, PD_TITLE_CLASS as Q, PD_TITLE_CLASS_WITH_EXTRA_DETAILS as Z, PD_EXTRA_DETAILS_CLASS as j, PD_EXTRA_DETAILS_ICON as w, PD_EXTRA_DETAILS_LABEL as V, PD_CONTENT_CLASS as tt, PD_CARD_CLASS as D, PD_SECTION_AMOUNT_CLASS as L, PD_SECTION_GROSS_AMOUNT_CLASS as $, PD_CARD_TITLE_CLASS as X, PD_SECTION_NET_AMOUNT_CLASS as it, PD_UNPAID_AMOUNT as nt, PD_BUTTON_ACTIONS as rt } from "./constants.js";
|
|
13
13
|
import { Tag as ot } from "../../../internal/Tag/Tag.js";
|
|
14
14
|
import { TagVariant as et } from "../../../internal/Tag/types.js";
|
|
15
15
|
import st from "../../../internal/Link/Link.js";
|
|
@@ -19,7 +19,7 @@ import { ButtonVariant as at } from "../../../internal/Button/types.js";
|
|
|
19
19
|
import { ButtonActionsLayoutBasic as ct } from "../../../internal/Button/ButtonActions/types.js";
|
|
20
20
|
import dt from "../../../internal/Button/ButtonActions/ButtonActions.js";
|
|
21
21
|
import { DATE_FORMAT_PAYOUT_DETAILS as ht } from "../../../../constants/dateFormats.js";
|
|
22
|
-
import
|
|
22
|
+
import y from "../../../internal/StructuredList/StructuredList.js";
|
|
23
23
|
import { Fragment as At } from "../../../../external/preact/dist/preact.module.js";
|
|
24
24
|
import { EMPTY_OBJECT as lt } from "../../../../utils/value/constants.js";
|
|
25
25
|
const $t = ({
|
|
@@ -29,7 +29,7 @@ const $t = ({
|
|
|
29
29
|
extraFields: O
|
|
30
30
|
}) => {
|
|
31
31
|
var u;
|
|
32
|
-
const { payout: o } = h ?? lt, { dateFormat: E } = J("UTC"), { i18n: s } = F(), r =
|
|
32
|
+
const { payout: o } = h ?? lt, { dateFormat: E } = J("UTC"), { i18n: s } = F(), r = S(() => {
|
|
33
33
|
var d, c;
|
|
34
34
|
const e = (c = (d = h == null ? void 0 : h.amountBreakdowns) == null ? void 0 : d.adjustmentBreakdown) == null ? void 0 : c.reduce(
|
|
35
35
|
(n, t) => {
|
|
@@ -40,7 +40,7 @@ const $t = ({
|
|
|
40
40
|
{ subtractions: [], additions: [] }
|
|
41
41
|
);
|
|
42
42
|
return e == null || e.subtractions.sort((n, t) => n.key.localeCompare(t.key)), e == null || e.additions.sort((n, t) => n.key.localeCompare(t.key)), e;
|
|
43
|
-
}, [s, h]),
|
|
43
|
+
}, [s, h]), p = S(() => {
|
|
44
44
|
var d, c;
|
|
45
45
|
const e = (c = (d = h == null ? void 0 : h.amountBreakdowns) == null ? void 0 : d.fundsCapturedBreakdown) == null ? void 0 : c.reduce((n, t) => {
|
|
46
46
|
var A, v, T, N;
|
|
@@ -50,15 +50,15 @@ const $t = ({
|
|
|
50
50
|
}), n;
|
|
51
51
|
}, []);
|
|
52
52
|
return e == null || e.sort((n, t) => n.key === "capture" ? -1 : t.key === "capture" ? 1 : n.key.localeCompare(t.key)), e;
|
|
53
|
-
}, [h, s]), z =
|
|
53
|
+
}, [h, s]), z = S(
|
|
54
54
|
() => o != null && o.createdAt ? E(new Date(o == null ? void 0 : o.createdAt), ht) : "",
|
|
55
55
|
[o, E]
|
|
56
|
-
),
|
|
56
|
+
), C = Object.entries(O || {}).filter(([, e]) => e.type !== "button" && e.visibility !== "hidden").map(([e, d]) => ({
|
|
57
57
|
key: e,
|
|
58
58
|
value: B(d) ? d.value : d,
|
|
59
59
|
type: B(d) ? d.type : "text",
|
|
60
60
|
config: B(d) ? d.config : void 0
|
|
61
|
-
})) || [], I =
|
|
61
|
+
})) || [], I = S(() => [...O ? Object.values(O).filter((c) => c.type === "button").map((c) => {
|
|
62
62
|
var n, t, A;
|
|
63
63
|
return {
|
|
64
64
|
title: c.value,
|
|
@@ -71,11 +71,11 @@ const $t = ({
|
|
|
71
71
|
/* @__PURE__ */ i(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className: l(
|
|
75
|
-
[
|
|
74
|
+
className: l(Q, {
|
|
75
|
+
[Z]: C.length
|
|
76
76
|
}),
|
|
77
77
|
children: [
|
|
78
|
-
/* @__PURE__ */ i("div", { className:
|
|
78
|
+
/* @__PURE__ */ i("div", { className: W, children: [
|
|
79
79
|
/* @__PURE__ */ i(a, { variant: m.SUBTITLE, stronger: !0, children: s.get("netPayout") }),
|
|
80
80
|
o.isSumOfSameDayPayouts && /* @__PURE__ */ i(ot, { variant: et.BLUE, label: s.get("sumOfSameDayPayouts") })
|
|
81
81
|
] }),
|
|
@@ -85,25 +85,25 @@ const $t = ({
|
|
|
85
85
|
/* @__PURE__ */ i(a, { variant: m.BODY, children: z }),
|
|
86
86
|
/* @__PURE__ */ i("div", { className: _, children: [
|
|
87
87
|
P && /* @__PURE__ */ i(a, { variant: m.CAPTION, stronger: !0, wide: !0, children: `${P}` }),
|
|
88
|
-
/* @__PURE__ */ i(a, { variant: m.CAPTION, className:
|
|
88
|
+
/* @__PURE__ */ i(a, { variant: m.CAPTION, className: q, children: `${H}` })
|
|
89
89
|
] })
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
C && C.length > 0 ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
94
|
+
y,
|
|
95
95
|
{
|
|
96
96
|
classNames: j,
|
|
97
|
-
items:
|
|
97
|
+
items: C,
|
|
98
98
|
align: "start",
|
|
99
99
|
layout: "5-7",
|
|
100
|
-
renderLabel: (e) => /* @__PURE__ */ i("div", { className:
|
|
100
|
+
renderLabel: (e) => /* @__PURE__ */ i("div", { className: V, children: e }),
|
|
101
101
|
renderValue: (e, d, c, n) => {
|
|
102
102
|
if (c === "link" && n)
|
|
103
103
|
return /* @__PURE__ */ i(st, { classNames: [l(n == null ? void 0 : n.className)], href: n.href, target: n.target || "_blank", children: e });
|
|
104
104
|
if (c === "icon" && n) {
|
|
105
105
|
const t = { url: n.src, alt: n.alt || e };
|
|
106
|
-
return /* @__PURE__ */ i("div", { className: l(
|
|
106
|
+
return /* @__PURE__ */ i("div", { className: l(w, n == null ? void 0 : n.className), children: [
|
|
107
107
|
/* @__PURE__ */ i(mt, { ...t }),
|
|
108
108
|
/* @__PURE__ */ i(a, { variant: m.BODY, children: e })
|
|
109
109
|
] });
|
|
@@ -113,12 +113,12 @@ const $t = ({
|
|
|
113
113
|
}
|
|
114
114
|
) }) : null,
|
|
115
115
|
/* @__PURE__ */ i("div", { className: tt, children: [
|
|
116
|
-
/* @__PURE__ */ i("div", { className: _, children: (o == null ? void 0 : o.fundsCapturedAmount) && (
|
|
116
|
+
/* @__PURE__ */ i("div", { className: _, children: (o == null ? void 0 : o.fundsCapturedAmount) && (p && Object.keys(p).length > 0 ? /* @__PURE__ */ i(
|
|
117
117
|
x,
|
|
118
118
|
{
|
|
119
119
|
header: /* @__PURE__ */ i(a, { variant: m.BODY, children: s.get("fundsCaptured") }),
|
|
120
120
|
headerInformation: /* @__PURE__ */ i(a, { variant: m.BODY, children: s.amount(o.fundsCapturedAmount.value, o.fundsCapturedAmount.currency) }),
|
|
121
|
-
children: /* @__PURE__ */ i("div", { className: _, children: /* @__PURE__ */ i("div", { className: D, children: /* @__PURE__ */ i(g, { noPadding: !0, children: /* @__PURE__ */ i(
|
|
121
|
+
children: /* @__PURE__ */ i("div", { className: _, children: /* @__PURE__ */ i("div", { className: D, children: /* @__PURE__ */ i(g, { noPadding: !0, children: /* @__PURE__ */ i(y, { items: p }) }) }) })
|
|
122
122
|
}
|
|
123
123
|
) : /* @__PURE__ */ i("div", { className: l(L, $), children: [
|
|
124
124
|
/* @__PURE__ */ i(a, { variant: m.BODY, children: s.get("fundsCaptured") }),
|
|
@@ -135,7 +135,7 @@ const $t = ({
|
|
|
135
135
|
{
|
|
136
136
|
noPadding: !0,
|
|
137
137
|
renderHeader: /* @__PURE__ */ i(a, { className: X, variant: m.CAPTION, stronger: !0, children: s.get("additions") }),
|
|
138
|
-
children: /* @__PURE__ */ i(
|
|
138
|
+
children: /* @__PURE__ */ i(y, { items: r == null ? void 0 : r.additions })
|
|
139
139
|
}
|
|
140
140
|
) }),
|
|
141
141
|
(r == null ? void 0 : r.subtractions) && Object.keys(r == null ? void 0 : r.subtractions).length > 0 && /* @__PURE__ */ i("div", { className: D, children: /* @__PURE__ */ i(
|
|
@@ -143,7 +143,7 @@ const $t = ({
|
|
|
143
143
|
{
|
|
144
144
|
noPadding: !0,
|
|
145
145
|
renderHeader: /* @__PURE__ */ i(a, { className: X, variant: m.CAPTION, stronger: !0, children: s.get("subtractions") }),
|
|
146
|
-
children: /* @__PURE__ */ i(
|
|
146
|
+
children: /* @__PURE__ */ i(y, { items: r == null ? void 0 : r.subtractions })
|
|
147
147
|
}
|
|
148
148
|
) })
|
|
149
149
|
]
|
package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js
CHANGED
|
@@ -7,18 +7,18 @@ import me from "../../../../internal/FilterBar/filters/DateFilter/DateFilter.js"
|
|
|
7
7
|
import pe from "../../../../../hooks/useModalDetails/useModalDetails.js";
|
|
8
8
|
import fe from "../../../../../hooks/useDefaultOverviewFilterParams.js";
|
|
9
9
|
import { FilterParam as i } from "../../../../types.js";
|
|
10
|
-
import { useCallback as
|
|
11
|
-
import { DataDetailsModal as
|
|
10
|
+
import { useCallback as n, useMemo as o, useEffect as de } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
11
|
+
import { DataDetailsModal as De } from "../../../../internal/DataOverviewDisplay/DataDetailsModal.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { useCustomColumnsData as
|
|
13
|
+
import { useCustomColumnsData as ne } from "../../../../../hooks/useCustomColumnsData.js";
|
|
14
14
|
import { hasCustomField as Ee } from "../../../../utils/customData/hasCustomField.js";
|
|
15
15
|
import { mergeRecords as ce } from "../../../../utils/customData/mergeRecords.js";
|
|
16
16
|
import { useFilterBarState as Te, FilterBarMobileSwitch as Se, FilterBar as Fe } from "../../../../internal/FilterBar/FilterBar.js";
|
|
17
17
|
import ye from "../../../../internal/Pagination/hooks/useCursorPaginatedRecords.js";
|
|
18
18
|
import { DataOverviewHeader as Pe } from "../../../../internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js";
|
|
19
19
|
import _e from "../../../../internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js";
|
|
20
|
-
import { useConfigContext as
|
|
21
|
-
import { isFunction as
|
|
20
|
+
import { useConfigContext as Ie } from "../../../../../core/ConfigContext/context.js";
|
|
21
|
+
import { isFunction as Le } from "../../../../../utils/value/is.js";
|
|
22
22
|
const We = ({
|
|
23
23
|
onFiltersChanged: m,
|
|
24
24
|
balanceAccounts: E,
|
|
@@ -31,9 +31,9 @@ const We = ({
|
|
|
31
31
|
hideTitle: b,
|
|
32
32
|
dataCustomization: r
|
|
33
33
|
}) => {
|
|
34
|
-
var
|
|
35
|
-
const { getPayouts: f } =
|
|
36
|
-
async (s,
|
|
34
|
+
var L, u, O, A;
|
|
35
|
+
const { getPayouts: f } = Ie().endpoints, { activeBalanceAccount: e, balanceAccountSelectionOptions: g, onBalanceAccountSelection: U } = ie(E), { defaultParams: l, nowTimestamp: w, refreshNowTimestamp: d } = fe("payouts", e), M = n(
|
|
36
|
+
async (s, D) => f({ signal: D, errorLevel: "error" }, {
|
|
37
37
|
query: {
|
|
38
38
|
...s,
|
|
39
39
|
createdSince: s[i.CREATED_SINCE] ?? l.current.defaultFilterParams[i.CREATED_SINCE],
|
|
@@ -42,7 +42,7 @@ const We = ({
|
|
|
42
42
|
}
|
|
43
43
|
}),
|
|
44
44
|
[e == null ? void 0 : e.id, l, f]
|
|
45
|
-
), F = Te(), k = o(() =>
|
|
45
|
+
), F = Te(), k = o(() => Le(m) ? m : void 0, [m]), x = o(() => c ? le : void 0, [c]), { canResetFilters: q, error: K, fetching: Y, filters: y, limit: j, limitOptions: G, records: P, resetFilters: ue, updateFilters: H, updateLimit: J, ...Q } = ye({
|
|
46
46
|
fetchRecords: M,
|
|
47
47
|
dataField: "data",
|
|
48
48
|
filterParams: l.current.defaultFilterParams,
|
|
@@ -61,20 +61,20 @@ const We = ({
|
|
|
61
61
|
callback: T
|
|
62
62
|
}),
|
|
63
63
|
[p, T]
|
|
64
|
-
), V =
|
|
65
|
-
({ records: s, retrievedData:
|
|
64
|
+
), V = n(
|
|
65
|
+
({ records: s, retrievedData: D }) => ce(s, D, (R, a) => R.createdAt === a.createdAt),
|
|
66
66
|
[]
|
|
67
67
|
), W = o(() => {
|
|
68
68
|
var s;
|
|
69
69
|
return Ee((s = r == null ? void 0 : r.list) == null ? void 0 : s.fields, te);
|
|
70
|
-
}, [(
|
|
70
|
+
}, [(L = r == null ? void 0 : r.list) == null ? void 0 : L.fields]), { customRecords: X, loadingCustomRecords: Z } = ne({
|
|
71
71
|
records: P,
|
|
72
72
|
hasCustomColumn: W,
|
|
73
|
-
onDataRetrieve: (
|
|
73
|
+
onDataRetrieve: (u = r == null ? void 0 : r.list) == null ? void 0 : u.onDataRetrieve,
|
|
74
74
|
mergeCustomData: V
|
|
75
|
-
}), $ = o(() => ({ payout: _ }), [_]), { updateDetails:
|
|
75
|
+
}), $ = o(() => ({ payout: _ }), [_]), { updateDetails: I, resetDetails: v, selectedDetail: B } = pe($), C = n(
|
|
76
76
|
(s) => {
|
|
77
|
-
|
|
77
|
+
I({
|
|
78
78
|
selection: {
|
|
79
79
|
type: "payout",
|
|
80
80
|
data: { id: e == null ? void 0 : e.id, balanceAccountDescription: (e == null ? void 0 : e.description) || "", date: s.createdAt }
|
|
@@ -82,7 +82,7 @@ const We = ({
|
|
|
82
82
|
modalSize: "small"
|
|
83
83
|
}).callback({ balanceAccountId: (e == null ? void 0 : e.id) || "", date: s.createdAt });
|
|
84
84
|
},
|
|
85
|
-
[
|
|
85
|
+
[I, e == null ? void 0 : e.id, e == null ? void 0 : e.description]
|
|
86
86
|
);
|
|
87
87
|
return /* @__PURE__ */ t("div", { className: z, children: [
|
|
88
88
|
/* @__PURE__ */ t(Pe, { hideTitle: b, titleKey: "payoutsTitle", descriptionKey: "payoutsNotice", children: /* @__PURE__ */ t(Se, { ...F }) }),
|
|
@@ -110,7 +110,7 @@ const We = ({
|
|
|
110
110
|
)
|
|
111
111
|
] }),
|
|
112
112
|
/* @__PURE__ */ t(
|
|
113
|
-
|
|
113
|
+
De,
|
|
114
114
|
{
|
|
115
115
|
className: re,
|
|
116
116
|
onContactSupport: S,
|
|
@@ -13,8 +13,8 @@ import { BASE_CLASS as R, NET_PAYOUT_CLASS as v } from "./constants.js";
|
|
|
13
13
|
/* empty css */
|
|
14
14
|
import { useTableColumns as I } from "../../../../../hooks/useTableColumns.js";
|
|
15
15
|
import g from "../../../../internal/DataGrid/DataGrid.js";
|
|
16
|
-
import
|
|
17
|
-
import W from "
|
|
16
|
+
import $ from "../../../../internal/Pagination/Pagination.js";
|
|
17
|
+
import { DATE_FORMAT_PAYOUTS_MOBILE as G, DATE_FORMAT_PAYOUTS as W } from "../../../../../constants/dateFormats.js";
|
|
18
18
|
import { useConfigContext as q } from "../../../../../core/ConfigContext/context.js";
|
|
19
19
|
const h = ["fundsCapturedAmount", "adjustmentAmount", "payoutAmount"], z = ["createdAt", ...h], K = (n) => h.includes(n), pr = ({
|
|
20
20
|
error: n,
|
|
@@ -68,12 +68,12 @@ const h = ["fundsCapturedAmount", "adjustmentAmount", "payoutAmount"], z = ["cre
|
|
|
68
68
|
onRowClick: { callback: D },
|
|
69
69
|
emptyTableMessage: Y,
|
|
70
70
|
customCells: {
|
|
71
|
-
createdAt: ({ value: r }) => r ? e ? r && /* @__PURE__ */ o(u, { variant: s.BODY, children: p(r,
|
|
71
|
+
createdAt: ({ value: r }) => r ? e ? r && /* @__PURE__ */ o(u, { variant: s.BODY, children: p(r, W) }) : p(r, G) : null,
|
|
72
72
|
fundsCapturedAmount: ({ value: r }) => r && /* @__PURE__ */ o(u, { variant: s.BODY, children: i.amount(r.value, r.currency, { hideCurrency: !0 }) }),
|
|
73
73
|
adjustmentAmount: ({ value: r }) => r && /* @__PURE__ */ o(u, { variant: s.BODY, children: i.amount(r.value, r.currency, { hideCurrency: !0 }) }),
|
|
74
74
|
payoutAmount: ({ value: r }) => r && /* @__PURE__ */ o(u, { variant: s.BODY, className: L({ [`${v}--strong`]: !e }), children: i.amount(r.value, r.currency, { hideCurrency: e }) })
|
|
75
75
|
},
|
|
76
|
-
children: O && /* @__PURE__ */ o(g.Footer, { children: /* @__PURE__ */ o(
|
|
76
|
+
children: O && /* @__PURE__ */ o(g.Footer, { children: /* @__PURE__ */ o($, { ...E }) })
|
|
77
77
|
}
|
|
78
78
|
) });
|
|
79
79
|
};
|