@solvimon/solvimon-web 0.1.0-alpha.30 → 0.1.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -91
- package/dist/AddPaymentMethodModal-Bs_aOOCX.mjs +97 -0
- package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs +89 -0
- package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-xhsk_7Gn.mjs} +1 -1
- package/dist/AuthProvider.handle-CUO6Qj-5.mjs +46 -0
- package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-DrbtUiLO.mjs} +1 -1
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs +64 -0
- package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
- package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs +340 -0
- package/dist/BillingInformationModal-crgTNGf4.mjs +85 -0
- package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-BHbanjR0.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-DYiFtw1n.mjs} +44 -43
- package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-Dc6-PjEn.mjs} +2 -2
- package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-CvX6O2IM.mjs} +10 -10
- package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-DQWt9osz.mjs} +3 -3
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs +217 -0
- package/dist/CustomerShippingAddresses-C0c-4D2W.mjs +282 -0
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs} +992 -1100
- package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-ChN6fnrH.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-CWIVt5q9.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-CQ64C8dt.mjs} +1 -1
- package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-BXzwMvVk.mjs} +2 -2
- package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-GyanM-JQ.mjs} +3 -3
- package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-CxiwRZYs.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs} +7 -7
- package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-BvnikfEH.mjs} +6 -6
- package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs} +3 -3
- package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-3ACRco55.mjs} +3 -3
- package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs +20 -0
- package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CDjfZDDx.mjs} +138 -127
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs +789 -0
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-HUazLER6.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs} +4 -4
- package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-ZnIjTyda.mjs} +1 -1
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs +161 -0
- package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-sbw3AoKS.mjs} +302 -282
- package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-4JmKEwbS.mjs} +126 -117
- package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-DAabE41t.mjs} +23 -21
- package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-MmCUSJLE.mjs} +1 -1
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs +165 -0
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs} +6 -6
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs} +28 -26
- package/dist/PaymentMethodsModal-CjpNw4kX.mjs +192 -0
- package/dist/PlanCustomizationEditor-BDWm_z2w.mjs +864 -0
- package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-B7YYhv97.mjs} +3 -3
- package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-DIyeKrAp.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-C6J8C7JS.mjs} +7 -7
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs} +16 -15
- package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-hDmUAKIA.mjs} +5 -5
- package/dist/{Section.vue.es-Oqn1wGPZ.mjs → Section.vue.es-CwKTCeZ1.mjs} +1 -1
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs} +2 -2
- package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs +144 -0
- package/dist/ShippingAddressesModal-CNXxkxnJ.mjs +283 -0
- package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-GkrOtOVa.mjs} +4 -4
- package/dist/SubscriptionCancellationModal-C_xFPx1I.mjs +4 -0
- package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs +240 -0
- package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs +64 -0
- package/dist/SubscriptionDetails.entry.ce-DuP8TtKu.mjs +764 -0
- package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-DosBeXD7.mjs} +1 -1
- package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs} +1948 -1965
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs +90 -0
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CHlXP_2x.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs} +133 -108
- package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
- package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-4HaXi8RP.mjs} +18 -18
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-BJmlNrXT.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs} +1 -1
- package/dist/TrialChip.vue.es-CUfJ4SK3.mjs +47 -0
- package/dist/addonQuantity-BvoYTajN.mjs +128 -0
- package/dist/adyen-D4em6EgU.mjs +99 -0
- package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
- package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
- package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
- package/dist/components/Invoice/Invoice.mjs +426 -426
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
- package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
- package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
- package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
- package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
- package/dist/core/events.types.d.ts +1 -0
- package/dist/core/index.mjs +51 -34
- package/dist/{customElements-DK4GKNJG.mjs → customElements-d7Bhfqi_.mjs} +773 -746
- package/dist/{customer-lf6S5DBR.mjs → customer-CNCSN_G5.mjs} +1 -1
- package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-D-sV3avS.mjs} +8 -5
- package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-wZp39RC-.mjs} +68 -5
- package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-BYHycSxz.mjs} +3 -0
- package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-BrNXJ7gR.mjs} +68 -5
- package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
- package/dist/index.es-BEZ2mumY.mjs +633 -0
- package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
- package/dist/index.mjs +37 -33
- package/dist/invoices-CXvL8KQx.mjs +143 -0
- package/dist/{it-IT-DObZEc-U.mjs → it-IT-Bd1qsMVU.mjs} +68 -5
- package/dist/{it-IT-DnJP5URH.mjs → it-IT-zpPyT9PH.mjs} +8 -5
- package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-BOr4MR7L.mjs} +8 -5
- package/dist/{nl-NL-C02xHilF.mjs → nl-NL-C6Y6fqaW.mjs} +68 -5
- package/dist/paymentIntegrationFormLoaders-wi1vMgf_.mjs +31 -0
- package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-CG1fcG2v.mjs} +22 -21
- package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-D59QkGfm.mjs} +1 -1
- package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
- package/dist/payments-Dy81gmkC.mjs +71 -0
- package/dist/preloadPaymentIntegrationForms-C_9p7Jbi.mjs +9 -0
- package/dist/pricing-CBJT8C6L.mjs +42 -0
- package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-AYq_hYeD.mjs} +1 -1
- package/dist/pricingPlanScheduleOverrides-GON_34ep.mjs +291 -0
- package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
- package/dist/screens/Checkout/Checkout.mjs +1098 -3
- package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +1316 -0
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
- package/dist/screens/PayInvoice/PayInvoice.mjs +282 -274
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
- package/dist/{sorting.es-C0pdMgX0.mjs → sorting.es-kM0f1VX0.mjs} +1 -1
- package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
- package/dist/subscriptions-Bm1eu9wc.mjs +99 -0
- package/dist/taxId.es-Zu2Ff1gL.mjs +510 -0
- package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
- package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
- package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
- package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
- package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
- package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
- package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
- package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
- package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
- package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
- package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
- package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
- package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
- package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
- package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
- package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
- package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
- package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
- package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
- package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
- package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
- package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
- package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
- package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
- package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
- package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
- package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
- package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
- package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
- package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
- package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
- package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
- package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
- package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
- package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
- package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
- package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
- package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
- package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
- package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
- package/dist/types/public/core/action-request.types.d.ts +18 -24
- package/dist/types/public/core/events.types.d.ts +99 -0
- package/dist/types/public/core/index.d.ts +3 -1
- package/dist/types/public/core/types.d.ts +11 -2
- package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
- package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
- package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
- package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
- package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
- package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
- package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
- package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
- package/dist/types/services/paymentMethods.types.d.ts +12 -1
- package/dist/types/types/EntryBaseProps.d.ts +10 -6
- package/dist/types/types/branding.d.ts +15 -0
- package/dist/types/types/checkoutSession.d.ts +189 -0
- package/dist/types/types/errors.d.ts +2 -0
- package/dist/types/types/pricingPlanGroup.d.ts +25 -0
- package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BWna0S6N.mjs} +1 -1
- package/dist/useAddressFormats-Dw7IEdxg.mjs +1997 -0
- package/dist/useCheckoutForm-BaV2j_ob.mjs +3310 -0
- package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-RUtEzDOY.mjs} +2 -2
- package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
- package/dist/useExperimentalFeature-DAKAF_a2.mjs +6 -0
- package/dist/useHostEvent-pjoWJ7ZH.mjs +12 -0
- package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-B3gp58X-.mjs} +2 -2
- package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-Dya4mmvf.mjs} +2 -2
- package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-Dp3c_cb3.mjs} +9 -9
- package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-CwySdYZM.mjs} +1 -1
- package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
- package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-B7NV0ZtX.mjs} +4 -4
- package/dist/usePaymentMethodOptions-DDRjVvDJ.mjs +67 -0
- package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-DBGyQA_I.mjs} +2 -2
- package/dist/{usePayments-hWS7fnOx.mjs → usePayments-ChGtK_As.mjs} +9 -9
- package/dist/usePortal--Uzbpbgr.mjs +14 -0
- package/dist/{useService-BwzIBIRp.mjs → useService-DayNZhPh.mjs} +1 -1
- package/dist/useShippingAddresses-TXVeGFPm.mjs +122 -0
- package/dist/useSubscription-lIGMFLG1.mjs +35 -0
- package/dist/useSubscriptionActions-BSlJVB4p.mjs +44 -0
- package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
- package/package.json +12 -5
- package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
- package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
- package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
- package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
- package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
- package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
- package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
- package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
- package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
- package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
- package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
- package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
- package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
- package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
- package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
- package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
- package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
- package/dist/invoices-DdREPDXV.mjs +0 -123
- package/dist/paymentMethods-Goa25rTs.mjs +0 -61
- package/dist/payments-CKpU1K3t.mjs +0 -68
- package/dist/pricing-CEaZGgKe.mjs +0 -29
- package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
- package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
- package/dist/subscriptions-B5bH8hsI.mjs +0 -66
- package/dist/taxId.es-e6NEvprh.mjs +0 -243
- package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
- package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
- package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
- package/dist/usePortal-DUfD6hrA.mjs +0 -7
- package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { ref as le, defineComponent as L, openBlock as t, createElementBlock as l, normalizeClass as N, createElementVNode as h, createBlock as _, unref as o, createCommentVNode as y, renderSlot as $, Fragment as x, renderList as R, createVNode as n, withCtx as i, createTextVNode as v, toDisplayString as
|
|
2
|
-
import { _ as Fe } from "../../CustomerBillingInformation.vue.es-
|
|
3
|
-
import { a as W, d as Ie,
|
|
4
|
-
import { a as He, _ as
|
|
5
|
-
import { a as
|
|
1
|
+
import { ref as le, defineComponent as L, openBlock as t, createElementBlock as l, normalizeClass as N, createElementVNode as h, createBlock as _, unref as o, createCommentVNode as y, renderSlot as $, Fragment as x, renderList as R, createVNode as n, withCtx as i, createTextVNode as v, toDisplayString as u, withKeys as Y, normalizeProps as fe, guardReactiveProps as ve, computed as P, createSlots as Ue, mergeProps as J, isRef as De, defineAsyncComponent as Re } from "vue";
|
|
2
|
+
import { _ as Fe } from "../../CustomerBillingInformation.vue.es-DQWt9osz.mjs";
|
|
3
|
+
import { a as W, d as Ie, r as ye, j as ze, k as We, l as Ve } from "../../customElements-d7Bhfqi_.mjs";
|
|
4
|
+
import { a as He, _ as Ge } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs";
|
|
5
|
+
import { a as G, _ as je } from "../../Button.vue.es-BHbanjR0.mjs";
|
|
6
6
|
import { _ as w } from "../../Amount.vue.es-DPqHB8Xd.mjs";
|
|
7
|
-
import { i as Xe } from "../../useService-
|
|
8
|
-
import { _ as qe } from "../../useLazyFloating.es-CycqRyeb.mjs";
|
|
7
|
+
import { i as Xe } from "../../useService-DayNZhPh.mjs";
|
|
9
8
|
import { a as we } from "../../customer.es-DQKl6wFt.mjs";
|
|
10
|
-
import { M as $e, a as
|
|
9
|
+
import { M as $e, a as qe, f as Me } from "../../formatting.es-RclXHhKo.mjs";
|
|
11
10
|
import { _ as Ee, u as se } from "../../Comparators.vue.es-DQBI3f7m.mjs";
|
|
12
|
-
import { _ as Ce } from "../../InvoicePricingClauseChip.vue.es-
|
|
11
|
+
import { _ as Ce } from "../../InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs";
|
|
13
12
|
import { g as ge } from "../../getComposedString.es-C__uhJpd.mjs";
|
|
14
|
-
import { _ as de, T as ue, a as ce } from "../../TooltipParagraph.vue.es-
|
|
15
|
-
import { f as
|
|
13
|
+
import { _ as de, T as ue, a as ce } from "../../TooltipParagraph.vue.es-4HaXi8RP.mjs";
|
|
14
|
+
import { f as Ye } from "../../index.es-C7J3WGGo.mjs";
|
|
16
15
|
import { g as Ne, a as Be, f as Ae } from "../../wallets.es-eH2C2ygn.mjs";
|
|
17
|
-
import { _ as Pe } from "../../DividerText.vue.es-
|
|
18
|
-
import { _ as
|
|
19
|
-
import {
|
|
20
|
-
import { _ as
|
|
21
|
-
import { g as pe, w as
|
|
22
|
-
import { u as
|
|
23
|
-
import { _ as
|
|
16
|
+
import { _ as Pe } from "../../DividerText.vue.es-ChN6fnrH.mjs";
|
|
17
|
+
import { _ as Ke } from "../../IconTitle.vue.es-GyanM-JQ.mjs";
|
|
18
|
+
import { _ as Qe } from "../../ContextMenu.vue.es-CvX6O2IM.mjs";
|
|
19
|
+
import { _ as Je } from "../../Section.vue.es-CwKTCeZ1.mjs";
|
|
20
|
+
import { g as pe, w as Ze } from "../../invoiceState-BJVHaKs7.mjs";
|
|
21
|
+
import { u as et } from "../../useViewport-psZejz_H.mjs";
|
|
22
|
+
import { _ as tt } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs";
|
|
24
23
|
const xe = (e = []) => {
|
|
25
24
|
const a = le(e);
|
|
26
|
-
return [a, (
|
|
27
|
-
typeof a.value.find((s) => s ===
|
|
25
|
+
return [a, (d) => {
|
|
26
|
+
typeof a.value.find((s) => s === d) == "number" ? a.value = a.value.filter((s) => s !== d) : a.value = [...a.value, d];
|
|
28
27
|
}];
|
|
29
|
-
},
|
|
28
|
+
}, nt = { class: "flex items-center gap-2" }, it = /* @__PURE__ */ L({
|
|
30
29
|
__name: "InfoBlock",
|
|
31
30
|
props: {
|
|
32
31
|
variant: { default: "info" },
|
|
@@ -39,7 +38,7 @@ const xe = (e = []) => {
|
|
|
39
38
|
danger: "error",
|
|
40
39
|
success: "check_circle"
|
|
41
40
|
};
|
|
42
|
-
return (
|
|
41
|
+
return (c, d) => (t(), l("div", {
|
|
43
42
|
class: N(["flex items-center justify-between gap-2 rounded-sm border px-4 py-3 text-sm", {
|
|
44
43
|
"border-blue-200 bg-feedback-info text-feedback-info": e.variant === "info",
|
|
45
44
|
"border-red-200 bg-feedback-danger text-feedback-danger": e.variant === "danger",
|
|
@@ -47,36 +46,42 @@ const xe = (e = []) => {
|
|
|
47
46
|
"border-green-200 bg-feedback-success text-feedback-success": e.variant === "success"
|
|
48
47
|
}])
|
|
49
48
|
}, [
|
|
50
|
-
h("div",
|
|
51
|
-
e.hasIcon ? (t(), _(o(
|
|
49
|
+
h("div", nt, [
|
|
50
|
+
e.hasIcon ? (t(), _(o(G), {
|
|
52
51
|
key: 0,
|
|
53
52
|
icon: a[e.variant],
|
|
54
53
|
size: "xs",
|
|
55
54
|
class: "shrink-0"
|
|
56
55
|
}, null, 8, ["icon"])) : y("", !0),
|
|
57
56
|
h("div", null, [
|
|
58
|
-
$(
|
|
57
|
+
$(c.$slots, "default")
|
|
59
58
|
])
|
|
60
59
|
]),
|
|
61
60
|
h("div", null, [
|
|
62
|
-
$(
|
|
61
|
+
$(c.$slots, "cta")
|
|
63
62
|
])
|
|
64
63
|
], 2));
|
|
65
64
|
}
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
}), j = /* @__PURE__ */ L({
|
|
66
|
+
__name: "InvoiceTable",
|
|
67
|
+
props: {
|
|
68
|
+
layout: { default: "fixed" }
|
|
69
|
+
},
|
|
70
|
+
setup(e) {
|
|
71
|
+
return (a, c) => (t(), l("table", {
|
|
72
|
+
class: N(["w-full", e.layout === "auto" ? "table-auto" : "table-fixed"])
|
|
73
|
+
}, [
|
|
74
|
+
$(a.$slots, "default")
|
|
75
|
+
], 2));
|
|
76
|
+
}
|
|
77
|
+
}), k = /* @__PURE__ */ L({
|
|
73
78
|
__name: "InvoiceTableData",
|
|
74
79
|
props: {
|
|
75
80
|
number: { type: Boolean, default: !1 },
|
|
76
81
|
hasPadding: { type: Boolean, default: !0 }
|
|
77
82
|
},
|
|
78
83
|
setup(e) {
|
|
79
|
-
return (a,
|
|
84
|
+
return (a, c) => (t(), l("td", {
|
|
80
85
|
class: N({
|
|
81
86
|
"text-right tabular-nums": e.number,
|
|
82
87
|
"py-2": e.hasPadding
|
|
@@ -92,16 +97,16 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
92
97
|
right: { type: Boolean, default: !1 }
|
|
93
98
|
},
|
|
94
99
|
setup(e) {
|
|
95
|
-
return (a,
|
|
100
|
+
return (a, c) => (t(), l("th", {
|
|
96
101
|
class: N(["border-b py-1.5 text-xs font-bold uppercase text-subtle", { "text-left": e.left, "text-right": e.right }])
|
|
97
102
|
}, [
|
|
98
103
|
$(a.$slots, "default")
|
|
99
104
|
], 2));
|
|
100
105
|
}
|
|
101
|
-
}),
|
|
106
|
+
}), at = "INVOICE_PERIOD", ot = "INVOICE_PERIOD_SUBTOTAL", ie = "INVOICE_PERIOD_TOTAL", re = "SUMMARY_LINE_AMOUNT", lt = "SUMMARY_TOTAL_TAX", rt = "SUMMARY_TOTAL_INCLUDING_TAX", st = "SUMMARY_TOTAL_EXCLUDING_TAX", dt = "SUMMARY_TOTAL_DISCOUNT", ut = "SUMMARY_AMOUNT_DUE", ct = "DEDUCTION", mt = "HAS_SUBLINES", ft = { class: "flex items-center" }, vt = {
|
|
102
107
|
key: 0,
|
|
103
108
|
class: "text-xs text-secondary"
|
|
104
|
-
},
|
|
109
|
+
}, gt = { class: "flex items-center" }, be = /* @__PURE__ */ L({
|
|
105
110
|
__name: "InvoiceSubLineRow",
|
|
106
111
|
props: {
|
|
107
112
|
subLines: {},
|
|
@@ -114,9 +119,9 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
114
119
|
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
115
120
|
},
|
|
116
121
|
setup(e) {
|
|
117
|
-
const { formatMessage: a, formatNumber:
|
|
122
|
+
const { formatMessage: a, formatNumber: c } = W(), d = e, m = (f) => {
|
|
118
123
|
var b;
|
|
119
|
-
const g = (b =
|
|
124
|
+
const g = (b = d.processingOnlyCustomers) == null ? void 0 : b.find(
|
|
120
125
|
(p) => p.id === f
|
|
121
126
|
);
|
|
122
127
|
return g ? we(g) : a({
|
|
@@ -134,7 +139,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
134
139
|
id: "generic.not_available",
|
|
135
140
|
defaultMessage: "N/A",
|
|
136
141
|
description: "Used in scenarios where no data is available to be displayed"
|
|
137
|
-
}) :
|
|
142
|
+
}) : c(+p, { maximumFractionDigits: $e });
|
|
138
143
|
};
|
|
139
144
|
return (f, b) => e.subLines && e.isOpen ? (t(!0), l(x, { key: 0 }, R(e.subLines, (g, p) => (t(), l(x, { key: p }, [
|
|
140
145
|
g.processing_only_customer_resource_id ? e.displayInvoiceSubLinesPerProcessingOnlyCustomer && e.processingOnlyCustomers ? (t(), l("tr", {
|
|
@@ -143,8 +148,8 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
143
148
|
}, [
|
|
144
149
|
n(k, { class: "pl-4" }, {
|
|
145
150
|
default: i(() => [
|
|
146
|
-
h("div",
|
|
147
|
-
h("div", null,
|
|
151
|
+
h("div", gt, [
|
|
152
|
+
h("div", null, u(m(g.processing_only_customer_resource_id)), 1)
|
|
148
153
|
])
|
|
149
154
|
]),
|
|
150
155
|
_: 2
|
|
@@ -161,7 +166,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
161
166
|
default: i(() => {
|
|
162
167
|
var T, I, S, E, C, B;
|
|
163
168
|
return [
|
|
164
|
-
h("div",
|
|
169
|
+
h("div", ft, [
|
|
165
170
|
$(f.$slots, "invoice-line-prefix", {
|
|
166
171
|
lineOrder: e.lineOrder,
|
|
167
172
|
periodOrder: e.periodOrder,
|
|
@@ -170,16 +175,16 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
170
175
|
h("div", null, [
|
|
171
176
|
h("div", null, [
|
|
172
177
|
g.description ? (t(), l(x, { key: 0 }, [
|
|
173
|
-
v(
|
|
178
|
+
v(u(g.description), 1)
|
|
174
179
|
], 64)) : g.details.description ? (t(), l(x, { key: 1 }, [
|
|
175
|
-
v(
|
|
180
|
+
v(u(g.details.description), 1)
|
|
176
181
|
], 64)) : (t(), l(x, { key: 2 }, [
|
|
177
182
|
v(" N/A ")
|
|
178
183
|
], 64))
|
|
179
184
|
]),
|
|
180
|
-
(T = s(g)) != null && T.name || (I = s(g)) != null && I.meter_properties ? (t(), l("div",
|
|
185
|
+
(T = s(g)) != null && T.name || (I = s(g)) != null && I.meter_properties ? (t(), l("div", vt, [
|
|
181
186
|
(S = s(g)) != null && S.name ? (t(), l(x, { key: 0 }, [
|
|
182
|
-
v(
|
|
187
|
+
v(u((E = s(g)) == null ? void 0 : E.name), 1)
|
|
183
188
|
], 64)) : (C = s(g)) != null && C.meter_properties ? (t(), _(o(Ee), {
|
|
184
189
|
key: 1,
|
|
185
190
|
comparators: (B = s(g)) == null ? void 0 : B.meter_properties
|
|
@@ -196,7 +201,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
196
201
|
class: "text-right tabular-nums"
|
|
197
202
|
}, {
|
|
198
203
|
default: i(() => [
|
|
199
|
-
v(
|
|
204
|
+
v(u(r(g)), 1)
|
|
200
205
|
]),
|
|
201
206
|
_: 2
|
|
202
207
|
}, 1024),
|
|
@@ -208,7 +213,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
208
213
|
key: 0,
|
|
209
214
|
value: g.details.band.amount
|
|
210
215
|
}, null, 8, ["value"])) : (I = g.details.band) != null && I.percentage ? (t(), l(x, { key: 1 }, [
|
|
211
|
-
v(
|
|
216
|
+
v(u(g.details.band.percentage) + "% ", 1)
|
|
212
217
|
], 64)) : (t(), l(x, { key: 2 }, [
|
|
213
218
|
v(" N/A ")
|
|
214
219
|
], 64))
|
|
@@ -229,7 +234,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
229
234
|
default: i(() => [
|
|
230
235
|
n(w, {
|
|
231
236
|
value: g.details.amount,
|
|
232
|
-
"data-testid": o(
|
|
237
|
+
"data-testid": o(ot)
|
|
233
238
|
}, null, 8, ["value", "data-testid"])
|
|
234
239
|
]),
|
|
235
240
|
_: 2
|
|
@@ -237,7 +242,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
237
242
|
], 2))
|
|
238
243
|
], 64))), 128)) : y("", !0);
|
|
239
244
|
}
|
|
240
|
-
}),
|
|
245
|
+
}), bt = ["tabindex", "onClick"], yt = { class: "flex items-center" }, pt = /* @__PURE__ */ L({
|
|
241
246
|
__name: "InvoiceCommitment",
|
|
242
247
|
props: {
|
|
243
248
|
commitments: {},
|
|
@@ -248,8 +253,8 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
248
253
|
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
249
254
|
},
|
|
250
255
|
setup(e) {
|
|
251
|
-
const a = W(), { getIsOpen:
|
|
252
|
-
|
|
256
|
+
const a = W(), { getIsOpen: c, toggle: d } = se(), m = (f, b) => {
|
|
257
|
+
d(s(f, b));
|
|
253
258
|
}, s = (f, b) => `${f}-line-${b}`, r = (f) => {
|
|
254
259
|
var b;
|
|
255
260
|
return f.description ?? ((b = f.details) == null ? void 0 : b.description) ?? a.$t({
|
|
@@ -258,7 +263,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
258
263
|
description: "Used in scenarios where no data is available to be displayed"
|
|
259
264
|
});
|
|
260
265
|
};
|
|
261
|
-
return (f, b) => (t(), _(
|
|
266
|
+
return (f, b) => (t(), _(j, null, {
|
|
262
267
|
default: i(() => [
|
|
263
268
|
h("tr", null, [
|
|
264
269
|
n(M, {
|
|
@@ -266,7 +271,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
266
271
|
colspan: "5"
|
|
267
272
|
}, {
|
|
268
273
|
default: i(() => [
|
|
269
|
-
v(
|
|
274
|
+
v(u(o(a).$t({
|
|
270
275
|
id: "invoice.table_header.unit",
|
|
271
276
|
defaultMessage: "Unit",
|
|
272
277
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -279,7 +284,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
279
284
|
class: "w-60"
|
|
280
285
|
}, {
|
|
281
286
|
default: i(() => [
|
|
282
|
-
v(
|
|
287
|
+
v(u(o(a).$t({
|
|
283
288
|
id: "invoice.table_header.sub_total",
|
|
284
289
|
defaultMessage: "Subtotal",
|
|
285
290
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -298,15 +303,15 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
298
303
|
default: i(() => {
|
|
299
304
|
var T;
|
|
300
305
|
return [
|
|
301
|
-
g.sub_lines ? (t(), _(
|
|
306
|
+
g.sub_lines ? (t(), _(G, {
|
|
302
307
|
key: 0,
|
|
303
308
|
icon: "keyboard_arrow_down",
|
|
304
309
|
size: "md",
|
|
305
310
|
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
306
|
-
"-rotate-90": !o(
|
|
311
|
+
"-rotate-90": !o(c)(s(e.groupOrder, g.line_order))
|
|
307
312
|
}])
|
|
308
313
|
}, null, 8, ["class"])) : y("", !0),
|
|
309
|
-
h("div",
|
|
314
|
+
h("div", yt, [
|
|
310
315
|
$(f.$slots, "invoice-line-prefix", {
|
|
311
316
|
lineOrder: g.line_order,
|
|
312
317
|
periodOrder: e.invoicePeriodOrder,
|
|
@@ -341,7 +346,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
341
346
|
}),
|
|
342
347
|
_: 2
|
|
343
348
|
}, 1024)
|
|
344
|
-
], 10,
|
|
349
|
+
], 10, bt),
|
|
345
350
|
n(be, {
|
|
346
351
|
ref_for: !0,
|
|
347
352
|
ref: s(e.groupOrder, g.line_order),
|
|
@@ -349,7 +354,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
349
354
|
"line-order": g.line_order,
|
|
350
355
|
"period-order": e.invoicePeriodOrder,
|
|
351
356
|
"group-order": e.groupOrder,
|
|
352
|
-
"is-open": o(
|
|
357
|
+
"is-open": o(c)(s(e.groupOrder, g.line_order)),
|
|
353
358
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
354
359
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
355
360
|
}, null, 8, ["sub-lines", "line-order", "period-order", "group-order", "is-open", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
@@ -358,7 +363,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
358
363
|
_: 3
|
|
359
364
|
}));
|
|
360
365
|
}
|
|
361
|
-
}),
|
|
366
|
+
}), xt = ["tabindex", "onClick"], ht = { class: "flex items-center" }, _t = /* @__PURE__ */ L({
|
|
362
367
|
__name: "InvoiceDiscountMarkup",
|
|
363
368
|
props: {
|
|
364
369
|
lines: {},
|
|
@@ -374,10 +379,10 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
374
379
|
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
375
380
|
},
|
|
376
381
|
setup(e) {
|
|
377
|
-
const a = W(), { getIsOpen:
|
|
378
|
-
|
|
382
|
+
const a = W(), { getIsOpen: c, toggle: d } = se(), m = (r, f) => {
|
|
383
|
+
d(s(r, f));
|
|
379
384
|
}, s = (r, f) => `${r}-line-${f}`;
|
|
380
|
-
return (r, f) => (t(), _(
|
|
385
|
+
return (r, f) => (t(), _(j, null, {
|
|
381
386
|
default: i(() => [
|
|
382
387
|
h("tr", null, [
|
|
383
388
|
n(M, {
|
|
@@ -385,7 +390,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
385
390
|
class: "w-3/5"
|
|
386
391
|
}, {
|
|
387
392
|
default: i(() => [
|
|
388
|
-
v(
|
|
393
|
+
v(u(o(a).$t({
|
|
389
394
|
id: "invoice.table_header.quantity",
|
|
390
395
|
defaultMessage: "Quantity",
|
|
391
396
|
description: "Table header for quantity column"
|
|
@@ -404,7 +409,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
404
409
|
class: "w-1/5"
|
|
405
410
|
}, {
|
|
406
411
|
default: i(() => [
|
|
407
|
-
v(
|
|
412
|
+
v(u(e.type === "DISCOUNT" ? o(a).$t({
|
|
408
413
|
id: "invoice.table_header.discount",
|
|
409
414
|
defaultMessage: "Discount",
|
|
410
415
|
description: "Table header for discount column"
|
|
@@ -421,7 +426,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
421
426
|
class: "w-1/5"
|
|
422
427
|
}, {
|
|
423
428
|
default: i(() => [
|
|
424
|
-
v(
|
|
429
|
+
v(u(e.type === "DISCOUNT" ? o(a).$t({
|
|
425
430
|
id: "invoice.table_header.total",
|
|
426
431
|
defaultMessage: "Total",
|
|
427
432
|
description: "Table header for total column"
|
|
@@ -434,7 +439,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
434
439
|
class: "w-1/5"
|
|
435
440
|
}, {
|
|
436
441
|
default: i(() => [
|
|
437
|
-
v(
|
|
442
|
+
v(u(o(a).$t({
|
|
438
443
|
id: "invoice.table_header.sub_total",
|
|
439
444
|
defaultMessage: "Subtotal",
|
|
440
445
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -453,24 +458,24 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
453
458
|
default: i(() => {
|
|
454
459
|
var p, T;
|
|
455
460
|
return [
|
|
456
|
-
b.sub_lines ? (t(), _(
|
|
461
|
+
b.sub_lines ? (t(), _(G, {
|
|
457
462
|
key: 0,
|
|
458
463
|
icon: "keyboard_arrow_down",
|
|
459
464
|
size: "md",
|
|
460
465
|
class: N(["absolute -translate-x-7 text-slate-400", {
|
|
461
|
-
"-rotate-90": !o(
|
|
466
|
+
"-rotate-90": !o(c)(s(e.groupOrder, b.line_order))
|
|
462
467
|
}])
|
|
463
468
|
}, null, 8, ["class"])) : y("", !0),
|
|
464
|
-
h("div",
|
|
469
|
+
h("div", ht, [
|
|
465
470
|
$(r.$slots, "invoice-line-prefix", {
|
|
466
471
|
lineOrder: b.line_order,
|
|
467
472
|
periodOrder: e.invoicePeriodOrder,
|
|
468
473
|
groupOrder: e.groupOrder
|
|
469
474
|
}),
|
|
470
475
|
b.description ? (t(), l(x, { key: 0 }, [
|
|
471
|
-
v(
|
|
476
|
+
v(u(b.description), 1)
|
|
472
477
|
], 64)) : (p = b.details) != null && p.description ? (t(), l(x, { key: 1 }, [
|
|
473
|
-
v(
|
|
478
|
+
v(u((T = b.details) == null ? void 0 : T.description), 1)
|
|
474
479
|
], 64)) : (t(), l(x, { key: 2 }, [
|
|
475
480
|
v("N/A")
|
|
476
481
|
], 64))
|
|
@@ -489,7 +494,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
489
494
|
default: i(() => {
|
|
490
495
|
var p, T, I;
|
|
491
496
|
return [
|
|
492
|
-
v(
|
|
497
|
+
v(u((T = (p = b.details) == null ? void 0 : p.band) != null && T.percentage ? `${(I = b.details) == null ? void 0 : I.band.percentage}%` : " "), 1)
|
|
493
498
|
];
|
|
494
499
|
}),
|
|
495
500
|
_: 2
|
|
@@ -516,13 +521,13 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
516
521
|
}),
|
|
517
522
|
_: 2
|
|
518
523
|
}, 1024)
|
|
519
|
-
], 10,
|
|
524
|
+
], 10, xt),
|
|
520
525
|
n(be, {
|
|
521
526
|
ref_for: !0,
|
|
522
527
|
ref: s(e.groupOrder, b.line_order),
|
|
523
528
|
"sub-lines": b.sub_lines ?? [],
|
|
524
529
|
"line-order": b.line_order,
|
|
525
|
-
"is-open": o(
|
|
530
|
+
"is-open": o(c)(s(e.groupOrder, b.line_order)),
|
|
526
531
|
"period-order": e.invoicePeriodOrder,
|
|
527
532
|
"group-order": e.groupOrder,
|
|
528
533
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
@@ -535,11 +540,11 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
535
540
|
}
|
|
536
541
|
}), ae = (e) => {
|
|
537
542
|
var a;
|
|
538
|
-
return (a = e.lines) != null && a.some((
|
|
539
|
-
},
|
|
543
|
+
return (a = e.lines) != null && a.some((c) => !!c.sub_lines) ? mt : void 0;
|
|
544
|
+
}, kt = ["tabindex"], Tt = { key: 0 }, Ot = {
|
|
540
545
|
colspan: "2",
|
|
541
546
|
class: "p-0"
|
|
542
|
-
},
|
|
547
|
+
}, It = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, wt = /* @__PURE__ */ L({
|
|
543
548
|
__name: "InvoiceGroupCommitment",
|
|
544
549
|
props: {
|
|
545
550
|
group: {},
|
|
@@ -557,19 +562,19 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
557
562
|
},
|
|
558
563
|
setup(e) {
|
|
559
564
|
const a = W();
|
|
560
|
-
return (
|
|
565
|
+
return (c, d) => (t(), l(x, null, [
|
|
561
566
|
h("tr", {
|
|
562
567
|
class: N(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
|
|
563
568
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
564
|
-
onClick:
|
|
569
|
+
onClick: d[0] || (d[0] = (m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
565
570
|
onKeyup: [
|
|
566
|
-
|
|
567
|
-
|
|
571
|
+
d[1] || (d[1] = Y((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
572
|
+
d[2] || (d[2] = Y((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
568
573
|
]
|
|
569
574
|
}, [
|
|
570
575
|
n(k, { class: "p-0" }, {
|
|
571
576
|
default: i(() => [
|
|
572
|
-
e.isExpandable ? (t(), _(
|
|
577
|
+
e.isExpandable ? (t(), _(G, {
|
|
573
578
|
key: 0,
|
|
574
579
|
icon: "keyboard_arrow_down",
|
|
575
580
|
size: "md",
|
|
@@ -579,7 +584,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
579
584
|
)
|
|
580
585
|
}])
|
|
581
586
|
}, null, 8, ["class"])) : y("", !0),
|
|
582
|
-
v(" " +
|
|
587
|
+
v(" " + u(o(a).$t({
|
|
583
588
|
id: "invoice.commitment_heading",
|
|
584
589
|
defaultMessage: "Commitment",
|
|
585
590
|
description: "Heading used for commitment in invoice tables"
|
|
@@ -603,11 +608,11 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
603
608
|
]),
|
|
604
609
|
_: 1
|
|
605
610
|
})
|
|
606
|
-
], 42,
|
|
607
|
-
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr",
|
|
608
|
-
h("td",
|
|
609
|
-
h("div",
|
|
610
|
-
n(
|
|
611
|
+
], 42, kt),
|
|
612
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr", Tt, [
|
|
613
|
+
h("td", Ot, [
|
|
614
|
+
h("div", It, [
|
|
615
|
+
n(pt, {
|
|
611
616
|
commitments: e.group.lines,
|
|
612
617
|
"format-index": e.formatIndex,
|
|
613
618
|
"handle-toggle-items": e.handleToggleItems,
|
|
@@ -620,7 +625,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
620
625
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
621
626
|
}, {
|
|
622
627
|
"invoice-line-prefix": i((m) => [
|
|
623
|
-
$(
|
|
628
|
+
$(c.$slots, "invoice-line-prefix", fe(ve(m)))
|
|
624
629
|
]),
|
|
625
630
|
_: 3
|
|
626
631
|
}, 8, ["commitments", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
@@ -629,10 +634,10 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
629
634
|
])) : y("", !0)
|
|
630
635
|
], 64));
|
|
631
636
|
}
|
|
632
|
-
}),
|
|
637
|
+
}), $t = ["tabindex"], Mt = { key: 0 }, Et = {
|
|
633
638
|
colspan: "2",
|
|
634
639
|
class: "p-0"
|
|
635
|
-
},
|
|
640
|
+
}, Ct = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Nt = /* @__PURE__ */ L({
|
|
636
641
|
__name: "InvoiceGroupDiscountMarkup",
|
|
637
642
|
props: {
|
|
638
643
|
heading: {},
|
|
@@ -650,19 +655,19 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
650
655
|
showTaxPerLineItem: { type: Boolean }
|
|
651
656
|
},
|
|
652
657
|
setup(e) {
|
|
653
|
-
return (a,
|
|
658
|
+
return (a, c) => (t(), l(x, null, [
|
|
654
659
|
h("tr", {
|
|
655
660
|
class: N(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
|
|
656
661
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
657
|
-
onClick:
|
|
662
|
+
onClick: c[0] || (c[0] = (d) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
658
663
|
onKeyup: [
|
|
659
|
-
|
|
660
|
-
|
|
664
|
+
c[1] || (c[1] = Y((d) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
665
|
+
c[2] || (c[2] = Y((d) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
661
666
|
]
|
|
662
667
|
}, [
|
|
663
668
|
n(k, { class: "p-0" }, {
|
|
664
669
|
default: i(() => [
|
|
665
|
-
e.isExpandable ? (t(), _(
|
|
670
|
+
e.isExpandable ? (t(), _(G, {
|
|
666
671
|
key: 0,
|
|
667
672
|
icon: "keyboard_arrow_down",
|
|
668
673
|
size: "md",
|
|
@@ -672,7 +677,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
672
677
|
)
|
|
673
678
|
}])
|
|
674
679
|
}, null, 8, ["class"])) : y("", !0),
|
|
675
|
-
v(" " +
|
|
680
|
+
v(" " + u(e.heading), 1)
|
|
676
681
|
]),
|
|
677
682
|
_: 1
|
|
678
683
|
}),
|
|
@@ -692,11 +697,11 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
692
697
|
]),
|
|
693
698
|
_: 1
|
|
694
699
|
})
|
|
695
|
-
], 42,
|
|
696
|
-
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr",
|
|
697
|
-
h("td",
|
|
698
|
-
h("div",
|
|
699
|
-
n(
|
|
700
|
+
], 42, $t),
|
|
701
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr", Mt, [
|
|
702
|
+
h("td", Et, [
|
|
703
|
+
h("div", Ct, [
|
|
704
|
+
n(_t, {
|
|
700
705
|
type: e.group.type,
|
|
701
706
|
lines: e.group.lines,
|
|
702
707
|
"format-index": e.formatIndex,
|
|
@@ -709,8 +714,8 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
709
714
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
710
715
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
711
716
|
}, {
|
|
712
|
-
"invoice-line-prefix": i((
|
|
713
|
-
$(a.$slots, "invoice-line-prefix", fe(ve(
|
|
717
|
+
"invoice-line-prefix": i((d) => [
|
|
718
|
+
$(a.$slots, "invoice-line-prefix", fe(ve(d)))
|
|
714
719
|
]),
|
|
715
720
|
_: 3
|
|
716
721
|
}, 8, ["type", "lines", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
@@ -719,50 +724,50 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
719
724
|
])) : y("", !0)
|
|
720
725
|
], 64));
|
|
721
726
|
}
|
|
722
|
-
}),
|
|
727
|
+
}), Bt = (e, a) => {
|
|
723
728
|
if (a)
|
|
724
729
|
return e.forwarded_from_customer_id;
|
|
725
|
-
},
|
|
726
|
-
let a = { kind: "default" },
|
|
730
|
+
}, At = (e) => {
|
|
731
|
+
let a = { kind: "default" }, c = { kind: "default" };
|
|
727
732
|
if (e.tier_lower_bound && "number" in e.tier_lower_bound)
|
|
728
733
|
a = { kind: "number", value: +e.tier_lower_bound.number };
|
|
729
734
|
else if (e.tier_lower_bound && "amount" in e.tier_lower_bound) {
|
|
730
|
-
const { quantity:
|
|
731
|
-
a = { kind: "amount", currency: m, quantity:
|
|
735
|
+
const { quantity: d, currency: m } = e.tier_lower_bound.amount;
|
|
736
|
+
a = { kind: "amount", currency: m, quantity: d ?? 0 };
|
|
732
737
|
}
|
|
733
738
|
if (e.tier_top_bound && "number" in e.tier_top_bound)
|
|
734
|
-
|
|
739
|
+
c = { kind: "number", value: +e.tier_top_bound.number };
|
|
735
740
|
else if (e.tier_top_bound && "amount" in e.tier_top_bound) {
|
|
736
|
-
const { quantity:
|
|
737
|
-
|
|
741
|
+
const { quantity: d, currency: m } = e.tier_top_bound.amount;
|
|
742
|
+
c = { kind: "amount", currency: m, quantity: d };
|
|
738
743
|
}
|
|
739
|
-
return { lowerBound: a, topBound:
|
|
740
|
-
},
|
|
741
|
-
var a,
|
|
744
|
+
return { lowerBound: a, topBound: c };
|
|
745
|
+
}, Pt = (e) => {
|
|
746
|
+
var a, c, d, m;
|
|
742
747
|
switch (e == null ? void 0 : e.price_bound) {
|
|
743
748
|
case "BELOW_MINIMUM_AMOUNT":
|
|
744
749
|
return { kind: "band_minimum_amount", amount: (a = e.band) == null ? void 0 : a.minimum_amount };
|
|
745
750
|
case "NOT_HIT":
|
|
746
751
|
return { kind: "price_bound_within_bounds" };
|
|
747
752
|
case "ABOVE_MAXIMUM_AMOUNT":
|
|
748
|
-
return { kind: "price_bound_maximum_amount", amount: (
|
|
753
|
+
return { kind: "price_bound_maximum_amount", amount: (c = e.band) == null ? void 0 : c.maximum_amount };
|
|
749
754
|
case "BELOW_MINIMUM_NUMBER":
|
|
750
|
-
return { kind: "band_minimum_number", value: (
|
|
755
|
+
return { kind: "band_minimum_number", value: (d = e.band) == null ? void 0 : d.minimum_number };
|
|
751
756
|
case "ABOVE_MAXIMUM_NUMBER":
|
|
752
757
|
return { kind: "band_maximum_number", value: (m = e.band) == null ? void 0 : m.maximum_number };
|
|
753
758
|
default:
|
|
754
759
|
return { kind: "none" };
|
|
755
760
|
}
|
|
756
|
-
},
|
|
761
|
+
}, St = { class: "items-left flex flex-col gap-1 leading-none" }, Lt = { class: "flex items-center" }, Ut = {
|
|
757
762
|
key: 0,
|
|
758
763
|
class: "ml-1 text-xs text-secondary"
|
|
759
|
-
},
|
|
764
|
+
}, Dt = { key: 0 }, Rt = {
|
|
760
765
|
key: 1,
|
|
761
766
|
class: "text-xs text-secondary"
|
|
762
|
-
},
|
|
767
|
+
}, Ft = {
|
|
763
768
|
key: 2,
|
|
764
769
|
class: "text-xs text-secondary"
|
|
765
|
-
},
|
|
770
|
+
}, zt = { class: "text-[9pt] text-secondary" }, Wt = /* @__PURE__ */ L({
|
|
766
771
|
__name: "InvoiceLineRow",
|
|
767
772
|
props: {
|
|
768
773
|
data: {},
|
|
@@ -773,28 +778,28 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
773
778
|
isExpanded: { type: Boolean }
|
|
774
779
|
},
|
|
775
780
|
setup(e) {
|
|
776
|
-
const { $t: a, formatNumber:
|
|
781
|
+
const { $t: a, formatNumber: c } = W(), d = e, m = (g) => {
|
|
777
782
|
if (g.kind !== "default")
|
|
778
|
-
return g.kind === "number" ?
|
|
783
|
+
return g.kind === "number" ? c(g.value) : `${g.currency} ${g.quantity}`;
|
|
779
784
|
}, s = (g) => {
|
|
780
785
|
if (!g) return "";
|
|
781
|
-
const { lowerBound: p, topBound: T } =
|
|
786
|
+
const { lowerBound: p, topBound: T } = At(g), I = m(T);
|
|
782
787
|
return (m(p) ?? "0") + (I ? ` - ${I}` : "+");
|
|
783
788
|
}, r = P(() => {
|
|
784
789
|
var g;
|
|
785
|
-
return (g =
|
|
786
|
-
}), f = P(() =>
|
|
787
|
-
var g, p;
|
|
788
|
-
return (g =
|
|
790
|
+
return (g = d.data.details) == null ? void 0 : g.included_volume_details;
|
|
791
|
+
}), f = P(() => Pt(d.data.details)), b = P(() => {
|
|
792
|
+
var g, p, T;
|
|
793
|
+
return ((g = d.data) == null ? void 0 : g.type) === "ONE_OFF" && d.data.description ? d.data.description : (p = d.data) != null && p.product_items ? ge(d.data.product_items.map((I) => I.name)) : ((T = d.data) == null ? void 0 : T.description) ?? "N/A";
|
|
789
794
|
});
|
|
790
795
|
return (g, p) => (t(), l(x, null, [
|
|
791
796
|
n(k, { class: "align-top" }, {
|
|
792
797
|
default: i(() => {
|
|
793
798
|
var T, I, S, E, C, B, V, A, H;
|
|
794
799
|
return [
|
|
795
|
-
h("div",
|
|
800
|
+
h("div", St, [
|
|
796
801
|
h("div", null, [
|
|
797
|
-
e.data.sub_lines ? (t(), _(
|
|
802
|
+
e.data.sub_lines ? (t(), _(G, {
|
|
798
803
|
key: 0,
|
|
799
804
|
icon: "keyboard_arrow_down",
|
|
800
805
|
size: "md",
|
|
@@ -802,15 +807,15 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
802
807
|
"-rotate-90": !e.isExpanded
|
|
803
808
|
}])
|
|
804
809
|
}, null, 8, ["class"])) : y("", !0),
|
|
805
|
-
h("div",
|
|
810
|
+
h("div", Lt, [
|
|
806
811
|
$(g.$slots, "invoice-line-prefix", {
|
|
807
812
|
lineOrder: e.data.line_order,
|
|
808
813
|
periodOrder: e.periodOrder,
|
|
809
814
|
groupOrder: e.groupOrder
|
|
810
815
|
}),
|
|
811
816
|
["PRICING", "REVENUE", "ONE_OFF"].includes(e.data.type) ? (t(), l(x, { key: 0 }, [
|
|
812
|
-
v(
|
|
813
|
-
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), l("div",
|
|
817
|
+
v(u(b.value) + " ", 1),
|
|
818
|
+
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), l("div", Ut, u(o(qe)(e.data.type)), 1)) : y("", !0)
|
|
814
819
|
], 64)) : (t(), _(Ce, {
|
|
815
820
|
key: 1,
|
|
816
821
|
"invoice-line-description": b.value,
|
|
@@ -819,27 +824,27 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
819
824
|
}, null, 8, ["invoice-line-description", "clause-type", "price-details-band"]))
|
|
820
825
|
])
|
|
821
826
|
]),
|
|
822
|
-
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !r.value && ((I = e.data.details) != null && I.band) ? (t(), l("div",
|
|
823
|
-
(C = (E = e.data.details) == null ? void 0 : E.split_pricing) != null && C.meter_properties ? (t(), l("span",
|
|
827
|
+
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !r.value && ((I = e.data.details) != null && I.band) ? (t(), l("div", Dt, u(s((S = e.data.details) == null ? void 0 : S.band)), 1)) : y("", !0),
|
|
828
|
+
(C = (E = e.data.details) == null ? void 0 : E.split_pricing) != null && C.meter_properties ? (t(), l("span", Rt, [
|
|
824
829
|
(t(!0), l(x, null, R((V = (B = e.data.details) == null ? void 0 : B.split_pricing) == null ? void 0 : V.meter_properties, (X, q) => (t(), l(x, null, [
|
|
825
|
-
v(
|
|
830
|
+
v(u(X.meter_property.name) + ": " + u(X.value), 1),
|
|
826
831
|
q < e.data.details.split_pricing.meter_properties.length - 1 ? (t(), l(x, { key: 0 }, [
|
|
827
|
-
v(
|
|
832
|
+
v(u(", "))
|
|
828
833
|
], 64)) : y("", !0)
|
|
829
834
|
], 64))), 256))
|
|
830
835
|
])) : y("", !0),
|
|
831
|
-
(A = e.data.conditions) != null && A.name || (H = e.data.conditions) != null && H.meter_properties ? (t(), l("div",
|
|
836
|
+
(A = e.data.conditions) != null && A.name || (H = e.data.conditions) != null && H.meter_properties ? (t(), l("div", Ft, [
|
|
832
837
|
e.data.conditions.name ? (t(), l(x, { key: 0 }, [
|
|
833
|
-
v(
|
|
838
|
+
v(u(e.data.conditions.name), 1)
|
|
834
839
|
], 64)) : e.data.conditions.meter_properties ? (t(), _(o(Ee), {
|
|
835
840
|
key: 1,
|
|
836
841
|
comparators: e.data.conditions.meter_properties
|
|
837
842
|
}, null, 8, ["comparators"])) : y("", !0)
|
|
838
843
|
])) : y("", !0)
|
|
839
844
|
]),
|
|
840
|
-
h("span",
|
|
845
|
+
h("span", zt, [
|
|
841
846
|
f.value.kind === "band_minimum_amount" ? (t(), l(x, { key: 0 }, [
|
|
842
|
-
v(
|
|
847
|
+
v(u(o(a)({
|
|
843
848
|
id: "invoice.line.band_minimum_amount",
|
|
844
849
|
defaultMessage: "Band minimum amount",
|
|
845
850
|
description: "Minimum amount specified in a band"
|
|
@@ -849,13 +854,13 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
849
854
|
value: f.value.amount
|
|
850
855
|
}, null, 8, ["value"])) : y("", !0)
|
|
851
856
|
], 64)) : f.value.kind === "price_bound_within_bounds" ? (t(), l(x, { key: 1 }, [
|
|
852
|
-
v(
|
|
857
|
+
v(u(o(a)({
|
|
853
858
|
id: "invoice.line.price_bound_within_bounds",
|
|
854
859
|
defaultMessage: "Within bounds",
|
|
855
860
|
description: "Label used when min and max bounds are specified but reached"
|
|
856
861
|
})), 1)
|
|
857
862
|
], 64)) : f.value.kind === "price_bound_maximum_amount" ? (t(), l(x, { key: 2 }, [
|
|
858
|
-
v(
|
|
863
|
+
v(u(o(a)({
|
|
859
864
|
id: "invoice.line.price_bound_maximum_amount",
|
|
860
865
|
defaultMessage: "Maximum amount",
|
|
861
866
|
description: "Maximum amount specified in a band"
|
|
@@ -865,17 +870,17 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
865
870
|
value: f.value.amount
|
|
866
871
|
}, null, 8, ["value"])) : y("", !0)
|
|
867
872
|
], 64)) : f.value.kind === "band_minimum_number" ? (t(), l(x, { key: 3 }, [
|
|
868
|
-
v(
|
|
873
|
+
v(u(o(a)({
|
|
869
874
|
id: "invoice.line.band_minimum_number",
|
|
870
875
|
defaultMessage: "Minimum number",
|
|
871
876
|
description: "Minimum number of units specified in a band"
|
|
872
|
-
})) + " " +
|
|
877
|
+
})) + " " + u(f.value.value), 1)
|
|
873
878
|
], 64)) : f.value.kind === "band_maximum_number" ? (t(), l(x, { key: 4 }, [
|
|
874
|
-
v(
|
|
879
|
+
v(u(o(a)({
|
|
875
880
|
id: "invoice.line.band_maximum_number",
|
|
876
881
|
defaultMessage: "Maximum number",
|
|
877
882
|
description: "Maximum number of units specified in a band"
|
|
878
|
-
})) + " " +
|
|
883
|
+
})) + " " + u(f.value.value), 1)
|
|
879
884
|
], 64)) : y("", !0)
|
|
880
885
|
])
|
|
881
886
|
];
|
|
@@ -887,17 +892,17 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
887
892
|
})
|
|
888
893
|
], 64));
|
|
889
894
|
}
|
|
890
|
-
}),
|
|
891
|
-
var
|
|
895
|
+
}), Vt = (e, a, c) => {
|
|
896
|
+
var d, m;
|
|
892
897
|
if (e === "PASS_THROUGH") return { kind: "hidden" };
|
|
893
|
-
if (
|
|
898
|
+
if (c && ((m = (d = a == null ? void 0 : a.conversion) == null ? void 0 : d.credits) != null && m.quantity))
|
|
894
899
|
return { kind: "conversion-credits", value: a.conversion.credits.quantity };
|
|
895
900
|
if (a != null && a.price_bound) {
|
|
896
901
|
const { price_bound: s, meter_value: r, band: f } = a;
|
|
897
902
|
return s === "BELOW_MINIMUM_AMOUNT" || s === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: r.count } : s === "NOT_HIT" && "amount" in r && r.amount ? { kind: "amount", amount: r.amount } : s === "NOT_HIT" && "number" in r && r.number ? { kind: "raw", value: r.number } : s === "RATIO" && r.number ? { kind: "number", value: +r.number } : s === "BELOW_MINIMUM_NUMBER" && (f != null && f.minimum_number) ? { kind: "number", value: +f.minimum_number } : s === "ABOVE_MAXIMUM_NUMBER" && (f != null && f.maximum_number) ? { kind: "number", value: +f.maximum_number } : { kind: "hidden" };
|
|
898
903
|
}
|
|
899
904
|
return a != null && a.meter_value && "number" in a.meter_value ? { kind: "number", value: +a.meter_value.number } : a != null && a.meter_value && "amount" in a.meter_value ? { kind: "amount", amount: a.meter_value.amount } : { kind: "one" };
|
|
900
|
-
},
|
|
905
|
+
}, Ht = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Gt = (e, a, c) => {
|
|
901
906
|
if (e === "PASS_THROUGH") return { kind: "pass-through" };
|
|
902
907
|
if (a != null && a.price_bound) {
|
|
903
908
|
const { price_bound: s, band: r, amount: f } = a;
|
|
@@ -906,8 +911,8 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
906
911
|
if (s === "ABOVE_MAXIMUM_AMOUNT" && (r != null && r.maximum_amount))
|
|
907
912
|
return { kind: "amount", amount: r.maximum_amount };
|
|
908
913
|
if (s === "RATIO")
|
|
909
|
-
return { kind: "amount", amount: (
|
|
910
|
-
if (
|
|
914
|
+
return { kind: "amount", amount: (c === "PER_SEAT" ? r == null ? void 0 : r.amount : void 0) ?? f, suffix: { kind: "tier-top-bound" } };
|
|
915
|
+
if (Ht.includes(s)) {
|
|
911
916
|
if (r && r.amount)
|
|
912
917
|
return { kind: "amount", amount: r.amount };
|
|
913
918
|
if (r && "percentage" in r)
|
|
@@ -917,45 +922,45 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
917
922
|
}
|
|
918
923
|
return { kind: "hidden" };
|
|
919
924
|
}
|
|
920
|
-
const
|
|
921
|
-
return
|
|
922
|
-
},
|
|
925
|
+
const d = a == null ? void 0 : a.band, m = a == null ? void 0 : a.amount;
|
|
926
|
+
return d && d.amount ? { kind: "amount", amount: d.amount, suffix: { kind: "block-size-or-per-unit" } } : d && "percentage" in d ? { kind: "percentage", value: d.percentage } : d && m ? e === "STAIR_STEP" || e === "STAIR_STEP_TOP_UP" ? { kind: "amount", amount: m, suffix: { kind: "fixed-amount" } } : e === "TOP_TIERED" ? { kind: "amount", amount: m, suffix: { kind: "per-unit" } } : e === "FLAT" ? { kind: "amount", amount: m, suffix: { kind: "flat-fee" } } : { kind: "amount", amount: m } : { kind: "hidden" };
|
|
927
|
+
}, jt = {
|
|
923
928
|
key: 5,
|
|
924
929
|
class: "text-xs text-secondary"
|
|
925
|
-
},
|
|
930
|
+
}, Xt = {
|
|
926
931
|
key: 1,
|
|
927
932
|
class: "tabular-nums"
|
|
928
|
-
},
|
|
933
|
+
}, qt = {
|
|
929
934
|
key: 0,
|
|
930
935
|
class: "text-2xs text-secondary"
|
|
931
|
-
},
|
|
936
|
+
}, Yt = {
|
|
932
937
|
key: 1,
|
|
933
938
|
class: "text-2xs text-secondary"
|
|
934
|
-
},
|
|
939
|
+
}, Kt = {
|
|
935
940
|
key: 0,
|
|
936
941
|
class: "text-2xs text-secondary"
|
|
937
|
-
},
|
|
942
|
+
}, Qt = {
|
|
938
943
|
key: 1,
|
|
939
944
|
class: "text-2xs text-secondary"
|
|
940
|
-
},
|
|
945
|
+
}, Jt = {
|
|
941
946
|
key: 2,
|
|
942
947
|
class: "text-2xs text-secondary"
|
|
943
|
-
},
|
|
948
|
+
}, Zt = {
|
|
944
949
|
key: 3,
|
|
945
950
|
class: "text-2xs text-secondary"
|
|
946
|
-
},
|
|
951
|
+
}, en = {
|
|
947
952
|
key: 4,
|
|
948
953
|
class: "text-2xs text-secondary"
|
|
949
|
-
},
|
|
954
|
+
}, tn = { class: "text-2xs text-secondary" }, nn = {
|
|
950
955
|
key: 0,
|
|
951
956
|
class: "flex justify-end"
|
|
952
|
-
},
|
|
957
|
+
}, an = { class: "flex items-center justify-end gap-1" }, on = {
|
|
953
958
|
key: 0,
|
|
954
959
|
class: "text-2xs tabular-nums text-secondary"
|
|
955
|
-
},
|
|
960
|
+
}, ln = {
|
|
956
961
|
key: 1,
|
|
957
962
|
class: "inline-block"
|
|
958
|
-
},
|
|
963
|
+
}, rn = { class: "flex items-center justify-end gap-1" }, he = /* @__PURE__ */ L({
|
|
959
964
|
__name: "InvoiceRowContent",
|
|
960
965
|
props: {
|
|
961
966
|
pricingType: {},
|
|
@@ -969,18 +974,18 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
969
974
|
preferConversionCredits: { type: Boolean }
|
|
970
975
|
},
|
|
971
976
|
setup(e) {
|
|
972
|
-
const a = e,
|
|
977
|
+
const a = e, c = P(() => {
|
|
973
978
|
var B;
|
|
974
979
|
return (B = a.details) == null ? void 0 : B.included_volume_details;
|
|
975
|
-
}),
|
|
980
|
+
}), d = P(
|
|
976
981
|
() => {
|
|
977
982
|
var B;
|
|
978
|
-
return (B =
|
|
983
|
+
return (B = c.value) == null ? void 0 : B.available_included_volume;
|
|
979
984
|
}
|
|
980
985
|
), m = P(
|
|
981
|
-
() =>
|
|
986
|
+
() => Vt(a.pricingType, a.details, a.preferConversionCredits)
|
|
982
987
|
), s = P(
|
|
983
|
-
() =>
|
|
988
|
+
() => Gt(a.pricingType, a.details, a.modelType)
|
|
984
989
|
), { $t: r, formatNumber: f } = W(), b = P(
|
|
985
990
|
() => r({
|
|
986
991
|
id: "invoice.line.fixed_amount",
|
|
@@ -1049,30 +1054,30 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1049
1054
|
var A;
|
|
1050
1055
|
return [
|
|
1051
1056
|
m.value.kind === "raw" ? (t(), l(x, { key: 0 }, [
|
|
1052
|
-
v(
|
|
1057
|
+
v(u(m.value.value), 1)
|
|
1053
1058
|
], 64)) : m.value.kind === "amount" ? (t(), _(w, {
|
|
1054
1059
|
key: 1,
|
|
1055
1060
|
value: m.value.amount
|
|
1056
1061
|
}, null, 8, ["value"])) : m.value.kind === "number" ? (t(), l(x, { key: 2 }, [
|
|
1057
|
-
v(
|
|
1062
|
+
v(u(o(f)(m.value.value)), 1)
|
|
1058
1063
|
], 64)) : m.value.kind === "conversion-credits" ? (t(), l(x, { key: 3 }, [
|
|
1059
|
-
v(
|
|
1064
|
+
v(u(o(f)(+m.value.value, {
|
|
1060
1065
|
maximumFractionDigits: o($e)
|
|
1061
1066
|
})), 1)
|
|
1062
1067
|
], 64)) : m.value.kind === "one" ? (t(), l(x, { key: 4 }, [
|
|
1063
1068
|
v("1")
|
|
1064
1069
|
], 64)) : y("", !0),
|
|
1065
|
-
m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((A = e.details) != null && A.price_bound) &&
|
|
1066
|
-
|
|
1070
|
+
m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((A = e.details) != null && A.price_bound) && d.value ? (t(), l("div", jt, [
|
|
1071
|
+
d.value.type === "AMOUNT" ? (t(), l(x, { key: 0 }, [
|
|
1067
1072
|
n(w, {
|
|
1068
|
-
value:
|
|
1073
|
+
value: d.value.amount
|
|
1069
1074
|
}, null, 8, ["value"]),
|
|
1070
|
-
v(" " +
|
|
1075
|
+
v(" " + u(o(r)({
|
|
1071
1076
|
id: "invoice.line.included",
|
|
1072
1077
|
defaultMessage: "included",
|
|
1073
1078
|
description: "Used to specify an included amount. Should be lowercase."
|
|
1074
1079
|
})), 1)
|
|
1075
|
-
], 64)) :
|
|
1080
|
+
], 64)) : d.value.type === "NUMBER" ? (t(), l("span", Xt, u(d.value.number) + " " + u(o(r)({
|
|
1076
1081
|
id: "invoice.line.units_included",
|
|
1077
1082
|
defaultMessage: "units included",
|
|
1078
1083
|
description: "Used to specify an included units. Should be lowercase."
|
|
@@ -1087,7 +1092,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1087
1092
|
class: "text-right align-top"
|
|
1088
1093
|
}, {
|
|
1089
1094
|
default: i(() => [
|
|
1090
|
-
v(
|
|
1095
|
+
v(u(o(r)({
|
|
1091
1096
|
id: "invoice.line.pass_through",
|
|
1092
1097
|
defaultMessage: "Pass through",
|
|
1093
1098
|
description: "Name of the pass through pricing type"
|
|
@@ -1107,12 +1112,12 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1107
1112
|
value: s.value.amount
|
|
1108
1113
|
}, null, 8, ["value"]),
|
|
1109
1114
|
((A = s.value.suffix) == null ? void 0 : A.kind) === "tier-top-bound" ? (t(), l(x, { key: 0 }, [
|
|
1110
|
-
T.value ? (t(), l("div",
|
|
1115
|
+
T.value ? (t(), l("div", qt, u(T.value), 1)) : I.value ? (t(), l("div", Yt, u(S.value), 1)) : y("", !0)
|
|
1111
1116
|
], 64)) : ((H = s.value.suffix) == null ? void 0 : H.kind) === "block-size-or-per-unit" ? (t(), l(x, { key: 1 }, [
|
|
1112
|
-
C.value ? (t(), l("div",
|
|
1113
|
-
], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), l("div",
|
|
1117
|
+
C.value ? (t(), l("div", Kt, u(C.value), 1)) : e.modelType !== "RECURRING" ? (t(), l("div", Qt, u(S.value), 1)) : y("", !0)
|
|
1118
|
+
], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), l("div", Jt, u(S.value), 1)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "fixed-amount" ? (t(), l("div", Zt, u(b.value), 1)) : ((Z = s.value.suffix) == null ? void 0 : Z.kind) === "flat-fee" ? (t(), l("div", en, u(g.value), 1)) : y("", !0)
|
|
1114
1119
|
], 64)) : s.value.kind === "percentage" ? (t(), l(x, { key: 1 }, [
|
|
1115
|
-
v(
|
|
1120
|
+
v(u(s.value.value) + "% ", 1)
|
|
1116
1121
|
], 64)) : y("", !0)
|
|
1117
1122
|
];
|
|
1118
1123
|
}),
|
|
@@ -1128,8 +1133,8 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1128
1133
|
key: H,
|
|
1129
1134
|
class: "tabular-nums"
|
|
1130
1135
|
}, [
|
|
1131
|
-
h("div", null,
|
|
1132
|
-
h("div",
|
|
1136
|
+
h("div", null, u(A.percentage) + "%", 1),
|
|
1137
|
+
h("div", tn, [
|
|
1133
1138
|
n(w, {
|
|
1134
1139
|
value: A.tax_amount
|
|
1135
1140
|
}, null, 8, ["value"])
|
|
@@ -1145,14 +1150,14 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1145
1150
|
default: i(() => {
|
|
1146
1151
|
var A, H, X, q, Z;
|
|
1147
1152
|
return [
|
|
1148
|
-
(H = (A = e.details) == null ? void 0 : A.amount) != null && H.currency && ((q = (X = e.details) == null ? void 0 : X.amount) != null && q.quantity) ? (t(), l("div",
|
|
1153
|
+
(H = (A = e.details) == null ? void 0 : A.amount) != null && H.currency && ((q = (X = e.details) == null ? void 0 : X.amount) != null && q.quantity) ? (t(), l("div", nn, [
|
|
1149
1154
|
e.showTaxPerLineItem ? (t(!0), l(x, { key: 0 }, R(e.taxCategories, (oe, O) => {
|
|
1150
1155
|
var D;
|
|
1151
1156
|
return t(), l("div", {
|
|
1152
1157
|
key: O,
|
|
1153
1158
|
class: "inline-block"
|
|
1154
1159
|
}, [
|
|
1155
|
-
h("div",
|
|
1160
|
+
h("div", an, [
|
|
1156
1161
|
n(w, {
|
|
1157
1162
|
value: e.amount ?? e.details.amount,
|
|
1158
1163
|
"data-testid": O === 0 ? o(re) : void 0
|
|
@@ -1166,7 +1171,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1166
1171
|
default: i(() => [
|
|
1167
1172
|
n(ce, null, {
|
|
1168
1173
|
default: i(() => [
|
|
1169
|
-
v(
|
|
1174
|
+
v(u(o(r)({
|
|
1170
1175
|
id: "invoice.line.original_currency",
|
|
1171
1176
|
defaultMessage: "Original currency",
|
|
1172
1177
|
description: "Original currency"
|
|
@@ -1183,7 +1188,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1183
1188
|
})
|
|
1184
1189
|
]),
|
|
1185
1190
|
default: i(() => [
|
|
1186
|
-
n(
|
|
1191
|
+
n(G, {
|
|
1187
1192
|
icon: "info",
|
|
1188
1193
|
size: "2xs"
|
|
1189
1194
|
})
|
|
@@ -1191,9 +1196,9 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1191
1196
|
_: 1
|
|
1192
1197
|
})) : y("", !0)
|
|
1193
1198
|
]),
|
|
1194
|
-
e.hideTaxDetails ? y("", !0) : (t(), l("div",
|
|
1199
|
+
e.hideTaxDetails ? y("", !0) : (t(), l("div", on, [
|
|
1195
1200
|
e.amountType === "INCLUDING_TAX" ? (t(), l(x, { key: 0 }, [
|
|
1196
|
-
v(
|
|
1201
|
+
v(u(o(r)({
|
|
1197
1202
|
id: "invoice.line.excl.tax",
|
|
1198
1203
|
defaultMessage: "Excl. tax",
|
|
1199
1204
|
description: "Value excludes tax"
|
|
@@ -1202,7 +1207,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1202
1207
|
value: oe.base_amount
|
|
1203
1208
|
}, null, 8, ["value"])
|
|
1204
1209
|
], 64)) : (t(), l(x, { key: 1 }, [
|
|
1205
|
-
v(
|
|
1210
|
+
v(u(o(r)({
|
|
1206
1211
|
id: "invoice.line.incl.tax",
|
|
1207
1212
|
defaultMessage: "Incl. tax",
|
|
1208
1213
|
description: "Value includes tax"
|
|
@@ -1213,8 +1218,8 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1213
1218
|
], 64))
|
|
1214
1219
|
]))
|
|
1215
1220
|
]);
|
|
1216
|
-
}), 128)) : (t(), l("div",
|
|
1217
|
-
h("div",
|
|
1221
|
+
}), 128)) : (t(), l("div", ln, [
|
|
1222
|
+
h("div", rn, [
|
|
1218
1223
|
n(w, {
|
|
1219
1224
|
value: e.amount ?? e.details.amount,
|
|
1220
1225
|
"data-testid": o(re)
|
|
@@ -1228,7 +1233,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1228
1233
|
default: i(() => [
|
|
1229
1234
|
n(ce, null, {
|
|
1230
1235
|
default: i(() => [
|
|
1231
|
-
v(
|
|
1236
|
+
v(u(o(r)({
|
|
1232
1237
|
id: "invoice.line.original_currency",
|
|
1233
1238
|
defaultMessage: "Original currency",
|
|
1234
1239
|
description: "Original currency"
|
|
@@ -1245,7 +1250,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1245
1250
|
})
|
|
1246
1251
|
]),
|
|
1247
1252
|
default: i(() => [
|
|
1248
|
-
n(
|
|
1253
|
+
n(G, {
|
|
1249
1254
|
icon: "info",
|
|
1250
1255
|
size: "2xs"
|
|
1251
1256
|
})
|
|
@@ -1264,17 +1269,17 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1264
1269
|
})
|
|
1265
1270
|
], 64));
|
|
1266
1271
|
}
|
|
1267
|
-
}),
|
|
1268
|
-
const a = [...e].sort((r, f) => r.line_order - f.line_order),
|
|
1269
|
-
(f) => !
|
|
1270
|
-
), m = a.filter((r) =>
|
|
1272
|
+
}), sn = ["DISCOUNT", "MARKUP"], dn = (e) => {
|
|
1273
|
+
const a = [...e].sort((r, f) => r.line_order - f.line_order), c = (r) => sn.includes(r.type), d = (r) => !!r.pricing_item_config_id && a.some(
|
|
1274
|
+
(f) => !c(f) && f.pricing_item_config_id === r.pricing_item_config_id
|
|
1275
|
+
), m = a.filter((r) => c(r) && d(r)), s = a.filter((r) => !m.includes(r));
|
|
1271
1276
|
return m.forEach((r) => {
|
|
1272
1277
|
const f = s.findLastIndex(
|
|
1273
|
-
(b) => b.pricing_item_config_id === r.pricing_item_config_id && (!
|
|
1278
|
+
(b) => b.pricing_item_config_id === r.pricing_item_config_id && (!c(b) || m.includes(b))
|
|
1274
1279
|
);
|
|
1275
1280
|
s.splice(f + 1, 0, r);
|
|
1276
1281
|
}), s;
|
|
1277
|
-
},
|
|
1282
|
+
}, un = ["tabindex", "onClick"], Se = /* @__PURE__ */ L({
|
|
1278
1283
|
__name: "InvoiceLineGroup",
|
|
1279
1284
|
props: {
|
|
1280
1285
|
group: {},
|
|
@@ -1289,11 +1294,11 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1289
1294
|
isExpandable: { type: Boolean, default: !0 }
|
|
1290
1295
|
},
|
|
1291
1296
|
setup(e) {
|
|
1292
|
-
const a = e,
|
|
1297
|
+
const a = e, c = P(() => dn(a.group.lines ?? [])), d = W(), { getIsOpen: m, toggle: s } = se(), r = (b, g) => {
|
|
1293
1298
|
s(f(b, g));
|
|
1294
1299
|
}, f = (b, g) => `${b}-line-${g}`;
|
|
1295
1300
|
return (b, g) => (t(), l("div", null, [
|
|
1296
|
-
n(
|
|
1301
|
+
n(j, null, {
|
|
1297
1302
|
default: i(() => [
|
|
1298
1303
|
h("tr", null, [
|
|
1299
1304
|
n(M, {
|
|
@@ -1301,7 +1306,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1301
1306
|
class: "w-1/5 text-secondary"
|
|
1302
1307
|
}, {
|
|
1303
1308
|
default: i(() => [
|
|
1304
|
-
v(
|
|
1309
|
+
v(u(o(d).$t({
|
|
1305
1310
|
id: "invoice.table_header.unit",
|
|
1306
1311
|
defaultMessage: "Unit",
|
|
1307
1312
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -1314,7 +1319,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1314
1319
|
class: "w-1/5 text-secondary"
|
|
1315
1320
|
}, {
|
|
1316
1321
|
default: i(() => [
|
|
1317
|
-
v(
|
|
1322
|
+
v(u(o(d).$t({
|
|
1318
1323
|
id: "invoice.table_header.quantity",
|
|
1319
1324
|
defaultMessage: "Quantity",
|
|
1320
1325
|
description: "Table header for quantity column"
|
|
@@ -1327,7 +1332,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1327
1332
|
class: "w-1/5 text-secondary"
|
|
1328
1333
|
}, {
|
|
1329
1334
|
default: i(() => [
|
|
1330
|
-
v(
|
|
1335
|
+
v(u(o(d).$t({
|
|
1331
1336
|
id: "invoice.table_header.price",
|
|
1332
1337
|
defaultMessage: "Price",
|
|
1333
1338
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -1341,7 +1346,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1341
1346
|
class: "w-1/5 text-secondary"
|
|
1342
1347
|
}, {
|
|
1343
1348
|
default: i(() => [
|
|
1344
|
-
v(
|
|
1349
|
+
v(u(o(d).$t({
|
|
1345
1350
|
id: "invoice.table_header.tax_rate",
|
|
1346
1351
|
defaultMessage: "Tax rate",
|
|
1347
1352
|
description: "Table header for the column containing the tax percentage of invoice groups"
|
|
@@ -1354,7 +1359,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1354
1359
|
class: "w-1/5 text-secondary"
|
|
1355
1360
|
}, {
|
|
1356
1361
|
default: i(() => [
|
|
1357
|
-
v(
|
|
1362
|
+
v(u(o(d).$t({
|
|
1358
1363
|
id: "invoice.table_header.sub_total",
|
|
1359
1364
|
defaultMessage: "Subtotal",
|
|
1360
1365
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -1363,7 +1368,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1363
1368
|
_: 1
|
|
1364
1369
|
})
|
|
1365
1370
|
]),
|
|
1366
|
-
(t(!0), l(x, null, R(
|
|
1371
|
+
(t(!0), l(x, null, R(c.value, (p, T) => (t(), l(x, { key: T }, [
|
|
1367
1372
|
h("tr", {
|
|
1368
1373
|
tabindex: e.isExpandable && p.sub_lines ? 0 : void 0,
|
|
1369
1374
|
class: N(["group", {
|
|
@@ -1372,12 +1377,12 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1372
1377
|
}]),
|
|
1373
1378
|
onClick: (I) => r(e.group.group_order, p.line_order)
|
|
1374
1379
|
}, [
|
|
1375
|
-
(t(), _(
|
|
1380
|
+
(t(), _(Wt, {
|
|
1376
1381
|
key: T,
|
|
1377
1382
|
data: p,
|
|
1378
1383
|
"period-order": e.invoicePeriodOrder,
|
|
1379
1384
|
"group-order": e.group.group_order,
|
|
1380
|
-
"is-last": T ===
|
|
1385
|
+
"is-last": T === c.value.length - 1,
|
|
1381
1386
|
"group-type": e.group.type,
|
|
1382
1387
|
"is-expanded": o(m)(f(e.group.group_order, p.line_order))
|
|
1383
1388
|
}, {
|
|
@@ -1410,7 +1415,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1410
1415
|
}),
|
|
1411
1416
|
_: 2
|
|
1412
1417
|
}, 1032, ["data", "period-order", "group-order", "is-last", "group-type", "is-expanded"]))
|
|
1413
|
-
], 10,
|
|
1418
|
+
], 10, un),
|
|
1414
1419
|
n(be, {
|
|
1415
1420
|
ref_for: !0,
|
|
1416
1421
|
ref: f(e.group.group_order, p.line_order),
|
|
@@ -1449,7 +1454,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1449
1454
|
})
|
|
1450
1455
|
]));
|
|
1451
1456
|
}
|
|
1452
|
-
}),
|
|
1457
|
+
}), cn = { class: "flex items-center" }, mn = {
|
|
1453
1458
|
key: 2,
|
|
1454
1459
|
class: "ml-1 inline-flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-full bg-primary-100 text-2xs font-bold text-primary-600"
|
|
1455
1460
|
}, me = /* @__PURE__ */ L({
|
|
@@ -1459,11 +1464,11 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1459
1464
|
count: {}
|
|
1460
1465
|
},
|
|
1461
1466
|
setup(e) {
|
|
1462
|
-
const a = le(),
|
|
1463
|
-
return
|
|
1464
|
-
|
|
1465
|
-
}), (
|
|
1466
|
-
|
|
1467
|
+
const a = le(), c = le(!1);
|
|
1468
|
+
return Ye(a, ([d]) => {
|
|
1469
|
+
c.value = d.target.clientWidth < d.target.scrollWidth;
|
|
1470
|
+
}), (d, m) => (t(), l("div", cn, [
|
|
1471
|
+
c.value ? (t(), _(de, {
|
|
1467
1472
|
key: 0,
|
|
1468
1473
|
placement: "bottom-start",
|
|
1469
1474
|
class: "min-w-0 leading-normal"
|
|
@@ -1473,7 +1478,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1473
1478
|
default: i(() => [
|
|
1474
1479
|
n(ce, null, {
|
|
1475
1480
|
default: i(() => [
|
|
1476
|
-
v(
|
|
1481
|
+
v(u(e.label), 1)
|
|
1477
1482
|
]),
|
|
1478
1483
|
_: 1
|
|
1479
1484
|
})
|
|
@@ -1486,7 +1491,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1486
1491
|
ref_key: "labelElement",
|
|
1487
1492
|
ref: a,
|
|
1488
1493
|
class: "block truncate"
|
|
1489
|
-
},
|
|
1494
|
+
}, u(e.label), 513)
|
|
1490
1495
|
]),
|
|
1491
1496
|
_: 1
|
|
1492
1497
|
})) : (t(), l("span", {
|
|
@@ -1494,14 +1499,14 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1494
1499
|
ref_key: "labelElement",
|
|
1495
1500
|
ref: a,
|
|
1496
1501
|
class: N(["block", { truncate: e.count !== void 0 }])
|
|
1497
|
-
},
|
|
1498
|
-
e.count !== void 0 ? (t(), l("span",
|
|
1502
|
+
}, u(e.label), 3)),
|
|
1503
|
+
e.count !== void 0 ? (t(), l("span", mn, u(e.count), 1)) : y("", !0)
|
|
1499
1504
|
]));
|
|
1500
1505
|
}
|
|
1501
|
-
}),
|
|
1506
|
+
}), fn = ["tabindex"], vn = { key: 0 }, gn = {
|
|
1502
1507
|
colspan: "2",
|
|
1503
1508
|
class: "p-0"
|
|
1504
|
-
},
|
|
1509
|
+
}, bn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, yn = /* @__PURE__ */ L({
|
|
1505
1510
|
__name: "InvoiceGroupRevenue",
|
|
1506
1511
|
props: {
|
|
1507
1512
|
forwardedFromCustomers: {},
|
|
@@ -1520,12 +1525,12 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1520
1525
|
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
1521
1526
|
},
|
|
1522
1527
|
setup(e) {
|
|
1523
|
-
const a = e,
|
|
1524
|
-
var
|
|
1528
|
+
const a = e, c = P(() => {
|
|
1529
|
+
var d, m, s;
|
|
1525
1530
|
const r = [
|
|
1526
|
-
(
|
|
1531
|
+
(d = a.group.pricing) == null ? void 0 : d.name,
|
|
1527
1532
|
ge(((m = a.group.products) == null ? void 0 : m.map((g) => g.name)) ?? [])
|
|
1528
|
-
].filter(Boolean).join(" - "), f =
|
|
1533
|
+
].filter(Boolean).join(" - "), f = Bt(
|
|
1529
1534
|
a.group,
|
|
1530
1535
|
!!a.showOriginalCustomerInvoiceLine
|
|
1531
1536
|
);
|
|
@@ -1536,7 +1541,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1536
1541
|
);
|
|
1537
1542
|
return [b && we(b), r].filter(Boolean).join(" - ");
|
|
1538
1543
|
});
|
|
1539
|
-
return (
|
|
1544
|
+
return (d, m) => (t(), l(x, null, [
|
|
1540
1545
|
h("tr", {
|
|
1541
1546
|
class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
1542
1547
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
@@ -1550,7 +1555,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1550
1555
|
default: i(() => {
|
|
1551
1556
|
var s;
|
|
1552
1557
|
return [
|
|
1553
|
-
e.isExpandable ? (t(), _(
|
|
1558
|
+
e.isExpandable ? (t(), _(G, {
|
|
1554
1559
|
key: 0,
|
|
1555
1560
|
icon: "keyboard_arrow_down",
|
|
1556
1561
|
size: "md",
|
|
@@ -1561,7 +1566,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1561
1566
|
}])
|
|
1562
1567
|
}, null, 8, ["class"])) : y("", !0),
|
|
1563
1568
|
n(me, {
|
|
1564
|
-
label:
|
|
1569
|
+
label: c.value,
|
|
1565
1570
|
count: e.isExpandable ? ((s = e.group.lines) == null ? void 0 : s.length) ?? 0 : void 0
|
|
1566
1571
|
}, null, 8, ["label", "count"])
|
|
1567
1572
|
];
|
|
@@ -1584,10 +1589,10 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1584
1589
|
]),
|
|
1585
1590
|
_: 1
|
|
1586
1591
|
})
|
|
1587
|
-
], 42,
|
|
1588
|
-
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), l("tr",
|
|
1589
|
-
h("td",
|
|
1590
|
-
h("div",
|
|
1592
|
+
], 42, fn),
|
|
1593
|
+
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), l("tr", vn, [
|
|
1594
|
+
h("td", gn, [
|
|
1595
|
+
h("div", bn, [
|
|
1591
1596
|
n(Se, {
|
|
1592
1597
|
"invoice-period-order": e.invoicePeriodOrder,
|
|
1593
1598
|
"start-date": e.group.start_at,
|
|
@@ -1601,10 +1606,10 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1601
1606
|
"is-expandable": e.isExpandable
|
|
1602
1607
|
}, {
|
|
1603
1608
|
"invoice-line-prefix": i((s) => [
|
|
1604
|
-
$(
|
|
1609
|
+
$(d.$slots, "invoice-line-prefix", fe(ve(s)))
|
|
1605
1610
|
]),
|
|
1606
1611
|
"one-off-line-context-menu": i((s) => [
|
|
1607
|
-
$(
|
|
1612
|
+
$(d.$slots, "one-off-line-context-menu", J(s, { groupOrder: e.groupOrder }))
|
|
1608
1613
|
]),
|
|
1609
1614
|
_: 3
|
|
1610
1615
|
}, 8, ["invoice-period-order", "start-date", "end-date", "total", "group", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "is-expandable"])
|
|
@@ -1620,15 +1625,15 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1620
1625
|
creditTypes: {}
|
|
1621
1626
|
},
|
|
1622
1627
|
setup(e) {
|
|
1623
|
-
const a = e, { $t:
|
|
1628
|
+
const a = e, { $t: c } = W(), d = P(
|
|
1624
1629
|
() => Ne(Be(a.lines), {
|
|
1625
1630
|
creditTypes: a.creditTypes,
|
|
1626
|
-
creditsLabel:
|
|
1631
|
+
creditsLabel: c({
|
|
1627
1632
|
defaultMessage: "Credits",
|
|
1628
1633
|
description: "Generic fallback label for a wallet balance row with no known credit type",
|
|
1629
1634
|
id: "invoiceGroupWalletBalance.creditsLabel"
|
|
1630
1635
|
}),
|
|
1631
|
-
walletLabel:
|
|
1636
|
+
walletLabel: c({
|
|
1632
1637
|
defaultMessage: "Wallet balance",
|
|
1633
1638
|
description: "Label for a wallet balance row of a wallet that pays in money",
|
|
1634
1639
|
id: "invoiceGroupWalletBalance.walletBalanceLabel"
|
|
@@ -1638,7 +1643,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1638
1643
|
formatMoney: Me,
|
|
1639
1644
|
formatQuantity: (r) => r
|
|
1640
1645
|
});
|
|
1641
|
-
return (s, r) =>
|
|
1646
|
+
return (s, r) => d.value.length ? (t(), _(j, { key: 0 }, {
|
|
1642
1647
|
default: i(() => [
|
|
1643
1648
|
h("tr", null, [
|
|
1644
1649
|
n(M, {
|
|
@@ -1646,7 +1651,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1646
1651
|
class: "w-2/5 text-gray-400"
|
|
1647
1652
|
}, {
|
|
1648
1653
|
default: i(() => [
|
|
1649
|
-
v(
|
|
1654
|
+
v(u(o(c)({
|
|
1650
1655
|
defaultMessage: "Wallet breakdown",
|
|
1651
1656
|
description: "Table heading for the wallet column in the wallet balance table",
|
|
1652
1657
|
id: "invoiceGroupWalletBalance.walletBreakdownHeading"
|
|
@@ -1659,7 +1664,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1659
1664
|
class: "w-1/5 text-gray-400"
|
|
1660
1665
|
}, {
|
|
1661
1666
|
default: i(() => [
|
|
1662
|
-
v(
|
|
1667
|
+
v(u(o(c)({
|
|
1663
1668
|
defaultMessage: "Balance",
|
|
1664
1669
|
description: "Table heading for the balance column in the wallet balance table",
|
|
1665
1670
|
id: "invoiceGroupWalletBalance.balanceHeading"
|
|
@@ -1672,7 +1677,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1672
1677
|
class: "w-1/5 text-gray-400"
|
|
1673
1678
|
}, {
|
|
1674
1679
|
default: i(() => [
|
|
1675
|
-
v(
|
|
1680
|
+
v(u(o(c)({
|
|
1676
1681
|
defaultMessage: "Used",
|
|
1677
1682
|
description: "Table heading for the used-balance column in the wallet balance table",
|
|
1678
1683
|
id: "invoiceGroupWalletBalance.usedHeading"
|
|
@@ -1685,7 +1690,7 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1685
1690
|
class: "w-1/5 text-gray-400"
|
|
1686
1691
|
}, {
|
|
1687
1692
|
default: i(() => [
|
|
1688
|
-
v(
|
|
1693
|
+
v(u(o(c)({
|
|
1689
1694
|
defaultMessage: "Remaining",
|
|
1690
1695
|
description: "Table heading for the remaining-balance column in the wallet balance table",
|
|
1691
1696
|
id: "invoiceGroupWalletBalance.remainingHeading"
|
|
@@ -1694,30 +1699,30 @@ const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
|
|
|
1694
1699
|
_: 1
|
|
1695
1700
|
})
|
|
1696
1701
|
]),
|
|
1697
|
-
(t(!0), l(x, null, R(
|
|
1702
|
+
(t(!0), l(x, null, R(d.value, (f) => (t(), l("tr", {
|
|
1698
1703
|
key: f.key
|
|
1699
1704
|
}, [
|
|
1700
1705
|
n(k, null, {
|
|
1701
1706
|
default: i(() => [
|
|
1702
|
-
v(
|
|
1707
|
+
v(u(f.label), 1)
|
|
1703
1708
|
]),
|
|
1704
1709
|
_: 2
|
|
1705
1710
|
}, 1024),
|
|
1706
1711
|
n(k, { number: "" }, {
|
|
1707
1712
|
default: i(() => [
|
|
1708
|
-
v(
|
|
1713
|
+
v(u(m(f.availableBalance)), 1)
|
|
1709
1714
|
]),
|
|
1710
1715
|
_: 2
|
|
1711
1716
|
}, 1024),
|
|
1712
1717
|
n(k, { number: "" }, {
|
|
1713
1718
|
default: i(() => [
|
|
1714
|
-
v(
|
|
1719
|
+
v(u(m(f.usedBalance)), 1)
|
|
1715
1720
|
]),
|
|
1716
1721
|
_: 2
|
|
1717
1722
|
}, 1024),
|
|
1718
1723
|
n(k, { number: "" }, {
|
|
1719
1724
|
default: i(() => [
|
|
1720
|
-
v(
|
|
1725
|
+
v(u(m(f.leftBalance)), 1)
|
|
1721
1726
|
]),
|
|
1722
1727
|
_: 2
|
|
1723
1728
|
}, 1024)
|
|
@@ -1731,22 +1736,22 @@ function ke(e) {
|
|
|
1731
1736
|
return typeof e == "function" ? e() : o(e);
|
|
1732
1737
|
}
|
|
1733
1738
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1734
|
-
function
|
|
1739
|
+
function pn(e = !1, a = {}) {
|
|
1735
1740
|
const {
|
|
1736
|
-
truthyValue:
|
|
1737
|
-
falsyValue:
|
|
1741
|
+
truthyValue: c = !0,
|
|
1742
|
+
falsyValue: d = !1
|
|
1738
1743
|
} = a, m = De(e), s = le(e);
|
|
1739
1744
|
function r(f) {
|
|
1740
1745
|
if (arguments.length)
|
|
1741
1746
|
return s.value = f, s.value;
|
|
1742
1747
|
{
|
|
1743
|
-
const b = ke(
|
|
1744
|
-
return s.value = s.value === b ? ke(
|
|
1748
|
+
const b = ke(c);
|
|
1749
|
+
return s.value = s.value === b ? ke(d) : b, s.value;
|
|
1745
1750
|
}
|
|
1746
1751
|
}
|
|
1747
1752
|
return m ? r : [s, r];
|
|
1748
1753
|
}
|
|
1749
|
-
const
|
|
1754
|
+
const xn = {
|
|
1750
1755
|
key: 0,
|
|
1751
1756
|
totals: "",
|
|
1752
1757
|
class: "border-t break-inside-avoid"
|
|
@@ -1757,10 +1762,10 @@ const Tn = {
|
|
|
1757
1762
|
},
|
|
1758
1763
|
setup(e) {
|
|
1759
1764
|
const a = W();
|
|
1760
|
-
return (
|
|
1765
|
+
return (c, d) => e.baseAmount ? (t(), l("tr", xn, [
|
|
1761
1766
|
n(k, null, {
|
|
1762
1767
|
default: i(() => [
|
|
1763
|
-
v(
|
|
1768
|
+
v(u(o(a).$t({
|
|
1764
1769
|
id: "invoice.table_header.total_excluding_taxes",
|
|
1765
1770
|
defaultMessage: "Total excluding taxes",
|
|
1766
1771
|
description: "Table row header for the total excluding taxes column in the invoice table"
|
|
@@ -1772,14 +1777,14 @@ const Tn = {
|
|
|
1772
1777
|
default: i(() => [
|
|
1773
1778
|
n(w, {
|
|
1774
1779
|
value: e.baseAmount,
|
|
1775
|
-
"data-testid": o(
|
|
1780
|
+
"data-testid": o(st)
|
|
1776
1781
|
}, null, 8, ["value", "data-testid"])
|
|
1777
1782
|
]),
|
|
1778
1783
|
_: 1
|
|
1779
1784
|
})
|
|
1780
1785
|
])) : y("", !0);
|
|
1781
1786
|
}
|
|
1782
|
-
}),
|
|
1787
|
+
}), hn = {
|
|
1783
1788
|
key: 0,
|
|
1784
1789
|
class: "border-t font-bold break-inside-avoid"
|
|
1785
1790
|
}, Oe = /* @__PURE__ */ L({
|
|
@@ -1790,10 +1795,10 @@ const Tn = {
|
|
|
1790
1795
|
},
|
|
1791
1796
|
setup(e) {
|
|
1792
1797
|
const a = W();
|
|
1793
|
-
return (
|
|
1798
|
+
return (c, d) => e.totalAmount ? (t(), l("tr", hn, [
|
|
1794
1799
|
n(k, { class: "font-bold" }, {
|
|
1795
1800
|
default: i(() => [
|
|
1796
|
-
v(
|
|
1801
|
+
v(u(e.isCustomerFacing ? o(a).$t({
|
|
1797
1802
|
id: "invoice.table_header.total_including_taxes_customer_facing",
|
|
1798
1803
|
defaultMessage: "Total due today",
|
|
1799
1804
|
description: "Table row header for the total including taxes column in the invoice table for a customer facing component"
|
|
@@ -1809,30 +1814,30 @@ const Tn = {
|
|
|
1809
1814
|
default: i(() => [
|
|
1810
1815
|
n(w, {
|
|
1811
1816
|
value: e.totalAmount,
|
|
1812
|
-
"data-testid": o(
|
|
1817
|
+
"data-testid": o(rt)
|
|
1813
1818
|
}, null, 8, ["value", "data-testid"])
|
|
1814
1819
|
]),
|
|
1815
1820
|
_: 1
|
|
1816
1821
|
})
|
|
1817
1822
|
])) : y("", !0);
|
|
1818
1823
|
}
|
|
1819
|
-
}),
|
|
1824
|
+
}), _n = {
|
|
1820
1825
|
key: 0,
|
|
1821
1826
|
colspan: "4",
|
|
1822
1827
|
class: "p-0"
|
|
1823
|
-
},
|
|
1828
|
+
}, kn = /* @__PURE__ */ L({
|
|
1824
1829
|
__name: "InvoiceTaxes",
|
|
1825
1830
|
props: {
|
|
1826
1831
|
taxCategories: {}
|
|
1827
1832
|
},
|
|
1828
1833
|
setup(e) {
|
|
1829
1834
|
const a = W();
|
|
1830
|
-
return (
|
|
1835
|
+
return (c, d) => (t(), _(j, { class: "table-fixed" }, {
|
|
1831
1836
|
default: i(() => [
|
|
1832
1837
|
h("tr", null, [
|
|
1833
1838
|
n(M, { left: "" }, {
|
|
1834
1839
|
default: i(() => [
|
|
1835
|
-
v(
|
|
1840
|
+
v(u(o(a).$t({
|
|
1836
1841
|
id: "invoice.table_header.tax type",
|
|
1837
1842
|
defaultMessage: "Tax type",
|
|
1838
1843
|
description: "Table header for the column containing the tax type"
|
|
@@ -1842,7 +1847,7 @@ const Tn = {
|
|
|
1842
1847
|
}),
|
|
1843
1848
|
n(M, { right: "" }, {
|
|
1844
1849
|
default: i(() => [
|
|
1845
|
-
v(
|
|
1850
|
+
v(u(o(a).$t({
|
|
1846
1851
|
id: "invoice.table_header.base amount",
|
|
1847
1852
|
defaultMessage: "Base amount",
|
|
1848
1853
|
description: "Table header for the column containing the base amount"
|
|
@@ -1852,7 +1857,7 @@ const Tn = {
|
|
|
1852
1857
|
}),
|
|
1853
1858
|
n(M, { right: "" }, {
|
|
1854
1859
|
default: i(() => [
|
|
1855
|
-
v(
|
|
1860
|
+
v(u(o(a).$t({
|
|
1856
1861
|
id: "invoice.table_header.tax_percentage",
|
|
1857
1862
|
defaultMessage: "Percentage",
|
|
1858
1863
|
description: "Table header for the column containing the tax percentage"
|
|
@@ -1862,7 +1867,7 @@ const Tn = {
|
|
|
1862
1867
|
}),
|
|
1863
1868
|
n(M, { right: "" }, {
|
|
1864
1869
|
default: i(() => [
|
|
1865
|
-
v(
|
|
1870
|
+
v(u(o(a).$t({
|
|
1866
1871
|
id: "invoice.table_header.tax amount",
|
|
1867
1872
|
defaultMessage: "Tax amount",
|
|
1868
1873
|
description: "Table header for the column containing the tax amount"
|
|
@@ -1872,13 +1877,13 @@ const Tn = {
|
|
|
1872
1877
|
})
|
|
1873
1878
|
]),
|
|
1874
1879
|
(t(!0), l(x, null, R(e.taxCategories, (m, s) => (t(), l("tr", { key: s }, [
|
|
1875
|
-
m.rates ? (t(), l("td",
|
|
1876
|
-
n(
|
|
1880
|
+
m.rates ? (t(), l("td", _n, [
|
|
1881
|
+
n(j, { class: "table-fixed" }, {
|
|
1877
1882
|
default: i(() => [
|
|
1878
1883
|
(t(!0), l(x, null, R(m.rates, (r, f) => (t(), l("tr", { key: f }, [
|
|
1879
1884
|
n(k, null, {
|
|
1880
1885
|
default: i(() => [
|
|
1881
|
-
v(
|
|
1886
|
+
v(u(r.name) + " (" + u(m.category) + ") ", 1)
|
|
1882
1887
|
]),
|
|
1883
1888
|
_: 2
|
|
1884
1889
|
}, 1024),
|
|
@@ -1892,7 +1897,7 @@ const Tn = {
|
|
|
1892
1897
|
}, 1024),
|
|
1893
1898
|
n(k, { number: "" }, {
|
|
1894
1899
|
default: i(() => [
|
|
1895
|
-
v(
|
|
1900
|
+
v(u(r.percentage) + "%", 1)
|
|
1896
1901
|
]),
|
|
1897
1902
|
_: 2
|
|
1898
1903
|
}, 1024),
|
|
@@ -1911,7 +1916,7 @@ const Tn = {
|
|
|
1911
1916
|
])) : (t(), l(x, { key: 1 }, [
|
|
1912
1917
|
n(k, null, {
|
|
1913
1918
|
default: i(() => [
|
|
1914
|
-
v(
|
|
1919
|
+
v(u(m.name) + " (" + u(m.category) + ") ", 1)
|
|
1915
1920
|
]),
|
|
1916
1921
|
_: 2
|
|
1917
1922
|
}, 1024),
|
|
@@ -1925,7 +1930,7 @@ const Tn = {
|
|
|
1925
1930
|
}, 1024),
|
|
1926
1931
|
n(k, { number: "" }, {
|
|
1927
1932
|
default: i(() => [
|
|
1928
|
-
v(
|
|
1933
|
+
v(u(m.percentage) + "%", 1)
|
|
1929
1934
|
]),
|
|
1930
1935
|
_: 2
|
|
1931
1936
|
}, 1024),
|
|
@@ -1943,25 +1948,25 @@ const Tn = {
|
|
|
1943
1948
|
_: 1
|
|
1944
1949
|
}));
|
|
1945
1950
|
}
|
|
1946
|
-
}),
|
|
1951
|
+
}), Tn = { class: "flex items-start justify-between" }, On = {
|
|
1947
1952
|
key: 0,
|
|
1948
1953
|
class: "max-h-9"
|
|
1949
|
-
},
|
|
1954
|
+
}, In = { class: "flex flex-col gap-2" }, wn = { key: 0 }, $n = { key: 3 }, Mn = {
|
|
1950
1955
|
colspan: "2",
|
|
1951
1956
|
class: "p-0"
|
|
1952
|
-
},
|
|
1957
|
+
}, En = ["tabindex"], Cn = { key: 1 }, Nn = {
|
|
1953
1958
|
colspan: "2",
|
|
1954
1959
|
class: "p-0"
|
|
1955
|
-
},
|
|
1960
|
+
}, Bn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, An = ["tabindex", "onClick", "onKeyup"], Pn = { key: 0 }, Sn = {
|
|
1956
1961
|
colspan: "2",
|
|
1957
1962
|
class: "p-0"
|
|
1958
|
-
},
|
|
1963
|
+
}, Ln = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Un = { key: 1 }, Dn = {
|
|
1959
1964
|
colspan: "2",
|
|
1960
1965
|
class: "p-0"
|
|
1961
|
-
},
|
|
1966
|
+
}, Rn = {
|
|
1962
1967
|
key: 0,
|
|
1963
1968
|
class: "break-inside-avoid border-t font-bold"
|
|
1964
|
-
},
|
|
1969
|
+
}, Fn = /* @__PURE__ */ L({
|
|
1965
1970
|
__name: "InvoiceSummary",
|
|
1966
1971
|
props: {
|
|
1967
1972
|
invoice: {},
|
|
@@ -1978,26 +1983,26 @@ const Tn = {
|
|
|
1978
1983
|
},
|
|
1979
1984
|
emits: ["add-invoice-line", "add-note"],
|
|
1980
1985
|
setup(e, { emit: a }) {
|
|
1981
|
-
const
|
|
1986
|
+
const c = W(), { formatMessage: d } = c, m = a, s = e, [r, f] = xe(), [b, g] = xe(), [p, T] = pn(), I = (...O) => {
|
|
1982
1987
|
s.isExpandable && f(...O);
|
|
1983
1988
|
}, S = (O) => {
|
|
1984
1989
|
s.isExpandable && g(O);
|
|
1985
1990
|
}, E = () => {
|
|
1986
1991
|
!s.invoice.tax_categories || !s.isExpandable || T();
|
|
1987
|
-
}, C = (O, D) => +`${O}${D}`, B = (O) =>
|
|
1992
|
+
}, C = (O, D) => +`${O}${D}`, B = (O) => c.$t(
|
|
1988
1993
|
{
|
|
1989
1994
|
id: "invoice.service_period_heading",
|
|
1990
1995
|
defaultMessage: "Service period - {start_at} - {end_at}",
|
|
1991
1996
|
description: "Heading for rendered services where {start_at} is replaced for the start date and {end_at} for the end date in invoice summary"
|
|
1992
1997
|
},
|
|
1993
1998
|
{
|
|
1994
|
-
start_at:
|
|
1999
|
+
start_at: c.formatDate({
|
|
1995
2000
|
date: O.start_at,
|
|
1996
2001
|
format: "date",
|
|
1997
2002
|
timezone: ye(s.invoice.customer.timezone),
|
|
1998
2003
|
offsetType: "offsetted"
|
|
1999
2004
|
}),
|
|
2000
|
-
end_at:
|
|
2005
|
+
end_at: c.formatDate({
|
|
2001
2006
|
date: O.end_at,
|
|
2002
2007
|
format: "date",
|
|
2003
2008
|
timezone: ye(s.invoice.customer.timezone),
|
|
@@ -2008,31 +2013,31 @@ const Tn = {
|
|
|
2008
2013
|
switch (O) {
|
|
2009
2014
|
case "PRICING":
|
|
2010
2015
|
case "REVENUE":
|
|
2011
|
-
return
|
|
2016
|
+
return c.$t({
|
|
2012
2017
|
id: "invoice.table_heading.products",
|
|
2013
2018
|
defaultMessage: "Products",
|
|
2014
2019
|
description: "Table heading for the column containing the products of the invoice"
|
|
2015
2020
|
});
|
|
2016
2021
|
case "COMMITMENT":
|
|
2017
|
-
return
|
|
2022
|
+
return c.$t({
|
|
2018
2023
|
id: "invoice.table_heading.commitments",
|
|
2019
2024
|
defaultMessage: "Commitments",
|
|
2020
2025
|
description: "Table heading for the column containing the commitments of the invoice"
|
|
2021
2026
|
});
|
|
2022
2027
|
case "DISCOUNT":
|
|
2023
|
-
return
|
|
2028
|
+
return c.$t({
|
|
2024
2029
|
id: "invoice.table_heading.discounts",
|
|
2025
2030
|
defaultMessage: "Discounts",
|
|
2026
2031
|
description: "Table heading for the column containing the discounts of the invoice"
|
|
2027
2032
|
});
|
|
2028
2033
|
case "MARKUP":
|
|
2029
|
-
return
|
|
2034
|
+
return c.$t({
|
|
2030
2035
|
id: "invoice.table_heading.markups",
|
|
2031
2036
|
defaultMessage: "Markups",
|
|
2032
2037
|
description: "Table heading for the column containing the markups of the invoice"
|
|
2033
2038
|
});
|
|
2034
2039
|
case "ONE_OFF":
|
|
2035
|
-
return
|
|
2040
|
+
return c.$t({
|
|
2036
2041
|
id: "invoice.table_heading.one_offs",
|
|
2037
2042
|
defaultMessage: "One-off's",
|
|
2038
2043
|
description: "Table heading for the column containing the one-offs of the invoice"
|
|
@@ -2053,14 +2058,14 @@ const Tn = {
|
|
|
2053
2058
|
), q = P(() => {
|
|
2054
2059
|
const O = [];
|
|
2055
2060
|
return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable && O.push({
|
|
2056
|
-
label:
|
|
2061
|
+
label: d({
|
|
2057
2062
|
defaultMessage: "Invoice line",
|
|
2058
2063
|
id: "JlhdD2",
|
|
2059
2064
|
description: "Label for adding an invoice line"
|
|
2060
2065
|
}),
|
|
2061
2066
|
onClick: () => m("add-invoice-line")
|
|
2062
2067
|
}), s.isNoteCreatable && O.push({
|
|
2063
|
-
label:
|
|
2068
|
+
label: d({
|
|
2064
2069
|
defaultMessage: "Note",
|
|
2065
2070
|
id: "jB8+k/",
|
|
2066
2071
|
description: "Label for adding a note to an invoice"
|
|
@@ -2069,32 +2074,32 @@ const Tn = {
|
|
|
2069
2074
|
}), O;
|
|
2070
2075
|
}), Z = P(() => s.invoice.show_tax_per_line_item !== !1), oe = P(() => {
|
|
2071
2076
|
if (s.heading === "summary")
|
|
2072
|
-
return
|
|
2077
|
+
return c.$t({
|
|
2073
2078
|
id: "invoice.summaryTitle",
|
|
2074
2079
|
defaultMessage: "Invoice summary",
|
|
2075
2080
|
description: "Title for the compact, always-shown invoice summary section"
|
|
2076
2081
|
});
|
|
2077
2082
|
switch (s.invoice.type) {
|
|
2078
2083
|
case "CREDIT":
|
|
2079
|
-
return
|
|
2084
|
+
return c.$t({
|
|
2080
2085
|
id: "invoice.creditDetailsTitle",
|
|
2081
2086
|
defaultMessage: "Credit details",
|
|
2082
2087
|
description: "Title for the invoice summary of a credit-note invoice"
|
|
2083
2088
|
});
|
|
2084
2089
|
case "ONE_OFF":
|
|
2085
|
-
return
|
|
2090
|
+
return c.$t({
|
|
2086
2091
|
id: "invoice.oneOffDetailsTitle",
|
|
2087
2092
|
defaultMessage: "One-off details",
|
|
2088
2093
|
description: "Title for the invoice summary of a one-off invoice"
|
|
2089
2094
|
});
|
|
2090
2095
|
case "ONE_OFF_CREDIT":
|
|
2091
|
-
return
|
|
2096
|
+
return c.$t({
|
|
2092
2097
|
id: "invoice.oneOffCreditDetailsTitle",
|
|
2093
2098
|
defaultMessage: "One-off credit details",
|
|
2094
2099
|
description: "Title for the invoice summary of a one-off credit-note invoice"
|
|
2095
2100
|
});
|
|
2096
2101
|
default:
|
|
2097
|
-
return
|
|
2102
|
+
return c.$t({
|
|
2098
2103
|
id: "invoice.title",
|
|
2099
2104
|
defaultMessage: "Details",
|
|
2100
2105
|
description: "Title for the invoice summary"
|
|
@@ -2104,10 +2109,10 @@ const Tn = {
|
|
|
2104
2109
|
return (O, D) => {
|
|
2105
2110
|
var F;
|
|
2106
2111
|
return t(), l("div", null, [
|
|
2107
|
-
h("div",
|
|
2108
|
-
O.$slots.logo ? (t(), l("div",
|
|
2112
|
+
h("div", Tn, [
|
|
2113
|
+
O.$slots.logo ? (t(), l("div", On, [
|
|
2109
2114
|
$(O.$slots, "logo")
|
|
2110
|
-
])) : (t(), _(
|
|
2115
|
+
])) : (t(), _(Ke, {
|
|
2111
2116
|
key: 1,
|
|
2112
2117
|
title: oe.value,
|
|
2113
2118
|
variant: "neutral",
|
|
@@ -2116,20 +2121,20 @@ const Tn = {
|
|
|
2116
2121
|
"title-class": "print:text-sm"
|
|
2117
2122
|
}, null, 8, ["title"])),
|
|
2118
2123
|
O.$slots.intro ? $(O.$slots, "intro", {}, void 0, void 0, 2) : y("", !0),
|
|
2119
|
-
h("div",
|
|
2120
|
-
(F = q.value) != null && F.length ? (t(), _(
|
|
2124
|
+
h("div", In, [
|
|
2125
|
+
(F = q.value) != null && F.length ? (t(), _(Qe, {
|
|
2121
2126
|
key: 0,
|
|
2122
2127
|
items: q.value,
|
|
2123
2128
|
width: "auto"
|
|
2124
2129
|
}, {
|
|
2125
2130
|
trigger: i(() => [
|
|
2126
|
-
n(
|
|
2131
|
+
n(je, {
|
|
2127
2132
|
"icon-prefix": "add",
|
|
2128
2133
|
size: "sm",
|
|
2129
2134
|
intent: "secondary"
|
|
2130
2135
|
}, {
|
|
2131
2136
|
default: i(() => [
|
|
2132
|
-
v(
|
|
2137
|
+
v(u(o(d)({
|
|
2133
2138
|
defaultMessage: "Add",
|
|
2134
2139
|
id: "YnK/yF",
|
|
2135
2140
|
description: "Label for adding an item to an invoice"
|
|
@@ -2156,23 +2161,23 @@ const Tn = {
|
|
|
2156
2161
|
variant: "caps-heading"
|
|
2157
2162
|
}, {
|
|
2158
2163
|
default: i(() => [
|
|
2159
|
-
v(
|
|
2164
|
+
v(u(B(z)), 1)
|
|
2160
2165
|
]),
|
|
2161
2166
|
_: 2
|
|
2162
2167
|
}, 1024)
|
|
2163
2168
|
]),
|
|
2164
2169
|
_: 2
|
|
2165
2170
|
}, 1024)) : y("", !0),
|
|
2166
|
-
z.groups ? (t(), _(
|
|
2171
|
+
z.groups ? (t(), _(j, {
|
|
2167
2172
|
key: 1,
|
|
2168
2173
|
class: N(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
|
|
2169
|
-
"data-testid": o(
|
|
2174
|
+
"data-testid": o(at)
|
|
2170
2175
|
}, {
|
|
2171
2176
|
default: i(() => [
|
|
2172
2177
|
(t(!0), l(x, null, R(Object.entries(
|
|
2173
2178
|
X(z)
|
|
2174
2179
|
), ([U, ee], Q) => (t(), l(x, { key: U }, [
|
|
2175
|
-
Q > 0 ? (t(), l("tr",
|
|
2180
|
+
Q > 0 ? (t(), l("tr", wn, [...D[0] || (D[0] = [
|
|
2176
2181
|
h("td", null, [
|
|
2177
2182
|
h("div", { class: "h-4" })
|
|
2178
2183
|
], -1)
|
|
@@ -2183,7 +2188,7 @@ const Tn = {
|
|
|
2183
2188
|
class: "text-secondary"
|
|
2184
2189
|
}, {
|
|
2185
2190
|
default: i(() => [
|
|
2186
|
-
v(
|
|
2191
|
+
v(u(V(U)), 1)
|
|
2187
2192
|
]),
|
|
2188
2193
|
_: 2
|
|
2189
2194
|
}, 1024),
|
|
@@ -2192,7 +2197,7 @@ const Tn = {
|
|
|
2192
2197
|
class: "w-28 text-secondary"
|
|
2193
2198
|
}, {
|
|
2194
2199
|
default: i(() => [
|
|
2195
|
-
v(
|
|
2200
|
+
v(u(o(c).$t({
|
|
2196
2201
|
id: "invoice.amount_table_heading",
|
|
2197
2202
|
defaultMessage: "Amount",
|
|
2198
2203
|
description: "Table heading for the amount column in the invoice table"
|
|
@@ -2202,7 +2207,7 @@ const Tn = {
|
|
|
2202
2207
|
})
|
|
2203
2208
|
]),
|
|
2204
2209
|
(t(!0), l(x, null, R(ee, (te, Le) => (t(), l(x, { key: Le }, [
|
|
2205
|
-
U === "REVENUE" || U === "PRICING" || U === "ONE_OFF" ? (t(), _(
|
|
2210
|
+
U === "REVENUE" || U === "PRICING" || U === "ONE_OFF" ? (t(), _(yn, {
|
|
2206
2211
|
key: 0,
|
|
2207
2212
|
group: te,
|
|
2208
2213
|
"expanded-items": o(r),
|
|
@@ -2228,7 +2233,7 @@ const Tn = {
|
|
|
2228
2233
|
}))
|
|
2229
2234
|
]),
|
|
2230
2235
|
_: 2
|
|
2231
|
-
}, 1032, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "forwarded-from-customers", "show-original-customer-invoice-line"])) : U === "DISCOUNT" || U === "MARKUP" ? (t(), _(
|
|
2236
|
+
}, 1032, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer", "show-tax-per-line-item", "forwarded-from-customers", "show-original-customer-invoice-line"])) : U === "DISCOUNT" || U === "MARKUP" ? (t(), _(Nt, {
|
|
2232
2237
|
key: 1,
|
|
2233
2238
|
group: te,
|
|
2234
2239
|
"expanded-items": o(r),
|
|
@@ -2239,11 +2244,11 @@ const Tn = {
|
|
|
2239
2244
|
"invoice-period-order": z.period_order,
|
|
2240
2245
|
"group-order": te.group_order,
|
|
2241
2246
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2242
|
-
heading: U === "DISCOUNT" ? o(
|
|
2247
|
+
heading: U === "DISCOUNT" ? o(c).$t({
|
|
2243
2248
|
id: "invoice.discounts_table_heading",
|
|
2244
2249
|
defaultMessage: "Discounts",
|
|
2245
2250
|
description: "Heading for discounts in the invoice table"
|
|
2246
|
-
}) : o(
|
|
2251
|
+
}) : o(c).$t({
|
|
2247
2252
|
id: "invoice.markups_table_heading",
|
|
2248
2253
|
defaultMessage: "Markups",
|
|
2249
2254
|
description: "Heading for markups in the invoice table"
|
|
@@ -2253,7 +2258,7 @@ const Tn = {
|
|
|
2253
2258
|
$(O.$slots, "invoice-line-prefix", J({ ref_for: !0 }, ne))
|
|
2254
2259
|
]),
|
|
2255
2260
|
_: 3
|
|
2256
|
-
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) : U === "COMMITMENT" ? (t(), _(
|
|
2261
|
+
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) : U === "COMMITMENT" ? (t(), _(wt, {
|
|
2257
2262
|
key: 2,
|
|
2258
2263
|
group: te,
|
|
2259
2264
|
"expanded-items": o(r),
|
|
@@ -2270,8 +2275,8 @@ const Tn = {
|
|
|
2270
2275
|
]),
|
|
2271
2276
|
_: 3
|
|
2272
2277
|
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) : y("", !0),
|
|
2273
|
-
H(te) ? (t(), l("tr",
|
|
2274
|
-
h("td",
|
|
2278
|
+
H(te) ? (t(), l("tr", $n, [
|
|
2279
|
+
h("td", Mn, [
|
|
2275
2280
|
n(_e, {
|
|
2276
2281
|
lines: te.lines,
|
|
2277
2282
|
"credit-types": e.invoice.credit_types
|
|
@@ -2284,7 +2289,7 @@ const Tn = {
|
|
|
2284
2289
|
_: 2
|
|
2285
2290
|
}, 1032, ["class", "data-testid"])) : y("", !0)
|
|
2286
2291
|
], 64))), 128)),
|
|
2287
|
-
e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || o(p)) && e.invoice.tax_categories) ? (t(), _(
|
|
2292
|
+
e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || o(p)) && e.invoice.tax_categories) ? (t(), _(j, {
|
|
2288
2293
|
key: 1,
|
|
2289
2294
|
class: "mt-6 text-sm print:ml-auto print:w-2/3"
|
|
2290
2295
|
}, {
|
|
@@ -2296,7 +2301,7 @@ const Tn = {
|
|
|
2296
2301
|
class: "text-secondary"
|
|
2297
2302
|
}, {
|
|
2298
2303
|
default: i(() => [
|
|
2299
|
-
v(
|
|
2304
|
+
v(u(o(c).$t({
|
|
2300
2305
|
id: "invoice.totals_table_heading",
|
|
2301
2306
|
defaultMessage: "Totals",
|
|
2302
2307
|
description: "Table heading for the totals column in the invoice table"
|
|
@@ -2309,7 +2314,7 @@ const Tn = {
|
|
|
2309
2314
|
class: "w-28 text-secondary"
|
|
2310
2315
|
}, {
|
|
2311
2316
|
default: i(() => [
|
|
2312
|
-
v(
|
|
2317
|
+
v(u(o(c).$t({
|
|
2313
2318
|
id: "invoice.amount_table_heading",
|
|
2314
2319
|
defaultMessage: "Amount",
|
|
2315
2320
|
description: "Table heading for the amount column in the invoice table"
|
|
@@ -2338,14 +2343,14 @@ const Tn = {
|
|
|
2338
2343
|
}, [
|
|
2339
2344
|
n(k, null, {
|
|
2340
2345
|
default: i(() => [
|
|
2341
|
-
e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), _(
|
|
2346
|
+
e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), _(G, {
|
|
2342
2347
|
key: 0,
|
|
2343
2348
|
icon: "keyboard_arrow_down",
|
|
2344
2349
|
size: "md",
|
|
2345
2350
|
class: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(p) }])
|
|
2346
2351
|
}, null, 8, ["class"])) : y("", !0),
|
|
2347
2352
|
n(me, {
|
|
2348
|
-
label: o(
|
|
2353
|
+
label: o(c).$t({
|
|
2349
2354
|
id: "invoice.taxes_table_heading",
|
|
2350
2355
|
defaultMessage: "Taxes",
|
|
2351
2356
|
description: "Table heading for the taxes column in the invoice table"
|
|
@@ -2359,17 +2364,17 @@ const Tn = {
|
|
|
2359
2364
|
default: i(() => [
|
|
2360
2365
|
n(w, {
|
|
2361
2366
|
value: e.invoice.tax_summary.tax_amount,
|
|
2362
|
-
"data-testid": o(
|
|
2367
|
+
"data-testid": o(lt)
|
|
2363
2368
|
}, null, 8, ["value", "data-testid"])
|
|
2364
2369
|
]),
|
|
2365
2370
|
_: 1
|
|
2366
2371
|
})
|
|
2367
|
-
], 42,
|
|
2372
|
+
], 42, En)) : y("", !0)
|
|
2368
2373
|
], 64)) : y("", !0),
|
|
2369
|
-
(e.forceExpanded || o(p)) && e.invoice.tax_categories ? (t(), l("tr",
|
|
2370
|
-
h("td",
|
|
2371
|
-
h("div",
|
|
2372
|
-
n(
|
|
2374
|
+
(e.forceExpanded || o(p)) && e.invoice.tax_categories ? (t(), l("tr", Cn, [
|
|
2375
|
+
h("td", Nn, [
|
|
2376
|
+
h("div", Bn, [
|
|
2377
|
+
n(kn, {
|
|
2373
2378
|
"tax-categories": e.invoice.tax_categories
|
|
2374
2379
|
}, null, 8, ["tax-categories"])
|
|
2375
2380
|
])
|
|
@@ -2387,7 +2392,7 @@ const Tn = {
|
|
|
2387
2392
|
]),
|
|
2388
2393
|
_: 1
|
|
2389
2394
|
})) : y("", !0),
|
|
2390
|
-
o(Xe)(e.invoice.closed_periods) ? y("", !0) : (t(), _(
|
|
2395
|
+
o(Xe)(e.invoice.closed_periods) ? y("", !0) : (t(), _(j, {
|
|
2391
2396
|
key: 2,
|
|
2392
2397
|
class: "mt-6 text-sm"
|
|
2393
2398
|
}, {
|
|
@@ -2398,7 +2403,7 @@ const Tn = {
|
|
|
2398
2403
|
class: "text-secondary"
|
|
2399
2404
|
}, {
|
|
2400
2405
|
default: i(() => [
|
|
2401
|
-
v(
|
|
2406
|
+
v(u(o(c).$t({
|
|
2402
2407
|
id: "invoice.already_deducted_table_heading",
|
|
2403
2408
|
defaultMessage: "Already deducted",
|
|
2404
2409
|
description: "Table heading for the already deducted rows in the invoice table"
|
|
@@ -2422,7 +2427,7 @@ const Tn = {
|
|
|
2422
2427
|
default: i(() => {
|
|
2423
2428
|
var Q;
|
|
2424
2429
|
return [
|
|
2425
|
-
e.isExpandable ? (t(), _(
|
|
2430
|
+
e.isExpandable ? (t(), _(G, {
|
|
2426
2431
|
key: 0,
|
|
2427
2432
|
icon: "keyboard_arrow_down",
|
|
2428
2433
|
size: "md",
|
|
@@ -2447,16 +2452,16 @@ const Tn = {
|
|
|
2447
2452
|
default: i(() => [
|
|
2448
2453
|
n(w, {
|
|
2449
2454
|
value: U.amount_excluding_tax,
|
|
2450
|
-
"data-testid": o(
|
|
2451
|
-
"data-type": o(
|
|
2455
|
+
"data-testid": o(dt),
|
|
2456
|
+
"data-type": o(ct)
|
|
2452
2457
|
}, null, 8, ["value", "data-testid", "data-type"])
|
|
2453
2458
|
]),
|
|
2454
2459
|
_: 2
|
|
2455
2460
|
}, 1024)
|
|
2456
|
-
], 42,
|
|
2457
|
-
e.forceExpanded || o(b).includes(C(K, ee)) ? (t(), l("tr",
|
|
2458
|
-
h("td",
|
|
2459
|
-
h("div",
|
|
2461
|
+
], 42, An),
|
|
2462
|
+
e.forceExpanded || o(b).includes(C(K, ee)) ? (t(), l("tr", Pn, [
|
|
2463
|
+
h("td", Sn, [
|
|
2464
|
+
h("div", Ln, [
|
|
2460
2465
|
n(Se, {
|
|
2461
2466
|
"start-date": U.start_at,
|
|
2462
2467
|
"end-date": U.end_at,
|
|
@@ -2478,8 +2483,8 @@ const Tn = {
|
|
|
2478
2483
|
])
|
|
2479
2484
|
])
|
|
2480
2485
|
])) : y("", !0),
|
|
2481
|
-
H(U) ? (t(), l("tr",
|
|
2482
|
-
h("td",
|
|
2486
|
+
H(U) ? (t(), l("tr", Un, [
|
|
2487
|
+
h("td", Dn, [
|
|
2483
2488
|
n(_e, {
|
|
2484
2489
|
lines: U.lines,
|
|
2485
2490
|
"credit-types": e.invoice.credit_types
|
|
@@ -2488,10 +2493,10 @@ const Tn = {
|
|
|
2488
2493
|
])) : y("", !0)
|
|
2489
2494
|
], 64))), 128))
|
|
2490
2495
|
], 64))), 128)),
|
|
2491
|
-
e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), l("tr",
|
|
2496
|
+
e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), l("tr", Rn, [
|
|
2492
2497
|
n(k, { class: "font-bold" }, {
|
|
2493
2498
|
default: i(() => [
|
|
2494
|
-
v(
|
|
2499
|
+
v(u(o(c).$t({
|
|
2495
2500
|
id: "invoice.amount_due_table_heading",
|
|
2496
2501
|
defaultMessage: "Amount due",
|
|
2497
2502
|
description: "Table heading for the amount due row in the invoice table"
|
|
@@ -2503,7 +2508,7 @@ const Tn = {
|
|
|
2503
2508
|
default: i(() => [
|
|
2504
2509
|
n(w, {
|
|
2505
2510
|
value: e.invoice.open_invoice_amount,
|
|
2506
|
-
"data-testid": o(
|
|
2511
|
+
"data-testid": o(ut)
|
|
2507
2512
|
}, null, 8, ["value", "data-testid"])
|
|
2508
2513
|
]),
|
|
2509
2514
|
_: 1
|
|
@@ -2515,16 +2520,16 @@ const Tn = {
|
|
|
2515
2520
|
]);
|
|
2516
2521
|
};
|
|
2517
2522
|
}
|
|
2518
|
-
}),
|
|
2523
|
+
}), zn = ({
|
|
2519
2524
|
invoice: e,
|
|
2520
2525
|
getPeriodTitle: a,
|
|
2521
|
-
creditsLabel:
|
|
2522
|
-
walletLabel:
|
|
2526
|
+
creditsLabel: c,
|
|
2527
|
+
walletLabel: d,
|
|
2523
2528
|
formatBalance: m
|
|
2524
2529
|
}) => [...e.periods ?? [], ...e.closed_periods ?? []].map((r) => {
|
|
2525
2530
|
const f = (r.groups ?? []).flatMap((p) => p.lines ?? []), b = Ne(
|
|
2526
2531
|
Be(f),
|
|
2527
|
-
{ creditTypes: e.credit_types, creditsLabel:
|
|
2532
|
+
{ creditTypes: e.credit_types, creditsLabel: c, walletLabel: d }
|
|
2528
2533
|
), g = /* @__PURE__ */ new Map();
|
|
2529
2534
|
for (const p of b) {
|
|
2530
2535
|
const T = m(p.availableBalance), I = g.get(p.label) ?? {
|
|
@@ -2546,29 +2551,29 @@ const Tn = {
|
|
|
2546
2551
|
title: a(r),
|
|
2547
2552
|
rows: [...g.values()]
|
|
2548
2553
|
};
|
|
2549
|
-
}).filter((r) => r.rows.length > 0),
|
|
2554
|
+
}).filter((r) => r.rows.length > 0), Wn = {
|
|
2550
2555
|
key: 0,
|
|
2551
2556
|
class: "mt-8"
|
|
2552
|
-
},
|
|
2557
|
+
}, Vn = { class: "flex flex-col gap-6" }, Hn = { class: "border-t" }, Gn = ["aria-expanded", "onClick"], jn = { class: "ml-1 inline-flex h-3.5 w-3.5 items-center justify-center rounded-full bg-blue-100 text-2xs font-bold text-blue-600" }, Xn = { key: 0 }, qn = { class: "p-0" }, Yn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Kn = /* @__PURE__ */ L({
|
|
2553
2558
|
__name: "InvoiceCreditsBreakdown",
|
|
2554
2559
|
props: {
|
|
2555
2560
|
invoice: { type: Object }
|
|
2556
2561
|
},
|
|
2557
2562
|
setup(e) {
|
|
2558
|
-
const a = e, { formatDate:
|
|
2563
|
+
const a = e, { formatDate: c, $t: d, formatMessage: m, formatNumber: s } = W(), { getIsOpen: r, toggle: f } = se(), b = (T) => m(
|
|
2559
2564
|
{
|
|
2560
2565
|
defaultMessage: "Service period - {startAt} - {endAt}",
|
|
2561
2566
|
id: "wallet_balance.service_period_heading",
|
|
2562
2567
|
description: "Heading shown above wallet balance details for an invoice period"
|
|
2563
2568
|
},
|
|
2564
2569
|
{
|
|
2565
|
-
startAt:
|
|
2570
|
+
startAt: c({
|
|
2566
2571
|
date: T.start_at,
|
|
2567
2572
|
format: "date",
|
|
2568
2573
|
offsetType: "offsetted",
|
|
2569
2574
|
timezone: pe(a.invoice)
|
|
2570
2575
|
}),
|
|
2571
|
-
endAt:
|
|
2576
|
+
endAt: c({
|
|
2572
2577
|
date: T.end_at,
|
|
2573
2578
|
format: "date",
|
|
2574
2579
|
offsetType: "offsetted",
|
|
@@ -2579,7 +2584,7 @@ const Tn = {
|
|
|
2579
2584
|
formatMoney: Me,
|
|
2580
2585
|
formatQuantity: (I) => s(Number(I))
|
|
2581
2586
|
}), p = P(
|
|
2582
|
-
() =>
|
|
2587
|
+
() => zn({
|
|
2583
2588
|
invoice: a.invoice,
|
|
2584
2589
|
getPeriodTitle: b,
|
|
2585
2590
|
creditsLabel: m({
|
|
@@ -2595,8 +2600,8 @@ const Tn = {
|
|
|
2595
2600
|
formatBalance: g
|
|
2596
2601
|
})
|
|
2597
2602
|
);
|
|
2598
|
-
return (T, I) => p.value.length > 0 ? (t(), l("section",
|
|
2599
|
-
h("div",
|
|
2603
|
+
return (T, I) => p.value.length > 0 ? (t(), l("section", Wn, [
|
|
2604
|
+
h("div", Vn, [
|
|
2600
2605
|
(t(!0), l(x, null, R(p.value, (S) => (t(), l("section", {
|
|
2601
2606
|
key: S.id
|
|
2602
2607
|
}, [
|
|
@@ -2607,14 +2612,14 @@ const Tn = {
|
|
|
2607
2612
|
variant: "caps-heading"
|
|
2608
2613
|
}, {
|
|
2609
2614
|
default: i(() => [
|
|
2610
|
-
v(
|
|
2615
|
+
v(u(S.title), 1)
|
|
2611
2616
|
]),
|
|
2612
2617
|
_: 2
|
|
2613
2618
|
}, 1024)
|
|
2614
2619
|
]),
|
|
2615
2620
|
_: 2
|
|
2616
2621
|
}, 1024),
|
|
2617
|
-
n(o(
|
|
2622
|
+
n(o(j), { class: "mt-3" }, {
|
|
2618
2623
|
default: i(() => [
|
|
2619
2624
|
h("tr", null, [
|
|
2620
2625
|
n(o(M), {
|
|
@@ -2622,7 +2627,7 @@ const Tn = {
|
|
|
2622
2627
|
class: "text-gray-600"
|
|
2623
2628
|
}, {
|
|
2624
2629
|
default: i(() => [
|
|
2625
|
-
v(
|
|
2630
|
+
v(u(o(d)({
|
|
2626
2631
|
defaultMessage: "Wallet balance",
|
|
2627
2632
|
id: "wallet_balance.details.header",
|
|
2628
2633
|
description: "Section header for invoice wallet balance details"
|
|
@@ -2634,7 +2639,7 @@ const Tn = {
|
|
|
2634
2639
|
(t(!0), l(x, null, R(S.rows, (E) => (t(), l(x, {
|
|
2635
2640
|
key: E.id
|
|
2636
2641
|
}, [
|
|
2637
|
-
h("tr",
|
|
2642
|
+
h("tr", Hn, [
|
|
2638
2643
|
n(o(k), { class: "p-0" }, {
|
|
2639
2644
|
default: i(() => [
|
|
2640
2645
|
h("button", {
|
|
@@ -2643,22 +2648,22 @@ const Tn = {
|
|
|
2643
2648
|
"aria-expanded": o(r)(E.id),
|
|
2644
2649
|
onClick: (C) => o(f)(E.id)
|
|
2645
2650
|
}, [
|
|
2646
|
-
n(o(
|
|
2651
|
+
n(o(G), {
|
|
2647
2652
|
icon: "keyboard_arrow_down",
|
|
2648
2653
|
size: "md",
|
|
2649
2654
|
class: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(r)(E.id) }])
|
|
2650
2655
|
}, null, 8, ["class"]),
|
|
2651
|
-
v(" " +
|
|
2652
|
-
h("span",
|
|
2653
|
-
], 8,
|
|
2656
|
+
v(" " + u(E.label) + " ", 1),
|
|
2657
|
+
h("span", jn, u(E.rows.length), 1)
|
|
2658
|
+
], 8, Gn)
|
|
2654
2659
|
]),
|
|
2655
2660
|
_: 2
|
|
2656
2661
|
}, 1024)
|
|
2657
2662
|
]),
|
|
2658
|
-
o(r)(E.id) ? (t(), l("tr",
|
|
2659
|
-
h("td",
|
|
2660
|
-
h("div",
|
|
2661
|
-
n(o(
|
|
2663
|
+
o(r)(E.id) ? (t(), l("tr", Xn, [
|
|
2664
|
+
h("td", qn, [
|
|
2665
|
+
h("div", Yn, [
|
|
2666
|
+
n(o(j), null, {
|
|
2662
2667
|
default: i(() => [
|
|
2663
2668
|
h("tr", null, [
|
|
2664
2669
|
n(o(M), {
|
|
@@ -2666,7 +2671,7 @@ const Tn = {
|
|
|
2666
2671
|
class: "w-2/5"
|
|
2667
2672
|
}, {
|
|
2668
2673
|
default: i(() => [
|
|
2669
|
-
v(
|
|
2674
|
+
v(u(o(d)({
|
|
2670
2675
|
defaultMessage: "Wallet breakdown",
|
|
2671
2676
|
id: "invoice_credits.wallet_breakdown.table_header",
|
|
2672
2677
|
description: "Column header for the wallets that paid the invoice, labelled by credit type or as a wallet balance"
|
|
@@ -2679,7 +2684,7 @@ const Tn = {
|
|
|
2679
2684
|
class: "w-1/5"
|
|
2680
2685
|
}, {
|
|
2681
2686
|
default: i(() => [
|
|
2682
|
-
v(
|
|
2687
|
+
v(u(o(d)({
|
|
2683
2688
|
defaultMessage: "Balance",
|
|
2684
2689
|
id: "invoice_credits.balance.table_header",
|
|
2685
2690
|
description: "Column header for the available wallet balance amount"
|
|
@@ -2692,7 +2697,7 @@ const Tn = {
|
|
|
2692
2697
|
class: "w-1/5"
|
|
2693
2698
|
}, {
|
|
2694
2699
|
default: i(() => [
|
|
2695
|
-
v(
|
|
2700
|
+
v(u(o(d)({
|
|
2696
2701
|
defaultMessage: "Used",
|
|
2697
2702
|
id: "invoice_credits.used.table_header",
|
|
2698
2703
|
description: "Column header for the used wallet credit amount"
|
|
@@ -2705,7 +2710,7 @@ const Tn = {
|
|
|
2705
2710
|
class: "w-1/5"
|
|
2706
2711
|
}, {
|
|
2707
2712
|
default: i(() => [
|
|
2708
|
-
v(
|
|
2713
|
+
v(u(o(d)({
|
|
2709
2714
|
defaultMessage: "Remaining",
|
|
2710
2715
|
id: "invoice_credits.remaining.table_header",
|
|
2711
2716
|
description: "Column header for the remaining wallet credit amount"
|
|
@@ -2720,25 +2725,25 @@ const Tn = {
|
|
|
2720
2725
|
}, [
|
|
2721
2726
|
n(o(k), null, {
|
|
2722
2727
|
default: i(() => [
|
|
2723
|
-
v(
|
|
2728
|
+
v(u(C.label), 1)
|
|
2724
2729
|
]),
|
|
2725
2730
|
_: 2
|
|
2726
2731
|
}, 1024),
|
|
2727
2732
|
n(o(k), { number: "" }, {
|
|
2728
2733
|
default: i(() => [
|
|
2729
|
-
v(
|
|
2734
|
+
v(u(C.available), 1)
|
|
2730
2735
|
]),
|
|
2731
2736
|
_: 2
|
|
2732
2737
|
}, 1024),
|
|
2733
2738
|
n(o(k), { number: "" }, {
|
|
2734
2739
|
default: i(() => [
|
|
2735
|
-
v(
|
|
2740
|
+
v(u(C.used), 1)
|
|
2736
2741
|
]),
|
|
2737
2742
|
_: 2
|
|
2738
2743
|
}, 1024),
|
|
2739
2744
|
n(o(k), { number: "" }, {
|
|
2740
2745
|
default: i(() => [
|
|
2741
|
-
v(
|
|
2746
|
+
v(u(C.left), 1)
|
|
2742
2747
|
]),
|
|
2743
2748
|
_: 2
|
|
2744
2749
|
}, 1024)
|
|
@@ -2757,16 +2762,16 @@ const Tn = {
|
|
|
2757
2762
|
])
|
|
2758
2763
|
])) : y("", !0);
|
|
2759
2764
|
}
|
|
2760
|
-
}),
|
|
2765
|
+
}), Qn = /* @__PURE__ */ L({
|
|
2761
2766
|
__name: "InvoiceBlock",
|
|
2762
2767
|
props: {
|
|
2763
2768
|
invoice: { type: Object }
|
|
2764
2769
|
},
|
|
2765
2770
|
setup(e) {
|
|
2766
|
-
const a = e,
|
|
2767
|
-
return (s, r) => (t(), _(o(
|
|
2771
|
+
const a = e, c = P(() => Ze(a.invoice)), { $t: d } = W(), { isMobileViewport: m } = et();
|
|
2772
|
+
return (s, r) => (t(), _(o(Je), {
|
|
2768
2773
|
class: "sv-invoice__summary grow",
|
|
2769
|
-
title: o(
|
|
2774
|
+
title: o(d)({
|
|
2770
2775
|
defaultMessage: "Invoice",
|
|
2771
2776
|
description: "Title for the invoice block on the invoice details page",
|
|
2772
2777
|
id: "sdk.invoice_details.invoice.title"
|
|
@@ -2776,14 +2781,14 @@ const Tn = {
|
|
|
2776
2781
|
h("div", {
|
|
2777
2782
|
class: N(["sv-invoice__summary-body", { "p-6 pt-2": !o(m) }])
|
|
2778
2783
|
}, [
|
|
2779
|
-
o(m) ? (t(), _(o(
|
|
2784
|
+
o(m) ? (t(), _(o(it), {
|
|
2780
2785
|
key: 0,
|
|
2781
2786
|
variant: "info",
|
|
2782
2787
|
"has-icon": "",
|
|
2783
2788
|
class: "sv-invoice__download-hint justify-center border-gray-100 bg-gray-50 font-semibold text-gray-800"
|
|
2784
2789
|
}, {
|
|
2785
2790
|
default: i(() => [
|
|
2786
|
-
v(
|
|
2791
|
+
v(u(o(d)({
|
|
2787
2792
|
defaultMessage: "Download the PDF for a full breakdown",
|
|
2788
2793
|
description: "Download the PDF for a full breakdown",
|
|
2789
2794
|
id: "sdk.invoice_details.invoice.download_pdf"
|
|
@@ -2791,9 +2796,9 @@ const Tn = {
|
|
|
2791
2796
|
]),
|
|
2792
2797
|
_: 1
|
|
2793
2798
|
})) : y("", !0),
|
|
2794
|
-
n(o(
|
|
2799
|
+
n(o(Fn), {
|
|
2795
2800
|
class: "sv-invoice__summary-content",
|
|
2796
|
-
invoice:
|
|
2801
|
+
invoice: c.value,
|
|
2797
2802
|
"is-expandable": !o(m)
|
|
2798
2803
|
}, {
|
|
2799
2804
|
logo: i(() => [
|
|
@@ -2801,7 +2806,7 @@ const Tn = {
|
|
|
2801
2806
|
]),
|
|
2802
2807
|
_: 3
|
|
2803
2808
|
}, 8, ["invoice", "is-expandable"]),
|
|
2804
|
-
n(
|
|
2809
|
+
n(Kn, {
|
|
2805
2810
|
class: "sv-invoice__credits-breakdown",
|
|
2806
2811
|
invoice: e.invoice
|
|
2807
2812
|
}, null, 8, ["invoice"])
|
|
@@ -2810,7 +2815,7 @@ const Tn = {
|
|
|
2810
2815
|
_: 3
|
|
2811
2816
|
}, 8, ["title"]));
|
|
2812
2817
|
}
|
|
2813
|
-
}),
|
|
2818
|
+
}), Jn = { class: "sv-invoice sv-root sv-component" }, Zn = { class: "sv-invoice__body flex flex-col gap-3 lg:flex-row lg:gap-6" }, ei = { class: "sv-invoice__aside flex shrink-0 flex-col gap-8 lg:w-72 lg:gap-6" }, ti = /* @__PURE__ */ L({
|
|
2814
2819
|
__name: "Invoice",
|
|
2815
2820
|
props: {
|
|
2816
2821
|
invoice: { type: Object },
|
|
@@ -2820,11 +2825,11 @@ const Tn = {
|
|
|
2820
2825
|
},
|
|
2821
2826
|
setup(e) {
|
|
2822
2827
|
const a = Re(
|
|
2823
|
-
() => import("../../PaymentHistoryBlock-
|
|
2824
|
-
), { $t:
|
|
2825
|
-
return (
|
|
2828
|
+
() => import("../../PaymentHistoryBlock-HUazLER6.mjs")
|
|
2829
|
+
), { $t: c } = W();
|
|
2830
|
+
return (d, m) => {
|
|
2826
2831
|
var s, r;
|
|
2827
|
-
return t(), l("div",
|
|
2832
|
+
return t(), l("div", Jn, [
|
|
2828
2833
|
n(He, {
|
|
2829
2834
|
class: "sv-invoice__header mb-6",
|
|
2830
2835
|
invoice: e.invoice,
|
|
@@ -2832,28 +2837,28 @@ const Tn = {
|
|
|
2832
2837
|
"invoice-download-service": e.invoiceDownloadService,
|
|
2833
2838
|
configuration: e.configuration
|
|
2834
2839
|
}, null, 8, ["invoice", "payments", "invoice-download-service", "configuration"]),
|
|
2835
|
-
h("div",
|
|
2836
|
-
e.invoice ? (t(), _(
|
|
2840
|
+
h("div", Zn, [
|
|
2841
|
+
e.invoice ? (t(), _(Qn, {
|
|
2837
2842
|
key: 0,
|
|
2838
2843
|
class: "sv-invoice__main",
|
|
2839
2844
|
invoice: e.invoice
|
|
2840
2845
|
}, null, 8, ["invoice"])) : y("", !0),
|
|
2841
|
-
h("div",
|
|
2842
|
-
n(
|
|
2846
|
+
h("div", ei, [
|
|
2847
|
+
n(tt, {
|
|
2843
2848
|
class: "sv-invoice__details",
|
|
2844
2849
|
invoice: e.invoice
|
|
2845
2850
|
}, null, 8, ["invoice"]),
|
|
2846
|
-
(s = e.configuration) != null && s.
|
|
2851
|
+
(s = e.configuration) != null && s.showPaymentAttempts && ((r = e.payments) != null && r.length) ? (t(), _(o(a), {
|
|
2847
2852
|
key: 0,
|
|
2848
2853
|
class: "sv-invoice__payment-history",
|
|
2849
2854
|
"payment-attempts": e.payments,
|
|
2850
2855
|
customer: e.invoice.customer
|
|
2851
2856
|
}, null, 8, ["payment-attempts", "customer"])) : y("", !0),
|
|
2852
|
-
e.configuration.
|
|
2857
|
+
e.configuration.showCustomerBillingInformation ? (t(), _(o(Fe), {
|
|
2853
2858
|
key: 1,
|
|
2854
2859
|
class: "sv-invoice__billing-information",
|
|
2855
2860
|
customer: e.invoice.customer,
|
|
2856
|
-
title: o(
|
|
2861
|
+
title: o(c)({
|
|
2857
2862
|
defaultMessage: "Your billing information",
|
|
2858
2863
|
description: "Title for the billing information on the detailed invoice view",
|
|
2859
2864
|
id: "sdk.invoice_details.customer_billing_information.title"
|
|
@@ -2864,34 +2869,30 @@ const Tn = {
|
|
|
2864
2869
|
]);
|
|
2865
2870
|
};
|
|
2866
2871
|
}
|
|
2867
|
-
}),
|
|
2872
|
+
}), ni = /* @__PURE__ */ L({
|
|
2868
2873
|
__name: "Invoice.entry",
|
|
2869
2874
|
props: {
|
|
2870
|
-
portalToken: { type: Object },
|
|
2871
2875
|
environment: { type: String },
|
|
2872
2876
|
locale: { type: String },
|
|
2873
2877
|
dateLocale: { type: String },
|
|
2874
2878
|
messages: { type: Object },
|
|
2875
|
-
|
|
2876
|
-
secondaryColor: { type: String },
|
|
2877
|
-
isShadowRoot: { type: Boolean },
|
|
2879
|
+
portalToken: { type: Object },
|
|
2878
2880
|
experimentalFeatures: { type: Array },
|
|
2879
2881
|
logLevel: { type: String },
|
|
2880
2882
|
onLog: { type: Function },
|
|
2881
|
-
allowedPortalTypes: { type: Array },
|
|
2882
|
-
portalObject: { type: Object },
|
|
2883
2883
|
cssOverrides: { type: [String, Array] },
|
|
2884
2884
|
branding: { type: Object },
|
|
2885
|
+
portalObject: { type: null },
|
|
2885
2886
|
configuration: { type: Object }
|
|
2886
2887
|
},
|
|
2887
2888
|
setup(e) {
|
|
2888
|
-
const a = We("invoice"),
|
|
2889
|
-
...
|
|
2889
|
+
const a = We("invoice"), c = e, d = P(() => ({
|
|
2890
|
+
...c,
|
|
2890
2891
|
configuration: {
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
...
|
|
2892
|
+
showCustomerBillingInformation: !0,
|
|
2893
|
+
showDownloadButton: !0,
|
|
2894
|
+
showPaymentAttempts: !0,
|
|
2895
|
+
...c.configuration
|
|
2895
2896
|
}
|
|
2896
2897
|
}));
|
|
2897
2898
|
return (m, s) => {
|
|
@@ -2900,21 +2901,20 @@ const Tn = {
|
|
|
2900
2901
|
entry: m.$props,
|
|
2901
2902
|
"component-name": o(a),
|
|
2902
2903
|
"allowed-portal-types": ["CUSTOMER"],
|
|
2903
|
-
"required-configuration": { invoiceId: (r = e.configuration) == null ? void 0 : r.invoiceId }
|
|
2904
|
-
onError: s[0] || (s[0] = (f) => m.$emit("error", f))
|
|
2904
|
+
"required-configuration": { invoiceId: (r = e.configuration) == null ? void 0 : r.invoiceId }
|
|
2905
2905
|
}, {
|
|
2906
2906
|
default: i(() => [
|
|
2907
|
-
(t(), _(
|
|
2908
|
-
key:
|
|
2909
|
-
"invoice-id":
|
|
2907
|
+
(t(), _(Ge, {
|
|
2908
|
+
key: d.value.configuration.invoiceId,
|
|
2909
|
+
"invoice-id": d.value.configuration.invoiceId
|
|
2910
2910
|
}, {
|
|
2911
2911
|
default: i(({ invoice: f, payments: b, invoiceDownloadService: g }) => [
|
|
2912
|
-
f ? (t(), _(
|
|
2912
|
+
f ? (t(), _(ti, {
|
|
2913
2913
|
key: 0,
|
|
2914
2914
|
invoice: f,
|
|
2915
2915
|
"invoice-download-service": g,
|
|
2916
2916
|
payments: b.payments.value,
|
|
2917
|
-
configuration:
|
|
2917
|
+
configuration: d.value.configuration
|
|
2918
2918
|
}, null, 8, ["invoice", "invoice-download-service", "payments", "configuration"])) : y("", !0)
|
|
2919
2919
|
]),
|
|
2920
2920
|
_: 1
|
|
@@ -2924,7 +2924,7 @@ const Tn = {
|
|
|
2924
2924
|
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
2925
2925
|
};
|
|
2926
2926
|
}
|
|
2927
|
-
}), { define:
|
|
2927
|
+
}), { define: Ii } = Ve(ni, "invoice");
|
|
2928
2928
|
export {
|
|
2929
|
-
|
|
2929
|
+
Ii as defineSolvimonInvoice
|
|
2930
2930
|
};
|