@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
|
@@ -10,7 +10,7 @@ const _ = "2-digit", A = "long", o = "numeric", t = "short", s = "shortOffset",
|
|
|
10
10
|
...E,
|
|
11
11
|
month: t,
|
|
12
12
|
hour12: !1
|
|
13
|
-
}, n = { ...O, year: void 0 }, R = { ...T, month: "short" }, M = T, c = n, S = { ...T, weekday: A },
|
|
13
|
+
}, n = { ...O, year: void 0 }, R = { ...T, month: "short" }, M = T, c = n, S = { ...T, weekday: A }, I = { ...T, month: t }, e = O, D = n, F = {
|
|
14
14
|
...T,
|
|
15
15
|
...E,
|
|
16
16
|
weekday: A,
|
|
@@ -21,8 +21,8 @@ export {
|
|
|
21
21
|
M as DATE_FORMAT_PAYOUTS,
|
|
22
22
|
c as DATE_FORMAT_PAYOUTS_MOBILE,
|
|
23
23
|
S as DATE_FORMAT_PAYOUT_DETAILS,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
I as DATE_FORMAT_REPORTS,
|
|
25
|
+
e as DATE_FORMAT_TRANSACTIONS,
|
|
26
26
|
D as DATE_FORMAT_TRANSACTIONS_MOBILE,
|
|
27
27
|
F as DATE_FORMAT_TRANSACTION_DETAILS
|
|
28
28
|
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsx as s } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import {
|
|
3
|
-
import { useContext as g, useMemo as E, useState as
|
|
2
|
+
import { toChildArray as x, createContext as b } from "../../external/preact/dist/preact.module.js";
|
|
3
|
+
import { useContext as g, useMemo as E, useState as e, useEffect as n } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import { ErrorMessageDisplay as v } from "../../components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js";
|
|
5
5
|
import P from "./session/utils/sessionAwareComponentAvailability/sessionAwareComponentAvailability.js";
|
|
6
|
-
import U from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
6
|
+
import { isWatchlistUnsubscribeToken as U } from "../../primitives/reactive/watchlist/main.js";
|
|
7
|
+
import y from "./session/utils/sessionAwareComponentAvailability/helpers/componentAvailabilityErrors.js";
|
|
8
|
+
import { noop as A, asyncNoop as T } from "../../utils/common.js";
|
|
9
9
|
import { isUndefined as H } from "../../utils/value/is.js";
|
|
10
10
|
import { EMPTY_OBJECT as i } from "../../utils/value/constants.js";
|
|
11
|
-
const a =
|
|
11
|
+
const a = b({
|
|
12
12
|
endpoints: i,
|
|
13
13
|
extraConfig: i,
|
|
14
14
|
hasError: !1,
|
|
15
|
-
http:
|
|
15
|
+
http: T,
|
|
16
16
|
isExpired: void 0,
|
|
17
17
|
isFrozen: !1,
|
|
18
18
|
refresh: A,
|
|
19
19
|
refreshing: !1
|
|
20
|
-
}),
|
|
21
|
-
const { http: f, refresh: p } = E(() => t, [t]), [, c] =
|
|
20
|
+
}), J = ({ children: m, session: t, type: r }) => {
|
|
21
|
+
const { http: f, refresh: p } = E(() => t, [t]), [, c] = e(0), [u, l] = e(0), [o, C] = e();
|
|
22
22
|
return n(() => {
|
|
23
|
-
P(
|
|
24
|
-
}, [t,
|
|
25
|
-
(
|
|
26
|
-
}), [u]), /* @__PURE__ */ s(a.Provider, { value: { ...t.context, http: f, refresh: p }, children: !H(o) && (o ?
|
|
23
|
+
P(r, t).then(C);
|
|
24
|
+
}, [t, r]), n(() => t.subscribe((d) => {
|
|
25
|
+
(U(d) ? l : c)((h) => h + 1);
|
|
26
|
+
}), [u]), /* @__PURE__ */ s(a.Provider, { value: { ...t.context, http: f, refresh: p }, children: !H(o) && (o ? x(m) : /* @__PURE__ */ s(
|
|
27
27
|
v,
|
|
28
28
|
{
|
|
29
29
|
withImage: !0,
|
|
30
30
|
centered: !0,
|
|
31
31
|
title: "somethingWentWrong",
|
|
32
|
-
message: [
|
|
32
|
+
message: [y(r), "contactSupportForHelp"]
|
|
33
33
|
}
|
|
34
34
|
)) });
|
|
35
|
-
},
|
|
35
|
+
}, K = () => g(a);
|
|
36
36
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
J as ConfigProvider,
|
|
38
|
+
K as default,
|
|
39
|
+
K as useConfigContext
|
|
40
40
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { SetupContext as
|
|
2
|
+
var _ = (i, s, e) => s in i ? a(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e;
|
|
3
|
+
var t = (i, s, e) => _(i, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { SetupContext as f } from "./SetupContext.js";
|
|
5
5
|
import { AuthSessionSpecification as c } from "./AuthSessionSpecification.js";
|
|
6
6
|
import { createErrorContainer as l } from "../../../primitives/auxiliary/errorContainer/main.js";
|
|
7
7
|
import { SessionContext as S } from "../../../primitives/context/session/SessionContext.js";
|
|
8
8
|
import { createPromisor as p } from "../../../primitives/async/promisor/main.js";
|
|
9
9
|
import { createWatchlist as u } from "../../../primitives/reactive/watchlist/main.js";
|
|
10
|
-
import { EVT_SESSION_EXPIRED as C, EVT_SESSION_READY as m, ERR_SESSION_REFRESH_ABORTED as
|
|
11
|
-
import { boolOrTrue as
|
|
10
|
+
import { EVT_SESSION_EXPIRED as C, EVT_SESSION_READY as m, ERR_SESSION_REFRESH_ABORTED as x } from "../../../primitives/context/session/constants.js";
|
|
11
|
+
import { boolOrTrue as d, boolOrFalse as E } from "../../../utils/value/bool.js";
|
|
12
12
|
import { isFunction as g } from "../../../utils/value/is.js";
|
|
13
|
-
class
|
|
13
|
+
class y {
|
|
14
14
|
constructor() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
let r = !this._refreshPromisorSignal, n = this._refreshPromisorSignal === (this._refreshPromisorSignal =
|
|
24
|
-
const o = E(
|
|
15
|
+
t(this, "_canSkipSessionRefresh", !1);
|
|
16
|
+
t(this, "_refreshPromisorSignal");
|
|
17
|
+
t(this, "_sessionIsFrozen", !1);
|
|
18
|
+
t(this, "_errorContainer", l());
|
|
19
|
+
t(this, "_specification", new c());
|
|
20
|
+
t(this, "_sessionContext", new S(this._specification));
|
|
21
|
+
t(this, "_setupContext", new f(this._sessionContext));
|
|
22
|
+
t(this, "_refreshPromisor", p(async (s, e = !1) => {
|
|
23
|
+
let r = !this._refreshPromisorSignal, n = this._refreshPromisorSignal === (this._refreshPromisorSignal = s);
|
|
24
|
+
const o = E(e) && this._canSkipSessionRefresh;
|
|
25
25
|
r && (r = !1, this._errorContainer.reset(), this._onAuthStateChanged());
|
|
26
26
|
try {
|
|
27
|
-
await (o ? this._setupContext : this._sessionContext).refresh(
|
|
27
|
+
await (o ? this._setupContext : this._sessionContext).refresh(s).finally(() => n = this._refreshPromisorSignal === s);
|
|
28
28
|
} catch (h) {
|
|
29
29
|
if (!n) return;
|
|
30
|
-
!
|
|
30
|
+
!s.aborted && (o || h !== x) && this._errorContainer.set(h), r = !o;
|
|
31
31
|
} finally {
|
|
32
32
|
(r || o && n) && (this._refreshPromisorSignal = void 0, this._onAuthStateChanged());
|
|
33
33
|
}
|
|
34
34
|
}));
|
|
35
|
-
|
|
35
|
+
t(this, "_watchlist", u({
|
|
36
36
|
endpoints: () => this._setupContext.endpoints,
|
|
37
37
|
extraConfig: () => this._setupContext.extraConfig,
|
|
38
38
|
hasError: () => this._errorContainer.hasError,
|
|
@@ -40,14 +40,14 @@ class z {
|
|
|
40
40
|
isFrozen: () => this._sessionIsFrozen,
|
|
41
41
|
refreshing: () => !!this._refreshPromisorSignal
|
|
42
42
|
}));
|
|
43
|
-
|
|
43
|
+
t(this, "freeze", () => {
|
|
44
44
|
this._sessionIsFrozen = !0, this._watchlist.on.resume = void 0, this._watchlist.cancelSubscriptions();
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
t(this, "http", this._sessionContext.http.bind(this._sessionContext, null));
|
|
47
|
+
t(this, "refresh", this._refresh.bind(this));
|
|
48
|
+
t(this, "subscribe", this._watchlist.subscribe);
|
|
49
49
|
this._watchlist.on.resume = () => {
|
|
50
|
-
const
|
|
50
|
+
const s = [
|
|
51
51
|
this._sessionContext.on(C, () => {
|
|
52
52
|
this._canSkipSessionRefresh = !1, this._onAuthStateChanged();
|
|
53
53
|
}),
|
|
@@ -56,30 +56,30 @@ class z {
|
|
|
56
56
|
})
|
|
57
57
|
];
|
|
58
58
|
this._watchlist.on.idle = () => {
|
|
59
|
-
this._watchlist.on.idle = void 0,
|
|
60
|
-
}, !this.context.refreshing &&
|
|
59
|
+
this._watchlist.on.idle = void 0, s.forEach((e) => e()), s.length = 0;
|
|
60
|
+
}, !this.context.refreshing && d(this.context.isExpired) && this._refresh();
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
get context() {
|
|
64
64
|
return this._watchlist.snapshot;
|
|
65
65
|
}
|
|
66
|
-
set loadingContext(
|
|
67
|
-
this._setupContext.loadingContext =
|
|
66
|
+
set loadingContext(s) {
|
|
67
|
+
this._setupContext.loadingContext = s;
|
|
68
68
|
}
|
|
69
|
-
set errorHandler(
|
|
70
|
-
this._specification.errorHandler =
|
|
69
|
+
set errorHandler(s) {
|
|
70
|
+
this._specification.errorHandler = s;
|
|
71
71
|
}
|
|
72
|
-
set onSessionCreate(
|
|
73
|
-
this._specification.onSessionCreate !==
|
|
72
|
+
set onSessionCreate(s) {
|
|
73
|
+
this._specification.onSessionCreate !== s && (this._specification.onSessionCreate = s, this._refreshPromisorSignal && g(this._specification.onSessionCreate) && (this._canSkipSessionRefresh = !1, this._refresh()));
|
|
74
74
|
}
|
|
75
75
|
_onAuthStateChanged() {
|
|
76
76
|
this._watchlist.requestNotification();
|
|
77
77
|
}
|
|
78
|
-
_refresh(
|
|
79
|
-
this._refreshPromisor(
|
|
78
|
+
_refresh(s = !1) {
|
|
79
|
+
this._refreshPromisor(s);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
y as AuthSession,
|
|
84
|
+
y as default
|
|
85
85
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var f = (i, t, r) => t in i ? c(i, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[t] = r;
|
|
3
3
|
var s = (i, t, r) => f(i, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { http as
|
|
5
|
-
import { ErrorTypes as
|
|
4
|
+
import { http as m } from "../../Http/http.js";
|
|
5
|
+
import { ErrorTypes as u } from "../../Http/utils.js";
|
|
6
6
|
import { AUTO_REFRESH as E, MAX_AGE_MS as d } from "./constants.js";
|
|
7
7
|
import { isPlainObject as _, isString as h, isUndefined as A } from "../../../utils/value/is.js";
|
|
8
8
|
import { ERR_SESSION_EXPIRED as H } from "../../../primitives/context/session/constants.js";
|
|
9
9
|
import { enumerable as l } from "../../../utils/struct/property.js";
|
|
10
10
|
import { isAbortSignal as O, abortSignalForAny as R } from "../../../utils/abort/main.js";
|
|
11
|
-
class
|
|
11
|
+
class v {
|
|
12
12
|
constructor(t) {
|
|
13
13
|
s(this, "assert", (t) => {
|
|
14
14
|
if (_(t)) {
|
|
@@ -43,9 +43,9 @@ class y {
|
|
|
43
43
|
errorHandler: this._errorHandler,
|
|
44
44
|
signal: O(n) ? R([r, n]) : r
|
|
45
45
|
};
|
|
46
|
-
return await
|
|
46
|
+
return await m(o);
|
|
47
47
|
} catch (o) {
|
|
48
|
-
throw (o == null ? void 0 : o.type) ===
|
|
48
|
+
throw (o == null ? void 0 : o.type) === u.EXPIRED_TOKEN ? H : o;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
this.onSessionCreate = t, this._errorHandler = this._errorHandler.bind(this), Object.defineProperties(this, {
|
|
@@ -62,6 +62,6 @@ class y {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
v as AuthSessionSpecification,
|
|
66
|
+
v as default
|
|
67
67
|
};
|
|
@@ -7,8 +7,8 @@ import { noop as f, deepFreeze as x } from "../../../utils/common.js";
|
|
|
7
7
|
import { EMPTY_OBJECT as _ } from "../../../utils/value/constants.js";
|
|
8
8
|
import { createPromisor as g } from "../../../primitives/async/promisor/main.js";
|
|
9
9
|
import { struct as y, withFreezeProxyHandlers as E, asPlainObject as b } from "../../../utils/struct/main.js";
|
|
10
|
-
import { isPlainObject as
|
|
11
|
-
import { isAbortSignal as
|
|
10
|
+
import { isPlainObject as v, isUndefined as O } from "../../../utils/value/is.js";
|
|
11
|
+
import { isAbortSignal as C, abortSignalForAny as S } from "../../../utils/abort/main.js";
|
|
12
12
|
class N {
|
|
13
13
|
constructor(t) {
|
|
14
14
|
i(this, "_endpoints", _);
|
|
@@ -18,7 +18,7 @@ class N {
|
|
|
18
18
|
await this._refreshPromisor.promise.catch(f);
|
|
19
19
|
});
|
|
20
20
|
i(this, "_refreshPromisor", g((t, r) => {
|
|
21
|
-
const o =
|
|
21
|
+
const o = C(r) ? S([r, t]) : t;
|
|
22
22
|
return this._fetchSetupEndpoint(o);
|
|
23
23
|
}));
|
|
24
24
|
this._session = t;
|
|
@@ -49,7 +49,7 @@ class N {
|
|
|
49
49
|
E({
|
|
50
50
|
get: (n, e, c) => r.has(e) ? (o[e] ?? (o[e] = (() => {
|
|
51
51
|
const { method: a = "GET", url: h } = t[e];
|
|
52
|
-
if (!
|
|
52
|
+
if (!O(h || void 0))
|
|
53
53
|
return (...m) => {
|
|
54
54
|
const p = this._getHttpOptions(a, h, ...m);
|
|
55
55
|
return this._session.http(this._beforeHttp, p);
|
|
@@ -60,7 +60,7 @@ class N {
|
|
|
60
60
|
}
|
|
61
61
|
_getHttpOptions(t, r, ...o) {
|
|
62
62
|
const { loadingContext: n } = this, [e, c] = o, { path: a, query: h } = b(c), m = h && d(h);
|
|
63
|
-
if (
|
|
63
|
+
if (v(a))
|
|
64
64
|
for (const p of Object.keys(a))
|
|
65
65
|
r = r.replace(`{${p}}`, a[p]);
|
|
66
66
|
return { loadingContext: n, ...e, method: t, params: m, path: r };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { boolOrFalse as
|
|
2
|
-
const
|
|
3
|
-
let
|
|
4
|
-
if (Number.isFinite(
|
|
5
|
-
return
|
|
1
|
+
import { boolOrFalse as o } from "../../../utils/value/bool.js";
|
|
2
|
+
const r = "/setup", s = o(void 0), i = (() => {
|
|
3
|
+
let t = 0;
|
|
4
|
+
if (Number.isFinite(t) && (t = Math.max(0, ~~t)))
|
|
5
|
+
return t;
|
|
6
6
|
})();
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
s as AUTO_REFRESH,
|
|
9
|
+
i as MAX_AGE_MS,
|
|
10
|
+
r as SETUP_ENDPOINT_PATH
|
|
11
11
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createDeferred as c } from "../../../../primitives/async/deferred/main.js";
|
|
2
2
|
import { isWatchlistUnsubscribeToken as l } from "../../../../primitives/reactive/watchlist/main.js";
|
|
3
|
-
import { boolOrTrue as
|
|
3
|
+
import { boolOrTrue as a } from "../../../../utils/value/bool.js";
|
|
4
4
|
const m = async (e) => {
|
|
5
|
-
const r = c(), t = r.promise,
|
|
6
|
-
let
|
|
5
|
+
const r = c(), t = r.promise, n = e.context.refreshing;
|
|
6
|
+
let o, i, s = e.subscribe((f) => {
|
|
7
7
|
if (l(f)) {
|
|
8
8
|
r.resolve();
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
if (
|
|
12
|
-
if (
|
|
11
|
+
if (o ?? (o = e.context.refreshing), !e.context.refreshing) {
|
|
12
|
+
if (a(e.context.isExpired) && (i ?? (i = !(n || o)))) {
|
|
13
13
|
i = !1, e.refresh();
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
@@ -8,44 +8,44 @@ var s = (r, t, e) => (z(r, t, "read from private field"), e ? e.call(r) : t.get(
|
|
|
8
8
|
import { FALLBACK_LOCALE as E, DEFAULT_TRANSLATIONS as x, getLocalesFromTranslationSourcesRecord as I, DEFAULT_DATETIME_FORMAT as M, SUPPORTED_LOCALES as W } from "./constants/localization.js";
|
|
9
9
|
import { en_US as w } from "../../translations/index.js";
|
|
10
10
|
import { getLocalisedAmount as k } from "./amount/amount-util.js";
|
|
11
|
-
import { createTranslationsLoader as q, getLocalizationProxyDescriptors as
|
|
12
|
-
import { toTwoLetterCode as F, formatCustomTranslations as
|
|
13
|
-
import { createWatchlist as
|
|
14
|
-
import
|
|
15
|
-
import { isNullish as P, isUndefined as
|
|
16
|
-
import { ALREADY_RESOLVED_PROMISE as
|
|
17
|
-
import { struct as
|
|
18
|
-
import { noop as
|
|
19
|
-
var h, g,
|
|
11
|
+
import { createTranslationsLoader as q, getLocalizationProxyDescriptors as v } from "./localization-utils.js";
|
|
12
|
+
import { toTwoLetterCode as F, formatCustomTranslations as B, getTranslation as N } from "./utils.js";
|
|
13
|
+
import { createWatchlist as K } from "../../primitives/reactive/watchlist/main.js";
|
|
14
|
+
import V from "./datetime/restamper/restamper.js";
|
|
15
|
+
import { isNullish as P, isUndefined as Y, isNull as Z } from "../../utils/value/is.js";
|
|
16
|
+
import { ALREADY_RESOLVED_PROMISE as $ } from "../../utils/async/constants.js";
|
|
17
|
+
import { struct as G } from "../../utils/struct/main.js";
|
|
18
|
+
import { noop as H } from "../../utils/common.js";
|
|
19
|
+
var h, g, u, T, f, p, c, A, l, m, d, L, D, S;
|
|
20
20
|
class ct {
|
|
21
21
|
constructor(t = E, e) {
|
|
22
22
|
o(this, D);
|
|
23
23
|
o(this, h, E);
|
|
24
24
|
o(this, g, F(s(this, h)));
|
|
25
|
-
o(this,
|
|
26
|
-
o(this, T, s(this,
|
|
25
|
+
o(this, u, [E]);
|
|
26
|
+
o(this, T, s(this, u));
|
|
27
27
|
o(this, f);
|
|
28
|
-
o(this,
|
|
28
|
+
o(this, p, x);
|
|
29
29
|
o(this, c, q.call(this));
|
|
30
|
-
o(this, A,
|
|
30
|
+
o(this, A, $);
|
|
31
31
|
o(this, l);
|
|
32
|
-
o(this,
|
|
33
|
-
o(this,
|
|
34
|
-
o(this, L,
|
|
35
|
-
R(this, "watch", s(this,
|
|
36
|
-
R(this, "i18n",
|
|
32
|
+
o(this, m);
|
|
33
|
+
o(this, d, K({ timestamp: () => performance.now() }));
|
|
34
|
+
o(this, L, V());
|
|
35
|
+
R(this, "watch", s(this, d).subscribe.bind(void 0));
|
|
36
|
+
R(this, "i18n", G(v.call(this)));
|
|
37
37
|
R(this, "preferredTranslations");
|
|
38
|
-
this.watch(
|
|
38
|
+
this.watch(H), this.preferredTranslations = Object.freeze(
|
|
39
39
|
(e == null ? void 0 : e.reduce((i, n) => ({ ...i, ...n }), w)) ?? { ...w }
|
|
40
|
-
), a(this,
|
|
40
|
+
), a(this, u, I(this.preferredTranslations)), this.locale = t;
|
|
41
41
|
}
|
|
42
42
|
get customTranslations() {
|
|
43
43
|
return s(this, f) ?? {};
|
|
44
44
|
}
|
|
45
45
|
set customTranslations(t) {
|
|
46
|
-
let e, i = [...s(this,
|
|
46
|
+
let e, i = [...s(this, u)];
|
|
47
47
|
if (!P(t)) {
|
|
48
|
-
e =
|
|
48
|
+
e = B(t, W);
|
|
49
49
|
const n = Object.keys(e);
|
|
50
50
|
i = [...i, ...n].sort().filter((y, O, U) => U.indexOf(y) === O);
|
|
51
51
|
}
|
|
@@ -55,7 +55,7 @@ class ct {
|
|
|
55
55
|
return s(this, g);
|
|
56
56
|
}
|
|
57
57
|
get lastRefreshTimestamp() {
|
|
58
|
-
return s(this,
|
|
58
|
+
return s(this, d).snapshot.timestamp;
|
|
59
59
|
}
|
|
60
60
|
get locale() {
|
|
61
61
|
return s(this, h);
|
|
@@ -87,8 +87,8 @@ class ct {
|
|
|
87
87
|
* @returns Translated string
|
|
88
88
|
*/
|
|
89
89
|
get(t, e) {
|
|
90
|
-
const i = N(s(this,
|
|
91
|
-
return
|
|
90
|
+
const i = N(s(this, p), t, e);
|
|
91
|
+
return Z(i) ? t : i;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Returns a boolean that checks if the translation key exists in the current {@link Localization.locale}
|
|
@@ -97,7 +97,7 @@ class ct {
|
|
|
97
97
|
* @returns boolean
|
|
98
98
|
*/
|
|
99
99
|
has(t, e) {
|
|
100
|
-
return !!N(s(this,
|
|
100
|
+
return !!N(s(this, p), t, e);
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Returns a localized string for an amount
|
|
@@ -136,17 +136,17 @@ class ct {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
h = new WeakMap(), g = new WeakMap(),
|
|
140
|
-
|
|
141
|
-
a(this,
|
|
142
|
-
n(s(this, l)), a(this, l, a(this,
|
|
139
|
+
h = new WeakMap(), g = new WeakMap(), u = new WeakMap(), T = new WeakMap(), f = new WeakMap(), p = new WeakMap(), c = new WeakMap(), A = new WeakMap(), l = new WeakMap(), m = new WeakMap(), d = new WeakMap(), L = new WeakMap(), D = new WeakSet(), S = function(t) {
|
|
140
|
+
Y(s(this, m)) && a(this, A, new Promise((n) => {
|
|
141
|
+
a(this, m, () => {
|
|
142
|
+
n(s(this, l)), a(this, l, a(this, m, void 0));
|
|
143
143
|
});
|
|
144
144
|
}));
|
|
145
145
|
const e = () => {
|
|
146
146
|
var n;
|
|
147
|
-
s(this, l) === i && ((n = s(this,
|
|
147
|
+
s(this, l) === i && ((n = s(this, m)) == null || n.call(this));
|
|
148
148
|
}, i = a(this, l, (async () => {
|
|
149
|
-
a(this,
|
|
149
|
+
a(this, p, await s(this, c).load(t)), a(this, h, s(this, c).locale), a(this, T, Object.freeze(s(this, c).supportedLocales)), a(this, f, t), a(this, g, F(s(this, h))), s(this, d).requestNotification();
|
|
150
150
|
})());
|
|
151
151
|
i.then(e).catch((n) => {
|
|
152
152
|
e(), console.error(n);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const A = /GMT(?:[-+](?:0?\d|1[0-4])(?::?[0-5]\d)?)?$/, { BASE_FORMAT_OPTIONS: I, BASE_LOCALE: N, SYSTEM_TIMEZONE: c, SYSTEM_TIMEZONE_FORMATTER: s } = (() => {
|
|
2
|
-
const S = "en-US", T = "2-digit", t = "numeric",
|
|
2
|
+
const S = "en-US", T = "2-digit", t = "numeric", _ = Object.freeze({
|
|
3
3
|
year: t,
|
|
4
4
|
month: "short",
|
|
5
5
|
day: t,
|
|
@@ -12,11 +12,11 @@ const A = /GMT(?:[-+](?:0?\d|1[0-4])(?::?[0-5]\d)?)?$/, { BASE_FORMAT_OPTIONS: I
|
|
|
12
12
|
});
|
|
13
13
|
let E, O;
|
|
14
14
|
try {
|
|
15
|
-
O = new Intl.DateTimeFormat(S,
|
|
15
|
+
O = new Intl.DateTimeFormat(S, _), E = O.resolvedOptions().timeZone;
|
|
16
16
|
} catch {
|
|
17
17
|
E = void 0;
|
|
18
18
|
}
|
|
19
|
-
return { BASE_FORMAT_OPTIONS:
|
|
19
|
+
return { BASE_FORMAT_OPTIONS: _, BASE_LOCALE: S, SYSTEM_TIMEZONE: E, SYSTEM_TIMEZONE_FORMATTER: O };
|
|
20
20
|
})();
|
|
21
21
|
export {
|
|
22
22
|
I as BASE_FORMAT_OPTIONS,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SYSTEM_TIMEZONE as s,
|
|
1
|
+
import { SYSTEM_TIMEZONE as s, SYSTEM_TIMEZONE_FORMATTER as f, BASE_LOCALE as c, BASE_FORMAT_OPTIONS as E } from "./constants.js";
|
|
2
2
|
import { getTimezoneOffsetForTimestamp as a } from "./utils.js";
|
|
3
3
|
import { struct as O } from "../../../../utils/struct/main.js";
|
|
4
4
|
import { isUndefined as T, isNullish as u } from "../../../../utils/value/is.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FALLBACK_LOCALE as p, DEFAULT_TRANSLATIONS as C } from "./constants/localization.js";
|
|
2
2
|
import { hasOwnProperty as f } from "../../utils/struct/property.js";
|
|
3
3
|
import { EMPTY_OBJECT as u } from "../../utils/value/constants.js";
|
|
4
|
-
import { isFunction as d } from "../../utils/value/is.js";
|
|
5
4
|
import { asPlainObject as O } from "../../utils/struct/main.js";
|
|
5
|
+
import { isFunction as d } from "../../utils/value/is.js";
|
|
6
6
|
const g = { values: u, count: 0 }, w = /^[a-z]{2}-[A-Z]{2}$/, l = (e) => e.substring(0, 2).toLowerCase();
|
|
7
7
|
function E(e, t) {
|
|
8
8
|
if (!e) return null;
|