@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.28
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/README.md +126 -17
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
- package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +20 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +2 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +28 -55
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-C9Yqq4tg.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DL74pMLb.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-Dx-TNXQ1.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BIMpDI_p.mjs +0 -29
- package/dist/pricing-BOqG21f9.js +0 -1
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { t as T } from "./amount-CondixVt.mjs";
|
|
2
|
+
import { inject as R, ref as d, watch as S, computed as m } from "vue";
|
|
3
|
+
import { l as I } from "./customElements-Di3zwlEU.mjs";
|
|
4
|
+
const A = /* @__PURE__ */ new Set(["https:", "http:"]);
|
|
5
|
+
function a(e, t = window.location.search) {
|
|
6
|
+
return new URLSearchParams(t).get(e);
|
|
7
|
+
}
|
|
8
|
+
function N(e) {
|
|
9
|
+
try {
|
|
10
|
+
const t = new URL(e);
|
|
11
|
+
return A.has(t.protocol) ? e : "";
|
|
12
|
+
} catch {
|
|
13
|
+
return "";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function D(e) {
|
|
17
|
+
const t = N(e);
|
|
18
|
+
t && window.location.replace(t);
|
|
19
|
+
}
|
|
20
|
+
const i = "payment_acceptor_id", c = "redirectResult", o = "redirect_status", _ = "payment_intent_client_secret", f = "setup_intent_client_secret", P = [
|
|
21
|
+
i,
|
|
22
|
+
c,
|
|
23
|
+
o,
|
|
24
|
+
"payment_intent",
|
|
25
|
+
_,
|
|
26
|
+
"setup_intent",
|
|
27
|
+
f
|
|
28
|
+
], p = /^[A-Za-z0-9+/=_!.-]{1,16384}$/, y = /^[a-z_]{1,64}$/, E = {
|
|
29
|
+
PAYMENT: /^pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+$/,
|
|
30
|
+
SETUP: /^seti_[A-Za-z0-9]+_secret_[A-Za-z0-9]+$/
|
|
31
|
+
};
|
|
32
|
+
function M() {
|
|
33
|
+
return !!a(i) && (!!a(c) || !!a(o));
|
|
34
|
+
}
|
|
35
|
+
function O(e) {
|
|
36
|
+
const t = a(c);
|
|
37
|
+
if (!t) return;
|
|
38
|
+
const n = a(i);
|
|
39
|
+
if (!n) return { kind: "MISSING_PAYMENT_ACCEPTOR" };
|
|
40
|
+
if (n === e)
|
|
41
|
+
return p.test(t) ? { kind: "RESULT", redirectResult: t } : { kind: "INVALID" };
|
|
42
|
+
}
|
|
43
|
+
function F(e) {
|
|
44
|
+
if (a(i) !== e) return;
|
|
45
|
+
const t = a(o);
|
|
46
|
+
if (!t || !y.test(t)) return;
|
|
47
|
+
const n = a(
|
|
48
|
+
_
|
|
49
|
+
);
|
|
50
|
+
if (n)
|
|
51
|
+
return E.PAYMENT.test(n) ? { redirectStatus: t, intent: "PAYMENT", clientSecret: n } : void 0;
|
|
52
|
+
const r = a(f);
|
|
53
|
+
if (r)
|
|
54
|
+
return E.SETUP.test(r) ? { redirectStatus: t, intent: "SETUP", clientSecret: r } : void 0;
|
|
55
|
+
}
|
|
56
|
+
function G() {
|
|
57
|
+
const e = new URL(window.location.href), t = P.filter((n) => e.searchParams.has(n));
|
|
58
|
+
t.length && (t.forEach((n) => e.searchParams.delete(n)), window.history.replaceState(window.history.state, "", e.toString()));
|
|
59
|
+
}
|
|
60
|
+
const U = ["applepay"];
|
|
61
|
+
function w(e) {
|
|
62
|
+
return e.filter(
|
|
63
|
+
(t) => !U.some((n) => {
|
|
64
|
+
var r;
|
|
65
|
+
return n === ((r = t.type) == null ? void 0 : r.toLowerCase());
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function h(e) {
|
|
70
|
+
var t, n;
|
|
71
|
+
return (n = (t = e.integration.payment_gateway) == null ? void 0 : t.adyen) == null ? void 0 : n.public_key;
|
|
72
|
+
}
|
|
73
|
+
function l(e) {
|
|
74
|
+
var t;
|
|
75
|
+
return ((t = e.options) == null ? void 0 : t.filter(
|
|
76
|
+
(n) => n.payment_gateway_variant === "ADYEN"
|
|
77
|
+
).flatMap(
|
|
78
|
+
(n) => C(n.adyen)
|
|
79
|
+
)) ?? [];
|
|
80
|
+
}
|
|
81
|
+
function b(e, { excludeExpressPaymentMethods: t = !1 } = {}) {
|
|
82
|
+
const n = l(e);
|
|
83
|
+
return t ? w(n) : n;
|
|
84
|
+
}
|
|
85
|
+
function C(e) {
|
|
86
|
+
return {
|
|
87
|
+
type: e.type,
|
|
88
|
+
name: e.name,
|
|
89
|
+
...e.issuers ? { issuers: e.issuers } : {},
|
|
90
|
+
...e.brands ? { brands: e.brands } : {},
|
|
91
|
+
...e.funding_source ? { fundingSource: e.funding_source } : {},
|
|
92
|
+
...e.configuration ? { configuration: e.configuration } : {}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function V({
|
|
96
|
+
paymentAcceptorId: e,
|
|
97
|
+
redirectUrl: t = window.location.href
|
|
98
|
+
}) {
|
|
99
|
+
const n = new URL(t);
|
|
100
|
+
return n.searchParams.set(i, e), n.toString();
|
|
101
|
+
}
|
|
102
|
+
function v(e, t) {
|
|
103
|
+
var r, s;
|
|
104
|
+
const n = (s = (r = e == null ? void 0 : e.integration.payment_gateway) == null ? void 0 : r.adyen) == null ? void 0 : s.environment;
|
|
105
|
+
if (!n)
|
|
106
|
+
return t.warn(
|
|
107
|
+
"ADYEN_INVALID_CONFIGURATION",
|
|
108
|
+
"No environment set for adyen advanced flow, defaulted to live"
|
|
109
|
+
), "live";
|
|
110
|
+
switch (n) {
|
|
111
|
+
case "TEST":
|
|
112
|
+
return "test";
|
|
113
|
+
case "LIVE_IN":
|
|
114
|
+
return "live-in";
|
|
115
|
+
case "LIVE_AU":
|
|
116
|
+
return "live-au";
|
|
117
|
+
case "LIVE_US":
|
|
118
|
+
return "live-us";
|
|
119
|
+
case "LIVE_APSE":
|
|
120
|
+
return "live-apse";
|
|
121
|
+
case "LIVE":
|
|
122
|
+
return "live";
|
|
123
|
+
default:
|
|
124
|
+
return t.warn(
|
|
125
|
+
"ADYEN_INVALID_CONFIGURATION",
|
|
126
|
+
`Unsupported environment "${n}" for adyen advanced flow, defaulted to "live"`
|
|
127
|
+
), "live";
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function z({
|
|
131
|
+
amount: e,
|
|
132
|
+
countryCode: t,
|
|
133
|
+
locale: n,
|
|
134
|
+
paymentMethodOptionResponse: r,
|
|
135
|
+
logger: s,
|
|
136
|
+
onSubmit: u
|
|
137
|
+
}) {
|
|
138
|
+
return {
|
|
139
|
+
...e ? { amount: T(e) } : {},
|
|
140
|
+
...u ? { onSubmit: u } : {},
|
|
141
|
+
analytics: { enabled: !1 },
|
|
142
|
+
clientKey: h(r),
|
|
143
|
+
countryCode: t,
|
|
144
|
+
environment: v(
|
|
145
|
+
r,
|
|
146
|
+
s
|
|
147
|
+
),
|
|
148
|
+
locale: n,
|
|
149
|
+
paymentMethodsResponse: {
|
|
150
|
+
paymentMethods: l(r)
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function Q(e) {
|
|
155
|
+
return e ? Object.fromEntries(Object.entries(e).map(([t, n]) => [t, String(n)])) : void 0;
|
|
156
|
+
}
|
|
157
|
+
const k = () => R(I);
|
|
158
|
+
function x(e) {
|
|
159
|
+
const t = d(!1);
|
|
160
|
+
return S(
|
|
161
|
+
e,
|
|
162
|
+
(n) => {
|
|
163
|
+
n || (t.value = !1);
|
|
164
|
+
},
|
|
165
|
+
{ flush: "sync" }
|
|
166
|
+
), {
|
|
167
|
+
isFormHeld: m(() => e.value && !t.value),
|
|
168
|
+
handleActionRequired: () => {
|
|
169
|
+
t.value = !0;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
export {
|
|
174
|
+
k as a,
|
|
175
|
+
v as b,
|
|
176
|
+
G as c,
|
|
177
|
+
h as d,
|
|
178
|
+
V as e,
|
|
179
|
+
F as f,
|
|
180
|
+
b as g,
|
|
181
|
+
M as h,
|
|
182
|
+
N as i,
|
|
183
|
+
z as j,
|
|
184
|
+
a as k,
|
|
185
|
+
O as r,
|
|
186
|
+
D as s,
|
|
187
|
+
Q as t,
|
|
188
|
+
x as u
|
|
189
|
+
};
|
package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as y, computed as r, openBlock as v, createBlock as
|
|
2
|
-
import { a as M, _ as L,
|
|
3
|
-
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as y, computed as r, openBlock as v, createBlock as A, withCtx as _, createElementVNode as N, createVNode as b, unref as g, createTextVNode as w, toDisplayString as E, renderSlot as I, toValue as u, watch as x } from "vue";
|
|
2
|
+
import { a as M, _ as L, d as B } from "./customElements-Di3zwlEU.mjs";
|
|
3
|
+
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs";
|
|
4
|
+
import { h as O } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs";
|
|
5
|
+
import { a as V } from "./usePaymentFormHold-FfNc578l.mjs";
|
|
6
6
|
const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
|
|
7
7
|
__name: "PaymentMethodsUnavailableCard",
|
|
8
8
|
props: {
|
|
@@ -43,14 +43,14 @@ const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
|
|
|
43
43
|
description: "Body text shown when no payment method can be stored",
|
|
44
44
|
id: "payment_methods_unavailable_card.description.tokenize"
|
|
45
45
|
}));
|
|
46
|
-
return (o, c) => (v(),
|
|
46
|
+
return (o, c) => (v(), A(T, {
|
|
47
47
|
status: "error",
|
|
48
48
|
title: m.value,
|
|
49
49
|
class: "sv-payment-methods-unavailable-card"
|
|
50
50
|
}, {
|
|
51
51
|
default: _(() => [
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
N("div", S, [
|
|
53
|
+
b(g(L), {
|
|
54
54
|
variant: "body-xs",
|
|
55
55
|
color: "subtle",
|
|
56
56
|
class: "mt-3"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { u as a, i as u } from "./useService-B0OQJmif.mjs";
|
|
2
|
+
import { c as b } from "./paymentMethods-BUuOmDq9.mjs";
|
|
3
|
+
function M(o) {
|
|
4
|
+
return o.customerId !== void 0;
|
|
5
|
+
}
|
|
6
|
+
function q() {
|
|
7
|
+
const { getPaymentMethodOptions: o } = b(), c = (t) => M(t) ? o({
|
|
8
|
+
customerId: t.customerId,
|
|
9
|
+
subscriptionId: t.subscriptionId,
|
|
10
|
+
invoiceId: t.invoiceId,
|
|
11
|
+
amount: t.amount,
|
|
12
|
+
country: t.country
|
|
13
|
+
}) : o({
|
|
14
|
+
subscriptionId: t.subscriptionId,
|
|
15
|
+
amount: t.amount,
|
|
16
|
+
country: t.country
|
|
17
|
+
});
|
|
18
|
+
let s, e;
|
|
19
|
+
const m = (t) => {
|
|
20
|
+
if (e && u(t, e.payload))
|
|
21
|
+
return e.options;
|
|
22
|
+
const n = c(t), r = () => {
|
|
23
|
+
(e == null ? void 0 : e.options) === n && (e = void 0);
|
|
24
|
+
};
|
|
25
|
+
return n.then(r, r), e = { payload: t, options: n }, n;
|
|
26
|
+
}, I = [], { data: d, execute: f, settle: v, apiStatus: h, error: p, isPending: P } = a({
|
|
27
|
+
initialValue: I,
|
|
28
|
+
service: m
|
|
29
|
+
});
|
|
30
|
+
let i;
|
|
31
|
+
return { paymentMethodOptions: d, get: async (t) => {
|
|
32
|
+
if (i = t, s && u(t, s.payload))
|
|
33
|
+
return v(s.options), s.options;
|
|
34
|
+
const n = await f(t);
|
|
35
|
+
return i === t && (s = { payload: t, options: n }), n;
|
|
36
|
+
}, apiStatus: h, error: p, isPending: P };
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
q as u
|
|
40
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as s } from "./useIncrementalLoading-
|
|
2
|
-
import { c as a } from "./paymentMethods-
|
|
1
|
+
import { u as s } from "./useIncrementalLoading-C_sHmW7d.mjs";
|
|
2
|
+
import { c as a } from "./paymentMethods-BUuOmDq9.mjs";
|
|
3
3
|
function m({
|
|
4
4
|
customerId: e,
|
|
5
5
|
pageSize: t = 15
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as b, createPropsRestProxy as C, ref as _, computed as o, openBlock as c, createElementBlock as A, createVNode as g, unref as l, mergeProps as O, createSlots as S, withCtx as s, renderSlot as h, createBlock as p, createTextVNode as v, toDisplayString as D, createCommentVNode as I, createElementVNode as L } from "vue";
|
|
2
|
-
import { a as N, _ as R } from "./customElements-
|
|
3
|
-
import { _ as B } from "./IconTitle.vue.es-
|
|
4
|
-
import { _ as P } from "./Chip.vue.es-
|
|
2
|
+
import { a as N, _ as R } from "./customElements-Di3zwlEU.mjs";
|
|
3
|
+
import { _ as B } from "./IconTitle.vue.es-BO6KBS4v.mjs";
|
|
4
|
+
import { _ as P } from "./Chip.vue.es-Cn2R_0mE.mjs";
|
|
5
5
|
import { a as x } from "./formatting.es-RclXHhKo.mjs";
|
|
6
6
|
import { a as V, b as z } from "./index.es-CXkP_k3u.mjs";
|
|
7
|
-
import { _ as $ } from "./Button.vue.es-
|
|
7
|
+
import { _ as $ } from "./Button.vue.es-rh6mITmN.mjs";
|
|
8
8
|
import { _ as k } from "./FormMessage.vue.es-jG3fQZms.mjs";
|
|
9
|
-
import { c as U } from "./invoices-
|
|
10
|
-
import { u as T } from "./useService-
|
|
11
|
-
import { c as M } from "./payments-
|
|
9
|
+
import { c as U } from "./invoices-Cf1qDAv4.mjs";
|
|
10
|
+
import { u as T } from "./useService-B0OQJmif.mjs";
|
|
11
|
+
import { c as M } from "./payments-Ci8bF4C6.mjs";
|
|
12
12
|
const G = {
|
|
13
13
|
neutral: { indicatorClass: "border-gray-500 bg-gray-500", chipIntent: "neutral" },
|
|
14
14
|
info: { indicatorClass: "border-blue-600 bg-blue-600", chipIntent: "info" },
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { A as n } from "./ApiStatus-CSFKl_ra.mjs";
|
|
2
|
+
import { shallowRef as g, ref as p, computed as A } from "vue";
|
|
3
|
+
import { t as h } from "./customElements-Di3zwlEU.mjs";
|
|
4
|
+
function C(e) {
|
|
5
|
+
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !0;
|
|
6
|
+
}
|
|
7
|
+
function d(e, t) {
|
|
8
|
+
if (e === t) return !0;
|
|
9
|
+
if (e == null || t == null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
10
|
+
const i = Object.keys(e), o = Object.keys(t);
|
|
11
|
+
return i.length !== o.length ? !1 : i.every(
|
|
12
|
+
(r) => d(e[r], t[r])
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
const j = d;
|
|
16
|
+
function y(e, t) {
|
|
17
|
+
j(e.value, t) || (e.value = t);
|
|
18
|
+
}
|
|
19
|
+
function E(e) {
|
|
20
|
+
return typeof e == "object" && e !== null && "data" in e;
|
|
21
|
+
}
|
|
22
|
+
function R(e) {
|
|
23
|
+
if (!E(e))
|
|
24
|
+
throw new Error("Expected collection response.");
|
|
25
|
+
return e.data;
|
|
26
|
+
}
|
|
27
|
+
function S(e, t) {
|
|
28
|
+
return t ? R(e) : e;
|
|
29
|
+
}
|
|
30
|
+
function D({
|
|
31
|
+
initialValue: e,
|
|
32
|
+
service: t,
|
|
33
|
+
isCollection: i = !1
|
|
34
|
+
}) {
|
|
35
|
+
const o = g(e), r = p(n.Initial), u = p(null), m = A(() => r.value === n.Loading);
|
|
36
|
+
let a = 0;
|
|
37
|
+
return { data: o, execute: async (...c) => {
|
|
38
|
+
const f = ++a;
|
|
39
|
+
try {
|
|
40
|
+
r.value = n.Loading, u.value = null;
|
|
41
|
+
const l = await t(...c), s = S(l, i);
|
|
42
|
+
return f === a && (y(o, s), r.value = n.Done), s;
|
|
43
|
+
} catch (l) {
|
|
44
|
+
const s = h(l);
|
|
45
|
+
return f === a && (u.value = s, r.value = n.Failed), Promise.reject(s);
|
|
46
|
+
}
|
|
47
|
+
}, settle: (c) => {
|
|
48
|
+
a++, y(o, c), u.value = null, r.value = n.Done;
|
|
49
|
+
}, apiStatus: r, isPending: m, error: u };
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
C as a,
|
|
53
|
+
d,
|
|
54
|
+
j as i,
|
|
55
|
+
D as u
|
|
56
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ref as a, onMounted as i, onUnmounted as s } from "vue";
|
|
2
|
+
function c(n) {
|
|
3
|
+
const t = a(!1);
|
|
4
|
+
let e;
|
|
5
|
+
const o = (r) => {
|
|
6
|
+
t.value = r.matches;
|
|
7
|
+
};
|
|
8
|
+
return i(() => {
|
|
9
|
+
e = window.matchMedia(n), t.value = e.matches, e.addEventListener("change", o);
|
|
10
|
+
}), s(() => {
|
|
11
|
+
e == null || e.removeEventListener("change", o);
|
|
12
|
+
}), t;
|
|
13
|
+
}
|
|
14
|
+
function d() {
|
|
15
|
+
return { isMobileViewport: c("(max-width: 639px)") };
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as u
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvimon/solvimon-web",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.28",
|
|
4
4
|
"description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
|
|
5
5
|
"private": false,
|
|
6
6
|
"engines": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"translations:extract": "formatjs extract 'src/**/*.{ts,vue}*' --ignore='**/*.d.ts' --out-file 'src/translations/source.json' --flatten --additional-function-names '$t'",
|
|
37
37
|
"translations:compile": "formatjs compile 'src/translations/source.json' --out-file 'src/translations/locales/en-US.json'",
|
|
38
38
|
"translations:check": "node ./scripts/check-translations.mjs",
|
|
39
|
+
"tests:check-labels": "node ./scripts/check-test-labels.mjs",
|
|
39
40
|
"types:check-published": "node ./scripts/ci/check-published-types.mjs",
|
|
40
41
|
"types:check-consumer": "node ./scripts/ci/check-consumer-types.mjs",
|
|
41
42
|
"bundle:check-contents": "node ./scripts/ci/check-bundle-contents.mjs",
|
|
@@ -57,136 +58,114 @@
|
|
|
57
58
|
},
|
|
58
59
|
"lint-staged": {
|
|
59
60
|
"*.{ts,vue,mjs}": "eslint --fix --max-warnings 0 --no-warn-ignored",
|
|
61
|
+
"*.spec.ts": "node ./scripts/check-test-labels.mjs",
|
|
60
62
|
"*": "prettier --write --ignore-unknown"
|
|
61
63
|
},
|
|
62
64
|
"files": [
|
|
63
65
|
"dist"
|
|
64
66
|
],
|
|
65
|
-
"main": "./dist/index.cjs",
|
|
66
67
|
"module": "./dist/index.mjs",
|
|
67
68
|
"types": "./dist/index.d.ts",
|
|
68
69
|
"exports": {
|
|
69
70
|
".": {
|
|
70
71
|
"types": "./dist/index.d.ts",
|
|
71
|
-
"
|
|
72
|
-
"require": "./dist/index.cjs"
|
|
72
|
+
"default": "./dist/index.mjs"
|
|
73
73
|
},
|
|
74
74
|
"./core": {
|
|
75
75
|
"types": "./dist/core/index.d.ts",
|
|
76
|
-
"
|
|
77
|
-
"require": "./dist/core/index.cjs"
|
|
76
|
+
"default": "./dist/core/index.mjs"
|
|
78
77
|
},
|
|
79
78
|
"./core/action-request-types": {
|
|
80
79
|
"types": "./dist/core/action-request.types.d.ts"
|
|
81
80
|
},
|
|
82
81
|
"./screens/checkout": {
|
|
83
82
|
"types": "./dist/screens/Checkout/Checkout.ce.d.ts",
|
|
84
|
-
"
|
|
85
|
-
"require": "./dist/screens/Checkout/Checkout.cjs"
|
|
83
|
+
"default": "./dist/screens/Checkout/Checkout.mjs"
|
|
86
84
|
},
|
|
87
85
|
"./screens/customer-overview": {
|
|
88
86
|
"types": "./dist/screens/CustomerOverview/CustomerOverview.ce.d.ts",
|
|
89
|
-
"
|
|
90
|
-
"require": "./dist/screens/CustomerOverview/CustomerOverview.cjs"
|
|
87
|
+
"default": "./dist/screens/CustomerOverview/CustomerOverview.mjs"
|
|
91
88
|
},
|
|
92
89
|
"./screens/subscription-management": {
|
|
93
90
|
"types": "./dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts",
|
|
94
|
-
"
|
|
95
|
-
"require": "./dist/screens/SubscriptionManagement/SubscriptionManagement.cjs"
|
|
91
|
+
"default": "./dist/screens/SubscriptionManagement/SubscriptionManagement.mjs"
|
|
96
92
|
},
|
|
97
93
|
"./screens/subscription-details": {
|
|
98
94
|
"types": "./dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts",
|
|
99
|
-
"
|
|
100
|
-
"require": "./dist/screens/SubscriptionDetails/SubscriptionDetails.cjs"
|
|
95
|
+
"default": "./dist/screens/SubscriptionDetails/SubscriptionDetails.mjs"
|
|
101
96
|
},
|
|
102
97
|
"./screens/pay-invoice": {
|
|
103
98
|
"types": "./dist/screens/PayInvoice/PayInvoice.ce.d.ts",
|
|
104
|
-
"
|
|
105
|
-
"require": "./dist/screens/PayInvoice/PayInvoice.cjs"
|
|
99
|
+
"default": "./dist/screens/PayInvoice/PayInvoice.mjs"
|
|
106
100
|
},
|
|
107
101
|
"./screens/payment-methods-management": {
|
|
108
102
|
"types": "./dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts",
|
|
109
|
-
"
|
|
110
|
-
"require": "./dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs"
|
|
103
|
+
"default": "./dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs"
|
|
111
104
|
},
|
|
112
105
|
"./components/subscriptions-list": {
|
|
113
106
|
"types": "./dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts",
|
|
114
|
-
"
|
|
115
|
-
"require": "./dist/components/SubscriptionsList/SubscriptionsList.cjs"
|
|
107
|
+
"default": "./dist/components/SubscriptionsList/SubscriptionsList.mjs"
|
|
116
108
|
},
|
|
117
109
|
"./components/customer-payment-methods": {
|
|
118
110
|
"types": "./dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts",
|
|
119
|
-
"
|
|
120
|
-
"require": "./dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs"
|
|
111
|
+
"default": "./dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs"
|
|
121
112
|
},
|
|
122
113
|
"./components/wallet-balances": {
|
|
123
114
|
"types": "./dist/components/WalletBalances/WalletBalances.ce.d.ts",
|
|
124
|
-
"
|
|
125
|
-
"require": "./dist/components/WalletBalances/WalletBalances.cjs"
|
|
115
|
+
"default": "./dist/components/WalletBalances/WalletBalances.mjs"
|
|
126
116
|
},
|
|
127
117
|
"./components/billing-information": {
|
|
128
118
|
"types": "./dist/components/BillingInformation/BillingInformation.ce.d.ts",
|
|
129
|
-
"
|
|
130
|
-
"require": "./dist/components/BillingInformation/BillingInformation.cjs"
|
|
119
|
+
"default": "./dist/components/BillingInformation/BillingInformation.mjs"
|
|
131
120
|
},
|
|
132
121
|
"./components/billing-information-form": {
|
|
133
122
|
"types": "./dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts",
|
|
134
|
-
"
|
|
135
|
-
"require": "./dist/components/BillingInformationForm/BillingInformationForm.cjs"
|
|
123
|
+
"default": "./dist/components/BillingInformationForm/BillingInformationForm.mjs"
|
|
136
124
|
},
|
|
137
125
|
"./components/invoice": {
|
|
138
126
|
"types": "./dist/components/Invoice/Invoice.ce.d.ts",
|
|
139
|
-
"
|
|
140
|
-
"require": "./dist/components/Invoice/Invoice.cjs"
|
|
127
|
+
"default": "./dist/components/Invoice/Invoice.mjs"
|
|
141
128
|
},
|
|
142
129
|
"./components/invoice-header": {
|
|
143
130
|
"types": "./dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts",
|
|
144
|
-
"
|
|
145
|
-
"require": "./dist/components/InvoiceHeader/InvoiceHeader.cjs"
|
|
131
|
+
"default": "./dist/components/InvoiceHeader/InvoiceHeader.mjs"
|
|
146
132
|
},
|
|
147
133
|
"./components/invoice-details": {
|
|
148
134
|
"types": "./dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts",
|
|
149
|
-
"
|
|
150
|
-
"require": "./dist/components/InvoiceDetails/InvoiceDetails.cjs"
|
|
135
|
+
"default": "./dist/components/InvoiceDetails/InvoiceDetails.mjs"
|
|
151
136
|
},
|
|
152
137
|
"./components/invoices-list": {
|
|
153
138
|
"types": "./dist/components/InvoicesList/InvoicesList.ce.d.ts",
|
|
154
|
-
"
|
|
155
|
-
"require": "./dist/components/InvoicesList/InvoicesList.cjs"
|
|
139
|
+
"default": "./dist/components/InvoicesList/InvoicesList.mjs"
|
|
156
140
|
},
|
|
157
141
|
"./components/payment-history": {
|
|
158
142
|
"types": "./dist/components/PaymentHistory/PaymentHistory.ce.d.ts",
|
|
159
|
-
"
|
|
160
|
-
"require": "./dist/components/PaymentHistory/PaymentHistory.cjs"
|
|
143
|
+
"default": "./dist/components/PaymentHistory/PaymentHistory.mjs"
|
|
161
144
|
},
|
|
162
145
|
"./components/subscription-schedules": {
|
|
163
146
|
"types": "./dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts",
|
|
164
|
-
"
|
|
165
|
-
"require": "./dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs"
|
|
147
|
+
"default": "./dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs"
|
|
166
148
|
},
|
|
167
149
|
"./components/payment-method-form": {
|
|
168
150
|
"types": "./dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts",
|
|
169
|
-
"
|
|
170
|
-
"require": "./dist/components/PaymentMethodForm/PaymentMethodForm.cjs"
|
|
151
|
+
"default": "./dist/components/PaymentMethodForm/PaymentMethodForm.mjs"
|
|
171
152
|
}
|
|
172
153
|
},
|
|
173
154
|
"sideEffects": false,
|
|
174
155
|
"peerDependencies": {
|
|
175
156
|
"vue": ">=3.5.0"
|
|
176
157
|
},
|
|
177
|
-
"dependencies": {
|
|
178
|
-
"@adyen/adyen-web": "^6.14.0"
|
|
179
|
-
},
|
|
180
158
|
"devDependencies": {
|
|
159
|
+
"@adyen/adyen-web": "^6.14.0",
|
|
181
160
|
"@commitlint/cli": "^20.5.3",
|
|
182
161
|
"@commitlint/config-conventional": "^20.5.3",
|
|
183
162
|
"@formatjs/cli": "^6.6.1",
|
|
163
|
+
"@formatjs/icu-messageformat-parser": "^2.11.4",
|
|
164
|
+
"@formatjs/intl": "^3.1.8",
|
|
184
165
|
"@playwright/test": "^1.57.0",
|
|
185
166
|
"@solvimon/solvimon-types": "^1.2.0",
|
|
186
|
-
"@solvimon/solvimon-ui": "^1.
|
|
167
|
+
"@solvimon/solvimon-ui": "^1.19.0",
|
|
187
168
|
"@stripe/stripe-js": "^9.8.0",
|
|
188
|
-
"@tsconfig/node22": "^22.0.0",
|
|
189
|
-
"@types/jsdom": "^21.1.7",
|
|
190
169
|
"@types/node": "^22.10.2",
|
|
191
170
|
"@typescript-eslint/parser": "^8.46.2",
|
|
192
171
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
@@ -200,7 +179,6 @@
|
|
|
200
179
|
"@vuelidate/validators": "^2.0.4",
|
|
201
180
|
"autoprefixer": "^10.4.20",
|
|
202
181
|
"eslint": "^9.37.0",
|
|
203
|
-
"eslint-import-resolver-typescript": "^3.6.0",
|
|
204
182
|
"eslint-plugin-formatjs": "^6.4.7",
|
|
205
183
|
"eslint-plugin-import-x": "^4.16.1",
|
|
206
184
|
"eslint-plugin-no-relative-import-paths": "^1.5.2",
|
|
@@ -209,17 +187,15 @@
|
|
|
209
187
|
"glob": "^11.0.1",
|
|
210
188
|
"husky": "^9.1.7",
|
|
211
189
|
"jsdom": "^26.0.0",
|
|
212
|
-
"jwt-decode": "^4.0.0",
|
|
213
190
|
"lint-staged": "^16.4.0",
|
|
214
191
|
"npm-run-all2": "^7.0.2",
|
|
215
192
|
"postcss": "^8.5.23",
|
|
216
193
|
"prettier": "^3.8.3",
|
|
217
194
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
218
195
|
"tailwindcss": "^3.4.17",
|
|
219
|
-
"terser": "^5.46.2",
|
|
220
|
-
"tsx": "^4.22.4",
|
|
221
196
|
"typescript": "~5.6.3",
|
|
222
197
|
"vite": "^6.4.2",
|
|
198
|
+
"vite-bundle-visualizer": "^1.2.1",
|
|
223
199
|
"vite-plugin-dts": "^5.1.2",
|
|
224
200
|
"vitest": "^4.1.11",
|
|
225
201
|
"vitest-localstorage-mock": "^0.1.2",
|
|
@@ -238,8 +214,5 @@
|
|
|
238
214
|
"@tiptap/extension-node-range": "^3.31.2",
|
|
239
215
|
"@tiptap/extension-placeholder": "^3.31.2",
|
|
240
216
|
"postcss-selector-parser": "^7.1.6"
|
|
241
|
-
},
|
|
242
|
-
"optionalDependencies": {
|
|
243
|
-
"vite-bundle-visualizer": "^1.2.1"
|
|
244
217
|
}
|
|
245
218
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("vue"),_=require("./PaymentMethod.vue.es-D0D9jW8s.js"),h=require("./Button.vue.es-BzkuglKw.js"),v=require("./FormMessage.vue.es-dqATjC2N.js"),b=require("./RadioGroupExtended.vue.es-DlbURHQN.js"),f=require("./customElements-DUMRMFQ5.js"),g=require("./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js"),u=t=>t.replaceAll("_"," ").toLowerCase().replace(/^./,o=>o.toUpperCase());function k(t){var n,i,l,d,a,s;const o=[];switch(t.type){case"CARD":o.push(t.card.brand&&u(t.card.brand),t.card.last_four_digits);break;case"ONLINE_BANKING":o.push(((n=t.online_banking)==null?void 0:n.variant)&&u(t.online_banking.variant),(i=t.online_banking)==null?void 0:i.owner_name);break;case"DIRECT_DEBIT":o.push(((l=t.direct_debit)==null?void 0:l.variant)&&u(t.direct_debit.variant),(d=t.direct_debit)==null?void 0:d.owner_name);break;case"BUY_NOW_PAY_LATER":o.push(((a=t.buy_now_pay_later)==null?void 0:a.variant)&&u(t.buy_now_pay_later.variant));break;case"DIGITAL_WALLET":o.push(((s=t.digital_wallet)==null?void 0:s.variant)&&u(t.digital_wallet.variant));break}return o.filter(Boolean).join(" ")||u(t.type)}function B(t){const o=e.computed(()=>t.value.map(n=>({value:n.id,label:k(n)}))),r=e.computed(()=>Object.fromEntries(t.value.map(n=>[n.id,n])));return{options:o,paymentMethodsById:r}}const w={class:"sr-only"},A=e.defineComponent({__name:"PaymentMethodSelector",props:{paymentMethods:{type:Array},modelValue:{type:String},label:{type:String},required:{type:Boolean},disabled:{type:Boolean},error:{type:[String,Object,Array]},rootClass:{type:String},showAddOption:{type:Boolean,default:!0},paymentMethodOptions:{type:Array}},emits:["update:modelValue","add-payment-method"],setup(t,{emit:o}){const r=t,n=o,{$t:i}=f.useIntl(),{options:l,paymentMethodsById:d}=B(e.toRef(r,"paymentMethods")),a=e.computed({get:()=>r.modelValue,set:c=>n("update:modelValue",typeof c=="string"?c:void 0)}),s=e.computed(()=>r.paymentMethods.length>0),p=e.computed(()=>{var c;return((c=r.paymentMethodOptions)==null?void 0:c.length)!==0});return(c,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["sv-payment-method-selector grid grid-cols-1 gap-2",t.rootClass])},[!s.value&&!p.value?(e.openBlock(),e.createBlock(g._sfc_main,{key:0,class:"sv-payment-method-selector__empty",icon:"credit_card_off"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"No payment methods available",description:"Shown in place of the payment method choice when the customer has nothing stored and nothing can be added",id:"payment_method_selector.empty_state.title"})),1)]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,[s.value?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=m=>a.value=m),class:"sv-payment-method-selector__options",name:"payment-method",direction:"column",options:e.unref(l),label:t.label,required:t.required,disabled:t.disabled,error:t.error,"show-radio":!1},{prefix:e.withCtx(({optionValue:m})=>[e.createVNode(e.unref(_._sfc_main),{class:"sv-payment-method-selector__option-content grow","payment-method":e.unref(d)[String(m)]},null,8,["payment-method"])]),label:e.withCtx(({option:m})=>[e.createElementVNode("span",w,e.toDisplayString(m.label),1)]),_:1},8,["modelValue","options","label","required","disabled","error"])):e.createCommentVNode("",!0)]),t.showAddOption&&p.value?(e.openBlock(),e.createBlock(e.unref(h._sfc_main),{key:0,class:"sv-action sv-action--secondary sv-action--full-width sv-payment-method-selector__add w-full",intent:"secondary","icon-prefix":"add",type:"button",size:"sm",disabled:t.disabled,onClick:y[1]||(y[1]=m=>n("add-payment-method"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"Add payment method",description:"Label of the button that adds a new payment method",id:"payment_method_selector.add_payment_method"})),1)]),_:1},8,["disabled"])):t.showAddOption?(e.openBlock(),e.createBlock(e.unref(f._sfc_main),{key:1,variant:"body-sm",color:"subtle",tag:"p",class:"sv-payment-method-selector__unavailable"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)({defaultMessage:"There are no available payment methods. Please contact support for more information.",description:"Shown in place of the add button when the customer cannot add any payment method",id:"payment_method_selector.no_payment_methods_available"})),1)]),_:1})):e.createCommentVNode("",!0),t.error&&!s.value?(e.openBlock(),e.createBlock(e.unref(v._sfc_main),{key:2,class:"sv-payment-method-selector__error",message:t.error,variant:"error"},null,8,["message"])):e.createCommentVNode("",!0)],64))],2))}}),C=e.defineComponent({__name:"AddPaymentMethodPane",props:{customer:{type:Object},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},isActive:{type:Boolean}},emits:["success","failure"],setup(t,{expose:o}){const r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentMethodForm-CMP5FLRO.js")).then(a=>a.default)),n=t,i=e.computed(()=>({variant:"TOKENIZE"})),l=e.ref(!1);e.watch(()=>n.isActive,a=>{l.value=l.value||!!a},{immediate:!0});const d=e.ref();return o({submit:()=>{var a;return(a=d.value)==null?void 0:a.submit()},isSaving:e.computed(()=>{var a;return!!n.isActive&&!!((a=d.value)!=null&&a.isPaymentPending)})}),(a,s)=>t.customer&&l.value?(e.openBlock(),e.createBlock(e.unref(r),{key:0,ref_key:"formRef",ref:d,class:"sv-add-payment-method-pane","hide-submit-button":"",customer:t.customer,"payment-method-options":t.paymentMethodOptions??[],"is-loading":t.isLoading,configuration:i.value,onSuccess:s[0]||(s[0]=p=>a.$emit("success")),onFailure:s[1]||(s[1]=p=>a.$emit("failure",p))},null,8,["customer","payment-method-options","is-loading","configuration"])):e.createCommentVNode("",!0)}});exports._sfc_main=A;exports._sfc_main$1=C;
|