@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
package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs}
RENAMED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { c as
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { l as
|
|
11
|
-
import {
|
|
1
|
+
import { defineComponent as me, computed as P, openBlock as v, createElementBlock as $, createVNode as W, unref as oe, withCtx as re, createTextVNode as ie, toDisplayString as x, ref as k, onMounted as ke, onBeforeUnmount as Se, watch as Ce, Fragment as we, createBlock as K, createCommentVNode as H, Teleport as Le, createElementVNode as xe, nextTick as se } from "vue";
|
|
2
|
+
import { a as Fe } from "./useService-2aOFBTxU.mjs";
|
|
3
|
+
import { a as pe, d as de, e as Be } from "./customElements-B8c354Nu.mjs";
|
|
4
|
+
import { _ as Ue } from "./PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs";
|
|
5
|
+
import { _ as Ye } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs";
|
|
6
|
+
import { c as Ze } from "./payments-BKoKpoLN.mjs";
|
|
7
|
+
import { c as je } from "./paymentMethods-aGKIi7DS.mjs";
|
|
8
|
+
import { g as ze, a as Ge, b as Ke, t as V, c as ce } from "./adyen-CHgq2l6n.mjs";
|
|
9
|
+
import { t as He } from "./amount-CondixVt.mjs";
|
|
10
|
+
import { l as Ve } from "./adyenSdk-DUTO7xkT.mjs";
|
|
11
|
+
import { u as $e } from "./useExperimentalFeature-Bw6bBtay.mjs";
|
|
12
|
+
import { g as We, i as Je, a as qe } from "./paymentOutcome-Cv7hTFVu.mjs";
|
|
12
13
|
import { c as Qe, a as Xe } from "./paymentFailure-QZdZHBhf.mjs";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
import { r as et, c as tt } from "./paymentRedirect-DaS8Kccc.mjs";
|
|
15
|
+
const at = ".adyen-checkout__payment-method--sepadirectdebit .adyen-checkout__payment-method__details__content";
|
|
16
|
+
function nt(u) {
|
|
17
|
+
return (u == null ? void 0 : u.querySelector(at)) ?? null;
|
|
16
18
|
}
|
|
17
|
-
function
|
|
18
|
-
return !!u && !!
|
|
19
|
+
function ot(u, y) {
|
|
20
|
+
return !!u && !!y && !u.contains(y);
|
|
19
21
|
}
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
return u === "TOKENIZE" && (
|
|
22
|
+
const rt = (u) => {
|
|
23
|
+
let y = {};
|
|
24
|
+
return u === "TOKENIZE" && (y = {
|
|
23
25
|
"en-US": {
|
|
24
26
|
payButton: "Add payment method",
|
|
25
27
|
confirmPurchase: "Add payment method"
|
|
@@ -144,76 +146,76 @@ const at = (u) => {
|
|
|
144
146
|
payButton: "Pridėti mokėjimo metodą",
|
|
145
147
|
confirmPurchase: "Pridėti mokėjimo metodą"
|
|
146
148
|
}
|
|
147
|
-
}),
|
|
148
|
-
},
|
|
149
|
+
}), y;
|
|
150
|
+
}, it = { class: "sv-sepa-mandate mt-3" }, st = /* @__PURE__ */ me({
|
|
149
151
|
__name: "SepaMandateNotice",
|
|
150
152
|
props: {
|
|
151
153
|
billingEntityName: { type: String }
|
|
152
154
|
},
|
|
153
155
|
setup(u) {
|
|
154
|
-
const
|
|
156
|
+
const y = u, { $t: E } = pe(), i = P(
|
|
155
157
|
() => E({
|
|
156
158
|
defaultMessage: "SEPA Direct Debit mandate — recurring payments",
|
|
157
159
|
description: "Title of the SEPA direct debit mandate shown inside the SEPA payment form",
|
|
158
160
|
id: "payments.sepa_mandate.title"
|
|
159
161
|
})
|
|
160
|
-
),
|
|
161
|
-
() =>
|
|
162
|
+
), C = P(
|
|
163
|
+
() => y.billingEntityName ? E(
|
|
162
164
|
{
|
|
163
165
|
defaultMessage: "By confirming this mandate, you authorise {billingEntityName} to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",
|
|
164
166
|
description: "SEPA direct debit mandate authorisation, naming the billing entity",
|
|
165
167
|
id: "payments.sepa_mandate.authorisation"
|
|
166
168
|
},
|
|
167
|
-
{ billingEntityName:
|
|
169
|
+
{ billingEntityName: y.billingEntityName }
|
|
168
170
|
) : E({
|
|
169
171
|
defaultMessage: "By confirming this mandate, you authorise us to instruct your bank to collect payments from your account, and you authorise your bank to carry out those instructions.",
|
|
170
172
|
description: "SEPA direct debit mandate authorisation, where the billing entity is not known",
|
|
171
173
|
id: "payments.sepa_mandate.authorisation_unnamed"
|
|
172
174
|
})
|
|
173
|
-
),
|
|
174
|
-
() =>
|
|
175
|
+
), n = P(
|
|
176
|
+
() => y.billingEntityName ? E(
|
|
175
177
|
{
|
|
176
178
|
defaultMessage: "This bank account will be used automatically to pay subsequent invoices from {billingEntityName} until you cancel this mandate.",
|
|
177
179
|
description: "Explains that the SEPA mandate covers later invoices, naming the billing entity",
|
|
178
180
|
id: "payments.sepa_mandate.recurrence"
|
|
179
181
|
},
|
|
180
|
-
{ billingEntityName:
|
|
182
|
+
{ billingEntityName: y.billingEntityName }
|
|
181
183
|
) : E({
|
|
182
184
|
defaultMessage: "This bank account will be used automatically to pay subsequent invoices until you cancel this mandate.",
|
|
183
185
|
description: "Explains that the SEPA mandate covers later invoices, where the billing entity is not known",
|
|
184
186
|
id: "payments.sepa_mandate.recurrence_unnamed"
|
|
185
187
|
})
|
|
186
|
-
), p =
|
|
188
|
+
), p = P(
|
|
187
189
|
() => E({
|
|
188
190
|
defaultMessage: "As part of your rights, you're entitled to a refund from your bank under the terms and conditions of your agreement with your bank. You must claim a refund within 8 weeks from the date your account was debited. You can request a statement from your bank explaining your rights.",
|
|
189
191
|
description: "SEPA direct debit mandate refund rights, held against the payer's own bank",
|
|
190
192
|
id: "payments.sepa_mandate.refund_rights"
|
|
191
193
|
})
|
|
192
194
|
);
|
|
193
|
-
return (
|
|
194
|
-
|
|
195
|
+
return (h, F) => (v(), $("div", it, [
|
|
196
|
+
W(oe(de), {
|
|
195
197
|
tag: "p",
|
|
196
198
|
variant: "body-xs",
|
|
197
199
|
class: "font-semibold"
|
|
198
200
|
}, {
|
|
199
|
-
default:
|
|
200
|
-
|
|
201
|
+
default: re(() => [
|
|
202
|
+
ie(x(i.value), 1)
|
|
201
203
|
]),
|
|
202
204
|
_: 1
|
|
203
205
|
}),
|
|
204
|
-
|
|
206
|
+
W(oe(de), {
|
|
205
207
|
tag: "p",
|
|
206
208
|
variant: "body-xs",
|
|
207
209
|
color: "subtle"
|
|
208
210
|
}, {
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
+
default: re(() => [
|
|
212
|
+
ie(x(C.value) + " " + x(n.value) + " " + x(p.value), 1)
|
|
211
213
|
]),
|
|
212
214
|
_: 1
|
|
213
215
|
})
|
|
214
216
|
]));
|
|
215
217
|
}
|
|
216
|
-
}),
|
|
218
|
+
}), S = "ADYEN", ue = "data-sv-adyen-styles", Tt = /* @__PURE__ */ me({
|
|
217
219
|
__name: "PaymentIntegrationFormAdyen",
|
|
218
220
|
props: {
|
|
219
221
|
context: { type: Object },
|
|
@@ -232,29 +234,29 @@ const at = (u) => {
|
|
|
232
234
|
collapsed: { type: Boolean }
|
|
233
235
|
},
|
|
234
236
|
emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
|
|
235
|
-
setup(u, { expose:
|
|
236
|
-
let
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
const
|
|
237
|
+
setup(u, { expose: y, emit: E }) {
|
|
238
|
+
let i = null, C = null;
|
|
239
|
+
const n = u, p = E;
|
|
240
|
+
y({ submit: fe });
|
|
241
|
+
const h = k(), F = k(null), I = k(null);
|
|
240
242
|
let f;
|
|
241
|
-
const
|
|
242
|
-
let
|
|
243
|
-
const d =
|
|
243
|
+
const B = k(!1), g = k();
|
|
244
|
+
let w = !1, A = !1, b = 0, R, U = !1, L, T = !1;
|
|
245
|
+
const d = Be(), { locale: ye } = pe(), { authorizePayment: le, getPaymentDetails: he } = Ze(), { tokenizePaymentMethod: _e } = je(), Y = $e(), J = P(
|
|
244
246
|
() => {
|
|
245
247
|
var e;
|
|
246
|
-
return
|
|
247
|
-
excludeExpressPaymentMethods: !!((e =
|
|
248
|
+
return ze(n.paymentMethodOptionResponseEntry, {
|
|
249
|
+
excludeExpressPaymentMethods: !!((e = Y == null ? void 0 : Y.value) != null && e["express-checkout"])
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
|
-
),
|
|
252
|
+
), q = P(() => J.value.length > 0);
|
|
251
253
|
function m(e) {
|
|
252
254
|
return Qe({
|
|
253
|
-
gateway:
|
|
254
|
-
paymentAcceptorId:
|
|
255
|
-
variant:
|
|
256
|
-
invoiceId:
|
|
257
|
-
customerId:
|
|
255
|
+
gateway: S,
|
|
256
|
+
paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
|
|
257
|
+
variant: n.variant,
|
|
258
|
+
invoiceId: n.invoiceId,
|
|
259
|
+
customerId: n.customerId,
|
|
258
260
|
...e
|
|
259
261
|
});
|
|
260
262
|
}
|
|
@@ -263,36 +265,36 @@ const at = (u) => {
|
|
|
263
265
|
const t = Xe(e);
|
|
264
266
|
g.value = t, p("payment-failed", t);
|
|
265
267
|
}
|
|
266
|
-
function
|
|
267
|
-
A = !1,
|
|
268
|
+
function Q() {
|
|
269
|
+
A = !1, Z(), B.value = !0, p("payment-success");
|
|
268
270
|
}
|
|
269
|
-
function O(e, t = {},
|
|
270
|
-
|
|
271
|
+
function O(e, t = {}, a) {
|
|
272
|
+
Z(), d.warn(
|
|
271
273
|
"PAYMENT_OUTCOME_UNCONFIRMED",
|
|
272
274
|
"The payment outcome could not be confirmed yet",
|
|
273
|
-
m({ reason: e, extra: t, cause:
|
|
274
|
-
|
|
275
|
+
m({ reason: e, extra: t, cause: a }),
|
|
276
|
+
a
|
|
275
277
|
), _({
|
|
276
278
|
code: "PAYMENT_OUTCOME_UNCONFIRMED",
|
|
277
279
|
message: "Payment could not be confirmed",
|
|
278
|
-
error:
|
|
280
|
+
error: a
|
|
279
281
|
});
|
|
280
282
|
}
|
|
281
|
-
function
|
|
282
|
-
|
|
283
|
+
function Z() {
|
|
284
|
+
w = !0, z();
|
|
283
285
|
}
|
|
284
|
-
function
|
|
286
|
+
function fe() {
|
|
285
287
|
if (!A) {
|
|
286
|
-
if (!(
|
|
287
|
-
if (
|
|
288
|
+
if (!(i != null && i.isValid)) {
|
|
289
|
+
if (i && !i.activePaymentMethod) {
|
|
288
290
|
p("invalid", "NO_PAYMENT_METHOD");
|
|
289
291
|
return;
|
|
290
292
|
}
|
|
291
|
-
|
|
293
|
+
i == null || i.showValidation(), p("invalid");
|
|
292
294
|
return;
|
|
293
295
|
}
|
|
294
296
|
try {
|
|
295
|
-
|
|
297
|
+
i.submit();
|
|
296
298
|
} catch (e) {
|
|
297
299
|
d.error(
|
|
298
300
|
"ADYEN_SUBMIT_FAILED",
|
|
@@ -300,36 +302,36 @@ const at = (u) => {
|
|
|
300
302
|
m({ reason: "ADYEN_SUBMIT_FAILED", cause: e }),
|
|
301
303
|
e
|
|
302
304
|
), _({
|
|
303
|
-
code:
|
|
305
|
+
code: n.variant === "TOKENIZE" ? "TOKENIZE_FAILED" : "AUTHORIZATION_FAILED",
|
|
304
306
|
message: "Failed to submit Adyen drop-in",
|
|
305
307
|
error: e
|
|
306
308
|
});
|
|
307
309
|
}
|
|
308
310
|
}
|
|
309
311
|
}
|
|
310
|
-
async function
|
|
311
|
-
const e =
|
|
312
|
+
async function Ee() {
|
|
313
|
+
const e = He(n.amount), t = J.value, a = n.selected;
|
|
312
314
|
let o = !1;
|
|
313
315
|
return {
|
|
314
316
|
checkoutConfig: {
|
|
315
317
|
amount: e,
|
|
316
|
-
clientKey:
|
|
317
|
-
|
|
318
|
+
clientKey: Ke(
|
|
319
|
+
n.paymentMethodOptionResponseEntry
|
|
318
320
|
),
|
|
319
|
-
environment:
|
|
320
|
-
|
|
321
|
+
environment: Ge(
|
|
322
|
+
n.paymentMethodOptionResponseEntry,
|
|
321
323
|
d
|
|
322
324
|
),
|
|
323
|
-
locale:
|
|
324
|
-
translations:
|
|
325
|
-
countryCode:
|
|
325
|
+
locale: ye,
|
|
326
|
+
translations: rt(n.variant),
|
|
327
|
+
countryCode: n.countryCode,
|
|
326
328
|
analytics: { enabled: !1 },
|
|
327
329
|
paymentMethodsResponse: { paymentMethods: t },
|
|
328
|
-
onSubmit:
|
|
329
|
-
onAdditionalDetails:
|
|
330
|
-
onPaymentCompleted:
|
|
331
|
-
onPaymentFailed:
|
|
332
|
-
onError:
|
|
330
|
+
onSubmit: Te,
|
|
331
|
+
onAdditionalDetails: ve,
|
|
332
|
+
onPaymentCompleted: Re,
|
|
333
|
+
onPaymentFailed: be,
|
|
334
|
+
onError: Oe,
|
|
333
335
|
showPayButton: !1
|
|
334
336
|
},
|
|
335
337
|
dropInConfig: {
|
|
@@ -338,97 +340,99 @@ const at = (u) => {
|
|
|
338
340
|
card: {
|
|
339
341
|
hasHolderName: !0,
|
|
340
342
|
holderNameRequired: !0,
|
|
341
|
-
enableStoreDetails: !
|
|
343
|
+
enableStoreDetails: !n.forceStorePaymentMethod && n.storePaymentMethod === void 0 && n.variant === "AUTHORIZE"
|
|
342
344
|
},
|
|
343
345
|
paypal: {
|
|
344
346
|
intent: e.value > 0 ? "authorize" : "tokenize",
|
|
345
347
|
showPayButton: !0
|
|
346
348
|
}
|
|
347
349
|
},
|
|
348
|
-
openFirstPaymentMethod:
|
|
350
|
+
openFirstPaymentMethod: a,
|
|
349
351
|
onSelect: ({ props: { type: s } }) => {
|
|
350
352
|
if (!s) return;
|
|
351
|
-
const
|
|
353
|
+
const r = a && !o;
|
|
352
354
|
o = !0, p("select", {
|
|
353
355
|
paymentMethodType: s,
|
|
354
356
|
paymentGatewayVariant: "ADYEN",
|
|
355
|
-
...
|
|
357
|
+
...r && { isAutomatic: !0 }
|
|
356
358
|
});
|
|
357
359
|
},
|
|
358
360
|
onReady: () => p("ready")
|
|
359
361
|
}
|
|
360
362
|
};
|
|
361
363
|
}
|
|
362
|
-
function
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
if (await Y(), g.value = void 0, !$.value) {
|
|
372
|
-
const { payment_acceptor: n, integration: o } = a.paymentMethodOptionResponseEntry;
|
|
364
|
+
async function j() {
|
|
365
|
+
const e = ++b, t = () => e !== b;
|
|
366
|
+
if (!(w || U)) {
|
|
367
|
+
if (await z(), g.value = void 0, !q.value) {
|
|
368
|
+
const {
|
|
369
|
+
payment_acceptor: a,
|
|
370
|
+
integration: o,
|
|
371
|
+
options: s = []
|
|
372
|
+
} = n.paymentMethodOptionResponseEntry;
|
|
373
373
|
d.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
|
|
374
|
-
fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE",
|
|
375
|
-
paymentAcceptorId:
|
|
374
|
+
fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", a.id],
|
|
375
|
+
paymentAcceptorId: a.id,
|
|
376
376
|
integrationId: o.id,
|
|
377
|
-
|
|
377
|
+
// Tells a configuration that offers nothing apart from methods the drop-in leaves out.
|
|
378
|
+
offeredPaymentMethodTypes: s.map(
|
|
379
|
+
(r) => r.payment_gateway_variant === "ADYEN" ? r.adyen.type : r.payment_gateway_variant
|
|
380
|
+
),
|
|
381
|
+
...n.invoiceId ? { invoiceId: n.invoiceId } : {}
|
|
378
382
|
});
|
|
379
383
|
return;
|
|
380
384
|
}
|
|
381
|
-
if (await
|
|
385
|
+
if (await se(), !(t() || !h.value))
|
|
382
386
|
try {
|
|
383
|
-
const [
|
|
387
|
+
const [a, o] = await Ve();
|
|
384
388
|
if (t()) return;
|
|
385
|
-
const { checkoutConfig: s, dropInConfig:
|
|
386
|
-
if (t() ||
|
|
387
|
-
|
|
388
|
-
...
|
|
389
|
-
paymentMethodComponents:
|
|
390
|
-
}).mount(
|
|
391
|
-
} catch (
|
|
389
|
+
const { checkoutConfig: s, dropInConfig: r } = await Ee(), c = await a.AdyenCheckout(s);
|
|
390
|
+
if (t() || w || !h.value) return;
|
|
391
|
+
C = c, i = new a.Dropin(C, {
|
|
392
|
+
...r,
|
|
393
|
+
paymentMethodComponents: a.dropInPaymentMethodComponents
|
|
394
|
+
}).mount(h.value), Ie(o), Ae();
|
|
395
|
+
} catch (a) {
|
|
392
396
|
if (t()) return;
|
|
393
397
|
d.error(
|
|
394
398
|
"PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
|
|
395
399
|
"Failed to mount Adyen web drop-in",
|
|
396
|
-
m({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause:
|
|
397
|
-
|
|
400
|
+
m({ reason: "ADYEN_DROP_IN_MOUNT_FAILED", cause: a }),
|
|
401
|
+
a
|
|
398
402
|
), _({
|
|
399
403
|
code: "PAYMENT_INTEGRATION_INITIALIZATION_FAILED",
|
|
400
404
|
message: "Failed to mount Adyen web drop-in",
|
|
401
|
-
error:
|
|
405
|
+
error: a
|
|
402
406
|
});
|
|
403
407
|
}
|
|
404
408
|
}
|
|
405
409
|
}
|
|
406
|
-
function
|
|
407
|
-
const e =
|
|
408
|
-
if (
|
|
409
|
-
I.value = null,
|
|
410
|
+
function X() {
|
|
411
|
+
const e = nt(h.value);
|
|
412
|
+
if (ot(e, F.value)) {
|
|
413
|
+
I.value = null, se(() => I.value = e);
|
|
410
414
|
return;
|
|
411
415
|
}
|
|
412
416
|
I.value = e;
|
|
413
417
|
}
|
|
414
|
-
function
|
|
415
|
-
f == null || f.disconnect(),
|
|
418
|
+
function Ae() {
|
|
419
|
+
f == null || f.disconnect(), h.value && (f = new MutationObserver(() => X()), f.observe(h.value, { childList: !0, subtree: !0 }), X());
|
|
416
420
|
}
|
|
417
|
-
function
|
|
421
|
+
function ge() {
|
|
418
422
|
f == null || f.disconnect(), f = void 0, I.value = null;
|
|
419
423
|
}
|
|
420
|
-
async function
|
|
421
|
-
|
|
424
|
+
async function z() {
|
|
425
|
+
ge(), i && (i.unmount(), i = null), h.value && (h.value.innerHTML = "");
|
|
422
426
|
}
|
|
423
|
-
function
|
|
424
|
-
if (e.querySelector(`style[${
|
|
427
|
+
function G(e, t, a) {
|
|
428
|
+
if (e.querySelector(`style[${ue}="${t}"]`)) return;
|
|
425
429
|
const o = document.createElement("style");
|
|
426
|
-
o.setAttribute(
|
|
430
|
+
o.setAttribute(ue, t), o.textContent = a, e.appendChild(o);
|
|
427
431
|
}
|
|
428
|
-
function
|
|
429
|
-
var
|
|
430
|
-
const t = (
|
|
431
|
-
t instanceof ShadowRoot && (
|
|
432
|
+
function Ie(e) {
|
|
433
|
+
var a;
|
|
434
|
+
const t = (a = h.value) == null ? void 0 : a.getRootNode();
|
|
435
|
+
t instanceof ShadowRoot && (G(t, "sdk", e), G(
|
|
432
436
|
t,
|
|
433
437
|
"overrides",
|
|
434
438
|
`
|
|
@@ -525,7 +529,7 @@ const at = (u) => {
|
|
|
525
529
|
border-color: rgb(229, 231, 235);
|
|
526
530
|
}
|
|
527
531
|
`
|
|
528
|
-
),
|
|
532
|
+
), n.variant === "AUTHORIZE" && G(
|
|
529
533
|
t,
|
|
530
534
|
"authorize",
|
|
531
535
|
`
|
|
@@ -535,19 +539,19 @@ const at = (u) => {
|
|
|
535
539
|
`
|
|
536
540
|
));
|
|
537
541
|
}
|
|
538
|
-
function
|
|
542
|
+
function ee(e, {
|
|
539
543
|
paymentMethodType: t,
|
|
540
|
-
actions:
|
|
544
|
+
actions: a,
|
|
541
545
|
logFailure: o
|
|
542
546
|
}) {
|
|
543
|
-
var
|
|
544
|
-
if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant ===
|
|
545
|
-
const c =
|
|
547
|
+
var r;
|
|
548
|
+
if (e.status === "ACTION_REQUIRED" && e.action.payment_gateway_variant === S) {
|
|
549
|
+
const c = Ne(e, t);
|
|
546
550
|
if (!c) {
|
|
547
551
|
o(e);
|
|
548
552
|
return;
|
|
549
553
|
}
|
|
550
|
-
p("action-required"),
|
|
554
|
+
p("action-required"), a.resolve({
|
|
551
555
|
resultCode: e.action.adyen.result_code,
|
|
552
556
|
action: c
|
|
553
557
|
});
|
|
@@ -555,130 +559,140 @@ const at = (u) => {
|
|
|
555
559
|
}
|
|
556
560
|
const s = qe(e);
|
|
557
561
|
if (s === "SUCCEEDED") {
|
|
558
|
-
|
|
562
|
+
B.value = !0, a.resolve({ resultCode: "Authorised" });
|
|
559
563
|
return;
|
|
560
564
|
}
|
|
561
565
|
if (s === "UNCONFIRMED") {
|
|
562
566
|
O("PAYMENT_PENDING", {
|
|
563
567
|
paymentStatus: e.status,
|
|
564
|
-
paymentResult: (
|
|
568
|
+
paymentResult: (r = e.payment) == null ? void 0 : r.result,
|
|
565
569
|
paymentMethodType: t
|
|
566
570
|
});
|
|
567
571
|
return;
|
|
568
572
|
}
|
|
569
|
-
o(e),
|
|
573
|
+
o(e), T = !0, a.resolve({ resultCode: "Error" });
|
|
570
574
|
}
|
|
571
|
-
function
|
|
572
|
-
const [t,
|
|
573
|
-
A || (A = !0,
|
|
575
|
+
function Te(...e) {
|
|
576
|
+
const [t, a, o] = e;
|
|
577
|
+
A || (A = !0, L = void 0, T = !1, n.validateOnSubmit().then((s) => {
|
|
574
578
|
if (!s) {
|
|
575
|
-
A = !1,
|
|
579
|
+
A = !1, i == null || i.setStatus("ready"), p("invalid");
|
|
576
580
|
return;
|
|
577
581
|
}
|
|
578
582
|
p("submitting");
|
|
579
|
-
const
|
|
580
|
-
risk_data:
|
|
581
|
-
payment_method:
|
|
582
|
-
browser_info:
|
|
583
|
+
const r = n.paymentMethodOptionResponseEntry.payment_acceptor.id, c = {
|
|
584
|
+
risk_data: V(t.data.riskData),
|
|
585
|
+
payment_method: V(t.data.paymentMethod),
|
|
586
|
+
browser_info: V(t.data.browserInfo)
|
|
583
587
|
};
|
|
584
|
-
if (
|
|
585
|
-
const
|
|
586
|
-
paymentAcceptorId:
|
|
588
|
+
if (n.variant === "AUTHORIZE") {
|
|
589
|
+
const N = ce({
|
|
590
|
+
paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
|
|
587
591
|
redirectUrl: window.location.href
|
|
588
592
|
});
|
|
589
|
-
|
|
590
|
-
payment_acceptor_id:
|
|
591
|
-
...
|
|
592
|
-
payment_gateway_variant:
|
|
593
|
+
le({
|
|
594
|
+
payment_acceptor_id: r,
|
|
595
|
+
...n.customerId ? { customer_id: n.customerId } : {},
|
|
596
|
+
payment_gateway_variant: S,
|
|
593
597
|
adyen: {
|
|
594
598
|
...c,
|
|
595
|
-
store_payment_method:
|
|
599
|
+
store_payment_method: n.storePaymentMethod ?? (n.forceStorePaymentMethod || t.data.storePaymentMethod)
|
|
596
600
|
},
|
|
597
|
-
amount:
|
|
598
|
-
...
|
|
599
|
-
return_url:
|
|
601
|
+
amount: n.amount,
|
|
602
|
+
...n.context ? { context: n.context } : {},
|
|
603
|
+
return_url: N
|
|
600
604
|
}).then(
|
|
601
|
-
(
|
|
605
|
+
(l) => ee(l, {
|
|
602
606
|
paymentMethodType: t.data.paymentMethod.type,
|
|
603
607
|
actions: o,
|
|
604
|
-
logFailure: (
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
608
|
+
logFailure: (M) => {
|
|
609
|
+
var D;
|
|
610
|
+
return d.error(
|
|
611
|
+
"PAYMENT_AUTHORIZATION_FAILED",
|
|
612
|
+
`Failed payment authorization for payment acceptor with id ${r}`,
|
|
613
|
+
m({
|
|
614
|
+
reason: "PAYMENT_AUTHORIZATION_REJECTED",
|
|
615
|
+
paymentMethodType: t.data.paymentMethod.type,
|
|
616
|
+
extra: {
|
|
617
|
+
paymentStatus: M.status,
|
|
618
|
+
paymentResult: (D = M.payment) == null ? void 0 : D.result
|
|
619
|
+
}
|
|
620
|
+
})
|
|
621
|
+
);
|
|
622
|
+
}
|
|
614
623
|
})
|
|
615
|
-
).catch((
|
|
624
|
+
).catch((l) => {
|
|
616
625
|
if (d.error(
|
|
617
626
|
"PAYMENT_AUTHORIZATION_FAILED",
|
|
618
|
-
`Failed payment authorization for payment acceptor with id ${
|
|
627
|
+
`Failed payment authorization for payment acceptor with id ${r}`,
|
|
619
628
|
m({
|
|
620
629
|
reason: "PAYMENT_AUTHORIZATION_FAILED",
|
|
621
630
|
paymentMethodType: t.data.paymentMethod.type,
|
|
622
|
-
cause:
|
|
631
|
+
cause: l
|
|
623
632
|
}),
|
|
624
|
-
|
|
625
|
-
), Je(
|
|
633
|
+
l
|
|
634
|
+
), Je(l)) {
|
|
626
635
|
O(
|
|
627
636
|
"PAYMENT_AUTHORIZATION_UNANSWERED",
|
|
628
637
|
{ paymentMethodType: t.data.paymentMethod.type },
|
|
629
|
-
|
|
638
|
+
l
|
|
630
639
|
);
|
|
631
640
|
return;
|
|
632
641
|
}
|
|
633
|
-
o.resolve({ resultCode: "Error" });
|
|
642
|
+
L = l, T = !0, o.resolve({ resultCode: "Error" });
|
|
634
643
|
});
|
|
635
644
|
return;
|
|
636
645
|
}
|
|
637
|
-
if (
|
|
638
|
-
const
|
|
639
|
-
paymentAcceptorId:
|
|
646
|
+
if (n.variant === "TOKENIZE") {
|
|
647
|
+
const N = ce({
|
|
648
|
+
paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
|
|
640
649
|
redirectUrl: window.location.href
|
|
641
650
|
});
|
|
642
|
-
if (!
|
|
651
|
+
if (!n.customerId) {
|
|
643
652
|
d.error(
|
|
644
653
|
"TOKENIZATION_FAILED",
|
|
645
|
-
`Missing customer id for payment acceptor with id ${
|
|
654
|
+
`Missing customer id for payment acceptor with id ${r}`,
|
|
646
655
|
m({ reason: "TOKENIZATION_FAILED_NO_CUSTOMER" })
|
|
647
656
|
), _({ code: "TOKENIZE_FAILED", message: "Missing customer id" });
|
|
648
657
|
return;
|
|
649
658
|
}
|
|
650
|
-
|
|
651
|
-
customer_id:
|
|
652
|
-
payment_acceptor_id:
|
|
653
|
-
payment_gateway_variant:
|
|
659
|
+
_e({
|
|
660
|
+
customer_id: n.customerId,
|
|
661
|
+
payment_acceptor_id: r,
|
|
662
|
+
payment_gateway_variant: S,
|
|
654
663
|
adyen: c,
|
|
655
|
-
return_url:
|
|
664
|
+
return_url: N
|
|
656
665
|
}).then(
|
|
657
|
-
(
|
|
666
|
+
(l) => ee(l, {
|
|
658
667
|
paymentMethodType: t.data.paymentMethod.type,
|
|
659
668
|
actions: o,
|
|
660
|
-
logFailure: (
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
669
|
+
logFailure: (M) => {
|
|
670
|
+
var D;
|
|
671
|
+
return d.error(
|
|
672
|
+
"TOKENIZATION_FAILED",
|
|
673
|
+
`Tokenization failed for payment acceptor with id ${r}`,
|
|
674
|
+
m({
|
|
675
|
+
reason: "TOKENIZATION_REJECTED",
|
|
676
|
+
paymentMethodType: t.data.paymentMethod.type,
|
|
677
|
+
extra: {
|
|
678
|
+
paymentStatus: M.status,
|
|
679
|
+
paymentResult: (D = M.payment) == null ? void 0 : D.result
|
|
680
|
+
}
|
|
681
|
+
})
|
|
682
|
+
);
|
|
683
|
+
}
|
|
670
684
|
})
|
|
671
|
-
).catch((
|
|
685
|
+
).catch((l) => {
|
|
672
686
|
d.error(
|
|
673
687
|
"TOKENIZATION_FAILED",
|
|
674
|
-
`Tokenization failed for payment acceptor with id ${
|
|
688
|
+
`Tokenization failed for payment acceptor with id ${r}`,
|
|
675
689
|
m({
|
|
676
690
|
reason: "TOKENIZATION_FAILED",
|
|
677
691
|
paymentMethodType: t.data.paymentMethod.type,
|
|
678
|
-
cause:
|
|
692
|
+
cause: l
|
|
679
693
|
}),
|
|
680
|
-
|
|
681
|
-
), o.resolve({ resultCode: "Error" });
|
|
694
|
+
l
|
|
695
|
+
), T = !0, o.resolve({ resultCode: "Error" });
|
|
682
696
|
});
|
|
683
697
|
}
|
|
684
698
|
}).catch((s) => {
|
|
@@ -687,35 +701,35 @@ const at = (u) => {
|
|
|
687
701
|
"Unhandled error in payment submission flow",
|
|
688
702
|
m({ reason: "ADYEN_SUBMISSION_FLOW_FAILED", cause: s }),
|
|
689
703
|
s
|
|
690
|
-
), A = !1,
|
|
704
|
+
), A = !1, i == null || i.setStatus("ready"), p("invalid");
|
|
691
705
|
}));
|
|
692
706
|
}
|
|
693
|
-
function
|
|
707
|
+
function Ne(e, t) {
|
|
694
708
|
if (e.status !== "ACTION_REQUIRED")
|
|
695
709
|
return;
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
710
|
+
const a = e.action;
|
|
711
|
+
if (a.payment_gateway_variant != "ADYEN")
|
|
698
712
|
return;
|
|
699
|
-
const o =
|
|
713
|
+
const o = a.adyen;
|
|
700
714
|
return {
|
|
701
715
|
paymentMethodType: (o == null ? void 0 : o.payment_method_type) ?? t,
|
|
702
|
-
method:
|
|
703
|
-
url:
|
|
704
|
-
data:
|
|
716
|
+
method: a.method,
|
|
717
|
+
url: a.url,
|
|
718
|
+
data: a.data,
|
|
705
719
|
type: o == null ? void 0 : o.action_type,
|
|
706
720
|
paymentData: o == null ? void 0 : o.payment_data,
|
|
707
721
|
sdkData: o == null ? void 0 : o.sdk_data
|
|
708
722
|
};
|
|
709
723
|
}
|
|
710
|
-
function
|
|
711
|
-
const [t, ,
|
|
712
|
-
if (
|
|
713
|
-
|
|
724
|
+
function ve(...e) {
|
|
725
|
+
const [t, , a] = e, o = t.data.details, s = t.data.paymentData;
|
|
726
|
+
if (n.paymentMethodOptionResponseEntry.payment_acceptor.id) {
|
|
727
|
+
te({
|
|
714
728
|
// For the moment: Adyen gives a null value back which is not accepted by Solvimon API, so filter that out
|
|
715
|
-
detailsResult: o ?
|
|
729
|
+
detailsResult: o ? Pe(o) : void 0,
|
|
716
730
|
paymentDataResult: s,
|
|
717
|
-
paymentAcceptorId:
|
|
718
|
-
actions:
|
|
731
|
+
paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
|
|
732
|
+
actions: a
|
|
719
733
|
});
|
|
720
734
|
return;
|
|
721
735
|
}
|
|
@@ -729,29 +743,35 @@ const at = (u) => {
|
|
|
729
743
|
error: e
|
|
730
744
|
});
|
|
731
745
|
}
|
|
732
|
-
function
|
|
746
|
+
function Pe(e) {
|
|
733
747
|
return Object.fromEntries(
|
|
734
748
|
Object.entries(e).filter(([, t]) => t != null)
|
|
735
749
|
);
|
|
736
750
|
}
|
|
737
|
-
function
|
|
751
|
+
function be(...e) {
|
|
738
752
|
const [t] = e;
|
|
739
|
-
d.error(
|
|
753
|
+
T || d.error(
|
|
740
754
|
"ADYEN_PAYMENT_FAILED",
|
|
741
755
|
"Adyen reported the payment as failed",
|
|
742
756
|
m({
|
|
743
757
|
reason: "ADYEN_PAYMENT_FAILED",
|
|
744
758
|
extra: { resultCode: t == null ? void 0 : t.resultCode }
|
|
745
|
-
})
|
|
746
|
-
|
|
747
|
-
|
|
759
|
+
})
|
|
760
|
+
), T = !1;
|
|
761
|
+
const a = L;
|
|
762
|
+
L = void 0, _({
|
|
763
|
+
code: "AUTHORIZATION_FAILED",
|
|
764
|
+
message: "Payment failed",
|
|
765
|
+
error: t,
|
|
766
|
+
...a !== void 0 && { apiError: a }
|
|
767
|
+
});
|
|
748
768
|
}
|
|
749
|
-
function
|
|
769
|
+
function Re(...e) {
|
|
750
770
|
const [, t] = e;
|
|
751
|
-
t == null || t.unmount(),
|
|
771
|
+
t == null || t.unmount(), Q();
|
|
752
772
|
}
|
|
753
|
-
function
|
|
754
|
-
const [t,
|
|
773
|
+
function Oe(...e) {
|
|
774
|
+
const [t, a] = e;
|
|
755
775
|
if (t.name === "CANCEL") {
|
|
756
776
|
A = !1, p("invalid");
|
|
757
777
|
return;
|
|
@@ -765,33 +785,33 @@ const at = (u) => {
|
|
|
765
785
|
extra: { adyenErrorName: t.name }
|
|
766
786
|
}),
|
|
767
787
|
t
|
|
768
|
-
), _({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }),
|
|
788
|
+
), _({ code: "UNKNOWN_ERROR", message: "Something went wrong", error: t }), a == null || a.unmount();
|
|
769
789
|
}
|
|
770
|
-
function
|
|
790
|
+
function te({
|
|
771
791
|
detailsResult: e,
|
|
772
792
|
threeDSResult: t,
|
|
773
|
-
redirectResult:
|
|
793
|
+
redirectResult: a,
|
|
774
794
|
paymentDataResult: o,
|
|
775
795
|
paymentAcceptorId: s,
|
|
776
|
-
actions:
|
|
796
|
+
actions: r
|
|
777
797
|
}) {
|
|
778
|
-
return
|
|
798
|
+
return he({
|
|
779
799
|
paymentAcceptorId: s,
|
|
780
|
-
paymentGatewayVariant:
|
|
800
|
+
paymentGatewayVariant: S,
|
|
781
801
|
adyen: {
|
|
782
802
|
...e ? { details: e } : {},
|
|
783
|
-
...
|
|
803
|
+
...a ? { redirect_result: a } : {},
|
|
784
804
|
...t ? { threeds_result: t } : {},
|
|
785
805
|
...o ? { payment_data: o } : {}
|
|
786
806
|
}
|
|
787
807
|
}).then((c) => {
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
if (
|
|
791
|
-
|
|
808
|
+
r || (R = void 0);
|
|
809
|
+
const N = We(c);
|
|
810
|
+
if (N === "SUCCEEDED") {
|
|
811
|
+
r ? r.resolve({ resultCode: "Authorised" }) : Q();
|
|
792
812
|
return;
|
|
793
813
|
}
|
|
794
|
-
if (
|
|
814
|
+
if (N === "UNCONFIRMED") {
|
|
795
815
|
O("PAYMENT_DETAILS_UNCONFIRMED", {
|
|
796
816
|
paymentStatus: c.payment_status
|
|
797
817
|
});
|
|
@@ -805,8 +825,8 @@ const at = (u) => {
|
|
|
805
825
|
paymentAcceptorId: s,
|
|
806
826
|
extra: { paymentStatus: c.payment_status }
|
|
807
827
|
})
|
|
808
|
-
),
|
|
809
|
-
|
|
828
|
+
), r) {
|
|
829
|
+
r.resolve({ resultCode: "Refused" });
|
|
810
830
|
return;
|
|
811
831
|
}
|
|
812
832
|
_({
|
|
@@ -824,23 +844,23 @@ const at = (u) => {
|
|
|
824
844
|
cause: c
|
|
825
845
|
}),
|
|
826
846
|
c
|
|
827
|
-
),
|
|
847
|
+
), r) {
|
|
828
848
|
O("PAYMENT_DETAILS_CALL_FAILED", {}, c);
|
|
829
849
|
return;
|
|
830
850
|
}
|
|
831
|
-
|
|
851
|
+
Z(), _({
|
|
832
852
|
code: "PAYMENT_DETAILS_CALL_FAILED",
|
|
833
853
|
message: "Failed fetching payment details",
|
|
834
854
|
error: c
|
|
835
855
|
});
|
|
836
856
|
});
|
|
837
857
|
}
|
|
838
|
-
async function
|
|
839
|
-
const e =
|
|
840
|
-
|
|
858
|
+
async function Me() {
|
|
859
|
+
const e = et(
|
|
860
|
+
n.paymentMethodOptionResponseEntry.payment_acceptor.id
|
|
841
861
|
);
|
|
842
862
|
if (e) {
|
|
843
|
-
if (
|
|
863
|
+
if (tt(), e.kind === "MISSING_PAYMENT_ACCEPTOR") {
|
|
844
864
|
d.error(
|
|
845
865
|
"INVALID_REDIRECT_RESULT",
|
|
846
866
|
"Redirect result is set but payment acceptor id is missing",
|
|
@@ -855,72 +875,72 @@ const at = (u) => {
|
|
|
855
875
|
O("INVALID_REDIRECT_RESULT");
|
|
856
876
|
return;
|
|
857
877
|
}
|
|
858
|
-
|
|
878
|
+
R = e.redirectResult, await ae();
|
|
859
879
|
}
|
|
860
880
|
}
|
|
861
|
-
async function
|
|
862
|
-
if (
|
|
863
|
-
|
|
881
|
+
async function ae() {
|
|
882
|
+
if (R) {
|
|
883
|
+
U = !0;
|
|
864
884
|
try {
|
|
865
|
-
await
|
|
866
|
-
paymentAcceptorId:
|
|
867
|
-
detailsResult: { redirectResult:
|
|
885
|
+
await te({
|
|
886
|
+
paymentAcceptorId: n.paymentMethodOptionResponseEntry.payment_acceptor.id,
|
|
887
|
+
detailsResult: { redirectResult: R }
|
|
868
888
|
});
|
|
869
889
|
} finally {
|
|
870
|
-
|
|
890
|
+
U = !1;
|
|
871
891
|
}
|
|
872
892
|
}
|
|
873
893
|
}
|
|
874
|
-
async function
|
|
875
|
-
const e = g.value, t =
|
|
876
|
-
await
|
|
894
|
+
async function ne() {
|
|
895
|
+
const e = g.value, t = b + 1;
|
|
896
|
+
await j(), e && t === b && (g.value = e);
|
|
877
897
|
}
|
|
878
|
-
async function
|
|
879
|
-
if (g.value = void 0, !
|
|
880
|
-
await
|
|
898
|
+
async function De() {
|
|
899
|
+
if (g.value = void 0, !R) {
|
|
900
|
+
await j();
|
|
881
901
|
return;
|
|
882
902
|
}
|
|
883
|
-
|
|
903
|
+
w = !1, await ae(), await ne();
|
|
884
904
|
}
|
|
885
|
-
return
|
|
886
|
-
await
|
|
887
|
-
}),
|
|
888
|
-
|
|
889
|
-
}),
|
|
890
|
-
() =>
|
|
905
|
+
return ke(async () => {
|
|
906
|
+
await Me(), await ne();
|
|
907
|
+
}), Se(() => {
|
|
908
|
+
b++, z();
|
|
909
|
+
}), Ce(
|
|
910
|
+
() => n.paymentMethodOptionResponseEntry,
|
|
891
911
|
(e, t) => {
|
|
892
|
-
|
|
912
|
+
Fe(e, t) || j();
|
|
893
913
|
},
|
|
894
914
|
{ deep: !0 }
|
|
895
|
-
), (e, t) => (
|
|
896
|
-
|
|
915
|
+
), (e, t) => (v(), $(we, null, [
|
|
916
|
+
B.value ? (v(), K(Ue, {
|
|
897
917
|
key: 0,
|
|
898
918
|
variant: u.variant,
|
|
899
919
|
redirecting: u.redirectsOnSuccess
|
|
900
|
-
}, null, 8, ["variant", "redirecting"])) : g.value ? (
|
|
920
|
+
}, null, 8, ["variant", "redirecting"])) : g.value ? (v(), K(Ye, {
|
|
901
921
|
key: 1,
|
|
902
922
|
error: g.value,
|
|
903
|
-
onRetry:
|
|
904
|
-
}, null, 8, ["error"])) :
|
|
905
|
-
|
|
923
|
+
onRetry: De
|
|
924
|
+
}, null, 8, ["error"])) : H("", !0),
|
|
925
|
+
q.value ? (v(), $("div", {
|
|
906
926
|
key: 2,
|
|
907
927
|
ref_key: "dropInContainerRef",
|
|
908
|
-
ref:
|
|
909
|
-
}, null, 512)) :
|
|
910
|
-
I.value ? (
|
|
928
|
+
ref: h
|
|
929
|
+
}, null, 512)) : H("", !0),
|
|
930
|
+
I.value ? (v(), K(Le, {
|
|
911
931
|
key: 3,
|
|
912
932
|
to: I.value
|
|
913
933
|
}, [
|
|
914
|
-
|
|
934
|
+
xe("div", {
|
|
915
935
|
ref_key: "sepaNoticeRef",
|
|
916
|
-
ref:
|
|
936
|
+
ref: F
|
|
917
937
|
}, [
|
|
918
|
-
|
|
938
|
+
W(st, { "billing-entity-name": u.billingEntityName }, null, 8, ["billing-entity-name"])
|
|
919
939
|
], 512)
|
|
920
|
-
], 8, ["to"])) :
|
|
940
|
+
], 8, ["to"])) : H("", !0)
|
|
921
941
|
], 64));
|
|
922
942
|
}
|
|
923
943
|
});
|
|
924
944
|
export {
|
|
925
|
-
|
|
945
|
+
Tt as default
|
|
926
946
|
};
|