@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
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
import { onMounted as Ji, onUnmounted as Pn, ref as be, watch as Be, onBeforeUnmount as In, computed as C, unref as B, nextTick as Cn, provide as Ge, reactive as En, inject as Xi, defineComponent as U, openBlock as
|
|
2
|
-
import { _ as Dn } from "./Section.vue.es-
|
|
1
|
+
import { onMounted as Ji, onUnmounted as Pn, ref as be, watch as Be, onBeforeUnmount as In, computed as C, unref as B, nextTick as Cn, provide as Ge, reactive as En, inject as Xi, defineComponent as U, openBlock as t, createElementBlock as u, normalizeClass as H, renderSlot as k, createBlock as T, resolveDynamicComponent as wn, withCtx as o, createElementVNode as w, createCommentVNode as b, createVNode as S, createTextVNode as O, toDisplayString as h, useSlots as Qi, normalizeProps as q, guardReactiveProps as Y, mergeProps as j, Fragment as z, renderList as Q, toRef as en, withKeys as Ai, withModifiers as we, createSlots as Sn, resolveComponent as Tn, normalizeStyle as Bn } from "vue";
|
|
2
|
+
import { _ as Dn } from "./Section.vue.es-iS8hVGWA.mjs";
|
|
3
3
|
import { f as Ne, c as On, b as nn, a as Nn } from "./formatting.es-RclXHhKo.mjs";
|
|
4
|
-
import { c as Ln, a as Vn } from "./comparators.es-
|
|
5
|
-
import { _ as le } from "./Chip.vue.es-
|
|
4
|
+
import { c as Ln, a as Vn } from "./comparators.es-C8rHpb70.mjs";
|
|
5
|
+
import { _ as le } from "./Chip.vue.es-Cn2R_0mE.mjs";
|
|
6
6
|
import { _ as _e } from "./Expand.vue.es-BleuAfDz.mjs";
|
|
7
|
-
import { c as ke } from "./cn.es-
|
|
8
|
-
import { _ as Z, a as ae } from "./customElements-
|
|
7
|
+
import { c as ke } from "./cn.es-2bVdkiFV.mjs";
|
|
8
|
+
import { _ as Z, a as ae } from "./customElements-Di3zwlEU.mjs";
|
|
9
9
|
import { _ as se } from "./floating-ui.vue.es-CYt0fSY7.mjs";
|
|
10
|
-
import { _ as tn } from "./IconTitle.vue.es-
|
|
11
|
-
import { _ as De, a as te } from "./Button.vue.es-
|
|
10
|
+
import { _ as tn } from "./IconTitle.vue.es-BO6KBS4v.mjs";
|
|
11
|
+
import { _ as De, a as te } from "./Button.vue.es-rh6mITmN.mjs";
|
|
12
12
|
import { g as Ri, h as Mn } from "./index.es-CXkP_k3u.mjs";
|
|
13
13
|
import { _ as ze } from "./Alert.vue.es-lIiAWf2S.mjs";
|
|
14
14
|
import { g as An } from "./getComposedString.es-C__uhJpd.mjs";
|
|
15
15
|
import { g as je, i as Oe, a as Ce, b as Rn, c as zi, d as zn, F as $e, h as Zn } from "./pricing.es-QYWrKMUJ.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import { _ as Ae } from "./DividerText.vue.es-
|
|
16
|
+
import { a as ie } from "./useService-B0OQJmif.mjs";
|
|
17
|
+
import { _ as Ae } from "./DividerText.vue.es-M0XqSz55.mjs";
|
|
18
18
|
import { _ as J } from "./Amount.vue.es-DPqHB8Xd.mjs";
|
|
19
|
-
import { _ as Ze, u as Un } from "./Comparators.vue.es-
|
|
20
|
-
import { _ as re, T as de, a as he } from "./TooltipParagraph.vue.es-
|
|
21
|
-
import { b as Pe, c as qe, g as Le, d as We, e as Fn, r as Hn, f as ln, j as Gn, h as jn, k as qn, l as Wn, a as Yn } from "./pricingItemConfigs.es-
|
|
19
|
+
import { _ as Ze, u as Un } from "./Comparators.vue.es-DQBI3f7m.mjs";
|
|
20
|
+
import { _ as re, T as de, a as he } from "./TooltipParagraph.vue.es-BjCn2BF6.mjs";
|
|
21
|
+
import { b as Pe, c as qe, g as Le, d as We, e as Fn, r as Hn, f as ln, j as Gn, h as jn, k as qn, l as Wn, a as Yn } from "./pricingItemConfigs.es-D3pX_9AJ.mjs";
|
|
22
22
|
import { i as Ue } from "./slots.es-BA4MyEAa.mjs";
|
|
23
23
|
import { b as Ie, c as on, d as Ye } from "./typeGuards.es-B4XMtlkM.mjs";
|
|
24
|
-
import { u as Kn, _ as Jn } from "./PricingGroupRangeInput.vue.es-
|
|
25
|
-
import { _ as Xn } from "./Avatar.vue.es-
|
|
26
|
-
import { _ as Qn, c as et } from "./TrialChip.vue.es-
|
|
24
|
+
import { u as Kn, _ as Jn } from "./PricingGroupRangeInput.vue.es-C9LJW3b8.mjs";
|
|
25
|
+
import { _ as Xn } from "./Avatar.vue.es-Beg7umjO.mjs";
|
|
26
|
+
import { _ as Qn, c as et } from "./TrialChip.vue.es-B-XBSHWE.mjs";
|
|
27
27
|
import { p as Re } from "./object.es-8aLDIncs.mjs";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (
|
|
28
|
+
import { i as it, a as Zi } from "./pricingPlanScheduleOverrides-COr9F8DO.mjs";
|
|
29
|
+
const nt = 1122.515625;
|
|
30
|
+
function tt(e, i, n, l) {
|
|
31
|
+
const f = i.getBoundingClientRect().top + window.scrollY, g = Math.floor(f / l), m = [...e.querySelectorAll(n)];
|
|
32
|
+
for (let a = m.length - 1; a >= 0; a--) {
|
|
33
|
+
const d = m[a], c = d.getBoundingClientRect().top + window.scrollY, s = Math.floor(c / l);
|
|
34
|
+
if (c < f && s === g) return d;
|
|
35
|
+
if (c < f && s < g) break;
|
|
35
36
|
}
|
|
36
37
|
return null;
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function lt(e, i) {
|
|
39
40
|
if (!(i != null && i.length)) return 0;
|
|
40
41
|
const n = /* @__PURE__ */ new Set();
|
|
41
|
-
return i.reduce((
|
|
42
|
-
const
|
|
43
|
-
return !
|
|
42
|
+
return i.reduce((l, f) => {
|
|
43
|
+
const g = e.querySelector(f);
|
|
44
|
+
return !g || n.has(g) ? l : (n.add(g), l + g.getBoundingClientRect().height);
|
|
44
45
|
}, 0);
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
const
|
|
47
|
+
function ot(e, i, n = { enabled: !1 }) {
|
|
48
|
+
const l = n.pageHeight ?? nt, f = n.pushThreshold ?? 0.6, g = n.smallOverflowRatio ?? 0.1, m = [], a = (E) => {
|
|
48
49
|
var p;
|
|
49
50
|
if ((p = n.expandSelectors) != null && p.length)
|
|
50
51
|
for (const r of n.expandSelectors)
|
|
51
52
|
E.querySelectorAll(r).forEach((_) => {
|
|
52
|
-
getComputedStyle(_).display === "none" && (_.style.display = "block",
|
|
53
|
+
getComputedStyle(_).display === "none" && (_.style.display = "block", m.push(_));
|
|
53
54
|
});
|
|
54
55
|
}, d = () => {
|
|
55
|
-
|
|
56
|
-
},
|
|
56
|
+
m.forEach((E) => E.style.display = "none"), m.length = 0;
|
|
57
|
+
}, c = () => {
|
|
57
58
|
const E = e.value;
|
|
58
59
|
if (!E) return;
|
|
59
60
|
a(E);
|
|
60
|
-
const r = ((E.getBoundingClientRect().top + window.scrollY) %
|
|
61
|
+
const r = ((E.getBoundingClientRect().top + window.scrollY) % l + l) % l;
|
|
61
62
|
[...E.querySelectorAll(i)].forEach((N) => {
|
|
62
63
|
N.style.marginTop = "";
|
|
63
|
-
const L = N.getBoundingClientRect().top + window.scrollY, M = N.getBoundingClientRect().height, $ = ((L - r) %
|
|
64
|
+
const L = N.getBoundingClientRect().top + window.scrollY, M = N.getBoundingClientRect().height, $ = ((L - r) % l + l) % l, v = l - $, P = lt(N, n.protectedTopSelectors);
|
|
64
65
|
if (M <= v) return;
|
|
65
66
|
const x = (I, A) => {
|
|
66
|
-
const R = n.companionSelector ?
|
|
67
|
+
const R = n.companionSelector ? tt(
|
|
67
68
|
E,
|
|
68
69
|
I,
|
|
69
70
|
n.companionSelector,
|
|
70
|
-
|
|
71
|
+
l
|
|
71
72
|
) : null;
|
|
72
73
|
if (R) {
|
|
73
|
-
const W = ((R.getBoundingClientRect().top + window.scrollY - r) %
|
|
74
|
-
W >
|
|
74
|
+
const W = ((R.getBoundingClientRect().top + window.scrollY - r) % l + l) % l, G = l - W;
|
|
75
|
+
W > l * 0.5 ? R.style.marginTop = `${G}px` : I.style.marginTop = `${A}px`;
|
|
75
76
|
} else
|
|
76
77
|
I.style.marginTop = `${A}px`;
|
|
77
78
|
};
|
|
@@ -79,11 +80,11 @@ function lt(e, i, n = { enabled: !1 }) {
|
|
|
79
80
|
x(N, v);
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
82
|
-
if (M >
|
|
83
|
-
$ >
|
|
83
|
+
if (M > l) {
|
|
84
|
+
$ > l * 0.5 && x(N, v);
|
|
84
85
|
return;
|
|
85
86
|
}
|
|
86
|
-
const y = (M - v) /
|
|
87
|
+
const y = (M - v) / l < g, D = v / M < f;
|
|
87
88
|
(y || D) && x(N, v);
|
|
88
89
|
});
|
|
89
90
|
}, s = () => {
|
|
@@ -95,38 +96,38 @@ function lt(e, i, n = { enabled: !1 }) {
|
|
|
95
96
|
}));
|
|
96
97
|
};
|
|
97
98
|
return Ji(() => {
|
|
98
|
-
n.enabled && (window.addEventListener("beforeprint",
|
|
99
|
+
n.enabled && (window.addEventListener("beforeprint", c), window.addEventListener("afterprint", s));
|
|
99
100
|
}), Pn(() => {
|
|
100
|
-
n.enabled && (window.removeEventListener("beforeprint",
|
|
101
|
-
}), { adjust:
|
|
101
|
+
n.enabled && (window.removeEventListener("beforeprint", c), window.removeEventListener("afterprint", s));
|
|
102
|
+
}), { adjust: c, reset: s };
|
|
102
103
|
}
|
|
103
|
-
const
|
|
104
|
+
const at = (e, i = {}) => {
|
|
104
105
|
const {
|
|
105
106
|
estimatedHeight: n,
|
|
106
|
-
mountMargin:
|
|
107
|
-
unmountMargin:
|
|
108
|
-
keepMountedOnce:
|
|
109
|
-
} = i,
|
|
107
|
+
mountMargin: l = "200px 0px",
|
|
108
|
+
unmountMargin: f = "600px 0px",
|
|
109
|
+
keepMountedOnce: g = !1
|
|
110
|
+
} = i, m = () => B(i.disabled) ?? !1, a = be(m()), d = be(null), c = async () => {
|
|
110
111
|
a.value = !0, await Cn();
|
|
111
112
|
const r = B(e);
|
|
112
113
|
r && r.offsetHeight > 0 && (d.value = r.offsetHeight);
|
|
113
114
|
}, s = Ri(
|
|
114
115
|
e,
|
|
115
116
|
([r]) => {
|
|
116
|
-
|
|
117
|
+
m() || !(r != null && r.isIntersecting) || (c(), g && (s.stop(), E.stop()));
|
|
117
118
|
},
|
|
118
119
|
// threshold 0: intersecting as soon as any part enters. The default (0.1) never
|
|
119
120
|
// triggers for content taller than the viewport.
|
|
120
|
-
{ rootMargin:
|
|
121
|
+
{ rootMargin: l, threshold: 0 }
|
|
121
122
|
), E = Ri(
|
|
122
123
|
e,
|
|
123
124
|
([r]) => {
|
|
124
|
-
|
|
125
|
+
m() || g || r != null && r.isIntersecting || (a.value = !1);
|
|
125
126
|
},
|
|
126
|
-
{ rootMargin:
|
|
127
|
+
{ rootMargin: f, threshold: 0 }
|
|
127
128
|
);
|
|
128
|
-
s.isSupported.value || (a.value = !0), Be(
|
|
129
|
-
r &&
|
|
129
|
+
s.isSupported.value || (a.value = !0), Be(m, (r) => {
|
|
130
|
+
r && c();
|
|
130
131
|
}), In(() => {
|
|
131
132
|
s.stop(), E.stop();
|
|
132
133
|
});
|
|
@@ -136,15 +137,15 @@ const ot = (e, i = {}) => {
|
|
|
136
137
|
return r === void 0 ? void 0 : { minHeight: `${r}px` };
|
|
137
138
|
});
|
|
138
139
|
return { shouldRender: a, placeholderStyle: p };
|
|
139
|
-
}, an = Symbol("expandedConfigs"),
|
|
140
|
-
const i = be(!e.defaultCollapsed), n = En(/* @__PURE__ */ new Set()),
|
|
141
|
-
a === i.value ? n.delete(
|
|
142
|
-
},
|
|
140
|
+
}, an = Symbol("expandedConfigs"), st = (e = {}) => {
|
|
141
|
+
const i = be(!e.defaultCollapsed), n = En(/* @__PURE__ */ new Set()), l = (m) => n.has(m) ? !i.value : i.value, f = (m, a) => {
|
|
142
|
+
a === i.value ? n.delete(m) : n.add(m);
|
|
143
|
+
}, g = (m) => Array.isArray(m) ? m : [m];
|
|
143
144
|
return {
|
|
144
|
-
isExpanded:
|
|
145
|
-
toggle: (
|
|
146
|
-
expand: (
|
|
147
|
-
collapse: (
|
|
145
|
+
isExpanded: l,
|
|
146
|
+
toggle: (m) => f(m, !l(m)),
|
|
147
|
+
expand: (m) => g(m).forEach((a) => f(a, !0)),
|
|
148
|
+
collapse: (m) => g(m).forEach((a) => f(a, !1)),
|
|
148
149
|
expandAll: () => {
|
|
149
150
|
i.value = !0, n.clear();
|
|
150
151
|
},
|
|
@@ -153,77 +154,64 @@ const ot = (e, i = {}) => {
|
|
|
153
154
|
}
|
|
154
155
|
};
|
|
155
156
|
}, sn = (e = {}) => {
|
|
156
|
-
const i =
|
|
157
|
+
const i = st(e);
|
|
157
158
|
return Ge(an, i), i;
|
|
158
|
-
},
|
|
159
|
+
}, rt = (e = {}) => {
|
|
159
160
|
const i = Xi(an, null);
|
|
160
161
|
return i || sn(e);
|
|
161
|
-
},
|
|
162
|
+
}, dt = Symbol("viewportGating"), ct = () => Xi(dt, !1), ut = (e, i = !0) => {
|
|
162
163
|
const n = An(
|
|
163
|
-
(e.products ?? []).map((
|
|
164
|
+
(e.products ?? []).map((l) => l.name ?? "")
|
|
164
165
|
);
|
|
165
166
|
return e.name ? i ? `${e.name} - ${n}` : e.name : n;
|
|
166
|
-
}, ut = (e, i) => {
|
|
167
|
-
var n, t;
|
|
168
|
-
return !!((n = e.enabled_pricings) != null && n.some(({ pricing_id: c }) => c === i.id) || (t = e.override_pricings) != null && t.some(
|
|
169
|
-
(c) => "id" in c && c.id === i.id || c.original_pricing_id === i.id
|
|
170
|
-
));
|
|
171
|
-
}, Zi = (e) => {
|
|
172
|
-
var i, n;
|
|
173
|
-
return [
|
|
174
|
-
...((i = e.enabled_pricings) == null ? void 0 : i.map(({ pricing_id: t }) => t)) ?? [],
|
|
175
|
-
...((n = e.override_pricings) == null ? void 0 : n.map(
|
|
176
|
-
(t) => "id" in t ? t.id : t.original_pricing_id
|
|
177
|
-
)) ?? []
|
|
178
|
-
];
|
|
179
167
|
}, gt = ({
|
|
180
168
|
schedule: e,
|
|
181
169
|
pricingItemConfigIds: i
|
|
182
170
|
}) => {
|
|
183
171
|
var n;
|
|
184
|
-
const
|
|
172
|
+
const l = new Set(i);
|
|
185
173
|
return (n = e.units) == null ? void 0 : n.find(
|
|
186
|
-
(
|
|
174
|
+
(f) => l.has(f.pricing_item_config_id)
|
|
187
175
|
);
|
|
188
176
|
}, rn = ({
|
|
189
177
|
schedule: e,
|
|
190
178
|
pricingItemConfigIds: i
|
|
191
179
|
}) => {
|
|
192
|
-
var n,
|
|
193
|
-
const
|
|
194
|
-
if (!
|
|
195
|
-
const d = a.set_start_at_to_now || !a.start_at || new Date(a.start_at) <=
|
|
196
|
-
return d &&
|
|
180
|
+
var n, l;
|
|
181
|
+
const f = /* @__PURE__ */ new Date(), g = new Set(i), m = (n = e.seats_values) == null ? void 0 : n.map((a, d) => ({ seatsValue: a, index: d })).filter(({ seatsValue: a }) => {
|
|
182
|
+
if (!g.has(a.pricing_item_config_id)) return !1;
|
|
183
|
+
const d = a.set_start_at_to_now || !a.start_at || new Date(a.start_at) <= f, c = !a.end_at || new Date(a.end_at) > f;
|
|
184
|
+
return d && c;
|
|
197
185
|
});
|
|
198
|
-
return (
|
|
199
|
-
const
|
|
200
|
-
return s !==
|
|
201
|
-
})[0]) == null ? void 0 :
|
|
186
|
+
return (l = m == null ? void 0 : m.sort((a, d) => {
|
|
187
|
+
const c = a.seatsValue.set_start_at_to_now ? f.getTime() : a.seatsValue.start_at ? new Date(a.seatsValue.start_at).getTime() : 0, s = d.seatsValue.set_start_at_to_now ? f.getTime() : d.seatsValue.start_at ? new Date(d.seatsValue.start_at).getTime() : 0;
|
|
188
|
+
return s !== c ? s - c : d.index - a.index;
|
|
189
|
+
})[0]) == null ? void 0 : l.seatsValue;
|
|
202
190
|
}, Ui = (e, i) => {
|
|
203
191
|
var n;
|
|
204
|
-
const
|
|
205
|
-
var
|
|
192
|
+
const l = (a) => a == null ? void 0 : a.map((d) => {
|
|
193
|
+
var c;
|
|
206
194
|
return {
|
|
207
195
|
...d,
|
|
208
|
-
configs: (
|
|
196
|
+
configs: (c = d.configs) == null ? void 0 : c.map(g)
|
|
209
197
|
};
|
|
210
|
-
}),
|
|
211
|
-
var
|
|
198
|
+
}), f = (a) => a == null ? void 0 : a.map((d) => {
|
|
199
|
+
var c;
|
|
212
200
|
return {
|
|
213
201
|
...d,
|
|
214
|
-
configs: (
|
|
215
|
-
billing_period_configs:
|
|
202
|
+
configs: (c = d.configs) == null ? void 0 : c.map(g),
|
|
203
|
+
billing_period_configs: l(
|
|
216
204
|
d.billing_period_configs
|
|
217
205
|
)
|
|
218
206
|
};
|
|
219
|
-
}),
|
|
220
|
-
var d,
|
|
207
|
+
}), g = (a) => {
|
|
208
|
+
var d, c, s;
|
|
221
209
|
const E = (d = i.included_volumes) == null ? void 0 : d.find(
|
|
222
210
|
(_) => _.pricing_item_config_id === a.id
|
|
223
211
|
), p = rn({
|
|
224
212
|
schedule: i,
|
|
225
213
|
pricingItemConfigIds: [a.id]
|
|
226
|
-
}) ?? ((
|
|
214
|
+
}) ?? ((c = i.seats_values) == null ? void 0 : c.find(
|
|
227
215
|
(_) => _.pricing_item_config_id === a.id
|
|
228
216
|
)), r = gt({
|
|
229
217
|
schedule: i,
|
|
@@ -246,14 +234,14 @@ const ot = (e, i = {}) => {
|
|
|
246
234
|
},
|
|
247
235
|
conditions: a.conditions ? {
|
|
248
236
|
...a.conditions,
|
|
249
|
-
configs: (s = a.conditions.configs) == null ? void 0 : s.map(
|
|
237
|
+
configs: (s = a.conditions.configs) == null ? void 0 : s.map(g)
|
|
250
238
|
} : void 0
|
|
251
239
|
};
|
|
252
240
|
};
|
|
253
241
|
return {
|
|
254
242
|
...e,
|
|
255
243
|
entitlements: ((a) => {
|
|
256
|
-
var d,
|
|
244
|
+
var d, c, s;
|
|
257
245
|
const E = (_) => {
|
|
258
246
|
var N;
|
|
259
247
|
return (N = a.products) == null ? void 0 : N.some(
|
|
@@ -262,7 +250,7 @@ const ot = (e, i = {}) => {
|
|
|
262
250
|
return (M = L.features) == null ? void 0 : M.some(($) => $.id === _.feature_id);
|
|
263
251
|
}
|
|
264
252
|
);
|
|
265
|
-
}, p = ((
|
|
253
|
+
}, p = ((c = (d = i.entitlements) == null ? void 0 : d.filter((_) => E(_))) == null ? void 0 : c.reduce((_, N) => {
|
|
266
254
|
var L, M;
|
|
267
255
|
const $ = (M = (L = a.entitlements) == null ? void 0 : L.find(
|
|
268
256
|
(v) => v.feature_id === N.feature_id
|
|
@@ -278,34 +266,34 @@ const ot = (e, i = {}) => {
|
|
|
278
266
|
items: (n = e.items) == null ? void 0 : n.map((a) => ({
|
|
279
267
|
...a,
|
|
280
268
|
...a.configs && {
|
|
281
|
-
configs: a.configs.map(
|
|
269
|
+
configs: a.configs.map(g)
|
|
282
270
|
},
|
|
283
271
|
...a.billing_period_configs && {
|
|
284
|
-
billing_period_configs:
|
|
272
|
+
billing_period_configs: l(
|
|
285
273
|
a.billing_period_configs
|
|
286
274
|
)
|
|
287
275
|
},
|
|
288
276
|
...a.pricing_currency_configs && {
|
|
289
|
-
pricing_currency_configs:
|
|
277
|
+
pricing_currency_configs: f(
|
|
290
278
|
a.pricing_currency_configs
|
|
291
279
|
)
|
|
292
280
|
}
|
|
293
281
|
}))
|
|
294
282
|
};
|
|
295
283
|
}, Fi = (e, i, n = { displayDisabledAddonPricings: !1 }) => {
|
|
296
|
-
var
|
|
297
|
-
const
|
|
284
|
+
var l, f;
|
|
285
|
+
const g = (m) => n.displayDisabledAddonPricings || m.product_type !== "ADDON" || it(i, m);
|
|
298
286
|
return {
|
|
299
287
|
...e,
|
|
300
|
-
pricing_categories: (
|
|
301
|
-
var a, d,
|
|
288
|
+
pricing_categories: (f = (l = e.pricing_categories) == null ? void 0 : l.map((m) => {
|
|
289
|
+
var a, d, c, s;
|
|
302
290
|
return {
|
|
303
|
-
...
|
|
304
|
-
pricing_groups: (d = (a =
|
|
291
|
+
...m,
|
|
292
|
+
pricing_groups: (d = (a = m.pricing_groups) == null ? void 0 : a.map((E) => {
|
|
305
293
|
var p, r;
|
|
306
294
|
return {
|
|
307
295
|
...E,
|
|
308
|
-
pricings: (r = (p = E.pricings) == null ? void 0 : p.filter(
|
|
296
|
+
pricings: (r = (p = E.pricings) == null ? void 0 : p.filter(g)) == null ? void 0 : r.map(
|
|
309
297
|
(_) => Ui(
|
|
310
298
|
_,
|
|
311
299
|
i
|
|
@@ -313,12 +301,12 @@ const ot = (e, i = {}) => {
|
|
|
313
301
|
)
|
|
314
302
|
};
|
|
315
303
|
})) == null ? void 0 : d.filter((E) => !ie(E.pricings)),
|
|
316
|
-
pricings: (s = (
|
|
304
|
+
pricings: (s = (c = m.pricings) == null ? void 0 : c.filter(g)) == null ? void 0 : s.map(
|
|
317
305
|
(E) => Ui(E, i)
|
|
318
306
|
)
|
|
319
307
|
};
|
|
320
|
-
})) == null ? void 0 :
|
|
321
|
-
(
|
|
308
|
+
})) == null ? void 0 : f.filter(
|
|
309
|
+
(m) => n.displayDisabledAddonPricings || !(ie(m.pricing_groups) && ie(m.pricings))
|
|
322
310
|
)
|
|
323
311
|
};
|
|
324
312
|
}, mt = (e) => ["AT_MOST_ONE", "EXACTLY_ONE"].includes(e.selection_constraint), ft = (e) => (i) => {
|
|
@@ -330,8 +318,8 @@ const ot = (e, i = {}) => {
|
|
|
330
318
|
return e.formatNumber(+i.tier_top_bound.count);
|
|
331
319
|
if (Ye(i.tier_top_bound))
|
|
332
320
|
return Ne(i.tier_top_bound.amount);
|
|
333
|
-
}, vt = (e) => (i, n,
|
|
334
|
-
if (
|
|
321
|
+
}, vt = (e) => (i, n, l) => {
|
|
322
|
+
if (l === n.length - 1)
|
|
335
323
|
return e.infinite;
|
|
336
324
|
if (i.tier_top_bound && "number" in i.tier_top_bound && Ie(i.tier_top_bound))
|
|
337
325
|
return e.formatNumber(+i.tier_top_bound.number);
|
|
@@ -340,9 +328,9 @@ const ot = (e, i = {}) => {
|
|
|
340
328
|
if (i.tier_top_bound && "amount" in i.tier_top_bound && Ye(i.tier_top_bound))
|
|
341
329
|
return Ne(i.tier_top_bound.amount);
|
|
342
330
|
}, pt = (e, i) => {
|
|
343
|
-
var n,
|
|
344
|
-
return (
|
|
345
|
-
({ ids:
|
|
331
|
+
var n, l;
|
|
332
|
+
return (l = (n = e.markup) == null ? void 0 : n.pricing_item_configs) == null ? void 0 : l.find(
|
|
333
|
+
({ ids: f }) => f == null ? void 0 : f.includes(i.id)
|
|
346
334
|
);
|
|
347
335
|
}, bt = (e, i) => e.type === i.type && e.value === i.value, Hi = (e, i) => e != null && e.length ? i ? e.filter(
|
|
348
336
|
({ billing_period: n }) => bt(n, i)
|
|
@@ -350,27 +338,27 @@ const ot = (e, i = {}) => {
|
|
|
350
338
|
var n;
|
|
351
339
|
if (!((n = e.pricing_currency_configs) != null && n.length) || !i)
|
|
352
340
|
return;
|
|
353
|
-
const
|
|
354
|
-
if (
|
|
355
|
-
return
|
|
341
|
+
const l = e.pricing_currency_configs.find((f) => f.currency === i) ?? e.pricing_currency_configs[0];
|
|
342
|
+
if (l)
|
|
343
|
+
return l.fallback_currency ? {
|
|
356
344
|
config: e.pricing_currency_configs.find(
|
|
357
|
-
(
|
|
345
|
+
(g) => g.currency === l.fallback_currency
|
|
358
346
|
),
|
|
359
347
|
additionalFields: {
|
|
360
348
|
use_fallback_currency: !0,
|
|
361
|
-
fallback_currency:
|
|
349
|
+
fallback_currency: l.fallback_currency
|
|
362
350
|
}
|
|
363
|
-
} : { config:
|
|
351
|
+
} : { config: l, additionalFields: void 0 };
|
|
364
352
|
}, ht = (e, i) => {
|
|
365
|
-
var n,
|
|
353
|
+
var n, l, f, g;
|
|
366
354
|
if (!((n = e.pricing_currency_configs) != null && n.length))
|
|
367
|
-
return (((
|
|
368
|
-
const
|
|
369
|
-
return (((
|
|
355
|
+
return (((l = e.billing_period_configs) == null ? void 0 : l.length) ?? 0) > 0;
|
|
356
|
+
const m = dn(e, i);
|
|
357
|
+
return (((g = (f = m == null ? void 0 : m.config) == null ? void 0 : f.billing_period_configs) == null ? void 0 : g.length) ?? 0) > 0;
|
|
370
358
|
}, yt = (e, i, n) => {
|
|
371
|
-
var
|
|
372
|
-
const { configs: a, billing_period_configs: d, ...
|
|
373
|
-
if (!((
|
|
359
|
+
var l, f, g, m;
|
|
360
|
+
const { configs: a, billing_period_configs: d, ...c } = e;
|
|
361
|
+
if (!((l = e.pricing_currency_configs) != null && l.length) && ((f = e.billing_period_configs) != null && f.length)) {
|
|
374
362
|
const E = Hi(
|
|
375
363
|
e.billing_period_configs,
|
|
376
364
|
n
|
|
@@ -390,16 +378,16 @@ const ot = (e, i = {}) => {
|
|
|
390
378
|
})
|
|
391
379
|
);
|
|
392
380
|
return {
|
|
393
|
-
...
|
|
381
|
+
...c,
|
|
394
382
|
configs: E
|
|
395
383
|
};
|
|
396
384
|
}
|
|
397
|
-
if (!((
|
|
385
|
+
if (!((g = e.pricing_currency_configs) != null && g.length) || !i)
|
|
398
386
|
return e;
|
|
399
387
|
const s = dn(e, i);
|
|
400
388
|
if (!(s != null && s.config))
|
|
401
389
|
return e;
|
|
402
|
-
if ((
|
|
390
|
+
if ((m = s.config.billing_period_configs) != null && m.length) {
|
|
403
391
|
const E = Hi(
|
|
404
392
|
s.config.billing_period_configs,
|
|
405
393
|
n
|
|
@@ -420,41 +408,41 @@ const ot = (e, i = {}) => {
|
|
|
420
408
|
})
|
|
421
409
|
);
|
|
422
410
|
return {
|
|
423
|
-
...
|
|
411
|
+
...c,
|
|
424
412
|
configs: E
|
|
425
413
|
};
|
|
426
414
|
}
|
|
427
415
|
return {
|
|
428
|
-
...
|
|
416
|
+
...c,
|
|
429
417
|
configs: (s.config.configs ?? []).map((E) => ({
|
|
430
418
|
...E,
|
|
431
419
|
...s.additionalFields
|
|
432
420
|
}))
|
|
433
421
|
};
|
|
434
422
|
}, Gi = (e, i, n) => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
437
|
-
(
|
|
423
|
+
var l;
|
|
424
|
+
return (l = e.items) != null && l.length ? e.items.map(
|
|
425
|
+
(f) => yt(f, i, n)
|
|
438
426
|
) : e.items;
|
|
439
427
|
}, _t = (e, i, n) => {
|
|
440
|
-
var
|
|
428
|
+
var l;
|
|
441
429
|
return {
|
|
442
430
|
...e,
|
|
443
|
-
pricing_categories: (
|
|
444
|
-
var
|
|
431
|
+
pricing_categories: (l = e.pricing_categories) == null ? void 0 : l.map((f) => {
|
|
432
|
+
var g, m;
|
|
445
433
|
return {
|
|
446
|
-
...
|
|
447
|
-
pricings: (
|
|
434
|
+
...f,
|
|
435
|
+
pricings: (g = f.pricings) == null ? void 0 : g.map((a) => ({
|
|
448
436
|
...a,
|
|
449
437
|
items: Gi(a, i, n)
|
|
450
438
|
})),
|
|
451
|
-
pricing_groups: (
|
|
439
|
+
pricing_groups: (m = f.pricing_groups) == null ? void 0 : m.map((a) => {
|
|
452
440
|
var d;
|
|
453
441
|
return {
|
|
454
442
|
...a,
|
|
455
|
-
pricings: (d = a.pricings) == null ? void 0 : d.map((
|
|
456
|
-
...
|
|
457
|
-
items: Gi(
|
|
443
|
+
pricings: (d = a.pricings) == null ? void 0 : d.map((c) => ({
|
|
444
|
+
...c,
|
|
445
|
+
items: Gi(c, i, n)
|
|
458
446
|
}))
|
|
459
447
|
};
|
|
460
448
|
})
|
|
@@ -462,23 +450,23 @@ const ot = (e, i = {}) => {
|
|
|
462
450
|
})
|
|
463
451
|
};
|
|
464
452
|
}, xt = (e, i) => {
|
|
465
|
-
const n = [],
|
|
466
|
-
for (const
|
|
467
|
-
const
|
|
468
|
-
n.push([
|
|
453
|
+
const n = [], l = (f) => {
|
|
454
|
+
for (const g of f ?? []) {
|
|
455
|
+
const m = (g.items ?? []).filter((a) => ht(a, i)).map((a) => a.id);
|
|
456
|
+
n.push([g.id, m]);
|
|
469
457
|
}
|
|
470
458
|
};
|
|
471
|
-
for (const
|
|
472
|
-
|
|
473
|
-
for (const
|
|
474
|
-
|
|
459
|
+
for (const f of e.pricing_categories ?? []) {
|
|
460
|
+
l(f.pricings);
|
|
461
|
+
for (const g of f.pricing_groups ?? [])
|
|
462
|
+
l(g.pricings);
|
|
475
463
|
}
|
|
476
464
|
return Object.fromEntries(n);
|
|
477
465
|
}, $t = (e) => {
|
|
478
466
|
var i;
|
|
479
467
|
for (const n of (e == null ? void 0 : e.pricing_categories) ?? []) {
|
|
480
|
-
for (const
|
|
481
|
-
if (
|
|
468
|
+
for (const l of n.pricing_groups ?? [])
|
|
469
|
+
if (l.pricings[0]) return l.pricings[0].id;
|
|
482
470
|
if ((i = n.pricings) != null && i[0]) return n.pricings[0].id;
|
|
483
471
|
}
|
|
484
472
|
}, kt = (e, i) => {
|
|
@@ -497,13 +485,13 @@ const ot = (e, i = {}) => {
|
|
|
497
485
|
const { entitlements: i, ...n } = e;
|
|
498
486
|
return n;
|
|
499
487
|
}, St = (e) => {
|
|
500
|
-
const { pricings: i, pricing_groups: n, ...
|
|
488
|
+
const { pricings: i, pricing_groups: n, ...l } = e;
|
|
501
489
|
return {
|
|
502
|
-
...
|
|
490
|
+
...l,
|
|
503
491
|
pricings: i == null ? void 0 : i.map(ji),
|
|
504
|
-
pricing_groups: n == null ? void 0 : n.map((
|
|
505
|
-
...
|
|
506
|
-
pricings: (
|
|
492
|
+
pricing_groups: n == null ? void 0 : n.map((f) => ({
|
|
493
|
+
...f,
|
|
494
|
+
pricings: (f.pricings ?? []).map(ji)
|
|
507
495
|
}))
|
|
508
496
|
};
|
|
509
497
|
}, Tt = (e, i) => {
|
|
@@ -525,7 +513,7 @@ const ot = (e, i = {}) => {
|
|
|
525
513
|
spacing: { default: "md" }
|
|
526
514
|
},
|
|
527
515
|
setup(e) {
|
|
528
|
-
return (i, n) => (
|
|
516
|
+
return (i, n) => (t(), u("div", {
|
|
529
517
|
class: H({
|
|
530
518
|
"p-2": e.spacing === "xs",
|
|
531
519
|
"px-4 py-3": e.spacing === "sm",
|
|
@@ -546,26 +534,26 @@ const ot = (e, i = {}) => {
|
|
|
546
534
|
emits: ["add"],
|
|
547
535
|
setup(e) {
|
|
548
536
|
const i = e, n = C(() => i.type === "ordered" ? "ol" : "ul");
|
|
549
|
-
return (
|
|
550
|
-
var
|
|
551
|
-
return
|
|
552
|
-
(
|
|
537
|
+
return (l, f) => {
|
|
538
|
+
var g;
|
|
539
|
+
return t(), u("div", null, [
|
|
540
|
+
(t(), T(wn(n.value), null, {
|
|
553
541
|
default: o(() => [
|
|
554
|
-
k(
|
|
542
|
+
k(l.$slots, "default")
|
|
555
543
|
]),
|
|
556
544
|
_: 3
|
|
557
545
|
})),
|
|
558
546
|
w("div", {
|
|
559
547
|
class: H(["flex flex-col items-center justify-center", B(Fe)])
|
|
560
548
|
}, [
|
|
561
|
-
e.hasAddButton ? (
|
|
549
|
+
e.hasAddButton ? (t(), T(B(De), {
|
|
562
550
|
key: 0,
|
|
563
551
|
square: "",
|
|
564
|
-
"aria-label": ((
|
|
552
|
+
"aria-label": ((g = e.i18n) == null ? void 0 : g.addButtonLabel) ?? "Add item",
|
|
565
553
|
intent: "secondary",
|
|
566
554
|
size: "sm",
|
|
567
555
|
"icon-prefix": "add",
|
|
568
|
-
onClick:
|
|
556
|
+
onClick: f[0] || (f[0] = (m) => l.$emit("add"))
|
|
569
557
|
}, null, 8, ["aria-label"])) : b("", !0)
|
|
570
558
|
], 2)
|
|
571
559
|
]);
|
|
@@ -578,7 +566,7 @@ const ot = (e, i = {}) => {
|
|
|
578
566
|
placement: {}
|
|
579
567
|
},
|
|
580
568
|
setup(e) {
|
|
581
|
-
return (i, n) => (
|
|
569
|
+
return (i, n) => (t(), T(re, {
|
|
582
570
|
offset: 4,
|
|
583
571
|
placement: e.placement
|
|
584
572
|
}, {
|
|
@@ -621,34 +609,34 @@ const ot = (e, i = {}) => {
|
|
|
621
609
|
},
|
|
622
610
|
emits: ["toggle"],
|
|
623
611
|
setup(e, { emit: i }) {
|
|
624
|
-
const n = e,
|
|
612
|
+
const n = e, l = i, f = C(
|
|
625
613
|
() => n.isExpanded ? n.expandedIcon : n.collapsedIcon
|
|
626
614
|
);
|
|
627
|
-
return (
|
|
615
|
+
return (g, m) => e.isCollapsible ? (t(), u("button", {
|
|
628
616
|
key: 0,
|
|
629
617
|
type: "button",
|
|
630
618
|
class: H(["flex cursor-pointer items-center disabled:cursor-not-allowed", e.rootClass]),
|
|
631
619
|
"aria-label": e.ariaLabel,
|
|
632
620
|
"aria-expanded": e.isExpanded,
|
|
633
621
|
disabled: e.disabled,
|
|
634
|
-
onClick:
|
|
622
|
+
onClick: m[0] || (m[0] = (a) => l("toggle"))
|
|
635
623
|
}, [
|
|
636
|
-
e.iconPosition === "before" ? (
|
|
624
|
+
e.iconPosition === "before" ? (t(), T(te, {
|
|
637
625
|
key: 0,
|
|
638
|
-
icon:
|
|
626
|
+
icon: f.value,
|
|
639
627
|
size: e.iconSize
|
|
640
628
|
}, null, 8, ["icon", "size"])) : b("", !0),
|
|
641
|
-
k(
|
|
642
|
-
e.iconPosition === "after" ? (
|
|
629
|
+
k(g.$slots, "default"),
|
|
630
|
+
e.iconPosition === "after" ? (t(), T(te, {
|
|
643
631
|
key: 1,
|
|
644
|
-
icon:
|
|
632
|
+
icon: f.value,
|
|
645
633
|
size: e.iconSize
|
|
646
634
|
}, null, 8, ["icon", "size"])) : b("", !0)
|
|
647
|
-
], 10, Ot)) : (
|
|
635
|
+
], 10, Ot)) : (t(), u("div", {
|
|
648
636
|
key: 1,
|
|
649
637
|
class: H(e.rootClass)
|
|
650
638
|
}, [
|
|
651
|
-
k(
|
|
639
|
+
k(g.$slots, "default")
|
|
652
640
|
], 2));
|
|
653
641
|
}
|
|
654
642
|
}), Xe = /* @__PURE__ */ U({
|
|
@@ -662,30 +650,30 @@ const ot = (e, i = {}) => {
|
|
|
662
650
|
emits: ["toggle"],
|
|
663
651
|
setup(e) {
|
|
664
652
|
const i = Qi(), n = C(() => !!i.default && !Ue(i.default()));
|
|
665
|
-
return (
|
|
653
|
+
return (l, f) => (t(), u("div", null, [
|
|
666
654
|
S(cn, {
|
|
667
655
|
"is-collapsible": e.isCollapsible,
|
|
668
656
|
"is-expanded": e.isExpanded,
|
|
669
657
|
"root-class": "w-full",
|
|
670
|
-
onToggle:
|
|
658
|
+
onToggle: f[0] || (f[0] = (g) => l.$emit("toggle"))
|
|
671
659
|
}, {
|
|
672
660
|
default: o(() => [
|
|
673
661
|
w("div", {
|
|
674
662
|
class: H(["w-full", e.headerClass])
|
|
675
663
|
}, [
|
|
676
|
-
k(
|
|
664
|
+
k(l.$slots, "header")
|
|
677
665
|
], 2)
|
|
678
666
|
]),
|
|
679
667
|
_: 3
|
|
680
668
|
}, 8, ["is-collapsible", "is-expanded"]),
|
|
681
|
-
n.value ? (
|
|
669
|
+
n.value ? (t(), T(_e, {
|
|
682
670
|
key: 0,
|
|
683
671
|
"is-open": !e.isCollapsible || e.isExpanded,
|
|
684
672
|
lazy: "",
|
|
685
673
|
"unmount-on-close": e.unmountOnClose
|
|
686
674
|
}, {
|
|
687
675
|
default: o(() => [
|
|
688
|
-
k(
|
|
676
|
+
k(l.$slots, "default")
|
|
689
677
|
]),
|
|
690
678
|
_: 3
|
|
691
679
|
}, 8, ["is-open", "unmount-on-close"])) : b("", !0)
|
|
@@ -706,7 +694,7 @@ const ot = (e, i = {}) => {
|
|
|
706
694
|
printBehavior: {}
|
|
707
695
|
},
|
|
708
696
|
setup(e) {
|
|
709
|
-
return (i, n) => (
|
|
697
|
+
return (i, n) => (t(), u("div", {
|
|
710
698
|
class: H([
|
|
711
699
|
"flex flex-col",
|
|
712
700
|
B(ke)(
|
|
@@ -720,7 +708,7 @@ const ot = (e, i = {}) => {
|
|
|
720
708
|
)
|
|
721
709
|
])
|
|
722
710
|
}, [
|
|
723
|
-
e.title || i.$slots.title ? (
|
|
711
|
+
e.title || i.$slots.title ? (t(), u("div", {
|
|
724
712
|
key: 0,
|
|
725
713
|
class: H(
|
|
726
714
|
B(ke)(
|
|
@@ -809,26 +797,26 @@ const ot = (e, i = {}) => {
|
|
|
809
797
|
const i = e, n = C(() => {
|
|
810
798
|
var a, d;
|
|
811
799
|
return !!((d = (a = i.pricingItemConfig) == null ? void 0 : a.top_up) != null && d.rollover);
|
|
812
|
-
}),
|
|
800
|
+
}), l = C(() => ({
|
|
813
801
|
intent: "neutral",
|
|
814
802
|
hasChipAfter: n.value
|
|
815
|
-
})),
|
|
803
|
+
})), f = {
|
|
816
804
|
intent: "neutral",
|
|
817
805
|
hasChipBefore: !0
|
|
818
|
-
},
|
|
806
|
+
}, g = C(
|
|
819
807
|
() => {
|
|
820
|
-
var a, d,
|
|
821
|
-
return (
|
|
808
|
+
var a, d, c;
|
|
809
|
+
return (c = (d = (a = i.pricingItemConfig) == null ? void 0 : a.details) == null ? void 0 : d.bands) == null ? void 0 : c.some((s) => s.block_size);
|
|
822
810
|
}
|
|
823
|
-
),
|
|
824
|
-
return (a, d) => (
|
|
825
|
-
e.hasTooltip ? (
|
|
811
|
+
), m = C(() => Pe(i.pricingItemConfig) && g.value ? i.i18n.tieredTooltip.blockSize : Pe(i.pricingItemConfig) && !g.value ? i.i18n.tieredTooltip.nonBlockSize : i.i18n.defaultTooltip);
|
|
812
|
+
return (a, d) => (t(), u("span", Mt, [
|
|
813
|
+
e.hasTooltip ? (t(), T(re, {
|
|
826
814
|
key: 0,
|
|
827
815
|
offset: 4,
|
|
828
816
|
placement: e.placement
|
|
829
817
|
}, {
|
|
830
818
|
default: o(() => [
|
|
831
|
-
S(le, q(Y(
|
|
819
|
+
S(le, q(Y(l.value)), {
|
|
832
820
|
default: o(() => [
|
|
833
821
|
O(h(e.i18n.topUp), 1)
|
|
834
822
|
]),
|
|
@@ -840,7 +828,7 @@ const ot = (e, i = {}) => {
|
|
|
840
828
|
default: o(() => [
|
|
841
829
|
S(he, null, {
|
|
842
830
|
default: o(() => [
|
|
843
|
-
O(h(
|
|
831
|
+
O(h(m.value), 1)
|
|
844
832
|
]),
|
|
845
833
|
_: 1
|
|
846
834
|
})
|
|
@@ -849,20 +837,20 @@ const ot = (e, i = {}) => {
|
|
|
849
837
|
})
|
|
850
838
|
]),
|
|
851
839
|
_: 1
|
|
852
|
-
}, 8, ["placement"])) : (
|
|
840
|
+
}, 8, ["placement"])) : (t(), T(le, q(j({ key: 1 }, l.value)), {
|
|
853
841
|
default: o(() => [
|
|
854
842
|
O(h(e.i18n.topUp), 1)
|
|
855
843
|
]),
|
|
856
844
|
_: 1
|
|
857
845
|
}, 16)),
|
|
858
|
-
n.value ? (
|
|
859
|
-
e.hasTooltip ? (
|
|
846
|
+
n.value ? (t(), u(z, { key: 2 }, [
|
|
847
|
+
e.hasTooltip ? (t(), T(re, {
|
|
860
848
|
key: 0,
|
|
861
849
|
offset: 4,
|
|
862
850
|
placement: e.placement
|
|
863
851
|
}, {
|
|
864
852
|
default: o(() => [
|
|
865
|
-
S(le, q(Y(
|
|
853
|
+
S(le, q(Y(f)), {
|
|
866
854
|
default: o(() => [
|
|
867
855
|
O(h(e.i18n.rollover.title), 1)
|
|
868
856
|
]),
|
|
@@ -883,7 +871,7 @@ const ot = (e, i = {}) => {
|
|
|
883
871
|
})
|
|
884
872
|
]),
|
|
885
873
|
_: 1
|
|
886
|
-
}, 8, ["placement"])) : (
|
|
874
|
+
}, 8, ["placement"])) : (t(), T(le, q(j({ key: 1 }, f)), {
|
|
887
875
|
default: o(() => [
|
|
888
876
|
O(h(e.i18n.rollover.title), 1)
|
|
889
877
|
]),
|
|
@@ -902,11 +890,11 @@ const ot = (e, i = {}) => {
|
|
|
902
890
|
hideDefaultLabel: { type: Boolean }
|
|
903
891
|
},
|
|
904
892
|
setup(e) {
|
|
905
|
-
const i = e, n = C(() => i.i18n ?? Qe),
|
|
906
|
-
var
|
|
907
|
-
return !ie((
|
|
893
|
+
const i = e, n = C(() => i.i18n ?? Qe), l = C(() => {
|
|
894
|
+
var f, g;
|
|
895
|
+
return !ie((g = (f = i.config) == null ? void 0 : f.conditions) == null ? void 0 : g.meter_properties);
|
|
908
896
|
});
|
|
909
|
-
return (
|
|
897
|
+
return (f, g) => (t(), u("div", Rt, [
|
|
910
898
|
w("div", zt, [
|
|
911
899
|
S(Z, {
|
|
912
900
|
class: "line-clamp-1",
|
|
@@ -916,14 +904,14 @@ const ot = (e, i = {}) => {
|
|
|
916
904
|
weight: "semibold"
|
|
917
905
|
}, {
|
|
918
906
|
default: o(() => {
|
|
919
|
-
var
|
|
907
|
+
var m, a, d, c, s, E;
|
|
920
908
|
return [
|
|
921
|
-
(
|
|
922
|
-
(a = e.config.conditions) != null && a.name ? (
|
|
909
|
+
(m = e.config.conditions) != null && m.name || l.value ? (t(), u(z, { key: 0 }, [
|
|
910
|
+
(a = e.config.conditions) != null && a.name ? (t(), u(z, { key: 0 }, [
|
|
923
911
|
O(h((d = e.config.conditions) == null ? void 0 : d.name), 1)
|
|
924
912
|
], 64)) : b("", !0),
|
|
925
|
-
|
|
926
|
-
e.hasTooltip && ((E = e.config.conditions) != null && E.name) ? (
|
|
913
|
+
l.value && ((s = (c = e.config) == null ? void 0 : c.conditions) != null && s.meter_properties) ? (t(), u(z, { key: 1 }, [
|
|
914
|
+
e.hasTooltip && ((E = e.config.conditions) != null && E.name) ? (t(), T(re, {
|
|
927
915
|
key: 0,
|
|
928
916
|
variant: "outline",
|
|
929
917
|
class: "ml-1"
|
|
@@ -958,7 +946,7 @@ const ot = (e, i = {}) => {
|
|
|
958
946
|
})
|
|
959
947
|
]),
|
|
960
948
|
_: 1
|
|
961
|
-
})) : (
|
|
949
|
+
})) : (t(), T(Z, {
|
|
962
950
|
key: 1,
|
|
963
951
|
variant: "body-sm",
|
|
964
952
|
weight: "normal",
|
|
@@ -968,7 +956,7 @@ const ot = (e, i = {}) => {
|
|
|
968
956
|
default: o(() => {
|
|
969
957
|
var p, r, _;
|
|
970
958
|
return [
|
|
971
|
-
(p = e.config.conditions) != null && p.name ? (
|
|
959
|
+
(p = e.config.conditions) != null && p.name ? (t(), u("span", Zt, " - ")) : b("", !0),
|
|
972
960
|
S(Ze, {
|
|
973
961
|
comparators: (_ = (r = e.config) == null ? void 0 : r.conditions) == null ? void 0 : _.meter_properties,
|
|
974
962
|
display: "inline"
|
|
@@ -978,24 +966,24 @@ const ot = (e, i = {}) => {
|
|
|
978
966
|
_: 1
|
|
979
967
|
}))
|
|
980
968
|
], 64)) : b("", !0)
|
|
981
|
-
], 64)) : e.hideDefaultLabel ? b("", !0) : (
|
|
969
|
+
], 64)) : e.hideDefaultLabel ? b("", !0) : (t(), u(z, { key: 1 }, [
|
|
982
970
|
O(h(n.value.defaultPricing), 1)
|
|
983
971
|
], 64))
|
|
984
972
|
];
|
|
985
973
|
}),
|
|
986
974
|
_: 1
|
|
987
975
|
}),
|
|
988
|
-
e.config.volume_group_reference ? (
|
|
976
|
+
e.config.volume_group_reference ? (t(), T(Dt, {
|
|
989
977
|
key: 0,
|
|
990
978
|
i18n: n.value.combinedVolume
|
|
991
979
|
}, null, 8, ["i18n"])) : b("", !0),
|
|
992
|
-
B(qe)(e.config) ? (
|
|
980
|
+
B(qe)(e.config) ? (t(), T(At, {
|
|
993
981
|
key: 1,
|
|
994
982
|
i18n: n.value.topUpChip,
|
|
995
983
|
"pricing-item-config": e.config
|
|
996
984
|
}, null, 8, ["i18n", "pricing-item-config"])) : b("", !0)
|
|
997
985
|
]),
|
|
998
|
-
k(
|
|
986
|
+
k(f.$slots, "override-tooltip")
|
|
999
987
|
]));
|
|
1000
988
|
}
|
|
1001
989
|
}), ii = {
|
|
@@ -1019,8 +1007,8 @@ const ot = (e, i = {}) => {
|
|
|
1019
1007
|
commitmentOnInvoice: (e) => `Commitment on <strong>Invoice</strong> ${e}`,
|
|
1020
1008
|
basedOnMeterValue: "based on meter value"
|
|
1021
1009
|
}, Ut = (e, i = Me, n) => {
|
|
1022
|
-
const { formatDate:
|
|
1023
|
-
() =>
|
|
1010
|
+
const { formatDate: l } = ae(), f = C(() => je(e.value)), g = C(
|
|
1011
|
+
() => f.value.map((p) => {
|
|
1024
1012
|
var r;
|
|
1025
1013
|
return {
|
|
1026
1014
|
pricing: p,
|
|
@@ -1028,10 +1016,10 @@ const ot = (e, i = {}) => {
|
|
|
1028
1016
|
pricingId: p.id
|
|
1029
1017
|
};
|
|
1030
1018
|
})
|
|
1031
|
-
),
|
|
1019
|
+
), m = C(
|
|
1032
1020
|
() => {
|
|
1033
1021
|
var p;
|
|
1034
|
-
return ((p =
|
|
1022
|
+
return ((p = f.value) == null ? void 0 : p.flatMap(
|
|
1035
1023
|
(r) => {
|
|
1036
1024
|
var _;
|
|
1037
1025
|
return ((_ = r.items) == null ? void 0 : _.map((N) => {
|
|
@@ -1053,9 +1041,9 @@ const ot = (e, i = {}) => {
|
|
|
1053
1041
|
switch (p.commitmentLevel) {
|
|
1054
1042
|
case "PRODUCTS": {
|
|
1055
1043
|
const $ = (r = p.ids) == null ? void 0 : r.map(
|
|
1056
|
-
(v) =>
|
|
1044
|
+
(v) => g.value.find((P) => P.pricingId === v)
|
|
1057
1045
|
);
|
|
1058
|
-
return
|
|
1046
|
+
return c(
|
|
1059
1047
|
($ == null ? void 0 : $.map((v) => {
|
|
1060
1048
|
var P;
|
|
1061
1049
|
return (v == null ? void 0 : v.pricing.name) ?? (((P = v == null ? void 0 : v.product) == null ? void 0 : P.name) || "");
|
|
@@ -1066,10 +1054,10 @@ const ot = (e, i = {}) => {
|
|
|
1066
1054
|
const $ = (_ = p.ids) == null ? void 0 : _.map(
|
|
1067
1055
|
(v) => {
|
|
1068
1056
|
var P;
|
|
1069
|
-
return (P =
|
|
1057
|
+
return (P = m.value.find((x) => x.pricingItemId === v)) == null ? void 0 : P.productItem;
|
|
1070
1058
|
}
|
|
1071
1059
|
);
|
|
1072
|
-
return
|
|
1060
|
+
return c(($ == null ? void 0 : $.map((v) => (v == null ? void 0 : v.name) || "")) ?? []);
|
|
1073
1061
|
}
|
|
1074
1062
|
case "PRICING_RULE": {
|
|
1075
1063
|
const $ = (A) => {
|
|
@@ -1084,11 +1072,11 @@ const ot = (e, i = {}) => {
|
|
|
1084
1072
|
}, x = (A) => {
|
|
1085
1073
|
var R;
|
|
1086
1074
|
return (R = A.items) == null ? void 0 : R.some(P);
|
|
1087
|
-
}, V = (N =
|
|
1075
|
+
}, V = (N = f.value) == null ? void 0 : N.find(x), y = (L = V == null ? void 0 : V.items) == null ? void 0 : L.find(P), D = (M = y == null ? void 0 : y.configs) == null ? void 0 : M.flatMap(Le), I = D == null ? void 0 : D.find($);
|
|
1088
1076
|
return `<strong>${We(i)({ pricing: V, item: y, config: I })}</strong>`;
|
|
1089
1077
|
}
|
|
1090
1078
|
}
|
|
1091
|
-
},
|
|
1079
|
+
}, c = (p) => p.reduce((r, _, N) => {
|
|
1092
1080
|
const L = `<strong>${_}</strong>`;
|
|
1093
1081
|
return N === 0 ? L : N === p.length - 1 ? [r, L].join(" and ") : [r, L].join(", ");
|
|
1094
1082
|
}, ""), s = (p) => {
|
|
@@ -1107,7 +1095,7 @@ const ot = (e, i = {}) => {
|
|
|
1107
1095
|
if (!p.start_at && !p.end_at)
|
|
1108
1096
|
return "";
|
|
1109
1097
|
let r, _;
|
|
1110
|
-
return p.start_at || (r = i.startOfSchedule), p.end_at || (_ = i.endOfSchedule), p.start_at && (r =
|
|
1098
|
+
return p.start_at || (r = i.startOfSchedule), p.end_at || (_ = i.endOfSchedule), p.start_at && (r = l(n ? {
|
|
1111
1099
|
date: p.start_at,
|
|
1112
1100
|
format: "date",
|
|
1113
1101
|
offsetType: "offsetted",
|
|
@@ -1117,7 +1105,7 @@ const ot = (e, i = {}) => {
|
|
|
1117
1105
|
format: "date",
|
|
1118
1106
|
offsetType: "local",
|
|
1119
1107
|
showTimezone: !1
|
|
1120
|
-
})), p.end_at && (_ =
|
|
1108
|
+
})), p.end_at && (_ = l(n ? {
|
|
1121
1109
|
date: p.end_at,
|
|
1122
1110
|
format: "date",
|
|
1123
1111
|
offsetType: "offsetted",
|
|
@@ -1134,12 +1122,12 @@ const ot = (e, i = {}) => {
|
|
|
1134
1122
|
const i = Object.entries(e || {});
|
|
1135
1123
|
if (i.length === 0)
|
|
1136
1124
|
return;
|
|
1137
|
-
const [n,
|
|
1125
|
+
const [n, l] = i[0], [f, g, m] = n.split(".");
|
|
1138
1126
|
return {
|
|
1139
|
-
commitmentLevel:
|
|
1140
|
-
index: parseInt(
|
|
1141
|
-
fieldName:
|
|
1142
|
-
message:
|
|
1127
|
+
commitmentLevel: f,
|
|
1128
|
+
index: parseInt(g, 10),
|
|
1129
|
+
fieldName: m,
|
|
1130
|
+
message: l
|
|
1143
1131
|
};
|
|
1144
1132
|
}, Ht = { class: "flex items-center justify-between" }, Gt = { class: "flex items-center gap-2" }, jt = {
|
|
1145
1133
|
key: 0,
|
|
@@ -1155,7 +1143,7 @@ const ot = (e, i = {}) => {
|
|
|
1155
1143
|
},
|
|
1156
1144
|
emits: ["edit", "delete"],
|
|
1157
1145
|
setup(e) {
|
|
1158
|
-
return (i, n) => (
|
|
1146
|
+
return (i, n) => (t(), T(Ve, {
|
|
1159
1147
|
spacing: "none",
|
|
1160
1148
|
"root-class": "p-2 pr-3"
|
|
1161
1149
|
}, {
|
|
@@ -1181,20 +1169,20 @@ const ot = (e, i = {}) => {
|
|
|
1181
1169
|
_: 3
|
|
1182
1170
|
})
|
|
1183
1171
|
]),
|
|
1184
|
-
e.isEditable || e.isRemovable ? (
|
|
1185
|
-
e.isEditable ? (
|
|
1172
|
+
e.isEditable || e.isRemovable ? (t(), u("div", jt, [
|
|
1173
|
+
e.isEditable ? (t(), T(De, {
|
|
1186
1174
|
key: 0,
|
|
1187
1175
|
intent: "subtle",
|
|
1188
1176
|
square: "",
|
|
1189
1177
|
"icon-prefix": "edit",
|
|
1190
|
-
onClick: n[0] || (n[0] = (
|
|
1178
|
+
onClick: n[0] || (n[0] = (l) => i.$emit("edit"))
|
|
1191
1179
|
})) : b("", !0),
|
|
1192
|
-
e.isRemovable ? (
|
|
1180
|
+
e.isRemovable ? (t(), T(De, {
|
|
1193
1181
|
key: 1,
|
|
1194
1182
|
intent: "dangerSecondary",
|
|
1195
1183
|
square: "",
|
|
1196
1184
|
"icon-prefix": "delete",
|
|
1197
|
-
onClick: n[1] || (n[1] = (
|
|
1185
|
+
onClick: n[1] || (n[1] = (l) => i.$emit("delete"))
|
|
1198
1186
|
})) : b("", !0)
|
|
1199
1187
|
])) : b("", !0)
|
|
1200
1188
|
]),
|
|
@@ -1202,7 +1190,7 @@ const ot = (e, i = {}) => {
|
|
|
1202
1190
|
"is-open": !!e.error
|
|
1203
1191
|
}, {
|
|
1204
1192
|
default: o(() => [
|
|
1205
|
-
e.error ? (
|
|
1193
|
+
e.error ? (t(), T(ze, {
|
|
1206
1194
|
key: 0,
|
|
1207
1195
|
type: "danger",
|
|
1208
1196
|
class: "-mb-2 -ml-2 -mr-3 mt-2 rounded-bl-md rounded-br-md rounded-tl-none rounded-tr-none"
|
|
@@ -1235,43 +1223,43 @@ const ot = (e, i = {}) => {
|
|
|
1235
1223
|
},
|
|
1236
1224
|
emits: ["edit", "delete"],
|
|
1237
1225
|
setup(e) {
|
|
1238
|
-
const i = e, n = C(() => i.i18n ?? Me), { getCommitmentBody:
|
|
1226
|
+
const i = e, n = C(() => i.i18n ?? Me), { getCommitmentBody: l, getFormattedDuration: f } = Ut(
|
|
1239
1227
|
C(() => i.pricingPlanVersion),
|
|
1240
1228
|
n.value,
|
|
1241
1229
|
i.timezone
|
|
1242
1230
|
);
|
|
1243
|
-
return (
|
|
1231
|
+
return (g, m) => (t(), T(ni, {
|
|
1244
1232
|
icon: "handshake",
|
|
1245
1233
|
"icon-color": "orange",
|
|
1246
1234
|
"is-editable": e.isEditable,
|
|
1247
1235
|
"is-removable": e.isRemovable,
|
|
1248
1236
|
error: e.error,
|
|
1249
|
-
onEdit:
|
|
1250
|
-
onDelete:
|
|
1237
|
+
onEdit: m[0] || (m[0] = (a) => g.$emit("edit")),
|
|
1238
|
+
onDelete: m[1] || (m[1] = (a) => g.$emit("delete"))
|
|
1251
1239
|
}, {
|
|
1252
1240
|
body: o(() => {
|
|
1253
1241
|
var a;
|
|
1254
1242
|
return [
|
|
1255
1243
|
w("span", qt, [
|
|
1256
|
-
e.commitment.amount ? (
|
|
1244
|
+
e.commitment.amount ? (t(), T(J, {
|
|
1257
1245
|
key: 0,
|
|
1258
1246
|
value: e.commitment.amount,
|
|
1259
1247
|
highlighted: ""
|
|
1260
|
-
}, null, 8, ["value"])) : "meter_value_calculation" in e.commitment && ((a = e.commitment.meter_value_calculation) != null && a.amount) ? (
|
|
1248
|
+
}, null, 8, ["value"])) : "meter_value_calculation" in e.commitment && ((a = e.commitment.meter_value_calculation) != null && a.amount) ? (t(), T(J, {
|
|
1261
1249
|
key: 1,
|
|
1262
1250
|
value: e.commitment.meter_value_calculation.amount,
|
|
1263
1251
|
highlighted: ""
|
|
1264
|
-
}, null, 8, ["value"])) : "meter_value_calculation" in e.commitment && e.commitment.meter_value_calculation && "number" in e.commitment.meter_value_calculation ? (
|
|
1252
|
+
}, null, 8, ["value"])) : "meter_value_calculation" in e.commitment && e.commitment.meter_value_calculation && "number" in e.commitment.meter_value_calculation ? (t(), u("span", Wt, h(e.commitment.meter_value_calculation.number && n.value.units(e.commitment.meter_value_calculation.number)), 1)) : b("", !0)
|
|
1265
1253
|
]),
|
|
1266
|
-
|
|
1267
|
-
e.commitment.commitmentLevel === "INVOICE" ? (
|
|
1254
|
+
m[2] || (m[2] = O(" ", -1)),
|
|
1255
|
+
e.commitment.commitmentLevel === "INVOICE" ? (t(), u("span", {
|
|
1268
1256
|
key: 0,
|
|
1269
|
-
innerHTML: n.value.commitmentOnInvoice(B(
|
|
1270
|
-
}, null, 8, Yt)) : (
|
|
1257
|
+
innerHTML: n.value.commitmentOnInvoice(B(f)(e.commitment))
|
|
1258
|
+
}, null, 8, Yt)) : (t(), u("span", {
|
|
1271
1259
|
key: 1,
|
|
1272
|
-
innerHTML: B(
|
|
1260
|
+
innerHTML: B(l)(e.commitment)
|
|
1273
1261
|
}, null, 8, Kt)),
|
|
1274
|
-
"meter_value_calculation" in e.commitment && e.commitment.meter_value_calculation && "amount" in e.commitment.meter_value_calculation ? (
|
|
1262
|
+
"meter_value_calculation" in e.commitment && e.commitment.meter_value_calculation && "amount" in e.commitment.meter_value_calculation ? (t(), u("span", Jt, h(" ") + "(" + h(n.value.basedOnMeterValue) + ")", 1)) : b("", !0)
|
|
1275
1263
|
];
|
|
1276
1264
|
}),
|
|
1277
1265
|
_: 1
|
|
@@ -1290,8 +1278,8 @@ const ot = (e, i = {}) => {
|
|
|
1290
1278
|
isRemovable: i
|
|
1291
1279
|
}) => ({
|
|
1292
1280
|
isEditableFlag: C(() => typeof e == "function" ? !0 : !!e),
|
|
1293
|
-
isItemEditable: (
|
|
1294
|
-
isItemRemovable: (
|
|
1281
|
+
isItemEditable: (g) => typeof e == "function" ? e(g) : !!e,
|
|
1282
|
+
isItemRemovable: (g) => typeof i == "function" ? i(g) : typeof i == "boolean" ? i : !0
|
|
1295
1283
|
}), Qt = { class: "flex items-center justify-between gap-4" }, el = { class: "flex items-center gap-4" }, il = { class: "flex items-center gap-1" }, nl = { class: "mt-1 text-xs text-secondary" }, tl = { class: "flex items-center justify-between gap-4" }, ll = { class: "flex items-center gap-1" }, ol = { class: "text-xs font-bold uppercase text-secondary" }, al = { class: "mt-1 flex flex-col gap-2" }, li = /* @__PURE__ */ U({
|
|
1296
1284
|
__name: "CommitmentDiscountsSection",
|
|
1297
1285
|
props: {
|
|
@@ -1308,8 +1296,8 @@ const ot = (e, i = {}) => {
|
|
|
1308
1296
|
},
|
|
1309
1297
|
emits: ["add"],
|
|
1310
1298
|
setup(e) {
|
|
1311
|
-
return (i, n) => (
|
|
1312
|
-
e.hasItems ? (
|
|
1299
|
+
return (i, n) => (t(), u("section", null, [
|
|
1300
|
+
e.hasItems ? (t(), u(z, { key: 1 }, [
|
|
1313
1301
|
w("header", tl, [
|
|
1314
1302
|
w("div", ll, [
|
|
1315
1303
|
w("h2", ol, h(e.title), 1),
|
|
@@ -1344,7 +1332,7 @@ const ot = (e, i = {}) => {
|
|
|
1344
1332
|
w("ul", al, [
|
|
1345
1333
|
k(i.$slots, "list-items")
|
|
1346
1334
|
])
|
|
1347
|
-
], 64)) : (
|
|
1335
|
+
], 64)) : (t(), T(Ve, { key: 0 }, {
|
|
1348
1336
|
default: o(() => [
|
|
1349
1337
|
w("div", Qt, [
|
|
1350
1338
|
w("div", el, [
|
|
@@ -1390,14 +1378,14 @@ const ot = (e, i = {}) => {
|
|
|
1390
1378
|
w("p", nl, h(e.description), 1)
|
|
1391
1379
|
])
|
|
1392
1380
|
]),
|
|
1393
|
-
e.isEditable ? (
|
|
1381
|
+
e.isEditable ? (t(), T(re, {
|
|
1394
1382
|
key: 0,
|
|
1395
1383
|
variant: "outline"
|
|
1396
1384
|
}, {
|
|
1397
1385
|
tooltip: o(() => [
|
|
1398
1386
|
S(de, null, {
|
|
1399
1387
|
default: o(() => [
|
|
1400
|
-
e.pricingPlanVersionIsSelected ? e.isEditable ? b("", !0) : (
|
|
1388
|
+
e.pricingPlanVersionIsSelected ? e.isEditable ? b("", !0) : (t(), T(Z, {
|
|
1401
1389
|
key: 1,
|
|
1402
1390
|
color: "secondary",
|
|
1403
1391
|
variant: "body-sm",
|
|
@@ -1407,7 +1395,7 @@ const ot = (e, i = {}) => {
|
|
|
1407
1395
|
O(h(e.notEditableExplanation), 1)
|
|
1408
1396
|
]),
|
|
1409
1397
|
_: 1
|
|
1410
|
-
})) : (
|
|
1398
|
+
})) : (t(), T(Z, {
|
|
1411
1399
|
key: 0,
|
|
1412
1400
|
color: "secondary",
|
|
1413
1401
|
variant: "body-sm",
|
|
@@ -1443,23 +1431,23 @@ const ot = (e, i = {}) => {
|
|
|
1443
1431
|
timezone: {}
|
|
1444
1432
|
},
|
|
1445
1433
|
setup(e) {
|
|
1446
|
-
const i = e, n = C(() => i.i18n ?? ye), { isEditableFlag:
|
|
1434
|
+
const i = e, n = C(() => i.i18n ?? ye), { isEditableFlag: l, isItemEditable: f, isItemRemovable: g } = ti({
|
|
1447
1435
|
isEditable: i.isEditable,
|
|
1448
1436
|
isRemovable: i.isRemovable
|
|
1449
|
-
}),
|
|
1437
|
+
}), m = C(() => {
|
|
1450
1438
|
if ("error" in i)
|
|
1451
1439
|
return Ft(i.error);
|
|
1452
1440
|
}), a = C(() => {
|
|
1453
|
-
var d,
|
|
1441
|
+
var d, c, s, E, p, r, _, N;
|
|
1454
1442
|
return [
|
|
1455
|
-
...((
|
|
1443
|
+
...((c = (d = i.commitment) == null ? void 0 : d.pricing_item_configs) == null ? void 0 : c.map((L, M) => {
|
|
1456
1444
|
var $, v;
|
|
1457
1445
|
return {
|
|
1458
1446
|
item: {
|
|
1459
1447
|
commitmentLevel: "PRICING_RULE",
|
|
1460
1448
|
...L
|
|
1461
1449
|
},
|
|
1462
|
-
error: M === (($ =
|
|
1450
|
+
error: M === (($ = m.value) == null ? void 0 : $.index) && ((v = m.value) == null ? void 0 : v.commitmentLevel) === "pricing_item_configs" ? m.value.message : void 0
|
|
1463
1451
|
};
|
|
1464
1452
|
})) || [],
|
|
1465
1453
|
...((E = (s = i.commitment) == null ? void 0 : s.pricing_items) == null ? void 0 : E.map((L, M) => {
|
|
@@ -1469,7 +1457,7 @@ const ot = (e, i = {}) => {
|
|
|
1469
1457
|
commitmentLevel: "REVENUE_ITEMS",
|
|
1470
1458
|
...L
|
|
1471
1459
|
},
|
|
1472
|
-
error: M === (($ =
|
|
1460
|
+
error: M === (($ = m.value) == null ? void 0 : $.index) && ((v = m.value) == null ? void 0 : v.commitmentLevel) === "pricing_items" ? m.value.message : void 0
|
|
1473
1461
|
};
|
|
1474
1462
|
})) || [],
|
|
1475
1463
|
...((r = (p = i.commitment) == null ? void 0 : p.pricings) == null ? void 0 : r.map((L, M) => {
|
|
@@ -1479,7 +1467,7 @@ const ot = (e, i = {}) => {
|
|
|
1479
1467
|
commitmentLevel: "PRODUCTS",
|
|
1480
1468
|
...L
|
|
1481
1469
|
},
|
|
1482
|
-
error: M === (($ =
|
|
1470
|
+
error: M === (($ = m.value) == null ? void 0 : $.index) && ((v = m.value) == null ? void 0 : v.commitmentLevel) === "pricings" ? m.value.message : void 0
|
|
1483
1471
|
};
|
|
1484
1472
|
})) || [],
|
|
1485
1473
|
...((N = (_ = i.commitment) == null ? void 0 : _.totals) == null ? void 0 : N.map((L, M) => {
|
|
@@ -1489,12 +1477,12 @@ const ot = (e, i = {}) => {
|
|
|
1489
1477
|
commitmentLevel: "INVOICE",
|
|
1490
1478
|
...L
|
|
1491
1479
|
},
|
|
1492
|
-
error: M === (($ =
|
|
1480
|
+
error: M === (($ = m.value) == null ? void 0 : $.index) && ((v = m.value) == null ? void 0 : v.commitmentLevel) === "totals" ? m.value.message : void 0
|
|
1493
1481
|
};
|
|
1494
1482
|
})) || []
|
|
1495
1483
|
];
|
|
1496
1484
|
});
|
|
1497
|
-
return (d,
|
|
1485
|
+
return (d, c) => (t(), T(li, {
|
|
1498
1486
|
title: n.value.title,
|
|
1499
1487
|
"order-of-application-explanation": n.value.orderOfApplicationExplanation,
|
|
1500
1488
|
description: n.value.description,
|
|
@@ -1503,9 +1491,9 @@ const ot = (e, i = {}) => {
|
|
|
1503
1491
|
"add-item-label": n.value.addItemLabel,
|
|
1504
1492
|
"not-editable-explanation": n.value.notEditableExplanation,
|
|
1505
1493
|
"is-creatable": !!e.isCreatable,
|
|
1506
|
-
"is-editable": B(
|
|
1494
|
+
"is-editable": B(l),
|
|
1507
1495
|
"has-items": a.value.length > 0,
|
|
1508
|
-
onAdd:
|
|
1496
|
+
onAdd: c[0] || (c[0] = (s) => d.$emit("add"))
|
|
1509
1497
|
}, {
|
|
1510
1498
|
icon: o(() => [
|
|
1511
1499
|
w("img", {
|
|
@@ -1514,15 +1502,15 @@ const ot = (e, i = {}) => {
|
|
|
1514
1502
|
}, null, 8, rl)
|
|
1515
1503
|
]),
|
|
1516
1504
|
"list-items": o(() => [
|
|
1517
|
-
(
|
|
1505
|
+
(t(!0), u(z, null, Q(a.value, ({ item: s, error: E }) => (t(), u("li", {
|
|
1518
1506
|
key: JSON.stringify(s)
|
|
1519
1507
|
}, [
|
|
1520
1508
|
S(Xt, {
|
|
1521
1509
|
timezone: e.timezone,
|
|
1522
1510
|
commitment: s,
|
|
1523
1511
|
error: E,
|
|
1524
|
-
"is-editable": B(
|
|
1525
|
-
"is-removable": B(
|
|
1512
|
+
"is-editable": B(f)(s),
|
|
1513
|
+
"is-removable": B(g)(s),
|
|
1526
1514
|
"pricing-plan-version": e.pricingPlanVersion,
|
|
1527
1515
|
i18n: n.value,
|
|
1528
1516
|
onEdit: (p) => d.$emit("edit", s),
|
|
@@ -1533,22 +1521,22 @@ const ot = (e, i = {}) => {
|
|
|
1533
1521
|
_: 1
|
|
1534
1522
|
}, 8, ["title", "order-of-application-explanation", "description", "pricing-plan-version-is-selected", "select-pricing-plan-hint", "add-item-label", "not-editable-explanation", "is-creatable", "is-editable", "has-items"]));
|
|
1535
1523
|
}
|
|
1536
|
-
}), cl = (e, i) => !e || !i ? !e == !i : e.operator === i.operator && e.operands.length === i.operands.length && e.operands.every((n,
|
|
1537
|
-
var
|
|
1538
|
-
const
|
|
1539
|
-
return ((
|
|
1524
|
+
}), cl = (e, i) => !e || !i ? !e == !i : e.operator === i.operator && e.operands.length === i.operands.length && e.operands.every((n, l) => {
|
|
1525
|
+
var f, g, m, a, d;
|
|
1526
|
+
const c = (f = i.operands[l]) == null ? void 0 : f.meter_property;
|
|
1527
|
+
return ((g = n.meter_property) == null ? void 0 : g.id) === (c == null ? void 0 : c.id) && ((m = n.meter_property) == null ? void 0 : m.comparator) === (c == null ? void 0 : c.comparator) && ((a = n.meter_property) == null ? void 0 : a.value) === (c == null ? void 0 : c.value) && JSON.stringify((d = n.meter_property) == null ? void 0 : d.values) === JSON.stringify(c == null ? void 0 : c.values);
|
|
1540
1528
|
}), ul = (e, i, n) => {
|
|
1541
|
-
const { formatDate:
|
|
1529
|
+
const { formatDate: l } = ae(), f = C(() => je(e.value)), g = (c) => {
|
|
1542
1530
|
var s, E, p, r, _, N, L, M, $, v;
|
|
1543
1531
|
let P, x;
|
|
1544
|
-
switch (
|
|
1532
|
+
switch (c.discountLevel) {
|
|
1545
1533
|
case "PRODUCT": {
|
|
1546
|
-
P = (s =
|
|
1534
|
+
P = (s = f.value) == null ? void 0 : s.find(
|
|
1547
1535
|
(V) => {
|
|
1548
1536
|
var y, D;
|
|
1549
|
-
return V.id === ((y =
|
|
1537
|
+
return V.id === ((y = c.ids) == null ? void 0 : y[0]) || ((D = V.products) == null ? void 0 : D.some((I) => {
|
|
1550
1538
|
var A;
|
|
1551
|
-
return I.id === ((A =
|
|
1539
|
+
return I.id === ((A = c.ids) == null ? void 0 : A[0]);
|
|
1552
1540
|
}));
|
|
1553
1541
|
}
|
|
1554
1542
|
);
|
|
@@ -1557,14 +1545,14 @@ const ot = (e, i = {}) => {
|
|
|
1557
1545
|
case "REVENUE_ITEM": {
|
|
1558
1546
|
const V = (y) => {
|
|
1559
1547
|
var D, I;
|
|
1560
|
-
return y.id === ((D =
|
|
1548
|
+
return y.id === ((D = c.ids) == null ? void 0 : D[0]) || "product_items" in y && ((I = y.product_items) == null ? void 0 : I.some(
|
|
1561
1549
|
(A) => {
|
|
1562
1550
|
var R;
|
|
1563
|
-
return A.id === ((R =
|
|
1551
|
+
return A.id === ((R = c.ids) == null ? void 0 : R[0]);
|
|
1564
1552
|
}
|
|
1565
1553
|
));
|
|
1566
1554
|
};
|
|
1567
|
-
P = (E =
|
|
1555
|
+
P = (E = f.value) == null ? void 0 : E.find(
|
|
1568
1556
|
(y) => {
|
|
1569
1557
|
var D;
|
|
1570
1558
|
return (D = y.items) == null ? void 0 : D.some(V);
|
|
@@ -1575,25 +1563,25 @@ const ot = (e, i = {}) => {
|
|
|
1575
1563
|
case "PRICING_RULE": {
|
|
1576
1564
|
const V = (G) => {
|
|
1577
1565
|
var K;
|
|
1578
|
-
return
|
|
1566
|
+
return c.meter_property_condition_expression ? cl(
|
|
1579
1567
|
Fn(G),
|
|
1580
|
-
|
|
1581
|
-
) : G.id === ((K =
|
|
1568
|
+
c.meter_property_condition_expression
|
|
1569
|
+
) : G.id === ((K = c.ids) == null ? void 0 : K[0]);
|
|
1582
1570
|
}, y = (G) => {
|
|
1583
1571
|
var K, oe;
|
|
1584
1572
|
return V(G) || !!((oe = (K = G.conditions) == null ? void 0 : K.configs) != null && oe.some(y));
|
|
1585
1573
|
}, D = (G) => {
|
|
1586
1574
|
var K, oe, ee;
|
|
1587
|
-
return
|
|
1575
|
+
return c.meter_property_condition_expression ? ((K = G.product_items) == null ? void 0 : K.some(
|
|
1588
1576
|
(ne) => {
|
|
1589
1577
|
var X;
|
|
1590
|
-
return ne.id === ((X =
|
|
1578
|
+
return ne.id === ((X = c.ids) == null ? void 0 : X[0]);
|
|
1591
1579
|
}
|
|
1592
1580
|
)) && ((oe = G.configs) == null ? void 0 : oe.some(y)) : (ee = G.configs) == null ? void 0 : ee.some(y);
|
|
1593
1581
|
}, I = (G) => {
|
|
1594
1582
|
var K;
|
|
1595
1583
|
return (K = G.items) == null ? void 0 : K.some(D);
|
|
1596
|
-
}, A = (r =
|
|
1584
|
+
}, A = (r = f.value) == null ? void 0 : r.find(I), R = (_ = A == null ? void 0 : A.items) == null ? void 0 : _.find(D), F = (N = R == null ? void 0 : R.configs) == null ? void 0 : N.flatMap(Le), W = F == null ? void 0 : F.find(V);
|
|
1597
1585
|
return `<strong>${We(i)({ pricing: A, item: R, config: W })}</strong>`;
|
|
1598
1586
|
}
|
|
1599
1587
|
}
|
|
@@ -1601,9 +1589,9 @@ const ot = (e, i = {}) => {
|
|
|
1601
1589
|
(P == null ? void 0 : P.name) ?? ((M = (L = P == null ? void 0 : P.products) == null ? void 0 : L[0]) == null ? void 0 : M.name),
|
|
1602
1590
|
(v = ($ = x == null ? void 0 : x.product_items) == null ? void 0 : $[0]) == null ? void 0 : v.name
|
|
1603
1591
|
].filter(Boolean).join(" - ");
|
|
1604
|
-
},
|
|
1592
|
+
}, m = (c) => {
|
|
1605
1593
|
let s;
|
|
1606
|
-
switch (
|
|
1594
|
+
switch (c.discountLevel) {
|
|
1607
1595
|
case "PRODUCT": {
|
|
1608
1596
|
s = i.product;
|
|
1609
1597
|
break;
|
|
@@ -1619,12 +1607,12 @@ const ot = (e, i = {}) => {
|
|
|
1619
1607
|
}
|
|
1620
1608
|
return i.discountBody(
|
|
1621
1609
|
s ?? "",
|
|
1622
|
-
|
|
1623
|
-
d(
|
|
1610
|
+
g(c) ?? "",
|
|
1611
|
+
d(c)
|
|
1624
1612
|
);
|
|
1625
|
-
}, a = (
|
|
1613
|
+
}, a = (c) => {
|
|
1626
1614
|
var s, E;
|
|
1627
|
-
const p =
|
|
1615
|
+
const p = c.condition;
|
|
1628
1616
|
if (!((E = (s = p == null ? void 0 : p.value) == null ? void 0 : s.amount) != null && E.quantity))
|
|
1629
1617
|
return "";
|
|
1630
1618
|
const r = Vn(i)(
|
|
@@ -1636,43 +1624,43 @@ const ot = (e, i = {}) => {
|
|
|
1636
1624
|
{ hasFormatting: !0 }
|
|
1637
1625
|
);
|
|
1638
1626
|
return i.discountCondition(r);
|
|
1639
|
-
}, d = (
|
|
1640
|
-
if (!
|
|
1627
|
+
}, d = (c) => {
|
|
1628
|
+
if (!c.start_at && !c.end_at)
|
|
1641
1629
|
return "";
|
|
1642
1630
|
let s, E;
|
|
1643
|
-
return
|
|
1644
|
-
date:
|
|
1631
|
+
return c.start_at || (s = i.startOfSchedule), c.end_at || (E = i.endOfSchedule), c.start_at && (s = l(n ? {
|
|
1632
|
+
date: c.start_at,
|
|
1645
1633
|
format: "date",
|
|
1646
1634
|
offsetType: "offsetted",
|
|
1647
1635
|
timezone: n
|
|
1648
1636
|
} : {
|
|
1649
|
-
date:
|
|
1637
|
+
date: c.start_at,
|
|
1650
1638
|
format: "date",
|
|
1651
1639
|
offsetType: "local",
|
|
1652
1640
|
showTimezone: !1
|
|
1653
|
-
})),
|
|
1654
|
-
date:
|
|
1641
|
+
})), c.end_at && (E = l(n ? {
|
|
1642
|
+
date: c.end_at,
|
|
1655
1643
|
format: "date",
|
|
1656
1644
|
offsetType: "offsetted",
|
|
1657
1645
|
timezone: n
|
|
1658
1646
|
} : {
|
|
1659
|
-
date:
|
|
1647
|
+
date: c.end_at,
|
|
1660
1648
|
format: "date",
|
|
1661
1649
|
offsetType: "local",
|
|
1662
1650
|
showTimezone: !1
|
|
1663
1651
|
})), `(${s} - ${E})`;
|
|
1664
1652
|
};
|
|
1665
|
-
return { getDiscountBody:
|
|
1653
|
+
return { getDiscountBody: m, getConditionBody: a, getFormattedDuration: d };
|
|
1666
1654
|
}, gl = (e) => {
|
|
1667
1655
|
const i = Object.entries(e || {});
|
|
1668
1656
|
if (i.length === 0)
|
|
1669
1657
|
return;
|
|
1670
|
-
const [n,
|
|
1658
|
+
const [n, l] = i[0], [f, g, m] = n.split(".");
|
|
1671
1659
|
return {
|
|
1672
|
-
discountLevel:
|
|
1673
|
-
index: parseInt(
|
|
1674
|
-
fieldName:
|
|
1675
|
-
message:
|
|
1660
|
+
discountLevel: f,
|
|
1661
|
+
index: parseInt(g, 10),
|
|
1662
|
+
fieldName: m,
|
|
1663
|
+
message: l
|
|
1676
1664
|
};
|
|
1677
1665
|
}, un = {
|
|
1678
1666
|
...ii,
|
|
@@ -1703,21 +1691,21 @@ const ot = (e, i = {}) => {
|
|
|
1703
1691
|
},
|
|
1704
1692
|
emits: ["edit", "delete"],
|
|
1705
1693
|
setup(e, { emit: i }) {
|
|
1706
|
-
const n = e,
|
|
1694
|
+
const n = e, l = i, { $t: f } = ae(), g = C(() => n.i18n ?? un), { getDiscountBody: m, getConditionBody: a, getFormattedDuration: d } = ul(
|
|
1707
1695
|
en(() => n.pricingPlanVersion),
|
|
1708
|
-
|
|
1696
|
+
g.value,
|
|
1709
1697
|
n.timezone
|
|
1710
1698
|
);
|
|
1711
|
-
return (
|
|
1699
|
+
return (c, s) => {
|
|
1712
1700
|
var E, p;
|
|
1713
|
-
return
|
|
1701
|
+
return t(), T(ni, {
|
|
1714
1702
|
icon: "south_east",
|
|
1715
1703
|
"icon-color": "yellow",
|
|
1716
1704
|
"is-editable": e.discount.discountLevel === "INVOICE" && ((E = e.discount.ids) != null && E[0]) ? !1 : e.isEditable,
|
|
1717
1705
|
"is-removable": e.discount.discountLevel === "INVOICE" && ((p = e.discount.ids) != null && p[0]) ? !1 : e.isRemovable,
|
|
1718
1706
|
error: e.error,
|
|
1719
|
-
onEdit: s[0] || (s[0] = (r) =>
|
|
1720
|
-
onDelete: s[1] || (s[1] = (r) =>
|
|
1707
|
+
onEdit: s[0] || (s[0] = (r) => l("edit")),
|
|
1708
|
+
onDelete: s[1] || (s[1] = (r) => l("delete"))
|
|
1721
1709
|
}, {
|
|
1722
1710
|
body: o(() => {
|
|
1723
1711
|
var r;
|
|
@@ -1730,11 +1718,11 @@ const ot = (e, i = {}) => {
|
|
|
1730
1718
|
default: o(() => {
|
|
1731
1719
|
var _;
|
|
1732
1720
|
return [
|
|
1733
|
-
(_ = e.discount.amount) != null && _.quantity ? (
|
|
1721
|
+
(_ = e.discount.amount) != null && _.quantity ? (t(), T(J, {
|
|
1734
1722
|
key: 0,
|
|
1735
1723
|
value: e.discount.amount,
|
|
1736
1724
|
highlighted: ""
|
|
1737
|
-
}, null, 8, ["value"])) : e.discount.percentage ? (
|
|
1725
|
+
}, null, 8, ["value"])) : e.discount.percentage ? (t(), T(Z, {
|
|
1738
1726
|
key: 1,
|
|
1739
1727
|
color: "inherit",
|
|
1740
1728
|
tag: "span",
|
|
@@ -1750,10 +1738,10 @@ const ot = (e, i = {}) => {
|
|
|
1750
1738
|
_: 1
|
|
1751
1739
|
}),
|
|
1752
1740
|
s[3] || (s[3] = O(" ", -1)),
|
|
1753
|
-
e.discount.discountLevel === "INVOICE" ? (
|
|
1741
|
+
e.discount.discountLevel === "INVOICE" ? (t(), u("span", fl, [
|
|
1754
1742
|
S(Z, { tag: "span" }, {
|
|
1755
1743
|
default: o(() => [
|
|
1756
|
-
O(h(B(
|
|
1744
|
+
O(h(B(f)({
|
|
1757
1745
|
defaultMessage: "Discount on",
|
|
1758
1746
|
description: "Discount on",
|
|
1759
1747
|
id: "SubscriptionDiscountItem.discountOn"
|
|
@@ -1766,7 +1754,7 @@ const ot = (e, i = {}) => {
|
|
|
1766
1754
|
weight: "semibold"
|
|
1767
1755
|
}, {
|
|
1768
1756
|
default: o(() => [
|
|
1769
|
-
O(h(B(
|
|
1757
|
+
O(h(B(f)({
|
|
1770
1758
|
defaultMessage: "Invoice",
|
|
1771
1759
|
description: "invoice indicator",
|
|
1772
1760
|
id: "SubscriptionDiscountItem.invoice"
|
|
@@ -1774,10 +1762,10 @@ const ot = (e, i = {}) => {
|
|
|
1774
1762
|
]),
|
|
1775
1763
|
_: 1
|
|
1776
1764
|
}),
|
|
1777
|
-
(r = e.discount.ids) != null && r[0] ? (
|
|
1765
|
+
(r = e.discount.ids) != null && r[0] ? (t(), u(z, { key: 0 }, [
|
|
1778
1766
|
S(Z, { tag: "span" }, {
|
|
1779
1767
|
default: o(() => [
|
|
1780
|
-
O(h(B(
|
|
1768
|
+
O(h(B(f)({
|
|
1781
1769
|
defaultMessage: "applied by",
|
|
1782
1770
|
description: "Subscription discount applied by",
|
|
1783
1771
|
id: "SubscriptionDiscountItem.coupon.applied_by"
|
|
@@ -1798,7 +1786,7 @@ const ot = (e, i = {}) => {
|
|
|
1798
1786
|
_: 1
|
|
1799
1787
|
})
|
|
1800
1788
|
], 64)) : b("", !0),
|
|
1801
|
-
B(d)(e.discount) ? (
|
|
1789
|
+
B(d)(e.discount) ? (t(), T(Z, {
|
|
1802
1790
|
key: 1,
|
|
1803
1791
|
tag: "span"
|
|
1804
1792
|
}, {
|
|
@@ -1807,11 +1795,11 @@ const ot = (e, i = {}) => {
|
|
|
1807
1795
|
]),
|
|
1808
1796
|
_: 1
|
|
1809
1797
|
})) : b("", !0)
|
|
1810
|
-
])) : (
|
|
1798
|
+
])) : (t(), u("span", {
|
|
1811
1799
|
key: 1,
|
|
1812
|
-
innerHTML: B(
|
|
1800
|
+
innerHTML: B(m)(e.discount)
|
|
1813
1801
|
}, null, 8, vl)),
|
|
1814
|
-
e.discount.condition ? (
|
|
1802
|
+
e.discount.condition ? (t(), u(z, { key: 2 }, [
|
|
1815
1803
|
s[2] || (s[2] = O(" ", -1)),
|
|
1816
1804
|
w("span", {
|
|
1817
1805
|
innerHTML: B(a)(e.discount)
|
|
@@ -1850,23 +1838,23 @@ const ot = (e, i = {}) => {
|
|
|
1850
1838
|
},
|
|
1851
1839
|
emits: ["add", "edit", "delete"],
|
|
1852
1840
|
setup(e) {
|
|
1853
|
-
const i = e, n = C(() => i.i18n ?? Se),
|
|
1841
|
+
const i = e, n = C(() => i.i18n ?? Se), l = C(() => {
|
|
1854
1842
|
if ("error" in i)
|
|
1855
1843
|
return gl(i.error);
|
|
1856
|
-
}), { isEditableFlag:
|
|
1844
|
+
}), { isEditableFlag: f, isItemEditable: g, isItemRemovable: m } = ti({
|
|
1857
1845
|
isEditable: i.isEditable,
|
|
1858
1846
|
isRemovable: i.isRemovable
|
|
1859
1847
|
}), a = C(() => {
|
|
1860
|
-
var d,
|
|
1848
|
+
var d, c, s, E, p, r, _, N, L, M, $, v, P, x;
|
|
1861
1849
|
return [
|
|
1862
|
-
...((
|
|
1850
|
+
...((c = (d = i.discount) == null ? void 0 : d.pricing_item_configs) == null ? void 0 : c.map((V, y) => {
|
|
1863
1851
|
var D, I;
|
|
1864
1852
|
return {
|
|
1865
1853
|
item: {
|
|
1866
1854
|
...V,
|
|
1867
1855
|
discountLevel: "PRICING_RULE"
|
|
1868
1856
|
},
|
|
1869
|
-
error: y === ((D =
|
|
1857
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "pricing_item_configs" ? l.value.message : void 0
|
|
1870
1858
|
};
|
|
1871
1859
|
})) || [],
|
|
1872
1860
|
// Rate card equivalent of `pricing_items`.
|
|
@@ -1877,7 +1865,7 @@ const ot = (e, i = {}) => {
|
|
|
1877
1865
|
...V,
|
|
1878
1866
|
discountLevel: "REVENUE_ITEM"
|
|
1879
1867
|
},
|
|
1880
|
-
error: y === ((D =
|
|
1868
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "product_items" ? l.value.message : void 0
|
|
1881
1869
|
};
|
|
1882
1870
|
})) || [],
|
|
1883
1871
|
// Rate card equivalent of `pricing_item_configs`.
|
|
@@ -1888,7 +1876,7 @@ const ot = (e, i = {}) => {
|
|
|
1888
1876
|
...V,
|
|
1889
1877
|
discountLevel: "PRICING_RULE"
|
|
1890
1878
|
},
|
|
1891
|
-
error: y === ((D =
|
|
1879
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "product_item_meter_property_conditions" ? l.value.message : void 0
|
|
1892
1880
|
};
|
|
1893
1881
|
})) || [],
|
|
1894
1882
|
...((N = (_ = i.discount) == null ? void 0 : _.pricing_items) == null ? void 0 : N.map((V, y) => {
|
|
@@ -1898,7 +1886,7 @@ const ot = (e, i = {}) => {
|
|
|
1898
1886
|
...V,
|
|
1899
1887
|
discountLevel: "REVENUE_ITEM"
|
|
1900
1888
|
},
|
|
1901
|
-
error: y === ((D =
|
|
1889
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "pricing_items" ? l.value.message : void 0
|
|
1902
1890
|
};
|
|
1903
1891
|
})) || [],
|
|
1904
1892
|
...((M = (L = i.discount) == null ? void 0 : L.pricings) == null ? void 0 : M.map((V, y) => {
|
|
@@ -1908,7 +1896,7 @@ const ot = (e, i = {}) => {
|
|
|
1908
1896
|
...V,
|
|
1909
1897
|
discountLevel: "PRODUCT"
|
|
1910
1898
|
},
|
|
1911
|
-
error: y === ((D =
|
|
1899
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "pricings" ? l.value.message : void 0
|
|
1912
1900
|
};
|
|
1913
1901
|
})) || [],
|
|
1914
1902
|
// Rate card equivalent of `pricings`.
|
|
@@ -1919,7 +1907,7 @@ const ot = (e, i = {}) => {
|
|
|
1919
1907
|
...V,
|
|
1920
1908
|
discountLevel: "PRODUCT"
|
|
1921
1909
|
},
|
|
1922
|
-
error: y === ((D =
|
|
1910
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "products" ? l.value.message : void 0
|
|
1923
1911
|
};
|
|
1924
1912
|
})) || [],
|
|
1925
1913
|
...((x = (P = i.discount) == null ? void 0 : P.totals) == null ? void 0 : x.map((V, y) => {
|
|
@@ -1929,23 +1917,23 @@ const ot = (e, i = {}) => {
|
|
|
1929
1917
|
...V,
|
|
1930
1918
|
discountLevel: "INVOICE"
|
|
1931
1919
|
},
|
|
1932
|
-
error: y === ((D =
|
|
1920
|
+
error: y === ((D = l.value) == null ? void 0 : D.index) && ((I = l.value) == null ? void 0 : I.discountLevel) === "totals" ? l.value.message : void 0
|
|
1933
1921
|
};
|
|
1934
1922
|
})) || []
|
|
1935
1923
|
];
|
|
1936
1924
|
});
|
|
1937
|
-
return (d,
|
|
1925
|
+
return (d, c) => (t(), T(li, j(d.$attrs, {
|
|
1938
1926
|
title: n.value.title,
|
|
1939
1927
|
"order-of-application-explanation": n.value.orderOfApplicationExplanation,
|
|
1940
1928
|
description: n.value.description,
|
|
1941
1929
|
"pricing-plan-version-is-selected": !!e.pricingPlanVersion,
|
|
1942
1930
|
"select-pricing-plan-hint": n.value.selectPricingPlanHint,
|
|
1943
1931
|
"add-item-label": n.value.addItemLabel,
|
|
1944
|
-
"is-editable": B(
|
|
1932
|
+
"is-editable": B(f),
|
|
1945
1933
|
"is-creatable": !!e.isCreatable,
|
|
1946
1934
|
"not-editable-explanation": n.value.notEditableExplanation,
|
|
1947
1935
|
"has-items": a.value.length > 0,
|
|
1948
|
-
onAdd:
|
|
1936
|
+
onAdd: c[0] || (c[0] = (s) => d.$emit("add"))
|
|
1949
1937
|
}), {
|
|
1950
1938
|
icon: o(() => [
|
|
1951
1939
|
w("img", {
|
|
@@ -1954,14 +1942,14 @@ const ot = (e, i = {}) => {
|
|
|
1954
1942
|
}, null, 8, yl)
|
|
1955
1943
|
]),
|
|
1956
1944
|
"list-items": o(() => [
|
|
1957
|
-
(
|
|
1945
|
+
(t(!0), u(z, null, Q(a.value, ({ item: s, error: E }) => (t(), u("li", {
|
|
1958
1946
|
key: JSON.stringify(s)
|
|
1959
1947
|
}, [
|
|
1960
1948
|
S(bl, {
|
|
1961
1949
|
discount: s,
|
|
1962
1950
|
error: E,
|
|
1963
|
-
"is-editable": B(
|
|
1964
|
-
"is-removable": B(
|
|
1951
|
+
"is-editable": B(g)(s),
|
|
1952
|
+
"is-removable": B(m)(s),
|
|
1965
1953
|
"pricing-plan-version": e.pricingPlanVersion,
|
|
1966
1954
|
i18n: n.value,
|
|
1967
1955
|
timezone: e.timezone,
|
|
@@ -1978,12 +1966,12 @@ const ot = (e, i = {}) => {
|
|
|
1978
1966
|
...ii,
|
|
1979
1967
|
markupBody: (e, i, n) => `Markup on ${e} <strong>${i}</strong> ${n}`
|
|
1980
1968
|
}, xl = (e, i = oi, n) => {
|
|
1981
|
-
const { formatDate:
|
|
1969
|
+
const { formatDate: l } = ae(), f = C(() => je(e.value)), g = (d) => i.markupBody(
|
|
1982
1970
|
i.pricingRule,
|
|
1983
|
-
|
|
1971
|
+
m(d) ?? "",
|
|
1984
1972
|
a(d)
|
|
1985
|
-
),
|
|
1986
|
-
var
|
|
1973
|
+
), m = (d) => {
|
|
1974
|
+
var c, s;
|
|
1987
1975
|
const E = (v) => {
|
|
1988
1976
|
var P;
|
|
1989
1977
|
return v.id === ((P = d.ids) == null ? void 0 : P[0]);
|
|
@@ -1996,13 +1984,13 @@ const ot = (e, i = {}) => {
|
|
|
1996
1984
|
}, _ = (v) => {
|
|
1997
1985
|
var P;
|
|
1998
1986
|
return (P = v.items) == null ? void 0 : P.some(r);
|
|
1999
|
-
}, N = (
|
|
1987
|
+
}, N = (c = f.value) == null ? void 0 : c.find(_), L = (s = N == null ? void 0 : N.items) == null ? void 0 : s.find(r), M = (L == null ? void 0 : L.configs) && (L == null ? void 0 : L.configs.flatMap(Le)), $ = M == null ? void 0 : M.find(E);
|
|
2000
1988
|
return `<strong>${We(i)({ pricing: N, item: L, config: $ })}</strong>`;
|
|
2001
1989
|
}, a = (d) => {
|
|
2002
1990
|
if (!d.start_at && !d.end_at)
|
|
2003
1991
|
return "";
|
|
2004
|
-
let
|
|
2005
|
-
return d.start_at || (
|
|
1992
|
+
let c, s;
|
|
1993
|
+
return d.start_at || (c = i.startOfSchedule), d.end_at || (s = i.endOfSchedule), d.start_at && (c = l(n ? {
|
|
2006
1994
|
date: d.start_at,
|
|
2007
1995
|
format: "date",
|
|
2008
1996
|
offsetType: "offsetted",
|
|
@@ -2012,7 +2000,7 @@ const ot = (e, i = {}) => {
|
|
|
2012
2000
|
format: "date",
|
|
2013
2001
|
offsetType: "local",
|
|
2014
2002
|
showTimezone: !1
|
|
2015
|
-
})), d.end_at && (s =
|
|
2003
|
+
})), d.end_at && (s = l(n ? {
|
|
2016
2004
|
date: d.end_at,
|
|
2017
2005
|
format: "date",
|
|
2018
2006
|
offsetType: "offsetted",
|
|
@@ -2022,19 +2010,19 @@ const ot = (e, i = {}) => {
|
|
|
2022
2010
|
format: "date",
|
|
2023
2011
|
offsetType: "local",
|
|
2024
2012
|
showTimezone: !1
|
|
2025
|
-
})), `(${
|
|
2013
|
+
})), `(${c} - ${s})`;
|
|
2026
2014
|
};
|
|
2027
|
-
return { getMarkupBody:
|
|
2015
|
+
return { getMarkupBody: g, getFormattedDuration: a };
|
|
2028
2016
|
}, $l = (e) => {
|
|
2029
2017
|
const i = Object.entries(e || {});
|
|
2030
2018
|
if (i.length === 0)
|
|
2031
2019
|
return;
|
|
2032
|
-
const [n,
|
|
2020
|
+
const [n, l] = i[0], [f, g, m] = n.split(".");
|
|
2033
2021
|
return {
|
|
2034
|
-
markupLevel:
|
|
2035
|
-
index: parseInt(
|
|
2036
|
-
fieldName:
|
|
2037
|
-
message:
|
|
2022
|
+
markupLevel: f,
|
|
2023
|
+
index: parseInt(g, 10),
|
|
2024
|
+
fieldName: m,
|
|
2025
|
+
message: l
|
|
2038
2026
|
};
|
|
2039
2027
|
}, kl = { class: "font-semibold text-primary-600" }, Pl = ["innerHTML"], Il = /* @__PURE__ */ U({
|
|
2040
2028
|
__name: "SubscriptionMarkupItem",
|
|
@@ -2049,24 +2037,24 @@ const ot = (e, i = {}) => {
|
|
|
2049
2037
|
},
|
|
2050
2038
|
emits: ["edit", "delete"],
|
|
2051
2039
|
setup(e, { emit: i }) {
|
|
2052
|
-
const n = e,
|
|
2040
|
+
const n = e, l = i, f = C(() => n.i18n ?? oi), { getMarkupBody: g } = xl(
|
|
2053
2041
|
en(() => n.pricingPlanVersion),
|
|
2054
|
-
|
|
2042
|
+
f.value,
|
|
2055
2043
|
n.timezone
|
|
2056
2044
|
);
|
|
2057
|
-
return (
|
|
2045
|
+
return (m, a) => (t(), T(ni, {
|
|
2058
2046
|
icon: "north_east",
|
|
2059
2047
|
"icon-color": "teal",
|
|
2060
2048
|
"is-editable": e.isEditable,
|
|
2061
2049
|
"is-removable": e.isRemovable,
|
|
2062
2050
|
error: e.error,
|
|
2063
|
-
onEdit: a[0] || (a[0] = (d) =>
|
|
2064
|
-
onDelete: a[1] || (a[1] = (d) =>
|
|
2051
|
+
onEdit: a[0] || (a[0] = (d) => l("edit")),
|
|
2052
|
+
onDelete: a[1] || (a[1] = (d) => l("delete"))
|
|
2065
2053
|
}, {
|
|
2066
2054
|
body: o(() => [
|
|
2067
2055
|
w("span", kl, h(e.markup.percentage) + "%" + h(" "), 1),
|
|
2068
2056
|
w("span", {
|
|
2069
|
-
innerHTML: B(
|
|
2057
|
+
innerHTML: B(g)(e.markup)
|
|
2070
2058
|
}, null, 8, Pl)
|
|
2071
2059
|
]),
|
|
2072
2060
|
_: 1
|
|
@@ -2094,34 +2082,34 @@ const ot = (e, i = {}) => {
|
|
|
2094
2082
|
},
|
|
2095
2083
|
emits: ["add", "edit", "delete"],
|
|
2096
2084
|
setup(e) {
|
|
2097
|
-
const i = e, n = C(() => i.i18n ?? Te), { isEditableFlag:
|
|
2085
|
+
const i = e, n = C(() => i.i18n ?? Te), { isEditableFlag: l, isItemEditable: f, isItemRemovable: g } = ti({
|
|
2098
2086
|
isEditable: i.isEditable,
|
|
2099
2087
|
isRemovable: i.isRemovable
|
|
2100
|
-
}),
|
|
2088
|
+
}), m = C(() => {
|
|
2101
2089
|
if ("error" in i)
|
|
2102
2090
|
return $l(i.error);
|
|
2103
2091
|
}), a = C(() => {
|
|
2104
|
-
var d,
|
|
2105
|
-
return ((
|
|
2092
|
+
var d, c;
|
|
2093
|
+
return ((c = (d = i.markup) == null ? void 0 : d.pricing_item_configs) == null ? void 0 : c.map((s, E) => {
|
|
2106
2094
|
var p, r;
|
|
2107
2095
|
return {
|
|
2108
2096
|
item: s,
|
|
2109
|
-
error: E === ((p =
|
|
2097
|
+
error: E === ((p = m.value) == null ? void 0 : p.index) && ((r = m.value) == null ? void 0 : r.markupLevel) === "pricing_item_configs" ? m.value.message : void 0
|
|
2110
2098
|
};
|
|
2111
2099
|
})) ?? [];
|
|
2112
2100
|
});
|
|
2113
|
-
return (d,
|
|
2101
|
+
return (d, c) => (t(), T(li, j(d.$attrs, {
|
|
2114
2102
|
title: n.value.title,
|
|
2115
2103
|
"order-of-application-explanation": n.value.orderOfApplicationExplanation,
|
|
2116
2104
|
description: n.value.description,
|
|
2117
2105
|
"pricing-plan-version-is-selected": !!e.pricingPlanVersion,
|
|
2118
2106
|
"select-pricing-plan-hint": n.value.selectPricingPlanHint,
|
|
2119
2107
|
"add-item-label": n.value.addItemLabel,
|
|
2120
|
-
"is-editable": B(
|
|
2108
|
+
"is-editable": B(l),
|
|
2121
2109
|
"is-creatable": !!e.isCreatable,
|
|
2122
2110
|
"not-editable-explanation": n.value.notEditableExplanation,
|
|
2123
2111
|
"has-items": a.value.length > 0,
|
|
2124
|
-
onAdd:
|
|
2112
|
+
onAdd: c[0] || (c[0] = (s) => d.$emit("add"))
|
|
2125
2113
|
}), {
|
|
2126
2114
|
icon: o(() => [
|
|
2127
2115
|
w("img", {
|
|
@@ -2130,14 +2118,14 @@ const ot = (e, i = {}) => {
|
|
|
2130
2118
|
}, null, 8, El)
|
|
2131
2119
|
]),
|
|
2132
2120
|
"list-items": o(() => [
|
|
2133
|
-
(
|
|
2121
|
+
(t(!0), u(z, null, Q(a.value, ({ item: s, error: E }) => (t(), u("li", {
|
|
2134
2122
|
key: JSON.stringify(s)
|
|
2135
2123
|
}, [
|
|
2136
2124
|
S(Il, {
|
|
2137
2125
|
markup: s,
|
|
2138
2126
|
error: E,
|
|
2139
|
-
"is-editable": B(
|
|
2140
|
-
"is-removable": B(
|
|
2127
|
+
"is-editable": B(f)(s),
|
|
2128
|
+
"is-removable": B(g)(s),
|
|
2141
2129
|
"pricing-plan-version": e.pricingPlanVersion,
|
|
2142
2130
|
i18n: n.value,
|
|
2143
2131
|
timezone: e.timezone,
|
|
@@ -2160,8 +2148,8 @@ const ot = (e, i = {}) => {
|
|
|
2160
2148
|
i18n: {}
|
|
2161
2149
|
},
|
|
2162
2150
|
setup(e) {
|
|
2163
|
-
const i = e, n = C(() => i.i18n ?? gn), { formatDate:
|
|
2164
|
-
return (
|
|
2151
|
+
const i = e, n = C(() => i.i18n ?? gn), { formatDate: l } = ae();
|
|
2152
|
+
return (f, g) => (t(), T(le, { intent: "neutral" }, {
|
|
2165
2153
|
default: o(() => [
|
|
2166
2154
|
w("div", Sl, [
|
|
2167
2155
|
S(te, {
|
|
@@ -2169,16 +2157,16 @@ const ot = (e, i = {}) => {
|
|
|
2169
2157
|
size: "xs"
|
|
2170
2158
|
}),
|
|
2171
2159
|
w("span", null, [
|
|
2172
|
-
e.markup.percentage ? (
|
|
2160
|
+
e.markup.percentage ? (t(), u(z, { key: 0 }, [
|
|
2173
2161
|
O(h(n.value.markupPercentage(e.markup.percentage)), 1)
|
|
2174
2162
|
], 64)) : b("", !0),
|
|
2175
|
-
e.markup.start_at || e.markup.end_at ? (
|
|
2176
|
-
O(h(" ") + "(" + h(e.markup.start_at ? B(
|
|
2163
|
+
e.markup.start_at || e.markup.end_at ? (t(), u(z, { key: 1 }, [
|
|
2164
|
+
O(h(" ") + "(" + h(e.markup.start_at ? B(l)({
|
|
2177
2165
|
date: e.markup.start_at,
|
|
2178
2166
|
format: "date",
|
|
2179
2167
|
offsetType: "local",
|
|
2180
2168
|
showTimezone: !1
|
|
2181
|
-
}) : n.value.startOfSchedule) + " - " + h(e.markup.end_at ? B(
|
|
2169
|
+
}) : n.value.startOfSchedule) + " - " + h(e.markup.end_at ? B(l)({
|
|
2182
2170
|
date: e.markup.end_at,
|
|
2183
2171
|
format: "date",
|
|
2184
2172
|
offsetType: "local",
|
|
@@ -2199,21 +2187,21 @@ const ot = (e, i = {}) => {
|
|
|
2199
2187
|
},
|
|
2200
2188
|
setup(e) {
|
|
2201
2189
|
const i = e, n = C(() => {
|
|
2202
|
-
var
|
|
2203
|
-
return !!((
|
|
2204
|
-
}),
|
|
2190
|
+
var g;
|
|
2191
|
+
return !!((g = i.pricingItemConfig.top_up) != null && g.rollover);
|
|
2192
|
+
}), l = C(
|
|
2205
2193
|
() => {
|
|
2206
|
-
var
|
|
2207
|
-
return (
|
|
2194
|
+
var g, m;
|
|
2195
|
+
return (m = (g = i.pricingItemConfig.details) == null ? void 0 : g.bands) == null ? void 0 : m.some((a) => !!a.block_size);
|
|
2208
2196
|
}
|
|
2209
|
-
),
|
|
2210
|
-
return (
|
|
2197
|
+
), f = C(() => Pe(i.pricingItemConfig) && l.value ? n.value ? i.i18n.tiered.blockSize.rolloverDescription : i.i18n.tiered.blockSize.nonRolloverDescription : Pe(i.pricingItemConfig) && !l.value ? n.value ? i.i18n.tiered.nonBlockSize.rolloverDescription : i.i18n.tiered.nonBlockSize.nonRolloverDescription : n.value ? i.i18n.rolloverDescription : i.i18n.nonRolloverDescription);
|
|
2198
|
+
return (g, m) => (t(), T(Z, {
|
|
2211
2199
|
variant: "body-xs",
|
|
2212
2200
|
color: "secondary",
|
|
2213
2201
|
class: "italic"
|
|
2214
2202
|
}, {
|
|
2215
2203
|
default: o(() => [
|
|
2216
|
-
O(h(
|
|
2204
|
+
O(h(f.value), 1)
|
|
2217
2205
|
]),
|
|
2218
2206
|
_: 1
|
|
2219
2207
|
}));
|
|
@@ -2242,7 +2230,7 @@ const ot = (e, i = {}) => {
|
|
|
2242
2230
|
return "border-gray-100";
|
|
2243
2231
|
}
|
|
2244
2232
|
});
|
|
2245
|
-
return (
|
|
2233
|
+
return (l, f) => (t(), u("div", {
|
|
2246
2234
|
class: H(["card-header-print-root flex items-center justify-between gap-3", {
|
|
2247
2235
|
"px-2 pt-2": e.spacing === "xs",
|
|
2248
2236
|
"px-4 pt-2": e.spacing === "sm",
|
|
@@ -2265,22 +2253,22 @@ const ot = (e, i = {}) => {
|
|
|
2265
2253
|
uppercase: e.uppercase
|
|
2266
2254
|
}, {
|
|
2267
2255
|
prefix: o(() => [
|
|
2268
|
-
k(
|
|
2256
|
+
k(l.$slots, "prefix", {}, void 0, !0)
|
|
2269
2257
|
]),
|
|
2270
2258
|
default: o(() => [
|
|
2271
|
-
k(
|
|
2259
|
+
k(l.$slots, "default", {}, void 0, !0)
|
|
2272
2260
|
]),
|
|
2273
2261
|
subTitle: o(() => [
|
|
2274
|
-
k(
|
|
2262
|
+
k(l.$slots, "subTitle", {}, void 0, !0)
|
|
2275
2263
|
]),
|
|
2276
2264
|
suffix: o(() => [
|
|
2277
|
-
k(
|
|
2265
|
+
k(l.$slots, "title-suffix", {}, void 0, !0)
|
|
2278
2266
|
]),
|
|
2279
2267
|
_: 3
|
|
2280
2268
|
}, 8, ["icon", "title", "sub-title", "variant", "size", "uppercase"])
|
|
2281
2269
|
]),
|
|
2282
2270
|
w("div", Dl, [
|
|
2283
|
-
k(
|
|
2271
|
+
k(l.$slots, "right", {}, void 0, !0)
|
|
2284
2272
|
])
|
|
2285
2273
|
], 2));
|
|
2286
2274
|
}
|
|
@@ -2308,18 +2296,18 @@ const ot = (e, i = {}) => {
|
|
|
2308
2296
|
},
|
|
2309
2297
|
emits: ["toggle", "toggled"],
|
|
2310
2298
|
setup(e, { emit: i }) {
|
|
2311
|
-
const n = e,
|
|
2312
|
-
n.isControlled ?
|
|
2299
|
+
const n = e, l = i, [f, g] = Mn(!n.isOpen), m = () => {
|
|
2300
|
+
n.isControlled ? l("toggle") : g();
|
|
2313
2301
|
};
|
|
2314
2302
|
Be(
|
|
2315
|
-
() =>
|
|
2303
|
+
() => f.value,
|
|
2316
2304
|
(s) => {
|
|
2317
|
-
|
|
2305
|
+
l("toggled", s);
|
|
2318
2306
|
}
|
|
2319
2307
|
), Be(
|
|
2320
2308
|
() => n.isOpen,
|
|
2321
2309
|
(s) => {
|
|
2322
|
-
n.isControlled &&
|
|
2310
|
+
n.isControlled && g(!s);
|
|
2323
2311
|
}
|
|
2324
2312
|
);
|
|
2325
2313
|
const a = C(() => {
|
|
@@ -2338,11 +2326,11 @@ const ot = (e, i = {}) => {
|
|
|
2338
2326
|
default:
|
|
2339
2327
|
return "";
|
|
2340
2328
|
}
|
|
2341
|
-
}),
|
|
2342
|
-
return (s, E) => (
|
|
2329
|
+
}), c = C(() => ["ease-in-out duration-200 hover:shadow-md", a.value].join(" "));
|
|
2330
|
+
return (s, E) => (t(), T(Ve, {
|
|
2343
2331
|
spacing: "none",
|
|
2344
2332
|
"wrapper-class": "collapsible-card-print-wrapper",
|
|
2345
|
-
"root-class": B(ke)("collapsible-card-print-root",
|
|
2333
|
+
"root-class": B(ke)("collapsible-card-print-root", c.value),
|
|
2346
2334
|
"border-style": e.borderStyle,
|
|
2347
2335
|
"print-behavior": e.printBehavior
|
|
2348
2336
|
}, {
|
|
@@ -2350,7 +2338,7 @@ const ot = (e, i = {}) => {
|
|
|
2350
2338
|
w("div", {
|
|
2351
2339
|
class: H(B(ke)(e.withLeftAccent ? "flex p-1" : ""))
|
|
2352
2340
|
}, [
|
|
2353
|
-
e.withLeftAccent ? (
|
|
2341
|
+
e.withLeftAccent ? (t(), u("div", {
|
|
2354
2342
|
key: 0,
|
|
2355
2343
|
class: H(["mr-2 w-1 rounded-md", d.value])
|
|
2356
2344
|
}, null, 2)) : b("", !0),
|
|
@@ -2371,8 +2359,8 @@ const ot = (e, i = {}) => {
|
|
|
2371
2359
|
variant: "bordered",
|
|
2372
2360
|
tabindex: "0",
|
|
2373
2361
|
"card-variant": e.variant,
|
|
2374
|
-
onClick: we(
|
|
2375
|
-
onKeyup: Ai(
|
|
2362
|
+
onClick: we(m, ["stop"]),
|
|
2363
|
+
onKeyup: Ai(m, ["enter"])
|
|
2376
2364
|
}, Sn({
|
|
2377
2365
|
prefix: o(() => [
|
|
2378
2366
|
k(s.$slots, "title-prefix", {}, void 0, !0)
|
|
@@ -2389,7 +2377,7 @@ const ot = (e, i = {}) => {
|
|
|
2389
2377
|
name: "right",
|
|
2390
2378
|
fn: o(() => [
|
|
2391
2379
|
w("div", Ll, [
|
|
2392
|
-
s.$slots.right ? (
|
|
2380
|
+
s.$slots.right ? (t(), u("div", {
|
|
2393
2381
|
key: 0,
|
|
2394
2382
|
class: "flex justify-center",
|
|
2395
2383
|
onClick: E[0] || (E[0] = we(() => {
|
|
@@ -2400,7 +2388,7 @@ const ot = (e, i = {}) => {
|
|
|
2400
2388
|
k(s.$slots, "right", {}, void 0, !0)
|
|
2401
2389
|
], 32)) : b("", !0),
|
|
2402
2390
|
S(te, {
|
|
2403
|
-
icon: B(
|
|
2391
|
+
icon: B(f) ? "unfold_more" : "unfold_less",
|
|
2404
2392
|
size: e.headerSize,
|
|
2405
2393
|
class: H({
|
|
2406
2394
|
"text-white": e.variant === "dark",
|
|
@@ -2412,9 +2400,9 @@ const ot = (e, i = {}) => {
|
|
|
2412
2400
|
key: "0"
|
|
2413
2401
|
}
|
|
2414
2402
|
]), 1032, ["title", "icon", "icon-variant", "spacing", "size", "uppercase", "class", "card-variant"]),
|
|
2415
|
-
e.isExpandContentHidden ? b("", !0) : (
|
|
2403
|
+
e.isExpandContentHidden ? b("", !0) : (t(), T(_e, {
|
|
2416
2404
|
key: 0,
|
|
2417
|
-
"is-open": !B(
|
|
2405
|
+
"is-open": !B(f),
|
|
2418
2406
|
lazy: ""
|
|
2419
2407
|
}, {
|
|
2420
2408
|
default: o(() => [
|
|
@@ -2453,17 +2441,17 @@ const ot = (e, i = {}) => {
|
|
|
2453
2441
|
const i = e, n = C(
|
|
2454
2442
|
() => i.isOpen ? "unfold_less" : "unfold_more"
|
|
2455
2443
|
);
|
|
2456
|
-
return (
|
|
2444
|
+
return (l, f) => (t(), u("li", zl, [
|
|
2457
2445
|
w("button", {
|
|
2458
2446
|
type: "button",
|
|
2459
2447
|
class: "flex items-center gap-6",
|
|
2460
2448
|
"aria-label": e.isOpen ? e.i18n.tooltipCollapse : e.i18n.tooltipExpand,
|
|
2461
|
-
onClick:
|
|
2449
|
+
onClick: f[0] || (f[0] = we((g) => l.$emit("toggle"), ["stop"]))
|
|
2462
2450
|
}, [
|
|
2463
2451
|
w("div", {
|
|
2464
2452
|
class: H(["flex h-6 select-none items-center justify-center rounded border bg-white shadow-sm print:hidden", B(Fe)])
|
|
2465
2453
|
}, [
|
|
2466
|
-
k(
|
|
2454
|
+
k(l.$slots, "icon", {}, () => [
|
|
2467
2455
|
S(Z, {
|
|
2468
2456
|
tag: "span",
|
|
2469
2457
|
variant: "body-xs",
|
|
@@ -2478,13 +2466,13 @@ const ot = (e, i = {}) => {
|
|
|
2478
2466
|
], 2),
|
|
2479
2467
|
w("div", Ul, [
|
|
2480
2468
|
w("div", Fl, [
|
|
2481
|
-
k(
|
|
2469
|
+
k(l.$slots, "left", {}, void 0, !0)
|
|
2482
2470
|
]),
|
|
2483
2471
|
w("div", Hl, [
|
|
2484
|
-
|
|
2485
|
-
k(
|
|
2472
|
+
l.$slots.right ? (t(), u("div", Gl, [
|
|
2473
|
+
k(l.$slots, "right", {}, void 0, !0)
|
|
2486
2474
|
])) : b("", !0),
|
|
2487
|
-
e.hideCollapseIcon ? b("", !0) : (
|
|
2475
|
+
e.hideCollapseIcon ? b("", !0) : (t(), T(te, {
|
|
2488
2476
|
key: 1,
|
|
2489
2477
|
icon: n.value,
|
|
2490
2478
|
size: "sm",
|
|
@@ -2510,7 +2498,7 @@ const ot = (e, i = {}) => {
|
|
|
2510
2498
|
}, {
|
|
2511
2499
|
default: o(() => [
|
|
2512
2500
|
w("div", Wl, [
|
|
2513
|
-
k(
|
|
2501
|
+
k(l.$slots, "default", {}, void 0, !0)
|
|
2514
2502
|
])
|
|
2515
2503
|
]),
|
|
2516
2504
|
_: 3
|
|
@@ -2526,17 +2514,17 @@ const ot = (e, i = {}) => {
|
|
|
2526
2514
|
creditTypesById: {}
|
|
2527
2515
|
},
|
|
2528
2516
|
setup(e) {
|
|
2529
|
-
return (i, n) => (
|
|
2517
|
+
return (i, n) => (t(), u("div", Kl, [
|
|
2530
2518
|
w("h4", Jl, [
|
|
2531
|
-
(
|
|
2532
|
-
key:
|
|
2519
|
+
(t(!0), u(z, null, Q(e.item.product_items, (l) => (t(), T(Z, {
|
|
2520
|
+
key: l.id,
|
|
2533
2521
|
tag: "span",
|
|
2534
2522
|
class: "flex flex-wrap items-center gap-3",
|
|
2535
2523
|
variant: "body-sm",
|
|
2536
2524
|
weight: "semibold"
|
|
2537
2525
|
}, {
|
|
2538
2526
|
default: o(() => [
|
|
2539
|
-
O(h(
|
|
2527
|
+
O(h(l.name), 1)
|
|
2540
2528
|
]),
|
|
2541
2529
|
_: 2
|
|
2542
2530
|
}, 1024))), 128))
|
|
@@ -2697,11 +2685,11 @@ const ot = (e, i = {}) => {
|
|
|
2697
2685
|
},
|
|
2698
2686
|
emits: ["expand-toggled"],
|
|
2699
2687
|
setup(e) {
|
|
2700
|
-
const i = e, { formatMessage: n } = ae(),
|
|
2688
|
+
const i = e, { formatMessage: n } = ae(), l = C(() => i.i18n ?? bn), f = C(() => qe(i.config)), g = n({
|
|
2701
2689
|
defaultMessage: "unit",
|
|
2702
2690
|
id: "lWOCGz",
|
|
2703
2691
|
description: "Fallback singular unit label for pricing rule display"
|
|
2704
|
-
}),
|
|
2692
|
+
}), m = n({
|
|
2705
2693
|
defaultMessage: "units",
|
|
2706
2694
|
id: "Vl9vDx",
|
|
2707
2695
|
description: "Fallback plural unit label for pricing rule display"
|
|
@@ -2710,19 +2698,19 @@ const ot = (e, i = {}) => {
|
|
|
2710
2698
|
if ((($ = a.value) == null ? void 0 : $.model_type) === "CREDITS") {
|
|
2711
2699
|
const A = (v = a.value.credits) == null ? void 0 : v.credit_type_id, R = A ? (x = (P = i.creditTypesById) == null ? void 0 : P[A]) == null ? void 0 : x.unit_name : void 0;
|
|
2712
2700
|
return {
|
|
2713
|
-
singular: (R == null ? void 0 : R.singular) ||
|
|
2714
|
-
plural: (R == null ? void 0 : R.plural) ||
|
|
2701
|
+
singular: (R == null ? void 0 : R.singular) || g,
|
|
2702
|
+
plural: (R == null ? void 0 : R.plural) || m
|
|
2715
2703
|
};
|
|
2716
2704
|
}
|
|
2717
2705
|
return {
|
|
2718
|
-
singular: ((y = (V = a.value) == null ? void 0 : V.unit_name) == null ? void 0 : y.singular) ||
|
|
2719
|
-
plural: ((I = (D = a.value) == null ? void 0 : D.unit_name) == null ? void 0 : I.plural) ||
|
|
2706
|
+
singular: ((y = (V = a.value) == null ? void 0 : V.unit_name) == null ? void 0 : y.singular) || g,
|
|
2707
|
+
plural: ((I = (D = a.value) == null ? void 0 : D.unit_name) == null ? void 0 : I.plural) || m
|
|
2720
2708
|
};
|
|
2721
|
-
}),
|
|
2709
|
+
}), c = C(() => {
|
|
2722
2710
|
var $, v, P, x;
|
|
2723
2711
|
return {
|
|
2724
|
-
singular: ((v = ($ = a.value) == null ? void 0 : $.unit_name) == null ? void 0 : v.singular) ||
|
|
2725
|
-
plural: ((x = (P = a.value) == null ? void 0 : P.unit_name) == null ? void 0 : x.plural) ||
|
|
2712
|
+
singular: ((v = ($ = a.value) == null ? void 0 : $.unit_name) == null ? void 0 : v.singular) || g,
|
|
2713
|
+
plural: ((x = (P = a.value) == null ? void 0 : P.unit_name) == null ? void 0 : x.plural) || m
|
|
2726
2714
|
};
|
|
2727
2715
|
}), s = C(
|
|
2728
2716
|
() => {
|
|
@@ -2756,7 +2744,7 @@ const ot = (e, i = {}) => {
|
|
|
2756
2744
|
var $, v, P;
|
|
2757
2745
|
return (($ = a.value) == null ? void 0 : $.model_type) === "ONE_OFF" && ((v = i.config.details) == null ? void 0 : v.pricing_type) === "FLAT" ? Hn((P = i.config.default_units) == null ? void 0 : P.number) : null;
|
|
2758
2746
|
});
|
|
2759
|
-
return ($, v) => (
|
|
2747
|
+
return ($, v) => (t(), T(Xe, {
|
|
2760
2748
|
class: H({ "print:hidden": L.value }),
|
|
2761
2749
|
"is-collapsible": e.isCollapsible,
|
|
2762
2750
|
"is-expanded": e.isExpanded,
|
|
@@ -2766,19 +2754,19 @@ const ot = (e, i = {}) => {
|
|
|
2766
2754
|
header: o(() => {
|
|
2767
2755
|
var P, x, V, y, D, I, A, R, F, W, G, K, oe, ee, ne, X, ce, ai, si, ri, di, ci, ui, gi, mi, fi, vi, pi, bi, hi, yi, _i, xi, $i, ki, Pi, Ii, Ci, Ei, wi, Si, Ti, Bi, Di, Oi, Ni, Li;
|
|
2768
2756
|
return [
|
|
2769
|
-
E.value ? (
|
|
2757
|
+
E.value ? (t(), u("div", Ql, [
|
|
2770
2758
|
w("div", eo, [
|
|
2771
|
-
e.showConfigHeader ? (
|
|
2759
|
+
e.showConfigHeader ? (t(), T(ei, {
|
|
2772
2760
|
key: 0,
|
|
2773
2761
|
config: e.config,
|
|
2774
|
-
i18n:
|
|
2762
|
+
i18n: l.value
|
|
2775
2763
|
}, {
|
|
2776
2764
|
"override-tooltip": o(() => [
|
|
2777
2765
|
k($.$slots, "override-tooltip")
|
|
2778
2766
|
]),
|
|
2779
2767
|
_: 3
|
|
2780
2768
|
}, 8, ["config", "i18n"])) : b("", !0),
|
|
2781
|
-
p.value ? (
|
|
2769
|
+
p.value ? (t(), T(re, {
|
|
2782
2770
|
key: 1,
|
|
2783
2771
|
variant: "outline",
|
|
2784
2772
|
placement: "top"
|
|
@@ -2805,13 +2793,13 @@ const ot = (e, i = {}) => {
|
|
|
2805
2793
|
_: 1
|
|
2806
2794
|
})) : b("", !0)
|
|
2807
2795
|
]),
|
|
2808
|
-
e.config.split_pricing ? (
|
|
2796
|
+
e.config.split_pricing ? (t(), u("div", io, [
|
|
2809
2797
|
S(Z, {
|
|
2810
2798
|
variant: "label",
|
|
2811
2799
|
tag: "span"
|
|
2812
2800
|
}, {
|
|
2813
2801
|
default: o(() => [
|
|
2814
|
-
O(h(
|
|
2802
|
+
O(h(l.value.splitBy), 1)
|
|
2815
2803
|
]),
|
|
2816
2804
|
_: 1
|
|
2817
2805
|
}),
|
|
@@ -2826,61 +2814,61 @@ const ot = (e, i = {}) => {
|
|
|
2826
2814
|
})
|
|
2827
2815
|
])) : b("", !0)
|
|
2828
2816
|
])) : b("", !0),
|
|
2829
|
-
((P = e.config.details) == null ? void 0 : P.pricing_type) === "NONE" || ((x = e.config.details) == null ? void 0 : x.pricing_type) === "PASS_THROUGH" ? (
|
|
2830
|
-
((V = e.config.details) == null ? void 0 : V.pricing_type) === "NONE" ? (
|
|
2831
|
-
((y = e.config.details) == null ? void 0 : y.pricing_type) === "PASS_THROUGH" ? (
|
|
2832
|
-
], 64)) : (
|
|
2833
|
-
a.value ? (
|
|
2834
|
-
a.value.model_type === "USAGE_BASED" || a.value.model_type === "CREDITS" ? (
|
|
2817
|
+
((P = e.config.details) == null ? void 0 : P.pricing_type) === "NONE" || ((x = e.config.details) == null ? void 0 : x.pricing_type) === "PASS_THROUGH" ? (t(), u(z, { key: 1 }, [
|
|
2818
|
+
((V = e.config.details) == null ? void 0 : V.pricing_type) === "NONE" ? (t(), u("div", no, h(l.value.notBilled), 1)) : b("", !0),
|
|
2819
|
+
((y = e.config.details) == null ? void 0 : y.pricing_type) === "PASS_THROUGH" ? (t(), u("div", to, h(l.value.passThrough), 1)) : b("", !0)
|
|
2820
|
+
], 64)) : (t(), u(z, { key: 2 }, [
|
|
2821
|
+
a.value ? (t(), u(z, { key: 0 }, [
|
|
2822
|
+
a.value.model_type === "USAGE_BASED" || a.value.model_type === "CREDITS" ? (t(), u("div", lo, [
|
|
2835
2823
|
w("div", null, [
|
|
2836
2824
|
w("div", oo, [
|
|
2837
|
-
(D = e.config.details) != null && D.bands && ((I = e.config.details) != null && I.bands[0].amount) ? (
|
|
2825
|
+
(D = e.config.details) != null && D.bands && ((I = e.config.details) != null && I.bands[0].amount) ? (t(), u(z, { key: 0 }, [
|
|
2838
2826
|
w("span", ao, [
|
|
2839
2827
|
S(J, {
|
|
2840
2828
|
value: (A = e.config.details) == null ? void 0 : A.bands[0].amount,
|
|
2841
2829
|
highlighted: ""
|
|
2842
2830
|
}, null, 8, ["value"])
|
|
2843
2831
|
]),
|
|
2844
|
-
w("span", so, h(
|
|
2832
|
+
w("span", so, h(l.value.perNumberOfUnits(
|
|
2845
2833
|
(F = (R = e.config.details) == null ? void 0 : R.bands[0]) != null && F.block_size && B(Ie)(
|
|
2846
2834
|
(W = e.config.details) == null ? void 0 : W.bands[0].block_size
|
|
2847
2835
|
) ? (G = e.config.details) == null ? void 0 : G.bands[0].block_size.number : "1",
|
|
2848
2836
|
d.value
|
|
2849
2837
|
)), 1),
|
|
2850
|
-
(K = e.config.details) != null && K.pricing_period ? (
|
|
2851
|
-
], 64)) : (ee = e.config.details) != null && ee.bands && ((ne = e.config.details) != null && ne.bands[0].fixed_amount) ? (
|
|
2838
|
+
(K = e.config.details) != null && K.pricing_period ? (t(), u("span", ro, h(l.value.formatBillingPeriod((oe = e.config.details) == null ? void 0 : oe.pricing_period)), 1)) : b("", !0)
|
|
2839
|
+
], 64)) : (ee = e.config.details) != null && ee.bands && ((ne = e.config.details) != null && ne.bands[0].fixed_amount) ? (t(), u(z, { key: 1 }, [
|
|
2852
2840
|
w("span", co, [
|
|
2853
2841
|
S(J, {
|
|
2854
2842
|
value: (X = e.config.details) == null ? void 0 : X.bands[0].fixed_amount,
|
|
2855
2843
|
highlighted: ""
|
|
2856
2844
|
}, null, 8, ["value"])
|
|
2857
2845
|
]),
|
|
2858
|
-
(ce = e.config.details) != null && ce.pricing_period ? (
|
|
2859
|
-
], 64)) : (si = e.config.details) != null && si.bands && ((di = (ri = e.config.details) == null ? void 0 : ri.bands[0].credits) != null && di.quantity) && ((ui = (ci = e.config.details) == null ? void 0 : ci.bands[0].credits) != null && ui.credit_type_id) ? (
|
|
2846
|
+
(ce = e.config.details) != null && ce.pricing_period ? (t(), u("span", uo, h(l.value.formatBillingPeriod((ai = e.config.details) == null ? void 0 : ai.pricing_period)), 1)) : b("", !0)
|
|
2847
|
+
], 64)) : (si = e.config.details) != null && si.bands && ((di = (ri = e.config.details) == null ? void 0 : ri.bands[0].credits) != null && di.quantity) && ((ui = (ci = e.config.details) == null ? void 0 : ci.bands[0].credits) != null && ui.credit_type_id) ? (t(), u(z, { key: 2 }, [
|
|
2860
2848
|
w("span", go, h(N.value), 1),
|
|
2861
|
-
w("span", mo, h(
|
|
2849
|
+
w("span", mo, h(l.value.perNumberOfUnits(
|
|
2862
2850
|
(mi = (gi = e.config.details) == null ? void 0 : gi.bands[0]) != null && mi.block_size && B(Ie)(
|
|
2863
2851
|
(fi = e.config.details) == null ? void 0 : fi.bands[0].block_size
|
|
2864
2852
|
) ? (vi = e.config.details) == null ? void 0 : vi.bands[0].block_size.number : "1",
|
|
2865
|
-
|
|
2853
|
+
c.value
|
|
2866
2854
|
)), 1),
|
|
2867
|
-
(pi = e.config.details) != null && pi.pricing_period ? (
|
|
2868
|
-
], 64)) : (hi = e.config.details) != null && hi.bands && typeof ((yi = e.config.details) == null ? void 0 : yi.bands[0].percentage) == "string" ? (
|
|
2855
|
+
(pi = e.config.details) != null && pi.pricing_period ? (t(), u("span", fo, h(l.value.formatBillingPeriod((bi = e.config.details) == null ? void 0 : bi.pricing_period)), 1)) : b("", !0)
|
|
2856
|
+
], 64)) : (hi = e.config.details) != null && hi.bands && typeof ((yi = e.config.details) == null ? void 0 : yi.bands[0].percentage) == "string" ? (t(), u(z, { key: 3 }, [
|
|
2869
2857
|
w("span", vo, h((_i = e.config.details) == null ? void 0 : _i.bands[0].percentage) + "% ", 1),
|
|
2870
|
-
w("span", po, h(
|
|
2871
|
-
($i = e.config.details) != null && $i.pricing_period ? (
|
|
2872
|
-
(Pi = e.config.details) != null && Pi.bands[0].minimum_amount || (Ii = e.config.details) != null && Ii.bands[0].maximum_amount ? (
|
|
2873
|
-
(Ci = e.config.details) != null && Ci.bands[0].minimum_amount ? (
|
|
2874
|
-
O(h(
|
|
2858
|
+
w("span", po, h(l.value.ofAmount((xi = a.value.unit_name) == null ? void 0 : xi.singular)), 1),
|
|
2859
|
+
($i = e.config.details) != null && $i.pricing_period ? (t(), u("span", bo, h(l.value.formatBillingPeriod((ki = e.config.details) == null ? void 0 : ki.pricing_period)), 1)) : b("", !0),
|
|
2860
|
+
(Pi = e.config.details) != null && Pi.bands[0].minimum_amount || (Ii = e.config.details) != null && Ii.bands[0].maximum_amount ? (t(), u("span", ho, " , " + h(l.value.with), 1)) : b("", !0),
|
|
2861
|
+
(Ci = e.config.details) != null && Ci.bands[0].minimum_amount ? (t(), u(z, { key: 2 }, [
|
|
2862
|
+
O(h(l.value.aMinimumOf) + " ", 1),
|
|
2875
2863
|
S(J, {
|
|
2876
2864
|
value: (Ei = e.config.details) == null ? void 0 : Ei.bands[0].minimum_amount,
|
|
2877
2865
|
highlighted: "",
|
|
2878
2866
|
class: "mx-1"
|
|
2879
2867
|
}, null, 8, ["value"])
|
|
2880
2868
|
], 64)) : b("", !0),
|
|
2881
|
-
(wi = e.config.details) != null && wi.bands[0].minimum_amount && ((Si = e.config.details) != null && Si.bands[0].maximum_amount) ? (
|
|
2882
|
-
(Ti = e.config.details) != null && Ti.bands[0].maximum_amount ? (
|
|
2883
|
-
O(h(
|
|
2869
|
+
(wi = e.config.details) != null && wi.bands[0].minimum_amount && ((Si = e.config.details) != null && Si.bands[0].maximum_amount) ? (t(), u("span", yo, h(l.value.and), 1)) : b("", !0),
|
|
2870
|
+
(Ti = e.config.details) != null && Ti.bands[0].maximum_amount ? (t(), u(z, { key: 4 }, [
|
|
2871
|
+
O(h(l.value.aMaximumOf) + " ", 1),
|
|
2884
2872
|
S(J, {
|
|
2885
2873
|
value: (Bi = e.config.details) == null ? void 0 : Bi.bands[0].maximum_amount,
|
|
2886
2874
|
highlighted: "",
|
|
@@ -2894,8 +2882,8 @@ const ot = (e, i = {}) => {
|
|
|
2894
2882
|
k($.$slots, "included")
|
|
2895
2883
|
])
|
|
2896
2884
|
])) : b("", !0),
|
|
2897
|
-
e.isCombinedPricing ? b("", !0) : (
|
|
2898
|
-
a.value.model_type === "RECURRING" ? (
|
|
2885
|
+
e.isCombinedPricing ? b("", !0) : (t(), u(z, { key: 1 }, [
|
|
2886
|
+
a.value.model_type === "RECURRING" ? (t(), u("div", _o, [
|
|
2899
2887
|
w("div", null, [
|
|
2900
2888
|
S(Z, {
|
|
2901
2889
|
tag: "div",
|
|
@@ -2905,30 +2893,30 @@ const ot = (e, i = {}) => {
|
|
|
2905
2893
|
default: o(() => {
|
|
2906
2894
|
var ue, ge, me, fe, ve, pe, xe, Vi, Mi;
|
|
2907
2895
|
return [
|
|
2908
|
-
(ue = e.config.details) != null && ue.bands && ((ge = e.config.details) != null && ge.bands[0].amount) ? (
|
|
2896
|
+
(ue = e.config.details) != null && ue.bands && ((ge = e.config.details) != null && ge.bands[0].amount) ? (t(), T(J, {
|
|
2909
2897
|
key: 0,
|
|
2910
2898
|
value: (me = e.config.details) == null ? void 0 : me.bands[0].amount,
|
|
2911
2899
|
highlighted: ""
|
|
2912
|
-
}, null, 8, ["value"])) : (fe = e.config.details) != null && fe.bands && ((ve = e.config.details) != null && ve.bands[0].fixed_amount) ? (
|
|
2900
|
+
}, null, 8, ["value"])) : (fe = e.config.details) != null && fe.bands && ((ve = e.config.details) != null && ve.bands[0].fixed_amount) ? (t(), T(J, {
|
|
2913
2901
|
key: 1,
|
|
2914
2902
|
value: (pe = e.config.details) == null ? void 0 : pe.bands[0].fixed_amount,
|
|
2915
2903
|
highlighted: ""
|
|
2916
2904
|
}, null, 8, ["value"])) : b("", !0),
|
|
2917
|
-
(Vi = (xe = e.config.details) == null ? void 0 : xe.pricing_period) != null && Vi.type ? (
|
|
2918
|
-
e.config.billing_in_advance ? (
|
|
2905
|
+
(Vi = (xe = e.config.details) == null ? void 0 : xe.pricing_period) != null && Vi.type ? (t(), u("div", xo, h(l.value.formatBillingPeriod((Mi = e.config.details) == null ? void 0 : Mi.pricing_period)), 1)) : (t(), u("div", $o, "per billing period")),
|
|
2906
|
+
e.config.billing_in_advance ? (t(), u("span", ko, " (" + h(l.value.billedInAdvance) + ") ", 1)) : b("", !0)
|
|
2919
2907
|
];
|
|
2920
2908
|
}),
|
|
2921
2909
|
_: 1
|
|
2922
2910
|
}),
|
|
2923
|
-
(Oi = (Di = e.config.details) == null ? void 0 : Di.billing_period) != null && Oi.type ? (
|
|
2911
|
+
(Oi = (Di = e.config.details) == null ? void 0 : Di.billing_period) != null && Oi.type ? (t(), T(Z, {
|
|
2924
2912
|
key: 0,
|
|
2925
2913
|
tag: "div",
|
|
2926
2914
|
variant: "body-sm",
|
|
2927
2915
|
class: "text-right"
|
|
2928
2916
|
}, {
|
|
2929
2917
|
default: o(() => [
|
|
2930
|
-
O(h(
|
|
2931
|
-
w("span", Po, h(
|
|
2918
|
+
O(h(l.value.billedEvery) + " ", 1),
|
|
2919
|
+
w("span", Po, h(l.value.formatBillingPeriod(
|
|
2932
2920
|
e.config.details.billing_period,
|
|
2933
2921
|
{
|
|
2934
2922
|
prefix: !1
|
|
@@ -2940,7 +2928,7 @@ const ot = (e, i = {}) => {
|
|
|
2940
2928
|
]),
|
|
2941
2929
|
k($.$slots, "included")
|
|
2942
2930
|
])) : b("", !0),
|
|
2943
|
-
a.value.model_type === "ONE_OFF" ? (
|
|
2931
|
+
a.value.model_type === "ONE_OFF" ? (t(), u("div", Io, [
|
|
2944
2932
|
w("div", null, [
|
|
2945
2933
|
S(Z, {
|
|
2946
2934
|
tag: "div",
|
|
@@ -2950,25 +2938,25 @@ const ot = (e, i = {}) => {
|
|
|
2950
2938
|
default: o(() => {
|
|
2951
2939
|
var ue, ge, me, fe, ve, pe, xe;
|
|
2952
2940
|
return [
|
|
2953
|
-
(ue = e.config.details) != null && ue.bands && ((ge = e.config.details) != null && ge.bands[0].amount) ? (
|
|
2941
|
+
(ue = e.config.details) != null && ue.bands && ((ge = e.config.details) != null && ge.bands[0].amount) ? (t(), T(J, {
|
|
2954
2942
|
key: 0,
|
|
2955
2943
|
value: (me = e.config.details) == null ? void 0 : me.bands[0].amount,
|
|
2956
2944
|
highlighted: ""
|
|
2957
|
-
}, null, 8, ["value"])) : (fe = e.config.details) != null && fe.bands && ((ve = e.config.details) != null && ve.bands[0].fixed_amount) ? (
|
|
2945
|
+
}, null, 8, ["value"])) : (fe = e.config.details) != null && fe.bands && ((ve = e.config.details) != null && ve.bands[0].fixed_amount) ? (t(), T(J, {
|
|
2958
2946
|
key: 1,
|
|
2959
2947
|
value: (pe = e.config.details) == null ? void 0 : pe.bands[0].fixed_amount,
|
|
2960
2948
|
highlighted: ""
|
|
2961
2949
|
}, null, 8, ["value"])) : b("", !0),
|
|
2962
2950
|
w("div", Co, [
|
|
2963
|
-
O(h(
|
|
2964
|
-
((xe = e.config.details) == null ? void 0 : xe.pricing_type) === "FLAT" ? (
|
|
2965
|
-
e.config.billing_in_advance ? (
|
|
2951
|
+
O(h(l.value.oneOff) + " ", 1),
|
|
2952
|
+
((xe = e.config.details) == null ? void 0 : xe.pricing_type) === "FLAT" ? (t(), u("span", Eo, h(l.value.perUnit), 1)) : b("", !0),
|
|
2953
|
+
e.config.billing_in_advance ? (t(), u("span", wo, " (" + h(l.value.billedInAdvance) + ") ", 1)) : b("", !0)
|
|
2966
2954
|
])
|
|
2967
2955
|
];
|
|
2968
2956
|
}),
|
|
2969
2957
|
_: 1
|
|
2970
2958
|
}),
|
|
2971
|
-
e.showDefaultValues && M.value !== null ? (
|
|
2959
|
+
e.showDefaultValues && M.value !== null ? (t(), T(Z, {
|
|
2972
2960
|
key: 0,
|
|
2973
2961
|
tag: "div",
|
|
2974
2962
|
variant: "body-sm",
|
|
@@ -2976,7 +2964,7 @@ const ot = (e, i = {}) => {
|
|
|
2976
2964
|
class: "text-right"
|
|
2977
2965
|
}, {
|
|
2978
2966
|
default: o(() => [
|
|
2979
|
-
O(h(
|
|
2967
|
+
O(h(l.value.withDefault) + " ", 1),
|
|
2980
2968
|
w("span", So, h(M.value), 1),
|
|
2981
2969
|
O(" " + h(M.value === 1 ? d.value.singular : d.value.plural), 1)
|
|
2982
2970
|
]),
|
|
@@ -2985,7 +2973,7 @@ const ot = (e, i = {}) => {
|
|
|
2985
2973
|
]),
|
|
2986
2974
|
k($.$slots, "included")
|
|
2987
2975
|
])) : b("", !0),
|
|
2988
|
-
a.value.model_type === "PER_SEAT" ? (
|
|
2976
|
+
a.value.model_type === "PER_SEAT" ? (t(), u("div", To, [
|
|
2989
2977
|
w("div", null, [
|
|
2990
2978
|
S(Z, {
|
|
2991
2979
|
tag: "div",
|
|
@@ -2995,27 +2983,27 @@ const ot = (e, i = {}) => {
|
|
|
2995
2983
|
default: o(() => {
|
|
2996
2984
|
var ue, ge, me, fe, ve, pe;
|
|
2997
2985
|
return [
|
|
2998
|
-
(ue = e.config.details) != null && ue.bands && ((ge = e.config.details) != null && ge.bands[0].amount) ? (
|
|
2986
|
+
(ue = e.config.details) != null && ue.bands && ((ge = e.config.details) != null && ge.bands[0].amount) ? (t(), T(J, {
|
|
2999
2987
|
key: 0,
|
|
3000
2988
|
value: (me = e.config.details) == null ? void 0 : me.bands[0].amount,
|
|
3001
2989
|
highlighted: ""
|
|
3002
2990
|
}, null, 8, ["value"])) : b("", !0),
|
|
3003
|
-
w("span", Bo, h(
|
|
3004
|
-
(ve = (fe = e.config.details) == null ? void 0 : fe.pricing_period) != null && ve.type ? (
|
|
3005
|
-
e.config.billing_in_advance ? (
|
|
2991
|
+
w("span", Bo, h(l.value.perSeat), 1),
|
|
2992
|
+
(ve = (fe = e.config.details) == null ? void 0 : fe.pricing_period) != null && ve.type ? (t(), u("div", Do, h(l.value.formatBillingPeriod((pe = e.config.details) == null ? void 0 : pe.pricing_period)), 1)) : b("", !0),
|
|
2993
|
+
e.config.billing_in_advance ? (t(), u("span", Oo, " (" + h(l.value.billedInAdvance) + ") ", 1)) : b("", !0)
|
|
3006
2994
|
];
|
|
3007
2995
|
}),
|
|
3008
2996
|
_: 1
|
|
3009
2997
|
}),
|
|
3010
|
-
(Li = (Ni = e.config.details) == null ? void 0 : Ni.billing_period) != null && Li.type ? (
|
|
2998
|
+
(Li = (Ni = e.config.details) == null ? void 0 : Ni.billing_period) != null && Li.type ? (t(), T(Z, {
|
|
3011
2999
|
key: 0,
|
|
3012
3000
|
tag: "div",
|
|
3013
3001
|
variant: "body-sm",
|
|
3014
3002
|
class: "text-right"
|
|
3015
3003
|
}, {
|
|
3016
3004
|
default: o(() => [
|
|
3017
|
-
O(h(
|
|
3018
|
-
w("span", No, h(
|
|
3005
|
+
O(h(l.value.billedEvery) + " ", 1),
|
|
3006
|
+
w("span", No, h(l.value.formatBillingPeriod(
|
|
3019
3007
|
e.config.details.billing_period,
|
|
3020
3008
|
{
|
|
3021
3009
|
prefix: !1
|
|
@@ -3033,9 +3021,9 @@ const ot = (e, i = {}) => {
|
|
|
3033
3021
|
];
|
|
3034
3022
|
}),
|
|
3035
3023
|
default: o(() => [
|
|
3036
|
-
|
|
3024
|
+
f.value ? (t(), T(mn, {
|
|
3037
3025
|
key: 0,
|
|
3038
|
-
i18n:
|
|
3026
|
+
i18n: l.value.topUpDescription,
|
|
3039
3027
|
class: "mt-1",
|
|
3040
3028
|
"pricing-item-config": e.config
|
|
3041
3029
|
}, null, 8, ["i18n", "pricing-item-config"])) : b("", !0)
|
|
@@ -3059,32 +3047,32 @@ const ot = (e, i = {}) => {
|
|
|
3059
3047
|
},
|
|
3060
3048
|
emits: ["expand-toggled"],
|
|
3061
3049
|
setup(e) {
|
|
3062
|
-
const i = e, { formatMessage: n } = ae(),
|
|
3050
|
+
const i = e, { formatMessage: n } = ae(), l = C(() => {
|
|
3063
3051
|
var a, d;
|
|
3064
3052
|
return (d = (a = i.config.details) == null ? void 0 : a.bands) == null ? void 0 : d[0];
|
|
3065
|
-
}),
|
|
3053
|
+
}), f = n({
|
|
3066
3054
|
defaultMessage: "Flexible pricing",
|
|
3067
3055
|
id: "wYqODC",
|
|
3068
3056
|
description: "Read-only label for a flexible (choose-your-amount) pricing rule"
|
|
3069
|
-
}),
|
|
3057
|
+
}), g = n({
|
|
3070
3058
|
defaultMessage: "minimum amount",
|
|
3071
3059
|
id: "Bbc4Nn",
|
|
3072
3060
|
description: "Suffix after the minimum amount of a flexible pricing rule"
|
|
3073
|
-
}),
|
|
3061
|
+
}), m = n({
|
|
3074
3062
|
defaultMessage: "maximum amount",
|
|
3075
3063
|
id: "V6mQFd",
|
|
3076
3064
|
description: "Suffix after the maximum amount of a flexible pricing rule"
|
|
3077
3065
|
});
|
|
3078
|
-
return (a, d) => (
|
|
3066
|
+
return (a, d) => (t(), T(Xe, {
|
|
3079
3067
|
"is-collapsible": e.isCollapsible,
|
|
3080
3068
|
"is-expanded": e.isExpanded,
|
|
3081
3069
|
"header-class": "flex items-start justify-between",
|
|
3082
|
-
onToggle: d[0] || (d[0] = (
|
|
3070
|
+
onToggle: d[0] || (d[0] = (c) => a.$emit("expand-toggled"))
|
|
3083
3071
|
}, {
|
|
3084
3072
|
header: o(() => {
|
|
3085
|
-
var
|
|
3073
|
+
var c, s, E, p, r;
|
|
3086
3074
|
return [
|
|
3087
|
-
e.showConfigHeader ? (
|
|
3075
|
+
e.showConfigHeader ? (t(), u("div", Vo, [
|
|
3088
3076
|
S(Z, {
|
|
3089
3077
|
"no-spacing": "",
|
|
3090
3078
|
color: "secondary",
|
|
@@ -3092,31 +3080,31 @@ const ot = (e, i = {}) => {
|
|
|
3092
3080
|
weight: "semibold"
|
|
3093
3081
|
}, {
|
|
3094
3082
|
default: o(() => [
|
|
3095
|
-
O(h(B(
|
|
3083
|
+
O(h(B(f)), 1)
|
|
3096
3084
|
]),
|
|
3097
3085
|
_: 1
|
|
3098
3086
|
}),
|
|
3099
3087
|
k(a.$slots, "override-tooltip")
|
|
3100
3088
|
])) : b("", !0),
|
|
3101
|
-
(
|
|
3102
|
-
(E =
|
|
3089
|
+
(c = l.value) != null && c.minimum_amount || (s = l.value) != null && s.maximum_amount ? (t(), u("div", Mo, [
|
|
3090
|
+
(E = l.value) != null && E.minimum_amount ? (t(), u(z, { key: 0 }, [
|
|
3103
3091
|
S(J, {
|
|
3104
|
-
value:
|
|
3092
|
+
value: l.value.minimum_amount,
|
|
3105
3093
|
highlighted: ""
|
|
3106
3094
|
}, null, 8, ["value"]),
|
|
3107
3095
|
w("span", null, [
|
|
3108
|
-
O(h(B(
|
|
3109
|
-
(p =
|
|
3096
|
+
O(h(B(g)), 1),
|
|
3097
|
+
(p = l.value) != null && p.maximum_amount ? (t(), u(z, { key: 0 }, [
|
|
3110
3098
|
O(",")
|
|
3111
3099
|
], 64)) : b("", !0)
|
|
3112
3100
|
])
|
|
3113
3101
|
], 64)) : b("", !0),
|
|
3114
|
-
(r =
|
|
3102
|
+
(r = l.value) != null && r.maximum_amount ? (t(), u(z, { key: 1 }, [
|
|
3115
3103
|
S(J, {
|
|
3116
|
-
value:
|
|
3104
|
+
value: l.value.maximum_amount,
|
|
3117
3105
|
highlighted: ""
|
|
3118
3106
|
}, null, 8, ["value"]),
|
|
3119
|
-
w("span", null, h(B(
|
|
3107
|
+
w("span", null, h(B(m)), 1)
|
|
3120
3108
|
], 64)) : b("", !0)
|
|
3121
3109
|
])) : b("", !0)
|
|
3122
3110
|
];
|
|
@@ -3135,7 +3123,7 @@ const ot = (e, i = {}) => {
|
|
|
3135
3123
|
i18n: {}
|
|
3136
3124
|
},
|
|
3137
3125
|
setup(e) {
|
|
3138
|
-
return (i, n) => e.expression ? (
|
|
3126
|
+
return (i, n) => e.expression ? (t(), u("div", Ro, [
|
|
3139
3127
|
S(Z, {
|
|
3140
3128
|
variant: "body-xs",
|
|
3141
3129
|
weight: "semibold",
|
|
@@ -3204,9 +3192,9 @@ const ot = (e, i = {}) => {
|
|
|
3204
3192
|
},
|
|
3205
3193
|
emits: ["expand-toggled"],
|
|
3206
3194
|
setup(e) {
|
|
3207
|
-
const i = e, n = C(() => i.i18n ?? pn),
|
|
3195
|
+
const i = e, n = C(() => i.i18n ?? pn), l = C(() => ({
|
|
3208
3196
|
tieringConditions: n.value.tieringConditions
|
|
3209
|
-
})),
|
|
3197
|
+
})), f = C(
|
|
3210
3198
|
() => {
|
|
3211
3199
|
var $, v, P, x, V, y, D;
|
|
3212
3200
|
return ((x = (P = (v = ($ = i.config.details) == null ? void 0 : $.bands) == null ? void 0 : v.find((I) => {
|
|
@@ -3214,15 +3202,15 @@ const ot = (e, i = {}) => {
|
|
|
3214
3202
|
return (A = I.credits) == null ? void 0 : A.credit_type_id;
|
|
3215
3203
|
})) == null ? void 0 : P.credits) == null ? void 0 : x.credit_type_id) ?? ((D = (y = (V = i.item.product_items) == null ? void 0 : V[0]) == null ? void 0 : y.credits) == null ? void 0 : D.credit_type_id);
|
|
3216
3204
|
}
|
|
3217
|
-
),
|
|
3205
|
+
), g = C(() => {
|
|
3218
3206
|
var $, v, P, x, V;
|
|
3219
|
-
if (
|
|
3220
|
-
const y = ($ = i.creditTypesById) == null ? void 0 : $[
|
|
3207
|
+
if (f.value) {
|
|
3208
|
+
const y = ($ = i.creditTypesById) == null ? void 0 : $[f.value];
|
|
3221
3209
|
if (y)
|
|
3222
3210
|
return ((v = y.unit_name) == null ? void 0 : v.singular) || "unit";
|
|
3223
3211
|
}
|
|
3224
3212
|
return ((V = (x = (P = i.item.product_items) == null ? void 0 : P[0]) == null ? void 0 : x.unit_name) == null ? void 0 : V.singular) || "unit";
|
|
3225
|
-
}),
|
|
3213
|
+
}), m = C(() => {
|
|
3226
3214
|
var $, v;
|
|
3227
3215
|
const P = ($ = i.config.details) == null ? void 0 : $.pricing_type;
|
|
3228
3216
|
if (P && ["TIERED", "TOP_TIERED"].includes(P) && ((v = i.config.details) != null && v.bands)) {
|
|
@@ -3234,7 +3222,7 @@ const ot = (e, i = {}) => {
|
|
|
3234
3222
|
}), a = C(() => {
|
|
3235
3223
|
var $;
|
|
3236
3224
|
return Pe(i.config) ? "TIERED" : ln(i.config) ? "STAIR_STEP" : ($ = i.config.details) == null ? void 0 : $.pricing_type;
|
|
3237
|
-
}), d = C(() => qe(i.config)),
|
|
3225
|
+
}), d = C(() => qe(i.config)), c = C(() => {
|
|
3238
3226
|
var $, v;
|
|
3239
3227
|
return (v = ($ = i.config.details) == null ? void 0 : $.bands) == null ? void 0 : v.some((P) => P.block_size);
|
|
3240
3228
|
}), s = C(
|
|
@@ -3261,9 +3249,9 @@ const ot = (e, i = {}) => {
|
|
|
3261
3249
|
), L = C(
|
|
3262
3250
|
() => `Based on fallback currency – ${i.config.fallback_currency}`
|
|
3263
3251
|
), M = C(
|
|
3264
|
-
() => 2 + (s.value ? 1 : 0) + (E.value ? 1 : 0) + (p.value ? 1 : 0) + (
|
|
3252
|
+
() => 2 + (s.value ? 1 : 0) + (E.value ? 1 : 0) + (p.value ? 1 : 0) + (m.value ? 2 : 0) + (c.value ? 1 : 0)
|
|
3265
3253
|
);
|
|
3266
|
-
return ($, v) => (
|
|
3254
|
+
return ($, v) => (t(), T(Xe, {
|
|
3267
3255
|
"is-collapsible": e.isCollapsible,
|
|
3268
3256
|
"is-expanded": e.isExpanded,
|
|
3269
3257
|
"header-class": "tiered-rule-header flex items-start justify-between",
|
|
@@ -3271,7 +3259,7 @@ const ot = (e, i = {}) => {
|
|
|
3271
3259
|
onToggle: v[0] || (v[0] = (P) => $.$emit("expand-toggled"))
|
|
3272
3260
|
}, {
|
|
3273
3261
|
header: o(() => [
|
|
3274
|
-
_.value ? (
|
|
3262
|
+
_.value ? (t(), u("div", Uo, [
|
|
3275
3263
|
S(ei, {
|
|
3276
3264
|
config: e.config,
|
|
3277
3265
|
i18n: n.value
|
|
@@ -3281,7 +3269,7 @@ const ot = (e, i = {}) => {
|
|
|
3281
3269
|
]),
|
|
3282
3270
|
_: 3
|
|
3283
3271
|
}, 8, ["config", "i18n"]),
|
|
3284
|
-
N.value ? (
|
|
3272
|
+
N.value ? (t(), T(re, {
|
|
3285
3273
|
key: 0,
|
|
3286
3274
|
variant: "outline",
|
|
3287
3275
|
placement: "top"
|
|
@@ -3307,7 +3295,7 @@ const ot = (e, i = {}) => {
|
|
|
3307
3295
|
]),
|
|
3308
3296
|
_: 1
|
|
3309
3297
|
})) : b("", !0),
|
|
3310
|
-
e.config.split_pricing ? (
|
|
3298
|
+
e.config.split_pricing ? (t(), u("div", Fo, [
|
|
3311
3299
|
S(Z, {
|
|
3312
3300
|
variant: "label",
|
|
3313
3301
|
tag: "span"
|
|
@@ -3332,7 +3320,7 @@ const ot = (e, i = {}) => {
|
|
|
3332
3320
|
default: o(() => {
|
|
3333
3321
|
var P, x, V, y;
|
|
3334
3322
|
return [
|
|
3335
|
-
d.value ? (
|
|
3323
|
+
d.value ? (t(), T(B(mn), {
|
|
3336
3324
|
key: 0,
|
|
3337
3325
|
class: "mb-3 mt-1",
|
|
3338
3326
|
i18n: n.value.topUpDescription,
|
|
@@ -3371,7 +3359,7 @@ const ot = (e, i = {}) => {
|
|
|
3371
3359
|
_: 1
|
|
3372
3360
|
})
|
|
3373
3361
|
]),
|
|
3374
|
-
s.value ? (
|
|
3362
|
+
s.value ? (t(), u("th", Ko, [
|
|
3375
3363
|
S(Z, { variant: "caps-heading" }, {
|
|
3376
3364
|
default: o(() => [
|
|
3377
3365
|
O(h(n.value.fixedAmount), 1)
|
|
@@ -3379,8 +3367,8 @@ const ot = (e, i = {}) => {
|
|
|
3379
3367
|
_: 1
|
|
3380
3368
|
})
|
|
3381
3369
|
])) : b("", !0),
|
|
3382
|
-
E.value ? (
|
|
3383
|
-
a.value === "STAIR_STEP" ? (
|
|
3370
|
+
E.value ? (t(), u("th", Jo, [
|
|
3371
|
+
a.value === "STAIR_STEP" ? (t(), T(Z, {
|
|
3384
3372
|
key: 0,
|
|
3385
3373
|
variant: "caps-heading"
|
|
3386
3374
|
}, {
|
|
@@ -3391,7 +3379,7 @@ const ot = (e, i = {}) => {
|
|
|
3391
3379
|
];
|
|
3392
3380
|
}),
|
|
3393
3381
|
_: 1
|
|
3394
|
-
})) :
|
|
3382
|
+
})) : c.value ? (t(), T(Z, {
|
|
3395
3383
|
key: 1,
|
|
3396
3384
|
variant: "caps-heading"
|
|
3397
3385
|
}, {
|
|
@@ -3399,17 +3387,17 @@ const ot = (e, i = {}) => {
|
|
|
3399
3387
|
O(h(n.value.price), 1)
|
|
3400
3388
|
]),
|
|
3401
3389
|
_: 1
|
|
3402
|
-
})) : e.config.details.bands && e.config.details.bands[0].amount || e.config.details.bands && e.config.details.bands[0].fixed_amount ? (
|
|
3390
|
+
})) : e.config.details.bands && e.config.details.bands[0].amount || e.config.details.bands && e.config.details.bands[0].fixed_amount ? (t(), T(Z, {
|
|
3403
3391
|
key: 2,
|
|
3404
3392
|
variant: "caps-heading"
|
|
3405
3393
|
}, {
|
|
3406
3394
|
default: o(() => [
|
|
3407
|
-
O(h(n.value.pricePerUnit(
|
|
3395
|
+
O(h(n.value.pricePerUnit(g.value)), 1)
|
|
3408
3396
|
]),
|
|
3409
3397
|
_: 1
|
|
3410
3398
|
})) : b("", !0)
|
|
3411
3399
|
])) : b("", !0),
|
|
3412
|
-
p.value ? (
|
|
3400
|
+
p.value ? (t(), u("th", Xo, [
|
|
3413
3401
|
S(Z, { variant: "caps-heading" }, {
|
|
3414
3402
|
default: o(() => [
|
|
3415
3403
|
O(h(n.value.percentage), 1)
|
|
@@ -3417,7 +3405,7 @@ const ot = (e, i = {}) => {
|
|
|
3417
3405
|
_: 1
|
|
3418
3406
|
})
|
|
3419
3407
|
])) : b("", !0),
|
|
3420
|
-
|
|
3408
|
+
m.value ? (t(), u(z, { key: 3 }, [
|
|
3421
3409
|
w("th", Qo, [
|
|
3422
3410
|
S(Z, { variant: "caps-heading" }, {
|
|
3423
3411
|
default: o(() => [
|
|
@@ -3435,7 +3423,7 @@ const ot = (e, i = {}) => {
|
|
|
3435
3423
|
})
|
|
3436
3424
|
])
|
|
3437
3425
|
], 64)) : b("", !0),
|
|
3438
|
-
|
|
3426
|
+
c.value ? (t(), u("th", ia, [
|
|
3439
3427
|
S(Z, { variant: "caps-heading" }, {
|
|
3440
3428
|
default: o(() => [
|
|
3441
3429
|
O(h(n.value.per), 1)
|
|
@@ -3446,29 +3434,29 @@ const ot = (e, i = {}) => {
|
|
|
3446
3434
|
])
|
|
3447
3435
|
]),
|
|
3448
3436
|
w("tbody", null, [
|
|
3449
|
-
(
|
|
3437
|
+
(t(!0), u(z, null, Q(e.config.details.bands, (D, I) => {
|
|
3450
3438
|
var A, R, F, W, G, K;
|
|
3451
|
-
return
|
|
3439
|
+
return t(), u("tr", {
|
|
3452
3440
|
key: I,
|
|
3453
3441
|
class: "border-t"
|
|
3454
3442
|
}, [
|
|
3455
3443
|
w("td", na, [
|
|
3456
|
-
(A = e.config.details) != null && A.bands ? (
|
|
3444
|
+
(A = e.config.details) != null && A.bands ? (t(), u(z, { key: 0 }, [
|
|
3457
3445
|
O(h(B(ft)(n.value)((R = e.config.details) == null ? void 0 : R.bands[I - 1])), 1)
|
|
3458
3446
|
], 64)) : b("", !0)
|
|
3459
3447
|
]),
|
|
3460
3448
|
w("td", ta, [
|
|
3461
|
-
(F = e.config.details) != null && F.bands ? (
|
|
3449
|
+
(F = e.config.details) != null && F.bands ? (t(), u(z, { key: 0 }, [
|
|
3462
3450
|
O(h(B(vt)(n.value)(D, (W = e.config.details) == null ? void 0 : W.bands, I)), 1)
|
|
3463
3451
|
], 64)) : b("", !0)
|
|
3464
3452
|
]),
|
|
3465
|
-
s.value ? (
|
|
3466
|
-
D.fixed_amount ? (
|
|
3453
|
+
s.value ? (t(), u("td", la, [
|
|
3454
|
+
D.fixed_amount ? (t(), T(J, {
|
|
3467
3455
|
key: 0,
|
|
3468
3456
|
value: D.fixed_amount,
|
|
3469
3457
|
highlighted: ""
|
|
3470
3458
|
}, null, 8, ["value"])) : b("", !0),
|
|
3471
|
-
D.fixed_amount && ((G = e.config.details) != null && G.pricing_period) ? (
|
|
3459
|
+
D.fixed_amount && ((G = e.config.details) != null && G.pricing_period) ? (t(), T(Z, {
|
|
3472
3460
|
key: 1,
|
|
3473
3461
|
tag: "span",
|
|
3474
3462
|
class: "pl-1"
|
|
@@ -3482,13 +3470,13 @@ const ot = (e, i = {}) => {
|
|
|
3482
3470
|
_: 1
|
|
3483
3471
|
})) : b("", !0)
|
|
3484
3472
|
])) : b("", !0),
|
|
3485
|
-
E.value ? (
|
|
3486
|
-
D.amount ? (
|
|
3473
|
+
E.value ? (t(), u("td", aa, [
|
|
3474
|
+
D.amount ? (t(), T(J, {
|
|
3487
3475
|
key: 0,
|
|
3488
3476
|
value: D.amount,
|
|
3489
3477
|
highlighted: ""
|
|
3490
3478
|
}, null, 8, ["value"])) : b("", !0),
|
|
3491
|
-
D.amount && ((K = e.config.details) != null && K.pricing_period) ? (
|
|
3479
|
+
D.amount && ((K = e.config.details) != null && K.pricing_period) ? (t(), T(Z, {
|
|
3492
3480
|
key: 1,
|
|
3493
3481
|
tag: "span",
|
|
3494
3482
|
class: "pl-1"
|
|
@@ -3502,34 +3490,34 @@ const ot = (e, i = {}) => {
|
|
|
3502
3490
|
_: 1
|
|
3503
3491
|
})) : b("", !0)
|
|
3504
3492
|
])) : b("", !0),
|
|
3505
|
-
p.value ? (
|
|
3506
|
-
D.percentage ? (
|
|
3493
|
+
p.value ? (t(), u("td", ra, [
|
|
3494
|
+
D.percentage ? (t(), u(z, { key: 0 }, [
|
|
3507
3495
|
O(h(D.percentage) + "% ", 1)
|
|
3508
3496
|
], 64)) : b("", !0)
|
|
3509
3497
|
])) : b("", !0),
|
|
3510
|
-
|
|
3498
|
+
m.value ? (t(), u(z, { key: 3 }, [
|
|
3511
3499
|
w("td", da, [
|
|
3512
|
-
D.minimum_amount ? (
|
|
3500
|
+
D.minimum_amount ? (t(), T(J, {
|
|
3513
3501
|
key: 0,
|
|
3514
3502
|
value: D.minimum_amount
|
|
3515
|
-
}, null, 8, ["value"])) : (
|
|
3503
|
+
}, null, 8, ["value"])) : (t(), u(z, { key: 1 }, [
|
|
3516
3504
|
O(" ")
|
|
3517
3505
|
], 64))
|
|
3518
3506
|
]),
|
|
3519
3507
|
w("td", ca, [
|
|
3520
|
-
D.maximum_amount ? (
|
|
3508
|
+
D.maximum_amount ? (t(), T(J, {
|
|
3521
3509
|
key: 0,
|
|
3522
3510
|
value: D.maximum_amount
|
|
3523
|
-
}, null, 8, ["value"])) : (
|
|
3511
|
+
}, null, 8, ["value"])) : (t(), u(z, { key: 1 }, [
|
|
3524
3512
|
O(" ")
|
|
3525
3513
|
], 64))
|
|
3526
3514
|
])
|
|
3527
3515
|
], 64)) : b("", !0),
|
|
3528
|
-
|
|
3529
|
-
B(Ye)(D.block_size) ? (
|
|
3516
|
+
c.value ? (t(), u("td", ua, [
|
|
3517
|
+
B(Ye)(D.block_size) ? (t(), T(J, {
|
|
3530
3518
|
key: 0,
|
|
3531
3519
|
value: D.block_size.amount
|
|
3532
|
-
}, null, 8, ["value"])) : B(Ie)(D.block_size) ? (
|
|
3520
|
+
}, null, 8, ["value"])) : B(Ie)(D.block_size) ? (t(), u(z, { key: 1 }, [
|
|
3533
3521
|
O(h(n.value.formatNumber(+D.block_size.number)), 1)
|
|
3534
3522
|
], 64)) : b("", !0)
|
|
3535
3523
|
])) : b("", !0)
|
|
@@ -3538,17 +3526,17 @@ const ot = (e, i = {}) => {
|
|
|
3538
3526
|
])
|
|
3539
3527
|
])
|
|
3540
3528
|
]),
|
|
3541
|
-
e.config.tiering_conditions ? (
|
|
3529
|
+
e.config.tiering_conditions ? (t(), T(Zo, {
|
|
3542
3530
|
key: 1,
|
|
3543
3531
|
class: "mt-2",
|
|
3544
|
-
i18n:
|
|
3532
|
+
i18n: l.value,
|
|
3545
3533
|
expression: e.config.tiering_conditions.expression
|
|
3546
3534
|
}, null, 8, ["i18n", "expression"])) : b("", !0),
|
|
3547
|
-
$.$slots.included || (x = (P = e.config.details) == null ? void 0 : P.billing_period) != null && x.type ? (
|
|
3548
|
-
$.$slots.included ? (
|
|
3535
|
+
$.$slots.included || (x = (P = e.config.details) == null ? void 0 : P.billing_period) != null && x.type ? (t(), u("div", ga, [
|
|
3536
|
+
$.$slots.included ? (t(), u("div", ma, [
|
|
3549
3537
|
k($.$slots, "included", {}, void 0, !0)
|
|
3550
3538
|
])) : b("", !0),
|
|
3551
|
-
(y = (V = e.config.details) == null ? void 0 : V.billing_period) != null && y.type ? (
|
|
3539
|
+
(y = (V = e.config.details) == null ? void 0 : V.billing_period) != null && y.type ? (t(), T(Z, {
|
|
3552
3540
|
key: 1,
|
|
3553
3541
|
tag: "div",
|
|
3554
3542
|
variant: "body-sm",
|
|
@@ -3598,16 +3586,16 @@ const ot = (e, i = {}) => {
|
|
|
3598
3586
|
mountInViewOnly: { type: Boolean }
|
|
3599
3587
|
},
|
|
3600
3588
|
setup(e) {
|
|
3601
|
-
const i = e, n =
|
|
3589
|
+
const i = e, n = ct(), l = C(() => i.mountInViewOnly ?? n), f = be(null), { shouldRender: g, placeholderStyle: m } = at(f, {
|
|
3602
3590
|
estimatedHeight: Gn(i.config),
|
|
3603
|
-
disabled: C(() => !
|
|
3604
|
-
}), a =
|
|
3591
|
+
disabled: C(() => !l.value)
|
|
3592
|
+
}), a = rt({
|
|
3605
3593
|
defaultCollapsed: i.canCollapseNestedConditions
|
|
3606
|
-
}), d = C(() => a.isExpanded(i.config.id)),
|
|
3594
|
+
}), d = C(() => a.isExpanded(i.config.id)), c = C(() => {
|
|
3607
3595
|
var I;
|
|
3608
3596
|
return (I = i.config.conditions) == null ? void 0 : I.configs;
|
|
3609
3597
|
}), s = C(
|
|
3610
|
-
() => !!i.canCollapseNestedConditions && !ie(
|
|
3598
|
+
() => !!i.canCollapseNestedConditions && !ie(c.value)
|
|
3611
3599
|
), E = () => {
|
|
3612
3600
|
d.value ? a.collapse(i.config.id) : a.expand(Wn(i.config));
|
|
3613
3601
|
}, p = () => {
|
|
@@ -3648,7 +3636,7 @@ const ot = (e, i = {}) => {
|
|
|
3648
3636
|
return (I, A) => {
|
|
3649
3637
|
var R, F, W, G, K;
|
|
3650
3638
|
const oe = Tn("PricingItemConfig", !0);
|
|
3651
|
-
return
|
|
3639
|
+
return t(), u("div", {
|
|
3652
3640
|
class: H(["relative", {
|
|
3653
3641
|
[`${e.rootClass}`]: e.rootClass,
|
|
3654
3642
|
"mb-4 last:mb-0": N(e.config) && (((R = e.config.conditions) == null ? void 0 : R.meter_properties) || e.configIndex === 0 && e.item.configs && e.item.configs.length > 0),
|
|
@@ -3657,17 +3645,17 @@ const ot = (e, i = {}) => {
|
|
|
3657
3645
|
}, [
|
|
3658
3646
|
w("div", {
|
|
3659
3647
|
ref_key: "bodyEl",
|
|
3660
|
-
ref:
|
|
3661
|
-
style: Bn(B(
|
|
3648
|
+
ref: f,
|
|
3649
|
+
style: Bn(B(m))
|
|
3662
3650
|
}, [
|
|
3663
|
-
B(
|
|
3651
|
+
B(g) ? (t(), u("div", ba, [
|
|
3664
3652
|
w("div", {
|
|
3665
3653
|
class: H({
|
|
3666
3654
|
"conditions-with-context-menu": y.value
|
|
3667
3655
|
})
|
|
3668
3656
|
}, [
|
|
3669
|
-
(F = e.config.details) != null && F.bands || (W = e.config.details) != null && W.pricing_type ? (
|
|
3670
|
-
N(e.config) ? (
|
|
3657
|
+
(F = e.config.details) != null && F.bands || (W = e.config.details) != null && W.pricing_type ? (t(), u(z, { key: 0 }, [
|
|
3658
|
+
N(e.config) ? (t(), T(B(Lo), {
|
|
3671
3659
|
key: 0,
|
|
3672
3660
|
"is-combined-pricing": e.pricing.products && e.pricing.products.length > 1,
|
|
3673
3661
|
"are-non-billable-items-visible": e.areNonBillableItemsVisible,
|
|
@@ -3688,7 +3676,7 @@ const ot = (e, i = {}) => {
|
|
|
3688
3676
|
included: o(() => {
|
|
3689
3677
|
var ee, ne, X, ce;
|
|
3690
3678
|
return [
|
|
3691
|
-
$(e.item) && ((ee = e.config.default_included_volume) != null && ee.amount) ? (
|
|
3679
|
+
$(e.item) && ((ee = e.config.default_included_volume) != null && ee.amount) ? (t(), u("span", {
|
|
3692
3680
|
key: 0,
|
|
3693
3681
|
class: "mt-1 text-right text-subtle",
|
|
3694
3682
|
innerHTML: e.config.default_included_volume.reset_type === "BILLING_PERIOD" ? r.value.includedVolumeAmountPerBillingPeriod(
|
|
@@ -3697,7 +3685,7 @@ const ot = (e, i = {}) => {
|
|
|
3697
3685
|
e.config.default_included_volume.amount
|
|
3698
3686
|
)
|
|
3699
3687
|
}, null, 8, ha)) : b("", !0),
|
|
3700
|
-
v(e.item) && ((ne = e.config.default_included_volume) != null && ne.number) ? (
|
|
3688
|
+
v(e.item) && ((ne = e.config.default_included_volume) != null && ne.number) ? (t(), u("span", {
|
|
3701
3689
|
key: 1,
|
|
3702
3690
|
class: "mt-1 text-right text-subtle",
|
|
3703
3691
|
innerHTML: e.config.default_included_volume.reset_type === "BILLING_PERIOD" ? r.value.includedVolumeUnitsPerBillingPeriod(
|
|
@@ -3708,7 +3696,7 @@ const ot = (e, i = {}) => {
|
|
|
3708
3696
|
(ce = e.item.product_items) == null ? void 0 : ce[0].unit_name
|
|
3709
3697
|
)
|
|
3710
3698
|
}, null, 8, ya)) : b("", !0),
|
|
3711
|
-
e.showDefaultValues && P(e.item, e.config) && D.value ? (
|
|
3699
|
+
e.showDefaultValues && P(e.item, e.config) && D.value ? (t(), u("span", {
|
|
3712
3700
|
key: 2,
|
|
3713
3701
|
class: "mt-1 text-right text-subtle",
|
|
3714
3702
|
innerHTML: r.value.includedSeats(D.value)
|
|
@@ -3716,7 +3704,7 @@ const ot = (e, i = {}) => {
|
|
|
3716
3704
|
];
|
|
3717
3705
|
}),
|
|
3718
3706
|
_: 3
|
|
3719
|
-
}, 8, ["is-combined-pricing", "are-non-billable-items-visible", "config", "item", "class", "i18n", "show-config-header", "show-default-values", "credit-types-by-id", "is-collapsible", "is-expanded"])) : L(e.config) ? (
|
|
3707
|
+
}, 8, ["is-combined-pricing", "are-non-billable-items-visible", "config", "item", "class", "i18n", "show-config-header", "show-default-values", "credit-types-by-id", "is-collapsible", "is-expanded"])) : L(e.config) ? (t(), T(B(pa), {
|
|
3720
3708
|
key: 1,
|
|
3721
3709
|
"is-combined-pricing": e.pricing.products && e.pricing.products.length > 1,
|
|
3722
3710
|
config: e.config,
|
|
@@ -3737,7 +3725,7 @@ const ot = (e, i = {}) => {
|
|
|
3737
3725
|
included: o(() => {
|
|
3738
3726
|
var ee, ne, X, ce;
|
|
3739
3727
|
return [
|
|
3740
|
-
$(e.item) && ((ee = e.config.default_included_volume) != null && ee.amount) ? (
|
|
3728
|
+
$(e.item) && ((ee = e.config.default_included_volume) != null && ee.amount) ? (t(), u("span", {
|
|
3741
3729
|
key: 0,
|
|
3742
3730
|
class: "mt-1 text-right text-subtle",
|
|
3743
3731
|
innerHTML: e.config.default_included_volume.reset_type === "BILLING_PERIOD" ? r.value.includedVolumeAmountPerBillingPeriod(
|
|
@@ -3746,7 +3734,7 @@ const ot = (e, i = {}) => {
|
|
|
3746
3734
|
e.config.default_included_volume.amount
|
|
3747
3735
|
)
|
|
3748
3736
|
}, null, 8, xa)) : b("", !0),
|
|
3749
|
-
v(e.item) && ((ne = e.config.default_included_volume) != null && ne.number) ? (
|
|
3737
|
+
v(e.item) && ((ne = e.config.default_included_volume) != null && ne.number) ? (t(), u("span", {
|
|
3750
3738
|
key: 1,
|
|
3751
3739
|
class: "mt-1 text-right text-subtle",
|
|
3752
3740
|
innerHTML: e.config.default_included_volume.reset_type === "BILLING_PERIOD" ? r.value.includedVolumeUnitsPerBillingPeriod(
|
|
@@ -3757,7 +3745,7 @@ const ot = (e, i = {}) => {
|
|
|
3757
3745
|
(ce = e.item.product_items) == null ? void 0 : ce[0].unit_name
|
|
3758
3746
|
)
|
|
3759
3747
|
}, null, 8, $a)) : b("", !0),
|
|
3760
|
-
e.showDefaultValues && P(e.item, e.config) && D.value ? (
|
|
3748
|
+
e.showDefaultValues && P(e.item, e.config) && D.value ? (t(), u("span", {
|
|
3761
3749
|
key: 2,
|
|
3762
3750
|
class: "mt-1 text-right text-subtle",
|
|
3763
3751
|
innerHTML: r.value.includedSeats(D.value)
|
|
@@ -3765,7 +3753,7 @@ const ot = (e, i = {}) => {
|
|
|
3765
3753
|
];
|
|
3766
3754
|
}),
|
|
3767
3755
|
_: 3
|
|
3768
|
-
}, 8, ["is-combined-pricing", "config", "item-index", "config-index", "item", "credit-types-by-id", "i18n", "show-config-header", "is-collapsible", "is-expanded"])) : M(e.config) ? (
|
|
3756
|
+
}, 8, ["is-combined-pricing", "config", "item-index", "config-index", "item", "credit-types-by-id", "i18n", "show-config-header", "is-collapsible", "is-expanded"])) : M(e.config) ? (t(), T(B(Ao), {
|
|
3769
3757
|
key: 2,
|
|
3770
3758
|
config: e.config,
|
|
3771
3759
|
class: "mt-3",
|
|
@@ -3781,10 +3769,10 @@ const ot = (e, i = {}) => {
|
|
|
3781
3769
|
}, 8, ["config", "show-config-header", "is-collapsible", "is-expanded"])) : b("", !0),
|
|
3782
3770
|
I.$slots["pricing-item-config-additions"] && !B(Ue)(
|
|
3783
3771
|
(K = (G = I.$slots)["pricing-item-config-additions"]) == null ? void 0 : K.call(G, V.value)
|
|
3784
|
-
) ? (
|
|
3772
|
+
) ? (t(), u("div", Pa, [
|
|
3785
3773
|
k(I.$slots, "pricing-item-config-additions", q(Y(V.value)), void 0, !0)
|
|
3786
3774
|
])) : b("", !0)
|
|
3787
|
-
], 64)) : e.showConfigHeader ? (
|
|
3775
|
+
], 64)) : e.showConfigHeader ? (t(), T(cn, {
|
|
3788
3776
|
key: 1,
|
|
3789
3777
|
"is-collapsible": s.value,
|
|
3790
3778
|
"is-expanded": d.value,
|
|
@@ -3806,12 +3794,12 @@ const ot = (e, i = {}) => {
|
|
|
3806
3794
|
_: 3
|
|
3807
3795
|
}, 8, ["is-collapsible", "is-expanded"])) : b("", !0)
|
|
3808
3796
|
], 2),
|
|
3809
|
-
y.value ? (
|
|
3797
|
+
y.value ? (t(), u("div", Ia, [
|
|
3810
3798
|
k(I.$slots, "pricing-item-config-settings", j(V.value, { rootConfig: x.value }), void 0, !0)
|
|
3811
3799
|
])) : b("", !0)
|
|
3812
3800
|
])) : b("", !0)
|
|
3813
3801
|
], 4),
|
|
3814
|
-
|
|
3802
|
+
c.value && !B(ie)(c.value) ? (t(), T(_e, {
|
|
3815
3803
|
key: 0,
|
|
3816
3804
|
"is-open": d.value,
|
|
3817
3805
|
lazy: "",
|
|
@@ -3819,9 +3807,9 @@ const ot = (e, i = {}) => {
|
|
|
3819
3807
|
class: "nesting-line relative mb-4 w-full pl-4 before:bottom-3 before:left-1.5"
|
|
3820
3808
|
}, {
|
|
3821
3809
|
default: o(() => [
|
|
3822
|
-
(
|
|
3810
|
+
(t(!0), u(z, null, Q([...c.value].sort(
|
|
3823
3811
|
(ee, ne) => ne.order - ee.order
|
|
3824
|
-
), (ee, ne) => (
|
|
3812
|
+
), (ee, ne) => (t(), u("div", {
|
|
3825
3813
|
key: ee.id,
|
|
3826
3814
|
class: "print:mb-4 print:last:mb-0"
|
|
3827
3815
|
}, [
|
|
@@ -3837,7 +3825,7 @@ const ot = (e, i = {}) => {
|
|
|
3837
3825
|
"root-config": x.value,
|
|
3838
3826
|
"credit-types-by-id": e.creditTypesById,
|
|
3839
3827
|
"can-collapse-nested-conditions": e.canCollapseNestedConditions,
|
|
3840
|
-
"mount-in-view-only":
|
|
3828
|
+
"mount-in-view-only": l.value
|
|
3841
3829
|
}, {
|
|
3842
3830
|
"pricing-item-config-settings": o((X) => [
|
|
3843
3831
|
k(I.$slots, "pricing-item-config-settings", j({ ref_for: !0 }, X), void 0, !0)
|
|
@@ -3872,12 +3860,12 @@ const ot = (e, i = {}) => {
|
|
|
3872
3860
|
canCollapseNestedConditions: { type: Boolean }
|
|
3873
3861
|
},
|
|
3874
3862
|
setup(e) {
|
|
3875
|
-
const i = ae(), n = e,
|
|
3876
|
-
|
|
3877
|
-
...
|
|
3878
|
-
[r]: !
|
|
3863
|
+
const i = ae(), n = e, l = be({}), f = (r) => r ? `${r.type}:${r.value}` : "none", g = (r) => {
|
|
3864
|
+
l.value = {
|
|
3865
|
+
...l.value,
|
|
3866
|
+
[r]: !l.value[r]
|
|
3879
3867
|
};
|
|
3880
|
-
},
|
|
3868
|
+
}, m = (r) => !l.value[r], a = (r, _) => {
|
|
3881
3869
|
if (!_)
|
|
3882
3870
|
return null;
|
|
3883
3871
|
const N = /* @__PURE__ */ new Map();
|
|
@@ -3886,16 +3874,16 @@ const ot = (e, i = {}) => {
|
|
|
3886
3874
|
const P = ((M = L.details) == null ? void 0 : M.billing_period) ?? (($ = L.details) == null ? void 0 : $.pricing_period);
|
|
3887
3875
|
if (!P)
|
|
3888
3876
|
return;
|
|
3889
|
-
const x =
|
|
3877
|
+
const x = f(P);
|
|
3890
3878
|
N.has(x) || N.set(x, { billingPeriod: P, configs: [] }), (v = N.get(x)) == null || v.configs.push(L);
|
|
3891
3879
|
}), Array.from(N.entries()).map(([L, M]) => ({
|
|
3892
3880
|
key: L,
|
|
3893
3881
|
...M
|
|
3894
3882
|
}));
|
|
3895
|
-
}, d = (r) => [...r].sort((_, N) => N.order - _.order),
|
|
3883
|
+
}, d = (r) => [...r].sort((_, N) => N.order - _.order), c = (r) => {
|
|
3896
3884
|
var _;
|
|
3897
3885
|
return s(r) ? (_ = r.billing_period_configs) != null && _.length ? r.billing_period_configs.map((N) => ({
|
|
3898
|
-
key:
|
|
3886
|
+
key: f(N.billing_period),
|
|
3899
3887
|
billingPeriod: N.billing_period,
|
|
3900
3888
|
configs: N.configs ?? []
|
|
3901
3889
|
})) : a(Ce(r), !0) : a(Ce(r), !1);
|
|
@@ -3907,7 +3895,7 @@ const ot = (e, i = {}) => {
|
|
|
3907
3895
|
var r;
|
|
3908
3896
|
return ((r = n.pricing.items) == null ? void 0 : r.map((_) => ({
|
|
3909
3897
|
id: _.id,
|
|
3910
|
-
groups:
|
|
3898
|
+
groups: c(_)
|
|
3911
3899
|
}))) ?? [];
|
|
3912
3900
|
}
|
|
3913
3901
|
), p = (r) => {
|
|
@@ -3919,11 +3907,11 @@ const ot = (e, i = {}) => {
|
|
|
3919
3907
|
);
|
|
3920
3908
|
return Oe(r) || _ && !!n.areNonBillableItemsVisible;
|
|
3921
3909
|
};
|
|
3922
|
-
return (r, _) => (
|
|
3923
|
-
(
|
|
3910
|
+
return (r, _) => (t(), u("div", null, [
|
|
3911
|
+
(t(!0), u(z, null, Q(e.pricing.items, (N, L) => {
|
|
3924
3912
|
var M;
|
|
3925
|
-
return
|
|
3926
|
-
p(N) ? (
|
|
3913
|
+
return t(), u(z, { key: L }, [
|
|
3914
|
+
p(N) ? (t(), u("div", {
|
|
3927
3915
|
key: 0,
|
|
3928
3916
|
class: H(["pricing-item-block pb-5 last:pb-3", { [`${e.itemClass}`]: e.itemClass, "print:hidden": !B(Oe)(N) }])
|
|
3929
3917
|
}, [
|
|
@@ -3943,16 +3931,16 @@ const ot = (e, i = {}) => {
|
|
|
3943
3931
|
]),
|
|
3944
3932
|
_: 2
|
|
3945
3933
|
}, 1032, ["icon"]),
|
|
3946
|
-
(M = E.value[L]) != null && M.groups ? (
|
|
3934
|
+
(M = E.value[L]) != null && M.groups ? (t(!0), u(z, { key: 0 }, Q(E.value[L].groups, ($) => {
|
|
3947
3935
|
var v, P, x;
|
|
3948
|
-
return
|
|
3936
|
+
return t(), u("div", {
|
|
3949
3937
|
key: $.key,
|
|
3950
3938
|
class: "mt-3 rounded border border-gray-100"
|
|
3951
3939
|
}, [
|
|
3952
3940
|
w("button", {
|
|
3953
3941
|
type: "button",
|
|
3954
3942
|
class: "flex w-full items-center justify-between px-4 py-2 text-left text-sm font-semibold text-secondary",
|
|
3955
|
-
onClick: (V) =>
|
|
3943
|
+
onClick: (V) => g($.key)
|
|
3956
3944
|
}, [
|
|
3957
3945
|
w("span", null, [
|
|
3958
3946
|
O(h((v = e.i18n) != null && v.formatBillingPeriod ? B(i).$t({
|
|
@@ -3963,18 +3951,18 @@ const ot = (e, i = {}) => {
|
|
|
3963
3951
|
w("span", wa, h((x = (P = e.i18n) == null ? void 0 : P.formatBillingPeriod) == null ? void 0 : x.call(P, $.billingPeriod)), 1)
|
|
3964
3952
|
]),
|
|
3965
3953
|
S(te, {
|
|
3966
|
-
icon:
|
|
3954
|
+
icon: m($.key) ? "unfold_less" : "unfold_more",
|
|
3967
3955
|
size: "sm",
|
|
3968
3956
|
class: "print:hidden"
|
|
3969
3957
|
}, null, 8, ["icon"])
|
|
3970
3958
|
], 8, Ea),
|
|
3971
3959
|
S(_e, {
|
|
3972
|
-
"is-open":
|
|
3960
|
+
"is-open": m($.key),
|
|
3973
3961
|
lazy: ""
|
|
3974
3962
|
}, {
|
|
3975
3963
|
default: o(() => [
|
|
3976
3964
|
w("div", Sa, [
|
|
3977
|
-
(
|
|
3965
|
+
(t(!0), u(z, null, Q(d($.configs), (V, y) => (t(), T(Wi, {
|
|
3978
3966
|
key: V.id,
|
|
3979
3967
|
pricing: e.pricing,
|
|
3980
3968
|
item: N,
|
|
@@ -4004,9 +3992,9 @@ const ot = (e, i = {}) => {
|
|
|
4004
3992
|
_: 2
|
|
4005
3993
|
}, 1032, ["is-open"])
|
|
4006
3994
|
]);
|
|
4007
|
-
}), 128)) : (
|
|
3995
|
+
}), 128)) : (t(!0), u(z, { key: 1 }, Q(d(
|
|
4008
3996
|
B(Ce)(N) ?? []
|
|
4009
|
-
), ($, v) => (
|
|
3997
|
+
), ($, v) => (t(), T(Wi, {
|
|
4010
3998
|
key: $.id,
|
|
4011
3999
|
pricing: e.pricing,
|
|
4012
4000
|
item: N,
|
|
@@ -4070,34 +4058,34 @@ const ot = (e, i = {}) => {
|
|
|
4070
4058
|
setup(e) {
|
|
4071
4059
|
const i = e;
|
|
4072
4060
|
Ge("pricingId", i.pricing.id);
|
|
4073
|
-
const n = C(() => i.i18n ?? yn),
|
|
4061
|
+
const n = C(() => i.i18n ?? yn), l = C(
|
|
4074
4062
|
() => {
|
|
4075
4063
|
var d;
|
|
4076
|
-
return (d = i.pricing.items) == null ? void 0 : d.filter((
|
|
4064
|
+
return (d = i.pricing.items) == null ? void 0 : d.filter((c) => Rn(c.product_items));
|
|
4077
4065
|
}
|
|
4078
|
-
),
|
|
4066
|
+
), f = C(() => {
|
|
4079
4067
|
var d;
|
|
4080
|
-
return !((d =
|
|
4081
|
-
}),
|
|
4068
|
+
return !((d = l.value) != null && d.some(Oe));
|
|
4069
|
+
}), g = C(
|
|
4082
4070
|
() => {
|
|
4083
4071
|
var d;
|
|
4084
4072
|
return ((d = i.pricing.entitlements) == null ? void 0 : d.every(zi)) ?? !1;
|
|
4085
4073
|
}
|
|
4086
|
-
),
|
|
4074
|
+
), m = C(
|
|
4087
4075
|
() => {
|
|
4088
4076
|
var d;
|
|
4089
|
-
return (d = i.pricing.items) == null ? void 0 : d.filter((
|
|
4077
|
+
return (d = i.pricing.items) == null ? void 0 : d.filter((c) => zn(c.product_items));
|
|
4090
4078
|
}
|
|
4091
4079
|
), a = C(() => {
|
|
4092
4080
|
var d;
|
|
4093
|
-
return !((d =
|
|
4081
|
+
return !((d = m.value) != null && d.some(Oe));
|
|
4094
4082
|
});
|
|
4095
|
-
return (d,
|
|
4083
|
+
return (d, c) => (t(), u("div", null, [
|
|
4096
4084
|
k(d.$slots, "pricing-item-warning", {}, void 0, !0),
|
|
4097
|
-
B(ie)(
|
|
4098
|
-
B(ie)(e.pricing.items) ? b("", !0) : (
|
|
4085
|
+
B(ie)(l.value) ? b("", !0) : (t(), u(z, { key: 0 }, [
|
|
4086
|
+
B(ie)(e.pricing.items) ? b("", !0) : (t(), T(Ae, {
|
|
4099
4087
|
key: 0,
|
|
4100
|
-
class: H(["section-label my-3", { "print:hidden":
|
|
4088
|
+
class: H(["section-label my-3", { "print:hidden": f.value }])
|
|
4101
4089
|
}, {
|
|
4102
4090
|
default: o(() => [
|
|
4103
4091
|
w("h3", Da, [
|
|
@@ -4108,7 +4096,7 @@ const ot = (e, i = {}) => {
|
|
|
4108
4096
|
_: 1
|
|
4109
4097
|
}, 8, ["class"])),
|
|
4110
4098
|
S(Yi, {
|
|
4111
|
-
pricing: { ...e.pricing, items:
|
|
4099
|
+
pricing: { ...e.pricing, items: l.value },
|
|
4112
4100
|
"grouped-pricing-item-ids": e.groupedPricingItemIds,
|
|
4113
4101
|
i18n: n.value,
|
|
4114
4102
|
"are-non-billable-items-visible": e.areNonBillableItemsVisible,
|
|
@@ -4131,8 +4119,8 @@ const ot = (e, i = {}) => {
|
|
|
4131
4119
|
_: 3
|
|
4132
4120
|
}, 8, ["pricing", "grouped-pricing-item-ids", "i18n", "are-non-billable-items-visible", "schedule", "credit-types-by-id", "can-collapse-nested-conditions"])
|
|
4133
4121
|
], 64)),
|
|
4134
|
-
B(ie)(
|
|
4135
|
-
e.pricing.items && e.pricing.items.length > 0 ? (
|
|
4122
|
+
B(ie)(m.value) ? b("", !0) : (t(), u(z, { key: 1 }, [
|
|
4123
|
+
e.pricing.items && e.pricing.items.length > 0 ? (t(), T(Ae, {
|
|
4136
4124
|
key: 0,
|
|
4137
4125
|
class: H(["section-label mb-3 mt-6", { "print:hidden": a.value }])
|
|
4138
4126
|
}, {
|
|
@@ -4142,7 +4130,7 @@ const ot = (e, i = {}) => {
|
|
|
4142
4130
|
_: 1
|
|
4143
4131
|
}, 8, ["class"])) : b("", !0),
|
|
4144
4132
|
S(Yi, {
|
|
4145
|
-
pricing: { ...e.pricing, items:
|
|
4133
|
+
pricing: { ...e.pricing, items: m.value },
|
|
4146
4134
|
"grouped-pricing-item-ids": e.groupedPricingItemIds,
|
|
4147
4135
|
i18n: n.value,
|
|
4148
4136
|
"are-non-billable-items-visible": e.areNonBillableItemsVisible,
|
|
@@ -4164,14 +4152,14 @@ const ot = (e, i = {}) => {
|
|
|
4164
4152
|
_: 3
|
|
4165
4153
|
}, 8, ["pricing", "grouped-pricing-item-ids", "i18n", "are-non-billable-items-visible", "credit-types-by-id", "can-collapse-nested-conditions"])
|
|
4166
4154
|
], 64)),
|
|
4167
|
-
B(ie)(e.pricing.entitlements) ? b("", !0) : (
|
|
4155
|
+
B(ie)(e.pricing.entitlements) ? b("", !0) : (t(), u("div", {
|
|
4168
4156
|
key: 2,
|
|
4169
|
-
class: H(["mt-2", { "print:hidden":
|
|
4157
|
+
class: H(["mt-2", { "print:hidden": g.value }])
|
|
4170
4158
|
}, [
|
|
4171
4159
|
S(Ae, { class: "section-label relative" }, {
|
|
4172
4160
|
default: o(() => [
|
|
4173
4161
|
w("h3", Va, h(n.value.features), 1),
|
|
4174
|
-
d.$slots["pricing-entitlements-settings"] ? (
|
|
4162
|
+
d.$slots["pricing-entitlements-settings"] ? (t(), u("div", Ma, [
|
|
4175
4163
|
w("div", Aa, [
|
|
4176
4164
|
k(d.$slots, "pricing-entitlements-settings", { pricing: e.pricing }, void 0, !0)
|
|
4177
4165
|
])
|
|
@@ -4180,19 +4168,19 @@ const ot = (e, i = {}) => {
|
|
|
4180
4168
|
_: 3
|
|
4181
4169
|
}),
|
|
4182
4170
|
w("ul", Ra, [
|
|
4183
|
-
(
|
|
4171
|
+
(t(!0), u(z, null, Q(e.pricing.entitlements, (s) => (t(), u("li", {
|
|
4184
4172
|
key: s.feature_id,
|
|
4185
4173
|
class: H(["flex items-center justify-between py-2", { "print:hidden": B(zi)(s) }])
|
|
4186
4174
|
}, [
|
|
4187
4175
|
w("span", za, h(s.feature.name), 1),
|
|
4188
|
-
s.feature.type === B($e).AMOUNT && s.amount ? (
|
|
4176
|
+
s.feature.type === B($e).AMOUNT && s.amount ? (t(), T(J, {
|
|
4189
4177
|
key: 0,
|
|
4190
4178
|
value: s.amount,
|
|
4191
4179
|
highlighted: ""
|
|
4192
4180
|
}, null, 8, ["value"])) : b("", !0),
|
|
4193
|
-
s.feature.type === B($e).NUMBER && s.number ? (
|
|
4194
|
-
s.feature.type === B($e).STRING && s.string ? (
|
|
4195
|
-
s.feature.type === B($e).SWITCH && "switch" in s ? (
|
|
4181
|
+
s.feature.type === B($e).NUMBER && s.number ? (t(), u("span", Za, h(s.number), 1)) : b("", !0),
|
|
4182
|
+
s.feature.type === B($e).STRING && s.string ? (t(), u("span", Ua, h(s.string), 1)) : b("", !0),
|
|
4183
|
+
s.feature.type === B($e).SWITCH && "switch" in s ? (t(), u("div", {
|
|
4196
4184
|
key: 3,
|
|
4197
4185
|
class: H(["inline-block rounded-full leading-[0.5] text-white", s.switch ? "bg-primary-600" : "bg-red-500"])
|
|
4198
4186
|
}, [
|
|
@@ -4201,7 +4189,7 @@ const ot = (e, i = {}) => {
|
|
|
4201
4189
|
size: "xs"
|
|
4202
4190
|
}, null, 8, ["icon"])
|
|
4203
4191
|
], 2)) : b("", !0),
|
|
4204
|
-
s.feature.type === B($e).ENUM && s.enum ? (
|
|
4192
|
+
s.feature.type === B($e).ENUM && s.enum ? (t(), u("span", Fa, h(s.enum), 1)) : b("", !0)
|
|
4205
4193
|
], 2))), 128))
|
|
4206
4194
|
])
|
|
4207
4195
|
], 2))
|
|
@@ -4264,11 +4252,11 @@ const ot = (e, i = {}) => {
|
|
|
4264
4252
|
},
|
|
4265
4253
|
emits: ["pricing-toggled", "pricing-toggle"],
|
|
4266
4254
|
setup(e, { emit: i }) {
|
|
4267
|
-
const n = e,
|
|
4255
|
+
const n = e, l = i, f = C(() => n.i18n ?? _n);
|
|
4268
4256
|
Ge("pricingId", n.pricing.id);
|
|
4269
|
-
const
|
|
4257
|
+
const g = sn({
|
|
4270
4258
|
defaultCollapsed: n.canCollapseNestedConditions
|
|
4271
|
-
}),
|
|
4259
|
+
}), m = (v) => [
|
|
4272
4260
|
...v.configs ?? [],
|
|
4273
4261
|
...(v.billing_period_configs ?? []).flatMap((P) => P.configs ?? []),
|
|
4274
4262
|
...(v.pricing_currency_configs ?? []).flatMap((P) => [
|
|
@@ -4276,12 +4264,12 @@ const ot = (e, i = {}) => {
|
|
|
4276
4264
|
...(P.billing_period_configs ?? []).flatMap((x) => x.configs ?? [])
|
|
4277
4265
|
])
|
|
4278
4266
|
], a = C(
|
|
4279
|
-
() => (n.pricing.items ?? []).flatMap(
|
|
4267
|
+
() => (n.pricing.items ?? []).flatMap(m).flatMap((v) => Le(v)).filter((v) => {
|
|
4280
4268
|
var P;
|
|
4281
4269
|
return !ie((P = v.conditions) == null ? void 0 : P.configs);
|
|
4282
4270
|
}).map((v) => v.id)
|
|
4283
|
-
), d = C(() => a.value.length > 0),
|
|
4284
|
-
() => a.value.every((v) =>
|
|
4271
|
+
), d = C(() => a.value.length > 0), c = C(
|
|
4272
|
+
() => a.value.every((v) => g.isExpanded(v))
|
|
4285
4273
|
), s = be(!!n.defaultExpanded);
|
|
4286
4274
|
Be(
|
|
4287
4275
|
() => n.defaultExpanded,
|
|
@@ -4290,23 +4278,23 @@ const ot = (e, i = {}) => {
|
|
|
4290
4278
|
}
|
|
4291
4279
|
);
|
|
4292
4280
|
const E = (v) => {
|
|
4293
|
-
s.value !== v && (s.value = v,
|
|
4281
|
+
s.value !== v && (s.value = v, l("pricing-toggle", n.pricing.id));
|
|
4294
4282
|
}, p = C(
|
|
4295
4283
|
() => !!n.canCollapseNestedConditions && d.value
|
|
4296
|
-
), r = C(() => s.value &&
|
|
4297
|
-
() => r.value ?
|
|
4284
|
+
), r = C(() => s.value && c.value), _ = C(
|
|
4285
|
+
() => r.value ? f.value.collapseAllConditions ?? "Collapse all" : f.value.expandAllConditions ?? "Expand all"
|
|
4298
4286
|
), N = () => {
|
|
4299
4287
|
if (r.value) {
|
|
4300
|
-
|
|
4288
|
+
g.collapseAll(), E(!1);
|
|
4301
4289
|
return;
|
|
4302
4290
|
}
|
|
4303
|
-
E(!0),
|
|
4291
|
+
E(!0), g.expandAll();
|
|
4304
4292
|
}, L = (v) => v.status === "DEPRECATED", M = C(
|
|
4305
4293
|
() => (n.pricing.items || []).flatMap((v) => v.product_items || []).some(L)
|
|
4306
4294
|
), $ = C(
|
|
4307
4295
|
() => (n.pricing.items || []).flatMap((v) => v.product_items || []).every(L)
|
|
4308
4296
|
);
|
|
4309
|
-
return (v, P) => (
|
|
4297
|
+
return (v, P) => (t(), T(Al, {
|
|
4310
4298
|
class: H(["flex flex-col justify-between", { "print:hidden": !B(Zn)(e.pricing) }]),
|
|
4311
4299
|
"capped-width": "",
|
|
4312
4300
|
"is-controlled": "",
|
|
@@ -4329,29 +4317,29 @@ const ot = (e, i = {}) => {
|
|
|
4329
4317
|
variant: "body-sm"
|
|
4330
4318
|
}, {
|
|
4331
4319
|
default: o(() => [
|
|
4332
|
-
O(h(B(
|
|
4320
|
+
O(h(B(ut)(e.pricing, !(e.pricing.products && e.pricing.products.length > 1))), 1)
|
|
4333
4321
|
]),
|
|
4334
4322
|
_: 1
|
|
4335
4323
|
})
|
|
4336
4324
|
]),
|
|
4337
4325
|
"title-suffix": o(() => [
|
|
4338
|
-
e.pricing.products && e.pricing.products.length > 1 ? (
|
|
4326
|
+
e.pricing.products && e.pricing.products.length > 1 ? (t(), T(le, {
|
|
4339
4327
|
key: 0,
|
|
4340
4328
|
intent: "info",
|
|
4341
4329
|
class: "ml-2 align-middle"
|
|
4342
4330
|
}, {
|
|
4343
4331
|
default: o(() => [
|
|
4344
|
-
O(h(
|
|
4332
|
+
O(h(f.value.volumePooling), 1)
|
|
4345
4333
|
]),
|
|
4346
4334
|
_: 1
|
|
4347
4335
|
})) : b("", !0),
|
|
4348
|
-
e.showAddonChip && e.pricing.product_type && e.pricing.product_type === "ADDON" ? (
|
|
4336
|
+
e.showAddonChip && e.pricing.product_type && e.pricing.product_type === "ADDON" ? (t(), T(le, {
|
|
4349
4337
|
key: 1,
|
|
4350
4338
|
intent: "info",
|
|
4351
4339
|
class: "ml-2 align-middle"
|
|
4352
4340
|
}, {
|
|
4353
4341
|
default: o(() => [
|
|
4354
|
-
O(h(
|
|
4342
|
+
O(h(f.value.addon), 1)
|
|
4355
4343
|
]),
|
|
4356
4344
|
_: 1
|
|
4357
4345
|
})) : b("", !0),
|
|
@@ -4362,7 +4350,7 @@ const ot = (e, i = {}) => {
|
|
|
4362
4350
|
right: o(() => [
|
|
4363
4351
|
w("div", Ya, [
|
|
4364
4352
|
k(v.$slots, "right"),
|
|
4365
|
-
p.value ? (
|
|
4353
|
+
p.value ? (t(), T(B(De), {
|
|
4366
4354
|
key: 0,
|
|
4367
4355
|
intent: "secondary",
|
|
4368
4356
|
size: "xs",
|
|
@@ -4379,13 +4367,13 @@ const ot = (e, i = {}) => {
|
|
|
4379
4367
|
default: o(() => [
|
|
4380
4368
|
S(Je, { spacing: "none" }, {
|
|
4381
4369
|
default: o(() => [
|
|
4382
|
-
v.$slots["pricing-note"] ? (
|
|
4370
|
+
v.$slots["pricing-note"] ? (t(), u("div", Ka, [
|
|
4383
4371
|
k(v.$slots, "pricing-note")
|
|
4384
4372
|
])) : b("", !0),
|
|
4385
4373
|
S(Ga, {
|
|
4386
4374
|
pricing: e.pricing,
|
|
4387
4375
|
"grouped-pricing-item-ids": e.groupedPricingItemIds,
|
|
4388
|
-
i18n:
|
|
4376
|
+
i18n: f.value,
|
|
4389
4377
|
"are-non-billable-items-visible": e.showNonBillable,
|
|
4390
4378
|
schedule: e.schedule,
|
|
4391
4379
|
"credit-types-by-id": e.creditTypesById,
|
|
@@ -4395,20 +4383,20 @@ const ot = (e, i = {}) => {
|
|
|
4395
4383
|
k(v.$slots, "pricing-item-header", { item: x })
|
|
4396
4384
|
]),
|
|
4397
4385
|
"pricing-item-warning": o(() => [
|
|
4398
|
-
$.value ? (
|
|
4386
|
+
$.value ? (t(), T(ze, {
|
|
4399
4387
|
key: 0,
|
|
4400
4388
|
type: "warning"
|
|
4401
4389
|
}, {
|
|
4402
4390
|
default: o(() => [
|
|
4403
|
-
O(h(
|
|
4391
|
+
O(h(f.value.allItemsDeprecatedWarning), 1)
|
|
4404
4392
|
]),
|
|
4405
4393
|
_: 1
|
|
4406
|
-
})) : M.value ? (
|
|
4394
|
+
})) : M.value ? (t(), T(ze, {
|
|
4407
4395
|
key: 1,
|
|
4408
4396
|
type: "warning"
|
|
4409
4397
|
}, {
|
|
4410
4398
|
default: o(() => [
|
|
4411
|
-
O(h(
|
|
4399
|
+
O(h(f.value.someItemsDeprecatedWarning), 1)
|
|
4412
4400
|
]),
|
|
4413
4401
|
_: 1
|
|
4414
4402
|
})) : b("", !0)
|
|
@@ -4442,7 +4430,7 @@ const ot = (e, i = {}) => {
|
|
|
4442
4430
|
isEnabled: { type: Boolean }
|
|
4443
4431
|
},
|
|
4444
4432
|
setup(e) {
|
|
4445
|
-
return (i, n) => (
|
|
4433
|
+
return (i, n) => (t(), T(Ve, {
|
|
4446
4434
|
spacing: e.isEnabled ? "sm" : "none",
|
|
4447
4435
|
"border-style": e.isEnabled ? "solid" : "dashed"
|
|
4448
4436
|
}, {
|
|
@@ -4452,7 +4440,7 @@ const ot = (e, i = {}) => {
|
|
|
4452
4440
|
title: e.pricingGroup.name
|
|
4453
4441
|
}, {
|
|
4454
4442
|
"title-suffix": o(() => [
|
|
4455
|
-
e.pricingGroup.product_type && e.pricingGroup.product_type === "ADDON" ? (
|
|
4443
|
+
e.pricingGroup.product_type && e.pricingGroup.product_type === "ADDON" ? (t(), T(le, {
|
|
4456
4444
|
key: 0,
|
|
4457
4445
|
intent: "info",
|
|
4458
4446
|
class: "ml-2 align-middle print:hidden"
|
|
@@ -4504,18 +4492,18 @@ const ot = (e, i = {}) => {
|
|
|
4504
4492
|
},
|
|
4505
4493
|
emits: ["update-enabled-pricing"],
|
|
4506
4494
|
setup(e, { emit: i }) {
|
|
4507
|
-
const n = e,
|
|
4495
|
+
const n = e, l = i, f = C(
|
|
4508
4496
|
() => {
|
|
4509
4497
|
var p, r, _;
|
|
4510
4498
|
return (_ = (r = (p = n.schedule) == null ? void 0 : p.enabled_pricings) == null ? void 0 : r.find(
|
|
4511
4499
|
(N) => n.pricingGroup.pricings.some((L) => L.id === N.pricing_id)
|
|
4512
4500
|
)) == null ? void 0 : _.pricing_id;
|
|
4513
4501
|
}
|
|
4514
|
-
),
|
|
4515
|
-
|
|
4516
|
-
},
|
|
4502
|
+
), g = (p) => {
|
|
4503
|
+
l("update-enabled-pricing", f.value, p ?? "");
|
|
4504
|
+
}, m = C(() => n.pricingGroup.pricings.map((p) => ({
|
|
4517
4505
|
value: p.id
|
|
4518
|
-
}))), { renderPricingForPricingItem: a } = Kn(), d = C(() => n.pricingGroup.pricings.find((p) => p.id ===
|
|
4506
|
+
}))), { renderPricingForPricingItem: a } = Kn(), d = C(() => n.pricingGroup.pricings.find((p) => p.id === f.value)), c = C(() => d.value ?? n.pricingGroup.pricings[0]), s = C(() => {
|
|
4519
4507
|
var p, r, _, N;
|
|
4520
4508
|
return (r = (p = d.value) == null ? void 0 : p.items) != null && r[0] ? a({ pricingItem: (N = (_ = d.value) == null ? void 0 : _.items) == null ? void 0 : N[0] }) : "";
|
|
4521
4509
|
}), E = C(
|
|
@@ -4527,8 +4515,8 @@ const ot = (e, i = {}) => {
|
|
|
4527
4515
|
)
|
|
4528
4516
|
);
|
|
4529
4517
|
return Ji(() => {
|
|
4530
|
-
|
|
4531
|
-
}), (p, r) => (
|
|
4518
|
+
f.value || g(c.value.id);
|
|
4519
|
+
}), (p, r) => (t(), T(B(kn), {
|
|
4532
4520
|
"pricing-group": e.pricingGroup,
|
|
4533
4521
|
"is-enabled": e.isEnabled
|
|
4534
4522
|
}, {
|
|
@@ -4541,10 +4529,10 @@ const ot = (e, i = {}) => {
|
|
|
4541
4529
|
k(p.$slots, "pricing-group-settings", { pricingGroup: e.pricingGroup })
|
|
4542
4530
|
]),
|
|
4543
4531
|
pricings: o(() => [
|
|
4544
|
-
|
|
4532
|
+
c.value ? (t(), T(B(He), {
|
|
4545
4533
|
key: 0,
|
|
4546
4534
|
"default-expanded": !0,
|
|
4547
|
-
pricing:
|
|
4535
|
+
pricing: c.value,
|
|
4548
4536
|
"pricing-plan-version-id": e.pricingPlanVersion.id,
|
|
4549
4537
|
"pricing-plan-id": e.pricingPlanVersion.pricing_plan_id,
|
|
4550
4538
|
"show-non-billable": e.showNonBillable,
|
|
@@ -4557,13 +4545,13 @@ const ot = (e, i = {}) => {
|
|
|
4557
4545
|
}, {
|
|
4558
4546
|
"pre-header": o(() => [
|
|
4559
4547
|
S(Jn, {
|
|
4560
|
-
"model-value":
|
|
4561
|
-
options:
|
|
4548
|
+
"model-value": f.value,
|
|
4549
|
+
options: m.value,
|
|
4562
4550
|
name: "pricing-group-single-select",
|
|
4563
4551
|
variant: "stepped-ghost",
|
|
4564
4552
|
size: "lg",
|
|
4565
4553
|
class: "border-b",
|
|
4566
|
-
"onUpdate:modelValue":
|
|
4554
|
+
"onUpdate:modelValue": g
|
|
4567
4555
|
}, null, 8, ["model-value", "options"])
|
|
4568
4556
|
]),
|
|
4569
4557
|
"pricing-note": o(() => [
|
|
@@ -4577,11 +4565,11 @@ const ot = (e, i = {}) => {
|
|
|
4577
4565
|
]),
|
|
4578
4566
|
id: o(() => [
|
|
4579
4567
|
k(p.$slots, "pricing-title-suffix", {
|
|
4580
|
-
id:
|
|
4568
|
+
id: c.value.id
|
|
4581
4569
|
})
|
|
4582
4570
|
]),
|
|
4583
4571
|
right: o(() => [
|
|
4584
|
-
s.value ? (
|
|
4572
|
+
s.value ? (t(), T(Z, {
|
|
4585
4573
|
key: 0,
|
|
4586
4574
|
variant: "body-xs",
|
|
4587
4575
|
color: "secondary",
|
|
@@ -4637,7 +4625,7 @@ const ot = (e, i = {}) => {
|
|
|
4637
4625
|
},
|
|
4638
4626
|
emits: ["pricing-toggle", "pricing-toggled", "delete-pricing", "update-enabled-pricing"],
|
|
4639
4627
|
setup(e) {
|
|
4640
|
-
const i = e, n = C(() => i.i18n ?? $n),
|
|
4628
|
+
const i = e, n = C(() => i.i18n ?? $n), l = C(() => i.enabledPricings ?? []), f = C(
|
|
4641
4629
|
() => {
|
|
4642
4630
|
var a;
|
|
4643
4631
|
return Object.fromEntries(
|
|
@@ -4647,17 +4635,17 @@ const ot = (e, i = {}) => {
|
|
|
4647
4635
|
])
|
|
4648
4636
|
);
|
|
4649
4637
|
}
|
|
4650
|
-
),
|
|
4651
|
-
return (a, d) => (
|
|
4638
|
+
), g = (a) => a.product_type === "DEFAULT" || a.pricings.some((d) => l.value.includes(d.id)), m = (a) => a.product_type === "DEFAULT" || l.value.includes(a.id);
|
|
4639
|
+
return (a, d) => (t(), u(z, null, [
|
|
4652
4640
|
k(a.$slots, "header", {}, void 0, !0),
|
|
4653
|
-
e.pricingPlanVersion && (!e.pricingPlanVersion.pricing_categories || e.pricingPlanVersion.pricing_categories.length === 0) ? k(a.$slots, "empty-state", {}, void 0, !0, 0) : e.pricingPlanVersion ? (
|
|
4641
|
+
e.pricingPlanVersion && (!e.pricingPlanVersion.pricing_categories || e.pricingPlanVersion.pricing_categories.length === 0) ? k(a.$slots, "empty-state", {}, void 0, !0, 0) : e.pricingPlanVersion ? (t(!0), u(z, { key: 1 }, Q(e.pricingPlanVersion.pricing_categories ?? [], (c, s) => {
|
|
4654
4642
|
var E, p;
|
|
4655
|
-
return
|
|
4656
|
-
key:
|
|
4643
|
+
return t(), u("div", {
|
|
4644
|
+
key: c.product_category_id,
|
|
4657
4645
|
class: H({ "mt-6": s > 0 })
|
|
4658
4646
|
}, [
|
|
4659
|
-
(E =
|
|
4660
|
-
w("span", es, h((p =
|
|
4647
|
+
(E = c.product_category) != null && E.name ? (t(), u("h2", Qa, [
|
|
4648
|
+
w("span", es, h((p = c.product_category) == null ? void 0 : p.name), 1),
|
|
4661
4649
|
w("div", null, [
|
|
4662
4650
|
S(le, {
|
|
4663
4651
|
size: "sm",
|
|
@@ -4668,7 +4656,7 @@ const ot = (e, i = {}) => {
|
|
|
4668
4656
|
var r, _;
|
|
4669
4657
|
return [
|
|
4670
4658
|
O(h(n.value.productsCount(
|
|
4671
|
-
(((r =
|
|
4659
|
+
(((r = c.pricing_groups) == null ? void 0 : r.length) ?? 0) + (((_ = c.pricings) == null ? void 0 : _.length) ?? 0)
|
|
4672
4660
|
)), 1)
|
|
4673
4661
|
];
|
|
4674
4662
|
}),
|
|
@@ -4677,14 +4665,14 @@ const ot = (e, i = {}) => {
|
|
|
4677
4665
|
])
|
|
4678
4666
|
])) : b("", !0),
|
|
4679
4667
|
w("div", is, [
|
|
4680
|
-
(
|
|
4668
|
+
(t(!0), u(z, null, Q(c.pricing_groups, (r) => (t(), u(z, {
|
|
4681
4669
|
key: r.id
|
|
4682
4670
|
}, [
|
|
4683
|
-
e.enablePricingGroupSelection && r.selection_constraint === "EXACTLY_ONE" && r.pricings.length >= ts ? (
|
|
4671
|
+
e.enablePricingGroupSelection && r.selection_constraint === "EXACTLY_ONE" && r.pricings.length >= ts ? (t(), T(Xa, {
|
|
4684
4672
|
key: 0,
|
|
4685
4673
|
"pricing-group": r,
|
|
4686
4674
|
"pricing-plan-version": e.pricingPlanVersion,
|
|
4687
|
-
"is-enabled":
|
|
4675
|
+
"is-enabled": g(r),
|
|
4688
4676
|
i18n: n.value,
|
|
4689
4677
|
schedule: e.schedule,
|
|
4690
4678
|
"show-non-billable": e.showNonBillable,
|
|
@@ -4699,10 +4687,10 @@ const ot = (e, i = {}) => {
|
|
|
4699
4687
|
k(a.$slots, "pricing-group-settings", { pricingGroup: r }, void 0, !0)
|
|
4700
4688
|
]),
|
|
4701
4689
|
_: 2
|
|
4702
|
-
}, 1032, ["pricing-group", "pricing-plan-version", "is-enabled", "i18n", "schedule", "show-non-billable"])) : (
|
|
4690
|
+
}, 1032, ["pricing-group", "pricing-plan-version", "is-enabled", "i18n", "schedule", "show-non-billable"])) : (t(), T(B(kn), {
|
|
4703
4691
|
key: 1,
|
|
4704
4692
|
"pricing-group": r,
|
|
4705
|
-
"is-enabled":
|
|
4693
|
+
"is-enabled": g(r),
|
|
4706
4694
|
i18n: n.value
|
|
4707
4695
|
}, {
|
|
4708
4696
|
id: o(() => [
|
|
@@ -4715,9 +4703,9 @@ const ot = (e, i = {}) => {
|
|
|
4715
4703
|
]),
|
|
4716
4704
|
pricings: o(() => [
|
|
4717
4705
|
w("div", ns, [
|
|
4718
|
-
(
|
|
4706
|
+
(t(!0), u(z, null, Q(r.pricings, (_) => {
|
|
4719
4707
|
var N, L;
|
|
4720
|
-
return
|
|
4708
|
+
return t(), T(B(He), {
|
|
4721
4709
|
key: _.id,
|
|
4722
4710
|
"default-expanded": e.defaultExpanded === !0 || ((N = e.expandedPricings) == null ? void 0 : N.includes(_.id)),
|
|
4723
4711
|
pricing: _,
|
|
@@ -4729,8 +4717,8 @@ const ot = (e, i = {}) => {
|
|
|
4729
4717
|
class: "flex flex-col",
|
|
4730
4718
|
i18n: n.value,
|
|
4731
4719
|
"show-addon-chip": !1,
|
|
4732
|
-
"is-enabled":
|
|
4733
|
-
"credit-types-by-id":
|
|
4720
|
+
"is-enabled": m(_),
|
|
4721
|
+
"credit-types-by-id": f.value,
|
|
4734
4722
|
"can-collapse-nested-conditions": e.canCollapseNestedConditions,
|
|
4735
4723
|
onPricingToggled: (M) => a.$emit("pricing-toggled", _.id, M),
|
|
4736
4724
|
onPricingToggle: d[1] || (d[1] = (M) => a.$emit("pricing-toggle", M))
|
|
@@ -4778,9 +4766,9 @@ const ot = (e, i = {}) => {
|
|
|
4778
4766
|
_: 2
|
|
4779
4767
|
}, 1032, ["pricing-group", "is-enabled", "i18n"]))
|
|
4780
4768
|
], 64))), 128)),
|
|
4781
|
-
(
|
|
4769
|
+
(t(!0), u(z, null, Q(c.pricings, (r) => {
|
|
4782
4770
|
var _, N;
|
|
4783
|
-
return
|
|
4771
|
+
return t(), T(B(He), {
|
|
4784
4772
|
key: r.id,
|
|
4785
4773
|
"default-expanded": e.defaultExpanded === !0 || ((_ = e.expandedPricings) == null ? void 0 : _.includes(r.id)),
|
|
4786
4774
|
pricing: r,
|
|
@@ -4791,8 +4779,8 @@ const ot = (e, i = {}) => {
|
|
|
4791
4779
|
"is-customized-plan": !!e.pricingPlanVersion.copied_from_pricing_plan_version_id,
|
|
4792
4780
|
class: "flex flex-col",
|
|
4793
4781
|
i18n: n.value,
|
|
4794
|
-
"is-enabled":
|
|
4795
|
-
"credit-types-by-id":
|
|
4782
|
+
"is-enabled": m(r),
|
|
4783
|
+
"credit-types-by-id": f.value,
|
|
4796
4784
|
schedule: e.schedule,
|
|
4797
4785
|
"can-collapse-nested-conditions": e.canCollapseNestedConditions,
|
|
4798
4786
|
onPricingToggled: (L) => a.$emit("pricing-toggled", r.id, L),
|
|
@@ -4846,6 +4834,7 @@ const ot = (e, i = {}) => {
|
|
|
4846
4834
|
props: {
|
|
4847
4835
|
schedules: {},
|
|
4848
4836
|
isEditable: { type: Boolean },
|
|
4837
|
+
canAddSchedule: { type: Boolean, default: !0 },
|
|
4849
4838
|
openScheduleId: {},
|
|
4850
4839
|
i18n: {},
|
|
4851
4840
|
displayDisabledAddonPricings: { type: Boolean, default: !1 },
|
|
@@ -4859,23 +4848,23 @@ const ot = (e, i = {}) => {
|
|
|
4859
4848
|
emits: ["add-schedule", "toggle-schedule"],
|
|
4860
4849
|
setup(e, { emit: i }) {
|
|
4861
4850
|
var n;
|
|
4862
|
-
const
|
|
4851
|
+
const l = e, f = i, g = C(() => l.i18n ?? qa), { formatDate: m } = ae(), a = (x) => l.timezone ? m({ date: x, format: "date", offsetType: "offsetted", timezone: l.timezone }) : m({ date: x, format: "date", offsetType: "local" }), d = (x) => `(${x.start_at ? g.value.startsAt(a(x.start_at)) : g.value.startOfSchedule} - ${x.end_at ? g.value.endsAt(a(x.end_at)) : g.value.endOfSchedule})`, { getIsOpen: c, toggle: s } = Un({
|
|
4863
4852
|
closeOthers: !0,
|
|
4864
|
-
initialToggledItems: [(n =
|
|
4853
|
+
initialToggledItems: [(n = l.schedules[0]) == null ? void 0 : n.schedule.id]
|
|
4865
4854
|
}), E = be(null);
|
|
4866
|
-
|
|
4855
|
+
ot(E, ".collapsible-card-print-wrapper", {
|
|
4867
4856
|
companionSelector: ".category-heading",
|
|
4868
4857
|
expandSelectors: [".collapsible-list-item-content", ".collapsible-card-print-content"],
|
|
4869
4858
|
protectedTopSelectors: [".card-header-print-root", ".section-label", ".pricing-item-block"],
|
|
4870
|
-
enabled:
|
|
4859
|
+
enabled: l.forPrint
|
|
4871
4860
|
});
|
|
4872
4861
|
const p = C(
|
|
4873
|
-
() =>
|
|
4862
|
+
() => l.schedules.map((x, V) => ({
|
|
4874
4863
|
...x,
|
|
4875
4864
|
inferredPricingPlanVersion: x.selectedPricingPlanVersion && Fi(
|
|
4876
4865
|
x.selectedPricingPlanVersion,
|
|
4877
4866
|
x.schedule,
|
|
4878
|
-
{ displayDisabledAddonPricings:
|
|
4867
|
+
{ displayDisabledAddonPricings: l.displayDisabledAddonPricings }
|
|
4879
4868
|
),
|
|
4880
4869
|
scheduleNumber: V + 1,
|
|
4881
4870
|
cancelled: !1
|
|
@@ -4887,24 +4876,24 @@ const ot = (e, i = {}) => {
|
|
|
4887
4876
|
inferredPricingPlanVersion: V.selectedPricingPlanVersion && Fi(
|
|
4888
4877
|
V.selectedPricingPlanVersion,
|
|
4889
4878
|
V.schedule,
|
|
4890
|
-
{ displayDisabledAddonPricings:
|
|
4879
|
+
{ displayDisabledAddonPricings: l.displayDisabledAddonPricings }
|
|
4891
4880
|
),
|
|
4892
4881
|
scheduleNumber: y + 1
|
|
4893
4882
|
}))
|
|
4894
4883
|
];
|
|
4895
|
-
if (
|
|
4884
|
+
if (l.cancellationDate) {
|
|
4896
4885
|
let V = 0;
|
|
4897
4886
|
const y = {
|
|
4898
|
-
cancellationDate:
|
|
4899
|
-
cancellationReason:
|
|
4887
|
+
cancellationDate: l.cancellationDate,
|
|
4888
|
+
cancellationReason: l.cancellationReason
|
|
4900
4889
|
}, D = x.findLastIndex(
|
|
4901
|
-
(I) => Ee(I) && (I.schedule.start_at ?? "") < (
|
|
4890
|
+
(I) => Ee(I) && (I.schedule.start_at ?? "") < (l.cancellationDate ?? "")
|
|
4902
4891
|
);
|
|
4903
4892
|
if (D === -1)
|
|
4904
4893
|
x = [y, ...x];
|
|
4905
4894
|
else {
|
|
4906
4895
|
const I = x[D];
|
|
4907
|
-
V = Ee(I) && (I.schedule.end_at ?? "") >= (
|
|
4896
|
+
V = Ee(I) && (I.schedule.end_at ?? "") >= (l.cancellationDate ?? "") ? D : D + 1, V === l.schedules.length + 1 ? x = [...x, y] : x.splice(V, 0, y);
|
|
4908
4897
|
}
|
|
4909
4898
|
return x.map((I, A) => Ee(I) ? {
|
|
4910
4899
|
...I,
|
|
@@ -4923,24 +4912,24 @@ const ot = (e, i = {}) => {
|
|
|
4923
4912
|
x.inferredPricingPlanVersion,
|
|
4924
4913
|
x.schedule.pricing_currency
|
|
4925
4914
|
) : {}, L = (x) => Tt(x.schedule), M = (x) => {
|
|
4926
|
-
if (
|
|
4915
|
+
if (l.isExpandedByDefault)
|
|
4927
4916
|
return;
|
|
4928
4917
|
const V = _(x) ?? x.inferredPricingPlanVersion;
|
|
4929
4918
|
return kt([], V);
|
|
4930
|
-
}, $ = C(() =>
|
|
4931
|
-
$.value ? s(x.id) :
|
|
4919
|
+
}, $ = C(() => l.openScheduleId === void 0), v = (x) => $.value ? c(x.id) : l.openScheduleId === x.id, P = (x) => {
|
|
4920
|
+
$.value ? s(x.id) : f("toggle-schedule", x.id);
|
|
4932
4921
|
};
|
|
4933
|
-
return (x, V) => (
|
|
4922
|
+
return (x, V) => (t(), u("div", {
|
|
4934
4923
|
ref_key: "containerRef",
|
|
4935
4924
|
ref: E
|
|
4936
4925
|
}, [
|
|
4937
4926
|
S(Bt, j(x.$attrs, {
|
|
4938
|
-
"has-add-button": e.isEditable,
|
|
4927
|
+
"has-add-button": e.isEditable && e.canAddSchedule,
|
|
4939
4928
|
onAdd: V[0] || (V[0] = (y) => x.$emit("add-schedule"))
|
|
4940
4929
|
}), {
|
|
4941
4930
|
default: o(() => [
|
|
4942
|
-
(
|
|
4943
|
-
B(ja)(y) ? (
|
|
4931
|
+
(t(!0), u(z, null, Q(r.value, (y, D) => (t(), u(z, { key: D }, [
|
|
4932
|
+
B(ja)(y) ? (t(), T(qi, {
|
|
4944
4933
|
key: 0,
|
|
4945
4934
|
"hide-collapse-icon": ""
|
|
4946
4935
|
}, {
|
|
@@ -4956,13 +4945,13 @@ const ot = (e, i = {}) => {
|
|
|
4956
4945
|
weight: "semibold"
|
|
4957
4946
|
}, {
|
|
4958
4947
|
default: o(() => [
|
|
4959
|
-
O(h(
|
|
4960
|
-
e.timezone ? B(
|
|
4948
|
+
O(h(g.value.subscriptionCancelled(
|
|
4949
|
+
e.timezone ? B(m)({
|
|
4961
4950
|
date: y.cancellationDate,
|
|
4962
4951
|
format: "date",
|
|
4963
4952
|
offsetType: "offsetted",
|
|
4964
4953
|
timezone: e.timezone
|
|
4965
|
-
}) : B(
|
|
4954
|
+
}) : B(m)({
|
|
4966
4955
|
date: y.cancellationDate,
|
|
4967
4956
|
format: "dateTime",
|
|
4968
4957
|
offsetType: "local"
|
|
@@ -4971,7 +4960,7 @@ const ot = (e, i = {}) => {
|
|
|
4971
4960
|
]),
|
|
4972
4961
|
_: 2
|
|
4973
4962
|
}, 1024),
|
|
4974
|
-
y.cancellationReason ? (
|
|
4963
|
+
y.cancellationReason ? (t(), T(Z, {
|
|
4975
4964
|
key: 0,
|
|
4976
4965
|
variant: "body-xs",
|
|
4977
4966
|
color: "secondary"
|
|
@@ -4984,7 +4973,7 @@ const ot = (e, i = {}) => {
|
|
|
4984
4973
|
]),
|
|
4985
4974
|
_: 2
|
|
4986
4975
|
}, 1024)) : b("", !0),
|
|
4987
|
-
B(Ee)(y) ? (
|
|
4976
|
+
B(Ee)(y) ? (t(), T(qi, {
|
|
4988
4977
|
key: 1,
|
|
4989
4978
|
"item-number": y.scheduleNumber,
|
|
4990
4979
|
"is-open": v(y.schedule),
|
|
@@ -5001,7 +4990,7 @@ const ot = (e, i = {}) => {
|
|
|
5001
4990
|
class: "print:text-sm"
|
|
5002
4991
|
}, {
|
|
5003
4992
|
default: o(() => [
|
|
5004
|
-
O(h(
|
|
4993
|
+
O(h(g.value.scheduleNumber(y.scheduleNumber)), 1)
|
|
5005
4994
|
]),
|
|
5006
4995
|
_: 2
|
|
5007
4996
|
}, 1024),
|
|
@@ -5014,7 +5003,7 @@ const ot = (e, i = {}) => {
|
|
|
5014
5003
|
]),
|
|
5015
5004
|
_: 2
|
|
5016
5005
|
}, 1024),
|
|
5017
|
-
y.schedule.type === "TRIAL" && y.schedule.start_at && y.schedule.end_at ? (
|
|
5006
|
+
y.schedule.type === "TRIAL" && y.schedule.start_at && y.schedule.end_at ? (t(), T(Qn, {
|
|
5018
5007
|
key: 0,
|
|
5019
5008
|
"trial-period": B(et)(
|
|
5020
5009
|
new Date(y.schedule.start_at),
|
|
@@ -5031,40 +5020,40 @@ const ot = (e, i = {}) => {
|
|
|
5031
5020
|
item: y,
|
|
5032
5021
|
itemIndex: y.scheduleNumber - 1
|
|
5033
5022
|
}, () => [
|
|
5034
|
-
e.timezone ? (
|
|
5023
|
+
e.timezone ? (t(), T(Z, {
|
|
5035
5024
|
key: 0,
|
|
5036
5025
|
variant: "body-xs",
|
|
5037
5026
|
class: "print:hidden"
|
|
5038
5027
|
}, {
|
|
5039
5028
|
default: o(() => [
|
|
5040
|
-
O(h(y.schedule.start_at ? B(
|
|
5029
|
+
O(h(y.schedule.start_at ? B(m)({
|
|
5041
5030
|
date: y.schedule.start_at,
|
|
5042
5031
|
format: "dateTime",
|
|
5043
5032
|
offsetType: "offsetted",
|
|
5044
5033
|
timezone: e.timezone
|
|
5045
|
-
}) :
|
|
5034
|
+
}) : g.value.startOfSchedule) + " - " + h(y.schedule.end_at ? B(m)({
|
|
5046
5035
|
date: y.schedule.end_at,
|
|
5047
5036
|
format: "dateTime",
|
|
5048
5037
|
offsetType: "offsetted",
|
|
5049
5038
|
timezone: e.timezone
|
|
5050
|
-
}) :
|
|
5039
|
+
}) : g.value.endOfSchedule), 1)
|
|
5051
5040
|
]),
|
|
5052
5041
|
_: 2
|
|
5053
|
-
}, 1024)) : (
|
|
5042
|
+
}, 1024)) : (t(), T(Z, {
|
|
5054
5043
|
key: 1,
|
|
5055
5044
|
variant: "body-xs",
|
|
5056
5045
|
class: "print:hidden"
|
|
5057
5046
|
}, {
|
|
5058
5047
|
default: o(() => [
|
|
5059
|
-
O(h(y.schedule.start_at ? B(
|
|
5048
|
+
O(h(y.schedule.start_at ? B(m)({
|
|
5060
5049
|
date: y.schedule.start_at,
|
|
5061
5050
|
format: "dateTime",
|
|
5062
5051
|
offsetType: "local"
|
|
5063
|
-
}) :
|
|
5052
|
+
}) : g.value.startOfSchedule) + " - " + h(y.schedule.end_at ? B(m)({
|
|
5064
5053
|
date: y.schedule.end_at,
|
|
5065
5054
|
format: "dateTime",
|
|
5066
5055
|
offsetType: "local"
|
|
5067
|
-
}) :
|
|
5056
|
+
}) : g.value.endOfSchedule), 1)
|
|
5068
5057
|
]),
|
|
5069
5058
|
_: 2
|
|
5070
5059
|
}, 1024))
|
|
@@ -5081,7 +5070,7 @@ const ot = (e, i = {}) => {
|
|
|
5081
5070
|
),
|
|
5082
5071
|
timezone: e.timezone
|
|
5083
5072
|
}, () => [
|
|
5084
|
-
y.selectedPricingPlan ? (
|
|
5073
|
+
y.selectedPricingPlan ? (t(), u("div", as, [
|
|
5085
5074
|
S(Xn, {
|
|
5086
5075
|
initials: y.selectedPricingPlan.name[0],
|
|
5087
5076
|
"color-hash": y.selectedPricingPlan.id,
|
|
@@ -5093,7 +5082,7 @@ const ot = (e, i = {}) => {
|
|
|
5093
5082
|
default: o(() => {
|
|
5094
5083
|
var I;
|
|
5095
5084
|
return [
|
|
5096
|
-
O(h(
|
|
5085
|
+
O(h(g.value.versionNumber(
|
|
5097
5086
|
((I = y.inferredPricingPlanVersion) == null ? void 0 : I.version) ?? 1
|
|
5098
5087
|
)), 1)
|
|
5099
5088
|
];
|
|
@@ -5101,28 +5090,28 @@ const ot = (e, i = {}) => {
|
|
|
5101
5090
|
_: 2
|
|
5102
5091
|
}, 1024)
|
|
5103
5092
|
])) : b("", !0),
|
|
5104
|
-
y.inferredPricingPlanVersion ? (
|
|
5093
|
+
y.inferredPricingPlanVersion ? (t(), u("div", rs, [
|
|
5105
5094
|
S(Ki, {
|
|
5106
5095
|
"pricing-plan-version": _(y) ?? y.inferredPricingPlanVersion,
|
|
5107
5096
|
"grouped-pricing-item-ids-by-pricing": N(y),
|
|
5108
5097
|
"enabled-pricings": B(Zi)(y.schedule),
|
|
5109
5098
|
"default-expanded": e.isExpandedByDefault,
|
|
5110
5099
|
"expanded-pricings": M(y),
|
|
5111
|
-
i18n:
|
|
5100
|
+
i18n: g.value,
|
|
5112
5101
|
"enable-pricing-group-selection": e.enablePricingGroupSelection,
|
|
5113
5102
|
"show-non-billable": ""
|
|
5114
5103
|
}, {
|
|
5115
5104
|
"pricing-item-config-additions": o(({ config: I }) => [
|
|
5116
|
-
(
|
|
5105
|
+
(t(!0), u(z, null, Q([
|
|
5117
5106
|
B(pt)(
|
|
5118
5107
|
y.schedule,
|
|
5119
5108
|
I
|
|
5120
5109
|
)
|
|
5121
|
-
], (A, R) => (
|
|
5122
|
-
A ? (
|
|
5110
|
+
], (A, R) => (t(), u(z, null, [
|
|
5111
|
+
A ? (t(), T(Tl, {
|
|
5123
5112
|
key: R,
|
|
5124
5113
|
markup: A,
|
|
5125
|
-
i18n:
|
|
5114
|
+
i18n: g.value
|
|
5126
5115
|
}, null, 8, ["markup", "i18n"])) : b("", !0)
|
|
5127
5116
|
], 64))), 256)),
|
|
5128
5117
|
k(x.$slots, "pricing-item-config-additions", {
|
|
@@ -5134,14 +5123,14 @@ const ot = (e, i = {}) => {
|
|
|
5134
5123
|
_: 2
|
|
5135
5124
|
}, 1032, ["pricing-plan-version", "grouped-pricing-item-ids-by-pricing", "enabled-pricings", "default-expanded", "expanded-pricings", "i18n", "enable-pricing-group-selection"])
|
|
5136
5125
|
])) : b("", !0),
|
|
5137
|
-
L(y) ? (
|
|
5126
|
+
L(y) ? (t(), u("div", ds, [
|
|
5138
5127
|
S(Z, {
|
|
5139
5128
|
variant: "label",
|
|
5140
5129
|
tag: "h3",
|
|
5141
5130
|
class: "mb-2"
|
|
5142
5131
|
}, {
|
|
5143
5132
|
default: o(() => [
|
|
5144
|
-
O(h(
|
|
5133
|
+
O(h(g.value.directPricingTitle), 1)
|
|
5145
5134
|
]),
|
|
5146
5135
|
_: 1
|
|
5147
5136
|
}),
|
|
@@ -5149,34 +5138,34 @@ const ot = (e, i = {}) => {
|
|
|
5149
5138
|
"pricing-plan-version": L(y),
|
|
5150
5139
|
"enabled-pricings": B(Zi)(y.schedule),
|
|
5151
5140
|
"default-expanded": e.isExpandedByDefault,
|
|
5152
|
-
i18n:
|
|
5141
|
+
i18n: g.value,
|
|
5153
5142
|
"show-non-billable": ""
|
|
5154
5143
|
}, null, 8, ["pricing-plan-version", "enabled-pricings", "default-expanded", "i18n"])
|
|
5155
5144
|
])) : b("", !0),
|
|
5156
|
-
y.schedule.discount ? (
|
|
5145
|
+
y.schedule.discount ? (t(), T(_l, {
|
|
5157
5146
|
key: 3,
|
|
5158
5147
|
discount: y.schedule.discount,
|
|
5159
5148
|
"read-only": "",
|
|
5160
5149
|
"pricing-plan-version": y.inferredPricingPlanVersion,
|
|
5161
5150
|
timezone: e.timezone,
|
|
5162
5151
|
i18n: {
|
|
5163
|
-
...
|
|
5164
|
-
title:
|
|
5165
|
-
orderOfApplicationExplanation:
|
|
5152
|
+
...g.value,
|
|
5153
|
+
title: g.value.discountsTitle,
|
|
5154
|
+
orderOfApplicationExplanation: g.value.discountsOrderOfApplicationExplanation
|
|
5166
5155
|
}
|
|
5167
5156
|
}, null, 8, ["discount", "pricing-plan-version", "timezone", "i18n"])) : b("", !0),
|
|
5168
|
-
y.schedule.markup ? (
|
|
5157
|
+
y.schedule.markup ? (t(), T(wl, {
|
|
5169
5158
|
key: 4,
|
|
5170
5159
|
markup: y.schedule.markup,
|
|
5171
5160
|
"pricing-plan-version": y.inferredPricingPlanVersion,
|
|
5172
5161
|
timezone: e.timezone,
|
|
5173
5162
|
i18n: {
|
|
5174
|
-
...
|
|
5175
|
-
title:
|
|
5176
|
-
orderOfApplicationExplanation:
|
|
5163
|
+
...g.value,
|
|
5164
|
+
title: g.value.markupsTitle,
|
|
5165
|
+
orderOfApplicationExplanation: g.value.markupsOrderOfApplicationExplanation
|
|
5177
5166
|
}
|
|
5178
5167
|
}, null, 8, ["markup", "pricing-plan-version", "timezone", "i18n"])) : b("", !0),
|
|
5179
|
-
y.schedule && y.schedule.commitment ? (
|
|
5168
|
+
y.schedule && y.schedule.commitment ? (t(), T(dl, {
|
|
5180
5169
|
key: 5,
|
|
5181
5170
|
class: "mt-2",
|
|
5182
5171
|
commitment: y.schedule.commitment,
|
|
@@ -5184,9 +5173,9 @@ const ot = (e, i = {}) => {
|
|
|
5184
5173
|
"pricing-plan-version": y.inferredPricingPlanVersion,
|
|
5185
5174
|
timezone: e.timezone,
|
|
5186
5175
|
i18n: {
|
|
5187
|
-
...
|
|
5188
|
-
title:
|
|
5189
|
-
orderOfApplicationExplanation:
|
|
5176
|
+
...g.value,
|
|
5177
|
+
title: g.value.commitmentsTitle,
|
|
5178
|
+
orderOfApplicationExplanation: g.value.commitmentsOrderOfApplicationExplanation
|
|
5190
5179
|
}
|
|
5191
5180
|
}, null, 8, ["commitment", "pricing-plan-version", "timezone", "i18n"])) : b("", !0)
|
|
5192
5181
|
], !0)
|
|
@@ -5199,16 +5188,14 @@ const ot = (e, i = {}) => {
|
|
|
5199
5188
|
}, 16, ["has-add-button"])
|
|
5200
5189
|
], 512));
|
|
5201
5190
|
}
|
|
5202
|
-
}), us = /* @__PURE__ */ se(cs, [["__scopeId", "data-v-
|
|
5191
|
+
}), us = /* @__PURE__ */ se(cs, [["__scopeId", "data-v-06576f19"]]), zs = /* @__PURE__ */ U({
|
|
5203
5192
|
__name: "SubscriptionSchedules",
|
|
5204
5193
|
props: {
|
|
5205
|
-
schedulesData: { type: Array }
|
|
5206
|
-
configuration: { type: Object },
|
|
5207
|
-
isLoading: { type: Boolean }
|
|
5194
|
+
schedulesData: { type: Array }
|
|
5208
5195
|
},
|
|
5209
5196
|
setup(e) {
|
|
5210
5197
|
const { $t: i } = ae();
|
|
5211
|
-
return (n,
|
|
5198
|
+
return (n, l) => (t(), T(B(Dn), {
|
|
5212
5199
|
class: "sv-subscription-schedules sv-root sv-component",
|
|
5213
5200
|
"no-border": "",
|
|
5214
5201
|
"no-spacing": "",
|
|
@@ -5230,5 +5217,5 @@ const ot = (e, i = {}) => {
|
|
|
5230
5217
|
}
|
|
5231
5218
|
});
|
|
5232
5219
|
export {
|
|
5233
|
-
|
|
5220
|
+
zs as _
|
|
5234
5221
|
};
|