@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
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { defineComponent as A, computed as p, openBlock as n, createBlock as i, unref as o, createSlots as P, withCtx as d, createElementBlock as y, Fragment as f, createVNode as x, toDisplayString as h, createCommentVNode as k, renderList as $, createTextVNode as c } from "vue";
|
|
2
|
+
import { _ as g } from "./Button.vue.es-CW7XfMBF.mjs";
|
|
3
|
+
import { _ as M } from "./Section.vue.es-DYmEtgBj.mjs";
|
|
4
|
+
import { a as V, d as _ } from "./customElements-B8c354Nu.mjs";
|
|
5
|
+
import { _ as N } from "./PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs";
|
|
6
|
+
import { _ as C } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
7
|
+
import { u as O } from "./useActionDispatchProvider-BCtk-FGU.mjs";
|
|
8
|
+
import { r as L } from "./configuration-BytDBAWs.mjs";
|
|
9
|
+
const S = /* @__PURE__ */ A({
|
|
10
|
+
__name: "CustomerPaymentMethodsBlock",
|
|
11
|
+
props: {
|
|
12
|
+
paymentMethods: { type: Array },
|
|
13
|
+
showViewAllButton: { type: Boolean },
|
|
14
|
+
isManaged: { type: Boolean },
|
|
15
|
+
showAddButton: { type: Boolean },
|
|
16
|
+
hasNoPaymentMethodOptions: { type: Boolean },
|
|
17
|
+
hasMorePaymentMethods: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
emits: ["view-all-payment-methods", "add-payment-method"],
|
|
20
|
+
setup(e) {
|
|
21
|
+
const m = e, { $t: a } = V(), u = p(() => m.paymentMethods.length > 0), v = p(
|
|
22
|
+
() => m.showViewAllButton && (!m.isManaged || u.value)
|
|
23
|
+
), b = p(
|
|
24
|
+
() => !!m.isManaged && !!m.showAddButton && !m.hasNoPaymentMethodOptions
|
|
25
|
+
), r = (s) => ({
|
|
26
|
+
link: s.filter((t) => typeof t == "string").join("")
|
|
27
|
+
}), w = p(() => {
|
|
28
|
+
const s = a(
|
|
29
|
+
{
|
|
30
|
+
defaultMessage: "You don't have any payment methods yet, <link>add a payment method</link>.",
|
|
31
|
+
id: "customer_overview.payment_methods_block.no_payment_methods_text",
|
|
32
|
+
description: "Shown on the customer overview when the customer has no payment methods; the link opens adding one"
|
|
33
|
+
},
|
|
34
|
+
// @ts-expect-error formatjs does not support this type yet
|
|
35
|
+
{ link: r }
|
|
36
|
+
);
|
|
37
|
+
return (Array.isArray(s) ? s : [s]).flatMap((t) => typeof t == "string" ? t ? [{ text: t, isLink: !1 }] : [] : t && typeof t == "object" && "link" in t ? [{ text: String(t.link), isLink: !0 }] : []);
|
|
38
|
+
});
|
|
39
|
+
return (s, t) => (n(), i(o(M), {
|
|
40
|
+
class: "sv-payment-methods",
|
|
41
|
+
"no-spacing": "",
|
|
42
|
+
"no-border": "",
|
|
43
|
+
"content-background": "none",
|
|
44
|
+
title: o(a)(
|
|
45
|
+
{
|
|
46
|
+
defaultMessage: "{count, plural, one {Payment method} other {Payment methods}}",
|
|
47
|
+
description: "Title for the payment methods block on the customer overview page",
|
|
48
|
+
id: "customer_overview.payment_methods.title"
|
|
49
|
+
},
|
|
50
|
+
{ count: String(e.paymentMethods.length) }
|
|
51
|
+
)
|
|
52
|
+
}, P({
|
|
53
|
+
default: d(() => [
|
|
54
|
+
u.value ? (n(), y(f, { key: 0 }, [
|
|
55
|
+
x(N, {
|
|
56
|
+
"payment-methods": e.paymentMethods,
|
|
57
|
+
"hide-options": e.isManaged
|
|
58
|
+
}, null, 8, ["payment-methods", "hide-options"]),
|
|
59
|
+
e.hasMorePaymentMethods && e.showViewAllButton ? (n(), y("button", {
|
|
60
|
+
key: 0,
|
|
61
|
+
type: "button",
|
|
62
|
+
class: "sv-action sv-action--link sv-payment-methods__show-more ml-auto mt-1 block rounded text-xs text-primary-900 hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-600",
|
|
63
|
+
onClick: t[2] || (t[2] = (l) => s.$emit("view-all-payment-methods"))
|
|
64
|
+
}, h(o(a)({
|
|
65
|
+
defaultMessage: "Show all payment methods",
|
|
66
|
+
id: "customer_overview.payment_methods_block.show_all_link_label",
|
|
67
|
+
description: "Text link below the payment methods block that opens all of them, shown when the block leaves some out"
|
|
68
|
+
})), 1)) : k("", !0)
|
|
69
|
+
], 64)) : (n(), i(o(M), {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: "sv-empty-state sv-payment-methods__empty"
|
|
72
|
+
}, {
|
|
73
|
+
default: d(() => [
|
|
74
|
+
b.value ? (n(), i(o(_), {
|
|
75
|
+
key: 0,
|
|
76
|
+
variant: "body-sm",
|
|
77
|
+
color: "subtle",
|
|
78
|
+
"no-spacing": "",
|
|
79
|
+
class: "sv-payment-methods__empty-message"
|
|
80
|
+
}, {
|
|
81
|
+
default: d(() => [
|
|
82
|
+
(n(!0), y(f, null, $(w.value, (l, B) => (n(), y(f, { key: B }, [
|
|
83
|
+
l.isLink ? (n(), y("button", {
|
|
84
|
+
key: 0,
|
|
85
|
+
type: "button",
|
|
86
|
+
class: "sv-action sv-action--link sv-payment-methods__add rounded text-primary-900 underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary-600",
|
|
87
|
+
onClick: t[3] || (t[3] = (T) => s.$emit("add-payment-method"))
|
|
88
|
+
}, h(l.text), 1)) : (n(), y(f, { key: 1 }, [
|
|
89
|
+
c(h(l.text), 1)
|
|
90
|
+
], 64))
|
|
91
|
+
], 64))), 128))
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})) : (n(), i(o(_), {
|
|
95
|
+
key: 1,
|
|
96
|
+
variant: e.hasNoPaymentMethodOptions ? "body-xs" : "body-sm",
|
|
97
|
+
color: "subtle",
|
|
98
|
+
"no-spacing": "",
|
|
99
|
+
class: "sv-payment-methods__empty-message"
|
|
100
|
+
}, {
|
|
101
|
+
default: d(() => [
|
|
102
|
+
c(h(e.hasNoPaymentMethodOptions ? o(a)({
|
|
103
|
+
defaultMessage: "No online payment methods are available.",
|
|
104
|
+
description: "Shown on the customer overview when the customer has no payment methods and none can be added",
|
|
105
|
+
id: "customer_overview.payment_methods_block.no_options_text"
|
|
106
|
+
}) : o(a)({
|
|
107
|
+
defaultMessage: "Add a payment method for recurring invoice payments.",
|
|
108
|
+
description: "Helper text for adding a payment method when no payment methods are configured",
|
|
109
|
+
id: "customer_overview.payment_methods_block.add_payment_method_helper_text"
|
|
110
|
+
})), 1)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["variant"])),
|
|
114
|
+
e.showAddButton && !e.hasNoPaymentMethodOptions && !e.isManaged ? (n(), i(o(g), {
|
|
115
|
+
key: 2,
|
|
116
|
+
class: "sv-action sv-action--secondary sv-action--full-width sv-payment-methods__add mt-4 w-full",
|
|
117
|
+
intent: "secondary",
|
|
118
|
+
"icon-prefix": "add",
|
|
119
|
+
type: "button",
|
|
120
|
+
onClick: t[4] || (t[4] = (l) => s.$emit("add-payment-method"))
|
|
121
|
+
}, {
|
|
122
|
+
default: d(() => [
|
|
123
|
+
c(h(o(a)({
|
|
124
|
+
defaultMessage: "Add payment method",
|
|
125
|
+
description: "Text for the add payment method button that is shown when no payment methods have been configured",
|
|
126
|
+
id: "customer_overview.payment_methods_block.add_payment_method_button_label"
|
|
127
|
+
})), 1)
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
})) : k("", !0)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}))
|
|
134
|
+
]),
|
|
135
|
+
_: 2
|
|
136
|
+
}, [
|
|
137
|
+
v.value ? {
|
|
138
|
+
name: "right",
|
|
139
|
+
fn: d(() => [
|
|
140
|
+
e.isManaged ? (n(), i(o(g), {
|
|
141
|
+
key: 0,
|
|
142
|
+
size: "xs",
|
|
143
|
+
intent: "subtle",
|
|
144
|
+
class: "sv-action sv-action--ghost sv-payment-methods__manage",
|
|
145
|
+
type: "button",
|
|
146
|
+
onClick: t[0] || (t[0] = (l) => s.$emit("view-all-payment-methods"))
|
|
147
|
+
}, {
|
|
148
|
+
default: d(() => [
|
|
149
|
+
c(h(o(a)({
|
|
150
|
+
defaultMessage: "Manage",
|
|
151
|
+
id: "customer_overview.payment_methods_block.manage_button_label",
|
|
152
|
+
description: "Label of the button that opens the management of the customer's payment methods"
|
|
153
|
+
})), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})) : (n(), i(o(g), {
|
|
157
|
+
key: 1,
|
|
158
|
+
size: "xs",
|
|
159
|
+
intent: "subtle",
|
|
160
|
+
"icon-suffix": "arrow_right_alt",
|
|
161
|
+
class: "sv-action sv-action--ghost sv-payment-methods__view-all",
|
|
162
|
+
type: "button",
|
|
163
|
+
onClick: t[1] || (t[1] = (l) => s.$emit("view-all-payment-methods"))
|
|
164
|
+
}, {
|
|
165
|
+
default: d(() => [
|
|
166
|
+
c(h(o(a)({
|
|
167
|
+
defaultMessage: "View all",
|
|
168
|
+
id: "customer_overview.payment_methods_block.view_all_payment_methods_link_label",
|
|
169
|
+
description: "The link text that links to the overview page of the customer invoices"
|
|
170
|
+
})), 1)
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}))
|
|
174
|
+
]),
|
|
175
|
+
key: "0"
|
|
176
|
+
} : void 0
|
|
177
|
+
]), 1032, ["title"]));
|
|
178
|
+
}
|
|
179
|
+
}), G = /* @__PURE__ */ A({
|
|
180
|
+
__name: "CustomerPaymentMethods",
|
|
181
|
+
props: {
|
|
182
|
+
isLoading: { type: Boolean },
|
|
183
|
+
paymentMethods: { type: Array },
|
|
184
|
+
configuration: { type: Object },
|
|
185
|
+
onViewAll: { type: Function },
|
|
186
|
+
onAdd: { type: Function },
|
|
187
|
+
hasNoPaymentMethodOptions: { type: Boolean },
|
|
188
|
+
hasMorePaymentMethods: { type: Boolean }
|
|
189
|
+
},
|
|
190
|
+
setup(e) {
|
|
191
|
+
const m = {
|
|
192
|
+
showViewAllButton: !0,
|
|
193
|
+
showAddButton: !0
|
|
194
|
+
}, a = e, u = p(
|
|
195
|
+
() => L(m, a.configuration)
|
|
196
|
+
), { dispatchAction: v } = O();
|
|
197
|
+
return (b, r) => e.isLoading ? (n(), i(C, {
|
|
198
|
+
key: 0,
|
|
199
|
+
variant: "section",
|
|
200
|
+
class: "sv-payment-methods sv-root sv-component sv-loading h-72"
|
|
201
|
+
})) : (n(), i(S, {
|
|
202
|
+
key: 1,
|
|
203
|
+
class: "sv-payment-methods sv-root sv-component",
|
|
204
|
+
"payment-methods": e.paymentMethods,
|
|
205
|
+
"show-view-all-button": u.value.showViewAllButton,
|
|
206
|
+
"is-managed": !!e.onViewAll,
|
|
207
|
+
"show-add-button": u.value.showAddButton,
|
|
208
|
+
"has-no-payment-method-options": e.hasNoPaymentMethodOptions,
|
|
209
|
+
"has-more-payment-methods": e.hasMorePaymentMethods,
|
|
210
|
+
onViewAllPaymentMethods: r[0] || (r[0] = (w) => e.onViewAll ? e.onViewAll() : o(v)({ action: "view-all-payment-methods" })),
|
|
211
|
+
onAddPaymentMethod: r[1] || (r[1] = (w) => e.onAdd ? e.onAdd() : o(v)({ action: "add-payment-method" }))
|
|
212
|
+
}, null, 8, ["payment-methods", "show-view-all-button", "is-managed", "show-add-button", "has-no-payment-method-options", "has-more-payment-methods"]));
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
export {
|
|
216
|
+
G as _
|
|
217
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { defineComponent as I, computed as k, openBlock as t, createElementBlock as S, createElementVNode as $, createBlock as a, unref as e, withCtx as l, createTextVNode as v, toDisplayString as f, createCommentVNode as _, Fragment as B, renderList as E, createVNode as N, defineAsyncComponent as O, watch as z, ref as w } from "vue";
|
|
2
|
+
import { _ as V } from "./Button.vue.es-CW7XfMBF.mjs";
|
|
3
|
+
import { _ as F } from "./ErrorNotification.vue.es-Cw7fqCg1.mjs";
|
|
4
|
+
import { _ as T } from "./Section.vue.es-DYmEtgBj.mjs";
|
|
5
|
+
import { a as C, d as A } from "./customElements-B8c354Nu.mjs";
|
|
6
|
+
import { _ as P } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs";
|
|
7
|
+
import { b as W } from "./customer.es-DQKl6wFt.mjs";
|
|
8
|
+
import { g as H } from "./getCountryNameByCode.es-OGxn_zT0.mjs";
|
|
9
|
+
import { _ as R } from "./Chip.vue.es-CYwWHyAT.mjs";
|
|
10
|
+
import { _ as q } from "./ContextMenu.vue.es-EXTx0NEt.mjs";
|
|
11
|
+
import { t as G, u as J } from "./useShippingAddresses-BvThNpez.mjs";
|
|
12
|
+
import { _ as L } from "./Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
13
|
+
const K = { class: "sv-shipping-address flex items-start gap-2" }, Q = { class: "sv-shipping-address__content grid grow grid-cols-1 gap-0.5" }, U = /* @__PURE__ */ I({
|
|
14
|
+
__name: "ShippingAddressCard",
|
|
15
|
+
props: {
|
|
16
|
+
address: { type: Object },
|
|
17
|
+
menuItems: { type: Array },
|
|
18
|
+
showDefault: { type: Boolean },
|
|
19
|
+
compact: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
setup(s) {
|
|
22
|
+
const c = s, { $t: p } = C(), n = k(() => {
|
|
23
|
+
var m, u;
|
|
24
|
+
const { individual: i, organization: r } = c.address.recipient ?? {};
|
|
25
|
+
return r ? [r.company_name, r.attention_name].filter(Boolean).join(", ") : [(m = i == null ? void 0 : i.name) == null ? void 0 : m.first_name, (u = i == null ? void 0 : i.name) == null ? void 0 : u.last_name].filter(Boolean).join(" ");
|
|
26
|
+
}), d = k(() => [
|
|
27
|
+
...W(G(c.address.address)),
|
|
28
|
+
...c.address.address.country ? [H(c.address.address.country)] : []
|
|
29
|
+
]);
|
|
30
|
+
return (i, r) => {
|
|
31
|
+
var m, u;
|
|
32
|
+
return t(), S("div", K, [
|
|
33
|
+
$("div", Q, [
|
|
34
|
+
n.value && !s.compact ? (t(), a(e(A), {
|
|
35
|
+
key: 0,
|
|
36
|
+
tag: "span",
|
|
37
|
+
variant: "body-sm",
|
|
38
|
+
weight: "semibold",
|
|
39
|
+
class: "sv-shipping-address__recipient"
|
|
40
|
+
}, {
|
|
41
|
+
default: l(() => [
|
|
42
|
+
v(f(n.value), 1)
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
})) : _("", !0),
|
|
46
|
+
(t(!0), S(B, null, E(d.value, (g, y) => (t(), a(e(A), {
|
|
47
|
+
key: y,
|
|
48
|
+
tag: "span",
|
|
49
|
+
variant: "body-sm",
|
|
50
|
+
color: s.compact ? void 0 : "secondary",
|
|
51
|
+
class: "sv-shipping-address__line"
|
|
52
|
+
}, {
|
|
53
|
+
default: l(() => [
|
|
54
|
+
v(f(g), 1)
|
|
55
|
+
]),
|
|
56
|
+
_: 2
|
|
57
|
+
}, 1032, ["color"]))), 128)),
|
|
58
|
+
(m = s.address.recipient) != null && m.phone_number && !s.compact ? (t(), a(e(A), {
|
|
59
|
+
key: 1,
|
|
60
|
+
tag: "span",
|
|
61
|
+
variant: "body-sm",
|
|
62
|
+
color: "secondary",
|
|
63
|
+
class: "sv-shipping-address__phone"
|
|
64
|
+
}, {
|
|
65
|
+
default: l(() => {
|
|
66
|
+
var g;
|
|
67
|
+
return [
|
|
68
|
+
v(f((g = s.address.recipient) == null ? void 0 : g.phone_number), 1)
|
|
69
|
+
];
|
|
70
|
+
}),
|
|
71
|
+
_: 1
|
|
72
|
+
})) : _("", !0)
|
|
73
|
+
]),
|
|
74
|
+
s.showDefault && s.address.is_default ? (t(), a(e(R), {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "sv-shipping-address__default",
|
|
77
|
+
intent: "info",
|
|
78
|
+
size: "sm",
|
|
79
|
+
content: e(p)({
|
|
80
|
+
defaultMessage: "Default",
|
|
81
|
+
id: "shipping_address.default_chip.label",
|
|
82
|
+
description: "Marks the shipping address the customer uses by default"
|
|
83
|
+
})
|
|
84
|
+
}, null, 8, ["content"])) : _("", !0),
|
|
85
|
+
(u = s.menuItems) != null && u.length ? (t(), a(e(q), {
|
|
86
|
+
key: 1,
|
|
87
|
+
class: "sv-shipping-address__menu",
|
|
88
|
+
items: s.menuItems
|
|
89
|
+
}, null, 8, ["items"])) : _("", !0)
|
|
90
|
+
]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}), X = /* @__PURE__ */ I({
|
|
94
|
+
__name: "ShippingAddressList",
|
|
95
|
+
props: {
|
|
96
|
+
addresses: { type: Array },
|
|
97
|
+
getMenuItems: { type: Function },
|
|
98
|
+
compact: { type: Boolean }
|
|
99
|
+
},
|
|
100
|
+
setup(s) {
|
|
101
|
+
return (c, p) => (t(), a(e(T), {
|
|
102
|
+
"no-spacing": "",
|
|
103
|
+
"content-classes": "divide-y divide-gray-100",
|
|
104
|
+
class: "sv-shipping-address-list"
|
|
105
|
+
}, {
|
|
106
|
+
default: l(() => [
|
|
107
|
+
(t(!0), S(B, null, E(s.addresses, (n) => {
|
|
108
|
+
var d;
|
|
109
|
+
return t(), S("div", {
|
|
110
|
+
key: n.id,
|
|
111
|
+
class: "sv-shipping-address-list__item px-3 py-2"
|
|
112
|
+
}, [
|
|
113
|
+
N(U, {
|
|
114
|
+
address: n,
|
|
115
|
+
"menu-items": (d = s.getMenuItems) == null ? void 0 : d.call(s, n),
|
|
116
|
+
compact: s.compact,
|
|
117
|
+
"show-default": ""
|
|
118
|
+
}, null, 8, ["address", "menu-items", "compact"])
|
|
119
|
+
]);
|
|
120
|
+
}), 128))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
function Y({
|
|
127
|
+
onEdit: s,
|
|
128
|
+
onDelete: c
|
|
129
|
+
}) {
|
|
130
|
+
const { $t: p } = C();
|
|
131
|
+
return { getMenuItems: (d) => [
|
|
132
|
+
{
|
|
133
|
+
label: p({
|
|
134
|
+
defaultMessage: "Edit",
|
|
135
|
+
id: "shipping_address.context_menu.edit.label",
|
|
136
|
+
description: "Menu option that opens the form to change a shipping address"
|
|
137
|
+
}),
|
|
138
|
+
onClick: () => s(d)
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: p({
|
|
142
|
+
defaultMessage: "Delete",
|
|
143
|
+
id: "shipping_address.context_menu.delete.label",
|
|
144
|
+
description: "Menu option that deletes a shipping address"
|
|
145
|
+
}),
|
|
146
|
+
onClick: () => c(d)
|
|
147
|
+
}
|
|
148
|
+
] };
|
|
149
|
+
}
|
|
150
|
+
const Z = { class: "grid grid-cols-1 gap-2" }, ee = 3, se = /* @__PURE__ */ I({
|
|
151
|
+
__name: "CustomerShippingAddresses",
|
|
152
|
+
props: {
|
|
153
|
+
customerId: { type: String },
|
|
154
|
+
customer: { type: Object },
|
|
155
|
+
isLoading: { type: Boolean }
|
|
156
|
+
},
|
|
157
|
+
setup(s) {
|
|
158
|
+
const c = O(
|
|
159
|
+
() => import("./ShippingAddressesModal-Gxv2KxaW.mjs")
|
|
160
|
+
), p = s, { $t: n } = C(), d = k(() => {
|
|
161
|
+
var o;
|
|
162
|
+
return p.customerId ?? ((o = p.customer) == null ? void 0 : o.id);
|
|
163
|
+
}), i = J({ customerId: d }), { items: r, isPending: m, error: u } = i, g = k(() => r.value.slice(0, ee));
|
|
164
|
+
z(
|
|
165
|
+
d,
|
|
166
|
+
(o) => {
|
|
167
|
+
o && i.fetchAll();
|
|
168
|
+
},
|
|
169
|
+
{ immediate: !0 }
|
|
170
|
+
);
|
|
171
|
+
const y = w(!1), M = w(!1), x = w({ step: "LIST" }), b = (o) => {
|
|
172
|
+
x.value = o, y.value = !0, M.value = !0;
|
|
173
|
+
}, { getMenuItems: j } = Y({
|
|
174
|
+
onEdit: (o) => b({ step: "EDIT", address: o }),
|
|
175
|
+
onDelete: (o) => b({ step: "DELETE", address: o })
|
|
176
|
+
});
|
|
177
|
+
return (o, h) => s.isLoading ? (t(), a(L, {
|
|
178
|
+
key: 0,
|
|
179
|
+
variant: "section",
|
|
180
|
+
class: "sv-shipping-addresses sv-root sv-component sv-loading min-h-[100px]"
|
|
181
|
+
})) : s.customer ? (t(), a(e(T), {
|
|
182
|
+
key: 1,
|
|
183
|
+
class: "sv-shipping-addresses sv-root sv-component",
|
|
184
|
+
"no-spacing": "",
|
|
185
|
+
"no-border": "",
|
|
186
|
+
"content-background": "none",
|
|
187
|
+
title: e(n)(
|
|
188
|
+
{
|
|
189
|
+
defaultMessage: "{count, plural, one {Shipping address} other {Shipping addresses}}",
|
|
190
|
+
id: "customer_overview.shipping_addresses_block.title",
|
|
191
|
+
description: "Title of the block that lists the customer shipping addresses"
|
|
192
|
+
},
|
|
193
|
+
{ count: String(e(r).length) }
|
|
194
|
+
)
|
|
195
|
+
}, {
|
|
196
|
+
right: l(() => [
|
|
197
|
+
N(e(V), {
|
|
198
|
+
size: "xs",
|
|
199
|
+
intent: "subtle",
|
|
200
|
+
class: "sv-action sv-action--ghost sv-shipping-addresses__manage",
|
|
201
|
+
onClick: h[0] || (h[0] = (D) => b({ step: "LIST" }))
|
|
202
|
+
}, {
|
|
203
|
+
default: l(() => [
|
|
204
|
+
v(f(e(n)({
|
|
205
|
+
defaultMessage: "Manage",
|
|
206
|
+
id: "customer_overview.shipping_addresses_block.manage_button_label",
|
|
207
|
+
description: "Label of the button that opens the modal to manage the customer shipping addresses"
|
|
208
|
+
})), 1)
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
default: l(() => [
|
|
214
|
+
$("div", Z, [
|
|
215
|
+
e(u) ? (t(), a(e(F), {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: "sv-shipping-addresses__error sv-error",
|
|
218
|
+
title: e(n)({
|
|
219
|
+
defaultMessage: "We could not load your shipping addresses.",
|
|
220
|
+
id: "customer_overview.shipping_addresses_block.load_error",
|
|
221
|
+
description: "Shown in the shipping addresses block when the addresses cannot be loaded"
|
|
222
|
+
})
|
|
223
|
+
}, null, 8, ["title"])) : e(m) && !e(r).length ? (t(), a(L, {
|
|
224
|
+
key: 1,
|
|
225
|
+
variant: "section",
|
|
226
|
+
class: "min-h-[100px]"
|
|
227
|
+
})) : e(r).length ? (t(), a(X, {
|
|
228
|
+
key: 2,
|
|
229
|
+
class: "sv-shipping-addresses__list",
|
|
230
|
+
addresses: g.value,
|
|
231
|
+
"get-menu-items": e(j),
|
|
232
|
+
compact: ""
|
|
233
|
+
}, null, 8, ["addresses", "get-menu-items"])) : (t(), a(P, {
|
|
234
|
+
key: 3,
|
|
235
|
+
class: "sv-shipping-addresses__empty",
|
|
236
|
+
icon: "home"
|
|
237
|
+
}, {
|
|
238
|
+
title: l(() => [
|
|
239
|
+
v(f(e(n)({
|
|
240
|
+
defaultMessage: "No shipping addresses yet",
|
|
241
|
+
id: "customer_overview.shipping_addresses_block.empty",
|
|
242
|
+
description: "Shown in the shipping addresses block when the customer has no shipping addresses"
|
|
243
|
+
})), 1)
|
|
244
|
+
]),
|
|
245
|
+
message: l(() => [
|
|
246
|
+
$("button", {
|
|
247
|
+
type: "button",
|
|
248
|
+
class: "sv-action sv-action--link sv-shipping-addresses__add underline",
|
|
249
|
+
onClick: h[1] || (h[1] = (D) => b({ step: "ADD" }))
|
|
250
|
+
}, f(e(n)({
|
|
251
|
+
defaultMessage: "Add shipping address",
|
|
252
|
+
id: "customer_overview.shipping_addresses_block.add_button_label",
|
|
253
|
+
description: "Label of the link that opens the form for a first shipping address"
|
|
254
|
+
})), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}))
|
|
258
|
+
]),
|
|
259
|
+
y.value && s.customer ? (t(), a(e(c), {
|
|
260
|
+
key: 0,
|
|
261
|
+
"show-modal": M.value,
|
|
262
|
+
start: x.value,
|
|
263
|
+
customer: s.customer,
|
|
264
|
+
addresses: e(r),
|
|
265
|
+
"is-loading": e(m),
|
|
266
|
+
actions: e(i),
|
|
267
|
+
onClose: h[2] || (h[2] = (D) => M.value = !1)
|
|
268
|
+
}, null, 8, ["show-modal", "start", "customer", "addresses", "is-loading", "actions"])) : _("", !0)
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["title"])) : _("", !0);
|
|
272
|
+
}
|
|
273
|
+
}), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
274
|
+
__proto__: null,
|
|
275
|
+
default: se
|
|
276
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
277
|
+
export {
|
|
278
|
+
ge as C,
|
|
279
|
+
U as _,
|
|
280
|
+
X as a,
|
|
281
|
+
Y as u
|
|
282
|
+
};
|