@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.32
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 +152 -91
- package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
- package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
- package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
- package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
- package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
- package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
- package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
- package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
- package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
- package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
- package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
- package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
- package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
- package/dist/adyen-CHgq2l6n.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +1087 -1019
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
- package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
- package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
- package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
- package/dist/index.es-Bv55VtdE.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-I7PghcPV.mjs +143 -0
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
- package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-BKoKpoLN.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
- package/dist/pricing-Y-7ELzN-.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-B7dNqi1C.mjs +99 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +199 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
- package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
- package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
- package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
- package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
- package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
- package/dist/usePortal-DuLR5Mid.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
- package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
- package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
- package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
- package/package.json +41 -11
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, computed as f, openBlock as a, createElementBlock as o, Fragment as c, renderList as x, createCommentVNode as g, normalizeClass as m, toDisplayString as y, ref as v, onMounted as _ } from "vue";
|
|
2
2
|
import { e as b } from "./sanitization.es-C6dbuxUJ.mjs";
|
|
3
|
-
import { i as k } from "./useService-
|
|
3
|
+
import { i as k } from "./useService-2aOFBTxU.mjs";
|
|
4
4
|
const C = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = ["innerHTML"], I = /* @__PURE__ */ d({
|
|
5
5
|
__name: "TextWithHighlights",
|
|
6
6
|
props: {
|
|
@@ -57,21 +57,22 @@ const C = (n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = ["innerHTML"], I
|
|
|
57
57
|
], 64))), 128))
|
|
58
58
|
]));
|
|
59
59
|
}
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
return _(() => {
|
|
63
|
-
n.value = !0;
|
|
64
|
-
}), n;
|
|
65
|
-
};
|
|
66
|
-
function T(n, t) {
|
|
60
|
+
});
|
|
61
|
+
function L(n, t) {
|
|
67
62
|
const h = /* @__PURE__ */ new Set();
|
|
68
63
|
return n.filter((e) => {
|
|
69
64
|
const u = e[t];
|
|
70
65
|
return h.has(u) ? !1 : (h.add(u), !0);
|
|
71
66
|
});
|
|
72
67
|
}
|
|
68
|
+
const T = () => {
|
|
69
|
+
const n = v(!1);
|
|
70
|
+
return _(() => {
|
|
71
|
+
n.value = !0;
|
|
72
|
+
}), n;
|
|
73
|
+
};
|
|
73
74
|
export {
|
|
74
75
|
I as _,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
L as s,
|
|
77
|
+
T as u
|
|
77
78
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ref as r, watch as t, computed as a } from "vue";
|
|
2
|
+
function s(u) {
|
|
3
|
+
const e = r(!1);
|
|
4
|
+
return t(
|
|
5
|
+
u,
|
|
6
|
+
(o) => {
|
|
7
|
+
o || (e.value = !1);
|
|
8
|
+
},
|
|
9
|
+
{ flush: "sync" }
|
|
10
|
+
), {
|
|
11
|
+
isFormHeld: a(() => u.value && !e.value),
|
|
12
|
+
handleActionRequired: () => {
|
|
13
|
+
e.value = !0;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as u
|
|
19
|
+
};
|
package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
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, d as L, e as B } from "./customElements-
|
|
3
|
-
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { h as O } from "./
|
|
5
|
-
import {
|
|
2
|
+
import { a as M, d as L, e as B } from "./customElements-B8c354Nu.mjs";
|
|
3
|
+
import { _ as T } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs";
|
|
4
|
+
import { h as O } from "./paymentIntegrationFormLoaders-BFMAMpcA.mjs";
|
|
5
|
+
import { u as V } from "./useExperimentalFeature-Bw6bBtay.mjs";
|
|
6
6
|
const S = { class: "flex flex-col items-center gap-4" }, H = /* @__PURE__ */ y({
|
|
7
7
|
__name: "PaymentMethodsUnavailableCard",
|
|
8
8
|
props: {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { u as v, a as m } from "./useService-2aOFBTxU.mjs";
|
|
2
|
+
import { c as x } from "./paymentMethods-aGKIi7DS.mjs";
|
|
3
|
+
const h = ["applepay"];
|
|
4
|
+
function D(e) {
|
|
5
|
+
return e.filter(
|
|
6
|
+
(s) => !h.some((n) => {
|
|
7
|
+
var r;
|
|
8
|
+
return n === ((r = s.type) == null ? void 0 : r.toLowerCase());
|
|
9
|
+
})
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function _(e, s = /* @__PURE__ */ new Date()) {
|
|
13
|
+
var i;
|
|
14
|
+
if (e.type !== "CARD" || !((i = e.card) != null && i.expiry_date)) return !1;
|
|
15
|
+
const { expiry_month: n, expiry_year: r } = e.card.expiry_date;
|
|
16
|
+
return s.getTime() >= Date.UTC(r, n, 1);
|
|
17
|
+
}
|
|
18
|
+
function M(e, s = /* @__PURE__ */ new Date()) {
|
|
19
|
+
return e.status === "ACTIVE" && !_(e, s);
|
|
20
|
+
}
|
|
21
|
+
function C(e) {
|
|
22
|
+
return e.portalUrlId !== void 0;
|
|
23
|
+
}
|
|
24
|
+
function S(e) {
|
|
25
|
+
return e.customerId !== void 0;
|
|
26
|
+
}
|
|
27
|
+
function O() {
|
|
28
|
+
const { getPaymentMethodOptions: e } = x(), s = (t) => C(t) ? e({ portalUrlId: t.portalUrlId }) : S(t) ? e({
|
|
29
|
+
customerId: t.customerId,
|
|
30
|
+
subscriptionId: t.subscriptionId,
|
|
31
|
+
invoiceId: t.invoiceId,
|
|
32
|
+
amount: t.amount,
|
|
33
|
+
country: t.country
|
|
34
|
+
}) : e({
|
|
35
|
+
subscriptionId: t.subscriptionId,
|
|
36
|
+
amount: t.amount,
|
|
37
|
+
country: t.country
|
|
38
|
+
});
|
|
39
|
+
let n, r;
|
|
40
|
+
const i = ({
|
|
41
|
+
payload: t,
|
|
42
|
+
fresh: u
|
|
43
|
+
}) => {
|
|
44
|
+
if (!u && r && m(t, r.payload))
|
|
45
|
+
return r.options;
|
|
46
|
+
const o = s(t), a = () => {
|
|
47
|
+
(r == null ? void 0 : r.options) === o && (r = void 0);
|
|
48
|
+
};
|
|
49
|
+
return o.then(a, a), r = { payload: t, options: o }, o;
|
|
50
|
+
}, f = [], { data: d, execute: p, settle: I, apiStatus: P, error: l, isPending: E } = v({
|
|
51
|
+
initialValue: f,
|
|
52
|
+
service: i
|
|
53
|
+
});
|
|
54
|
+
let c;
|
|
55
|
+
return { paymentMethodOptions: d, get: async (t, { fresh: u = !1 } = {}) => {
|
|
56
|
+
if (c = t, !u && n && m(t, n.payload))
|
|
57
|
+
return I(n.options), n.options;
|
|
58
|
+
const o = await p({ payload: t, fresh: u });
|
|
59
|
+
return c === t && (n = { payload: t, options: o }), o;
|
|
60
|
+
}, apiStatus: P, error: l, isPending: E };
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
_ as a,
|
|
64
|
+
D as f,
|
|
65
|
+
M as i,
|
|
66
|
+
O as u
|
|
67
|
+
};
|
|
@@ -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-CJSj1945.mjs";
|
|
2
|
+
import { c as a } from "./paymentMethods-aGKIi7DS.mjs";
|
|
3
3
|
const m = {
|
|
4
4
|
orderBy: "default",
|
|
5
5
|
orderDirection: "desc"
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
2
|
-
import { a as N, d as
|
|
3
|
-
import { _ as B } from "./IconTitle.vue.es-
|
|
4
|
-
import { _ as P } from "./Chip.vue.es-
|
|
5
|
-
import { a as x } from "./formatting.es-
|
|
6
|
-
import {
|
|
7
|
-
import { _ as $ } from "./Button.vue.es-
|
|
8
|
-
import { _ as k } from "./FormMessage.vue.es-
|
|
9
|
-
import { c as U } from "./invoices-
|
|
10
|
-
import { u as T } from "./useService-
|
|
11
|
-
import { c as M } from "./payments-
|
|
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 D, toDisplayString as v, createCommentVNode as I, createElementVNode as R } from "vue";
|
|
2
|
+
import { a as N, d as L } from "./customElements-B8c354Nu.mjs";
|
|
3
|
+
import { _ as B } from "./IconTitle.vue.es-CcOIFjbE.mjs";
|
|
4
|
+
import { _ as P } from "./Chip.vue.es-CYwWHyAT.mjs";
|
|
5
|
+
import { a as x } from "./formatting.es-DlJEzreG.mjs";
|
|
6
|
+
import { c as V, d as z } from "./index.es-C7J3WGGo.mjs";
|
|
7
|
+
import { _ as $ } from "./Button.vue.es-CW7XfMBF.mjs";
|
|
8
|
+
import { _ as k } from "./FormMessage.vue.es-MrzQoSae.mjs";
|
|
9
|
+
import { c as U } from "./invoices-I7PghcPV.mjs";
|
|
10
|
+
import { u as T } from "./useService-2aOFBTxU.mjs";
|
|
11
|
+
import { c as M } from "./payments-BKoKpoLN.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" },
|
|
@@ -59,9 +59,11 @@ const G = {
|
|
|
59
59
|
PAYMENT_FAILED: "danger",
|
|
60
60
|
PENDING: "info",
|
|
61
61
|
PENDING_REVIEW: "warning",
|
|
62
|
+
PRICED: "info",
|
|
62
63
|
PROCESSING: "info",
|
|
63
64
|
QUEUED: "info",
|
|
64
65
|
REJECTED: "danger",
|
|
66
|
+
REVERTED: "neutral",
|
|
65
67
|
SCHEDULED: "info",
|
|
66
68
|
SEND: "info",
|
|
67
69
|
SIGNATURE_REQUESTED: "warning",
|
|
@@ -128,7 +130,7 @@ const G = {
|
|
|
128
130
|
]), 1040, ["loading"]),
|
|
129
131
|
a.value ? (c(), p(l(k), { key: 0 }, {
|
|
130
132
|
default: s(() => [
|
|
131
|
-
v(
|
|
133
|
+
D(v(l(t)({
|
|
132
134
|
id: "download_button.download_failed_message",
|
|
133
135
|
defaultMessage: "Download failed, please try again later",
|
|
134
136
|
description: "Error message when a download fails"
|
|
@@ -155,7 +157,7 @@ const G = {
|
|
|
155
157
|
}, {
|
|
156
158
|
default: s(() => [
|
|
157
159
|
h(t.$slots, "default", {}, () => [
|
|
158
|
-
v(
|
|
160
|
+
D(v(l(x)(e.status)), 1)
|
|
159
161
|
]),
|
|
160
162
|
h(t.$slots, "suffix")
|
|
161
163
|
]),
|
|
@@ -230,7 +232,7 @@ const G = {
|
|
|
230
232
|
return (u, X) => (c(), A("div", K, [
|
|
231
233
|
g(B, { title: E.value }, {
|
|
232
234
|
suffix: s(() => [
|
|
233
|
-
|
|
235
|
+
R("span", Q, [
|
|
234
236
|
y.value ? (c(), p(j, {
|
|
235
237
|
key: 0,
|
|
236
238
|
status: e.invoice.status,
|
|
@@ -242,7 +244,7 @@ const G = {
|
|
|
242
244
|
"has-chip-before": y.value
|
|
243
245
|
}, {
|
|
244
246
|
default: s(() => [
|
|
245
|
-
v(
|
|
247
|
+
D(v(l(n)({
|
|
246
248
|
defaultMessage: "Paid",
|
|
247
249
|
description: "The paid chip label text for a paid invoice",
|
|
248
250
|
id: "invoice.paid_chip"
|
|
@@ -253,12 +255,12 @@ const G = {
|
|
|
253
255
|
])
|
|
254
256
|
]),
|
|
255
257
|
subTitle: s(() => [
|
|
256
|
-
g(
|
|
258
|
+
g(L, {
|
|
257
259
|
variant: "body-xs",
|
|
258
260
|
class: "flex gap-1 print:hidden"
|
|
259
261
|
}, {
|
|
260
262
|
default: s(() => [
|
|
261
|
-
v(
|
|
263
|
+
D(v(w.value), 1)
|
|
262
264
|
]),
|
|
263
265
|
_: 1
|
|
264
266
|
})
|
|
@@ -273,7 +275,7 @@ const G = {
|
|
|
273
275
|
"mobile-icon-only": ""
|
|
274
276
|
}, {
|
|
275
277
|
default: s(() => [
|
|
276
|
-
v(
|
|
278
|
+
D(v(l(n)({
|
|
277
279
|
defaultMessage: "Download PDF",
|
|
278
280
|
description: "Title for button download pdf invoice",
|
|
279
281
|
id: "invoice.download_pdf_button"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { computed as t } from "vue";
|
|
2
|
+
import { i as e, P as a, C as n } from "./customElements-B8c354Nu.mjs";
|
|
3
|
+
function c() {
|
|
4
|
+
const o = e(a, "PortalProvider");
|
|
5
|
+
return t(() => {
|
|
6
|
+
const r = o.value;
|
|
7
|
+
if (r.type === "CHECKOUT_SESSION")
|
|
8
|
+
throw new n("PORTAL_TYPE_NOT_ALLOWED", "Unexpected checkout session portal");
|
|
9
|
+
return r;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
c as u
|
|
14
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as n } from "./ApiStatus-CSFKl_ra.mjs";
|
|
2
2
|
import { shallowRef as g, ref as p, computed as A } from "vue";
|
|
3
|
-
import { t as h } from "./customElements-
|
|
3
|
+
import { t as h } from "./customElements-B8c354Nu.mjs";
|
|
4
4
|
function C(e) {
|
|
5
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
6
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { ref as u, toValue as g } from "vue";
|
|
2
|
+
import { c as h, u as S, b as p, e as m } from "./customElements-B8c354Nu.mjs";
|
|
3
|
+
import { a as v } from "./api.es-QaC926Xu.mjs";
|
|
4
|
+
const C = ({
|
|
5
|
+
line1: i,
|
|
6
|
+
line2: e,
|
|
7
|
+
city: a,
|
|
8
|
+
postal_code: d,
|
|
9
|
+
state: c,
|
|
10
|
+
country: o
|
|
11
|
+
}) => ({
|
|
12
|
+
line1: i ?? void 0,
|
|
13
|
+
line2: e ?? void 0,
|
|
14
|
+
city: a ?? void 0,
|
|
15
|
+
postal_code: d ?? void 0,
|
|
16
|
+
state: c ?? void 0,
|
|
17
|
+
country: o
|
|
18
|
+
}), _ = 50;
|
|
19
|
+
function w() {
|
|
20
|
+
const i = h(), e = S(), a = ["portal", "shipping-addresses"];
|
|
21
|
+
function d({
|
|
22
|
+
customerId: n
|
|
23
|
+
}) {
|
|
24
|
+
return i({
|
|
25
|
+
url: p(e.apiUrls.config, ...a),
|
|
26
|
+
query: v(
|
|
27
|
+
{ customer_id: n, statuses: ["ACTIVE"] },
|
|
28
|
+
{ page: 1, pageSize: _ }
|
|
29
|
+
),
|
|
30
|
+
isCollection: !0
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function c(n) {
|
|
34
|
+
return i({
|
|
35
|
+
url: p(e.apiUrls.config, ...a),
|
|
36
|
+
data: n,
|
|
37
|
+
options: { method: "POST" }
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function o({
|
|
41
|
+
shippingAddressId: n,
|
|
42
|
+
payload: A
|
|
43
|
+
}) {
|
|
44
|
+
return i({
|
|
45
|
+
url: p(e.apiUrls.config, ...a, n),
|
|
46
|
+
data: A,
|
|
47
|
+
options: { method: "PATCH" }
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function l({
|
|
51
|
+
shippingAddressId: n
|
|
52
|
+
}) {
|
|
53
|
+
return i({
|
|
54
|
+
url: p(e.apiUrls.config, ...a, n, "deprecate"),
|
|
55
|
+
options: { method: "POST" }
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
getShippingAddresses: d,
|
|
60
|
+
createShippingAddress: c,
|
|
61
|
+
updateShippingAddress: o,
|
|
62
|
+
deleteShippingAddress: l
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
const f = ({ reference: i, ...e }) => JSON.stringify(e), I = (i, e) => +!!e.is_default - +!!i.is_default || (Date.parse(e.created_at ?? "") || 0) - (Date.parse(i.created_at ?? "") || 0);
|
|
66
|
+
function N({
|
|
67
|
+
customerId: i
|
|
68
|
+
}) {
|
|
69
|
+
const e = w(), a = m(), d = u([]), c = u(!1), o = u(), l = async () => {
|
|
70
|
+
const s = g(i);
|
|
71
|
+
if (s) {
|
|
72
|
+
c.value = !0, o.value = void 0;
|
|
73
|
+
try {
|
|
74
|
+
const t = await e.getShippingAddresses({ customerId: s });
|
|
75
|
+
d.value = t.data.filter(({ status: r }) => r === "ACTIVE").sort(I);
|
|
76
|
+
} catch (t) {
|
|
77
|
+
a.error(
|
|
78
|
+
"SHIPPING_ADDRESSES_LOAD_FAILED",
|
|
79
|
+
"Failed to load the shipping addresses",
|
|
80
|
+
{},
|
|
81
|
+
t
|
|
82
|
+
), o.value = t;
|
|
83
|
+
} finally {
|
|
84
|
+
c.value = !1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, n = (s) => e.createShippingAddress({ ...s, status: "ACTIVE" });
|
|
88
|
+
return {
|
|
89
|
+
items: d,
|
|
90
|
+
isPending: c,
|
|
91
|
+
error: o,
|
|
92
|
+
fetchAll: l,
|
|
93
|
+
create: async (s) => {
|
|
94
|
+
try {
|
|
95
|
+
return await n(s);
|
|
96
|
+
} finally {
|
|
97
|
+
await l();
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
replace: async (s, t, r) => {
|
|
101
|
+
t = { description: s.description, ...t };
|
|
102
|
+
try {
|
|
103
|
+
return r.replacement ? r.storedDetails !== f(t) && (r.replacement = await e.updateShippingAddress({
|
|
104
|
+
shippingAddressId: r.replacement.id,
|
|
105
|
+
payload: {
|
|
106
|
+
...t,
|
|
107
|
+
reference: r.replacement.reference ?? t.reference
|
|
108
|
+
}
|
|
109
|
+
}), r.storedDetails = f(t)) : (r.replacement = await n(t), r.storedDetails = f(t)), await e.deleteShippingAddress({ shippingAddressId: s.id }), r.replacement;
|
|
110
|
+
} finally {
|
|
111
|
+
await l();
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
remove: async (s) => {
|
|
115
|
+
await e.deleteShippingAddress({ shippingAddressId: s.id }), await l();
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
C as t,
|
|
121
|
+
N as u
|
|
122
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { u as a } from "./useService-2aOFBTxU.mjs";
|
|
2
|
+
import { c as d } from "./subscriptions-B7dNqi1C.mjs";
|
|
3
|
+
const p = (n, e) => {
|
|
4
|
+
var r, i;
|
|
5
|
+
return !!((r = n.enabled_pricings) != null && r.some(({ pricing_id: s }) => s === e.id) || (i = n.override_pricings) != null && i.some(
|
|
6
|
+
(s) => "id" in s && s.id === e.id || s.original_pricing_id === e.id
|
|
7
|
+
));
|
|
8
|
+
}, l = (n) => {
|
|
9
|
+
var e, r;
|
|
10
|
+
return [
|
|
11
|
+
...((e = n.enabled_pricings) == null ? void 0 : e.map(({ pricing_id: i }) => i)) ?? [],
|
|
12
|
+
...((r = n.override_pricings) == null ? void 0 : r.map(
|
|
13
|
+
(i) => "id" in i ? i.id : i.original_pricing_id
|
|
14
|
+
)) ?? []
|
|
15
|
+
];
|
|
16
|
+
};
|
|
17
|
+
function _({
|
|
18
|
+
subscriptionId: n
|
|
19
|
+
}) {
|
|
20
|
+
const { getSubscription: e } = d(), {
|
|
21
|
+
data: r,
|
|
22
|
+
execute: i,
|
|
23
|
+
apiStatus: s,
|
|
24
|
+
error: o,
|
|
25
|
+
isPending: t
|
|
26
|
+
} = a({
|
|
27
|
+
service: () => e({ id: n, expanded: !0 })
|
|
28
|
+
});
|
|
29
|
+
return { subscription: r, apiStatus: s, error: o, get: i, isPending: t };
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
l as g,
|
|
33
|
+
p as i,
|
|
34
|
+
_ as u
|
|
35
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { computed as t, ref as i, watch as r } from "vue";
|
|
2
|
+
import { u } from "./useActionDispatchProvider-BCtk-FGU.mjs";
|
|
3
|
+
import { i as v, g as m, a as d } from "./subscription-DQ5mRp_e.mjs";
|
|
4
|
+
function N({
|
|
5
|
+
subscription: a
|
|
6
|
+
}) {
|
|
7
|
+
const { dispatchAction: l } = u(), c = t(
|
|
8
|
+
() => v(a.value) && !m(a.value, "CANCEL")
|
|
9
|
+
), s = t(
|
|
10
|
+
() => !!d(a.value)
|
|
11
|
+
), e = i(), o = i();
|
|
12
|
+
return r(e, (n) => {
|
|
13
|
+
n && (o.value = void 0);
|
|
14
|
+
}), {
|
|
15
|
+
isCancellable: c,
|
|
16
|
+
isRenewable: s,
|
|
17
|
+
pendingVariant: e,
|
|
18
|
+
confirmedVariant: o,
|
|
19
|
+
confirm: () => {
|
|
20
|
+
o.value = e.value;
|
|
21
|
+
},
|
|
22
|
+
cancel: () => {
|
|
23
|
+
a.value && (e.value = "CANCEL");
|
|
24
|
+
},
|
|
25
|
+
renew: () => {
|
|
26
|
+
a.value && (e.value = "RENEW");
|
|
27
|
+
},
|
|
28
|
+
dismiss: () => {
|
|
29
|
+
e.value = void 0;
|
|
30
|
+
},
|
|
31
|
+
manage: (n) => {
|
|
32
|
+
a.value && l({
|
|
33
|
+
action: "manage-subscription",
|
|
34
|
+
data: {
|
|
35
|
+
subscriptionId: a.value.id,
|
|
36
|
+
...n && { currentPricingId: n }
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
N as u
|
|
44
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { watch as m, toValue as n, onScopeDispose as p } from "vue";
|
|
2
|
+
function d(i, t, o) {
|
|
3
|
+
let e;
|
|
4
|
+
m(
|
|
5
|
+
i,
|
|
6
|
+
(r, u) => {
|
|
7
|
+
clearTimeout(e);
|
|
8
|
+
const c = n(o.debounce);
|
|
9
|
+
if (c <= 0) {
|
|
10
|
+
t(r, u);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
e = setTimeout(() => t(r, u), c);
|
|
14
|
+
},
|
|
15
|
+
{ deep: o.deep }
|
|
16
|
+
), p(() => clearTimeout(e));
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
d as u
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solvimon/solvimon-web",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.32",
|
|
4
4
|
"description": "Solvimon's Front-end SDK provides you with the building blocks to create a billing self serve experience",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"solvimon",
|
|
7
|
+
"billing",
|
|
8
|
+
"checkout",
|
|
9
|
+
"subscriptions",
|
|
10
|
+
"payments",
|
|
11
|
+
"adyen",
|
|
12
|
+
"web-components",
|
|
13
|
+
"custom-elements",
|
|
14
|
+
"sdk"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://docs.solvimon.com/sdk/frontend-components/overview",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/Solvimon/solvimon-web.git"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/Solvimon/solvimon-web/issues"
|
|
23
|
+
},
|
|
5
24
|
"private": false,
|
|
6
25
|
"engines": {
|
|
7
26
|
"node": ">=20.19.0"
|
|
@@ -39,6 +58,8 @@
|
|
|
39
58
|
"tests:check-labels": "node ./scripts/check-test-labels.mjs",
|
|
40
59
|
"types:check-published": "node ./scripts/ci/check-published-types.mjs",
|
|
41
60
|
"types:check-consumer": "node ./scripts/ci/check-consumer-types.mjs",
|
|
61
|
+
"api:check": "node ./scripts/ci/api-snapshot.mjs",
|
|
62
|
+
"api:update": "node ./scripts/ci/api-snapshot.mjs --update",
|
|
42
63
|
"bundle:check-contents": "node ./scripts/ci/check-bundle-contents.mjs",
|
|
43
64
|
"logs:list": "node ./scripts/list-log-codes.mjs",
|
|
44
65
|
"test:e2e:run-app": "node scripts/generate-ssl-cert.mjs && node scripts/start-test-app.mjs",
|
|
@@ -75,13 +96,14 @@
|
|
|
75
96
|
"types": "./dist/core/index.d.ts",
|
|
76
97
|
"default": "./dist/core/index.mjs"
|
|
77
98
|
},
|
|
78
|
-
"./core/action-request-types": {
|
|
79
|
-
"types": "./dist/core/action-request.types.d.ts"
|
|
80
|
-
},
|
|
81
99
|
"./screens/checkout": {
|
|
82
100
|
"types": "./dist/screens/Checkout/Checkout.ce.d.ts",
|
|
83
101
|
"default": "./dist/screens/Checkout/Checkout.mjs"
|
|
84
102
|
},
|
|
103
|
+
"./screens/checkout-session": {
|
|
104
|
+
"types": "./dist/screens/CheckoutSession/CheckoutSession.ce.d.ts",
|
|
105
|
+
"default": "./dist/screens/CheckoutSession/CheckoutSession.mjs"
|
|
106
|
+
},
|
|
85
107
|
"./screens/customer-overview": {
|
|
86
108
|
"types": "./dist/screens/CustomerOverview/CustomerOverview.ce.d.ts",
|
|
87
109
|
"default": "./dist/screens/CustomerOverview/CustomerOverview.mjs"
|
|
@@ -122,6 +144,10 @@
|
|
|
122
144
|
"types": "./dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts",
|
|
123
145
|
"default": "./dist/components/BillingInformationForm/BillingInformationForm.mjs"
|
|
124
146
|
},
|
|
147
|
+
"./components/shipping-address-form": {
|
|
148
|
+
"types": "./dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts",
|
|
149
|
+
"default": "./dist/components/ShippingAddressForm/ShippingAddressForm.mjs"
|
|
150
|
+
},
|
|
125
151
|
"./components/invoice": {
|
|
126
152
|
"types": "./dist/components/Invoice/Invoice.ce.d.ts",
|
|
127
153
|
"default": "./dist/components/Invoice/Invoice.mjs"
|
|
@@ -164,31 +190,31 @@
|
|
|
164
190
|
"@formatjs/intl": "^3.1.8",
|
|
165
191
|
"@playwright/test": "^1.64.1",
|
|
166
192
|
"@solvimon/solvimon-types": "^1.10.0",
|
|
167
|
-
"@solvimon/solvimon-ui": "^1.
|
|
193
|
+
"@solvimon/solvimon-ui": "^1.33.1",
|
|
168
194
|
"@stripe/stripe-js": "^9.8.0",
|
|
169
195
|
"@types/node": "^22.10.2",
|
|
170
|
-
"@typescript-eslint/parser": "^8.
|
|
196
|
+
"@typescript-eslint/parser": "^8.74.0",
|
|
171
197
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
172
198
|
"@vitest/coverage-v8": "^4.1.12",
|
|
173
199
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
174
200
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
175
201
|
"@vue/language-core": "^3.1.5",
|
|
176
|
-
"@vue/test-utils": "^2.
|
|
202
|
+
"@vue/test-utils": "^2.6.0",
|
|
177
203
|
"@vue/tsconfig": "^0.7.0",
|
|
178
204
|
"@vuelidate/core": "^2.0.3",
|
|
179
205
|
"@vuelidate/validators": "^2.0.4",
|
|
180
206
|
"autoprefixer": "^10.4.20",
|
|
181
207
|
"eslint": "^9.37.0",
|
|
182
208
|
"eslint-plugin-formatjs": "^6.4.7",
|
|
183
|
-
"eslint-plugin-import-x": "^4.
|
|
209
|
+
"eslint-plugin-import-x": "^4.18.1",
|
|
184
210
|
"eslint-plugin-no-relative-import-paths": "^1.5.2",
|
|
185
211
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
186
212
|
"eslint-plugin-vue": "^9.33.0",
|
|
187
|
-
"glob": "^
|
|
213
|
+
"glob": "^14.0.6",
|
|
188
214
|
"husky": "^9.1.7",
|
|
189
215
|
"jsdom": "^26.0.0",
|
|
190
216
|
"lint-staged": "^16.4.0",
|
|
191
|
-
"npm-run-all2": "^
|
|
217
|
+
"npm-run-all2": "^9.1.0",
|
|
192
218
|
"postcss": "^8.5.23",
|
|
193
219
|
"prettier": "^3.8.3",
|
|
194
220
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
@@ -213,6 +239,10 @@
|
|
|
213
239
|
"@tiptap/extension-drag-handle-vue-3": "^3.31.2",
|
|
214
240
|
"@tiptap/extension-node-range": "^3.31.2",
|
|
215
241
|
"@tiptap/extension-placeholder": "^3.31.2",
|
|
216
|
-
"postcss-selector-parser": "^7.1.6"
|
|
242
|
+
"postcss-selector-parser": "^7.1.6",
|
|
243
|
+
"js-beautify": {
|
|
244
|
+
"glob": "^14.0.6",
|
|
245
|
+
"editorconfig": "^4.0.1"
|
|
246
|
+
}
|
|
217
247
|
}
|
|
218
248
|
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { f as c } from "./customElements-DK4GKNJG.mjs";
|
|
2
|
-
const r = [1e3, 2e3, 4e3], d = {
|
|
3
|
-
PORTAL_URL_EXPIRED: "expired",
|
|
4
|
-
PORTAL_URL_REVOKED: "revoked",
|
|
5
|
-
CHECKOUT_SESSION_CLOSED: "closed"
|
|
6
|
-
}, i = (e) => !c(e) || e.statusCode >= 500 || e.statusCode === 429, E = (e) => new Promise((t) => setTimeout(t, e));
|
|
7
|
-
function s(e, t) {
|
|
8
|
-
if (c(t) && t.statusCode === 410) {
|
|
9
|
-
e.clearToken();
|
|
10
|
-
const a = d[t.errorCode ?? ""] ?? "expired", { checkoutSessionStatus: o } = t;
|
|
11
|
-
e.setStatus({
|
|
12
|
-
state: "ended",
|
|
13
|
-
reason: a,
|
|
14
|
-
...o ? { checkoutSessionStatus: o } : {}
|
|
15
|
-
}), e.forEachLogger((n) => {
|
|
16
|
-
a === "closed" ? n.warn(
|
|
17
|
-
"CHECKOUT_SESSION_CLOSED",
|
|
18
|
-
"The checkout session of the portal link is closed",
|
|
19
|
-
{ status: o },
|
|
20
|
-
t
|
|
21
|
-
) : a === "revoked" ? n.error("PORTAL_URL_REVOKED", "The portal link is revoked", {}, t) : n.error("PORTAL_URL_EXPIRED", "The portal link has expired", {}, t);
|
|
22
|
-
});
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
if (i(t)) {
|
|
26
|
-
e.markUnverified(t);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
e.hasToken() || e.setStatus({ state: "invalid" }), e.forEachLogger(
|
|
30
|
-
(a) => a.error("INVALID_TOKEN", "Failed to fetch access token", {}, t)
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
async function f(e, t) {
|
|
34
|
-
for (let a = 0; ; a++)
|
|
35
|
-
try {
|
|
36
|
-
const o = await t.exchangeHandle(e);
|
|
37
|
-
return t.applyToken(o), o.access_token;
|
|
38
|
-
} catch (o) {
|
|
39
|
-
const n = r[a];
|
|
40
|
-
if (i(o) && n !== void 0) {
|
|
41
|
-
if (await E(n), t.isAbandoned()) return;
|
|
42
|
-
continue;
|
|
43
|
-
}
|
|
44
|
-
s(t, o);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
f as runExchange
|
|
50
|
-
};
|