@solvimon/solvimon-web 0.1.0-alpha.24 → 0.1.0-alpha.26

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 (286) hide show
  1. package/README.md +14 -11
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DW10rozs.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DcrLNA_x.mjs} +6 -6
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-jWthTJk-.js → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DwbIiJBY.js} +1 -1
  4. package/dist/{Avatar.vue.es-nr8srGuK.js → Avatar.vue.es-Bm6MCMAL.js} +1 -1
  5. package/dist/{Avatar.vue.es-DzjFvLuK.mjs → Avatar.vue.es-BqQHvLGA.mjs} +1 -1
  6. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-C1prOJay.js → BillingInformation.vue_vue_type_script_setup_true_lang-0JHnqIpC.js} +1 -1
  7. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BptcwJMr.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BFza7Nf9.mjs} +8 -8
  8. package/dist/{Button.vue.es-PbJFK8z7.mjs → Button.vue.es-C32_baQN.mjs} +1 -1
  9. package/dist/{Button.vue.es-TCF-bvDF.js → Button.vue.es-qGvnOKnK.js} +1 -1
  10. package/dist/ChargeOnDemandModal-CIiI74ls.mjs +983 -0
  11. package/dist/ChargeOnDemandModal-DIQaGnRs.js +1 -0
  12. package/dist/Checkout.entry.ce-8EcavNgT.js +2 -0
  13. package/dist/{Checkout.entry.ce-DHFx5Vnb.mjs → Checkout.entry.ce-BA5ljKj8.mjs} +1562 -1538
  14. package/dist/{Chip.vue.es-DpcOM3Ai.mjs → Chip.vue.es-CKCOY5T6.mjs} +2 -2
  15. package/dist/{Chip.vue.es-CAoisngJ.js → Chip.vue.es-D60gTbfe.js} +1 -1
  16. package/dist/{ContextMenu.vue.es-kzZ3JJHG.js → ContextMenu.vue.es-C7KI8Gz6.js} +1 -1
  17. package/dist/{ContextMenu.vue.es-tAuFp-6i.mjs → ContextMenu.vue.es-Da-lAmTl.mjs} +10 -10
  18. package/dist/{CustomerBillingInformation.vue.es-BQSl9q6W.mjs → CustomerBillingInformation.vue.es-BxBQt4Q0.mjs} +2 -2
  19. package/dist/{CustomerBillingInformation.vue.es-Nac6HgLo.js → CustomerBillingInformation.vue.es-bFUx81Ig.js} +1 -1
  20. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-R47ln7Wb.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BcTZgshS.mjs} +6 -6
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BOLf-U0A.js → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-C0lJ_ESU.js} +1 -1
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CaNXS48v.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-DkbQ2MiR.mjs} +908 -891
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-hBo2Y2mJ.js +1 -0
  24. package/dist/{DividerText.vue.es-LJ2kZakb.js → DividerText.vue.es-BF3gnr4e.js} +1 -1
  25. package/dist/{DividerText.vue.es-CSE7a-T0.mjs → DividerText.vue.es-DKl3FnDJ.mjs} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DeotDsFP.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C3QYra1x.mjs} +4 -4
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-GNPyrcAQ.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-cSQeqr0A.js} +1 -1
  28. package/dist/{ErrorNotification.vue.es-BF6swP7o.js → ErrorNotification.vue.es-BX9dHEc-.js} +1 -1
  29. package/dist/{ErrorNotification.vue.es-CVUuIt8Z.mjs → ErrorNotification.vue.es-rRKgmkzV.mjs} +1 -1
  30. package/dist/{IconButton.vue.es-CB1lIPao.js → IconButton.vue.es-Bwdfu-jm.js} +1 -1
  31. package/dist/{IconButton.vue.es-DGflbWFk.mjs → IconButton.vue.es-UlqwNPAX.mjs} +2 -2
  32. package/dist/{IconTitle.vue.es-BsdjyGlQ.mjs → IconTitle.vue.es-CK9k69tV.mjs} +3 -3
  33. package/dist/{IconTitle.vue.es-CMO8EyQl.js → IconTitle.vue.es-Cei98MBw.js} +1 -1
  34. package/dist/{Input.vue.es-CREdT4nB.js → Input.vue.es-B47l_feL.js} +1 -1
  35. package/dist/{Input.vue.es-BFbiFXsU.mjs → Input.vue.es-D9IjIWc-.mjs} +2 -2
  36. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BZ4D_-7E.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DKlPrxQS.js} +1 -1
  37. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-Btv0rRk4.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DUfJl07Y.mjs} +2 -2
  38. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-CrZq0d1M.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-D9Rtgapa.mjs} +2 -2
  39. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-j-cNIRD_.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-DlJ6lELc.js} +1 -1
  40. package/dist/InvoiceSummary.vue.es-DBnR9Hs7.js +1 -0
  41. package/dist/{InvoiceSummary.vue.es-JtOIQ6SJ.mjs → InvoiceSummary.vue.es-DQ4KvTaw.mjs} +576 -565
  42. package/dist/{Modal.vue.es-BbdtdxsO.js → Modal.vue.es-8LN4gBh0.js} +1 -1
  43. package/dist/{Modal.vue.es-jT61xK_A.mjs → Modal.vue.es-B9xMiyn3.mjs} +5 -5
  44. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-BBoZVnsK.js → PaymentErrorCard.vue_vue_type_script_setup_true_lang-B1yGKkWN.js} +1 -1
  45. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-Dan29qmH.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-BVzL2PGe.mjs} +4 -4
  46. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D34fD3Io.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DSGf6uFP.js} +1 -1
  47. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-BJZHkTqA.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-nLTPnH4j.mjs} +3 -3
  48. package/dist/{PaymentHistoryBlock-quvnCSFV.mjs → PaymentHistoryBlock-DYa99P1M.mjs} +1 -1
  49. package/dist/{PaymentHistoryBlock-Dw2wOiAI.js → PaymentHistoryBlock-Ds93gNvh.js} +1 -1
  50. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C0XIdBbx.js → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CBZhXQfC.js} +1 -1
  51. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-5ckQd9eQ.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-D0KnSy0y.mjs} +4 -4
  52. package/dist/{PaymentIntegrationForm-D1oJREmH.js → PaymentIntegrationForm-B_Db4DG1.js} +1 -1
  53. package/dist/{PaymentIntegrationForm-CQjUZi22.mjs → PaymentIntegrationForm-UWoyZgsR.mjs} +1 -1
  54. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C0J37ZVe.js +1 -0
  55. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-J15IDbMc.mjs +154 -0
  56. package/dist/{PaymentIntegrationFormAdyen-CyZk9ofV.mjs → PaymentIntegrationFormAdyen-D4qfNtZ_.mjs} +217 -197
  57. package/dist/PaymentIntegrationFormAdyen-HeA9XIj-.js +98 -0
  58. package/dist/{PaymentIntegrationFormStripe-D-GaLHwc.mjs → PaymentIntegrationFormStripe-BIiMCWlV.mjs} +247 -220
  59. package/dist/PaymentIntegrationFormStripe-DUCJTIAq.js +102 -0
  60. package/dist/PaymentMethod.vue.es-CJcSZ9lN.js +1 -0
  61. package/dist/{PaymentMethod.vue.es-C0j580g7.mjs → PaymentMethod.vue.es-CKu5nApX.mjs} +168 -148
  62. package/dist/{PaymentMethodForm-CDV5LR8i.js → PaymentMethodForm-1d0YIGOu.js} +1 -1
  63. package/dist/{PaymentMethodForm-Bf2Ps6eV.mjs → PaymentMethodForm-B05sHWcW.mjs} +1 -1
  64. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BDm8l_6N.js +1 -0
  65. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-BqPu7CYA.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-D1yIYsb_.mjs} +45 -41
  66. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-BIX0k7-q.js → PaymentMethodsList.vue_vue_type_script_setup_true_lang-BE4S26JX.js} +1 -1
  67. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-9MUPbgWM.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DGpXRtp4.mjs} +6 -6
  68. package/dist/PlanCustomizationEditor-CEMP_Dhz.js +1 -0
  69. package/dist/PlanCustomizationEditor-CpZeilm5.mjs +694 -0
  70. package/dist/{PricingGroupRangeInput.vue.es-CP7-dmxS.mjs → PricingGroupRangeInput.vue.es-CJpvUP3-.mjs} +4 -4
  71. package/dist/{PricingGroupRangeInput.vue.es-BchXhunH.js → PricingGroupRangeInput.vue.es-DZSJ5Mz0.js} +1 -1
  72. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DJ81eUJX.mjs +141 -0
  73. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-jrkraJMu.js +1 -0
  74. package/dist/{RadioGroupExtended.vue.es-_QMReyZ8.mjs → RadioGroupExtended.vue.es-BalV7gwp.mjs} +2 -2
  75. package/dist/{RadioGroupExtended.vue.es-Cf5R1P9a.js → RadioGroupExtended.vue.es-Dt6LH9Yh.js} +1 -1
  76. package/dist/{Section.vue.es-KRsHeFoT.mjs → Section.vue.es-D7eiXUbk.mjs} +1 -1
  77. package/dist/{Section.vue.es-CBZx5x53.js → Section.vue.es-zVXBHAL6.js} +1 -1
  78. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-UdGQMJGY.js → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BdjYFrVC.js} +1 -1
  79. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-BVELHoUj.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DudMRVka.mjs} +6 -6
  80. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-D4sbq9nA.js +1 -0
  81. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs → Skeleton.vue_vue_type_script_setup_true_lang-D60YtA9z.mjs} +5 -5
  82. package/dist/StepInput.vue.es-C3Zm6Wc9.mjs +199 -0
  83. package/dist/StepInput.vue.es-mAnuCuDQ.js +1 -0
  84. package/dist/SubscriptionDetails.entry.ce-D4CsSoR9.js +1 -0
  85. package/dist/SubscriptionDetails.entry.ce-WEimiOex.mjs +1057 -0
  86. package/dist/{SubscriptionSchedules-1ikoGncQ.js → SubscriptionSchedules-Cm5Dt-1H.js} +1 -1
  87. package/dist/{SubscriptionSchedules-B6b6xf-E.mjs → SubscriptionSchedules-DrrEAPlx.mjs} +1 -1
  88. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Dv2bP9vv.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DHp_KtbF.mjs} +2284 -2341
  89. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-t2Awijf5.js +1 -0
  90. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DvYZvTV9.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-3VYfm6Hm.mjs} +3 -3
  91. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-DZKl0Zxp.js → SubscriptionSummary.vue_vue_type_script_setup_true_lang-B41qZmcL.js} +1 -1
  92. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DTjZcOhj.js → SubscriptionsList.vue_vue_type_script_setup_true_lang-Bu-_clEa.js} +1 -1
  93. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-DmeIKMYI.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DFU0IULg.mjs} +8 -8
  94. package/dist/{TooltipParagraph.vue.es-nGFfHF1A.mjs → TooltipParagraph.vue.es-BXbOJmjr.mjs} +3 -3
  95. package/dist/TooltipParagraph.vue.es-Cph6zT31.js +1 -0
  96. package/dist/{TrialChip.vue.es-DhC5Bpmy.js → TrialChip.vue.es-C_wgHGuN.js} +1 -1
  97. package/dist/{TrialChip.vue.es-eKgO6an3.mjs → TrialChip.vue.es-C_yRujip.mjs} +2 -2
  98. package/dist/{cn.es-BD7Afj5Q.mjs → cn.es-CGa6b2Lt.mjs} +2 -2
  99. package/dist/{cn.es-BLE3T5Rx.js → cn.es-D9YMDvG2.js} +1 -1
  100. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  101. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  102. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  103. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +246 -230
  104. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  105. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  106. package/dist/components/Invoice/Invoice.cjs +1 -1
  107. package/dist/components/Invoice/Invoice.mjs +201 -212
  108. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  109. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +4 -4
  110. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  111. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  112. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  113. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  114. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  115. package/dist/components/PaymentHistory/PaymentHistory.mjs +4 -4
  116. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  117. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  118. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  119. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  120. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  121. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  122. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  123. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  124. package/dist/{customElements-CSzbVZIH.js → customElements-C963-LtW.js} +36 -32
  125. package/dist/{customElements-DT1YyL4O.mjs → customElements-D5DAoHRI.mjs} +231 -196
  126. package/dist/{customer-Cq4fF__H.mjs → customer-DKa1B2vp.mjs} +4 -4
  127. package/dist/{customer-CJonIvSm.js → customer-TE1FnGT0.js} +1 -1
  128. package/dist/{de-DE-BSlbAnPE.js → de-DE-B4TUdnUf.js} +1 -1
  129. package/dist/{de-DE-CyvjSD9b.mjs → de-DE-CLfzTbbX.mjs} +39 -6
  130. package/dist/de-DE-DaBBl-Ak.js +1 -0
  131. package/dist/{de-DE-DXsG-vXA.mjs → de-DE-jkW2dJrX.mjs} +28 -14
  132. package/dist/en-US-BNevqm0M.js +1 -0
  133. package/dist/{en-US-xQrWj8qI.mjs → en-US-D6SGRAch.mjs} +39 -6
  134. package/dist/en-US-J85TQRI8.js +1 -0
  135. package/dist/{en-US-C939IZ5i.mjs → en-US-SDhjlY_v.mjs} +20 -5
  136. package/dist/formControl-ODrpUvcA.js +1 -0
  137. package/dist/{index-BPU8tIml.mjs → formControl-dX7l8o3c.mjs} +160 -143
  138. package/dist/icon-sprite.svg.es-BZIz7-0d.mjs +4 -0
  139. package/dist/icon-sprite.svg.es-Ds6lDf5p.js +1 -0
  140. package/dist/index.cjs +1 -1
  141. package/dist/index.mjs +4 -4
  142. package/dist/{invoices-EamWI_jz.js → invoices-ClqTWYF9.js} +1 -1
  143. package/dist/{invoices-CVZOfEOY.mjs → invoices-DJTwftJv.mjs} +1 -1
  144. package/dist/it-IT-BkPbTueL.js +1 -0
  145. package/dist/{it-IT-DT3rfjOY.js → it-IT-CSYvGmpT.js} +1 -1
  146. package/dist/{it-IT-BxpwB3oJ.mjs → it-IT-CaaFToGB.mjs} +20 -6
  147. package/dist/{it-IT-C09oObBM.mjs → it-IT-Cym1UvvK.mjs} +39 -6
  148. package/dist/{nl-NL-DfkhOJKc.js → nl-NL-CpE4IgwO.js} +1 -1
  149. package/dist/{nl-NL-na2I4aiP.mjs → nl-NL-D0MQKaql.mjs} +34 -20
  150. package/dist/{nl-NL-BhNND_yi.mjs → nl-NL-D0c4x5C0.mjs} +39 -6
  151. package/dist/nl-NL-jIfAVGv0.js +1 -0
  152. package/dist/paymentMethods-AL2U_byg.js +1 -0
  153. package/dist/{paymentMethods-By1SebnO.mjs → paymentMethods-CWzJhcWK.mjs} +16 -14
  154. package/dist/{payments-Dnjg9Se4.js → payments-BmiHMlQt.js} +1 -1
  155. package/dist/{payments-BYZLQTJ-.mjs → payments-aXyfylwk.mjs} +6 -6
  156. package/dist/pricing.es-C07bgEZx.js +1 -0
  157. package/dist/pricing.es-QYWrKMUJ.mjs +30 -0
  158. package/dist/pricingPlanSchedules-BD4GIP_F.mjs +32 -0
  159. package/dist/pricingPlanSchedules-BfsMSvN0.js +1 -0
  160. package/dist/screens/Checkout/Checkout.cjs +1 -1
  161. package/dist/screens/Checkout/Checkout.mjs +2 -2
  162. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  163. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  164. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  165. package/dist/screens/PayInvoice/PayInvoice.mjs +57 -55
  166. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  167. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +9 -9
  168. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  169. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +3 -769
  170. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  171. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +243 -270
  172. package/dist/{subscription-CrVOr5MF.mjs → subscription-D1yHKUNc.mjs} +2 -2
  173. package/dist/{subscriptions-BKER9RUc.js → subscriptions-Cm83ckfl.js} +1 -1
  174. package/dist/{subscriptions-Gj3KgCZz.mjs → subscriptions-cnR5fnf7.mjs} +1 -1
  175. package/dist/types/components/{wallets/WalletModalShell.types.d.ts → payments/OnDemandPaymentModalShell/OnDemandPaymentModalShell.types.d.ts} +3 -3
  176. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +5 -0
  177. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +5 -9
  178. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +7 -11
  179. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +7 -11
  180. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +7 -11
  181. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +7 -11
  182. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +7 -11
  183. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +7 -11
  184. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +7 -11
  185. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +7 -11
  186. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +2 -2
  187. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +7 -11
  188. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +7 -11
  189. package/dist/types/components/providers/Provider/Provider.vue.d.ts +7 -11
  190. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +7 -11
  191. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +7 -11
  192. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +7 -11
  193. package/dist/types/components/subscriptions/ChargeOnDemandModal/ChargeOnDemandModal.types.d.ts +21 -0
  194. package/dist/types/components/subscriptions/OnDemandItemsCard/OnDemandItemsCard.types.d.ts +7 -0
  195. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.configuration.types.d.ts +27 -0
  196. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +1 -1
  197. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +6 -5
  198. package/dist/types/services/paymentMethods.types.d.ts +4 -2
  199. package/dist/types/services/requests.types.d.ts +5 -0
  200. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +5 -0
  201. package/dist/types/vendor/@solvimon/solvimon-types/types/AgentContext.d.ts +3 -0
  202. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +6 -1
  203. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +23 -0
  204. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +16 -4
  205. package/dist/types/vendor/@solvimon/solvimon-types/types/Embeddable.d.ts +8 -0
  206. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +21 -6
  207. package/dist/types/vendor/@solvimon/solvimon-types/types/OAuth.d.ts +28 -0
  208. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +2 -1
  209. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -1
  210. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +6 -1
  211. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +5 -0
  212. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +5 -0
  213. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanGroups.d.ts +31 -0
  214. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +9 -1
  215. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +1 -1
  216. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +3 -3
  217. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +3 -0
  218. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +2 -0
  219. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +2 -0
  220. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +2 -0
  221. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +1 -1
  222. package/dist/types/vendor/@solvimon/solvimon-types/types/SeatAssignment.d.ts +22 -0
  223. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +6 -0
  224. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +128 -1
  225. package/dist/{useActionDispatchProvider-DDHrhy3i.js → useActionDispatchProvider-CHkVQMaE.js} +1 -1
  226. package/dist/{useActionDispatchProvider-MjTckd4f.mjs → useActionDispatchProvider-DDYqIh3r.mjs} +1 -1
  227. package/dist/{useCustomer-BW0DBEJh.js → useCustomer-DGYtowRy.js} +1 -1
  228. package/dist/{useCustomer-CxnF7r8Z.mjs → useCustomer-XZKWsolE.mjs} +1 -1
  229. package/dist/{useCustomerFormLabels-zPc8QrwJ.mjs → useCustomerFormLabels-CcnkJLcB.mjs} +6 -6
  230. package/dist/useCustomerFormLabels-DAZziqYt.js +1 -0
  231. package/dist/{useExperimentalFeature-9teNYGuP.js → useExperimentalFeature-COOU6IZd.js} +1 -1
  232. package/dist/{useExperimentalFeature-NsSDg-e3.mjs → useExperimentalFeature-ierhOt9Q.mjs} +1 -1
  233. package/dist/{useInvoiceData-GQwk6fl4.mjs → useInvoiceData-BEK-7msA.mjs} +3 -3
  234. package/dist/{useInvoiceData-DvV2AsgC.js → useInvoiceData-CQRn8l9C.js} +1 -1
  235. package/dist/{useInvoicesList-Xnth6s6U.js → useInvoicesList-BQkKyyXa.js} +1 -1
  236. package/dist/{useInvoicesList-CGmFSQSg.mjs → useInvoicesList-C4I118KM.mjs} +7 -7
  237. package/dist/{useLoadInitialData-BvvaWeAe.mjs → useLoadInitialData-CR0kbYw8.mjs} +1 -1
  238. package/dist/{useLoadInitialData-Cjkc70u-.js → useLoadInitialData-CrKnBZs_.js} +1 -1
  239. package/dist/{usePaymentMethodAvailability-DKyscbom.js → usePaymentMethodAvailability-Ci6LeYKt.js} +1 -1
  240. package/dist/{usePaymentMethodAvailability-BWaaj3N3.mjs → usePaymentMethodAvailability-ZH-m3B-A.mjs} +12 -12
  241. package/dist/{usePaymentMethodOptions-l-wVAmIW.mjs → usePaymentMethodOptions-Ciifjo6c.mjs} +15 -13
  242. package/dist/usePaymentMethodOptions-Cqe92ZBn.js +1 -0
  243. package/dist/{usePaymentMethods-DvQVnsSV.mjs → usePaymentMethods-B-OKRyKd.mjs} +1 -1
  244. package/dist/{usePaymentMethods-BDFVB-kK.js → usePaymentMethods-BKwrl82-.js} +1 -1
  245. package/dist/usePayments-Bauj16B-.js +1 -0
  246. package/dist/{usePayments-D_dyuf6S.mjs → usePayments-CV85OV8V.mjs} +46 -41
  247. package/dist/{usePortal-BU4ibdWq.js → usePortal-DSLImEfr.js} +1 -1
  248. package/dist/{usePortal-Br5lYuPT.mjs → usePortal-H8Tv2TnZ.mjs} +1 -1
  249. package/dist/{useSubscription-DRBUt9H5.js → useSubscription-BiYNJT2e.js} +1 -1
  250. package/dist/{useSubscription-CqRae2I9.mjs → useSubscription-DqnxWNKg.mjs} +1 -1
  251. package/dist/{useTimePeriod.es-BxIGnCAP.mjs → useTimePeriod.es-B22-fno3.mjs} +1 -1
  252. package/dist/{useTimePeriod.es-DDos3-EH.js → useTimePeriod.es-D2aiyfd-.js} +1 -1
  253. package/dist/useWatchDebounced-B8iX7ykx.js +1 -0
  254. package/dist/useWatchDebounced-BHlBPcXB.mjs +20 -0
  255. package/package.json +11 -8
  256. package/dist/Checkout.entry.ce-D8O4qJ24.js +0 -2
  257. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-D_jcV7VG.js +0 -1
  258. package/dist/InvoiceSummary.vue.es-BOnvORpf.js +0 -1
  259. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-De7h9-fH.js +0 -1
  260. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DnBLj1wZ.mjs +0 -141
  261. package/dist/PaymentIntegrationFormAdyen-BQXXwpUK.js +0 -98
  262. package/dist/PaymentIntegrationFormStripe-Bs4F7oK_.js +0 -102
  263. package/dist/PaymentMethod.vue.es-CXV_ThBY.js +0 -1
  264. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BwsRDlQJ.js +0 -1
  265. package/dist/PlanCustomizationEditor-0kEXoOcM.js +0 -1
  266. package/dist/PlanCustomizationEditor-Dv69xPbX.mjs +0 -877
  267. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-DmVJ2JQE.mjs +0 -131
  268. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-YsI__d0V.js +0 -1
  269. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +0 -1
  270. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-Cd56tuZb.js +0 -1
  271. package/dist/TooltipParagraph.vue.es-7IQdU3Tf.js +0 -1
  272. package/dist/de-DE-DXsDvO5y.js +0 -1
  273. package/dist/en-US-9xdcz3T5.js +0 -1
  274. package/dist/en-US-DHdI11k9.js +0 -1
  275. package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +0 -4
  276. package/dist/icon-sprite.svg.es-Dauis9LS.js +0 -1
  277. package/dist/index-DwueOtPi.js +0 -1
  278. package/dist/it-IT-CcRIzP1A.js +0 -1
  279. package/dist/nl-NL-5PrgQl8q.js +0 -1
  280. package/dist/paymentMethods-Bwym8l9a.js +0 -1
  281. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +0 -47
  282. package/dist/useCustomerFormLabels-C773h3J0.js +0 -1
  283. package/dist/usePaymentMethodOptions-DuXKS36F.js +0 -1
  284. package/dist/usePayments-CIJocDhR.js +0 -1
  285. package/dist/useWatchDebounced-CAU1WI1P.js +0 -1
  286. package/dist/useWatchDebounced-DT5IicPp.mjs +0 -14
@@ -1,29 +1,29 @@
1
- import { ref as re, openBlock as t, createElementBlock as o, renderSlot as M, defineComponent as S, normalizeClass as N, Fragment as p, renderList as V, createVNode as a, withCtx as i, createElementVNode as _, createTextVNode as d, toDisplayString as r, createBlock as h, unref as l, createCommentVNode as y, createSlots as Ie, withKeys as j, normalizeProps as ve, guardReactiveProps as fe, computed as B, mergeProps as Q, isRef as Ae } from "vue";
2
- import { u as H, _ as Pe, k as pe } from "./customElements-DT1YyL4O.mjs";
3
- import { _ as $ } from "./Amount.vue.es-DPqHB8Xd.mjs";
1
+ import { ref as re, openBlock as t, createElementBlock as o, renderSlot as $, defineComponent as S, normalizeClass as N, Fragment as p, renderList as V, createVNode as a, withCtx as i, createElementVNode as _, createTextVNode as v, toDisplayString as r, createBlock as h, unref as l, createCommentVNode as b, createSlots as Ie, withKeys as j, normalizeProps as fe, guardReactiveProps as ve, computed as B, mergeProps as Q, isRef as Ae } from "vue";
2
+ import { a as G, _ as Pe, l as pe } from "./customElements-D5DAoHRI.mjs";
3
+ import { _ as I } from "./Amount.vue.es-DPqHB8Xd.mjs";
4
4
  import { i as Ue } from "./useService-Bh47bllz.mjs";
5
- import { a as G, _ as Le } from "./Button.vue.es-PbJFK8z7.mjs";
5
+ import { a as H, _ as Le } from "./Button.vue.es-C32_baQN.mjs";
6
6
  import { _ as Se } from "./floating-ui.vue.es-CYt0fSY7.mjs";
7
- import { a as $e } from "./customer.es-B5ppZf0j.mjs";
8
- import { M as Me, f as we, a as De } from "./formatting.es-RclXHhKo.mjs";
7
+ import { a as Me } from "./customer.es-B5ppZf0j.mjs";
8
+ import { M as $e, f as we, a as De } from "./formatting.es-RclXHhKo.mjs";
9
9
  import { _ as Ee, u as ge } from "./Comparators.vue.es-CwhX3rbx.mjs";
10
- import { _ as Re } from "./Chip.vue.es-DpcOM3Ai.mjs";
11
- import { g as be } from "./getComposedString.es-C__uhJpd.mjs";
12
- import { _ as de, T as ue, a as ce } from "./TooltipParagraph.vue.es-nGFfHF1A.mjs";
10
+ import { _ as Re } from "./Chip.vue.es-CKCOY5T6.mjs";
11
+ import { g as ye } from "./getComposedString.es-C__uhJpd.mjs";
12
+ import { _ as de, T as ue, a as ce } from "./TooltipParagraph.vue.es-BXbOJmjr.mjs";
13
13
  import { f as Fe } from "./index.es-CXkP_k3u.mjs";
14
14
  import { g as Ve, a as We, f as ze } from "./wallets.es-eH2C2ygn.mjs";
15
- import { _ as He } from "./DividerText.vue.es-CSE7a-T0.mjs";
16
- import { _ as Ge } from "./IconTitle.vue.es-BsdjyGlQ.mjs";
17
- import { a as Xe } from "./ContextMenu.vue.es-tAuFp-6i.mjs";
15
+ import { _ as Ge } from "./DividerText.vue.es-DKl3FnDJ.mjs";
16
+ import { _ as He } from "./IconTitle.vue.es-CK9k69tV.mjs";
17
+ import { a as Xe } from "./ContextMenu.vue.es-Da-lAmTl.mjs";
18
18
  const xe = (e = []) => {
19
19
  const n = re(e);
20
- return [n, (c) => {
21
- typeof n.value.find((s) => s === c) == "number" ? n.value = n.value.filter((s) => s !== c) : n.value = [...n.value, c];
20
+ return [n, (m) => {
21
+ typeof n.value.find((s) => s === m) == "number" ? n.value = n.value.filter((s) => s !== m) : n.value = [...n.value, m];
22
22
  }];
23
23
  }, qe = {}, je = { class: "w-full table-fixed" };
24
24
  function Ye(e, n) {
25
25
  return t(), o("table", je, [
26
- M(e.$slots, "default")
26
+ $(e.$slots, "default")
27
27
  ]);
28
28
  }
29
29
  const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
@@ -33,13 +33,13 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
33
33
  hasPadding: { type: Boolean, default: !0 }
34
34
  },
35
35
  setup(e) {
36
- return (n, u) => (t(), o("td", {
36
+ return (n, d) => (t(), o("td", {
37
37
  class: N({
38
38
  "text-right tabular-nums": e.number,
39
39
  "py-2": e.hasPadding
40
40
  })
41
41
  }, [
42
- M(n.$slots, "default")
42
+ $(n.$slots, "default")
43
43
  ], 2));
44
44
  }
45
45
  }), w = /* @__PURE__ */ S({
@@ -49,16 +49,16 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
49
49
  right: { type: Boolean, default: !1 }
50
50
  },
51
51
  setup(e) {
52
- return (n, u) => (t(), o("th", {
52
+ return (n, d) => (t(), o("th", {
53
53
  class: N(["border-b py-1.5 text-xs font-bold uppercase text-subtle", { "text-left": e.left, "text-right": e.right }])
54
54
  }, [
55
- M(n.$slots, "default")
55
+ $(n.$slots, "default")
56
56
  ], 2));
57
57
  }
58
58
  }), Ke = "INVOICE_PERIOD", Qe = "INVOICE_PERIOD_SUBTOTAL", ie = "INVOICE_PERIOD_TOTAL", se = "SUMMARY_LINE_AMOUNT", Je = "SUMMARY_TOTAL_TAX", Ze = "SUMMARY_TOTAL_INCLUDING_TAX", et = "SUMMARY_TOTAL_EXCLUDING_TAX", tt = "SUMMARY_TOTAL_DISCOUNT", nt = "SUMMARY_AMOUNT_DUE", it = "DEDUCTION", at = "HAS_SUBLINES", ot = { class: "flex items-center" }, lt = {
59
59
  key: 0,
60
60
  class: "text-xs text-secondary"
61
- }, rt = { class: "flex items-center" }, ye = /* @__PURE__ */ S({
61
+ }, rt = { class: "flex items-center" }, be = /* @__PURE__ */ S({
62
62
  __name: "InvoiceSubLineRow",
63
63
  props: {
64
64
  subLines: {},
@@ -71,77 +71,77 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
71
71
  showTaxPerLineItem: { type: Boolean, default: !0 }
72
72
  },
73
73
  setup(e) {
74
- const { formatMessage: n, formatNumber: u } = H(), c = e, m = (v) => {
75
- var b;
76
- const f = (b = c.processingOnlyCustomers) == null ? void 0 : b.find(
77
- (x) => x.id === v
74
+ const { formatMessage: n, formatNumber: d } = G(), m = e, f = (c) => {
75
+ var y;
76
+ const g = (y = m.processingOnlyCustomers) == null ? void 0 : y.find(
77
+ (x) => x.id === c
78
78
  );
79
- return f ? $e(f) : n({
79
+ return g ? Me(g) : n({
80
80
  id: "generic.not_available",
81
81
  defaultMessage: "N/A",
82
82
  description: "Used in scenarios where no data is available to be displayed"
83
83
  });
84
- }, s = (v) => {
85
- var b;
86
- return ((b = v.usage_based_conversion) == null ? void 0 : b.conditions) ?? v.conditions;
87
- }, g = (v) => {
88
- var b, f;
89
- const x = (f = (b = v.details.conversion) == null ? void 0 : b.credits) == null ? void 0 : f.quantity;
84
+ }, s = (c) => {
85
+ var y;
86
+ return ((y = c.usage_based_conversion) == null ? void 0 : y.conditions) ?? c.conditions;
87
+ }, u = (c) => {
88
+ var y, g;
89
+ const x = (g = (y = c.details.conversion) == null ? void 0 : y.credits) == null ? void 0 : g.quantity;
90
90
  return x === void 0 ? n({
91
91
  id: "generic.not_available",
92
92
  defaultMessage: "N/A",
93
93
  description: "Used in scenarios where no data is available to be displayed"
94
- }) : u(+x, { maximumFractionDigits: Me });
94
+ }) : d(+x, { maximumFractionDigits: $e });
95
95
  };
96
- return (v, b) => e.subLines && e.isOpen ? (t(!0), o(p, { key: 0 }, V(e.subLines, (f, x) => (t(), o(p, { key: x }, [
97
- f.processing_only_customer_resource_id ? e.displayInvoiceSubLinesPerProcessingOnlyCustomer && e.processingOnlyCustomers ? (t(), o("tr", {
96
+ return (c, y) => e.subLines && e.isOpen ? (t(!0), o(p, { key: 0 }, V(e.subLines, (g, x) => (t(), o(p, { key: x }, [
97
+ g.processing_only_customer_resource_id ? e.displayInvoiceSubLinesPerProcessingOnlyCustomer && e.processingOnlyCustomers ? (t(), o("tr", {
98
98
  key: 1,
99
99
  class: N(["group", { "border-t": x > 0 }])
100
100
  }, [
101
101
  a(k, { class: "pl-4" }, {
102
102
  default: i(() => [
103
103
  _("div", rt, [
104
- _("div", null, r(m(f.processing_only_customer_resource_id)), 1)
104
+ _("div", null, r(f(g.processing_only_customer_resource_id)), 1)
105
105
  ])
106
106
  ]),
107
107
  _: 2
108
108
  }, 1024),
109
- M(v.$slots, "subline-content", {
110
- details: f.details,
109
+ $(c.$slots, "subline-content", {
110
+ details: g.details,
111
111
  hideTaxDetails: !0
112
112
  })
113
- ], 2)) : y("", !0) : (t(), o("tr", {
113
+ ], 2)) : b("", !0) : (t(), o("tr", {
114
114
  key: 0,
115
115
  class: N(x > 0 ? "border-t" : "")
116
116
  }, [
117
117
  a(k, null, {
118
118
  default: i(() => {
119
- var O, I, P, U, L, E;
119
+ var O, M, P, U, L, E;
120
120
  return [
121
121
  _("div", ot, [
122
- M(v.$slots, "invoice-line-prefix", {
122
+ $(c.$slots, "invoice-line-prefix", {
123
123
  lineOrder: e.lineOrder,
124
124
  periodOrder: e.periodOrder,
125
125
  groupOrder: e.groupOrder
126
126
  }),
127
127
  _("div", null, [
128
128
  _("div", null, [
129
- f.description ? (t(), o(p, { key: 0 }, [
130
- d(r(f.description), 1)
131
- ], 64)) : f.details.description ? (t(), o(p, { key: 1 }, [
132
- d(r(f.details.description), 1)
129
+ g.description ? (t(), o(p, { key: 0 }, [
130
+ v(r(g.description), 1)
131
+ ], 64)) : g.details.description ? (t(), o(p, { key: 1 }, [
132
+ v(r(g.details.description), 1)
133
133
  ], 64)) : (t(), o(p, { key: 2 }, [
134
- d(" N/A ")
134
+ v(" N/A ")
135
135
  ], 64))
136
136
  ]),
137
- (O = s(f)) != null && O.name || (I = s(f)) != null && I.meter_properties ? (t(), o("div", lt, [
138
- (P = s(f)) != null && P.name ? (t(), o(p, { key: 0 }, [
139
- d(r((U = s(f)) == null ? void 0 : U.name), 1)
140
- ], 64)) : (L = s(f)) != null && L.meter_properties ? (t(), h(l(Ee), {
137
+ (O = s(g)) != null && O.name || (M = s(g)) != null && M.meter_properties ? (t(), o("div", lt, [
138
+ (P = s(g)) != null && P.name ? (t(), o(p, { key: 0 }, [
139
+ v(r((U = s(g)) == null ? void 0 : U.name), 1)
140
+ ], 64)) : (L = s(g)) != null && L.meter_properties ? (t(), h(l(Ee), {
141
141
  key: 1,
142
- comparators: (E = s(f)) == null ? void 0 : E.meter_properties
143
- }, null, 8, ["comparators"])) : y("", !0)
144
- ])) : y("", !0)
142
+ comparators: (E = s(g)) == null ? void 0 : E.meter_properties
143
+ }, null, 8, ["comparators"])) : b("", !0)
144
+ ])) : b("", !0)
145
145
  ])
146
146
  ])
147
147
  ];
@@ -153,46 +153,46 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
153
153
  class: "text-right tabular-nums"
154
154
  }, {
155
155
  default: i(() => [
156
- d(r(g(f)), 1)
156
+ v(r(u(g)), 1)
157
157
  ]),
158
158
  _: 2
159
159
  }, 1024),
160
160
  a(k, { class: "text-right tabular-nums" }, {
161
161
  default: i(() => {
162
- var O, I;
162
+ var O, M;
163
163
  return [
164
- (O = f.details.band) != null && O.amount ? (t(), h($, {
164
+ (O = g.details.band) != null && O.amount ? (t(), h(I, {
165
165
  key: 0,
166
- value: f.details.band.amount
167
- }, null, 8, ["value"])) : (I = f.details.band) != null && I.percentage ? (t(), o(p, { key: 1 }, [
168
- d(r(f.details.band.percentage) + "% ", 1)
166
+ value: g.details.band.amount
167
+ }, null, 8, ["value"])) : (M = g.details.band) != null && M.percentage ? (t(), o(p, { key: 1 }, [
168
+ v(r(g.details.band.percentage) + "% ", 1)
169
169
  ], 64)) : (t(), o(p, { key: 2 }, [
170
- d(" N/A ")
170
+ v(" N/A ")
171
171
  ], 64))
172
172
  ];
173
173
  }),
174
174
  _: 2
175
175
  }, 1024),
176
176
  e.showTaxPerLineItem ? (t(), h(k, { key: 0 }, {
177
- default: i(() => [...b[0] || (b[0] = [
178
- d(" ", -1)
177
+ default: i(() => [...y[0] || (y[0] = [
178
+ v(" ", -1)
179
179
  ])]),
180
180
  _: 1
181
- })) : y("", !0),
182
- f.details.amount ? (t(), h(k, {
181
+ })) : b("", !0),
182
+ g.details.amount ? (t(), h(k, {
183
183
  key: 1,
184
184
  class: "text-right tabular-nums"
185
185
  }, {
186
186
  default: i(() => [
187
- a($, {
188
- value: f.details.amount,
187
+ a(I, {
188
+ value: g.details.amount,
189
189
  "data-testid": l(Qe)
190
190
  }, null, 8, ["value", "data-testid"])
191
191
  ]),
192
192
  _: 2
193
- }, 1024)) : y("", !0)
193
+ }, 1024)) : b("", !0)
194
194
  ], 2))
195
- ], 64))), 128)) : y("", !0);
195
+ ], 64))), 128)) : b("", !0);
196
196
  }
197
197
  }), st = { class: "flex gap-4" }, dt = { class: "flex items-center gap-2" }, le = /* @__PURE__ */ S({
198
198
  __name: "PricingClauseChip",
@@ -200,22 +200,22 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
200
200
  iconName: {}
201
201
  },
202
202
  setup(e) {
203
- return (n, u) => (t(), o("div", st, [
203
+ return (n, d) => (t(), o("div", st, [
204
204
  a(Re, null, {
205
205
  default: i(() => [
206
206
  _("div", dt, [
207
- a(G, {
207
+ a(H, {
208
208
  icon: e.iconName,
209
209
  size: "xs"
210
210
  }, null, 8, ["icon"]),
211
211
  _("span", null, [
212
- M(n.$slots, "chip-content")
212
+ $(n.$slots, "chip-content")
213
213
  ])
214
214
  ])
215
215
  ]),
216
216
  _: 3
217
217
  }),
218
- M(n.$slots, "chip-postfix")
218
+ $(n.$slots, "chip-postfix")
219
219
  ]));
220
220
  }
221
221
  }), ut = { class: "flex flex-col gap-2" }, Ce = /* @__PURE__ */ S({
@@ -226,8 +226,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
226
226
  invoiceLineDescription: {}
227
227
  },
228
228
  setup(e) {
229
- const n = H();
230
- return (u, c) => (t(), o("div", ut, [
229
+ const n = G();
230
+ return (d, m) => (t(), o("div", ut, [
231
231
  _("span", null, r(e.invoiceLineDescription), 1),
232
232
  e.clauseType === "DISCOUNT" && e.priceDetailsBand ? (t(), h(l(le), {
233
233
  key: 0,
@@ -236,7 +236,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
236
236
  e.priceDetailsBand.amount ? {
237
237
  name: "chip-content",
238
238
  fn: i(() => [
239
- d(r(l(n).$t(
239
+ v(r(l(n).$t(
240
240
  {
241
241
  id: "invoice.amount_discount",
242
242
  defaultMessage: "{amount} discount",
@@ -251,7 +251,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
251
251
  } : e.priceDetailsBand.percentage ? {
252
252
  name: "chip-content",
253
253
  fn: i(() => [
254
- d(r(l(n).$t(
254
+ v(r(l(n).$t(
255
255
  {
256
256
  id: "invoice.percentage_discount",
257
257
  defaultMessage: "{percentage}% discount",
@@ -269,7 +269,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
269
269
  "icon-name": "info"
270
270
  }, {
271
271
  "chip-content": i(() => [
272
- d(r(l(n).$t({
272
+ v(r(l(n).$t({
273
273
  id: "invoice.adjustment_chip_body",
274
274
  defaultMessage: "Adjustment",
275
275
  description: "Used on invoice lines to mark as adjusted"
@@ -281,15 +281,15 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
281
281
  "icon-name": "north_east"
282
282
  }, {
283
283
  "chip-content": i(() => {
284
- var m;
284
+ var f;
285
285
  return [
286
- d(r(l(n).$t(
286
+ v(r(l(n).$t(
287
287
  {
288
288
  id: "invoice.markup_percentage",
289
289
  defaultMessage: "{percentage}% markup",
290
290
  description: "Markup percentage, where {percentage} is replaced with the percentage (number only)"
291
291
  },
292
- { percentage: ((m = e.priceDetailsBand) == null ? void 0 : m.percentage) ?? "0" }
292
+ { percentage: ((f = e.priceDetailsBand) == null ? void 0 : f.percentage) ?? "0" }
293
293
  ).toUpperCase()), 1)
294
294
  ];
295
295
  }),
@@ -299,37 +299,38 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
299
299
  "icon-name": "sell"
300
300
  }, {
301
301
  "chip-content": i(() => [
302
- d(r(l(n).$t({
302
+ v(r(l(n).$t({
303
303
  id: "invoice.commitment",
304
304
  defaultMessage: "commitment",
305
305
  description: "Used on invoice lines to mark as commitment"
306
306
  }).toUpperCase()), 1)
307
307
  ]),
308
308
  _: 1
309
- })) : y("", !0)
309
+ })) : b("", !0)
310
310
  ]));
311
311
  }
312
- }), ct = ["tabindex", "onClick"], mt = { class: "flex items-center" }, vt = /* @__PURE__ */ S({
312
+ }), ct = ["tabindex", "onClick"], mt = { class: "flex items-center" }, ft = /* @__PURE__ */ S({
313
313
  __name: "InvoiceCommitment",
314
314
  props: {
315
315
  commitments: {},
316
316
  groupOrder: {},
317
317
  invoicePeriodOrder: {},
318
+ amountType: {},
318
319
  processingOnlyCustomers: {},
319
320
  displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
320
321
  },
321
322
  setup(e) {
322
- const n = H(), { getIsOpen: u, toggle: c } = ge(), m = (v, b) => {
323
- c(s(v, b));
324
- }, s = (v, b) => `${v}-line-${b}`, g = (v) => {
325
- var b;
326
- return v.description ?? ((b = v.details) == null ? void 0 : b.description) ?? n.$t({
323
+ const n = G(), { getIsOpen: d, toggle: m } = ge(), f = (c, y) => {
324
+ m(s(c, y));
325
+ }, s = (c, y) => `${c}-line-${y}`, u = (c) => {
326
+ var y;
327
+ return c.description ?? ((y = c.details) == null ? void 0 : y.description) ?? n.$t({
327
328
  id: "generic.not_available",
328
329
  defaultMessage: "N/A",
329
330
  description: "Used in scenarios where no data is available to be displayed"
330
331
  });
331
332
  };
332
- return (v, b) => (t(), h(J, null, {
333
+ return (c, y) => (t(), h(J, null, {
333
334
  default: i(() => [
334
335
  _("tr", null, [
335
336
  a(w, {
@@ -337,7 +338,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
337
338
  colspan: "5"
338
339
  }, {
339
340
  default: i(() => [
340
- d(r(l(n).$t({
341
+ v(r(l(n).$t({
341
342
  id: "invoice.table_header.unit",
342
343
  defaultMessage: "Unit",
343
344
  description: "Table header for the column containing the number of units of invoice groups"
@@ -350,7 +351,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
350
351
  class: "w-60"
351
352
  }, {
352
353
  default: i(() => [
353
- d(r(l(n).$t({
354
+ v(r(l(n).$t({
354
355
  id: "invoice.table_header.sub_total",
355
356
  defaultMessage: "Subtotal",
356
357
  description: "Table header for the column containing the subtotal for invoices"
@@ -359,34 +360,34 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
359
360
  _: 1
360
361
  })
361
362
  ]),
362
- (t(!0), o(p, null, V(e.commitments, (f, x) => (t(), o(p, { key: x }, [
363
+ (t(!0), o(p, null, V(e.commitments, (g, x) => (t(), o(p, { key: x }, [
363
364
  _("tr", {
364
- class: N(["border-t", { "cursor-pointer": f.sub_lines }]),
365
- tabindex: f.sub_lines ? 0 : void 0,
366
- onClick: (O) => m(e.groupOrder, f.line_order)
365
+ class: N(["border-t", { "cursor-pointer": g.sub_lines }]),
366
+ tabindex: g.sub_lines ? 0 : void 0,
367
+ onClick: (O) => f(e.groupOrder, g.line_order)
367
368
  }, [
368
369
  a(k, { colspan: "2" }, {
369
370
  default: i(() => {
370
371
  var O;
371
372
  return [
372
- f.sub_lines ? (t(), h(G, {
373
+ g.sub_lines ? (t(), h(H, {
373
374
  key: 0,
374
375
  icon: "keyboard_arrow_down",
375
376
  size: "md",
376
377
  class: N(["absolute -translate-x-7 text-slate-400", {
377
- "-rotate-90": !l(u)(s(e.groupOrder, f.line_order))
378
+ "-rotate-90": !l(d)(s(e.groupOrder, g.line_order))
378
379
  }])
379
- }, null, 8, ["class"])) : y("", !0),
380
+ }, null, 8, ["class"])) : b("", !0),
380
381
  _("div", mt, [
381
- M(v.$slots, "invoice-line-prefix", {
382
- lineOrder: f.line_order,
382
+ $(c.$slots, "invoice-line-prefix", {
383
+ lineOrder: g.line_order,
383
384
  periodOrder: e.invoicePeriodOrder,
384
385
  groupOrder: e.groupOrder
385
386
  }),
386
387
  a(Ce, {
387
388
  "clause-type": "COMMITMENT",
388
- "invoice-line-description": g(f),
389
- "price-details-band": (O = f.details) == null ? void 0 : O.band
389
+ "invoice-line-description": u(g),
390
+ "price-details-band": (O = g.details) == null ? void 0 : O.band
390
391
  }, null, 8, ["invoice-line-description", "price-details-band"])
391
392
  ])
392
393
  ];
@@ -394,33 +395,33 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
394
395
  _: 2
395
396
  }, 1024),
396
397
  a(k, { colspan: "3" }, {
397
- default: i(() => [...b[0] || (b[0] = [
398
- d(" ", -1)
398
+ default: i(() => [...y[0] || (y[0] = [
399
+ v(" ", -1)
399
400
  ])]),
400
401
  _: 1
401
402
  }),
402
403
  a(k, { number: "" }, {
403
404
  default: i(() => {
404
- var O, I;
405
+ var O;
405
406
  return [
406
- (O = f.details) != null && O.amount ? (t(), h($, {
407
+ (O = g.details) != null && O.amount ? (t(), h(I, {
407
408
  key: 0,
408
- value: (I = f.details) == null ? void 0 : I.amount,
409
+ value: e.amountType === "INCLUDING_TAX" ? g.amount_including_tax : g.amount_excluding_tax,
409
410
  "data-testid": l(se)
410
- }, null, 8, ["value", "data-testid"])) : y("", !0)
411
+ }, null, 8, ["value", "data-testid"])) : b("", !0)
411
412
  ];
412
413
  }),
413
414
  _: 2
414
415
  }, 1024)
415
416
  ], 10, ct),
416
- a(ye, {
417
+ a(be, {
417
418
  ref_for: !0,
418
- ref: s(e.groupOrder, f.line_order),
419
- "sub-lines": f.sub_lines ?? [],
420
- "line-order": f.line_order,
419
+ ref: s(e.groupOrder, g.line_order),
420
+ "sub-lines": g.sub_lines ?? [],
421
+ "line-order": g.line_order,
421
422
  "period-order": e.invoicePeriodOrder,
422
423
  "group-order": e.groupOrder,
423
- "is-open": l(u)(s(e.groupOrder, f.line_order)),
424
+ "is-open": l(d)(s(e.groupOrder, g.line_order)),
424
425
  "processing-only-customers": e.processingOnlyCustomers,
425
426
  "display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
426
427
  }, null, 8, ["sub-lines", "line-order", "period-order", "group-order", "is-open", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
@@ -429,7 +430,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
429
430
  _: 3
430
431
  }));
431
432
  }
432
- }), ft = ["tabindex", "onClick"], gt = { class: "flex items-center" }, bt = /* @__PURE__ */ S({
433
+ }), vt = ["tabindex", "onClick"], gt = { class: "flex items-center" }, yt = /* @__PURE__ */ S({
433
434
  __name: "InvoiceDiscountMarkup",
434
435
  props: {
435
436
  lines: {},
@@ -440,14 +441,15 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
440
441
  isExpandable: { type: Boolean },
441
442
  invoicePeriodOrder: {},
442
443
  groupOrder: {},
444
+ amountType: {},
443
445
  processingOnlyCustomers: {},
444
446
  displayInvoiceSubLinesPerProcessingOnlyCustomer: { type: Boolean }
445
447
  },
446
448
  setup(e) {
447
- const n = H(), { getIsOpen: u, toggle: c } = ge(), m = (g, v) => {
448
- c(s(g, v));
449
- }, s = (g, v) => `${g}-line-${v}`;
450
- return (g, v) => (t(), h(J, null, {
449
+ const n = G(), { getIsOpen: d, toggle: m } = ge(), f = (u, c) => {
450
+ m(s(u, c));
451
+ }, s = (u, c) => `${u}-line-${c}`;
452
+ return (u, c) => (t(), h(J, null, {
451
453
  default: i(() => [
452
454
  _("tr", null, [
453
455
  a(w, {
@@ -455,7 +457,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
455
457
  class: "w-3/5"
456
458
  }, {
457
459
  default: i(() => [
458
- d(r(l(n).$t({
460
+ v(r(l(n).$t({
459
461
  id: "invoice.table_header.quantity",
460
462
  defaultMessage: "Quantity",
461
463
  description: "Table header for quantity column"
@@ -464,8 +466,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
464
466
  _: 1
465
467
  }),
466
468
  a(w, { colspan: "2" }, {
467
- default: i(() => [...v[0] || (v[0] = [
468
- d(" ", -1)
469
+ default: i(() => [...c[0] || (c[0] = [
470
+ v(" ", -1)
469
471
  ])]),
470
472
  _: 1
471
473
  }),
@@ -474,7 +476,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
474
476
  class: "w-1/5"
475
477
  }, {
476
478
  default: i(() => [
477
- d(r(e.type === "DISCOUNT" ? l(n).$t({
479
+ v(r(e.type === "DISCOUNT" ? l(n).$t({
478
480
  id: "invoice.table_header.discount",
479
481
  defaultMessage: "Discount",
480
482
  description: "Table header for discount column"
@@ -491,7 +493,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
491
493
  class: "w-1/5"
492
494
  }, {
493
495
  default: i(() => [
494
- d(r(e.type === "DISCOUNT" ? l(n).$t({
496
+ v(r(e.type === "DISCOUNT" ? l(n).$t({
495
497
  id: "invoice.table_header.total",
496
498
  defaultMessage: "Total",
497
499
  description: "Table header for total column"
@@ -504,7 +506,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
504
506
  class: "w-1/5"
505
507
  }, {
506
508
  default: i(() => [
507
- d(r(l(n).$t({
509
+ v(r(l(n).$t({
508
510
  id: "invoice.table_header.sub_total",
509
511
  defaultMessage: "Subtotal",
510
512
  description: "Table header for the column containing the subtotal for invoices"
@@ -513,36 +515,36 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
513
515
  _: 1
514
516
  })
515
517
  ]),
516
- (t(!0), o(p, null, V(e.lines, (b, f) => (t(), o(p, { key: f }, [
518
+ (t(!0), o(p, null, V(e.lines, (y, g) => (t(), o(p, { key: g }, [
517
519
  _("tr", {
518
520
  class: N(["border-t", { "cursor-pointer": e.isExpandable }]),
519
521
  tabindex: e.isExpandable ? 0 : void 0,
520
- onClick: (x) => m(e.groupOrder, b.line_order)
522
+ onClick: (x) => f(e.groupOrder, y.line_order)
521
523
  }, [
522
524
  a(k, { class: "w-3/5" }, {
523
525
  default: i(() => {
524
526
  var x, O;
525
527
  return [
526
- b.sub_lines ? (t(), h(G, {
528
+ y.sub_lines ? (t(), h(H, {
527
529
  key: 0,
528
530
  icon: "keyboard_arrow_down",
529
531
  size: "md",
530
532
  class: N(["absolute -translate-x-7 text-slate-400", {
531
- "-rotate-90": !l(u)(s(e.groupOrder, b.line_order))
533
+ "-rotate-90": !l(d)(s(e.groupOrder, y.line_order))
532
534
  }])
533
- }, null, 8, ["class"])) : y("", !0),
535
+ }, null, 8, ["class"])) : b("", !0),
534
536
  _("div", gt, [
535
- M(g.$slots, "invoice-line-prefix", {
536
- lineOrder: b.line_order,
537
+ $(u.$slots, "invoice-line-prefix", {
538
+ lineOrder: y.line_order,
537
539
  periodOrder: e.invoicePeriodOrder,
538
540
  groupOrder: e.groupOrder
539
541
  }),
540
- b.description ? (t(), o(p, { key: 0 }, [
541
- d(r(b.description), 1)
542
- ], 64)) : (x = b.details) != null && x.description ? (t(), o(p, { key: 1 }, [
543
- d(r((O = b.details) == null ? void 0 : O.description), 1)
542
+ y.description ? (t(), o(p, { key: 0 }, [
543
+ v(r(y.description), 1)
544
+ ], 64)) : (x = y.details) != null && x.description ? (t(), o(p, { key: 1 }, [
545
+ v(r((O = y.details) == null ? void 0 : O.description), 1)
544
546
  ], 64)) : (t(), o(p, { key: 2 }, [
545
- d("N/A")
547
+ v("N/A")
546
548
  ], 64))
547
549
  ])
548
550
  ];
@@ -550,23 +552,23 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
550
552
  _: 2
551
553
  }, 1024),
552
554
  a(k, { colspan: "2" }, {
553
- default: i(() => [...v[1] || (v[1] = [
554
- d(" ", -1)
555
+ default: i(() => [...c[1] || (c[1] = [
556
+ v(" ", -1)
555
557
  ])]),
556
558
  _: 1
557
559
  }),
558
560
  a(k, { class: "w-1/5 tabular-nums" }, {
559
561
  default: i(() => {
560
- var x, O, I;
562
+ var x, O, M;
561
563
  return [
562
- d(r((O = (x = b.details) == null ? void 0 : x.band) != null && O.percentage ? `${(I = b.details) == null ? void 0 : I.band.percentage}%` : " "), 1)
564
+ v(r((O = (x = y.details) == null ? void 0 : x.band) != null && O.percentage ? `${(M = y.details) == null ? void 0 : M.band.percentage}%` : " "), 1)
563
565
  ];
564
566
  }),
565
567
  _: 2
566
568
  }, 1024),
567
569
  a(k, { class: "w-1/5" }, {
568
- default: i(() => [...v[2] || (v[2] = [
569
- d(" ", -1)
570
+ default: i(() => [...c[2] || (c[2] = [
571
+ v(" ", -1)
570
572
  ])]),
571
573
  _: 1
572
574
  }),
@@ -577,22 +579,22 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
577
579
  default: i(() => {
578
580
  var x;
579
581
  return [
580
- (x = b.details) != null && x.amount ? (t(), h($, {
582
+ (x = y.details) != null && x.amount ? (t(), h(I, {
581
583
  key: 0,
582
- value: b.details.amount,
584
+ value: e.amountType === "INCLUDING_TAX" ? y.amount_including_tax : y.amount_excluding_tax,
583
585
  "data-testid": l(se)
584
- }, null, 8, ["value", "data-testid"])) : y("", !0)
586
+ }, null, 8, ["value", "data-testid"])) : b("", !0)
585
587
  ];
586
588
  }),
587
589
  _: 2
588
590
  }, 1024)
589
- ], 10, ft),
590
- a(ye, {
591
+ ], 10, vt),
592
+ a(be, {
591
593
  ref_for: !0,
592
- ref: s(e.groupOrder, b.line_order),
593
- "sub-lines": b.sub_lines ?? [],
594
- "line-order": b.line_order,
595
- "is-open": l(u)(s(e.groupOrder, b.line_order)),
594
+ ref: s(e.groupOrder, y.line_order),
595
+ "sub-lines": y.sub_lines ?? [],
596
+ "line-order": y.line_order,
597
+ "is-open": l(d)(s(e.groupOrder, y.line_order)),
596
598
  "period-order": e.invoicePeriodOrder,
597
599
  "group-order": e.groupOrder,
598
600
  "processing-only-customers": e.processingOnlyCustomers,
@@ -605,8 +607,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
605
607
  }
606
608
  }), ae = (e) => {
607
609
  var n;
608
- return (n = e.lines) != null && n.some((u) => !!u.sub_lines) ? at : void 0;
609
- }, yt = ["tabindex"], pt = { key: 0 }, xt = {
610
+ return (n = e.lines) != null && n.some((d) => !!d.sub_lines) ? at : void 0;
611
+ }, bt = ["tabindex"], pt = { key: 0 }, xt = {
610
612
  colspan: "2",
611
613
  class: "p-0"
612
614
  }, ht = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, _t = /* @__PURE__ */ S({
@@ -626,20 +628,20 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
626
628
  showTaxPerLineItem: { type: Boolean }
627
629
  },
628
630
  setup(e) {
629
- const n = H();
630
- return (u, c) => (t(), o(p, null, [
631
+ const n = G();
632
+ return (d, m) => (t(), o(p, null, [
631
633
  _("tr", {
632
- class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
634
+ class: N(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
633
635
  tabindex: e.isExpandable ? 0 : void 0,
634
- onClick: c[0] || (c[0] = (m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
636
+ onClick: m[0] || (m[0] = (f) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
635
637
  onKeyup: [
636
- c[1] || (c[1] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
637
- c[2] || (c[2] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
638
+ m[1] || (m[1] = j((f) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
639
+ m[2] || (m[2] = j((f) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
638
640
  ]
639
641
  }, [
640
642
  a(k, { class: "p-0" }, {
641
643
  default: i(() => [
642
- e.isExpandable ? (t(), h(G, {
644
+ e.isExpandable ? (t(), h(H, {
643
645
  key: 0,
644
646
  icon: "keyboard_arrow_down",
645
647
  size: "md",
@@ -648,8 +650,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
648
650
  e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
649
651
  )
650
652
  }])
651
- }, null, 8, ["class"])) : y("", !0),
652
- d(" " + r(l(n).$t({
653
+ }, null, 8, ["class"])) : b("", !0),
654
+ v(" " + r(l(n).$t({
653
655
  id: "invoice.commitment_heading",
654
656
  defaultMessage: "Commitment",
655
657
  description: "Heading used for commitment in invoice tables"
@@ -659,12 +661,12 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
659
661
  }),
660
662
  a(k, { number: "" }, {
661
663
  default: i(() => [
662
- e.amountType === "INCLUDING_TAX" ? (t(), h($, {
664
+ e.amountType === "INCLUDING_TAX" ? (t(), h(I, {
663
665
  key: 0,
664
666
  value: e.group.amount_including_tax,
665
667
  "data-testid": l(ie),
666
668
  "data-type": l(ae)(e.group)
667
- }, null, 8, ["value", "data-testid", "data-type"])) : (t(), h($, {
669
+ }, null, 8, ["value", "data-testid", "data-type"])) : (t(), h(I, {
668
670
  key: 1,
669
671
  value: e.group.amount_excluding_tax,
670
672
  "data-testid": l(ie),
@@ -673,11 +675,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
673
675
  ]),
674
676
  _: 1
675
677
  })
676
- ], 42, yt),
678
+ ], 42, bt),
677
679
  (e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr", pt, [
678
680
  _("td", xt, [
679
681
  _("div", ht, [
680
- a(vt, {
682
+ a(ft, {
681
683
  commitments: e.group.lines,
682
684
  "format-index": e.formatIndex,
683
685
  "handle-toggle-items": e.handleToggleItems,
@@ -685,23 +687,24 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
685
687
  "is-expandable": e.isExpandable,
686
688
  "invoice-period-order": e.invoicePeriodOrder,
687
689
  "group-order": e.groupOrder,
690
+ "amount-type": e.amountType,
688
691
  "processing-only-customers": e.processingOnlyCustomers,
689
692
  "display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
690
693
  }, {
691
- "invoice-line-prefix": i((m) => [
692
- M(u.$slots, "invoice-line-prefix", ve(fe(m)))
694
+ "invoice-line-prefix": i((f) => [
695
+ $(d.$slots, "invoice-line-prefix", fe(ve(f)))
693
696
  ]),
694
697
  _: 3
695
- }, 8, ["commitments", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
698
+ }, 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"])
696
699
  ])
697
700
  ])
698
- ])) : y("", !0)
701
+ ])) : b("", !0)
699
702
  ], 64));
700
703
  }
701
704
  }), kt = ["tabindex"], Tt = { key: 0 }, Ot = {
702
705
  colspan: "2",
703
706
  class: "p-0"
704
- }, It = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, $t = /* @__PURE__ */ S({
707
+ }, It = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Mt = /* @__PURE__ */ S({
705
708
  __name: "InvoiceGroupDiscountMarkup",
706
709
  props: {
707
710
  heading: {},
@@ -719,19 +722,19 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
719
722
  showTaxPerLineItem: { type: Boolean }
720
723
  },
721
724
  setup(e) {
722
- return (n, u) => (t(), o(p, null, [
725
+ return (n, d) => (t(), o(p, null, [
723
726
  _("tr", {
724
- class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
727
+ class: N(["break-inside-avoid border-t", { "cursor-pointer": e.isExpandable }]),
725
728
  tabindex: e.isExpandable ? 0 : void 0,
726
- onClick: u[0] || (u[0] = (c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
729
+ onClick: d[0] || (d[0] = (m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
727
730
  onKeyup: [
728
- u[1] || (u[1] = j((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
729
- u[2] || (u[2] = j((c) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
731
+ d[1] || (d[1] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
732
+ d[2] || (d[2] = j((m) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
730
733
  ]
731
734
  }, [
732
735
  a(k, { class: "p-0" }, {
733
736
  default: i(() => [
734
- e.isExpandable ? (t(), h(G, {
737
+ e.isExpandable ? (t(), h(H, {
735
738
  key: 0,
736
739
  icon: "keyboard_arrow_down",
737
740
  size: "md",
@@ -740,19 +743,19 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
740
743
  e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
741
744
  )
742
745
  }])
743
- }, null, 8, ["class"])) : y("", !0),
744
- d(" " + r(e.heading), 1)
746
+ }, null, 8, ["class"])) : b("", !0),
747
+ v(" " + r(e.heading), 1)
745
748
  ]),
746
749
  _: 1
747
750
  }),
748
751
  a(k, { number: "" }, {
749
752
  default: i(() => [
750
- e.amountType === "INCLUDING_TAX" ? (t(), h($, {
753
+ e.amountType === "INCLUDING_TAX" ? (t(), h(I, {
751
754
  key: 0,
752
755
  value: e.group.amount_including_tax,
753
756
  "data-testid": l(ie),
754
757
  "data-type": l(ae)(e.group)
755
- }, null, 8, ["value", "data-testid", "data-type"])) : (t(), h($, {
758
+ }, null, 8, ["value", "data-testid", "data-type"])) : (t(), h(I, {
756
759
  key: 1,
757
760
  value: e.group.amount_excluding_tax,
758
761
  "data-testid": l(ie),
@@ -765,7 +768,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
765
768
  (e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))) && e.group.lines ? (t(), o("tr", Tt, [
766
769
  _("td", Ot, [
767
770
  _("div", It, [
768
- a(bt, {
771
+ a(yt, {
769
772
  type: e.group.type,
770
773
  lines: e.group.lines,
771
774
  "format-index": e.formatIndex,
@@ -774,50 +777,51 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
774
777
  "is-expandable": e.isExpandable,
775
778
  "invoice-period-order": e.invoicePeriodOrder,
776
779
  "group-order": e.groupOrder,
780
+ "amount-type": e.amountType,
777
781
  "processing-only-customers": e.processingOnlyCustomers,
778
782
  "display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer
779
783
  }, {
780
- "invoice-line-prefix": i((c) => [
781
- M(n.$slots, "invoice-line-prefix", ve(fe(c)))
784
+ "invoice-line-prefix": i((m) => [
785
+ $(n.$slots, "invoice-line-prefix", fe(ve(m)))
782
786
  ]),
783
787
  _: 3
784
- }, 8, ["type", "lines", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
788
+ }, 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"])
785
789
  ])
786
790
  ])
787
- ])) : y("", !0)
791
+ ])) : b("", !0)
788
792
  ], 64));
789
793
  }
790
- }), Mt = (e, n) => {
794
+ }), $t = (e, n) => {
791
795
  if (n)
792
796
  return e.forwarded_from_customer_id;
793
797
  }, wt = (e) => {
794
- let n = { kind: "default" }, u = { kind: "default" };
798
+ let n = { kind: "default" }, d = { kind: "default" };
795
799
  if (e.tier_lower_bound && "number" in e.tier_lower_bound)
796
800
  n = { kind: "number", value: +e.tier_lower_bound.number };
797
801
  else if (e.tier_lower_bound && "amount" in e.tier_lower_bound) {
798
- const { quantity: c, currency: m } = e.tier_lower_bound.amount;
799
- n = { kind: "amount", currency: m, quantity: c ?? 0 };
802
+ const { quantity: m, currency: f } = e.tier_lower_bound.amount;
803
+ n = { kind: "amount", currency: f, quantity: m ?? 0 };
800
804
  }
801
805
  if (e.tier_top_bound && "number" in e.tier_top_bound)
802
- u = { kind: "number", value: +e.tier_top_bound.number };
806
+ d = { kind: "number", value: +e.tier_top_bound.number };
803
807
  else if (e.tier_top_bound && "amount" in e.tier_top_bound) {
804
- const { quantity: c, currency: m } = e.tier_top_bound.amount;
805
- u = { kind: "amount", currency: m, quantity: c };
808
+ const { quantity: m, currency: f } = e.tier_top_bound.amount;
809
+ d = { kind: "amount", currency: f, quantity: m };
806
810
  }
807
- return { lowerBound: n, topBound: u };
811
+ return { lowerBound: n, topBound: d };
808
812
  }, Et = (e) => {
809
- var n, u, c, m;
813
+ var n, d, m, f;
810
814
  switch (e == null ? void 0 : e.price_bound) {
811
815
  case "BELOW_MINIMUM_AMOUNT":
812
816
  return { kind: "band_minimum_amount", amount: (n = e.band) == null ? void 0 : n.minimum_amount };
813
817
  case "NOT_HIT":
814
818
  return { kind: "price_bound_within_bounds" };
815
819
  case "ABOVE_MAXIMUM_AMOUNT":
816
- return { kind: "price_bound_maximum_amount", amount: (u = e.band) == null ? void 0 : u.maximum_amount };
820
+ return { kind: "price_bound_maximum_amount", amount: (d = e.band) == null ? void 0 : d.maximum_amount };
817
821
  case "BELOW_MINIMUM_NUMBER":
818
- return { kind: "band_minimum_number", value: (c = e.band) == null ? void 0 : c.minimum_number };
822
+ return { kind: "band_minimum_number", value: (m = e.band) == null ? void 0 : m.minimum_number };
819
823
  case "ABOVE_MAXIMUM_NUMBER":
820
- return { kind: "band_maximum_number", value: (m = e.band) == null ? void 0 : m.maximum_number };
824
+ return { kind: "band_maximum_number", value: (f = e.band) == null ? void 0 : f.maximum_number };
821
825
  default:
822
826
  return { kind: "none" };
823
827
  }
@@ -841,152 +845,152 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
841
845
  isExpanded: { type: Boolean }
842
846
  },
843
847
  setup(e) {
844
- const { $t: n, formatNumber: u } = H(), c = e, m = (f) => {
845
- if (f.kind !== "default")
846
- return f.kind === "number" ? u(f.value) : `${f.currency} ${f.quantity}`;
847
- }, s = (f) => {
848
- if (!f) return "";
849
- const { lowerBound: x, topBound: O } = wt(f), I = m(O);
850
- return (m(x) ?? "0") + (I ? ` - ${I}` : "+");
851
- }, g = B(() => {
852
- var f;
853
- return (f = c.data.details) == null ? void 0 : f.included_volume_details;
854
- }), v = B(() => Et(c.data.details)), b = B(() => {
855
- var f, x;
856
- return (f = c.data) != null && f.product_items ? be(c.data.product_items.map((O) => O.name)) : ((x = c.data) == null ? void 0 : x.description) ?? "N/A";
848
+ const { $t: n, formatNumber: d } = G(), m = e, f = (g) => {
849
+ if (g.kind !== "default")
850
+ return g.kind === "number" ? d(g.value) : `${g.currency} ${g.quantity}`;
851
+ }, s = (g) => {
852
+ if (!g) return "";
853
+ const { lowerBound: x, topBound: O } = wt(g), M = f(O);
854
+ return (f(x) ?? "0") + (M ? ` - ${M}` : "+");
855
+ }, u = B(() => {
856
+ var g;
857
+ return (g = m.data.details) == null ? void 0 : g.included_volume_details;
858
+ }), c = B(() => Et(m.data.details)), y = B(() => {
859
+ var g, x;
860
+ return (g = m.data) != null && g.product_items ? ye(m.data.product_items.map((O) => O.name)) : ((x = m.data) == null ? void 0 : x.description) ?? "N/A";
857
861
  });
858
- return (f, x) => (t(), o(p, null, [
862
+ return (g, x) => (t(), o(p, null, [
859
863
  a(k, { class: "align-top" }, {
860
864
  default: i(() => {
861
- var O, I, P, U, L, E, W, C, z;
865
+ var O, M, P, U, L, E, W, C, z;
862
866
  return [
863
867
  _("div", Ct, [
864
868
  _("div", null, [
865
- e.data.sub_lines ? (t(), h(G, {
869
+ e.data.sub_lines ? (t(), h(H, {
866
870
  key: 0,
867
871
  icon: "keyboard_arrow_down",
868
872
  size: "md",
869
873
  class: N(["absolute -translate-x-7 -translate-y-2 text-slate-400", {
870
874
  "-rotate-90": !e.isExpanded
871
875
  }])
872
- }, null, 8, ["class"])) : y("", !0),
876
+ }, null, 8, ["class"])) : b("", !0),
873
877
  _("div", Nt, [
874
- M(f.$slots, "invoice-line-prefix", {
878
+ $(g.$slots, "invoice-line-prefix", {
875
879
  lineOrder: e.data.line_order,
876
880
  periodOrder: e.periodOrder,
877
881
  groupOrder: e.groupOrder
878
882
  }),
879
883
  ["PRICING", "REVENUE", "ONE_OFF"].includes(e.data.type) ? (t(), o(p, { key: 0 }, [
880
- d(r(b.value) + " ", 1),
881
- e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), o("div", Bt, r(l(De)(e.data.type)), 1)) : y("", !0)
884
+ v(r(y.value) + " ", 1),
885
+ e.data.type === "ONE_OFF" && e.groupType !== "ONE_OFF" ? (t(), o("div", Bt, r(l(De)(e.data.type)), 1)) : b("", !0)
882
886
  ], 64)) : (t(), h(Ce, {
883
887
  key: 1,
884
- "invoice-line-description": b.value,
888
+ "invoice-line-description": y.value,
885
889
  "clause-type": e.data.type,
886
890
  "price-details-band": (O = e.data.details) == null ? void 0 : O.band
887
891
  }, null, 8, ["invoice-line-description", "clause-type", "price-details-band"]))
888
892
  ])
889
893
  ]),
890
- ["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !g.value && ((I = e.data.details) != null && I.band) ? (t(), o("div", At, r(s((P = e.data.details) == null ? void 0 : P.band)), 1)) : y("", !0),
894
+ ["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(e.data.pricing_type) && !u.value && ((M = e.data.details) != null && M.band) ? (t(), o("div", At, r(s((P = e.data.details) == null ? void 0 : P.band)), 1)) : b("", !0),
891
895
  (L = (U = e.data.details) == null ? void 0 : U.split_pricing) != null && L.meter_properties ? (t(), o("span", Pt, [
892
896
  (t(!0), o(p, null, V((W = (E = e.data.details) == null ? void 0 : E.split_pricing) == null ? void 0 : W.meter_properties, (X, q) => (t(), o(p, null, [
893
- d(r(X.meter_property.name) + ": " + r(X.value), 1),
897
+ v(r(X.meter_property.name) + ": " + r(X.value), 1),
894
898
  q < e.data.details.split_pricing.meter_properties.length - 1 ? (t(), o(p, { key: 0 }, [
895
- d(r(", "))
896
- ], 64)) : y("", !0)
899
+ v(r(", "))
900
+ ], 64)) : b("", !0)
897
901
  ], 64))), 256))
898
- ])) : y("", !0),
902
+ ])) : b("", !0),
899
903
  (C = e.data.conditions) != null && C.name || (z = e.data.conditions) != null && z.meter_properties ? (t(), o("div", Ut, [
900
904
  e.data.conditions.name ? (t(), o(p, { key: 0 }, [
901
- d(r(e.data.conditions.name), 1)
905
+ v(r(e.data.conditions.name), 1)
902
906
  ], 64)) : e.data.conditions.meter_properties ? (t(), h(l(Ee), {
903
907
  key: 1,
904
908
  comparators: e.data.conditions.meter_properties
905
- }, null, 8, ["comparators"])) : y("", !0)
906
- ])) : y("", !0)
909
+ }, null, 8, ["comparators"])) : b("", !0)
910
+ ])) : b("", !0)
907
911
  ]),
908
912
  _("span", Lt, [
909
- v.value.kind === "band_minimum_amount" ? (t(), o(p, { key: 0 }, [
910
- d(r(l(n)({
913
+ c.value.kind === "band_minimum_amount" ? (t(), o(p, { key: 0 }, [
914
+ v(r(l(n)({
911
915
  id: "invoice.line.band_minimum_amount",
912
916
  defaultMessage: "Band minimum amount",
913
917
  description: "Minimum amount specified in a band"
914
918
  })) + " ", 1),
915
- v.value.amount ? (t(), h($, {
919
+ c.value.amount ? (t(), h(I, {
916
920
  key: 0,
917
- value: v.value.amount
918
- }, null, 8, ["value"])) : y("", !0)
919
- ], 64)) : v.value.kind === "price_bound_within_bounds" ? (t(), o(p, { key: 1 }, [
920
- d(r(l(n)({
921
+ value: c.value.amount
922
+ }, null, 8, ["value"])) : b("", !0)
923
+ ], 64)) : c.value.kind === "price_bound_within_bounds" ? (t(), o(p, { key: 1 }, [
924
+ v(r(l(n)({
921
925
  id: "invoice.line.price_bound_within_bounds",
922
926
  defaultMessage: "Within bounds",
923
927
  description: "Label used when min and max bounds are specified but reached"
924
928
  })), 1)
925
- ], 64)) : v.value.kind === "price_bound_maximum_amount" ? (t(), o(p, { key: 2 }, [
926
- d(r(l(n)({
929
+ ], 64)) : c.value.kind === "price_bound_maximum_amount" ? (t(), o(p, { key: 2 }, [
930
+ v(r(l(n)({
927
931
  id: "invoice.line.price_bound_maximum_amount",
928
932
  defaultMessage: "Maximum amount",
929
933
  description: "Maximum amount specified in a band"
930
934
  })) + " ", 1),
931
- v.value.amount ? (t(), h($, {
935
+ c.value.amount ? (t(), h(I, {
932
936
  key: 0,
933
- value: v.value.amount
934
- }, null, 8, ["value"])) : y("", !0)
935
- ], 64)) : v.value.kind === "band_minimum_number" ? (t(), o(p, { key: 3 }, [
936
- d(r(l(n)({
937
+ value: c.value.amount
938
+ }, null, 8, ["value"])) : b("", !0)
939
+ ], 64)) : c.value.kind === "band_minimum_number" ? (t(), o(p, { key: 3 }, [
940
+ v(r(l(n)({
937
941
  id: "invoice.line.band_minimum_number",
938
942
  defaultMessage: "Minimum number",
939
943
  description: "Minimum number of units specified in a band"
940
- })) + " " + r(v.value.value), 1)
941
- ], 64)) : v.value.kind === "band_maximum_number" ? (t(), o(p, { key: 4 }, [
942
- d(r(l(n)({
944
+ })) + " " + r(c.value.value), 1)
945
+ ], 64)) : c.value.kind === "band_maximum_number" ? (t(), o(p, { key: 4 }, [
946
+ v(r(l(n)({
943
947
  id: "invoice.line.band_maximum_number",
944
948
  defaultMessage: "Maximum number",
945
949
  description: "Maximum number of units specified in a band"
946
- })) + " " + r(v.value.value), 1)
947
- ], 64)) : y("", !0)
950
+ })) + " " + r(c.value.value), 1)
951
+ ], 64)) : b("", !0)
948
952
  ])
949
953
  ];
950
954
  }),
951
955
  _: 3
952
956
  }),
953
- M(f.$slots, "line-content", {
957
+ $(g.$slots, "line-content", {
954
958
  details: e.data.details
955
959
  })
956
960
  ], 64));
957
961
  }
958
- }), Dt = (e, n, u) => {
959
- var c, m;
962
+ }), Dt = (e, n, d) => {
963
+ var m, f;
960
964
  if (e === "PASS_THROUGH") return { kind: "hidden" };
961
- if (u && ((m = (c = n == null ? void 0 : n.conversion) == null ? void 0 : c.credits) != null && m.quantity))
965
+ if (d && ((f = (m = n == null ? void 0 : n.conversion) == null ? void 0 : m.credits) != null && f.quantity))
962
966
  return { kind: "conversion-credits", value: n.conversion.credits.quantity };
963
967
  if (n != null && n.price_bound) {
964
- const { price_bound: s, meter_value: g, band: v } = n;
965
- return s === "BELOW_MINIMUM_AMOUNT" || s === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: g.count } : s === "NOT_HIT" && "amount" in g && g.amount ? { kind: "amount", amount: g.amount } : s === "NOT_HIT" && "number" in g && g.number ? { kind: "raw", value: g.number } : s === "RATIO" && g.number ? { kind: "number", value: +g.number } : s === "BELOW_MINIMUM_NUMBER" && (v != null && v.minimum_number) ? { kind: "number", value: +v.minimum_number } : s === "ABOVE_MAXIMUM_NUMBER" && (v != null && v.maximum_number) ? { kind: "number", value: +v.maximum_number } : { kind: "hidden" };
968
+ const { price_bound: s, meter_value: u, band: c } = n;
969
+ return s === "BELOW_MINIMUM_AMOUNT" || s === "ABOVE_MAXIMUM_AMOUNT" ? { kind: "raw", value: u.count } : s === "NOT_HIT" && "amount" in u && u.amount ? { kind: "amount", amount: u.amount } : s === "NOT_HIT" && "number" in u && u.number ? { kind: "raw", value: u.number } : s === "RATIO" && u.number ? { kind: "number", value: +u.number } : s === "BELOW_MINIMUM_NUMBER" && (c != null && c.minimum_number) ? { kind: "number", value: +c.minimum_number } : s === "ABOVE_MAXIMUM_NUMBER" && (c != null && c.maximum_number) ? { kind: "number", value: +c.maximum_number } : { kind: "hidden" };
966
970
  }
967
971
  return n != null && n.meter_value && "number" in n.meter_value ? { kind: "number", value: +n.meter_value.number } : n != null && n.meter_value && "amount" in n.meter_value ? { kind: "amount", amount: n.meter_value.amount } : { kind: "one" };
968
- }, Rt = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Ft = (e, n, u) => {
972
+ }, Rt = ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"], Ft = (e, n, d) => {
969
973
  if (e === "PASS_THROUGH") return { kind: "pass-through" };
970
974
  if (n != null && n.price_bound) {
971
- const { price_bound: s, band: g, amount: v } = n;
972
- if (s === "BELOW_MINIMUM_AMOUNT" && (g != null && g.minimum_amount))
973
- return { kind: "amount", amount: g.minimum_amount };
974
- if (s === "ABOVE_MAXIMUM_AMOUNT" && (g != null && g.maximum_amount))
975
- return { kind: "amount", amount: g.maximum_amount };
975
+ const { price_bound: s, band: u, amount: c } = n;
976
+ if (s === "BELOW_MINIMUM_AMOUNT" && (u != null && u.minimum_amount))
977
+ return { kind: "amount", amount: u.minimum_amount };
978
+ if (s === "ABOVE_MAXIMUM_AMOUNT" && (u != null && u.maximum_amount))
979
+ return { kind: "amount", amount: u.maximum_amount };
976
980
  if (s === "RATIO")
977
- return { kind: "amount", amount: (u === "PER_SEAT" ? g == null ? void 0 : g.amount : void 0) ?? v, suffix: { kind: "tier-top-bound" } };
981
+ return { kind: "amount", amount: (d === "PER_SEAT" ? u == null ? void 0 : u.amount : void 0) ?? c, suffix: { kind: "tier-top-bound" } };
978
982
  if (Rt.includes(s)) {
979
- if (g && g.amount)
980
- return { kind: "amount", amount: g.amount };
981
- if (g && "percentage" in g)
982
- return { kind: "percentage", value: g.percentage };
983
- if (g && v)
984
- return { kind: "amount", amount: v, suffix: { kind: "fixed-amount" } };
983
+ if (u && u.amount)
984
+ return { kind: "amount", amount: u.amount };
985
+ if (u && "percentage" in u)
986
+ return { kind: "percentage", value: u.percentage };
987
+ if (u && c)
988
+ return { kind: "amount", amount: c, suffix: { kind: "fixed-amount" } };
985
989
  }
986
990
  return { kind: "hidden" };
987
991
  }
988
- const c = n == null ? void 0 : n.band, m = n == null ? void 0 : n.amount;
989
- 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" };
992
+ const m = n == null ? void 0 : n.band, f = n == null ? void 0 : n.amount;
993
+ 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 && f ? e === "STAIR_STEP" || e === "STAIR_STEP_TOP_UP" ? { kind: "amount", amount: f, suffix: { kind: "fixed-amount" } } : e === "TOP_TIERED" ? { kind: "amount", amount: f, suffix: { kind: "per-unit" } } : e === "FLAT" ? { kind: "amount", amount: f, suffix: { kind: "flat-fee" } } : { kind: "amount", amount: f } : { kind: "hidden" };
990
994
  }, Vt = {
991
995
  key: 5,
992
996
  class: "text-xs text-secondary"
@@ -996,10 +1000,10 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
996
1000
  }, zt = {
997
1001
  key: 0,
998
1002
  class: "text-2xs text-secondary"
999
- }, Ht = {
1003
+ }, Gt = {
1000
1004
  key: 1,
1001
1005
  class: "text-2xs text-secondary"
1002
- }, Gt = {
1006
+ }, Ht = {
1003
1007
  key: 0,
1004
1008
  class: "text-2xs text-secondary"
1005
1009
  }, Xt = {
@@ -1028,6 +1032,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1028
1032
  props: {
1029
1033
  pricingType: {},
1030
1034
  details: {},
1035
+ amount: {},
1031
1036
  taxCategories: {},
1032
1037
  amountType: {},
1033
1038
  hideTaxDetails: { type: Boolean },
@@ -1036,26 +1041,26 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1036
1041
  preferConversionCredits: { type: Boolean }
1037
1042
  },
1038
1043
  setup(e) {
1039
- const n = e, u = B(() => {
1044
+ const n = e, d = B(() => {
1040
1045
  var E;
1041
1046
  return (E = n.details) == null ? void 0 : E.included_volume_details;
1042
- }), c = B(
1047
+ }), m = B(
1043
1048
  () => {
1044
1049
  var E;
1045
- return (E = u.value) == null ? void 0 : E.available_included_volume;
1050
+ return (E = d.value) == null ? void 0 : E.available_included_volume;
1046
1051
  }
1047
- ), m = B(
1052
+ ), f = B(
1048
1053
  () => Dt(n.pricingType, n.details, n.preferConversionCredits)
1049
1054
  ), s = B(
1050
1055
  () => Ft(n.pricingType, n.details, n.modelType)
1051
- ), { $t: g, formatNumber: v } = H(), b = B(
1052
- () => g({
1056
+ ), { $t: u, formatNumber: c } = G(), y = B(
1057
+ () => u({
1053
1058
  id: "invoice.line.fixed_amount",
1054
1059
  defaultMessage: "Fixed amount",
1055
1060
  description: "Label shown when a price band charges a fixed amount regardless of usage"
1056
1061
  })
1057
- ), f = B(
1058
- () => g({
1062
+ ), g = B(
1063
+ () => u({
1059
1064
  id: "invoice.line.flat_fee",
1060
1065
  defaultMessage: "Flat fee",
1061
1066
  description: "Label shown for a flat, usage-independent fee"
@@ -1066,7 +1071,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1066
1071
  return C && "number" in C ? C.number : void 0;
1067
1072
  }), O = B(() => {
1068
1073
  if (x.value !== void 0)
1069
- return g(
1074
+ return u(
1070
1075
  {
1071
1076
  id: "invoice.line.per_units_tier_top_bound",
1072
1077
  defaultMessage: "per {count, plural, one {unit} other {{formattedCount} units}}",
@@ -1074,17 +1079,17 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1074
1079
  },
1075
1080
  { count: +x.value, formattedCount: x.value }
1076
1081
  );
1077
- }), I = B(
1082
+ }), M = B(
1078
1083
  () => {
1079
1084
  var E, W;
1080
1085
  return n.modelType === "PER_SEAT" ? (W = (E = n.details) == null ? void 0 : E.band) == null ? void 0 : W.amount : void 0;
1081
1086
  }
1082
1087
  ), P = B(
1083
- () => n.modelType === "PER_SEAT" ? g({
1088
+ () => n.modelType === "PER_SEAT" ? u({
1084
1089
  id: "invoice.line.per_seat",
1085
1090
  defaultMessage: "Per seat",
1086
1091
  description: "Label shown when a price band applies per single seat"
1087
- }) : g({
1092
+ }) : u({
1088
1093
  id: "invoice.line.per_unit",
1089
1094
  defaultMessage: "Per unit",
1090
1095
  description: "Label shown when a price band applies per single unit"
@@ -1095,7 +1100,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1095
1100
  return C && "number" in C ? C.number : void 0;
1096
1101
  }), L = B(() => {
1097
1102
  if (U.value !== void 0)
1098
- return g(
1103
+ return u(
1099
1104
  {
1100
1105
  id: "invoice.line.per_units_block_size",
1101
1106
  defaultMessage: "Per {count, plural, one {unit} other {{formattedCount} units}}",
@@ -1103,7 +1108,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1103
1108
  },
1104
1109
  {
1105
1110
  count: +U.value,
1106
- formattedCount: v(+U.value)
1111
+ formattedCount: c(+U.value)
1107
1112
  }
1108
1113
  );
1109
1114
  });
@@ -1115,36 +1120,36 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1115
1120
  default: i(() => {
1116
1121
  var C;
1117
1122
  return [
1118
- m.value.kind === "raw" ? (t(), o(p, { key: 0 }, [
1119
- d(r(m.value.value), 1)
1120
- ], 64)) : m.value.kind === "amount" ? (t(), h($, {
1123
+ f.value.kind === "raw" ? (t(), o(p, { key: 0 }, [
1124
+ v(r(f.value.value), 1)
1125
+ ], 64)) : f.value.kind === "amount" ? (t(), h(I, {
1121
1126
  key: 1,
1122
- value: m.value.amount
1123
- }, null, 8, ["value"])) : m.value.kind === "number" ? (t(), o(p, { key: 2 }, [
1124
- d(r(l(v)(m.value.value)), 1)
1125
- ], 64)) : m.value.kind === "conversion-credits" ? (t(), o(p, { key: 3 }, [
1126
- d(r(l(v)(+m.value.value, {
1127
- maximumFractionDigits: l(Me)
1127
+ value: f.value.amount
1128
+ }, null, 8, ["value"])) : f.value.kind === "number" ? (t(), o(p, { key: 2 }, [
1129
+ v(r(l(c)(f.value.value)), 1)
1130
+ ], 64)) : f.value.kind === "conversion-credits" ? (t(), o(p, { key: 3 }, [
1131
+ v(r(l(c)(+f.value.value, {
1132
+ maximumFractionDigits: l($e)
1128
1133
  })), 1)
1129
- ], 64)) : m.value.kind === "one" ? (t(), o(p, { key: 4 }, [
1130
- d("1")
1131
- ], 64)) : y("", !0),
1132
- m.value.kind !== "conversion-credits" && m.value.kind !== "hidden" && !((C = e.details) != null && C.price_bound) && c.value ? (t(), o("div", Vt, [
1133
- c.value.type === "AMOUNT" ? (t(), o(p, { key: 0 }, [
1134
- a($, {
1135
- value: c.value.amount
1134
+ ], 64)) : f.value.kind === "one" ? (t(), o(p, { key: 4 }, [
1135
+ v("1")
1136
+ ], 64)) : b("", !0),
1137
+ f.value.kind !== "conversion-credits" && f.value.kind !== "hidden" && !((C = e.details) != null && C.price_bound) && m.value ? (t(), o("div", Vt, [
1138
+ m.value.type === "AMOUNT" ? (t(), o(p, { key: 0 }, [
1139
+ a(I, {
1140
+ value: m.value.amount
1136
1141
  }, null, 8, ["value"]),
1137
- d(" " + r(l(g)({
1142
+ v(" " + r(l(u)({
1138
1143
  id: "invoice.line.included",
1139
1144
  defaultMessage: "included",
1140
1145
  description: "Used to specify an included amount. Should be lowercase."
1141
1146
  })), 1)
1142
- ], 64)) : c.value.type === "NUMBER" ? (t(), o("span", Wt, r(c.value.number) + " " + r(l(g)({
1147
+ ], 64)) : m.value.type === "NUMBER" ? (t(), o("span", Wt, r(m.value.number) + " " + r(l(u)({
1143
1148
  id: "invoice.line.units_included",
1144
1149
  defaultMessage: "units included",
1145
1150
  description: "Used to specify an included units. Should be lowercase."
1146
- })), 1)) : y("", !0)
1147
- ])) : y("", !0)
1151
+ })), 1)) : b("", !0)
1152
+ ])) : b("", !0)
1148
1153
  ];
1149
1154
  }),
1150
1155
  _: 1
@@ -1154,7 +1159,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1154
1159
  class: "text-right align-top"
1155
1160
  }, {
1156
1161
  default: i(() => [
1157
- d(r(l(g)({
1162
+ v(r(l(u)({
1158
1163
  id: "invoice.line.pass_through",
1159
1164
  defaultMessage: "Pass through",
1160
1165
  description: "Name of the pass through pricing type"
@@ -1170,17 +1175,17 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1170
1175
  var C, z, X, q, Z;
1171
1176
  return [
1172
1177
  s.value.kind === "amount" ? (t(), o(p, { key: 0 }, [
1173
- a($, {
1178
+ a(I, {
1174
1179
  value: s.value.amount
1175
1180
  }, null, 8, ["value"]),
1176
1181
  ((C = s.value.suffix) == null ? void 0 : C.kind) === "tier-top-bound" ? (t(), o(p, { key: 0 }, [
1177
- O.value ? (t(), o("div", zt, r(O.value), 1)) : I.value ? (t(), o("div", Ht, r(P.value), 1)) : y("", !0)
1182
+ O.value ? (t(), o("div", zt, r(O.value), 1)) : M.value ? (t(), o("div", Gt, r(P.value), 1)) : b("", !0)
1178
1183
  ], 64)) : ((z = s.value.suffix) == null ? void 0 : z.kind) === "block-size-or-per-unit" ? (t(), o(p, { key: 1 }, [
1179
- L.value ? (t(), o("div", Gt, r(L.value), 1)) : e.modelType !== "RECURRING" ? (t(), o("div", Xt, r(P.value), 1)) : y("", !0)
1180
- ], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), o("div", qt, r(P.value), 1)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "fixed-amount" ? (t(), o("div", jt, r(b.value), 1)) : ((Z = s.value.suffix) == null ? void 0 : Z.kind) === "flat-fee" ? (t(), o("div", Yt, r(f.value), 1)) : y("", !0)
1184
+ L.value ? (t(), o("div", Ht, r(L.value), 1)) : e.modelType !== "RECURRING" ? (t(), o("div", Xt, r(P.value), 1)) : b("", !0)
1185
+ ], 64)) : ((X = s.value.suffix) == null ? void 0 : X.kind) === "per-unit" ? (t(), o("div", qt, r(P.value), 1)) : ((q = s.value.suffix) == null ? void 0 : q.kind) === "fixed-amount" ? (t(), o("div", jt, r(y.value), 1)) : ((Z = s.value.suffix) == null ? void 0 : Z.kind) === "flat-fee" ? (t(), o("div", Yt, r(g.value), 1)) : b("", !0)
1181
1186
  ], 64)) : s.value.kind === "percentage" ? (t(), o(p, { key: 1 }, [
1182
- d(r(s.value.value) + "% ", 1)
1183
- ], 64)) : y("", !0)
1187
+ v(r(s.value.value) + "% ", 1)
1188
+ ], 64)) : b("", !0)
1184
1189
  ];
1185
1190
  }),
1186
1191
  _: 1
@@ -1191,20 +1196,20 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1191
1196
  class: "align-top"
1192
1197
  }, {
1193
1198
  default: i(() => [
1194
- e.hideTaxDetails ? y("", !0) : (t(!0), o(p, { key: 0 }, V(e.taxCategories, (C, z) => (t(), o("div", {
1199
+ e.hideTaxDetails ? b("", !0) : (t(!0), o(p, { key: 0 }, V(e.taxCategories, (C, z) => (t(), o("div", {
1195
1200
  key: z,
1196
1201
  class: "tabular-nums"
1197
1202
  }, [
1198
1203
  _("div", null, r(C.percentage) + "%", 1),
1199
1204
  _("div", Kt, [
1200
- a($, {
1205
+ a(I, {
1201
1206
  value: C.tax_amount
1202
1207
  }, null, 8, ["value"])
1203
1208
  ])
1204
1209
  ]))), 128))
1205
1210
  ]),
1206
1211
  _: 1
1207
- })) : y("", !0),
1212
+ })) : b("", !0),
1208
1213
  a(k, {
1209
1214
  number: "",
1210
1215
  class: "align-top"
@@ -1220,9 +1225,9 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1220
1225
  class: "inline-block"
1221
1226
  }, [
1222
1227
  _("div", Jt, [
1223
- a($, {
1224
- value: e.details.amount,
1225
- "data-testid": l(se)
1228
+ a(I, {
1229
+ value: e.amount ?? e.details.amount,
1230
+ "data-testid": T === 0 ? l(se) : void 0
1226
1231
  }, null, 8, ["value", "data-testid"]),
1227
1232
  ((D = e.details) == null ? void 0 : D.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), h(de, {
1228
1233
  key: 0,
@@ -1233,12 +1238,12 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1233
1238
  default: i(() => [
1234
1239
  a(ce, null, {
1235
1240
  default: i(() => [
1236
- d(r(l(g)({
1241
+ v(r(l(u)({
1237
1242
  id: "invoice.line.original_currency",
1238
1243
  defaultMessage: "Original currency",
1239
1244
  description: "Original currency"
1240
1245
  })) + " ", 1),
1241
- a($, {
1246
+ a(I, {
1242
1247
  value: e.details.pricing_amount,
1243
1248
  class: "font-semibold"
1244
1249
  }, null, 8, ["value"])
@@ -1250,31 +1255,31 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1250
1255
  })
1251
1256
  ]),
1252
1257
  default: i(() => [
1253
- a(G, {
1258
+ a(H, {
1254
1259
  icon: "info",
1255
1260
  size: "2xs"
1256
1261
  })
1257
1262
  ]),
1258
1263
  _: 1
1259
- })) : y("", !0)
1264
+ })) : b("", !0)
1260
1265
  ]),
1261
- e.hideTaxDetails ? y("", !0) : (t(), o("div", Zt, [
1266
+ e.hideTaxDetails ? b("", !0) : (t(), o("div", Zt, [
1262
1267
  e.amountType === "INCLUDING_TAX" ? (t(), o(p, { key: 0 }, [
1263
- d(r(l(g)({
1268
+ v(r(l(u)({
1264
1269
  id: "invoice.line.excl.tax",
1265
1270
  defaultMessage: "Excl. tax",
1266
1271
  description: "Value excludes tax"
1267
1272
  })) + " ", 1),
1268
- a($, {
1273
+ a(I, {
1269
1274
  value: oe.base_amount
1270
1275
  }, null, 8, ["value"])
1271
1276
  ], 64)) : (t(), o(p, { key: 1 }, [
1272
- d(r(l(g)({
1277
+ v(r(l(u)({
1273
1278
  id: "invoice.line.incl.tax",
1274
1279
  defaultMessage: "Incl. tax",
1275
1280
  description: "Value includes tax"
1276
1281
  })) + " ", 1),
1277
- a($, {
1282
+ a(I, {
1278
1283
  value: oe.total_amount
1279
1284
  }, null, 8, ["value"])
1280
1285
  ], 64))
@@ -1282,8 +1287,8 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1282
1287
  ]);
1283
1288
  }), 128)) : (t(), o("div", en, [
1284
1289
  _("div", tn, [
1285
- a($, {
1286
- value: e.details.amount,
1290
+ a(I, {
1291
+ value: e.amount ?? e.details.amount,
1287
1292
  "data-testid": l(se)
1288
1293
  }, null, 8, ["value", "data-testid"]),
1289
1294
  ((Z = e.details) == null ? void 0 : Z.pricing_amount.quantity) !== e.details.amount.quantity ? (t(), h(de, {
@@ -1295,12 +1300,12 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1295
1300
  default: i(() => [
1296
1301
  a(ce, null, {
1297
1302
  default: i(() => [
1298
- d(r(l(g)({
1303
+ v(r(l(u)({
1299
1304
  id: "invoice.line.original_currency",
1300
1305
  defaultMessage: "Original currency",
1301
1306
  description: "Original currency"
1302
1307
  })) + " ", 1),
1303
- a($, {
1308
+ a(I, {
1304
1309
  value: e.details.pricing_amount,
1305
1310
  class: "font-semibold"
1306
1311
  }, null, 8, ["value"])
@@ -1312,18 +1317,18 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1312
1317
  })
1313
1318
  ]),
1314
1319
  default: i(() => [
1315
- a(G, {
1320
+ a(H, {
1316
1321
  icon: "info",
1317
1322
  size: "2xs"
1318
1323
  })
1319
1324
  ]),
1320
1325
  _: 1
1321
- })) : y("", !0)
1326
+ })) : b("", !0)
1322
1327
  ])
1323
1328
  ])),
1324
- M(E.$slots, "one-off-line-context-menu")
1329
+ $(E.$slots, "one-off-line-context-menu")
1325
1330
  ])) : (t(), o(p, { key: 1 }, [
1326
- d("-")
1331
+ v("-")
1327
1332
  ], 64))
1328
1333
  ];
1329
1334
  }),
@@ -1331,7 +1336,17 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1331
1336
  })
1332
1337
  ], 64));
1333
1338
  }
1334
- }), nn = ["tabindex", "onClick"], Ne = /* @__PURE__ */ S({
1339
+ }), nn = ["DISCOUNT", "MARKUP"], an = (e) => {
1340
+ const n = [...e].sort((u, c) => u.line_order - c.line_order), d = (u) => nn.includes(u.type), m = (u) => !!u.pricing_item_config_id && n.some(
1341
+ (c) => !d(c) && c.pricing_item_config_id === u.pricing_item_config_id
1342
+ ), f = n.filter((u) => d(u) && m(u)), s = n.filter((u) => !f.includes(u));
1343
+ return f.forEach((u) => {
1344
+ const c = s.findLastIndex(
1345
+ (y) => y.pricing_item_config_id === u.pricing_item_config_id && (!d(y) || f.includes(y))
1346
+ );
1347
+ s.splice(c + 1, 0, u);
1348
+ }), s;
1349
+ }, on = ["tabindex", "onClick"], Ne = /* @__PURE__ */ S({
1335
1350
  __name: "InvoiceLineGroup",
1336
1351
  props: {
1337
1352
  group: {},
@@ -1346,15 +1361,10 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1346
1361
  isExpandable: { type: Boolean, default: !0 }
1347
1362
  },
1348
1363
  setup(e) {
1349
- const n = e, u = B(
1350
- () => {
1351
- var b;
1352
- return (b = [...n.group.lines ?? []]) == null ? void 0 : b.sort((f, x) => f.line_order - x.line_order);
1353
- }
1354
- ), c = H(), { getIsOpen: m, toggle: s } = ge(), g = (b, f) => {
1355
- s(v(b, f));
1356
- }, v = (b, f) => `${b}-line-${f}`;
1357
- return (b, f) => (t(), o("div", null, [
1364
+ const n = e, d = B(() => an(n.group.lines ?? [])), m = G(), { getIsOpen: f, toggle: s } = ge(), u = (y, g) => {
1365
+ s(c(y, g));
1366
+ }, c = (y, g) => `${y}-line-${g}`;
1367
+ return (y, g) => (t(), o("div", null, [
1358
1368
  a(J, null, {
1359
1369
  default: i(() => [
1360
1370
  _("tr", null, [
@@ -1363,7 +1373,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1363
1373
  class: "w-1/5 text-secondary"
1364
1374
  }, {
1365
1375
  default: i(() => [
1366
- d(r(l(c).$t({
1376
+ v(r(l(m).$t({
1367
1377
  id: "invoice.table_header.unit",
1368
1378
  defaultMessage: "Unit",
1369
1379
  description: "Table header for the column containing the number of units of invoice groups"
@@ -1376,7 +1386,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1376
1386
  class: "w-1/5 text-secondary"
1377
1387
  }, {
1378
1388
  default: i(() => [
1379
- d(r(l(c).$t({
1389
+ v(r(l(m).$t({
1380
1390
  id: "invoice.table_header.quantity",
1381
1391
  defaultMessage: "Quantity",
1382
1392
  description: "Table header for quantity column"
@@ -1389,7 +1399,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1389
1399
  class: "w-1/5 text-secondary"
1390
1400
  }, {
1391
1401
  default: i(() => [
1392
- d(r(l(c).$t({
1402
+ v(r(l(m).$t({
1393
1403
  id: "invoice.table_header.price",
1394
1404
  defaultMessage: "Price",
1395
1405
  description: "Table header for the column containing the number of units of invoice groups"
@@ -1403,20 +1413,20 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1403
1413
  class: "w-1/5 text-secondary"
1404
1414
  }, {
1405
1415
  default: i(() => [
1406
- d(r(l(c).$t({
1416
+ v(r(l(m).$t({
1407
1417
  id: "invoice.table_header.tax_rate",
1408
1418
  defaultMessage: "Tax rate",
1409
1419
  description: "Table header for the column containing the tax percentage of invoice groups"
1410
1420
  })), 1)
1411
1421
  ]),
1412
1422
  _: 1
1413
- })) : y("", !0),
1423
+ })) : b("", !0),
1414
1424
  a(w, {
1415
1425
  right: "",
1416
1426
  class: "w-1/5 text-secondary"
1417
1427
  }, {
1418
1428
  default: i(() => [
1419
- d(r(l(c).$t({
1429
+ v(r(l(m).$t({
1420
1430
  id: "invoice.table_header.sub_total",
1421
1431
  defaultMessage: "Subtotal",
1422
1432
  description: "Table header for the column containing the subtotal for invoices"
@@ -1425,32 +1435,33 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1425
1435
  _: 1
1426
1436
  })
1427
1437
  ]),
1428
- (t(!0), o(p, null, V(u.value, (x, O) => (t(), o(p, { key: O }, [
1438
+ (t(!0), o(p, null, V(d.value, (x, O) => (t(), o(p, { key: O }, [
1429
1439
  _("tr", {
1430
1440
  tabindex: e.isExpandable && x.sub_lines ? 0 : void 0,
1431
1441
  class: N(["group", {
1432
1442
  "cursor-pointer": e.isExpandable && x.sub_lines,
1433
1443
  "border-t": O !== 0
1434
1444
  }]),
1435
- onClick: (I) => g(e.group.group_order, x.line_order)
1445
+ onClick: (M) => u(e.group.group_order, x.line_order)
1436
1446
  }, [
1437
1447
  (t(), h(St, {
1438
1448
  key: O,
1439
1449
  data: x,
1440
1450
  "period-order": e.invoicePeriodOrder,
1441
1451
  "group-order": e.group.group_order,
1442
- "is-last": O === u.value.length - 1,
1452
+ "is-last": O === d.value.length - 1,
1443
1453
  "group-type": e.group.type,
1444
- "is-expanded": l(m)(v(e.group.group_order, x.line_order))
1454
+ "is-expanded": l(f)(c(e.group.group_order, x.line_order))
1445
1455
  }, {
1446
- "invoice-line-prefix": i((I) => [
1447
- M(b.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, I))
1456
+ "invoice-line-prefix": i((M) => [
1457
+ $(y.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, M))
1448
1458
  ]),
1449
- "line-content": i((I) => {
1459
+ "line-content": i((M) => {
1450
1460
  var P, U;
1451
1461
  return [
1452
1462
  a(he, {
1453
- details: I.details,
1463
+ details: M.details,
1464
+ amount: e.amountType === "INCLUDING_TAX" ? x.amount_including_tax : x.amount_excluding_tax,
1454
1465
  "pricing-type": x.pricing_type,
1455
1466
  "tax-categories": x.tax_categories,
1456
1467
  "amount-type": e.amountType,
@@ -1460,39 +1471,39 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1460
1471
  x.type === "ONE_OFF" ? {
1461
1472
  name: "one-off-line-context-menu",
1462
1473
  fn: i((L) => [
1463
- M(b.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, L, {
1474
+ $(y.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, L, {
1464
1475
  lineOrder: x.line_order
1465
1476
  }))
1466
1477
  ]),
1467
1478
  key: "0"
1468
1479
  } : void 0
1469
- ]), 1032, ["details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
1480
+ ]), 1032, ["details", "amount", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
1470
1481
  ];
1471
1482
  }),
1472
1483
  _: 2
1473
1484
  }, 1032, ["data", "period-order", "group-order", "is-last", "group-type", "is-expanded"]))
1474
- ], 10, nn),
1475
- a(ye, {
1485
+ ], 10, on),
1486
+ a(be, {
1476
1487
  ref_for: !0,
1477
- ref: v(e.group.group_order, x.line_order),
1488
+ ref: c(e.group.group_order, x.line_order),
1478
1489
  "sub-lines": x.sub_lines ?? [],
1479
1490
  "processing-only-customers": e.processingOnlyCustomers,
1480
1491
  "display-invoice-sub-lines-per-processing-only-customer": e.displayInvoiceSubLinesPerProcessingOnlyCustomer,
1481
1492
  "line-order": x.line_order,
1482
- "is-open": l(m)(v(e.group.group_order, x.line_order)),
1493
+ "is-open": l(f)(c(e.group.group_order, x.line_order)),
1483
1494
  "period-order": e.invoicePeriodOrder,
1484
1495
  "group-order": e.group.group_order,
1485
1496
  "show-tax-per-line-item": e.showTaxPerLineItem
1486
1497
  }, {
1487
- "invoice-line-prefix": i((I) => [
1488
- M(b.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, I))
1498
+ "invoice-line-prefix": i((M) => [
1499
+ $(y.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, M))
1489
1500
  ]),
1490
- "subline-content": i((I) => {
1501
+ "subline-content": i((M) => {
1491
1502
  var P, U;
1492
1503
  return [
1493
1504
  a(he, {
1494
- details: I.details,
1495
- "hide-tax-details": I.hideTaxDetails,
1505
+ details: M.details,
1506
+ "hide-tax-details": M.hideTaxDetails,
1496
1507
  "prefer-conversion-credits": "",
1497
1508
  "pricing-type": x.pricing_type,
1498
1509
  "tax-categories": x.tax_categories,
@@ -1510,7 +1521,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1510
1521
  })
1511
1522
  ]));
1512
1523
  }
1513
- }), an = { class: "flex items-center" }, on = {
1524
+ }), ln = { class: "flex items-center" }, rn = {
1514
1525
  key: 2,
1515
1526
  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"
1516
1527
  }, me = /* @__PURE__ */ S({
@@ -1520,11 +1531,11 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1520
1531
  count: {}
1521
1532
  },
1522
1533
  setup(e) {
1523
- const n = re(), u = re(!1);
1524
- return Fe(n, ([c]) => {
1525
- u.value = c.target.clientWidth < c.target.scrollWidth;
1526
- }), (c, m) => (t(), o("div", an, [
1527
- u.value ? (t(), h(de, {
1534
+ const n = re(), d = re(!1);
1535
+ return Fe(n, ([m]) => {
1536
+ d.value = m.target.clientWidth < m.target.scrollWidth;
1537
+ }), (m, f) => (t(), o("div", ln, [
1538
+ d.value ? (t(), h(de, {
1528
1539
  key: 0,
1529
1540
  placement: "bottom-start",
1530
1541
  class: "min-w-0 leading-normal"
@@ -1534,7 +1545,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1534
1545
  default: i(() => [
1535
1546
  a(ce, null, {
1536
1547
  default: i(() => [
1537
- d(r(e.label), 1)
1548
+ v(r(e.label), 1)
1538
1549
  ]),
1539
1550
  _: 1
1540
1551
  })
@@ -1556,13 +1567,13 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1556
1567
  ref: n,
1557
1568
  class: N(["block", { truncate: e.count !== void 0 }])
1558
1569
  }, r(e.label), 3)),
1559
- e.count !== void 0 ? (t(), o("span", on, r(e.count), 1)) : y("", !0)
1570
+ e.count !== void 0 ? (t(), o("span", rn, r(e.count), 1)) : b("", !0)
1560
1571
  ]));
1561
1572
  }
1562
- }), ln = ["tabindex"], rn = { key: 0 }, sn = {
1573
+ }), sn = ["tabindex"], dn = { key: 0 }, un = {
1563
1574
  colspan: "2",
1564
1575
  class: "p-0"
1565
- }, dn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, un = /* @__PURE__ */ S({
1576
+ }, cn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, mn = /* @__PURE__ */ S({
1566
1577
  __name: "InvoiceGroupRevenue",
1567
1578
  props: {
1568
1579
  forwardedFromCustomers: {},
@@ -1581,37 +1592,37 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1581
1592
  showTaxPerLineItem: { type: Boolean, default: !0 }
1582
1593
  },
1583
1594
  setup(e) {
1584
- const n = e, u = B(() => {
1585
- var c, m, s;
1586
- const g = [
1587
- (c = n.group.pricing) == null ? void 0 : c.name,
1588
- be(((m = n.group.products) == null ? void 0 : m.map((f) => f.name)) ?? [])
1589
- ].filter(Boolean).join(" - "), v = Mt(
1595
+ const n = e, d = B(() => {
1596
+ var m, f, s;
1597
+ const u = [
1598
+ (m = n.group.pricing) == null ? void 0 : m.name,
1599
+ ye(((f = n.group.products) == null ? void 0 : f.map((g) => g.name)) ?? [])
1600
+ ].filter(Boolean).join(" - "), c = $t(
1590
1601
  n.group,
1591
1602
  !!n.showOriginalCustomerInvoiceLine
1592
1603
  );
1593
- if (!v)
1594
- return g;
1595
- const b = (s = n.forwardedFromCustomers) == null ? void 0 : s.find(
1596
- (f) => f.id === v
1604
+ if (!c)
1605
+ return u;
1606
+ const y = (s = n.forwardedFromCustomers) == null ? void 0 : s.find(
1607
+ (g) => g.id === c
1597
1608
  );
1598
- return [b && $e(b), g].filter(Boolean).join(" - ");
1609
+ return [y && Me(y), u].filter(Boolean).join(" - ");
1599
1610
  });
1600
- return (c, m) => (t(), o(p, null, [
1611
+ return (m, f) => (t(), o(p, null, [
1601
1612
  _("tr", {
1602
1613
  class: N(["border-t break-inside-avoid", { "cursor-pointer": e.isExpandable }]),
1603
1614
  tabindex: e.isExpandable ? 0 : void 0,
1604
- onClick: m[0] || (m[0] = (s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
1615
+ onClick: f[0] || (f[0] = (s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder))),
1605
1616
  onKeyup: [
1606
- m[1] || (m[1] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
1607
- m[2] || (m[2] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
1617
+ f[1] || (f[1] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["enter"])),
1618
+ f[2] || (f[2] = j((s) => e.handleToggleItems(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)), ["space"]))
1608
1619
  ]
1609
1620
  }, [
1610
1621
  a(k, { class: "p-0" }, {
1611
1622
  default: i(() => {
1612
1623
  var s;
1613
1624
  return [
1614
- e.isExpandable ? (t(), h(G, {
1625
+ e.isExpandable ? (t(), h(H, {
1615
1626
  key: 0,
1616
1627
  icon: "keyboard_arrow_down",
1617
1628
  size: "md",
@@ -1620,9 +1631,9 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1620
1631
  e.formatIndex(e.invoicePeriodOrder, e.groupOrder)
1621
1632
  )
1622
1633
  }])
1623
- }, null, 8, ["class"])) : y("", !0),
1634
+ }, null, 8, ["class"])) : b("", !0),
1624
1635
  a(me, {
1625
- label: u.value,
1636
+ label: d.value,
1626
1637
  count: e.isExpandable ? ((s = e.group.lines) == null ? void 0 : s.length) ?? 0 : void 0
1627
1638
  }, null, 8, ["label", "count"])
1628
1639
  ];
@@ -1631,12 +1642,12 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1631
1642
  }),
1632
1643
  a(k, { number: "" }, {
1633
1644
  default: i(() => [
1634
- e.amountType === "INCLUDING_TAX" ? (t(), h($, {
1645
+ e.amountType === "INCLUDING_TAX" ? (t(), h(I, {
1635
1646
  key: 0,
1636
1647
  value: e.group.amount_including_tax,
1637
1648
  "data-testid": l(ie),
1638
1649
  "data-type": l(ae)(e.group)
1639
- }, null, 8, ["value", "data-testid", "data-type"])) : (t(), h($, {
1650
+ }, null, 8, ["value", "data-testid", "data-type"])) : (t(), h(I, {
1640
1651
  key: 1,
1641
1652
  value: e.group.amount_excluding_tax,
1642
1653
  "data-testid": l(ie),
@@ -1645,10 +1656,10 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1645
1656
  ]),
1646
1657
  _: 1
1647
1658
  })
1648
- ], 42, ln),
1649
- e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), o("tr", rn, [
1650
- _("td", sn, [
1651
- _("div", dn, [
1659
+ ], 42, sn),
1660
+ e.forceExpanded || e.expandedItems.includes(e.formatIndex(e.invoicePeriodOrder, e.groupOrder)) ? (t(), o("tr", dn, [
1661
+ _("td", un, [
1662
+ _("div", cn, [
1652
1663
  a(Ne, {
1653
1664
  "invoice-period-order": e.invoicePeriodOrder,
1654
1665
  "start-date": e.group.start_at,
@@ -1662,16 +1673,16 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1662
1673
  "is-expandable": e.isExpandable
1663
1674
  }, {
1664
1675
  "invoice-line-prefix": i((s) => [
1665
- M(c.$slots, "invoice-line-prefix", ve(fe(s)))
1676
+ $(m.$slots, "invoice-line-prefix", fe(ve(s)))
1666
1677
  ]),
1667
1678
  "one-off-line-context-menu": i((s) => [
1668
- M(c.$slots, "one-off-line-context-menu", Q(s, { groupOrder: e.groupOrder }))
1679
+ $(m.$slots, "one-off-line-context-menu", Q(s, { groupOrder: e.groupOrder }))
1669
1680
  ]),
1670
1681
  _: 3
1671
1682
  }, 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"])
1672
1683
  ])
1673
1684
  ])
1674
- ])) : y("", !0)
1685
+ ])) : b("", !0)
1675
1686
  ], 64));
1676
1687
  }
1677
1688
  }), _e = /* @__PURE__ */ S({
@@ -1681,25 +1692,25 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1681
1692
  creditTypes: {}
1682
1693
  },
1683
1694
  setup(e) {
1684
- const n = e, { $t: u } = H(), c = B(
1695
+ const n = e, { $t: d } = G(), m = B(
1685
1696
  () => Ve(We(n.lines), {
1686
1697
  creditTypes: n.creditTypes,
1687
- creditsLabel: u({
1698
+ creditsLabel: d({
1688
1699
  defaultMessage: "Credits",
1689
1700
  description: "Generic fallback label for a wallet balance row with no known credit type",
1690
1701
  id: "invoiceGroupWalletBalance.creditsLabel"
1691
1702
  }),
1692
- walletLabel: u({
1703
+ walletLabel: d({
1693
1704
  defaultMessage: "Wallet balance",
1694
1705
  description: "Label for a wallet balance row of a wallet that pays in money",
1695
1706
  id: "invoiceGroupWalletBalance.walletBalanceLabel"
1696
1707
  })
1697
1708
  })
1698
- ), m = (s) => ze(s, {
1709
+ ), f = (s) => ze(s, {
1699
1710
  formatMoney: we,
1700
- formatQuantity: (g) => g
1711
+ formatQuantity: (u) => u
1701
1712
  });
1702
- return (s, g) => c.value.length ? (t(), h(J, { key: 0 }, {
1713
+ return (s, u) => m.value.length ? (t(), h(J, { key: 0 }, {
1703
1714
  default: i(() => [
1704
1715
  _("tr", null, [
1705
1716
  a(w, {
@@ -1707,7 +1718,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1707
1718
  class: "w-2/5 text-gray-400"
1708
1719
  }, {
1709
1720
  default: i(() => [
1710
- d(r(l(u)({
1721
+ v(r(l(d)({
1711
1722
  defaultMessage: "Wallet breakdown",
1712
1723
  description: "Table heading for the wallet column in the wallet balance table",
1713
1724
  id: "invoiceGroupWalletBalance.walletBreakdownHeading"
@@ -1720,7 +1731,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1720
1731
  class: "w-1/5 text-gray-400"
1721
1732
  }, {
1722
1733
  default: i(() => [
1723
- d(r(l(u)({
1734
+ v(r(l(d)({
1724
1735
  defaultMessage: "Balance",
1725
1736
  description: "Table heading for the balance column in the wallet balance table",
1726
1737
  id: "invoiceGroupWalletBalance.balanceHeading"
@@ -1733,7 +1744,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1733
1744
  class: "w-1/5 text-gray-400"
1734
1745
  }, {
1735
1746
  default: i(() => [
1736
- d(r(l(u)({
1747
+ v(r(l(d)({
1737
1748
  defaultMessage: "Used",
1738
1749
  description: "Table heading for the used-balance column in the wallet balance table",
1739
1750
  id: "invoiceGroupWalletBalance.usedHeading"
@@ -1746,7 +1757,7 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1746
1757
  class: "w-1/5 text-gray-400"
1747
1758
  }, {
1748
1759
  default: i(() => [
1749
- d(r(l(u)({
1760
+ v(r(l(d)({
1750
1761
  defaultMessage: "Remaining",
1751
1762
  description: "Table heading for the remaining-balance column in the wallet balance table",
1752
1763
  id: "invoiceGroupWalletBalance.remainingHeading"
@@ -1755,59 +1766,59 @@ const J = /* @__PURE__ */ Se(qe, [["render", Ye]]), k = /* @__PURE__ */ S({
1755
1766
  _: 1
1756
1767
  })
1757
1768
  ]),
1758
- (t(!0), o(p, null, V(c.value, (v) => (t(), o("tr", {
1759
- key: v.key
1769
+ (t(!0), o(p, null, V(m.value, (c) => (t(), o("tr", {
1770
+ key: c.key
1760
1771
  }, [
1761
1772
  a(k, null, {
1762
1773
  default: i(() => [
1763
- d(r(v.label), 1)
1774
+ v(r(c.label), 1)
1764
1775
  ]),
1765
1776
  _: 2
1766
1777
  }, 1024),
1767
1778
  a(k, { number: "" }, {
1768
1779
  default: i(() => [
1769
- d(r(m(v.availableBalance)), 1)
1780
+ v(r(f(c.availableBalance)), 1)
1770
1781
  ]),
1771
1782
  _: 2
1772
1783
  }, 1024),
1773
1784
  a(k, { number: "" }, {
1774
1785
  default: i(() => [
1775
- d(r(m(v.usedBalance)), 1)
1786
+ v(r(f(c.usedBalance)), 1)
1776
1787
  ]),
1777
1788
  _: 2
1778
1789
  }, 1024),
1779
1790
  a(k, { number: "" }, {
1780
1791
  default: i(() => [
1781
- d(r(m(v.leftBalance)), 1)
1792
+ v(r(f(c.leftBalance)), 1)
1782
1793
  ]),
1783
1794
  _: 2
1784
1795
  }, 1024)
1785
1796
  ]))), 128))
1786
1797
  ]),
1787
1798
  _: 1
1788
- })) : y("", !0);
1799
+ })) : b("", !0);
1789
1800
  }
1790
1801
  });
1791
1802
  function ke(e) {
1792
1803
  return typeof e == "function" ? e() : l(e);
1793
1804
  }
1794
1805
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1795
- function cn(e = !1, n = {}) {
1806
+ function fn(e = !1, n = {}) {
1796
1807
  const {
1797
- truthyValue: u = !0,
1798
- falsyValue: c = !1
1799
- } = n, m = Ae(e), s = re(e);
1800
- function g(v) {
1808
+ truthyValue: d = !0,
1809
+ falsyValue: m = !1
1810
+ } = n, f = Ae(e), s = re(e);
1811
+ function u(c) {
1801
1812
  if (arguments.length)
1802
- return s.value = v, s.value;
1813
+ return s.value = c, s.value;
1803
1814
  {
1804
- const b = ke(u);
1805
- return s.value = s.value === b ? ke(c) : b, s.value;
1815
+ const y = ke(d);
1816
+ return s.value = s.value === y ? ke(m) : y, s.value;
1806
1817
  }
1807
1818
  }
1808
- return m ? g : [s, g];
1819
+ return f ? u : [s, u];
1809
1820
  }
1810
- const mn = {
1821
+ const vn = {
1811
1822
  key: 0,
1812
1823
  totals: "",
1813
1824
  class: "border-t break-inside-avoid"
@@ -1817,11 +1828,11 @@ const mn = {
1817
1828
  baseAmount: {}
1818
1829
  },
1819
1830
  setup(e) {
1820
- const n = H();
1821
- return (u, c) => e.baseAmount ? (t(), o("tr", mn, [
1831
+ const n = G();
1832
+ return (d, m) => e.baseAmount ? (t(), o("tr", vn, [
1822
1833
  a(k, null, {
1823
1834
  default: i(() => [
1824
- d(r(l(n).$t({
1835
+ v(r(l(n).$t({
1825
1836
  id: "invoice.table_header.total_excluding_taxes",
1826
1837
  defaultMessage: "Total excluding taxes",
1827
1838
  description: "Table row header for the total excluding taxes column in the invoice table"
@@ -1831,16 +1842,16 @@ const mn = {
1831
1842
  }),
1832
1843
  a(k, { number: "" }, {
1833
1844
  default: i(() => [
1834
- a($, {
1845
+ a(I, {
1835
1846
  value: e.baseAmount,
1836
1847
  "data-testid": l(et)
1837
1848
  }, null, 8, ["value", "data-testid"])
1838
1849
  ]),
1839
1850
  _: 1
1840
1851
  })
1841
- ])) : y("", !0);
1852
+ ])) : b("", !0);
1842
1853
  }
1843
- }), vn = {
1854
+ }), gn = {
1844
1855
  key: 0,
1845
1856
  class: "border-t font-bold break-inside-avoid"
1846
1857
  }, Oe = /* @__PURE__ */ S({
@@ -1850,11 +1861,11 @@ const mn = {
1850
1861
  isCustomerFacing: { type: Boolean }
1851
1862
  },
1852
1863
  setup(e) {
1853
- const n = H();
1854
- return (u, c) => e.totalAmount ? (t(), o("tr", vn, [
1864
+ const n = G();
1865
+ return (d, m) => e.totalAmount ? (t(), o("tr", gn, [
1855
1866
  a(k, { class: "font-bold" }, {
1856
1867
  default: i(() => [
1857
- d(r(e.isCustomerFacing ? l(n).$t({
1868
+ v(r(e.isCustomerFacing ? l(n).$t({
1858
1869
  id: "invoice.table_header.total_including_taxes_customer_facing",
1859
1870
  defaultMessage: "Total due today",
1860
1871
  description: "Table row header for the total including taxes column in the invoice table for a customer facing component"
@@ -1868,32 +1879,32 @@ const mn = {
1868
1879
  }),
1869
1880
  a(k, { number: "" }, {
1870
1881
  default: i(() => [
1871
- a($, {
1882
+ a(I, {
1872
1883
  value: e.totalAmount,
1873
1884
  "data-testid": l(Ze)
1874
1885
  }, null, 8, ["value", "data-testid"])
1875
1886
  ]),
1876
1887
  _: 1
1877
1888
  })
1878
- ])) : y("", !0);
1889
+ ])) : b("", !0);
1879
1890
  }
1880
- }), fn = {
1891
+ }), yn = {
1881
1892
  key: 0,
1882
1893
  colspan: "4",
1883
1894
  class: "p-0"
1884
- }, gn = /* @__PURE__ */ S({
1895
+ }, bn = /* @__PURE__ */ S({
1885
1896
  __name: "InvoiceTaxes",
1886
1897
  props: {
1887
1898
  taxCategories: {}
1888
1899
  },
1889
1900
  setup(e) {
1890
- const n = H();
1891
- return (u, c) => (t(), h(J, { class: "table-fixed" }, {
1901
+ const n = G();
1902
+ return (d, m) => (t(), h(J, { class: "table-fixed" }, {
1892
1903
  default: i(() => [
1893
1904
  _("tr", null, [
1894
1905
  a(w, { left: "" }, {
1895
1906
  default: i(() => [
1896
- d(r(l(n).$t({
1907
+ v(r(l(n).$t({
1897
1908
  id: "invoice.table_header.tax type",
1898
1909
  defaultMessage: "Tax type",
1899
1910
  description: "Table header for the column containing the tax type"
@@ -1903,7 +1914,7 @@ const mn = {
1903
1914
  }),
1904
1915
  a(w, { right: "" }, {
1905
1916
  default: i(() => [
1906
- d(r(l(n).$t({
1917
+ v(r(l(n).$t({
1907
1918
  id: "invoice.table_header.base amount",
1908
1919
  defaultMessage: "Base amount",
1909
1920
  description: "Table header for the column containing the base amount"
@@ -1913,7 +1924,7 @@ const mn = {
1913
1924
  }),
1914
1925
  a(w, { right: "" }, {
1915
1926
  default: i(() => [
1916
- d(r(l(n).$t({
1927
+ v(r(l(n).$t({
1917
1928
  id: "invoice.table_header.tax_percentage",
1918
1929
  defaultMessage: "Percentage",
1919
1930
  description: "Table header for the column containing the tax percentage"
@@ -1923,7 +1934,7 @@ const mn = {
1923
1934
  }),
1924
1935
  a(w, { right: "" }, {
1925
1936
  default: i(() => [
1926
- d(r(l(n).$t({
1937
+ v(r(l(n).$t({
1927
1938
  id: "invoice.table_header.tax amount",
1928
1939
  defaultMessage: "Tax amount",
1929
1940
  description: "Table header for the column containing the tax amount"
@@ -1932,35 +1943,35 @@ const mn = {
1932
1943
  _: 1
1933
1944
  })
1934
1945
  ]),
1935
- (t(!0), o(p, null, V(e.taxCategories, (m, s) => (t(), o("tr", { key: s }, [
1936
- m.rates ? (t(), o("td", fn, [
1946
+ (t(!0), o(p, null, V(e.taxCategories, (f, s) => (t(), o("tr", { key: s }, [
1947
+ f.rates ? (t(), o("td", yn, [
1937
1948
  a(J, { class: "table-fixed" }, {
1938
1949
  default: i(() => [
1939
- (t(!0), o(p, null, V(m.rates, (g, v) => (t(), o("tr", { key: v }, [
1950
+ (t(!0), o(p, null, V(f.rates, (u, c) => (t(), o("tr", { key: c }, [
1940
1951
  a(k, null, {
1941
1952
  default: i(() => [
1942
- d(r(g.name) + " (" + r(m.category) + ") ", 1)
1953
+ v(r(u.name) + " (" + r(f.category) + ") ", 1)
1943
1954
  ]),
1944
1955
  _: 2
1945
1956
  }, 1024),
1946
1957
  a(k, { number: "" }, {
1947
1958
  default: i(() => [
1948
- a($, {
1949
- value: m.base_amount
1959
+ a(I, {
1960
+ value: f.base_amount
1950
1961
  }, null, 8, ["value"])
1951
1962
  ]),
1952
1963
  _: 2
1953
1964
  }, 1024),
1954
1965
  a(k, { number: "" }, {
1955
1966
  default: i(() => [
1956
- d(r(g.percentage) + "%", 1)
1967
+ v(r(u.percentage) + "%", 1)
1957
1968
  ]),
1958
1969
  _: 2
1959
1970
  }, 1024),
1960
1971
  a(k, { number: "" }, {
1961
1972
  default: i(() => [
1962
- a($, {
1963
- value: g.tax_amount
1973
+ a(I, {
1974
+ value: u.tax_amount
1964
1975
  }, null, 8, ["value"])
1965
1976
  ]),
1966
1977
  _: 2
@@ -1972,28 +1983,28 @@ const mn = {
1972
1983
  ])) : (t(), o(p, { key: 1 }, [
1973
1984
  a(k, null, {
1974
1985
  default: i(() => [
1975
- d(r(m.name) + " (" + r(m.category) + ") ", 1)
1986
+ v(r(f.name) + " (" + r(f.category) + ") ", 1)
1976
1987
  ]),
1977
1988
  _: 2
1978
1989
  }, 1024),
1979
1990
  a(k, { number: "" }, {
1980
1991
  default: i(() => [
1981
- a($, {
1982
- value: m.base_amount
1992
+ a(I, {
1993
+ value: f.base_amount
1983
1994
  }, null, 8, ["value"])
1984
1995
  ]),
1985
1996
  _: 2
1986
1997
  }, 1024),
1987
1998
  a(k, { number: "" }, {
1988
1999
  default: i(() => [
1989
- d(r(m.percentage) + "%", 1)
2000
+ v(r(f.percentage) + "%", 1)
1990
2001
  ]),
1991
2002
  _: 2
1992
2003
  }, 1024),
1993
2004
  a(k, { number: "" }, {
1994
2005
  default: i(() => [
1995
- a($, {
1996
- value: m.tax_amount
2006
+ a(I, {
2007
+ value: f.tax_amount
1997
2008
  }, null, 8, ["value"])
1998
2009
  ]),
1999
2010
  _: 2
@@ -2004,25 +2015,25 @@ const mn = {
2004
2015
  _: 1
2005
2016
  }));
2006
2017
  }
2007
- }), bn = { class: "flex items-start justify-between" }, yn = {
2018
+ }), pn = { class: "flex items-start justify-between" }, xn = {
2008
2019
  key: 0,
2009
2020
  class: "max-h-9"
2010
- }, pn = { class: "flex flex-col gap-2" }, xn = { key: 0 }, hn = { key: 3 }, _n = {
2021
+ }, hn = { class: "flex flex-col gap-2" }, _n = { key: 0 }, kn = { key: 3 }, Tn = {
2011
2022
  colspan: "2",
2012
2023
  class: "p-0"
2013
- }, kn = ["tabindex"], Tn = { key: 1 }, On = {
2024
+ }, On = ["tabindex"], In = { key: 1 }, Mn = {
2014
2025
  colspan: "2",
2015
2026
  class: "p-0"
2016
- }, In = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, $n = ["tabindex", "onClick", "onKeyup"], Mn = { key: 0 }, wn = {
2027
+ }, $n = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, wn = ["tabindex", "onClick", "onKeyup"], En = { key: 0 }, Cn = {
2017
2028
  colspan: "2",
2018
2029
  class: "p-0"
2019
- }, En = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Cn = { key: 1 }, Nn = {
2030
+ }, Nn = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" }, Bn = { key: 1 }, An = {
2020
2031
  colspan: "2",
2021
2032
  class: "p-0"
2022
- }, Bn = {
2033
+ }, Pn = {
2023
2034
  key: 0,
2024
2035
  class: "break-inside-avoid border-t font-bold"
2025
- }, Kn = /* @__PURE__ */ S({
2036
+ }, Jn = /* @__PURE__ */ S({
2026
2037
  __name: "InvoiceSummary",
2027
2038
  props: {
2028
2039
  invoice: {},
@@ -2039,26 +2050,26 @@ const mn = {
2039
2050
  },
2040
2051
  emits: ["add-invoice-line", "add-note"],
2041
2052
  setup(e, { emit: n }) {
2042
- const u = H(), { formatMessage: c } = u, m = n, s = e, [g, v] = xe(), [b, f] = xe(), [x, O] = cn(), I = (...T) => {
2043
- s.isExpandable && v(...T);
2053
+ const d = G(), { formatMessage: m } = d, f = n, s = e, [u, c] = xe(), [y, g] = xe(), [x, O] = fn(), M = (...T) => {
2054
+ s.isExpandable && c(...T);
2044
2055
  }, P = (T) => {
2045
- s.isExpandable && f(T);
2056
+ s.isExpandable && g(T);
2046
2057
  }, U = () => {
2047
2058
  !s.invoice.tax_categories || !s.isExpandable || O();
2048
- }, L = (T, D) => +`${T}${D}`, E = (T) => u.$t(
2059
+ }, L = (T, D) => +`${T}${D}`, E = (T) => d.$t(
2049
2060
  {
2050
2061
  id: "invoice.service_period_heading",
2051
2062
  defaultMessage: "Service period - {start_at} - {end_at}",
2052
2063
  description: "Heading for rendered services where {start_at} is replaced for the start date and {end_at} for the end date in invoice summary"
2053
2064
  },
2054
2065
  {
2055
- start_at: u.formatDate({
2066
+ start_at: d.formatDate({
2056
2067
  date: T.start_at,
2057
2068
  format: "date",
2058
2069
  timezone: pe(s.invoice.customer.timezone),
2059
2070
  offsetType: "offsetted"
2060
2071
  }),
2061
- end_at: u.formatDate({
2072
+ end_at: d.formatDate({
2062
2073
  date: T.end_at,
2063
2074
  format: "date",
2064
2075
  timezone: pe(s.invoice.customer.timezone),
@@ -2069,31 +2080,31 @@ const mn = {
2069
2080
  switch (T) {
2070
2081
  case "PRICING":
2071
2082
  case "REVENUE":
2072
- return u.$t({
2083
+ return d.$t({
2073
2084
  id: "invoice.table_heading.products",
2074
2085
  defaultMessage: "Products",
2075
2086
  description: "Table heading for the column containing the products of the invoice"
2076
2087
  });
2077
2088
  case "COMMITMENT":
2078
- return u.$t({
2089
+ return d.$t({
2079
2090
  id: "invoice.table_heading.commitments",
2080
2091
  defaultMessage: "Commitments",
2081
2092
  description: "Table heading for the column containing the commitments of the invoice"
2082
2093
  });
2083
2094
  case "DISCOUNT":
2084
- return u.$t({
2095
+ return d.$t({
2085
2096
  id: "invoice.table_heading.discounts",
2086
2097
  defaultMessage: "Discounts",
2087
2098
  description: "Table heading for the column containing the discounts of the invoice"
2088
2099
  });
2089
2100
  case "MARKUP":
2090
- return u.$t({
2101
+ return d.$t({
2091
2102
  id: "invoice.table_heading.markups",
2092
2103
  defaultMessage: "Markups",
2093
2104
  description: "Table heading for the column containing the markups of the invoice"
2094
2105
  });
2095
2106
  case "ONE_OFF":
2096
- return u.$t({
2107
+ return d.$t({
2097
2108
  id: "invoice.table_heading.one_offs",
2098
2109
  defaultMessage: "One-off's",
2099
2110
  description: "Table heading for the column containing the one-offs of the invoice"
@@ -2101,7 +2112,7 @@ const mn = {
2101
2112
  }
2102
2113
  }, C = (T) => {
2103
2114
  var D, R;
2104
- return (D = T.products) != null && D.length ? [(R = T.pricing) == null ? void 0 : R.name, be(T.products.map((F) => F.name))].filter(Boolean).join(" - ") : T.description ?? "";
2115
+ return (D = T.products) != null && D.length ? [(R = T.pricing) == null ? void 0 : R.name, ye(T.products.map((F) => F.name))].filter(Boolean).join(" - ") : T.description ?? "";
2105
2116
  }, z = (T) => s.showWalletBalance && !(s.hideOneOffWalletBalance && T.type === "ONE_OFF") && (T.lines ?? []).some((D) => {
2106
2117
  var R, F;
2107
2118
  return !!((F = (R = D.details) == null ? void 0 : R.wallet_balances) != null && F.length);
@@ -2114,48 +2125,48 @@ const mn = {
2114
2125
  ), q = B(() => {
2115
2126
  const T = [];
2116
2127
  return ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(s.invoice.type) && ["DRAFT", "OPEN"].includes(s.invoice.status) && s.isInvoiceLineCreatable && T.push({
2117
- label: c({
2128
+ label: m({
2118
2129
  defaultMessage: "Invoice line",
2119
2130
  id: "JlhdD2",
2120
2131
  description: "Label for adding an invoice line"
2121
2132
  }),
2122
- onClick: () => m("add-invoice-line")
2133
+ onClick: () => f("add-invoice-line")
2123
2134
  }), s.isNoteCreatable && T.push({
2124
- label: c({
2135
+ label: m({
2125
2136
  defaultMessage: "Note",
2126
2137
  id: "jB8+k/",
2127
2138
  description: "Label for adding a note to an invoice"
2128
2139
  }),
2129
- onClick: () => m("add-note")
2140
+ onClick: () => f("add-note")
2130
2141
  }), T;
2131
2142
  }), Z = B(() => s.invoice.show_tax_per_line_item !== !1), oe = B(() => {
2132
2143
  if (s.heading === "summary")
2133
- return u.$t({
2144
+ return d.$t({
2134
2145
  id: "invoice.summaryTitle",
2135
2146
  defaultMessage: "Invoice summary",
2136
2147
  description: "Title for the compact, always-shown invoice summary section"
2137
2148
  });
2138
2149
  switch (s.invoice.type) {
2139
2150
  case "CREDIT":
2140
- return u.$t({
2151
+ return d.$t({
2141
2152
  id: "invoice.creditDetailsTitle",
2142
2153
  defaultMessage: "Credit details",
2143
2154
  description: "Title for the invoice summary of a credit-note invoice"
2144
2155
  });
2145
2156
  case "ONE_OFF":
2146
- return u.$t({
2157
+ return d.$t({
2147
2158
  id: "invoice.oneOffDetailsTitle",
2148
2159
  defaultMessage: "One-off details",
2149
2160
  description: "Title for the invoice summary of a one-off invoice"
2150
2161
  });
2151
2162
  case "ONE_OFF_CREDIT":
2152
- return u.$t({
2163
+ return d.$t({
2153
2164
  id: "invoice.oneOffCreditDetailsTitle",
2154
2165
  defaultMessage: "One-off credit details",
2155
2166
  description: "Title for the invoice summary of a one-off credit-note invoice"
2156
2167
  });
2157
2168
  default:
2158
- return u.$t({
2169
+ return d.$t({
2159
2170
  id: "invoice.title",
2160
2171
  defaultMessage: "Details",
2161
2172
  description: "Title for the invoice summary"
@@ -2165,10 +2176,10 @@ const mn = {
2165
2176
  return (T, D) => {
2166
2177
  var R;
2167
2178
  return t(), o("div", null, [
2168
- _("div", bn, [
2169
- T.$slots.logo ? (t(), o("div", yn, [
2170
- M(T.$slots, "logo")
2171
- ])) : (t(), h(Ge, {
2179
+ _("div", pn, [
2180
+ T.$slots.logo ? (t(), o("div", xn, [
2181
+ $(T.$slots, "logo")
2182
+ ])) : (t(), h(He, {
2172
2183
  key: 1,
2173
2184
  title: oe.value,
2174
2185
  variant: "neutral",
@@ -2176,8 +2187,8 @@ const mn = {
2176
2187
  "icon-class": "print:hidden",
2177
2188
  "title-class": "print:text-sm"
2178
2189
  }, null, 8, ["title"])),
2179
- T.$slots.intro ? M(T.$slots, "intro", {}, void 0, void 0, 2) : y("", !0),
2180
- _("div", pn, [
2190
+ T.$slots.intro ? $(T.$slots, "intro", {}, void 0, void 0, 2) : b("", !0),
2191
+ _("div", hn, [
2181
2192
  (R = q.value) != null && R.length ? (t(), h(Xe, {
2182
2193
  key: 0,
2183
2194
  items: q.value,
@@ -2190,7 +2201,7 @@ const mn = {
2190
2201
  intent: "secondary"
2191
2202
  }, {
2192
2203
  default: i(() => [
2193
- d(r(l(c)({
2204
+ v(r(l(m)({
2194
2205
  defaultMessage: "Add",
2195
2206
  id: "YnK/yF",
2196
2207
  description: "Label for adding an item to an invoice"
@@ -2200,14 +2211,14 @@ const mn = {
2200
2211
  })
2201
2212
  ]),
2202
2213
  _: 1
2203
- }, 8, ["items"])) : y("", !0),
2204
- M(T.$slots, "child-customers-selector")
2214
+ }, 8, ["items"])) : b("", !0),
2215
+ $(T.$slots, "child-customers-selector")
2205
2216
  ])
2206
2217
  ]),
2207
- T.$slots.total ? M(T.$slots, "total", {}, void 0, void 0, 0) : y("", !0),
2208
- M(T.$slots, "notes"),
2218
+ T.$slots.total ? $(T.$slots, "total", {}, void 0, void 0, 0) : b("", !0),
2219
+ $(T.$slots, "notes"),
2209
2220
  (t(!0), o(p, null, V(e.invoice.periods, (F, Y) => (t(), o(p, { key: Y }, [
2210
- e.showRenderedServicesHeader ? (t(), h(He, {
2221
+ e.showRenderedServicesHeader ? (t(), h(Ge, {
2211
2222
  key: 0,
2212
2223
  class: "mt-6"
2213
2224
  }, {
@@ -2217,13 +2228,13 @@ const mn = {
2217
2228
  variant: "caps-heading"
2218
2229
  }, {
2219
2230
  default: i(() => [
2220
- d(r(E(F)), 1)
2231
+ v(r(E(F)), 1)
2221
2232
  ]),
2222
2233
  _: 2
2223
2234
  }, 1024)
2224
2235
  ]),
2225
2236
  _: 2
2226
- }, 1024)) : y("", !0),
2237
+ }, 1024)) : b("", !0),
2227
2238
  F.groups ? (t(), h(J, {
2228
2239
  key: 1,
2229
2240
  class: N(["text-sm", { "mt-3": e.showRenderedServicesHeader }]),
@@ -2233,18 +2244,18 @@ const mn = {
2233
2244
  (t(!0), o(p, null, V(Object.entries(
2234
2245
  X(F)
2235
2246
  ), ([A, ee], K) => (t(), o(p, { key: A }, [
2236
- K > 0 ? (t(), o("tr", xn, [...D[0] || (D[0] = [
2247
+ K > 0 ? (t(), o("tr", _n, [...D[0] || (D[0] = [
2237
2248
  _("td", null, [
2238
2249
  _("div", { class: "h-4" })
2239
2250
  ], -1)
2240
- ])])) : y("", !0),
2251
+ ])])) : b("", !0),
2241
2252
  _("tr", null, [
2242
2253
  a(w, {
2243
2254
  left: "",
2244
2255
  class: "text-secondary"
2245
2256
  }, {
2246
2257
  default: i(() => [
2247
- d(r(W(A)), 1)
2258
+ v(r(W(A)), 1)
2248
2259
  ]),
2249
2260
  _: 2
2250
2261
  }, 1024),
@@ -2253,7 +2264,7 @@ const mn = {
2253
2264
  class: "w-28 text-secondary"
2254
2265
  }, {
2255
2266
  default: i(() => [
2256
- d(r(l(u).$t({
2267
+ v(r(l(d).$t({
2257
2268
  id: "invoice.amount_table_heading",
2258
2269
  defaultMessage: "Amount",
2259
2270
  description: "Table heading for the amount column in the invoice table"
@@ -2263,11 +2274,11 @@ const mn = {
2263
2274
  })
2264
2275
  ]),
2265
2276
  (t(!0), o(p, null, V(ee, (te, Be) => (t(), o(p, { key: Be }, [
2266
- A === "REVENUE" || A === "PRICING" || A === "ONE_OFF" ? (t(), h(un, {
2277
+ A === "REVENUE" || A === "PRICING" || A === "ONE_OFF" ? (t(), h(mn, {
2267
2278
  key: 0,
2268
2279
  group: te,
2269
- "expanded-items": l(g),
2270
- "handle-toggle-items": I,
2280
+ "expanded-items": l(u),
2281
+ "handle-toggle-items": M,
2271
2282
  "is-expandable": e.isExpandable,
2272
2283
  "force-expanded": e.forceExpanded,
2273
2284
  "format-index": L,
@@ -2281,44 +2292,44 @@ const mn = {
2281
2292
  "show-original-customer-invoice-line": e.invoice.show_original_customer_invoice_line
2282
2293
  }, {
2283
2294
  "invoice-line-prefix": i((ne) => [
2284
- M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
2295
+ $(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
2285
2296
  ]),
2286
2297
  "one-off-line-context-menu": i((ne) => [
2287
- M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, ne, {
2298
+ $(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, ne, {
2288
2299
  periodOrder: F.period_order
2289
2300
  }))
2290
2301
  ]),
2291
2302
  _: 2
2292
- }, 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"])) : A === "DISCOUNT" || A === "MARKUP" ? (t(), h($t, {
2303
+ }, 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"])) : A === "DISCOUNT" || A === "MARKUP" ? (t(), h(Mt, {
2293
2304
  key: 1,
2294
2305
  group: te,
2295
- "expanded-items": l(g),
2296
- "handle-toggle-items": I,
2306
+ "expanded-items": l(u),
2307
+ "handle-toggle-items": M,
2297
2308
  "is-expandable": e.isExpandable,
2298
2309
  "force-expanded": e.forceExpanded,
2299
2310
  "format-index": L,
2300
2311
  "invoice-period-order": F.period_order,
2301
2312
  "group-order": te.group_order,
2302
2313
  "amount-type": e.invoice.pricing_amount_type,
2303
- heading: A === "DISCOUNT" ? l(u).$t({
2314
+ heading: A === "DISCOUNT" ? l(d).$t({
2304
2315
  id: "invoice.discounts_table_heading",
2305
2316
  defaultMessage: "Discounts",
2306
2317
  description: "Heading for discounts in the invoice table"
2307
- }) : l(u).$t({
2318
+ }) : l(d).$t({
2308
2319
  id: "invoice.markups_table_heading",
2309
2320
  defaultMessage: "Markups",
2310
2321
  description: "Heading for markups in the invoice table"
2311
2322
  })
2312
2323
  }, {
2313
2324
  "invoice-line-prefix": i((ne) => [
2314
- M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
2325
+ $(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
2315
2326
  ]),
2316
2327
  _: 3
2317
2328
  }, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type", "heading"])) : A === "COMMITMENT" ? (t(), h(_t, {
2318
2329
  key: 2,
2319
2330
  group: te,
2320
- "expanded-items": l(g),
2321
- "handle-toggle-items": I,
2331
+ "expanded-items": l(u),
2332
+ "handle-toggle-items": M,
2322
2333
  "is-expandable": e.isExpandable,
2323
2334
  "force-expanded": e.forceExpanded,
2324
2335
  "format-index": L,
@@ -2327,23 +2338,23 @@ const mn = {
2327
2338
  "amount-type": e.invoice.pricing_amount_type
2328
2339
  }, {
2329
2340
  "invoice-line-prefix": i((ne) => [
2330
- M(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
2341
+ $(T.$slots, "invoice-line-prefix", Q({ ref_for: !0 }, ne))
2331
2342
  ]),
2332
2343
  _: 3
2333
- }, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) : y("", !0),
2334
- z(te) ? (t(), o("tr", hn, [
2335
- _("td", _n, [
2344
+ }, 8, ["group", "expanded-items", "is-expandable", "force-expanded", "invoice-period-order", "group-order", "amount-type"])) : b("", !0),
2345
+ z(te) ? (t(), o("tr", kn, [
2346
+ _("td", Tn, [
2336
2347
  a(_e, {
2337
2348
  lines: te.lines,
2338
2349
  "credit-types": e.invoice.credit_types
2339
2350
  }, null, 8, ["lines", "credit-types"])
2340
2351
  ])
2341
- ])) : y("", !0)
2352
+ ])) : b("", !0)
2342
2353
  ], 64))), 128))
2343
2354
  ], 64))), 128))
2344
2355
  ]),
2345
2356
  _: 2
2346
- }, 1032, ["class", "data-testid"])) : y("", !0)
2357
+ }, 1032, ["class", "data-testid"])) : b("", !0)
2347
2358
  ], 64))), 128)),
2348
2359
  e.invoice.tax_summary && (e.showTotals || (e.forceExpanded || l(x)) && e.invoice.tax_categories) ? (t(), h(J, {
2349
2360
  key: 1,
@@ -2357,7 +2368,7 @@ const mn = {
2357
2368
  class: "text-secondary"
2358
2369
  }, {
2359
2370
  default: i(() => [
2360
- d(r(l(u).$t({
2371
+ v(r(l(d).$t({
2361
2372
  id: "invoice.totals_table_heading",
2362
2373
  defaultMessage: "Totals",
2363
2374
  description: "Table heading for the totals column in the invoice table"
@@ -2370,7 +2381,7 @@ const mn = {
2370
2381
  class: "w-28 text-secondary"
2371
2382
  }, {
2372
2383
  default: i(() => [
2373
- d(r(l(u).$t({
2384
+ v(r(l(d).$t({
2374
2385
  id: "invoice.amount_table_heading",
2375
2386
  defaultMessage: "Amount",
2376
2387
  description: "Table heading for the amount column in the invoice table"
@@ -2399,14 +2410,14 @@ const mn = {
2399
2410
  }, [
2400
2411
  a(k, null, {
2401
2412
  default: i(() => [
2402
- e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), h(G, {
2413
+ e.isExpandable && e.invoice.tax_categories && e.invoice.tax_categories.length ? (t(), h(H, {
2403
2414
  key: 0,
2404
2415
  icon: "keyboard_arrow_down",
2405
2416
  size: "md",
2406
2417
  class: N(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !l(x) }])
2407
- }, null, 8, ["class"])) : y("", !0),
2418
+ }, null, 8, ["class"])) : b("", !0),
2408
2419
  a(me, {
2409
- label: l(u).$t({
2420
+ label: l(d).$t({
2410
2421
  id: "invoice.taxes_table_heading",
2411
2422
  defaultMessage: "Taxes",
2412
2423
  description: "Table heading for the taxes column in the invoice table"
@@ -2418,24 +2429,24 @@ const mn = {
2418
2429
  }),
2419
2430
  a(k, { number: "" }, {
2420
2431
  default: i(() => [
2421
- a($, {
2432
+ a(I, {
2422
2433
  value: e.invoice.tax_summary.tax_amount,
2423
2434
  "data-testid": l(Je)
2424
2435
  }, null, 8, ["value", "data-testid"])
2425
2436
  ]),
2426
2437
  _: 1
2427
2438
  })
2428
- ], 42, kn)) : y("", !0)
2429
- ], 64)) : y("", !0),
2430
- (e.forceExpanded || l(x)) && e.invoice.tax_categories ? (t(), o("tr", Tn, [
2431
- _("td", On, [
2432
- _("div", In, [
2433
- a(gn, {
2439
+ ], 42, On)) : b("", !0)
2440
+ ], 64)) : b("", !0),
2441
+ (e.forceExpanded || l(x)) && e.invoice.tax_categories ? (t(), o("tr", In, [
2442
+ _("td", Mn, [
2443
+ _("div", $n, [
2444
+ a(bn, {
2434
2445
  "tax-categories": e.invoice.tax_categories
2435
2446
  }, null, 8, ["tax-categories"])
2436
2447
  ])
2437
2448
  ])
2438
- ])) : y("", !0),
2449
+ ])) : b("", !0),
2439
2450
  e.showTotals ? (t(), o(p, { key: 2 }, [
2440
2451
  e.invoice.pricing_amount_type === "INCLUDING_TAX" ? (t(), h(Te, {
2441
2452
  key: 0,
@@ -2444,11 +2455,11 @@ const mn = {
2444
2455
  key: 1,
2445
2456
  "total-amount": e.invoice.tax_summary.total_amount
2446
2457
  }, null, 8, ["total-amount"]))
2447
- ], 64)) : y("", !0)
2458
+ ], 64)) : b("", !0)
2448
2459
  ]),
2449
2460
  _: 1
2450
- })) : y("", !0),
2451
- l(Ue)(e.invoice.closed_periods) ? y("", !0) : (t(), h(J, {
2461
+ })) : b("", !0),
2462
+ l(Ue)(e.invoice.closed_periods) ? b("", !0) : (t(), h(J, {
2452
2463
  key: 2,
2453
2464
  class: "mt-6 text-sm"
2454
2465
  }, {
@@ -2459,7 +2470,7 @@ const mn = {
2459
2470
  class: "text-secondary"
2460
2471
  }, {
2461
2472
  default: i(() => [
2462
- d(r(l(u).$t({
2473
+ v(r(l(d).$t({
2463
2474
  id: "invoice.already_deducted_table_heading",
2464
2475
  defaultMessage: "Already deducted",
2465
2476
  description: "Table heading for the already deducted rows in the invoice table"
@@ -2483,16 +2494,16 @@ const mn = {
2483
2494
  default: i(() => {
2484
2495
  var K;
2485
2496
  return [
2486
- e.isExpandable ? (t(), h(G, {
2497
+ e.isExpandable ? (t(), h(H, {
2487
2498
  key: 0,
2488
2499
  icon: "keyboard_arrow_down",
2489
2500
  size: "md",
2490
2501
  class: N(["absolute -translate-x-7 text-slate-400", {
2491
- "-rotate-90": !l(b).includes(
2502
+ "-rotate-90": !l(y).includes(
2492
2503
  L(Y, ee)
2493
2504
  )
2494
2505
  }])
2495
- }, null, 8, ["class"])) : y("", !0),
2506
+ }, null, 8, ["class"])) : b("", !0),
2496
2507
  a(me, {
2497
2508
  label: C(A),
2498
2509
  count: e.isExpandable ? ((K = A.lines) == null ? void 0 : K.length) ?? 0 : void 0
@@ -2506,7 +2517,7 @@ const mn = {
2506
2517
  class: "w-28"
2507
2518
  }, {
2508
2519
  default: i(() => [
2509
- a($, {
2520
+ a(I, {
2510
2521
  value: A.amount_excluding_tax,
2511
2522
  "data-testid": l(tt),
2512
2523
  "data-type": l(it)
@@ -2514,10 +2525,10 @@ const mn = {
2514
2525
  ]),
2515
2526
  _: 2
2516
2527
  }, 1024)
2517
- ], 42, $n),
2518
- e.forceExpanded || l(b).includes(L(Y, ee)) ? (t(), o("tr", Mn, [
2519
- _("td", wn, [
2520
- _("div", En, [
2528
+ ], 42, wn),
2529
+ e.forceExpanded || l(y).includes(L(Y, ee)) ? (t(), o("tr", En, [
2530
+ _("td", Cn, [
2531
+ _("div", Nn, [
2521
2532
  a(Ne, {
2522
2533
  "start-date": A.start_at,
2523
2534
  "end-date": A.end_at,
@@ -2529,7 +2540,7 @@ const mn = {
2529
2540
  "display-invoice-sub-lines-per-processing-only-customer": e.invoice.display_invoice_sub_lines_per_processing_only_customer
2530
2541
  }, {
2531
2542
  "one-off-line-context-menu": i((K) => [
2532
- M(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, K, {
2543
+ $(T.$slots, "one-off-line-context-menu", Q({ ref_for: !0 }, K, {
2533
2544
  groupOrder: A.group_order,
2534
2545
  periodOrder: F.period_order
2535
2546
  }))
@@ -2538,21 +2549,21 @@ const mn = {
2538
2549
  }, 1032, ["start-date", "end-date", "total", "group", "amount-type", "show-tax-per-line-item", "processing-only-customers", "display-invoice-sub-lines-per-processing-only-customer"])
2539
2550
  ])
2540
2551
  ])
2541
- ])) : y("", !0),
2542
- z(A) ? (t(), o("tr", Cn, [
2543
- _("td", Nn, [
2552
+ ])) : b("", !0),
2553
+ z(A) ? (t(), o("tr", Bn, [
2554
+ _("td", An, [
2544
2555
  a(_e, {
2545
2556
  lines: A.lines,
2546
2557
  "credit-types": e.invoice.credit_types
2547
2558
  }, null, 8, ["lines", "credit-types"])
2548
2559
  ])
2549
- ])) : y("", !0)
2560
+ ])) : b("", !0)
2550
2561
  ], 64))), 128))
2551
2562
  ], 64))), 128)),
2552
- e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), o("tr", Bn, [
2563
+ e.invoice.open_invoice_amount && !e.invoice.paid && e.showTotals ? (t(), o("tr", Pn, [
2553
2564
  a(k, { class: "font-bold" }, {
2554
2565
  default: i(() => [
2555
- d(r(l(u).$t({
2566
+ v(r(l(d).$t({
2556
2567
  id: "invoice.amount_due_table_heading",
2557
2568
  defaultMessage: "Amount due",
2558
2569
  description: "Table heading for the amount due row in the invoice table"
@@ -2562,14 +2573,14 @@ const mn = {
2562
2573
  }),
2563
2574
  a(k, { number: "" }, {
2564
2575
  default: i(() => [
2565
- a($, {
2576
+ a(I, {
2566
2577
  value: e.invoice.open_invoice_amount,
2567
2578
  "data-testid": l(nt)
2568
2579
  }, null, 8, ["value", "data-testid"])
2569
2580
  ]),
2570
2581
  _: 1
2571
2582
  })
2572
- ])) : y("", !0)
2583
+ ])) : b("", !0)
2573
2584
  ]),
2574
2585
  _: 3
2575
2586
  }))
@@ -2579,7 +2590,7 @@ const mn = {
2579
2590
  });
2580
2591
  export {
2581
2592
  J as I,
2582
- Kn as _,
2593
+ Jn as _,
2583
2594
  w as a,
2584
2595
  k as b
2585
2596
  };