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