@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -91
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +426 -426
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
|
@@ -0,0 +1,864 @@
|
|
|
1
|
+
import { defineComponent as E, computed as k, openBlock as d, createElementBlock as P, createVNode as A, unref as i, withCtx as y, Fragment as N, createTextVNode as M, toDisplayString as $, renderList as B, createBlock as _, useModel as S, ref as R, createElementVNode as T, normalizeClass as j, createCommentVNode as w, mergeModels as z, mergeProps as le, toRef as D, watch as se, isRef as X, renderSlot as oe } from "vue";
|
|
2
|
+
import { _ as F } from "./Section.vue.es-CwKTCeZ1.mjs";
|
|
3
|
+
import { a as q, d as O } from "./customElements-d7Bhfqi_.mjs";
|
|
4
|
+
import { u as G } from "./pricingPlanScheduleOverrides-GON_34ep.mjs";
|
|
5
|
+
import { f as Q } from "./formatting.es-RclXHhKo.mjs";
|
|
6
|
+
import { _ as ue } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
7
|
+
import { a as de, _ as H } from "./Button.vue.es-BHbanjR0.mjs";
|
|
8
|
+
import { _ as Y } from "./StepInput.vue.es-GkrOtOVa.mjs";
|
|
9
|
+
import { d as re, F as ee, e as ce, f as J, s as W, b as me, a as ge } from "./addonQuantity-BvoYTajN.mjs";
|
|
10
|
+
import { _ as pe } from "./Input.vue.es-CxiwRZYs.mjs";
|
|
11
|
+
import { a as K, u as ie, _ as be } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs";
|
|
12
|
+
import { _ as fe } from "./Toggle.vue.es-S2g8WGY_.mjs";
|
|
13
|
+
import { b as te } from "./useCheckoutForm-BaV2j_ob.mjs";
|
|
14
|
+
import { g as ae, a as ve } from "./pricing-CBJT8C6L.mjs";
|
|
15
|
+
import { a as L } from "./useService-DayNZhPh.mjs";
|
|
16
|
+
import { j as ye, e as Ve } from "./subscription-DQ5mRp_e.mjs";
|
|
17
|
+
const _e = { class: "grid grid-cols-2 gap-2" }, he = /* @__PURE__ */ E({
|
|
18
|
+
__name: "TieredTableRow",
|
|
19
|
+
props: {
|
|
20
|
+
band: { type: Object },
|
|
21
|
+
previousBand: { type: Object },
|
|
22
|
+
isFirst: { type: Boolean },
|
|
23
|
+
period: { type: Object }
|
|
24
|
+
},
|
|
25
|
+
setup(e) {
|
|
26
|
+
const n = e, { $t: t } = q(), { formatTimePeriod: r } = G(), c = k(() => {
|
|
27
|
+
var b;
|
|
28
|
+
if (n.isFirst)
|
|
29
|
+
return "0";
|
|
30
|
+
if ((b = n.previousBand) != null && b.tier_top_bound && "number" in n.previousBand.tier_top_bound)
|
|
31
|
+
return n.previousBand.tier_top_bound.number;
|
|
32
|
+
}), f = k(() => {
|
|
33
|
+
if (!(!n.band.tier_top_bound || !("number" in n.band.tier_top_bound)))
|
|
34
|
+
return n.band.tier_top_bound.number;
|
|
35
|
+
});
|
|
36
|
+
return (b, m) => (d(), P("div", _e, [
|
|
37
|
+
A(i(O), {
|
|
38
|
+
variant: "body-xs",
|
|
39
|
+
color: "subtle",
|
|
40
|
+
tag: "div"
|
|
41
|
+
}, {
|
|
42
|
+
default: y(() => [
|
|
43
|
+
f.value ? (d(), P(N, { key: 0 }, [
|
|
44
|
+
M($(i(t)(
|
|
45
|
+
{
|
|
46
|
+
defaultMessage: "{lower_bound} - {upper_bound} seats",
|
|
47
|
+
id: "seats.tiered_range_label",
|
|
48
|
+
description: "The label showing the seat count range for a tiered pricing tier"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
lower_bound: c.value ?? "0",
|
|
52
|
+
upper_bound: f.value
|
|
53
|
+
}
|
|
54
|
+
)), 1)
|
|
55
|
+
], 64)) : (d(), P(N, { key: 1 }, [
|
|
56
|
+
M($(i(t)(
|
|
57
|
+
{
|
|
58
|
+
defaultMessage: "> {lower_bound} seats",
|
|
59
|
+
id: "seats.tiered_unbounded_range_label",
|
|
60
|
+
description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
lower_bound: c.value ?? "0"
|
|
64
|
+
}
|
|
65
|
+
)), 1)
|
|
66
|
+
], 64))
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}),
|
|
70
|
+
A(i(O), {
|
|
71
|
+
variant: "body-xs",
|
|
72
|
+
color: "subtle",
|
|
73
|
+
tag: "div",
|
|
74
|
+
class: "text-right"
|
|
75
|
+
}, {
|
|
76
|
+
default: y(() => [
|
|
77
|
+
M($(e.band.amount && i(t)(
|
|
78
|
+
{
|
|
79
|
+
defaultMessage: "{amount} per seat/{period}",
|
|
80
|
+
id: "seats.tiered_price_per_seat_period",
|
|
81
|
+
description: "The price per seat and billing period label for a tiered pricing tier"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
amount: i(Q)(e.band.amount),
|
|
85
|
+
period: e.period ? i(r)(e.period, {
|
|
86
|
+
short: !0,
|
|
87
|
+
hideValueForExactPeriods: !0
|
|
88
|
+
}) : ""
|
|
89
|
+
}
|
|
90
|
+
)), 1)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})
|
|
94
|
+
]));
|
|
95
|
+
}
|
|
96
|
+
}), xe = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, ke = /* @__PURE__ */ E({
|
|
97
|
+
__name: "TieredTable",
|
|
98
|
+
props: {
|
|
99
|
+
bands: { type: Array },
|
|
100
|
+
period: { type: Object }
|
|
101
|
+
},
|
|
102
|
+
setup(e) {
|
|
103
|
+
return (n, t) => (d(), P("div", xe, [
|
|
104
|
+
(d(!0), P(N, null, B(e.bands, (r, c) => (d(), _(he, {
|
|
105
|
+
key: c,
|
|
106
|
+
band: r,
|
|
107
|
+
"is-first": c === 0,
|
|
108
|
+
"previous-band": c > 0 ? e.bands[c - 1] : void 0,
|
|
109
|
+
period: e.period
|
|
110
|
+
}, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
|
|
111
|
+
]));
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
function ne({
|
|
115
|
+
pricings: e,
|
|
116
|
+
pricingItemConfigId: n
|
|
117
|
+
}) {
|
|
118
|
+
return k(() => {
|
|
119
|
+
var c, f, b, m, l, u, s, p;
|
|
120
|
+
const { config: t, productItem: r } = re({
|
|
121
|
+
pricings: e,
|
|
122
|
+
pricingItemConfigId: n
|
|
123
|
+
});
|
|
124
|
+
return {
|
|
125
|
+
billing: {
|
|
126
|
+
period: (f = (c = t == null ? void 0 : t.billing_period_configs) == null ? void 0 : c[0]) == null ? void 0 : f.billing_period,
|
|
127
|
+
billedInAdvance: t == null ? void 0 : t.billing_in_advance
|
|
128
|
+
},
|
|
129
|
+
product: {
|
|
130
|
+
name: r == null ? void 0 : r.name,
|
|
131
|
+
description: r == null ? void 0 : r.description
|
|
132
|
+
},
|
|
133
|
+
pricing: {
|
|
134
|
+
...((b = t == null ? void 0 : t.details) == null ? void 0 : b.pricing_type) === "FLAT" && {
|
|
135
|
+
amount: (u = (l = (m = t.details) == null ? void 0 : m.bands) == null ? void 0 : l[0]) == null ? void 0 : u.amount
|
|
136
|
+
},
|
|
137
|
+
...((s = t == null ? void 0 : t.details) == null ? void 0 : s.pricing_type) === "TIERED" && {
|
|
138
|
+
tiered: { bands: (p = t.details) == null ? void 0 : p.bands }
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
const Pe = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Ae = { class: "w-24 shrink-0 justify-start md:w-32" }, Me = ["tabindex"], $e = { key: 0 }, Ue = { key: 0 }, Te = /* @__PURE__ */ E({
|
|
145
|
+
__name: "SeatsEditorItem",
|
|
146
|
+
props: /* @__PURE__ */ z({
|
|
147
|
+
modelValue: { type: Object },
|
|
148
|
+
defaultValue: { type: Object },
|
|
149
|
+
pricings: { type: Array },
|
|
150
|
+
maxValue: { type: Object },
|
|
151
|
+
disabled: { type: Boolean }
|
|
152
|
+
}, {
|
|
153
|
+
modelValue: { required: !0 },
|
|
154
|
+
modelModifiers: {}
|
|
155
|
+
}),
|
|
156
|
+
emits: ["update:modelValue"],
|
|
157
|
+
setup(e) {
|
|
158
|
+
const n = e, t = S(e, "modelValue"), { $t: r } = q(), { formatTimePeriod: c } = G(), f = R(!1), b = R(0), m = k({
|
|
159
|
+
get: () => +(t.value.number || ee),
|
|
160
|
+
set(s) {
|
|
161
|
+
var U;
|
|
162
|
+
const p = (U = n.maxValue) != null && U.number ? +n.maxValue.number : void 0;
|
|
163
|
+
p !== void 0 && s > p && b.value++;
|
|
164
|
+
const h = p !== void 0 ? Math.min(s, p) : s;
|
|
165
|
+
t.value = {
|
|
166
|
+
...t.value,
|
|
167
|
+
number: h !== void 0 ? h.toString() : void 0
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
}), l = ne({
|
|
171
|
+
pricings: n.pricings,
|
|
172
|
+
pricingItemConfigId: t.value.pricing_item_config_id
|
|
173
|
+
}), u = k(() => {
|
|
174
|
+
var s, p;
|
|
175
|
+
return !!((p = (s = l.value.pricing) == null ? void 0 : s.tiered) != null && p.bands);
|
|
176
|
+
});
|
|
177
|
+
return (s, p) => {
|
|
178
|
+
var h, U, C, V;
|
|
179
|
+
return d(), P("div", null, [
|
|
180
|
+
T("div", Pe, [
|
|
181
|
+
T("div", Ae, [
|
|
182
|
+
(d(), _(i(Y), {
|
|
183
|
+
key: b.value,
|
|
184
|
+
modelValue: m.value,
|
|
185
|
+
"onUpdate:modelValue": p[0] || (p[0] = (g) => m.value = g),
|
|
186
|
+
size: "sm",
|
|
187
|
+
min: (h = e.defaultValue) != null && h.number ? +e.defaultValue.number : void 0,
|
|
188
|
+
max: (U = e.maxValue) != null && U.number ? +e.maxValue.number : void 0,
|
|
189
|
+
disabled: e.disabled
|
|
190
|
+
}, null, 8, ["modelValue", "min", "max", "disabled"]))
|
|
191
|
+
]),
|
|
192
|
+
T("div", {
|
|
193
|
+
class: j(["flex grow flex-col", { "hover:cursor-pointer": u.value }]),
|
|
194
|
+
tabindex: u.value ? 0 : void 0,
|
|
195
|
+
onClick: p[1] || (p[1] = (g) => u.value ? f.value = !f.value : void 0)
|
|
196
|
+
}, [
|
|
197
|
+
A(i(O), {
|
|
198
|
+
tag: "span",
|
|
199
|
+
variant: "body-sm",
|
|
200
|
+
weight: "semibold"
|
|
201
|
+
}, {
|
|
202
|
+
default: y(() => [
|
|
203
|
+
M($(i(l).product.name || i(r)({
|
|
204
|
+
defaultMessage: "Seats",
|
|
205
|
+
id: "seats.label",
|
|
206
|
+
description: "The label for the seats input field"
|
|
207
|
+
})), 1)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}),
|
|
211
|
+
i(l).pricing.amount ? (d(), _(i(O), {
|
|
212
|
+
key: 0,
|
|
213
|
+
tag: "span",
|
|
214
|
+
variant: "body-xs",
|
|
215
|
+
color: "subtle"
|
|
216
|
+
}, {
|
|
217
|
+
default: y(() => [
|
|
218
|
+
M($(i(r)(
|
|
219
|
+
{
|
|
220
|
+
defaultMessage: "{amount} per seat/{period}",
|
|
221
|
+
id: "seats.price_per_seat_period",
|
|
222
|
+
description: "The price per seat and billing period label for seat-based pricing"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
amount: i(Q)(i(l).pricing.amount),
|
|
226
|
+
period: i(l).billing.period ? i(c)(i(l).billing.period, {
|
|
227
|
+
short: !0,
|
|
228
|
+
hideValueForExactPeriods: !0
|
|
229
|
+
}) : ""
|
|
230
|
+
}
|
|
231
|
+
)), 1)
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
})) : i(l).pricing.tiered ? (d(), _(i(O), {
|
|
235
|
+
key: 1,
|
|
236
|
+
tag: "span",
|
|
237
|
+
variant: "body-xs",
|
|
238
|
+
color: "subtle"
|
|
239
|
+
}, {
|
|
240
|
+
default: y(() => [
|
|
241
|
+
M($(i(r)({
|
|
242
|
+
defaultMessage: "Tiered pricing",
|
|
243
|
+
id: "seats.tiered_pricing_label",
|
|
244
|
+
description: "The label indicating tiered pricing structure for seats"
|
|
245
|
+
})) + " ", 1),
|
|
246
|
+
A(i(de), {
|
|
247
|
+
icon: "keyboard_arrow_down",
|
|
248
|
+
size: "xs",
|
|
249
|
+
class: j(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !f.value, "rotate-180": f.value }])
|
|
250
|
+
}, null, 8, ["class"])
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
})) : w("", !0)
|
|
254
|
+
], 10, Me)
|
|
255
|
+
]),
|
|
256
|
+
(V = (C = i(l).pricing) == null ? void 0 : C.tiered) != null && V.bands ? (d(), P("div", $e, [
|
|
257
|
+
A(i(ue), { "is-open": f.value }, {
|
|
258
|
+
default: y(() => [
|
|
259
|
+
f.value ? (d(), P("div", Ue, [
|
|
260
|
+
A(ke, {
|
|
261
|
+
bands: i(l).pricing.tiered.bands,
|
|
262
|
+
period: i(l).billing.period
|
|
263
|
+
}, null, 8, ["bands", "period"])
|
|
264
|
+
])) : w("", !0)
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}, 8, ["is-open"])
|
|
268
|
+
])) : w("", !0)
|
|
269
|
+
]);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
}), Ce = {
|
|
273
|
+
key: 0,
|
|
274
|
+
class: "grid grid-cols-1 gap-1"
|
|
275
|
+
}, Se = /* @__PURE__ */ E({
|
|
276
|
+
__name: "SeatsEditor",
|
|
277
|
+
props: /* @__PURE__ */ z({
|
|
278
|
+
modelValue: { type: Array },
|
|
279
|
+
initialSeatsValues: { type: Array },
|
|
280
|
+
pricings: { type: Array },
|
|
281
|
+
maxValues: { type: Array },
|
|
282
|
+
editableConfigIds: { type: Array }
|
|
283
|
+
}, {
|
|
284
|
+
modelValue: { required: !0 },
|
|
285
|
+
modelModifiers: {}
|
|
286
|
+
}),
|
|
287
|
+
emits: ["update:modelValue"],
|
|
288
|
+
setup(e) {
|
|
289
|
+
const n = e, t = S(e, "modelValue"), r = (m) => k({
|
|
290
|
+
get: () => t.value[m],
|
|
291
|
+
set: (l) => {
|
|
292
|
+
const u = t.value.slice();
|
|
293
|
+
u[m] = l, t.value = u;
|
|
294
|
+
}
|
|
295
|
+
}), c = (m) => {
|
|
296
|
+
var l;
|
|
297
|
+
return (l = n.initialSeatsValues) == null ? void 0 : l.find(
|
|
298
|
+
(u) => u.pricing_item_config_id === m.pricing_item_config_id
|
|
299
|
+
);
|
|
300
|
+
}, f = (m) => {
|
|
301
|
+
var l;
|
|
302
|
+
return (l = n.maxValues) == null ? void 0 : l.find((u) => u.pricing_item_config_id === m.pricing_item_config_id);
|
|
303
|
+
}, b = (m) => !!n.editableConfigIds && !n.editableConfigIds.includes(m.pricing_item_config_id);
|
|
304
|
+
return (m, l) => e.modelValue.length > 0 ? (d(), P("div", Ce, [
|
|
305
|
+
(d(!0), P(N, null, B(e.modelValue, (u, s) => (d(), _(i(F), { key: s }, {
|
|
306
|
+
default: y(() => [
|
|
307
|
+
u.pricing_item_config_id ? (d(), _(Te, {
|
|
308
|
+
key: u.pricing_item_config_id,
|
|
309
|
+
modelValue: r(s).value,
|
|
310
|
+
"onUpdate:modelValue": (p) => r(s).value = p,
|
|
311
|
+
"default-value": c(u),
|
|
312
|
+
"max-value": f(u),
|
|
313
|
+
disabled: b(u),
|
|
314
|
+
pricings: e.pricings
|
|
315
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "max-value", "disabled", "pricings"])) : w("", !0)
|
|
316
|
+
]),
|
|
317
|
+
_: 2
|
|
318
|
+
}, 1024))), 128))
|
|
319
|
+
])) : w("", !0);
|
|
320
|
+
}
|
|
321
|
+
}), we = { class: "flex flex-row-reverse gap-4 md:flex-row" }, Ie = { class: "w-24 shrink-0 justify-start md:w-32" }, Ne = { class: "flex grow flex-col" }, Ee = /* @__PURE__ */ E({
|
|
322
|
+
__name: "UnitsEditorItem",
|
|
323
|
+
props: /* @__PURE__ */ z({
|
|
324
|
+
modelValue: { type: Object },
|
|
325
|
+
defaultValue: { type: Object },
|
|
326
|
+
pricings: { type: Array },
|
|
327
|
+
maxValue: { type: Object },
|
|
328
|
+
disabled: { type: Boolean }
|
|
329
|
+
}, {
|
|
330
|
+
modelValue: { required: !0 },
|
|
331
|
+
modelModifiers: {}
|
|
332
|
+
}),
|
|
333
|
+
emits: ["update:modelValue"],
|
|
334
|
+
setup(e) {
|
|
335
|
+
var V, g;
|
|
336
|
+
const n = e, t = S(e, "modelValue"), { $t: r } = q(), c = (o) => {
|
|
337
|
+
var I;
|
|
338
|
+
const a = Number(o);
|
|
339
|
+
if (o === "" || o === null || !Number.isFinite(a)) return;
|
|
340
|
+
const x = (I = n.maxValue) != null && I.number ? +n.maxValue.number : void 0;
|
|
341
|
+
x !== void 0 && a > x && b.value++;
|
|
342
|
+
const v = x !== void 0 ? Math.min(a, x) : a;
|
|
343
|
+
t.value = { ...t.value, number: v.toString() };
|
|
344
|
+
}, f = k({
|
|
345
|
+
get: () => +(t.value.number || ee),
|
|
346
|
+
set: c
|
|
347
|
+
}), b = R(0), m = (V = n.defaultValue) != null && V.number ? +n.defaultValue.number : void 0;
|
|
348
|
+
let l = !1;
|
|
349
|
+
const u = (o) => {
|
|
350
|
+
l = m !== void 0 && o !== "" && Number(o) < m, l || c(o);
|
|
351
|
+
}, s = () => {
|
|
352
|
+
l && (l = !1, b.value++, c(m));
|
|
353
|
+
}, p = !!n.maxValue && [t.value.number, (g = n.defaultValue) == null ? void 0 : g.number, n.maxValue.number].some(
|
|
354
|
+
(o) => o !== void 0 && !Number.isInteger(Number(o))
|
|
355
|
+
), h = ne({
|
|
356
|
+
pricings: n.pricings,
|
|
357
|
+
pricingItemConfigId: t.value.pricing_item_config_id
|
|
358
|
+
}), U = k(
|
|
359
|
+
() => h.value.product.name || r({
|
|
360
|
+
defaultMessage: "Units",
|
|
361
|
+
id: "units.label",
|
|
362
|
+
description: "The label for the one-off flat item units input field"
|
|
363
|
+
})
|
|
364
|
+
), C = k(() => {
|
|
365
|
+
var o, a;
|
|
366
|
+
return {
|
|
367
|
+
step: "any",
|
|
368
|
+
inputmode: "decimal",
|
|
369
|
+
min: (o = n.defaultValue) == null ? void 0 : o.number,
|
|
370
|
+
max: (a = n.maxValue) == null ? void 0 : a.number
|
|
371
|
+
};
|
|
372
|
+
});
|
|
373
|
+
return (o, a) => {
|
|
374
|
+
var x, v;
|
|
375
|
+
return d(), P("div", we, [
|
|
376
|
+
T("div", Ie, [
|
|
377
|
+
i(p) ? (d(), _(i(pe), le({
|
|
378
|
+
key: `input-${b.value}`
|
|
379
|
+
}, C.value, {
|
|
380
|
+
"model-value": f.value,
|
|
381
|
+
type: "number",
|
|
382
|
+
size: "sm",
|
|
383
|
+
label: U.value,
|
|
384
|
+
"label-screen-reader-only": "",
|
|
385
|
+
disabled: e.disabled,
|
|
386
|
+
"onUpdate:modelValue": u,
|
|
387
|
+
onBlur: s
|
|
388
|
+
}), null, 16, ["model-value", "label", "disabled"])) : (d(), _(i(Y), {
|
|
389
|
+
key: b.value,
|
|
390
|
+
modelValue: f.value,
|
|
391
|
+
"onUpdate:modelValue": a[0] || (a[0] = (I) => f.value = I),
|
|
392
|
+
size: "sm",
|
|
393
|
+
min: (x = e.defaultValue) != null && x.number ? +e.defaultValue.number : void 0,
|
|
394
|
+
max: (v = e.maxValue) != null && v.number ? +e.maxValue.number : void 0,
|
|
395
|
+
disabled: e.disabled
|
|
396
|
+
}, null, 8, ["modelValue", "min", "max", "disabled"]))
|
|
397
|
+
]),
|
|
398
|
+
T("div", Ne, [
|
|
399
|
+
A(i(O), {
|
|
400
|
+
tag: "span",
|
|
401
|
+
variant: "body-sm",
|
|
402
|
+
weight: "semibold"
|
|
403
|
+
}, {
|
|
404
|
+
default: y(() => [
|
|
405
|
+
M($(U.value), 1)
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
}),
|
|
409
|
+
i(h).pricing.amount ? (d(), _(i(O), {
|
|
410
|
+
key: 0,
|
|
411
|
+
tag: "span",
|
|
412
|
+
variant: "body-xs",
|
|
413
|
+
color: "subtle"
|
|
414
|
+
}, {
|
|
415
|
+
default: y(() => [
|
|
416
|
+
M($(i(r)(
|
|
417
|
+
{
|
|
418
|
+
defaultMessage: "{amount} per unit, one-time",
|
|
419
|
+
id: "units.price_per_unit_one_time",
|
|
420
|
+
description: "The price per unit label for a one-off flat item, which is charged once rather than every period"
|
|
421
|
+
},
|
|
422
|
+
{ amount: i(Q)(i(h).pricing.amount) }
|
|
423
|
+
)), 1)
|
|
424
|
+
]),
|
|
425
|
+
_: 1
|
|
426
|
+
})) : w("", !0)
|
|
427
|
+
])
|
|
428
|
+
]);
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
}), Fe = { class: "grid grid-cols-1 gap-1 p-1" }, Oe = { class: "grid grid-cols-1 gap-1" }, ze = /* @__PURE__ */ E({
|
|
432
|
+
__name: "UnitsEditor",
|
|
433
|
+
props: /* @__PURE__ */ z({
|
|
434
|
+
modelValue: { type: Array },
|
|
435
|
+
initialUnitsValues: { type: Array },
|
|
436
|
+
pricings: { type: Array },
|
|
437
|
+
maxValues: { type: Array },
|
|
438
|
+
editableConfigIds: { type: Array }
|
|
439
|
+
}, {
|
|
440
|
+
modelValue: { required: !0 },
|
|
441
|
+
modelModifiers: {}
|
|
442
|
+
}),
|
|
443
|
+
emits: ["update:modelValue"],
|
|
444
|
+
setup(e) {
|
|
445
|
+
const n = e, { $t: t } = q(), r = S(e, "modelValue"), c = (l) => k({
|
|
446
|
+
get: () => r.value[l],
|
|
447
|
+
set: (u) => {
|
|
448
|
+
const s = r.value.slice();
|
|
449
|
+
s[l] = u, r.value = s;
|
|
450
|
+
}
|
|
451
|
+
}), f = (l) => {
|
|
452
|
+
var u;
|
|
453
|
+
return (u = n.initialUnitsValues) == null ? void 0 : u.find(
|
|
454
|
+
(s) => s.pricing_item_config_id === l.pricing_item_config_id
|
|
455
|
+
);
|
|
456
|
+
}, b = (l) => {
|
|
457
|
+
var u;
|
|
458
|
+
return (u = n.maxValues) == null ? void 0 : u.find((s) => s.pricing_item_config_id === l.pricing_item_config_id);
|
|
459
|
+
}, m = (l) => !!n.editableConfigIds && !n.editableConfigIds.includes(l.pricing_item_config_id);
|
|
460
|
+
return (l, u) => e.modelValue.length > 0 ? (d(), _(i(F), {
|
|
461
|
+
key: 0,
|
|
462
|
+
"no-spacing": "",
|
|
463
|
+
"content-background": "gray"
|
|
464
|
+
}, {
|
|
465
|
+
default: y(() => [
|
|
466
|
+
T("div", Fe, [
|
|
467
|
+
A(K, null, {
|
|
468
|
+
title: y(() => [
|
|
469
|
+
M($(i(t)({
|
|
470
|
+
defaultMessage: "One-time items",
|
|
471
|
+
id: "units_editor.title",
|
|
472
|
+
description: "The heading above the one-off items in the plan customization form"
|
|
473
|
+
})), 1)
|
|
474
|
+
]),
|
|
475
|
+
description: y(() => [
|
|
476
|
+
M($(i(t)({
|
|
477
|
+
defaultMessage: "Charged once",
|
|
478
|
+
id: "units_editor.description",
|
|
479
|
+
description: "The description of the one-off items in the plan customization form"
|
|
480
|
+
})), 1)
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
}),
|
|
484
|
+
T("div", Oe, [
|
|
485
|
+
(d(!0), P(N, null, B(e.modelValue, (s, p) => (d(), _(i(F), {
|
|
486
|
+
key: p,
|
|
487
|
+
"content-background": "none"
|
|
488
|
+
}, {
|
|
489
|
+
default: y(() => [
|
|
490
|
+
s.pricing_item_config_id ? (d(), _(Ee, {
|
|
491
|
+
key: s.pricing_item_config_id,
|
|
492
|
+
modelValue: c(p).value,
|
|
493
|
+
"onUpdate:modelValue": (h) => c(p).value = h,
|
|
494
|
+
"default-value": f(s),
|
|
495
|
+
"max-value": b(s),
|
|
496
|
+
disabled: m(s),
|
|
497
|
+
pricings: e.pricings
|
|
498
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "max-value", "disabled", "pricings"])) : w("", !0)
|
|
499
|
+
]),
|
|
500
|
+
_: 2
|
|
501
|
+
}, 1024))), 128))
|
|
502
|
+
])
|
|
503
|
+
])
|
|
504
|
+
]),
|
|
505
|
+
_: 1
|
|
506
|
+
})) : w("", !0);
|
|
507
|
+
}
|
|
508
|
+
}), qe = { class: "p-1" }, Be = { class: "grid grid-cols-1 gap-1 pt-1" }, je = /* @__PURE__ */ E({
|
|
509
|
+
__name: "AddonSingleEditor",
|
|
510
|
+
props: /* @__PURE__ */ z({
|
|
511
|
+
modelValue: { type: Array },
|
|
512
|
+
pricings: { type: Array },
|
|
513
|
+
billingPeriod: { type: Object },
|
|
514
|
+
currency: { type: String },
|
|
515
|
+
groupName: { type: String }
|
|
516
|
+
}, {
|
|
517
|
+
modelValue: { required: !0 },
|
|
518
|
+
modelModifiers: {}
|
|
519
|
+
}),
|
|
520
|
+
emits: ["update:modelValue"],
|
|
521
|
+
setup(e) {
|
|
522
|
+
const n = e, t = S(e, "modelValue"), { $t: r } = q(), { describePricing: c } = ie({
|
|
523
|
+
currency: D(n, "currency"),
|
|
524
|
+
billingPeriod: D(n, "billingPeriod")
|
|
525
|
+
}), f = n.pricings.map((l) => l.id), b = (l) => n.modelValue.includes(l), m = (l) => {
|
|
526
|
+
if (b(l))
|
|
527
|
+
t.value = t.value.filter((u) => u !== l);
|
|
528
|
+
else {
|
|
529
|
+
const u = t.value.filter((s) => !f.includes(s));
|
|
530
|
+
t.value = [...u, l];
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
return (l, u) => (d(), _(i(F), { "no-spacing": "" }, {
|
|
534
|
+
default: y(() => [
|
|
535
|
+
T("div", qe, [
|
|
536
|
+
A(K, null, {
|
|
537
|
+
title: y(() => [
|
|
538
|
+
M($(e.groupName), 1)
|
|
539
|
+
]),
|
|
540
|
+
description: y(() => [
|
|
541
|
+
M($(i(r)({
|
|
542
|
+
defaultMessage: "Select up to one product",
|
|
543
|
+
id: "addon_single_editor.description.at_most_one",
|
|
544
|
+
description: "The description of the addon single editor for at most one product"
|
|
545
|
+
})), 1)
|
|
546
|
+
]),
|
|
547
|
+
_: 1
|
|
548
|
+
}),
|
|
549
|
+
T("div", Be, [
|
|
550
|
+
(d(!0), P(N, null, B(e.pricings, (s) => (d(), _(i(F), {
|
|
551
|
+
key: s.id,
|
|
552
|
+
"content-background": "none",
|
|
553
|
+
class: j({ "!bg-white": b(s.id) })
|
|
554
|
+
}, {
|
|
555
|
+
default: y(() => [
|
|
556
|
+
A(te, {
|
|
557
|
+
name: i(ae)(s) ?? "",
|
|
558
|
+
description: i(c)(s)
|
|
559
|
+
}, {
|
|
560
|
+
default: y(() => [
|
|
561
|
+
A(i(fe), {
|
|
562
|
+
"model-value": b(s.id),
|
|
563
|
+
size: "sm",
|
|
564
|
+
"onUpdate:modelValue": (p) => m(s.id)
|
|
565
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
566
|
+
]),
|
|
567
|
+
_: 2
|
|
568
|
+
}, 1032, ["name", "description"])
|
|
569
|
+
]),
|
|
570
|
+
_: 2
|
|
571
|
+
}, 1032, ["class"]))), 128))
|
|
572
|
+
])
|
|
573
|
+
])
|
|
574
|
+
]),
|
|
575
|
+
_: 1
|
|
576
|
+
}));
|
|
577
|
+
}
|
|
578
|
+
}), De = { class: "grid grid-cols-1 gap-1" }, Le = {
|
|
579
|
+
key: 0,
|
|
580
|
+
class: "w-24 shrink-0 md:w-32"
|
|
581
|
+
}, Z = /* @__PURE__ */ E({
|
|
582
|
+
__name: "AddonMultipleEditor",
|
|
583
|
+
props: /* @__PURE__ */ z({
|
|
584
|
+
modelValue: { type: Array },
|
|
585
|
+
pricings: { type: Array },
|
|
586
|
+
billingPeriod: { type: Object },
|
|
587
|
+
currency: { type: String },
|
|
588
|
+
groupName: { type: String },
|
|
589
|
+
quantityPricingIds: { type: Array }
|
|
590
|
+
}, {
|
|
591
|
+
modelValue: { required: !0 },
|
|
592
|
+
modelModifiers: {},
|
|
593
|
+
seatsValues: { default: () => [] },
|
|
594
|
+
seatsValuesModifiers: {},
|
|
595
|
+
unitsValues: { default: () => [] },
|
|
596
|
+
unitsValuesModifiers: {}
|
|
597
|
+
}),
|
|
598
|
+
emits: ["update:modelValue", "update:seatsValues", "update:unitsValues"],
|
|
599
|
+
setup(e) {
|
|
600
|
+
const n = e, t = S(e, "modelValue"), r = S(e, "seatsValues"), c = S(e, "unitsValues"), { $t: f } = q(), { describePricing: b } = ie({
|
|
601
|
+
currency: D(n, "currency"),
|
|
602
|
+
billingPeriod: D(n, "billingPeriod")
|
|
603
|
+
}), m = (a) => t.value.includes(a), l = () => ({
|
|
604
|
+
enabledPricingIds: t.value,
|
|
605
|
+
seatsValues: r.value,
|
|
606
|
+
unitsValues: c.value
|
|
607
|
+
}), u = k(() => ({ currency: n.currency, billingPeriod: n.billingPeriod })), s = k(
|
|
608
|
+
() => n.pricings.filter((a) => {
|
|
609
|
+
var x;
|
|
610
|
+
return (x = n.quantityPricingIds) == null ? void 0 : x.includes(a.id);
|
|
611
|
+
})
|
|
612
|
+
), p = k(
|
|
613
|
+
() => new Map(
|
|
614
|
+
s.value.map((a) => [
|
|
615
|
+
a.id,
|
|
616
|
+
ce(a, u.value)
|
|
617
|
+
])
|
|
618
|
+
)
|
|
619
|
+
), h = (a) => p.value.get(a.id) ?? 1, U = (a) => J(a, l()) ?? h(a), C = (a) => {
|
|
620
|
+
L(t.value, a.enabledPricingIds) || (t.value = a.enabledPricingIds), L(r.value, a.seatsValues) || (r.value = a.seatsValues), L(c.value, a.unitsValues) || (c.value = a.unitsValues);
|
|
621
|
+
}, V = (a, x) => C(W(a, x, l(), u.value)), g = (a, x) => {
|
|
622
|
+
x >= h(a) && V(a, x);
|
|
623
|
+
};
|
|
624
|
+
se(
|
|
625
|
+
() => s.value.filter(
|
|
626
|
+
(a) => J(a, l()) === void 0
|
|
627
|
+
),
|
|
628
|
+
(a) => {
|
|
629
|
+
a.length && C(
|
|
630
|
+
a.reduce(
|
|
631
|
+
(x, v) => W(v, h(v), x, u.value),
|
|
632
|
+
l()
|
|
633
|
+
)
|
|
634
|
+
);
|
|
635
|
+
},
|
|
636
|
+
{ immediate: !0 }
|
|
637
|
+
);
|
|
638
|
+
const o = (a) => {
|
|
639
|
+
m(a) ? t.value = t.value.filter((x) => x !== a) : t.value = [...t.value, a];
|
|
640
|
+
};
|
|
641
|
+
return (a, x) => (d(), _(i(F), {
|
|
642
|
+
"no-spacing": "",
|
|
643
|
+
"no-border": !e.groupName,
|
|
644
|
+
"content-background": e.groupName ? "gray" : "none"
|
|
645
|
+
}, {
|
|
646
|
+
default: y(() => [
|
|
647
|
+
T("div", {
|
|
648
|
+
class: j(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
|
|
649
|
+
}, [
|
|
650
|
+
e.groupName ? (d(), _(K, { key: 0 }, {
|
|
651
|
+
title: y(() => [
|
|
652
|
+
M($(e.groupName), 1)
|
|
653
|
+
]),
|
|
654
|
+
description: y(() => [
|
|
655
|
+
M($(i(f)({
|
|
656
|
+
defaultMessage: "Select any number of products",
|
|
657
|
+
id: "addon_multiple_editor.description",
|
|
658
|
+
description: "The description of the addon multiple editor"
|
|
659
|
+
})), 1)
|
|
660
|
+
]),
|
|
661
|
+
_: 1
|
|
662
|
+
})) : w("", !0),
|
|
663
|
+
T("div", De, [
|
|
664
|
+
(d(!0), P(N, null, B(e.pricings, (v) => (d(), _(i(F), {
|
|
665
|
+
key: v.id,
|
|
666
|
+
"content-background": e.groupName || m(v.id) ? "none" : "gray",
|
|
667
|
+
class: j({ "!bg-white": m(v.id) })
|
|
668
|
+
}, {
|
|
669
|
+
default: y(() => [
|
|
670
|
+
A(te, {
|
|
671
|
+
name: i(ae)(v) ?? "",
|
|
672
|
+
description: i(b)(v)
|
|
673
|
+
}, {
|
|
674
|
+
default: y(() => [
|
|
675
|
+
p.value.has(v.id) && m(v.id) ? (d(), P("div", Le, [
|
|
676
|
+
A(i(Y), {
|
|
677
|
+
"model-value": U(v),
|
|
678
|
+
size: "sm",
|
|
679
|
+
min: h(v),
|
|
680
|
+
removable: "",
|
|
681
|
+
"onUpdate:modelValue": (I) => g(v, I),
|
|
682
|
+
onRemove: (I) => V(v, 0)
|
|
683
|
+
}, null, 8, ["model-value", "min", "onUpdate:modelValue", "onRemove"])
|
|
684
|
+
])) : m(v.id) ? (d(), _(i(H), {
|
|
685
|
+
key: 1,
|
|
686
|
+
intent: "secondary",
|
|
687
|
+
square: "",
|
|
688
|
+
size: "sm",
|
|
689
|
+
"icon-prefix": "remove_shopping_cart",
|
|
690
|
+
onClick: (I) => o(v.id)
|
|
691
|
+
}, null, 8, ["onClick"])) : (d(), _(i(H), {
|
|
692
|
+
key: 2,
|
|
693
|
+
intent: "primary",
|
|
694
|
+
"icon-prefix": "add",
|
|
695
|
+
size: "sm",
|
|
696
|
+
onClick: (I) => p.value.has(v.id) ? V(v, h(v)) : o(v.id)
|
|
697
|
+
}, {
|
|
698
|
+
default: y(() => [
|
|
699
|
+
M($(i(f)({
|
|
700
|
+
defaultMessage: "Add to subscription",
|
|
701
|
+
id: "addon_multiple_editor.add_to_subscription_button",
|
|
702
|
+
description: "The button to add a pricing to the subscription"
|
|
703
|
+
})), 1)
|
|
704
|
+
]),
|
|
705
|
+
_: 1
|
|
706
|
+
}, 8, ["onClick"]))
|
|
707
|
+
]),
|
|
708
|
+
_: 2
|
|
709
|
+
}, 1032, ["name", "description"])
|
|
710
|
+
]),
|
|
711
|
+
_: 2
|
|
712
|
+
}, 1032, ["content-background", "class"]))), 128))
|
|
713
|
+
])
|
|
714
|
+
], 2)
|
|
715
|
+
]),
|
|
716
|
+
_: 1
|
|
717
|
+
}, 8, ["no-border", "content-background"]));
|
|
718
|
+
}
|
|
719
|
+
}), Re = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, oi = /* @__PURE__ */ E({
|
|
720
|
+
__name: "PlanCustomizationEditor",
|
|
721
|
+
props: /* @__PURE__ */ z({
|
|
722
|
+
subscription: { type: Object },
|
|
723
|
+
enabledPricingIds: { type: Array },
|
|
724
|
+
initialSeatsValues: { type: Array },
|
|
725
|
+
initialUnitsValues: { type: Array },
|
|
726
|
+
billingPeriod: { type: Object },
|
|
727
|
+
currency: { type: String },
|
|
728
|
+
maxSeatsValues: { type: Array },
|
|
729
|
+
maxUnitsValues: { type: Array },
|
|
730
|
+
editableConfigIds: { type: Array },
|
|
731
|
+
hidePricingChoices: { type: Boolean },
|
|
732
|
+
title: { type: String }
|
|
733
|
+
}, {
|
|
734
|
+
seatsValues: { required: !0 },
|
|
735
|
+
seatsValuesModifiers: {},
|
|
736
|
+
unitsValues: { required: !0 },
|
|
737
|
+
unitsValuesModifiers: {},
|
|
738
|
+
enabledPricingIds: {
|
|
739
|
+
required: !0
|
|
740
|
+
},
|
|
741
|
+
enabledPricingIdsModifiers: {}
|
|
742
|
+
}),
|
|
743
|
+
emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
|
|
744
|
+
setup(e) {
|
|
745
|
+
const n = e, t = S(e, "seatsValues"), r = S(e, "unitsValues"), c = S(e, "enabledPricingIds"), { $t: f } = q(), b = k(() => {
|
|
746
|
+
const V = ye({
|
|
747
|
+
pricingPlanScheduleInfos: n.subscription.pricing_plan_schedule_infos,
|
|
748
|
+
type: "DEFAULT"
|
|
749
|
+
});
|
|
750
|
+
return V != null && V.pricing_plan_version ? ve(V) : [];
|
|
751
|
+
}), m = k(
|
|
752
|
+
() => b.value.filter((V) => V.product_type === "ADDON")
|
|
753
|
+
), l = k(
|
|
754
|
+
() => Ve(n.subscription)
|
|
755
|
+
), u = k(
|
|
756
|
+
() => me(n.subscription, [
|
|
757
|
+
...n.initialSeatsValues ?? [],
|
|
758
|
+
...n.initialUnitsValues ?? []
|
|
759
|
+
])
|
|
760
|
+
), s = k(() => u.value.map(({ id: V }) => V)), p = k(() => ge(u.value)), h = (V) => k({
|
|
761
|
+
get: () => V.value.filter(
|
|
762
|
+
({ pricing_item_config_id: g }) => !p.value.has(g)
|
|
763
|
+
),
|
|
764
|
+
set: (g) => {
|
|
765
|
+
V.value = [
|
|
766
|
+
...g,
|
|
767
|
+
...V.value.filter(
|
|
768
|
+
({ pricing_item_config_id: o }) => p.value.has(o)
|
|
769
|
+
)
|
|
770
|
+
];
|
|
771
|
+
}
|
|
772
|
+
}), U = h(t), C = h(r);
|
|
773
|
+
return (V, g) => (d(), _(i(F), {
|
|
774
|
+
class: "sv-plan-customization",
|
|
775
|
+
title: e.title ?? i(f)({
|
|
776
|
+
defaultMessage: "Customize plan",
|
|
777
|
+
id: "checkout.customize_plan_block.title",
|
|
778
|
+
description: "The title of the customize plan block in the checkout form"
|
|
779
|
+
}),
|
|
780
|
+
"no-spacing": "",
|
|
781
|
+
"no-border": "",
|
|
782
|
+
"content-background": "none"
|
|
783
|
+
}, {
|
|
784
|
+
default: y(() => [
|
|
785
|
+
T("div", Re, [
|
|
786
|
+
A(Se, {
|
|
787
|
+
modelValue: i(U),
|
|
788
|
+
"onUpdate:modelValue": g[0] || (g[0] = (o) => X(U) ? U.value = o : null),
|
|
789
|
+
class: "sv-plan-customization__seats",
|
|
790
|
+
"initial-seats-values": e.initialSeatsValues,
|
|
791
|
+
"max-values": e.maxSeatsValues,
|
|
792
|
+
"editable-config-ids": e.editableConfigIds,
|
|
793
|
+
pricings: b.value
|
|
794
|
+
}, null, 8, ["modelValue", "initial-seats-values", "max-values", "editable-config-ids", "pricings"]),
|
|
795
|
+
A(ze, {
|
|
796
|
+
modelValue: i(C),
|
|
797
|
+
"onUpdate:modelValue": g[1] || (g[1] = (o) => X(C) ? C.value = o : null),
|
|
798
|
+
class: "sv-plan-customization__units",
|
|
799
|
+
"initial-units-values": e.initialUnitsValues,
|
|
800
|
+
"max-values": e.maxUnitsValues,
|
|
801
|
+
"editable-config-ids": e.editableConfigIds,
|
|
802
|
+
pricings: b.value
|
|
803
|
+
}, null, 8, ["modelValue", "initial-units-values", "max-values", "editable-config-ids", "pricings"]),
|
|
804
|
+
(d(!0), P(N, null, B(e.hidePricingChoices ? [] : l.value, (o) => (d(), P(N, {
|
|
805
|
+
key: o.id
|
|
806
|
+
}, [
|
|
807
|
+
o.product_type === "DEFAULT" && o.selection_constraint === "EXACTLY_ONE" ? (d(), _(be, {
|
|
808
|
+
key: 0,
|
|
809
|
+
modelValue: c.value,
|
|
810
|
+
"onUpdate:modelValue": g[2] || (g[2] = (a) => c.value = a),
|
|
811
|
+
class: "sv-plan-customization__group",
|
|
812
|
+
"group-name": o.name,
|
|
813
|
+
pricings: o.pricings,
|
|
814
|
+
"billing-period": e.billingPeriod,
|
|
815
|
+
currency: e.currency
|
|
816
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : o.product_type === "ADDON" && o.selection_constraint === "AT_MOST_ONE" ? (d(), _(je, {
|
|
817
|
+
key: 1,
|
|
818
|
+
modelValue: c.value,
|
|
819
|
+
"onUpdate:modelValue": g[3] || (g[3] = (a) => c.value = a),
|
|
820
|
+
class: "sv-plan-customization__group",
|
|
821
|
+
"group-name": o.name,
|
|
822
|
+
pricings: o.pricings,
|
|
823
|
+
"billing-period": e.billingPeriod,
|
|
824
|
+
currency: e.currency
|
|
825
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : o.product_type === "ADDON" && o.selection_constraint === "ANY" ? (d(), _(Z, {
|
|
826
|
+
key: 2,
|
|
827
|
+
modelValue: c.value,
|
|
828
|
+
"onUpdate:modelValue": g[4] || (g[4] = (a) => c.value = a),
|
|
829
|
+
"seats-values": t.value,
|
|
830
|
+
"onUpdate:seatsValues": g[5] || (g[5] = (a) => t.value = a),
|
|
831
|
+
"units-values": r.value,
|
|
832
|
+
"onUpdate:unitsValues": g[6] || (g[6] = (a) => r.value = a),
|
|
833
|
+
"quantity-pricing-ids": s.value,
|
|
834
|
+
class: "sv-plan-customization__group",
|
|
835
|
+
pricings: o.pricings,
|
|
836
|
+
"group-name": o.name,
|
|
837
|
+
"billing-period": e.billingPeriod,
|
|
838
|
+
currency: e.currency
|
|
839
|
+
}, null, 8, ["modelValue", "seats-values", "units-values", "quantity-pricing-ids", "pricings", "group-name", "billing-period", "currency"])) : w("", !0)
|
|
840
|
+
], 64))), 128)),
|
|
841
|
+
e.hidePricingChoices ? w("", !0) : (d(), _(Z, {
|
|
842
|
+
key: 0,
|
|
843
|
+
modelValue: c.value,
|
|
844
|
+
"onUpdate:modelValue": g[7] || (g[7] = (o) => c.value = o),
|
|
845
|
+
"seats-values": t.value,
|
|
846
|
+
"onUpdate:seatsValues": g[8] || (g[8] = (o) => t.value = o),
|
|
847
|
+
"units-values": r.value,
|
|
848
|
+
"onUpdate:unitsValues": g[9] || (g[9] = (o) => r.value = o),
|
|
849
|
+
"quantity-pricing-ids": s.value,
|
|
850
|
+
class: "sv-plan-customization__group",
|
|
851
|
+
pricings: m.value,
|
|
852
|
+
"billing-period": e.billingPeriod,
|
|
853
|
+
currency: e.currency
|
|
854
|
+
}, null, 8, ["modelValue", "seats-values", "units-values", "quantity-pricing-ids", "pricings", "billing-period", "currency"])),
|
|
855
|
+
oe(V.$slots, "default")
|
|
856
|
+
])
|
|
857
|
+
]),
|
|
858
|
+
_: 3
|
|
859
|
+
}, 8, ["title"]));
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
export {
|
|
863
|
+
oi as default
|
|
864
|
+
};
|