@solvimon/solvimon-web 0.1.0-alpha.3 → 0.1.0-alpha.30
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 +440 -52
- package/dist/Alert.vue.es-ZPG49yR_.mjs +158 -0
- package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/AuthProvider.handle-SRR_04XS.mjs +50 -0
- package/dist/Avatar.vue.es-geDQsZwu.mjs +81 -0
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +58 -0
- package/dist/Button.vue.es-j7iYlqtJ.mjs +368 -0
- package/dist/ChargeOnDemandModal-CR01PkP_.mjs +964 -0
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +4169 -0
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +828 -0
- package/dist/Chip.vue.es-Dxx_0dte.mjs +128 -0
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
- package/dist/ContextMenu.vue.es-BJO4U47Q.mjs +572 -0
- package/dist/CustomerBillingInformation.vue.es-CmNpqcBw.mjs +153 -0
- package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +136 -0
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +397 -0
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +2936 -0
- package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
- package/dist/DividerText.vue.es-BusbyeAI.mjs +56 -0
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs +55 -0
- package/dist/ErrorNotification.vue.es-F068p7PY.mjs +31 -0
- package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
- package/dist/FormMessage.vue.es-CwMQpIAW.mjs +39 -0
- package/dist/IconButton.vue.es-D8DtBW9i.mjs +56 -0
- package/dist/IconTitle.vue.es-6VJtjJX2.mjs +103 -0
- package/dist/Input.vue.es-BLyHcmu4.mjs +250 -0
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs +93 -0
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs +56 -0
- package/dist/InvoicePreview.vue.es-Cpf66_xV.mjs +286 -0
- package/dist/InvoicePricingClauseChip.vue.es-CDrAE901.mjs +124 -0
- package/dist/Label.vue.es-es7ZUBSP.mjs +113 -0
- package/dist/Modal.vue.es-eeR9FmvQ.mjs +393 -0
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +441 -0
- package/dist/PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs +48 -0
- package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs +250 -0
- package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs +51 -0
- package/dist/PaymentHistoryBlock-CN42ewCn.mjs +4 -0
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs +93 -0
- package/dist/PaymentIntegrationForm-D3Ye7LZ5.mjs +4 -0
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +181 -0
- package/dist/PaymentIntegrationFormAdyen-Fm-diCCO.mjs +926 -0
- package/dist/PaymentIntegrationFormStripe-BANBL6za.mjs +758 -0
- package/dist/PaymentMethod.vue.es-t3-VyoE8.mjs +643 -0
- package/dist/PaymentMethodForm-CqP3GoNj.mjs +4 -0
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +161 -0
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs +169 -0
- package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs +174 -0
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +791 -0
- package/dist/PortalLinkUnverified-Cp60_kRJ.mjs +52 -0
- package/dist/PortalNotAvailable-DzSQnfzw.mjs +25 -0
- package/dist/PricingGroupRangeInput.vue.es-Srq_3cga.mjs +578 -0
- package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs +177 -0
- package/dist/RadioGroupExtended.vue.es-BbBMDf6l.mjs +176 -0
- package/dist/Section.vue.es-Oqn1wGPZ.mjs +72 -0
- package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs +60 -0
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +418 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D7MFjvrP.mjs +32 -0
- package/dist/StepInput.vue.es-ieh4EuJ7.mjs +213 -0
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +1044 -0
- package/dist/SubscriptionSchedules-DMxX3GpK.mjs +4 -0
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +5200 -0
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +203 -0
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs +319 -0
- package/dist/TooltipParagraph.vue.es-BES3zsYN.mjs +132 -0
- package/dist/TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs +31 -0
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +35 -0
- package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
- package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
- package/dist/addonQuantity-CCVaA3e-.mjs +758 -0
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/adyen-Bugab0JE.mjs +4 -0
- package/dist/adyenSdk-B01MB9Ia.mjs +58 -0
- package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
- package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/api.es-qgvzNMU-.mjs +43 -0
- package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
- package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
- package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
- package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
- package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
- package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
- package/dist/cn.es-B8acFrov.mjs +2936 -0
- package/dist/comparators.es-C8rHpb70.mjs +157 -0
- package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
- package/dist/components/BillingInformation/BillingInformation.mjs +82 -0
- package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +510 -0
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +87 -0
- package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
- package/dist/components/Invoice/Invoice.mjs +2930 -0
- package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +110 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -0
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +68 -0
- package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
- package/dist/components/InvoicesList/InvoicesList.mjs +88 -0
- package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
- package/dist/components/PaymentHistory/PaymentHistory.mjs +118 -0
- package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +98 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +88 -0
- package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +108 -0
- package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
- package/dist/components/WalletBalances/WalletBalances.mjs +114 -0
- package/dist/configuration-BytDBAWs.mjs +14 -0
- package/dist/core/action-request.types.d.ts +1 -58
- package/dist/core/configuration.d.ts +1 -3
- package/dist/core/index.d.ts +1 -10
- package/dist/core/index.mjs +151 -0
- package/dist/core/registry.ce.d.ts +1 -2
- package/dist/core/registry.d.ts +1 -6
- package/dist/core/types.d.ts +1 -111
- package/dist/countryData.es-BegoD-cZ.mjs +252 -0
- package/dist/customElements-DK4GKNJG.mjs +5072 -0
- package/dist/customer-lf6S5DBR.mjs +31 -0
- package/dist/customer.es-DQKl6wFt.mjs +24 -0
- package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
- package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
- package/dist/de-DE-Cyj_NtiI.mjs +435 -0
- package/dist/de-DE-UJ6X6jXu.mjs +306 -0
- package/dist/diners.svg.es-BP9enCow.mjs +4 -0
- package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
- package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
- package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
- package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
- package/dist/floating-ui.vue.es-BvAf8-si.mjs +1003 -0
- package/dist/formControl-BZQLHnOO.mjs +749 -0
- package/dist/formatting.es-RclXHhKo.mjs +61 -0
- package/dist/fr-FR-CRFoWQ7J.mjs +435 -0
- package/dist/fr-FR-Cvvbkwlj.mjs +307 -0
- package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
- package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +8 -0
- package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
- package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
- package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
- package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +4 -0
- package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
- package/dist/index-CTwLxoOS.mjs +7250 -0
- package/dist/index.d.ts +1 -15
- package/dist/index.es-BrVTOW5D.mjs +345 -0
- package/dist/index.mjs +42 -0
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/invoices-DdREPDXV.mjs +123 -0
- package/dist/it-IT-DObZEc-U.mjs +435 -0
- package/dist/it-IT-DnJP5URH.mjs +306 -0
- package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
- package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
- package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
- package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
- package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
- package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
- package/dist/nl-NL-C02xHilF.mjs +435 -0
- package/dist/nl-NL-q9xfTZF0.mjs +321 -0
- package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
- package/dist/object.es-8aLDIncs.mjs +12 -0
- package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
- package/dist/paymentFailure-QZdZHBhf.mjs +47 -0
- package/dist/paymentMethods-8w-ccfY_.mjs +77 -0
- package/dist/paymentMethods-Goa25rTs.mjs +61 -0
- package/dist/paymentOutcome-B6sW1eCV.mjs +22 -0
- package/dist/payments-CKpU1K3t.mjs +68 -0
- package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
- package/dist/pricing-CEaZGgKe.mjs +29 -0
- package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
- package/dist/pricingItem.es-bCPArbTa.mjs +55 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +233 -0
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +38 -0
- package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
- package/dist/sanitization.es-C6dbuxUJ.mjs +4 -0
- package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
- package/dist/screens/Checkout/Checkout.mjs +5 -0
- package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +201 -0
- package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -0
- package/dist/screens/PayInvoice/PayInvoice.mjs +865 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -0
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +224 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -0
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +5 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -0
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +624 -0
- package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/slots.es-BA4MyEAa.mjs +5 -0
- package/dist/sorting.es-C0pdMgX0.mjs +77 -0
- package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
- package/dist/subscription-BwzkagDI.mjs +212 -0
- package/dist/subscriptions-B5bH8hsI.mjs +66 -0
- package/dist/taxId.es-e6NEvprh.mjs +243 -0
- package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
- package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
- package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
- package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +21 -0
- package/dist/types/components/checkout/CheckoutTitle.types.d.ts +20 -0
- package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
- package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +10 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +22 -0
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +48 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +10 -0
- 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/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +78 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +11 -0
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +25 -0
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +23 -0
- package/dist/types/components/payments/PayButton/PayButton.types.d.ts +12 -0
- package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +9 -0
- package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +11 -0
- package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +137 -0
- package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +68 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +49 -0
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
- package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +13 -0
- package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.handle.d.ts +17 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +32 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +20 -0
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +16 -0
- package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +1 -0
- package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +3 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
- package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
- package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.lib.d.ts +7 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +12 -0
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +17 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +34 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +81 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
- package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +10 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +16 -0
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +26 -0
- package/dist/types/components/providers/RequiredPropertiesGuard/RequiredPropertiesGuard.vue.d.ts +17 -0
- package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +13 -0
- package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +14 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +14 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
- package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +14 -0
- package/dist/types/components/providers/index.d.ts +9 -0
- package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
- package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
- package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
- package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +20 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
- package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +9 -0
- package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +56 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +16 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +6 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +6 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +16 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +22 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +20 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +19 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +12 -0
- package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
- package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +53 -0
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
- package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
- package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +25 -0
- package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +5 -0
- package/dist/types/composables/useInvoicePreview.types.d.ts +10 -0
- package/dist/types/config/config.beta.d.ts +2 -0
- package/dist/types/config/config.dev.d.ts +2 -0
- package/dist/types/config/config.live.d.ts +2 -0
- package/dist/types/config/internalEnvironments.d.ts +11 -0
- package/dist/types/config/internalEnvironments.published.d.ts +7 -0
- package/dist/types/config/lib.d.ts +6 -0
- package/dist/types/config/types.d.ts +13 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +9 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +21 -0
- package/dist/types/public/components/CustomerShippingAddresses/CustomerShippingAddresses.types.d.ts +12 -0
- package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
- package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
- package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +25 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +6 -0
- package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +7 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +15 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +39 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +6 -0
- package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +8 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +45 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +6 -0
- package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +7 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +19 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +3 -0
- package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
- package/dist/types/public/core/action-request.types.d.ts +60 -0
- package/dist/types/public/core/configuration.d.ts +2 -0
- package/dist/types/public/core/index.d.ts +14 -0
- package/dist/types/public/core/registry.ce.d.ts +8 -0
- package/dist/types/public/core/registry.d.ts +3 -0
- package/dist/types/public/core/types.d.ts +130 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +11 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +27 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
- package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
- package/dist/types/public/screens/types.d.ts +4 -0
- package/dist/types/public/types/index.d.ts +23 -0
- package/dist/types/services/invoices.types.d.ts +26 -0
- package/dist/types/services/paymentMethods.types.d.ts +25 -0
- package/dist/types/services/requests.types.d.ts +41 -0
- package/dist/types/translations/supported.d.ts +1 -0
- package/dist/types/types/EntryBaseProps.d.ts +10 -0
- package/dist/types/types/errors.d.ts +13 -0
- 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 +118 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +82 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +43 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +47 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +51 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +375 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +379 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyVariable.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +127 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +132 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +134 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +135 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +111 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +94 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +47 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +24 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +62 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +46 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +128 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +81 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ShippingAddress.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +50 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +222 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
- package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
- 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/unionpay.svg.es-me7q-nTI.mjs +4 -0
- package/dist/useActionDispatchProvider-ChAHdwR8.mjs +9 -0
- package/dist/useCustomer-CTMhg1nd.mjs +20 -0
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +1173 -0
- package/dist/useIncrementalLoading-CBVutPH8.mjs +60 -0
- package/dist/useInvoiceData-qUGbBAQK.mjs +21 -0
- package/dist/useInvoicesList-wJvZAJpW.mjs +674 -0
- package/dist/useLazyFloating.es-CycqRyeb.mjs +68 -0
- package/dist/useLoadInitialData-UvfYXgbi.mjs +15 -0
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +181 -0
- package/dist/usePaymentMethodAvailability-35l4pWdH.mjs +117 -0
- package/dist/usePaymentMethods-De7hlLHo.mjs +21 -0
- package/dist/usePayments-hWS7fnOx.mjs +323 -0
- package/dist/usePortal-DUfD6hrA.mjs +7 -0
- package/dist/useService-BwzIBIRp.mjs +56 -0
- package/dist/useTimePeriod.es-BUorDLVK.mjs +93 -0
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
- package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
- package/dist/wallets.es-eH2C2ygn.mjs +102 -0
- package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
- package/package.json +105 -74
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js +0 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs +0 -56
- package/dist/ContentWithAsideLayout-CRsFr9TH.mjs +0 -42
- package/dist/ContentWithAsideLayout-DczcgSrt.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js +0 -1
- package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs +0 -85
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs +0 -90
- package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js +0 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs +0 -6568
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +0 -1
- package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +0 -75
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs +0 -63
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs +0 -373
- package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js +0 -1
- package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
- package/dist/_Uint8Array-DxISR7XF.js +0 -1
- package/dist/auto-DzZuCneB.mjs +0 -14387
- package/dist/auto-PpnAChnH.js +0 -6
- package/dist/cloneDeep-DranHQkY.js +0 -1
- package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
- package/dist/component-DEo_ndpK.mjs +0 -58668
- package/dist/component-XHQYFLA_.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
- package/dist/components/BillingInformation/BillingInformation.es.js +0 -98
- package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
- package/dist/components/BillingInformationForm/BillingInformationForm.es.js +0 -584
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +0 -134
- package/dist/components/Invoice/Invoice.cjs.js +0 -1
- package/dist/components/Invoice/Invoice.es.js +0 -582
- package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
- package/dist/components/InvoiceDetails/InvoiceDetails.es.js +0 -129
- package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
- package/dist/components/InvoicesList/InvoicesList.es.js +0 -104
- package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
- package/dist/components/PaymentHistory/PaymentHistory.es.js +0 -133
- package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
- package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +0 -238
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +0 -152
- package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
- package/dist/components/SubscriptionsList/SubscriptionsList.es.js +0 -134
- package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
- package/dist/components/WalletBalances/WalletBalances.es.js +0 -120
- package/dist/core/index.cjs.js +0 -1
- package/dist/core/index.es.js +0 -6
- package/dist/index-2jo9BSPM.js +0 -1
- package/dist/index-BFZ0dPh9.mjs +0 -179
- package/dist/index-CWSXne1Q.js +0 -1
- package/dist/index-CzL1ZcGi.mjs +0 -85
- package/dist/index-D3v7hAtc.mjs +0 -253
- package/dist/index-DRdBmZ2-.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -45
- package/dist/invoices-BW1notiX.js +0 -1
- package/dist/invoices-M5oYVch6.mjs +0 -84
- package/dist/paymentMethods-BX80t2zk.js +0 -1
- package/dist/paymentMethods-CqKUfc3w.mjs +0 -65
- package/dist/payments-BHv4hCeJ.js +0 -1
- package/dist/payments-CosaPZwo.mjs +0 -47
- package/dist/registry-BwKEYOf7.js +0 -1
- package/dist/registry-Cag1Jj7P.mjs +0 -143
- package/dist/screens/Checkout/Checkout.cjs.js +0 -1
- package/dist/screens/Checkout/Checkout.es.js +0 -5142
- package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
- package/dist/screens/CustomerOverview/CustomerOverview.es.js +0 -136
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
- package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1012
- package/dist/solvimon-web.css +0 -1
- package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
- package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
- package/dist/subscriptions-Bs4DIE8f.mjs +0 -74
- package/dist/subscriptions-CnxvsBXd.js +0 -1
- package/dist/useActionDispatchProvider-CgRcOqv3.mjs +0 -12
- package/dist/useActionDispatchProvider-Cru69mAl.js +0 -1
- package/dist/useCustomer-B0NK96dA.js +0 -1
- package/dist/useCustomer-DlcjY3fP.mjs +0 -45
- package/dist/useCustomerPaymentMethodOptions-BzEquyUV.mjs +0 -169
- package/dist/useCustomerPaymentMethodOptions-C-8BLzqb.js +0 -1
- package/dist/useIncrementalLoading-C7ToTmZK.mjs +0 -71
- package/dist/useIncrementalLoading-D60Vttil.js +0 -1
- package/dist/useInvoiceData-CcueV3We.mjs +0 -51
- package/dist/useInvoiceData-DstXfI7t.js +0 -1
- package/dist/useInvoicesList-CXng3aUm.mjs +0 -294
- package/dist/useInvoicesList-DmzjgMlW.js +0 -1
- package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
- package/dist/useLoadInitialData-Dm48tlSO.mjs +0 -13
- package/dist/usePaymentMethods-DCGVRXA4.js +0 -1
- package/dist/usePaymentMethods-Db-1R6rI.mjs +0 -16
- package/dist/useService-B4qv5N2D.mjs +0 -281
- package/dist/useService-D-CUtlp3.js +0 -1
- package/dist/useWalletBalanceItems-BZyiAhcV.js +0 -1
- package/dist/useWalletBalanceItems-CHkLaccm.mjs +0 -105
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
import { defineComponent as ce, openBlock as i, createElementBlock as k, normalizeClass as G, createCommentVNode as M, useModel as Ee, computed as o, createBlock as h, createElementVNode as N, createVNode as b, withCtx as c, createTextVNode as v, toDisplayString as p, unref as n, Fragment as We, renderList as qe, renderSlot as je, mergeModels as Ae, ref as D, watch as J, reactive as Ke } from "vue";
|
|
2
|
+
import { u as Xe, c as Pe } from "./formControl-BZQLHnOO.mjs";
|
|
3
|
+
import { f as Je } from "./formatting.es-RclXHhKo.mjs";
|
|
4
|
+
import { _ as P } from "./Button.vue.es-j7iYlqtJ.mjs";
|
|
5
|
+
import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-uYv45FGH.mjs";
|
|
6
|
+
import { _ as De } from "./InvoicePreview.vue.es-Cpf66_xV.mjs";
|
|
7
|
+
import { _ as ta } from "./PaymentMethod.vue.es-t3-VyoE8.mjs";
|
|
8
|
+
import { a as Te, d as $, e as Oe, f as ke } from "./customElements-DK4GKNJG.mjs";
|
|
9
|
+
import { _ as na } from "./ErrorNotification.vue.es-F068p7PY.mjs";
|
|
10
|
+
import { _ as Ce } from "./FormMessage.vue.es-CwMQpIAW.mjs";
|
|
11
|
+
import { _ as oa } from "./RadioGroupExtended.vue.es-BbBMDf6l.mjs";
|
|
12
|
+
import { _ as da } from "./StepInput.vue.es-ieh4EuJ7.mjs";
|
|
13
|
+
import { _ as ia } from "./IconButton.vue.es-D8DtBW9i.mjs";
|
|
14
|
+
import { _ as ra } from "./useLazyFloating.es-CycqRyeb.mjs";
|
|
15
|
+
import { _ as sa } from "./Section.vue.es-Oqn1wGPZ.mjs";
|
|
16
|
+
import { g as la, b as ca, c as ma, d as ua, e as ha, i as va } from "./CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs";
|
|
17
|
+
import { c as pa } from "./invoices-DdREPDXV.mjs";
|
|
18
|
+
import { i as ga } from "./invoiceState-BJVHaKs7.mjs";
|
|
19
|
+
import { _ as fa } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs";
|
|
20
|
+
const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toUpperCase()), _a = (e) => {
|
|
21
|
+
var y, d, _, a, E, s;
|
|
22
|
+
const g = [];
|
|
23
|
+
switch (e.type) {
|
|
24
|
+
case "CARD":
|
|
25
|
+
g.push(
|
|
26
|
+
e.card.brand && V(e.card.brand),
|
|
27
|
+
e.card.last_four_digits
|
|
28
|
+
);
|
|
29
|
+
break;
|
|
30
|
+
case "ONLINE_BANKING":
|
|
31
|
+
g.push(
|
|
32
|
+
((y = e.online_banking) == null ? void 0 : y.variant) && V(e.online_banking.variant),
|
|
33
|
+
(d = e.online_banking) == null ? void 0 : d.owner_name
|
|
34
|
+
);
|
|
35
|
+
break;
|
|
36
|
+
case "DIRECT_DEBIT":
|
|
37
|
+
g.push(
|
|
38
|
+
((_ = e.direct_debit) == null ? void 0 : _.variant) && V(e.direct_debit.variant),
|
|
39
|
+
(a = e.direct_debit) == null ? void 0 : a.owner_name
|
|
40
|
+
);
|
|
41
|
+
break;
|
|
42
|
+
case "BUY_NOW_PAY_LATER":
|
|
43
|
+
g.push(
|
|
44
|
+
((E = e.buy_now_pay_later) == null ? void 0 : E.variant) && V(e.buy_now_pay_later.variant)
|
|
45
|
+
);
|
|
46
|
+
break;
|
|
47
|
+
case "DIGITAL_WALLET":
|
|
48
|
+
g.push(
|
|
49
|
+
((s = e.digital_wallet) == null ? void 0 : s.variant) && V(e.digital_wallet.variant)
|
|
50
|
+
);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
return g.filter(Boolean).join(" ") || V(e.type);
|
|
54
|
+
}, ya = /* @__PURE__ */ ce({
|
|
55
|
+
__name: "Placeholder",
|
|
56
|
+
props: {
|
|
57
|
+
loading: { type: Boolean },
|
|
58
|
+
shade: { default: "default" }
|
|
59
|
+
},
|
|
60
|
+
setup(e) {
|
|
61
|
+
return (y, d) => (i(), k("div", {
|
|
62
|
+
class: G(["rounded", {
|
|
63
|
+
"bg-gray-300": e.shade === "default",
|
|
64
|
+
"bg-gray-200": e.shade === "light"
|
|
65
|
+
}])
|
|
66
|
+
}, [
|
|
67
|
+
e.loading ? (i(), k("div", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: G(["absolute inset-0", { "animated-gradient": e.loading }])
|
|
70
|
+
}, null, 2)) : M("", !0)
|
|
71
|
+
], 2));
|
|
72
|
+
}
|
|
73
|
+
}), le = /* @__PURE__ */ ra(ya, [["__scopeId", "data-v-11677ac2"]]), ba = { class: "flex flex-col gap-6" }, wa = {
|
|
74
|
+
class: "flex flex-col gap-3",
|
|
75
|
+
"aria-labelledby": "charge-on-demand-items-heading"
|
|
76
|
+
}, Ia = { class: "flex flex-col gap-2" }, Ma = { class: "flex min-w-0 grow flex-col" }, Ea = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "flex shrink-0 items-center gap-1"
|
|
79
|
+
}, Aa = { class: "w-32" }, Pa = {
|
|
80
|
+
class: "flex flex-col gap-3",
|
|
81
|
+
"aria-labelledby": "charge-on-demand-preview-heading"
|
|
82
|
+
}, ka = {
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "flex flex-col gap-3",
|
|
85
|
+
"aria-busy": "true",
|
|
86
|
+
"data-testid": "charge-on-demand-preview-loading"
|
|
87
|
+
}, Ca = {
|
|
88
|
+
class: "flex flex-col gap-3",
|
|
89
|
+
"aria-labelledby": "charge-on-demand-payment-heading"
|
|
90
|
+
}, Da = {
|
|
91
|
+
key: 1,
|
|
92
|
+
"data-testid": "charge-on-demand-no-payment-methods"
|
|
93
|
+
}, Ta = /* @__PURE__ */ ce({
|
|
94
|
+
__name: "ChargeOnDemandEditor",
|
|
95
|
+
props: /* @__PURE__ */ Ae({
|
|
96
|
+
items: {},
|
|
97
|
+
preview: { default: void 0 },
|
|
98
|
+
isPreviewLoading: { type: Boolean, default: !1 },
|
|
99
|
+
paymentMethods: {},
|
|
100
|
+
canAddPaymentMethod: { type: Boolean, default: !1 },
|
|
101
|
+
errors: { default: void 0 },
|
|
102
|
+
disabled: { type: Boolean, default: !1 }
|
|
103
|
+
}, {
|
|
104
|
+
selection: { required: !0 },
|
|
105
|
+
selectionModifiers: {},
|
|
106
|
+
paymentMethodId: {},
|
|
107
|
+
paymentMethodIdModifiers: {}
|
|
108
|
+
}),
|
|
109
|
+
emits: /* @__PURE__ */ Ae(["add-payment-method"], ["update:selection", "update:paymentMethodId"]),
|
|
110
|
+
setup(e) {
|
|
111
|
+
const y = e, d = Ee(e, "selection"), _ = Ee(e, "paymentMethodId"), { $t: a } = Te(), E = (t) => {
|
|
112
|
+
d.value = [
|
|
113
|
+
...d.value,
|
|
114
|
+
t.priceType === "FLAT" ? { pricingItemId: t.pricingItemId, units: t.defaultUnits } : { pricingItemId: t.pricingItemId }
|
|
115
|
+
];
|
|
116
|
+
}, s = (t) => {
|
|
117
|
+
d.value = d.value.filter(
|
|
118
|
+
({ pricingItemId: f }) => f !== t.pricingItemId
|
|
119
|
+
);
|
|
120
|
+
}, g = (t, f) => {
|
|
121
|
+
!Number.isInteger(f) || f < 1 || (d.value = d.value.map(
|
|
122
|
+
(A) => A.pricingItemId === t.pricingItemId ? { ...A, units: f } : A
|
|
123
|
+
));
|
|
124
|
+
}, { getPriceLabel: w } = Qe(), O = o(
|
|
125
|
+
() => new Map(d.value.map((t) => [t.pricingItemId, t]))
|
|
126
|
+
), x = o(
|
|
127
|
+
() => y.items.map((t) => {
|
|
128
|
+
var f, A;
|
|
129
|
+
return {
|
|
130
|
+
item: t,
|
|
131
|
+
selected: O.value.get(t.pricingItemId),
|
|
132
|
+
error: (A = (f = y.errors) == null ? void 0 : f.items) == null ? void 0 : A[t.pricingItemId],
|
|
133
|
+
priceLabel: w(t)
|
|
134
|
+
};
|
|
135
|
+
})
|
|
136
|
+
), u = o(
|
|
137
|
+
() => new Map(
|
|
138
|
+
y.paymentMethods.map((t) => [t.id, t])
|
|
139
|
+
)
|
|
140
|
+
), T = o(
|
|
141
|
+
() => y.paymentMethods.map((t) => ({
|
|
142
|
+
label: _a(t),
|
|
143
|
+
value: t.id
|
|
144
|
+
}))
|
|
145
|
+
);
|
|
146
|
+
return (t, f) => {
|
|
147
|
+
var A, R, W;
|
|
148
|
+
return i(), k("div", ba, [
|
|
149
|
+
(A = e.errors) != null && A.form ? (i(), h(na, {
|
|
150
|
+
key: 0,
|
|
151
|
+
description: e.errors.form
|
|
152
|
+
}, null, 8, ["description"])) : M("", !0),
|
|
153
|
+
N("section", wa, [
|
|
154
|
+
b($, {
|
|
155
|
+
id: "charge-on-demand-items-heading",
|
|
156
|
+
tag: "h3",
|
|
157
|
+
variant: "label",
|
|
158
|
+
"no-spacing": ""
|
|
159
|
+
}, {
|
|
160
|
+
default: c(() => [
|
|
161
|
+
v(p(n(a)({
|
|
162
|
+
defaultMessage: "Items",
|
|
163
|
+
description: "Heading of the list of on-demand items that can be ordered",
|
|
164
|
+
id: "charge_on_demand.items.heading"
|
|
165
|
+
})), 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
N("ul", Ia, [
|
|
170
|
+
(i(!0), k(We, null, qe(x.value, ({ item: m, selected: C, error: S, priceLabel: q }) => (i(), k("li", {
|
|
171
|
+
key: m.pricingItemId,
|
|
172
|
+
class: "flex flex-col gap-1",
|
|
173
|
+
"data-testid": "charge-on-demand-item"
|
|
174
|
+
}, [
|
|
175
|
+
N("div", {
|
|
176
|
+
class: G(["flex items-center gap-4 rounded-lg border px-4 py-3", {
|
|
177
|
+
"border-red-600": S,
|
|
178
|
+
"border-primary-600": !S && C,
|
|
179
|
+
"border-gray-300": !S && !C
|
|
180
|
+
}])
|
|
181
|
+
}, [
|
|
182
|
+
N("div", Ma, [
|
|
183
|
+
b($, {
|
|
184
|
+
tag: "span",
|
|
185
|
+
weight: "semibold",
|
|
186
|
+
"no-spacing": ""
|
|
187
|
+
}, {
|
|
188
|
+
default: c(() => [
|
|
189
|
+
v(p(m.name), 1)
|
|
190
|
+
]),
|
|
191
|
+
_: 2
|
|
192
|
+
}, 1024),
|
|
193
|
+
q ? (i(), h($, {
|
|
194
|
+
key: 0,
|
|
195
|
+
tag: "span",
|
|
196
|
+
variant: "body-sm",
|
|
197
|
+
color: "secondary",
|
|
198
|
+
"no-spacing": ""
|
|
199
|
+
}, {
|
|
200
|
+
default: c(() => [
|
|
201
|
+
v(p(q), 1)
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, 1024)) : M("", !0)
|
|
205
|
+
]),
|
|
206
|
+
m.priceType === "FLAT" && C ? (i(), k("div", Ea, [
|
|
207
|
+
N("div", Aa, [
|
|
208
|
+
b(da, {
|
|
209
|
+
"model-value": C.units ?? m.defaultUnits,
|
|
210
|
+
"initial-value": m.defaultUnits,
|
|
211
|
+
min: 1,
|
|
212
|
+
name: `charge-on-demand-units-${m.pricingItemId}`,
|
|
213
|
+
disabled: e.disabled,
|
|
214
|
+
size: "sm",
|
|
215
|
+
"onUpdate:modelValue": (F) => g(m, F)
|
|
216
|
+
}, null, 8, ["model-value", "initial-value", "name", "disabled", "onUpdate:modelValue"])
|
|
217
|
+
]),
|
|
218
|
+
b(ia, {
|
|
219
|
+
type: "button",
|
|
220
|
+
icon: "close",
|
|
221
|
+
intent: "subtle",
|
|
222
|
+
size: "sm",
|
|
223
|
+
disabled: e.disabled,
|
|
224
|
+
tooltip: n(a)({
|
|
225
|
+
defaultMessage: "Remove",
|
|
226
|
+
description: "Removes an on-demand item from the order",
|
|
227
|
+
id: "charge_on_demand.item.remove"
|
|
228
|
+
}),
|
|
229
|
+
onClick: (F) => s(m)
|
|
230
|
+
}, null, 8, ["disabled", "tooltip", "onClick"])
|
|
231
|
+
])) : C ? (i(), h(P, {
|
|
232
|
+
key: 1,
|
|
233
|
+
type: "button",
|
|
234
|
+
intent: "secondary",
|
|
235
|
+
size: "sm",
|
|
236
|
+
"icon-prefix": "check",
|
|
237
|
+
"aria-pressed": !0,
|
|
238
|
+
disabled: e.disabled,
|
|
239
|
+
onClick: (F) => s(m)
|
|
240
|
+
}, {
|
|
241
|
+
default: c(() => [
|
|
242
|
+
v(p(n(a)({
|
|
243
|
+
defaultMessage: "Added",
|
|
244
|
+
description: "Label of an on-demand item that is in the order; clicking it removes the item",
|
|
245
|
+
id: "charge_on_demand.item.added"
|
|
246
|
+
})), 1)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["disabled", "onClick"])) : (i(), h(P, {
|
|
250
|
+
key: 2,
|
|
251
|
+
type: "button",
|
|
252
|
+
intent: "secondary",
|
|
253
|
+
size: "sm",
|
|
254
|
+
"icon-prefix": "add",
|
|
255
|
+
"aria-pressed": m.priceType === "FIXED" ? !1 : void 0,
|
|
256
|
+
disabled: e.disabled,
|
|
257
|
+
onClick: (F) => E(m)
|
|
258
|
+
}, {
|
|
259
|
+
default: c(() => [
|
|
260
|
+
v(p(n(a)({
|
|
261
|
+
defaultMessage: "Add",
|
|
262
|
+
description: "Adds an on-demand item to the order",
|
|
263
|
+
id: "charge_on_demand.item.add"
|
|
264
|
+
})), 1)
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}, 8, ["aria-pressed", "disabled", "onClick"]))
|
|
268
|
+
], 2),
|
|
269
|
+
S ? (i(), h(Ce, {
|
|
270
|
+
key: 0,
|
|
271
|
+
message: S
|
|
272
|
+
}, null, 8, ["message"])) : M("", !0)
|
|
273
|
+
]))), 128))
|
|
274
|
+
])
|
|
275
|
+
]),
|
|
276
|
+
N("section", Pa, [
|
|
277
|
+
b($, {
|
|
278
|
+
id: "charge-on-demand-preview-heading",
|
|
279
|
+
tag: "h3",
|
|
280
|
+
variant: "label",
|
|
281
|
+
"no-spacing": ""
|
|
282
|
+
}, {
|
|
283
|
+
default: c(() => [
|
|
284
|
+
v(p(n(a)({
|
|
285
|
+
defaultMessage: "You will pay",
|
|
286
|
+
description: "Heading of the invoice preview of the on-demand order",
|
|
287
|
+
id: "charge_on_demand.preview.heading"
|
|
288
|
+
})), 1)
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
}),
|
|
292
|
+
d.value.length === 0 ? (i(), h($, {
|
|
293
|
+
key: 0,
|
|
294
|
+
variant: "body-sm",
|
|
295
|
+
tag: "p",
|
|
296
|
+
color: "subtle",
|
|
297
|
+
"no-spacing": "",
|
|
298
|
+
"data-testid": "charge-on-demand-preview-empty"
|
|
299
|
+
}, {
|
|
300
|
+
default: c(() => [
|
|
301
|
+
v(p(n(a)({
|
|
302
|
+
defaultMessage: "Add an item to see what you'll pay.",
|
|
303
|
+
description: "Shown instead of the invoice preview while no item is added",
|
|
304
|
+
id: "charge_on_demand.preview.empty"
|
|
305
|
+
})), 1)
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
})) : e.isPreviewLoading && !e.preview ? (i(), k("div", ka, [
|
|
309
|
+
b(le, {
|
|
310
|
+
loading: "",
|
|
311
|
+
class: "relative h-4 w-2/3 overflow-hidden"
|
|
312
|
+
}),
|
|
313
|
+
b(le, {
|
|
314
|
+
loading: "",
|
|
315
|
+
class: "relative h-4 w-1/2 overflow-hidden"
|
|
316
|
+
}),
|
|
317
|
+
b(le, {
|
|
318
|
+
loading: "",
|
|
319
|
+
class: "relative h-5 w-1/3 overflow-hidden"
|
|
320
|
+
})
|
|
321
|
+
])) : e.preview ? (i(), h(De, {
|
|
322
|
+
key: 2,
|
|
323
|
+
invoice: e.preview,
|
|
324
|
+
"is-customer-facing": ""
|
|
325
|
+
}, null, 8, ["invoice"])) : M("", !0)
|
|
326
|
+
]),
|
|
327
|
+
N("section", Ca, [
|
|
328
|
+
b($, {
|
|
329
|
+
id: "charge-on-demand-payment-heading",
|
|
330
|
+
tag: "h3",
|
|
331
|
+
variant: "label",
|
|
332
|
+
"no-spacing": ""
|
|
333
|
+
}, {
|
|
334
|
+
default: c(() => [
|
|
335
|
+
v(p(n(a)({
|
|
336
|
+
defaultMessage: "Payment method",
|
|
337
|
+
description: "Heading of the payment method picker of the on-demand order",
|
|
338
|
+
id: "charge_on_demand.payment_method.heading"
|
|
339
|
+
})), 1)
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
}),
|
|
343
|
+
e.paymentMethods.length > 0 ? (i(), h(oa, {
|
|
344
|
+
key: 0,
|
|
345
|
+
modelValue: _.value,
|
|
346
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => _.value = m),
|
|
347
|
+
name: "charge-on-demand-payment-method",
|
|
348
|
+
options: T.value,
|
|
349
|
+
"show-radio": !1,
|
|
350
|
+
error: (R = e.errors) == null ? void 0 : R.paymentMethod,
|
|
351
|
+
disabled: e.disabled,
|
|
352
|
+
direction: "column"
|
|
353
|
+
}, {
|
|
354
|
+
label: c(({ optionValue: m }) => [
|
|
355
|
+
u.value.get(m) ? (i(), h(ta, {
|
|
356
|
+
key: 0,
|
|
357
|
+
"payment-method": u.value.get(m)
|
|
358
|
+
}, null, 8, ["payment-method"])) : M("", !0)
|
|
359
|
+
]),
|
|
360
|
+
description: c(() => [...f[2] || (f[2] = [])]),
|
|
361
|
+
_: 1
|
|
362
|
+
}, 8, ["modelValue", "options", "error", "disabled"])) : (i(), k("div", Da, [
|
|
363
|
+
je(t.$slots, "payment-methods-empty", {}, () => [
|
|
364
|
+
b($, {
|
|
365
|
+
tag: "p",
|
|
366
|
+
color: "subtle",
|
|
367
|
+
variant: "body-sm",
|
|
368
|
+
"no-spacing": ""
|
|
369
|
+
}, {
|
|
370
|
+
default: c(() => [
|
|
371
|
+
v(p(n(a)({
|
|
372
|
+
defaultMessage: "There is no saved payment method that can pay for this order.",
|
|
373
|
+
description: "Shown when no saved payment method can pay the on-demand order",
|
|
374
|
+
id: "charge_on_demand.payment_method.empty"
|
|
375
|
+
})), 1)
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
})
|
|
379
|
+
]),
|
|
380
|
+
(W = e.errors) != null && W.paymentMethod ? (i(), h(Ce, {
|
|
381
|
+
key: 0,
|
|
382
|
+
message: e.errors.paymentMethod
|
|
383
|
+
}, null, 8, ["message"])) : M("", !0)
|
|
384
|
+
])),
|
|
385
|
+
e.canAddPaymentMethod ? (i(), h(P, {
|
|
386
|
+
key: 2,
|
|
387
|
+
type: "button",
|
|
388
|
+
intent: "secondary",
|
|
389
|
+
"icon-prefix": "add",
|
|
390
|
+
disabled: e.disabled,
|
|
391
|
+
"data-testid": "charge-on-demand-add-payment-method",
|
|
392
|
+
onClick: f[1] || (f[1] = (m) => t.$emit("add-payment-method"))
|
|
393
|
+
}, {
|
|
394
|
+
default: c(() => [
|
|
395
|
+
v(p(n(a)({
|
|
396
|
+
defaultMessage: "Add payment method",
|
|
397
|
+
description: "Opens the form to add a payment method for the on-demand order",
|
|
398
|
+
id: "charge_on_demand.payment_method.add"
|
|
399
|
+
})), 1)
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
}, 8, ["disabled"])) : M("", !0)
|
|
403
|
+
])
|
|
404
|
+
]);
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
}), Oa = [
|
|
408
|
+
"ORDER",
|
|
409
|
+
"ADD_PAYMENT_METHOD",
|
|
410
|
+
"PLACED",
|
|
411
|
+
"PAYMENT_FAILED",
|
|
412
|
+
"FAILED"
|
|
413
|
+
];
|
|
414
|
+
function xa({
|
|
415
|
+
pricingPlanScheduleId: e
|
|
416
|
+
}) {
|
|
417
|
+
const { chargeOnDemandPricingItems: y } = pa(), d = Oe(), _ = D(!1), a = D(), E = D(), s = D();
|
|
418
|
+
return { isCharging: _, chargedInvoice: a, chargeError: E, unpaidInvoiceId: s, charge: async ({
|
|
419
|
+
pricingItems: O,
|
|
420
|
+
paymentMethodId: x
|
|
421
|
+
}) => {
|
|
422
|
+
_.value = !0, E.value = void 0, s.value = void 0;
|
|
423
|
+
try {
|
|
424
|
+
const u = await y({
|
|
425
|
+
pricing_plan_schedule_id: e.value,
|
|
426
|
+
pricing_items: O,
|
|
427
|
+
payment_method_id: x,
|
|
428
|
+
finalize_immediately: !0
|
|
429
|
+
});
|
|
430
|
+
return a.value = u, { invoice: u };
|
|
431
|
+
} catch (u) {
|
|
432
|
+
const T = la(u);
|
|
433
|
+
E.value = T, s.value = T === "PAYMENT_FAILED" && ke(u) ? u.resourceId : void 0;
|
|
434
|
+
const t = {
|
|
435
|
+
scheduleId: e.value,
|
|
436
|
+
outcome: T,
|
|
437
|
+
...ke(u) ? {
|
|
438
|
+
statusCode: u.statusCode,
|
|
439
|
+
field: u.field,
|
|
440
|
+
requestId: u.requestId
|
|
441
|
+
} : {}
|
|
442
|
+
};
|
|
443
|
+
return T === "FAILED" ? d.error(
|
|
444
|
+
"ON_DEMAND_CHARGE_FAILED",
|
|
445
|
+
"Failed to charge the on-demand order",
|
|
446
|
+
t,
|
|
447
|
+
u
|
|
448
|
+
) : d.warn(
|
|
449
|
+
"ON_DEMAND_CHARGE_REFUSED",
|
|
450
|
+
"The on-demand order was refused or its payment did not go through",
|
|
451
|
+
t,
|
|
452
|
+
u
|
|
453
|
+
), { error: T, unpaidInvoiceId: s.value };
|
|
454
|
+
} finally {
|
|
455
|
+
_.value = !1;
|
|
456
|
+
}
|
|
457
|
+
}, reset: () => {
|
|
458
|
+
a.value = void 0, E.value = void 0, s.value = void 0;
|
|
459
|
+
} };
|
|
460
|
+
}
|
|
461
|
+
const Sa = {
|
|
462
|
+
key: 0,
|
|
463
|
+
class: "flex flex-col gap-2"
|
|
464
|
+
}, La = {
|
|
465
|
+
key: 1,
|
|
466
|
+
class: "flex flex-col gap-2"
|
|
467
|
+
}, Na = {
|
|
468
|
+
key: 2,
|
|
469
|
+
class: "flex flex-col gap-2"
|
|
470
|
+
}, at = /* @__PURE__ */ ce({
|
|
471
|
+
__name: "ChargeOnDemandModal",
|
|
472
|
+
props: {
|
|
473
|
+
showModal: { type: Boolean },
|
|
474
|
+
subscription: { type: Object },
|
|
475
|
+
scheduleId: { type: String },
|
|
476
|
+
items: { type: Array },
|
|
477
|
+
customer: { type: Object },
|
|
478
|
+
paymentMethods: { type: Array },
|
|
479
|
+
canViewCreatedInvoice: { type: Boolean }
|
|
480
|
+
},
|
|
481
|
+
emits: ["close", "invoice-created", "view-invoice", "payment-method-stored", "payment-failed"],
|
|
482
|
+
setup(e, { emit: y }) {
|
|
483
|
+
const d = e, _ = y, { $t: a } = Te(), E = Oe(), s = D("ORDER"), g = D([]), w = D(), O = o(() => (d.subscription.payment_acceptor_ids ?? []).length > 0), x = o(
|
|
484
|
+
() => Ze(d.paymentMethods ?? [], d.subscription)
|
|
485
|
+
), u = D();
|
|
486
|
+
J(
|
|
487
|
+
x,
|
|
488
|
+
(r) => {
|
|
489
|
+
var Y;
|
|
490
|
+
const l = u.value;
|
|
491
|
+
u.value = void 0;
|
|
492
|
+
const I = l ? r.find(({ id: U }) => !l.has(U)) : void 0;
|
|
493
|
+
if (I) {
|
|
494
|
+
w.value = I.id;
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
r.some(({ id: U }) => U === w.value) || (w.value = (Y = r[0]) == null ? void 0 : Y.id);
|
|
498
|
+
},
|
|
499
|
+
{ immediate: !0 }
|
|
500
|
+
);
|
|
501
|
+
const {
|
|
502
|
+
paneRef: T,
|
|
503
|
+
isActive: t,
|
|
504
|
+
isSaving: f,
|
|
505
|
+
open: A,
|
|
506
|
+
leave: R,
|
|
507
|
+
submit: W
|
|
508
|
+
} = ca({ step: s, name: "ADD_PAYMENT_METHOD", returnTo: "ORDER" }), m = D(!1), C = D(), S = (r) => {
|
|
509
|
+
m.value = !0, E.error(
|
|
510
|
+
"PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
|
|
511
|
+
"Failed to load the payment methods that can be offered",
|
|
512
|
+
{ flow: "ON_DEMAND_ORDER", subscriptionId: d.subscription.id },
|
|
513
|
+
r
|
|
514
|
+
), t.value && (R(), C.value = a({
|
|
515
|
+
defaultMessage: "We couldn't load the ways to add a payment method. Please try again.",
|
|
516
|
+
description: "Shown on the on-demand order when the payment methods that can be added failed to load",
|
|
517
|
+
id: "charge_on_demand_modal.payment_method_options_error"
|
|
518
|
+
}));
|
|
519
|
+
}, {
|
|
520
|
+
settledOptions: q,
|
|
521
|
+
isPending: F,
|
|
522
|
+
load: xe
|
|
523
|
+
} = ma({
|
|
524
|
+
isOpen: o(() => d.showModal && O.value),
|
|
525
|
+
customer: o(() => d.customer),
|
|
526
|
+
subscriptionId: o(() => d.subscription.id),
|
|
527
|
+
onError: S
|
|
528
|
+
}), Se = o(
|
|
529
|
+
() => {
|
|
530
|
+
var r;
|
|
531
|
+
return (r = q.value) == null ? void 0 : r.filter(
|
|
532
|
+
({ payment_acceptor: l }) => (d.subscription.payment_acceptor_ids ?? []).includes(l.id)
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
), Le = () => {
|
|
536
|
+
C.value = void 0, m.value && (m.value = !1, xe()), A();
|
|
537
|
+
}, Ne = () => {
|
|
538
|
+
u.value = new Set(x.value.map(({ id: r }) => r)), R(), _("payment-method-stored");
|
|
539
|
+
}, me = Ke({
|
|
540
|
+
lines: o(
|
|
541
|
+
() => g.value.map(({ pricingItemId: r, units: l }) => {
|
|
542
|
+
var I;
|
|
543
|
+
return {
|
|
544
|
+
pricingItemId: r,
|
|
545
|
+
priceType: (I = d.items.find((Y) => Y.pricingItemId === r)) == null ? void 0 : I.priceType,
|
|
546
|
+
units: l
|
|
547
|
+
};
|
|
548
|
+
})
|
|
549
|
+
)
|
|
550
|
+
}), ue = Xe(
|
|
551
|
+
{
|
|
552
|
+
lines: {
|
|
553
|
+
$each: Pe.forEach({
|
|
554
|
+
units: {
|
|
555
|
+
orderable: Pe.withMessage(
|
|
556
|
+
() => a({
|
|
557
|
+
defaultMessage: "Enter a whole number of 1 or more.",
|
|
558
|
+
description: "Shown under the quantity of an on-demand order item that is not a whole number of 1 or more",
|
|
559
|
+
id: "charge_on_demand_modal.units_error"
|
|
560
|
+
}),
|
|
561
|
+
(r, l) => l.priceType !== "FLAT" || ea(r)
|
|
562
|
+
)
|
|
563
|
+
}
|
|
564
|
+
})
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
me
|
|
568
|
+
), Q = o(() => ue.value.lines.$invalid), he = o(() => {
|
|
569
|
+
const { $errors: r = [] } = ue.value.lines.$each.$response ?? {}, l = me.lines.flatMap(({ pricingItemId: I }, Y) => {
|
|
570
|
+
var we, Ie, Me;
|
|
571
|
+
const U = (Me = (Ie = (we = r[Y]) == null ? void 0 : we.units) == null ? void 0 : Ie[0]) == null ? void 0 : Me.$message;
|
|
572
|
+
return U ? [[I, String(U)]] : [];
|
|
573
|
+
});
|
|
574
|
+
return l.length > 0 ? Object.fromEntries(l) : void 0;
|
|
575
|
+
}), ve = o(
|
|
576
|
+
() => g.value.length > 0 && !Q.value ? aa(g.value, d.items) : void 0
|
|
577
|
+
), { invoicePreview: pe, isPreviewPending: j, hasPreviewFailed: ge, loadPreview: $e } = ua({
|
|
578
|
+
pricingPlanScheduleId: o(() => d.scheduleId),
|
|
579
|
+
pricingItems: ve
|
|
580
|
+
}), Z = o(() => {
|
|
581
|
+
var r;
|
|
582
|
+
return (r = pe.value) == null ? void 0 : r.invoice_amount_including_tax;
|
|
583
|
+
}), {
|
|
584
|
+
isCharging: L,
|
|
585
|
+
chargedInvoice: z,
|
|
586
|
+
chargeError: B,
|
|
587
|
+
unpaidInvoiceId: ee,
|
|
588
|
+
charge: Re,
|
|
589
|
+
reset: Fe
|
|
590
|
+
} = xa({ pricingPlanScheduleId: o(() => d.scheduleId) }), Be = o(() => {
|
|
591
|
+
switch (B.value) {
|
|
592
|
+
case "PAYMENT_METHOD":
|
|
593
|
+
return a({
|
|
594
|
+
defaultMessage: "This payment method can't pay for this order. Choose another one.",
|
|
595
|
+
description: "Shown on the on-demand order when the chosen payment method cannot pay for it",
|
|
596
|
+
id: "charge_on_demand_modal.charge_error.payment_method"
|
|
597
|
+
});
|
|
598
|
+
case "PRICING_ITEMS":
|
|
599
|
+
return a({
|
|
600
|
+
defaultMessage: "Some items in your order can't be ordered as entered. Check your order and try again.",
|
|
601
|
+
description: "Shown on the on-demand order when an item, its quantity or its amount was not accepted",
|
|
602
|
+
id: "charge_on_demand_modal.charge_error.pricing_items"
|
|
603
|
+
});
|
|
604
|
+
case "SUBSCRIPTION_INACTIVE":
|
|
605
|
+
return a({
|
|
606
|
+
defaultMessage: "This subscription can't take orders right now.",
|
|
607
|
+
description: "Shown on the on-demand order when the subscription is not active, so nothing can be ordered on it",
|
|
608
|
+
id: "charge_on_demand_modal.charge_error.subscription_inactive"
|
|
609
|
+
});
|
|
610
|
+
default:
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
}), Ye = o(() => B.value === "SUBSCRIPTION_INACTIVE");
|
|
614
|
+
J(w, () => {
|
|
615
|
+
B.value === "PAYMENT_METHOD" && (B.value = void 0);
|
|
616
|
+
}), J(
|
|
617
|
+
g,
|
|
618
|
+
() => {
|
|
619
|
+
B.value === "PRICING_ITEMS" && (B.value = void 0);
|
|
620
|
+
},
|
|
621
|
+
{ deep: !0 }
|
|
622
|
+
);
|
|
623
|
+
const Ue = o(
|
|
624
|
+
() => ge.value ? a({
|
|
625
|
+
defaultMessage: "We couldn't calculate the total. Please try again.",
|
|
626
|
+
description: "Shown on the on-demand order when its total failed to load",
|
|
627
|
+
id: "charge_on_demand_modal.preview_error"
|
|
628
|
+
}) : void 0
|
|
629
|
+
), ae = o(
|
|
630
|
+
() => ge.value && !j.value && !L.value
|
|
631
|
+
), fe = o(
|
|
632
|
+
() => Be.value ?? Ue.value ?? C.value
|
|
633
|
+
), Ve = o(
|
|
634
|
+
() => fe.value || he.value ? { form: fe.value, items: he.value } : void 0
|
|
635
|
+
), K = o(() => s.value === "PLACED"), X = o(() => !!z.value && ga(z.value)), _e = o(() => s.value === "PAYMENT_FAILED" || s.value === "FAILED"), ye = o(
|
|
636
|
+
() => !L.value && O.value && !Ye.value && g.value.length > 0 && !Q.value && !!w.value && !!Z.value && !j.value
|
|
637
|
+
), ze = o(() => s.value === "PLACED" ? a({
|
|
638
|
+
defaultMessage: "Order placed",
|
|
639
|
+
description: "Title of the on-demand order modal once the order is placed, paid or not",
|
|
640
|
+
id: "charge_on_demand_modal.placed.title"
|
|
641
|
+
}) : s.value === "PAYMENT_FAILED" ? a({
|
|
642
|
+
defaultMessage: "Payment not completed",
|
|
643
|
+
description: "Title of the on-demand order modal when the payment for the order could not be made",
|
|
644
|
+
id: "charge_on_demand_modal.payment_failed.title"
|
|
645
|
+
}) : s.value === "FAILED" ? a({
|
|
646
|
+
defaultMessage: "Something went wrong",
|
|
647
|
+
description: "Title of the on-demand order modal when the order failed and it is unknown whether it went through",
|
|
648
|
+
id: "charge_on_demand_modal.failed.title"
|
|
649
|
+
}) : t.value ? a({
|
|
650
|
+
defaultMessage: "Add payment method",
|
|
651
|
+
description: "Title of the on-demand order modal while the customer is adding a payment method",
|
|
652
|
+
id: "charge_on_demand_modal.add_payment_method.title"
|
|
653
|
+
}) : a({
|
|
654
|
+
defaultMessage: "Order on-demand items",
|
|
655
|
+
description: "Title of the modal for ordering the on-demand items of a subscription",
|
|
656
|
+
id: "charge_on_demand_modal.title"
|
|
657
|
+
})), He = o(() => s.value === "PLACED" ? X.value ? a({
|
|
658
|
+
defaultMessage: "Your order is paid. The invoice is in your invoice list.",
|
|
659
|
+
description: "Subtitle of the on-demand order modal once the order has been paid",
|
|
660
|
+
id: "charge_on_demand_modal.success.subtitle"
|
|
661
|
+
}) : a({
|
|
662
|
+
defaultMessage: "Your invoice was created, but it isn't paid yet. You'll find it in your invoice list.",
|
|
663
|
+
description: "Subtitle of the on-demand order modal when the order was placed but its invoice is not paid",
|
|
664
|
+
id: "charge_on_demand_modal.placed.unpaid.subtitle"
|
|
665
|
+
}) : s.value === "PAYMENT_FAILED" && ee.value ? a({
|
|
666
|
+
defaultMessage: "We couldn't take the payment for this order. Its invoice is in your invoice list, waiting to be paid.",
|
|
667
|
+
description: "Subtitle of the on-demand order modal when the order was placed but the payment for its invoice was refused",
|
|
668
|
+
id: "charge_on_demand_modal.payment_failed.unpaid_invoice.subtitle"
|
|
669
|
+
}) : s.value === "PAYMENT_FAILED" ? a({
|
|
670
|
+
defaultMessage: "We couldn't take the payment for this order. If an invoice was created, you'll find it in your invoice list.",
|
|
671
|
+
description: "Subtitle of the on-demand order modal when the payment for the order could not be made",
|
|
672
|
+
id: "charge_on_demand_modal.payment_failed.subtitle"
|
|
673
|
+
}) : s.value === "FAILED" ? a({
|
|
674
|
+
defaultMessage: "We couldn't complete your order. Check your invoice list before trying again.",
|
|
675
|
+
description: "Subtitle of the on-demand order modal when the order failed and it is unknown whether it went through",
|
|
676
|
+
id: "charge_on_demand_modal.failed.subtitle"
|
|
677
|
+
}) : t.value ? a({
|
|
678
|
+
defaultMessage: "Add a payment method to pay for this order.",
|
|
679
|
+
description: "Subtitle of the on-demand order modal while the customer is adding a payment method",
|
|
680
|
+
id: "charge_on_demand_modal.add_payment_method.subtitle"
|
|
681
|
+
}) : void 0), be = o(
|
|
682
|
+
() => t.value ? a({
|
|
683
|
+
defaultMessage: "Back",
|
|
684
|
+
description: "Leaves the add payment method step of the on-demand order modal for the order",
|
|
685
|
+
id: "charge_on_demand_modal.back_button.label"
|
|
686
|
+
}) : a({
|
|
687
|
+
defaultMessage: "Cancel",
|
|
688
|
+
description: "Closes the modal for ordering on-demand items",
|
|
689
|
+
id: "charge_on_demand_modal.cancel_button.label"
|
|
690
|
+
})
|
|
691
|
+
), H = o(() => K.value ? a({
|
|
692
|
+
defaultMessage: "Done",
|
|
693
|
+
description: "Closes the on-demand order modal once the order is placed",
|
|
694
|
+
id: "charge_on_demand_modal.done_button.label"
|
|
695
|
+
}) : _e.value ? a({
|
|
696
|
+
defaultMessage: "Close",
|
|
697
|
+
description: "Closes the on-demand order modal when the order did not go through",
|
|
698
|
+
id: "charge_on_demand_modal.close_button.label"
|
|
699
|
+
}) : t.value ? a({
|
|
700
|
+
defaultMessage: "Save payment method",
|
|
701
|
+
description: "Confirm button of the on-demand order modal while the customer is adding a payment method",
|
|
702
|
+
id: "charge_on_demand_modal.save_payment_method.label"
|
|
703
|
+
}) : g.value.length === 0 ? a({
|
|
704
|
+
defaultMessage: "Add an item to continue",
|
|
705
|
+
description: "Disabled pay button of the on-demand order while no item is added",
|
|
706
|
+
id: "charge_on_demand_modal.confirm_button.no_items"
|
|
707
|
+
}) : Q.value ? a({
|
|
708
|
+
defaultMessage: "Check the quantities to continue",
|
|
709
|
+
description: "Disabled pay button of the on-demand order while an item has a quantity that cannot be ordered",
|
|
710
|
+
id: "charge_on_demand_modal.confirm_button.invalid_units"
|
|
711
|
+
}) : ae.value ? a({
|
|
712
|
+
defaultMessage: "Calculate total again",
|
|
713
|
+
description: "Pay button of the on-demand order when its total failed to load",
|
|
714
|
+
id: "charge_on_demand_modal.confirm_button.retry_preview"
|
|
715
|
+
}) : !Z.value || j.value ? a({
|
|
716
|
+
defaultMessage: "Updating total…",
|
|
717
|
+
description: "Disabled pay button of the on-demand order while its total is calculated",
|
|
718
|
+
id: "charge_on_demand_modal.confirm_button.updating"
|
|
719
|
+
}) : a(
|
|
720
|
+
{
|
|
721
|
+
defaultMessage: "Pay {total}",
|
|
722
|
+
description: "Pay button of the on-demand order, with the total it charges",
|
|
723
|
+
id: "charge_on_demand_modal.confirm_button.pay"
|
|
724
|
+
},
|
|
725
|
+
{ total: Je(Z.value) }
|
|
726
|
+
)), Ge = async () => {
|
|
727
|
+
const r = ve.value;
|
|
728
|
+
if (!ye.value || !r || !w.value)
|
|
729
|
+
return;
|
|
730
|
+
const l = await Re({
|
|
731
|
+
pricingItems: r,
|
|
732
|
+
paymentMethodId: w.value
|
|
733
|
+
});
|
|
734
|
+
"invoice" in l ? (_("invoice-created", l.invoice), s.value = "PLACED") : va(l.error) || (s.value = l.error);
|
|
735
|
+
}, te = () => {
|
|
736
|
+
if (t.value) {
|
|
737
|
+
W();
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
if (ae.value) {
|
|
741
|
+
$e();
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
Ge();
|
|
745
|
+
}, ne = () => {
|
|
746
|
+
_("close");
|
|
747
|
+
}, oe = o(
|
|
748
|
+
() => K.value && !X.value && d.canViewCreatedInvoice
|
|
749
|
+
), de = o(
|
|
750
|
+
() => s.value === "PAYMENT_FAILED" && !!ee.value && d.canViewCreatedInvoice
|
|
751
|
+
), ie = o(
|
|
752
|
+
() => a({
|
|
753
|
+
defaultMessage: "Go to invoice",
|
|
754
|
+
description: "Opens the invoice of the on-demand order the customer just placed",
|
|
755
|
+
id: "charge_on_demand_modal.view_invoice_button.label"
|
|
756
|
+
})
|
|
757
|
+
), re = () => {
|
|
758
|
+
var l;
|
|
759
|
+
const r = ((l = z.value) == null ? void 0 : l.id) ?? ee.value;
|
|
760
|
+
ne(), r && _("view-invoice", r);
|
|
761
|
+
}, se = () => {
|
|
762
|
+
if (!(f.value || L.value)) {
|
|
763
|
+
if (K.value) {
|
|
764
|
+
ne();
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
if (t.value) {
|
|
768
|
+
R();
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
_("close");
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
return J(
|
|
775
|
+
() => d.showModal,
|
|
776
|
+
(r) => {
|
|
777
|
+
r && (s.value = "ORDER", g.value = [], u.value = void 0, Fe(), C.value = void 0);
|
|
778
|
+
}
|
|
779
|
+
), (r, l) => (i(), h(ha, {
|
|
780
|
+
ref_key: "addPaymentMethodRef",
|
|
781
|
+
ref: T,
|
|
782
|
+
class: "sv-charge-on-demand-modal",
|
|
783
|
+
"show-modal": e.showModal,
|
|
784
|
+
title: ze.value,
|
|
785
|
+
"sub-title": He.value,
|
|
786
|
+
"cancel-button-text": be.value,
|
|
787
|
+
"confirm-button-text": H.value,
|
|
788
|
+
"is-pending": n(f) || n(L),
|
|
789
|
+
panes: n(Oa),
|
|
790
|
+
step: s.value,
|
|
791
|
+
"add-payment-method-pane": "ADD_PAYMENT_METHOD",
|
|
792
|
+
customer: e.customer,
|
|
793
|
+
"payment-method-options": Se.value,
|
|
794
|
+
"is-payment-method-options-pending": n(F),
|
|
795
|
+
onConfirm: te,
|
|
796
|
+
onCancel: se,
|
|
797
|
+
onPaymentSuccess: Ne,
|
|
798
|
+
onPaymentFailed: l[2] || (l[2] = (I) => r.$emit("payment-failed", I))
|
|
799
|
+
}, {
|
|
800
|
+
ORDER: c(() => [
|
|
801
|
+
O.value ? (i(), h(n(Ta), {
|
|
802
|
+
key: 0,
|
|
803
|
+
selection: g.value,
|
|
804
|
+
"onUpdate:selection": l[0] || (l[0] = (I) => g.value = I),
|
|
805
|
+
"payment-method-id": w.value,
|
|
806
|
+
"onUpdate:paymentMethodId": l[1] || (l[1] = (I) => w.value = I),
|
|
807
|
+
class: "sv-charge-on-demand-modal__form",
|
|
808
|
+
items: e.items,
|
|
809
|
+
preview: n(pe),
|
|
810
|
+
"is-preview-loading": n(j),
|
|
811
|
+
"payment-methods": x.value,
|
|
812
|
+
errors: Ve.value,
|
|
813
|
+
disabled: n(L),
|
|
814
|
+
"can-add-payment-method": "",
|
|
815
|
+
onAddPaymentMethod: Le
|
|
816
|
+
}, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(fa, {
|
|
817
|
+
key: 1,
|
|
818
|
+
class: "sv-charge-on-demand-modal__unavailable",
|
|
819
|
+
icon: "credit_card_off"
|
|
820
|
+
}, {
|
|
821
|
+
title: c(() => [
|
|
822
|
+
v(p(n(a)({
|
|
823
|
+
defaultMessage: "Ordering isn't available",
|
|
824
|
+
description: "Title shown instead of the on-demand order form when the subscription cannot take payments",
|
|
825
|
+
id: "charge_on_demand_modal.unavailable.title"
|
|
826
|
+
})), 1)
|
|
827
|
+
]),
|
|
828
|
+
message: c(() => [
|
|
829
|
+
v(p(n(a)({
|
|
830
|
+
defaultMessage: "This subscription can't take payments here. Contact us to order these items.",
|
|
831
|
+
description: "Message shown instead of the on-demand order form when the subscription cannot take payments",
|
|
832
|
+
id: "charge_on_demand_modal.unavailable.message"
|
|
833
|
+
})), 1)
|
|
834
|
+
]),
|
|
835
|
+
_: 1
|
|
836
|
+
}))
|
|
837
|
+
]),
|
|
838
|
+
PLACED: c(() => [
|
|
839
|
+
n(z) ? (i(), h(n(sa), {
|
|
840
|
+
key: 0,
|
|
841
|
+
class: "sv-charge-on-demand-modal__receipt",
|
|
842
|
+
"content-background": "none"
|
|
843
|
+
}, {
|
|
844
|
+
default: c(() => [
|
|
845
|
+
b(n(De), {
|
|
846
|
+
invoice: n(z),
|
|
847
|
+
"is-customer-facing": "",
|
|
848
|
+
"is-paid": X.value
|
|
849
|
+
}, null, 8, ["invoice", "is-paid"])
|
|
850
|
+
]),
|
|
851
|
+
_: 1
|
|
852
|
+
})) : M("", !0)
|
|
853
|
+
]),
|
|
854
|
+
footer: c(() => [
|
|
855
|
+
K.value ? (i(), k("div", Sa, [
|
|
856
|
+
oe.value ? (i(), h(n(P), {
|
|
857
|
+
key: 0,
|
|
858
|
+
size: "lg",
|
|
859
|
+
class: "sv-action sv-action--primary",
|
|
860
|
+
onClick: re
|
|
861
|
+
}, {
|
|
862
|
+
default: c(() => [
|
|
863
|
+
v(p(ie.value), 1)
|
|
864
|
+
]),
|
|
865
|
+
_: 1
|
|
866
|
+
})) : M("", !0),
|
|
867
|
+
b(n(P), {
|
|
868
|
+
size: "lg",
|
|
869
|
+
intent: oe.value ? "subtle" : "primary",
|
|
870
|
+
class: G([
|
|
871
|
+
"sv-action",
|
|
872
|
+
oe.value ? "sv-action--secondary" : "sv-action--primary"
|
|
873
|
+
]),
|
|
874
|
+
onClick: ne
|
|
875
|
+
}, {
|
|
876
|
+
default: c(() => [
|
|
877
|
+
v(p(H.value), 1)
|
|
878
|
+
]),
|
|
879
|
+
_: 1
|
|
880
|
+
}, 8, ["intent", "class"]),
|
|
881
|
+
X.value && e.canViewCreatedInvoice ? (i(), h(n(P), {
|
|
882
|
+
key: 1,
|
|
883
|
+
size: "lg",
|
|
884
|
+
intent: "subtle",
|
|
885
|
+
class: "sv-action sv-action--secondary",
|
|
886
|
+
onClick: re
|
|
887
|
+
}, {
|
|
888
|
+
default: c(() => [
|
|
889
|
+
v(p(ie.value), 1)
|
|
890
|
+
]),
|
|
891
|
+
_: 1
|
|
892
|
+
})) : M("", !0)
|
|
893
|
+
])) : _e.value ? (i(), k("div", La, [
|
|
894
|
+
de.value ? (i(), h(n(P), {
|
|
895
|
+
key: 0,
|
|
896
|
+
size: "lg",
|
|
897
|
+
class: "sv-action sv-action--primary",
|
|
898
|
+
onClick: re
|
|
899
|
+
}, {
|
|
900
|
+
default: c(() => [
|
|
901
|
+
v(p(ie.value), 1)
|
|
902
|
+
]),
|
|
903
|
+
_: 1
|
|
904
|
+
})) : M("", !0),
|
|
905
|
+
b(n(P), {
|
|
906
|
+
size: "lg",
|
|
907
|
+
intent: de.value ? "subtle" : "primary",
|
|
908
|
+
class: G([
|
|
909
|
+
"sv-action",
|
|
910
|
+
de.value ? "sv-action--secondary" : "sv-action--primary"
|
|
911
|
+
]),
|
|
912
|
+
onClick: se
|
|
913
|
+
}, {
|
|
914
|
+
default: c(() => [
|
|
915
|
+
v(p(H.value), 1)
|
|
916
|
+
]),
|
|
917
|
+
_: 1
|
|
918
|
+
}, 8, ["intent", "class"])
|
|
919
|
+
])) : (i(), k("div", Na, [
|
|
920
|
+
n(t) ? (i(), h(n(P), {
|
|
921
|
+
key: 0,
|
|
922
|
+
size: "lg",
|
|
923
|
+
class: "sv-action sv-action--primary",
|
|
924
|
+
loading: n(f),
|
|
925
|
+
onClick: te
|
|
926
|
+
}, {
|
|
927
|
+
default: c(() => [
|
|
928
|
+
v(p(H.value), 1)
|
|
929
|
+
]),
|
|
930
|
+
_: 1
|
|
931
|
+
}, 8, ["loading"])) : O.value ? (i(), h(n(P), {
|
|
932
|
+
key: 1,
|
|
933
|
+
size: "lg",
|
|
934
|
+
class: "sv-action sv-action--primary",
|
|
935
|
+
disabled: !ye.value && !ae.value,
|
|
936
|
+
loading: n(L),
|
|
937
|
+
onClick: te
|
|
938
|
+
}, {
|
|
939
|
+
default: c(() => [
|
|
940
|
+
v(p(H.value), 1)
|
|
941
|
+
]),
|
|
942
|
+
_: 1
|
|
943
|
+
}, 8, ["disabled", "loading"])) : M("", !0),
|
|
944
|
+
b(n(P), {
|
|
945
|
+
size: "lg",
|
|
946
|
+
intent: "subtle",
|
|
947
|
+
class: "sv-action sv-action--secondary",
|
|
948
|
+
disabled: n(L),
|
|
949
|
+
onClick: se
|
|
950
|
+
}, {
|
|
951
|
+
default: c(() => [
|
|
952
|
+
v(p(be.value), 1)
|
|
953
|
+
]),
|
|
954
|
+
_: 1
|
|
955
|
+
}, 8, ["disabled"])
|
|
956
|
+
]))
|
|
957
|
+
]),
|
|
958
|
+
_: 1
|
|
959
|
+
}, 8, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-pending", "panes", "step", "customer", "payment-method-options", "is-payment-method-options-pending"]));
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
export {
|
|
963
|
+
at as default
|
|
964
|
+
};
|