@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,96 +1,98 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as Xe, c as
|
|
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
3
|
import { f as Je } from "./formatting.es-RclXHhKo.mjs";
|
|
4
|
-
import { _ as P } from "./Button.vue.es-
|
|
5
|
-
import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-
|
|
6
|
-
import {
|
|
7
|
-
import { _ as
|
|
8
|
-
import { a as Te,
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as ra } from "./
|
|
15
|
-
import { _ as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
4
|
+
import { _ as P } from "./Button.vue.es-Zw--kuaU.mjs";
|
|
5
|
+
import { u as Qe, g as Ze, i as ea, t as aa } from "./SubscriptionDetails.entry.ce-D5SwM0YS.mjs";
|
|
6
|
+
import { _ as De } from "./InvoicePreview.vue.es-4Q2hzaFS.mjs";
|
|
7
|
+
import { _ as ta } from "./PaymentMethod.vue.es-b0p3a0L-.mjs";
|
|
8
|
+
import { a as Te, d as $, e as Oe, f as ke } from "./customElements-BTj4ii4f.mjs";
|
|
9
|
+
import { _ as na } from "./ErrorNotification.vue.es-DNd65mQq.mjs";
|
|
10
|
+
import { _ as Ce } from "./FormMessage.vue.es-Cjv358Ab.mjs";
|
|
11
|
+
import { _ as oa } from "./RadioGroupExtended.vue.es-3nDXqIGi.mjs";
|
|
12
|
+
import { _ as da } from "./StepInput.vue.es-DweyzpkL.mjs";
|
|
13
|
+
import { _ as ia } from "./IconButton.vue.es-C8lYFx5_.mjs";
|
|
14
|
+
import { _ as ra } from "./useLazyFloating.es-CycqRyeb.mjs";
|
|
15
|
+
import { _ as sa } from "./Section.vue.es-CvX9tg2f.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-BmPKfIjT.mjs";
|
|
17
|
+
import { c as pa } from "./invoices-e1sKLgxg.mjs";
|
|
18
|
+
import { i as ga } from "./invoiceState-BJVHaKs7.mjs";
|
|
19
|
+
import { _ as fa } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CVP-7ne3.mjs";
|
|
20
|
+
const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (y) => y.toUpperCase()), _a = (e) => {
|
|
21
|
+
var y, d, _, a, E, s;
|
|
22
|
+
const g = [];
|
|
21
23
|
switch (e.type) {
|
|
22
24
|
case "CARD":
|
|
23
|
-
|
|
25
|
+
g.push(
|
|
24
26
|
e.card.brand && V(e.card.brand),
|
|
25
27
|
e.card.last_four_digits
|
|
26
28
|
);
|
|
27
29
|
break;
|
|
28
30
|
case "ONLINE_BANKING":
|
|
29
|
-
|
|
30
|
-
((
|
|
31
|
+
g.push(
|
|
32
|
+
((y = e.online_banking) == null ? void 0 : y.variant) && V(e.online_banking.variant),
|
|
31
33
|
(d = e.online_banking) == null ? void 0 : d.owner_name
|
|
32
34
|
);
|
|
33
35
|
break;
|
|
34
36
|
case "DIRECT_DEBIT":
|
|
35
|
-
|
|
36
|
-
((
|
|
37
|
+
g.push(
|
|
38
|
+
((_ = e.direct_debit) == null ? void 0 : _.variant) && V(e.direct_debit.variant),
|
|
37
39
|
(a = e.direct_debit) == null ? void 0 : a.owner_name
|
|
38
40
|
);
|
|
39
41
|
break;
|
|
40
42
|
case "BUY_NOW_PAY_LATER":
|
|
41
|
-
|
|
43
|
+
g.push(
|
|
42
44
|
((E = e.buy_now_pay_later) == null ? void 0 : E.variant) && V(e.buy_now_pay_later.variant)
|
|
43
45
|
);
|
|
44
46
|
break;
|
|
45
47
|
case "DIGITAL_WALLET":
|
|
46
|
-
|
|
47
|
-
((
|
|
48
|
+
g.push(
|
|
49
|
+
((s = e.digital_wallet) == null ? void 0 : s.variant) && V(e.digital_wallet.variant)
|
|
48
50
|
);
|
|
49
51
|
break;
|
|
50
52
|
}
|
|
51
|
-
return
|
|
52
|
-
},
|
|
53
|
+
return g.filter(Boolean).join(" ") || V(e.type);
|
|
54
|
+
}, ya = /* @__PURE__ */ ce({
|
|
53
55
|
__name: "Placeholder",
|
|
54
56
|
props: {
|
|
55
57
|
loading: { type: Boolean },
|
|
56
58
|
shade: { default: "default" }
|
|
57
59
|
},
|
|
58
60
|
setup(e) {
|
|
59
|
-
return (
|
|
61
|
+
return (y, d) => (i(), k("div", {
|
|
60
62
|
class: G(["rounded", {
|
|
61
63
|
"bg-gray-300": e.shade === "default",
|
|
62
64
|
"bg-gray-200": e.shade === "light"
|
|
63
65
|
}])
|
|
64
66
|
}, [
|
|
65
|
-
e.loading ? (i(),
|
|
67
|
+
e.loading ? (i(), k("div", {
|
|
66
68
|
key: 0,
|
|
67
69
|
class: G(["absolute inset-0", { "animated-gradient": e.loading }])
|
|
68
70
|
}, null, 2)) : M("", !0)
|
|
69
71
|
], 2));
|
|
70
72
|
}
|
|
71
|
-
}), le = /* @__PURE__ */ ra(
|
|
73
|
+
}), le = /* @__PURE__ */ ra(ya, [["__scopeId", "data-v-11677ac2"]]), ba = { class: "flex flex-col gap-6" }, wa = {
|
|
72
74
|
class: "flex flex-col gap-3",
|
|
73
75
|
"aria-labelledby": "charge-on-demand-items-heading"
|
|
74
|
-
},
|
|
76
|
+
}, Ia = { class: "flex flex-col gap-2" }, Ma = { class: "flex min-w-0 grow flex-col" }, Ea = {
|
|
75
77
|
key: 0,
|
|
76
78
|
class: "flex shrink-0 items-center gap-1"
|
|
77
|
-
},
|
|
79
|
+
}, Aa = { class: "w-32" }, Pa = {
|
|
78
80
|
class: "flex flex-col gap-3",
|
|
79
81
|
"aria-labelledby": "charge-on-demand-preview-heading"
|
|
80
|
-
},
|
|
82
|
+
}, ka = {
|
|
81
83
|
key: 1,
|
|
82
84
|
class: "flex flex-col gap-3",
|
|
83
85
|
"aria-busy": "true",
|
|
84
86
|
"data-testid": "charge-on-demand-preview-loading"
|
|
85
|
-
},
|
|
87
|
+
}, Ca = {
|
|
86
88
|
class: "flex flex-col gap-3",
|
|
87
89
|
"aria-labelledby": "charge-on-demand-payment-heading"
|
|
88
|
-
},
|
|
90
|
+
}, Da = {
|
|
89
91
|
key: 1,
|
|
90
92
|
"data-testid": "charge-on-demand-no-payment-methods"
|
|
91
|
-
},
|
|
93
|
+
}, Ta = /* @__PURE__ */ ce({
|
|
92
94
|
__name: "ChargeOnDemandEditor",
|
|
93
|
-
props: /* @__PURE__ */
|
|
95
|
+
props: /* @__PURE__ */ Ae({
|
|
94
96
|
items: {},
|
|
95
97
|
preview: { default: void 0 },
|
|
96
98
|
isPreviewLoading: { type: Boolean, default: !1 },
|
|
@@ -104,52 +106,52 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
104
106
|
paymentMethodId: {},
|
|
105
107
|
paymentMethodIdModifiers: {}
|
|
106
108
|
}),
|
|
107
|
-
emits: /* @__PURE__ */
|
|
109
|
+
emits: /* @__PURE__ */ Ae(["add-payment-method"], ["update:selection", "update:paymentMethodId"]),
|
|
108
110
|
setup(e) {
|
|
109
|
-
const
|
|
111
|
+
const y = e, d = Ee(e, "selection"), _ = Ee(e, "paymentMethodId"), { $t: a } = Te(), E = (t) => {
|
|
110
112
|
d.value = [
|
|
111
113
|
...d.value,
|
|
112
114
|
t.priceType === "FLAT" ? { pricingItemId: t.pricingItemId, units: t.defaultUnits } : { pricingItemId: t.pricingItemId }
|
|
113
115
|
];
|
|
114
|
-
},
|
|
116
|
+
}, s = (t) => {
|
|
115
117
|
d.value = d.value.filter(
|
|
116
|
-
({ pricingItemId:
|
|
118
|
+
({ pricingItemId: f }) => f !== t.pricingItemId
|
|
117
119
|
);
|
|
118
|
-
},
|
|
119
|
-
!Number.isInteger(
|
|
120
|
-
(A) => A.pricingItemId === t.pricingItemId ? { ...A, units:
|
|
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
|
|
121
123
|
));
|
|
122
|
-
}, { getPriceLabel:
|
|
124
|
+
}, { getPriceLabel: w } = Qe(), O = o(
|
|
123
125
|
() => new Map(d.value.map((t) => [t.pricingItemId, t]))
|
|
124
|
-
),
|
|
125
|
-
() =>
|
|
126
|
-
var
|
|
126
|
+
), x = o(
|
|
127
|
+
() => y.items.map((t) => {
|
|
128
|
+
var f, A;
|
|
127
129
|
return {
|
|
128
130
|
item: t,
|
|
129
131
|
selected: O.value.get(t.pricingItemId),
|
|
130
|
-
error: (A = (
|
|
131
|
-
priceLabel:
|
|
132
|
+
error: (A = (f = y.errors) == null ? void 0 : f.items) == null ? void 0 : A[t.pricingItemId],
|
|
133
|
+
priceLabel: w(t)
|
|
132
134
|
};
|
|
133
135
|
})
|
|
134
|
-
),
|
|
136
|
+
), u = o(
|
|
135
137
|
() => new Map(
|
|
136
|
-
|
|
138
|
+
y.paymentMethods.map((t) => [t.id, t])
|
|
137
139
|
)
|
|
138
140
|
), T = o(
|
|
139
|
-
() =>
|
|
140
|
-
label:
|
|
141
|
+
() => y.paymentMethods.map((t) => ({
|
|
142
|
+
label: _a(t),
|
|
141
143
|
value: t.id
|
|
142
144
|
}))
|
|
143
145
|
);
|
|
144
|
-
return (t,
|
|
145
|
-
var A,
|
|
146
|
-
return i(),
|
|
147
|
-
(A = e.errors) != null && A.form ? (i(), h(
|
|
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, {
|
|
148
150
|
key: 0,
|
|
149
151
|
description: e.errors.form
|
|
150
152
|
}, null, 8, ["description"])) : M("", !0),
|
|
151
|
-
|
|
152
|
-
b(
|
|
153
|
+
N("section", wa, [
|
|
154
|
+
b($, {
|
|
153
155
|
id: "charge-on-demand-items-heading",
|
|
154
156
|
tag: "h3",
|
|
155
157
|
variant: "label",
|
|
@@ -164,31 +166,31 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
164
166
|
]),
|
|
165
167
|
_: 1
|
|
166
168
|
}),
|
|
167
|
-
|
|
168
|
-
(i(!0),
|
|
169
|
-
key:
|
|
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,
|
|
170
172
|
class: "flex flex-col gap-1",
|
|
171
173
|
"data-testid": "charge-on-demand-item"
|
|
172
174
|
}, [
|
|
173
|
-
|
|
175
|
+
N("div", {
|
|
174
176
|
class: G(["flex items-center gap-4 rounded-lg border px-4 py-3", {
|
|
175
177
|
"border-red-600": S,
|
|
176
|
-
"border-primary-600": !S &&
|
|
177
|
-
"border-gray-300": !S && !
|
|
178
|
+
"border-primary-600": !S && C,
|
|
179
|
+
"border-gray-300": !S && !C
|
|
178
180
|
}])
|
|
179
181
|
}, [
|
|
180
|
-
|
|
181
|
-
b(
|
|
182
|
+
N("div", Ma, [
|
|
183
|
+
b($, {
|
|
182
184
|
tag: "span",
|
|
183
185
|
weight: "semibold",
|
|
184
186
|
"no-spacing": ""
|
|
185
187
|
}, {
|
|
186
188
|
default: c(() => [
|
|
187
|
-
v(p(
|
|
189
|
+
v(p(m.name), 1)
|
|
188
190
|
]),
|
|
189
191
|
_: 2
|
|
190
192
|
}, 1024),
|
|
191
|
-
q ? (i(), h(
|
|
193
|
+
q ? (i(), h($, {
|
|
192
194
|
key: 0,
|
|
193
195
|
tag: "span",
|
|
194
196
|
variant: "body-sm",
|
|
@@ -201,19 +203,19 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
201
203
|
_: 2
|
|
202
204
|
}, 1024)) : M("", !0)
|
|
203
205
|
]),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
b(
|
|
207
|
-
"model-value":
|
|
208
|
-
"initial-value":
|
|
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,
|
|
209
211
|
min: 1,
|
|
210
|
-
name: `charge-on-demand-units-${
|
|
212
|
+
name: `charge-on-demand-units-${m.pricingItemId}`,
|
|
211
213
|
disabled: e.disabled,
|
|
212
214
|
size: "sm",
|
|
213
|
-
"onUpdate:modelValue": (F) =>
|
|
215
|
+
"onUpdate:modelValue": (F) => g(m, F)
|
|
214
216
|
}, null, 8, ["model-value", "initial-value", "name", "disabled", "onUpdate:modelValue"])
|
|
215
217
|
]),
|
|
216
|
-
b(
|
|
218
|
+
b(ia, {
|
|
217
219
|
type: "button",
|
|
218
220
|
icon: "close",
|
|
219
221
|
intent: "subtle",
|
|
@@ -224,9 +226,9 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
224
226
|
description: "Removes an on-demand item from the order",
|
|
225
227
|
id: "charge_on_demand.item.remove"
|
|
226
228
|
}),
|
|
227
|
-
onClick: (F) =>
|
|
229
|
+
onClick: (F) => s(m)
|
|
228
230
|
}, null, 8, ["disabled", "tooltip", "onClick"])
|
|
229
|
-
])) :
|
|
231
|
+
])) : C ? (i(), h(P, {
|
|
230
232
|
key: 1,
|
|
231
233
|
type: "button",
|
|
232
234
|
intent: "secondary",
|
|
@@ -234,7 +236,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
234
236
|
"icon-prefix": "check",
|
|
235
237
|
"aria-pressed": !0,
|
|
236
238
|
disabled: e.disabled,
|
|
237
|
-
onClick: (F) =>
|
|
239
|
+
onClick: (F) => s(m)
|
|
238
240
|
}, {
|
|
239
241
|
default: c(() => [
|
|
240
242
|
v(p(n(a)({
|
|
@@ -250,9 +252,9 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
250
252
|
intent: "secondary",
|
|
251
253
|
size: "sm",
|
|
252
254
|
"icon-prefix": "add",
|
|
253
|
-
"aria-pressed":
|
|
255
|
+
"aria-pressed": m.priceType === "FIXED" ? !1 : void 0,
|
|
254
256
|
disabled: e.disabled,
|
|
255
|
-
onClick: (F) => E(
|
|
257
|
+
onClick: (F) => E(m)
|
|
256
258
|
}, {
|
|
257
259
|
default: c(() => [
|
|
258
260
|
v(p(n(a)({
|
|
@@ -264,15 +266,15 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
264
266
|
_: 1
|
|
265
267
|
}, 8, ["aria-pressed", "disabled", "onClick"]))
|
|
266
268
|
], 2),
|
|
267
|
-
S ? (i(), h(
|
|
269
|
+
S ? (i(), h(Ce, {
|
|
268
270
|
key: 0,
|
|
269
271
|
message: S
|
|
270
272
|
}, null, 8, ["message"])) : M("", !0)
|
|
271
273
|
]))), 128))
|
|
272
274
|
])
|
|
273
275
|
]),
|
|
274
|
-
|
|
275
|
-
b(
|
|
276
|
+
N("section", Pa, [
|
|
277
|
+
b($, {
|
|
276
278
|
id: "charge-on-demand-preview-heading",
|
|
277
279
|
tag: "h3",
|
|
278
280
|
variant: "label",
|
|
@@ -287,7 +289,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
287
289
|
]),
|
|
288
290
|
_: 1
|
|
289
291
|
}),
|
|
290
|
-
d.value.length === 0 ? (i(), h(
|
|
292
|
+
d.value.length === 0 ? (i(), h($, {
|
|
291
293
|
key: 0,
|
|
292
294
|
variant: "body-sm",
|
|
293
295
|
tag: "p",
|
|
@@ -303,7 +305,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
303
305
|
})), 1)
|
|
304
306
|
]),
|
|
305
307
|
_: 1
|
|
306
|
-
})) : e.isPreviewLoading && !e.preview ? (i(),
|
|
308
|
+
})) : e.isPreviewLoading && !e.preview ? (i(), k("div", ka, [
|
|
307
309
|
b(le, {
|
|
308
310
|
loading: "",
|
|
309
311
|
class: "relative h-4 w-2/3 overflow-hidden"
|
|
@@ -316,14 +318,14 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
316
318
|
loading: "",
|
|
317
319
|
class: "relative h-5 w-1/3 overflow-hidden"
|
|
318
320
|
})
|
|
319
|
-
])) : e.preview ? (i(), h(
|
|
321
|
+
])) : e.preview ? (i(), h(De, {
|
|
320
322
|
key: 2,
|
|
321
323
|
invoice: e.preview,
|
|
322
324
|
"is-customer-facing": ""
|
|
323
325
|
}, null, 8, ["invoice"])) : M("", !0)
|
|
324
326
|
]),
|
|
325
|
-
|
|
326
|
-
b(
|
|
327
|
+
N("section", Ca, [
|
|
328
|
+
b($, {
|
|
327
329
|
id: "charge-on-demand-payment-heading",
|
|
328
330
|
tag: "h3",
|
|
329
331
|
variant: "label",
|
|
@@ -338,28 +340,28 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
338
340
|
]),
|
|
339
341
|
_: 1
|
|
340
342
|
}),
|
|
341
|
-
e.paymentMethods.length > 0 ? (i(), h(
|
|
343
|
+
e.paymentMethods.length > 0 ? (i(), h(oa, {
|
|
342
344
|
key: 0,
|
|
343
|
-
modelValue:
|
|
344
|
-
"onUpdate:modelValue":
|
|
345
|
+
modelValue: _.value,
|
|
346
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => _.value = m),
|
|
345
347
|
name: "charge-on-demand-payment-method",
|
|
346
348
|
options: T.value,
|
|
347
349
|
"show-radio": !1,
|
|
348
|
-
error: (
|
|
350
|
+
error: (R = e.errors) == null ? void 0 : R.paymentMethod,
|
|
349
351
|
disabled: e.disabled,
|
|
350
352
|
direction: "column"
|
|
351
353
|
}, {
|
|
352
|
-
label: c(({ optionValue:
|
|
353
|
-
|
|
354
|
+
label: c(({ optionValue: m }) => [
|
|
355
|
+
u.value.get(m) ? (i(), h(ta, {
|
|
354
356
|
key: 0,
|
|
355
|
-
"payment-method":
|
|
357
|
+
"payment-method": u.value.get(m)
|
|
356
358
|
}, null, 8, ["payment-method"])) : M("", !0)
|
|
357
359
|
]),
|
|
358
|
-
description: c(() => [...
|
|
360
|
+
description: c(() => [...f[2] || (f[2] = [])]),
|
|
359
361
|
_: 1
|
|
360
|
-
}, 8, ["modelValue", "options", "error", "disabled"])) : (i(),
|
|
362
|
+
}, 8, ["modelValue", "options", "error", "disabled"])) : (i(), k("div", Da, [
|
|
361
363
|
je(t.$slots, "payment-methods-empty", {}, () => [
|
|
362
|
-
b(
|
|
364
|
+
b($, {
|
|
363
365
|
tag: "p",
|
|
364
366
|
color: "subtle",
|
|
365
367
|
variant: "body-sm",
|
|
@@ -375,7 +377,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
375
377
|
_: 1
|
|
376
378
|
})
|
|
377
379
|
]),
|
|
378
|
-
(W = e.errors) != null && W.paymentMethod ? (i(), h(
|
|
380
|
+
(W = e.errors) != null && W.paymentMethod ? (i(), h(Ce, {
|
|
379
381
|
key: 0,
|
|
380
382
|
message: e.errors.paymentMethod
|
|
381
383
|
}, null, 8, ["message"])) : M("", !0)
|
|
@@ -387,7 +389,7 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
387
389
|
"icon-prefix": "add",
|
|
388
390
|
disabled: e.disabled,
|
|
389
391
|
"data-testid": "charge-on-demand-add-payment-method",
|
|
390
|
-
onClick:
|
|
392
|
+
onClick: f[1] || (f[1] = (m) => t.$emit("add-payment-method"))
|
|
391
393
|
}, {
|
|
392
394
|
default: c(() => [
|
|
393
395
|
v(p(n(a)({
|
|
@@ -402,68 +404,58 @@ const V = (e) => e.replaceAll("_", " ").toLowerCase().replace(/^./, (_) => _.toU
|
|
|
402
404
|
]);
|
|
403
405
|
};
|
|
404
406
|
}
|
|
405
|
-
}),
|
|
407
|
+
}), Oa = [
|
|
406
408
|
"ORDER",
|
|
407
409
|
"ADD_PAYMENT_METHOD",
|
|
408
410
|
"PLACED",
|
|
409
411
|
"PAYMENT_FAILED",
|
|
410
412
|
"FAILED"
|
|
411
413
|
];
|
|
412
|
-
function
|
|
413
|
-
return e.payment_status === "PAID" || e.payment_status === "OVERPAID";
|
|
414
|
-
}
|
|
415
|
-
function Ta(e) {
|
|
416
|
-
var _;
|
|
417
|
-
return ce(e) ? e.statusCode === 422 ? e.resourceType === "PAYMENT" ? "PAYMENT_FAILED" : "FAILED" : e.statusCode !== 400 ? "FAILED" : e.field === "payment_method_id" ? "PAYMENT_METHOD" : e.field === "pricing_plan_subscription_id" ? "SUBSCRIPTION_INACTIVE" : e.field === "pricing_items" || (_ = e.field) != null && _.startsWith("pricing_items.") ? "PRICING_ITEMS" : "FAILED" : "FAILED";
|
|
418
|
-
}
|
|
419
|
-
function Oa(e) {
|
|
420
|
-
return e === "PAYMENT_METHOD" || e === "PRICING_ITEMS" || e === "SUBSCRIPTION_INACTIVE";
|
|
421
|
-
}
|
|
422
|
-
function Na({
|
|
414
|
+
function xa({
|
|
423
415
|
pricingPlanScheduleId: e
|
|
424
416
|
}) {
|
|
425
|
-
const { chargeOnDemandPricingItems:
|
|
426
|
-
return { isCharging:
|
|
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 ({
|
|
427
419
|
pricingItems: O,
|
|
428
|
-
paymentMethodId:
|
|
420
|
+
paymentMethodId: x
|
|
429
421
|
}) => {
|
|
430
|
-
|
|
422
|
+
_.value = !0, E.value = void 0, s.value = void 0;
|
|
431
423
|
try {
|
|
432
|
-
const
|
|
424
|
+
const u = await y({
|
|
433
425
|
pricing_plan_schedule_id: e.value,
|
|
434
426
|
pricing_items: O,
|
|
435
|
-
payment_method_id:
|
|
427
|
+
payment_method_id: x,
|
|
436
428
|
finalize_immediately: !0
|
|
437
429
|
});
|
|
438
|
-
return a.value =
|
|
439
|
-
} catch (
|
|
440
|
-
const T =
|
|
441
|
-
E.value = T,
|
|
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;
|
|
442
434
|
const t = {
|
|
443
435
|
scheduleId: e.value,
|
|
444
436
|
outcome: T,
|
|
445
|
-
...
|
|
446
|
-
statusCode:
|
|
447
|
-
field:
|
|
448
|
-
requestId:
|
|
437
|
+
...ke(u) ? {
|
|
438
|
+
statusCode: u.statusCode,
|
|
439
|
+
field: u.field,
|
|
440
|
+
requestId: u.requestId
|
|
449
441
|
} : {}
|
|
450
442
|
};
|
|
451
443
|
return T === "FAILED" ? d.error(
|
|
452
444
|
"ON_DEMAND_CHARGE_FAILED",
|
|
453
445
|
"Failed to charge the on-demand order",
|
|
454
446
|
t,
|
|
455
|
-
|
|
447
|
+
u
|
|
456
448
|
) : d.warn(
|
|
457
449
|
"ON_DEMAND_CHARGE_REFUSED",
|
|
458
450
|
"The on-demand order was refused or its payment did not go through",
|
|
459
451
|
t,
|
|
460
|
-
|
|
461
|
-
), { error: T, unpaidInvoiceId:
|
|
452
|
+
u
|
|
453
|
+
), { error: T, unpaidInvoiceId: s.value };
|
|
462
454
|
} finally {
|
|
463
|
-
|
|
455
|
+
_.value = !1;
|
|
464
456
|
}
|
|
465
457
|
}, reset: () => {
|
|
466
|
-
a.value = void 0, E.value = void 0,
|
|
458
|
+
a.value = void 0, E.value = void 0, s.value = void 0;
|
|
467
459
|
} };
|
|
468
460
|
}
|
|
469
461
|
const Sa = {
|
|
@@ -472,10 +464,10 @@ const Sa = {
|
|
|
472
464
|
}, La = {
|
|
473
465
|
key: 1,
|
|
474
466
|
class: "flex flex-col gap-2"
|
|
475
|
-
},
|
|
467
|
+
}, Na = {
|
|
476
468
|
key: 2,
|
|
477
469
|
class: "flex flex-col gap-2"
|
|
478
|
-
},
|
|
470
|
+
}, at = /* @__PURE__ */ ce({
|
|
479
471
|
__name: "ChargeOnDemandModal",
|
|
480
472
|
props: {
|
|
481
473
|
showModal: { type: Boolean },
|
|
@@ -487,39 +479,39 @@ const Sa = {
|
|
|
487
479
|
canViewCreatedInvoice: { type: Boolean }
|
|
488
480
|
},
|
|
489
481
|
emits: ["close", "invoice-created", "view-invoice", "payment-method-stored", "payment-failed"],
|
|
490
|
-
setup(e, { emit:
|
|
491
|
-
const d = e,
|
|
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(
|
|
492
484
|
() => Ze(d.paymentMethods ?? [], d.subscription)
|
|
493
|
-
),
|
|
485
|
+
), u = D();
|
|
494
486
|
J(
|
|
495
|
-
|
|
496
|
-
(
|
|
487
|
+
x,
|
|
488
|
+
(r) => {
|
|
497
489
|
var Y;
|
|
498
|
-
const l =
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
if (
|
|
502
|
-
|
|
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;
|
|
503
495
|
return;
|
|
504
496
|
}
|
|
505
|
-
|
|
497
|
+
r.some(({ id: U }) => U === w.value) || (w.value = (Y = r[0]) == null ? void 0 : Y.id);
|
|
506
498
|
},
|
|
507
499
|
{ immediate: !0 }
|
|
508
500
|
);
|
|
509
501
|
const {
|
|
510
502
|
paneRef: T,
|
|
511
503
|
isActive: t,
|
|
512
|
-
isSaving:
|
|
504
|
+
isSaving: f,
|
|
513
505
|
open: A,
|
|
514
|
-
leave:
|
|
506
|
+
leave: R,
|
|
515
507
|
submit: W
|
|
516
|
-
} =
|
|
517
|
-
|
|
508
|
+
} = ca({ step: s, name: "ADD_PAYMENT_METHOD", returnTo: "ORDER" }), m = D(!1), C = D(), S = (r) => {
|
|
509
|
+
m.value = !0, E.error(
|
|
518
510
|
"PAYMENT_METHOD_OPTIONS_LOAD_FAILED",
|
|
519
511
|
"Failed to load the payment methods that can be offered",
|
|
520
512
|
{ flow: "ON_DEMAND_ORDER", subscriptionId: d.subscription.id },
|
|
521
|
-
|
|
522
|
-
), t.value && (
|
|
513
|
+
r
|
|
514
|
+
), t.value && (R(), C.value = a({
|
|
523
515
|
defaultMessage: "We couldn't load the ways to add a payment method. Please try again.",
|
|
524
516
|
description: "Shown on the on-demand order when the payment methods that can be added failed to load",
|
|
525
517
|
id: "charge_on_demand_modal.payment_method_options_error"
|
|
@@ -527,7 +519,7 @@ const Sa = {
|
|
|
527
519
|
}, {
|
|
528
520
|
settledOptions: q,
|
|
529
521
|
isPending: F,
|
|
530
|
-
load:
|
|
522
|
+
load: xe
|
|
531
523
|
} = ma({
|
|
532
524
|
isOpen: o(() => d.showModal && O.value),
|
|
533
525
|
customer: o(() => d.customer),
|
|
@@ -535,67 +527,67 @@ const Sa = {
|
|
|
535
527
|
onError: S
|
|
536
528
|
}), Se = o(
|
|
537
529
|
() => {
|
|
538
|
-
var
|
|
539
|
-
return (
|
|
530
|
+
var r;
|
|
531
|
+
return (r = q.value) == null ? void 0 : r.filter(
|
|
540
532
|
({ payment_acceptor: l }) => (d.subscription.payment_acceptor_ids ?? []).includes(l.id)
|
|
541
533
|
);
|
|
542
534
|
}
|
|
543
535
|
), Le = () => {
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
|
|
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");
|
|
547
539
|
}, me = Ke({
|
|
548
540
|
lines: o(
|
|
549
|
-
() =>
|
|
550
|
-
var
|
|
541
|
+
() => g.value.map(({ pricingItemId: r, units: l }) => {
|
|
542
|
+
var I;
|
|
551
543
|
return {
|
|
552
|
-
pricingItemId:
|
|
553
|
-
priceType: (
|
|
544
|
+
pricingItemId: r,
|
|
545
|
+
priceType: (I = d.items.find((Y) => Y.pricingItemId === r)) == null ? void 0 : I.priceType,
|
|
554
546
|
units: l
|
|
555
547
|
};
|
|
556
548
|
})
|
|
557
549
|
)
|
|
558
|
-
}),
|
|
550
|
+
}), ue = Xe(
|
|
559
551
|
{
|
|
560
552
|
lines: {
|
|
561
|
-
$each:
|
|
553
|
+
$each: Pe.forEach({
|
|
562
554
|
units: {
|
|
563
|
-
orderable:
|
|
555
|
+
orderable: Pe.withMessage(
|
|
564
556
|
() => a({
|
|
565
557
|
defaultMessage: "Enter a whole number of 1 or more.",
|
|
566
558
|
description: "Shown under the quantity of an on-demand order item that is not a whole number of 1 or more",
|
|
567
559
|
id: "charge_on_demand_modal.units_error"
|
|
568
560
|
}),
|
|
569
|
-
(
|
|
561
|
+
(r, l) => l.priceType !== "FLAT" || ea(r)
|
|
570
562
|
)
|
|
571
563
|
}
|
|
572
564
|
})
|
|
573
565
|
}
|
|
574
566
|
},
|
|
575
567
|
me
|
|
576
|
-
), Q = o(() =>
|
|
577
|
-
const { $errors:
|
|
578
|
-
var we,
|
|
579
|
-
const U = (
|
|
580
|
-
return U ? [[
|
|
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)]] : [];
|
|
581
573
|
});
|
|
582
574
|
return l.length > 0 ? Object.fromEntries(l) : void 0;
|
|
583
|
-
}),
|
|
584
|
-
() =>
|
|
585
|
-
), { invoicePreview:
|
|
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({
|
|
586
578
|
pricingPlanScheduleId: o(() => d.scheduleId),
|
|
587
|
-
pricingItems:
|
|
579
|
+
pricingItems: ve
|
|
588
580
|
}), Z = o(() => {
|
|
589
|
-
var
|
|
590
|
-
return (
|
|
581
|
+
var r;
|
|
582
|
+
return (r = pe.value) == null ? void 0 : r.invoice_amount_including_tax;
|
|
591
583
|
}), {
|
|
592
584
|
isCharging: L,
|
|
593
585
|
chargedInvoice: z,
|
|
594
586
|
chargeError: B,
|
|
595
587
|
unpaidInvoiceId: ee,
|
|
596
|
-
charge:
|
|
588
|
+
charge: Re,
|
|
597
589
|
reset: Fe
|
|
598
|
-
} =
|
|
590
|
+
} = xa({ pricingPlanScheduleId: o(() => d.scheduleId) }), Be = o(() => {
|
|
599
591
|
switch (B.value) {
|
|
600
592
|
case "PAYMENT_METHOD":
|
|
601
593
|
return a({
|
|
@@ -619,10 +611,10 @@ const Sa = {
|
|
|
619
611
|
return;
|
|
620
612
|
}
|
|
621
613
|
}), Ye = o(() => B.value === "SUBSCRIPTION_INACTIVE");
|
|
622
|
-
J(
|
|
614
|
+
J(w, () => {
|
|
623
615
|
B.value === "PAYMENT_METHOD" && (B.value = void 0);
|
|
624
616
|
}), J(
|
|
625
|
-
|
|
617
|
+
g,
|
|
626
618
|
() => {
|
|
627
619
|
B.value === "PRICING_ITEMS" && (B.value = void 0);
|
|
628
620
|
},
|
|
@@ -636,23 +628,21 @@ const Sa = {
|
|
|
636
628
|
}) : void 0
|
|
637
629
|
), ae = o(
|
|
638
630
|
() => ge.value && !j.value && !L.value
|
|
639
|
-
),
|
|
640
|
-
() => Be.value ?? Ue.value ??
|
|
631
|
+
), fe = o(
|
|
632
|
+
() => Be.value ?? Ue.value ?? C.value
|
|
641
633
|
), Ve = o(
|
|
642
|
-
() =>
|
|
643
|
-
), K = o(() =>
|
|
644
|
-
() => !!
|
|
645
|
-
),
|
|
646
|
-
() => !L.value && O.value && !Ye.value && f.value.length > 0 && !Q.value && !!I.value && !!Z.value && !j.value
|
|
647
|
-
), ze = o(() => r.value === "PLACED" ? a({
|
|
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({
|
|
648
638
|
defaultMessage: "Order placed",
|
|
649
639
|
description: "Title of the on-demand order modal once the order is placed, paid or not",
|
|
650
640
|
id: "charge_on_demand_modal.placed.title"
|
|
651
|
-
}) :
|
|
641
|
+
}) : s.value === "PAYMENT_FAILED" ? a({
|
|
652
642
|
defaultMessage: "Payment not completed",
|
|
653
643
|
description: "Title of the on-demand order modal when the payment for the order could not be made",
|
|
654
644
|
id: "charge_on_demand_modal.payment_failed.title"
|
|
655
|
-
}) :
|
|
645
|
+
}) : s.value === "FAILED" ? a({
|
|
656
646
|
defaultMessage: "Something went wrong",
|
|
657
647
|
description: "Title of the on-demand order modal when the order failed and it is unknown whether it went through",
|
|
658
648
|
id: "charge_on_demand_modal.failed.title"
|
|
@@ -664,7 +654,7 @@ const Sa = {
|
|
|
664
654
|
defaultMessage: "Order on-demand items",
|
|
665
655
|
description: "Title of the modal for ordering the on-demand items of a subscription",
|
|
666
656
|
id: "charge_on_demand_modal.title"
|
|
667
|
-
})), He = o(() =>
|
|
657
|
+
})), He = o(() => s.value === "PLACED" ? X.value ? a({
|
|
668
658
|
defaultMessage: "Your order is paid. The invoice is in your invoice list.",
|
|
669
659
|
description: "Subtitle of the on-demand order modal once the order has been paid",
|
|
670
660
|
id: "charge_on_demand_modal.success.subtitle"
|
|
@@ -672,15 +662,15 @@ const Sa = {
|
|
|
672
662
|
defaultMessage: "Your invoice was created, but it isn't paid yet. You'll find it in your invoice list.",
|
|
673
663
|
description: "Subtitle of the on-demand order modal when the order was placed but its invoice is not paid",
|
|
674
664
|
id: "charge_on_demand_modal.placed.unpaid.subtitle"
|
|
675
|
-
}) :
|
|
665
|
+
}) : s.value === "PAYMENT_FAILED" && ee.value ? a({
|
|
676
666
|
defaultMessage: "We couldn't take the payment for this order. Its invoice is in your invoice list, waiting to be paid.",
|
|
677
667
|
description: "Subtitle of the on-demand order modal when the order was placed but the payment for its invoice was refused",
|
|
678
668
|
id: "charge_on_demand_modal.payment_failed.unpaid_invoice.subtitle"
|
|
679
|
-
}) :
|
|
669
|
+
}) : s.value === "PAYMENT_FAILED" ? a({
|
|
680
670
|
defaultMessage: "We couldn't take the payment for this order. If an invoice was created, you'll find it in your invoice list.",
|
|
681
671
|
description: "Subtitle of the on-demand order modal when the payment for the order could not be made",
|
|
682
672
|
id: "charge_on_demand_modal.payment_failed.subtitle"
|
|
683
|
-
}) :
|
|
673
|
+
}) : s.value === "FAILED" ? a({
|
|
684
674
|
defaultMessage: "We couldn't complete your order. Check your invoice list before trying again.",
|
|
685
675
|
description: "Subtitle of the on-demand order modal when the order failed and it is unknown whether it went through",
|
|
686
676
|
id: "charge_on_demand_modal.failed.subtitle"
|
|
@@ -688,7 +678,7 @@ const Sa = {
|
|
|
688
678
|
defaultMessage: "Add a payment method to pay for this order.",
|
|
689
679
|
description: "Subtitle of the on-demand order modal while the customer is adding a payment method",
|
|
690
680
|
id: "charge_on_demand_modal.add_payment_method.subtitle"
|
|
691
|
-
}) : void 0),
|
|
681
|
+
}) : void 0), be = o(
|
|
692
682
|
() => t.value ? a({
|
|
693
683
|
defaultMessage: "Back",
|
|
694
684
|
description: "Leaves the add payment method step of the on-demand order modal for the order",
|
|
@@ -702,7 +692,7 @@ const Sa = {
|
|
|
702
692
|
defaultMessage: "Done",
|
|
703
693
|
description: "Closes the on-demand order modal once the order is placed",
|
|
704
694
|
id: "charge_on_demand_modal.done_button.label"
|
|
705
|
-
}) :
|
|
695
|
+
}) : _e.value ? a({
|
|
706
696
|
defaultMessage: "Close",
|
|
707
697
|
description: "Closes the on-demand order modal when the order did not go through",
|
|
708
698
|
id: "charge_on_demand_modal.close_button.label"
|
|
@@ -710,7 +700,7 @@ const Sa = {
|
|
|
710
700
|
defaultMessage: "Save payment method",
|
|
711
701
|
description: "Confirm button of the on-demand order modal while the customer is adding a payment method",
|
|
712
702
|
id: "charge_on_demand_modal.save_payment_method.label"
|
|
713
|
-
}) :
|
|
703
|
+
}) : g.value.length === 0 ? a({
|
|
714
704
|
defaultMessage: "Add an item to continue",
|
|
715
705
|
description: "Disabled pay button of the on-demand order while no item is added",
|
|
716
706
|
id: "charge_on_demand_modal.confirm_button.no_items"
|
|
@@ -734,97 +724,96 @@ const Sa = {
|
|
|
734
724
|
},
|
|
735
725
|
{ total: Je(Z.value) }
|
|
736
726
|
)), Ge = async () => {
|
|
737
|
-
const
|
|
738
|
-
if (!
|
|
727
|
+
const r = ve.value;
|
|
728
|
+
if (!ye.value || !r || !w.value)
|
|
739
729
|
return;
|
|
740
|
-
const l = await
|
|
741
|
-
pricingItems:
|
|
742
|
-
paymentMethodId:
|
|
730
|
+
const l = await Re({
|
|
731
|
+
pricingItems: r,
|
|
732
|
+
paymentMethodId: w.value
|
|
743
733
|
});
|
|
744
|
-
"invoice" in l ? (
|
|
734
|
+
"invoice" in l ? (_("invoice-created", l.invoice), s.value = "PLACED") : va(l.error) || (s.value = l.error);
|
|
745
735
|
}, te = () => {
|
|
746
736
|
if (t.value) {
|
|
747
737
|
W();
|
|
748
738
|
return;
|
|
749
739
|
}
|
|
750
740
|
if (ae.value) {
|
|
751
|
-
|
|
741
|
+
$e();
|
|
752
742
|
return;
|
|
753
743
|
}
|
|
754
744
|
Ge();
|
|
755
745
|
}, ne = () => {
|
|
756
|
-
|
|
746
|
+
_("close");
|
|
757
747
|
}, oe = o(
|
|
758
748
|
() => K.value && !X.value && d.canViewCreatedInvoice
|
|
759
749
|
), de = o(
|
|
760
|
-
() =>
|
|
750
|
+
() => s.value === "PAYMENT_FAILED" && !!ee.value && d.canViewCreatedInvoice
|
|
761
751
|
), ie = o(
|
|
762
752
|
() => a({
|
|
763
753
|
defaultMessage: "Go to invoice",
|
|
764
754
|
description: "Opens the invoice of the on-demand order the customer just placed",
|
|
765
755
|
id: "charge_on_demand_modal.view_invoice_button.label"
|
|
766
756
|
})
|
|
767
|
-
),
|
|
757
|
+
), re = () => {
|
|
768
758
|
var l;
|
|
769
|
-
const
|
|
770
|
-
ne(),
|
|
771
|
-
},
|
|
772
|
-
if (!(
|
|
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)) {
|
|
773
763
|
if (K.value) {
|
|
774
764
|
ne();
|
|
775
765
|
return;
|
|
776
766
|
}
|
|
777
767
|
if (t.value) {
|
|
778
|
-
|
|
768
|
+
R();
|
|
779
769
|
return;
|
|
780
770
|
}
|
|
781
|
-
|
|
771
|
+
_("close");
|
|
782
772
|
}
|
|
783
773
|
};
|
|
784
774
|
return J(
|
|
785
775
|
() => d.showModal,
|
|
786
|
-
(
|
|
787
|
-
|
|
776
|
+
(r) => {
|
|
777
|
+
r && (s.value = "ORDER", g.value = [], u.value = void 0, Fe(), C.value = void 0);
|
|
788
778
|
}
|
|
789
|
-
), (
|
|
779
|
+
), (r, l) => (i(), h(ha, {
|
|
790
780
|
ref_key: "addPaymentMethodRef",
|
|
791
781
|
ref: T,
|
|
792
782
|
class: "sv-charge-on-demand-modal",
|
|
793
783
|
"show-modal": e.showModal,
|
|
794
784
|
title: ze.value,
|
|
795
785
|
"sub-title": He.value,
|
|
796
|
-
"cancel-button-text":
|
|
786
|
+
"cancel-button-text": be.value,
|
|
797
787
|
"confirm-button-text": H.value,
|
|
798
|
-
"is-pending": n(
|
|
799
|
-
panes: n(
|
|
800
|
-
step:
|
|
788
|
+
"is-pending": n(f) || n(L),
|
|
789
|
+
panes: n(Oa),
|
|
790
|
+
step: s.value,
|
|
801
791
|
"add-payment-method-pane": "ADD_PAYMENT_METHOD",
|
|
802
792
|
customer: e.customer,
|
|
803
793
|
"payment-method-options": Se.value,
|
|
804
794
|
"is-payment-method-options-pending": n(F),
|
|
805
|
-
"is-adding-payment-method": n(t),
|
|
806
795
|
onConfirm: te,
|
|
807
|
-
onCancel:
|
|
808
|
-
onPaymentSuccess:
|
|
809
|
-
onPaymentFailed: l[2] || (l[2] = (
|
|
796
|
+
onCancel: se,
|
|
797
|
+
onPaymentSuccess: Ne,
|
|
798
|
+
onPaymentFailed: l[2] || (l[2] = (I) => r.$emit("payment-failed", I))
|
|
810
799
|
}, {
|
|
811
800
|
ORDER: c(() => [
|
|
812
|
-
O.value ? (i(), h(n(
|
|
801
|
+
O.value ? (i(), h(n(Ta), {
|
|
813
802
|
key: 0,
|
|
814
|
-
selection:
|
|
815
|
-
"onUpdate:selection": l[0] || (l[0] = (
|
|
816
|
-
"payment-method-id":
|
|
817
|
-
"onUpdate:paymentMethodId": l[1] || (l[1] = (
|
|
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),
|
|
818
807
|
class: "sv-charge-on-demand-modal__form",
|
|
819
808
|
items: e.items,
|
|
820
|
-
preview: n(
|
|
809
|
+
preview: n(pe),
|
|
821
810
|
"is-preview-loading": n(j),
|
|
822
|
-
"payment-methods":
|
|
811
|
+
"payment-methods": x.value,
|
|
823
812
|
errors: Ve.value,
|
|
824
813
|
disabled: n(L),
|
|
825
814
|
"can-add-payment-method": "",
|
|
826
815
|
onAddPaymentMethod: Le
|
|
827
|
-
}, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(
|
|
816
|
+
}, null, 8, ["selection", "payment-method-id", "items", "preview", "is-preview-loading", "payment-methods", "errors", "disabled"])) : (i(), h(fa, {
|
|
828
817
|
key: 1,
|
|
829
818
|
class: "sv-charge-on-demand-modal__unavailable",
|
|
830
819
|
icon: "credit_card_off"
|
|
@@ -847,13 +836,13 @@ const Sa = {
|
|
|
847
836
|
}))
|
|
848
837
|
]),
|
|
849
838
|
PLACED: c(() => [
|
|
850
|
-
n(z) ? (i(), h(n(
|
|
839
|
+
n(z) ? (i(), h(n(sa), {
|
|
851
840
|
key: 0,
|
|
852
841
|
class: "sv-charge-on-demand-modal__receipt",
|
|
853
842
|
"content-background": "none"
|
|
854
843
|
}, {
|
|
855
844
|
default: c(() => [
|
|
856
|
-
b(n(
|
|
845
|
+
b(n(De), {
|
|
857
846
|
invoice: n(z),
|
|
858
847
|
"is-customer-facing": "",
|
|
859
848
|
"is-paid": X.value
|
|
@@ -863,12 +852,12 @@ const Sa = {
|
|
|
863
852
|
})) : M("", !0)
|
|
864
853
|
]),
|
|
865
854
|
footer: c(() => [
|
|
866
|
-
K.value ? (i(),
|
|
855
|
+
K.value ? (i(), k("div", Sa, [
|
|
867
856
|
oe.value ? (i(), h(n(P), {
|
|
868
857
|
key: 0,
|
|
869
858
|
size: "lg",
|
|
870
859
|
class: "sv-action sv-action--primary",
|
|
871
|
-
onClick:
|
|
860
|
+
onClick: re
|
|
872
861
|
}, {
|
|
873
862
|
default: c(() => [
|
|
874
863
|
v(p(ie.value), 1)
|
|
@@ -894,19 +883,19 @@ const Sa = {
|
|
|
894
883
|
size: "lg",
|
|
895
884
|
intent: "subtle",
|
|
896
885
|
class: "sv-action sv-action--secondary",
|
|
897
|
-
onClick:
|
|
886
|
+
onClick: re
|
|
898
887
|
}, {
|
|
899
888
|
default: c(() => [
|
|
900
889
|
v(p(ie.value), 1)
|
|
901
890
|
]),
|
|
902
891
|
_: 1
|
|
903
892
|
})) : M("", !0)
|
|
904
|
-
])) :
|
|
893
|
+
])) : _e.value ? (i(), k("div", La, [
|
|
905
894
|
de.value ? (i(), h(n(P), {
|
|
906
895
|
key: 0,
|
|
907
896
|
size: "lg",
|
|
908
897
|
class: "sv-action sv-action--primary",
|
|
909
|
-
onClick:
|
|
898
|
+
onClick: re
|
|
910
899
|
}, {
|
|
911
900
|
default: c(() => [
|
|
912
901
|
v(p(ie.value), 1)
|
|
@@ -920,19 +909,19 @@ const Sa = {
|
|
|
920
909
|
"sv-action",
|
|
921
910
|
de.value ? "sv-action--secondary" : "sv-action--primary"
|
|
922
911
|
]),
|
|
923
|
-
onClick:
|
|
912
|
+
onClick: se
|
|
924
913
|
}, {
|
|
925
914
|
default: c(() => [
|
|
926
915
|
v(p(H.value), 1)
|
|
927
916
|
]),
|
|
928
917
|
_: 1
|
|
929
918
|
}, 8, ["intent", "class"])
|
|
930
|
-
])) : (i(),
|
|
919
|
+
])) : (i(), k("div", Na, [
|
|
931
920
|
n(t) ? (i(), h(n(P), {
|
|
932
921
|
key: 0,
|
|
933
922
|
size: "lg",
|
|
934
923
|
class: "sv-action sv-action--primary",
|
|
935
|
-
loading: n(
|
|
924
|
+
loading: n(f),
|
|
936
925
|
onClick: te
|
|
937
926
|
}, {
|
|
938
927
|
default: c(() => [
|
|
@@ -943,7 +932,7 @@ const Sa = {
|
|
|
943
932
|
key: 1,
|
|
944
933
|
size: "lg",
|
|
945
934
|
class: "sv-action sv-action--primary",
|
|
946
|
-
disabled: !
|
|
935
|
+
disabled: !ye.value && !ae.value,
|
|
947
936
|
loading: n(L),
|
|
948
937
|
onClick: te
|
|
949
938
|
}, {
|
|
@@ -957,19 +946,19 @@ const Sa = {
|
|
|
957
946
|
intent: "subtle",
|
|
958
947
|
class: "sv-action sv-action--secondary",
|
|
959
948
|
disabled: n(L),
|
|
960
|
-
onClick:
|
|
949
|
+
onClick: se
|
|
961
950
|
}, {
|
|
962
951
|
default: c(() => [
|
|
963
|
-
v(p(
|
|
952
|
+
v(p(be.value), 1)
|
|
964
953
|
]),
|
|
965
954
|
_: 1
|
|
966
955
|
}, 8, ["disabled"])
|
|
967
956
|
]))
|
|
968
957
|
]),
|
|
969
958
|
_: 1
|
|
970
|
-
}, 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"
|
|
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"]));
|
|
971
960
|
}
|
|
972
961
|
});
|
|
973
962
|
export {
|
|
974
|
-
|
|
963
|
+
at as default
|
|
975
964
|
};
|