@solvimon/solvimon-web 0.1.0-alpha.31 → 0.1.0-alpha.32
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/dist/{AddPaymentMethodModal-Bs_aOOCX.mjs → AddPaymentMethodModal-Cx203VXo.mjs} +4 -4
- package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DF4PIR-A.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs} +2 -2
- package/dist/{Alert.vue.es-xhsk_7Gn.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
- package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
- package/dist/{AuthProvider.handle-CUO6Qj-5.mjs → AuthProvider.handle-BpFblzFx.mjs} +1 -1
- package/dist/{Avatar.vue.es-DrbtUiLO.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
- package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C3JYNZuR.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs} +4 -4
- package/dist/{BillingInformationForm.vue_vue_type_script_setup_true_lang-BUdcXy0H.mjs → BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs} +7 -7
- package/dist/{BillingInformationModal-crgTNGf4.mjs → BillingInformationModal-Do3Fuu8A.mjs} +3 -3
- package/dist/{Button.vue.es-BHbanjR0.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
- package/dist/{ChargeOnDemandModal-DYiFtw1n.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +17 -17
- package/dist/{Chip.vue.es-Dc6-PjEn.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
- package/dist/{taxId.es-Zu2Ff1gL.mjs → CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs} +226 -226
- package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
- package/dist/{ContextMenu.vue.es-CvX6O2IM.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +4 -4
- package/dist/{CustomerBillingInformation.vue.es-DQWt9osz.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +2 -2
- package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-hNVtamwL.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs} +5 -5
- package/dist/{CustomerShippingAddresses-C0c-4D2W.mjs → CustomerShippingAddresses-Bdy4XWjE.mjs} +9 -9
- package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C50vGUvw.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs} +1361 -1065
- package/dist/{DividerText.vue.es-ChN6fnrH.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
- package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DCUml1W4.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
- package/dist/{ErrorNotification.vue.es-CWIVt5q9.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
- package/dist/{FormMessage.vue.es-CQ64C8dt.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
- package/dist/{IconButton.vue.es-BXzwMvVk.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
- package/dist/{IconTitle.vue.es-GyanM-JQ.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
- package/dist/{Input.vue.es-CxiwRZYs.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
- package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Ca0qflBR.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
- package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-Dw73a5Yt.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs} +4 -4
- package/dist/{InvoicePreview.vue.es-BvnikfEH.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +5 -5
- package/dist/{InvoicePricingClauseChip.vue.es-DxcyTRGr.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
- package/dist/{Label.vue.es-3ACRco55.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
- package/dist/{LoadFailedNotice.vue_vue_type_script_setup_true_lang-1qpRh-0S.mjs → LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs} +2 -2
- package/dist/{Modal.vue.es-CDjfZDDx.mjs → Modal.vue.es-CJFTVFSZ.mjs} +5 -5
- package/dist/{OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-CnZwxJ5b.mjs → OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs} +8 -8
- package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-PICpXmC3.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
- package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DpZtYBfM.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
- package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Co5qBQa8.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
- package/dist/{PaymentHistoryBlock-HUazLER6.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
- package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DdmUoiet.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
- package/dist/{PaymentIntegrationForm-ZnIjTyda.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
- package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DU5wu66t.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs} +3 -3
- package/dist/{PaymentIntegrationFormAdyen-sbw3AoKS.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +9 -9
- package/dist/{PaymentIntegrationFormStripe-4JmKEwbS.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +8 -8
- package/dist/{PaymentMethod.vue.es-DAabE41t.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +197 -149
- package/dist/{PaymentMethodForm-MmCUSJLE.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
- package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DyiXLYRj.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs} +6 -6
- package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-Bv34aiZ6.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
- package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DZ2Z-RMv.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +7 -7
- package/dist/{PaymentMethodsModal-CjpNw4kX.mjs → PaymentMethodsModal-CnJP9UKp.mjs} +6 -6
- package/dist/{PlanCustomizationEditor-BDWm_z2w.mjs → PlanCustomizationEditor-KHLSEUbb.mjs} +12 -12
- package/dist/{PortalLinkUnverified-B7YYhv97.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
- package/dist/{PortalNotAvailable-DIyeKrAp.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
- package/dist/{PricingGroupRangeInput.vue.es-C6J8C7JS.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
- package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CiQ-C9Hh.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +9 -9
- package/dist/{RadioGroupExtended.vue.es-hDmUAKIA.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +4 -4
- package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
- package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Gn1aE60E.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
- package/dist/{ShippingAddressForm.vue_vue_type_script_setup_true_lang-y7yOKwR3.mjs → ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs} +4 -4
- package/dist/{ShippingAddressesModal-CNXxkxnJ.mjs → ShippingAddressesModal-Gxv2KxaW.mjs} +9 -9
- package/dist/{StepInput.vue.es-GkrOtOVa.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
- package/dist/{SubscriptionCancellationModal-C_xFPx1I.mjs → SubscriptionCancellationModal-DfAZ_uW6.mjs} +1 -1
- package/dist/{SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-DdTC33Qh.mjs → SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs} +7 -7
- package/dist/{SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-CQ-ZOzVI.mjs → SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs} +2 -2
- package/dist/{SubscriptionDetails.entry.ce-DuP8TtKu.mjs → SubscriptionDetails.entry.ce-CdWV-8WN.mjs} +23 -23
- package/dist/{SubscriptionSchedules-DosBeXD7.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
- package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-C26HShPu.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs} +3 -3
- package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BUDuQk2e.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DYWjTzPV.mjs} +9 -9
- package/dist/{TooltipParagraph.vue.es-4HaXi8RP.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +1 -1
- package/dist/{TranslationOverride.vue_vue_type_script_setup_true_lang-C5Y6Kg-_.mjs → TranslationOverride.vue_vue_type_script_setup_true_lang-Cp_sFa52.mjs} +1 -1
- package/dist/{TrialChip.vue.es-CUfJ4SK3.mjs → TrialChip.vue.es-VZwQX079.mjs} +3 -3
- package/dist/{addonQuantity-BvoYTajN.mjs → addonQuantity-D3bGVqjL.mjs} +2 -2
- package/dist/{adyen-D4em6EgU.mjs → adyen-CHgq2l6n.mjs} +1 -1
- package/dist/components/BillingInformation/BillingInformation.mjs +5 -5
- package/dist/components/BillingInformationForm/BillingInformationForm.mjs +4 -4
- package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
- package/dist/components/Invoice/Invoice.mjs +1084 -1016
- package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
- package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
- package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
- package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
- package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
- package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +9 -9
- package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +5 -5
- package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
- package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
- package/dist/{customElements-d7Bhfqi_.mjs → customElements-B8c354Nu.mjs} +376 -369
- package/dist/{customer-CNCSN_G5.mjs → customer-CP-Wz7JO.mjs} +1 -1
- package/dist/{de-DE-wZp39RC-.mjs → de-DE-C9HrzHpE.mjs} +3 -0
- package/dist/{de-DE-D-sV3avS.mjs → de-DE-DAQmgEy5.mjs} +75 -15
- package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
- package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
- package/dist/{fr-FR-BrNXJ7gR.mjs → fr-FR-CHR3VWvd.mjs} +3 -0
- package/dist/{fr-FR-BYHycSxz.mjs → fr-FR-fz51-Ubw.mjs} +76 -16
- package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
- package/dist/{index.es-BEZ2mumY.mjs → index.es-Bv55VtdE.mjs} +8 -8
- package/dist/index.mjs +1 -1
- package/dist/{invoices-CXvL8KQx.mjs → invoices-I7PghcPV.mjs} +1 -1
- package/dist/{it-IT-zpPyT9PH.mjs → it-IT-BpCkTMZL.mjs} +68 -8
- package/dist/{it-IT-Bd1qsMVU.mjs → it-IT-Dzc7DmmL.mjs} +3 -0
- package/dist/{nl-NL-BOr4MR7L.mjs → nl-NL-22C8OcIM.mjs} +72 -12
- package/dist/{nl-NL-C6Y6fqaW.mjs → nl-NL-Dut_QwsY.mjs} +3 -0
- package/dist/{paymentIntegrationFormLoaders-wi1vMgf_.mjs → paymentIntegrationFormLoaders-BFMAMpcA.mjs} +3 -3
- package/dist/{paymentMethods-CG1fcG2v.mjs → paymentMethods-aGKIi7DS.mjs} +1 -1
- package/dist/{paymentOutcome-D59QkGfm.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
- package/dist/{payments-Dy81gmkC.mjs → payments-BKoKpoLN.mjs} +1 -1
- package/dist/{preloadPaymentIntegrationForms-C_9p7Jbi.mjs → preloadPaymentIntegrationForms-Buwal_JR.mjs} +1 -1
- package/dist/{pricing-CBJT8C6L.mjs → pricing-Y-7ELzN-.mjs} +1 -1
- package/dist/{pricingItem.es-AYq_hYeD.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
- package/dist/{pricingPlanScheduleOverrides-GON_34ep.mjs → pricingPlanScheduleOverrides-CGm_-jJq.mjs} +1 -1
- package/dist/screens/Checkout/Checkout.mjs +12 -12
- package/dist/screens/CheckoutSession/CheckoutSession.mjs +650 -644
- package/dist/screens/CustomerOverview/CustomerOverview.mjs +17 -17
- package/dist/screens/PayInvoice/PayInvoice.mjs +22 -22
- package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +10 -10
- package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
- package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +29 -29
- package/dist/{subscriptions-Bm1eu9wc.mjs → subscriptions-B7dNqi1C.mjs} +1 -1
- package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
- package/dist/types/types/checkoutSession.d.ts +11 -1
- package/dist/{useActionDispatchProvider-BWna0S6N.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
- package/dist/{useAddressFormats-Dw7IEdxg.mjs → useAddressFormats-CtE4QaVU.mjs} +51 -50
- package/dist/{useCheckoutForm-BaV2j_ob.mjs → useCheckoutForm-BhXcmnUi.mjs} +1467 -1422
- package/dist/{useCustomer-RUtEzDOY.mjs → useCustomer-mQysxUwp.mjs} +2 -2
- package/dist/{useExperimentalFeature-DAKAF_a2.mjs → useExperimentalFeature-Bw6bBtay.mjs} +1 -1
- package/dist/{useHostEvent-pjoWJ7ZH.mjs → useHostEvent-MtRG6W2B.mjs} +1 -1
- package/dist/{useIncrementalLoading-B3gp58X-.mjs → useIncrementalLoading-CJSj1945.mjs} +1 -1
- package/dist/{useInvoiceData-Dya4mmvf.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
- package/dist/{useInvoicesList-Dp3c_cb3.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
- package/dist/{sorting.es-kM0f1VX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
- package/dist/{useLoadInitialData-CwySdYZM.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
- package/dist/{usePaymentMethodAvailability-B7NV0ZtX.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
- package/dist/{usePaymentMethodOptions-DDRjVvDJ.mjs → usePaymentMethodOptions-CuHoQx3K.mjs} +2 -2
- package/dist/{usePaymentMethods-DBGyQA_I.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
- package/dist/{usePayments-ChGtK_As.mjs → usePayments-B5Z9Kfbv.mjs} +19 -17
- package/dist/{usePortal--Uzbpbgr.mjs → usePortal-DuLR5Mid.mjs} +1 -1
- package/dist/{useService-DayNZhPh.mjs → useService-2aOFBTxU.mjs} +1 -1
- package/dist/{useShippingAddresses-TXVeGFPm.mjs → useShippingAddresses-BvThNpez.mjs} +1 -1
- package/dist/{useSubscription-lIGMFLG1.mjs → useSubscription-Dzo-kBpQ.mjs} +2 -2
- package/dist/{useSubscriptionActions-BSlJVB4p.mjs → useSubscriptionActions-CWaNRoZ7.mjs} +1 -1
- package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
- package/package.json +31 -8
- package/dist/Section.vue.es-CwKTCeZ1.mjs +0 -72
- package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-5tyDFxEh.mjs +0 -5183
- package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { _ as w } from "../../Amount.vue.es-
|
|
7
|
-
import { i as
|
|
8
|
-
import { a as
|
|
9
|
-
import { M as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { g as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { f as
|
|
15
|
-
import { g as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { g as
|
|
21
|
-
import { u as
|
|
22
|
-
import { _ as
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
return [
|
|
26
|
-
typeof
|
|
1
|
+
import { ref as se, defineComponent as S, openBlock as t, createElementBlock as l, normalizeClass as A, createElementVNode as x, createBlock as h, unref as o, createCommentVNode as y, renderSlot as E, Fragment as _, renderList as R, createVNode as n, withCtx as a, createTextVNode as f, toDisplayString as u, withKeys as Q, normalizeProps as ge, guardReactiveProps as be, computed as B, createSlots as Ge, mergeProps as Z, isRef as He, defineAsyncComponent as Xe } from "vue";
|
|
2
|
+
import { _ as je } from "../../CustomerBillingInformation.vue.es-CSKG6V3T.mjs";
|
|
3
|
+
import { a as V, d as $e, r as _e, j as qe, k as Ye, l as Ke } from "../../customElements-B8c354Nu.mjs";
|
|
4
|
+
import { a as Qe, _ as Je } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-BUu5M_gx.mjs";
|
|
5
|
+
import { a as H, _ as Ze } from "../../Button.vue.es-CW7XfMBF.mjs";
|
|
6
|
+
import { _ as w } from "../../Amount.vue.es-CofcgmXt.mjs";
|
|
7
|
+
import { i as et } from "../../useService-2aOFBTxU.mjs";
|
|
8
|
+
import { a as Ee } from "../../customer.es-DQKl6wFt.mjs";
|
|
9
|
+
import { M as Ce, a as tt, f as Ne } from "../../formatting.es-DlJEzreG.mjs";
|
|
10
|
+
import { _ as Be, u as ue } from "../../Comparators.vue.es-DYrKlE8t.mjs";
|
|
11
|
+
import { _ as Ae } from "../../InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs";
|
|
12
|
+
import { g as ye } from "../../getComposedString.es-C__uhJpd.mjs";
|
|
13
|
+
import { _ as ce, T as me, a as ve } from "../../TooltipParagraph.vue.es-Bt-7LHr3.mjs";
|
|
14
|
+
import { f as nt } from "../../index.es-C7J3WGGo.mjs";
|
|
15
|
+
import { g as Pe, a as Ue, f as Se } from "../../wallets.es-DRlUVd2R.mjs";
|
|
16
|
+
import { _ as Le } from "../../DividerText.vue.es-Dq0JzI8C.mjs";
|
|
17
|
+
import { _ as it } from "../../IconTitle.vue.es-CcOIFjbE.mjs";
|
|
18
|
+
import { _ as at } from "../../ContextMenu.vue.es-EXTx0NEt.mjs";
|
|
19
|
+
import { _ as ot } from "../../Section.vue.es-DYmEtgBj.mjs";
|
|
20
|
+
import { g as xe, w as lt } from "../../invoiceState-BJVHaKs7.mjs";
|
|
21
|
+
import { u as rt } from "../../useViewport-psZejz_H.mjs";
|
|
22
|
+
import { _ as st } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs";
|
|
23
|
+
const he = (e = []) => {
|
|
24
|
+
const i = se(e);
|
|
25
|
+
return [i, (c) => {
|
|
26
|
+
typeof i.value.find((s) => s === c) == "number" ? i.value = i.value.filter((s) => s !== c) : i.value = [...i.value, c];
|
|
27
27
|
}];
|
|
28
|
-
},
|
|
28
|
+
}, dt = { class: "flex items-center gap-2" }, ut = /* @__PURE__ */ S({
|
|
29
29
|
__name: "InfoBlock",
|
|
30
30
|
props: {
|
|
31
31
|
variant: { default: "info" },
|
|
32
32
|
hasIcon: { type: Boolean }
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
|
-
const
|
|
35
|
+
const i = {
|
|
36
36
|
info: "info",
|
|
37
37
|
warning: "error",
|
|
38
38
|
danger: "error",
|
|
39
39
|
success: "check_circle"
|
|
40
40
|
};
|
|
41
|
-
return (
|
|
42
|
-
class:
|
|
41
|
+
return (d, c) => (t(), l("div", {
|
|
42
|
+
class: A(["flex items-center justify-between gap-2 rounded-sm border px-4 py-3 text-sm", {
|
|
43
43
|
"border-blue-200 bg-feedback-info text-feedback-info": e.variant === "info",
|
|
44
44
|
"border-red-200 bg-feedback-danger text-feedback-danger": e.variant === "danger",
|
|
45
45
|
"border-yellow-200 bg-feedback-warning text-feedback-warning": e.variant === "warning",
|
|
46
46
|
"border-green-200 bg-feedback-success text-feedback-success": e.variant === "success"
|
|
47
47
|
}])
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
e.hasIcon ? (t(),
|
|
49
|
+
x("div", dt, [
|
|
50
|
+
e.hasIcon ? (t(), h(o(H), {
|
|
51
51
|
key: 0,
|
|
52
|
-
icon:
|
|
52
|
+
icon: i[e.variant],
|
|
53
53
|
size: "xs",
|
|
54
54
|
class: "shrink-0"
|
|
55
55
|
}, null, 8, ["icon"])) : y("", !0),
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
x("div", null, [
|
|
57
|
+
E(d.$slots, "default")
|
|
58
58
|
])
|
|
59
59
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
x("div", null, [
|
|
61
|
+
E(d.$slots, "cta")
|
|
62
62
|
])
|
|
63
63
|
], 2));
|
|
64
64
|
}
|
|
65
|
-
}), j = /* @__PURE__ */
|
|
65
|
+
}), j = /* @__PURE__ */ S({
|
|
66
66
|
__name: "InvoiceTable",
|
|
67
67
|
props: {
|
|
68
68
|
layout: { default: "fixed" }
|
|
69
69
|
},
|
|
70
70
|
setup(e) {
|
|
71
|
-
return (
|
|
72
|
-
class:
|
|
71
|
+
return (i, d) => (t(), l("table", {
|
|
72
|
+
class: A(["w-full", e.layout === "auto" ? "table-auto" : "table-fixed"])
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
E(i.$slots, "default")
|
|
75
75
|
], 2));
|
|
76
76
|
}
|
|
77
|
-
}), k = /* @__PURE__ */
|
|
77
|
+
}), k = /* @__PURE__ */ S({
|
|
78
78
|
__name: "InvoiceTableData",
|
|
79
79
|
props: {
|
|
80
80
|
number: { type: Boolean, default: !1 },
|
|
81
81
|
hasPadding: { type: Boolean, default: !0 }
|
|
82
82
|
},
|
|
83
83
|
setup(e) {
|
|
84
|
-
return (
|
|
85
|
-
class:
|
|
84
|
+
return (i, d) => (t(), l("td", {
|
|
85
|
+
class: A({
|
|
86
86
|
"text-right tabular-nums": e.number,
|
|
87
87
|
"py-2": e.hasPadding
|
|
88
88
|
})
|
|
89
89
|
}, [
|
|
90
|
-
|
|
90
|
+
E(i.$slots, "default")
|
|
91
91
|
], 2));
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
93
|
+
}), C = /* @__PURE__ */ S({
|
|
94
94
|
__name: "InvoiceTableHeader",
|
|
95
95
|
props: {
|
|
96
96
|
left: { type: Boolean, default: !1 },
|
|
97
97
|
right: { type: Boolean, default: !1 }
|
|
98
98
|
},
|
|
99
99
|
setup(e) {
|
|
100
|
-
return (
|
|
101
|
-
class:
|
|
100
|
+
return (i, d) => (t(), l("th", {
|
|
101
|
+
class: A(["border-b py-1.5 text-xs font-bold uppercase text-subtle", { "text-left": e.left, "text-right": e.right }])
|
|
102
102
|
}, [
|
|
103
|
-
|
|
103
|
+
E(i.$slots, "default")
|
|
104
104
|
], 2));
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), ct = "INVOICE_PERIOD", mt = "INVOICE_PERIOD_SUBTOTAL", ae = "INVOICE_PERIOD_TOTAL", de = "SUMMARY_LINE_AMOUNT", vt = "SUMMARY_TOTAL_TAX", ft = "SUMMARY_TOTAL_INCLUDING_TAX", gt = "SUMMARY_TOTAL_EXCLUDING_TAX", bt = "SUMMARY_TOTAL_DISCOUNT", yt = "SUMMARY_AMOUNT_DUE", pt = "SUMMARY_PREPAID_AMOUNT", ke = "DEDUCTION", _t = "HAS_SUBLINES", xt = { class: "flex items-center" }, ht = {
|
|
107
107
|
key: 0,
|
|
108
108
|
class: "text-xs text-secondary"
|
|
109
|
-
},
|
|
109
|
+
}, kt = { class: "flex items-center" }, pe = /* @__PURE__ */ S({
|
|
110
110
|
__name: "InvoiceSubLineRow",
|
|
111
111
|
props: {
|
|
112
112
|
subLines: {},
|
|
@@ -119,75 +119,75 @@ const xe = (e = []) => {
|
|
|
119
119
|
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
120
120
|
},
|
|
121
121
|
setup(e) {
|
|
122
|
-
const { formatMessage:
|
|
122
|
+
const { formatMessage: i, formatNumber: d } = V(), c = e, m = (r) => {
|
|
123
123
|
var b;
|
|
124
|
-
const g = (b =
|
|
125
|
-
(p) => p.id ===
|
|
124
|
+
const g = (b = c.processingOnlyCustomers) == null ? void 0 : b.find(
|
|
125
|
+
(p) => p.id === r
|
|
126
126
|
);
|
|
127
|
-
return g ?
|
|
127
|
+
return g ? Ee(g) : i({
|
|
128
128
|
id: "generic.not_available",
|
|
129
129
|
defaultMessage: "N/A",
|
|
130
130
|
description: "Used in scenarios where no data is available to be displayed"
|
|
131
131
|
});
|
|
132
|
-
}, s = (
|
|
132
|
+
}, s = (r) => {
|
|
133
133
|
var b;
|
|
134
|
-
return ((b =
|
|
135
|
-
},
|
|
134
|
+
return ((b = r.usage_based_conversion) == null ? void 0 : b.conditions) ?? r.conditions;
|
|
135
|
+
}, v = (r) => {
|
|
136
136
|
var b, g;
|
|
137
|
-
const p = (g = (b =
|
|
138
|
-
return p === void 0 ?
|
|
137
|
+
const p = (g = (b = r.details.conversion) == null ? void 0 : b.credits) == null ? void 0 : g.quantity;
|
|
138
|
+
return p === void 0 ? i({
|
|
139
139
|
id: "generic.not_available",
|
|
140
140
|
defaultMessage: "N/A",
|
|
141
141
|
description: "Used in scenarios where no data is available to be displayed"
|
|
142
|
-
}) :
|
|
142
|
+
}) : d(+p, { maximumFractionDigits: Ce });
|
|
143
143
|
};
|
|
144
|
-
return (
|
|
144
|
+
return (r, b) => e.subLines && e.isOpen ? (t(!0), l(_, { key: 0 }, R(e.subLines, (g, p) => (t(), l(_, { key: p }, [
|
|
145
145
|
g.processing_only_customer_resource_id ? e.displayInvoiceSubLinesPerProcessingOnlyCustomer && e.processingOnlyCustomers ? (t(), l("tr", {
|
|
146
146
|
key: 1,
|
|
147
|
-
class:
|
|
147
|
+
class: A(["group", { "border-t": p > 0 }])
|
|
148
148
|
}, [
|
|
149
149
|
n(k, { class: "pl-4" }, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
default: a(() => [
|
|
151
|
+
x("div", kt, [
|
|
152
|
+
x("div", null, u(m(g.processing_only_customer_resource_id)), 1)
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
155
|
_: 2
|
|
156
156
|
}, 1024),
|
|
157
|
-
|
|
157
|
+
E(r.$slots, "subline-content", {
|
|
158
158
|
details: g.details,
|
|
159
159
|
hideTaxDetails: !0
|
|
160
160
|
})
|
|
161
161
|
], 2)) : y("", !0) : (t(), l("tr", {
|
|
162
162
|
key: 0,
|
|
163
|
-
class:
|
|
163
|
+
class: A(p > 0 ? "border-t" : "")
|
|
164
164
|
}, [
|
|
165
165
|
n(k, null, {
|
|
166
|
-
default:
|
|
167
|
-
var
|
|
166
|
+
default: a(() => {
|
|
167
|
+
var O, I, U, N, M, $;
|
|
168
168
|
return [
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
x("div", xt, [
|
|
170
|
+
E(r.$slots, "invoice-line-prefix", {
|
|
171
171
|
lineOrder: e.lineOrder,
|
|
172
172
|
periodOrder: e.periodOrder,
|
|
173
173
|
groupOrder: e.groupOrder
|
|
174
174
|
}),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
g.description ? (t(), l(
|
|
178
|
-
|
|
179
|
-
], 64)) : g.details.description ? (t(), l(
|
|
180
|
-
|
|
181
|
-
], 64)) : (t(), l(
|
|
182
|
-
|
|
175
|
+
x("div", null, [
|
|
176
|
+
x("div", null, [
|
|
177
|
+
g.description ? (t(), l(_, { key: 0 }, [
|
|
178
|
+
f(u(g.description), 1)
|
|
179
|
+
], 64)) : g.details.description ? (t(), l(_, { key: 1 }, [
|
|
180
|
+
f(u(g.details.description), 1)
|
|
181
|
+
], 64)) : (t(), l(_, { key: 2 }, [
|
|
182
|
+
f(" N/A ")
|
|
183
183
|
], 64))
|
|
184
184
|
]),
|
|
185
|
-
(
|
|
186
|
-
(
|
|
187
|
-
|
|
188
|
-
], 64)) : (
|
|
185
|
+
(O = s(g)) != null && O.name || (I = s(g)) != null && I.meter_properties ? (t(), l("div", ht, [
|
|
186
|
+
(U = s(g)) != null && U.name ? (t(), l(_, { key: 0 }, [
|
|
187
|
+
f(u((N = s(g)) == null ? void 0 : N.name), 1)
|
|
188
|
+
], 64)) : (M = s(g)) != null && M.meter_properties ? (t(), h(o(Be), {
|
|
189
189
|
key: 1,
|
|
190
|
-
comparators: (
|
|
190
|
+
comparators: ($ = s(g)) == null ? void 0 : $.meter_properties
|
|
191
191
|
}, null, 8, ["comparators"])) : y("", !0)
|
|
192
192
|
])) : y("", !0)
|
|
193
193
|
])
|
|
@@ -200,41 +200,41 @@ const xe = (e = []) => {
|
|
|
200
200
|
number: "",
|
|
201
201
|
class: "text-right tabular-nums"
|
|
202
202
|
}, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
203
|
+
default: a(() => [
|
|
204
|
+
f(u(v(g)), 1)
|
|
205
205
|
]),
|
|
206
206
|
_: 2
|
|
207
207
|
}, 1024),
|
|
208
208
|
n(k, { class: "text-right tabular-nums" }, {
|
|
209
|
-
default:
|
|
210
|
-
var
|
|
209
|
+
default: a(() => {
|
|
210
|
+
var O, I;
|
|
211
211
|
return [
|
|
212
|
-
(
|
|
212
|
+
(O = g.details.band) != null && O.amount ? (t(), h(w, {
|
|
213
213
|
key: 0,
|
|
214
214
|
value: g.details.band.amount
|
|
215
|
-
}, null, 8, ["value"])) : (I = g.details.band) != null && I.percentage ? (t(), l(
|
|
216
|
-
|
|
217
|
-
], 64)) : (t(), l(
|
|
218
|
-
|
|
215
|
+
}, null, 8, ["value"])) : (I = g.details.band) != null && I.percentage ? (t(), l(_, { key: 1 }, [
|
|
216
|
+
f(u(g.details.band.percentage) + "% ", 1)
|
|
217
|
+
], 64)) : (t(), l(_, { key: 2 }, [
|
|
218
|
+
f(" N/A ")
|
|
219
219
|
], 64))
|
|
220
220
|
];
|
|
221
221
|
}),
|
|
222
222
|
_: 2
|
|
223
223
|
}, 1024),
|
|
224
|
-
e.showTaxPerLineItem ? (t(),
|
|
225
|
-
default:
|
|
226
|
-
|
|
224
|
+
e.showTaxPerLineItem ? (t(), h(k, { key: 0 }, {
|
|
225
|
+
default: a(() => [...b[0] || (b[0] = [
|
|
226
|
+
f(" ", -1)
|
|
227
227
|
])]),
|
|
228
228
|
_: 1
|
|
229
229
|
})) : y("", !0),
|
|
230
|
-
g.details.amount ? (t(),
|
|
230
|
+
g.details.amount ? (t(), h(k, {
|
|
231
231
|
key: 1,
|
|
232
232
|
class: "text-right tabular-nums"
|
|
233
233
|
}, {
|
|
234
|
-
default:
|
|
234
|
+
default: a(() => [
|
|
235
235
|
n(w, {
|
|
236
236
|
value: g.details.amount,
|
|
237
|
-
"data-testid": o(
|
|
237
|
+
"data-testid": o(mt)
|
|
238
238
|
}, null, 8, ["value", "data-testid"])
|
|
239
239
|
]),
|
|
240
240
|
_: 2
|
|
@@ -242,7 +242,7 @@ const xe = (e = []) => {
|
|
|
242
242
|
], 2))
|
|
243
243
|
], 64))), 128)) : y("", !0);
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), Tt = ["tabindex", "onClick"], Ot = { class: "flex items-center" }, It = /* @__PURE__ */ S({
|
|
246
246
|
__name: "InvoiceCommitment",
|
|
247
247
|
props: {
|
|
248
248
|
commitments: {},
|
|
@@ -253,25 +253,25 @@ const xe = (e = []) => {
|
|
|
253
253
|
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
254
254
|
},
|
|
255
255
|
setup(e) {
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
}, s = (
|
|
256
|
+
const i = V(), { getIsOpen: d, toggle: c } = ue(), m = (r, b) => {
|
|
257
|
+
c(s(r, b));
|
|
258
|
+
}, s = (r, b) => `${r}-line-${b}`, v = (r) => {
|
|
259
259
|
var b;
|
|
260
|
-
return
|
|
260
|
+
return r.description ?? ((b = r.details) == null ? void 0 : b.description) ?? i.$t({
|
|
261
261
|
id: "generic.not_available",
|
|
262
262
|
defaultMessage: "N/A",
|
|
263
263
|
description: "Used in scenarios where no data is available to be displayed"
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
return (
|
|
267
|
-
default:
|
|
268
|
-
|
|
269
|
-
n(
|
|
266
|
+
return (r, b) => (t(), h(j, null, {
|
|
267
|
+
default: a(() => [
|
|
268
|
+
x("tr", null, [
|
|
269
|
+
n(C, {
|
|
270
270
|
left: "",
|
|
271
271
|
colspan: "5"
|
|
272
272
|
}, {
|
|
273
|
-
default:
|
|
274
|
-
|
|
273
|
+
default: a(() => [
|
|
274
|
+
f(u(o(i).$t({
|
|
275
275
|
id: "invoice.table_header.unit",
|
|
276
276
|
defaultMessage: "Unit",
|
|
277
277
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -279,12 +279,12 @@ const xe = (e = []) => {
|
|
|
279
279
|
]),
|
|
280
280
|
_: 1
|
|
281
281
|
}),
|
|
282
|
-
n(
|
|
282
|
+
n(C, {
|
|
283
283
|
right: "",
|
|
284
284
|
class: "w-60"
|
|
285
285
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
|
|
286
|
+
default: a(() => [
|
|
287
|
+
f(u(o(i).$t({
|
|
288
288
|
id: "invoice.table_header.sub_total",
|
|
289
289
|
defaultMessage: "Subtotal",
|
|
290
290
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -293,34 +293,34 @@ const xe = (e = []) => {
|
|
|
293
293
|
_: 1
|
|
294
294
|
})
|
|
295
295
|
]),
|
|
296
|
-
(t(!0), l(
|
|
297
|
-
|
|
298
|
-
class:
|
|
296
|
+
(t(!0), l(_, null, R(e.commitments, (g, p) => (t(), l(_, { key: p }, [
|
|
297
|
+
x("tr", {
|
|
298
|
+
class: A(["border-t", { "cursor-pointer": g.sub_lines }]),
|
|
299
299
|
tabindex: g.sub_lines ? 0 : void 0,
|
|
300
|
-
onClick: (
|
|
300
|
+
onClick: (O) => m(e.groupOrder, g.line_order)
|
|
301
301
|
}, [
|
|
302
302
|
n(k, { colspan: "2" }, {
|
|
303
|
-
default:
|
|
304
|
-
var
|
|
303
|
+
default: a(() => {
|
|
304
|
+
var O;
|
|
305
305
|
return [
|
|
306
|
-
g.sub_lines ? (t(),
|
|
306
|
+
g.sub_lines ? (t(), h(H, {
|
|
307
307
|
key: 0,
|
|
308
308
|
icon: "keyboard_arrow_down",
|
|
309
309
|
size: "md",
|
|
310
|
-
class:
|
|
311
|
-
"-rotate-90": !o(
|
|
310
|
+
class: A(["absolute -translate-x-7 text-slate-400", {
|
|
311
|
+
"-rotate-90": !o(d)(s(e.groupOrder, g.line_order))
|
|
312
312
|
}])
|
|
313
313
|
}, null, 8, ["class"])) : y("", !0),
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
x("div", Ot, [
|
|
315
|
+
E(r.$slots, "invoice-line-prefix", {
|
|
316
316
|
lineOrder: g.line_order,
|
|
317
317
|
periodOrder: e.invoicePeriodOrder,
|
|
318
318
|
groupOrder: e.groupOrder
|
|
319
319
|
}),
|
|
320
|
-
n(
|
|
320
|
+
n(Ae, {
|
|
321
321
|
"clause-type": "COMMITMENT",
|
|
322
|
-
"invoice-line-description":
|
|
323
|
-
"price-details-band": (
|
|
322
|
+
"invoice-line-description": v(g),
|
|
323
|
+
"price-details-band": (O = g.details) == null ? void 0 : O.band
|
|
324
324
|
}, null, 8, ["invoice-line-description", "price-details-band"])
|
|
325
325
|
])
|
|
326
326
|
];
|
|
@@ -328,33 +328,33 @@ const xe = (e = []) => {
|
|
|
328
328
|
_: 2
|
|
329
329
|
}, 1024),
|
|
330
330
|
n(k, { colspan: "3" }, {
|
|
331
|
-
default:
|
|
332
|
-
|
|
331
|
+
default: a(() => [...b[0] || (b[0] = [
|
|
332
|
+
f(" ", -1)
|
|
333
333
|
])]),
|
|
334
334
|
_: 1
|
|
335
335
|
}),
|
|
336
336
|
n(k, { number: "" }, {
|
|
337
|
-
default:
|
|
338
|
-
var
|
|
337
|
+
default: a(() => {
|
|
338
|
+
var O;
|
|
339
339
|
return [
|
|
340
|
-
(
|
|
340
|
+
(O = g.details) != null && O.amount ? (t(), h(w, {
|
|
341
341
|
key: 0,
|
|
342
342
|
value: e.amountType === "INCLUDING_TAX" ? g.amount_including_tax : g.amount_excluding_tax,
|
|
343
|
-
"data-testid": o(
|
|
343
|
+
"data-testid": o(de)
|
|
344
344
|
}, null, 8, ["value", "data-testid"])) : y("", !0)
|
|
345
345
|
];
|
|
346
346
|
}),
|
|
347
347
|
_: 2
|
|
348
348
|
}, 1024)
|
|
349
|
-
], 10,
|
|
350
|
-
n(
|
|
349
|
+
], 10, Tt),
|
|
350
|
+
n(pe, {
|
|
351
351
|
ref_for: !0,
|
|
352
352
|
ref: s(e.groupOrder, g.line_order),
|
|
353
353
|
"sub-lines": g.sub_lines ?? [],
|
|
354
354
|
"line-order": g.line_order,
|
|
355
355
|
"period-order": e.invoicePeriodOrder,
|
|
356
356
|
"group-order": e.groupOrder,
|
|
357
|
-
"is-open": o(
|
|
357
|
+
"is-open": o(d)(s(e.groupOrder, g.line_order)),
|
|
358
358
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
359
359
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
360
360
|
}, null, 8, ["sub-lines", "line-order", "period-order", "group-order", "is-open", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
|
|
@@ -363,7 +363,7 @@ const xe = (e = []) => {
|
|
|
363
363
|
_: 3
|
|
364
364
|
}));
|
|
365
365
|
}
|
|
366
|
-
}),
|
|
366
|
+
}), wt = ["tabindex", "onClick"], Mt = { class: "flex items-center" }, $t = /* @__PURE__ */ S({
|
|
367
367
|
__name: "InvoiceDiscountMarkup",
|
|
368
368
|
props: {
|
|
369
369
|
lines: {},
|
|
@@ -379,18 +379,18 @@ const xe = (e = []) => {
|
|
|
379
379
|
displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
|
|
380
380
|
},
|
|
381
381
|
setup(e) {
|
|
382
|
-
const
|
|
383
|
-
|
|
384
|
-
}, s = (
|
|
385
|
-
return (
|
|
386
|
-
default:
|
|
387
|
-
|
|
388
|
-
n(
|
|
382
|
+
const i = V(), { getIsOpen: d, toggle: c } = ue(), m = (v, r) => {
|
|
383
|
+
c(s(v, r));
|
|
384
|
+
}, s = (v, r) => `${v}-line-${r}`;
|
|
385
|
+
return (v, r) => (t(), h(j, null, {
|
|
386
|
+
default: a(() => [
|
|
387
|
+
x("tr", null, [
|
|
388
|
+
n(C, {
|
|
389
389
|
left: "",
|
|
390
390
|
class: "w-3/5"
|
|
391
391
|
}, {
|
|
392
|
-
default:
|
|
393
|
-
|
|
392
|
+
default: a(() => [
|
|
393
|
+
f(u(o(i).$t({
|
|
394
394
|
id: "invoice.table_header.quantity",
|
|
395
395
|
defaultMessage: "Quantity",
|
|
396
396
|
description: "Table header for quantity column"
|
|
@@ -398,22 +398,22 @@ const xe = (e = []) => {
|
|
|
398
398
|
]),
|
|
399
399
|
_: 1
|
|
400
400
|
}),
|
|
401
|
-
n(
|
|
402
|
-
default:
|
|
403
|
-
|
|
401
|
+
n(C, { colspan: "2" }, {
|
|
402
|
+
default: a(() => [...r[0] || (r[0] = [
|
|
403
|
+
f(" ", -1)
|
|
404
404
|
])]),
|
|
405
405
|
_: 1
|
|
406
406
|
}),
|
|
407
|
-
n(
|
|
407
|
+
n(C, {
|
|
408
408
|
left: "",
|
|
409
409
|
class: "w-1/5"
|
|
410
410
|
}, {
|
|
411
|
-
default:
|
|
412
|
-
|
|
411
|
+
default: a(() => [
|
|
412
|
+
f(u(e.type === "DISCOUNT" ? o(i).$t({
|
|
413
413
|
id: "invoice.table_header.discount",
|
|
414
414
|
defaultMessage: "Discount",
|
|
415
415
|
description: "Table header for discount column"
|
|
416
|
-
}) : o(
|
|
416
|
+
}) : o(i).$t({
|
|
417
417
|
id: "invoice.table_header.markup",
|
|
418
418
|
defaultMessage: "Markup",
|
|
419
419
|
description: "Table header for markup column"
|
|
@@ -421,12 +421,12 @@ const xe = (e = []) => {
|
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
}),
|
|
424
|
-
n(
|
|
424
|
+
n(C, {
|
|
425
425
|
left: "",
|
|
426
426
|
class: "w-1/5"
|
|
427
427
|
}, {
|
|
428
|
-
default:
|
|
429
|
-
|
|
428
|
+
default: a(() => [
|
|
429
|
+
f(u(e.type === "DISCOUNT" ? o(i).$t({
|
|
430
430
|
id: "invoice.table_header.total",
|
|
431
431
|
defaultMessage: "Total",
|
|
432
432
|
description: "Table header for total column"
|
|
@@ -434,12 +434,12 @@ const xe = (e = []) => {
|
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
436
436
|
}),
|
|
437
|
-
n(
|
|
437
|
+
n(C, {
|
|
438
438
|
right: "",
|
|
439
439
|
class: "w-1/5"
|
|
440
440
|
}, {
|
|
441
|
-
default:
|
|
442
|
-
|
|
441
|
+
default: a(() => [
|
|
442
|
+
f(u(o(i).$t({
|
|
443
443
|
id: "invoice.table_header.sub_total",
|
|
444
444
|
defaultMessage: "Subtotal",
|
|
445
445
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -448,36 +448,36 @@ const xe = (e = []) => {
|
|
|
448
448
|
_: 1
|
|
449
449
|
})
|
|
450
450
|
]),
|
|
451
|
-
(t(!0), l(
|
|
452
|
-
|
|
453
|
-
class:
|
|
451
|
+
(t(!0), l(_, null, R(e.lines, (b, g) => (t(), l(_, { key: g }, [
|
|
452
|
+
x("tr", {
|
|
453
|
+
class: A(["border-t", { "cursor-pointer": e.isExpandable }]),
|
|
454
454
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
455
455
|
onClick: (p) => m(e.groupOrder, b.line_order)
|
|
456
456
|
}, [
|
|
457
457
|
n(k, { class: "w-3/5" }, {
|
|
458
|
-
default:
|
|
459
|
-
var p,
|
|
458
|
+
default: a(() => {
|
|
459
|
+
var p, O;
|
|
460
460
|
return [
|
|
461
|
-
b.sub_lines ? (t(),
|
|
461
|
+
b.sub_lines ? (t(), h(H, {
|
|
462
462
|
key: 0,
|
|
463
463
|
icon: "keyboard_arrow_down",
|
|
464
464
|
size: "md",
|
|
465
|
-
class:
|
|
466
|
-
"-rotate-90": !o(
|
|
465
|
+
class: A(["absolute -translate-x-7 text-slate-400", {
|
|
466
|
+
"-rotate-90": !o(d)(s(e.groupOrder, b.line_order))
|
|
467
467
|
}])
|
|
468
468
|
}, null, 8, ["class"])) : y("", !0),
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
x("div", Mt, [
|
|
470
|
+
E(v.$slots, "invoice-line-prefix", {
|
|
471
471
|
lineOrder: b.line_order,
|
|
472
472
|
periodOrder: e.invoicePeriodOrder,
|
|
473
473
|
groupOrder: e.groupOrder
|
|
474
474
|
}),
|
|
475
|
-
b.description ? (t(), l(
|
|
476
|
-
|
|
477
|
-
], 64)) : (p = b.details) != null && p.description ? (t(), l(
|
|
478
|
-
|
|
479
|
-
], 64)) : (t(), l(
|
|
480
|
-
|
|
475
|
+
b.description ? (t(), l(_, { key: 0 }, [
|
|
476
|
+
f(u(b.description), 1)
|
|
477
|
+
], 64)) : (p = b.details) != null && p.description ? (t(), l(_, { key: 1 }, [
|
|
478
|
+
f(u((O = b.details) == null ? void 0 : O.description), 1)
|
|
479
|
+
], 64)) : (t(), l(_, { key: 2 }, [
|
|
480
|
+
f("N/A")
|
|
481
481
|
], 64))
|
|
482
482
|
])
|
|
483
483
|
];
|
|
@@ -485,23 +485,23 @@ const xe = (e = []) => {
|
|
|
485
485
|
_: 2
|
|
486
486
|
}, 1024),
|
|
487
487
|
n(k, { colspan: "2" }, {
|
|
488
|
-
default:
|
|
489
|
-
|
|
488
|
+
default: a(() => [...r[1] || (r[1] = [
|
|
489
|
+
f(" ", -1)
|
|
490
490
|
])]),
|
|
491
491
|
_: 1
|
|
492
492
|
}),
|
|
493
493
|
n(k, { class: "w-1/5 tabular-nums" }, {
|
|
494
|
-
default:
|
|
495
|
-
var p,
|
|
494
|
+
default: a(() => {
|
|
495
|
+
var p, O, I;
|
|
496
496
|
return [
|
|
497
|
-
|
|
497
|
+
f(u((O = (p = b.details) == null ? void 0 : p.band) != null && O.percentage ? `${(I = b.details) == null ? void 0 : I.band.percentage}%` : " "), 1)
|
|
498
498
|
];
|
|
499
499
|
}),
|
|
500
500
|
_: 2
|
|
501
501
|
}, 1024),
|
|
502
502
|
n(k, { class: "w-1/5" }, {
|
|
503
|
-
default:
|
|
504
|
-
|
|
503
|
+
default: a(() => [...r[2] || (r[2] = [
|
|
504
|
+
f(" ", -1)
|
|
505
505
|
])]),
|
|
506
506
|
_: 1
|
|
507
507
|
}),
|
|
@@ -509,25 +509,25 @@ const xe = (e = []) => {
|
|
|
509
509
|
number: "",
|
|
510
510
|
class: "w-1/5"
|
|
511
511
|
}, {
|
|
512
|
-
default:
|
|
512
|
+
default: a(() => {
|
|
513
513
|
var p;
|
|
514
514
|
return [
|
|
515
|
-
(p = b.details) != null && p.amount ? (t(),
|
|
515
|
+
(p = b.details) != null && p.amount ? (t(), h(w, {
|
|
516
516
|
key: 0,
|
|
517
517
|
value: e.amountType === "INCLUDING_TAX" ? b.amount_including_tax : b.amount_excluding_tax,
|
|
518
|
-
"data-testid": o(
|
|
518
|
+
"data-testid": o(de)
|
|
519
519
|
}, null, 8, ["value", "data-testid"])) : y("", !0)
|
|
520
520
|
];
|
|
521
521
|
}),
|
|
522
522
|
_: 2
|
|
523
523
|
}, 1024)
|
|
524
|
-
], 10,
|
|
525
|
-
n(
|
|
524
|
+
], 10, wt),
|
|
525
|
+
n(pe, {
|
|
526
526
|
ref_for: !0,
|
|
527
527
|
ref: s(e.groupOrder, b.line_order),
|
|
528
528
|
"sub-lines": b.sub_lines ?? [],
|
|
529
529
|
"line-order": b.line_order,
|
|
530
|
-
"is-open": o(
|
|
530
|
+
"is-open": o(d)(s(e.groupOrder, b.line_order)),
|
|
531
531
|
"period-order": e.invoicePeriodOrder,
|
|
532
532
|
"group-order": e.groupOrder,
|
|
533
533
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
@@ -538,13 +538,13 @@ const xe = (e = []) => {
|
|
|
538
538
|
_: 3
|
|
539
539
|
}));
|
|
540
540
|
}
|
|
541
|
-
}),
|
|
542
|
-
var
|
|
543
|
-
return (
|
|
544
|
-
},
|
|
541
|
+
}), oe = (e) => {
|
|
542
|
+
var i;
|
|
543
|
+
return (i = e.lines) != null && i.some((d) => !!d.sub_lines) ? _t : void 0;
|
|
544
|
+
}, Et = ["tabindex"], Ct = { key: 0 }, Nt = {
|
|
545
545
|
colspan: "2",
|
|
546
546
|
class: "p-0"
|
|
547
|
-
},
|
|
547
|
+
}, Bt = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, At = /* @__PURE__ */ S({
|
|
548
548
|
__name: "InvoiceGroupCommitment",
|
|
549
549
|
props: {
|
|
550
550
|
group: {},
|
|
@@ -561,30 +561,30 @@ const xe = (e = []) => {
|
|
|
561
561
|
showTaxPerLineItem: { type: Boolean }
|
|
562
562
|
},
|
|
563
563
|
setup(e) {
|
|
564
|
-
const
|
|
565
|
-
return (
|
|
566
|
-
|
|
567
|
-
class:
|
|
564
|
+
const i = V();
|
|
565
|
+
return (d, c) => (t(), l(_, null, [
|
|
566
|
+
x("tr", {
|
|
567
|
+
class: A(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
|
|
568
568
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: c[0] || (c[0] = (m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
570
570
|
onKeyup: [
|
|
571
|
-
|
|
572
|
-
|
|
571
|
+
c[1] || (c[1] = Q((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
572
|
+
c[2] || (c[2] = Q((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
573
573
|
]
|
|
574
574
|
}, [
|
|
575
575
|
n(k, { class: "p-0" }, {
|
|
576
|
-
default:
|
|
577
|
-
e.isExpandable ? (t(),
|
|
576
|
+
default: a(() => [
|
|
577
|
+
e.isExpandable ? (t(), h(H, {
|
|
578
578
|
key: 0,
|
|
579
579
|
icon: "keyboard_arrow_down",
|
|
580
580
|
size: "md",
|
|
581
|
-
class:
|
|
581
|
+
class: A(["absolute -translate-x-7 text-slate-400", {
|
|
582
582
|
"-rotate-90": !e.expandedItems.includes(
|
|
583
583
|
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
584
584
|
)
|
|
585
585
|
}])
|
|
586
586
|
}, null, 8, ["class"])) : y("", !0),
|
|
587
|
-
|
|
587
|
+
f(" " + u(o(i).$t({
|
|
588
588
|
id: "invoice.commitment_heading",
|
|
589
589
|
defaultMessage: "Commitment",
|
|
590
590
|
description: "Heading used for commitment in invoice tables"
|
|
@@ -593,26 +593,26 @@ const xe = (e = []) => {
|
|
|
593
593
|
_: 1
|
|
594
594
|
}),
|
|
595
595
|
n(k, { number: "" }, {
|
|
596
|
-
default:
|
|
597
|
-
e.amountType === "INCLUDING_TAX" ? (t(),
|
|
596
|
+
default: a(() => [
|
|
597
|
+
e.amountType === "INCLUDING_TAX" ? (t(), h(w, {
|
|
598
598
|
key: 0,
|
|
599
599
|
value: e.group.amount_including_tax,
|
|
600
|
-
"data-testid": o(
|
|
601
|
-
"data-type": o(
|
|
602
|
-
}, null, 8, ["value", "data-testid", "data-type"])) : (t(),
|
|
600
|
+
"data-testid": o(ae),
|
|
601
|
+
"data-type": o(oe)(e.group)
|
|
602
|
+
}, null, 8, ["value", "data-testid", "data-type"])) : (t(), h(w, {
|
|
603
603
|
key: 1,
|
|
604
604
|
value: e.group.amount_excluding_tax,
|
|
605
|
-
"data-testid": o(
|
|
606
|
-
"data-type": o(
|
|
605
|
+
"data-testid": o(ae),
|
|
606
|
+
"data-type": o(oe)(e.group)
|
|
607
607
|
}, null, 8, ["value", "data-testid", "data-type"]))
|
|
608
608
|
]),
|
|
609
609
|
_: 1
|
|
610
610
|
})
|
|
611
|
-
], 42,
|
|
612
|
-
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr",
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
n(
|
|
611
|
+
], 42, Et),
|
|
612
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr", Ct, [
|
|
613
|
+
x("td", Nt, [
|
|
614
|
+
x("div", Bt, [
|
|
615
|
+
n(It, {
|
|
616
616
|
commitments: e.group.lines,
|
|
617
617
|
"format-index": e.formatIndex,
|
|
618
618
|
"handle-toggle-items": e.handleToggleItems,
|
|
@@ -624,8 +624,8 @@ const xe = (e = []) => {
|
|
|
624
624
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
625
625
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
626
626
|
}, {
|
|
627
|
-
"invoice-line-prefix":
|
|
628
|
-
|
|
627
|
+
"invoice-line-prefix": a((m) => [
|
|
628
|
+
E(d.$slots, "invoice-line-prefix", ge(be(m)))
|
|
629
629
|
]),
|
|
630
630
|
_: 3
|
|
631
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"])
|
|
@@ -634,10 +634,10 @@ const xe = (e = []) => {
|
|
|
634
634
|
])) : y("", !0)
|
|
635
635
|
], 64));
|
|
636
636
|
}
|
|
637
|
-
}),
|
|
637
|
+
}), Pt = ["tabindex"], Ut = { key: 0 }, St = {
|
|
638
638
|
colspan: "2",
|
|
639
639
|
class: "p-0"
|
|
640
|
-
},
|
|
640
|
+
}, Lt = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Dt = /* @__PURE__ */ S({
|
|
641
641
|
__name: "InvoiceGroupDiscountMarkup",
|
|
642
642
|
props: {
|
|
643
643
|
heading: {},
|
|
@@ -655,53 +655,53 @@ const xe = (e = []) => {
|
|
|
655
655
|
showTaxPerLineItem: { type: Boolean }
|
|
656
656
|
},
|
|
657
657
|
setup(e) {
|
|
658
|
-
return (
|
|
659
|
-
|
|
660
|
-
class:
|
|
658
|
+
return (i, d) => (t(), l(_, null, [
|
|
659
|
+
x("tr", {
|
|
660
|
+
class: A(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
|
|
661
661
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
662
|
-
onClick:
|
|
662
|
+
onClick: d[0] || (d[0] = (c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
663
663
|
onKeyup: [
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
d[1] || (d[1] = Q((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
665
|
+
d[2] || (d[2] = Q((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
666
666
|
]
|
|
667
667
|
}, [
|
|
668
668
|
n(k, { class: "p-0" }, {
|
|
669
|
-
default:
|
|
670
|
-
e.isExpandable ? (t(),
|
|
669
|
+
default: a(() => [
|
|
670
|
+
e.isExpandable ? (t(), h(H, {
|
|
671
671
|
key: 0,
|
|
672
672
|
icon: "keyboard_arrow_down",
|
|
673
673
|
size: "md",
|
|
674
|
-
class:
|
|
674
|
+
class: A(["absolute -translate-x-7 text-slate-400", {
|
|
675
675
|
"-rotate-90": !e.expandedItems.includes(
|
|
676
676
|
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
677
677
|
)
|
|
678
678
|
}])
|
|
679
679
|
}, null, 8, ["class"])) : y("", !0),
|
|
680
|
-
|
|
680
|
+
f(" " + u(e.heading), 1)
|
|
681
681
|
]),
|
|
682
682
|
_: 1
|
|
683
683
|
}),
|
|
684
684
|
n(k, { number: "" }, {
|
|
685
|
-
default:
|
|
686
|
-
e.amountType === "INCLUDING_TAX" ? (t(),
|
|
685
|
+
default: a(() => [
|
|
686
|
+
e.amountType === "INCLUDING_TAX" ? (t(), h(w, {
|
|
687
687
|
key: 0,
|
|
688
688
|
value: e.group.amount_including_tax,
|
|
689
|
-
"data-testid": o(
|
|
690
|
-
"data-type": o(
|
|
691
|
-
}, null, 8, ["value", "data-testid", "data-type"])) : (t(),
|
|
689
|
+
"data-testid": o(ae),
|
|
690
|
+
"data-type": o(oe)(e.group)
|
|
691
|
+
}, null, 8, ["value", "data-testid", "data-type"])) : (t(), h(w, {
|
|
692
692
|
key: 1,
|
|
693
693
|
value: e.group.amount_excluding_tax,
|
|
694
|
-
"data-testid": o(
|
|
695
|
-
"data-type": o(
|
|
694
|
+
"data-testid": o(ae),
|
|
695
|
+
"data-type": o(oe)(e.group)
|
|
696
696
|
}, null, 8, ["value", "data-testid", "data-type"]))
|
|
697
697
|
]),
|
|
698
698
|
_: 1
|
|
699
699
|
})
|
|
700
|
-
], 42,
|
|
701
|
-
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr",
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
n(
|
|
700
|
+
], 42, Pt),
|
|
701
|
+
(e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr", Ut, [
|
|
702
|
+
x("td", St, [
|
|
703
|
+
x("div", Lt, [
|
|
704
|
+
n($t, {
|
|
705
705
|
type: e.group.type,
|
|
706
706
|
lines: e.group.lines,
|
|
707
707
|
"format-index": e.formatIndex,
|
|
@@ -714,8 +714,8 @@ const xe = (e = []) => {
|
|
|
714
714
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
715
715
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
|
|
716
716
|
}, {
|
|
717
|
-
"invoice-line-prefix":
|
|
718
|
-
|
|
717
|
+
"invoice-line-prefix": a((c) => [
|
|
718
|
+
E(i.$slots, "invoice-line-prefix", ge(be(c)))
|
|
719
719
|
]),
|
|
720
720
|
_: 3
|
|
721
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"])
|
|
@@ -724,50 +724,61 @@ const xe = (e = []) => {
|
|
|
724
724
|
])) : y("", !0)
|
|
725
725
|
], 64));
|
|
726
726
|
}
|
|
727
|
-
}),
|
|
728
|
-
if (
|
|
727
|
+
}), Rt = (e, i) => {
|
|
728
|
+
if (i)
|
|
729
729
|
return e.forwarded_from_customer_id;
|
|
730
|
-
},
|
|
731
|
-
|
|
730
|
+
}, De = (e, i, d) => {
|
|
731
|
+
const c = Rt(
|
|
732
|
+
e,
|
|
733
|
+
i
|
|
734
|
+
);
|
|
735
|
+
if (!c)
|
|
736
|
+
return;
|
|
737
|
+
const m = d == null ? void 0 : d.find(
|
|
738
|
+
(s) => s.id === c
|
|
739
|
+
);
|
|
740
|
+
return m && Ee(m);
|
|
741
|
+
}, Ft = (e) => {
|
|
742
|
+
let i = { kind: "default" }, d = { kind: "default" };
|
|
732
743
|
if (e.tier_lower_bound && "number" in e.tier_lower_bound)
|
|
733
|
-
|
|
744
|
+
i = { kind: "number", value: +e.tier_lower_bound.number };
|
|
734
745
|
else if (e.tier_lower_bound && "amount" in e.tier_lower_bound) {
|
|
735
|
-
const { quantity:
|
|
736
|
-
|
|
746
|
+
const { quantity: c, currency: m } = e.tier_lower_bound.amount;
|
|
747
|
+
i = { kind: "amount", currency: m, quantity: c ?? 0 };
|
|
737
748
|
}
|
|
738
749
|
if (e.tier_top_bound && "number" in e.tier_top_bound)
|
|
739
|
-
|
|
750
|
+
d = { kind: "number", value: +e.tier_top_bound.number };
|
|
740
751
|
else if (e.tier_top_bound && "amount" in e.tier_top_bound) {
|
|
741
|
-
const { quantity:
|
|
742
|
-
|
|
752
|
+
const { quantity: c, currency: m } = e.tier_top_bound.amount;
|
|
753
|
+
d = { kind: "amount", currency: m, quantity: c };
|
|
743
754
|
}
|
|
744
|
-
return { lowerBound:
|
|
745
|
-
},
|
|
746
|
-
var
|
|
755
|
+
return { lowerBound: i, topBound: d };
|
|
756
|
+
}, Wt = (e) => {
|
|
757
|
+
var i, d, c, m;
|
|
747
758
|
switch (e == null ? void 0 : e.price_bound) {
|
|
748
759
|
case "BELOW_MINIMUM_AMOUNT":
|
|
749
|
-
return { kind: "band_minimum_amount", amount: (
|
|
760
|
+
return { kind: "band_minimum_amount", amount: (i = e.band) == null ? void 0 : i.minimum_amount };
|
|
750
761
|
case "NOT_HIT":
|
|
751
762
|
return { kind: "price_bound_within_bounds" };
|
|
752
763
|
case "ABOVE_MAXIMUM_AMOUNT":
|
|
753
|
-
return { kind: "price_bound_maximum_amount", amount: (
|
|
764
|
+
return { kind: "price_bound_maximum_amount", amount: (d = e.band) == null ? void 0 : d.maximum_amount };
|
|
754
765
|
case "BELOW_MINIMUM_NUMBER":
|
|
755
|
-
return { kind: "band_minimum_number", value: (
|
|
766
|
+
return { kind: "band_minimum_number", value: (c = e.band) == null ? void 0 : c.minimum_number };
|
|
756
767
|
case "ABOVE_MAXIMUM_NUMBER":
|
|
757
768
|
return { kind: "band_maximum_number", value: (m = e.band) == null ? void 0 : m.maximum_number };
|
|
758
769
|
default:
|
|
759
770
|
return { kind: "none" };
|
|
760
771
|
}
|
|
761
|
-
},
|
|
772
|
+
}, zt = { class: "items-left flex flex-col gap-1 leading-none" }, Vt = { class: "flex items-center" }, Gt = {
|
|
762
773
|
key: 0,
|
|
763
774
|
class: "ml-1 text-xs text-secondary"
|
|
764
|
-
},
|
|
775
|
+
}, Ht = { key: 0 }, Xt = {
|
|
765
776
|
key: 1,
|
|
766
777
|
class: "text-xs text-secondary"
|
|
767
|
-
},
|
|
778
|
+
}, jt = {
|
|
768
779
|
key: 2,
|
|
769
780
|
class: "text-xs text-secondary"
|
|
770
|
-
},
|
|
781
|
+
}, qt = { class: "text-[9pt] text-secondary" }, Yt = /* @__PURE__ */ S({
|
|
771
782
|
__name: "InvoiceLineRow",
|
|
772
783
|
props: {
|
|
773
784
|
data: {},
|
|
@@ -778,189 +789,193 @@ const xe = (e = []) => {
|
|
|
778
789
|
isExpanded: { type: Boolean }
|
|
779
790
|
},
|
|
780
791
|
setup(e) {
|
|
781
|
-
const { $t:
|
|
792
|
+
const { $t: i, formatNumber: d } = V(), c = e, m = (g) => {
|
|
782
793
|
if (g.kind !== "default")
|
|
783
|
-
return g.kind === "number" ?
|
|
794
|
+
return g.kind === "number" ? d(g.value) : `${g.currency} ${g.quantity}`;
|
|
784
795
|
}, s = (g) => {
|
|
785
796
|
if (!g) return "";
|
|
786
|
-
const { lowerBound: p, topBound:
|
|
797
|
+
const { lowerBound: p, topBound: O } = Ft(g), I = m(O);
|
|
787
798
|
return (m(p) ?? "0") + (I ? ` - ${I}` : "+");
|
|
788
|
-
},
|
|
799
|
+
}, v = B(() => {
|
|
789
800
|
var g;
|
|
790
|
-
return (g =
|
|
791
|
-
}),
|
|
792
|
-
var g, p,
|
|
793
|
-
return ((g =
|
|
801
|
+
return (g = c.data.details) == null ? void 0 : g.included_volume_details;
|
|
802
|
+
}), r = B(() => Wt(c.data.details)), b = B(() => {
|
|
803
|
+
var g, p, O;
|
|
804
|
+
return ((g = c.data) == null ? void 0 : g.type) === "ONE_OFF" && c.data.description ? c.data.description : (p = c.data) != null && p.product_items ? ye(c.data.product_items.map((I) => I.name)) : ((O = c.data) == null ? void 0 : O.description) ?? "N/A";
|
|
794
805
|
});
|
|
795
|
-
return (g, p) => (t(), l(
|
|
806
|
+
return (g, p) => (t(), l(_, null, [
|
|
796
807
|
n(k, { class: "align-top" }, {
|
|
797
|
-
default:
|
|
798
|
-
var
|
|
808
|
+
default: a(() => {
|
|
809
|
+
var O, I, U, N, M, $, D, P, G;
|
|
799
810
|
return [
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
e.data.sub_lines ? (t(),
|
|
811
|
+
x("div", zt, [
|
|
812
|
+
x("div", null, [
|
|
813
|
+
e.data.sub_lines ? (t(), h(H, {
|
|
803
814
|
key: 0,
|
|
804
815
|
icon: "keyboard_arrow_down",
|
|
805
816
|
size: "md",
|
|
806
|
-
class:
|
|
817
|
+
class: A(["absolute -translate-x-7 -translate-y-2 text-slate-400", {
|
|
807
818
|
"-rotate-90": !e.isExpanded
|
|
808
819
|
}])
|
|
809
820
|
}, null, 8, ["class"])) : y("", !0),
|
|
810
|
-
|
|
811
|
-
|
|
821
|
+
x("div", Vt, [
|
|
822
|
+
E(g.$slots, "invoice-line-prefix", {
|
|
812
823
|
lineOrder: e.data.line_order,
|
|
813
824
|
periodOrder: e.periodOrder,
|
|
814
825
|
groupOrder: e.groupOrder
|
|
815
826
|
}),
|
|
816
|
-
["PRICING", "REVENUE", "ONE_OFF"].includes(e.data.type) ? (t(), l(
|
|
817
|
-
|
|
818
|
-
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), l("div",
|
|
819
|
-
], 64)) : (t(),
|
|
827
|
+
["PRICING", "REVENUE", "ONE_OFF"].includes(e.data.type) ? (t(), l(_, { key: 0 }, [
|
|
828
|
+
f(u(b.value) + " ", 1),
|
|
829
|
+
e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), l("div", Gt, u(o(tt)(e.data.type)), 1)) : y("", !0)
|
|
830
|
+
], 64)) : (t(), h(Ae, {
|
|
820
831
|
key: 1,
|
|
821
832
|
"invoice-line-description": b.value,
|
|
822
833
|
"clause-type": e.data.type,
|
|
823
|
-
"price-details-band": (
|
|
834
|
+
"price-details-band": (O = e.data.details) == null ? void 0 : O.band
|
|
824
835
|
}, null, 8, ["invoice-line-description", "clause-type", "price-details-band"]))
|
|
825
836
|
])
|
|
826
837
|
]),
|
|
827
|
-
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !
|
|
828
|
-
(
|
|
829
|
-
(t(!0), l(
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
838
|
+
["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !v.value && ((I = e.data.details) != null && I.band) ? (t(), l("div", Ht, u(s((U = e.data.details) == null ? void 0 : U.band)), 1)) : y("", !0),
|
|
839
|
+
(M = (N = e.data.details) == null ? void 0 : N.split_pricing) != null && M.meter_properties ? (t(), l("span", Xt, [
|
|
840
|
+
(t(!0), l(_, null, R((D = ($ = e.data.details) == null ? void 0 : $.split_pricing) == null ? void 0 : D.meter_properties, (q, Y) => (t(), l(_, null, [
|
|
841
|
+
f(u(q.meter_property.name) + ": " + u(q.value), 1),
|
|
842
|
+
Y < e.data.details.split_pricing.meter_properties.length - 1 ? (t(), l(_, { key: 0 }, [
|
|
843
|
+
f(u(", "))
|
|
833
844
|
], 64)) : y("", !0)
|
|
834
845
|
], 64))), 256))
|
|
835
846
|
])) : y("", !0),
|
|
836
|
-
(
|
|
837
|
-
e.data.conditions.name ? (t(), l(
|
|
838
|
-
|
|
839
|
-
], 64)) : e.data.conditions.meter_properties ? (t(),
|
|
847
|
+
(P = e.data.conditions) != null && P.name || (G = e.data.conditions) != null && G.meter_properties ? (t(), l("div", jt, [
|
|
848
|
+
e.data.conditions.name ? (t(), l(_, { key: 0 }, [
|
|
849
|
+
f(u(e.data.conditions.name), 1)
|
|
850
|
+
], 64)) : e.data.conditions.meter_properties ? (t(), h(o(Be), {
|
|
840
851
|
key: 1,
|
|
841
852
|
comparators: e.data.conditions.meter_properties
|
|
842
853
|
}, null, 8, ["comparators"])) : y("", !0)
|
|
843
854
|
])) : y("", !0)
|
|
844
855
|
]),
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
856
|
+
x("span", qt, [
|
|
857
|
+
r.value.kind === "band_minimum_amount" ? (t(), l(_, { key: 0 }, [
|
|
858
|
+
f(u(o(i)({
|
|
848
859
|
id: "invoice.line.band_minimum_amount",
|
|
849
860
|
defaultMessage: "Band minimum amount",
|
|
850
861
|
description: "Minimum amount specified in a band"
|
|
851
862
|
})) + " ", 1),
|
|
852
|
-
|
|
863
|
+
r.value.amount ? (t(), h(w, {
|
|
853
864
|
key: 0,
|
|
854
|
-
value:
|
|
865
|
+
value: r.value.amount
|
|
855
866
|
}, null, 8, ["value"])) : y("", !0)
|
|
856
|
-
], 64)) :
|
|
857
|
-
|
|
867
|
+
], 64)) : r.value.kind === "price_bound_within_bounds" ? (t(), l(_, { key: 1 }, [
|
|
868
|
+
f(u(o(i)({
|
|
858
869
|
id: "invoice.line.price_bound_within_bounds",
|
|
859
870
|
defaultMessage: "Within bounds",
|
|
860
871
|
description: "Label used when min and max bounds are specified but reached"
|
|
861
872
|
})), 1)
|
|
862
|
-
], 64)) :
|
|
863
|
-
|
|
873
|
+
], 64)) : r.value.kind === "price_bound_maximum_amount" ? (t(), l(_, { key: 2 }, [
|
|
874
|
+
f(u(o(i)({
|
|
864
875
|
id: "invoice.line.price_bound_maximum_amount",
|
|
865
876
|
defaultMessage: "Maximum amount",
|
|
866
877
|
description: "Maximum amount specified in a band"
|
|
867
878
|
})) + " ", 1),
|
|
868
|
-
|
|
879
|
+
r.value.amount ? (t(), h(w, {
|
|
869
880
|
key: 0,
|
|
870
|
-
value:
|
|
881
|
+
value: r.value.amount
|
|
871
882
|
}, null, 8, ["value"])) : y("", !0)
|
|
872
|
-
], 64)) :
|
|
873
|
-
|
|
883
|
+
], 64)) : r.value.kind === "band_minimum_number" ? (t(), l(_, { key: 3 }, [
|
|
884
|
+
f(u(o(i)({
|
|
874
885
|
id: "invoice.line.band_minimum_number",
|
|
875
886
|
defaultMessage: "Minimum number",
|
|
876
887
|
description: "Minimum number of units specified in a band"
|
|
877
|
-
})) + " " + u(
|
|
878
|
-
], 64)) :
|
|
879
|
-
|
|
888
|
+
})) + " " + u(r.value.value), 1)
|
|
889
|
+
], 64)) : r.value.kind === "band_maximum_number" ? (t(), l(_, { key: 4 }, [
|
|
890
|
+
f(u(o(i)({
|
|
880
891
|
id: "invoice.line.band_maximum_number",
|
|
881
892
|
defaultMessage: "Maximum number",
|
|
882
893
|
description: "Maximum number of units specified in a band"
|
|
883
|
-
})) + " " + u(
|
|
894
|
+
})) + " " + u(r.value.value), 1)
|
|
884
895
|
], 64)) : y("", !0)
|
|
885
896
|
])
|
|
886
897
|
];
|
|
887
898
|
}),
|
|
888
899
|
_: 3
|
|
889
900
|
}),
|
|
890
|
-
|
|
901
|
+
E(g.$slots, "line-content", {
|
|
891
902
|
details: e.data.details
|
|
892
903
|
})
|
|
893
904
|
], 64));
|
|
894
905
|
}
|
|
895
|
-
}),
|
|
896
|
-
var
|
|
906
|
+
}), Re = ["BELOW_MINIMUM_AMOUNT", "ABOVE_MAXIMUM_AMOUNT"], Fe = ["BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Kt = (e, i, d, c) => {
|
|
907
|
+
var m, s;
|
|
897
908
|
if (e === "PASS_THROUGH") return { kind: "hidden" };
|
|
898
|
-
if (
|
|
899
|
-
return { kind: "conversion-credits", value:
|
|
900
|
-
if (
|
|
901
|
-
const { price_bound:
|
|
902
|
-
return
|
|
909
|
+
if (d && ((s = (m = i == null ? void 0 : i.conversion) == null ? void 0 : m.credits) != null && s.quantity))
|
|
910
|
+
return { kind: "conversion-credits", value: i.conversion.credits.quantity };
|
|
911
|
+
if (i != null && i.price_bound) {
|
|
912
|
+
const { price_bound: v, meter_value: r, band: b } = i;
|
|
913
|
+
return c && Re.includes(v) && r.amount ? { kind: "amount", amount: r.amount } : c && Fe.includes(v) && r.number ? { kind: "number", value: +r.number } : v === "BELOW_MINIMUM_AMOUNT" || v === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: r.count } : v === "NOT_HIT" && "amount" in r && r.amount ? { kind: "amount", amount: r.amount } : v === "NOT_HIT" && "number" in r && r.number ? { kind: "raw", value: r.number } : v === "RATIO" && r.number ? { kind: "number", value: +r.number } : v === "BELOW_MINIMUM_NUMBER" && (b != null && b.minimum_number) ? { kind: "number", value: +b.minimum_number } : v === "ABOVE_MAXIMUM_NUMBER" && (b != null && b.maximum_number) ? { kind: "number", value: +b.maximum_number } : { kind: "hidden" };
|
|
903
914
|
}
|
|
904
|
-
return
|
|
905
|
-
},
|
|
915
|
+
return i != null && i.meter_value && "number" in i.meter_value ? { kind: "number", value: +i.meter_value.number } : i != null && i.meter_value && "amount" in i.meter_value ? { kind: "amount", amount: i.meter_value.amount } : { kind: "one" };
|
|
916
|
+
}, Qt = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Jt = (e, i, d, c) => {
|
|
906
917
|
if (e === "PASS_THROUGH") return { kind: "pass-through" };
|
|
907
|
-
if (
|
|
908
|
-
const { price_bound:
|
|
909
|
-
if (
|
|
918
|
+
if (i != null && i.price_bound) {
|
|
919
|
+
const { price_bound: v, band: r, amount: b } = i;
|
|
920
|
+
if (c && Re.includes(v) && (r != null && r.percentage))
|
|
921
|
+
return { kind: "percentage", value: r.percentage };
|
|
922
|
+
if (c && Fe.includes(v) && (r != null && r.amount))
|
|
923
|
+
return { kind: "amount", amount: r.amount };
|
|
924
|
+
if (v === "BELOW_MINIMUM_AMOUNT" && (r != null && r.minimum_amount))
|
|
910
925
|
return { kind: "amount", amount: r.minimum_amount };
|
|
911
|
-
if (
|
|
926
|
+
if (v === "ABOVE_MAXIMUM_AMOUNT" && (r != null && r.maximum_amount))
|
|
912
927
|
return { kind: "amount", amount: r.maximum_amount };
|
|
913
|
-
if (
|
|
914
|
-
return { kind: "amount", amount: (
|
|
915
|
-
if (
|
|
928
|
+
if (v === "RATIO")
|
|
929
|
+
return { kind: "amount", amount: (d === "PER_SEAT" ? r == null ? void 0 : r.amount : void 0) ?? b, suffix: { kind: "tier-top-bound" } };
|
|
930
|
+
if (Qt.includes(v)) {
|
|
916
931
|
if (r && r.amount)
|
|
917
932
|
return { kind: "amount", amount: r.amount };
|
|
918
933
|
if (r && "percentage" in r)
|
|
919
934
|
return { kind: "percentage", value: r.percentage };
|
|
920
|
-
if (r &&
|
|
921
|
-
return { kind: "amount", amount:
|
|
935
|
+
if (r && b)
|
|
936
|
+
return { kind: "amount", amount: b, suffix: { kind: "fixed-amount" } };
|
|
922
937
|
}
|
|
923
938
|
return { kind: "hidden" };
|
|
924
939
|
}
|
|
925
|
-
const
|
|
926
|
-
return
|
|
927
|
-
},
|
|
940
|
+
const m = i == null ? void 0 : i.band, s = i == null ? void 0 : i.amount;
|
|
941
|
+
return m && m.amount ? { kind: "amount", amount: m.amount, suffix: { kind: "block-size-or-per-unit" } } : m && "percentage" in m ? { kind: "percentage", value: m.percentage } : m && s ? e === "STAIR_STEP" || e === "STAIR_STEP_TOP_UP" ? { kind: "amount", amount: s, suffix: { kind: "fixed-amount" } } : e === "TOP_TIERED" ? { kind: "amount", amount: s, suffix: { kind: "per-unit" } } : e === "FLAT" ? { kind: "amount", amount: s, suffix: { kind: "flat-fee" } } : { kind: "amount", amount: s } : { kind: "hidden" };
|
|
942
|
+
}, Zt = {
|
|
928
943
|
key: 5,
|
|
929
944
|
class: "text-xs text-secondary"
|
|
930
|
-
},
|
|
945
|
+
}, en = {
|
|
931
946
|
key: 1,
|
|
932
947
|
class: "tabular-nums"
|
|
933
|
-
},
|
|
948
|
+
}, tn = {
|
|
934
949
|
key: 0,
|
|
935
950
|
class: "text-2xs text-secondary"
|
|
936
|
-
},
|
|
951
|
+
}, nn = {
|
|
937
952
|
key: 1,
|
|
938
953
|
class: "text-2xs text-secondary"
|
|
939
|
-
},
|
|
954
|
+
}, an = {
|
|
940
955
|
key: 0,
|
|
941
956
|
class: "text-2xs text-secondary"
|
|
942
|
-
},
|
|
957
|
+
}, on = {
|
|
943
958
|
key: 1,
|
|
944
959
|
class: "text-2xs text-secondary"
|
|
945
|
-
},
|
|
960
|
+
}, ln = {
|
|
946
961
|
key: 2,
|
|
947
962
|
class: "text-2xs text-secondary"
|
|
948
|
-
},
|
|
963
|
+
}, rn = {
|
|
949
964
|
key: 3,
|
|
950
965
|
class: "text-2xs text-secondary"
|
|
951
|
-
},
|
|
966
|
+
}, sn = {
|
|
952
967
|
key: 4,
|
|
953
968
|
class: "text-2xs text-secondary"
|
|
954
|
-
},
|
|
969
|
+
}, dn = { class: "text-2xs text-secondary" }, un = {
|
|
955
970
|
key: 0,
|
|
956
971
|
class: "flex justify-end"
|
|
957
|
-
},
|
|
972
|
+
}, cn = { class: "flex items-center justify-end gap-1" }, mn = {
|
|
958
973
|
key: 0,
|
|
959
974
|
class: "text-2xs tabular-nums text-secondary"
|
|
960
|
-
},
|
|
975
|
+
}, vn = {
|
|
961
976
|
key: 1,
|
|
962
977
|
class: "inline-block"
|
|
963
|
-
},
|
|
978
|
+
}, fn = { class: "flex items-center justify-end gap-1" }, Te = /* @__PURE__ */ S({
|
|
964
979
|
__name: "InvoiceRowContent",
|
|
965
980
|
props: {
|
|
966
981
|
pricingType: {},
|
|
@@ -971,40 +986,51 @@ const xe = (e = []) => {
|
|
|
971
986
|
hideTaxDetails: { type: Boolean },
|
|
972
987
|
modelType: {},
|
|
973
988
|
showTaxPerLineItem: { type: Boolean, default: !0 },
|
|
974
|
-
preferConversionCredits: { type: Boolean }
|
|
989
|
+
preferConversionCredits: { type: Boolean },
|
|
990
|
+
hasReferenceValue: { type: Boolean }
|
|
975
991
|
},
|
|
976
992
|
setup(e) {
|
|
977
|
-
const
|
|
978
|
-
var
|
|
979
|
-
return (
|
|
980
|
-
}),
|
|
993
|
+
const i = e, d = B(() => {
|
|
994
|
+
var $;
|
|
995
|
+
return ($ = i.details) == null ? void 0 : $.included_volume_details;
|
|
996
|
+
}), c = B(
|
|
981
997
|
() => {
|
|
982
|
-
var
|
|
983
|
-
return (
|
|
998
|
+
var $;
|
|
999
|
+
return ($ = d.value) == null ? void 0 : $.available_included_volume;
|
|
984
1000
|
}
|
|
985
|
-
), m =
|
|
986
|
-
() =>
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1001
|
+
), m = B(
|
|
1002
|
+
() => Kt(
|
|
1003
|
+
i.pricingType,
|
|
1004
|
+
i.details,
|
|
1005
|
+
i.preferConversionCredits,
|
|
1006
|
+
i.hasReferenceValue
|
|
1007
|
+
)
|
|
1008
|
+
), s = B(
|
|
1009
|
+
() => Jt(
|
|
1010
|
+
i.pricingType,
|
|
1011
|
+
i.details,
|
|
1012
|
+
i.modelType,
|
|
1013
|
+
i.hasReferenceValue
|
|
1014
|
+
)
|
|
1015
|
+
), { $t: v, formatNumber: r } = V(), b = B(
|
|
1016
|
+
() => v({
|
|
991
1017
|
id: "invoice.line.fixed_amount",
|
|
992
1018
|
defaultMessage: "Fixed amount",
|
|
993
1019
|
description: "Label shown when a price band charges a fixed amount regardless of usage"
|
|
994
1020
|
})
|
|
995
|
-
), g =
|
|
996
|
-
() =>
|
|
1021
|
+
), g = B(
|
|
1022
|
+
() => v({
|
|
997
1023
|
id: "invoice.line.flat_fee",
|
|
998
1024
|
defaultMessage: "Flat fee",
|
|
999
1025
|
description: "Label shown for a flat, usage-independent fee"
|
|
1000
1026
|
})
|
|
1001
|
-
), p =
|
|
1002
|
-
var
|
|
1003
|
-
const
|
|
1004
|
-
return
|
|
1005
|
-
}),
|
|
1027
|
+
), p = B(() => {
|
|
1028
|
+
var $, D;
|
|
1029
|
+
const P = (D = ($ = i.details) == null ? void 0 : $.band) == null ? void 0 : D.tier_top_bound;
|
|
1030
|
+
return P && "number" in P ? P.number : void 0;
|
|
1031
|
+
}), O = B(() => {
|
|
1006
1032
|
if (p.value !== void 0)
|
|
1007
|
-
return
|
|
1033
|
+
return v(
|
|
1008
1034
|
{
|
|
1009
1035
|
id: "invoice.line.per_units_tier_top_bound",
|
|
1010
1036
|
defaultMessage: "per {count, plural, one {unit} other {{formattedCount} units}}",
|
|
@@ -1012,72 +1038,72 @@ const xe = (e = []) => {
|
|
|
1012
1038
|
},
|
|
1013
1039
|
{ count: +p.value, formattedCount: p.value }
|
|
1014
1040
|
);
|
|
1015
|
-
}), I =
|
|
1041
|
+
}), I = B(
|
|
1016
1042
|
() => {
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1043
|
+
var $, D;
|
|
1044
|
+
return i.modelType === "PER_SEAT" ? (D = ($ = i.details) == null ? void 0 : $.band) == null ? void 0 : D.amount : void 0;
|
|
1019
1045
|
}
|
|
1020
|
-
),
|
|
1021
|
-
() =>
|
|
1046
|
+
), U = B(
|
|
1047
|
+
() => i.modelType === "PER_SEAT" ? v({
|
|
1022
1048
|
id: "invoice.line.per_seat",
|
|
1023
1049
|
defaultMessage: "Per seat",
|
|
1024
1050
|
description: "Label shown when a price band applies per single seat"
|
|
1025
|
-
}) :
|
|
1051
|
+
}) : v({
|
|
1026
1052
|
id: "invoice.line.per_unit",
|
|
1027
1053
|
defaultMessage: "Per unit",
|
|
1028
1054
|
description: "Label shown when a price band applies per single unit"
|
|
1029
1055
|
})
|
|
1030
|
-
),
|
|
1031
|
-
var
|
|
1032
|
-
const
|
|
1033
|
-
return
|
|
1034
|
-
}),
|
|
1035
|
-
if (
|
|
1036
|
-
return
|
|
1056
|
+
), N = B(() => {
|
|
1057
|
+
var $, D;
|
|
1058
|
+
const P = (D = ($ = i.details) == null ? void 0 : $.band) == null ? void 0 : D.block_size;
|
|
1059
|
+
return P && "number" in P ? P.number : void 0;
|
|
1060
|
+
}), M = B(() => {
|
|
1061
|
+
if (N.value !== void 0)
|
|
1062
|
+
return v(
|
|
1037
1063
|
{
|
|
1038
1064
|
id: "invoice.line.per_units_block_size",
|
|
1039
1065
|
defaultMessage: "Per {count, plural, one {unit} other {{formattedCount} units}}",
|
|
1040
1066
|
description: "Number of units a price band block applies per. Singular form omits the count."
|
|
1041
1067
|
},
|
|
1042
1068
|
{
|
|
1043
|
-
count: +
|
|
1044
|
-
formattedCount:
|
|
1069
|
+
count: +N.value,
|
|
1070
|
+
formattedCount: r(+N.value)
|
|
1045
1071
|
}
|
|
1046
1072
|
);
|
|
1047
1073
|
});
|
|
1048
|
-
return (
|
|
1074
|
+
return ($, D) => (t(), l(_, null, [
|
|
1049
1075
|
n(k, {
|
|
1050
1076
|
number: "",
|
|
1051
1077
|
class: "align-top"
|
|
1052
1078
|
}, {
|
|
1053
|
-
default:
|
|
1054
|
-
var
|
|
1079
|
+
default: a(() => {
|
|
1080
|
+
var P;
|
|
1055
1081
|
return [
|
|
1056
|
-
m.value.kind === "raw" ? (t(), l(
|
|
1057
|
-
|
|
1058
|
-
], 64)) : m.value.kind === "amount" ? (t(),
|
|
1082
|
+
m.value.kind === "raw" ? (t(), l(_, { key: 0 }, [
|
|
1083
|
+
f(u(m.value.value), 1)
|
|
1084
|
+
], 64)) : m.value.kind === "amount" ? (t(), h(w, {
|
|
1059
1085
|
key: 1,
|
|
1060
1086
|
value: m.value.amount
|
|
1061
|
-
}, null, 8, ["value"])) : m.value.kind === "number" ? (t(), l(
|
|
1062
|
-
|
|
1063
|
-
], 64)) : m.value.kind === "conversion-credits" ? (t(), l(
|
|
1064
|
-
|
|
1065
|
-
maximumFractionDigits: o(
|
|
1087
|
+
}, null, 8, ["value"])) : m.value.kind === "number" ? (t(), l(_, { key: 2 }, [
|
|
1088
|
+
f(u(o(r)(m.value.value)), 1)
|
|
1089
|
+
], 64)) : m.value.kind === "conversion-credits" ? (t(), l(_, { key: 3 }, [
|
|
1090
|
+
f(u(o(r)(+m.value.value, {
|
|
1091
|
+
maximumFractionDigits: o(Ce)
|
|
1066
1092
|
})), 1)
|
|
1067
|
-
], 64)) : m.value.kind === "one" ? (t(), l(
|
|
1068
|
-
|
|
1093
|
+
], 64)) : m.value.kind === "one" ? (t(), l(_, { key: 4 }, [
|
|
1094
|
+
f("1")
|
|
1069
1095
|
], 64)) : y("", !0),
|
|
1070
|
-
m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((
|
|
1071
|
-
|
|
1096
|
+
m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((P = e.details) != null && P.price_bound) && c.value ? (t(), l("div", Zt, [
|
|
1097
|
+
c.value.type === "AMOUNT" ? (t(), l(_, { key: 0 }, [
|
|
1072
1098
|
n(w, {
|
|
1073
|
-
value:
|
|
1099
|
+
value: c.value.amount
|
|
1074
1100
|
}, null, 8, ["value"]),
|
|
1075
|
-
|
|
1101
|
+
f(" " + u(o(v)({
|
|
1076
1102
|
id: "invoice.line.included",
|
|
1077
1103
|
defaultMessage: "included",
|
|
1078
1104
|
description: "Used to specify an included amount. Should be lowercase."
|
|
1079
1105
|
})), 1)
|
|
1080
|
-
], 64)) :
|
|
1106
|
+
], 64)) : c.value.type === "NUMBER" ? (t(), l("span", en, u(c.value.number) + " " + u(o(v)({
|
|
1081
1107
|
id: "invoice.line.units_included",
|
|
1082
1108
|
defaultMessage: "units included",
|
|
1083
1109
|
description: "Used to specify an included units. Should be lowercase."
|
|
@@ -1087,56 +1113,56 @@ const xe = (e = []) => {
|
|
|
1087
1113
|
}),
|
|
1088
1114
|
_: 1
|
|
1089
1115
|
}),
|
|
1090
|
-
s.value.kind === "pass-through" ? (t(),
|
|
1116
|
+
s.value.kind === "pass-through" ? (t(), h(k, {
|
|
1091
1117
|
key: 0,
|
|
1092
1118
|
class: "text-right align-top"
|
|
1093
1119
|
}, {
|
|
1094
|
-
default:
|
|
1095
|
-
|
|
1120
|
+
default: a(() => [
|
|
1121
|
+
f(u(o(v)({
|
|
1096
1122
|
id: "invoice.line.pass_through",
|
|
1097
1123
|
defaultMessage: "Pass through",
|
|
1098
1124
|
description: "Name of the pass through pricing type"
|
|
1099
1125
|
})), 1)
|
|
1100
1126
|
]),
|
|
1101
1127
|
_: 1
|
|
1102
|
-
})) : (t(),
|
|
1128
|
+
})) : (t(), h(k, {
|
|
1103
1129
|
key: 1,
|
|
1104
1130
|
number: "",
|
|
1105
1131
|
class: "align-top"
|
|
1106
1132
|
}, {
|
|
1107
|
-
default:
|
|
1108
|
-
var
|
|
1133
|
+
default: a(() => {
|
|
1134
|
+
var P, G, q, Y, X;
|
|
1109
1135
|
return [
|
|
1110
|
-
s.value.kind === "amount" ? (t(), l(
|
|
1136
|
+
s.value.kind === "amount" ? (t(), l(_, { key: 0 }, [
|
|
1111
1137
|
n(w, {
|
|
1112
1138
|
value: s.value.amount
|
|
1113
1139
|
}, null, 8, ["value"]),
|
|
1114
|
-
((
|
|
1115
|
-
|
|
1116
|
-
], 64)) : ((
|
|
1117
|
-
|
|
1118
|
-
], 64)) : ((
|
|
1119
|
-
], 64)) : s.value.kind === "percentage" ? (t(), l(
|
|
1120
|
-
|
|
1140
|
+
((P = s.value.suffix) == null ? void 0 : P.kind) === "tier-top-bound" ? (t(), l(_, { key: 0 }, [
|
|
1141
|
+
O.value ? (t(), l("div", tn, u(O.value), 1)) : I.value ? (t(), l("div", nn, u(U.value), 1)) : y("", !0)
|
|
1142
|
+
], 64)) : ((G = s.value.suffix) == null ? void 0 : G.kind) === "block-size-or-per-unit" ? (t(), l(_, { key: 1 }, [
|
|
1143
|
+
M.value ? (t(), l("div", an, u(M.value), 1)) : e.modelType !== "RECURRING" ? (t(), l("div", on, u(U.value), 1)) : y("", !0)
|
|
1144
|
+
], 64)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "per-unit" ? (t(), l("div", ln, u(U.value), 1)) : ((Y = s.value.suffix) == null ? void 0 : Y.kind) === "fixed-amount" ? (t(), l("div", rn, u(b.value), 1)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "flat-fee" ? (t(), l("div", sn, u(g.value), 1)) : y("", !0)
|
|
1145
|
+
], 64)) : s.value.kind === "percentage" ? (t(), l(_, { key: 1 }, [
|
|
1146
|
+
f(u(s.value.value) + "% ", 1)
|
|
1121
1147
|
], 64)) : y("", !0)
|
|
1122
1148
|
];
|
|
1123
1149
|
}),
|
|
1124
1150
|
_: 1
|
|
1125
1151
|
})),
|
|
1126
|
-
e.showTaxPerLineItem ? (t(),
|
|
1152
|
+
e.showTaxPerLineItem ? (t(), h(k, {
|
|
1127
1153
|
key: 2,
|
|
1128
1154
|
number: "",
|
|
1129
1155
|
class: "align-top"
|
|
1130
1156
|
}, {
|
|
1131
|
-
default:
|
|
1132
|
-
e.hideTaxDetails ? y("", !0) : (t(!0), l(
|
|
1133
|
-
key:
|
|
1157
|
+
default: a(() => [
|
|
1158
|
+
e.hideTaxDetails ? y("", !0) : (t(!0), l(_, { key: 0 }, R(e.taxCategories, (P, G) => (t(), l("div", {
|
|
1159
|
+
key: G,
|
|
1134
1160
|
class: "tabular-nums"
|
|
1135
1161
|
}, [
|
|
1136
|
-
|
|
1137
|
-
|
|
1162
|
+
x("div", null, u(P.percentage) + "%", 1),
|
|
1163
|
+
x("div", dn, [
|
|
1138
1164
|
n(w, {
|
|
1139
|
-
value:
|
|
1165
|
+
value: P.tax_amount
|
|
1140
1166
|
}, null, 8, ["value"])
|
|
1141
1167
|
])
|
|
1142
1168
|
]))), 128))
|
|
@@ -1147,31 +1173,31 @@ const xe = (e = []) => {
|
|
|
1147
1173
|
number: "",
|
|
1148
1174
|
class: "align-top"
|
|
1149
1175
|
}, {
|
|
1150
|
-
default:
|
|
1151
|
-
var
|
|
1176
|
+
default: a(() => {
|
|
1177
|
+
var P, G, q, Y, X;
|
|
1152
1178
|
return [
|
|
1153
|
-
(
|
|
1154
|
-
e.showTaxPerLineItem ? (t(!0), l(
|
|
1155
|
-
var
|
|
1179
|
+
(G = (P = e.details) == null ? void 0 : P.amount) != null && G.currency && ((Y = (q = e.details) == null ? void 0 : q.amount) != null && Y.quantity) ? (t(), l("div", un, [
|
|
1180
|
+
e.showTaxPerLineItem ? (t(!0), l(_, { key: 0 }, R(e.taxCategories, (ee, re) => {
|
|
1181
|
+
var le;
|
|
1156
1182
|
return t(), l("div", {
|
|
1157
|
-
key:
|
|
1183
|
+
key: re,
|
|
1158
1184
|
class: "inline-block"
|
|
1159
1185
|
}, [
|
|
1160
|
-
|
|
1186
|
+
x("div", cn, [
|
|
1161
1187
|
n(w, {
|
|
1162
1188
|
value: e.amount ?? e.details.amount,
|
|
1163
|
-
"data-testid":
|
|
1189
|
+
"data-testid": re === 0 ? o(de) : void 0
|
|
1164
1190
|
}, null, 8, ["value", "data-testid"]),
|
|
1165
|
-
((
|
|
1191
|
+
((le = e.details) == null ? void 0 : le.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), h(ce, {
|
|
1166
1192
|
key: 0,
|
|
1167
1193
|
placement: "top-end"
|
|
1168
1194
|
}, {
|
|
1169
|
-
tooltip:
|
|
1170
|
-
n(
|
|
1171
|
-
default:
|
|
1172
|
-
n(
|
|
1173
|
-
default:
|
|
1174
|
-
|
|
1195
|
+
tooltip: a(() => [
|
|
1196
|
+
n(me, null, {
|
|
1197
|
+
default: a(() => [
|
|
1198
|
+
n(ve, null, {
|
|
1199
|
+
default: a(() => [
|
|
1200
|
+
f(u(o(v)({
|
|
1175
1201
|
id: "invoice.line.original_currency",
|
|
1176
1202
|
defaultMessage: "Original currency",
|
|
1177
1203
|
description: "Original currency"
|
|
@@ -1187,8 +1213,8 @@ const xe = (e = []) => {
|
|
|
1187
1213
|
_: 1
|
|
1188
1214
|
})
|
|
1189
1215
|
]),
|
|
1190
|
-
default:
|
|
1191
|
-
n(
|
|
1216
|
+
default: a(() => [
|
|
1217
|
+
n(H, {
|
|
1192
1218
|
icon: "info",
|
|
1193
1219
|
size: "2xs"
|
|
1194
1220
|
})
|
|
@@ -1196,44 +1222,44 @@ const xe = (e = []) => {
|
|
|
1196
1222
|
_: 1
|
|
1197
1223
|
})) : y("", !0)
|
|
1198
1224
|
]),
|
|
1199
|
-
e.hideTaxDetails ? y("", !0) : (t(), l("div",
|
|
1200
|
-
e.amountType === "INCLUDING_TAX" ? (t(), l(
|
|
1201
|
-
|
|
1225
|
+
e.hideTaxDetails ? y("", !0) : (t(), l("div", mn, [
|
|
1226
|
+
e.amountType === "INCLUDING_TAX" ? (t(), l(_, { key: 0 }, [
|
|
1227
|
+
f(u(o(v)({
|
|
1202
1228
|
id: "invoice.line.excl.tax",
|
|
1203
1229
|
defaultMessage: "Excl. tax",
|
|
1204
1230
|
description: "Value excludes tax"
|
|
1205
1231
|
})) + " ", 1),
|
|
1206
1232
|
n(w, {
|
|
1207
|
-
value:
|
|
1233
|
+
value: ee.base_amount
|
|
1208
1234
|
}, null, 8, ["value"])
|
|
1209
|
-
], 64)) : (t(), l(
|
|
1210
|
-
|
|
1235
|
+
], 64)) : (t(), l(_, { key: 1 }, [
|
|
1236
|
+
f(u(o(v)({
|
|
1211
1237
|
id: "invoice.line.incl.tax",
|
|
1212
1238
|
defaultMessage: "Incl. tax",
|
|
1213
1239
|
description: "Value includes tax"
|
|
1214
1240
|
})) + " ", 1),
|
|
1215
1241
|
n(w, {
|
|
1216
|
-
value:
|
|
1242
|
+
value: ee.total_amount
|
|
1217
1243
|
}, null, 8, ["value"])
|
|
1218
1244
|
], 64))
|
|
1219
1245
|
]))
|
|
1220
1246
|
]);
|
|
1221
|
-
}), 128)) : (t(), l("div",
|
|
1222
|
-
|
|
1247
|
+
}), 128)) : (t(), l("div", vn, [
|
|
1248
|
+
x("div", fn, [
|
|
1223
1249
|
n(w, {
|
|
1224
1250
|
value: e.amount ?? e.details.amount,
|
|
1225
|
-
"data-testid": o(
|
|
1251
|
+
"data-testid": o(de)
|
|
1226
1252
|
}, null, 8, ["value", "data-testid"]),
|
|
1227
|
-
((
|
|
1253
|
+
((X = e.details) == null ? void 0 : X.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), h(ce, {
|
|
1228
1254
|
key: 0,
|
|
1229
1255
|
placement: "top-end"
|
|
1230
1256
|
}, {
|
|
1231
|
-
tooltip:
|
|
1232
|
-
n(
|
|
1233
|
-
default:
|
|
1234
|
-
n(
|
|
1235
|
-
default:
|
|
1236
|
-
|
|
1257
|
+
tooltip: a(() => [
|
|
1258
|
+
n(me, null, {
|
|
1259
|
+
default: a(() => [
|
|
1260
|
+
n(ve, null, {
|
|
1261
|
+
default: a(() => [
|
|
1262
|
+
f(u(o(v)({
|
|
1237
1263
|
id: "invoice.line.original_currency",
|
|
1238
1264
|
defaultMessage: "Original currency",
|
|
1239
1265
|
description: "Original currency"
|
|
@@ -1249,8 +1275,8 @@ const xe = (e = []) => {
|
|
|
1249
1275
|
_: 1
|
|
1250
1276
|
})
|
|
1251
1277
|
]),
|
|
1252
|
-
default:
|
|
1253
|
-
n(
|
|
1278
|
+
default: a(() => [
|
|
1279
|
+
n(H, {
|
|
1254
1280
|
icon: "info",
|
|
1255
1281
|
size: "2xs"
|
|
1256
1282
|
})
|
|
@@ -1259,9 +1285,9 @@ const xe = (e = []) => {
|
|
|
1259
1285
|
})) : y("", !0)
|
|
1260
1286
|
])
|
|
1261
1287
|
])),
|
|
1262
|
-
|
|
1263
|
-
])) : (t(), l(
|
|
1264
|
-
|
|
1288
|
+
E($.$slots, "one-off-line-context-menu")
|
|
1289
|
+
])) : (t(), l(_, { key: 1 }, [
|
|
1290
|
+
f("-")
|
|
1265
1291
|
], 64))
|
|
1266
1292
|
];
|
|
1267
1293
|
}),
|
|
@@ -1269,17 +1295,17 @@ const xe = (e = []) => {
|
|
|
1269
1295
|
})
|
|
1270
1296
|
], 64));
|
|
1271
1297
|
}
|
|
1272
|
-
}),
|
|
1273
|
-
const
|
|
1274
|
-
(
|
|
1275
|
-
), m =
|
|
1276
|
-
return m.forEach((
|
|
1277
|
-
const
|
|
1278
|
-
(b) => b.pricing_item_config_id ===
|
|
1298
|
+
}), gn = ["DISCOUNT", "MARKUP"], bn = (e) => {
|
|
1299
|
+
const i = [...e].sort((v, r) => v.line_order - r.line_order), d = (v) => gn.includes(v.type), c = (v) => !!v.pricing_item_config_id && i.some(
|
|
1300
|
+
(r) => !d(r) && r.pricing_item_config_id === v.pricing_item_config_id
|
|
1301
|
+
), m = i.filter((v) => d(v) && c(v)), s = i.filter((v) => !m.includes(v));
|
|
1302
|
+
return m.forEach((v) => {
|
|
1303
|
+
const r = s.findLastIndex(
|
|
1304
|
+
(b) => b.pricing_item_config_id === v.pricing_item_config_id && (!d(b) || m.includes(b))
|
|
1279
1305
|
);
|
|
1280
|
-
s.splice(
|
|
1306
|
+
s.splice(r + 1, 0, v);
|
|
1281
1307
|
}), s;
|
|
1282
|
-
},
|
|
1308
|
+
}, yn = ["tabindex", "onClick"], We = /* @__PURE__ */ S({
|
|
1283
1309
|
__name: "InvoiceLineGroup",
|
|
1284
1310
|
props: {
|
|
1285
1311
|
group: {},
|
|
@@ -1294,19 +1320,19 @@ const xe = (e = []) => {
|
|
|
1294
1320
|
isExpandable: { type: Boolean, default: !0 }
|
|
1295
1321
|
},
|
|
1296
1322
|
setup(e) {
|
|
1297
|
-
const
|
|
1298
|
-
s(
|
|
1299
|
-
},
|
|
1323
|
+
const i = e, d = B(() => bn(i.group.lines ?? [])), c = V(), { getIsOpen: m, toggle: s } = ue(), v = (b, g) => {
|
|
1324
|
+
s(r(b, g));
|
|
1325
|
+
}, r = (b, g) => `${b}-line-${g}`;
|
|
1300
1326
|
return (b, g) => (t(), l("div", null, [
|
|
1301
1327
|
n(j, null, {
|
|
1302
|
-
default:
|
|
1303
|
-
|
|
1304
|
-
n(
|
|
1328
|
+
default: a(() => [
|
|
1329
|
+
x("tr", null, [
|
|
1330
|
+
n(C, {
|
|
1305
1331
|
left: "",
|
|
1306
1332
|
class: "w-1/5 text-secondary"
|
|
1307
1333
|
}, {
|
|
1308
|
-
default:
|
|
1309
|
-
|
|
1334
|
+
default: a(() => [
|
|
1335
|
+
f(u(o(c).$t({
|
|
1310
1336
|
id: "invoice.table_header.unit",
|
|
1311
1337
|
defaultMessage: "Unit",
|
|
1312
1338
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -1314,12 +1340,12 @@ const xe = (e = []) => {
|
|
|
1314
1340
|
]),
|
|
1315
1341
|
_: 1
|
|
1316
1342
|
}),
|
|
1317
|
-
n(
|
|
1343
|
+
n(C, {
|
|
1318
1344
|
right: "",
|
|
1319
1345
|
class: "w-1/5 text-secondary"
|
|
1320
1346
|
}, {
|
|
1321
|
-
default:
|
|
1322
|
-
|
|
1347
|
+
default: a(() => [
|
|
1348
|
+
f(u(o(c).$t({
|
|
1323
1349
|
id: "invoice.table_header.quantity",
|
|
1324
1350
|
defaultMessage: "Quantity",
|
|
1325
1351
|
description: "Table header for quantity column"
|
|
@@ -1327,12 +1353,12 @@ const xe = (e = []) => {
|
|
|
1327
1353
|
]),
|
|
1328
1354
|
_: 1
|
|
1329
1355
|
}),
|
|
1330
|
-
n(
|
|
1356
|
+
n(C, {
|
|
1331
1357
|
right: "",
|
|
1332
1358
|
class: "w-1/5 text-secondary"
|
|
1333
1359
|
}, {
|
|
1334
|
-
default:
|
|
1335
|
-
|
|
1360
|
+
default: a(() => [
|
|
1361
|
+
f(u(o(c).$t({
|
|
1336
1362
|
id: "invoice.table_header.price",
|
|
1337
1363
|
defaultMessage: "Price",
|
|
1338
1364
|
description: "Table header for the column containing the number of units of invoice groups"
|
|
@@ -1340,13 +1366,13 @@ const xe = (e = []) => {
|
|
|
1340
1366
|
]),
|
|
1341
1367
|
_: 1
|
|
1342
1368
|
}),
|
|
1343
|
-
e.showTaxPerLineItem ? (t(),
|
|
1369
|
+
e.showTaxPerLineItem ? (t(), h(C, {
|
|
1344
1370
|
key: 0,
|
|
1345
1371
|
right: "",
|
|
1346
1372
|
class: "w-1/5 text-secondary"
|
|
1347
1373
|
}, {
|
|
1348
|
-
default:
|
|
1349
|
-
|
|
1374
|
+
default: a(() => [
|
|
1375
|
+
f(u(o(c).$t({
|
|
1350
1376
|
id: "invoice.table_header.tax_rate",
|
|
1351
1377
|
defaultMessage: "Tax rate",
|
|
1352
1378
|
description: "Table header for the column containing the tax percentage of invoice groups"
|
|
@@ -1354,12 +1380,12 @@ const xe = (e = []) => {
|
|
|
1354
1380
|
]),
|
|
1355
1381
|
_: 1
|
|
1356
1382
|
})) : y("", !0),
|
|
1357
|
-
n(
|
|
1383
|
+
n(C, {
|
|
1358
1384
|
right: "",
|
|
1359
1385
|
class: "w-1/5 text-secondary"
|
|
1360
1386
|
}, {
|
|
1361
|
-
default:
|
|
1362
|
-
|
|
1387
|
+
default: a(() => [
|
|
1388
|
+
f(u(o(c).$t({
|
|
1363
1389
|
id: "invoice.table_header.sub_total",
|
|
1364
1390
|
defaultMessage: "Subtotal",
|
|
1365
1391
|
description: "Table header for the column containing the subtotal for invoices"
|
|
@@ -1368,82 +1394,84 @@ const xe = (e = []) => {
|
|
|
1368
1394
|
_: 1
|
|
1369
1395
|
})
|
|
1370
1396
|
]),
|
|
1371
|
-
(t(!0), l(
|
|
1372
|
-
|
|
1397
|
+
(t(!0), l(_, null, R(d.value, (p, O) => (t(), l(_, { key: O }, [
|
|
1398
|
+
x("tr", {
|
|
1373
1399
|
tabindex: e.isExpandable && p.sub_lines ? 0 : void 0,
|
|
1374
|
-
class:
|
|
1400
|
+
class: A(["group", {
|
|
1375
1401
|
"cursor-pointer": e.isExpandable && p.sub_lines,
|
|
1376
|
-
"border-t":
|
|
1402
|
+
"border-t": O !== 0
|
|
1377
1403
|
}]),
|
|
1378
|
-
onClick: (I) =>
|
|
1404
|
+
onClick: (I) => v(e.group.group_order, p.line_order)
|
|
1379
1405
|
}, [
|
|
1380
|
-
(t(),
|
|
1381
|
-
key:
|
|
1406
|
+
(t(), h(Yt, {
|
|
1407
|
+
key: O,
|
|
1382
1408
|
data: p,
|
|
1383
1409
|
"period-order": e.invoicePeriodOrder,
|
|
1384
1410
|
"group-order": e.group.group_order,
|
|
1385
|
-
"is-last":
|
|
1411
|
+
"is-last": O === d.value.length - 1,
|
|
1386
1412
|
"group-type": e.group.type,
|
|
1387
|
-
"is-expanded": o(m)(
|
|
1413
|
+
"is-expanded": o(m)(r(e.group.group_order, p.line_order))
|
|
1388
1414
|
}, {
|
|
1389
|
-
"invoice-line-prefix":
|
|
1390
|
-
|
|
1415
|
+
"invoice-line-prefix": a((I) => [
|
|
1416
|
+
E(b.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, I))
|
|
1391
1417
|
]),
|
|
1392
|
-
"line-content":
|
|
1393
|
-
var
|
|
1418
|
+
"line-content": a((I) => {
|
|
1419
|
+
var U, N, M, $, D;
|
|
1394
1420
|
return [
|
|
1395
|
-
n(
|
|
1421
|
+
n(Te, {
|
|
1396
1422
|
details: I.details,
|
|
1397
1423
|
amount: e.amountType === "INCLUDING_TAX" ? p.amount_including_tax : p.amount_excluding_tax,
|
|
1398
1424
|
"pricing-type": p.pricing_type,
|
|
1399
1425
|
"tax-categories": p.tax_categories,
|
|
1400
1426
|
"amount-type": e.amountType,
|
|
1401
|
-
"model-type": (
|
|
1427
|
+
"model-type": (N = (U = p.product_items) == null ? void 0 : U[0]) == null ? void 0 : N.model_type,
|
|
1428
|
+
"has-reference-value": !!((D = ($ = (M = p.product_items) == null ? void 0 : M[0]) == null ? void 0 : $.usage_based) != null && D.reference_value),
|
|
1402
1429
|
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1403
|
-
},
|
|
1430
|
+
}, Ge({ _: 2 }, [
|
|
1404
1431
|
p.type === "ONE_OFF" ? {
|
|
1405
1432
|
name: "one-off-line-context-menu",
|
|
1406
|
-
fn:
|
|
1407
|
-
|
|
1433
|
+
fn: a((P) => [
|
|
1434
|
+
E(b.$slots, "one-off-line-context-menu", Z({ ref_for: !0 }, P, {
|
|
1408
1435
|
lineOrder: p.line_order
|
|
1409
1436
|
}))
|
|
1410
1437
|
]),
|
|
1411
1438
|
key: "0"
|
|
1412
1439
|
} : void 0
|
|
1413
|
-
]), 1032, ["details", "amount", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
|
|
1440
|
+
]), 1032, ["details", "amount", "pricing-type", "tax-categories", "amount-type", "model-type", "has-reference-value", "show-tax-per-line-item"])
|
|
1414
1441
|
];
|
|
1415
1442
|
}),
|
|
1416
1443
|
_: 2
|
|
1417
1444
|
}, 1032, ["data", "period-order", "group-order", "is-last", "group-type", "is-expanded"]))
|
|
1418
|
-
], 10,
|
|
1419
|
-
n(
|
|
1445
|
+
], 10, yn),
|
|
1446
|
+
n(pe, {
|
|
1420
1447
|
ref_for: !0,
|
|
1421
|
-
ref:
|
|
1448
|
+
ref: r(e.group.group_order, p.line_order),
|
|
1422
1449
|
"sub-lines": p.sub_lines ?? [],
|
|
1423
1450
|
"processing-only-customers": e.processingOnlyCustomers,
|
|
1424
1451
|
"display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer,
|
|
1425
1452
|
"line-order": p.line_order,
|
|
1426
|
-
"is-open": o(m)(
|
|
1453
|
+
"is-open": o(m)(r(e.group.group_order, p.line_order)),
|
|
1427
1454
|
"period-order": e.invoicePeriodOrder,
|
|
1428
1455
|
"group-order": e.group.group_order,
|
|
1429
1456
|
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1430
1457
|
}, {
|
|
1431
|
-
"invoice-line-prefix":
|
|
1432
|
-
|
|
1458
|
+
"invoice-line-prefix": a((I) => [
|
|
1459
|
+
E(b.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, I))
|
|
1433
1460
|
]),
|
|
1434
|
-
"subline-content":
|
|
1435
|
-
var
|
|
1461
|
+
"subline-content": a((I) => {
|
|
1462
|
+
var U, N, M, $, D;
|
|
1436
1463
|
return [
|
|
1437
|
-
n(
|
|
1464
|
+
n(Te, {
|
|
1438
1465
|
details: I.details,
|
|
1439
1466
|
"hide-tax-details": I.hideTaxDetails,
|
|
1440
1467
|
"prefer-conversion-credits": "",
|
|
1441
1468
|
"pricing-type": p.pricing_type,
|
|
1442
1469
|
"tax-categories": p.tax_categories,
|
|
1443
1470
|
"amount-type": e.amountType,
|
|
1444
|
-
"model-type": (
|
|
1471
|
+
"model-type": (N = (U = p.product_items) == null ? void 0 : U[0]) == null ? void 0 : N.model_type,
|
|
1472
|
+
"has-reference-value": !!((D = ($ = (M = p.product_items) == null ? void 0 : M[0]) == null ? void 0 : $.usage_based) != null && D.reference_value),
|
|
1445
1473
|
"show-tax-per-line-item": e.showTaxPerLineItem
|
|
1446
|
-
}, null, 8, ["details", "hide-tax-details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
|
|
1474
|
+
}, null, 8, ["details", "hide-tax-details", "pricing-type", "tax-categories", "amount-type", "model-type", "has-reference-value", "show-tax-per-line-item"])
|
|
1447
1475
|
];
|
|
1448
1476
|
}),
|
|
1449
1477
|
_: 2
|
|
@@ -1454,31 +1482,31 @@ const xe = (e = []) => {
|
|
|
1454
1482
|
})
|
|
1455
1483
|
]));
|
|
1456
1484
|
}
|
|
1457
|
-
}),
|
|
1485
|
+
}), pn = { class: "flex items-center" }, _n = {
|
|
1458
1486
|
key: 2,
|
|
1459
1487
|
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"
|
|
1460
|
-
},
|
|
1488
|
+
}, fe = /* @__PURE__ */ S({
|
|
1461
1489
|
__name: "InvoiceTableRowLabel",
|
|
1462
1490
|
props: {
|
|
1463
1491
|
label: {},
|
|
1464
1492
|
count: {}
|
|
1465
1493
|
},
|
|
1466
1494
|
setup(e) {
|
|
1467
|
-
const
|
|
1468
|
-
return
|
|
1469
|
-
|
|
1470
|
-
}), (
|
|
1471
|
-
|
|
1495
|
+
const i = se(), d = se(!1);
|
|
1496
|
+
return nt(i, ([c]) => {
|
|
1497
|
+
d.value = c.target.clientWidth < c.target.scrollWidth;
|
|
1498
|
+
}), (c, m) => (t(), l("div", pn, [
|
|
1499
|
+
d.value ? (t(), h(ce, {
|
|
1472
1500
|
key: 0,
|
|
1473
1501
|
placement: "bottom-start",
|
|
1474
1502
|
class: "min-w-0 leading-normal"
|
|
1475
1503
|
}, {
|
|
1476
|
-
tooltip:
|
|
1477
|
-
n(
|
|
1478
|
-
default:
|
|
1479
|
-
n(
|
|
1480
|
-
default:
|
|
1481
|
-
|
|
1504
|
+
tooltip: a(() => [
|
|
1505
|
+
n(me, null, {
|
|
1506
|
+
default: a(() => [
|
|
1507
|
+
n(ve, null, {
|
|
1508
|
+
default: a(() => [
|
|
1509
|
+
f(u(e.label), 1)
|
|
1482
1510
|
]),
|
|
1483
1511
|
_: 1
|
|
1484
1512
|
})
|
|
@@ -1486,10 +1514,10 @@ const xe = (e = []) => {
|
|
|
1486
1514
|
_: 1
|
|
1487
1515
|
})
|
|
1488
1516
|
]),
|
|
1489
|
-
default:
|
|
1490
|
-
|
|
1517
|
+
default: a(() => [
|
|
1518
|
+
x("span", {
|
|
1491
1519
|
ref_key: "labelElement",
|
|
1492
|
-
ref:
|
|
1520
|
+
ref: i,
|
|
1493
1521
|
class: "block truncate"
|
|
1494
1522
|
}, u(e.label), 513)
|
|
1495
1523
|
]),
|
|
@@ -1497,16 +1525,16 @@ const xe = (e = []) => {
|
|
|
1497
1525
|
})) : (t(), l("span", {
|
|
1498
1526
|
key: 1,
|
|
1499
1527
|
ref_key: "labelElement",
|
|
1500
|
-
ref:
|
|
1501
|
-
class:
|
|
1528
|
+
ref: i,
|
|
1529
|
+
class: A(["block", { truncate: e.count !== void 0 }])
|
|
1502
1530
|
}, u(e.label), 3)),
|
|
1503
|
-
e.count !== void 0 ? (t(), l("span",
|
|
1531
|
+
e.count !== void 0 ? (t(), l("span", _n, u(e.count), 1)) : y("", !0)
|
|
1504
1532
|
]));
|
|
1505
1533
|
}
|
|
1506
|
-
}),
|
|
1534
|
+
}), xn = ["tabindex"], hn = { key: 0 }, kn = {
|
|
1507
1535
|
colspan: "2",
|
|
1508
1536
|
class: "p-0"
|
|
1509
|
-
},
|
|
1537
|
+
}, Tn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, On = /* @__PURE__ */ S({
|
|
1510
1538
|
__name: "InvoiceGroupRevenue",
|
|
1511
1539
|
props: {
|
|
1512
1540
|
forwardedFromCustomers: {},
|
|
@@ -1525,48 +1553,44 @@ const xe = (e = []) => {
|
|
|
1525
1553
|
showTaxPerLineItem: { type: Boolean, default: !0 }
|
|
1526
1554
|
},
|
|
1527
1555
|
setup(e) {
|
|
1528
|
-
const
|
|
1529
|
-
var
|
|
1530
|
-
const
|
|
1531
|
-
(
|
|
1532
|
-
|
|
1533
|
-
].filter(Boolean).join(" - ")
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
const b = (s = a.forwardedFromCustomers) == null ? void 0 : s.find(
|
|
1540
|
-
(g) => g.id === f
|
|
1541
|
-
);
|
|
1542
|
-
return [b && we(b), r].filter(Boolean).join(" - ");
|
|
1556
|
+
const i = e, d = B(() => {
|
|
1557
|
+
var c, m;
|
|
1558
|
+
const s = [
|
|
1559
|
+
(c = i.group.pricing) == null ? void 0 : c.name,
|
|
1560
|
+
ye(((m = i.group.products) == null ? void 0 : m.map((r) => r.name)) ?? [])
|
|
1561
|
+
].filter(Boolean).join(" - ");
|
|
1562
|
+
return [De(
|
|
1563
|
+
i.group,
|
|
1564
|
+
!!i.showOriginalCustomerInvoiceLine,
|
|
1565
|
+
i.forwardedFromCustomers
|
|
1566
|
+
), s].filter(Boolean).join(" - ");
|
|
1543
1567
|
});
|
|
1544
|
-
return (
|
|
1545
|
-
|
|
1546
|
-
class:
|
|
1568
|
+
return (c, m) => (t(), l(_, null, [
|
|
1569
|
+
x("tr", {
|
|
1570
|
+
class: A(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
|
|
1547
1571
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
1548
1572
|
onClick: m[0] || (m[0] = (s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
|
|
1549
1573
|
onKeyup: [
|
|
1550
|
-
m[1] || (m[1] =
|
|
1551
|
-
m[2] || (m[2] =
|
|
1574
|
+
m[1] || (m[1] = Q((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
|
|
1575
|
+
m[2] || (m[2] = Q((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
|
|
1552
1576
|
]
|
|
1553
1577
|
}, [
|
|
1554
1578
|
n(k, { class: "p-0" }, {
|
|
1555
|
-
default:
|
|
1579
|
+
default: a(() => {
|
|
1556
1580
|
var s;
|
|
1557
1581
|
return [
|
|
1558
|
-
e.isExpandable ? (t(),
|
|
1582
|
+
e.isExpandable ? (t(), h(H, {
|
|
1559
1583
|
key: 0,
|
|
1560
1584
|
icon: "keyboard_arrow_down",
|
|
1561
1585
|
size: "md",
|
|
1562
|
-
class:
|
|
1586
|
+
class: A(["absolute -translate-x-7 text-slate-400", {
|
|
1563
1587
|
"-rotate-90": !e.expandedItems.includes(
|
|
1564
1588
|
e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
|
|
1565
1589
|
)
|
|
1566
1590
|
}])
|
|
1567
1591
|
}, null, 8, ["class"])) : y("", !0),
|
|
1568
|
-
n(
|
|
1569
|
-
label:
|
|
1592
|
+
n(fe, {
|
|
1593
|
+
label: d.value,
|
|
1570
1594
|
count: e.isExpandable ? ((s = e.group.lines) == null ? void 0 : s.length) ?? 0 : void 0
|
|
1571
1595
|
}, null, 8, ["label", "count"])
|
|
1572
1596
|
];
|
|
@@ -1574,26 +1598,26 @@ const xe = (e = []) => {
|
|
|
1574
1598
|
_: 1
|
|
1575
1599
|
}),
|
|
1576
1600
|
n(k, { number: "" }, {
|
|
1577
|
-
default:
|
|
1578
|
-
e.amountType === "INCLUDING_TAX" ? (t(),
|
|
1601
|
+
default: a(() => [
|
|
1602
|
+
e.amountType === "INCLUDING_TAX" ? (t(), h(w, {
|
|
1579
1603
|
key: 0,
|
|
1580
1604
|
value: e.group.amount_including_tax,
|
|
1581
|
-
"data-testid": o(
|
|
1582
|
-
"data-type": o(
|
|
1583
|
-
}, null, 8, ["value", "data-testid", "data-type"])) : (t(),
|
|
1605
|
+
"data-testid": o(ae),
|
|
1606
|
+
"data-type": o(oe)(e.group)
|
|
1607
|
+
}, null, 8, ["value", "data-testid", "data-type"])) : (t(), h(w, {
|
|
1584
1608
|
key: 1,
|
|
1585
1609
|
value: e.group.amount_excluding_tax,
|
|
1586
|
-
"data-testid": o(
|
|
1587
|
-
"data-type": o(
|
|
1610
|
+
"data-testid": o(ae),
|
|
1611
|
+
"data-type": o(oe)(e.group)
|
|
1588
1612
|
}, null, 8, ["value", "data-testid", "data-type"]))
|
|
1589
1613
|
]),
|
|
1590
1614
|
_: 1
|
|
1591
1615
|
})
|
|
1592
|
-
], 42,
|
|
1593
|
-
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), l("tr",
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
n(
|
|
1616
|
+
], 42, xn),
|
|
1617
|
+
e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), l("tr", hn, [
|
|
1618
|
+
x("td", kn, [
|
|
1619
|
+
x("div", Tn, [
|
|
1620
|
+
n(We, {
|
|
1597
1621
|
"invoice-period-order": e.invoicePeriodOrder,
|
|
1598
1622
|
"start-date": e.group.start_at,
|
|
1599
1623
|
"end-date": e.group.end_at,
|
|
@@ -1605,11 +1629,11 @@ const xe = (e = []) => {
|
|
|
1605
1629
|
"show-tax-per-line-item": e.showTaxPerLineItem,
|
|
1606
1630
|
"is-expandable": e.isExpandable
|
|
1607
1631
|
}, {
|
|
1608
|
-
"invoice-line-prefix":
|
|
1609
|
-
|
|
1632
|
+
"invoice-line-prefix": a((s) => [
|
|
1633
|
+
E(c.$slots, "invoice-line-prefix", ge(be(s)))
|
|
1610
1634
|
]),
|
|
1611
|
-
"one-off-line-context-menu":
|
|
1612
|
-
|
|
1635
|
+
"one-off-line-context-menu": a((s) => [
|
|
1636
|
+
E(c.$slots, "one-off-line-context-menu", Z(s, { groupOrder: e.groupOrder }))
|
|
1613
1637
|
]),
|
|
1614
1638
|
_: 3
|
|
1615
1639
|
}, 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"])
|
|
@@ -1618,40 +1642,40 @@ const xe = (e = []) => {
|
|
|
1618
1642
|
])) : y("", !0)
|
|
1619
1643
|
], 64));
|
|
1620
1644
|
}
|
|
1621
|
-
}),
|
|
1645
|
+
}), Oe = /* @__PURE__ */ S({
|
|
1622
1646
|
__name: "InvoiceGroupWalletBalance",
|
|
1623
1647
|
props: {
|
|
1624
1648
|
lines: {},
|
|
1625
1649
|
creditTypes: {}
|
|
1626
1650
|
},
|
|
1627
1651
|
setup(e) {
|
|
1628
|
-
const
|
|
1629
|
-
() =>
|
|
1630
|
-
creditTypes:
|
|
1631
|
-
creditsLabel:
|
|
1652
|
+
const i = e, { $t: d } = V(), c = B(
|
|
1653
|
+
() => Pe(Ue(i.lines), {
|
|
1654
|
+
creditTypes: i.creditTypes,
|
|
1655
|
+
creditsLabel: d({
|
|
1632
1656
|
defaultMessage: "Credits",
|
|
1633
1657
|
description: "Generic fallback label for a wallet balance row with no known credit type",
|
|
1634
1658
|
id: "invoiceGroupWalletBalance.creditsLabel"
|
|
1635
1659
|
}),
|
|
1636
|
-
walletLabel:
|
|
1660
|
+
walletLabel: d({
|
|
1637
1661
|
defaultMessage: "Wallet balance",
|
|
1638
1662
|
description: "Label for a wallet balance row of a wallet that pays in money",
|
|
1639
1663
|
id: "invoiceGroupWalletBalance.walletBalanceLabel"
|
|
1640
1664
|
})
|
|
1641
1665
|
})
|
|
1642
|
-
), m = (s) =>
|
|
1643
|
-
formatMoney:
|
|
1644
|
-
formatQuantity: (
|
|
1666
|
+
), m = (s) => Se(s, {
|
|
1667
|
+
formatMoney: Ne,
|
|
1668
|
+
formatQuantity: (v) => v
|
|
1645
1669
|
});
|
|
1646
|
-
return (s,
|
|
1647
|
-
default:
|
|
1648
|
-
|
|
1649
|
-
n(
|
|
1670
|
+
return (s, v) => c.value.length ? (t(), h(j, { key: 0 }, {
|
|
1671
|
+
default: a(() => [
|
|
1672
|
+
x("tr", null, [
|
|
1673
|
+
n(C, {
|
|
1650
1674
|
left: "",
|
|
1651
1675
|
class: "w-2/5 text-gray-400"
|
|
1652
1676
|
}, {
|
|
1653
|
-
default:
|
|
1654
|
-
|
|
1677
|
+
default: a(() => [
|
|
1678
|
+
f(u(o(d)({
|
|
1655
1679
|
defaultMessage: "Wallet breakdown",
|
|
1656
1680
|
description: "Table heading for the wallet column in the wallet balance table",
|
|
1657
1681
|
id: "invoiceGroupWalletBalance.walletBreakdownHeading"
|
|
@@ -1659,12 +1683,12 @@ const xe = (e = []) => {
|
|
|
1659
1683
|
]),
|
|
1660
1684
|
_: 1
|
|
1661
1685
|
}),
|
|
1662
|
-
n(
|
|
1686
|
+
n(C, {
|
|
1663
1687
|
right: "",
|
|
1664
1688
|
class: "w-1/5 text-gray-400"
|
|
1665
1689
|
}, {
|
|
1666
|
-
default:
|
|
1667
|
-
|
|
1690
|
+
default: a(() => [
|
|
1691
|
+
f(u(o(d)({
|
|
1668
1692
|
defaultMessage: "Balance",
|
|
1669
1693
|
description: "Table heading for the balance column in the wallet balance table",
|
|
1670
1694
|
id: "invoiceGroupWalletBalance.balanceHeading"
|
|
@@ -1672,12 +1696,12 @@ const xe = (e = []) => {
|
|
|
1672
1696
|
]),
|
|
1673
1697
|
_: 1
|
|
1674
1698
|
}),
|
|
1675
|
-
n(
|
|
1699
|
+
n(C, {
|
|
1676
1700
|
right: "",
|
|
1677
1701
|
class: "w-1/5 text-gray-400"
|
|
1678
1702
|
}, {
|
|
1679
|
-
default:
|
|
1680
|
-
|
|
1703
|
+
default: a(() => [
|
|
1704
|
+
f(u(o(d)({
|
|
1681
1705
|
defaultMessage: "Used",
|
|
1682
1706
|
description: "Table heading for the used-balance column in the wallet balance table",
|
|
1683
1707
|
id: "invoiceGroupWalletBalance.usedHeading"
|
|
@@ -1685,12 +1709,12 @@ const xe = (e = []) => {
|
|
|
1685
1709
|
]),
|
|
1686
1710
|
_: 1
|
|
1687
1711
|
}),
|
|
1688
|
-
n(
|
|
1712
|
+
n(C, {
|
|
1689
1713
|
right: "",
|
|
1690
1714
|
class: "w-1/5 text-gray-400"
|
|
1691
1715
|
}, {
|
|
1692
|
-
default:
|
|
1693
|
-
|
|
1716
|
+
default: a(() => [
|
|
1717
|
+
f(u(o(d)({
|
|
1694
1718
|
defaultMessage: "Remaining",
|
|
1695
1719
|
description: "Table heading for the remaining-balance column in the wallet balance table",
|
|
1696
1720
|
id: "invoiceGroupWalletBalance.remainingHeading"
|
|
@@ -1699,30 +1723,30 @@ const xe = (e = []) => {
|
|
|
1699
1723
|
_: 1
|
|
1700
1724
|
})
|
|
1701
1725
|
]),
|
|
1702
|
-
(t(!0), l(
|
|
1703
|
-
key:
|
|
1726
|
+
(t(!0), l(_, null, R(c.value, (r) => (t(), l("tr", {
|
|
1727
|
+
key: r.key
|
|
1704
1728
|
}, [
|
|
1705
1729
|
n(k, null, {
|
|
1706
|
-
default:
|
|
1707
|
-
|
|
1730
|
+
default: a(() => [
|
|
1731
|
+
f(u(r.label), 1)
|
|
1708
1732
|
]),
|
|
1709
1733
|
_: 2
|
|
1710
1734
|
}, 1024),
|
|
1711
1735
|
n(k, { number: "" }, {
|
|
1712
|
-
default:
|
|
1713
|
-
|
|
1736
|
+
default: a(() => [
|
|
1737
|
+
f(u(m(r.availableBalance)), 1)
|
|
1714
1738
|
]),
|
|
1715
1739
|
_: 2
|
|
1716
1740
|
}, 1024),
|
|
1717
1741
|
n(k, { number: "" }, {
|
|
1718
|
-
default:
|
|
1719
|
-
|
|
1742
|
+
default: a(() => [
|
|
1743
|
+
f(u(m(r.usedBalance)), 1)
|
|
1720
1744
|
]),
|
|
1721
1745
|
_: 2
|
|
1722
1746
|
}, 1024),
|
|
1723
1747
|
n(k, { number: "" }, {
|
|
1724
|
-
default:
|
|
1725
|
-
|
|
1748
|
+
default: a(() => [
|
|
1749
|
+
f(u(m(r.leftBalance)), 1)
|
|
1726
1750
|
]),
|
|
1727
1751
|
_: 2
|
|
1728
1752
|
}, 1024)
|
|
@@ -1732,40 +1756,40 @@ const xe = (e = []) => {
|
|
|
1732
1756
|
})) : y("", !0);
|
|
1733
1757
|
}
|
|
1734
1758
|
});
|
|
1735
|
-
function
|
|
1759
|
+
function Ie(e) {
|
|
1736
1760
|
return typeof e == "function" ? e() : o(e);
|
|
1737
1761
|
}
|
|
1738
1762
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
1739
|
-
function
|
|
1763
|
+
function In(e = !1, i = {}) {
|
|
1740
1764
|
const {
|
|
1741
|
-
truthyValue:
|
|
1742
|
-
falsyValue:
|
|
1743
|
-
} =
|
|
1744
|
-
function r
|
|
1765
|
+
truthyValue: d = !0,
|
|
1766
|
+
falsyValue: c = !1
|
|
1767
|
+
} = i, m = He(e), s = se(e);
|
|
1768
|
+
function v(r) {
|
|
1745
1769
|
if (arguments.length)
|
|
1746
|
-
return s.value =
|
|
1770
|
+
return s.value = r, s.value;
|
|
1747
1771
|
{
|
|
1748
|
-
const b =
|
|
1749
|
-
return s.value = s.value === b ?
|
|
1772
|
+
const b = Ie(d);
|
|
1773
|
+
return s.value = s.value === b ? Ie(c) : b, s.value;
|
|
1750
1774
|
}
|
|
1751
1775
|
}
|
|
1752
|
-
return m ?
|
|
1776
|
+
return m ? v : [s, v];
|
|
1753
1777
|
}
|
|
1754
|
-
const
|
|
1778
|
+
const wn = {
|
|
1755
1779
|
key: 0,
|
|
1756
1780
|
totals: "",
|
|
1757
1781
|
class: "border-t break-inside-avoid"
|
|
1758
|
-
},
|
|
1782
|
+
}, we = /* @__PURE__ */ S({
|
|
1759
1783
|
__name: "InvoiceSummaryTotalExcludingTax",
|
|
1760
1784
|
props: {
|
|
1761
1785
|
baseAmount: {}
|
|
1762
1786
|
},
|
|
1763
1787
|
setup(e) {
|
|
1764
|
-
const
|
|
1765
|
-
return (
|
|
1788
|
+
const i = V();
|
|
1789
|
+
return (d, c) => e.baseAmount ? (t(), l("tr", wn, [
|
|
1766
1790
|
n(k, null, {
|
|
1767
|
-
default:
|
|
1768
|
-
|
|
1791
|
+
default: a(() => [
|
|
1792
|
+
f(u(o(i).$t({
|
|
1769
1793
|
id: "invoice.table_header.total_excluding_taxes",
|
|
1770
1794
|
defaultMessage: "Total excluding taxes",
|
|
1771
1795
|
description: "Table row header for the total excluding taxes column in the invoice table"
|
|
@@ -1774,35 +1798,35 @@ const xn = {
|
|
|
1774
1798
|
_: 1
|
|
1775
1799
|
}),
|
|
1776
1800
|
n(k, { number: "" }, {
|
|
1777
|
-
default:
|
|
1801
|
+
default: a(() => [
|
|
1778
1802
|
n(w, {
|
|
1779
1803
|
value: e.baseAmount,
|
|
1780
|
-
"data-testid": o(
|
|
1804
|
+
"data-testid": o(gt)
|
|
1781
1805
|
}, null, 8, ["value", "data-testid"])
|
|
1782
1806
|
]),
|
|
1783
1807
|
_: 1
|
|
1784
1808
|
})
|
|
1785
1809
|
])) : y("", !0);
|
|
1786
1810
|
}
|
|
1787
|
-
}),
|
|
1811
|
+
}), Mn = {
|
|
1788
1812
|
key: 0,
|
|
1789
1813
|
class: "border-t font-bold break-inside-avoid"
|
|
1790
|
-
},
|
|
1814
|
+
}, Me = /* @__PURE__ */ S({
|
|
1791
1815
|
__name: "InvoiceSummaryTotalIncludingTax",
|
|
1792
1816
|
props: {
|
|
1793
1817
|
totalAmount: {},
|
|
1794
1818
|
isCustomerFacing: { type: Boolean }
|
|
1795
1819
|
},
|
|
1796
1820
|
setup(e) {
|
|
1797
|
-
const
|
|
1798
|
-
return (
|
|
1821
|
+
const i = V();
|
|
1822
|
+
return (d, c) => e.totalAmount ? (t(), l("tr", Mn, [
|
|
1799
1823
|
n(k, { class: "font-bold" }, {
|
|
1800
|
-
default:
|
|
1801
|
-
|
|
1824
|
+
default: a(() => [
|
|
1825
|
+
f(u(e.isCustomerFacing ? o(i).$t({
|
|
1802
1826
|
id: "invoice.table_header.total_including_taxes_customer_facing",
|
|
1803
1827
|
defaultMessage: "Total due today",
|
|
1804
1828
|
description: "Table row header for the total including taxes column in the invoice table for a customer facing component"
|
|
1805
|
-
}) : o(
|
|
1829
|
+
}) : o(i).$t({
|
|
1806
1830
|
id: "invoice.table_header.total_including_taxes",
|
|
1807
1831
|
defaultMessage: "Total including taxes",
|
|
1808
1832
|
description: "Table row header for the total including taxes column in the invoice table"
|
|
@@ -1811,33 +1835,33 @@ const xn = {
|
|
|
1811
1835
|
_: 1
|
|
1812
1836
|
}),
|
|
1813
1837
|
n(k, { number: "" }, {
|
|
1814
|
-
default:
|
|
1838
|
+
default: a(() => [
|
|
1815
1839
|
n(w, {
|
|
1816
1840
|
value: e.totalAmount,
|
|
1817
|
-
"data-testid": o(
|
|
1841
|
+
"data-testid": o(ft)
|
|
1818
1842
|
}, null, 8, ["value", "data-testid"])
|
|
1819
1843
|
]),
|
|
1820
1844
|
_: 1
|
|
1821
1845
|
})
|
|
1822
1846
|
])) : y("", !0);
|
|
1823
1847
|
}
|
|
1824
|
-
}),
|
|
1848
|
+
}), $n = {
|
|
1825
1849
|
key: 0,
|
|
1826
1850
|
colspan: "4",
|
|
1827
1851
|
class: "p-0"
|
|
1828
|
-
},
|
|
1852
|
+
}, En = /* @__PURE__ */ S({
|
|
1829
1853
|
__name: "InvoiceTaxes",
|
|
1830
1854
|
props: {
|
|
1831
1855
|
taxCategories: {}
|
|
1832
1856
|
},
|
|
1833
1857
|
setup(e) {
|
|
1834
|
-
const
|
|
1835
|
-
return (
|
|
1836
|
-
default:
|
|
1837
|
-
|
|
1838
|
-
n(
|
|
1839
|
-
default:
|
|
1840
|
-
|
|
1858
|
+
const i = V();
|
|
1859
|
+
return (d, c) => (t(), h(j, { class: "table-fixed" }, {
|
|
1860
|
+
default: a(() => [
|
|
1861
|
+
x("tr", null, [
|
|
1862
|
+
n(C, { left: "" }, {
|
|
1863
|
+
default: a(() => [
|
|
1864
|
+
f(u(o(i).$t({
|
|
1841
1865
|
id: "invoice.table_header.tax type",
|
|
1842
1866
|
defaultMessage: "Tax type",
|
|
1843
1867
|
description: "Table header for the column containing the tax type"
|
|
@@ -1845,9 +1869,9 @@ const xn = {
|
|
|
1845
1869
|
]),
|
|
1846
1870
|
_: 1
|
|
1847
1871
|
}),
|
|
1848
|
-
n(
|
|
1849
|
-
default:
|
|
1850
|
-
|
|
1872
|
+
n(C, { right: "" }, {
|
|
1873
|
+
default: a(() => [
|
|
1874
|
+
f(u(o(i).$t({
|
|
1851
1875
|
id: "invoice.table_header.base amount",
|
|
1852
1876
|
defaultMessage: "Base amount",
|
|
1853
1877
|
description: "Table header for the column containing the base amount"
|
|
@@ -1855,9 +1879,9 @@ const xn = {
|
|
|
1855
1879
|
]),
|
|
1856
1880
|
_: 1
|
|
1857
1881
|
}),
|
|
1858
|
-
n(
|
|
1859
|
-
default:
|
|
1860
|
-
|
|
1882
|
+
n(C, { right: "" }, {
|
|
1883
|
+
default: a(() => [
|
|
1884
|
+
f(u(o(i).$t({
|
|
1861
1885
|
id: "invoice.table_header.tax_percentage",
|
|
1862
1886
|
defaultMessage: "Percentage",
|
|
1863
1887
|
description: "Table header for the column containing the tax percentage"
|
|
@@ -1865,9 +1889,9 @@ const xn = {
|
|
|
1865
1889
|
]),
|
|
1866
1890
|
_: 1
|
|
1867
1891
|
}),
|
|
1868
|
-
n(
|
|
1869
|
-
default:
|
|
1870
|
-
|
|
1892
|
+
n(C, { right: "" }, {
|
|
1893
|
+
default: a(() => [
|
|
1894
|
+
f(u(o(i).$t({
|
|
1871
1895
|
id: "invoice.table_header.tax amount",
|
|
1872
1896
|
defaultMessage: "Tax amount",
|
|
1873
1897
|
description: "Table header for the column containing the tax amount"
|
|
@@ -1876,19 +1900,19 @@ const xn = {
|
|
|
1876
1900
|
_: 1
|
|
1877
1901
|
})
|
|
1878
1902
|
]),
|
|
1879
|
-
(t(!0), l(
|
|
1880
|
-
m.rates ? (t(), l("td",
|
|
1903
|
+
(t(!0), l(_, null, R(e.taxCategories, (m, s) => (t(), l("tr", { key: s }, [
|
|
1904
|
+
m.rates ? (t(), l("td", $n, [
|
|
1881
1905
|
n(j, { class: "table-fixed" }, {
|
|
1882
|
-
default:
|
|
1883
|
-
(t(!0), l(
|
|
1906
|
+
default: a(() => [
|
|
1907
|
+
(t(!0), l(_, null, R(m.rates, (v, r) => (t(), l("tr", { key: r }, [
|
|
1884
1908
|
n(k, null, {
|
|
1885
|
-
default:
|
|
1886
|
-
|
|
1909
|
+
default: a(() => [
|
|
1910
|
+
f(u(v.name) + " (" + u(m.category) + ") ", 1)
|
|
1887
1911
|
]),
|
|
1888
1912
|
_: 2
|
|
1889
1913
|
}, 1024),
|
|
1890
1914
|
n(k, { number: "" }, {
|
|
1891
|
-
default:
|
|
1915
|
+
default: a(() => [
|
|
1892
1916
|
n(w, {
|
|
1893
1917
|
value: m.base_amount
|
|
1894
1918
|
}, null, 8, ["value"])
|
|
@@ -1896,15 +1920,15 @@ const xn = {
|
|
|
1896
1920
|
_: 2
|
|
1897
1921
|
}, 1024),
|
|
1898
1922
|
n(k, { number: "" }, {
|
|
1899
|
-
default:
|
|
1900
|
-
|
|
1923
|
+
default: a(() => [
|
|
1924
|
+
f(u(v.percentage) + "%", 1)
|
|
1901
1925
|
]),
|
|
1902
1926
|
_: 2
|
|
1903
1927
|
}, 1024),
|
|
1904
1928
|
n(k, { number: "" }, {
|
|
1905
|
-
default:
|
|
1929
|
+
default: a(() => [
|
|
1906
1930
|
n(w, {
|
|
1907
|
-
value:
|
|
1931
|
+
value: v.tax_amount
|
|
1908
1932
|
}, null, 8, ["value"])
|
|
1909
1933
|
]),
|
|
1910
1934
|
_: 2
|
|
@@ -1913,15 +1937,15 @@ const xn = {
|
|
|
1913
1937
|
]),
|
|
1914
1938
|
_: 2
|
|
1915
1939
|
}, 1024)
|
|
1916
|
-
])) : (t(), l(
|
|
1940
|
+
])) : (t(), l(_, { key: 1 }, [
|
|
1917
1941
|
n(k, null, {
|
|
1918
|
-
default:
|
|
1919
|
-
|
|
1942
|
+
default: a(() => [
|
|
1943
|
+
f(u(m.name) + " (" + u(m.category) + ") ", 1)
|
|
1920
1944
|
]),
|
|
1921
1945
|
_: 2
|
|
1922
1946
|
}, 1024),
|
|
1923
1947
|
n(k, { number: "" }, {
|
|
1924
|
-
default:
|
|
1948
|
+
default: a(() => [
|
|
1925
1949
|
n(w, {
|
|
1926
1950
|
value: m.base_amount
|
|
1927
1951
|
}, null, 8, ["value"])
|
|
@@ -1929,13 +1953,13 @@ const xn = {
|
|
|
1929
1953
|
_: 2
|
|
1930
1954
|
}, 1024),
|
|
1931
1955
|
n(k, { number: "" }, {
|
|
1932
|
-
default:
|
|
1933
|
-
|
|
1956
|
+
default: a(() => [
|
|
1957
|
+
f(u(m.percentage) + "%", 1)
|
|
1934
1958
|
]),
|
|
1935
1959
|
_: 2
|
|
1936
1960
|
}, 1024),
|
|
1937
1961
|
n(k, { number: "" }, {
|
|
1938
|
-
default:
|
|
1962
|
+
default: a(() => [
|
|
1939
1963
|
n(w, {
|
|
1940
1964
|
value: m.tax_amount
|
|
1941
1965
|
}, null, 8, ["value"])
|
|
@@ -1948,25 +1972,28 @@ const xn = {
|
|
|
1948
1972
|
_: 1
|
|
1949
1973
|
}));
|
|
1950
1974
|
}
|
|
1951
|
-
}),
|
|
1975
|
+
}), Cn = { class: "flex items-start justify-between" }, Nn = {
|
|
1952
1976
|
key: 0,
|
|
1953
1977
|
class: "max-h-9"
|
|
1954
|
-
},
|
|
1978
|
+
}, Bn = { class: "flex flex-col gap-2" }, An = { key: 0 }, Pn = { key: 3 }, Un = {
|
|
1955
1979
|
colspan: "2",
|
|
1956
1980
|
class: "p-0"
|
|
1957
|
-
},
|
|
1981
|
+
}, Sn = ["tabindex"], Ln = { key: 1 }, Dn = {
|
|
1958
1982
|
colspan: "2",
|
|
1959
1983
|
class: "p-0"
|
|
1960
|
-
},
|
|
1984
|
+
}, Rn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Fn = { key: 0 }, Wn = ["tabindex", "onClick", "onKeyup"], zn = { key: 0 }, Vn = {
|
|
1961
1985
|
colspan: "2",
|
|
1962
1986
|
class: "p-0"
|
|
1963
|
-
},
|
|
1987
|
+
}, Gn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Hn = { key: 1 }, Xn = {
|
|
1964
1988
|
colspan: "2",
|
|
1965
1989
|
class: "p-0"
|
|
1966
|
-
},
|
|
1967
|
-
key:
|
|
1990
|
+
}, jn = {
|
|
1991
|
+
key: 1,
|
|
1992
|
+
class: "break-inside-avoid border-t"
|
|
1993
|
+
}, qn = {
|
|
1994
|
+
key: 2,
|
|
1968
1995
|
class: "break-inside-avoid border-t font-bold"
|
|
1969
|
-
},
|
|
1996
|
+
}, Yn = /* @__PURE__ */ S({
|
|
1970
1997
|
__name: "InvoiceSummary",
|
|
1971
1998
|
props: {
|
|
1972
1999
|
invoice: {},
|
|
@@ -1982,159 +2009,171 @@ const xn = {
|
|
|
1982
2009
|
showWalletBalance: { type: Boolean, default: !0 }
|
|
1983
2010
|
},
|
|
1984
2011
|
emits: ["add-invoice-line", "add-note"],
|
|
1985
|
-
setup(e, { emit:
|
|
1986
|
-
const
|
|
1987
|
-
s.isExpandable &&
|
|
1988
|
-
},
|
|
1989
|
-
s.isExpandable && g(
|
|
1990
|
-
},
|
|
1991
|
-
!s.invoice.tax_categories || !s.isExpandable ||
|
|
1992
|
-
},
|
|
2012
|
+
setup(e, { emit: i }) {
|
|
2013
|
+
const d = V(), { formatMessage: c } = d, m = i, s = e, [v, r] = he(), [b, g] = he(), [p, O] = In(), I = (...T) => {
|
|
2014
|
+
s.isExpandable && r(...T);
|
|
2015
|
+
}, U = (T) => {
|
|
2016
|
+
s.isExpandable && g(T);
|
|
2017
|
+
}, N = () => {
|
|
2018
|
+
!s.invoice.tax_categories || !s.isExpandable || O();
|
|
2019
|
+
}, M = (T, F) => +`${T}${F}`, $ = (T) => d.$t(
|
|
1993
2020
|
{
|
|
1994
2021
|
id: "invoice.service_period_heading",
|
|
1995
2022
|
defaultMessage: "Service period - {start_at} - {end_at}",
|
|
1996
2023
|
description: "Heading for rendered services where {start_at} is replaced for the start date and {end_at} for the end date in invoice summary"
|
|
1997
2024
|
},
|
|
1998
2025
|
{
|
|
1999
|
-
start_at:
|
|
2000
|
-
date:
|
|
2026
|
+
start_at: d.formatDate({
|
|
2027
|
+
date: T.start_at,
|
|
2001
2028
|
format: "date",
|
|
2002
|
-
timezone:
|
|
2029
|
+
timezone: _e(s.invoice.customer.timezone),
|
|
2003
2030
|
offsetType: "offsetted"
|
|
2004
2031
|
}),
|
|
2005
|
-
end_at:
|
|
2006
|
-
date:
|
|
2032
|
+
end_at: d.formatDate({
|
|
2033
|
+
date: T.end_at,
|
|
2007
2034
|
format: "date",
|
|
2008
|
-
timezone:
|
|
2035
|
+
timezone: _e(s.invoice.customer.timezone),
|
|
2009
2036
|
offsetType: "offsetted"
|
|
2010
2037
|
})
|
|
2011
2038
|
}
|
|
2012
|
-
),
|
|
2013
|
-
switch (
|
|
2039
|
+
), D = (T) => {
|
|
2040
|
+
switch (T) {
|
|
2014
2041
|
case "PRICING":
|
|
2015
2042
|
case "REVENUE":
|
|
2016
|
-
return
|
|
2043
|
+
return d.$t({
|
|
2017
2044
|
id: "invoice.table_heading.products",
|
|
2018
2045
|
defaultMessage: "Products",
|
|
2019
2046
|
description: "Table heading for the column containing the products of the invoice"
|
|
2020
2047
|
});
|
|
2021
2048
|
case "COMMITMENT":
|
|
2022
|
-
return
|
|
2049
|
+
return d.$t({
|
|
2023
2050
|
id: "invoice.table_heading.commitments",
|
|
2024
2051
|
defaultMessage: "Commitments",
|
|
2025
2052
|
description: "Table heading for the column containing the commitments of the invoice"
|
|
2026
2053
|
});
|
|
2027
2054
|
case "DISCOUNT":
|
|
2028
|
-
return
|
|
2055
|
+
return d.$t({
|
|
2029
2056
|
id: "invoice.table_heading.discounts",
|
|
2030
2057
|
defaultMessage: "Discounts",
|
|
2031
2058
|
description: "Table heading for the column containing the discounts of the invoice"
|
|
2032
2059
|
});
|
|
2033
2060
|
case "MARKUP":
|
|
2034
|
-
return
|
|
2061
|
+
return d.$t({
|
|
2035
2062
|
id: "invoice.table_heading.markups",
|
|
2036
2063
|
defaultMessage: "Markups",
|
|
2037
2064
|
description: "Table heading for the column containing the markups of the invoice"
|
|
2038
2065
|
});
|
|
2039
2066
|
case "ONE_OFF":
|
|
2040
|
-
return
|
|
2067
|
+
return d.$t({
|
|
2041
2068
|
id: "invoice.table_heading.one_offs",
|
|
2042
2069
|
defaultMessage: "One-off's",
|
|
2043
2070
|
description: "Table heading for the column containing the one-offs of the invoice"
|
|
2044
2071
|
});
|
|
2045
2072
|
}
|
|
2046
|
-
},
|
|
2047
|
-
var
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2073
|
+
}, P = (T) => {
|
|
2074
|
+
var F, W;
|
|
2075
|
+
const z = (F = T.products) != null && F.length ? [(W = T.pricing) == null ? void 0 : W.name, ye(T.products.map((L) => L.name))].filter(Boolean).join(" - ") : T.description ?? "";
|
|
2076
|
+
return [De(
|
|
2077
|
+
T,
|
|
2078
|
+
!!s.invoice.show_original_customer_invoice_line,
|
|
2079
|
+
s.invoice.forwarded_from_customers
|
|
2080
|
+
), z].filter(Boolean).join(" - ");
|
|
2081
|
+
}, G = (T) => s.showWalletBalance && !(s.hideOneOffWalletBalance && T.type === "ONE_OFF") && (T.lines ?? []).some((F) => {
|
|
2082
|
+
var W, z;
|
|
2083
|
+
return !!((z = (W = F.details) == null ? void 0 : W.wallet_balances) != null && z.length);
|
|
2084
|
+
}), q = (T) => T.groups.reduce(
|
|
2085
|
+
(F, W) => W.type in F ? {
|
|
2086
|
+
...F,
|
|
2087
|
+
[W.type]: [...F[W.type], W]
|
|
2088
|
+
} : { ...F, [W.type]: [W] },
|
|
2057
2089
|
{}
|
|
2058
|
-
),
|
|
2059
|
-
const
|
|
2060
|
-
return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable &&
|
|
2061
|
-
label:
|
|
2090
|
+
), Y = B(() => {
|
|
2091
|
+
const T = [];
|
|
2092
|
+
return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable && T.push({
|
|
2093
|
+
label: c({
|
|
2062
2094
|
defaultMessage: "Invoice line",
|
|
2063
2095
|
id: "JlhdD2",
|
|
2064
2096
|
description: "Label for adding an invoice line"
|
|
2065
2097
|
}),
|
|
2066
2098
|
onClick: () => m("add-invoice-line")
|
|
2067
|
-
}), s.isNoteCreatable &&
|
|
2068
|
-
label:
|
|
2099
|
+
}), s.isNoteCreatable && T.push({
|
|
2100
|
+
label: c({
|
|
2069
2101
|
defaultMessage: "Note",
|
|
2070
2102
|
id: "jB8+k/",
|
|
2071
2103
|
description: "Label for adding a note to an invoice"
|
|
2072
2104
|
}),
|
|
2073
2105
|
onClick: () => m("add-note")
|
|
2074
|
-
}),
|
|
2075
|
-
}),
|
|
2106
|
+
}), T;
|
|
2107
|
+
}), X = B(() => !et(s.invoice.closed_periods)), ee = B(() => {
|
|
2108
|
+
const T = s.invoice.prepaid_invoice_amount;
|
|
2109
|
+
if (!(!s.showTotals || !s.invoice.tax_summary || !T || Number(T.quantity) === 0))
|
|
2110
|
+
return T;
|
|
2111
|
+
}), re = B(() => {
|
|
2112
|
+
var T;
|
|
2113
|
+
return Number((T = ee.value) == null ? void 0 : T.quantity) < 0;
|
|
2114
|
+
}), le = B(() => s.invoice.show_tax_per_line_item !== !1), ze = B(() => {
|
|
2076
2115
|
if (s.heading === "summary")
|
|
2077
|
-
return
|
|
2116
|
+
return d.$t({
|
|
2078
2117
|
id: "invoice.summaryTitle",
|
|
2079
2118
|
defaultMessage: "Invoice summary",
|
|
2080
2119
|
description: "Title for the compact, always-shown invoice summary section"
|
|
2081
2120
|
});
|
|
2082
2121
|
switch (s.invoice.type) {
|
|
2083
2122
|
case "CREDIT":
|
|
2084
|
-
return
|
|
2123
|
+
return d.$t({
|
|
2085
2124
|
id: "invoice.creditDetailsTitle",
|
|
2086
2125
|
defaultMessage: "Credit details",
|
|
2087
2126
|
description: "Title for the invoice summary of a credit-note invoice"
|
|
2088
2127
|
});
|
|
2089
2128
|
case "ONE_OFF":
|
|
2090
|
-
return
|
|
2129
|
+
return d.$t({
|
|
2091
2130
|
id: "invoice.oneOffDetailsTitle",
|
|
2092
2131
|
defaultMessage: "One-off details",
|
|
2093
2132
|
description: "Title for the invoice summary of a one-off invoice"
|
|
2094
2133
|
});
|
|
2095
2134
|
case "ONE_OFF_CREDIT":
|
|
2096
|
-
return
|
|
2135
|
+
return d.$t({
|
|
2097
2136
|
id: "invoice.oneOffCreditDetailsTitle",
|
|
2098
2137
|
defaultMessage: "One-off credit details",
|
|
2099
2138
|
description: "Title for the invoice summary of a one-off credit-note invoice"
|
|
2100
2139
|
});
|
|
2101
2140
|
default:
|
|
2102
|
-
return
|
|
2141
|
+
return d.$t({
|
|
2103
2142
|
id: "invoice.title",
|
|
2104
2143
|
defaultMessage: "Details",
|
|
2105
2144
|
description: "Title for the invoice summary"
|
|
2106
2145
|
});
|
|
2107
2146
|
}
|
|
2108
2147
|
});
|
|
2109
|
-
return (
|
|
2110
|
-
var
|
|
2148
|
+
return (T, F) => {
|
|
2149
|
+
var W;
|
|
2111
2150
|
return t(), l("div", null, [
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
])) : (t(),
|
|
2151
|
+
x("div", Cn, [
|
|
2152
|
+
T.$slots.logo ? (t(), l("div", Nn, [
|
|
2153
|
+
E(T.$slots, "logo")
|
|
2154
|
+
])) : (t(), h(it, {
|
|
2116
2155
|
key: 1,
|
|
2117
|
-
title:
|
|
2156
|
+
title: ze.value,
|
|
2118
2157
|
variant: "neutral",
|
|
2119
2158
|
icon: "draft",
|
|
2120
2159
|
"icon-class": "print:hidden",
|
|
2121
2160
|
"title-class": "print:text-sm"
|
|
2122
2161
|
}, null, 8, ["title"])),
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
(
|
|
2162
|
+
T.$slots.intro ? E(T.$slots, "intro", {}, void 0, void 0, 2) : y("", !0),
|
|
2163
|
+
x("div", Bn, [
|
|
2164
|
+
(W = Y.value) != null && W.length ? (t(), h(at, {
|
|
2126
2165
|
key: 0,
|
|
2127
|
-
items:
|
|
2166
|
+
items: Y.value,
|
|
2128
2167
|
width: "auto"
|
|
2129
2168
|
}, {
|
|
2130
|
-
trigger:
|
|
2131
|
-
n(
|
|
2169
|
+
trigger: a(() => [
|
|
2170
|
+
n(Ze, {
|
|
2132
2171
|
"icon-prefix": "add",
|
|
2133
2172
|
size: "sm",
|
|
2134
2173
|
intent: "secondary"
|
|
2135
2174
|
}, {
|
|
2136
|
-
default:
|
|
2137
|
-
|
|
2175
|
+
default: a(() => [
|
|
2176
|
+
f(u(o(c)({
|
|
2138
2177
|
defaultMessage: "Add",
|
|
2139
2178
|
id: "YnK/yF",
|
|
2140
2179
|
description: "Label for adding an item to an invoice"
|
|
@@ -2145,59 +2184,59 @@ const xn = {
|
|
|
2145
2184
|
]),
|
|
2146
2185
|
_: 1
|
|
2147
2186
|
}, 8, ["items"])) : y("", !0),
|
|
2148
|
-
|
|
2187
|
+
E(T.$slots, "child-customers-selector")
|
|
2149
2188
|
])
|
|
2150
2189
|
]),
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
(t(!0), l(
|
|
2154
|
-
e.showRenderedServicesHeader ? (t(),
|
|
2190
|
+
T.$slots.total ? E(T.$slots, "total", {}, void 0, void 0, 0) : y("", !0),
|
|
2191
|
+
E(T.$slots, "notes"),
|
|
2192
|
+
(t(!0), l(_, null, R(e.invoice.periods, (z, K) => (t(), l(_, { key: K }, [
|
|
2193
|
+
e.showRenderedServicesHeader ? (t(), h(Le, {
|
|
2155
2194
|
key: 0,
|
|
2156
2195
|
class: "mt-6"
|
|
2157
2196
|
}, {
|
|
2158
|
-
default:
|
|
2159
|
-
n(
|
|
2197
|
+
default: a(() => [
|
|
2198
|
+
n($e, {
|
|
2160
2199
|
tag: "h2",
|
|
2161
2200
|
variant: "caps-heading"
|
|
2162
2201
|
}, {
|
|
2163
|
-
default:
|
|
2164
|
-
|
|
2202
|
+
default: a(() => [
|
|
2203
|
+
f(u($(z)), 1)
|
|
2165
2204
|
]),
|
|
2166
2205
|
_: 2
|
|
2167
2206
|
}, 1024)
|
|
2168
2207
|
]),
|
|
2169
2208
|
_: 2
|
|
2170
2209
|
}, 1024)) : y("", !0),
|
|
2171
|
-
z.groups ? (t(),
|
|
2210
|
+
z.groups ? (t(), h(j, {
|
|
2172
2211
|
key: 1,
|
|
2173
|
-
class:
|
|
2174
|
-
"data-testid": o(
|
|
2212
|
+
class: A(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
|
|
2213
|
+
"data-testid": o(ct)
|
|
2175
2214
|
}, {
|
|
2176
|
-
default:
|
|
2177
|
-
(t(!0), l(
|
|
2178
|
-
|
|
2179
|
-
), ([
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2215
|
+
default: a(() => [
|
|
2216
|
+
(t(!0), l(_, null, R(Object.entries(
|
|
2217
|
+
q(z)
|
|
2218
|
+
), ([L, te], J) => (t(), l(_, { key: L }, [
|
|
2219
|
+
J > 0 ? (t(), l("tr", An, [...F[0] || (F[0] = [
|
|
2220
|
+
x("td", null, [
|
|
2221
|
+
x("div", { class: "h-4" })
|
|
2183
2222
|
], -1)
|
|
2184
2223
|
])])) : y("", !0),
|
|
2185
|
-
|
|
2186
|
-
n(
|
|
2224
|
+
x("tr", null, [
|
|
2225
|
+
n(C, {
|
|
2187
2226
|
left: "",
|
|
2188
2227
|
class: "text-secondary"
|
|
2189
2228
|
}, {
|
|
2190
|
-
default:
|
|
2191
|
-
|
|
2229
|
+
default: a(() => [
|
|
2230
|
+
f(u(D(L)), 1)
|
|
2192
2231
|
]),
|
|
2193
2232
|
_: 2
|
|
2194
2233
|
}, 1024),
|
|
2195
|
-
n(
|
|
2234
|
+
n(C, {
|
|
2196
2235
|
right: "",
|
|
2197
2236
|
class: "w-28 text-secondary"
|
|
2198
2237
|
}, {
|
|
2199
|
-
default:
|
|
2200
|
-
|
|
2238
|
+
default: a(() => [
|
|
2239
|
+
f(u(o(d).$t({
|
|
2201
2240
|
id: "invoice.amount_table_heading",
|
|
2202
2241
|
defaultMessage: "Amount",
|
|
2203
2242
|
description: "Table heading for the amount column in the invoice table"
|
|
@@ -2206,79 +2245,79 @@ const xn = {
|
|
|
2206
2245
|
_: 1
|
|
2207
2246
|
})
|
|
2208
2247
|
]),
|
|
2209
|
-
(t(!0), l(
|
|
2210
|
-
|
|
2248
|
+
(t(!0), l(_, null, R(te, (ne, Ve) => (t(), l(_, { key: Ve }, [
|
|
2249
|
+
L === "REVENUE" || L === "PRICING" || L === "ONE_OFF" ? (t(), h(On, {
|
|
2211
2250
|
key: 0,
|
|
2212
|
-
group:
|
|
2213
|
-
"expanded-items": o(
|
|
2251
|
+
group: ne,
|
|
2252
|
+
"expanded-items": o(v),
|
|
2214
2253
|
"handle-toggle-items": I,
|
|
2215
2254
|
"is-expandable": e.isExpandable,
|
|
2216
2255
|
"force-expanded": e.forceExpanded,
|
|
2217
|
-
"format-index":
|
|
2256
|
+
"format-index": M,
|
|
2218
2257
|
"invoice-period-order": z.period_order,
|
|
2219
|
-
"group-order":
|
|
2258
|
+
"group-order": ne.group_order,
|
|
2220
2259
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2221
2260
|
"processing-only-customers": e.invoice.processing_only_customers,
|
|
2222
2261
|
"display-invoice-sub-lines-per-processing-only-customer": e.invoice.display_invoice_sub_lines_per_processing_only_customer,
|
|
2223
|
-
"show-tax-per-line-item":
|
|
2262
|
+
"show-tax-per-line-item": le.value,
|
|
2224
2263
|
"forwarded-from-customers": e.invoice.forwarded_from_customers,
|
|
2225
2264
|
"show-original-customer-invoice-line": e.invoice.show_original_customer_invoice_line
|
|
2226
2265
|
}, {
|
|
2227
|
-
"invoice-line-prefix":
|
|
2228
|
-
|
|
2266
|
+
"invoice-line-prefix": a((ie) => [
|
|
2267
|
+
E(T.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, ie))
|
|
2229
2268
|
]),
|
|
2230
|
-
"one-off-line-context-menu":
|
|
2231
|
-
|
|
2269
|
+
"one-off-line-context-menu": a((ie) => [
|
|
2270
|
+
E(T.$slots, "one-off-line-context-menu", Z({ ref_for: !0 }, ie, {
|
|
2232
2271
|
periodOrder: z.period_order
|
|
2233
2272
|
}))
|
|
2234
2273
|
]),
|
|
2235
2274
|
_: 2
|
|
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"])) :
|
|
2275
|
+
}, 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"])) : L === "DISCOUNT" || L === "MARKUP" ? (t(), h(Dt, {
|
|
2237
2276
|
key: 1,
|
|
2238
|
-
group:
|
|
2239
|
-
"expanded-items": o(
|
|
2277
|
+
group: ne,
|
|
2278
|
+
"expanded-items": o(v),
|
|
2240
2279
|
"handle-toggle-items": I,
|
|
2241
2280
|
"is-expandable": e.isExpandable,
|
|
2242
2281
|
"force-expanded": e.forceExpanded,
|
|
2243
|
-
"format-index":
|
|
2282
|
+
"format-index": M,
|
|
2244
2283
|
"invoice-period-order": z.period_order,
|
|
2245
|
-
"group-order":
|
|
2284
|
+
"group-order": ne.group_order,
|
|
2246
2285
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2247
|
-
heading:
|
|
2286
|
+
heading: L === "DISCOUNT" ? o(d).$t({
|
|
2248
2287
|
id: "invoice.discounts_table_heading",
|
|
2249
2288
|
defaultMessage: "Discounts",
|
|
2250
2289
|
description: "Heading for discounts in the invoice table"
|
|
2251
|
-
}) : o(
|
|
2290
|
+
}) : o(d).$t({
|
|
2252
2291
|
id: "invoice.markups_table_heading",
|
|
2253
2292
|
defaultMessage: "Markups",
|
|
2254
2293
|
description: "Heading for markups in the invoice table"
|
|
2255
2294
|
})
|
|
2256
2295
|
}, {
|
|
2257
|
-
"invoice-line-prefix":
|
|
2258
|
-
|
|
2296
|
+
"invoice-line-prefix": a((ie) => [
|
|
2297
|
+
E(T.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, ie))
|
|
2259
2298
|
]),
|
|
2260
2299
|
_: 3
|
|
2261
|
-
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) :
|
|
2300
|
+
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) : L === "COMMITMENT" ? (t(), h(At, {
|
|
2262
2301
|
key: 2,
|
|
2263
|
-
group:
|
|
2264
|
-
"expanded-items": o(
|
|
2302
|
+
group: ne,
|
|
2303
|
+
"expanded-items": o(v),
|
|
2265
2304
|
"handle-toggle-items": I,
|
|
2266
2305
|
"is-expandable": e.isExpandable,
|
|
2267
2306
|
"force-expanded": e.forceExpanded,
|
|
2268
|
-
"format-index":
|
|
2307
|
+
"format-index": M,
|
|
2269
2308
|
"invoice-period-order": z.period_order,
|
|
2270
|
-
"group-order":
|
|
2309
|
+
"group-order": ne.group_order,
|
|
2271
2310
|
"amount-type": e.invoice.pricing_amount_type
|
|
2272
2311
|
}, {
|
|
2273
|
-
"invoice-line-prefix":
|
|
2274
|
-
|
|
2312
|
+
"invoice-line-prefix": a((ie) => [
|
|
2313
|
+
E(T.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, ie))
|
|
2275
2314
|
]),
|
|
2276
2315
|
_: 3
|
|
2277
2316
|
}, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) : y("", !0),
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
n(
|
|
2281
|
-
lines:
|
|
2317
|
+
G(ne) ? (t(), l("tr", Pn, [
|
|
2318
|
+
x("td", Un, [
|
|
2319
|
+
n(Oe, {
|
|
2320
|
+
lines: ne.lines,
|
|
2282
2321
|
"credit-types": e.invoice.credit_types
|
|
2283
2322
|
}, null, 8, ["lines", "credit-types"])
|
|
2284
2323
|
])
|
|
@@ -2289,19 +2328,19 @@ const xn = {
|
|
|
2289
2328
|
_: 2
|
|
2290
2329
|
}, 1032, ["class", "data-testid"])) : y("", !0)
|
|
2291
2330
|
], 64))), 128)),
|
|
2292
|
-
e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || o(p)) && e.invoice.tax_categories) ? (t(),
|
|
2331
|
+
e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || o(p)) && e.invoice.tax_categories) ? (t(), h(j, {
|
|
2293
2332
|
key: 1,
|
|
2294
2333
|
class: "mt-6 text-sm print:ml-auto print:w-2/3"
|
|
2295
2334
|
}, {
|
|
2296
|
-
default:
|
|
2297
|
-
e.showTotals ? (t(), l(
|
|
2298
|
-
|
|
2299
|
-
n(
|
|
2335
|
+
default: a(() => [
|
|
2336
|
+
e.showTotals ? (t(), l(_, { key: 0 }, [
|
|
2337
|
+
x("tr", null, [
|
|
2338
|
+
n(C, {
|
|
2300
2339
|
left: "",
|
|
2301
2340
|
class: "text-secondary"
|
|
2302
2341
|
}, {
|
|
2303
|
-
default:
|
|
2304
|
-
|
|
2342
|
+
default: a(() => [
|
|
2343
|
+
f(u(o(d).$t({
|
|
2305
2344
|
id: "invoice.totals_table_heading",
|
|
2306
2345
|
defaultMessage: "Totals",
|
|
2307
2346
|
description: "Table heading for the totals column in the invoice table"
|
|
@@ -2309,12 +2348,12 @@ const xn = {
|
|
|
2309
2348
|
]),
|
|
2310
2349
|
_: 1
|
|
2311
2350
|
}),
|
|
2312
|
-
n(
|
|
2351
|
+
n(C, {
|
|
2313
2352
|
right: "",
|
|
2314
2353
|
class: "w-28 text-secondary"
|
|
2315
2354
|
}, {
|
|
2316
|
-
default:
|
|
2317
|
-
|
|
2355
|
+
default: a(() => [
|
|
2356
|
+
f(u(o(d).$t({
|
|
2318
2357
|
id: "invoice.amount_table_heading",
|
|
2319
2358
|
defaultMessage: "Amount",
|
|
2320
2359
|
description: "Table heading for the amount column in the invoice table"
|
|
@@ -2323,34 +2362,34 @@ const xn = {
|
|
|
2323
2362
|
_: 1
|
|
2324
2363
|
})
|
|
2325
2364
|
]),
|
|
2326
|
-
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(),
|
|
2365
|
+
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), h(Me, {
|
|
2327
2366
|
key: 0,
|
|
2328
2367
|
"total-amount": e.invoice.tax_summary.total_amount,
|
|
2329
2368
|
"is-customer-facing": e.isCustomerFacing
|
|
2330
|
-
}, null, 8, ["total-amount", "is-customer-facing"])) : (t(),
|
|
2369
|
+
}, null, 8, ["total-amount", "is-customer-facing"])) : (t(), h(we, {
|
|
2331
2370
|
key: 1,
|
|
2332
2371
|
"base-amount": e.invoice.tax_summary.base_amount
|
|
2333
2372
|
}, null, 8, ["base-amount"])),
|
|
2334
2373
|
e.invoice.tax_summary.tax_amount ? (t(), l("tr", {
|
|
2335
2374
|
key: 2,
|
|
2336
|
-
class:
|
|
2375
|
+
class: A([{ "cursor-pointer": e.invoice.tax_categories && e.isExpandable }, "break-inside-avoid border-t"]),
|
|
2337
2376
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
2338
|
-
onClick:
|
|
2377
|
+
onClick: N,
|
|
2339
2378
|
onKeyup: [
|
|
2340
|
-
|
|
2341
|
-
|
|
2379
|
+
Q(N, ["enter"]),
|
|
2380
|
+
Q(N, ["space"])
|
|
2342
2381
|
]
|
|
2343
2382
|
}, [
|
|
2344
2383
|
n(k, null, {
|
|
2345
|
-
default:
|
|
2346
|
-
e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(),
|
|
2384
|
+
default: a(() => [
|
|
2385
|
+
e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), h(H, {
|
|
2347
2386
|
key: 0,
|
|
2348
2387
|
icon: "keyboard_arrow_down",
|
|
2349
2388
|
size: "md",
|
|
2350
|
-
class:
|
|
2389
|
+
class: A(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(p) }])
|
|
2351
2390
|
}, null, 8, ["class"])) : y("", !0),
|
|
2352
|
-
n(
|
|
2353
|
-
label: o(
|
|
2391
|
+
n(fe, {
|
|
2392
|
+
label: o(d).$t({
|
|
2354
2393
|
id: "invoice.taxes_table_heading",
|
|
2355
2394
|
defaultMessage: "Taxes",
|
|
2356
2395
|
description: "Table heading for the taxes column in the invoice table"
|
|
@@ -2361,30 +2400,30 @@ const xn = {
|
|
|
2361
2400
|
_: 1
|
|
2362
2401
|
}),
|
|
2363
2402
|
n(k, { number: "" }, {
|
|
2364
|
-
default:
|
|
2403
|
+
default: a(() => [
|
|
2365
2404
|
n(w, {
|
|
2366
2405
|
value: e.invoice.tax_summary.tax_amount,
|
|
2367
|
-
"data-testid": o(
|
|
2406
|
+
"data-testid": o(vt)
|
|
2368
2407
|
}, null, 8, ["value", "data-testid"])
|
|
2369
2408
|
]),
|
|
2370
2409
|
_: 1
|
|
2371
2410
|
})
|
|
2372
|
-
], 42,
|
|
2411
|
+
], 42, Sn)) : y("", !0)
|
|
2373
2412
|
], 64)) : y("", !0),
|
|
2374
|
-
(e.forceExpanded || o(p)) && e.invoice.tax_categories ? (t(), l("tr",
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
n(
|
|
2413
|
+
(e.forceExpanded || o(p)) && e.invoice.tax_categories ? (t(), l("tr", Ln, [
|
|
2414
|
+
x("td", Dn, [
|
|
2415
|
+
x("div", Rn, [
|
|
2416
|
+
n(En, {
|
|
2378
2417
|
"tax-categories": e.invoice.tax_categories
|
|
2379
2418
|
}, null, 8, ["tax-categories"])
|
|
2380
2419
|
])
|
|
2381
2420
|
])
|
|
2382
2421
|
])) : y("", !0),
|
|
2383
|
-
e.showTotals ? (t(), l(
|
|
2384
|
-
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(),
|
|
2422
|
+
e.showTotals ? (t(), l(_, { key: 2 }, [
|
|
2423
|
+
e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), h(we, {
|
|
2385
2424
|
key: 0,
|
|
2386
2425
|
"base-amount": e.invoice.tax_summary.base_amount
|
|
2387
|
-
}, null, 8, ["base-amount"])) : (t(),
|
|
2426
|
+
}, null, 8, ["base-amount"])) : (t(), h(Me, {
|
|
2388
2427
|
key: 1,
|
|
2389
2428
|
"total-amount": e.invoice.tax_summary.total_amount
|
|
2390
2429
|
}, null, 8, ["total-amount"]))
|
|
@@ -2392,18 +2431,18 @@ const xn = {
|
|
|
2392
2431
|
]),
|
|
2393
2432
|
_: 1
|
|
2394
2433
|
})) : y("", !0),
|
|
2395
|
-
|
|
2434
|
+
X.value || ee.value ? (t(), h(j, {
|
|
2396
2435
|
key: 2,
|
|
2397
|
-
class: "mt-6
|
|
2436
|
+
class: A(["text-sm", { "mt-6": X.value, "print:ml-auto print:w-2/3": !X.value }])
|
|
2398
2437
|
}, {
|
|
2399
|
-
default:
|
|
2400
|
-
|
|
2401
|
-
n(
|
|
2438
|
+
default: a(() => [
|
|
2439
|
+
X.value ? (t(), l("tr", Fn, [
|
|
2440
|
+
n(C, {
|
|
2402
2441
|
left: "",
|
|
2403
2442
|
class: "text-secondary"
|
|
2404
2443
|
}, {
|
|
2405
|
-
default:
|
|
2406
|
-
|
|
2444
|
+
default: a(() => [
|
|
2445
|
+
f(u(o(d).$t({
|
|
2407
2446
|
id: "invoice.already_deducted_table_heading",
|
|
2408
2447
|
defaultMessage: "Already deducted",
|
|
2409
2448
|
description: "Table heading for the already deducted rows in the invoice table"
|
|
@@ -2411,35 +2450,35 @@ const xn = {
|
|
|
2411
2450
|
]),
|
|
2412
2451
|
_: 1
|
|
2413
2452
|
})
|
|
2414
|
-
]),
|
|
2415
|
-
(t(!0), l(
|
|
2416
|
-
(t(!0), l(
|
|
2417
|
-
|
|
2418
|
-
class:
|
|
2453
|
+
])) : y("", !0),
|
|
2454
|
+
(t(!0), l(_, null, R(e.invoice.closed_periods, (z, K) => (t(), l(_, { key: K }, [
|
|
2455
|
+
(t(!0), l(_, null, R(z.groups, (L, te) => (t(), l(_, { key: te }, [
|
|
2456
|
+
x("tr", {
|
|
2457
|
+
class: A(["break-inside-avoid border-t", { "pt-6": K === 0, "cursor-pointer": e.isExpandable }]),
|
|
2419
2458
|
tabindex: e.isExpandable ? 0 : void 0,
|
|
2420
|
-
onClick: (
|
|
2459
|
+
onClick: (J) => U(M(K, te)),
|
|
2421
2460
|
onKeyup: [
|
|
2422
|
-
|
|
2423
|
-
|
|
2461
|
+
Q((J) => U(M(K, te)), ["enter"]),
|
|
2462
|
+
Q((J) => U(M(K, te)), ["space"])
|
|
2424
2463
|
]
|
|
2425
2464
|
}, [
|
|
2426
2465
|
n(k, { class: "p-0" }, {
|
|
2427
|
-
default:
|
|
2428
|
-
var
|
|
2466
|
+
default: a(() => {
|
|
2467
|
+
var J;
|
|
2429
2468
|
return [
|
|
2430
|
-
e.isExpandable ? (t(),
|
|
2469
|
+
e.isExpandable ? (t(), h(H, {
|
|
2431
2470
|
key: 0,
|
|
2432
2471
|
icon: "keyboard_arrow_down",
|
|
2433
2472
|
size: "md",
|
|
2434
|
-
class:
|
|
2473
|
+
class: A(["absolute -translate-x-7 text-slate-400", {
|
|
2435
2474
|
"-rotate-90": !o(b).includes(
|
|
2436
|
-
|
|
2475
|
+
M(K, te)
|
|
2437
2476
|
)
|
|
2438
2477
|
}])
|
|
2439
2478
|
}, null, 8, ["class"])) : y("", !0),
|
|
2440
|
-
n(
|
|
2441
|
-
label:
|
|
2442
|
-
count: e.isExpandable ? ((
|
|
2479
|
+
n(fe, {
|
|
2480
|
+
label: P(L),
|
|
2481
|
+
count: e.isExpandable ? ((J = L.lines) == null ? void 0 : J.length) ?? 0 : void 0
|
|
2443
2482
|
}, null, 8, ["label", "count"])
|
|
2444
2483
|
];
|
|
2445
2484
|
}),
|
|
@@ -2449,32 +2488,32 @@ const xn = {
|
|
|
2449
2488
|
number: "",
|
|
2450
2489
|
class: "w-28"
|
|
2451
2490
|
}, {
|
|
2452
|
-
default:
|
|
2491
|
+
default: a(() => [
|
|
2453
2492
|
n(w, {
|
|
2454
|
-
value:
|
|
2455
|
-
"data-testid": o(
|
|
2456
|
-
"data-type": o(
|
|
2493
|
+
value: L.amount_excluding_tax,
|
|
2494
|
+
"data-testid": o(bt),
|
|
2495
|
+
"data-type": o(ke)
|
|
2457
2496
|
}, null, 8, ["value", "data-testid", "data-type"])
|
|
2458
2497
|
]),
|
|
2459
2498
|
_: 2
|
|
2460
2499
|
}, 1024)
|
|
2461
|
-
], 42,
|
|
2462
|
-
e.forceExpanded || o(b).includes(
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
n(
|
|
2466
|
-
"start-date":
|
|
2467
|
-
"end-date":
|
|
2468
|
-
total:
|
|
2469
|
-
group:
|
|
2500
|
+
], 42, Wn),
|
|
2501
|
+
e.forceExpanded || o(b).includes(M(K, te)) ? (t(), l("tr", zn, [
|
|
2502
|
+
x("td", Vn, [
|
|
2503
|
+
x("div", Gn, [
|
|
2504
|
+
n(We, {
|
|
2505
|
+
"start-date": L.start_at,
|
|
2506
|
+
"end-date": L.end_at,
|
|
2507
|
+
total: L.amount_excluding_tax,
|
|
2508
|
+
group: L,
|
|
2470
2509
|
"amount-type": e.invoice.pricing_amount_type,
|
|
2471
|
-
"show-tax-per-line-item":
|
|
2510
|
+
"show-tax-per-line-item": le.value,
|
|
2472
2511
|
"processing-only-customers": e.invoice.processing_only_customers,
|
|
2473
2512
|
"display-invoice-sub-lines-per-processing-only-customer": e.invoice.display_invoice_sub_lines_per_processing_only_customer
|
|
2474
2513
|
}, {
|
|
2475
|
-
"one-off-line-context-menu":
|
|
2476
|
-
|
|
2477
|
-
groupOrder:
|
|
2514
|
+
"one-off-line-context-menu": a((J) => [
|
|
2515
|
+
E(T.$slots, "one-off-line-context-menu", Z({ ref_for: !0 }, J, {
|
|
2516
|
+
groupOrder: L.group_order,
|
|
2478
2517
|
periodOrder: z.period_order
|
|
2479
2518
|
}))
|
|
2480
2519
|
]),
|
|
@@ -2483,20 +2522,49 @@ const xn = {
|
|
|
2483
2522
|
])
|
|
2484
2523
|
])
|
|
2485
2524
|
])) : y("", !0),
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
n(
|
|
2489
|
-
lines:
|
|
2525
|
+
G(L) ? (t(), l("tr", Hn, [
|
|
2526
|
+
x("td", Xn, [
|
|
2527
|
+
n(Oe, {
|
|
2528
|
+
lines: L.lines,
|
|
2490
2529
|
"credit-types": e.invoice.credit_types
|
|
2491
2530
|
}, null, 8, ["lines", "credit-types"])
|
|
2492
2531
|
])
|
|
2493
2532
|
])) : y("", !0)
|
|
2494
2533
|
], 64))), 128))
|
|
2495
2534
|
], 64))), 128)),
|
|
2496
|
-
|
|
2535
|
+
ee.value ? (t(), l("tr", jn, [
|
|
2536
|
+
n(k, null, {
|
|
2537
|
+
default: a(() => [
|
|
2538
|
+
f(u(re.value ? o(d).$t({
|
|
2539
|
+
id: "invoice.credited_to_prepaid_balance",
|
|
2540
|
+
defaultMessage: "Credited to your prepaid balance",
|
|
2541
|
+
description: "Table row header for the part of a credit note credited to the prepaid wallet balance"
|
|
2542
|
+
}) : o(d).$t({
|
|
2543
|
+
id: "invoice.prepaid_balance_applied",
|
|
2544
|
+
defaultMessage: "Prepaid balance applied",
|
|
2545
|
+
description: "Table row header for the part of the invoice paid from the prepaid wallet balance"
|
|
2546
|
+
})), 1)
|
|
2547
|
+
]),
|
|
2548
|
+
_: 1
|
|
2549
|
+
}),
|
|
2550
|
+
n(k, {
|
|
2551
|
+
number: "",
|
|
2552
|
+
class: "w-28"
|
|
2553
|
+
}, {
|
|
2554
|
+
default: a(() => [
|
|
2555
|
+
n(w, {
|
|
2556
|
+
value: ee.value,
|
|
2557
|
+
"data-testid": o(pt),
|
|
2558
|
+
"data-type": o(ke)
|
|
2559
|
+
}, null, 8, ["value", "data-testid", "data-type"])
|
|
2560
|
+
]),
|
|
2561
|
+
_: 1
|
|
2562
|
+
})
|
|
2563
|
+
])) : y("", !0),
|
|
2564
|
+
(X.value || ee.value) && e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), l("tr", qn, [
|
|
2497
2565
|
n(k, { class: "font-bold" }, {
|
|
2498
|
-
default:
|
|
2499
|
-
|
|
2566
|
+
default: a(() => [
|
|
2567
|
+
f(u(o(d).$t({
|
|
2500
2568
|
id: "invoice.amount_due_table_heading",
|
|
2501
2569
|
defaultMessage: "Amount due",
|
|
2502
2570
|
description: "Table heading for the amount due row in the invoice table"
|
|
@@ -2505,10 +2573,10 @@ const xn = {
|
|
|
2505
2573
|
_: 1
|
|
2506
2574
|
}),
|
|
2507
2575
|
n(k, { number: "" }, {
|
|
2508
|
-
default:
|
|
2576
|
+
default: a(() => [
|
|
2509
2577
|
n(w, {
|
|
2510
2578
|
value: e.invoice.open_invoice_amount,
|
|
2511
|
-
"data-testid": o(
|
|
2579
|
+
"data-testid": o(yt)
|
|
2512
2580
|
}, null, 8, ["value", "data-testid"])
|
|
2513
2581
|
]),
|
|
2514
2582
|
_: 1
|
|
@@ -2516,76 +2584,76 @@ const xn = {
|
|
|
2516
2584
|
])) : y("", !0)
|
|
2517
2585
|
]),
|
|
2518
2586
|
_: 3
|
|
2519
|
-
}))
|
|
2587
|
+
}, 8, ["class"])) : y("", !0)
|
|
2520
2588
|
]);
|
|
2521
2589
|
};
|
|
2522
2590
|
}
|
|
2523
|
-
}),
|
|
2591
|
+
}), Kn = ({
|
|
2524
2592
|
invoice: e,
|
|
2525
|
-
getPeriodTitle:
|
|
2526
|
-
creditsLabel:
|
|
2527
|
-
walletLabel:
|
|
2593
|
+
getPeriodTitle: i,
|
|
2594
|
+
creditsLabel: d,
|
|
2595
|
+
walletLabel: c,
|
|
2528
2596
|
formatBalance: m
|
|
2529
|
-
}) => [...e.periods ?? [], ...e.closed_periods ?? []].map((
|
|
2530
|
-
const
|
|
2531
|
-
|
|
2532
|
-
{ creditTypes: e.credit_types, creditsLabel:
|
|
2597
|
+
}) => [...e.periods ?? [], ...e.closed_periods ?? []].map((v) => {
|
|
2598
|
+
const r = (v.groups ?? []).flatMap((p) => p.lines ?? []), b = Pe(
|
|
2599
|
+
Ue(r),
|
|
2600
|
+
{ creditTypes: e.credit_types, creditsLabel: d, walletLabel: c }
|
|
2533
2601
|
), g = /* @__PURE__ */ new Map();
|
|
2534
2602
|
for (const p of b) {
|
|
2535
|
-
const
|
|
2536
|
-
id: `${
|
|
2603
|
+
const O = m(p.availableBalance), I = g.get(p.label) ?? {
|
|
2604
|
+
id: `${v.period_order}-${p.label}`,
|
|
2537
2605
|
label: p.label,
|
|
2538
|
-
amount:
|
|
2606
|
+
amount: O,
|
|
2539
2607
|
rows: []
|
|
2540
2608
|
};
|
|
2541
2609
|
I.rows.push({
|
|
2542
|
-
id: `${
|
|
2610
|
+
id: `${v.period_order}-${p.key}`,
|
|
2543
2611
|
label: p.label,
|
|
2544
2612
|
used: m(p.usedBalance),
|
|
2545
2613
|
left: m(p.leftBalance),
|
|
2546
|
-
available:
|
|
2614
|
+
available: O
|
|
2547
2615
|
}), g.set(p.label, I);
|
|
2548
2616
|
}
|
|
2549
2617
|
return {
|
|
2550
|
-
id: `${
|
|
2551
|
-
title:
|
|
2618
|
+
id: `${v.period_order}-${v.start_at}`,
|
|
2619
|
+
title: i(v),
|
|
2552
2620
|
rows: [...g.values()]
|
|
2553
2621
|
};
|
|
2554
|
-
}).filter((
|
|
2622
|
+
}).filter((v) => v.rows.length > 0), Qn = {
|
|
2555
2623
|
key: 0,
|
|
2556
2624
|
class: "mt-8"
|
|
2557
|
-
},
|
|
2625
|
+
}, Jn = { class: "flex flex-col gap-6" }, Zn = { class: "border-t" }, ei = ["aria-expanded", "onClick"], ti = { 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" }, ni = { key: 0 }, ii = { class: "p-0" }, ai = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, oi = /* @__PURE__ */ S({
|
|
2558
2626
|
__name: "InvoiceCreditsBreakdown",
|
|
2559
2627
|
props: {
|
|
2560
2628
|
invoice: { type: Object }
|
|
2561
2629
|
},
|
|
2562
2630
|
setup(e) {
|
|
2563
|
-
const
|
|
2631
|
+
const i = e, { formatDate: d, $t: c, formatMessage: m, formatNumber: s } = V(), { getIsOpen: v, toggle: r } = ue(), b = (O) => m(
|
|
2564
2632
|
{
|
|
2565
2633
|
defaultMessage: "Service period - {startAt} - {endAt}",
|
|
2566
2634
|
id: "wallet_balance.service_period_heading",
|
|
2567
2635
|
description: "Heading shown above wallet balance details for an invoice period"
|
|
2568
2636
|
},
|
|
2569
2637
|
{
|
|
2570
|
-
startAt:
|
|
2571
|
-
date:
|
|
2638
|
+
startAt: d({
|
|
2639
|
+
date: O.start_at,
|
|
2572
2640
|
format: "date",
|
|
2573
2641
|
offsetType: "offsetted",
|
|
2574
|
-
timezone:
|
|
2642
|
+
timezone: xe(i.invoice)
|
|
2575
2643
|
}),
|
|
2576
|
-
endAt:
|
|
2577
|
-
date:
|
|
2644
|
+
endAt: d({
|
|
2645
|
+
date: O.end_at,
|
|
2578
2646
|
format: "date",
|
|
2579
2647
|
offsetType: "offsetted",
|
|
2580
|
-
timezone:
|
|
2648
|
+
timezone: xe(i.invoice)
|
|
2581
2649
|
})
|
|
2582
2650
|
}
|
|
2583
|
-
), g = (
|
|
2584
|
-
formatMoney:
|
|
2651
|
+
), g = (O) => Se(O, {
|
|
2652
|
+
formatMoney: Ne,
|
|
2585
2653
|
formatQuantity: (I) => s(Number(I))
|
|
2586
|
-
}), p =
|
|
2587
|
-
() =>
|
|
2588
|
-
invoice:
|
|
2654
|
+
}), p = B(
|
|
2655
|
+
() => Kn({
|
|
2656
|
+
invoice: i.invoice,
|
|
2589
2657
|
getPeriodTitle: b,
|
|
2590
2658
|
creditsLabel: m({
|
|
2591
2659
|
defaultMessage: "Credits",
|
|
@@ -2600,19 +2668,19 @@ const xn = {
|
|
|
2600
2668
|
formatBalance: g
|
|
2601
2669
|
})
|
|
2602
2670
|
);
|
|
2603
|
-
return (
|
|
2604
|
-
|
|
2605
|
-
(t(!0), l(
|
|
2606
|
-
key:
|
|
2671
|
+
return (O, I) => p.value.length > 0 ? (t(), l("section", Qn, [
|
|
2672
|
+
x("div", Jn, [
|
|
2673
|
+
(t(!0), l(_, null, R(p.value, (U) => (t(), l("section", {
|
|
2674
|
+
key: U.id
|
|
2607
2675
|
}, [
|
|
2608
|
-
n(o(
|
|
2609
|
-
default:
|
|
2610
|
-
n(o(
|
|
2676
|
+
n(o(Le), { class: "mt-4" }, {
|
|
2677
|
+
default: a(() => [
|
|
2678
|
+
n(o($e), {
|
|
2611
2679
|
tag: "h3",
|
|
2612
2680
|
variant: "caps-heading"
|
|
2613
2681
|
}, {
|
|
2614
|
-
default:
|
|
2615
|
-
|
|
2682
|
+
default: a(() => [
|
|
2683
|
+
f(u(U.title), 1)
|
|
2616
2684
|
]),
|
|
2617
2685
|
_: 2
|
|
2618
2686
|
}, 1024)
|
|
@@ -2620,14 +2688,14 @@ const xn = {
|
|
|
2620
2688
|
_: 2
|
|
2621
2689
|
}, 1024),
|
|
2622
2690
|
n(o(j), { class: "mt-3" }, {
|
|
2623
|
-
default:
|
|
2624
|
-
|
|
2625
|
-
n(o(
|
|
2691
|
+
default: a(() => [
|
|
2692
|
+
x("tr", null, [
|
|
2693
|
+
n(o(C), {
|
|
2626
2694
|
left: "",
|
|
2627
2695
|
class: "text-gray-600"
|
|
2628
2696
|
}, {
|
|
2629
|
-
default:
|
|
2630
|
-
|
|
2697
|
+
default: a(() => [
|
|
2698
|
+
f(u(o(c)({
|
|
2631
2699
|
defaultMessage: "Wallet balance",
|
|
2632
2700
|
id: "wallet_balance.details.header",
|
|
2633
2701
|
description: "Section header for invoice wallet balance details"
|
|
@@ -2636,42 +2704,42 @@ const xn = {
|
|
|
2636
2704
|
_: 1
|
|
2637
2705
|
})
|
|
2638
2706
|
]),
|
|
2639
|
-
(t(!0), l(
|
|
2640
|
-
key:
|
|
2707
|
+
(t(!0), l(_, null, R(U.rows, (N) => (t(), l(_, {
|
|
2708
|
+
key: N.id
|
|
2641
2709
|
}, [
|
|
2642
|
-
|
|
2710
|
+
x("tr", Zn, [
|
|
2643
2711
|
n(o(k), { class: "p-0" }, {
|
|
2644
|
-
default:
|
|
2645
|
-
|
|
2712
|
+
default: a(() => [
|
|
2713
|
+
x("button", {
|
|
2646
2714
|
type: "button",
|
|
2647
2715
|
class: "w-full cursor-pointer text-left",
|
|
2648
|
-
"aria-expanded": o(
|
|
2649
|
-
onClick: (
|
|
2716
|
+
"aria-expanded": o(v)(N.id),
|
|
2717
|
+
onClick: (M) => o(r)(N.id)
|
|
2650
2718
|
}, [
|
|
2651
|
-
n(o(
|
|
2719
|
+
n(o(H), {
|
|
2652
2720
|
icon: "keyboard_arrow_down",
|
|
2653
2721
|
size: "md",
|
|
2654
|
-
class:
|
|
2722
|
+
class: A(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(v)(N.id) }])
|
|
2655
2723
|
}, null, 8, ["class"]),
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
], 8,
|
|
2724
|
+
f(" " + u(N.label) + " ", 1),
|
|
2725
|
+
x("span", ti, u(N.rows.length), 1)
|
|
2726
|
+
], 8, ei)
|
|
2659
2727
|
]),
|
|
2660
2728
|
_: 2
|
|
2661
2729
|
}, 1024)
|
|
2662
2730
|
]),
|
|
2663
|
-
o(
|
|
2664
|
-
|
|
2665
|
-
|
|
2731
|
+
o(v)(N.id) ? (t(), l("tr", ni, [
|
|
2732
|
+
x("td", ii, [
|
|
2733
|
+
x("div", ai, [
|
|
2666
2734
|
n(o(j), null, {
|
|
2667
|
-
default:
|
|
2668
|
-
|
|
2669
|
-
n(o(
|
|
2735
|
+
default: a(() => [
|
|
2736
|
+
x("tr", null, [
|
|
2737
|
+
n(o(C), {
|
|
2670
2738
|
left: "",
|
|
2671
2739
|
class: "w-2/5"
|
|
2672
2740
|
}, {
|
|
2673
|
-
default:
|
|
2674
|
-
|
|
2741
|
+
default: a(() => [
|
|
2742
|
+
f(u(o(c)({
|
|
2675
2743
|
defaultMessage: "Wallet breakdown",
|
|
2676
2744
|
id: "invoice_credits.wallet_breakdown.table_header",
|
|
2677
2745
|
description: "Column header for the wallets that paid the invoice, labelled by credit type or as a wallet balance"
|
|
@@ -2679,12 +2747,12 @@ const xn = {
|
|
|
2679
2747
|
]),
|
|
2680
2748
|
_: 1
|
|
2681
2749
|
}),
|
|
2682
|
-
n(o(
|
|
2750
|
+
n(o(C), {
|
|
2683
2751
|
right: "",
|
|
2684
2752
|
class: "w-1/5"
|
|
2685
2753
|
}, {
|
|
2686
|
-
default:
|
|
2687
|
-
|
|
2754
|
+
default: a(() => [
|
|
2755
|
+
f(u(o(c)({
|
|
2688
2756
|
defaultMessage: "Balance",
|
|
2689
2757
|
id: "invoice_credits.balance.table_header",
|
|
2690
2758
|
description: "Column header for the available wallet balance amount"
|
|
@@ -2692,12 +2760,12 @@ const xn = {
|
|
|
2692
2760
|
]),
|
|
2693
2761
|
_: 1
|
|
2694
2762
|
}),
|
|
2695
|
-
n(o(
|
|
2763
|
+
n(o(C), {
|
|
2696
2764
|
right: "",
|
|
2697
2765
|
class: "w-1/5"
|
|
2698
2766
|
}, {
|
|
2699
|
-
default:
|
|
2700
|
-
|
|
2767
|
+
default: a(() => [
|
|
2768
|
+
f(u(o(c)({
|
|
2701
2769
|
defaultMessage: "Used",
|
|
2702
2770
|
id: "invoice_credits.used.table_header",
|
|
2703
2771
|
description: "Column header for the used wallet credit amount"
|
|
@@ -2705,12 +2773,12 @@ const xn = {
|
|
|
2705
2773
|
]),
|
|
2706
2774
|
_: 1
|
|
2707
2775
|
}),
|
|
2708
|
-
n(o(
|
|
2776
|
+
n(o(C), {
|
|
2709
2777
|
right: "",
|
|
2710
2778
|
class: "w-1/5"
|
|
2711
2779
|
}, {
|
|
2712
|
-
default:
|
|
2713
|
-
|
|
2780
|
+
default: a(() => [
|
|
2781
|
+
f(u(o(c)({
|
|
2714
2782
|
defaultMessage: "Remaining",
|
|
2715
2783
|
id: "invoice_credits.remaining.table_header",
|
|
2716
2784
|
description: "Column header for the remaining wallet credit amount"
|
|
@@ -2719,31 +2787,31 @@ const xn = {
|
|
|
2719
2787
|
_: 1
|
|
2720
2788
|
})
|
|
2721
2789
|
]),
|
|
2722
|
-
(t(!0), l(
|
|
2723
|
-
key:
|
|
2790
|
+
(t(!0), l(_, null, R(N.rows, (M) => (t(), l("tr", {
|
|
2791
|
+
key: M.id,
|
|
2724
2792
|
class: "border-t"
|
|
2725
2793
|
}, [
|
|
2726
2794
|
n(o(k), null, {
|
|
2727
|
-
default:
|
|
2728
|
-
|
|
2795
|
+
default: a(() => [
|
|
2796
|
+
f(u(M.label), 1)
|
|
2729
2797
|
]),
|
|
2730
2798
|
_: 2
|
|
2731
2799
|
}, 1024),
|
|
2732
2800
|
n(o(k), { number: "" }, {
|
|
2733
|
-
default:
|
|
2734
|
-
|
|
2801
|
+
default: a(() => [
|
|
2802
|
+
f(u(M.available), 1)
|
|
2735
2803
|
]),
|
|
2736
2804
|
_: 2
|
|
2737
2805
|
}, 1024),
|
|
2738
2806
|
n(o(k), { number: "" }, {
|
|
2739
|
-
default:
|
|
2740
|
-
|
|
2807
|
+
default: a(() => [
|
|
2808
|
+
f(u(M.used), 1)
|
|
2741
2809
|
]),
|
|
2742
2810
|
_: 2
|
|
2743
2811
|
}, 1024),
|
|
2744
2812
|
n(o(k), { number: "" }, {
|
|
2745
|
-
default:
|
|
2746
|
-
|
|
2813
|
+
default: a(() => [
|
|
2814
|
+
f(u(M.left), 1)
|
|
2747
2815
|
]),
|
|
2748
2816
|
_: 2
|
|
2749
2817
|
}, 1024)
|
|
@@ -2762,33 +2830,33 @@ const xn = {
|
|
|
2762
2830
|
])
|
|
2763
2831
|
])) : y("", !0);
|
|
2764
2832
|
}
|
|
2765
|
-
}),
|
|
2833
|
+
}), li = /* @__PURE__ */ S({
|
|
2766
2834
|
__name: "InvoiceBlock",
|
|
2767
2835
|
props: {
|
|
2768
2836
|
invoice: { type: Object }
|
|
2769
2837
|
},
|
|
2770
2838
|
setup(e) {
|
|
2771
|
-
const
|
|
2772
|
-
return (s,
|
|
2839
|
+
const i = e, d = B(() => lt(i.invoice)), { $t: c } = V(), { isMobileViewport: m } = rt();
|
|
2840
|
+
return (s, v) => (t(), h(o(ot), {
|
|
2773
2841
|
class: "sv-invoice__summary grow",
|
|
2774
|
-
title: o(
|
|
2842
|
+
title: o(c)({
|
|
2775
2843
|
defaultMessage: "Invoice",
|
|
2776
2844
|
description: "Title for the invoice block on the invoice details page",
|
|
2777
2845
|
id: "sdk.invoice_details.invoice.title"
|
|
2778
2846
|
})
|
|
2779
2847
|
}, {
|
|
2780
|
-
default:
|
|
2781
|
-
|
|
2782
|
-
class:
|
|
2848
|
+
default: a(() => [
|
|
2849
|
+
x("div", {
|
|
2850
|
+
class: A(["sv-invoice__summary-body", { "p-6 pt-2": !o(m) }])
|
|
2783
2851
|
}, [
|
|
2784
|
-
o(m) ? (t(),
|
|
2852
|
+
o(m) ? (t(), h(o(ut), {
|
|
2785
2853
|
key: 0,
|
|
2786
2854
|
variant: "info",
|
|
2787
2855
|
"has-icon": "",
|
|
2788
2856
|
class: "sv-invoice__download-hint justify-center border-gray-100 bg-gray-50 font-semibold text-gray-800"
|
|
2789
2857
|
}, {
|
|
2790
|
-
default:
|
|
2791
|
-
|
|
2858
|
+
default: a(() => [
|
|
2859
|
+
f(u(o(c)({
|
|
2792
2860
|
defaultMessage: "Download the PDF for a full breakdown",
|
|
2793
2861
|
description: "Download the PDF for a full breakdown",
|
|
2794
2862
|
id: "sdk.invoice_details.invoice.download_pdf"
|
|
@@ -2796,17 +2864,17 @@ const xn = {
|
|
|
2796
2864
|
]),
|
|
2797
2865
|
_: 1
|
|
2798
2866
|
})) : y("", !0),
|
|
2799
|
-
n(o(
|
|
2867
|
+
n(o(Yn), {
|
|
2800
2868
|
class: "sv-invoice__summary-content",
|
|
2801
|
-
invoice:
|
|
2869
|
+
invoice: d.value,
|
|
2802
2870
|
"is-expandable": !o(m)
|
|
2803
2871
|
}, {
|
|
2804
|
-
logo:
|
|
2805
|
-
|
|
2872
|
+
logo: a(() => [
|
|
2873
|
+
E(s.$slots, "logo")
|
|
2806
2874
|
]),
|
|
2807
2875
|
_: 3
|
|
2808
2876
|
}, 8, ["invoice", "is-expandable"]),
|
|
2809
|
-
n(
|
|
2877
|
+
n(oi, {
|
|
2810
2878
|
class: "sv-invoice__credits-breakdown",
|
|
2811
2879
|
invoice: e.invoice
|
|
2812
2880
|
}, null, 8, ["invoice"])
|
|
@@ -2815,7 +2883,7 @@ const xn = {
|
|
|
2815
2883
|
_: 3
|
|
2816
2884
|
}, 8, ["title"]));
|
|
2817
2885
|
}
|
|
2818
|
-
}),
|
|
2886
|
+
}), ri = { class: "sv-invoice sv-root sv-component" }, si = { class: "sv-invoice__body flex flex-col gap-3 lg:flex-row lg:gap-6" }, di = { class: "sv-invoice__aside flex shrink-0 flex-col gap-8 lg:w-72 lg:gap-6" }, ui = /* @__PURE__ */ S({
|
|
2819
2887
|
__name: "Invoice",
|
|
2820
2888
|
props: {
|
|
2821
2889
|
invoice: { type: Object },
|
|
@@ -2824,41 +2892,41 @@ const xn = {
|
|
|
2824
2892
|
configuration: { type: Object }
|
|
2825
2893
|
},
|
|
2826
2894
|
setup(e) {
|
|
2827
|
-
const
|
|
2828
|
-
() => import("../../PaymentHistoryBlock-
|
|
2829
|
-
), { $t:
|
|
2830
|
-
return (
|
|
2831
|
-
var s,
|
|
2832
|
-
return t(), l("div",
|
|
2833
|
-
n(
|
|
2895
|
+
const i = Xe(
|
|
2896
|
+
() => import("../../PaymentHistoryBlock-BSXlneqM.mjs")
|
|
2897
|
+
), { $t: d } = V();
|
|
2898
|
+
return (c, m) => {
|
|
2899
|
+
var s, v;
|
|
2900
|
+
return t(), l("div", ri, [
|
|
2901
|
+
n(Qe, {
|
|
2834
2902
|
class: "sv-invoice__header mb-6",
|
|
2835
2903
|
invoice: e.invoice,
|
|
2836
2904
|
payments: e.payments,
|
|
2837
2905
|
"invoice-download-service": e.invoiceDownloadService,
|
|
2838
2906
|
configuration: e.configuration
|
|
2839
2907
|
}, null, 8, ["invoice", "payments", "invoice-download-service", "configuration"]),
|
|
2840
|
-
|
|
2841
|
-
e.invoice ? (t(),
|
|
2908
|
+
x("div", si, [
|
|
2909
|
+
e.invoice ? (t(), h(li, {
|
|
2842
2910
|
key: 0,
|
|
2843
2911
|
class: "sv-invoice__main",
|
|
2844
2912
|
invoice: e.invoice
|
|
2845
2913
|
}, null, 8, ["invoice"])) : y("", !0),
|
|
2846
|
-
|
|
2847
|
-
n(
|
|
2914
|
+
x("div", di, [
|
|
2915
|
+
n(st, {
|
|
2848
2916
|
class: "sv-invoice__details",
|
|
2849
2917
|
invoice: e.invoice
|
|
2850
2918
|
}, null, 8, ["invoice"]),
|
|
2851
|
-
(s = e.configuration) != null && s.showPaymentAttempts && ((
|
|
2919
|
+
(s = e.configuration) != null && s.showPaymentAttempts && ((v = e.payments) != null && v.length) ? (t(), h(o(i), {
|
|
2852
2920
|
key: 0,
|
|
2853
2921
|
class: "sv-invoice__payment-history",
|
|
2854
2922
|
"payment-attempts": e.payments,
|
|
2855
2923
|
customer: e.invoice.customer
|
|
2856
2924
|
}, null, 8, ["payment-attempts", "customer"])) : y("", !0),
|
|
2857
|
-
e.configuration.showCustomerBillingInformation ? (t(),
|
|
2925
|
+
e.configuration.showCustomerBillingInformation ? (t(), h(o(je), {
|
|
2858
2926
|
key: 1,
|
|
2859
2927
|
class: "sv-invoice__billing-information",
|
|
2860
2928
|
customer: e.invoice.customer,
|
|
2861
|
-
title: o(
|
|
2929
|
+
title: o(d)({
|
|
2862
2930
|
defaultMessage: "Your billing information",
|
|
2863
2931
|
description: "Title for the billing information on the detailed invoice view",
|
|
2864
2932
|
id: "sdk.invoice_details.customer_billing_information.title"
|
|
@@ -2869,7 +2937,7 @@ const xn = {
|
|
|
2869
2937
|
]);
|
|
2870
2938
|
};
|
|
2871
2939
|
}
|
|
2872
|
-
}),
|
|
2940
|
+
}), ci = /* @__PURE__ */ S({
|
|
2873
2941
|
__name: "Invoice.entry",
|
|
2874
2942
|
props: {
|
|
2875
2943
|
environment: { type: String },
|
|
@@ -2886,35 +2954,35 @@ const xn = {
|
|
|
2886
2954
|
configuration: { type: Object }
|
|
2887
2955
|
},
|
|
2888
2956
|
setup(e) {
|
|
2889
|
-
const
|
|
2890
|
-
...
|
|
2957
|
+
const i = Ye("invoice"), d = e, c = B(() => ({
|
|
2958
|
+
...d,
|
|
2891
2959
|
configuration: {
|
|
2892
2960
|
showCustomerBillingInformation: !0,
|
|
2893
2961
|
showDownloadButton: !0,
|
|
2894
2962
|
showPaymentAttempts: !0,
|
|
2895
|
-
...
|
|
2963
|
+
...d.configuration
|
|
2896
2964
|
}
|
|
2897
2965
|
}));
|
|
2898
2966
|
return (m, s) => {
|
|
2899
|
-
var
|
|
2900
|
-
return t(),
|
|
2967
|
+
var v;
|
|
2968
|
+
return t(), h(o(qe), {
|
|
2901
2969
|
entry: m.$props,
|
|
2902
|
-
"component-name": o(
|
|
2970
|
+
"component-name": o(i),
|
|
2903
2971
|
"allowed-portal-types": ["CUSTOMER"],
|
|
2904
|
-
"required-configuration": { invoiceId: (
|
|
2972
|
+
"required-configuration": { invoiceId: (v = e.configuration) == null ? void 0 : v.invoiceId }
|
|
2905
2973
|
}, {
|
|
2906
|
-
default:
|
|
2907
|
-
(t(),
|
|
2908
|
-
key:
|
|
2909
|
-
"invoice-id":
|
|
2974
|
+
default: a(() => [
|
|
2975
|
+
(t(), h(Je, {
|
|
2976
|
+
key: c.value.configuration.invoiceId,
|
|
2977
|
+
"invoice-id": c.value.configuration.invoiceId
|
|
2910
2978
|
}, {
|
|
2911
|
-
default:
|
|
2912
|
-
|
|
2979
|
+
default: a(({ invoice: r, payments: b, invoiceDownloadService: g }) => [
|
|
2980
|
+
r ? (t(), h(ui, {
|
|
2913
2981
|
key: 0,
|
|
2914
|
-
invoice:
|
|
2982
|
+
invoice: r,
|
|
2915
2983
|
"invoice-download-service": g,
|
|
2916
2984
|
payments: b.payments.value,
|
|
2917
|
-
configuration:
|
|
2985
|
+
configuration: c.value.configuration
|
|
2918
2986
|
}, null, 8, ["invoice", "invoice-download-service", "payments", "configuration"])) : y("", !0)
|
|
2919
2987
|
]),
|
|
2920
2988
|
_: 1
|
|
@@ -2924,7 +2992,7 @@ const xn = {
|
|
|
2924
2992
|
}, 8, ["entry", "component-name", "required-configuration"]);
|
|
2925
2993
|
};
|
|
2926
2994
|
}
|
|
2927
|
-
}), { define:
|
|
2995
|
+
}), { define: Pi } = Ke(ci, "invoice");
|
|
2928
2996
|
export {
|
|
2929
|
-
|
|
2997
|
+
Pi as defineSolvimonInvoice
|
|
2930
2998
|
};
|