@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.
Files changed (268) hide show
  1. package/README.md +152 -91
  2. package/dist/AddPaymentMethodModal-Cx203VXo.mjs +97 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-BMHhLZnu.mjs +89 -0
  4. package/dist/{Alert.vue.es-ZPG49yR_.mjs → Alert.vue.es-DHJpiSdR.mjs} +1 -1
  5. package/dist/{Amount.vue.es-DPqHB8Xd.mjs → Amount.vue.es-CofcgmXt.mjs} +1 -1
  6. package/dist/AuthProvider.handle-BpFblzFx.mjs +46 -0
  7. package/dist/{Avatar.vue.es-geDQsZwu.mjs → Avatar.vue.es-CJdXXOiG.mjs} +1 -1
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD84aBiU.mjs +64 -0
  9. package/dist/BillingInformationForm.lib-ad8B2Y1O.mjs +32 -0
  10. package/dist/BillingInformationForm.vue_vue_type_script_setup_true_lang-F5OVG0kO.mjs +340 -0
  11. package/dist/BillingInformationModal-Do3Fuu8A.mjs +85 -0
  12. package/dist/{Button.vue.es-j7iYlqtJ.mjs → Button.vue.es-CW7XfMBF.mjs} +1 -1
  13. package/dist/{ChargeOnDemandModal-CR01PkP_.mjs → ChargeOnDemandModal-B4ShPKLS.mjs} +46 -45
  14. package/dist/{Chip.vue.es-Dxx_0dte.mjs → Chip.vue.es-CYwWHyAT.mjs} +2 -2
  15. package/dist/CompanyPurchaseToggle.vue_vue_type_script_setup_true_lang-CVXHCSPb.mjs +510 -0
  16. package/dist/{Comparators.vue.es-DQBI3f7m.mjs → Comparators.vue.es-DYrKlE8t.mjs} +1 -1
  17. package/dist/{ContentWithAsideLayout-Bnbsq8_5.mjs → ContentWithAsideLayout-C2kFcft1.mjs} +1 -1
  18. package/dist/{ContextMenu.vue.es-BJO4U47Q.mjs → ContextMenu.vue.es-EXTx0NEt.mjs} +10 -10
  19. package/dist/{CustomerBillingInformation.vue.es-CmNpqcBw.mjs → CustomerBillingInformation.vue.es-CSKG6V3T.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-DZZuAHIE.mjs +217 -0
  21. package/dist/CustomerShippingAddresses-Bdy4XWjE.mjs +282 -0
  22. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BEKwWob_.mjs +3124 -0
  23. package/dist/{DividerText.vue.es-BusbyeAI.mjs → DividerText.vue.es-Dq0JzI8C.mjs} +1 -1
  24. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-wPma8Os-.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-3gf8pvR7.mjs} +3 -3
  25. package/dist/{ErrorNotification.vue.es-F068p7PY.mjs → ErrorNotification.vue.es-Cw7fqCg1.mjs} +2 -2
  26. package/dist/{FormMessage.vue.es-CwMQpIAW.mjs → FormMessage.vue.es-MrzQoSae.mjs} +1 -1
  27. package/dist/{IconButton.vue.es-D8DtBW9i.mjs → IconButton.vue.es-CpQbFw0x.mjs} +2 -2
  28. package/dist/{IconTitle.vue.es-6VJtjJX2.mjs → IconTitle.vue.es-CcOIFjbE.mjs} +3 -3
  29. package/dist/{Input.vue.es-BLyHcmu4.mjs → Input.vue.es-Cd55vQri.mjs} +4 -4
  30. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CqkGCbvg.mjs} +2 -2
  31. 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
  32. package/dist/{InvoicePreview.vue.es-Cpf66_xV.mjs → InvoicePreview.vue.es-DHh5wruk.mjs} +7 -7
  33. package/dist/{InvoicePricingClauseChip.vue.es-CDrAE901.mjs → InvoicePricingClauseChip.vue.es-ZSOBp1se.mjs} +4 -4
  34. package/dist/{Label.vue.es-es7ZUBSP.mjs → Label.vue.es-CB6G8Krh.mjs} +3 -3
  35. package/dist/LoadFailedNotice.vue_vue_type_script_setup_true_lang-BZCtO2Er.mjs +20 -0
  36. package/dist/{Modal.vue.es-eeR9FmvQ.mjs → Modal.vue.es-CJFTVFSZ.mjs} +138 -127
  37. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-D0pwpqIC.mjs +789 -0
  38. package/dist/{PaymentCompletedCard.vue_vue_type_script_setup_true_lang-CrjVPks0.mjs → PaymentCompletedCard.vue_vue_type_script_setup_true_lang-D08Qpgb0.mjs} +2 -2
  39. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DyjzaTK1.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-dl52PYcq.mjs} +4 -4
  40. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BHQrWy6r.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D0priVnA.mjs} +3 -3
  41. package/dist/{PaymentHistoryBlock-CN42ewCn.mjs → PaymentHistoryBlock-BSXlneqM.mjs} +1 -1
  42. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C3Y5fHvA.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CXy0XGpn.mjs} +5 -5
  43. package/dist/{PaymentIntegrationForm-D3Ye7LZ5.mjs → PaymentIntegrationForm-Diua0GGJ.mjs} +1 -1
  44. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CLlm_Q2j.mjs +161 -0
  45. package/dist/{PaymentIntegrationFormAdyen-Fm-diCCO.mjs → PaymentIntegrationFormAdyen-D4FP0Vj5.mjs} +302 -282
  46. package/dist/{PaymentIntegrationFormStripe-BANBL6za.mjs → PaymentIntegrationFormStripe-vFzF_sCJ.mjs} +126 -117
  47. package/dist/{PaymentMethod.vue.es-t3-VyoE8.mjs → PaymentMethod.vue.es-vs6SaZOh.mjs} +200 -150
  48. package/dist/{PaymentMethodForm-CqP3GoNj.mjs → PaymentMethodForm-Buhe0aRQ.mjs} +1 -1
  49. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-RPPdBw_e.mjs +165 -0
  50. package/dist/{PaymentMethodSelector.vue_vue_type_script_setup_true_lang-D5wmRuCf.mjs → PaymentMethodSelector.vue_vue_type_script_setup_true_lang-DprL5TR8.mjs} +7 -7
  51. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DhkkiJaQ.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BXbevI3r.mjs} +28 -26
  52. package/dist/PaymentMethodsModal-CnJP9UKp.mjs +192 -0
  53. package/dist/PlanCustomizationEditor-KHLSEUbb.mjs +864 -0
  54. package/dist/{PortalLinkUnverified-Cp60_kRJ.mjs → PortalLinkUnverified-DlZAkE93.mjs} +3 -3
  55. package/dist/{PortalNotAvailable-DzSQnfzw.mjs → PortalNotAvailable-CKIomNrm.mjs} +2 -2
  56. package/dist/{PricingGroupRangeInput.vue.es-Srq_3cga.mjs → PricingGroupRangeInput.vue.es-oHD-IT12.mjs} +8 -8
  57. package/dist/{PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-oRijnVnZ.mjs → PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-wCW8YZHM.mjs} +16 -15
  58. package/dist/{RadioGroupExtended.vue.es-BbBMDf6l.mjs → RadioGroupExtended.vue.es-DsShmkKZ.mjs} +5 -5
  59. package/dist/Section.vue.es-DYmEtgBj.mjs +88 -0
  60. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-OM19NPBh.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CANXYTzu.mjs} +2 -2
  61. package/dist/ShippingAddressForm.vue_vue_type_script_setup_true_lang-CJp6ddhZ.mjs +144 -0
  62. package/dist/ShippingAddressesModal-Gxv2KxaW.mjs +283 -0
  63. package/dist/{StepInput.vue.es-ieh4EuJ7.mjs → StepInput.vue.es-sqA-VSsn.mjs} +4 -4
  64. package/dist/SubscriptionCancellationModal-DfAZ_uW6.mjs +4 -0
  65. package/dist/SubscriptionCancellationModal.vue_vue_type_script_setup_true_lang-BlbiDNIu.mjs +240 -0
  66. package/dist/SubscriptionCancellationSuccess.vue_vue_type_script_setup_true_lang-C1ko2xvR.mjs +64 -0
  67. package/dist/SubscriptionDetails.entry.ce-CdWV-8WN.mjs +764 -0
  68. package/dist/{SubscriptionSchedules-DMxX3GpK.mjs → SubscriptionSchedules-BfdVn1XA.mjs} +1 -1
  69. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-C8q8Q6h5.mjs +5413 -0
  70. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-qQ9gJOIs.mjs +90 -0
  71. 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
  72. package/dist/Toggle.vue.es-S2g8WGY_.mjs +99 -0
  73. package/dist/{TooltipParagraph.vue.es-BES3zsYN.mjs → TooltipParagraph.vue.es-Bt-7LHr3.mjs} +18 -18
  74. 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
  75. package/dist/TrialChip.vue.es-VZwQX079.mjs +47 -0
  76. package/dist/addonQuantity-D3bGVqjL.mjs +128 -0
  77. package/dist/adyen-CHgq2l6n.mjs +99 -0
  78. package/dist/adyenSdk-DUTO7xkT.mjs +63 -0
  79. package/dist/{api.es-qgvzNMU-.mjs → api.es-QaC926Xu.mjs} +2 -2
  80. package/dist/components/BillingInformation/BillingInformation.mjs +37 -41
  81. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +45 -462
  82. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +33 -42
  83. package/dist/components/Invoice/Invoice.mjs +1087 -1019
  84. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +38 -47
  85. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +29 -34
  86. package/dist/components/InvoicesList/InvoicesList.mjs +33 -42
  87. package/dist/components/PaymentHistory/PaymentHistory.mjs +39 -48
  88. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +56 -64
  89. package/dist/components/ShippingAddressForm/ShippingAddressForm.ce.d.ts +1 -0
  90. package/dist/components/ShippingAddressForm/ShippingAddressForm.mjs +212 -0
  91. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +34 -42
  92. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +41 -50
  93. package/dist/components/WalletBalances/WalletBalances.mjs +46 -55
  94. package/dist/core/events.types.d.ts +1 -0
  95. package/dist/core/index.mjs +51 -34
  96. package/dist/{customElements-DK4GKNJG.mjs → customElements-B8c354Nu.mjs} +802 -768
  97. package/dist/{customer-lf6S5DBR.mjs → customer-CP-Wz7JO.mjs} +1 -1
  98. package/dist/{de-DE-Cyj_NtiI.mjs → de-DE-C9HrzHpE.mjs} +71 -5
  99. package/dist/{de-DE-UJ6X6jXu.mjs → de-DE-DAQmgEy5.mjs} +82 -19
  100. package/dist/{formControl-BZQLHnOO.mjs → formControl-C18sw44K.mjs} +275 -275
  101. package/dist/{formatting.es-RclXHhKo.mjs → formatting.es-DlJEzreG.mjs} +16 -13
  102. package/dist/{fr-FR-CRFoWQ7J.mjs → fr-FR-CHR3VWvd.mjs} +71 -5
  103. package/dist/{fr-FR-Cvvbkwlj.mjs → fr-FR-fz51-Ubw.mjs} +79 -16
  104. package/dist/{countryData.es-BegoD-cZ.mjs → getCountryNameByCode.es-OGxn_zT0.mjs} +7 -2
  105. package/dist/icon-sprite.svg.es-2S3rv8NW.mjs +4 -0
  106. package/dist/index.es-Bv55VtdE.mjs +633 -0
  107. package/dist/{index.es-BrVTOW5D.mjs → index.es-C7J3WGGo.mjs} +4 -4
  108. package/dist/index.mjs +37 -33
  109. package/dist/invoices-I7PghcPV.mjs +143 -0
  110. package/dist/{it-IT-DnJP5URH.mjs → it-IT-BpCkTMZL.mjs} +73 -10
  111. package/dist/{it-IT-DObZEc-U.mjs → it-IT-Dzc7DmmL.mjs} +71 -5
  112. package/dist/{nl-NL-q9xfTZF0.mjs → nl-NL-22C8OcIM.mjs} +79 -16
  113. package/dist/{nl-NL-C02xHilF.mjs → nl-NL-Dut_QwsY.mjs} +71 -5
  114. package/dist/paymentIntegrationFormLoaders-BFMAMpcA.mjs +31 -0
  115. package/dist/{paymentMethods-8w-ccfY_.mjs → paymentMethods-aGKIi7DS.mjs} +22 -21
  116. package/dist/{paymentOutcome-B6sW1eCV.mjs → paymentOutcome-Cv7hTFVu.mjs} +1 -1
  117. package/dist/paymentRedirect-DaS8Kccc.mjs +66 -0
  118. package/dist/payments-BKoKpoLN.mjs +71 -0
  119. package/dist/preloadPaymentIntegrationForms-Buwal_JR.mjs +9 -0
  120. package/dist/pricing-Y-7ELzN-.mjs +42 -0
  121. package/dist/{pricingItem.es-bCPArbTa.mjs → pricingItem.es-BafitMMY.mjs} +1 -1
  122. package/dist/pricingPlanScheduleOverrides-CGm_-jJq.mjs +291 -0
  123. package/dist/randomUuid-BE_IQ-aq.mjs +10 -0
  124. package/dist/screens/Checkout/Checkout.mjs +1098 -3
  125. package/dist/screens/CheckoutSession/CheckoutSession.ce.d.ts +1 -0
  126. package/dist/screens/CheckoutSession/CheckoutSession.mjs +1322 -0
  127. package/dist/screens/CustomerOverview/CustomerOverview.mjs +209 -133
  128. package/dist/screens/PayInvoice/PayInvoice.mjs +283 -275
  129. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +92 -97
  130. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +2 -2
  131. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +915 -404
  132. package/dist/{subscription-BwzkagDI.mjs → subscription-DQ5mRp_e.mjs} +10 -10
  133. package/dist/subscriptions-B7dNqi1C.mjs +99 -0
  134. package/dist/timePeriod.es-R9U0wLlB.mjs +13 -0
  135. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +11 -14
  136. package/dist/types/components/customer/CheckoutForm/CheckoutAddressFields.types.d.ts +2 -9
  137. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +10 -0
  138. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +6 -0
  139. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +17 -0
  140. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +3 -2
  141. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +3 -2
  142. package/dist/types/components/payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts +2 -0
  143. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +12 -1
  144. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +2 -0
  145. package/dist/types/components/payments/PaymentMethodsModal/PaymentMethodsModal.types.d.ts +22 -0
  146. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +1 -1
  147. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -1
  148. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +2 -2
  149. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +3 -11
  150. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +1 -5
  151. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +11 -0
  152. package/dist/types/components/providers/HostElementProvider/composables/useHostEvent.d.ts +12 -0
  153. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +5 -4
  154. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +3 -3
  155. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +3 -3
  156. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +6 -1
  157. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +1 -0
  158. package/dist/types/components/providers/Provider/Provider.types.d.ts +10 -3
  159. package/dist/types/components/providers/Provider/Provider.vue.d.ts +3 -14
  160. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +1 -1
  161. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +14 -0
  162. package/dist/types/components/subscriptions/OrderSummaryInvoice.types.d.ts +14 -1
  163. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +9 -0
  164. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +4 -0
  165. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +2 -0
  166. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditor.types.d.ts +4 -0
  167. package/dist/types/components/subscriptions/PlanCustomizationForm/UnitsEditorItem.types.d.ts +2 -0
  168. package/dist/types/components/subscriptions/SubscriptionCancellationSuccess/SubscriptionCancellationSuccess.types.d.ts +4 -0
  169. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +10 -9
  170. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +5 -0
  171. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +3 -0
  172. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanChangeSummary.types.d.ts +4 -0
  173. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionPlanSelector.types.d.ts +7 -0
  174. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +1 -0
  175. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +1 -0
  176. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +3 -1
  177. package/dist/types/index.d.ts +5 -1
  178. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +5 -0
  179. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +1 -2
  180. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +6 -2
  181. package/dist/types/public/components/Invoice/Invoice.types.d.ts +7 -7
  182. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +2 -2
  183. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +6 -7
  184. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +1 -1
  185. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +19 -14
  186. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.ce.d.ts +1 -0
  187. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.entry.types.d.ts +6 -0
  188. package/dist/types/public/components/ShippingAddressForm/ShippingAddressForm.types.d.ts +5 -0
  189. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +10 -1
  190. package/dist/types/public/core/action-request.types.d.ts +18 -24
  191. package/dist/types/public/core/events.types.d.ts +99 -0
  192. package/dist/types/public/core/index.d.ts +3 -1
  193. package/dist/types/public/core/types.d.ts +11 -2
  194. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +1 -7
  195. package/dist/types/public/screens/Checkout/Checkout.source.types.d.ts +151 -0
  196. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +7 -30
  197. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.ce.d.ts +1 -0
  198. package/dist/types/public/screens/CheckoutSession/CheckoutSession.entry.types.d.ts +3 -0
  199. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +8 -2
  200. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +0 -6
  201. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +2 -19
  202. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +2 -3
  203. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +2 -1
  204. package/dist/types/services/paymentMethods.types.d.ts +12 -1
  205. package/dist/types/types/EntryBaseProps.d.ts +10 -6
  206. package/dist/types/types/branding.d.ts +15 -0
  207. package/dist/types/types/checkoutSession.d.ts +199 -0
  208. package/dist/types/types/errors.d.ts +2 -0
  209. package/dist/types/types/pricingPlanGroup.d.ts +25 -0
  210. package/dist/{useActionDispatchProvider-ChAHdwR8.mjs → useActionDispatchProvider-BCtk-FGU.mjs} +1 -1
  211. package/dist/useAddressFormats-CtE4QaVU.mjs +1998 -0
  212. package/dist/useCheckoutForm-BhXcmnUi.mjs +3355 -0
  213. package/dist/{useCustomer-CTMhg1nd.mjs → useCustomer-mQysxUwp.mjs} +2 -2
  214. package/dist/useDefaultPaymentMethod-Dliq6_Yw.mjs +39 -0
  215. package/dist/useExperimentalFeature-Bw6bBtay.mjs +6 -0
  216. package/dist/useHostEvent-MtRG6W2B.mjs +12 -0
  217. package/dist/{useIncrementalLoading-CBVutPH8.mjs → useIncrementalLoading-CJSj1945.mjs} +2 -2
  218. package/dist/{useInvoiceData-qUGbBAQK.mjs → useInvoiceData-BEZIvw32.mjs} +2 -2
  219. package/dist/{useInvoicesList-wJvZAJpW.mjs → useInvoicesList-CrXjsmei.mjs} +140 -138
  220. package/dist/{sorting.es-C0pdMgX0.mjs → useIsMounted.es-BNPhTTHE.mjs} +11 -10
  221. package/dist/{useLoadInitialData-UvfYXgbi.mjs → useLoadInitialData-Bomj_1mo.mjs} +1 -1
  222. package/dist/usePaymentFormHold-CYZ4BdOw.mjs +19 -0
  223. package/dist/{usePaymentMethodAvailability-35l4pWdH.mjs → usePaymentMethodAvailability-DR_neLeZ.mjs} +4 -4
  224. package/dist/usePaymentMethodOptions-CuHoQx3K.mjs +67 -0
  225. package/dist/{usePaymentMethods-De7hlLHo.mjs → usePaymentMethods-BDdetXts.mjs} +2 -2
  226. package/dist/{usePayments-hWS7fnOx.mjs → usePayments-B5Z9Kfbv.mjs} +20 -18
  227. package/dist/usePortal-DuLR5Mid.mjs +14 -0
  228. package/dist/{useService-BwzIBIRp.mjs → useService-2aOFBTxU.mjs} +1 -1
  229. package/dist/useShippingAddresses-BvThNpez.mjs +122 -0
  230. package/dist/useSubscription-Dzo-kBpQ.mjs +35 -0
  231. package/dist/useSubscriptionActions-CWaNRoZ7.mjs +44 -0
  232. package/dist/useWatchDebounced-DkXgKe0E.mjs +20 -0
  233. package/dist/{wallets.es-eH2C2ygn.mjs → wallets.es-DRlUVd2R.mjs} +1 -1
  234. package/package.json +41 -11
  235. package/dist/AuthProvider.handle-SRR_04XS.mjs +0 -50
  236. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-nqKbgY7G.mjs +0 -58
  237. package/dist/Checkout.entry.ce-CopWuLJC.mjs +0 -4169
  238. package/dist/CheckoutAddressFields.vue_vue_type_script_setup_true_lang-CEnM1uxK.mjs +0 -828
  239. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Jyb5ZN3s.mjs +0 -136
  240. package/dist/CustomerShippingAddresses-BRPukhRI.mjs +0 -397
  241. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DJnr5D56.mjs +0 -2936
  242. package/dist/OrderSummaryInvoice.vue_vue_type_script_setup_true_lang-B_FpibLA.mjs +0 -441
  243. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D07SEP8a.mjs +0 -181
  244. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-CMRMbL3d.mjs +0 -161
  245. package/dist/PlanCustomizationEditor-B76UNEMm.mjs +0 -791
  246. package/dist/Section.vue.es-Oqn1wGPZ.mjs +0 -72
  247. package/dist/ShippingAddressesModal-c7nqf4Ny.mjs +0 -418
  248. package/dist/SubscriptionDetails.entry.ce-uYv45FGH.mjs +0 -1044
  249. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DXro_64f.mjs +0 -5200
  250. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-BZNsqN4G.mjs +0 -203
  251. package/dist/TrialChip.vue.es-C51z1ZiA.mjs +0 -35
  252. package/dist/addonQuantity-CCVaA3e-.mjs +0 -758
  253. package/dist/adyenSdk-B01MB9Ia.mjs +0 -58
  254. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +0 -8
  255. package/dist/icon-sprite.svg.es-BWBB8SGw.mjs +0 -4
  256. package/dist/invoices-DdREPDXV.mjs +0 -123
  257. package/dist/paymentMethods-Goa25rTs.mjs +0 -61
  258. package/dist/payments-CKpU1K3t.mjs +0 -68
  259. package/dist/pricing-CEaZGgKe.mjs +0 -29
  260. package/dist/pricingPlanScheduleOverrides-BBp-DmpV.mjs +0 -233
  261. package/dist/pricingPlanSchedules-DSMptcAh.mjs +0 -38
  262. package/dist/subscriptions-B5bH8hsI.mjs +0 -66
  263. package/dist/taxId.es-e6NEvprh.mjs +0 -243
  264. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +0 -3
  265. package/dist/useCustomerFormLabels-D4oDnfxA.mjs +0 -1173
  266. package/dist/usePaymentFormHold-Cwdr-vyc.mjs +0 -181
  267. package/dist/usePortal-DUfD6hrA.mjs +0 -7
  268. package/dist/useTimePeriod.es-BUorDLVK.mjs +0 -93
@@ -1,107 +1,112 @@
1
- import { ref as le, defineComponent as L, openBlock as t, createElementBlock as l, normalizeClass as N, createElementVNode as h, createBlock as _, unref as o, createCommentVNode as y, renderSlot as $, Fragment as x, renderList as R, createVNode as n, withCtx as i, createTextVNode as v, toDisplayString as d, withKeys as Y, normalizeProps as fe, guardReactiveProps as ve, computed as P, createSlots as Ue, mergeProps as J, isRef as De, defineAsyncComponent as Re } from "vue";
2
- import { _ as Fe } from "../../CustomerBillingInformation.vue.es-CmNpqcBw.mjs";
3
- import { a as W, d as Ie, q as ye, g as ze, h as We, j as Ve } from "../../customElements-DK4GKNJG.mjs";
4
- import { a as He, _ as je } from "../../InvoiceEntryView.vue_vue_type_script_setup_true_lang-DYskT3r7.mjs";
5
- import { a as j, _ as Ge } from "../../Button.vue.es-j7iYlqtJ.mjs";
6
- import { _ as w } from "../../Amount.vue.es-DPqHB8Xd.mjs";
7
- import { i as Xe } from "../../useService-BwzIBIRp.mjs";
8
- import { _ as qe } from "../../useLazyFloating.es-CycqRyeb.mjs";
9
- import { a as we } from "../../customer.es-DQKl6wFt.mjs";
10
- import { M as $e, a as Ye, f as Me } from "../../formatting.es-RclXHhKo.mjs";
11
- import { _ as Ee, u as se } from "../../Comparators.vue.es-DQBI3f7m.mjs";
12
- import { _ as Ce } from "../../InvoicePricingClauseChip.vue.es-CDrAE901.mjs";
13
- import { g as ge } from "../../getComposedString.es-C__uhJpd.mjs";
14
- import { _ as de, T as ue, a as ce } from "../../TooltipParagraph.vue.es-BES3zsYN.mjs";
15
- import { f as Ke } from "../../index.es-BrVTOW5D.mjs";
16
- import { g as Ne, a as Be, f as Ae } from "../../wallets.es-eH2C2ygn.mjs";
17
- import { _ as Pe } from "../../DividerText.vue.es-BusbyeAI.mjs";
18
- import { _ as Qe } from "../../IconTitle.vue.es-6VJtjJX2.mjs";
19
- import { a as Je } from "../../ContextMenu.vue.es-BJO4U47Q.mjs";
20
- import { _ as Ze } from "../../Section.vue.es-Oqn1wGPZ.mjs";
21
- import { g as pe, w as et } from "../../invoiceState-BJVHaKs7.mjs";
22
- import { u as tt } from "../../useViewport-psZejz_H.mjs";
23
- import { _ as nt } from "../../InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Dl1vTzQD.mjs";
24
- const xe = (e = []) => {
25
- const a = le(e);
26
- return [a, (c) => {
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
- }, it = { class: "flex items-center gap-2" }, at = /* @__PURE__ */ L({
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 a = {
35
+ const i = {
37
36
  info: "info",
38
37
  warning: "error",
39
38
  danger: "error",
40
39
  success: "check_circle"
41
40
  };
42
- return (u, c) => (t(), l("div", {
43
- class: N(["flex items-center justify-between gap-2 rounded-sm border px-4 py-3 text-sm", {
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
- h("div", it, [
51
- e.hasIcon ? (t(), _(o(j), {
49
+ x("div", dt, [
50
+ e.hasIcon ? (t(), h(o(H), {
52
51
  key: 0,
53
- icon: a[e.variant],
52
+ icon: i[e.variant],
54
53
  size: "xs",
55
54
  class: "shrink-0"
56
55
  }, null, 8, ["icon"])) : y("", !0),
57
- h("div", null, [
58
- $(u.$slots, "default")
56
+ x("div", null, [
57
+ E(d.$slots, "default")
59
58
  ])
60
59
  ]),
61
- h("div", null, [
62
- $(u.$slots, "cta")
60
+ x("div", null, [
61
+ E(d.$slots, "cta")
63
62
  ])
64
63
  ], 2));
65
64
  }
66
- }), ot = {}, lt = { class: "w-full table-fixed" };
67
- function rt(e, a) {
68
- return t(), l("table", lt, [
69
- $(e.$slots, "default")
70
- ]);
71
- }
72
- const G = /* @__PURE__ */ qe(ot, [["render", rt]]), k = /* @__PURE__ */ L({
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 (a, u) => (t(), l("td", {
80
- class: N({
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
- $(a.$slots, "default")
90
+ E(i.$slots, "default")
86
91
  ], 2));
87
92
  }
88
- }), M = /* @__PURE__ */ L({
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 (a, u) => (t(), l("th", {
96
- class: N(["border-b py-1.5 text-xs font-bold uppercase text-subtle", { "text-left": e.left, "text-right": e.right }])
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
- $(a.$slots, "default")
103
+ E(i.$slots, "default")
99
104
  ], 2));
100
105
  }
101
- }), st = "INVOICE_PERIOD", dt = "INVOICE_PERIOD_SUBTOTAL", ie = "INVOICE_PERIOD_TOTAL", re = "SUMMARY_LINE_AMOUNT", ut = "SUMMARY_TOTAL_TAX", ct = "SUMMARY_TOTAL_INCLUDING_TAX", mt = "SUMMARY_TOTAL_EXCLUDING_TAX", ft = "SUMMARY_TOTAL_DISCOUNT", vt = "SUMMARY_AMOUNT_DUE", gt = "DEDUCTION", bt = "HAS_SUBLINES", yt = { class: "flex items-center" }, pt = {
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
- }, xt = { class: "flex items-center" }, be = /* @__PURE__ */ L({
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: a, formatNumber: u } = W(), c = e, m = (f) => {
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 === f
125
+ (p) => p.id === r
121
126
  );
122
- return g ? we(g) : a({
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 = (f) => {
132
+ }, s = (r) => {
128
133
  var b;
129
- return ((b = f.usage_based_conversion) == null ? void 0 : b.conditions) ?? f.conditions;
130
- }, r = (f) => {
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 = f.details.conversion) == null ? void 0 : b.credits) == null ? void 0 : g.quantity;
133
- return p === void 0 ? a({
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
- }) : u(+p, { maximumFractionDigits: $e });
142
+ }) : d(+p, { maximumFractionDigits: Ce });
138
143
  };
139
- return (f, b) => e.subLines && e.isOpen ? (t(!0), l(x, { key: 0 }, R(e.subLines, (g, p) => (t(), l(x, { key: p }, [
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: N(["group", { "border-t": p > 0 }])
147
+ class: A(["group", { "border-t": p > 0 }])
143
148
  }, [
144
149
  n(k, { class: "pl-4" }, {
145
- default: i(() => [
146
- h("div", xt, [
147
- h("div", null, d(m(g.processing_only_customer_resource_id)), 1)
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
- $(f.$slots, "subline-content", {
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: N(p > 0 ? "border-t" : "")
163
+ class: A(p > 0 ? "border-t" : "")
159
164
  }, [
160
165
  n(k, null, {
161
- default: i(() => {
162
- var T, I, S, E, C, B;
166
+ default: a(() => {
167
+ var O, I, U, N, M, $;
163
168
  return [
164
- h("div", yt, [
165
- $(f.$slots, "invoice-line-prefix", {
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
- h("div", null, [
171
- h("div", null, [
172
- g.description ? (t(), l(x, { key: 0 }, [
173
- v(d(g.description), 1)
174
- ], 64)) : g.details.description ? (t(), l(x, { key: 1 }, [
175
- v(d(g.details.description), 1)
176
- ], 64)) : (t(), l(x, { key: 2 }, [
177
- v(" N/A ")
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
- (T = s(g)) != null && T.name || (I = s(g)) != null && I.meter_properties ? (t(), l("div", pt, [
181
- (S = s(g)) != null && S.name ? (t(), l(x, { key: 0 }, [
182
- v(d((E = s(g)) == null ? void 0 : E.name), 1)
183
- ], 64)) : (C = s(g)) != null && C.meter_properties ? (t(), _(o(Ee), {
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: (B = s(g)) == null ? void 0 : B.meter_properties
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: i(() => [
199
- v(d(r(g)), 1)
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: i(() => {
205
- var T, I;
209
+ default: a(() => {
210
+ var O, I;
206
211
  return [
207
- (T = g.details.band) != null && T.amount ? (t(), _(w, {
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(x, { key: 1 }, [
211
- v(d(g.details.band.percentage) + "% ", 1)
212
- ], 64)) : (t(), l(x, { key: 2 }, [
213
- v(" N/A ")
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(), _(k, { key: 0 }, {
220
- default: i(() => [...b[0] || (b[0] = [
221
- v(" ", -1)
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(), _(k, {
230
+ g.details.amount ? (t(), h(k, {
226
231
  key: 1,
227
232
  class: "text-right tabular-nums"
228
233
  }, {
229
- default: i(() => [
234
+ default: a(() => [
230
235
  n(w, {
231
236
  value: g.details.amount,
232
- "data-testid": o(dt)
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
- }), ht = ["tabindex", "onClick"], _t = { class: "flex items-center" }, kt = /* @__PURE__ */ L({
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 a = W(), { getIsOpen: u, toggle: c } = se(), m = (f, b) => {
252
- c(s(f, b));
253
- }, s = (f, b) => `${f}-line-${b}`, r = (f) => {
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 f.description ?? ((b = f.details) == null ? void 0 : b.description) ?? a.$t({
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 (f, b) => (t(), _(G, null, {
262
- default: i(() => [
263
- h("tr", null, [
264
- n(M, {
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: i(() => [
269
- v(d(o(a).$t({
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(M, {
282
+ n(C, {
278
283
  right: "",
279
284
  class: "w-60"
280
285
  }, {
281
- default: i(() => [
282
- v(d(o(a).$t({
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(x, null, R(e.commitments, (g, p) => (t(), l(x, { key: p }, [
292
- h("tr", {
293
- class: N(["border-t", { "cursor-pointer": g.sub_lines }]),
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: (T) => m(e.groupOrder, g.line_order)
300
+ onClick: (O) => m(e.groupOrder, g.line_order)
296
301
  }, [
297
302
  n(k, { colspan: "2" }, {
298
- default: i(() => {
299
- var T;
303
+ default: a(() => {
304
+ var O;
300
305
  return [
301
- g.sub_lines ? (t(), _(j, {
306
+ g.sub_lines ? (t(), h(H, {
302
307
  key: 0,
303
308
  icon: "keyboard_arrow_down",
304
309
  size: "md",
305
- class: N(["absolute -translate-x-7 text-slate-400", {
306
- "-rotate-90": !o(u)(s(e.groupOrder, g.line_order))
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
- h("div", _t, [
310
- $(f.$slots, "invoice-line-prefix", {
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(Ce, {
320
+ n(Ae, {
316
321
  "clause-type": "COMMITMENT",
317
- "invoice-line-description": r(g),
318
- "price-details-band": (T = g.details) == null ? void 0 : T.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: i(() => [...b[0] || (b[0] = [
327
- v(" ", -1)
331
+ default: a(() => [...b[0] || (b[0] = [
332
+ f(" ", -1)
328
333
  ])]),
329
334
  _: 1
330
335
  }),
331
336
  n(k, { number: "" }, {
332
- default: i(() => {
333
- var T;
337
+ default: a(() => {
338
+ var O;
334
339
  return [
335
- (T = g.details) != null && T.amount ? (t(), _(w, {
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(re)
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, ht),
345
- n(be, {
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(u)(s(e.groupOrder, g.line_order)),
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
- }), Tt = ["tabindex", "onClick"], Ot = { class: "flex items-center" }, It = /* @__PURE__ */ L({
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 a = W(), { getIsOpen: u, toggle: c } = se(), m = (r, f) => {
378
- c(s(r, f));
379
- }, s = (r, f) => `${r}-line-${f}`;
380
- return (r, f) => (t(), _(G, null, {
381
- default: i(() => [
382
- h("tr", null, [
383
- n(M, {
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: i(() => [
388
- v(d(o(a).$t({
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(M, { colspan: "2" }, {
397
- default: i(() => [...f[0] || (f[0] = [
398
- v(" ", -1)
401
+ n(C, { colspan: "2" }, {
402
+ default: a(() => [...r[0] || (r[0] = [
403
+ f(" ", -1)
399
404
  ])]),
400
405
  _: 1
401
406
  }),
402
- n(M, {
407
+ n(C, {
403
408
  left: "",
404
409
  class: "w-1/5"
405
410
  }, {
406
- default: i(() => [
407
- v(d(e.type === "DISCOUNT" ? o(a).$t({
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(a).$t({
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(M, {
424
+ n(C, {
420
425
  left: "",
421
426
  class: "w-1/5"
422
427
  }, {
423
- default: i(() => [
424
- v(d(e.type === "DISCOUNT" ? o(a).$t({
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(M, {
437
+ n(C, {
433
438
  right: "",
434
439
  class: "w-1/5"
435
440
  }, {
436
- default: i(() => [
437
- v(d(o(a).$t({
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(x, null, R(e.lines, (b, g) => (t(), l(x, { key: g }, [
447
- h("tr", {
448
- class: N(["border-t", { "cursor-pointer": e.isExpandable }]),
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: i(() => {
454
- var p, T;
458
+ default: a(() => {
459
+ var p, O;
455
460
  return [
456
- b.sub_lines ? (t(), _(j, {
461
+ b.sub_lines ? (t(), h(H, {
457
462
  key: 0,
458
463
  icon: "keyboard_arrow_down",
459
464
  size: "md",
460
- class: N(["absolute -translate-x-7 text-slate-400", {
461
- "-rotate-90": !o(u)(s(e.groupOrder, b.line_order))
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
- h("div", Ot, [
465
- $(r.$slots, "invoice-line-prefix", {
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(x, { key: 0 }, [
471
- v(d(b.description), 1)
472
- ], 64)) : (p = b.details) != null && p.description ? (t(), l(x, { key: 1 }, [
473
- v(d((T = b.details) == null ? void 0 : T.description), 1)
474
- ], 64)) : (t(), l(x, { key: 2 }, [
475
- v("N/A")
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: i(() => [...f[1] || (f[1] = [
484
- v(" ", -1)
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: i(() => {
490
- var p, T, I;
494
+ default: a(() => {
495
+ var p, O, I;
491
496
  return [
492
- v(d((T = (p = b.details) == null ? void 0 : p.band) != null && T.percentage ? `${(I = b.details) == null ? void 0 : I.band.percentage}%` : " "), 1)
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: i(() => [...f[2] || (f[2] = [
499
- v(" ", -1)
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: i(() => {
512
+ default: a(() => {
508
513
  var p;
509
514
  return [
510
- (p = b.details) != null && p.amount ? (t(), _(w, {
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(re)
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, Tt),
520
- n(be, {
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(u)(s(e.groupOrder, b.line_order)),
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
- }), ae = (e) => {
537
- var a;
538
- return (a = e.lines) != null && a.some((u) => !!u.sub_lines) ? bt : void 0;
539
- }, wt = ["tabindex"], $t = { key: 0 }, Mt = {
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
- }, Et = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Ct = /* @__PURE__ */ L({
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 a = W();
560
- return (u, c) => (t(), l(x, null, [
561
- h("tr", {
562
- class: N(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
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] = Y((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
567
- c[2] || (c[2] = Y((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
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: i(() => [
572
- e.isExpandable ? (t(), _(j, {
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: N(["absolute -translate-x-7 text-slate-400", {
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
- v(" " + d(o(a).$t({
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: i(() => [
592
- e.amountType === "INCLUDING_TAX" ? (t(), _(w, {
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(ie),
596
- "data-type": o(ae)(e.group)
597
- }, null, 8, ["value", "data-testid", "data-type"])) : (t(), _(w, {
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(ie),
601
- "data-type": o(ae)(e.group)
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, wt),
607
- (e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr", $t, [
608
- h("td", Mt, [
609
- h("div", Et, [
610
- n(kt, {
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": i((m) => [
623
- $(u.$slots, "invoice-line-prefix", fe(ve(m)))
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
- }), Nt = ["tabindex"], Bt = { key: 0 }, At = {
637
+ }), Pt = ["tabindex"], Ut = { key: 0 }, St = {
633
638
  colspan: "2",
634
639
  class: "p-0"
635
- }, Pt = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, St = /* @__PURE__ */ L({
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 (a, u) => (t(), l(x, null, [
654
- h("tr", {
655
- class: N(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
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: u[0] || (u[0] = (c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
662
+ onClick: d[0] || (d[0] = (c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
658
663
  onKeyup: [
659
- u[1] || (u[1] = Y((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
660
- u[2] || (u[2] = Y((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
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: i(() => [
665
- e.isExpandable ? (t(), _(j, {
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: N(["absolute -translate-x-7 text-slate-400", {
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
- v(" " + d(e.heading), 1)
680
+ f(" " + u(e.heading), 1)
676
681
  ]),
677
682
  _: 1
678
683
  }),
679
684
  n(k, { number: "" }, {
680
- default: i(() => [
681
- e.amountType === "INCLUDING_TAX" ? (t(), _(w, {
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(ie),
685
- "data-type": o(ae)(e.group)
686
- }, null, 8, ["value", "data-testid", "data-type"])) : (t(), _(w, {
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(ie),
690
- "data-type": o(ae)(e.group)
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, Nt),
696
- (e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), l("tr", Bt, [
697
- h("td", At, [
698
- h("div", Pt, [
699
- n(It, {
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": i((c) => [
713
- $(a.$slots, "invoice-line-prefix", fe(ve(c)))
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
- }), Lt = (e, a) => {
723
- if (a)
727
+ }), Rt = (e, i) => {
728
+ if (i)
724
729
  return e.forwarded_from_customer_id;
725
- }, Ut = (e) => {
726
- let a = { kind: "default" }, u = { kind: "default" };
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
- a = { kind: "number", value: +e.tier_lower_bound.number };
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
- a = { kind: "amount", currency: m, quantity: c ?? 0 };
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
- u = { kind: "number", value: +e.tier_top_bound.number };
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
- u = { kind: "amount", currency: m, quantity: c };
753
+ d = { kind: "amount", currency: m, quantity: c };
738
754
  }
739
- return { lowerBound: a, topBound: u };
740
- }, Dt = (e) => {
741
- var a, u, c, m;
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: (a = e.band) == null ? void 0 : a.minimum_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: (u = e.band) == null ? void 0 : u.maximum_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
- }, Rt = { class: "items-left flex flex-col gap-1 leading-none" }, Ft = { class: "flex items-center" }, zt = {
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
- }, Wt = { key: 0 }, Vt = {
775
+ }, Ht = { key: 0 }, Xt = {
760
776
  key: 1,
761
777
  class: "text-xs text-secondary"
762
- }, Ht = {
778
+ }, jt = {
763
779
  key: 2,
764
780
  class: "text-xs text-secondary"
765
- }, jt = { class: "text-[9pt] text-secondary" }, Gt = /* @__PURE__ */ L({
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: a, formatNumber: u } = W(), c = e, m = (g) => {
792
+ const { $t: i, formatNumber: d } = V(), c = e, m = (g) => {
777
793
  if (g.kind !== "default")
778
- return g.kind === "number" ? u(g.value) : `${g.currency} ${g.quantity}`;
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: T } = Ut(g), I = m(T);
797
+ const { lowerBound: p, topBound: O } = Ft(g), I = m(O);
782
798
  return (m(p) ?? "0") + (I ? ` - ${I}` : "+");
783
- }, r = P(() => {
799
+ }, v = B(() => {
784
800
  var g;
785
801
  return (g = c.data.details) == null ? void 0 : g.included_volume_details;
786
- }), f = P(() => Dt(c.data.details)), b = P(() => {
787
- var g, p;
788
- return (g = c.data) != null && g.product_items ? ge(c.data.product_items.map((T) => T.name)) : ((p = c.data) == null ? void 0 : p.description) ?? "N/A";
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(x, null, [
806
+ return (g, p) => (t(), l(_, null, [
791
807
  n(k, { class: "align-top" }, {
792
- default: i(() => {
793
- var T, I, S, E, C, B, V, A, H;
808
+ default: a(() => {
809
+ var O, I, U, N, M, $, D, P, G;
794
810
  return [
795
- h("div", Rt, [
796
- h("div", null, [
797
- e.data.sub_lines ? (t(), _(j, {
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: N(["absolute -translate-x-7 -translate-y-2 text-slate-400", {
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
- h("div", Ft, [
806
- $(g.$slots, "invoice-line-prefix", {
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(x, { key: 0 }, [
812
- v(d(b.value) + " ", 1),
813
- e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), l("div", zt, d(o(Ye)(e.data.type)), 1)) : y("", !0)
814
- ], 64)) : (t(), _(Ce, {
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": (T = e.data.details) == null ? void 0 : T.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) && !r.value && ((I = e.data.details) != null && I.band) ? (t(), l("div", Wt, d(s((S = e.data.details) == null ? void 0 : S.band)), 1)) : y("", !0),
823
- (C = (E = e.data.details) == null ? void 0 : E.split_pricing) != null && C.meter_properties ? (t(), l("span", Vt, [
824
- (t(!0), l(x, null, R((V = (B = e.data.details) == null ? void 0 : B.split_pricing) == null ? void 0 : V.meter_properties, (X, q) => (t(), l(x, null, [
825
- v(d(X.meter_property.name) + ": " + d(X.value), 1),
826
- q < e.data.details.split_pricing.meter_properties.length - 1 ? (t(), l(x, { key: 0 }, [
827
- v(d(", "))
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
- (A = e.data.conditions) != null && A.name || (H = e.data.conditions) != null && H.meter_properties ? (t(), l("div", Ht, [
832
- e.data.conditions.name ? (t(), l(x, { key: 0 }, [
833
- v(d(e.data.conditions.name), 1)
834
- ], 64)) : e.data.conditions.meter_properties ? (t(), _(o(Ee), {
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
- h("span", jt, [
841
- f.value.kind === "band_minimum_amount" ? (t(), l(x, { key: 0 }, [
842
- v(d(o(a)({
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
- f.value.amount ? (t(), _(w, {
863
+ r.value.amount ? (t(), h(w, {
848
864
  key: 0,
849
- value: f.value.amount
865
+ value: r.value.amount
850
866
  }, null, 8, ["value"])) : y("", !0)
851
- ], 64)) : f.value.kind === "price_bound_within_bounds" ? (t(), l(x, { key: 1 }, [
852
- v(d(o(a)({
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)) : f.value.kind === "price_bound_maximum_amount" ? (t(), l(x, { key: 2 }, [
858
- v(d(o(a)({
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
- f.value.amount ? (t(), _(w, {
879
+ r.value.amount ? (t(), h(w, {
864
880
  key: 0,
865
- value: f.value.amount
881
+ value: r.value.amount
866
882
  }, null, 8, ["value"])) : y("", !0)
867
- ], 64)) : f.value.kind === "band_minimum_number" ? (t(), l(x, { key: 3 }, [
868
- v(d(o(a)({
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
- })) + " " + d(f.value.value), 1)
873
- ], 64)) : f.value.kind === "band_maximum_number" ? (t(), l(x, { key: 4 }, [
874
- v(d(o(a)({
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
- })) + " " + d(f.value.value), 1)
894
+ })) + " " + u(r.value.value), 1)
879
895
  ], 64)) : y("", !0)
880
896
  ])
881
897
  ];
882
898
  }),
883
899
  _: 3
884
900
  }),
885
- $(g.$slots, "line-content", {
901
+ E(g.$slots, "line-content", {
886
902
  details: e.data.details
887
903
  })
888
904
  ], 64));
889
905
  }
890
- }), Xt = (e, a, u) => {
891
- var c, m;
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 (u && ((m = (c = a == null ? void 0 : a.conversion) == null ? void 0 : c.credits) != null && m.quantity))
894
- return { kind: "conversion-credits", value: a.conversion.credits.quantity };
895
- if (a != null && a.price_bound) {
896
- const { price_bound: s, meter_value: r, band: f } = a;
897
- return s === "BELOW_MINIMUM_AMOUNT" || s === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: r.count } : s === "NOT_HIT" && "amount" in r && r.amount ? { kind: "amount", amount: r.amount } : s === "NOT_HIT" && "number" in r && r.number ? { kind: "raw", value: r.number } : s === "RATIO" && r.number ? { kind: "number", value: +r.number } : s === "BELOW_MINIMUM_NUMBER" && (f != null && f.minimum_number) ? { kind: "number", value: +f.minimum_number } : s === "ABOVE_MAXIMUM_NUMBER" && (f != null && f.maximum_number) ? { kind: "number", value: +f.maximum_number } : { kind: "hidden" };
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 a != null && a.meter_value && "number" in a.meter_value ? { kind: "number", value: +a.meter_value.number } : a != null && a.meter_value && "amount" in a.meter_value ? { kind: "amount", amount: a.meter_value.amount } : { kind: "one" };
900
- }, qt = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Yt = (e, a, u) => {
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 (a != null && a.price_bound) {
903
- const { price_bound: s, band: r, amount: f } = a;
904
- if (s === "BELOW_MINIMUM_AMOUNT" && (r != null && r.minimum_amount))
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 (s === "ABOVE_MAXIMUM_AMOUNT" && (r != null && r.maximum_amount))
926
+ if (v === "ABOVE_MAXIMUM_AMOUNT" && (r != null && r.maximum_amount))
907
927
  return { kind: "amount", amount: r.maximum_amount };
908
- if (s === "RATIO")
909
- return { kind: "amount", amount: (u === "PER_SEAT" ? r == null ? void 0 : r.amount : void 0) ?? f, suffix: { kind: "tier-top-bound" } };
910
- if (qt.includes(s)) {
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 && f)
916
- return { kind: "amount", amount: f, suffix: { kind: "fixed-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 c = a == null ? void 0 : a.band, m = a == null ? void 0 : a.amount;
921
- return c && c.amount ? { kind: "amount", amount: c.amount, suffix: { kind: "block-size-or-per-unit" } } : c && "percentage" in c ? { kind: "percentage", value: c.percentage } : c && m ? e === "STAIR_STEP" || e === "STAIR_STEP_TOP_UP" ? { kind: "amount", amount: m, suffix: { kind: "fixed-amount" } } : e === "TOP_TIERED" ? { kind: "amount", amount: m, suffix: { kind: "per-unit" } } : e === "FLAT" ? { kind: "amount", amount: m, suffix: { kind: "flat-fee" } } : { kind: "amount", amount: m } : { kind: "hidden" };
922
- }, Kt = {
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
- }, Qt = {
945
+ }, en = {
926
946
  key: 1,
927
947
  class: "tabular-nums"
928
- }, Jt = {
948
+ }, tn = {
929
949
  key: 0,
930
950
  class: "text-2xs text-secondary"
931
- }, Zt = {
951
+ }, nn = {
932
952
  key: 1,
933
953
  class: "text-2xs text-secondary"
934
- }, en = {
954
+ }, an = {
935
955
  key: 0,
936
956
  class: "text-2xs text-secondary"
937
- }, tn = {
957
+ }, on = {
938
958
  key: 1,
939
959
  class: "text-2xs text-secondary"
940
- }, nn = {
960
+ }, ln = {
941
961
  key: 2,
942
962
  class: "text-2xs text-secondary"
943
- }, an = {
963
+ }, rn = {
944
964
  key: 3,
945
965
  class: "text-2xs text-secondary"
946
- }, on = {
966
+ }, sn = {
947
967
  key: 4,
948
968
  class: "text-2xs text-secondary"
949
- }, ln = { class: "text-2xs text-secondary" }, rn = {
969
+ }, dn = { class: "text-2xs text-secondary" }, un = {
950
970
  key: 0,
951
971
  class: "flex justify-end"
952
- }, sn = { class: "flex items-center justify-end gap-1" }, dn = {
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
- }, un = {
975
+ }, vn = {
956
976
  key: 1,
957
977
  class: "inline-block"
958
- }, cn = { class: "flex items-center justify-end gap-1" }, he = /* @__PURE__ */ L({
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 a = e, u = P(() => {
973
- var B;
974
- return (B = a.details) == null ? void 0 : B.included_volume_details;
975
- }), c = P(
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 B;
978
- return (B = u.value) == null ? void 0 : B.available_included_volume;
998
+ var $;
999
+ return ($ = d.value) == null ? void 0 : $.available_included_volume;
979
1000
  }
980
- ), m = P(
981
- () => Xt(a.pricingType, a.details, a.preferConversionCredits)
982
- ), s = P(
983
- () => Yt(a.pricingType, a.details, a.modelType)
984
- ), { $t: r, formatNumber: f } = W(), b = P(
985
- () => r({
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 = P(
991
- () => r({
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 = P(() => {
997
- var B, V;
998
- const A = (V = (B = a.details) == null ? void 0 : B.band) == null ? void 0 : V.tier_top_bound;
999
- return A && "number" in A ? A.number : void 0;
1000
- }), T = P(() => {
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 r(
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 = P(
1041
+ }), I = B(
1011
1042
  () => {
1012
- var B, V;
1013
- return a.modelType === "PER_SEAT" ? (V = (B = a.details) == null ? void 0 : B.band) == null ? void 0 : V.amount : void 0;
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
- ), S = P(
1016
- () => a.modelType === "PER_SEAT" ? r({
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
- }) : r({
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
- ), E = P(() => {
1026
- var B, V;
1027
- const A = (V = (B = a.details) == null ? void 0 : B.band) == null ? void 0 : V.block_size;
1028
- return A && "number" in A ? A.number : void 0;
1029
- }), C = P(() => {
1030
- if (E.value !== void 0)
1031
- return r(
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: +E.value,
1039
- formattedCount: f(+E.value)
1069
+ count: +N.value,
1070
+ formattedCount: r(+N.value)
1040
1071
  }
1041
1072
  );
1042
1073
  });
1043
- return (B, V) => (t(), l(x, null, [
1074
+ return ($, D) => (t(), l(_, null, [
1044
1075
  n(k, {
1045
1076
  number: "",
1046
1077
  class: "align-top"
1047
1078
  }, {
1048
- default: i(() => {
1049
- var A;
1079
+ default: a(() => {
1080
+ var P;
1050
1081
  return [
1051
- m.value.kind === "raw" ? (t(), l(x, { key: 0 }, [
1052
- v(d(m.value.value), 1)
1053
- ], 64)) : m.value.kind === "amount" ? (t(), _(w, {
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(x, { key: 2 }, [
1057
- v(d(o(f)(m.value.value)), 1)
1058
- ], 64)) : m.value.kind === "conversion-credits" ? (t(), l(x, { key: 3 }, [
1059
- v(d(o(f)(+m.value.value, {
1060
- maximumFractionDigits: o($e)
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(x, { key: 4 }, [
1063
- v("1")
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" && !((A = e.details) != null && A.price_bound) && c.value ? (t(), l("div", Kt, [
1066
- c.value.type === "AMOUNT" ? (t(), l(x, { key: 0 }, [
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
- v(" " + d(o(r)({
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", Qt, d(c.value.number) + " " + d(o(r)({
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(), _(k, {
1116
+ s.value.kind === "pass-through" ? (t(), h(k, {
1086
1117
  key: 0,
1087
1118
  class: "text-right align-top"
1088
1119
  }, {
1089
- default: i(() => [
1090
- v(d(o(r)({
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(), _(k, {
1128
+ })) : (t(), h(k, {
1098
1129
  key: 1,
1099
1130
  number: "",
1100
1131
  class: "align-top"
1101
1132
  }, {
1102
- default: i(() => {
1103
- var A, H, X, q, Z;
1133
+ default: a(() => {
1134
+ var P, G, q, Y, X;
1104
1135
  return [
1105
- s.value.kind === "amount" ? (t(), l(x, { key: 0 }, [
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
- ((A = s.value.suffix) == null ? void 0 : A.kind) === "tier-top-bound" ? (t(), l(x, { key: 0 }, [
1110
- T.value ? (t(), l("div", Jt, d(T.value), 1)) : I.value ? (t(), l("div", Zt, d(S.value), 1)) : y("", !0)
1111
- ], 64)) : ((H = s.value.suffix) == null ? void 0 : H.kind) === "block-size-or-per-unit" ? (t(), l(x, { key: 1 }, [
1112
- C.value ? (t(), l("div", en, d(C.value), 1)) : e.modelType !== "RECURRING" ? (t(), l("div", tn, d(S.value), 1)) : y("", !0)
1113
- ], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), l("div", nn, d(S.value), 1)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "fixed-amount" ? (t(), l("div", an, d(b.value), 1)) : ((Z = s.value.suffix) == null ? void 0 : Z.kind) === "flat-fee" ? (t(), l("div", on, d(g.value), 1)) : y("", !0)
1114
- ], 64)) : s.value.kind === "percentage" ? (t(), l(x, { key: 1 }, [
1115
- v(d(s.value.value) + "% ", 1)
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(), _(k, {
1152
+ e.showTaxPerLineItem ? (t(), h(k, {
1122
1153
  key: 2,
1123
1154
  number: "",
1124
1155
  class: "align-top"
1125
1156
  }, {
1126
- default: i(() => [
1127
- e.hideTaxDetails ? y("", !0) : (t(!0), l(x, { key: 0 }, R(e.taxCategories, (A, H) => (t(), l("div", {
1128
- key: H,
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
- h("div", null, d(A.percentage) + "%", 1),
1132
- h("div", ln, [
1162
+ x("div", null, u(P.percentage) + "%", 1),
1163
+ x("div", dn, [
1133
1164
  n(w, {
1134
- value: A.tax_amount
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: i(() => {
1146
- var A, H, X, q, Z;
1176
+ default: a(() => {
1177
+ var P, G, q, Y, X;
1147
1178
  return [
1148
- (H = (A = e.details) == null ? void 0 : A.amount) != null && H.currency && ((q = (X = e.details) == null ? void 0 : X.amount) != null && q.quantity) ? (t(), l("div", rn, [
1149
- e.showTaxPerLineItem ? (t(!0), l(x, { key: 0 }, R(e.taxCategories, (oe, O) => {
1150
- var D;
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: O,
1183
+ key: re,
1153
1184
  class: "inline-block"
1154
1185
  }, [
1155
- h("div", sn, [
1186
+ x("div", cn, [
1156
1187
  n(w, {
1157
1188
  value: e.amount ?? e.details.amount,
1158
- "data-testid": O === 0 ? o(re) : void 0
1189
+ "data-testid": re === 0 ? o(de) : void 0
1159
1190
  }, null, 8, ["value", "data-testid"]),
1160
- ((D = e.details) == null ? void 0 : D.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), _(de, {
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: i(() => [
1165
- n(ue, null, {
1166
- default: i(() => [
1167
- n(ce, null, {
1168
- default: i(() => [
1169
- v(d(o(r)({
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: i(() => [
1186
- n(j, {
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", dn, [
1195
- e.amountType === "INCLUDING_TAX" ? (t(), l(x, { key: 0 }, [
1196
- v(d(o(r)({
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: oe.base_amount
1233
+ value: ee.base_amount
1203
1234
  }, null, 8, ["value"])
1204
- ], 64)) : (t(), l(x, { key: 1 }, [
1205
- v(d(o(r)({
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: oe.total_amount
1242
+ value: ee.total_amount
1212
1243
  }, null, 8, ["value"])
1213
1244
  ], 64))
1214
1245
  ]))
1215
1246
  ]);
1216
- }), 128)) : (t(), l("div", un, [
1217
- h("div", cn, [
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(re)
1251
+ "data-testid": o(de)
1221
1252
  }, null, 8, ["value", "data-testid"]),
1222
- ((Z = e.details) == null ? void 0 : Z.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), _(de, {
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: i(() => [
1227
- n(ue, null, {
1228
- default: i(() => [
1229
- n(ce, null, {
1230
- default: i(() => [
1231
- v(d(o(r)({
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: i(() => [
1248
- n(j, {
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
- $(B.$slots, "one-off-line-context-menu")
1258
- ])) : (t(), l(x, { key: 1 }, [
1259
- v("-")
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
- }), mn = ["DISCOUNT", "MARKUP"], fn = (e) => {
1268
- const a = [...e].sort((r, f) => r.line_order - f.line_order), u = (r) => mn.includes(r.type), c = (r) => !!r.pricing_item_config_id && a.some(
1269
- (f) => !u(f) && f.pricing_item_config_id === r.pricing_item_config_id
1270
- ), m = a.filter((r) => u(r) && c(r)), s = a.filter((r) => !m.includes(r));
1271
- return m.forEach((r) => {
1272
- const f = s.findLastIndex(
1273
- (b) => b.pricing_item_config_id === r.pricing_item_config_id && (!u(b) || m.includes(b))
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(f + 1, 0, r);
1306
+ s.splice(r + 1, 0, v);
1276
1307
  }), s;
1277
- }, vn = ["tabindex", "onClick"], Se = /* @__PURE__ */ L({
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 a = e, u = P(() => fn(a.group.lines ?? [])), c = W(), { getIsOpen: m, toggle: s } = se(), r = (b, g) => {
1293
- s(f(b, g));
1294
- }, f = (b, g) => `${b}-line-${g}`;
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(G, null, {
1297
- default: i(() => [
1298
- h("tr", null, [
1299
- n(M, {
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: i(() => [
1304
- v(d(o(c).$t({
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(M, {
1343
+ n(C, {
1313
1344
  right: "",
1314
1345
  class: "w-1/5 text-secondary"
1315
1346
  }, {
1316
- default: i(() => [
1317
- v(d(o(c).$t({
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(M, {
1356
+ n(C, {
1326
1357
  right: "",
1327
1358
  class: "w-1/5 text-secondary"
1328
1359
  }, {
1329
- default: i(() => [
1330
- v(d(o(c).$t({
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(), _(M, {
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: i(() => [
1344
- v(d(o(c).$t({
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(M, {
1383
+ n(C, {
1353
1384
  right: "",
1354
1385
  class: "w-1/5 text-secondary"
1355
1386
  }, {
1356
- default: i(() => [
1357
- v(d(o(c).$t({
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(x, null, R(u.value, (p, T) => (t(), l(x, { key: T }, [
1367
- h("tr", {
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: N(["group", {
1400
+ class: A(["group", {
1370
1401
  "cursor-pointer": e.isExpandable && p.sub_lines,
1371
- "border-t": T !== 0
1402
+ "border-t": O !== 0
1372
1403
  }]),
1373
- onClick: (I) => r(e.group.group_order, p.line_order)
1404
+ onClick: (I) => v(e.group.group_order, p.line_order)
1374
1405
  }, [
1375
- (t(), _(Gt, {
1376
- key: T,
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": T === u.value.length - 1,
1411
+ "is-last": O === d.value.length - 1,
1381
1412
  "group-type": e.group.type,
1382
- "is-expanded": o(m)(f(e.group.group_order, p.line_order))
1413
+ "is-expanded": o(m)(r(e.group.group_order, p.line_order))
1383
1414
  }, {
1384
- "invoice-line-prefix": i((I) => [
1385
- $(b.$slots, "invoice-line-prefix", J({ ref_for: !0 }, I))
1415
+ "invoice-line-prefix": a((I) => [
1416
+ E(b.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, I))
1386
1417
  ]),
1387
- "line-content": i((I) => {
1388
- var S, E;
1418
+ "line-content": a((I) => {
1419
+ var U, N, M, $, D;
1389
1420
  return [
1390
- n(he, {
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": (E = (S = p.product_items) == null ? void 0 : S[0]) == null ? void 0 : E.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
- }, Ue({ _: 2 }, [
1430
+ }, Ge({ _: 2 }, [
1399
1431
  p.type === "ONE_OFF" ? {
1400
1432
  name: "one-off-line-context-menu",
1401
- fn: i((C) => [
1402
- $(b.$slots, "one-off-line-context-menu", J({ ref_for: !0 }, C, {
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, vn),
1414
- n(be, {
1445
+ ], 10, yn),
1446
+ n(pe, {
1415
1447
  ref_for: !0,
1416
- ref: f(e.group.group_order, p.line_order),
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)(f(e.group.group_order, p.line_order)),
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": i((I) => [
1427
- $(b.$slots, "invoice-line-prefix", J({ ref_for: !0 }, I))
1458
+ "invoice-line-prefix": a((I) => [
1459
+ E(b.$slots, "invoice-line-prefix", Z({ ref_for: !0 }, I))
1428
1460
  ]),
1429
- "subline-content": i((I) => {
1430
- var S, E;
1461
+ "subline-content": a((I) => {
1462
+ var U, N, M, $, D;
1431
1463
  return [
1432
- n(he, {
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": (E = (S = p.product_items) == null ? void 0 : S[0]) == null ? void 0 : E.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
- }), gn = { class: "flex items-center" }, bn = {
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
- }, me = /* @__PURE__ */ L({
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 a = le(), u = le(!1);
1463
- return Ke(a, ([c]) => {
1464
- u.value = c.target.clientWidth < c.target.scrollWidth;
1465
- }), (c, m) => (t(), l("div", gn, [
1466
- u.value ? (t(), _(de, {
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: i(() => [
1472
- n(ue, null, {
1473
- default: i(() => [
1474
- n(ce, null, {
1475
- default: i(() => [
1476
- v(d(e.label), 1)
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: i(() => [
1485
- h("span", {
1517
+ default: a(() => [
1518
+ x("span", {
1486
1519
  ref_key: "labelElement",
1487
- ref: a,
1520
+ ref: i,
1488
1521
  class: "block truncate"
1489
- }, d(e.label), 513)
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: a,
1496
- class: N(["block", { truncate: e.count !== void 0 }])
1497
- }, d(e.label), 3)),
1498
- e.count !== void 0 ? (t(), l("span", bn, d(e.count), 1)) : y("", !0)
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
- }), yn = ["tabindex"], pn = { key: 0 }, xn = {
1534
+ }), xn = ["tabindex"], hn = { key: 0 }, kn = {
1502
1535
  colspan: "2",
1503
1536
  class: "p-0"
1504
- }, hn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, _n = /* @__PURE__ */ L({
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 a = e, u = P(() => {
1524
- var c, m, s;
1525
- const r = [
1526
- (c = a.group.pricing) == null ? void 0 : c.name,
1527
- ge(((m = a.group.products) == null ? void 0 : m.map((g) => g.name)) ?? [])
1528
- ].filter(Boolean).join(" - "), f = Lt(
1529
- a.group,
1530
- !!a.showOriginalCustomerInvoiceLine
1531
- );
1532
- if (!f)
1533
- return r;
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(x, null, [
1540
- h("tr", {
1541
- class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
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] = Y((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
1546
- m[2] || (m[2] = Y((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
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: i(() => {
1579
+ default: a(() => {
1551
1580
  var s;
1552
1581
  return [
1553
- e.isExpandable ? (t(), _(j, {
1582
+ e.isExpandable ? (t(), h(H, {
1554
1583
  key: 0,
1555
1584
  icon: "keyboard_arrow_down",
1556
1585
  size: "md",
1557
- class: N(["absolute -translate-x-7 text-slate-400", {
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(me, {
1564
- label: u.value,
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: i(() => [
1573
- e.amountType === "INCLUDING_TAX" ? (t(), _(w, {
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(ie),
1577
- "data-type": o(ae)(e.group)
1578
- }, null, 8, ["value", "data-testid", "data-type"])) : (t(), _(w, {
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(ie),
1582
- "data-type": o(ae)(e.group)
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, yn),
1588
- e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), l("tr", pn, [
1589
- h("td", xn, [
1590
- h("div", hn, [
1591
- n(Se, {
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": i((s) => [
1604
- $(c.$slots, "invoice-line-prefix", fe(ve(s)))
1632
+ "invoice-line-prefix": a((s) => [
1633
+ E(c.$slots, "invoice-line-prefix", ge(be(s)))
1605
1634
  ]),
1606
- "one-off-line-context-menu": i((s) => [
1607
- $(c.$slots, "one-off-line-context-menu", J(s, { groupOrder: e.groupOrder }))
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
- }), _e = /* @__PURE__ */ L({
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 a = e, { $t: u } = W(), c = P(
1624
- () => Ne(Be(a.lines), {
1625
- creditTypes: a.creditTypes,
1626
- creditsLabel: u({
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: u({
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) => Ae(s, {
1638
- formatMoney: Me,
1639
- formatQuantity: (r) => r
1666
+ ), m = (s) => Se(s, {
1667
+ formatMoney: Ne,
1668
+ formatQuantity: (v) => v
1640
1669
  });
1641
- return (s, r) => c.value.length ? (t(), _(G, { key: 0 }, {
1642
- default: i(() => [
1643
- h("tr", null, [
1644
- n(M, {
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: i(() => [
1649
- v(d(o(u)({
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(M, {
1686
+ n(C, {
1658
1687
  right: "",
1659
1688
  class: "w-1/5 text-gray-400"
1660
1689
  }, {
1661
- default: i(() => [
1662
- v(d(o(u)({
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(M, {
1699
+ n(C, {
1671
1700
  right: "",
1672
1701
  class: "w-1/5 text-gray-400"
1673
1702
  }, {
1674
- default: i(() => [
1675
- v(d(o(u)({
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(M, {
1712
+ n(C, {
1684
1713
  right: "",
1685
1714
  class: "w-1/5 text-gray-400"
1686
1715
  }, {
1687
- default: i(() => [
1688
- v(d(o(u)({
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(x, null, R(c.value, (f) => (t(), l("tr", {
1698
- key: f.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: i(() => [
1702
- v(d(f.label), 1)
1730
+ default: a(() => [
1731
+ f(u(r.label), 1)
1703
1732
  ]),
1704
1733
  _: 2
1705
1734
  }, 1024),
1706
1735
  n(k, { number: "" }, {
1707
- default: i(() => [
1708
- v(d(m(f.availableBalance)), 1)
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: i(() => [
1714
- v(d(m(f.usedBalance)), 1)
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: i(() => [
1720
- v(d(m(f.leftBalance)), 1)
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 ke(e) {
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 kn(e = !1, a = {}) {
1763
+ function In(e = !1, i = {}) {
1735
1764
  const {
1736
- truthyValue: u = !0,
1765
+ truthyValue: d = !0,
1737
1766
  falsyValue: c = !1
1738
- } = a, m = De(e), s = le(e);
1739
- function r(f) {
1767
+ } = i, m = He(e), s = se(e);
1768
+ function v(r) {
1740
1769
  if (arguments.length)
1741
- return s.value = f, s.value;
1770
+ return s.value = r, s.value;
1742
1771
  {
1743
- const b = ke(u);
1744
- return s.value = s.value === b ? ke(c) : b, s.value;
1772
+ const b = Ie(d);
1773
+ return s.value = s.value === b ? Ie(c) : b, s.value;
1745
1774
  }
1746
1775
  }
1747
- return m ? r : [s, r];
1776
+ return m ? v : [s, v];
1748
1777
  }
1749
- const Tn = {
1778
+ const wn = {
1750
1779
  key: 0,
1751
1780
  totals: "",
1752
1781
  class: "border-t break-inside-avoid"
1753
- }, Te = /* @__PURE__ */ L({
1782
+ }, we = /* @__PURE__ */ S({
1754
1783
  __name: "InvoiceSummaryTotalExcludingTax",
1755
1784
  props: {
1756
1785
  baseAmount: {}
1757
1786
  },
1758
1787
  setup(e) {
1759
- const a = W();
1760
- return (u, c) => e.baseAmount ? (t(), l("tr", Tn, [
1788
+ const i = V();
1789
+ return (d, c) => e.baseAmount ? (t(), l("tr", wn, [
1761
1790
  n(k, null, {
1762
- default: i(() => [
1763
- v(d(o(a).$t({
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: i(() => [
1801
+ default: a(() => [
1773
1802
  n(w, {
1774
1803
  value: e.baseAmount,
1775
- "data-testid": o(mt)
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
- }), On = {
1811
+ }), Mn = {
1783
1812
  key: 0,
1784
1813
  class: "border-t font-bold break-inside-avoid"
1785
- }, Oe = /* @__PURE__ */ L({
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 a = W();
1793
- return (u, c) => e.totalAmount ? (t(), l("tr", On, [
1821
+ const i = V();
1822
+ return (d, c) => e.totalAmount ? (t(), l("tr", Mn, [
1794
1823
  n(k, { class: "font-bold" }, {
1795
- default: i(() => [
1796
- v(d(e.isCustomerFacing ? o(a).$t({
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(a).$t({
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: i(() => [
1838
+ default: a(() => [
1810
1839
  n(w, {
1811
1840
  value: e.totalAmount,
1812
- "data-testid": o(ct)
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
- }), In = {
1848
+ }), $n = {
1820
1849
  key: 0,
1821
1850
  colspan: "4",
1822
1851
  class: "p-0"
1823
- }, wn = /* @__PURE__ */ L({
1852
+ }, En = /* @__PURE__ */ S({
1824
1853
  __name: "InvoiceTaxes",
1825
1854
  props: {
1826
1855
  taxCategories: {}
1827
1856
  },
1828
1857
  setup(e) {
1829
- const a = W();
1830
- return (u, c) => (t(), _(G, { class: "table-fixed" }, {
1831
- default: i(() => [
1832
- h("tr", null, [
1833
- n(M, { left: "" }, {
1834
- default: i(() => [
1835
- v(d(o(a).$t({
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(M, { right: "" }, {
1844
- default: i(() => [
1845
- v(d(o(a).$t({
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(M, { right: "" }, {
1854
- default: i(() => [
1855
- v(d(o(a).$t({
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(M, { right: "" }, {
1864
- default: i(() => [
1865
- v(d(o(a).$t({
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(x, null, R(e.taxCategories, (m, s) => (t(), l("tr", { key: s }, [
1875
- m.rates ? (t(), l("td", In, [
1876
- n(G, { class: "table-fixed" }, {
1877
- default: i(() => [
1878
- (t(!0), l(x, null, R(m.rates, (r, f) => (t(), l("tr", { key: f }, [
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: i(() => [
1881
- v(d(r.name) + " (" + d(m.category) + ") ", 1)
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: i(() => [
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: i(() => [
1895
- v(d(r.percentage) + "%", 1)
1923
+ default: a(() => [
1924
+ f(u(v.percentage) + "%", 1)
1896
1925
  ]),
1897
1926
  _: 2
1898
1927
  }, 1024),
1899
1928
  n(k, { number: "" }, {
1900
- default: i(() => [
1929
+ default: a(() => [
1901
1930
  n(w, {
1902
- value: r.tax_amount
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(x, { key: 1 }, [
1940
+ ])) : (t(), l(_, { key: 1 }, [
1912
1941
  n(k, null, {
1913
- default: i(() => [
1914
- v(d(m.name) + " (" + d(m.category) + ") ", 1)
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: i(() => [
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: i(() => [
1928
- v(d(m.percentage) + "%", 1)
1956
+ default: a(() => [
1957
+ f(u(m.percentage) + "%", 1)
1929
1958
  ]),
1930
1959
  _: 2
1931
1960
  }, 1024),
1932
1961
  n(k, { number: "" }, {
1933
- default: i(() => [
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
- }), $n = { class: "flex items-start justify-between" }, Mn = {
1975
+ }), Cn = { class: "flex items-start justify-between" }, Nn = {
1947
1976
  key: 0,
1948
1977
  class: "max-h-9"
1949
- }, En = { class: "flex flex-col gap-2" }, Cn = { key: 0 }, Nn = { key: 3 }, Bn = {
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
- }, An = ["tabindex"], Pn = { key: 1 }, Sn = {
1981
+ }, Sn = ["tabindex"], Ln = { key: 1 }, Dn = {
1953
1982
  colspan: "2",
1954
1983
  class: "p-0"
1955
- }, Ln = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Un = ["tabindex", "onClick", "onKeyup"], Dn = { key: 0 }, Rn = {
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
- }, Fn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, zn = { key: 1 }, Wn = {
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
- }, Vn = {
1962
- key: 0,
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
- }, Hn = /* @__PURE__ */ L({
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: a }) {
1981
- const u = W(), { formatMessage: c } = u, m = a, s = e, [r, f] = xe(), [b, g] = xe(), [p, T] = kn(), I = (...O) => {
1982
- s.isExpandable && f(...O);
1983
- }, S = (O) => {
1984
- s.isExpandable && g(O);
1985
- }, E = () => {
1986
- !s.invoice.tax_categories || !s.isExpandable || T();
1987
- }, C = (O, D) => +`${O}${D}`, B = (O) => u.$t(
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: u.formatDate({
1995
- date: O.start_at,
2026
+ start_at: d.formatDate({
2027
+ date: T.start_at,
1996
2028
  format: "date",
1997
- timezone: ye(s.invoice.customer.timezone),
2029
+ timezone: _e(s.invoice.customer.timezone),
1998
2030
  offsetType: "offsetted"
1999
2031
  }),
2000
- end_at: u.formatDate({
2001
- date: O.end_at,
2032
+ end_at: d.formatDate({
2033
+ date: T.end_at,
2002
2034
  format: "date",
2003
- timezone: ye(s.invoice.customer.timezone),
2035
+ timezone: _e(s.invoice.customer.timezone),
2004
2036
  offsetType: "offsetted"
2005
2037
  })
2006
2038
  }
2007
- ), V = (O) => {
2008
- switch (O) {
2039
+ ), D = (T) => {
2040
+ switch (T) {
2009
2041
  case "PRICING":
2010
2042
  case "REVENUE":
2011
- return u.$t({
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 u.$t({
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 u.$t({
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 u.$t({
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 u.$t({
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
- }, A = (O) => {
2042
- var D, F;
2043
- return (D = O.products) != null && D.length ? [(F = O.pricing) == null ? void 0 : F.name, ge(O.products.map((z) => z.name))].filter(Boolean).join(" - ") : O.description ?? "";
2044
- }, H = (O) => s.showWalletBalance && !(s.hideOneOffWalletBalance && O.type === "ONE_OFF") && (O.lines ?? []).some((D) => {
2045
- var F, z;
2046
- return !!((z = (F = D.details) == null ? void 0 : F.wallet_balances) != null && z.length);
2047
- }), X = (O) => O.groups.reduce(
2048
- (D, F) => F.type in D ? {
2049
- ...D,
2050
- [F.type]: [...D[F.type], F]
2051
- } : { ...D, [F.type]: [F] },
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
- ), q = P(() => {
2054
- const O = [];
2055
- return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable && O.push({
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 && O.push({
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
- }), O;
2070
- }), Z = P(() => s.invoice.show_tax_per_line_item !== !1), oe = P(() => {
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 u.$t({
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 u.$t({
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 u.$t({
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 u.$t({
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 u.$t({
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 (O, D) => {
2105
- var F;
2148
+ return (T, F) => {
2149
+ var W;
2106
2150
  return t(), l("div", null, [
2107
- h("div", $n, [
2108
- O.$slots.logo ? (t(), l("div", Mn, [
2109
- $(O.$slots, "logo")
2110
- ])) : (t(), _(Qe, {
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: oe.value,
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
- O.$slots.intro ? $(O.$slots, "intro", {}, void 0, void 0, 2) : y("", !0),
2119
- h("div", En, [
2120
- (F = q.value) != null && F.length ? (t(), _(Je, {
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: q.value,
2166
+ items: Y.value,
2123
2167
  width: "auto"
2124
2168
  }, {
2125
- trigger: i(() => [
2126
- n(Ge, {
2169
+ trigger: a(() => [
2170
+ n(Ze, {
2127
2171
  "icon-prefix": "add",
2128
2172
  size: "sm",
2129
2173
  intent: "secondary"
2130
2174
  }, {
2131
- default: i(() => [
2132
- v(d(o(c)({
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
- $(O.$slots, "child-customers-selector")
2187
+ E(T.$slots, "child-customers-selector")
2144
2188
  ])
2145
2189
  ]),
2146
- O.$slots.total ? $(O.$slots, "total", {}, void 0, void 0, 0) : y("", !0),
2147
- $(O.$slots, "notes"),
2148
- (t(!0), l(x, null, R(e.invoice.periods, (z, K) => (t(), l(x, { key: K }, [
2149
- e.showRenderedServicesHeader ? (t(), _(Pe, {
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: i(() => [
2154
- n(Ie, {
2197
+ default: a(() => [
2198
+ n($e, {
2155
2199
  tag: "h2",
2156
2200
  variant: "caps-heading"
2157
2201
  }, {
2158
- default: i(() => [
2159
- v(d(B(z)), 1)
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(), _(G, {
2210
+ z.groups ? (t(), h(j, {
2167
2211
  key: 1,
2168
- class: N(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
2169
- "data-testid": o(st)
2212
+ class: A(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
2213
+ "data-testid": o(ct)
2170
2214
  }, {
2171
- default: i(() => [
2172
- (t(!0), l(x, null, R(Object.entries(
2173
- X(z)
2174
- ), ([U, ee], Q) => (t(), l(x, { key: U }, [
2175
- Q > 0 ? (t(), l("tr", Cn, [...D[0] || (D[0] = [
2176
- h("td", null, [
2177
- h("div", { class: "h-4" })
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
- h("tr", null, [
2181
- n(M, {
2224
+ x("tr", null, [
2225
+ n(C, {
2182
2226
  left: "",
2183
2227
  class: "text-secondary"
2184
2228
  }, {
2185
- default: i(() => [
2186
- v(d(V(U)), 1)
2229
+ default: a(() => [
2230
+ f(u(D(L)), 1)
2187
2231
  ]),
2188
2232
  _: 2
2189
2233
  }, 1024),
2190
- n(M, {
2234
+ n(C, {
2191
2235
  right: "",
2192
2236
  class: "w-28 text-secondary"
2193
2237
  }, {
2194
- default: i(() => [
2195
- v(d(o(u).$t({
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(x, null, R(ee, (te, Le) => (t(), l(x, { key: Le }, [
2205
- U === "REVENUE" || U === "PRICING" || U === "ONE_OFF" ? (t(), _(_n, {
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: te,
2208
- "expanded-items": o(r),
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": C,
2256
+ "format-index": M,
2213
2257
  "invoice-period-order": z.period_order,
2214
- "group-order": te.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": Z.value,
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": i((ne) => [
2223
- $(O.$slots, "invoice-line-prefix", J({ ref_for: !0 }, ne))
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": i((ne) => [
2226
- $(O.$slots, "one-off-line-context-menu", J({ ref_for: !0 }, ne, {
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"])) : U === "DISCOUNT" || U === "MARKUP" ? (t(), _(St, {
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: te,
2234
- "expanded-items": o(r),
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": C,
2282
+ "format-index": M,
2239
2283
  "invoice-period-order": z.period_order,
2240
- "group-order": te.group_order,
2284
+ "group-order": ne.group_order,
2241
2285
  "amount-type": e.invoice.pricing_amount_type,
2242
- heading: U === "DISCOUNT" ? o(u).$t({
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(u).$t({
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": i((ne) => [
2253
- $(O.$slots, "invoice-line-prefix", J({ ref_for: !0 }, ne))
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"])) : U === "COMMITMENT" ? (t(), _(Ct, {
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: te,
2259
- "expanded-items": o(r),
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": C,
2307
+ "format-index": M,
2264
2308
  "invoice-period-order": z.period_order,
2265
- "group-order": te.group_order,
2309
+ "group-order": ne.group_order,
2266
2310
  "amount-type": e.invoice.pricing_amount_type
2267
2311
  }, {
2268
- "invoice-line-prefix": i((ne) => [
2269
- $(O.$slots, "invoice-line-prefix", J({ ref_for: !0 }, ne))
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
- H(te) ? (t(), l("tr", Nn, [
2274
- h("td", Bn, [
2275
- n(_e, {
2276
- lines: te.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(), _(G, {
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: i(() => [
2292
- e.showTotals ? (t(), l(x, { key: 0 }, [
2293
- h("tr", null, [
2294
- n(M, {
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: i(() => [
2299
- v(d(o(u).$t({
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(M, {
2351
+ n(C, {
2308
2352
  right: "",
2309
2353
  class: "w-28 text-secondary"
2310
2354
  }, {
2311
- default: i(() => [
2312
- v(d(o(u).$t({
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(), _(Oe, {
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(), _(Te, {
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: N([{ "cursor-pointer": e.invoice.tax_categories && e.isExpandable }, "break-inside-avoid border-t"]),
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: E,
2377
+ onClick: N,
2334
2378
  onKeyup: [
2335
- Y(E, ["enter"]),
2336
- Y(E, ["space"])
2379
+ Q(N, ["enter"]),
2380
+ Q(N, ["space"])
2337
2381
  ]
2338
2382
  }, [
2339
2383
  n(k, null, {
2340
- default: i(() => [
2341
- e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), _(j, {
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: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(p) }])
2389
+ class: A(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(p) }])
2346
2390
  }, null, 8, ["class"])) : y("", !0),
2347
- n(me, {
2348
- label: o(u).$t({
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: i(() => [
2403
+ default: a(() => [
2360
2404
  n(w, {
2361
2405
  value: e.invoice.tax_summary.tax_amount,
2362
- "data-testid": o(ut)
2406
+ "data-testid": o(vt)
2363
2407
  }, null, 8, ["value", "data-testid"])
2364
2408
  ]),
2365
2409
  _: 1
2366
2410
  })
2367
- ], 42, An)) : y("", !0)
2411
+ ], 42, Sn)) : y("", !0)
2368
2412
  ], 64)) : y("", !0),
2369
- (e.forceExpanded || o(p)) && e.invoice.tax_categories ? (t(), l("tr", Pn, [
2370
- h("td", Sn, [
2371
- h("div", Ln, [
2372
- n(wn, {
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(x, { key: 2 }, [
2379
- e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), _(Te, {
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(), _(Oe, {
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
- o(Xe)(e.invoice.closed_periods) ? y("", !0) : (t(), _(G, {
2434
+ X.value || ee.value ? (t(), h(j, {
2391
2435
  key: 2,
2392
- class: "mt-6 text-sm"
2436
+ class: A(["text-sm", { "mt-6": X.value, "print:ml-auto print:w-2/3": !X.value }])
2393
2437
  }, {
2394
- default: i(() => [
2395
- h("tr", null, [
2396
- n(M, {
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: i(() => [
2401
- v(d(o(u).$t({
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(x, null, R(e.invoice.closed_periods, (z, K) => (t(), l(x, { key: K }, [
2411
- (t(!0), l(x, null, R(z.groups, (U, ee) => (t(), l(x, { key: ee }, [
2412
- h("tr", {
2413
- class: N(["break-inside-avoid border-t", { "pt-6": K === 0, "cursor-pointer": e.isExpandable }]),
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: (Q) => S(C(K, ee)),
2459
+ onClick: (J) => U(M(K, te)),
2416
2460
  onKeyup: [
2417
- Y((Q) => S(C(K, ee)), ["enter"]),
2418
- Y((Q) => S(C(K, ee)), ["space"])
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: i(() => {
2423
- var Q;
2466
+ default: a(() => {
2467
+ var J;
2424
2468
  return [
2425
- e.isExpandable ? (t(), _(j, {
2469
+ e.isExpandable ? (t(), h(H, {
2426
2470
  key: 0,
2427
2471
  icon: "keyboard_arrow_down",
2428
2472
  size: "md",
2429
- class: N(["absolute -translate-x-7 text-slate-400", {
2473
+ class: A(["absolute -translate-x-7 text-slate-400", {
2430
2474
  "-rotate-90": !o(b).includes(
2431
- C(K, ee)
2475
+ M(K, te)
2432
2476
  )
2433
2477
  }])
2434
2478
  }, null, 8, ["class"])) : y("", !0),
2435
- n(me, {
2436
- label: A(U),
2437
- count: e.isExpandable ? ((Q = U.lines) == null ? void 0 : Q.length) ?? 0 : void 0
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: i(() => [
2491
+ default: a(() => [
2448
2492
  n(w, {
2449
- value: U.amount_excluding_tax,
2450
- "data-testid": o(ft),
2451
- "data-type": o(gt)
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, Un),
2457
- e.forceExpanded || o(b).includes(C(K, ee)) ? (t(), l("tr", Dn, [
2458
- h("td", Rn, [
2459
- h("div", Fn, [
2460
- n(Se, {
2461
- "start-date": U.start_at,
2462
- "end-date": U.end_at,
2463
- total: U.amount_excluding_tax,
2464
- group: U,
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": Z.value,
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": i((Q) => [
2471
- $(O.$slots, "one-off-line-context-menu", J({ ref_for: !0 }, Q, {
2472
- groupOrder: U.group_order,
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
- H(U) ? (t(), l("tr", zn, [
2482
- h("td", Wn, [
2483
- n(_e, {
2484
- lines: U.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
- e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), l("tr", Vn, [
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: i(() => [
2494
- v(d(o(u).$t({
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: i(() => [
2576
+ default: a(() => [
2504
2577
  n(w, {
2505
2578
  value: e.invoice.open_invoice_amount,
2506
- "data-testid": o(vt)
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
- }), jn = ({
2591
+ }), Kn = ({
2519
2592
  invoice: e,
2520
- getPeriodTitle: a,
2521
- creditsLabel: u,
2593
+ getPeriodTitle: i,
2594
+ creditsLabel: d,
2522
2595
  walletLabel: c,
2523
2596
  formatBalance: m
2524
- }) => [...e.periods ?? [], ...e.closed_periods ?? []].map((r) => {
2525
- const f = (r.groups ?? []).flatMap((p) => p.lines ?? []), b = Ne(
2526
- Be(f),
2527
- { creditTypes: e.credit_types, creditsLabel: u, walletLabel: c }
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 T = m(p.availableBalance), I = g.get(p.label) ?? {
2531
- id: `${r.period_order}-${p.label}`,
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: T,
2606
+ amount: O,
2534
2607
  rows: []
2535
2608
  };
2536
2609
  I.rows.push({
2537
- id: `${r.period_order}-${p.key}`,
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: T
2614
+ available: O
2542
2615
  }), g.set(p.label, I);
2543
2616
  }
2544
2617
  return {
2545
- id: `${r.period_order}-${r.start_at}`,
2546
- title: a(r),
2618
+ id: `${v.period_order}-${v.start_at}`,
2619
+ title: i(v),
2547
2620
  rows: [...g.values()]
2548
2621
  };
2549
- }).filter((r) => r.rows.length > 0), Gn = {
2622
+ }).filter((v) => v.rows.length > 0), Qn = {
2550
2623
  key: 0,
2551
2624
  class: "mt-8"
2552
- }, Xn = { class: "flex flex-col gap-6" }, qn = { class: "border-t" }, Yn = ["aria-expanded", "onClick"], Kn = { 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" }, Qn = { key: 0 }, Jn = { class: "p-0" }, Zn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, ei = /* @__PURE__ */ L({
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 a = e, { formatDate: u, $t: c, formatMessage: m, formatNumber: s } = W(), { getIsOpen: r, toggle: f } = se(), b = (T) => m(
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: u({
2566
- date: T.start_at,
2638
+ startAt: d({
2639
+ date: O.start_at,
2567
2640
  format: "date",
2568
2641
  offsetType: "offsetted",
2569
- timezone: pe(a.invoice)
2642
+ timezone: xe(i.invoice)
2570
2643
  }),
2571
- endAt: u({
2572
- date: T.end_at,
2644
+ endAt: d({
2645
+ date: O.end_at,
2573
2646
  format: "date",
2574
2647
  offsetType: "offsetted",
2575
- timezone: pe(a.invoice)
2648
+ timezone: xe(i.invoice)
2576
2649
  })
2577
2650
  }
2578
- ), g = (T) => Ae(T, {
2579
- formatMoney: Me,
2651
+ ), g = (O) => Se(O, {
2652
+ formatMoney: Ne,
2580
2653
  formatQuantity: (I) => s(Number(I))
2581
- }), p = P(
2582
- () => jn({
2583
- invoice: a.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 (T, I) => p.value.length > 0 ? (t(), l("section", Gn, [
2599
- h("div", Xn, [
2600
- (t(!0), l(x, null, R(p.value, (S) => (t(), l("section", {
2601
- key: S.id
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(Pe), { class: "mt-4" }, {
2604
- default: i(() => [
2605
- n(o(Ie), {
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: i(() => [
2610
- v(d(S.title), 1)
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(G), { class: "mt-3" }, {
2618
- default: i(() => [
2619
- h("tr", null, [
2620
- n(o(M), {
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: i(() => [
2625
- v(d(o(c)({
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(x, null, R(S.rows, (E) => (t(), l(x, {
2635
- key: E.id
2707
+ (t(!0), l(_, null, R(U.rows, (N) => (t(), l(_, {
2708
+ key: N.id
2636
2709
  }, [
2637
- h("tr", qn, [
2710
+ x("tr", Zn, [
2638
2711
  n(o(k), { class: "p-0" }, {
2639
- default: i(() => [
2640
- h("button", {
2712
+ default: a(() => [
2713
+ x("button", {
2641
2714
  type: "button",
2642
2715
  class: "w-full cursor-pointer text-left",
2643
- "aria-expanded": o(r)(E.id),
2644
- onClick: (C) => o(f)(E.id)
2716
+ "aria-expanded": o(v)(N.id),
2717
+ onClick: (M) => o(r)(N.id)
2645
2718
  }, [
2646
- n(o(j), {
2719
+ n(o(H), {
2647
2720
  icon: "keyboard_arrow_down",
2648
2721
  size: "md",
2649
- class: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(r)(E.id) }])
2722
+ class: A(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !o(v)(N.id) }])
2650
2723
  }, null, 8, ["class"]),
2651
- v(" " + d(E.label) + " ", 1),
2652
- h("span", Kn, d(E.rows.length), 1)
2653
- ], 8, Yn)
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(r)(E.id) ? (t(), l("tr", Qn, [
2659
- h("td", Jn, [
2660
- h("div", Zn, [
2661
- n(o(G), null, {
2662
- default: i(() => [
2663
- h("tr", null, [
2664
- n(o(M), {
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: i(() => [
2669
- v(d(o(c)({
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(M), {
2750
+ n(o(C), {
2678
2751
  right: "",
2679
2752
  class: "w-1/5"
2680
2753
  }, {
2681
- default: i(() => [
2682
- v(d(o(c)({
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(M), {
2763
+ n(o(C), {
2691
2764
  right: "",
2692
2765
  class: "w-1/5"
2693
2766
  }, {
2694
- default: i(() => [
2695
- v(d(o(c)({
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(M), {
2776
+ n(o(C), {
2704
2777
  right: "",
2705
2778
  class: "w-1/5"
2706
2779
  }, {
2707
- default: i(() => [
2708
- v(d(o(c)({
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(x, null, R(E.rows, (C) => (t(), l("tr", {
2718
- key: C.id,
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: i(() => [
2723
- v(d(C.label), 1)
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: i(() => [
2729
- v(d(C.available), 1)
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: i(() => [
2735
- v(d(C.used), 1)
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: i(() => [
2741
- v(d(C.left), 1)
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
- }), ti = /* @__PURE__ */ L({
2833
+ }), li = /* @__PURE__ */ S({
2761
2834
  __name: "InvoiceBlock",
2762
2835
  props: {
2763
2836
  invoice: { type: Object }
2764
2837
  },
2765
2838
  setup(e) {
2766
- const a = e, u = P(() => et(a.invoice)), { $t: c } = W(), { isMobileViewport: m } = tt();
2767
- return (s, r) => (t(), _(o(Ze), {
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: i(() => [
2776
- h("div", {
2777
- class: N(["sv-invoice__summary-body", { "p-6 pt-2": !o(m) }])
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(), _(o(at), {
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: i(() => [
2786
- v(d(o(c)({
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(Hn), {
2867
+ n(o(Yn), {
2795
2868
  class: "sv-invoice__summary-content",
2796
- invoice: u.value,
2869
+ invoice: d.value,
2797
2870
  "is-expandable": !o(m)
2798
2871
  }, {
2799
- logo: i(() => [
2800
- $(s.$slots, "logo")
2872
+ logo: a(() => [
2873
+ E(s.$slots, "logo")
2801
2874
  ]),
2802
2875
  _: 3
2803
2876
  }, 8, ["invoice", "is-expandable"]),
2804
- n(ei, {
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
- }), ni = { class: "sv-invoice sv-root sv-component" }, ii = { class: "sv-invoice__body flex flex-col gap-3 lg:flex-row lg:gap-6" }, ai = { class: "sv-invoice__aside flex shrink-0 flex-col gap-8 lg:w-72 lg:gap-6" }, oi = /* @__PURE__ */ L({
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 a = Re(
2823
- () => import("../../PaymentHistoryBlock-CN42ewCn.mjs")
2824
- ), { $t: u } = W();
2895
+ const i = Xe(
2896
+ () => import("../../PaymentHistoryBlock-BSXlneqM.mjs")
2897
+ ), { $t: d } = V();
2825
2898
  return (c, m) => {
2826
- var s, r;
2827
- return t(), l("div", ni, [
2828
- n(He, {
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
- h("div", ii, [
2836
- e.invoice ? (t(), _(ti, {
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
- h("div", ai, [
2842
- n(nt, {
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.enablePaymentAttempts && ((r = e.payments) != null && r.length) ? (t(), _(o(a), {
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.enableCustomerBillingInformation ? (t(), _(o(Fe), {
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(u)({
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
- }), li = /* @__PURE__ */ L({
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
- primaryColor: { type: String },
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 a = We("invoice"), u = e, c = P(() => ({
2889
- ...u,
2957
+ const i = Ye("invoice"), d = e, c = B(() => ({
2958
+ ...d,
2890
2959
  configuration: {
2891
- enableCustomerBillingInformation: !0,
2892
- enableDownloadButton: !0,
2893
- enablePaymentAttempts: !0,
2894
- ...u.configuration
2960
+ showCustomerBillingInformation: !0,
2961
+ showDownloadButton: !0,
2962
+ showPaymentAttempts: !0,
2963
+ ...d.configuration
2895
2964
  }
2896
2965
  }));
2897
2966
  return (m, s) => {
2898
- var r;
2899
- return t(), _(o(ze), {
2967
+ var v;
2968
+ return t(), h(o(qe), {
2900
2969
  entry: m.$props,
2901
- "component-name": o(a),
2970
+ "component-name": o(i),
2902
2971
  "allowed-portal-types": ["CUSTOMER"],
2903
- "required-configuration": { invoiceId: (r = e.configuration) == null ? void 0 : r.invoiceId },
2904
- onError: s[0] || (s[0] = (f) => m.$emit("error", f))
2972
+ "required-configuration": { invoiceId: (v = e.configuration) == null ? void 0 : v.invoiceId }
2905
2973
  }, {
2906
- default: i(() => [
2907
- (t(), _(je, {
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: i(({ invoice: f, payments: b, invoiceDownloadService: g }) => [
2912
- f ? (t(), _(oi, {
2979
+ default: a(({ invoice: r, payments: b, invoiceDownloadService: g }) => [
2980
+ r ? (t(), h(ui, {
2913
2981
  key: 0,
2914
- invoice: f,
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: Ci } = Ve(li, "invoice");
2995
+ }), { define: Pi } = Ke(ci, "invoice");
2928
2996
  export {
2929
- Ci as defineSolvimonInvoice
2997
+ Pi as defineSolvimonInvoice
2930
2998
  };