@solvimon/solvimon-web 0.1.0-alpha.27 → 0.1.0-alpha.28
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 +126 -17
- package/dist/ApiStatus-CSFKl_ra.mjs +9 -0
- package/dist/{Avatar.vue.es-sfMZiX7A.mjs → Avatar.vue.es-Beg7umjO.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DmY3a-Wi.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-DBGe1PvD.mjs} +15 -16
- package/dist/{Button.vue.es-Cmjfm4jw.mjs → Button.vue.es-rh6mITmN.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CB4mrvkU.mjs → ChargeOnDemandModal-CPjPa_uq.mjs} +235 -247
- package/dist/Checkbox.vue.es-DsyiJ-VY.mjs +50 -0
- package/dist/Checkout.entry.ce-BZ1rYQvt.mjs +5279 -0
- package/dist/{Chip.vue.es-DksjbJO8.mjs → Chip.vue.es-Cn2R_0mE.mjs} +34 -20
- package/dist/Comparators.vue.es-DQBI3f7m.mjs +103 -0
- package/dist/{ContextMenu.vue.es-zRvoEJlV.mjs → ContextMenu.vue.es-DRxsa7bZ.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-DhFbpZPK.mjs → CustomerBillingInformation.vue.es-DQfL5RMR.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B41la-T7.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Ct-eYaEN.mjs} +33 -37
- package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BzTSwo4i.mjs +2921 -0
- package/dist/{DividerText.vue.es-nAo1eRMV.mjs → DividerText.vue.es-M0XqSz55.mjs} +1 -1
- package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs +362 -0
- package/dist/{ErrorNotification.vue.es-h-D37rfG.mjs → ErrorNotification.vue.es-CKlt4hr2.mjs} +1 -1
- package/dist/{IconButton.vue.es-DvfErUOq.mjs → IconButton.vue.es-oe4MVBK1.mjs} +2 -2
- package/dist/{IconTitle.vue.es-B_8bS0tn.mjs → IconTitle.vue.es-BO6KBS4v.mjs} +3 -3
- package/dist/Input.vue.es-DAlPmtE_.mjs +249 -0
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-gpMtYNzn.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CCTl5GWa.mjs} +14 -13
- package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-DMGqj_Uk.mjs +56 -0
- package/dist/{InvoiceSummary.vue.es-CRiFJ5x-.mjs → InvoiceSummary.vue.es-DbNoGfYN.mjs} +9 -9
- package/dist/{Modal.vue.es-BeI5C9-9.mjs → Modal.vue.es-CTNACAst.mjs} +5 -5
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DqHcOnZp.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DLfAfB_m.mjs} +72 -73
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DlqoWKQq.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CKm-XYuF.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-mCqdFjnL.mjs → PaymentHistoryBlock-BmA8jbMb.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DxaY3eFN.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BDMse2lO.mjs} +24 -24
- package/dist/{PaymentIntegrationForm-DVx4DEtD.mjs → PaymentIntegrationForm-D1Xw-xIt.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CCxw0PCv.mjs +182 -0
- package/dist/{PaymentIntegrationFormAdyen-Yr8p5Fly.mjs → PaymentIntegrationFormAdyen-CfT5aD4L.mjs} +395 -293
- package/dist/PaymentIntegrationFormStripe-DKXJ-mjd.mjs +743 -0
- package/dist/{PaymentMethod.vue.es-4YRmQZHX.mjs → PaymentMethod.vue.es-Cauxx4Xr.mjs} +3 -3
- package/dist/{PaymentMethodForm-Dnj_7mJU.mjs → PaymentMethodForm-CypZOYUZ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DsD3UjkC.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-De8FgdYD.mjs} +57 -65
- package/dist/PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Dw28tfpD.mjs +168 -0
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CjECKNi_.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-OtjVO7lR.mjs} +13 -8
- package/dist/PlanCustomizationEditor-Xtww2r9K.mjs +711 -0
- package/dist/PortalNotAvailable-B_59GUwN.mjs +25 -0
- package/dist/{PricingGroupRangeInput.vue.es-BhNcjD7z.mjs → PricingGroupRangeInput.vue.es-C9LJW3b8.mjs} +5 -5
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CmJITenR.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs} +30 -30
- package/dist/{RadioGroupExtended.vue.es-9YzXzZF0.mjs → RadioGroupExtended.vue.es-UtKsdmiv.mjs} +2 -2
- package/dist/{Section.vue.es-DVEpre9O.mjs → Section.vue.es-iS8hVGWA.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xzjqB-v-.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Djc1SkEU.mjs} +13 -12
- 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-Dpan1RQd.mjs} +5 -4
- package/dist/{SubscriptionDetails.entry.ce-CGl6Z5ql.mjs → SubscriptionDetails.entry.ce-DufQX3uI.mjs} +451 -468
- package/dist/{SubscriptionSchedules-DuWZmnD2.mjs → SubscriptionSchedules-DAahcNoI.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C1kTiW-H.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DNr1CqVj.mjs} +750 -763
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs +203 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BsdevoeT.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BeRLuEyR.mjs} +123 -88
- package/dist/{TooltipParagraph.vue.es-B9A17aG7.mjs → TooltipParagraph.vue.es-BjCn2BF6.mjs} +1 -1
- package/dist/{TrialChip.vue.es-Dmv3lPiQ.mjs → TrialChip.vue.es-B-XBSHWE.mjs} +2 -2
- package/dist/addressFormats.data-dzBx49dw.mjs +278 -0
- package/dist/amount-CondixVt.mjs +36 -0
- package/dist/{cn.es-Cvt6TIwv.mjs → cn.es-2bVdkiFV.mjs} +87 -83
- package/dist/{comparators.es-D8WGL-c4.mjs → comparators.es-C8rHpb70.mjs} +17 -13
- package/dist/components/BillingInformation/BillingInformation.mjs +7 -8
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +394 -350
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +16 -17
- package/dist/components/Invoice/Invoice.mjs +206 -209
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +64 -62
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +40 -41
- package/dist/components/InvoicesList/InvoicesList.mjs +14 -14
- package/dist/components/PaymentHistory/PaymentHistory.mjs +70 -64
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +31 -31
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +47 -45
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +50 -36
- package/dist/components/WalletBalances/WalletBalances.mjs +9 -10
- package/dist/core/index.mjs +61 -95
- package/dist/customElements-Di3zwlEU.mjs +6447 -0
- package/dist/customer-CqddTiOr.mjs +31 -0
- package/dist/{de-DE-jkW2dJrX.mjs → de-DE-BNMj3boy.mjs} +16 -10
- package/dist/{de-DE-DKp5LCu0.mjs → de-DE-BW8dMvhW.mjs} +72 -18
- package/dist/formControl-CsITfsBk.mjs +749 -0
- package/dist/index.mjs +2 -2
- package/dist/invoiceState-BJVHaKs7.mjs +14 -0
- package/dist/{invoices-3520M5AN.mjs → invoices-Cf1qDAv4.mjs} +40 -35
- package/dist/{it-IT-BgFVsO5S.mjs → it-IT-Byg06KWc.mjs} +72 -18
- package/dist/{it-IT-CaaFToGB.mjs → it-IT-DRvuxM1F.mjs} +9 -3
- package/dist/{nl-NL-D0MQKaql.mjs → nl-NL-DLUwWbMG.mjs} +12 -6
- package/dist/{nl-NL-UiRWbO9S.mjs → nl-NL-x3zQqzZ7.mjs} +78 -24
- package/dist/paymentMethods-BUuOmDq9.mjs +77 -0
- package/dist/paymentOutcome-D17VD4MV.mjs +67 -0
- package/dist/payments-Ci8bF4C6.mjs +45 -0
- package/dist/pricingItemConfigs.es-D3pX_9AJ.mjs +78 -0
- package/dist/pricingPlanScheduleOverrides-COr9F8DO.mjs +233 -0
- package/dist/pricingPlanSchedules-BK_o9p6h.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 +98 -91
- package/dist/screens/PayInvoice/PayInvoice.mjs +181 -210
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +98 -86
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +363 -334
- package/dist/sessionReference-B8Dbmx5t.mjs +38 -0
- package/dist/sorting.es-qtEN8J8T.mjs +77 -0
- package/dist/subscription-BhxoqwcT.mjs +83 -0
- package/dist/subscriptions-CwogJODR.mjs +54 -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 +20 -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/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +0 -1
- 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 +36 -4
- package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +7 -0
- package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +0 -4
- package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +9 -4
- 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 +1 -1
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +11 -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/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +5 -1
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +8 -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/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/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 +2 -0
- 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/types/errors.d.ts +3 -2
- package/dist/types/vendor/@adyen/adyen-web/index.d.ts +2 -0
- package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +1 -1
- 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-DC_fUykI.mjs +9 -0
- package/dist/{useCustomer-B-jyJIVy.mjs → useCustomer-C3kTh7wn.mjs} +2 -2
- package/dist/useCustomerFormLabels-CK7K50nB.mjs +1369 -0
- package/dist/useIncrementalLoading-C_sHmW7d.mjs +60 -0
- package/dist/useInvoiceData-BIh8-h8b.mjs +21 -0
- package/dist/useInvoicesList-Y6p0Pqpy.mjs +674 -0
- package/dist/{useLoadInitialData-D9GkzY8t.mjs → useLoadInitialData-4k_Cyqef.mjs} +1 -1
- package/dist/usePaymentFormHold-FfNc578l.mjs +189 -0
- package/dist/{usePaymentMethodAvailability-DAcsKGeh.mjs → usePaymentMethodAvailability-CnYTvG15.mjs} +8 -8
- package/dist/usePaymentMethodOptions-1QBcmgUf.mjs +40 -0
- package/dist/{usePaymentMethods-CbwnGONc.mjs → usePaymentMethods-gvr-rmwE.mjs} +2 -2
- package/dist/{usePayments-Cr6NlGaW.mjs → usePayments-CykCZPG2.mjs} +7 -7
- package/dist/usePortal-CxzKGhbK.mjs +7 -0
- package/dist/useService-B0OQJmif.mjs +56 -0
- package/dist/{useTimePeriod.es-DWLsLFqs.mjs → useTimePeriod.es-JkXdHNWr.mjs} +1 -1
- package/dist/useViewport-psZejz_H.mjs +19 -0
- package/package.json +28 -55
- 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-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/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/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-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/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-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-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-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/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-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-BIMpDI_p.mjs +0 -29
- 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-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-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
|
@@ -0,0 +1,711 @@
|
|
|
1
|
+
import { defineComponent as T, computed as h, openBlock as s, createElementBlock as _, createVNode as b, unref as i, withCtx as g, Fragment as P, createTextVNode as v, toDisplayString as y, renderList as N, createBlock as f, useModel as $, ref as X, createElementVNode as V, normalizeClass as U, createCommentVNode as k, mergeModels as w, toRef as E } from "vue";
|
|
2
|
+
import { _ as A } from "./Section.vue.es-iS8hVGWA.mjs";
|
|
3
|
+
import { a as S, _ as x } from "./customElements-Di3zwlEU.mjs";
|
|
4
|
+
import { u as I } from "./useTimePeriod.es-JkXdHNWr.mjs";
|
|
5
|
+
import { f as z } from "./formatting.es-RclXHhKo.mjs";
|
|
6
|
+
import { _ as H } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
7
|
+
import { a as J, _ as j } from "./Button.vue.es-rh6mITmN.mjs";
|
|
8
|
+
import { _ as D } from "./StepInput.vue.es-Dpan1RQd.mjs";
|
|
9
|
+
import { g as Q, F as q, _ as L } from "./Checkout.entry.ce-BZ1rYQvt.mjs";
|
|
10
|
+
import { a as O, u as R, _ as W } from "./PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DdWxoB8q.mjs";
|
|
11
|
+
import { _ as Z } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-Wmjqy7RZ.mjs";
|
|
12
|
+
import { g as Y, b as G } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-Bk4zwyWa.mjs";
|
|
13
|
+
import { g as ee } from "./pricingPlanSchedule-BPrS2WRd.mjs";
|
|
14
|
+
import { b as ie } from "./subscription-BhxoqwcT.mjs";
|
|
15
|
+
const te = { class: "grid grid-cols-2 gap-2" }, ne = /* @__PURE__ */ T({
|
|
16
|
+
__name: "TieredTableRow",
|
|
17
|
+
props: {
|
|
18
|
+
band: { type: Object },
|
|
19
|
+
previousBand: { type: Object },
|
|
20
|
+
isFirst: { type: Boolean },
|
|
21
|
+
period: { type: Object }
|
|
22
|
+
},
|
|
23
|
+
setup(e) {
|
|
24
|
+
const m = e, { $t: t } = S(), { formatTimePeriod: c } = I(), d = h(() => {
|
|
25
|
+
var o;
|
|
26
|
+
if (m.isFirst)
|
|
27
|
+
return "0";
|
|
28
|
+
if ((o = m.previousBand) != null && o.tier_top_bound && "number" in m.previousBand.tier_top_bound)
|
|
29
|
+
return m.previousBand.tier_top_bound.number;
|
|
30
|
+
}), u = h(() => {
|
|
31
|
+
if (!(!m.band.tier_top_bound || !("number" in m.band.tier_top_bound)))
|
|
32
|
+
return m.band.tier_top_bound.number;
|
|
33
|
+
});
|
|
34
|
+
return (o, n) => (s(), _("div", te, [
|
|
35
|
+
b(i(x), {
|
|
36
|
+
variant: "body-xs",
|
|
37
|
+
color: "subtle",
|
|
38
|
+
tag: "div"
|
|
39
|
+
}, {
|
|
40
|
+
default: g(() => [
|
|
41
|
+
u.value ? (s(), _(P, { key: 0 }, [
|
|
42
|
+
v(y(i(t)(
|
|
43
|
+
{
|
|
44
|
+
defaultMessage: "{lower_bound} - {upper_bound} seats",
|
|
45
|
+
id: "seats.tiered_range_label",
|
|
46
|
+
description: "The label showing the seat count range for a tiered pricing tier"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
lower_bound: d.value ?? "0",
|
|
50
|
+
upper_bound: u.value
|
|
51
|
+
}
|
|
52
|
+
)), 1)
|
|
53
|
+
], 64)) : (s(), _(P, { key: 1 }, [
|
|
54
|
+
v(y(i(t)(
|
|
55
|
+
{
|
|
56
|
+
defaultMessage: "> {lower_bound} seats",
|
|
57
|
+
id: "seats.tiered_unbounded_range_label",
|
|
58
|
+
description: "The label showing the unbounded seat count range (greater than) for a tiered pricing tier"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
lower_bound: d.value ?? "0"
|
|
62
|
+
}
|
|
63
|
+
)), 1)
|
|
64
|
+
], 64))
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}),
|
|
68
|
+
b(i(x), {
|
|
69
|
+
variant: "body-xs",
|
|
70
|
+
color: "subtle",
|
|
71
|
+
tag: "div",
|
|
72
|
+
class: "text-right"
|
|
73
|
+
}, {
|
|
74
|
+
default: g(() => [
|
|
75
|
+
v(y(e.band.amount && i(t)(
|
|
76
|
+
{
|
|
77
|
+
defaultMessage: "{amount} per seat/{period}",
|
|
78
|
+
id: "seats.tiered_price_per_seat_period",
|
|
79
|
+
description: "The price per seat and billing period label for a tiered pricing tier"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
amount: i(z)(e.band.amount),
|
|
83
|
+
period: e.period ? i(c)(e.period, {
|
|
84
|
+
short: !0,
|
|
85
|
+
hideValueForExactPeriods: !0
|
|
86
|
+
}) : ""
|
|
87
|
+
}
|
|
88
|
+
)), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
})
|
|
92
|
+
]));
|
|
93
|
+
}
|
|
94
|
+
}), ae = { class: "grid grid-cols-1 gap-0.5 pt-1.5" }, oe = /* @__PURE__ */ T({
|
|
95
|
+
__name: "TieredTable",
|
|
96
|
+
props: {
|
|
97
|
+
bands: { type: Array },
|
|
98
|
+
period: { type: Object }
|
|
99
|
+
},
|
|
100
|
+
setup(e) {
|
|
101
|
+
return (m, t) => (s(), _("div", ae, [
|
|
102
|
+
(s(!0), _(P, null, N(e.bands, (c, d) => (s(), f(ne, {
|
|
103
|
+
key: d,
|
|
104
|
+
band: c,
|
|
105
|
+
"is-first": d === 0,
|
|
106
|
+
"previous-band": d > 0 ? e.bands[d - 1] : void 0,
|
|
107
|
+
period: e.period
|
|
108
|
+
}, null, 8, ["band", "is-first", "previous-band", "period"]))), 128))
|
|
109
|
+
]));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
function K({
|
|
113
|
+
pricings: e,
|
|
114
|
+
pricingItemConfigId: m
|
|
115
|
+
}) {
|
|
116
|
+
return h(() => {
|
|
117
|
+
var d, u, o, n, l, a, r, p;
|
|
118
|
+
const { config: t, productItem: c } = Q({
|
|
119
|
+
pricings: e,
|
|
120
|
+
pricingItemConfigId: m
|
|
121
|
+
});
|
|
122
|
+
return {
|
|
123
|
+
billing: {
|
|
124
|
+
period: (u = (d = t == null ? void 0 : t.billing_period_configs) == null ? void 0 : d[0]) == null ? void 0 : u.billing_period,
|
|
125
|
+
billedInAdvance: t == null ? void 0 : t.billing_in_advance
|
|
126
|
+
},
|
|
127
|
+
product: {
|
|
128
|
+
name: c == null ? void 0 : c.name,
|
|
129
|
+
description: c == null ? void 0 : c.description
|
|
130
|
+
},
|
|
131
|
+
pricing: {
|
|
132
|
+
...((o = t == null ? void 0 : t.details) == null ? void 0 : o.pricing_type) === "FLAT" && {
|
|
133
|
+
amount: (a = (l = (n = t.details) == null ? void 0 : n.bands) == null ? void 0 : l[0]) == null ? void 0 : a.amount
|
|
134
|
+
},
|
|
135
|
+
...((r = t == null ? void 0 : t.details) == null ? void 0 : r.pricing_type) === "TIERED" && {
|
|
136
|
+
tiered: { bands: (p = t.details) == null ? void 0 : p.bands }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const le = { class: "flex flex-row-reverse gap-4 md:flex-row" }, re = { class: "w-24 shrink-0 justify-start md:w-32" }, se = ["tabindex"], de = { key: 0 }, ue = { key: 0 }, ce = /* @__PURE__ */ T({
|
|
143
|
+
__name: "SeatsEditorItem",
|
|
144
|
+
props: /* @__PURE__ */ w({
|
|
145
|
+
modelValue: { type: Object },
|
|
146
|
+
defaultValue: { type: Object },
|
|
147
|
+
pricings: { type: Array }
|
|
148
|
+
}, {
|
|
149
|
+
modelValue: { required: !0 },
|
|
150
|
+
modelModifiers: {}
|
|
151
|
+
}),
|
|
152
|
+
emits: ["update:modelValue"],
|
|
153
|
+
setup(e) {
|
|
154
|
+
const m = e, t = $(e, "modelValue"), { $t: c } = S(), { formatTimePeriod: d } = I(), u = X(!1), o = h({
|
|
155
|
+
get: () => +(t.value.number || q),
|
|
156
|
+
set(a) {
|
|
157
|
+
t.value = {
|
|
158
|
+
...t.value,
|
|
159
|
+
number: a !== void 0 ? a.toString() : void 0
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}), n = K({
|
|
163
|
+
pricings: m.pricings,
|
|
164
|
+
pricingItemConfigId: t.value.pricing_item_config_id
|
|
165
|
+
}), l = h(() => {
|
|
166
|
+
var a, r;
|
|
167
|
+
return !!((r = (a = n.value.pricing) == null ? void 0 : a.tiered) != null && r.bands);
|
|
168
|
+
});
|
|
169
|
+
return (a, r) => {
|
|
170
|
+
var p, M, C;
|
|
171
|
+
return s(), _("div", null, [
|
|
172
|
+
V("div", le, [
|
|
173
|
+
V("div", re, [
|
|
174
|
+
b(i(D), {
|
|
175
|
+
modelValue: o.value,
|
|
176
|
+
"onUpdate:modelValue": r[0] || (r[0] = (F) => o.value = F),
|
|
177
|
+
size: "sm",
|
|
178
|
+
min: (p = e.defaultValue) != null && p.number ? +e.defaultValue.number : void 0
|
|
179
|
+
}, null, 8, ["modelValue", "min"])
|
|
180
|
+
]),
|
|
181
|
+
V("div", {
|
|
182
|
+
class: U(["flex grow flex-col", { "hover:cursor-pointer": l.value }]),
|
|
183
|
+
tabindex: l.value ? 0 : void 0,
|
|
184
|
+
onClick: r[1] || (r[1] = (F) => l.value ? u.value = !u.value : void 0)
|
|
185
|
+
}, [
|
|
186
|
+
b(i(x), {
|
|
187
|
+
tag: "span",
|
|
188
|
+
variant: "body-sm",
|
|
189
|
+
weight: "semibold"
|
|
190
|
+
}, {
|
|
191
|
+
default: g(() => [
|
|
192
|
+
v(y(i(n).product.name || i(c)({
|
|
193
|
+
defaultMessage: "Seats",
|
|
194
|
+
id: "seats.label",
|
|
195
|
+
description: "The label for the seats input field"
|
|
196
|
+
})), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}),
|
|
200
|
+
i(n).pricing.amount ? (s(), f(i(x), {
|
|
201
|
+
key: 0,
|
|
202
|
+
tag: "span",
|
|
203
|
+
variant: "body-xs",
|
|
204
|
+
color: "subtle"
|
|
205
|
+
}, {
|
|
206
|
+
default: g(() => [
|
|
207
|
+
v(y(i(c)(
|
|
208
|
+
{
|
|
209
|
+
defaultMessage: "{amount} per seat/{period}",
|
|
210
|
+
id: "seats.price_per_seat_period",
|
|
211
|
+
description: "The price per seat and billing period label for seat-based pricing"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
amount: i(z)(i(n).pricing.amount),
|
|
215
|
+
period: i(n).billing.period ? i(d)(i(n).billing.period, {
|
|
216
|
+
short: !0,
|
|
217
|
+
hideValueForExactPeriods: !0
|
|
218
|
+
}) : ""
|
|
219
|
+
}
|
|
220
|
+
)), 1)
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
})) : i(n).pricing.tiered ? (s(), f(i(x), {
|
|
224
|
+
key: 1,
|
|
225
|
+
tag: "span",
|
|
226
|
+
variant: "body-xs",
|
|
227
|
+
color: "subtle"
|
|
228
|
+
}, {
|
|
229
|
+
default: g(() => [
|
|
230
|
+
v(y(i(c)({
|
|
231
|
+
defaultMessage: "Tiered pricing",
|
|
232
|
+
id: "seats.tiered_pricing_label",
|
|
233
|
+
description: "The label indicating tiered pricing structure for seats"
|
|
234
|
+
})) + " ", 1),
|
|
235
|
+
b(i(J), {
|
|
236
|
+
icon: "keyboard_arrow_down",
|
|
237
|
+
size: "xs",
|
|
238
|
+
class: U(["absolute text-gray-400 transition ease-in-out", { "rotate-0": !u.value, "rotate-180": u.value }])
|
|
239
|
+
}, null, 8, ["class"])
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
})) : k("", !0)
|
|
243
|
+
], 10, se)
|
|
244
|
+
]),
|
|
245
|
+
(C = (M = i(n).pricing) == null ? void 0 : M.tiered) != null && C.bands ? (s(), _("div", de, [
|
|
246
|
+
b(i(H), { "is-open": u.value }, {
|
|
247
|
+
default: g(() => [
|
|
248
|
+
u.value ? (s(), _("div", ue, [
|
|
249
|
+
b(oe, {
|
|
250
|
+
bands: i(n).pricing.tiered.bands,
|
|
251
|
+
period: i(n).billing.period
|
|
252
|
+
}, null, 8, ["bands", "period"])
|
|
253
|
+
])) : k("", !0)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 8, ["is-open"])
|
|
257
|
+
])) : k("", !0)
|
|
258
|
+
]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
}), me = {
|
|
262
|
+
key: 0,
|
|
263
|
+
class: "grid grid-cols-1 gap-1"
|
|
264
|
+
}, pe = /* @__PURE__ */ T({
|
|
265
|
+
__name: "SeatsEditor",
|
|
266
|
+
props: /* @__PURE__ */ w({
|
|
267
|
+
modelValue: { type: Array },
|
|
268
|
+
initialSeatsValues: { type: Array },
|
|
269
|
+
pricings: { type: Array }
|
|
270
|
+
}, {
|
|
271
|
+
modelValue: { required: !0 },
|
|
272
|
+
modelModifiers: {}
|
|
273
|
+
}),
|
|
274
|
+
emits: ["update:modelValue"],
|
|
275
|
+
setup(e) {
|
|
276
|
+
const m = e, t = $(e, "modelValue"), c = (u) => h({
|
|
277
|
+
get: () => t.value[u],
|
|
278
|
+
set: (o) => {
|
|
279
|
+
const n = t.value.slice();
|
|
280
|
+
n[u] = o, t.value = n;
|
|
281
|
+
}
|
|
282
|
+
}), d = (u) => {
|
|
283
|
+
var o;
|
|
284
|
+
return (o = m.initialSeatsValues) == null ? void 0 : o.find(
|
|
285
|
+
(n) => n.pricing_item_config_id === u.pricing_item_config_id
|
|
286
|
+
);
|
|
287
|
+
};
|
|
288
|
+
return (u, o) => e.modelValue.length > 0 ? (s(), _("div", me, [
|
|
289
|
+
(s(!0), _(P, null, N(e.modelValue, (n, l) => (s(), f(i(A), { key: l }, {
|
|
290
|
+
default: g(() => [
|
|
291
|
+
n.pricing_item_config_id ? (s(), f(ce, {
|
|
292
|
+
key: n.pricing_item_config_id,
|
|
293
|
+
modelValue: c(l).value,
|
|
294
|
+
"onUpdate:modelValue": (a) => c(l).value = a,
|
|
295
|
+
"default-value": d(n),
|
|
296
|
+
pricings: e.pricings
|
|
297
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : k("", !0)
|
|
298
|
+
]),
|
|
299
|
+
_: 2
|
|
300
|
+
}, 1024))), 128))
|
|
301
|
+
])) : k("", !0);
|
|
302
|
+
}
|
|
303
|
+
}), ge = { class: "flex flex-row-reverse gap-4 md:flex-row" }, fe = { class: "w-24 shrink-0 justify-start md:w-32" }, be = { class: "flex grow flex-col" }, _e = /* @__PURE__ */ T({
|
|
304
|
+
__name: "UnitsEditorItem",
|
|
305
|
+
props: /* @__PURE__ */ w({
|
|
306
|
+
modelValue: { type: Object },
|
|
307
|
+
defaultValue: { type: Object },
|
|
308
|
+
pricings: { type: Array }
|
|
309
|
+
}, {
|
|
310
|
+
modelValue: { required: !0 },
|
|
311
|
+
modelModifiers: {}
|
|
312
|
+
}),
|
|
313
|
+
emits: ["update:modelValue"],
|
|
314
|
+
setup(e) {
|
|
315
|
+
const m = e, t = $(e, "modelValue"), { $t: c } = S(), d = h({
|
|
316
|
+
get: () => +(t.value.number || q),
|
|
317
|
+
set(o) {
|
|
318
|
+
t.value = {
|
|
319
|
+
...t.value,
|
|
320
|
+
number: o !== void 0 ? o.toString() : void 0
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
}), u = K({
|
|
324
|
+
pricings: m.pricings,
|
|
325
|
+
pricingItemConfigId: t.value.pricing_item_config_id
|
|
326
|
+
});
|
|
327
|
+
return (o, n) => {
|
|
328
|
+
var l;
|
|
329
|
+
return s(), _("div", ge, [
|
|
330
|
+
V("div", fe, [
|
|
331
|
+
b(i(D), {
|
|
332
|
+
modelValue: d.value,
|
|
333
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => d.value = a),
|
|
334
|
+
size: "sm",
|
|
335
|
+
min: (l = e.defaultValue) != null && l.number ? +e.defaultValue.number : void 0
|
|
336
|
+
}, null, 8, ["modelValue", "min"])
|
|
337
|
+
]),
|
|
338
|
+
V("div", be, [
|
|
339
|
+
b(i(x), {
|
|
340
|
+
tag: "span",
|
|
341
|
+
variant: "body-sm",
|
|
342
|
+
weight: "semibold"
|
|
343
|
+
}, {
|
|
344
|
+
default: g(() => [
|
|
345
|
+
v(y(i(u).product.name || i(c)({
|
|
346
|
+
defaultMessage: "Units",
|
|
347
|
+
id: "units.label",
|
|
348
|
+
description: "The label for the one-off flat item units input field"
|
|
349
|
+
})), 1)
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}),
|
|
353
|
+
i(u).pricing.amount ? (s(), f(i(x), {
|
|
354
|
+
key: 0,
|
|
355
|
+
tag: "span",
|
|
356
|
+
variant: "body-xs",
|
|
357
|
+
color: "subtle"
|
|
358
|
+
}, {
|
|
359
|
+
default: g(() => [
|
|
360
|
+
v(y(i(c)(
|
|
361
|
+
{
|
|
362
|
+
defaultMessage: "{amount} per unit, one-time",
|
|
363
|
+
id: "units.price_per_unit_one_time",
|
|
364
|
+
description: "The price per unit label for a one-off flat item, which is charged once rather than every period"
|
|
365
|
+
},
|
|
366
|
+
{ amount: i(z)(i(u).pricing.amount) }
|
|
367
|
+
)), 1)
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})) : k("", !0)
|
|
371
|
+
])
|
|
372
|
+
]);
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
}), ve = { class: "grid grid-cols-1 gap-1 p-1" }, ye = { class: "grid grid-cols-1 gap-1" }, Ve = /* @__PURE__ */ T({
|
|
376
|
+
__name: "UnitsEditor",
|
|
377
|
+
props: /* @__PURE__ */ w({
|
|
378
|
+
modelValue: { type: Array },
|
|
379
|
+
initialUnitsValues: { type: Array },
|
|
380
|
+
pricings: { type: Array }
|
|
381
|
+
}, {
|
|
382
|
+
modelValue: { required: !0 },
|
|
383
|
+
modelModifiers: {}
|
|
384
|
+
}),
|
|
385
|
+
emits: ["update:modelValue"],
|
|
386
|
+
setup(e) {
|
|
387
|
+
const m = e, { $t: t } = S(), c = $(e, "modelValue"), d = (o) => h({
|
|
388
|
+
get: () => c.value[o],
|
|
389
|
+
set: (n) => {
|
|
390
|
+
const l = c.value.slice();
|
|
391
|
+
l[o] = n, c.value = l;
|
|
392
|
+
}
|
|
393
|
+
}), u = (o) => {
|
|
394
|
+
var n;
|
|
395
|
+
return (n = m.initialUnitsValues) == null ? void 0 : n.find(
|
|
396
|
+
(l) => l.pricing_item_config_id === o.pricing_item_config_id
|
|
397
|
+
);
|
|
398
|
+
};
|
|
399
|
+
return (o, n) => e.modelValue.length > 0 ? (s(), f(i(A), {
|
|
400
|
+
key: 0,
|
|
401
|
+
"no-spacing": "",
|
|
402
|
+
"content-background": "gray"
|
|
403
|
+
}, {
|
|
404
|
+
default: g(() => [
|
|
405
|
+
V("div", ve, [
|
|
406
|
+
b(O, null, {
|
|
407
|
+
title: g(() => [
|
|
408
|
+
v(y(i(t)({
|
|
409
|
+
defaultMessage: "One-time items",
|
|
410
|
+
id: "units_editor.title",
|
|
411
|
+
description: "The heading above the one-off items in the plan customization form"
|
|
412
|
+
})), 1)
|
|
413
|
+
]),
|
|
414
|
+
description: g(() => [
|
|
415
|
+
v(y(i(t)({
|
|
416
|
+
defaultMessage: "Charged once",
|
|
417
|
+
id: "units_editor.description",
|
|
418
|
+
description: "The description of the one-off items in the plan customization form"
|
|
419
|
+
})), 1)
|
|
420
|
+
]),
|
|
421
|
+
_: 1
|
|
422
|
+
}),
|
|
423
|
+
V("div", ye, [
|
|
424
|
+
(s(!0), _(P, null, N(e.modelValue, (l, a) => (s(), f(i(A), {
|
|
425
|
+
key: a,
|
|
426
|
+
"content-background": "none"
|
|
427
|
+
}, {
|
|
428
|
+
default: g(() => [
|
|
429
|
+
l.pricing_item_config_id ? (s(), f(_e, {
|
|
430
|
+
key: l.pricing_item_config_id,
|
|
431
|
+
modelValue: d(a).value,
|
|
432
|
+
"onUpdate:modelValue": (r) => d(a).value = r,
|
|
433
|
+
"default-value": u(l),
|
|
434
|
+
pricings: e.pricings
|
|
435
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "default-value", "pricings"])) : k("", !0)
|
|
436
|
+
]),
|
|
437
|
+
_: 2
|
|
438
|
+
}, 1024))), 128))
|
|
439
|
+
])
|
|
440
|
+
])
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
})) : k("", !0);
|
|
444
|
+
}
|
|
445
|
+
}), he = { class: "p-1" }, ke = { class: "grid grid-cols-1 gap-1 pt-1" }, $e = /* @__PURE__ */ T({
|
|
446
|
+
__name: "AddonSingleEditor",
|
|
447
|
+
props: /* @__PURE__ */ w({
|
|
448
|
+
modelValue: { type: Array },
|
|
449
|
+
pricings: { type: Array },
|
|
450
|
+
billingPeriod: { type: Object },
|
|
451
|
+
currency: { type: String },
|
|
452
|
+
groupName: { type: String }
|
|
453
|
+
}, {
|
|
454
|
+
modelValue: { required: !0 },
|
|
455
|
+
modelModifiers: {}
|
|
456
|
+
}),
|
|
457
|
+
emits: ["update:modelValue"],
|
|
458
|
+
setup(e) {
|
|
459
|
+
const m = e, t = $(e, "modelValue"), { $t: c } = S(), { describePricing: d } = R({
|
|
460
|
+
currency: E(m, "currency"),
|
|
461
|
+
billingPeriod: E(m, "billingPeriod")
|
|
462
|
+
}), u = m.pricings.map((l) => l.id), o = (l) => m.modelValue.includes(l), n = (l) => {
|
|
463
|
+
if (o(l))
|
|
464
|
+
t.value = t.value.filter((a) => a !== l);
|
|
465
|
+
else {
|
|
466
|
+
const a = t.value.filter((r) => !u.includes(r));
|
|
467
|
+
t.value = [...a, l];
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
return (l, a) => (s(), f(i(A), { "no-spacing": "" }, {
|
|
471
|
+
default: g(() => [
|
|
472
|
+
V("div", he, [
|
|
473
|
+
b(O, null, {
|
|
474
|
+
title: g(() => [
|
|
475
|
+
v(y(e.groupName), 1)
|
|
476
|
+
]),
|
|
477
|
+
description: g(() => [
|
|
478
|
+
v(y(i(c)({
|
|
479
|
+
defaultMessage: "Select up to one product",
|
|
480
|
+
id: "addon_single_editor.description.at_most_one",
|
|
481
|
+
description: "The description of the addon single editor for at most one product"
|
|
482
|
+
})), 1)
|
|
483
|
+
]),
|
|
484
|
+
_: 1
|
|
485
|
+
}),
|
|
486
|
+
V("div", ke, [
|
|
487
|
+
(s(!0), _(P, null, N(e.pricings, (r) => (s(), f(i(A), {
|
|
488
|
+
key: r.id,
|
|
489
|
+
"content-background": "none",
|
|
490
|
+
class: U({ "!bg-white": o(r.id) })
|
|
491
|
+
}, {
|
|
492
|
+
default: g(() => [
|
|
493
|
+
b(L, {
|
|
494
|
+
name: i(Y)(r) ?? "",
|
|
495
|
+
description: i(d)(r)
|
|
496
|
+
}, {
|
|
497
|
+
default: g(() => [
|
|
498
|
+
b(i(Z), {
|
|
499
|
+
"model-value": o(r.id),
|
|
500
|
+
size: "sm",
|
|
501
|
+
"onUpdate:modelValue": (p) => n(r.id)
|
|
502
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
503
|
+
]),
|
|
504
|
+
_: 2
|
|
505
|
+
}, 1032, ["name", "description"])
|
|
506
|
+
]),
|
|
507
|
+
_: 2
|
|
508
|
+
}, 1032, ["class"]))), 128))
|
|
509
|
+
])
|
|
510
|
+
])
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
}));
|
|
514
|
+
}
|
|
515
|
+
}), Pe = { class: "grid grid-cols-1 gap-1" }, B = /* @__PURE__ */ T({
|
|
516
|
+
__name: "AddonMultipleEditor",
|
|
517
|
+
props: /* @__PURE__ */ w({
|
|
518
|
+
modelValue: { type: Array },
|
|
519
|
+
pricings: { type: Array },
|
|
520
|
+
billingPeriod: { type: Object },
|
|
521
|
+
currency: { type: String },
|
|
522
|
+
groupName: { type: String }
|
|
523
|
+
}, {
|
|
524
|
+
modelValue: { required: !0 },
|
|
525
|
+
modelModifiers: {}
|
|
526
|
+
}),
|
|
527
|
+
emits: ["update:modelValue"],
|
|
528
|
+
setup(e) {
|
|
529
|
+
const m = e, t = $(e, "modelValue"), { $t: c } = S(), { describePricing: d } = R({
|
|
530
|
+
currency: E(m, "currency"),
|
|
531
|
+
billingPeriod: E(m, "billingPeriod")
|
|
532
|
+
}), u = (n) => t.value.includes(n), o = (n) => {
|
|
533
|
+
u(n) ? t.value = t.value.filter((l) => l !== n) : t.value = [...t.value, n];
|
|
534
|
+
};
|
|
535
|
+
return (n, l) => (s(), f(i(A), {
|
|
536
|
+
"no-spacing": "",
|
|
537
|
+
"no-border": !e.groupName,
|
|
538
|
+
"content-background": e.groupName ? "gray" : "none"
|
|
539
|
+
}, {
|
|
540
|
+
default: g(() => [
|
|
541
|
+
V("div", {
|
|
542
|
+
class: U(["grid grid-cols-1 gap-1", { "p-1": e.groupName }])
|
|
543
|
+
}, [
|
|
544
|
+
e.groupName ? (s(), f(O, { key: 0 }, {
|
|
545
|
+
title: g(() => [
|
|
546
|
+
v(y(e.groupName), 1)
|
|
547
|
+
]),
|
|
548
|
+
description: g(() => [
|
|
549
|
+
v(y(i(c)({
|
|
550
|
+
defaultMessage: "Select any number of products",
|
|
551
|
+
id: "addon_multiple_editor.description",
|
|
552
|
+
description: "The description of the addon multiple editor"
|
|
553
|
+
})), 1)
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
})) : k("", !0),
|
|
557
|
+
V("div", Pe, [
|
|
558
|
+
(s(!0), _(P, null, N(e.pricings, (a) => (s(), f(i(A), {
|
|
559
|
+
key: a.id,
|
|
560
|
+
"content-background": e.groupName || u(a.id) ? "none" : "gray",
|
|
561
|
+
class: U({ "!bg-white": u(a.id) })
|
|
562
|
+
}, {
|
|
563
|
+
default: g(() => [
|
|
564
|
+
b(L, {
|
|
565
|
+
name: i(Y)(a) ?? "",
|
|
566
|
+
description: i(d)(a)
|
|
567
|
+
}, {
|
|
568
|
+
default: g(() => [
|
|
569
|
+
u(a.id) ? (s(), f(i(j), {
|
|
570
|
+
key: 0,
|
|
571
|
+
intent: "secondary",
|
|
572
|
+
square: "",
|
|
573
|
+
size: "sm",
|
|
574
|
+
"icon-prefix": "remove_shopping_cart",
|
|
575
|
+
onClick: (r) => o(a.id)
|
|
576
|
+
}, null, 8, ["onClick"])) : (s(), f(i(j), {
|
|
577
|
+
key: 1,
|
|
578
|
+
intent: "primary",
|
|
579
|
+
"icon-prefix": "add",
|
|
580
|
+
size: "sm",
|
|
581
|
+
onClick: (r) => o(a.id)
|
|
582
|
+
}, {
|
|
583
|
+
default: g(() => [
|
|
584
|
+
v(y(i(c)({
|
|
585
|
+
defaultMessage: "Add to subscription",
|
|
586
|
+
id: "addon_multiple_editor.add_to_subscription_button",
|
|
587
|
+
description: "The button to add a pricing to the subscription"
|
|
588
|
+
})), 1)
|
|
589
|
+
]),
|
|
590
|
+
_: 1
|
|
591
|
+
}, 8, ["onClick"]))
|
|
592
|
+
]),
|
|
593
|
+
_: 2
|
|
594
|
+
}, 1032, ["name", "description"])
|
|
595
|
+
]),
|
|
596
|
+
_: 2
|
|
597
|
+
}, 1032, ["content-background", "class"]))), 128))
|
|
598
|
+
])
|
|
599
|
+
], 2)
|
|
600
|
+
]),
|
|
601
|
+
_: 1
|
|
602
|
+
}, 8, ["no-border", "content-background"]));
|
|
603
|
+
}
|
|
604
|
+
}), Te = { class: "sv-plan-customization__body grid grid-cols-1 gap-1" }, Ie = /* @__PURE__ */ T({
|
|
605
|
+
__name: "PlanCustomizationEditor",
|
|
606
|
+
props: /* @__PURE__ */ w({
|
|
607
|
+
subscription: { type: Object },
|
|
608
|
+
enabledPricingIds: { type: Array },
|
|
609
|
+
initialSeatsValues: { type: Array },
|
|
610
|
+
initialUnitsValues: { type: Array },
|
|
611
|
+
billingPeriod: { type: Object },
|
|
612
|
+
currency: { type: String }
|
|
613
|
+
}, {
|
|
614
|
+
seatsValues: { required: !0 },
|
|
615
|
+
seatsValuesModifiers: {},
|
|
616
|
+
unitsValues: { required: !0 },
|
|
617
|
+
unitsValuesModifiers: {},
|
|
618
|
+
enabledPricingIds: {
|
|
619
|
+
required: !0
|
|
620
|
+
},
|
|
621
|
+
enabledPricingIdsModifiers: {}
|
|
622
|
+
}),
|
|
623
|
+
emits: ["update:seatsValues", "update:unitsValues", "update:enabledPricingIds"],
|
|
624
|
+
setup(e) {
|
|
625
|
+
const m = e, t = $(e, "seatsValues"), c = $(e, "unitsValues"), d = $(e, "enabledPricingIds"), { $t: u } = S(), o = h(() => {
|
|
626
|
+
const a = ee({
|
|
627
|
+
pricingPlanScheduleInfos: m.subscription.pricing_plan_schedule_infos,
|
|
628
|
+
type: "DEFAULT"
|
|
629
|
+
});
|
|
630
|
+
return a != null && a.pricing_plan_version ? G(a) : [];
|
|
631
|
+
}), n = h(
|
|
632
|
+
() => o.value.filter((a) => a.product_type === "ADDON")
|
|
633
|
+
), l = h(
|
|
634
|
+
() => ie(m.subscription)
|
|
635
|
+
);
|
|
636
|
+
return (a, r) => (s(), f(i(A), {
|
|
637
|
+
class: "sv-plan-customization",
|
|
638
|
+
title: i(u)({
|
|
639
|
+
defaultMessage: "Customize plan",
|
|
640
|
+
id: "checkout.customize_plan_block.title",
|
|
641
|
+
description: "The title of the customize plan block in the checkout form"
|
|
642
|
+
}),
|
|
643
|
+
"no-spacing": "",
|
|
644
|
+
"no-border": "",
|
|
645
|
+
"content-background": "none"
|
|
646
|
+
}, {
|
|
647
|
+
default: g(() => [
|
|
648
|
+
V("div", Te, [
|
|
649
|
+
b(pe, {
|
|
650
|
+
modelValue: t.value,
|
|
651
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => t.value = p),
|
|
652
|
+
class: "sv-plan-customization__seats",
|
|
653
|
+
"initial-seats-values": e.initialSeatsValues,
|
|
654
|
+
pricings: o.value
|
|
655
|
+
}, null, 8, ["modelValue", "initial-seats-values", "pricings"]),
|
|
656
|
+
b(Ve, {
|
|
657
|
+
modelValue: c.value,
|
|
658
|
+
"onUpdate:modelValue": r[1] || (r[1] = (p) => c.value = p),
|
|
659
|
+
class: "sv-plan-customization__units",
|
|
660
|
+
"initial-units-values": e.initialUnitsValues,
|
|
661
|
+
pricings: o.value
|
|
662
|
+
}, null, 8, ["modelValue", "initial-units-values", "pricings"]),
|
|
663
|
+
(s(!0), _(P, null, N(l.value, (p) => (s(), _(P, {
|
|
664
|
+
key: p.id
|
|
665
|
+
}, [
|
|
666
|
+
p.product_type === "DEFAULT" && p.selection_constraint === "EXACTLY_ONE" ? (s(), f(W, {
|
|
667
|
+
key: 0,
|
|
668
|
+
modelValue: d.value,
|
|
669
|
+
"onUpdate:modelValue": r[2] || (r[2] = (M) => d.value = M),
|
|
670
|
+
class: "sv-plan-customization__group",
|
|
671
|
+
"group-name": p.name,
|
|
672
|
+
pricings: p.pricings,
|
|
673
|
+
"billing-period": e.billingPeriod,
|
|
674
|
+
currency: e.currency
|
|
675
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : p.product_type === "ADDON" && p.selection_constraint === "AT_MOST_ONE" ? (s(), f($e, {
|
|
676
|
+
key: 1,
|
|
677
|
+
modelValue: d.value,
|
|
678
|
+
"onUpdate:modelValue": r[3] || (r[3] = (M) => d.value = M),
|
|
679
|
+
class: "sv-plan-customization__group",
|
|
680
|
+
"group-name": p.name,
|
|
681
|
+
pricings: p.pricings,
|
|
682
|
+
"billing-period": e.billingPeriod,
|
|
683
|
+
currency: e.currency
|
|
684
|
+
}, null, 8, ["modelValue", "group-name", "pricings", "billing-period", "currency"])) : p.product_type === "ADDON" && p.selection_constraint === "ANY" ? (s(), f(B, {
|
|
685
|
+
key: 2,
|
|
686
|
+
modelValue: d.value,
|
|
687
|
+
"onUpdate:modelValue": r[4] || (r[4] = (M) => d.value = M),
|
|
688
|
+
class: "sv-plan-customization__group",
|
|
689
|
+
pricings: p.pricings,
|
|
690
|
+
"group-name": p.name,
|
|
691
|
+
"billing-period": e.billingPeriod,
|
|
692
|
+
currency: e.currency
|
|
693
|
+
}, null, 8, ["modelValue", "pricings", "group-name", "billing-period", "currency"])) : k("", !0)
|
|
694
|
+
], 64))), 128)),
|
|
695
|
+
b(B, {
|
|
696
|
+
modelValue: d.value,
|
|
697
|
+
"onUpdate:modelValue": r[5] || (r[5] = (p) => d.value = p),
|
|
698
|
+
class: "sv-plan-customization__group",
|
|
699
|
+
pricings: n.value,
|
|
700
|
+
"billing-period": e.billingPeriod,
|
|
701
|
+
currency: e.currency
|
|
702
|
+
}, null, 8, ["modelValue", "pricings", "billing-period", "currency"])
|
|
703
|
+
])
|
|
704
|
+
]),
|
|
705
|
+
_: 1
|
|
706
|
+
}, 8, ["title"]));
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
export {
|
|
710
|
+
Ie as default
|
|
711
|
+
};
|