@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,49 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import { _ as G, a as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { a as
|
|
10
|
-
import { g as
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import {
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { _ as
|
|
22
|
-
import { _ as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { _ as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { u as
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { defineComponent as D, computed as _, capitalize as oe, openBlock as l, createBlock as p, unref as t, mergeProps as K, withCtx as i, createTextVNode as k, toDisplayString as T, ref as M, createElementVNode as O, createVNode as r, createCommentVNode as I, createElementBlock as N, Fragment as B, watch as ie, normalizeClass as re, renderSlot as se } from "vue";
|
|
2
|
+
import { a as de, f as j } from "../../formatting.es-DlJEzreG.mjs";
|
|
3
|
+
import { _ as G, a as ce } from "../../Button.vue.es-CW7XfMBF.mjs";
|
|
4
|
+
import { _ as le, a as me } from "../../OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs";
|
|
5
|
+
import { _ as ue } from "../../DividerText.vue.es-Dq0JzI8C.mjs";
|
|
6
|
+
import { _ as ye } from "../../ErrorNotification.vue.es-Cw7fqCg1.mjs";
|
|
7
|
+
import { _ as pe, u as ve, a as fe } from "../../usePayments-B5Z9Kfbv.mjs";
|
|
8
|
+
import { _ as F } from "../../Section.vue.es-DYmEtgBj.mjs";
|
|
9
|
+
import { a as V, e as he, d as S, j as ge, k as _e, l as be } from "../../customElements-B8c354Nu.mjs";
|
|
10
|
+
import { g as Pe, _ as we } from "../../PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs";
|
|
11
|
+
import { i as Me, u as Ie } from "../../usePaymentMethodOptions-CuHoQx3K.mjs";
|
|
12
|
+
import { C as Ae } from "../../ContentWithAsideLayout-C2kFcft1.mjs";
|
|
13
|
+
import { u as Se } from "../../useHostEvent-MtRG6W2B.mjs";
|
|
14
|
+
import { _ as Oe } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs";
|
|
15
|
+
import { _ as U } from "../../Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs";
|
|
16
|
+
import { _ as W } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs";
|
|
17
|
+
import { u as ke, _ as Te } from "../../usePaymentMethodAvailability-DR_neLeZ.mjs";
|
|
18
|
+
import { u as xe } from "../../usePaymentFormHold-CYZ4BdOw.mjs";
|
|
19
|
+
import { c as Ee } from "../../payments-BKoKpoLN.mjs";
|
|
20
|
+
import { a as Ce, i as $e } from "../../paymentOutcome-Cv7hTFVu.mjs";
|
|
21
|
+
import { _ as Z } from "../../Amount.vue.es-CofcgmXt.mjs";
|
|
22
|
+
import { _ as Ne } from "../../Divider.vue.es-DnP_HqLz.mjs";
|
|
23
|
+
import { _ as De } from "../../TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs";
|
|
24
|
+
import { s as Fe } from "../../amount-CondixVt.mjs";
|
|
25
|
+
import { g as Le } from "../../invoiceState-BJVHaKs7.mjs";
|
|
26
|
+
import { _ as Re } from "../../SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs";
|
|
27
|
+
import { _ as Ue } from "../../PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs";
|
|
28
|
+
import { a as Be } from "../../paymentFailure-QZdZHBhf.mjs";
|
|
29
|
+
import { g as je } from "../../customer.es-DQKl6wFt.mjs";
|
|
30
|
+
import { u as Ve } from "../../useLoadInitialData-Bomj_1mo.mjs";
|
|
31
|
+
import { u as ze, D as He } from "../../usePaymentMethods-BDdetXts.mjs";
|
|
32
|
+
function Ye(e, a, n = /* @__PURE__ */ new Date()) {
|
|
33
|
+
return e.flatMap((u) => {
|
|
33
34
|
const c = a.find(
|
|
34
|
-
({ integration:
|
|
35
|
+
({ integration: m }) => !!u.integration_id && (m == null ? void 0 : m.id) === u.integration_id
|
|
35
36
|
);
|
|
36
|
-
return c &&
|
|
37
|
+
return c && Me(u, n) ? [{ paymentMethod: u, paymentAcceptorId: c.payment_acceptor.id }] : [];
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function qe(e) {
|
|
40
41
|
var a;
|
|
41
42
|
return (a = e.find(({ is_default: n }) => n) ?? e[0]) == null ? void 0 : a.id;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return e.type === "CARD" && e.card.last_four_digits ? [e.card.brand ?
|
|
44
|
+
function We(e) {
|
|
45
|
+
return e.type === "CARD" && e.card.last_four_digits ? [e.card.brand ? de(e.card.brand) : void 0, `•••• ${e.card.last_four_digits}`].filter(Boolean).join(" ") : Pe(e);
|
|
45
46
|
}
|
|
46
|
-
const
|
|
47
|
+
const Ze = /* @__PURE__ */ D({
|
|
47
48
|
__name: "PayButton",
|
|
48
49
|
props: {
|
|
49
50
|
amount: { type: Object },
|
|
@@ -63,7 +64,7 @@ const Ye = /* @__PURE__ */ $({
|
|
|
63
64
|
},
|
|
64
65
|
emits: ["click"],
|
|
65
66
|
setup(e) {
|
|
66
|
-
const a = e, { $t: n } =
|
|
67
|
+
const a = e, { $t: n } = V(), u = _(() => ({
|
|
67
68
|
intent: a.intent ?? "primary",
|
|
68
69
|
disabled: a.disabled,
|
|
69
70
|
iconPrefix: a.iconPrefix,
|
|
@@ -74,9 +75,9 @@ const Ye = /* @__PURE__ */ $({
|
|
|
74
75
|
square: a.square,
|
|
75
76
|
tag: a.tag,
|
|
76
77
|
type: a.type
|
|
77
|
-
})), c =
|
|
78
|
-
var
|
|
79
|
-
switch ((
|
|
78
|
+
})), c = _(() => {
|
|
79
|
+
var y, o, s;
|
|
80
|
+
switch ((y = a.paymentMethod) == null ? void 0 : y.paymentMethodType) {
|
|
80
81
|
case "scheme":
|
|
81
82
|
return n({
|
|
82
83
|
defaultMessage: "Credit Card",
|
|
@@ -149,16 +150,16 @@ const Ye = /* @__PURE__ */ $({
|
|
|
149
150
|
case "openbanking_UK":
|
|
150
151
|
return "Open Banking";
|
|
151
152
|
default:
|
|
152
|
-
return (o = a.paymentMethod) != null && o.paymentMethodType ?
|
|
153
|
+
return (o = a.paymentMethod) != null && o.paymentMethodType ? oe((s = a.paymentMethod) == null ? void 0 : s.paymentMethodType) : "";
|
|
153
154
|
}
|
|
154
|
-
}),
|
|
155
|
+
}), m = _(() => a.amount && (a.paymentMethod || a.paymentMethodLabel) ? n(
|
|
155
156
|
{
|
|
156
157
|
defaultMessage: "Pay {amount} with {type}",
|
|
157
158
|
id: "pay_button.label.amount_and_payment_method",
|
|
158
159
|
description: "The label for the pay button when both the amount and the payment method are known"
|
|
159
160
|
},
|
|
160
161
|
{
|
|
161
|
-
amount:
|
|
162
|
+
amount: j(a.amount),
|
|
162
163
|
type: a.paymentMethodLabel ?? c.value
|
|
163
164
|
}
|
|
164
165
|
) : a.amount ? n(
|
|
@@ -168,7 +169,7 @@ const Ye = /* @__PURE__ */ $({
|
|
|
168
169
|
description: "The label for the pay button when only the amount is known"
|
|
169
170
|
},
|
|
170
171
|
{
|
|
171
|
-
amount:
|
|
172
|
+
amount: j(a.amount),
|
|
172
173
|
type: c.value
|
|
173
174
|
}
|
|
174
175
|
) : n({
|
|
@@ -176,71 +177,72 @@ const Ye = /* @__PURE__ */ $({
|
|
|
176
177
|
id: "pay_button.label.default",
|
|
177
178
|
description: "The default label for the pay button when no amount and payment method are known"
|
|
178
179
|
}));
|
|
179
|
-
return (
|
|
180
|
+
return (y, o) => (l(), p(t(G), K(u.value, {
|
|
180
181
|
class: "w-full",
|
|
181
|
-
onClick: o[0] || (o[0] = (
|
|
182
|
+
onClick: o[0] || (o[0] = (s) => y.$emit("click", s))
|
|
182
183
|
}), {
|
|
183
184
|
default: i(() => [
|
|
184
|
-
T(
|
|
185
|
+
k(T(m.value), 1)
|
|
185
186
|
]),
|
|
186
187
|
_: 1
|
|
187
188
|
}, 16));
|
|
188
189
|
}
|
|
189
190
|
});
|
|
190
|
-
function
|
|
191
|
-
const { chargeStoredPaymentMethod: e } =
|
|
192
|
-
return { isPending: n, charge: async (c) => {
|
|
191
|
+
function Ke() {
|
|
192
|
+
const { chargeStoredPaymentMethod: e } = Ee(), a = he(), n = M(!1);
|
|
193
|
+
return { isPending: n, charge: async (c, m) => {
|
|
193
194
|
if (n.value) return "UNCONFIRMED";
|
|
194
195
|
n.value = !0;
|
|
195
|
-
const
|
|
196
|
+
const y = {
|
|
197
|
+
...m,
|
|
196
198
|
paymentAcceptorId: c.paymentAcceptorId,
|
|
197
199
|
invoiceId: c.invoiceId
|
|
198
200
|
};
|
|
199
201
|
try {
|
|
200
|
-
const
|
|
201
|
-
return
|
|
202
|
+
const o = await e(c), s = Ce(o);
|
|
203
|
+
return s === "FAILED" && a.error(
|
|
202
204
|
"PAYMENT_AUTHORIZATION_FAILED",
|
|
203
205
|
"Failed to charge the invoice to a stored payment method",
|
|
204
206
|
{
|
|
205
|
-
...
|
|
207
|
+
...y,
|
|
206
208
|
reason: "PAYMENT_AUTHORIZATION_REJECTED",
|
|
207
|
-
status:
|
|
209
|
+
status: o.status
|
|
208
210
|
}
|
|
209
|
-
),
|
|
210
|
-
} catch (
|
|
211
|
+
), s;
|
|
212
|
+
} catch (o) {
|
|
211
213
|
return a.error(
|
|
212
214
|
"PAYMENT_AUTHORIZATION_FAILED",
|
|
213
215
|
"Failed to charge the invoice to a stored payment method",
|
|
214
|
-
{ ...
|
|
215
|
-
|
|
216
|
-
),
|
|
216
|
+
{ ...y, reason: "PAYMENT_AUTHORIZATION_FAILED" },
|
|
217
|
+
o
|
|
218
|
+
), $e(o) ? "UNCONFIRMED" : "FAILED";
|
|
217
219
|
} finally {
|
|
218
220
|
n.value = !1;
|
|
219
221
|
}
|
|
220
222
|
} };
|
|
221
223
|
}
|
|
222
|
-
const
|
|
224
|
+
const Ge = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Je = { class: "flex flex-row gap-3 px-3 py-2" }, Qe = { class: "min-w-0 grow" }, Xe = { class: "sv-invoice-order-summary__paid flex flex-row gap-2 py-1.5" }, et = { class: "sv-invoice-order-summary__due flex flex-row gap-2 py-1.5" }, tt = /* @__PURE__ */ D({
|
|
223
225
|
__name: "InvoiceOrderSummary",
|
|
224
226
|
props: {
|
|
225
227
|
invoice: { type: Object },
|
|
226
228
|
isPaid: { type: Boolean }
|
|
227
229
|
},
|
|
228
230
|
setup(e) {
|
|
229
|
-
const a = e, { $t: n, formatDate:
|
|
231
|
+
const a = e, { $t: n, formatDate: u } = V(), c = _(() => ({
|
|
230
232
|
"invoice_preview.total_due_today_heading": n({
|
|
231
233
|
defaultMessage: "Total",
|
|
232
234
|
id: "pay_invoice.order_summary.total_heading",
|
|
233
235
|
description: 'Heading of the invoice total in the order summary of the pay invoice screen, replacing the shared preview’s "Total due today"'
|
|
234
236
|
})
|
|
235
|
-
})),
|
|
236
|
-
const
|
|
237
|
-
if (!(a.isPaid || a.invoice.paid || !
|
|
238
|
-
return
|
|
239
|
-
[
|
|
237
|
+
})), m = _(() => a.invoice.open_invoice_amount), y = (s) => s.startsWith("-") ? s.slice(1) : `-${s}`, o = _(() => {
|
|
238
|
+
const s = a.invoice.tax_summary.total_amount, h = m.value;
|
|
239
|
+
if (!(a.isPaid || a.invoice.paid || !h) && Number(h.quantity) !== Number(s.quantity))
|
|
240
|
+
return Fe(
|
|
241
|
+
[s, { ...h, quantity: y(h.quantity) }],
|
|
240
242
|
a.invoice.billing_currency
|
|
241
243
|
);
|
|
242
244
|
});
|
|
243
|
-
return (
|
|
245
|
+
return (s, h) => (l(), p(t(F), {
|
|
244
246
|
class: "sv-order-summary sv-invoice-order-summary",
|
|
245
247
|
"no-border": "",
|
|
246
248
|
"no-spacing": "",
|
|
@@ -252,22 +254,22 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
252
254
|
})
|
|
253
255
|
}, {
|
|
254
256
|
default: i(() => [
|
|
255
|
-
O("div",
|
|
256
|
-
r(t(
|
|
257
|
+
O("div", Ge, [
|
|
258
|
+
r(t(F), {
|
|
257
259
|
"no-spacing": "",
|
|
258
260
|
class: "sv-invoice-order-summary__invoice"
|
|
259
261
|
}, {
|
|
260
262
|
default: i(() => [
|
|
261
|
-
O("div",
|
|
262
|
-
O("div",
|
|
263
|
-
r(t(
|
|
263
|
+
O("div", Je, [
|
|
264
|
+
O("div", Qe, [
|
|
265
|
+
r(t(S), {
|
|
264
266
|
variant: "body",
|
|
265
267
|
weight: "semibold",
|
|
266
268
|
"no-spacing": "",
|
|
267
269
|
class: "truncate"
|
|
268
270
|
}, {
|
|
269
271
|
default: i(() => [
|
|
270
|
-
T(
|
|
272
|
+
k(T(t(n)(
|
|
271
273
|
{
|
|
272
274
|
defaultMessage: "Invoice {number}",
|
|
273
275
|
id: "pay_invoice.order_summary.invoice_number",
|
|
@@ -278,7 +280,7 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
278
280
|
]),
|
|
279
281
|
_: 1
|
|
280
282
|
}),
|
|
281
|
-
e.invoice.due_date ? (
|
|
283
|
+
e.invoice.due_date ? (l(), p(t(S), {
|
|
282
284
|
key: 0,
|
|
283
285
|
variant: "body-xs",
|
|
284
286
|
color: "subtle",
|
|
@@ -286,45 +288,45 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
286
288
|
class: "sv-invoice-order-summary__due-date"
|
|
287
289
|
}, {
|
|
288
290
|
default: i(() => [
|
|
289
|
-
T(
|
|
291
|
+
k(T(t(n)(
|
|
290
292
|
{
|
|
291
293
|
defaultMessage: "Due on {date}",
|
|
292
294
|
id: "pay_invoice.order_summary.due_date",
|
|
293
295
|
description: "When the invoice being paid is due, under its number in the order summary"
|
|
294
296
|
},
|
|
295
297
|
{
|
|
296
|
-
date: t(
|
|
298
|
+
date: t(u)({
|
|
297
299
|
date: e.invoice.due_date,
|
|
298
300
|
format: "date",
|
|
299
|
-
timezone: t(
|
|
301
|
+
timezone: t(Le)(e.invoice),
|
|
300
302
|
offsetType: "offsetted"
|
|
301
303
|
})
|
|
302
304
|
}
|
|
303
305
|
)), 1)
|
|
304
306
|
]),
|
|
305
307
|
_: 1
|
|
306
|
-
})) :
|
|
308
|
+
})) : I("", !0)
|
|
307
309
|
])
|
|
308
310
|
])
|
|
309
311
|
]),
|
|
310
312
|
_: 1
|
|
311
313
|
}),
|
|
312
|
-
r(
|
|
314
|
+
r(De, { messages: c.value }, {
|
|
313
315
|
default: i(() => [
|
|
314
|
-
r(
|
|
316
|
+
r(le, {
|
|
315
317
|
invoice: e.invoice,
|
|
316
318
|
"is-paid": e.isPaid
|
|
317
319
|
}, {
|
|
318
320
|
default: i(() => [
|
|
319
|
-
o.value &&
|
|
320
|
-
O("div",
|
|
321
|
-
r(t(
|
|
321
|
+
o.value && m.value ? (l(), N(B, { key: 0 }, [
|
|
322
|
+
O("div", Xe, [
|
|
323
|
+
r(t(S), {
|
|
322
324
|
tag: "span",
|
|
323
325
|
variant: "body-xs",
|
|
324
326
|
class: "grow"
|
|
325
327
|
}, {
|
|
326
328
|
default: i(() => [
|
|
327
|
-
T(
|
|
329
|
+
k(T(t(n)({
|
|
328
330
|
defaultMessage: "Already paid",
|
|
329
331
|
id: "pay_invoice.order_summary.already_paid",
|
|
330
332
|
description: "What has been paid on the invoice so far, in its order summary"
|
|
@@ -332,7 +334,7 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
332
334
|
]),
|
|
333
335
|
_: 1
|
|
334
336
|
}),
|
|
335
|
-
r(t(
|
|
337
|
+
r(t(S), {
|
|
336
338
|
tag: "span",
|
|
337
339
|
variant: "body-xs"
|
|
338
340
|
}, {
|
|
@@ -342,16 +344,16 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
342
344
|
_: 1
|
|
343
345
|
})
|
|
344
346
|
]),
|
|
345
|
-
r(t(
|
|
346
|
-
O("div",
|
|
347
|
-
r(t(
|
|
347
|
+
r(t(Ne), { spacing: "xxs" }),
|
|
348
|
+
O("div", et, [
|
|
349
|
+
r(t(S), {
|
|
348
350
|
tag: "span",
|
|
349
351
|
variant: "body-sm",
|
|
350
352
|
weight: "semibold",
|
|
351
353
|
class: "grow"
|
|
352
354
|
}, {
|
|
353
355
|
default: i(() => [
|
|
354
|
-
T(
|
|
356
|
+
k(T(t(n)({
|
|
355
357
|
defaultMessage: "Amount due",
|
|
356
358
|
id: "pay_invoice.order_summary.amount_due",
|
|
357
359
|
description: "What is still to be paid on the invoice, in its order summary"
|
|
@@ -359,18 +361,18 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
359
361
|
]),
|
|
360
362
|
_: 1
|
|
361
363
|
}),
|
|
362
|
-
r(t(
|
|
364
|
+
r(t(S), {
|
|
363
365
|
tag: "span",
|
|
364
366
|
variant: "body-sm",
|
|
365
367
|
weight: "semibold"
|
|
366
368
|
}, {
|
|
367
369
|
default: i(() => [
|
|
368
|
-
r(t(Z), { value:
|
|
370
|
+
r(t(Z), { value: m.value }, null, 8, ["value"])
|
|
369
371
|
]),
|
|
370
372
|
_: 1
|
|
371
373
|
})
|
|
372
374
|
])
|
|
373
|
-
], 64)) :
|
|
375
|
+
], 64)) : I("", !0)
|
|
374
376
|
]),
|
|
375
377
|
_: 1
|
|
376
378
|
}, 8, ["invoice", "is-paid"])
|
|
@@ -382,13 +384,13 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
382
384
|
_: 1
|
|
383
385
|
}, 8, ["title"]));
|
|
384
386
|
}
|
|
385
|
-
}),
|
|
387
|
+
}), at = {
|
|
386
388
|
key: 1,
|
|
387
389
|
class: "grid grid-cols-1 gap-6"
|
|
388
|
-
},
|
|
390
|
+
}, nt = ["aria-label"], ot = ["inert"], it = { class: "mt-4" }, rt = {
|
|
389
391
|
key: 0,
|
|
390
392
|
class: "flex flex-col gap-2"
|
|
391
|
-
},
|
|
393
|
+
}, st = /* @__PURE__ */ D({
|
|
392
394
|
__name: "PayInvoice",
|
|
393
395
|
props: {
|
|
394
396
|
invoice: { type: Object },
|
|
@@ -404,103 +406,118 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
404
406
|
error: { type: null }
|
|
405
407
|
},
|
|
406
408
|
setup(e) {
|
|
407
|
-
const { $t: a } =
|
|
409
|
+
const { $t: a } = V(), n = e, { availability: u } = ke({
|
|
408
410
|
paymentMethodOptions: () => n.paymentMethodOptions,
|
|
409
411
|
isLoading: () => n.isLoading,
|
|
410
412
|
context: () => {
|
|
411
413
|
var d;
|
|
412
414
|
return { invoiceId: (d = n.invoice) == null ? void 0 : d.id };
|
|
413
415
|
}
|
|
414
|
-
}), c =
|
|
415
|
-
() =>
|
|
416
|
-
),
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
}), c = M(), m = M(!0), y = M(), o = M(!1), { isFormHeld: s, handleActionRequired: h } = xe(o), A = M(!1), x = M(!1), b = _(
|
|
417
|
+
() => Ye(n.paymentMethods, n.paymentMethodOptions ?? [])
|
|
418
|
+
), P = M();
|
|
419
|
+
ie(
|
|
420
|
+
b,
|
|
419
421
|
(d) => {
|
|
420
|
-
|
|
422
|
+
P.value || (P.value = qe(
|
|
421
423
|
d.map(({ paymentMethod: v }) => v)
|
|
422
424
|
));
|
|
423
425
|
},
|
|
424
426
|
{ immediate: !0 }
|
|
425
427
|
);
|
|
426
|
-
const
|
|
427
|
-
() =>
|
|
428
|
-
({ paymentMethod: d }) => d.id ===
|
|
428
|
+
const w = _(
|
|
429
|
+
() => b.value.find(
|
|
430
|
+
({ paymentMethod: d }) => d.id === P.value
|
|
429
431
|
)
|
|
430
|
-
),
|
|
431
|
-
c.value = d, d.isAutomatic || (
|
|
432
|
-
},
|
|
432
|
+
), L = (d) => {
|
|
433
|
+
c.value = d, d.isAutomatic || (P.value = void 0);
|
|
434
|
+
}, g = _(
|
|
433
435
|
() => a({
|
|
434
436
|
id: "pay_invoice.stored_payment_methods.title",
|
|
435
437
|
defaultMessage: "Your payment methods",
|
|
436
438
|
description: "Section title above the payment methods the customer stored before, on the pay invoice screen"
|
|
437
439
|
})
|
|
438
|
-
), { charge:
|
|
439
|
-
|
|
440
|
+
), { charge: z } = Ke(), E = M(!1), R = M(), J = async () => {
|
|
441
|
+
var C, $;
|
|
442
|
+
const d = w.value;
|
|
440
443
|
if (!d || !n.invoice || !n.amount) return;
|
|
441
|
-
o.value = !0,
|
|
442
|
-
const v = await
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
444
|
+
o.value = !0, E.value = !1;
|
|
445
|
+
const v = await z(
|
|
446
|
+
{
|
|
447
|
+
paymentAcceptorId: d.paymentAcceptorId,
|
|
448
|
+
customerId: n.invoice.customer.id,
|
|
449
|
+
paymentMethodId: d.paymentMethod.id,
|
|
450
|
+
invoiceId: n.invoice.id,
|
|
451
|
+
amount: n.amount
|
|
452
|
+
},
|
|
453
|
+
// The API refuses an acceptor the invoice does not have, so a refusal shows the mismatch.
|
|
454
|
+
{
|
|
455
|
+
invoicePaymentAcceptorIds: n.invoice.payment_acceptor_ids,
|
|
456
|
+
offeredPaymentAcceptorIds: [
|
|
457
|
+
...new Set(
|
|
458
|
+
(C = n.paymentMethodOptions) == null ? void 0 : C.map(({ payment_acceptor: f }) => f == null ? void 0 : f.id)
|
|
459
|
+
)
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
);
|
|
449
463
|
if (v === "SUCCEEDED") {
|
|
450
|
-
|
|
464
|
+
H();
|
|
451
465
|
return;
|
|
452
466
|
}
|
|
453
|
-
if (
|
|
454
|
-
|
|
467
|
+
if (v === "UNCONFIRMED") {
|
|
468
|
+
o.value = !1, x.value = !0, R.value = Be({
|
|
455
469
|
code: "PAYMENT_OUTCOME_UNCONFIRMED",
|
|
456
470
|
message: "The charge to the stored payment method could not be confirmed"
|
|
457
471
|
});
|
|
458
472
|
return;
|
|
459
473
|
}
|
|
460
|
-
|
|
474
|
+
await (($ = n.refresh) == null ? void 0 : $.call(n)), o.value = !1, E.value = !0;
|
|
461
475
|
};
|
|
462
476
|
function Q() {
|
|
463
|
-
if (
|
|
477
|
+
if (w.value) {
|
|
464
478
|
J();
|
|
465
479
|
return;
|
|
466
480
|
}
|
|
467
|
-
if (!
|
|
481
|
+
if (!y.value)
|
|
468
482
|
throw new Error("payment integration form not found");
|
|
469
|
-
o.value = !0,
|
|
483
|
+
o.value = !0, y.value.submit();
|
|
470
484
|
}
|
|
471
|
-
const X =
|
|
472
|
-
() => !!(
|
|
473
|
-
),
|
|
485
|
+
const X = _(
|
|
486
|
+
() => !!(w.value || c.value) && !o.value && !x.value
|
|
487
|
+
), { dispatch: ee, componentName: te } = Se(), H = () => {
|
|
474
488
|
var d;
|
|
475
|
-
|
|
476
|
-
|
|
489
|
+
A.value = !0, o.value = !1, (d = n.refresh) == null || d.call(n), ee("solvimon-payment-succeeded", {
|
|
490
|
+
componentName: te,
|
|
491
|
+
invoiceId: n.configuration.invoiceId
|
|
492
|
+
});
|
|
493
|
+
}, ae = () => {
|
|
477
494
|
o.value = !1;
|
|
478
|
-
},
|
|
479
|
-
o.value = !1, (d == null ? void 0 : d.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (
|
|
495
|
+
}, ne = (d) => {
|
|
496
|
+
o.value = !1, (d == null ? void 0 : d.code) === "PAYMENT_OUTCOME_UNCONFIRMED" && (x.value = !0);
|
|
480
497
|
};
|
|
481
|
-
return (d, v) => (
|
|
498
|
+
return (d, v) => (l(), p(t(Ae), null, {
|
|
482
499
|
header: i(() => [
|
|
483
|
-
r(
|
|
500
|
+
r(U, { class: "min-h-[52px] w-96" }, {
|
|
484
501
|
default: i(() => [
|
|
485
|
-
e.invoice && e.downloadService ? (
|
|
502
|
+
e.invoice && e.downloadService ? (l(), p(t(pe), {
|
|
486
503
|
key: 0,
|
|
487
504
|
invoice: e.invoice,
|
|
488
505
|
"payment-attempts": e.paymentAttempts,
|
|
489
506
|
"download-service": () => e.downloadService(e.invoice)
|
|
490
|
-
}, null, 8, ["invoice", "payment-attempts", "download-service"])) :
|
|
507
|
+
}, null, 8, ["invoice", "payment-attempts", "download-service"])) : I("", !0)
|
|
491
508
|
]),
|
|
492
509
|
_: 1
|
|
493
510
|
})
|
|
494
511
|
]),
|
|
495
512
|
content: i(() => {
|
|
496
|
-
var
|
|
513
|
+
var C, $;
|
|
497
514
|
return [
|
|
498
|
-
e.isLoading ? (
|
|
515
|
+
e.isLoading ? (l(), p(U, {
|
|
499
516
|
key: 0,
|
|
500
517
|
variant: "section",
|
|
501
518
|
class: "min-h-[300px]"
|
|
502
|
-
})) :
|
|
503
|
-
(
|
|
519
|
+
})) : I("", !0),
|
|
520
|
+
(C = e.invoice) != null && C.paid || e.invoice && A.value ? (l(), p(W, {
|
|
504
521
|
key: 1,
|
|
505
522
|
status: "success",
|
|
506
523
|
title: t(a)({
|
|
@@ -511,19 +528,19 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
511
528
|
class: "mt-8"
|
|
512
529
|
}, {
|
|
513
530
|
default: i(() => [
|
|
514
|
-
r(t(
|
|
531
|
+
r(t(S), {
|
|
515
532
|
variant: "body-sm",
|
|
516
533
|
class: "mt-1"
|
|
517
534
|
}, {
|
|
518
535
|
default: i(() => [
|
|
519
|
-
r(t(
|
|
520
|
-
T(
|
|
536
|
+
r(t(ce), { icon: "check" }),
|
|
537
|
+
k(T(t(j)(e.invoice.tax_summary.total_amount)), 1)
|
|
521
538
|
]),
|
|
522
539
|
_: 1
|
|
523
540
|
})
|
|
524
541
|
]),
|
|
525
542
|
_: 1
|
|
526
|
-
}, 8, ["title"])) : e.error ? (
|
|
543
|
+
}, 8, ["title"])) : e.error && !e.invoice ? (l(), p(W, {
|
|
527
544
|
key: 2,
|
|
528
545
|
status: "error",
|
|
529
546
|
title: t(a)({
|
|
@@ -533,12 +550,12 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
533
550
|
})
|
|
534
551
|
}, {
|
|
535
552
|
default: i(() => [
|
|
536
|
-
r(t(
|
|
553
|
+
r(t(S), {
|
|
537
554
|
variant: "body-sm",
|
|
538
555
|
class: "mt-1"
|
|
539
556
|
}, {
|
|
540
557
|
default: i(() => [
|
|
541
|
-
T(
|
|
558
|
+
k(T(t(a)({
|
|
542
559
|
id: "pay_invoice.error.description",
|
|
543
560
|
defaultMessage: "Please try again or contact support.",
|
|
544
561
|
description: "Body text shown when the invoice payment fails to load"
|
|
@@ -548,16 +565,16 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
548
565
|
})
|
|
549
566
|
]),
|
|
550
567
|
_: 1
|
|
551
|
-
}, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (
|
|
552
|
-
t(
|
|
568
|
+
}, 8, ["title"])) : !e.isLoading && e.countryCode && e.amount && e.invoice ? (l(), N(B, { key: 3 }, [
|
|
569
|
+
t(u) === "READY" && R.value ? (l(), p(Ue, {
|
|
553
570
|
key: 0,
|
|
554
571
|
class: "sv-pay-invoice__stored-payment-unconfirmed",
|
|
555
|
-
error:
|
|
556
|
-
}, null, 8, ["error"])) : t(
|
|
557
|
-
|
|
558
|
-
r(t(
|
|
572
|
+
error: R.value
|
|
573
|
+
}, null, 8, ["error"])) : t(u) === "READY" ? (l(), N("div", at, [
|
|
574
|
+
b.value.length ? (l(), N(B, { key: 0 }, [
|
|
575
|
+
r(t(F), {
|
|
559
576
|
class: "sv-pay-invoice__stored-payment-methods",
|
|
560
|
-
title:
|
|
577
|
+
title: g.value,
|
|
561
578
|
"content-background": "none",
|
|
562
579
|
"no-border": "",
|
|
563
580
|
"no-spacing": ""
|
|
@@ -565,22 +582,22 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
565
582
|
default: i(() => [
|
|
566
583
|
O("div", {
|
|
567
584
|
role: "group",
|
|
568
|
-
"aria-label":
|
|
585
|
+
"aria-label": g.value
|
|
569
586
|
}, [
|
|
570
|
-
r(
|
|
571
|
-
modelValue:
|
|
572
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
573
|
-
"payment-methods":
|
|
574
|
-
({ paymentMethod:
|
|
587
|
+
r(we, {
|
|
588
|
+
modelValue: P.value,
|
|
589
|
+
"onUpdate:modelValue": v[0] || (v[0] = (f) => P.value = f),
|
|
590
|
+
"payment-methods": b.value.map(
|
|
591
|
+
({ paymentMethod: f }) => f
|
|
575
592
|
),
|
|
576
593
|
"show-add-option": !1,
|
|
577
|
-
disabled: o.value || t(
|
|
594
|
+
disabled: o.value || t(s)
|
|
578
595
|
}, null, 8, ["modelValue", "payment-methods", "disabled"])
|
|
579
|
-
], 8,
|
|
596
|
+
], 8, nt)
|
|
580
597
|
]),
|
|
581
598
|
_: 1
|
|
582
599
|
}, 8, ["title"]),
|
|
583
|
-
|
|
600
|
+
E.value ? (l(), p(t(ye), {
|
|
584
601
|
key: 0,
|
|
585
602
|
class: "sv-pay-invoice__stored-payment-error sv-error",
|
|
586
603
|
title: t(a)({
|
|
@@ -588,8 +605,8 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
588
605
|
defaultMessage: "The payment did not go through. Try again or use another payment method.",
|
|
589
606
|
description: "Shown when charging the invoice to a stored payment method fails"
|
|
590
607
|
})
|
|
591
|
-
}, null, 8, ["title"])) :
|
|
592
|
-
r(t(
|
|
608
|
+
}, null, 8, ["title"])) : I("", !0),
|
|
609
|
+
r(t(ue), {
|
|
593
610
|
text: t(a)({
|
|
594
611
|
id: "pay_invoice.stored_payment_methods.divider_text",
|
|
595
612
|
defaultMessage: "or",
|
|
@@ -597,9 +614,9 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
597
614
|
}),
|
|
598
615
|
"text-position": "center"
|
|
599
616
|
}, null, 8, ["text"])
|
|
600
|
-
], 64)) :
|
|
601
|
-
r(t(
|
|
602
|
-
title:
|
|
617
|
+
], 64)) : I("", !0),
|
|
618
|
+
r(t(F), {
|
|
619
|
+
title: b.value.length ? t(a)({
|
|
603
620
|
id: "pay_invoice.new_payment_method.title",
|
|
604
621
|
defaultMessage: "Pay with a new payment method",
|
|
605
622
|
description: "Section title for the payment form below the stored payment methods, on the pay invoice screen"
|
|
@@ -613,15 +630,15 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
613
630
|
"no-spacing": ""
|
|
614
631
|
}, {
|
|
615
632
|
default: i(() => {
|
|
616
|
-
var
|
|
633
|
+
var f, Y;
|
|
617
634
|
return [
|
|
618
635
|
O("div", {
|
|
619
|
-
class:
|
|
620
|
-
inert: t(
|
|
636
|
+
class: re({ "pointer-events-none opacity-60": t(s) }),
|
|
637
|
+
inert: t(s) || void 0
|
|
621
638
|
}, [
|
|
622
|
-
r(
|
|
639
|
+
r(Oe, {
|
|
623
640
|
ref_key: "paymentIntegrationFormRef",
|
|
624
|
-
ref:
|
|
641
|
+
ref: y,
|
|
625
642
|
amount: e.amount,
|
|
626
643
|
"country-code": e.countryCode,
|
|
627
644
|
context: {
|
|
@@ -634,24 +651,24 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
634
651
|
]
|
|
635
652
|
},
|
|
636
653
|
"customer-id": e.invoice.customer.id,
|
|
637
|
-
"store-payment-method":
|
|
654
|
+
"store-payment-method": m.value,
|
|
638
655
|
"invoice-id": e.invoice.id,
|
|
639
656
|
"payment-method-options": e.paymentMethodOptions ?? [],
|
|
640
|
-
"open-first-payment-method": !
|
|
657
|
+
"open-first-payment-method": !b.value.length,
|
|
641
658
|
variant: "AUTHORIZE",
|
|
642
|
-
"billing-entity-name": (Y = (
|
|
643
|
-
onPaymentSuccess:
|
|
644
|
-
onPaymentFailed:
|
|
645
|
-
onInvalid:
|
|
659
|
+
"billing-entity-name": (Y = (f = e.invoice) == null ? void 0 : f.billing_entity) == null ? void 0 : Y.legal_name,
|
|
660
|
+
onPaymentSuccess: H,
|
|
661
|
+
onPaymentFailed: ne,
|
|
662
|
+
onInvalid: ae,
|
|
646
663
|
onSubmitting: v[1] || (v[1] = (q) => o.value = !0),
|
|
647
|
-
onActionRequired: t(
|
|
648
|
-
onSelect:
|
|
664
|
+
onActionRequired: t(h),
|
|
665
|
+
onSelect: L
|
|
649
666
|
}, null, 8, ["amount", "country-code", "context", "customer-id", "store-payment-method", "invoice-id", "payment-method-options", "open-first-payment-method", "billing-entity-name", "onActionRequired"]),
|
|
650
|
-
O("div",
|
|
651
|
-
r(t(
|
|
667
|
+
O("div", it, [
|
|
668
|
+
r(t(me), {
|
|
652
669
|
id: "pay-invoice-store-payment-method",
|
|
653
|
-
modelValue:
|
|
654
|
-
"onUpdate:modelValue": v[2] || (v[2] = (q) =>
|
|
670
|
+
modelValue: m.value,
|
|
671
|
+
"onUpdate:modelValue": v[2] || (v[2] = (q) => m.value = q),
|
|
655
672
|
label: t(a)({
|
|
656
673
|
id: "pay_invoice.store_payment_method.label",
|
|
657
674
|
defaultMessage: "Save this payment method for future payments",
|
|
@@ -659,194 +676,185 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
659
676
|
})
|
|
660
677
|
}, null, 8, ["modelValue", "label"])
|
|
661
678
|
])
|
|
662
|
-
], 10,
|
|
679
|
+
], 10, ot)
|
|
663
680
|
];
|
|
664
681
|
}),
|
|
665
682
|
_: 1
|
|
666
683
|
}, 8, ["title"])
|
|
667
|
-
])) : (
|
|
684
|
+
])) : (l(), p(Te, {
|
|
668
685
|
key: 2,
|
|
669
686
|
variant: "AUTHORIZE",
|
|
670
|
-
"seller-name": (
|
|
687
|
+
"seller-name": ($ = e.invoice.billing_entity) == null ? void 0 : $.legal_name
|
|
671
688
|
}, {
|
|
672
689
|
default: i(() => [
|
|
673
|
-
e.downloadService ? (
|
|
690
|
+
e.downloadService ? (l(), p(t(G), {
|
|
674
691
|
key: 0,
|
|
675
692
|
type: "button",
|
|
676
693
|
intent: "secondary",
|
|
677
694
|
onClick: v[3] || (v[3] = () => {
|
|
678
|
-
var
|
|
679
|
-
return (
|
|
695
|
+
var f;
|
|
696
|
+
return (f = e.downloadService) == null ? void 0 : f.call(e, e.invoice);
|
|
680
697
|
})
|
|
681
698
|
}, {
|
|
682
699
|
default: i(() => [
|
|
683
|
-
T(
|
|
700
|
+
k(T(t(a)({
|
|
684
701
|
defaultMessage: "Download invoice",
|
|
685
702
|
description: "Button that downloads the invoice when it cannot be paid online",
|
|
686
703
|
id: "pay_invoice.unavailable.download_invoice"
|
|
687
704
|
})), 1)
|
|
688
705
|
]),
|
|
689
706
|
_: 1
|
|
690
|
-
})) :
|
|
707
|
+
})) : I("", !0)
|
|
691
708
|
]),
|
|
692
709
|
_: 1
|
|
693
710
|
}, 8, ["seller-name"]))
|
|
694
|
-
], 64)) :
|
|
711
|
+
], 64)) : I("", !0)
|
|
695
712
|
];
|
|
696
713
|
}),
|
|
697
714
|
aside: i(() => [
|
|
698
|
-
r(
|
|
715
|
+
r(U, {
|
|
699
716
|
variant: "section",
|
|
700
717
|
class: "min-h-[200px]"
|
|
701
718
|
}, {
|
|
702
719
|
default: i(() => [
|
|
703
|
-
e.invoice ? (
|
|
720
|
+
e.invoice ? (l(), p(tt, {
|
|
704
721
|
key: 0,
|
|
705
722
|
invoice: e.invoice,
|
|
706
|
-
"is-paid": e.invoice.paid ||
|
|
707
|
-
}, null, 8, ["invoice", "is-paid"])) :
|
|
723
|
+
"is-paid": e.invoice.paid || A.value
|
|
724
|
+
}, null, 8, ["invoice", "is-paid"])) : I("", !0)
|
|
708
725
|
]),
|
|
709
726
|
_: 1
|
|
710
727
|
}),
|
|
711
|
-
e.invoice && !e.invoice.paid && !
|
|
712
|
-
r(
|
|
728
|
+
e.invoice && !e.invoice.paid && !A.value && t(u) === "READY" ? (l(), N("div", rt, [
|
|
729
|
+
r(Ze, {
|
|
713
730
|
disabled: !X.value,
|
|
714
731
|
loading: o.value,
|
|
715
732
|
amount: e.amount,
|
|
716
|
-
"payment-method":
|
|
717
|
-
"payment-method-label":
|
|
733
|
+
"payment-method": w.value ? void 0 : c.value,
|
|
734
|
+
"payment-method-label": w.value && t(We)(w.value.paymentMethod),
|
|
718
735
|
onClick: Q
|
|
719
736
|
}, null, 8, ["disabled", "loading", "amount", "payment-method", "payment-method-label"]),
|
|
720
|
-
r(
|
|
737
|
+
r(Re, {
|
|
721
738
|
class: "sv-pay-invoice__kpi",
|
|
722
739
|
"payment-method-options": e.paymentMethodOptions ?? []
|
|
723
740
|
}, null, 8, ["payment-method-options"])
|
|
724
|
-
])) :
|
|
741
|
+
])) : I("", !0)
|
|
725
742
|
]),
|
|
726
743
|
_: 1
|
|
727
744
|
}));
|
|
728
745
|
}
|
|
729
|
-
}),
|
|
746
|
+
}), dt = /* @__PURE__ */ D({
|
|
730
747
|
__name: "PayInvoice.entry.view",
|
|
731
748
|
props: {
|
|
732
|
-
portalToken: { type: Object },
|
|
733
749
|
environment: { type: String },
|
|
734
750
|
locale: { type: String },
|
|
735
751
|
dateLocale: { type: String },
|
|
736
752
|
messages: { type: Object },
|
|
737
|
-
|
|
738
|
-
secondaryColor: { type: String },
|
|
739
|
-
isShadowRoot: { type: Boolean },
|
|
753
|
+
portalToken: { type: Object },
|
|
740
754
|
experimentalFeatures: { type: Array },
|
|
741
755
|
logLevel: { type: String },
|
|
742
756
|
onLog: { type: Function },
|
|
743
|
-
allowedPortalTypes: { type: Array },
|
|
744
|
-
portalObject: { type: Object },
|
|
745
757
|
cssOverrides: { type: [String, Array] },
|
|
746
758
|
branding: { type: Object },
|
|
759
|
+
portalObject: { type: null },
|
|
747
760
|
configuration: { type: Object }
|
|
748
761
|
},
|
|
749
762
|
setup(e) {
|
|
750
763
|
const a = e, {
|
|
751
764
|
invoice: n,
|
|
752
|
-
get:
|
|
765
|
+
get: u,
|
|
753
766
|
downloadInvoicePdf: c,
|
|
754
|
-
error:
|
|
755
|
-
} =
|
|
767
|
+
error: m
|
|
768
|
+
} = ve({ invoiceId: a.configuration.invoiceId }), { payments: y, get: o } = fe(), { paymentMethodOptions: s, get: h } = Ie(), { items: A, fetchAll: x } = ze({
|
|
756
769
|
customerId: a.portalObject.customer_id,
|
|
757
|
-
order:
|
|
758
|
-
}),
|
|
759
|
-
const
|
|
760
|
-
await
|
|
761
|
-
customerId:
|
|
762
|
-
invoiceId:
|
|
763
|
-
amount:
|
|
770
|
+
order: He
|
|
771
|
+
}), b = async () => {
|
|
772
|
+
const g = await u();
|
|
773
|
+
await h({
|
|
774
|
+
customerId: g.customer.id,
|
|
775
|
+
invoiceId: g.id,
|
|
776
|
+
amount: g.open_invoice_amount
|
|
764
777
|
});
|
|
765
|
-
}, { isLoading:
|
|
766
|
-
|
|
778
|
+
}, { isLoading: P } = Ve(
|
|
779
|
+
b(),
|
|
767
780
|
o(a.configuration.invoiceId),
|
|
768
|
-
|
|
769
|
-
),
|
|
781
|
+
x()
|
|
782
|
+
), w = () => Promise.allSettled([u(), o(a.configuration.invoiceId)]), L = _(
|
|
770
783
|
() => {
|
|
771
|
-
var
|
|
772
|
-
return (
|
|
784
|
+
var g;
|
|
785
|
+
return (g = n.value) != null && g.customer ? je(n.value.customer) : void 0;
|
|
773
786
|
}
|
|
774
787
|
);
|
|
775
|
-
return (
|
|
776
|
-
var
|
|
777
|
-
return
|
|
788
|
+
return (g, z) => {
|
|
789
|
+
var E;
|
|
790
|
+
return se(g.$slots, "default", {
|
|
778
791
|
invoice: t(n),
|
|
779
|
-
isLoading: t(
|
|
780
|
-
amount: (
|
|
781
|
-
countryCode:
|
|
782
|
-
paymentMethodOptions: t(
|
|
783
|
-
paymentMethods: t(
|
|
784
|
-
paymentAttempts: t(
|
|
792
|
+
isLoading: t(P),
|
|
793
|
+
amount: (E = t(n)) == null ? void 0 : E.open_invoice_amount,
|
|
794
|
+
countryCode: L.value,
|
|
795
|
+
paymentMethodOptions: t(s),
|
|
796
|
+
paymentMethods: t(A),
|
|
797
|
+
paymentAttempts: t(y),
|
|
785
798
|
downloadService: t(c),
|
|
786
|
-
refresh:
|
|
787
|
-
error: t(
|
|
799
|
+
refresh: w,
|
|
800
|
+
error: t(m)
|
|
788
801
|
});
|
|
789
802
|
};
|
|
790
803
|
}
|
|
791
|
-
}),
|
|
804
|
+
}), ct = /* @__PURE__ */ D({
|
|
792
805
|
__name: "PayInvoice.entry",
|
|
793
806
|
props: {
|
|
794
|
-
portalToken: { type: Object },
|
|
795
807
|
environment: { type: String },
|
|
796
808
|
locale: { type: String },
|
|
797
809
|
dateLocale: { type: String },
|
|
798
810
|
messages: { type: Object },
|
|
799
|
-
|
|
800
|
-
secondaryColor: { type: String },
|
|
801
|
-
isShadowRoot: { type: Boolean },
|
|
811
|
+
portalToken: { type: Object },
|
|
802
812
|
experimentalFeatures: { type: Array },
|
|
803
813
|
logLevel: { type: String },
|
|
804
814
|
onLog: { type: Function },
|
|
805
|
-
allowedPortalTypes: { type: Array },
|
|
806
|
-
portalObject: { type: Object },
|
|
807
815
|
cssOverrides: { type: [String, Array] },
|
|
808
816
|
branding: { type: Object },
|
|
817
|
+
portalObject: { type: null },
|
|
809
818
|
configuration: { type: Object }
|
|
810
819
|
},
|
|
811
820
|
setup(e) {
|
|
812
|
-
const a =
|
|
813
|
-
return (n,
|
|
821
|
+
const a = _e("pay-invoice");
|
|
822
|
+
return (n, u) => {
|
|
814
823
|
var c;
|
|
815
|
-
return
|
|
824
|
+
return l(), p(t(ge), {
|
|
816
825
|
entry: n.$props,
|
|
817
826
|
"component-name": t(a),
|
|
818
827
|
"allowed-portal-types": ["CUSTOMER"],
|
|
819
|
-
"required-configuration": { invoiceId: (c = e.configuration) == null ? void 0 : c.invoiceId }
|
|
820
|
-
onError: y[0] || (y[0] = (s) => n.$emit("error", s))
|
|
828
|
+
"required-configuration": { invoiceId: (c = e.configuration) == null ? void 0 : c.invoiceId }
|
|
821
829
|
}, {
|
|
822
830
|
default: i(() => [
|
|
823
|
-
(
|
|
831
|
+
(l(), p(dt, K({
|
|
824
832
|
key: e.configuration.invoiceId
|
|
825
833
|
}, n.$props), {
|
|
826
834
|
default: i(({
|
|
827
|
-
invoice:
|
|
828
|
-
isLoading:
|
|
835
|
+
invoice: m,
|
|
836
|
+
isLoading: y,
|
|
829
837
|
amount: o,
|
|
830
|
-
countryCode:
|
|
831
|
-
paymentMethodOptions:
|
|
832
|
-
paymentMethods:
|
|
833
|
-
paymentAttempts:
|
|
834
|
-
downloadService:
|
|
835
|
-
refresh:
|
|
836
|
-
error:
|
|
838
|
+
countryCode: s,
|
|
839
|
+
paymentMethodOptions: h,
|
|
840
|
+
paymentMethods: A,
|
|
841
|
+
paymentAttempts: x,
|
|
842
|
+
downloadService: b,
|
|
843
|
+
refresh: P,
|
|
844
|
+
error: w
|
|
837
845
|
}) => [
|
|
838
|
-
r(
|
|
839
|
-
"is-loading":
|
|
840
|
-
invoice:
|
|
846
|
+
r(st, {
|
|
847
|
+
"is-loading": y,
|
|
848
|
+
invoice: m,
|
|
841
849
|
amount: o,
|
|
842
|
-
"country-code":
|
|
843
|
-
"payment-method-options":
|
|
844
|
-
"payment-methods":
|
|
850
|
+
"country-code": s,
|
|
851
|
+
"payment-method-options": h,
|
|
852
|
+
"payment-methods": A,
|
|
845
853
|
configuration: e.configuration,
|
|
846
|
-
"payment-attempts":
|
|
847
|
-
"download-service":
|
|
848
|
-
refresh:
|
|
849
|
-
error:
|
|
854
|
+
"payment-attempts": x ?? [],
|
|
855
|
+
"download-service": b,
|
|
856
|
+
refresh: P,
|
|
857
|
+
error: w
|
|
850
858
|
}, null, 8, ["is-loading", "invoice", "amount", "country-code", "payment-method-options", "payment-methods", "configuration", "payment-attempts", "download-service", "refresh", "error"])
|
|
851
859
|
]),
|
|
852
860
|
_: 1
|
|
@@ -856,10 +864,10 @@ const We = { class: "sv-order-summary__body grid grid-cols-1 gap-1" }, Ze = { cl
|
|
|
856
864
|
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
857
865
|
};
|
|
858
866
|
}
|
|
859
|
-
}), { define:
|
|
860
|
-
|
|
867
|
+
}), { define: jt } = be(
|
|
868
|
+
ct,
|
|
861
869
|
"pay-invoice"
|
|
862
870
|
);
|
|
863
871
|
export {
|
|
864
|
-
|
|
872
|
+
jt as defineSolvimonPayInvoice
|
|
865
873
|
};
|