@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
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-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.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 +426 -426
- 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-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.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 +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- 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/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -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/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 +189 -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-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- 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/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/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- 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/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,136 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, computed as _, openBlock as s, createBlock as m, unref as t, createSlots as w, withCtx as a, createVNode as c, createTextVNode as p, toDisplayString as h, createCommentVNode as g } from "vue";
|
|
2
|
-
import { _ as u } from "./Button.vue.es-j7iYlqtJ.mjs";
|
|
3
|
-
import { _ as y } from "./Section.vue.es-Oqn1wGPZ.mjs";
|
|
4
|
-
import { a as b, d as k } from "./customElements-DK4GKNJG.mjs";
|
|
5
|
-
import { _ as A } from "./PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs";
|
|
6
|
-
import { _ as M } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
7
|
-
import { u as B } from "./useActionDispatchProvider-ChAHdwR8.mjs";
|
|
8
|
-
import { r as $ } from "./configuration-BytDBAWs.mjs";
|
|
9
|
-
const x = /* @__PURE__ */ v({
|
|
10
|
-
__name: "CustomerPaymentMethodsBlock",
|
|
11
|
-
props: {
|
|
12
|
-
paymentMethods: { type: Array },
|
|
13
|
-
showViewAllButton: { type: Boolean },
|
|
14
|
-
showAddButton: { type: Boolean }
|
|
15
|
-
},
|
|
16
|
-
emits: ["view-all-payment-methods", "add-payment-method"],
|
|
17
|
-
setup(e) {
|
|
18
|
-
const l = e, { $t: o } = b(), r = _(() => l.paymentMethods.length > 0);
|
|
19
|
-
return (d, i) => (s(), m(t(y), {
|
|
20
|
-
class: "sv-payment-methods",
|
|
21
|
-
"no-spacing": "",
|
|
22
|
-
"no-border": "",
|
|
23
|
-
"content-background": "none",
|
|
24
|
-
title: t(o)(
|
|
25
|
-
{
|
|
26
|
-
defaultMessage: "{count, plural, one {Payment method} other {Payment methods}}",
|
|
27
|
-
description: "Title for the payment methods block on the customer overview page",
|
|
28
|
-
id: "customer_overview.payment_methods.title"
|
|
29
|
-
},
|
|
30
|
-
{ count: String(e.paymentMethods.length) }
|
|
31
|
-
)
|
|
32
|
-
}, w({
|
|
33
|
-
default: a(() => [
|
|
34
|
-
r.value ? (s(), m(A, {
|
|
35
|
-
key: 0,
|
|
36
|
-
"payment-methods": e.paymentMethods
|
|
37
|
-
}, null, 8, ["payment-methods"])) : (s(), m(t(y), {
|
|
38
|
-
key: 1,
|
|
39
|
-
class: "sv-empty-state sv-payment-methods__empty"
|
|
40
|
-
}, {
|
|
41
|
-
default: a(() => [
|
|
42
|
-
c(t(k), {
|
|
43
|
-
variant: "body-sm",
|
|
44
|
-
color: "subtle",
|
|
45
|
-
"no-spacing": "",
|
|
46
|
-
class: "sv-payment-methods__empty-message"
|
|
47
|
-
}, {
|
|
48
|
-
default: a(() => [
|
|
49
|
-
p(h(t(o)({
|
|
50
|
-
defaultMessage: "Add a payment method for recurring invoice payments.",
|
|
51
|
-
description: "Helper text for adding a payment method when no payment methods are configured",
|
|
52
|
-
id: "customer_overview.payment_methods_block.add_payment_method_helper_text"
|
|
53
|
-
})), 1)
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
}),
|
|
57
|
-
e.showAddButton ? (s(), m(t(u), {
|
|
58
|
-
key: 0,
|
|
59
|
-
class: "sv-action sv-action--secondary sv-action--full-width sv-payment-methods__add mt-4 w-full",
|
|
60
|
-
intent: "secondary",
|
|
61
|
-
"icon-prefix": "add",
|
|
62
|
-
type: "button",
|
|
63
|
-
onClick: i[1] || (i[1] = (n) => d.$emit("add-payment-method"))
|
|
64
|
-
}, {
|
|
65
|
-
default: a(() => [
|
|
66
|
-
p(h(t(o)({
|
|
67
|
-
defaultMessage: "Add payment method",
|
|
68
|
-
description: "Text for the add payment method button that is shown when no payment methods have been configured",
|
|
69
|
-
id: "customer_overview.payment_methods_block.add_payment_method_button_label"
|
|
70
|
-
})), 1)
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
})) : g("", !0)
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
}))
|
|
77
|
-
]),
|
|
78
|
-
_: 2
|
|
79
|
-
}, [
|
|
80
|
-
e.showViewAllButton ? {
|
|
81
|
-
name: "right",
|
|
82
|
-
fn: a(() => [
|
|
83
|
-
c(t(u), {
|
|
84
|
-
size: "xs",
|
|
85
|
-
intent: "subtle",
|
|
86
|
-
"icon-suffix": "arrow_right_alt",
|
|
87
|
-
class: "sv-action sv-action--ghost sv-payment-methods__view-all",
|
|
88
|
-
type: "button",
|
|
89
|
-
onClick: i[0] || (i[0] = (n) => d.$emit("view-all-payment-methods"))
|
|
90
|
-
}, {
|
|
91
|
-
default: a(() => [
|
|
92
|
-
p(h(t(o)({
|
|
93
|
-
defaultMessage: "View all",
|
|
94
|
-
id: "customer_overview.payment_methods_block.view_all_payment_methods_link_label",
|
|
95
|
-
description: "The link text that links to the overview page of the customer invoices"
|
|
96
|
-
})), 1)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
})
|
|
100
|
-
]),
|
|
101
|
-
key: "0"
|
|
102
|
-
} : void 0
|
|
103
|
-
]), 1032, ["title"]));
|
|
104
|
-
}
|
|
105
|
-
}), O = /* @__PURE__ */ v({
|
|
106
|
-
__name: "CustomerPaymentMethods",
|
|
107
|
-
props: {
|
|
108
|
-
isLoading: { type: Boolean },
|
|
109
|
-
paymentMethods: { type: Array },
|
|
110
|
-
configuration: { type: Object }
|
|
111
|
-
},
|
|
112
|
-
setup(e) {
|
|
113
|
-
const l = {
|
|
114
|
-
showViewAllButton: !0,
|
|
115
|
-
showAddButton: !0
|
|
116
|
-
}, o = e, r = _(
|
|
117
|
-
() => $(l, o.configuration)
|
|
118
|
-
), { dispatchAction: d } = B();
|
|
119
|
-
return (i, n) => e.isLoading ? (s(), m(M, {
|
|
120
|
-
key: 0,
|
|
121
|
-
variant: "section",
|
|
122
|
-
class: "sv-payment-methods sv-root sv-component sv-loading h-72"
|
|
123
|
-
})) : (s(), m(x, {
|
|
124
|
-
key: 1,
|
|
125
|
-
class: "sv-payment-methods sv-root sv-component",
|
|
126
|
-
"payment-methods": e.paymentMethods,
|
|
127
|
-
"show-view-all-button": r.value.showViewAllButton,
|
|
128
|
-
"show-add-button": r.value.showAddButton,
|
|
129
|
-
onViewAllPaymentMethods: n[0] || (n[0] = (f) => t(d)({ action: "view-all-payment-methods" })),
|
|
130
|
-
onAddPaymentMethod: n[1] || (n[1] = (f) => t(d)({ action: "add-payment-method" }))
|
|
131
|
-
}, null, 8, ["payment-methods", "show-view-all-button", "show-add-button"]));
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
export {
|
|
135
|
-
O as _
|
|
136
|
-
};
|
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, computed as I, openBlock as c, createElementBlock as M, createElementVNode as E, createBlock as m, unref as t, withCtx as f, createTextVNode as k, toDisplayString as S, createCommentVNode as y, Fragment as B, renderList as N, createVNode as O, ref as b, toValue as j, defineAsyncComponent as z, watch as U } from "vue";
|
|
2
|
-
import { _ as F } from "./Button.vue.es-j7iYlqtJ.mjs";
|
|
3
|
-
import { _ as H } from "./ErrorNotification.vue.es-F068p7PY.mjs";
|
|
4
|
-
import { _ as P } from "./Section.vue.es-Oqn1wGPZ.mjs";
|
|
5
|
-
import { a as T, d as D, c as q, u as R, b as w, e as G } from "./customElements-DK4GKNJG.mjs";
|
|
6
|
-
import { _ as W } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
|
|
7
|
-
import { b as J } from "./customer.es-DQKl6wFt.mjs";
|
|
8
|
-
import { g as Z } from "./getCountryNameByCode.es-BDHua7VM.mjs";
|
|
9
|
-
import { _ as K } from "./Chip.vue.es-Dxx_0dte.mjs";
|
|
10
|
-
import { a as Q } from "./ContextMenu.vue.es-BJO4U47Q.mjs";
|
|
11
|
-
import { _ as x } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
12
|
-
import { w as X } from "./api.es-qgvzNMU-.mjs";
|
|
13
|
-
const Y = ({
|
|
14
|
-
line1: e,
|
|
15
|
-
line2: s,
|
|
16
|
-
city: r,
|
|
17
|
-
postal_code: n,
|
|
18
|
-
state: o,
|
|
19
|
-
country: i
|
|
20
|
-
}) => ({
|
|
21
|
-
line1: e ?? void 0,
|
|
22
|
-
line2: s ?? void 0,
|
|
23
|
-
city: r ?? void 0,
|
|
24
|
-
postal_code: n ?? void 0,
|
|
25
|
-
state: o ?? void 0,
|
|
26
|
-
country: i
|
|
27
|
-
}), ee = { class: "sv-shipping-address flex items-start gap-2" }, se = { class: "sv-shipping-address__content grid grow grid-cols-1 gap-0.5" }, te = /* @__PURE__ */ $({
|
|
28
|
-
__name: "ShippingAddressCard",
|
|
29
|
-
props: {
|
|
30
|
-
address: { type: Object },
|
|
31
|
-
menuItems: { type: Array },
|
|
32
|
-
showDefault: { type: Boolean },
|
|
33
|
-
compact: { type: Boolean }
|
|
34
|
-
},
|
|
35
|
-
setup(e) {
|
|
36
|
-
const s = e, { $t: r } = T(), n = I(() => {
|
|
37
|
-
var a, h;
|
|
38
|
-
const { individual: i, organization: d } = s.address.recipient ?? {};
|
|
39
|
-
return d ? [d.company_name, d.attention_name].filter(Boolean).join(", ") : [(a = i == null ? void 0 : i.name) == null ? void 0 : a.first_name, (h = i == null ? void 0 : i.name) == null ? void 0 : h.last_name].filter(Boolean).join(" ");
|
|
40
|
-
}), o = I(() => [
|
|
41
|
-
...J(Y(s.address.address)),
|
|
42
|
-
...s.address.address.country ? [Z(s.address.address.country)] : []
|
|
43
|
-
]);
|
|
44
|
-
return (i, d) => {
|
|
45
|
-
var a, h;
|
|
46
|
-
return c(), M("div", ee, [
|
|
47
|
-
E("div", se, [
|
|
48
|
-
n.value && !e.compact ? (c(), m(t(D), {
|
|
49
|
-
key: 0,
|
|
50
|
-
tag: "span",
|
|
51
|
-
variant: "body-sm",
|
|
52
|
-
weight: "semibold",
|
|
53
|
-
class: "sv-shipping-address__recipient"
|
|
54
|
-
}, {
|
|
55
|
-
default: f(() => [
|
|
56
|
-
k(S(n.value), 1)
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
})) : y("", !0),
|
|
60
|
-
(c(!0), M(B, null, N(o.value, (_, A) => (c(), m(t(D), {
|
|
61
|
-
key: A,
|
|
62
|
-
tag: "span",
|
|
63
|
-
variant: "body-sm",
|
|
64
|
-
color: e.compact ? void 0 : "secondary",
|
|
65
|
-
class: "sv-shipping-address__line"
|
|
66
|
-
}, {
|
|
67
|
-
default: f(() => [
|
|
68
|
-
k(S(_), 1)
|
|
69
|
-
]),
|
|
70
|
-
_: 2
|
|
71
|
-
}, 1032, ["color"]))), 128)),
|
|
72
|
-
(a = e.address.recipient) != null && a.phone_number && !e.compact ? (c(), m(t(D), {
|
|
73
|
-
key: 1,
|
|
74
|
-
tag: "span",
|
|
75
|
-
variant: "body-sm",
|
|
76
|
-
color: "secondary",
|
|
77
|
-
class: "sv-shipping-address__phone"
|
|
78
|
-
}, {
|
|
79
|
-
default: f(() => {
|
|
80
|
-
var _;
|
|
81
|
-
return [
|
|
82
|
-
k(S((_ = e.address.recipient) == null ? void 0 : _.phone_number), 1)
|
|
83
|
-
];
|
|
84
|
-
}),
|
|
85
|
-
_: 1
|
|
86
|
-
})) : y("", !0)
|
|
87
|
-
]),
|
|
88
|
-
e.showDefault && e.address.is_default ? (c(), m(t(K), {
|
|
89
|
-
key: 0,
|
|
90
|
-
class: "sv-shipping-address__default",
|
|
91
|
-
intent: "info",
|
|
92
|
-
size: "sm",
|
|
93
|
-
content: t(r)({
|
|
94
|
-
defaultMessage: "Default",
|
|
95
|
-
id: "shipping_address.default_chip.label",
|
|
96
|
-
description: "Marks the shipping address the customer uses by default"
|
|
97
|
-
})
|
|
98
|
-
}, null, 8, ["content"])) : y("", !0),
|
|
99
|
-
(h = e.menuItems) != null && h.length ? (c(), m(t(Q), {
|
|
100
|
-
key: 1,
|
|
101
|
-
class: "sv-shipping-address__menu",
|
|
102
|
-
items: e.menuItems
|
|
103
|
-
}, null, 8, ["items"])) : y("", !0)
|
|
104
|
-
]);
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
}), ne = /* @__PURE__ */ $({
|
|
108
|
-
__name: "ShippingAddressList",
|
|
109
|
-
props: {
|
|
110
|
-
addresses: { type: Array },
|
|
111
|
-
getMenuItems: { type: Function },
|
|
112
|
-
compact: { type: Boolean }
|
|
113
|
-
},
|
|
114
|
-
setup(e) {
|
|
115
|
-
return (s, r) => (c(), m(t(P), {
|
|
116
|
-
"no-spacing": "",
|
|
117
|
-
"content-classes": "divide-y divide-gray-100",
|
|
118
|
-
class: "sv-shipping-address-list"
|
|
119
|
-
}, {
|
|
120
|
-
default: f(() => [
|
|
121
|
-
(c(!0), M(B, null, N(e.addresses, (n) => {
|
|
122
|
-
var o;
|
|
123
|
-
return c(), M("div", {
|
|
124
|
-
key: n.id,
|
|
125
|
-
class: "sv-shipping-address-list__item px-3 py-2"
|
|
126
|
-
}, [
|
|
127
|
-
O(te, {
|
|
128
|
-
address: n,
|
|
129
|
-
"menu-items": (o = e.getMenuItems) == null ? void 0 : o.call(e, n),
|
|
130
|
-
compact: e.compact,
|
|
131
|
-
"show-default": ""
|
|
132
|
-
}, null, 8, ["address", "menu-items", "compact"])
|
|
133
|
-
]);
|
|
134
|
-
}), 128))
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
}), ie = 50;
|
|
140
|
-
function ae() {
|
|
141
|
-
const e = q(), s = R(), r = ["portal", "shipping-addresses"];
|
|
142
|
-
function n({
|
|
143
|
-
customerId: a
|
|
144
|
-
}) {
|
|
145
|
-
return e({
|
|
146
|
-
url: w(s.apiUrls.config, ...r),
|
|
147
|
-
query: X(
|
|
148
|
-
{ customer_id: a, statuses: ["ACTIVE"] },
|
|
149
|
-
{ page: 1, pageSize: ie }
|
|
150
|
-
),
|
|
151
|
-
isCollection: !0
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
function o(a) {
|
|
155
|
-
return e({
|
|
156
|
-
url: w(s.apiUrls.config, ...r),
|
|
157
|
-
data: a,
|
|
158
|
-
options: { method: "POST" }
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
function i({
|
|
162
|
-
shippingAddressId: a,
|
|
163
|
-
payload: h
|
|
164
|
-
}) {
|
|
165
|
-
return e({
|
|
166
|
-
url: w(s.apiUrls.config, ...r, a),
|
|
167
|
-
data: h,
|
|
168
|
-
options: { method: "PATCH" }
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
function d({
|
|
172
|
-
shippingAddressId: a
|
|
173
|
-
}) {
|
|
174
|
-
return e({
|
|
175
|
-
url: w(s.apiUrls.config, ...r, a, "deprecate"),
|
|
176
|
-
options: { method: "POST" }
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
return {
|
|
180
|
-
getShippingAddresses: n,
|
|
181
|
-
createShippingAddress: o,
|
|
182
|
-
updateShippingAddress: i,
|
|
183
|
-
deleteShippingAddress: d
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
const C = ({ reference: e, ...s }) => JSON.stringify(s), oe = (e, s) => +!!s.is_default - +!!e.is_default || (Date.parse(s.created_at ?? "") || 0) - (Date.parse(e.created_at ?? "") || 0);
|
|
187
|
-
function re({
|
|
188
|
-
customerId: e
|
|
189
|
-
}) {
|
|
190
|
-
const s = ae(), r = G(), n = b([]), o = b(!1), i = b(), d = async () => {
|
|
191
|
-
const u = j(e);
|
|
192
|
-
if (u) {
|
|
193
|
-
o.value = !0, i.value = void 0;
|
|
194
|
-
try {
|
|
195
|
-
const l = await s.getShippingAddresses({ customerId: u });
|
|
196
|
-
n.value = l.data.filter(({ status: p }) => p === "ACTIVE").sort(oe);
|
|
197
|
-
} catch (l) {
|
|
198
|
-
r.error(
|
|
199
|
-
"SHIPPING_ADDRESSES_LOAD_FAILED",
|
|
200
|
-
"Failed to load the shipping addresses",
|
|
201
|
-
{},
|
|
202
|
-
l
|
|
203
|
-
), i.value = l;
|
|
204
|
-
} finally {
|
|
205
|
-
o.value = !1;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}, a = (u) => s.createShippingAddress({ ...u, status: "ACTIVE" });
|
|
209
|
-
return {
|
|
210
|
-
items: n,
|
|
211
|
-
isPending: o,
|
|
212
|
-
error: i,
|
|
213
|
-
fetchAll: d,
|
|
214
|
-
create: async (u) => {
|
|
215
|
-
try {
|
|
216
|
-
return await a(u);
|
|
217
|
-
} finally {
|
|
218
|
-
await d();
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
replace: async (u, l, p) => {
|
|
222
|
-
l = { description: u.description, ...l };
|
|
223
|
-
try {
|
|
224
|
-
return p.replacement ? p.storedDetails !== C(l) && (p.replacement = await s.updateShippingAddress({
|
|
225
|
-
shippingAddressId: p.replacement.id,
|
|
226
|
-
payload: {
|
|
227
|
-
...l,
|
|
228
|
-
reference: p.replacement.reference ?? l.reference
|
|
229
|
-
}
|
|
230
|
-
}), p.storedDetails = C(l)) : (p.replacement = await a(l), p.storedDetails = C(l)), await s.deleteShippingAddress({ shippingAddressId: u.id }), p.replacement;
|
|
231
|
-
} finally {
|
|
232
|
-
await d();
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
remove: async (u) => {
|
|
236
|
-
await s.deleteShippingAddress({ shippingAddressId: u.id }), await d();
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function de({
|
|
241
|
-
onEdit: e,
|
|
242
|
-
onDelete: s
|
|
243
|
-
}) {
|
|
244
|
-
const { $t: r } = T();
|
|
245
|
-
return { getMenuItems: (o) => [
|
|
246
|
-
{
|
|
247
|
-
label: r({
|
|
248
|
-
defaultMessage: "Edit",
|
|
249
|
-
id: "shipping_address.context_menu.edit.label",
|
|
250
|
-
description: "Menu option that opens the form to change a shipping address"
|
|
251
|
-
}),
|
|
252
|
-
onClick: () => e(o)
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
label: r({
|
|
256
|
-
defaultMessage: "Delete",
|
|
257
|
-
id: "shipping_address.context_menu.delete.label",
|
|
258
|
-
description: "Menu option that deletes a shipping address"
|
|
259
|
-
}),
|
|
260
|
-
onClick: () => s(o)
|
|
261
|
-
}
|
|
262
|
-
] };
|
|
263
|
-
}
|
|
264
|
-
const ce = { class: "grid grid-cols-1 gap-2" }, le = 3, pe = /* @__PURE__ */ $({
|
|
265
|
-
__name: "CustomerShippingAddresses",
|
|
266
|
-
props: {
|
|
267
|
-
customerId: { type: String },
|
|
268
|
-
customer: { type: Object },
|
|
269
|
-
isLoading: { type: Boolean }
|
|
270
|
-
},
|
|
271
|
-
setup(e) {
|
|
272
|
-
const s = z(
|
|
273
|
-
() => import("./ShippingAddressesModal-c7nqf4Ny.mjs")
|
|
274
|
-
), r = e, { $t: n } = T(), o = I(() => {
|
|
275
|
-
var g;
|
|
276
|
-
return r.customerId ?? ((g = r.customer) == null ? void 0 : g.id);
|
|
277
|
-
}), i = re({ customerId: o }), { items: d, isPending: a, error: h } = i, _ = I(() => d.value.slice(0, le));
|
|
278
|
-
U(
|
|
279
|
-
o,
|
|
280
|
-
(g) => {
|
|
281
|
-
g && i.fetchAll();
|
|
282
|
-
},
|
|
283
|
-
{ immediate: !0 }
|
|
284
|
-
);
|
|
285
|
-
const A = b(!1), u = b(!1), l = b({ step: "LIST" }), p = (g) => {
|
|
286
|
-
l.value = g, A.value = !0, u.value = !0;
|
|
287
|
-
}, { getMenuItems: V } = de({
|
|
288
|
-
onEdit: (g) => p({ step: "EDIT", address: g }),
|
|
289
|
-
onDelete: (g) => p({ step: "DELETE", address: g })
|
|
290
|
-
});
|
|
291
|
-
return (g, v) => e.isLoading ? (c(), m(x, {
|
|
292
|
-
key: 0,
|
|
293
|
-
variant: "section",
|
|
294
|
-
class: "sv-shipping-addresses sv-root sv-component sv-loading min-h-[100px]"
|
|
295
|
-
})) : e.customer ? (c(), m(t(P), {
|
|
296
|
-
key: 1,
|
|
297
|
-
class: "sv-shipping-addresses sv-root sv-component",
|
|
298
|
-
"no-spacing": "",
|
|
299
|
-
"no-border": "",
|
|
300
|
-
"content-background": "none",
|
|
301
|
-
title: t(n)(
|
|
302
|
-
{
|
|
303
|
-
defaultMessage: "{count, plural, one {Shipping address} other {Shipping addresses}}",
|
|
304
|
-
id: "customer_overview.shipping_addresses_block.title",
|
|
305
|
-
description: "Title of the block that lists the customer shipping addresses"
|
|
306
|
-
},
|
|
307
|
-
{ count: String(t(d).length) }
|
|
308
|
-
)
|
|
309
|
-
}, {
|
|
310
|
-
right: f(() => [
|
|
311
|
-
O(t(F), {
|
|
312
|
-
size: "xs",
|
|
313
|
-
intent: "subtle",
|
|
314
|
-
class: "sv-action sv-action--ghost sv-shipping-addresses__manage",
|
|
315
|
-
onClick: v[0] || (v[0] = (L) => p({ step: "LIST" }))
|
|
316
|
-
}, {
|
|
317
|
-
default: f(() => [
|
|
318
|
-
k(S(t(n)({
|
|
319
|
-
defaultMessage: "Manage",
|
|
320
|
-
id: "customer_overview.shipping_addresses_block.manage_button_label",
|
|
321
|
-
description: "Label of the button that opens the modal to manage the customer shipping addresses"
|
|
322
|
-
})), 1)
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
})
|
|
326
|
-
]),
|
|
327
|
-
default: f(() => [
|
|
328
|
-
E("div", ce, [
|
|
329
|
-
t(h) ? (c(), m(t(H), {
|
|
330
|
-
key: 0,
|
|
331
|
-
class: "sv-shipping-addresses__error sv-error",
|
|
332
|
-
title: t(n)({
|
|
333
|
-
defaultMessage: "We could not load your shipping addresses.",
|
|
334
|
-
id: "customer_overview.shipping_addresses_block.load_error",
|
|
335
|
-
description: "Shown in the shipping addresses block when the addresses cannot be loaded"
|
|
336
|
-
})
|
|
337
|
-
}, null, 8, ["title"])) : t(a) && !t(d).length ? (c(), m(x, {
|
|
338
|
-
key: 1,
|
|
339
|
-
variant: "section",
|
|
340
|
-
class: "min-h-[100px]"
|
|
341
|
-
})) : t(d).length ? (c(), m(ne, {
|
|
342
|
-
key: 2,
|
|
343
|
-
class: "sv-shipping-addresses__list",
|
|
344
|
-
addresses: _.value,
|
|
345
|
-
"get-menu-items": t(V),
|
|
346
|
-
compact: ""
|
|
347
|
-
}, null, 8, ["addresses", "get-menu-items"])) : (c(), m(W, {
|
|
348
|
-
key: 3,
|
|
349
|
-
class: "sv-shipping-addresses__empty",
|
|
350
|
-
icon: "home"
|
|
351
|
-
}, {
|
|
352
|
-
title: f(() => [
|
|
353
|
-
k(S(t(n)({
|
|
354
|
-
defaultMessage: "No shipping addresses yet",
|
|
355
|
-
id: "customer_overview.shipping_addresses_block.empty",
|
|
356
|
-
description: "Shown in the shipping addresses block when the customer has no shipping addresses"
|
|
357
|
-
})), 1)
|
|
358
|
-
]),
|
|
359
|
-
message: f(() => [
|
|
360
|
-
E("button", {
|
|
361
|
-
type: "button",
|
|
362
|
-
class: "sv-action sv-action--link sv-shipping-addresses__add underline",
|
|
363
|
-
onClick: v[1] || (v[1] = (L) => p({ step: "ADD" }))
|
|
364
|
-
}, S(t(n)({
|
|
365
|
-
defaultMessage: "Add shipping address",
|
|
366
|
-
id: "customer_overview.shipping_addresses_block.add_button_label",
|
|
367
|
-
description: "Label of the link that opens the form for a first shipping address"
|
|
368
|
-
})), 1)
|
|
369
|
-
]),
|
|
370
|
-
_: 1
|
|
371
|
-
}))
|
|
372
|
-
]),
|
|
373
|
-
A.value && e.customer ? (c(), m(t(s), {
|
|
374
|
-
key: 0,
|
|
375
|
-
"show-modal": u.value,
|
|
376
|
-
start: l.value,
|
|
377
|
-
customer: e.customer,
|
|
378
|
-
addresses: t(d),
|
|
379
|
-
"is-loading": t(a),
|
|
380
|
-
actions: t(i),
|
|
381
|
-
onClose: v[2] || (v[2] = (L) => u.value = !1)
|
|
382
|
-
}, null, 8, ["show-modal", "start", "customer", "addresses", "is-loading", "actions"])) : y("", !0)
|
|
383
|
-
]),
|
|
384
|
-
_: 1
|
|
385
|
-
}, 8, ["title"])) : y("", !0);
|
|
386
|
-
}
|
|
387
|
-
}), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
388
|
-
__proto__: null,
|
|
389
|
-
default: pe
|
|
390
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
391
|
-
export {
|
|
392
|
-
we as C,
|
|
393
|
-
te as _,
|
|
394
|
-
ne as a,
|
|
395
|
-
Y as t,
|
|
396
|
-
de as u
|
|
397
|
-
};
|