@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.29
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 +151 -17
- package/dist/{Alert.vue.es-lIiAWf2S.mjs → Alert.vue.es-CNrEaLvh.mjs} +58 -46
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-DKfNs8rr.mjs +50 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-r0NbcIib.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Cp4yGqaw.mjs} +18 -19
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-Zw--kuaU.mjs} +4 -4
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-B8FDkS9U.mjs} +240 -251
- package/dist/Checkout.entry.ce-DsGl-5aR.mjs +4202 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-2D8VM_7W.mjs +828 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-D3UDSyXC.mjs} +35 -21
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-B9mFpUQK.mjs} +87 -88
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-B8NiQaJs.mjs} +3 -3
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DBivC5Eb.mjs} +27 -30
- package/dist/CustomerShippingAddresses-Bj8Y17O8.mjs +397 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BmPKfIjT.mjs +2927 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-CNbgif-3.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs +55 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-DNd65mQq.mjs} +2 -2
- package/dist/FormMessage.vue.es-Cjv358Ab.mjs +39 -0
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-C8lYFx5_.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-O2kcqgKm.mjs} +3 -3
- package/dist/Input.vue.es-D8Oj8MWv.mjs +250 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-rhqYVdfV.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-06R-M8Q3.mjs +56 -0
- package/dist/InvoicePreview.vue.es-4Q2hzaFS.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-DKU0xu0t.mjs +124 -0
- package/dist/Label.vue.es-DtpLM1KH.mjs +113 -0
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-C8ZcO117.mjs} +109 -103
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-3DQLCR3U.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-DfTb9psX.mjs +48 -0
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BoGTtg5G.mjs} +70 -113
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BvY2nXGV.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-bQKhUonq.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-CcfQSzKM.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CvzcLJVq.mjs +181 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-DqgDfO6K.mjs} +422 -311
- package/dist/PaymentIntegrationFormStripe-BYdAkvLt.mjs +757 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-b0p3a0L-.mjs} +7 -7
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-BsTrTwCg.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-sUOmLORl.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DsnAhR79.mjs +169 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CSW4LfmH.mjs} +13 -8
- package/dist/PlanCustomizationEditor-D29N4HUM.mjs +711 -0
- package/dist/PortalLinkUnverified-B_EE2wTJ.mjs +52 -0
- package/dist/PortalNotAvailable-DPE9y37H.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-tIMXIhpZ.mjs} +14 -13
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DqxWxSQe.mjs} +48 -48
- package/dist/RadioGroupExtended.vue.es-3nDXqIGi.mjs +176 -0
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-CvX9tg2f.mjs} +1 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Cl7I1Apo.mjs +60 -0
- package/dist/ShippingAddressesModal-C4p1IXXk.mjs +418 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/{StepInput.vue.es-o-3Lg4Ai.mjs → StepInput.vue.es-DweyzpkL.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-D5SwM0YS.mjs} +448 -460
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-BZqlpAtk.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BH7DdOWK.mjs +5185 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DoJxiqVB.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BbjdBHSQ.mjs} +126 -90
- package/dist/TooltipParagraph.vue.es-Dw0ndjle.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BhjZVMSx.mjs +31 -0
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-DOopmaXA.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{api.es-QaC926Xu.mjs → api.es-qgvzNMU-.mjs} +2 -2
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-B8acFrov.mjs} +385 -477
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +11 -10
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +397 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +20 -19
- package/dist/components/Invoice/Invoice.mjs +2691 -227
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +66 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -40
- package/dist/components/InvoicesList/InvoicesList.mjs +20 -18
- package/dist/components/PaymentHistory/PaymentHistory.mjs +72 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +33 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +49 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +47 -31
- package/dist/components/WalletBalances/WalletBalances.mjs +22 -21
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-BTj4ii4f.mjs +5072 -0
- package/dist/customer-BIjC0CWJ.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-DBbERiFr.mjs} +110 -18
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-UJ6X6jXu.mjs} +16 -10
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/fr-FR-IWJE-urI.mjs +431 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/{index.es-CXkP_k3u.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.es-CpmQmvOg.mjs +633 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-e1sKLgxg.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-B7ui2oxO.mjs} +110 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DnJP5URH.mjs} +9 -3
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-Bafh2xoT.mjs} +116 -24
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-q9xfTZF0.mjs} +12 -6
- package/dist/paymentMethods-B_82JGk_.mjs +77 -0
- package/dist/paymentMethods-Nfv9HdkS.mjs +61 -0
- package/dist/paymentOutcome-BXEU5-84.mjs +67 -0
- package/dist/payments-BnxbzQUC.mjs +68 -0
- package/dist/{pricing-BIMpDI_p.mjs → pricing-BOhvWWMj.mjs} +3 -3
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-Dxv5FOBd.mjs +233 -0
- package/dist/pricingPlanSchedules-Dv7ZCgNp.mjs +38 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.mjs +2 -2
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +146 -94
- package/dist/screens/PayInvoice/PayInvoice.mjs +603 -278
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +102 -88
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +371 -347
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-CVyKw23D.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-BWXZGK0E.mjs +66 -0
- package/dist/taxId.es-DkD3Ltr8.mjs +243 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +2 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +2 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +15 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +0 -2
- package/dist/types/components/customer/ShippingAddressForm/ShippingAddressForm.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressCard.types.d.ts +11 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressList.types.d.ts +9 -0
- package/dist/types/components/customer/ShippingAddresses/ShippingAddressesModal.types.d.ts +26 -0
- package/dist/types/components/invoices/InvoiceOrderSummary/InvoiceOrderSummary.types.d.ts +5 -0
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +0 -2
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +9 -2
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +47 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +11 -1
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +30 -3
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +12 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -3
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +2 -4
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +5 -1
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +2 -2
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +6 -1
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +5 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -7
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +1 -1
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +3 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.types.d.ts +2 -2
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +13 -4
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +7 -2
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +1 -1
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -2
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +1 -10
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -16
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +1 -14
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +4 -1
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -2
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +0 -3
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +3 -1
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +1 -7
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +0 -3
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -1
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +0 -1
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -1
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +0 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +3 -2
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +0 -2
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +0 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +2 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -1
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +3 -2
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +0 -2
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +3 -2
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +0 -2
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -1
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -1
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +1 -3
- package/dist/types/public/core/action-request.types.d.ts +5 -0
- package/dist/types/public/core/registry.ce.d.ts +3 -3
- package/dist/types/public/core/registry.d.ts +0 -3
- package/dist/types/public/core/types.d.ts +5 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +0 -7
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +2 -2
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +5 -1
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -1
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +1 -2
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -1
- package/dist/types/services/paymentMethods.types.d.ts +2 -10
- package/dist/types/services/requests.types.d.ts +16 -6
- package/dist/types/translations/supported.d.ts +1 -1
- package/dist/types/types/errors.d.ts +3 -2
- package/dist/types/types/portalAuthentication.d.ts +2 -0
- package/dist/types/types/portalToken.d.ts +9 -0
- package/dist/types/types/shippingAddress.d.ts +9 -0
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +27 -6
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +9 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +16 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +12 -3
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +35 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +1 -1
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/BrandProvider/BrandProvider.types.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/components/providers/IntlProvider/IntlProvider.types.d.ts +66 -0
- package/dist/types/vendor/@solvimon/solvimon-ui/index.d.ts +2 -0
- package/dist/useActionDispatchProvider-3W2vEyIg.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-cObBvDOu.mjs} +2 -2
- package/dist/useCustomerFormLabels-DJWf2O17.mjs +1173 -0
- package/dist/useIncrementalLoading-CATuO36d.mjs +60 -0
- package/dist/useInvoiceData-DD44HTl7.mjs +21 -0
- package/dist/useInvoicesList-CpB-41MQ.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-qzdnBoui.mjs +15 -0
- package/dist/usePaymentFormHold-ByUZi3A-.mjs +181 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-DUdrs0Ji.mjs} +8 -8
- package/dist/usePaymentMethods-ByaKF7mf.mjs +21 -0
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-BXABv-lF.mjs} +9 -9
- package/dist/usePortal-CwR_FxTb.mjs +7 -0
- package/dist/useService-BZcbUZHI.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-BpdiVwg8.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +33 -60
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-081H9T3X.js +0 -1
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DNepCMRp.mjs +0 -223
- package/dist/Alert.vue.es-RyK53a2P.js +0 -1
- package/dist/Amount.vue.es-DExaYBqm.js +0 -1
- package/dist/Avatar.vue.es-BJxSCU76.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BV5iEOxn.js +0 -1
- package/dist/Button.vue.es-BzkuglKw.js +0 -1
- package/dist/ChargeOnDemandModal-b17YswWA.js +0 -1
- package/dist/Checkout.entry.ce-HlUrJ1kh.js +0 -2
- package/dist/Checkout.entry.ce-X2zGo6hG.mjs +0 -4381
- package/dist/Chip.vue.es-B2jjzIOc.js +0 -1
- package/dist/Comparators.vue.es-CwhX3rbx.mjs +0 -93
- package/dist/Comparators.vue.es-DmkxV0gb.js +0 -1
- package/dist/ContentWithAsideLayout-BCM8tmZN.mjs +0 -38
- package/dist/ContentWithAsideLayout-RSdKXqAf.js +0 -1
- package/dist/ContextMenu.vue.es-DUU43tCy.js +0 -1
- package/dist/CustomerBillingInformation.vue.es-BfPEB42w.js +0 -1
- package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +0 -1
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BISD6n8X.js +0 -1
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DssxYPSA.mjs +0 -2688
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-XufY6bdV.js +0 -1
- package/dist/Divider.vue.es-UwnWvUTl.js +0 -1
- package/dist/DividerText.vue.es-CoyDk9eH.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CQ0KrXHJ.js +0 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-QW9NdxyZ.mjs +0 -335
- package/dist/ErrorNotification.vue.es-tS9vySUZ.js +0 -1
- package/dist/Expand.vue.es-BtM0EZEr.js +0 -1
- package/dist/FormMessage.vue.es-dqATjC2N.js +0 -1
- package/dist/FormMessage.vue.es-jG3fQZms.mjs +0 -29
- package/dist/IconButton.vue.es-DgQN18Am.js +0 -1
- package/dist/IconTitle.vue.es-Dn2xcPHj.js +0 -1
- package/dist/Input.vue.es-B60eK8Ds.js +0 -1
- package/dist/Input.vue.es-CU9u5yKH.mjs +0 -235
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dqdezse7.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-Cl6HU243.js +0 -1
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DNqawlYV.mjs +0 -41
- package/dist/InvoiceSummary.vue.es-CAmA8g0t.js +0 -1
- package/dist/InvoiceSummary.vue.es-CRiFJ5x-.mjs +0 -2596
- package/dist/Modal.vue.es-DvLB3uCG.js +0 -1
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dg4rn1cm.js +0 -1
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-B9R5JRJv.js +0 -1
- package/dist/PaymentHistoryBlock-Uw8xeKUk.js +0 -1
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-ALI5f0py.js +0 -1
- package/dist/PaymentIntegrationForm-Cx0zCf_C.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-B-viSd_i.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCKCXXZX.mjs +0 -154
- package/dist/PaymentIntegrationFormAdyen-B-v-4nlj.js +0 -98
- package/dist/PaymentIntegrationFormStripe-CoLmAzas.js +0 -102
- package/dist/PaymentIntegrationFormStripe-Ds0BXt89.mjs +0 -587
- package/dist/PaymentMethod.vue.es-D0D9jW8s.js +0 -1
- package/dist/PaymentMethodForm-CMP5FLRO.js +0 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-nxnGyJmE.js +0 -1
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIrrQUS6.js +0 -1
- package/dist/PlanCustomizationEditor-DS1r2vBO.js +0 -1
- package/dist/PlanCustomizationEditor-DlVSCKGN.mjs +0 -722
- package/dist/PricingGroupRangeInput.vue.es-VoOTnHjk.js +0 -185
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-hS6A-KcP.js +0 -1
- package/dist/RadioGroupExtended.vue.es-9YzXzZF0.mjs +0 -163
- package/dist/RadioGroupExtended.vue.es-DlbURHQN.js +0 -1
- package/dist/Section.vue.es-Bbt0RITt.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Dl7MbMlk.js +0 -1
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs +0 -687
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CJWE7wVi.mjs +0 -41
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-otI7Hz2w.js +0 -1
- package/dist/StepInput.vue.es-H-3R4jJq.js +0 -1
- package/dist/SubscriptionDetails.entry.ce-CQUO_uXH.js +0 -1
- package/dist/SubscriptionSchedules-Dy0fUgx5.js +0 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs +0 -5234
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dd_Rr6qn.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CYyP4ra9.js +0 -1
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CsekphtV.mjs +0 -91
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-B4j8Clbj.js +0 -1
- package/dist/TooltipParagraph.vue.es-B9A17aG7.mjs +0 -129
- package/dist/TooltipParagraph.vue.es-DvC5Wjaz.js +0 -1
- package/dist/TrialChip.vue.es-CLQZ5F0n.js +0 -1
- package/dist/accel.svg.es-DFJXdioD.js +0 -1
- package/dist/ach.svg.es-BYP873jU.js +0 -1
- package/dist/adyen-BJfC7N6f.js +0 -1
- package/dist/adyenSdk-BP2XXzeJ.js +0 -1
- package/dist/amazon-pay.svg.es-CQWgtowB.js +0 -1
- package/dist/amex.svg.es-DKhW4Txt.js +0 -1
- package/dist/api.es-duCDtZD9.js +0 -1
- package/dist/apple-pay.svg.es-Dyojd0F-.js +0 -1
- package/dist/bacs.svg.es-GJpZs1sD.js +0 -1
- package/dist/bancontact.svg.es-BQh7nAup.js +0 -1
- package/dist/carnet.svg.es-DY04-F2L.js +0 -1
- package/dist/cartes-bancaires.svg.es-BleHMlkN.js +0 -1
- package/dist/cashapp.svg.es-MwXGYom6.js +0 -1
- package/dist/cn.es-C9Yqq4tg.js +0 -1
- package/dist/comparators.es-OGt19O9U.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +0 -1
- package/dist/components/Invoice/Invoice.cjs +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs +0 -1
- package/dist/components/InvoiceHeader/InvoiceHeader.cjs +0 -1
- package/dist/components/InvoicesList/InvoicesList.cjs +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.cjs +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs +0 -1
- package/dist/components/WalletBalances/WalletBalances.cjs +0 -1
- package/dist/configuration-akTS7Wiw.js +0 -1
- package/dist/core/index.cjs +0 -1
- package/dist/countryData.es-C4jHBzfo.js +0 -1
- package/dist/customElements-B58FcXIN.mjs +0 -6633
- package/dist/customElements-DUMRMFQ5.js +0 -1215
- package/dist/customer-B3LPAhaD.mjs +0 -31
- package/dist/customer-CisTPaXj.js +0 -1
- package/dist/customer.es-B5ppZf0j.mjs +0 -20
- package/dist/customer.es-BButyYo0.js +0 -1
- package/dist/dana.svg.es-BDtZLpwd.js +0 -1
- package/dist/dankort.svg.es-CksaipXF.js +0 -1
- package/dist/de-DE-B4TUdnUf.js +0 -1
- package/dist/de-DE-DL74pMLb.js +0 -1
- package/dist/diners.svg.es-D6Mu1pqP.js +0 -1
- package/dist/discover.svg.es-DgqWCMUM.js +0 -1
- package/dist/eftpos.svg.es-Dk2DOT8W.js +0 -1
- package/dist/elo.svg.es-C-BzjuRP.js +0 -1
- package/dist/en-US-B2XFj-_p.js +0 -1
- package/dist/en-US-DQ5vlv9Z.mjs +0 -339
- package/dist/en-US-J85TQRI8.js +0 -1
- package/dist/en-US-SDhjlY_v.mjs +0 -301
- package/dist/eps.svg.es-B_85bP-W.js +0 -1
- package/dist/error-BHVZJGwD.mjs +0 -13
- package/dist/error-CmduqgVq.js +0 -1
- package/dist/floating-ui.vue.es-Bly3DGWm.js +0 -1
- package/dist/floating-ui.vue.es-CYt0fSY7.mjs +0 -1108
- package/dist/formControl-ODrpUvcA.js +0 -1
- package/dist/formControl-dX7l8o3c.mjs +0 -845
- package/dist/formatting.es-C72Nsrmh.js +0 -1
- package/dist/gcash.svg.es-BKAdhWzv.js +0 -1
- package/dist/getComposedString.es-haS4bAj7.js +0 -1
- package/dist/getCountryNameByCode.es-Xxc0nZsH.js +0 -1
- package/dist/girocard.svg.es-HSOEvDif.js +0 -1
- package/dist/go-pay.svg.es-DQjtunZ_.js +0 -1
- package/dist/google-pay.svg.es-hzc_EgiJ.js +0 -1
- package/dist/hipercard.svg.es-CbCsRY2q.js +0 -1
- package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +0 -4
- package/dist/icon-sprite.svg.es-Ds6lDf5p.js +0 -1
- package/dist/ideal.svg.es-Booz1IML.js +0 -1
- package/dist/index-BPZPnOQQ.js +0 -7
- package/dist/index.cjs +0 -1
- package/dist/index.es-BclokHQX.js +0 -1
- package/dist/invoices-CKQBLar2.js +0 -1
- package/dist/it-IT-CSYvGmpT.js +0 -1
- package/dist/it-IT-CqNK62qe.js +0 -1
- package/dist/jcb.svg.es-B3WPB8c2.js +0 -1
- package/dist/kakao-pay.svg.es-Cs-lCW74.js +0 -1
- package/dist/klarna.svg.es-Cs6XaHD7.js +0 -1
- package/dist/maestro.svg.es-BvK4oPg4.js +0 -1
- package/dist/mastercard.svg.es-lp4AXyyV.js +0 -1
- package/dist/momo.svg.es-C5aLYf_R.js +0 -1
- package/dist/nl-NL-CpE4IgwO.js +0 -1
- package/dist/nl-NL-Dx-TNXQ1.js +0 -1
- package/dist/nyce.svg.es-ArAivAZW.js +0 -1
- package/dist/object.es-CdriXMPs.js +0 -1
- package/dist/open-banking.svg.es-Q3rRkCvP.js +0 -1
- package/dist/paymentFailure-Bh60UhxA.mjs +0 -47
- package/dist/paymentFailure-Cki8c5BX.js +0 -1
- package/dist/paymentMethods-CWlvwK5V.mjs +0 -77
- package/dist/paymentMethods-Cw-i95mM.js +0 -1
- package/dist/payments-2qeQdpiW.mjs +0 -45
- package/dist/payments-CS7_YcOW.js +0 -1
- package/dist/paypal.svg.es-Cjp5sNI3.js +0 -1
- package/dist/pricing-BOqG21f9.js +0 -1
- package/dist/pricing.es-C07bgEZx.js +0 -1
- package/dist/pricingItemConfigs.es-D4aYkYcf.js +0 -1
- package/dist/pricingItemConfigs.es-ORxsk_YS.mjs +0 -77
- package/dist/pricingPlanSchedule-BM8vsKkV.js +0 -1
- package/dist/pricingPlanSchedules-B_sTAIgU.js +0 -1
- package/dist/pricingPlanSchedules-ChQCbMfe.mjs +0 -32
- package/dist/pulse.svg.es-Dit33E8S.js +0 -1
- package/dist/screens/Checkout/Checkout.cjs +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.cjs +0 -1
- package/dist/screens/PayInvoice/PayInvoice.cjs +0 -1
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +0 -1
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +0 -1
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +0 -1
- package/dist/sepa.svg.es-0t4DKeA1.js +0 -1
- package/dist/sessionReference-3h-6FdrC.mjs +0 -43
- package/dist/sessionReference-m_6Rp4X1.js +0 -1
- package/dist/slots.es-T9ZJRGtG.js +0 -1
- package/dist/sorting.es-DCihKqD2.mjs +0 -77
- package/dist/sorting.es-DQsjKr8A.js +0 -1
- package/dist/star.svg.es-D2JncY7b.js +0 -1
- package/dist/subscription-D1yHKUNc.mjs +0 -69
- package/dist/subscription-ZA62t4E9.js +0 -1
- package/dist/subscriptions-DcfcBYAq.mjs +0 -55
- package/dist/subscriptions-DwVsf4Ev.js +0 -1
- package/dist/trustly.svg.es-GJByiFAs.js +0 -1
- package/dist/twint.svg.es-BJ2f48og.js +0 -1
- package/dist/typeGuards.es-DS3vZaJn.js +0 -1
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +0 -14
- package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +0 -3
- package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +0 -5
- package/dist/types/services/portals.types.d.ts +0 -70
- package/dist/types/types/subscription.d.ts +0 -4
- package/dist/unionpay.svg.es-DjFZ5EMQ.js +0 -1
- package/dist/url-TNRgVI8A.mjs +0 -21
- package/dist/url-vloPOiXd.js +0 -1
- package/dist/useActionDispatchProvider-B3AvkLL2.mjs +0 -11
- package/dist/useActionDispatchProvider-DFhppdve.js +0 -1
- package/dist/useCustomer-BwZKd9i5.js +0 -1
- package/dist/useCustomerFormLabels-BQk3d9PZ.mjs +0 -968
- package/dist/useCustomerFormLabels-DV9QiMYh.js +0 -1
- package/dist/useExperimentalFeature-BciA3Ok9.mjs +0 -135
- package/dist/useExperimentalFeature-CGIkgFR4.js +0 -1
- package/dist/useIncrementalLoading-CaWOE8Xl.js +0 -1
- package/dist/useIncrementalLoading-Cgxw2GD7.mjs +0 -48
- package/dist/useInvoiceData-BocKdeg7.mjs +0 -38
- package/dist/useInvoiceData-CNV_FMV8.js +0 -1
- package/dist/useInvoicesList-C8nsXMJ6.mjs +0 -500
- package/dist/useInvoicesList-S0IbQcrD.js +0 -1
- package/dist/useLoadInitialData-D9GkzY8t.mjs +0 -15
- package/dist/useLoadInitialData-D_R6Jy1s.js +0 -1
- package/dist/usePaymentMethodAvailability-BO_guwAw.js +0 -1
- package/dist/usePaymentMethodOptions-1vRAo6Ib.mjs +0 -39
- package/dist/usePaymentMethodOptions-CuzOoi2k.js +0 -1
- package/dist/usePaymentMethods-CbwnGONc.mjs +0 -15
- package/dist/usePaymentMethods-DDaTZQZp.js +0 -1
- package/dist/usePayments-DDSjo0rH.js +0 -1
- package/dist/usePortal-C27omjhz.js +0 -1
- package/dist/usePortal-C5AsegpS.mjs +0 -11
- package/dist/useService-Bh47bllz.mjs +0 -50
- package/dist/useService-H7BjLg8P.js +0 -1
- package/dist/useSubscription-BZJL0VOA.mjs +0 -210
- package/dist/useSubscription-D787IXY-.js +0 -1
- package/dist/useTimePeriod.es-rzxqUCTu.js +0 -1
- package/dist/useViewport-BgdA2PPt.mjs +0 -29
- package/dist/useViewport-hPRVDWCm.js +0 -1
- package/dist/useWatchDebounced-B8iX7ykx.js +0 -1
- package/dist/useWatchDebounced-BHlBPcXB.mjs +0 -20
- package/dist/visa.svg.es-NY3BHhda.js +0 -1
- package/dist/vpay.svg.es-VViQi42w.js +0 -1
- package/dist/wallets.es-CNIMW5ay.js +0 -1
- package/dist/zip.svg.es-C9S_F31W.js +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const e = w(null);
|
|
1
|
+
import { ref as T, onBeforeUnmount as v, defineComponent as C, computed as u, openBlock as f, createBlock as g, withCtx as s, createElementVNode as w, createVNode as d, unref as r, createTextVNode as l, toDisplayString as c, createCommentVNode as b, createElementBlock as k } from "vue";
|
|
2
|
+
import { _ as R } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
3
|
+
import { _ as I } from "./IconButton.vue.es-C8lYFx5_.mjs";
|
|
4
|
+
import { a as A, d as h } from "./customElements-BTj4ii4f.mjs";
|
|
5
|
+
import { _ as N } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BIAm22Kq.mjs";
|
|
6
|
+
const O = () => {
|
|
7
|
+
const e = T(null);
|
|
9
8
|
return [async (t) => {
|
|
10
9
|
if (!(navigator != null && navigator.clipboard))
|
|
11
10
|
return !1;
|
|
@@ -15,61 +14,8 @@ const N = () => {
|
|
|
15
14
|
return e.value = null, !1;
|
|
16
15
|
}
|
|
17
16
|
}, e.value];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
props: {
|
|
21
|
-
amount: { type: Object },
|
|
22
|
-
variant: { type: String },
|
|
23
|
-
redirecting: { type: Boolean }
|
|
24
|
-
},
|
|
25
|
-
setup(e) {
|
|
26
|
-
const a = e, { $t: t } = T(), o = h(
|
|
27
|
-
() => a.variant === "AUTHORIZE" ? t({
|
|
28
|
-
defaultMessage: "Payment successful",
|
|
29
|
-
description: "The title for when a payment has been successful",
|
|
30
|
-
id: "payment_completed_card.title.authorize"
|
|
31
|
-
}) : t({
|
|
32
|
-
defaultMessage: "Your payment method is added",
|
|
33
|
-
description: "The title for when a payment method was successfully added",
|
|
34
|
-
id: "payment_completed_card.title.tokenize"
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
return (c, s) => (l(), p(M, {
|
|
38
|
-
status: "success",
|
|
39
|
-
title: o.value
|
|
40
|
-
}, {
|
|
41
|
-
default: n(() => [
|
|
42
|
-
e.amount ? (l(), p(r(f), {
|
|
43
|
-
key: 0,
|
|
44
|
-
variant: "body-sm",
|
|
45
|
-
class: "mt-1"
|
|
46
|
-
}, {
|
|
47
|
-
default: n(() => [
|
|
48
|
-
u(r(A), { icon: "check" }),
|
|
49
|
-
i(d(r(R)(e.amount)), 1)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
})) : _("", !0),
|
|
53
|
-
e.redirecting ? (l(), p(r(f), {
|
|
54
|
-
key: 1,
|
|
55
|
-
variant: "body-xs",
|
|
56
|
-
color: "subtle"
|
|
57
|
-
}, {
|
|
58
|
-
default: n(() => [
|
|
59
|
-
i(d(r(t)({
|
|
60
|
-
defaultMessage: "You are being redirected...",
|
|
61
|
-
description: "The text shown after a successful message before a redirect",
|
|
62
|
-
id: "payment_completed_card.redirect_message"
|
|
63
|
-
})), 1)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
})) : _("", !0)
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["title"]));
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
function O(e) {
|
|
17
|
+
};
|
|
18
|
+
function x(e) {
|
|
73
19
|
return {
|
|
74
20
|
UNKNOWN_ERROR: {
|
|
75
21
|
title: e({
|
|
@@ -82,7 +28,7 @@ function O(e) {
|
|
|
82
28
|
description: "Message of the error card shown when a payment failed for no known reason",
|
|
83
29
|
id: "payments.error_card.unknown_error.message"
|
|
84
30
|
}),
|
|
85
|
-
|
|
31
|
+
isRetryButtonVisible: !0
|
|
86
32
|
},
|
|
87
33
|
AUTHORIZATION_FAILED: {
|
|
88
34
|
title: e({
|
|
@@ -95,7 +41,7 @@ function O(e) {
|
|
|
95
41
|
description: "Message of the error card shown when a payment was not authorized",
|
|
96
42
|
id: "payments.error_card.authorization_failed.message"
|
|
97
43
|
}),
|
|
98
|
-
|
|
44
|
+
isRetryButtonVisible: !0
|
|
99
45
|
},
|
|
100
46
|
PAYMENT_DETAILS_CALL_FAILED: {
|
|
101
47
|
title: e({
|
|
@@ -108,7 +54,20 @@ function O(e) {
|
|
|
108
54
|
description: "Message of the error card shown when the payment details could not be retrieved",
|
|
109
55
|
id: "payments.error_card.payment_details_call_failed.message"
|
|
110
56
|
}),
|
|
111
|
-
|
|
57
|
+
isRetryButtonVisible: !0
|
|
58
|
+
},
|
|
59
|
+
// No retry: the payment may still go through, and a second attempt could charge twice.
|
|
60
|
+
PAYMENT_OUTCOME_UNCONFIRMED: {
|
|
61
|
+
title: e({
|
|
62
|
+
defaultMessage: "Payment not confirmed yet",
|
|
63
|
+
description: "Title of the card shown when it is not yet known whether a payment went through",
|
|
64
|
+
id: "payments.error_card.payment_outcome_unconfirmed.title"
|
|
65
|
+
}),
|
|
66
|
+
message: e({
|
|
67
|
+
defaultMessage: "Your payment may still go through, so please do not pay again. Contact support with the reference below if you are unsure.",
|
|
68
|
+
description: "Message of the card shown when it is not yet known whether a payment went through",
|
|
69
|
+
id: "payments.error_card.payment_outcome_unconfirmed.message"
|
|
70
|
+
})
|
|
112
71
|
},
|
|
113
72
|
PAYMENT_METHOD_STORAGE_FAILED: {
|
|
114
73
|
title: e({
|
|
@@ -121,7 +80,7 @@ function O(e) {
|
|
|
121
80
|
description: "Message of the error card shown when storing a payment method failed",
|
|
122
81
|
id: "payments.error_card.payment_method_storage_failed.message"
|
|
123
82
|
}),
|
|
124
|
-
|
|
83
|
+
isRetryButtonVisible: !0
|
|
125
84
|
},
|
|
126
85
|
REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING: {
|
|
127
86
|
title: e({
|
|
@@ -146,7 +105,7 @@ function O(e) {
|
|
|
146
105
|
description: "Message of the error card shown when tokenization failed",
|
|
147
106
|
id: "payments.error_card.tokenize_failed.message"
|
|
148
107
|
}),
|
|
149
|
-
|
|
108
|
+
isRetryButtonVisible: !0
|
|
150
109
|
},
|
|
151
110
|
PAYMENT_INTEGRATION_INITIALIZATION_FAILED: {
|
|
152
111
|
title: e({
|
|
@@ -159,7 +118,7 @@ function O(e) {
|
|
|
159
118
|
description: "Message of the error card shown when the payment form failed to load",
|
|
160
119
|
id: "payments.error_card.payment_integration_initialization_failed.message"
|
|
161
120
|
}),
|
|
162
|
-
|
|
121
|
+
isRetryButtonVisible: !0
|
|
163
122
|
},
|
|
164
123
|
RESOURCE_REVOKED: {
|
|
165
124
|
title: e({
|
|
@@ -172,86 +131,85 @@ function O(e) {
|
|
|
172
131
|
description: "Message of the error card shown when the portal resource was revoked",
|
|
173
132
|
id: "payments.error_card.resource_revoked.message"
|
|
174
133
|
}),
|
|
175
|
-
|
|
134
|
+
isRetryButtonVisible: !0
|
|
176
135
|
}
|
|
177
136
|
};
|
|
178
137
|
}
|
|
179
138
|
const P = 2e3;
|
|
180
139
|
function B({ resetAfterMs: e = P } = {}) {
|
|
181
|
-
const [
|
|
182
|
-
let
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
return t.value =
|
|
140
|
+
const [i] = O(), t = T(!1);
|
|
141
|
+
let a;
|
|
142
|
+
const o = async (m) => {
|
|
143
|
+
const n = await i(m);
|
|
144
|
+
return t.value = n, n && (clearTimeout(a), a = setTimeout(() => {
|
|
186
145
|
t.value = !1;
|
|
187
|
-
}, e)),
|
|
146
|
+
}, e)), n;
|
|
188
147
|
};
|
|
189
|
-
return
|
|
148
|
+
return v(() => clearTimeout(a)), { copy: o, hasCopied: t };
|
|
190
149
|
}
|
|
191
|
-
const
|
|
150
|
+
const D = { class: "flex flex-col items-center gap-6" }, L = {
|
|
192
151
|
key: 1,
|
|
193
152
|
class: "flex flex-col items-center gap-1"
|
|
194
|
-
}, V = { class: "flex items-center gap-1" },
|
|
153
|
+
}, V = { class: "flex items-center gap-1" }, Z = /* @__PURE__ */ C({
|
|
195
154
|
__name: "PaymentErrorCard",
|
|
196
155
|
props: {
|
|
197
156
|
error: { type: Object }
|
|
198
157
|
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
() => t({
|
|
158
|
+
emits: ["retry"],
|
|
159
|
+
setup(e, { emit: i }) {
|
|
160
|
+
const t = e, a = i, { $t: o } = A(), { copy: m, hasCopied: n } = B(), p = u(() => x(o)[t.error.code]), y = u(
|
|
161
|
+
() => o({
|
|
204
162
|
defaultMessage: "Copy reference",
|
|
205
163
|
description: "Label of the button that copies the payment error reference",
|
|
206
164
|
id: "payments.error_card.reference.copy.label"
|
|
207
165
|
})
|
|
208
|
-
),
|
|
209
|
-
() =>
|
|
166
|
+
), M = u(
|
|
167
|
+
() => o({
|
|
210
168
|
defaultMessage: "Copied",
|
|
211
169
|
description: "Confirmation shown after copying the payment error reference",
|
|
212
170
|
id: "payments.error_card.reference.copied.label"
|
|
213
171
|
})
|
|
214
172
|
), E = () => {
|
|
215
|
-
|
|
173
|
+
t.error.reference && m(t.error.reference);
|
|
216
174
|
};
|
|
217
|
-
return (
|
|
175
|
+
return (z, _) => (f(), g(N, {
|
|
218
176
|
status: "error",
|
|
219
|
-
title:
|
|
177
|
+
title: p.value.title
|
|
220
178
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
223
|
-
|
|
179
|
+
default: s(() => [
|
|
180
|
+
w("div", D, [
|
|
181
|
+
d(r(h), {
|
|
224
182
|
variant: "body-xs",
|
|
225
183
|
color: "subtle",
|
|
226
184
|
class: "mt-3"
|
|
227
185
|
}, {
|
|
228
|
-
default:
|
|
229
|
-
|
|
186
|
+
default: s(() => [
|
|
187
|
+
l(c(p.value.message), 1)
|
|
230
188
|
]),
|
|
231
189
|
_: 1
|
|
232
190
|
}),
|
|
233
|
-
|
|
191
|
+
p.value.isRetryButtonVisible ? (f(), g(r(R), {
|
|
234
192
|
key: 0,
|
|
235
193
|
type: "button",
|
|
236
194
|
intent: "secondary",
|
|
237
|
-
onClick:
|
|
195
|
+
onClick: _[0] || (_[0] = (S) => a("retry"))
|
|
238
196
|
}, {
|
|
239
|
-
default:
|
|
240
|
-
|
|
197
|
+
default: s(() => [
|
|
198
|
+
l(c(r(o)({
|
|
241
199
|
defaultMessage: "Try again",
|
|
242
200
|
description: "Retry button text when an error has happened during a payment",
|
|
243
201
|
id: "payments.retry_button.label"
|
|
244
202
|
})), 1)
|
|
245
203
|
]),
|
|
246
204
|
_: 1
|
|
247
|
-
})) :
|
|
248
|
-
e.error.reference ? (
|
|
249
|
-
|
|
205
|
+
})) : b("", !0),
|
|
206
|
+
e.error.reference ? (f(), k("div", L, [
|
|
207
|
+
d(r(h), {
|
|
250
208
|
variant: "body-xs",
|
|
251
209
|
color: "subtle"
|
|
252
210
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
211
|
+
default: s(() => [
|
|
212
|
+
l(c(r(o)({
|
|
255
213
|
defaultMessage: "Share this reference with support if the problem continues",
|
|
256
214
|
description: "Explains what the reference below a failed payment is for",
|
|
257
215
|
id: "payments.error_card.reference.description"
|
|
@@ -259,28 +217,28 @@ const z = { class: "flex flex-col items-center gap-6" }, L = {
|
|
|
259
217
|
]),
|
|
260
218
|
_: 1
|
|
261
219
|
}),
|
|
262
|
-
|
|
263
|
-
|
|
220
|
+
w("div", V, [
|
|
221
|
+
d(r(h), {
|
|
264
222
|
variant: "body-xs",
|
|
265
223
|
tag: "span",
|
|
266
224
|
class: "select-all font-mono"
|
|
267
225
|
}, {
|
|
268
|
-
default:
|
|
269
|
-
|
|
226
|
+
default: s(() => [
|
|
227
|
+
l(c(e.error.reference), 1)
|
|
270
228
|
]),
|
|
271
229
|
_: 1
|
|
272
230
|
}),
|
|
273
|
-
|
|
231
|
+
d(r(I), {
|
|
274
232
|
type: "button",
|
|
275
233
|
intent: "subtle",
|
|
276
234
|
size: "sm",
|
|
277
|
-
icon: r(
|
|
235
|
+
icon: r(n) ? "check" : "content_copy",
|
|
278
236
|
"aria-label": y.value,
|
|
279
|
-
tooltip: r(
|
|
237
|
+
tooltip: r(n) ? M.value : y.value,
|
|
280
238
|
onClick: E
|
|
281
239
|
}, null, 8, ["icon", "aria-label", "tooltip"])
|
|
282
240
|
])
|
|
283
|
-
])) :
|
|
241
|
+
])) : b("", !0)
|
|
284
242
|
])
|
|
285
243
|
]),
|
|
286
244
|
_: 1
|
|
@@ -288,6 +246,5 @@ const z = { class: "flex flex-col items-center gap-6" }, L = {
|
|
|
288
246
|
}
|
|
289
247
|
});
|
|
290
248
|
export {
|
|
291
|
-
|
|
292
|
-
j as a
|
|
249
|
+
Z as _
|
|
293
250
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, openBlock as r, createBlock as c, unref as t, withCtx as s, createElementVNode as i, createVNode as n, normalizeClass as m, createTextVNode as d, toDisplayString as u, renderSlot as f, createCommentVNode as _ } from "vue";
|
|
2
|
-
import { a as p } from "./Button.vue.es-
|
|
3
|
-
import { _ as g } from "./Section.vue.es-
|
|
4
|
-
import {
|
|
2
|
+
import { a as p } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
3
|
+
import { _ as g } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
4
|
+
import { d as o } from "./customElements-BTj4ii4f.mjs";
|
|
5
5
|
const y = { class: "flex flex-col items-center py-10" }, v = /* @__PURE__ */ l({
|
|
6
6
|
__name: "PaymentFeedbackCard",
|
|
7
7
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as v, openBlock as a, createElementBlock as _, createVNode as o, unref as e, withCtx as s, createTextVNode as i, toDisplayString as n, createElementVNode as c, Fragment as g, renderList as E, createBlock as d, createCommentVNode as D } from "vue";
|
|
2
|
+
import { _ as N } from "./PaymentMethod.vue.es-b0p3a0L-.mjs";
|
|
3
|
+
import { a as k } from "./formatting.es-RclXHhKo.mjs";
|
|
4
|
+
import { _ as R } from "./Chip.vue.es-D3UDSyXC.mjs";
|
|
5
|
+
import { _ as x } from "./Section.vue.es-CvX9tg2f.mjs";
|
|
6
|
+
import { a as C, d as l } from "./customElements-BTj4ii4f.mjs";
|
|
7
|
+
const w = { class: "sv-payment-history" }, T = { class: "sv-payment-history__items flex flex-col gap-1" }, b = { class: "sv-payment-history__item-header mb-2 flex items-center justify-between" }, G = /* @__PURE__ */ u({
|
|
8
8
|
__name: "PaymentHistoryBlock",
|
|
9
9
|
props: {
|
|
10
10
|
paymentAttempts: { type: Array },
|
|
11
11
|
customer: { type: Object }
|
|
12
12
|
},
|
|
13
13
|
setup(r) {
|
|
14
|
-
const { $t: m, formatDate:
|
|
14
|
+
const { $t: m, formatDate: p } = C(), y = r, f = v(() => [...y.paymentAttempts].reverse()), h = {
|
|
15
15
|
AUTHORIZED: "success",
|
|
16
16
|
CANCELLED: "danger",
|
|
17
17
|
ERROR: "danger",
|
|
@@ -21,13 +21,13 @@ const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__ite
|
|
|
21
21
|
CHARGED_BACK: "warning",
|
|
22
22
|
REFUSED: "danger"
|
|
23
23
|
};
|
|
24
|
-
return (
|
|
24
|
+
return (B, P) => (a(), _("div", w, [
|
|
25
25
|
o(e(l), {
|
|
26
26
|
tag: "h2",
|
|
27
27
|
variant: "heading-3",
|
|
28
28
|
class: "sv-payment-history__title"
|
|
29
29
|
}, {
|
|
30
|
-
default:
|
|
30
|
+
default: s(() => [
|
|
31
31
|
i(n(e(m)({
|
|
32
32
|
defaultMessage: "Payment history",
|
|
33
33
|
description: "Title for the payment history block on the invoice details page",
|
|
@@ -36,18 +36,18 @@ const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__ite
|
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
38
|
}),
|
|
39
|
-
c("div",
|
|
40
|
-
(
|
|
39
|
+
c("div", T, [
|
|
40
|
+
(a(!0), _(g, null, E(f.value, (t) => (a(), d(e(x), {
|
|
41
41
|
key: t.id,
|
|
42
42
|
class: "sv-payment-history__item mt-1 md:mt-2"
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
c("div",
|
|
44
|
+
default: s(() => [
|
|
45
|
+
c("div", b, [
|
|
46
46
|
o(e(l), {
|
|
47
47
|
variant: "caps-heading",
|
|
48
48
|
class: "sv-payment-history__item-title"
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
50
|
+
default: s(() => [
|
|
51
51
|
i(n(e(m)({
|
|
52
52
|
defaultMessage: "Payment attempt",
|
|
53
53
|
description: "Title for the payment attempt block",
|
|
@@ -56,23 +56,23 @@ const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__ite
|
|
|
56
56
|
]),
|
|
57
57
|
_: 1
|
|
58
58
|
}),
|
|
59
|
-
o(e(
|
|
59
|
+
o(e(R), {
|
|
60
60
|
class: "sv-payment-history__item-status",
|
|
61
|
-
intent:
|
|
61
|
+
intent: h[t.result]
|
|
62
62
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
i(n(e(
|
|
63
|
+
default: s(() => [
|
|
64
|
+
i(n(e(k)(t.result)), 1)
|
|
65
65
|
]),
|
|
66
66
|
_: 2
|
|
67
67
|
}, 1032, ["intent"])
|
|
68
68
|
]),
|
|
69
|
-
t.payment_method_details ? (
|
|
69
|
+
t.payment_method_details ? (a(), d(e(N), {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "sv-payment-history__payment-method",
|
|
72
72
|
"payment-method": t.payment_method_details
|
|
73
73
|
}, {
|
|
74
|
-
description:
|
|
75
|
-
i(n(e(
|
|
74
|
+
description: s(() => [
|
|
75
|
+
i(n(e(p)({
|
|
76
76
|
date: t.created_at,
|
|
77
77
|
format: "dateTime",
|
|
78
78
|
offsetType: "offsetted",
|
|
@@ -80,7 +80,7 @@ const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__ite
|
|
|
80
80
|
})), 1)
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
83
|
-
}, 1032, ["payment-method"])) :
|
|
83
|
+
}, 1032, ["payment-method"])) : D("", !0)
|
|
84
84
|
]),
|
|
85
85
|
_: 2
|
|
86
86
|
}, 1024))), 128))
|
|
@@ -89,5 +89,5 @@ const R = { class: "sv-payment-history" }, x = { class: "sv-payment-history__ite
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
export {
|
|
92
|
-
|
|
92
|
+
G as _
|
|
93
93
|
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { defineComponent as G, defineAsyncComponent as C, ref as S, computed as L, watch as z, openBlock as d, createElementBlock as P, Fragment as b, renderList as J, unref as l, createBlock as I, createCommentVNode as V, withCtx as K, createTextVNode as Q, toDisplayString as U } from "vue";
|
|
2
|
+
import { _ as W } from "./FormMessage.vue.es-Cjv358Ab.mjs";
|
|
3
|
+
import { a as X } from "./customElements-BTj4ii4f.mjs";
|
|
4
|
+
import { g as Z } from "./usePaymentFormHold-ByUZi3A-.mjs";
|
|
5
|
+
const T = (t) => {
|
|
6
|
+
var o;
|
|
7
|
+
return ((o = t.integration.payment_gateway) == null ? void 0 : o.variant) === "ADYEN";
|
|
8
|
+
}, q = (t) => {
|
|
9
|
+
var o;
|
|
10
|
+
return ((o = t.integration.payment_gateway) == null ? void 0 : o.variant) === "STRIPE";
|
|
11
|
+
}, D = ({
|
|
12
|
+
selectedIntegration: t,
|
|
13
|
+
paymentMethodOption: o
|
|
14
|
+
}) => {
|
|
15
|
+
var s, u;
|
|
16
|
+
return t === ((u = (s = o.integration) == null ? void 0 : s.payment_gateway) == null ? void 0 : u.variant);
|
|
17
|
+
}, M = (t, { excludeExpressPaymentMethods: o = !1 } = {}) => {
|
|
18
|
+
var s;
|
|
19
|
+
return T(t) ? Z(t, { excludeExpressPaymentMethods: o }).length > 0 : q(t) ? !!((s = t.integration.payment_gateway.stripe) != null && s.public_key) : !1;
|
|
20
|
+
}, te = (t, o = {}) => t.some(
|
|
21
|
+
(s) => M(s, o)
|
|
22
|
+
), ne = /* @__PURE__ */ G({
|
|
23
|
+
__name: "PaymentIntegrationForm",
|
|
24
|
+
props: {
|
|
25
|
+
customerId: { type: String },
|
|
26
|
+
variant: { type: String },
|
|
27
|
+
context: { type: Object },
|
|
28
|
+
paymentMethodOptions: { type: Array },
|
|
29
|
+
countryCode: { type: String },
|
|
30
|
+
invoiceId: { type: String },
|
|
31
|
+
amount: { type: Object },
|
|
32
|
+
selectedOption: { type: String },
|
|
33
|
+
openFirstPaymentMethod: { type: Boolean, default: !0 },
|
|
34
|
+
email: { type: String },
|
|
35
|
+
name: { type: String },
|
|
36
|
+
validateOnSubmit: { type: Function },
|
|
37
|
+
forceStorePaymentMethod: { type: Boolean },
|
|
38
|
+
storePaymentMethod: { type: Boolean, default: void 0 },
|
|
39
|
+
redirectsOnSuccess: { type: Boolean },
|
|
40
|
+
billingEntityName: { type: String }
|
|
41
|
+
},
|
|
42
|
+
emits: ["select", "payment-failed", "payment-success", "invalid", "submitting", "action-required", "ready"],
|
|
43
|
+
setup(t, { expose: o, emit: s }) {
|
|
44
|
+
const u = C(
|
|
45
|
+
() => import("./PaymentIntegrationFormStripe-BYdAkvLt.mjs").then(
|
|
46
|
+
(e) => e.default
|
|
47
|
+
)
|
|
48
|
+
), j = C(
|
|
49
|
+
() => import("./PaymentIntegrationFormAdyen-DqgDfO6K.mjs").then(
|
|
50
|
+
(e) => e.default
|
|
51
|
+
)
|
|
52
|
+
), c = t, m = s;
|
|
53
|
+
o({ submit: Y });
|
|
54
|
+
const { $t: H } = X(), h = S(), y = L(
|
|
55
|
+
() => {
|
|
56
|
+
var e, i;
|
|
57
|
+
return h.value ?? ((i = (e = c.paymentMethodOptions[0]) == null ? void 0 : e.integration.payment_gateway) == null ? void 0 : i.variant);
|
|
58
|
+
}
|
|
59
|
+
), w = S(/* @__PURE__ */ new Map()), g = S(!1), F = (e) => {
|
|
60
|
+
g.value = !1, h.value = e.paymentGatewayVariant, m("select", e);
|
|
61
|
+
}, $ = (e) => (i) => {
|
|
62
|
+
var n;
|
|
63
|
+
return w.value.set((n = e.integration.payment_gateway) == null ? void 0 : n.variant, i);
|
|
64
|
+
};
|
|
65
|
+
let r;
|
|
66
|
+
const v = /* @__PURE__ */ new Map(), E = (e) => r !== void 0 && r !== e;
|
|
67
|
+
function k(e, { claims: i }) {
|
|
68
|
+
let n = v.get(e);
|
|
69
|
+
return n || (n = async () => {
|
|
70
|
+
var B;
|
|
71
|
+
return E(e) || !await (((B = c.validateOnSubmit) == null ? void 0 : B.call(c)) ?? Promise.resolve(!0)) || E(e) ? !1 : (i && (r = e), !0);
|
|
72
|
+
}, v.set(e, n)), n;
|
|
73
|
+
}
|
|
74
|
+
z(
|
|
75
|
+
() => c.paymentMethodOptions.map(({ integration: e }) => e.id),
|
|
76
|
+
(e) => {
|
|
77
|
+
r !== void 0 && !e.includes(r) && (r = void 0), [...v.keys()].filter((i) => !e.includes(i)).forEach((i) => v.delete(i));
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
function f(e) {
|
|
81
|
+
r === e && (r = void 0);
|
|
82
|
+
}
|
|
83
|
+
const x = (e) => {
|
|
84
|
+
r = e, m("submitting");
|
|
85
|
+
}, A = (e, i) => {
|
|
86
|
+
f(e), m("payment-failed", i);
|
|
87
|
+
}, N = (e) => {
|
|
88
|
+
f(e), m("payment-success");
|
|
89
|
+
}, R = (e, i) => {
|
|
90
|
+
r !== void 0 && r !== e || (f(e), i === "NO_PAYMENT_METHOD" && (g.value = !0), m("invalid", i));
|
|
91
|
+
};
|
|
92
|
+
function Y() {
|
|
93
|
+
var i;
|
|
94
|
+
if (!y.value) {
|
|
95
|
+
g.value = !0, (i = c.validateOnSubmit) == null || i.call(c), m("invalid");
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const e = w.value.get(y.value);
|
|
99
|
+
if (!e) {
|
|
100
|
+
m("invalid");
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
e.submit();
|
|
104
|
+
}
|
|
105
|
+
return (e, i) => (d(), P(b, null, [
|
|
106
|
+
(d(!0), P(b, null, J(t.paymentMethodOptions, (n) => (d(), P(b, {
|
|
107
|
+
key: n.integration.id
|
|
108
|
+
}, [
|
|
109
|
+
l(T)(n) ? (d(), I(l(j), {
|
|
110
|
+
key: 0,
|
|
111
|
+
ref_for: !0,
|
|
112
|
+
ref: $(n),
|
|
113
|
+
context: t.context,
|
|
114
|
+
"payment-method-option-response-entry": n,
|
|
115
|
+
"country-code": t.countryCode,
|
|
116
|
+
"customer-id": t.customerId,
|
|
117
|
+
variant: t.variant,
|
|
118
|
+
amount: t.amount,
|
|
119
|
+
"invoice-id": t.invoiceId,
|
|
120
|
+
selected: t.openFirstPaymentMethod && l(D)({ selectedIntegration: y.value, paymentMethodOption: n }),
|
|
121
|
+
"validate-on-submit": k(n.integration.id, { claims: !1 }),
|
|
122
|
+
"force-store-payment-method": t.forceStorePaymentMethod,
|
|
123
|
+
"store-payment-method": t.storePaymentMethod,
|
|
124
|
+
"redirects-on-success": t.redirectsOnSuccess,
|
|
125
|
+
"billing-entity-name": t.billingEntityName,
|
|
126
|
+
onSelect: F,
|
|
127
|
+
onPaymentFailed: (a) => A(n.integration.id, a),
|
|
128
|
+
onPaymentSuccess: (a) => N(n.integration.id),
|
|
129
|
+
onInvalid: (a) => R(n.integration.id, a),
|
|
130
|
+
onSubmitting: (a) => x(n.integration.id),
|
|
131
|
+
onActionRequired: i[0] || (i[0] = (a) => e.$emit("action-required")),
|
|
132
|
+
onReady: i[1] || (i[1] = (a) => e.$emit("ready"))
|
|
133
|
+
}, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "validate-on-submit", "force-store-payment-method", "store-payment-method", "redirects-on-success", "billing-entity-name", "onPaymentFailed", "onPaymentSuccess", "onInvalid", "onSubmitting"])) : l(q)(n) ? (d(), I(l(u), {
|
|
134
|
+
key: 1,
|
|
135
|
+
ref_for: !0,
|
|
136
|
+
ref: $(n),
|
|
137
|
+
context: t.context,
|
|
138
|
+
"payment-method-option-response-entry": n,
|
|
139
|
+
"country-code": t.countryCode,
|
|
140
|
+
"customer-id": t.customerId,
|
|
141
|
+
variant: t.variant,
|
|
142
|
+
amount: t.amount,
|
|
143
|
+
"invoice-id": t.invoiceId,
|
|
144
|
+
selected: l(D)({ selectedIntegration: y.value, paymentMethodOption: n }),
|
|
145
|
+
email: t.email,
|
|
146
|
+
name: t.name,
|
|
147
|
+
"validate-on-submit": k(n.integration.id, { claims: !0 }),
|
|
148
|
+
"force-store-payment-method": t.forceStorePaymentMethod,
|
|
149
|
+
"store-payment-method": t.storePaymentMethod,
|
|
150
|
+
"redirects-on-success": t.redirectsOnSuccess,
|
|
151
|
+
"billing-entity-name": t.billingEntityName,
|
|
152
|
+
collapsed: !t.openFirstPaymentMethod,
|
|
153
|
+
onSelect: F,
|
|
154
|
+
onPaymentFailed: (a) => A(n.integration.id, a),
|
|
155
|
+
onPaymentSuccess: (a) => N(n.integration.id),
|
|
156
|
+
onInvalid: (a) => R(n.integration.id),
|
|
157
|
+
onSubmitting: (a) => x(n.integration.id),
|
|
158
|
+
onReady: i[2] || (i[2] = (a) => e.$emit("ready"))
|
|
159
|
+
}, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "email", "name", "validate-on-submit", "force-store-payment-method", "store-payment-method", "redirects-on-success", "billing-entity-name", "collapsed", "onPaymentFailed", "onPaymentSuccess", "onInvalid", "onSubmitting"])) : V("", !0)
|
|
160
|
+
], 64))), 128)),
|
|
161
|
+
g.value ? (d(), I(l(W), {
|
|
162
|
+
key: 0,
|
|
163
|
+
variant: "error",
|
|
164
|
+
class: "mt-2"
|
|
165
|
+
}, {
|
|
166
|
+
default: K(() => [
|
|
167
|
+
Q(U(l(H)({
|
|
168
|
+
defaultMessage: "Select a payment method",
|
|
169
|
+
id: "payment_integration_form.select_payment_method_error",
|
|
170
|
+
description: "Error shown when no payment method is selected"
|
|
171
|
+
})), 1)
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})) : V("", !0)
|
|
175
|
+
], 64));
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
export {
|
|
179
|
+
ne as _,
|
|
180
|
+
te as h
|
|
181
|
+
};
|