@solvimon/solvimon-web 0.1.0-alpha.18 → 0.1.0-alpha.19

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 (610) hide show
  1. package/README.md +70 -31
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs} +6 -3
  4. package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
  5. package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
  6. package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
  7. package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
  9. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
  10. package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
  11. package/dist/Button.vue.es-aLcIdATK.js +1 -0
  12. package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
  13. package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
  14. package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
  15. package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
  16. package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
  17. package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
  18. package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
  19. package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
  20. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
  21. package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
  22. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
  23. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
  24. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
  25. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs} +823 -216
  26. package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
  27. package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
  28. package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
  29. package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
  30. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
  31. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
  32. package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
  33. package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
  34. package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
  35. package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
  36. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
  37. package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
  38. package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
  39. package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
  40. package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
  41. package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
  42. package/dist/Input.vue.es-C8VhMKuI.js +1 -0
  43. package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
  44. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
  45. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
  46. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
  47. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
  48. package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
  49. package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
  50. package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
  51. package/dist/Modal.vue.es-CX5geho3.js +1 -0
  52. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
  53. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs} +4 -2
  54. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs} +3 -1
  55. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
  56. package/dist/{PaymentHistoryBlock-Bxr8lUGs.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
  57. package/dist/{PaymentHistoryBlock-COjIVYX4.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
  58. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
  59. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
  60. package/dist/{PaymentIntegrationForm-BSauhuKv.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
  61. package/dist/{PaymentIntegrationForm-PIT8gHYN.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
  62. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
  63. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs} +4 -3
  64. package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
  65. package/dist/{PaymentIntegrationFormAdyen-Cjj9aK0E.mjs → PaymentIntegrationFormAdyen-CuRwe9_9.mjs} +78 -116
  66. package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
  67. package/dist/{PaymentIntegrationFormStripe-arpua_ZT.mjs → PaymentIntegrationFormStripe-JZw2m1kJ.mjs} +7 -7
  68. package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
  69. package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
  70. package/dist/{PaymentMethodForm-B7T5rrNz.mjs → PaymentMethodForm-C5WqTDow.mjs} +1 -1
  71. package/dist/{PaymentMethodForm-CLz3ZS-b.js → PaymentMethodForm-CBjHdZT7.js} +1 -1
  72. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
  73. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
  74. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +7 -3
  75. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
  76. package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
  77. package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
  78. package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
  79. package/dist/Section.vue.es-tLYXp-tF.js +1 -0
  80. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
  81. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
  82. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
  83. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
  84. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +2 -1
  85. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
  86. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
  87. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +7 -4
  88. package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
  89. package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
  90. package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
  91. package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
  92. package/dist/api.es-C5pe8LUl.mjs +62 -0
  93. package/dist/api.es-Czekkp_X.js +1 -0
  94. package/dist/cn.es-BLHlMR4Y.js +1 -0
  95. package/dist/cn.es-DB5pDpxS.mjs +3298 -0
  96. package/dist/comparators.es-9VsCB-JI.mjs +175 -0
  97. package/dist/comparators.es-wrKHduVq.js +1 -0
  98. package/dist/component-BG6DmXcy.mjs +9 -0
  99. package/dist/component-hDuDTBt5.js +1 -0
  100. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
  101. package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
  102. package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
  103. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
  104. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
  105. package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
  106. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
  107. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
  108. package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
  109. package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
  110. package/dist/components/Invoice/Invoice.cjs +1 -0
  111. package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
  112. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
  113. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
  114. package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
  115. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
  116. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
  117. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
  118. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
  119. package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
  120. package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
  121. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
  122. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
  123. package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
  124. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
  125. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
  126. package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
  127. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
  128. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
  129. package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
  130. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
  131. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
  132. package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
  133. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
  134. package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
  135. package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +13 -25
  136. package/dist/configuration-BjYwV4_B.js +1 -0
  137. package/dist/configuration-CD8cOXAJ.mjs +15 -0
  138. package/dist/core/action-request.types.d.ts +1 -55
  139. package/dist/core/configuration.d.ts +1 -3
  140. package/dist/core/index.cjs +1 -0
  141. package/dist/core/index.d.ts +1 -11
  142. package/dist/core/index.mjs +197 -0
  143. package/dist/core/registry.ce.d.ts +1 -2
  144. package/dist/core/registry.d.ts +1 -6
  145. package/dist/core/types.d.ts +1 -121
  146. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  147. package/dist/countryData.es-D3MFzU92.js +1 -0
  148. package/dist/customElements-BTJzBHMy.js +1 -0
  149. package/dist/customElements-DdFA__me.mjs +6729 -0
  150. package/dist/{customer-DovIxTG1.mjs → customer-B0AMetq6.mjs} +1 -1
  151. package/dist/customer-D7HUfF3j.js +1 -0
  152. package/dist/customer.es-C_vSWcVA.mjs +30 -0
  153. package/dist/customer.es-D42Md24r.js +1 -0
  154. package/dist/en-US-BSrbFk5W.js +1 -0
  155. package/dist/en-US-D0P7NNNZ.mjs +228 -0
  156. package/dist/{en-US-CXDO3qhq.mjs → en-US-Daw3v6GD.mjs} +8 -31
  157. package/dist/en-US-scSQQXK8.js +1 -0
  158. package/dist/error-Cg-i7gGl.js +1 -0
  159. package/dist/error-DY_I2hPx.mjs +13 -0
  160. package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
  161. package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
  162. package/dist/formatting.es-9hM8aHSg.js +1 -0
  163. package/dist/formatting.es-D-oVnc8H.mjs +68 -0
  164. package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
  165. package/dist/getComposedString.es-DvSNX-_z.js +1 -0
  166. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  167. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  168. package/dist/index-BJ3dHkSK.js +1 -0
  169. package/dist/index-C5bKRt7l.mjs +1069 -0
  170. package/dist/index.cjs +1 -0
  171. package/dist/index.d.ts +1 -17
  172. package/dist/index.es-0cystq8F.mjs +542 -0
  173. package/dist/index.es-2JWHHSgP.js +1 -0
  174. package/dist/index.mjs +42 -0
  175. package/dist/{invoices-Dk-z04lg.mjs → invoices-BSd-nKeE.mjs} +17 -16
  176. package/dist/invoices-BiqM6xN6.js +1 -0
  177. package/dist/{nl-NL-BgL_PuBn.mjs → nl-NL-B4zEBFTw.mjs} +8 -54
  178. package/dist/nl-NL-B5tuyIOM.mjs +88 -0
  179. package/dist/nl-NL-Bs3d8q6T.js +1 -0
  180. package/dist/nl-NL-DIAZWDF9.js +1 -0
  181. package/dist/object.es-DFXiU9p3.js +1 -0
  182. package/dist/object.es-jvvnR8Kr.mjs +12 -0
  183. package/dist/{paymentMethods-BnF1XYS1.mjs → paymentMethods-BsrkEbKT.mjs} +4 -16
  184. package/dist/paymentMethods-Cu2RzLgm.js +1 -0
  185. package/dist/{payments-TnRjtlOw.mjs → payments-B6Nfd6Al.mjs} +1 -1
  186. package/dist/payments-Bbm1HMQj.js +1 -0
  187. package/dist/pricing-3W7XLwL6.js +1 -0
  188. package/dist/pricing-CJxS2hr2.mjs +17 -0
  189. package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
  190. package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
  191. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
  192. package/dist/screens/Checkout/Checkout.cjs +1 -0
  193. package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1250 -610
  194. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
  195. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
  196. package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +33 -36
  197. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
  198. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
  199. package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +21 -28
  200. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
  201. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
  202. package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +17 -29
  203. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
  204. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
  205. package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs} +33 -37
  206. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
  207. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
  208. package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +32 -41
  209. package/dist/slots.es-BpwYO3A3.mjs +18 -0
  210. package/dist/slots.es-Dq1PTUOv.js +1 -0
  211. package/dist/sorting.es-CjTrRfSW.mjs +105 -0
  212. package/dist/sorting.es-RyvcgbSL.js +1 -0
  213. package/dist/subscriptions-B4BOzLxR.js +1 -0
  214. package/dist/{subscriptions-vEE4Y7qm.mjs → subscriptions-C2C4WTuI.mjs} +7 -7
  215. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  216. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  217. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
  218. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  219. package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
  220. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
  221. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
  222. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
  223. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
  224. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
  225. package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
  226. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
  227. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
  228. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
  229. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
  230. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
  231. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
  232. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
  233. package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
  234. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
  235. package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
  236. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
  237. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
  238. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
  239. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
  240. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
  241. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
  242. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
  243. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
  244. package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
  245. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
  246. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
  247. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
  248. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
  249. package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
  250. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
  251. package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
  252. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
  253. package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
  254. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
  255. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
  256. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
  257. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
  258. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
  259. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
  260. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
  261. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
  262. package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
  263. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
  264. package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
  265. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
  266. package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
  267. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
  268. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
  269. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
  270. package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
  271. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
  272. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
  273. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
  274. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
  275. package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
  276. package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
  277. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
  278. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
  279. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
  280. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
  281. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
  282. package/dist/types/components/providers/index.d.ts +9 -0
  283. package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
  284. package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
  285. package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
  286. package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
  287. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
  288. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
  289. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
  290. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
  291. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
  292. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
  293. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
  294. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
  295. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
  296. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
  297. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
  298. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
  299. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
  300. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
  301. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
  302. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
  303. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
  304. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  305. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
  306. package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
  307. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
  308. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
  309. package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
  310. package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
  311. package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
  312. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
  313. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
  314. package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
  315. package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
  316. package/dist/types/config/config.beta.d.ts +2 -0
  317. package/dist/types/config/config.dev.d.ts +2 -0
  318. package/dist/types/config/config.live.d.ts +2 -0
  319. package/dist/types/config/internalEnvironments.d.ts +11 -0
  320. package/dist/types/config/internalEnvironments.published.d.ts +7 -0
  321. package/dist/types/config/lib.d.ts +6 -0
  322. package/dist/types/config/types.d.ts +13 -0
  323. package/dist/types/index.d.ts +23 -0
  324. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
  325. package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
  326. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
  327. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
  328. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
  329. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
  330. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
  331. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
  332. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
  333. package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
  334. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
  335. package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
  336. package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
  337. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
  338. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
  339. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
  340. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
  341. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
  342. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
  343. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
  344. package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
  345. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
  346. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
  347. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
  348. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
  349. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
  350. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
  351. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
  352. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
  353. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
  354. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
  355. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
  356. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
  357. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  358. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
  359. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
  360. package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
  361. package/dist/types/public/core/action-request.types.d.ts +55 -0
  362. package/dist/types/public/core/configuration.d.ts +3 -0
  363. package/dist/types/public/core/index.d.ts +14 -0
  364. package/dist/types/public/core/registry.ce.d.ts +8 -0
  365. package/dist/types/public/core/registry.d.ts +6 -0
  366. package/dist/types/public/core/types.d.ts +120 -0
  367. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
  368. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
  369. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
  370. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
  371. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
  372. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
  373. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
  374. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
  375. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
  376. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
  377. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
  378. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
  379. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
  380. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
  381. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
  382. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
  383. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
  384. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
  385. package/dist/types/public/screens/types.d.ts +4 -0
  386. package/dist/types/public/types/index.d.ts +23 -0
  387. package/dist/types/services/invoices.types.d.ts +26 -0
  388. package/dist/types/services/paymentMethods.types.d.ts +31 -0
  389. package/dist/types/services/portals.types.d.ts +68 -0
  390. package/dist/types/services/requests.types.d.ts +24 -0
  391. package/dist/types/translations/supported.d.ts +1 -0
  392. package/dist/types/types/EntryBaseProps.d.ts +10 -0
  393. package/dist/types/types/errors.d.ts +7 -0
  394. package/dist/types/types/subscription.d.ts +4 -0
  395. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
  396. package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
  397. package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
  398. package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
  399. package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
  400. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
  401. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
  402. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
  403. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
  404. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
  405. package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
  406. package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
  407. package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
  408. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
  409. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
  410. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
  411. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
  412. package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
  413. package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
  414. package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
  415. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
  416. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
  417. package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
  418. package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
  419. package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
  420. package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
  421. package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
  422. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
  423. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
  424. package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
  425. package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
  426. package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
  427. package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
  428. package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
  429. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
  430. package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
  431. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
  432. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
  433. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
  434. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
  435. package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
  436. package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
  437. package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
  438. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
  439. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
  440. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
  441. package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
  442. package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
  443. package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
  444. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
  445. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
  446. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
  447. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
  448. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
  449. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
  450. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
  451. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
  452. package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
  453. package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
  454. package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
  455. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
  456. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
  457. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
  458. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
  459. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
  460. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
  461. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
  462. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
  463. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
  464. package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
  465. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
  466. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
  467. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
  468. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
  469. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
  470. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
  471. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
  472. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
  473. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
  474. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
  475. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
  476. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
  477. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
  478. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
  479. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
  480. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
  481. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
  482. package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
  483. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
  484. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
  485. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
  486. package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
  487. package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
  488. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
  489. package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
  490. package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
  491. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
  492. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
  493. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
  494. package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
  495. package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
  496. package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
  497. package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
  498. package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
  499. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
  500. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
  501. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
  502. package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
  503. package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
  504. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
  505. package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
  506. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
  507. package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
  508. package/dist/{useActionDispatchProvider-BlEf-RZ5.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
  509. package/dist/{useCustomer-Cw8LXT6S.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
  510. package/dist/{useCustomer-C1XTqmrQ.js → useCustomer-DYCpgA-3.js} +1 -1
  511. package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
  512. package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
  513. package/dist/{useIncrementalLoading-8WtKZ-mP.mjs → useIncrementalLoading-BK9pRYAU.mjs} +5 -4
  514. package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
  515. package/dist/{useInvoiceData-BrxMo4Zt.js → useInvoiceData-BczeMpuk.js} +1 -1
  516. package/dist/{useInvoiceData-Cy_ysMsq.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
  517. package/dist/{useInvoicesList-DMsZn1tE.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
  518. package/dist/useInvoicesList-rMg-8LbH.js +1 -0
  519. package/dist/{useLoadInitialData-BP1v7qhd.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
  520. package/dist/useLoadInitialData-CiJldX50.js +1 -0
  521. package/dist/{usePaymentMethodOptions-CWfGvW0U.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -9
  522. package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
  523. package/dist/{usePaymentMethods-Cyk4cjoE.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
  524. package/dist/{usePaymentMethods-CAFMvSOr.js → usePaymentMethods-CFL3hFW_.js} +1 -1
  525. package/dist/usePayments-BKTNn_RN.js +1 -0
  526. package/dist/usePayments-BlliAt1E.mjs +262 -0
  527. package/dist/{usePortal-0NDlbFr9.mjs → usePortal-eyA4OqjU.mjs} +1 -1
  528. package/dist/usePortal-fhri8neB.js +1 -0
  529. package/dist/useService-D73FNBjT.js +1 -0
  530. package/dist/{useService-CqfJi5ST.mjs → useService-W3Kxems4.mjs} +24 -5
  531. package/dist/useSubscription--IGLmLS6.mjs +250 -0
  532. package/dist/useSubscription-V3KSuhOY.js +1 -0
  533. package/package.json +55 -45
  534. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +0 -1
  535. package/dist/ApiStatus-CyNDp_op.mjs +0 -9
  536. package/dist/ApiStatus-oqvUEWJx.js +0 -1
  537. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js +0 -1
  538. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +0 -1
  539. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +0 -1
  540. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +0 -53
  541. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +0 -1
  542. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +0 -1
  543. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js +0 -1
  544. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs +0 -27
  545. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +0 -1
  546. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +0 -1
  547. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +0 -1
  548. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +0 -1
  549. package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +0 -1
  550. package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +0 -1
  551. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +0 -1
  552. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +0 -1
  553. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs +0 -217
  554. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +0 -1
  555. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +0 -37
  556. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +0 -1
  557. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +0 -1
  558. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +0 -1
  559. package/dist/component--Y7Igv5i.mjs +0 -1022
  560. package/dist/component-DIy1hvJM.js +0 -1
  561. package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
  562. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
  563. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
  564. package/dist/components/Invoice/Invoice.cjs.js +0 -1
  565. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
  566. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
  567. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
  568. package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
  569. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
  570. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
  571. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
  572. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
  573. package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
  574. package/dist/core/index.cjs.js +0 -1
  575. package/dist/core/index.es.js +0 -6
  576. package/dist/customer-brfznoHY.js +0 -1
  577. package/dist/en-US-BvOHPudj.js +0 -1
  578. package/dist/index-BMWWP8xj.js +0 -1
  579. package/dist/index-Do7kzLpg.mjs +0 -265
  580. package/dist/index.cjs.js +0 -1
  581. package/dist/index.es.js +0 -51
  582. package/dist/invoices-Cf3dSYSj.js +0 -1
  583. package/dist/nl-NL-COGUFg60.js +0 -1
  584. package/dist/paymentMethods-DVDC_WfL.js +0 -1
  585. package/dist/payments-DVZFO5yb.js +0 -1
  586. package/dist/pricing-CuYndX6t.js +0 -1
  587. package/dist/pricing-GwLCiSzs.mjs +0 -19
  588. package/dist/registry-Ck0Gb6rj.mjs +0 -153
  589. package/dist/registry-Cra6yoB4.js +0 -1
  590. package/dist/screens/Checkout/Checkout.cjs.js +0 -1
  591. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
  592. package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
  593. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
  594. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
  595. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
  596. package/dist/solvimon-web.css +0 -1
  597. package/dist/subscriptions-BFCKVHnP.js +0 -1
  598. package/dist/useActionDispatchProvider-aJOy3kr1.js +0 -1
  599. package/dist/useIncrementalLoading-CkY2klIW.js +0 -1
  600. package/dist/useInvoicesList-DmisMQzy.js +0 -1
  601. package/dist/useLoadInitialData-_BjCD0Jc.js +0 -1
  602. package/dist/usePaymentMethodOptions-xeSTmaVo.js +0 -1
  603. package/dist/usePayments-BieVBaz-.js +0 -1
  604. package/dist/usePayments-D88XSZfS.mjs +0 -42
  605. package/dist/usePortal-B954nyEB.js +0 -1
  606. package/dist/useService-BiljI7XA.js +0 -1
  607. package/dist/useSubscription-9rJpFNUF.mjs +0 -29
  608. package/dist/useSubscription-k3limdu_.js +0 -1
  609. package/dist/vendor-ui-Dfh3_g4q.js +0 -1
  610. package/dist/vendor-ui-ItGf7wJV.mjs +0 -29938
@@ -0,0 +1,2558 @@
1
+ import { ref, openBlock, createElementBlock, renderSlot, defineComponent, normalizeClass, Fragment, renderList, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock, unref, createCommentVNode, withKeys, normalizeProps, guardReactiveProps, createSlots, computed, mergeProps, isRef } from "vue";
2
+ import { u as useIntl, _ as _sfc_main$t, k as formatTimezone } from "./customElements-DdFA__me.mjs";
3
+ import { _ as _sfc_main$k } from "./Amount.vue.es-CRG-6dps.mjs";
4
+ import { i as isEmpty } from "./useService-W3Kxems4.mjs";
5
+ import { _ as _sfc_main$l, a as _sfc_main$r } from "./Button.vue.es-BrWHdiEA.mjs";
6
+ import { _ as _export_sfc } from "./floating-ui.vue.es-DWY7pdz8.mjs";
7
+ import { a as getCustomerName } from "./customer.es-C_vSWcVA.mjs";
8
+ import { _ as _sfc_main$j, u as useToggleList } from "./Comparators.vue.es-CU32AC4n.mjs";
9
+ import { g as getComposedString } from "./getComposedString.es-CELkn0I7.mjs";
10
+ import { f as formatAmount, a as formatEnum } from "./formatting.es-D-oVnc8H.mjs";
11
+ import { _ as _sfc_main$m } from "./Chip.vue.es-DPGTweAr.mjs";
12
+ import { _ as _sfc_main$n, T as TooltipContent, a as _sfc_main$o } from "./TooltipParagraph.vue.es-B5aHQv9O.mjs";
13
+ import { f as useResizeObserver } from "./index.es-0cystq8F.mjs";
14
+ import { _ as _sfc_main$s } from "./DividerText.vue.es-DMg-DNgi.mjs";
15
+ import { _ as _sfc_main$p } from "./IconTitle.vue.es-mQCMxc64.mjs";
16
+ import { a as _sfc_main$q } from "./ContextMenu.vue.es-BBPFQfqY.mjs";
17
+ const useSimpleToggleList = (initialToggledItems = []) => {
18
+ const toggledItems = ref(initialToggledItems);
19
+ const toggle = (index) => {
20
+ const match = toggledItems.value.find((groupIndex) => groupIndex === index);
21
+ if (typeof match === "number") {
22
+ toggledItems.value = toggledItems.value.filter((groupIndex) => groupIndex !== index);
23
+ } else {
24
+ toggledItems.value = [...toggledItems.value, index];
25
+ }
26
+ };
27
+ return [toggledItems, toggle];
28
+ };
29
+ const _sfc_main$i = {};
30
+ const _hoisted_1$g = { class: "w-full table-fixed" };
31
+ function _sfc_render(_ctx, _cache) {
32
+ return openBlock(), createElementBlock("table", _hoisted_1$g, [
33
+ renderSlot(_ctx.$slots, "default")
34
+ ]);
35
+ }
36
+ const InvoiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render]]);
37
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
38
+ __name: "InvoiceTableData",
39
+ props: {
40
+ number: { type: Boolean, default: false },
41
+ hasPadding: { type: Boolean, default: true }
42
+ },
43
+ setup(__props) {
44
+ return (_ctx, _cache) => {
45
+ return openBlock(), createElementBlock("td", {
46
+ class: normalizeClass({
47
+ "text-right tabular-nums": __props.number,
48
+ "py-2": __props.hasPadding
49
+ })
50
+ }, [
51
+ renderSlot(_ctx.$slots, "default")
52
+ ], 2);
53
+ };
54
+ }
55
+ });
56
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
57
+ __name: "InvoiceTableHeader",
58
+ props: {
59
+ left: { type: Boolean, default: false },
60
+ right: { type: Boolean, default: false }
61
+ },
62
+ setup(__props) {
63
+ return (_ctx, _cache) => {
64
+ return openBlock(), createElementBlock("th", {
65
+ class: normalizeClass(["border-b py-1.5 text-xs font-bold uppercase text-gray-400", { "text-left": __props.left, "text-right": __props.right }])
66
+ }, [
67
+ renderSlot(_ctx.$slots, "default")
68
+ ], 2);
69
+ };
70
+ }
71
+ });
72
+ const _hoisted_1$f = { class: "flex items-center" };
73
+ const _hoisted_2$a = {
74
+ key: 0,
75
+ class: "text-xs text-gray-400"
76
+ };
77
+ const _hoisted_3$6 = { class: "flex items-center" };
78
+ const _hoisted_4$6 = { key: 0 };
79
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
80
+ __name: "InvoiceSubLineRow",
81
+ props: {
82
+ subLines: {},
83
+ isOpen: { type: Boolean },
84
+ lineOrder: {},
85
+ periodOrder: {},
86
+ groupOrder: {},
87
+ processingOnlyCustomers: {},
88
+ showTaxPerLineItem: { type: Boolean, default: true }
89
+ },
90
+ setup(__props) {
91
+ const { formatMessage } = useIntl();
92
+ const props = __props;
93
+ const getCustomerName$1 = (customerId) => {
94
+ var _a;
95
+ const childCustomer = (_a = props.processingOnlyCustomers) == null ? void 0 : _a.find(
96
+ (childCustomer2) => childCustomer2.id === customerId
97
+ );
98
+ if (!childCustomer) {
99
+ return formatMessage({
100
+ id: "generic.not_available",
101
+ defaultMessage: "N/A",
102
+ description: "Used in scenarios where no data is available to be displayed"
103
+ });
104
+ }
105
+ return getCustomerName(childCustomer);
106
+ };
107
+ const getSubLineConditions = (subLine) => {
108
+ var _a;
109
+ return ((_a = subLine.usage_based_conversion) == null ? void 0 : _a.conditions) ?? subLine.conditions;
110
+ };
111
+ return (_ctx, _cache) => {
112
+ return __props.subLines && __props.isOpen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
113
+ !__props.processingOnlyCustomers ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.subLines, (subLine, subLineIndex) => {
114
+ return openBlock(), createElementBlock("tr", {
115
+ key: subLineIndex,
116
+ class: normalizeClass(subLineIndex > 0 ? "border-t" : "")
117
+ }, [
118
+ createVNode(_sfc_main$h, null, {
119
+ default: withCtx(() => {
120
+ var _a, _b, _c, _d, _e, _f;
121
+ return [
122
+ createElementVNode("div", _hoisted_1$f, [
123
+ renderSlot(_ctx.$slots, "invoice-line-prefix", {
124
+ lineOrder: __props.lineOrder,
125
+ periodOrder: __props.periodOrder,
126
+ groupOrder: __props.groupOrder
127
+ }),
128
+ createElementVNode("div", null, [
129
+ createElementVNode("div", null, [
130
+ subLine.description ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
131
+ createTextVNode(toDisplayString(subLine.description), 1)
132
+ ], 64)) : subLine.details.description ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
133
+ createTextVNode(toDisplayString(subLine.details.description), 1)
134
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
135
+ createTextVNode(" N/A ")
136
+ ], 64))
137
+ ]),
138
+ ((_a = getSubLineConditions(subLine)) == null ? void 0 : _a.name) || ((_b = getSubLineConditions(subLine)) == null ? void 0 : _b.meter_properties) ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
139
+ ((_c = getSubLineConditions(subLine)) == null ? void 0 : _c.name) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
140
+ createTextVNode(toDisplayString((_d = getSubLineConditions(subLine)) == null ? void 0 : _d.name), 1)
141
+ ], 64)) : ((_e = getSubLineConditions(subLine)) == null ? void 0 : _e.meter_properties) ? (openBlock(), createBlock(unref(_sfc_main$j), {
142
+ key: 1,
143
+ comparators: (_f = getSubLineConditions(subLine)) == null ? void 0 : _f.meter_properties
144
+ }, null, 8, ["comparators"])) : createCommentVNode("", true)
145
+ ])) : createCommentVNode("", true)
146
+ ])
147
+ ])
148
+ ];
149
+ }),
150
+ _: 2
151
+ }, 1024),
152
+ createVNode(_sfc_main$h, {
153
+ number: "",
154
+ class: "text-right tabular-nums"
155
+ }, {
156
+ default: withCtx(() => {
157
+ var _a, _b;
158
+ return [
159
+ createTextVNode(toDisplayString(((_b = (_a = subLine.details.conversion) == null ? void 0 : _a.credits) == null ? void 0 : _b.quantity) ?? "N/A"), 1)
160
+ ];
161
+ }),
162
+ _: 2
163
+ }, 1024),
164
+ createVNode(_sfc_main$h, { class: "text-right tabular-nums" }, {
165
+ default: withCtx(() => {
166
+ var _a, _b;
167
+ return [
168
+ ((_a = subLine.details.band) == null ? void 0 : _a.amount) ? (openBlock(), createBlock(_sfc_main$k, {
169
+ key: 0,
170
+ value: subLine.details.band.amount
171
+ }, null, 8, ["value"])) : ((_b = subLine.details.band) == null ? void 0 : _b.percentage) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
172
+ createTextVNode(toDisplayString(subLine.details.band.percentage) + "% ", 1)
173
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
174
+ createTextVNode(" N/A ")
175
+ ], 64))
176
+ ];
177
+ }),
178
+ _: 2
179
+ }, 1024),
180
+ __props.showTaxPerLineItem ? (openBlock(), createBlock(_sfc_main$h, { key: 0 }, {
181
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
182
+ createTextVNode(" ", -1)
183
+ ])]),
184
+ _: 1
185
+ })) : createCommentVNode("", true),
186
+ subLine.details.amount ? (openBlock(), createBlock(_sfc_main$h, {
187
+ key: 1,
188
+ class: "text-right tabular-nums"
189
+ }, {
190
+ default: withCtx(() => [
191
+ createVNode(_sfc_main$k, {
192
+ value: subLine.details.amount
193
+ }, null, 8, ["value"])
194
+ ]),
195
+ _: 2
196
+ }, 1024)) : createCommentVNode("", true)
197
+ ], 2);
198
+ }), 128)) : createCommentVNode("", true),
199
+ __props.processingOnlyCustomers ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.subLines, (subLine, i) => {
200
+ return openBlock(), createElementBlock("tr", {
201
+ key: i,
202
+ tabindex: void 0,
203
+ class: normalizeClass(["group", { "border-t": i !== 0 }])
204
+ }, [
205
+ createVNode(_sfc_main$h, { class: "pl-4" }, {
206
+ default: withCtx(() => [
207
+ createElementVNode("div", _hoisted_3$6, [
208
+ subLine.processing_only_customer_resource_id ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(getCustomerName$1(
209
+ subLine.processing_only_customer_resource_id
210
+ )), 1)) : createCommentVNode("", true)
211
+ ])
212
+ ]),
213
+ _: 2
214
+ }, 1024),
215
+ renderSlot(_ctx.$slots, "subline-content", {
216
+ details: subLine.details,
217
+ hideTaxDetails: true
218
+ })
219
+ ], 2);
220
+ }), 128)) : createCommentVNode("", true)
221
+ ], 64)) : createCommentVNode("", true);
222
+ };
223
+ }
224
+ });
225
+ const _hoisted_1$e = ["tabindex", "onClick"];
226
+ const _hoisted_2$9 = { class: "flex items-center" };
227
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
228
+ __name: "InvoiceCommitment",
229
+ props: {
230
+ commitments: {},
231
+ groupOrder: {},
232
+ invoicePeriodOrder: {}
233
+ },
234
+ setup(__props) {
235
+ const intl = useIntl();
236
+ const { getIsOpen, toggle } = useToggleList();
237
+ const toggleLine = (groupOrder, invoiceLineOrder) => {
238
+ toggle(formatIndex(groupOrder, invoiceLineOrder));
239
+ };
240
+ const formatIndex = (rootIndex, index) => `${rootIndex}-line-${index}`;
241
+ return (_ctx, _cache) => {
242
+ return openBlock(), createBlock(InvoiceTable, null, {
243
+ default: withCtx(() => [
244
+ createElementVNode("tr", null, [
245
+ createVNode(_sfc_main$g, {
246
+ left: "",
247
+ colspan: "5"
248
+ }, {
249
+ default: withCtx(() => [
250
+ createTextVNode(toDisplayString(unref(intl).$t({
251
+ id: "invoice.table_header.unit",
252
+ defaultMessage: "Unit",
253
+ description: "Table header for the column containing the number of units of invoice groups"
254
+ })), 1)
255
+ ]),
256
+ _: 1
257
+ }),
258
+ createVNode(_sfc_main$g, {
259
+ right: "",
260
+ class: "w-60"
261
+ }, {
262
+ default: withCtx(() => [
263
+ createTextVNode(toDisplayString(unref(intl).$t({
264
+ id: "invoice.table_header.sub_total",
265
+ defaultMessage: "Subtotal",
266
+ description: "Table header for the column containing the subtotal for invoices"
267
+ })), 1)
268
+ ]),
269
+ _: 1
270
+ })
271
+ ]),
272
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.commitments, (line, lineIndex) => {
273
+ return openBlock(), createElementBlock(Fragment, { key: lineIndex }, [
274
+ createElementVNode("tr", {
275
+ class: normalizeClass(["border-t", { "cursor-pointer": line.sub_lines }]),
276
+ tabindex: line.sub_lines ? 0 : void 0,
277
+ onClick: ($event) => toggleLine(__props.groupOrder, line["line_order"])
278
+ }, [
279
+ createVNode(_sfc_main$h, { colspan: "2" }, {
280
+ default: withCtx(() => {
281
+ var _a, _b;
282
+ return [
283
+ line.sub_lines ? (openBlock(), createBlock(_sfc_main$l, {
284
+ key: 0,
285
+ icon: "keyboard_arrow_down",
286
+ size: "md",
287
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", {
288
+ "-rotate-90": !unref(getIsOpen)(formatIndex(__props.groupOrder, line["line_order"]))
289
+ }])
290
+ }, null, 8, ["class"])) : createCommentVNode("", true),
291
+ createElementVNode("div", _hoisted_2$9, [
292
+ renderSlot(_ctx.$slots, "invoice-line-prefix", {
293
+ lineOrder: line.line_order,
294
+ periodOrder: __props.invoicePeriodOrder,
295
+ groupOrder: __props.groupOrder
296
+ }),
297
+ line.description ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
298
+ createTextVNode(toDisplayString(line.description), 1)
299
+ ], 64)) : ((_a = line.details) == null ? void 0 : _a.description) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
300
+ createTextVNode(toDisplayString((_b = line.details) == null ? void 0 : _b.description), 1)
301
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
302
+ createTextVNode(toDisplayString(unref(intl).$t({
303
+ id: "generic.not_available",
304
+ defaultMessage: "N/A",
305
+ description: "Used in scenarios where no data is available to be displayed"
306
+ })), 1)
307
+ ], 64))
308
+ ])
309
+ ];
310
+ }),
311
+ _: 2
312
+ }, 1024),
313
+ createVNode(_sfc_main$h, { colspan: "3" }, {
314
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
315
+ createTextVNode(" ", -1)
316
+ ])]),
317
+ _: 1
318
+ }),
319
+ createVNode(_sfc_main$h, { number: "" }, {
320
+ default: withCtx(() => {
321
+ var _a, _b;
322
+ return [
323
+ ((_a = line.details) == null ? void 0 : _a.amount) ? (openBlock(), createBlock(_sfc_main$k, {
324
+ key: 0,
325
+ value: (_b = line.details) == null ? void 0 : _b.amount
326
+ }, null, 8, ["value"])) : createCommentVNode("", true)
327
+ ];
328
+ }),
329
+ _: 2
330
+ }, 1024)
331
+ ], 10, _hoisted_1$e),
332
+ createVNode(_sfc_main$f, {
333
+ ref_for: true,
334
+ ref: formatIndex(__props.groupOrder, line["line_order"]),
335
+ "sub-lines": line.sub_lines ?? [],
336
+ "line-order": line["line_order"],
337
+ "period-order": __props.invoicePeriodOrder,
338
+ "group-order": __props.groupOrder,
339
+ "is-open": unref(getIsOpen)(formatIndex(__props.groupOrder, line["line_order"]))
340
+ }, null, 8, ["sub-lines", "line-order", "period-order", "group-order", "is-open"])
341
+ ], 64);
342
+ }), 128))
343
+ ]),
344
+ _: 3
345
+ });
346
+ };
347
+ }
348
+ });
349
+ const _hoisted_1$d = ["tabindex", "onClick"];
350
+ const _hoisted_2$8 = { class: "flex items-center" };
351
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
352
+ __name: "InvoiceDiscountMarkup",
353
+ props: {
354
+ lines: {},
355
+ type: {},
356
+ handleToggleItems: { type: Function },
357
+ formatIndex: { type: Function },
358
+ expandedItems: {},
359
+ isExpandable: { type: Boolean },
360
+ invoicePeriodOrder: {},
361
+ groupOrder: {}
362
+ },
363
+ setup(__props) {
364
+ const intl = useIntl();
365
+ const { getIsOpen, toggle } = useToggleList();
366
+ const toggleLine = (groupOrder, invoiceLineOrder) => {
367
+ toggle(formatIndex(groupOrder, invoiceLineOrder));
368
+ };
369
+ const formatIndex = (rootIndex, index) => `${rootIndex}-line-${index}`;
370
+ return (_ctx, _cache) => {
371
+ return openBlock(), createBlock(InvoiceTable, null, {
372
+ default: withCtx(() => [
373
+ createElementVNode("tr", null, [
374
+ createVNode(_sfc_main$g, {
375
+ left: "",
376
+ class: "w-3/5"
377
+ }, {
378
+ default: withCtx(() => [
379
+ createTextVNode(toDisplayString(unref(intl).$t({
380
+ id: "invoice.table_header.quantity",
381
+ defaultMessage: "Quantity",
382
+ description: "Table header for quantity column"
383
+ })), 1)
384
+ ]),
385
+ _: 1
386
+ }),
387
+ createVNode(_sfc_main$g, { colspan: "2" }, {
388
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
389
+ createTextVNode(" ", -1)
390
+ ])]),
391
+ _: 1
392
+ }),
393
+ createVNode(_sfc_main$g, {
394
+ left: "",
395
+ class: "w-1/5"
396
+ }, {
397
+ default: withCtx(() => [
398
+ createTextVNode(toDisplayString(__props.type === "DISCOUNT" ? unref(intl).$t({
399
+ id: "invoice.table_header.discount",
400
+ defaultMessage: "Discount",
401
+ description: "Table header for discount column"
402
+ }) : unref(intl).$t({
403
+ id: "invoice.table_header.markup",
404
+ defaultMessage: "Markup",
405
+ description: "Table header for markup column"
406
+ })), 1)
407
+ ]),
408
+ _: 1
409
+ }),
410
+ createVNode(_sfc_main$g, {
411
+ left: "",
412
+ class: "w-1/5"
413
+ }, {
414
+ default: withCtx(() => [
415
+ createTextVNode(toDisplayString(__props.type === "DISCOUNT" ? unref(intl).$t({
416
+ id: "invoice.table_header.total",
417
+ defaultMessage: "Total",
418
+ description: "Table header for total column"
419
+ }) : " "), 1)
420
+ ]),
421
+ _: 1
422
+ }),
423
+ createVNode(_sfc_main$g, {
424
+ right: "",
425
+ class: "w-1/5"
426
+ }, {
427
+ default: withCtx(() => [
428
+ createTextVNode(toDisplayString(unref(intl).$t({
429
+ id: "invoice.table_header.sub_total",
430
+ defaultMessage: "Subtotal",
431
+ description: "Table header for the column containing the subtotal for invoices"
432
+ })), 1)
433
+ ]),
434
+ _: 1
435
+ })
436
+ ]),
437
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.lines, (line, lineIndex) => {
438
+ return openBlock(), createElementBlock(Fragment, { key: lineIndex }, [
439
+ createElementVNode("tr", {
440
+ class: normalizeClass(["border-t", { "cursor-pointer": __props.isExpandable }]),
441
+ tabindex: __props.isExpandable ? 0 : void 0,
442
+ onClick: ($event) => toggleLine(__props.groupOrder, line["line_order"])
443
+ }, [
444
+ createVNode(_sfc_main$h, { class: "w-3/5" }, {
445
+ default: withCtx(() => {
446
+ var _a, _b;
447
+ return [
448
+ line.sub_lines ? (openBlock(), createBlock(_sfc_main$l, {
449
+ key: 0,
450
+ icon: "keyboard_arrow_down",
451
+ size: "md",
452
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", {
453
+ "-rotate-90": !unref(getIsOpen)(formatIndex(__props.groupOrder, line["line_order"]))
454
+ }])
455
+ }, null, 8, ["class"])) : createCommentVNode("", true),
456
+ createElementVNode("div", _hoisted_2$8, [
457
+ renderSlot(_ctx.$slots, "invoice-line-prefix", {
458
+ lineOrder: line.line_order,
459
+ periodOrder: __props.invoicePeriodOrder,
460
+ groupOrder: __props.groupOrder
461
+ }),
462
+ line.description ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
463
+ createTextVNode(toDisplayString(line.description), 1)
464
+ ], 64)) : ((_a = line.details) == null ? void 0 : _a.description) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
465
+ createTextVNode(toDisplayString((_b = line.details) == null ? void 0 : _b.description), 1)
466
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
467
+ createTextVNode("N/A")
468
+ ], 64))
469
+ ])
470
+ ];
471
+ }),
472
+ _: 2
473
+ }, 1024),
474
+ createVNode(_sfc_main$h, { colspan: "2" }, {
475
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
476
+ createTextVNode(" ", -1)
477
+ ])]),
478
+ _: 1
479
+ }),
480
+ createVNode(_sfc_main$h, { class: "w-1/5 tabular-nums" }, {
481
+ default: withCtx(() => {
482
+ var _a, _b, _c;
483
+ return [
484
+ createTextVNode(toDisplayString(((_b = (_a = line.details) == null ? void 0 : _a.band) == null ? void 0 : _b.percentage) ? `${(_c = line.details) == null ? void 0 : _c.band.percentage}%` : " "), 1)
485
+ ];
486
+ }),
487
+ _: 2
488
+ }, 1024),
489
+ createVNode(_sfc_main$h, { class: "w-1/5" }, {
490
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
491
+ createTextVNode(" ", -1)
492
+ ])]),
493
+ _: 1
494
+ }),
495
+ createVNode(_sfc_main$h, {
496
+ number: "",
497
+ class: "w-1/5"
498
+ }, {
499
+ default: withCtx(() => {
500
+ var _a;
501
+ return [
502
+ ((_a = line.details) == null ? void 0 : _a.amount) ? (openBlock(), createBlock(_sfc_main$k, {
503
+ key: 0,
504
+ value: line.details.amount
505
+ }, null, 8, ["value"])) : createCommentVNode("", true)
506
+ ];
507
+ }),
508
+ _: 2
509
+ }, 1024)
510
+ ], 10, _hoisted_1$d),
511
+ createVNode(_sfc_main$f, {
512
+ ref_for: true,
513
+ ref: formatIndex(__props.groupOrder, line["line_order"]),
514
+ "sub-lines": line.sub_lines ?? [],
515
+ "line-order": line["line_order"],
516
+ "is-open": unref(getIsOpen)(formatIndex(__props.groupOrder, line["line_order"])),
517
+ "period-order": __props.invoicePeriodOrder,
518
+ "group-order": __props.groupOrder
519
+ }, null, 8, ["sub-lines", "line-order", "is-open", "period-order", "group-order"])
520
+ ], 64);
521
+ }), 128))
522
+ ]),
523
+ _: 3
524
+ });
525
+ };
526
+ }
527
+ });
528
+ const _hoisted_1$c = ["tabindex"];
529
+ const _hoisted_2$7 = { key: 0 };
530
+ const _hoisted_3$5 = {
531
+ colspan: "2",
532
+ class: "p-0"
533
+ };
534
+ const _hoisted_4$5 = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" };
535
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
536
+ __name: "InvoiceGroupCommitment",
537
+ props: {
538
+ group: {},
539
+ expandedItems: {},
540
+ handleToggleItems: { type: Function },
541
+ formatIndex: { type: Function },
542
+ invoicePeriodOrder: {},
543
+ groupOrder: {},
544
+ isExpandable: { type: Boolean },
545
+ amountType: {},
546
+ processingOnlyCustomers: {},
547
+ showTaxPerLineItem: { type: Boolean }
548
+ },
549
+ setup(__props) {
550
+ const intl = useIntl();
551
+ return (_ctx, _cache) => {
552
+ return openBlock(), createElementBlock(Fragment, null, [
553
+ createElementVNode("tr", {
554
+ class: normalizeClass(["border-t", { "cursor-pointer": __props.isExpandable }]),
555
+ tabindex: __props.isExpandable ? 0 : void 0,
556
+ onClick: _cache[0] || (_cache[0] = ($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder))),
557
+ onKeyup: [
558
+ _cache[1] || (_cache[1] = withKeys(($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)), ["enter"])),
559
+ _cache[2] || (_cache[2] = withKeys(($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)), ["space"]))
560
+ ]
561
+ }, [
562
+ createVNode(_sfc_main$h, { class: "p-0" }, {
563
+ default: withCtx(() => [
564
+ __props.isExpandable ? (openBlock(), createBlock(_sfc_main$l, {
565
+ key: 0,
566
+ icon: "keyboard_arrow_down",
567
+ size: "md",
568
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", {
569
+ "-rotate-90": !__props.expandedItems.includes(
570
+ __props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)
571
+ )
572
+ }])
573
+ }, null, 8, ["class"])) : createCommentVNode("", true),
574
+ createTextVNode(" " + toDisplayString(unref(intl).$t({
575
+ id: "invoice.commitment_heading",
576
+ defaultMessage: "Commitment",
577
+ description: "Heading used for commitment in invoice tables"
578
+ })), 1)
579
+ ]),
580
+ _: 1
581
+ }),
582
+ createVNode(_sfc_main$h, { number: "" }, {
583
+ default: withCtx(() => [
584
+ __props.amountType === "INCLUDING_TAX" ? (openBlock(), createBlock(_sfc_main$k, {
585
+ key: 0,
586
+ value: __props.group.amount_including_tax
587
+ }, null, 8, ["value"])) : (openBlock(), createBlock(_sfc_main$k, {
588
+ key: 1,
589
+ value: __props.group.amount_excluding_tax
590
+ }, null, 8, ["value"]))
591
+ ]),
592
+ _: 1
593
+ })
594
+ ], 42, _hoisted_1$c),
595
+ __props.expandedItems.includes(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)) && __props.group.lines ? (openBlock(), createElementBlock("tr", _hoisted_2$7, [
596
+ createElementVNode("td", _hoisted_3$5, [
597
+ createElementVNode("div", _hoisted_4$5, [
598
+ createVNode(_sfc_main$e, {
599
+ commitments: __props.group.lines,
600
+ "format-index": __props.formatIndex,
601
+ "handle-toggle-items": __props.handleToggleItems,
602
+ "expanded-items": __props.expandedItems,
603
+ "is-expandable": __props.isExpandable,
604
+ "invoice-period-order": __props.invoicePeriodOrder,
605
+ "group-order": __props.groupOrder
606
+ }, {
607
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
608
+ renderSlot(_ctx.$slots, "invoice-line-prefix", normalizeProps(guardReactiveProps(linePrefixProps)))
609
+ ]),
610
+ _: 3
611
+ }, 8, ["commitments", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order"])
612
+ ])
613
+ ])
614
+ ])) : createCommentVNode("", true)
615
+ ], 64);
616
+ };
617
+ }
618
+ });
619
+ const _hoisted_1$b = ["tabindex"];
620
+ const _hoisted_2$6 = { key: 0 };
621
+ const _hoisted_3$4 = {
622
+ colspan: "2",
623
+ class: "p-0"
624
+ };
625
+ const _hoisted_4$4 = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" };
626
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
627
+ __name: "InvoiceGroupDiscountMarkup",
628
+ props: {
629
+ heading: {},
630
+ group: {},
631
+ expandedItems: {},
632
+ handleToggleItems: { type: Function },
633
+ formatIndex: { type: Function },
634
+ invoicePeriodOrder: {},
635
+ groupOrder: {},
636
+ isExpandable: { type: Boolean },
637
+ amountType: {},
638
+ processingOnlyCustomers: {},
639
+ showTaxPerLineItem: { type: Boolean }
640
+ },
641
+ setup(__props) {
642
+ return (_ctx, _cache) => {
643
+ return openBlock(), createElementBlock(Fragment, null, [
644
+ createElementVNode("tr", {
645
+ class: normalizeClass(["border-t", { "cursor-pointer": __props.isExpandable }]),
646
+ tabindex: __props.isExpandable ? 0 : void 0,
647
+ onClick: _cache[0] || (_cache[0] = ($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder))),
648
+ onKeyup: [
649
+ _cache[1] || (_cache[1] = withKeys(($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)), ["enter"])),
650
+ _cache[2] || (_cache[2] = withKeys(($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)), ["space"]))
651
+ ]
652
+ }, [
653
+ createVNode(_sfc_main$h, { class: "p-0" }, {
654
+ default: withCtx(() => [
655
+ __props.isExpandable ? (openBlock(), createBlock(_sfc_main$l, {
656
+ key: 0,
657
+ icon: "keyboard_arrow_down",
658
+ size: "md",
659
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", {
660
+ "-rotate-90": !__props.expandedItems.includes(
661
+ __props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)
662
+ )
663
+ }])
664
+ }, null, 8, ["class"])) : createCommentVNode("", true),
665
+ createTextVNode(" " + toDisplayString(__props.heading), 1)
666
+ ]),
667
+ _: 1
668
+ }),
669
+ createVNode(_sfc_main$h, { number: "" }, {
670
+ default: withCtx(() => [
671
+ __props.amountType === "INCLUDING_TAX" ? (openBlock(), createBlock(_sfc_main$k, {
672
+ key: 0,
673
+ value: __props.group.amount_including_tax
674
+ }, null, 8, ["value"])) : (openBlock(), createBlock(_sfc_main$k, {
675
+ key: 1,
676
+ value: __props.group.amount_excluding_tax
677
+ }, null, 8, ["value"]))
678
+ ]),
679
+ _: 1
680
+ })
681
+ ], 42, _hoisted_1$b),
682
+ __props.expandedItems.includes(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)) && __props.group.lines ? (openBlock(), createElementBlock("tr", _hoisted_2$6, [
683
+ createElementVNode("td", _hoisted_3$4, [
684
+ createElementVNode("div", _hoisted_4$4, [
685
+ createVNode(_sfc_main$d, {
686
+ type: __props.group.type,
687
+ lines: __props.group.lines,
688
+ "format-index": __props.formatIndex,
689
+ "handle-toggle-items": __props.handleToggleItems,
690
+ "expanded-items": __props.expandedItems,
691
+ "is-expandable": __props.isExpandable,
692
+ "invoice-period-order": __props.invoicePeriodOrder,
693
+ "group-order": __props.groupOrder
694
+ }, {
695
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
696
+ renderSlot(_ctx.$slots, "invoice-line-prefix", normalizeProps(guardReactiveProps(linePrefixProps)))
697
+ ]),
698
+ _: 3
699
+ }, 8, ["type", "lines", "format-index", "handle-toggle-items", "expanded-items", "is-expandable", "invoice-period-order", "group-order"])
700
+ ])
701
+ ])
702
+ ])) : createCommentVNode("", true)
703
+ ], 64);
704
+ };
705
+ }
706
+ });
707
+ const getInvoiceGroupOriginalCustomerId = (group, isShowOriginalCustomerInvoiceLine) => {
708
+ if (!isShowOriginalCustomerInvoiceLine) {
709
+ return void 0;
710
+ }
711
+ return group.forwarded_from_customer_id;
712
+ };
713
+ const _hoisted_1$a = { class: "flex gap-4" };
714
+ const _hoisted_2$5 = { class: "flex items-center gap-2" };
715
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
716
+ __name: "PricingClauseChip",
717
+ props: {
718
+ iconName: {},
719
+ chipColor: {}
720
+ },
721
+ setup(__props) {
722
+ return (_ctx, _cache) => {
723
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
724
+ createVNode(_sfc_main$m, { color: __props.chipColor }, {
725
+ default: withCtx(() => [
726
+ createElementVNode("div", _hoisted_2$5, [
727
+ createVNode(_sfc_main$l, {
728
+ icon: __props.iconName,
729
+ size: "xs"
730
+ }, null, 8, ["icon"]),
731
+ createElementVNode("span", null, [
732
+ renderSlot(_ctx.$slots, "chip-content")
733
+ ])
734
+ ])
735
+ ]),
736
+ _: 3
737
+ }, 8, ["color"]),
738
+ renderSlot(_ctx.$slots, "chip-postfix")
739
+ ]);
740
+ };
741
+ }
742
+ });
743
+ const _hoisted_1$9 = { class: "flex flex-col gap-2" };
744
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
745
+ __name: "InvoicePricingClauseChip",
746
+ props: {
747
+ clauseType: {},
748
+ priceDetailsBand: {},
749
+ invoiceLineDescription: {}
750
+ },
751
+ setup(__props) {
752
+ const intl = useIntl();
753
+ return (_ctx, _cache) => {
754
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
755
+ createElementVNode("span", null, toDisplayString(__props.invoiceLineDescription), 1),
756
+ __props.clauseType === "DISCOUNT" && __props.priceDetailsBand ? (openBlock(), createBlock(unref(_sfc_main$a), {
757
+ key: 0,
758
+ "icon-name": "south_east",
759
+ "chip-color": "yellow"
760
+ }, createSlots({ _: 2 }, [
761
+ __props.priceDetailsBand.amount ? {
762
+ name: "chip-content",
763
+ fn: withCtx(() => [
764
+ createTextVNode(toDisplayString(unref(intl).$t(
765
+ {
766
+ id: "invoice.amount_discount",
767
+ defaultMessage: "{amount} discount",
768
+ description: "Represents a certain amount of discount, where {amount} is replaced with the amount"
769
+ },
770
+ {
771
+ amount: unref(formatAmount)(__props.priceDetailsBand.amount)
772
+ }
773
+ ).toUpperCase()), 1)
774
+ ]),
775
+ key: "0"
776
+ } : __props.priceDetailsBand.percentage ? {
777
+ name: "chip-content",
778
+ fn: withCtx(() => [
779
+ createTextVNode(toDisplayString(unref(intl).$t(
780
+ {
781
+ id: "invoice.percentage_discount",
782
+ defaultMessage: "{percentage}% discount",
783
+ description: "Represents a certain percentage of discount, where {percentage} is replaced with the percentage (number only)"
784
+ },
785
+ {
786
+ percentage: __props.priceDetailsBand.percentage ?? "0"
787
+ }
788
+ ).toUpperCase()), 1)
789
+ ]),
790
+ key: "1"
791
+ } : void 0
792
+ ]), 1024)) : __props.clauseType === "ADJUSTMENT" ? (openBlock(), createBlock(unref(_sfc_main$a), {
793
+ key: 1,
794
+ "icon-name": "info",
795
+ "chip-color": "yellow"
796
+ }, {
797
+ "chip-content": withCtx(() => [
798
+ createTextVNode(toDisplayString(unref(intl).$t({
799
+ id: "invoice.adjustment_chip_body",
800
+ defaultMessage: "Adjustment",
801
+ description: "Used on invoice lines to mark as adjusted"
802
+ }).toUpperCase()), 1)
803
+ ]),
804
+ _: 1
805
+ })) : __props.clauseType === "MARKUP" ? (openBlock(), createBlock(unref(_sfc_main$a), {
806
+ key: 2,
807
+ "icon-name": "north_east",
808
+ "chip-color": "teal-light"
809
+ }, {
810
+ "chip-content": withCtx(() => {
811
+ var _a;
812
+ return [
813
+ createTextVNode(toDisplayString(unref(intl).$t(
814
+ {
815
+ id: "invoice.markup_percentage",
816
+ defaultMessage: "{percentage}% markup",
817
+ description: "Markup percentage, where {percentage} is replaced with the percentage (number only)"
818
+ },
819
+ { percentage: ((_a = __props.priceDetailsBand) == null ? void 0 : _a.percentage) ?? "0" }
820
+ ).toUpperCase()), 1)
821
+ ];
822
+ }),
823
+ _: 1
824
+ })) : __props.clauseType === "COMMITMENT" ? (openBlock(), createBlock(unref(_sfc_main$a), {
825
+ key: 3,
826
+ "icon-name": "sell",
827
+ "chip-color": "orange"
828
+ }, {
829
+ "chip-content": withCtx(() => [
830
+ createTextVNode(toDisplayString(unref(intl).$t({
831
+ id: "invoice.commitment",
832
+ defaultMessage: "commitment",
833
+ description: "Used on invoice lines to mark as commitment"
834
+ }).toUpperCase()), 1)
835
+ ]),
836
+ _: 1
837
+ })) : createCommentVNode("", true)
838
+ ]);
839
+ };
840
+ }
841
+ });
842
+ const _hoisted_1$8 = { class: "items-left flex flex-col gap-1 leading-none" };
843
+ const _hoisted_2$4 = { class: "flex items-center" };
844
+ const _hoisted_3$3 = {
845
+ key: 0,
846
+ class: "ml-1 text-xs text-gray-400"
847
+ };
848
+ const _hoisted_4$3 = { key: 0 };
849
+ const _hoisted_5$2 = {
850
+ key: 1,
851
+ class: "text-xs text-gray-400"
852
+ };
853
+ const _hoisted_6$2 = {
854
+ key: 2,
855
+ class: "text-xs text-gray-400"
856
+ };
857
+ const _hoisted_7$2 = { class: "text-[9pt] text-slate-600" };
858
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
859
+ __name: "InvoiceLineRow",
860
+ props: {
861
+ data: {},
862
+ isLast: { type: Boolean },
863
+ periodOrder: {},
864
+ groupOrder: {},
865
+ groupType: {},
866
+ isExpanded: { type: Boolean }
867
+ },
868
+ setup(__props) {
869
+ const { $t, formatNumber } = useIntl();
870
+ const props = __props;
871
+ const formattedTier = (band) => {
872
+ if (!band) return "";
873
+ let lowerBound = "0";
874
+ let topBound = "+";
875
+ if (band.tier_lower_bound && "number" in band.tier_lower_bound) {
876
+ lowerBound = formatNumber(+band.tier_lower_bound.number);
877
+ } else if (band.tier_lower_bound && "amount" in band.tier_lower_bound) {
878
+ const { quantity, currency } = band.tier_lower_bound.amount;
879
+ lowerBound = `${currency} ${quantity ?? 0}`;
880
+ }
881
+ if (band.tier_top_bound && "number" in band.tier_top_bound) {
882
+ topBound = ` - ${formatNumber(+band.tier_top_bound.number)}`;
883
+ } else if (band.tier_top_bound && "amount" in band.tier_top_bound) {
884
+ const { quantity, currency } = band.tier_top_bound.amount;
885
+ topBound = ` - ${currency} ${quantity}`;
886
+ }
887
+ return lowerBound + topBound;
888
+ };
889
+ const includedVolumeDetails = computed(() => {
890
+ var _a;
891
+ return (_a = props.data.details) == null ? void 0 : _a.included_volume_details;
892
+ });
893
+ const invoiceLineName = computed(() => {
894
+ var _a, _b;
895
+ if ((_a = props.data) == null ? void 0 : _a.product_items) {
896
+ return getComposedString(props.data.product_items.map((item) => item.name));
897
+ }
898
+ return ((_b = props.data) == null ? void 0 : _b.description) ?? "N/A";
899
+ });
900
+ return (_ctx, _cache) => {
901
+ return openBlock(), createElementBlock(Fragment, null, [
902
+ createVNode(_sfc_main$h, { class: "align-top" }, {
903
+ default: withCtx(() => {
904
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
905
+ return [
906
+ createElementVNode("div", _hoisted_1$8, [
907
+ createElementVNode("div", null, [
908
+ __props.data.sub_lines ? (openBlock(), createBlock(_sfc_main$l, {
909
+ key: 0,
910
+ icon: "keyboard_arrow_down",
911
+ size: "md",
912
+ class: normalizeClass(["absolute -translate-x-7 -translate-y-2 text-slate-400", {
913
+ "-rotate-90": !__props.isExpanded
914
+ }])
915
+ }, null, 8, ["class"])) : createCommentVNode("", true),
916
+ createElementVNode("div", _hoisted_2$4, [
917
+ renderSlot(_ctx.$slots, "invoice-line-prefix", {
918
+ lineOrder: __props.data.line_order,
919
+ periodOrder: __props.periodOrder,
920
+ groupOrder: __props.groupOrder
921
+ }),
922
+ ["PRICING", "REVENUE", "ONE_OFF"].includes(__props.data.type) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
923
+ createTextVNode(toDisplayString(invoiceLineName.value) + " ", 1),
924
+ __props.data.type === "ONE_OFF" && __props.groupType !== "ONE_OFF" ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(unref(formatEnum)(__props.data.type)), 1)) : createCommentVNode("", true)
925
+ ], 64)) : (openBlock(), createBlock(_sfc_main$9, {
926
+ key: 1,
927
+ "invoice-line-description": invoiceLineName.value,
928
+ "clause-type": __props.data.type,
929
+ "price-details-band": (_a = __props.data.details) == null ? void 0 : _a.band
930
+ }, null, 8, ["invoice-line-description", "clause-type", "price-details-band"]))
931
+ ])
932
+ ]),
933
+ ["TIERED", "STAIR_STEP", "TOP_TIERED"].includes(__props.data.pricing_type) && !includedVolumeDetails.value && ((_b = __props.data.details) == null ? void 0 : _b.band) ? (openBlock(), createElementBlock("div", _hoisted_4$3, toDisplayString(formattedTier((_c = __props.data.details) == null ? void 0 : _c.band)), 1)) : createCommentVNode("", true),
934
+ ((_e = (_d = __props.data.details) == null ? void 0 : _d.split_pricing) == null ? void 0 : _e.meter_properties) ? (openBlock(), createElementBlock("span", _hoisted_5$2, [
935
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_g = (_f = __props.data.details) == null ? void 0 : _f.split_pricing) == null ? void 0 : _g.meter_properties, (meterProperty, index) => {
936
+ return openBlock(), createElementBlock(Fragment, null, [
937
+ createTextVNode(toDisplayString(meterProperty.meter_property.name) + ": " + toDisplayString(meterProperty.value), 1),
938
+ index < __props.data.details.split_pricing.meter_properties.length - 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
939
+ createTextVNode(toDisplayString(", "))
940
+ ], 64)) : createCommentVNode("", true)
941
+ ], 64);
942
+ }), 256))
943
+ ])) : createCommentVNode("", true),
944
+ ((_h = __props.data.conditions) == null ? void 0 : _h.name) || ((_i = __props.data.conditions) == null ? void 0 : _i.meter_properties) ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
945
+ __props.data.conditions.name ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
946
+ createTextVNode(toDisplayString(__props.data.conditions.name), 1)
947
+ ], 64)) : __props.data.conditions.meter_properties ? (openBlock(), createBlock(unref(_sfc_main$j), {
948
+ key: 1,
949
+ comparators: __props.data.conditions.meter_properties
950
+ }, null, 8, ["comparators"])) : createCommentVNode("", true)
951
+ ])) : createCommentVNode("", true)
952
+ ]),
953
+ createElementVNode("span", _hoisted_7$2, [
954
+ ((_j = __props.data.details) == null ? void 0 : _j.price_bound) === "BELOW_MINIMUM_AMOUNT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
955
+ createTextVNode(toDisplayString(unref($t)({
956
+ id: "invoice.line.band_minimum_amount",
957
+ defaultMessage: "Band minimum amount",
958
+ description: "Minimum amount specified in a band"
959
+ })) + " ", 1),
960
+ ((_k = __props.data.details.band) == null ? void 0 : _k.minimum_amount) ? (openBlock(), createBlock(_sfc_main$k, {
961
+ key: 0,
962
+ value: __props.data.details.band.minimum_amount
963
+ }, null, 8, ["value"])) : createCommentVNode("", true)
964
+ ], 64)) : ((_l = __props.data.details) == null ? void 0 : _l.price_bound) === "NOT_HIT" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
965
+ createTextVNode(toDisplayString(unref($t)({
966
+ id: "invoice.line.price_bound_within_bounds",
967
+ defaultMessage: "Within bounds",
968
+ description: "Label used when min and max bounds are specified but reached"
969
+ })), 1)
970
+ ], 64)) : ((_m = __props.data.details) == null ? void 0 : _m.price_bound) === "ABOVE_MAXIMUM_AMOUNT" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
971
+ createTextVNode(toDisplayString(unref($t)({
972
+ id: "invoice.line.price_bound_maximum_amount",
973
+ defaultMessage: "Maximum amount",
974
+ description: "Minimum amount specified in a band"
975
+ })) + " ", 1),
976
+ ((_n = __props.data.details.band) == null ? void 0 : _n.maximum_amount) ? (openBlock(), createBlock(_sfc_main$k, {
977
+ key: 0,
978
+ value: __props.data.details.band.maximum_amount
979
+ }, null, 8, ["value"])) : createCommentVNode("", true)
980
+ ], 64)) : ((_o = __props.data.details) == null ? void 0 : _o.price_bound) === "BELOW_MINIMUM_NUMBER" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
981
+ createTextVNode(toDisplayString(unref($t)({
982
+ id: "invoice.line.band_minimum_number",
983
+ defaultMessage: "Minimum number",
984
+ description: "Minimum number of units specified in a band"
985
+ })) + " " + toDisplayString((_p = __props.data.details.band) == null ? void 0 : _p.minimum_number), 1)
986
+ ], 64)) : ((_q = __props.data.details) == null ? void 0 : _q.price_bound) === "ABOVE_MAXIMUM_NUMBER" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
987
+ createTextVNode(toDisplayString(unref($t)({
988
+ id: "invoice.line.band_maximum_number",
989
+ defaultMessage: "Maximum number",
990
+ description: "Maximum number of units specified in a band"
991
+ })) + " " + toDisplayString((_r = __props.data.details.band) == null ? void 0 : _r.maximum_number), 1)
992
+ ], 64)) : createCommentVNode("", true)
993
+ ])
994
+ ];
995
+ }),
996
+ _: 3
997
+ }),
998
+ renderSlot(_ctx.$slots, "line-content", {
999
+ details: __props.data.details
1000
+ })
1001
+ ], 64);
1002
+ };
1003
+ }
1004
+ });
1005
+ const _hoisted_1$7 = {
1006
+ key: 4,
1007
+ class: "text-xs text-gray-400"
1008
+ };
1009
+ const _hoisted_2$3 = {
1010
+ key: 1,
1011
+ class: "tabular-nums"
1012
+ };
1013
+ const _hoisted_3$2 = {
1014
+ key: 0,
1015
+ class: "text-2xs text-gray-500"
1016
+ };
1017
+ const _hoisted_4$2 = { class: "text-2xs text-gray-500" };
1018
+ const _hoisted_5$1 = {
1019
+ key: 0,
1020
+ class: "text-2xs text-gray-500"
1021
+ };
1022
+ const _hoisted_6$1 = {
1023
+ key: 1,
1024
+ class: "text-2xs text-gray-500"
1025
+ };
1026
+ const _hoisted_7$1 = {
1027
+ key: 0,
1028
+ class: "text-2xs text-gray-500"
1029
+ };
1030
+ const _hoisted_8$1 = {
1031
+ key: 1,
1032
+ class: "text-2xs text-gray-500"
1033
+ };
1034
+ const _hoisted_9$1 = {
1035
+ key: 2,
1036
+ class: "text-2xs text-gray-500"
1037
+ };
1038
+ const _hoisted_10$1 = { class: "text-2xs text-gray-500" };
1039
+ const _hoisted_11$1 = {
1040
+ key: 0,
1041
+ class: "flex justify-end"
1042
+ };
1043
+ const _hoisted_12$1 = { class: "flex items-center justify-end gap-1" };
1044
+ const _hoisted_13$1 = {
1045
+ key: 0,
1046
+ class: "text-2xs tabular-nums text-gray-500"
1047
+ };
1048
+ const _hoisted_14 = {
1049
+ key: 1,
1050
+ class: "inline-block"
1051
+ };
1052
+ const _hoisted_15 = { class: "flex items-center justify-end gap-1" };
1053
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1054
+ __name: "InvoiceRowContent",
1055
+ props: {
1056
+ pricingType: {},
1057
+ details: {},
1058
+ taxCategories: {},
1059
+ amountType: {},
1060
+ hideTaxDetails: { type: Boolean },
1061
+ modelType: {},
1062
+ showTaxPerLineItem: { type: Boolean, default: true }
1063
+ },
1064
+ setup(__props) {
1065
+ const props = __props;
1066
+ const includedVolumeDetails = computed(() => {
1067
+ var _a;
1068
+ return (_a = props.details) == null ? void 0 : _a.included_volume_details;
1069
+ });
1070
+ const availableIncludedVolume = computed(
1071
+ () => {
1072
+ var _a;
1073
+ return (_a = includedVolumeDetails.value) == null ? void 0 : _a.available_included_volume;
1074
+ }
1075
+ );
1076
+ const { $t, formatNumber } = useIntl();
1077
+ const tierTopBoundNumber = computed(() => {
1078
+ var _a, _b;
1079
+ const tierTopBound = (_b = (_a = props.details) == null ? void 0 : _a.band) == null ? void 0 : _b.tier_top_bound;
1080
+ return tierTopBound && "number" in tierTopBound ? tierTopBound.number : void 0;
1081
+ });
1082
+ const tierTopBoundUnitsLabel = computed(() => {
1083
+ if (tierTopBoundNumber.value === void 0) return void 0;
1084
+ return $t(
1085
+ {
1086
+ id: "invoice.line.per_units_tier_top_bound",
1087
+ defaultMessage: "per {count, plural, one {unit} other {{formattedCount} units}}",
1088
+ description: "Number of units a tiered price band applies per. Singular form omits the count."
1089
+ },
1090
+ { count: +tierTopBoundNumber.value, formattedCount: tierTopBoundNumber.value }
1091
+ );
1092
+ });
1093
+ const blockSizeNumber = computed(() => {
1094
+ var _a, _b;
1095
+ const blockSize = (_b = (_a = props.details) == null ? void 0 : _a.band) == null ? void 0 : _b.block_size;
1096
+ return blockSize && "number" in blockSize ? blockSize.number : void 0;
1097
+ });
1098
+ const blockSizeUnitsLabel = computed(() => {
1099
+ if (blockSizeNumber.value === void 0) return void 0;
1100
+ return $t(
1101
+ {
1102
+ id: "invoice.line.per_units_block_size",
1103
+ defaultMessage: "Per {count, plural, one {unit} other {{formattedCount} units}}",
1104
+ description: "Number of units a price band block applies per. Singular form omits the count."
1105
+ },
1106
+ {
1107
+ count: +blockSizeNumber.value,
1108
+ formattedCount: formatNumber(+blockSizeNumber.value)
1109
+ }
1110
+ );
1111
+ });
1112
+ return (_ctx, _cache) => {
1113
+ return openBlock(), createElementBlock(Fragment, null, [
1114
+ createVNode(_sfc_main$h, {
1115
+ number: "",
1116
+ class: "align-top"
1117
+ }, {
1118
+ default: withCtx(() => {
1119
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
1120
+ return [
1121
+ __props.pricingType !== "PASS_THROUGH" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1122
+ ((_a = __props.details) == null ? void 0 : _a.price_bound) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1123
+ ((_b = __props.details) == null ? void 0 : _b.price_bound) === "BELOW_MINIMUM_AMOUNT" || ((_c = __props.details) == null ? void 0 : _c.price_bound) === "ABOVE_MAXIMUM_AMOUNT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1124
+ createTextVNode(toDisplayString((_d = __props.details) == null ? void 0 : _d.meter_value.count), 1)
1125
+ ], 64)) : ((_e = __props.details) == null ? void 0 : _e.price_bound) === "NOT_HIT" && "amount" in __props.details.meter_value && ((_g = (_f = __props.details) == null ? void 0 : _f.meter_value) == null ? void 0 : _g.amount) ? (openBlock(), createBlock(_sfc_main$k, {
1126
+ key: 1,
1127
+ value: (_i = (_h = __props.details) == null ? void 0 : _h.meter_value) == null ? void 0 : _i.amount
1128
+ }, null, 8, ["value"])) : ((_j = __props.details) == null ? void 0 : _j.price_bound) === "NOT_HIT" && "number" in __props.details.meter_value && ((_l = (_k = __props.details) == null ? void 0 : _k.meter_value) == null ? void 0 : _l.number) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
1129
+ createTextVNode(toDisplayString((_n = (_m = __props.details) == null ? void 0 : _m.meter_value) == null ? void 0 : _n.number), 1)
1130
+ ], 64)) : ((_o = __props.details) == null ? void 0 : _o.price_bound) === "RATIO" && __props.details.meter_value.number ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
1131
+ createTextVNode(toDisplayString(unref(formatNumber)(+__props.details.meter_value.number)), 1)
1132
+ ], 64)) : ((_p = __props.details) == null ? void 0 : _p.price_bound) === "BELOW_MINIMUM_NUMBER" && ((_r = (_q = __props.details) == null ? void 0 : _q.band) == null ? void 0 : _r.minimum_number) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
1133
+ createTextVNode(toDisplayString(unref(formatNumber)(+__props.details.band.minimum_number)), 1)
1134
+ ], 64)) : ((_s = __props.details) == null ? void 0 : _s.price_bound) === "ABOVE_MAXIMUM_NUMBER" && ((_u = (_t = __props.details) == null ? void 0 : _t.band) == null ? void 0 : _u.maximum_number) ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
1135
+ createTextVNode(toDisplayString(unref(formatNumber)(+__props.details.band.maximum_number)), 1)
1136
+ ], 64)) : createCommentVNode("", true)
1137
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1138
+ ((_v = __props.details) == null ? void 0 : _v.meter_value) && "number" in __props.details.meter_value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1139
+ createTextVNode(toDisplayString(unref(formatNumber)(+__props.details.meter_value.number)), 1)
1140
+ ], 64)) : ((_w = __props.details) == null ? void 0 : _w.price_bound) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1141
+ createTextVNode(toDisplayString(unref(formatNumber)(+__props.details.total_count)), 1)
1142
+ ], 64)) : ((_x = __props.details) == null ? void 0 : _x.meter_value) && "amount" in __props.details.meter_value ? (openBlock(), createBlock(_sfc_main$k, {
1143
+ key: 2,
1144
+ value: __props.details.meter_value.amount
1145
+ }, null, 8, ["value"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
1146
+ createTextVNode("1")
1147
+ ], 64)),
1148
+ availableIncludedVolume.value ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
1149
+ availableIncludedVolume.value.type === "AMOUNT" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1150
+ createVNode(_sfc_main$k, {
1151
+ value: availableIncludedVolume.value.amount
1152
+ }, null, 8, ["value"]),
1153
+ createTextVNode(" " + toDisplayString(unref($t)({
1154
+ id: "invoice.line.included",
1155
+ defaultMessage: "included",
1156
+ description: "Used to specify an included amount. Should be lowercase."
1157
+ })), 1)
1158
+ ], 64)) : availableIncludedVolume.value.type === "NUMBER" ? (openBlock(), createElementBlock("span", _hoisted_2$3, toDisplayString(availableIncludedVolume.value.number) + " " + toDisplayString(unref($t)({
1159
+ id: "invoice.line.units_included",
1160
+ defaultMessage: "units included",
1161
+ description: "Used to specify an included units. Should be lowercase."
1162
+ })), 1)) : createCommentVNode("", true)
1163
+ ])) : createCommentVNode("", true)
1164
+ ], 64))
1165
+ ], 64)) : createCommentVNode("", true)
1166
+ ];
1167
+ }),
1168
+ _: 1
1169
+ }),
1170
+ __props.pricingType === "PASS_THROUGH" ? (openBlock(), createBlock(_sfc_main$h, {
1171
+ key: 0,
1172
+ class: "text-right align-top"
1173
+ }, {
1174
+ default: withCtx(() => [
1175
+ createTextVNode(toDisplayString(unref($t)({
1176
+ id: "invoice.line.pass_through",
1177
+ defaultMessage: "Pass through",
1178
+ description: "Name of the pass through pricing type"
1179
+ })), 1)
1180
+ ]),
1181
+ _: 1
1182
+ })) : (openBlock(), createBlock(_sfc_main$h, {
1183
+ key: 1,
1184
+ number: "",
1185
+ class: "align-top"
1186
+ }, {
1187
+ default: withCtx(() => {
1188
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
1189
+ return [
1190
+ ((_a = __props.details) == null ? void 0 : _a.price_bound) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1191
+ ((_b = __props.details) == null ? void 0 : _b.price_bound) === "BELOW_MINIMUM_AMOUNT" && ((_d = (_c = __props.details) == null ? void 0 : _c.band) == null ? void 0 : _d.minimum_amount) ? (openBlock(), createBlock(_sfc_main$k, {
1192
+ key: 0,
1193
+ value: __props.details.band.minimum_amount
1194
+ }, null, 8, ["value"])) : ((_e = __props.details) == null ? void 0 : _e.price_bound) === "ABOVE_MAXIMUM_AMOUNT" && ((_g = (_f = __props.details) == null ? void 0 : _f.band) == null ? void 0 : _g.maximum_amount) ? (openBlock(), createBlock(_sfc_main$k, {
1195
+ key: 1,
1196
+ value: __props.details.band.maximum_amount
1197
+ }, null, 8, ["value"])) : __props.details.price_bound === "RATIO" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
1198
+ createVNode(_sfc_main$k, {
1199
+ value: __props.details.amount
1200
+ }, null, 8, ["value"]),
1201
+ tierTopBoundUnitsLabel.value ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(tierTopBoundUnitsLabel.value), 1)) : createCommentVNode("", true)
1202
+ ], 64)) : ["NOT_HIT", "BELOW_MINIMUM_NUMBER", "ABOVE_MAXIMUM_NUMBER"].includes(
1203
+ (_h = __props.details) == null ? void 0 : _h.price_bound
1204
+ ) ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
1205
+ ((_i = __props.details) == null ? void 0 : _i.band) && __props.details.band.amount ? (openBlock(), createBlock(_sfc_main$k, {
1206
+ key: 0,
1207
+ value: __props.details.band.amount
1208
+ }, null, 8, ["value"])) : ((_j = __props.details) == null ? void 0 : _j.band) && "percentage" in __props.details.band ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1209
+ createTextVNode(toDisplayString(__props.details.band.percentage) + "% ", 1)
1210
+ ], 64)) : ((_k = __props.details) == null ? void 0 : _k.band) && __props.details.amount ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
1211
+ createVNode(_sfc_main$k, {
1212
+ value: __props.details.amount
1213
+ }, null, 8, ["value"]),
1214
+ createElementVNode("div", _hoisted_4$2, toDisplayString(unref($t)({
1215
+ id: "invoice.line.fixed_amount",
1216
+ defaultMessage: "Fixed amount",
1217
+ description: "Label shown when a price band charges a fixed amount regardless of usage"
1218
+ })), 1)
1219
+ ], 64)) : createCommentVNode("", true)
1220
+ ], 64)) : createCommentVNode("", true)
1221
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1222
+ ((_l = __props.details) == null ? void 0 : _l.band) && __props.details.band.amount ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1223
+ createVNode(_sfc_main$k, {
1224
+ value: __props.details.band.amount
1225
+ }, null, 8, ["value"]),
1226
+ blockSizeUnitsLabel.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, toDisplayString(blockSizeUnitsLabel.value), 1)) : __props.modelType !== "RECURRING" ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString(unref($t)({
1227
+ id: "invoice.line.per_unit",
1228
+ defaultMessage: "Per unit",
1229
+ description: "Label shown when a price band applies per single unit"
1230
+ })), 1)) : createCommentVNode("", true)
1231
+ ], 64)) : ((_m = __props.details) == null ? void 0 : _m.band) && "percentage" in __props.details.band ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1232
+ createTextVNode(toDisplayString(__props.details.band.percentage) + "% ", 1)
1233
+ ], 64)) : ((_n = __props.details) == null ? void 0 : _n.band) && __props.details.amount ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
1234
+ createVNode(_sfc_main$k, {
1235
+ value: __props.details.amount
1236
+ }, null, 8, ["value"]),
1237
+ __props.pricingType === "STAIR_STEP" || __props.pricingType === "STAIR_STEP_TOP_UP" ? (openBlock(), createElementBlock("div", _hoisted_7$1, toDisplayString(unref($t)({
1238
+ id: "invoice.line.fixed_amount",
1239
+ defaultMessage: "Fixed amount",
1240
+ description: "Label shown when a price band charges a fixed amount regardless of usage"
1241
+ })), 1)) : createCommentVNode("", true),
1242
+ __props.pricingType === "TOP_TIERED" ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(unref($t)({
1243
+ id: "invoice.line.per_unit",
1244
+ defaultMessage: "Per unit",
1245
+ description: "Label shown when a price band applies per single unit"
1246
+ })), 1)) : createCommentVNode("", true),
1247
+ __props.pricingType === "FLAT" ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(unref($t)({
1248
+ id: "invoice.line.flat_fee",
1249
+ defaultMessage: "Flat fee",
1250
+ description: "Label shown for a flat, usage-independent fee"
1251
+ })), 1)) : createCommentVNode("", true)
1252
+ ], 64)) : createCommentVNode("", true)
1253
+ ], 64))
1254
+ ];
1255
+ }),
1256
+ _: 1
1257
+ })),
1258
+ __props.showTaxPerLineItem ? (openBlock(), createBlock(_sfc_main$h, {
1259
+ key: 2,
1260
+ number: "",
1261
+ class: "align-top"
1262
+ }, {
1263
+ default: withCtx(() => [
1264
+ !__props.hideTaxDetails ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.taxCategories, (taxCategory, taxCategoryIndex) => {
1265
+ return openBlock(), createElementBlock("div", {
1266
+ key: taxCategoryIndex,
1267
+ class: "tabular-nums"
1268
+ }, [
1269
+ createElementVNode("div", null, toDisplayString(taxCategory.percentage) + "%", 1),
1270
+ createElementVNode("div", _hoisted_10$1, [
1271
+ createVNode(_sfc_main$k, {
1272
+ value: taxCategory.tax_amount
1273
+ }, null, 8, ["value"])
1274
+ ])
1275
+ ]);
1276
+ }), 128)) : createCommentVNode("", true)
1277
+ ]),
1278
+ _: 1
1279
+ })) : createCommentVNode("", true),
1280
+ createVNode(_sfc_main$h, {
1281
+ number: "",
1282
+ class: "align-top"
1283
+ }, {
1284
+ default: withCtx(() => {
1285
+ var _a, _b, _c, _d, _e;
1286
+ return [
1287
+ ((_b = (_a = __props.details) == null ? void 0 : _a.amount) == null ? void 0 : _b.currency) && ((_d = (_c = __props.details) == null ? void 0 : _c.amount) == null ? void 0 : _d.quantity) ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
1288
+ __props.showTaxPerLineItem ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.taxCategories, (taxCategory, taxCategoryIndex) => {
1289
+ var _a2;
1290
+ return openBlock(), createElementBlock("div", {
1291
+ key: taxCategoryIndex,
1292
+ class: "inline-block"
1293
+ }, [
1294
+ createElementVNode("div", _hoisted_12$1, [
1295
+ createVNode(_sfc_main$k, {
1296
+ value: __props.details.amount
1297
+ }, null, 8, ["value"]),
1298
+ ((_a2 = __props.details) == null ? void 0 : _a2.pricing_amount.quantity) !== __props.details.amount.quantity ? (openBlock(), createBlock(_sfc_main$n, {
1299
+ key: 0,
1300
+ placement: "top-end"
1301
+ }, {
1302
+ tooltip: withCtx(() => [
1303
+ createVNode(TooltipContent, null, {
1304
+ default: withCtx(() => [
1305
+ createVNode(_sfc_main$o, null, {
1306
+ default: withCtx(() => [
1307
+ createTextVNode(toDisplayString(unref($t)({
1308
+ id: "invoice.line.original_currency",
1309
+ defaultMessage: "Original currency",
1310
+ description: "Original currency"
1311
+ })) + " ", 1),
1312
+ createVNode(_sfc_main$k, {
1313
+ value: __props.details.pricing_amount,
1314
+ class: "font-semibold"
1315
+ }, null, 8, ["value"])
1316
+ ]),
1317
+ _: 1
1318
+ })
1319
+ ]),
1320
+ _: 1
1321
+ })
1322
+ ]),
1323
+ default: withCtx(() => [
1324
+ createVNode(_sfc_main$l, {
1325
+ icon: "info",
1326
+ size: "2xs"
1327
+ })
1328
+ ]),
1329
+ _: 1
1330
+ })) : createCommentVNode("", true)
1331
+ ]),
1332
+ !__props.hideTaxDetails ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
1333
+ __props.amountType === "INCLUDING_TAX" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1334
+ createTextVNode(toDisplayString(unref($t)({
1335
+ id: "invoice.line.excl.tax",
1336
+ defaultMessage: "Excl. tax",
1337
+ description: "Value excludes tax"
1338
+ })) + " ", 1),
1339
+ createVNode(_sfc_main$k, {
1340
+ value: taxCategory.base_amount
1341
+ }, null, 8, ["value"])
1342
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1343
+ createTextVNode(toDisplayString(unref($t)({
1344
+ id: "invoice.line.incl.tax",
1345
+ defaultMessage: "Incl. tax",
1346
+ description: "Value includes tax"
1347
+ })) + " ", 1),
1348
+ createVNode(_sfc_main$k, {
1349
+ value: taxCategory.total_amount
1350
+ }, null, 8, ["value"])
1351
+ ], 64))
1352
+ ])) : createCommentVNode("", true)
1353
+ ]);
1354
+ }), 128)) : (openBlock(), createElementBlock("div", _hoisted_14, [
1355
+ createElementVNode("div", _hoisted_15, [
1356
+ createVNode(_sfc_main$k, {
1357
+ value: __props.details.amount
1358
+ }, null, 8, ["value"]),
1359
+ ((_e = __props.details) == null ? void 0 : _e.pricing_amount.quantity) !== __props.details.amount.quantity ? (openBlock(), createBlock(_sfc_main$n, {
1360
+ key: 0,
1361
+ placement: "top-end"
1362
+ }, {
1363
+ tooltip: withCtx(() => [
1364
+ createVNode(TooltipContent, null, {
1365
+ default: withCtx(() => [
1366
+ createVNode(_sfc_main$o, null, {
1367
+ default: withCtx(() => [
1368
+ createTextVNode(toDisplayString(unref($t)({
1369
+ id: "invoice.line.original_currency",
1370
+ defaultMessage: "Original currency",
1371
+ description: "Original currency"
1372
+ })) + " ", 1),
1373
+ createVNode(_sfc_main$k, {
1374
+ value: __props.details.pricing_amount,
1375
+ class: "font-semibold"
1376
+ }, null, 8, ["value"])
1377
+ ]),
1378
+ _: 1
1379
+ })
1380
+ ]),
1381
+ _: 1
1382
+ })
1383
+ ]),
1384
+ default: withCtx(() => [
1385
+ createVNode(_sfc_main$l, {
1386
+ icon: "info",
1387
+ size: "2xs"
1388
+ })
1389
+ ]),
1390
+ _: 1
1391
+ })) : createCommentVNode("", true)
1392
+ ])
1393
+ ])),
1394
+ renderSlot(_ctx.$slots, "one-off-line-context-menu")
1395
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1396
+ createTextVNode("-")
1397
+ ], 64))
1398
+ ];
1399
+ }),
1400
+ _: 3
1401
+ })
1402
+ ], 64);
1403
+ };
1404
+ }
1405
+ });
1406
+ const _hoisted_1$6 = ["tabindex", "onClick"];
1407
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1408
+ __name: "InvoiceLineGroup",
1409
+ props: {
1410
+ group: {},
1411
+ startDate: {},
1412
+ endDate: {},
1413
+ total: {},
1414
+ amountType: {},
1415
+ invoicePeriodOrder: {},
1416
+ processingOnlyCustomers: {},
1417
+ showTaxPerLineItem: { type: Boolean, default: true }
1418
+ },
1419
+ setup(__props) {
1420
+ const props = __props;
1421
+ const sortedLines = computed(
1422
+ () => {
1423
+ var _a;
1424
+ return (_a = [...props.group.lines ?? []]) == null ? void 0 : _a.sort((a, b) => a.line_order - b.line_order);
1425
+ }
1426
+ );
1427
+ const intl = useIntl();
1428
+ const { getIsOpen, toggle } = useToggleList();
1429
+ const toggleLine = (groupOrder, invoiceLineOrder) => {
1430
+ toggle(formatIndex(groupOrder, invoiceLineOrder));
1431
+ };
1432
+ const formatIndex = (rootIndex, index) => `${rootIndex}-line-${index}`;
1433
+ return (_ctx, _cache) => {
1434
+ return openBlock(), createElementBlock("div", null, [
1435
+ createVNode(InvoiceTable, null, {
1436
+ default: withCtx(() => [
1437
+ createElementVNode("tr", null, [
1438
+ createVNode(_sfc_main$g, {
1439
+ left: "",
1440
+ class: "w-1/5 text-gray-400"
1441
+ }, {
1442
+ default: withCtx(() => [
1443
+ createTextVNode(toDisplayString(unref(intl).$t({
1444
+ id: "invoice.table_header.unit",
1445
+ defaultMessage: "Unit",
1446
+ description: "Table header for the column containing the number of units of invoice groups"
1447
+ })), 1)
1448
+ ]),
1449
+ _: 1
1450
+ }),
1451
+ createVNode(_sfc_main$g, {
1452
+ right: "",
1453
+ class: "w-1/5 text-gray-400"
1454
+ }, {
1455
+ default: withCtx(() => [
1456
+ createTextVNode(toDisplayString(unref(intl).$t({
1457
+ id: "invoice.table_header.quantity",
1458
+ defaultMessage: "Quantity",
1459
+ description: "Table header for quantity column"
1460
+ })), 1)
1461
+ ]),
1462
+ _: 1
1463
+ }),
1464
+ createVNode(_sfc_main$g, {
1465
+ right: "",
1466
+ class: "w-1/5 text-gray-400"
1467
+ }, {
1468
+ default: withCtx(() => [
1469
+ createTextVNode(toDisplayString(unref(intl).$t({
1470
+ id: "invoice.table_header.price",
1471
+ defaultMessage: "Price",
1472
+ description: "Table header for the column containing the number of units of invoice groups"
1473
+ })), 1)
1474
+ ]),
1475
+ _: 1
1476
+ }),
1477
+ __props.showTaxPerLineItem ? (openBlock(), createBlock(_sfc_main$g, {
1478
+ key: 0,
1479
+ right: "",
1480
+ class: "w-1/5 text-gray-400"
1481
+ }, {
1482
+ default: withCtx(() => [
1483
+ createTextVNode(toDisplayString(unref(intl).$t({
1484
+ id: "invoice.table_header.tax_rate",
1485
+ defaultMessage: "Tax rate",
1486
+ description: "Table header for the column containing the tax percentage of invoice groups"
1487
+ })), 1)
1488
+ ]),
1489
+ _: 1
1490
+ })) : createCommentVNode("", true),
1491
+ createVNode(_sfc_main$g, {
1492
+ right: "",
1493
+ class: "w-1/5 text-gray-400"
1494
+ }, {
1495
+ default: withCtx(() => [
1496
+ createTextVNode(toDisplayString(unref(intl).$t({
1497
+ id: "invoice.table_header.sub_total",
1498
+ defaultMessage: "Subtotal",
1499
+ description: "Table header for the column containing the subtotal for invoices"
1500
+ })), 1)
1501
+ ]),
1502
+ _: 1
1503
+ })
1504
+ ]),
1505
+ (openBlock(true), createElementBlock(Fragment, null, renderList(sortedLines.value, (line, i) => {
1506
+ return openBlock(), createElementBlock(Fragment, { key: i }, [
1507
+ createElementVNode("tr", {
1508
+ tabindex: line.sub_lines ? 0 : void 0,
1509
+ class: normalizeClass(["group", { "cursor-pointer": line.sub_lines, "border-t": i !== 0 }]),
1510
+ onClick: ($event) => toggleLine(__props.group.group_order, line["line_order"])
1511
+ }, [
1512
+ (openBlock(), createBlock(_sfc_main$8, {
1513
+ key: i,
1514
+ data: line,
1515
+ "is-first-in-group": i === 0,
1516
+ "period-order": __props.invoicePeriodOrder,
1517
+ "group-order": __props.group.group_order,
1518
+ "is-last": i === sortedLines.value.length - 1,
1519
+ "group-type": __props.group.type,
1520
+ "is-expanded": unref(getIsOpen)(formatIndex(__props.group.group_order, line["line_order"]))
1521
+ }, {
1522
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
1523
+ renderSlot(_ctx.$slots, "invoice-line-prefix", mergeProps({ ref_for: true }, linePrefixProps))
1524
+ ]),
1525
+ "line-content": withCtx((lineContentProps) => {
1526
+ var _a, _b;
1527
+ return [
1528
+ createVNode(_sfc_main$7, {
1529
+ details: lineContentProps.details,
1530
+ "pricing-type": line.pricing_type,
1531
+ "tax-categories": line.tax_categories,
1532
+ "amount-type": __props.amountType,
1533
+ "model-type": (_b = (_a = line.product_items) == null ? void 0 : _a[0]) == null ? void 0 : _b.model_type,
1534
+ "show-tax-per-line-item": __props.showTaxPerLineItem
1535
+ }, createSlots({ _: 2 }, [
1536
+ line.type === "ONE_OFF" ? {
1537
+ name: "one-off-line-context-menu",
1538
+ fn: withCtx((oneOffGroupProps) => [
1539
+ renderSlot(_ctx.$slots, "one-off-line-context-menu", mergeProps({ ref_for: true }, oneOffGroupProps, {
1540
+ lineOrder: line.line_order
1541
+ }))
1542
+ ]),
1543
+ key: "0"
1544
+ } : void 0
1545
+ ]), 1032, ["details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
1546
+ ];
1547
+ }),
1548
+ _: 2
1549
+ }, 1032, ["data", "is-first-in-group", "period-order", "group-order", "is-last", "group-type", "is-expanded"]))
1550
+ ], 10, _hoisted_1$6),
1551
+ createVNode(_sfc_main$f, {
1552
+ ref_for: true,
1553
+ ref: formatIndex(__props.group.group_order, line["line_order"]),
1554
+ "sub-lines": line.sub_lines ?? [],
1555
+ "processing-only-customers": __props.processingOnlyCustomers,
1556
+ "line-order": line["line_order"],
1557
+ "is-open": unref(getIsOpen)(formatIndex(__props.group.group_order, line["line_order"])),
1558
+ "period-order": __props.invoicePeriodOrder,
1559
+ "group-order": __props.group.group_order,
1560
+ "show-tax-per-line-item": __props.showTaxPerLineItem
1561
+ }, {
1562
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
1563
+ renderSlot(_ctx.$slots, "invoice-line-prefix", mergeProps({ ref_for: true }, linePrefixProps))
1564
+ ]),
1565
+ "subline-content": withCtx((sublineContentProps) => {
1566
+ var _a, _b;
1567
+ return [
1568
+ createVNode(_sfc_main$7, {
1569
+ details: sublineContentProps.details,
1570
+ "hide-tax-details": sublineContentProps.hideTaxDetails,
1571
+ "pricing-type": line.pricing_type,
1572
+ "tax-categories": line.tax_categories,
1573
+ "amount-type": __props.amountType,
1574
+ "model-type": (_b = (_a = line.product_items) == null ? void 0 : _a[0]) == null ? void 0 : _b.model_type,
1575
+ "show-tax-per-line-item": __props.showTaxPerLineItem
1576
+ }, null, 8, ["details", "hide-tax-details", "pricing-type", "tax-categories", "amount-type", "model-type", "show-tax-per-line-item"])
1577
+ ];
1578
+ }),
1579
+ _: 2
1580
+ }, 1032, ["sub-lines", "processing-only-customers", "line-order", "is-open", "period-order", "group-order", "show-tax-per-line-item"])
1581
+ ], 64);
1582
+ }), 128))
1583
+ ]),
1584
+ _: 3
1585
+ })
1586
+ ]);
1587
+ };
1588
+ }
1589
+ });
1590
+ const _hoisted_1$5 = { class: "flex items-center" };
1591
+ const _hoisted_2$2 = {
1592
+ key: 2,
1593
+ 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"
1594
+ };
1595
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1596
+ __name: "InvoiceTableRowLabel",
1597
+ props: {
1598
+ label: {},
1599
+ count: {}
1600
+ },
1601
+ setup(__props) {
1602
+ const labelElement = ref();
1603
+ const isLabelCutOff = ref(false);
1604
+ useResizeObserver(labelElement, ([entry]) => {
1605
+ isLabelCutOff.value = entry.target.clientWidth < entry.target.scrollWidth;
1606
+ });
1607
+ return (_ctx, _cache) => {
1608
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
1609
+ isLabelCutOff.value ? (openBlock(), createBlock(_sfc_main$n, {
1610
+ key: 0,
1611
+ placement: "bottom-start",
1612
+ class: "min-w-0 leading-normal"
1613
+ }, {
1614
+ tooltip: withCtx(() => [
1615
+ createVNode(TooltipContent, null, {
1616
+ default: withCtx(() => [
1617
+ createVNode(_sfc_main$o, null, {
1618
+ default: withCtx(() => [
1619
+ createTextVNode(toDisplayString(__props.label), 1)
1620
+ ]),
1621
+ _: 1
1622
+ })
1623
+ ]),
1624
+ _: 1
1625
+ })
1626
+ ]),
1627
+ default: withCtx(() => [
1628
+ createElementVNode("span", {
1629
+ ref_key: "labelElement",
1630
+ ref: labelElement,
1631
+ class: "block truncate"
1632
+ }, toDisplayString(__props.label), 513)
1633
+ ]),
1634
+ _: 1
1635
+ })) : (openBlock(), createElementBlock("span", {
1636
+ key: 1,
1637
+ ref_key: "labelElement",
1638
+ ref: labelElement,
1639
+ class: normalizeClass(["block", { truncate: __props.count !== void 0 }])
1640
+ }, toDisplayString(__props.label), 3)),
1641
+ __props.count !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_2$2, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
1642
+ ]);
1643
+ };
1644
+ }
1645
+ });
1646
+ const _hoisted_1$4 = ["tabindex"];
1647
+ const _hoisted_2$1 = { key: 0 };
1648
+ const _hoisted_3$1 = {
1649
+ colspan: "2",
1650
+ class: "p-0"
1651
+ };
1652
+ const _hoisted_4$1 = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" };
1653
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1654
+ __name: "InvoiceGroupRevenue",
1655
+ props: {
1656
+ forwardedFromCustomers: {},
1657
+ showOriginalCustomerInvoiceLine: {},
1658
+ group: {},
1659
+ expandedItems: {},
1660
+ handleToggleItems: {},
1661
+ formatIndex: {},
1662
+ invoicePeriodOrder: {},
1663
+ groupOrder: {},
1664
+ isExpandable: { type: Boolean },
1665
+ amountType: {},
1666
+ processingOnlyCustomers: {},
1667
+ showTaxPerLineItem: { type: Boolean, default: true }
1668
+ },
1669
+ setup(__props) {
1670
+ const props = __props;
1671
+ const label = computed(() => {
1672
+ var _a, _b, _c;
1673
+ const pricingAndProducts = [
1674
+ (_a = props.group.pricing) == null ? void 0 : _a.name,
1675
+ getComposedString(((_b = props.group.products) == null ? void 0 : _b.map((item) => item.name)) ?? [])
1676
+ ].filter(Boolean).join(" - ");
1677
+ const originalCustomerId = getInvoiceGroupOriginalCustomerId(
1678
+ props.group,
1679
+ !!props.showOriginalCustomerInvoiceLine
1680
+ );
1681
+ if (!originalCustomerId) {
1682
+ return pricingAndProducts;
1683
+ }
1684
+ const originalCustomer = (_c = props.forwardedFromCustomers) == null ? void 0 : _c.find(
1685
+ (customer) => customer.id === originalCustomerId
1686
+ );
1687
+ return [originalCustomer && getCustomerName(originalCustomer), pricingAndProducts].filter(Boolean).join(" - ");
1688
+ });
1689
+ return (_ctx, _cache) => {
1690
+ return openBlock(), createElementBlock(Fragment, null, [
1691
+ createElementVNode("tr", {
1692
+ class: normalizeClass(["border-t", { "cursor-pointer": __props.isExpandable }]),
1693
+ tabindex: __props.isExpandable ? 0 : void 0,
1694
+ onClick: _cache[0] || (_cache[0] = ($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder))),
1695
+ onKeyup: [
1696
+ _cache[1] || (_cache[1] = withKeys(($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)), ["enter"])),
1697
+ _cache[2] || (_cache[2] = withKeys(($event) => __props.handleToggleItems(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)), ["space"]))
1698
+ ]
1699
+ }, [
1700
+ createVNode(_sfc_main$h, { class: "p-0" }, {
1701
+ default: withCtx(() => {
1702
+ var _a;
1703
+ return [
1704
+ __props.isExpandable ? (openBlock(), createBlock(_sfc_main$l, {
1705
+ key: 0,
1706
+ icon: "keyboard_arrow_down",
1707
+ size: "md",
1708
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", {
1709
+ "-rotate-90": !__props.expandedItems.includes(
1710
+ __props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)
1711
+ )
1712
+ }])
1713
+ }, null, 8, ["class"])) : createCommentVNode("", true),
1714
+ createVNode(_sfc_main$5, {
1715
+ label: label.value,
1716
+ count: __props.isExpandable ? ((_a = __props.group.lines) == null ? void 0 : _a.length) ?? 0 : void 0
1717
+ }, null, 8, ["label", "count"])
1718
+ ];
1719
+ }),
1720
+ _: 1
1721
+ }),
1722
+ createVNode(_sfc_main$h, { number: "" }, {
1723
+ default: withCtx(() => [
1724
+ __props.amountType === "INCLUDING_TAX" ? (openBlock(), createBlock(_sfc_main$k, {
1725
+ key: 0,
1726
+ value: __props.group.amount_including_tax
1727
+ }, null, 8, ["value"])) : (openBlock(), createBlock(_sfc_main$k, {
1728
+ key: 1,
1729
+ value: __props.group.amount_excluding_tax
1730
+ }, null, 8, ["value"]))
1731
+ ]),
1732
+ _: 1
1733
+ })
1734
+ ], 42, _hoisted_1$4),
1735
+ __props.expandedItems.includes(__props.formatIndex(__props.invoicePeriodOrder, __props.groupOrder)) ? (openBlock(), createElementBlock("tr", _hoisted_2$1, [
1736
+ createElementVNode("td", _hoisted_3$1, [
1737
+ createElementVNode("div", _hoisted_4$1, [
1738
+ createVNode(_sfc_main$6, {
1739
+ "invoice-period-order": __props.invoicePeriodOrder,
1740
+ "start-date": __props.group.start_at,
1741
+ "end-date": __props.group.end_at,
1742
+ total: __props.group.amount_excluding_tax,
1743
+ group: __props.group,
1744
+ "amount-type": __props.amountType,
1745
+ "processing-only-customers": __props.processingOnlyCustomers,
1746
+ "show-tax-per-line-item": __props.showTaxPerLineItem
1747
+ }, {
1748
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
1749
+ renderSlot(_ctx.$slots, "invoice-line-prefix", normalizeProps(guardReactiveProps(linePrefixProps)))
1750
+ ]),
1751
+ "one-off-line-context-menu": withCtx((oneOffGroupProps) => [
1752
+ renderSlot(_ctx.$slots, "one-off-line-context-menu", mergeProps(oneOffGroupProps, { groupOrder: __props.groupOrder }))
1753
+ ]),
1754
+ _: 3
1755
+ }, 8, ["invoice-period-order", "start-date", "end-date", "total", "group", "amount-type", "processing-only-customers", "show-tax-per-line-item"])
1756
+ ])
1757
+ ])
1758
+ ])) : createCommentVNode("", true)
1759
+ ], 64);
1760
+ };
1761
+ }
1762
+ });
1763
+ function toValue(r) {
1764
+ return typeof r === "function" ? r() : unref(r);
1765
+ }
1766
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
1767
+ function useToggle(initialValue = false, options = {}) {
1768
+ const {
1769
+ truthyValue = true,
1770
+ falsyValue = false
1771
+ } = options;
1772
+ const valueIsRef = isRef(initialValue);
1773
+ const _value = ref(initialValue);
1774
+ function toggle(value) {
1775
+ if (arguments.length) {
1776
+ _value.value = value;
1777
+ return _value.value;
1778
+ } else {
1779
+ const truthy = toValue(truthyValue);
1780
+ _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;
1781
+ return _value.value;
1782
+ }
1783
+ }
1784
+ if (valueIsRef)
1785
+ return toggle;
1786
+ else
1787
+ return [_value, toggle];
1788
+ }
1789
+ const _hoisted_1$3 = {
1790
+ key: 0,
1791
+ totals: "",
1792
+ class: "border-t"
1793
+ };
1794
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1795
+ __name: "InvoiceSummaryTotalExcludingTax",
1796
+ props: {
1797
+ baseAmount: {}
1798
+ },
1799
+ setup(__props) {
1800
+ const intl = useIntl();
1801
+ return (_ctx, _cache) => {
1802
+ return __props.baseAmount ? (openBlock(), createElementBlock("tr", _hoisted_1$3, [
1803
+ createVNode(_sfc_main$h, null, {
1804
+ default: withCtx(() => [
1805
+ createTextVNode(toDisplayString(unref(intl).$t({
1806
+ id: "invoice.table_header.total_excluding_taxes",
1807
+ defaultMessage: "Total excluding taxes",
1808
+ description: "Table row header for the total excluding taxes column in the invoice table"
1809
+ })), 1)
1810
+ ]),
1811
+ _: 1
1812
+ }),
1813
+ createVNode(_sfc_main$h, { number: "" }, {
1814
+ default: withCtx(() => [
1815
+ createVNode(_sfc_main$k, { value: __props.baseAmount }, null, 8, ["value"])
1816
+ ]),
1817
+ _: 1
1818
+ })
1819
+ ])) : createCommentVNode("", true);
1820
+ };
1821
+ }
1822
+ });
1823
+ const _hoisted_1$2 = {
1824
+ key: 0,
1825
+ class: "border-t font-bold"
1826
+ };
1827
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1828
+ __name: "InvoiceSummaryTotalIncludingTax",
1829
+ props: {
1830
+ totalAmount: {},
1831
+ isCustomerFacing: { type: Boolean }
1832
+ },
1833
+ setup(__props) {
1834
+ const intl = useIntl();
1835
+ return (_ctx, _cache) => {
1836
+ return __props.totalAmount ? (openBlock(), createElementBlock("tr", _hoisted_1$2, [
1837
+ createVNode(_sfc_main$h, { class: "font-bold" }, {
1838
+ default: withCtx(() => [
1839
+ createTextVNode(toDisplayString(__props.isCustomerFacing ? unref(intl).$t({
1840
+ id: "invoice.table_header.total_including_taxes_customer_facing",
1841
+ defaultMessage: "Total due today",
1842
+ description: "Table row header for the total including taxes column in the invoice table for a customer facing component"
1843
+ }) : unref(intl).$t({
1844
+ id: "invoice.table_header.total_including_taxes",
1845
+ defaultMessage: "Total including taxes",
1846
+ description: "Table row header for the total including taxes column in the invoice table"
1847
+ })), 1)
1848
+ ]),
1849
+ _: 1
1850
+ }),
1851
+ createVNode(_sfc_main$h, { number: "" }, {
1852
+ default: withCtx(() => [
1853
+ createVNode(_sfc_main$k, { value: __props.totalAmount }, null, 8, ["value"])
1854
+ ]),
1855
+ _: 1
1856
+ })
1857
+ ])) : createCommentVNode("", true);
1858
+ };
1859
+ }
1860
+ });
1861
+ const _hoisted_1$1 = {
1862
+ key: 0,
1863
+ colspan: "4",
1864
+ class: "p-0"
1865
+ };
1866
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1867
+ __name: "InvoiceTaxes",
1868
+ props: {
1869
+ taxCategories: {}
1870
+ },
1871
+ setup(__props) {
1872
+ const intl = useIntl();
1873
+ return (_ctx, _cache) => {
1874
+ return openBlock(), createBlock(InvoiceTable, { class: "table-fixed" }, {
1875
+ default: withCtx(() => [
1876
+ createElementVNode("tr", null, [
1877
+ createVNode(_sfc_main$g, { left: "" }, {
1878
+ default: withCtx(() => [
1879
+ createTextVNode(toDisplayString(unref(intl).$t({
1880
+ id: "invoice.table_header.tax type",
1881
+ defaultMessage: "Tax type",
1882
+ description: "Table header for the column containing the tax type"
1883
+ })), 1)
1884
+ ]),
1885
+ _: 1
1886
+ }),
1887
+ createVNode(_sfc_main$g, { right: "" }, {
1888
+ default: withCtx(() => [
1889
+ createTextVNode(toDisplayString(unref(intl).$t({
1890
+ id: "invoice.table_header.base amount",
1891
+ defaultMessage: "Base amount",
1892
+ description: "Table header for the column containing the base amount"
1893
+ })), 1)
1894
+ ]),
1895
+ _: 1
1896
+ }),
1897
+ createVNode(_sfc_main$g, { right: "" }, {
1898
+ default: withCtx(() => [
1899
+ createTextVNode(toDisplayString(unref(intl).$t({
1900
+ id: "invoice.table_header.tax_percentage",
1901
+ defaultMessage: "Percentage",
1902
+ description: "Table header for the column containing the tax percentage"
1903
+ })), 1)
1904
+ ]),
1905
+ _: 1
1906
+ }),
1907
+ createVNode(_sfc_main$g, { right: "" }, {
1908
+ default: withCtx(() => [
1909
+ createTextVNode(toDisplayString(unref(intl).$t({
1910
+ id: "invoice.table_header.tax amount",
1911
+ defaultMessage: "Tax amount",
1912
+ description: "Table header for the column containing the tax amount"
1913
+ })), 1)
1914
+ ]),
1915
+ _: 1
1916
+ })
1917
+ ]),
1918
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.taxCategories, (taxCategory, taxCategoryIndex) => {
1919
+ return openBlock(), createElementBlock("tr", { key: taxCategoryIndex }, [
1920
+ taxCategory.rates ? (openBlock(), createElementBlock("td", _hoisted_1$1, [
1921
+ createVNode(InvoiceTable, { class: "table-fixed" }, {
1922
+ default: withCtx(() => [
1923
+ (openBlock(true), createElementBlock(Fragment, null, renderList(taxCategory.rates, (rate, rateIndex) => {
1924
+ return openBlock(), createElementBlock("tr", { key: rateIndex }, [
1925
+ createVNode(_sfc_main$h, null, {
1926
+ default: withCtx(() => [
1927
+ createTextVNode(toDisplayString(rate.name) + " (" + toDisplayString(taxCategory.category) + ") ", 1)
1928
+ ]),
1929
+ _: 2
1930
+ }, 1024),
1931
+ createVNode(_sfc_main$h, { number: "" }, {
1932
+ default: withCtx(() => [
1933
+ createVNode(_sfc_main$k, {
1934
+ value: taxCategory.base_amount
1935
+ }, null, 8, ["value"])
1936
+ ]),
1937
+ _: 2
1938
+ }, 1024),
1939
+ createVNode(_sfc_main$h, { number: "" }, {
1940
+ default: withCtx(() => [
1941
+ createTextVNode(toDisplayString(rate.percentage) + "%", 1)
1942
+ ]),
1943
+ _: 2
1944
+ }, 1024),
1945
+ createVNode(_sfc_main$h, { number: "" }, {
1946
+ default: withCtx(() => [
1947
+ createVNode(_sfc_main$k, {
1948
+ value: rate.tax_amount
1949
+ }, null, 8, ["value"])
1950
+ ]),
1951
+ _: 2
1952
+ }, 1024)
1953
+ ]);
1954
+ }), 128))
1955
+ ]),
1956
+ _: 2
1957
+ }, 1024)
1958
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1959
+ createVNode(_sfc_main$h, null, {
1960
+ default: withCtx(() => [
1961
+ createTextVNode(toDisplayString(taxCategory.name) + " (" + toDisplayString(taxCategory.category) + ") ", 1)
1962
+ ]),
1963
+ _: 2
1964
+ }, 1024),
1965
+ createVNode(_sfc_main$h, { number: "" }, {
1966
+ default: withCtx(() => [
1967
+ createVNode(_sfc_main$k, {
1968
+ value: taxCategory.base_amount
1969
+ }, null, 8, ["value"])
1970
+ ]),
1971
+ _: 2
1972
+ }, 1024),
1973
+ createVNode(_sfc_main$h, { number: "" }, {
1974
+ default: withCtx(() => [
1975
+ createTextVNode(toDisplayString(taxCategory.percentage) + "%", 1)
1976
+ ]),
1977
+ _: 2
1978
+ }, 1024),
1979
+ createVNode(_sfc_main$h, { number: "" }, {
1980
+ default: withCtx(() => [
1981
+ createVNode(_sfc_main$k, {
1982
+ value: taxCategory.tax_amount
1983
+ }, null, 8, ["value"])
1984
+ ]),
1985
+ _: 2
1986
+ }, 1024)
1987
+ ], 64))
1988
+ ]);
1989
+ }), 128))
1990
+ ]),
1991
+ _: 1
1992
+ });
1993
+ };
1994
+ }
1995
+ });
1996
+ const _hoisted_1 = { class: "flex items-start justify-between" };
1997
+ const _hoisted_2 = {
1998
+ key: 0,
1999
+ class: "max-h-9"
2000
+ };
2001
+ const _hoisted_3 = { class: "flex flex-col gap-2" };
2002
+ const _hoisted_4 = { key: 0 };
2003
+ const _hoisted_5 = ["tabindex"];
2004
+ const _hoisted_6 = { key: 3 };
2005
+ const _hoisted_7 = {
2006
+ colspan: "2",
2007
+ class: "p-0"
2008
+ };
2009
+ const _hoisted_8 = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" };
2010
+ const _hoisted_9 = ["tabindex", "onClick", "onKeyup"];
2011
+ const _hoisted_10 = { key: 0 };
2012
+ const _hoisted_11 = {
2013
+ colspan: "2",
2014
+ class: "p-0"
2015
+ };
2016
+ const _hoisted_12 = { class: "-mx-9 bg-gray-50 px-9 py-3 text-xs" };
2017
+ const _hoisted_13 = {
2018
+ key: 0,
2019
+ class: "border-t font-bold"
2020
+ };
2021
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2022
+ __name: "InvoiceSummary",
2023
+ props: {
2024
+ invoice: {},
2025
+ isExpandable: { type: Boolean, default: false },
2026
+ isInvoiceLineCreatable: { type: Boolean, default: false },
2027
+ isNoteCreatable: { type: Boolean, default: false },
2028
+ showRenderedServicesHeader: { type: Boolean, default: true },
2029
+ isCustomerFacing: { type: Boolean }
2030
+ },
2031
+ emits: ["add-invoice-line", "add-note"],
2032
+ setup(__props, { emit: __emit }) {
2033
+ const intl = useIntl();
2034
+ const { formatMessage } = intl;
2035
+ const emit = __emit;
2036
+ const props = __props;
2037
+ const [expandedItems, toggleItems] = useSimpleToggleList();
2038
+ const [expandedDeductions, toggleDeductions] = useSimpleToggleList();
2039
+ const [expandedTaxes, toggleTaxes] = useToggle();
2040
+ const handleToggleItems = (...params) => {
2041
+ if (!props.isExpandable) return;
2042
+ toggleItems(...params);
2043
+ };
2044
+ const handleToggleDeductions = (index) => {
2045
+ if (!props.isExpandable) return;
2046
+ toggleDeductions(index);
2047
+ };
2048
+ const handleToggleTaxes = () => {
2049
+ if (!props.invoice.tax_categories || !props.isExpandable) return;
2050
+ toggleTaxes();
2051
+ };
2052
+ const formatIndex = (rootIndex, itemIndex) => +`${rootIndex}${itemIndex}`;
2053
+ const getTitle = (invoicePeriod) => {
2054
+ return intl.$t(
2055
+ {
2056
+ id: "invoice.service_period_heading",
2057
+ defaultMessage: "Service period - {start_at} - {end_at}",
2058
+ description: "Heading for rendered services where {start_at} is replaced for the start date and {end_at} for the end date in invoice summary"
2059
+ },
2060
+ {
2061
+ start_at: intl.formatDate({
2062
+ date: invoicePeriod.start_at,
2063
+ format: "date",
2064
+ timezone: formatTimezone(props.invoice.customer.timezone),
2065
+ offsetType: "offsetted"
2066
+ }),
2067
+ end_at: intl.formatDate({
2068
+ date: invoicePeriod.end_at,
2069
+ format: "date",
2070
+ timezone: formatTimezone(props.invoice.customer.timezone),
2071
+ offsetType: "offsetted"
2072
+ })
2073
+ }
2074
+ );
2075
+ };
2076
+ const getTableHeading = (invoiceGroupType) => {
2077
+ switch (invoiceGroupType) {
2078
+ case "PRICING":
2079
+ case "REVENUE": {
2080
+ return intl.$t({
2081
+ id: "invoice.table_heading.products",
2082
+ defaultMessage: "Products",
2083
+ description: "Table heading for the column containing the products of the invoice"
2084
+ });
2085
+ }
2086
+ case "COMMITMENT":
2087
+ return intl.$t({
2088
+ id: "invoice.table_heading.commitments",
2089
+ defaultMessage: "Commitments",
2090
+ description: "Table heading for the column containing the commitments of the invoice"
2091
+ });
2092
+ case "DISCOUNT":
2093
+ return intl.$t({
2094
+ id: "invoice.table_heading.discounts",
2095
+ defaultMessage: "Discounts",
2096
+ description: "Table heading for the column containing the discounts of the invoice"
2097
+ });
2098
+ case "MARKUP":
2099
+ return intl.$t({
2100
+ id: "invoice.table_heading.markups",
2101
+ defaultMessage: "Markups",
2102
+ description: "Table heading for the column containing the markups of the invoice"
2103
+ });
2104
+ case "ONE_OFF":
2105
+ return intl.$t({
2106
+ id: "invoice.table_heading.one_offs",
2107
+ defaultMessage: "One-off's",
2108
+ description: "Table heading for the column containing the one-offs of the invoice"
2109
+ });
2110
+ }
2111
+ };
2112
+ const getDeductionLabel = (group) => {
2113
+ var _a, _b;
2114
+ if ((_a = group.products) == null ? void 0 : _a.length) {
2115
+ return [(_b = group.pricing) == null ? void 0 : _b.name, getComposedString(group.products.map((item) => item.name))].filter(Boolean).join(" - ");
2116
+ }
2117
+ return group.description ?? "";
2118
+ };
2119
+ const getInvoiceGroupsByType = (invoicePeriod) => {
2120
+ return invoicePeriod.groups.reduce(
2121
+ (acc, invoiceGroup) => {
2122
+ if (!(invoiceGroup.type in acc)) {
2123
+ return { ...acc, [invoiceGroup.type]: [invoiceGroup] };
2124
+ }
2125
+ return {
2126
+ ...acc,
2127
+ [invoiceGroup.type]: [...acc[invoiceGroup.type], invoiceGroup]
2128
+ };
2129
+ },
2130
+ {}
2131
+ );
2132
+ };
2133
+ const addInvoiceContextMenuItems = computed(() => {
2134
+ const result = [];
2135
+ const showInvoiceLineAddButton = ["ONE_OFF", "STANDARD", "ONE_OFF_CREDIT"].includes(props.invoice.type) && ["DRAFT", "OPEN"].includes(props.invoice.status) && props.isInvoiceLineCreatable;
2136
+ if (showInvoiceLineAddButton) {
2137
+ result.push({
2138
+ label: formatMessage({
2139
+ defaultMessage: "Invoice line",
2140
+ id: "JlhdD2",
2141
+ description: "Label for adding an invoice line"
2142
+ }),
2143
+ onClick: () => emit("add-invoice-line")
2144
+ });
2145
+ }
2146
+ if (props.isNoteCreatable) {
2147
+ result.push({
2148
+ label: formatMessage({
2149
+ defaultMessage: "Note",
2150
+ id: "jB8+k/",
2151
+ description: "Label for adding a note to an invoice"
2152
+ }),
2153
+ onClick: () => emit("add-note")
2154
+ });
2155
+ }
2156
+ return result;
2157
+ });
2158
+ const showTaxPerLineItem = computed(() => props.invoice.show_tax_per_line_item !== false);
2159
+ return (_ctx, _cache) => {
2160
+ var _a;
2161
+ return openBlock(), createElementBlock("div", null, [
2162
+ createElementVNode("div", _hoisted_1, [
2163
+ _ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_2, [
2164
+ renderSlot(_ctx.$slots, "logo")
2165
+ ])) : (openBlock(), createBlock(_sfc_main$p, {
2166
+ key: 1,
2167
+ title: unref(intl).$t({
2168
+ id: "invoice.title",
2169
+ defaultMessage: "Details",
2170
+ description: "Title for the invoice summary"
2171
+ }),
2172
+ variant: "neutral",
2173
+ icon: "draft"
2174
+ }, null, 8, ["title"])),
2175
+ _ctx.$slots.intro ? renderSlot(_ctx.$slots, "intro", {}, void 0, void 0, 2) : createCommentVNode("", true),
2176
+ createElementVNode("div", _hoisted_3, [
2177
+ ((_a = addInvoiceContextMenuItems.value) == null ? void 0 : _a.length) ? (openBlock(), createBlock(unref(_sfc_main$q), {
2178
+ key: 0,
2179
+ items: addInvoiceContextMenuItems.value,
2180
+ width: "auto"
2181
+ }, {
2182
+ trigger: withCtx(() => [
2183
+ createVNode(unref(_sfc_main$r), {
2184
+ "icon-prefix": "add",
2185
+ size: "sm",
2186
+ variant: "outline",
2187
+ color: "gray"
2188
+ }, {
2189
+ default: withCtx(() => [
2190
+ createTextVNode(toDisplayString(unref(formatMessage)({
2191
+ defaultMessage: "Add",
2192
+ id: "YnK/yF",
2193
+ description: "Label for adding an item to an invoice"
2194
+ })), 1)
2195
+ ]),
2196
+ _: 1
2197
+ })
2198
+ ]),
2199
+ _: 1
2200
+ }, 8, ["items"])) : createCommentVNode("", true),
2201
+ renderSlot(_ctx.$slots, "child-customers-selector")
2202
+ ])
2203
+ ]),
2204
+ _ctx.$slots.total ? renderSlot(_ctx.$slots, "total", {}, void 0, void 0, 0) : createCommentVNode("", true),
2205
+ renderSlot(_ctx.$slots, "notes"),
2206
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.invoice.periods, (invoicePeriod, invoicePeriodIndex) => {
2207
+ return openBlock(), createElementBlock(Fragment, { key: invoicePeriodIndex }, [
2208
+ __props.showRenderedServicesHeader ? (openBlock(), createBlock(_sfc_main$s, {
2209
+ key: 0,
2210
+ class: "mt-6"
2211
+ }, {
2212
+ default: withCtx(() => [
2213
+ createVNode(_sfc_main$t, {
2214
+ tag: "h2",
2215
+ variant: "caps-heading"
2216
+ }, {
2217
+ default: withCtx(() => [
2218
+ createTextVNode(toDisplayString(getTitle(invoicePeriod)), 1)
2219
+ ]),
2220
+ _: 2
2221
+ }, 1024)
2222
+ ]),
2223
+ _: 2
2224
+ }, 1024)) : createCommentVNode("", true),
2225
+ invoicePeriod.groups ? (openBlock(), createBlock(InvoiceTable, {
2226
+ key: 1,
2227
+ class: normalizeClass({ "mt-3": __props.showRenderedServicesHeader })
2228
+ }, {
2229
+ default: withCtx(() => [
2230
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(
2231
+ getInvoiceGroupsByType(invoicePeriod)
2232
+ ), ([groupType, groups], index) => {
2233
+ return openBlock(), createElementBlock(Fragment, { key: groupType }, [
2234
+ index > 0 ? (openBlock(), createElementBlock("tr", _hoisted_4, [..._cache[0] || (_cache[0] = [
2235
+ createElementVNode("td", null, [
2236
+ createElementVNode("div", { class: "h-4" })
2237
+ ], -1)
2238
+ ])])) : createCommentVNode("", true),
2239
+ createElementVNode("tr", null, [
2240
+ createVNode(_sfc_main$g, {
2241
+ left: "",
2242
+ class: "text-gray-600"
2243
+ }, {
2244
+ default: withCtx(() => [
2245
+ createTextVNode(toDisplayString(getTableHeading(groupType)), 1)
2246
+ ]),
2247
+ _: 2
2248
+ }, 1024),
2249
+ createVNode(_sfc_main$g, {
2250
+ right: "",
2251
+ class: "text-gray-600"
2252
+ }, {
2253
+ default: withCtx(() => [
2254
+ createTextVNode(toDisplayString(unref(intl).$t({
2255
+ id: "invoice.amount_table_heading",
2256
+ defaultMessage: "Amount",
2257
+ description: "Table heading for the amount column in the invoice table"
2258
+ })), 1)
2259
+ ]),
2260
+ _: 1
2261
+ })
2262
+ ]),
2263
+ (openBlock(true), createElementBlock(Fragment, null, renderList(groups, (group, groupIndex) => {
2264
+ return openBlock(), createElementBlock(Fragment, { key: groupIndex }, [
2265
+ groupType === "REVENUE" || groupType === "PRICING" || groupType === "ONE_OFF" ? (openBlock(), createBlock(_sfc_main$4, {
2266
+ key: 0,
2267
+ group,
2268
+ "expanded-items": unref(expandedItems),
2269
+ "handle-toggle-items": handleToggleItems,
2270
+ "is-expandable": __props.isExpandable,
2271
+ "format-index": formatIndex,
2272
+ "invoice-period-order": invoicePeriod.period_order,
2273
+ "group-order": group.group_order,
2274
+ "amount-type": __props.invoice.pricing_amount_type,
2275
+ "processing-only-customers": __props.invoice.processing_only_customers,
2276
+ "show-tax-per-line-item": showTaxPerLineItem.value,
2277
+ "forwarded-from-customers": __props.invoice.forwarded_from_customers,
2278
+ "show-original-customer-invoice-line": __props.invoice.show_original_customer_invoice_line
2279
+ }, {
2280
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
2281
+ renderSlot(_ctx.$slots, "invoice-line-prefix", mergeProps({ ref_for: true }, linePrefixProps))
2282
+ ]),
2283
+ "one-off-line-context-menu": withCtx((oneOffGroupProps) => [
2284
+ renderSlot(_ctx.$slots, "one-off-line-context-menu", mergeProps({ ref_for: true }, oneOffGroupProps, {
2285
+ periodOrder: invoicePeriod.period_order
2286
+ }))
2287
+ ]),
2288
+ _: 2
2289
+ }, 1032, ["group", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "amount-type", "processing-only-customers", "show-tax-per-line-item", "forwarded-from-customers", "show-original-customer-invoice-line"])) : groupType === "DISCOUNT" || groupType === "MARKUP" ? (openBlock(), createBlock(_sfc_main$b, {
2290
+ key: 1,
2291
+ group,
2292
+ "expanded-items": unref(expandedItems),
2293
+ "handle-toggle-items": handleToggleItems,
2294
+ "is-expandable": __props.isExpandable,
2295
+ "format-index": formatIndex,
2296
+ "invoice-period-order": invoicePeriod.period_order,
2297
+ "group-order": group.group_order,
2298
+ "amount-type": __props.invoice.pricing_amount_type,
2299
+ heading: groupType === "DISCOUNT" ? unref(intl).$t({
2300
+ id: "invoice.discounts_table_heading",
2301
+ defaultMessage: "Discounts",
2302
+ description: "Heading for discounts in the invoice table"
2303
+ }) : unref(intl).$t({
2304
+ id: "invoice.markups_table_heading",
2305
+ defaultMessage: "Markups",
2306
+ description: "Heading for markups in the invoice table"
2307
+ })
2308
+ }, {
2309
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
2310
+ renderSlot(_ctx.$slots, "invoice-line-prefix", mergeProps({ ref_for: true }, linePrefixProps))
2311
+ ]),
2312
+ _: 3
2313
+ }, 8, ["group", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "amount-type", "heading"])) : groupType === "COMMITMENT" ? (openBlock(), createBlock(_sfc_main$c, {
2314
+ key: 2,
2315
+ group,
2316
+ "expanded-items": unref(expandedItems),
2317
+ "handle-toggle-items": handleToggleItems,
2318
+ "is-expandable": __props.isExpandable,
2319
+ "format-index": formatIndex,
2320
+ "invoice-period-order": invoicePeriod.period_order,
2321
+ "group-order": group.group_order,
2322
+ "amount-type": __props.invoice.pricing_amount_type
2323
+ }, {
2324
+ "invoice-line-prefix": withCtx((linePrefixProps) => [
2325
+ renderSlot(_ctx.$slots, "invoice-line-prefix", mergeProps({ ref_for: true }, linePrefixProps))
2326
+ ]),
2327
+ _: 3
2328
+ }, 8, ["group", "expanded-items", "is-expandable", "invoice-period-order", "group-order", "amount-type"])) : createCommentVNode("", true)
2329
+ ], 64);
2330
+ }), 128))
2331
+ ], 64);
2332
+ }), 128))
2333
+ ]),
2334
+ _: 2
2335
+ }, 1032, ["class"])) : createCommentVNode("", true)
2336
+ ], 64);
2337
+ }), 128)),
2338
+ __props.invoice.tax_summary ? (openBlock(), createBlock(InvoiceTable, {
2339
+ key: 1,
2340
+ class: "mt-6"
2341
+ }, {
2342
+ default: withCtx(() => [
2343
+ createElementVNode("tr", null, [
2344
+ createVNode(_sfc_main$g, {
2345
+ left: "",
2346
+ class: "text-gray-600"
2347
+ }, {
2348
+ default: withCtx(() => [
2349
+ createTextVNode(toDisplayString(unref(intl).$t({
2350
+ id: "invoice.totals_table_heading",
2351
+ defaultMessage: "Totals",
2352
+ description: "Table heading for the totals column in the invoice table"
2353
+ })), 1)
2354
+ ]),
2355
+ _: 1
2356
+ }),
2357
+ createVNode(_sfc_main$g, {
2358
+ right: "",
2359
+ class: "text-gray-600"
2360
+ }, {
2361
+ default: withCtx(() => [
2362
+ createTextVNode(toDisplayString(unref(intl).$t({
2363
+ id: "invoice.amount_table_heading",
2364
+ defaultMessage: "Amount",
2365
+ description: "Table heading for the amount column in the invoice table"
2366
+ })), 1)
2367
+ ]),
2368
+ _: 1
2369
+ })
2370
+ ]),
2371
+ __props.invoice.pricing_amount_type === "INCLUDING_TAX" ? (openBlock(), createBlock(_sfc_main$2, {
2372
+ key: 0,
2373
+ "total-amount": __props.invoice.tax_summary.total_amount,
2374
+ "is-customer-facing": __props.isCustomerFacing
2375
+ }, null, 8, ["total-amount", "is-customer-facing"])) : (openBlock(), createBlock(_sfc_main$3, {
2376
+ key: 1,
2377
+ "base-amount": __props.invoice.tax_summary.base_amount
2378
+ }, null, 8, ["base-amount"])),
2379
+ __props.invoice.tax_summary.tax_amount ? (openBlock(), createElementBlock("tr", {
2380
+ key: 2,
2381
+ class: normalizeClass([{ "cursor-pointer": __props.invoice.tax_categories && __props.isExpandable }, "border-t"]),
2382
+ tabindex: __props.isExpandable ? 0 : void 0,
2383
+ onClick: handleToggleTaxes,
2384
+ onKeyup: [
2385
+ withKeys(handleToggleTaxes, ["enter"]),
2386
+ withKeys(handleToggleTaxes, ["space"])
2387
+ ]
2388
+ }, [
2389
+ createVNode(_sfc_main$h, null, {
2390
+ default: withCtx(() => [
2391
+ __props.isExpandable && __props.invoice.tax_categories && __props.invoice.tax_categories.length ? (openBlock(), createBlock(_sfc_main$l, {
2392
+ key: 0,
2393
+ icon: "keyboard_arrow_down",
2394
+ size: "md",
2395
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", { "-rotate-90": !unref(expandedTaxes) }])
2396
+ }, null, 8, ["class"])) : createCommentVNode("", true),
2397
+ createVNode(_sfc_main$5, {
2398
+ label: unref(intl).$t({
2399
+ id: "invoice.taxes_table_heading",
2400
+ defaultMessage: "Taxes",
2401
+ description: "Table heading for the taxes column in the invoice table"
2402
+ }),
2403
+ count: __props.isExpandable && __props.invoice.tax_categories ? __props.invoice.tax_categories.length : void 0
2404
+ }, null, 8, ["label", "count"])
2405
+ ]),
2406
+ _: 1
2407
+ }),
2408
+ createVNode(_sfc_main$h, { number: "" }, {
2409
+ default: withCtx(() => [
2410
+ createVNode(_sfc_main$k, {
2411
+ value: __props.invoice.tax_summary.tax_amount
2412
+ }, null, 8, ["value"])
2413
+ ]),
2414
+ _: 1
2415
+ })
2416
+ ], 42, _hoisted_5)) : createCommentVNode("", true),
2417
+ unref(expandedTaxes) && __props.invoice.tax_categories ? (openBlock(), createElementBlock("tr", _hoisted_6, [
2418
+ createElementVNode("td", _hoisted_7, [
2419
+ createElementVNode("div", _hoisted_8, [
2420
+ createVNode(_sfc_main$1, {
2421
+ "tax-categories": __props.invoice.tax_categories
2422
+ }, null, 8, ["tax-categories"])
2423
+ ])
2424
+ ])
2425
+ ])) : createCommentVNode("", true),
2426
+ __props.invoice.pricing_amount_type === "INCLUDING_TAX" ? (openBlock(), createBlock(_sfc_main$3, {
2427
+ key: 4,
2428
+ "base-amount": __props.invoice.tax_summary.base_amount
2429
+ }, null, 8, ["base-amount"])) : (openBlock(), createBlock(_sfc_main$2, {
2430
+ key: 5,
2431
+ "total-amount": __props.invoice.tax_summary.total_amount
2432
+ }, null, 8, ["total-amount"]))
2433
+ ]),
2434
+ _: 1
2435
+ })) : createCommentVNode("", true),
2436
+ !unref(isEmpty)(__props.invoice.closed_periods) ? (openBlock(), createBlock(InvoiceTable, {
2437
+ key: 2,
2438
+ class: "mt-6"
2439
+ }, {
2440
+ default: withCtx(() => [
2441
+ createElementVNode("tr", null, [
2442
+ createVNode(_sfc_main$g, {
2443
+ left: "",
2444
+ class: "text-gray-600"
2445
+ }, {
2446
+ default: withCtx(() => [
2447
+ createTextVNode(toDisplayString(unref(intl).$t({
2448
+ id: "invoice.already_deducted_table_heading",
2449
+ defaultMessage: "Already deducted",
2450
+ description: "Table heading for the already deducted rows in the invoice table"
2451
+ })), 1)
2452
+ ]),
2453
+ _: 1
2454
+ })
2455
+ ]),
2456
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.invoice.closed_periods, (rootGroup, rootGroupIndex) => {
2457
+ return openBlock(), createElementBlock(Fragment, { key: rootGroupIndex }, [
2458
+ (openBlock(true), createElementBlock(Fragment, null, renderList(rootGroup.groups, (group, groupIndex) => {
2459
+ return openBlock(), createElementBlock(Fragment, { key: groupIndex }, [
2460
+ createElementVNode("tr", {
2461
+ class: normalizeClass(["border-t", { "pt-6": rootGroupIndex === 0, "cursor-pointer": __props.isExpandable }]),
2462
+ tabindex: __props.isExpandable ? 0 : void 0,
2463
+ onClick: ($event) => handleToggleDeductions(formatIndex(rootGroupIndex, groupIndex)),
2464
+ onKeyup: [
2465
+ withKeys(($event) => handleToggleDeductions(formatIndex(rootGroupIndex, groupIndex)), ["enter"]),
2466
+ withKeys(($event) => handleToggleDeductions(formatIndex(rootGroupIndex, groupIndex)), ["space"])
2467
+ ]
2468
+ }, [
2469
+ createVNode(_sfc_main$h, { class: "p-0" }, {
2470
+ default: withCtx(() => {
2471
+ var _a2;
2472
+ return [
2473
+ __props.isExpandable ? (openBlock(), createBlock(_sfc_main$l, {
2474
+ key: 0,
2475
+ icon: "keyboard_arrow_down",
2476
+ size: "md",
2477
+ class: normalizeClass(["absolute -translate-x-7 text-slate-400", {
2478
+ "-rotate-90": !unref(expandedDeductions).includes(
2479
+ formatIndex(rootGroupIndex, groupIndex)
2480
+ )
2481
+ }])
2482
+ }, null, 8, ["class"])) : createCommentVNode("", true),
2483
+ createVNode(_sfc_main$5, {
2484
+ label: getDeductionLabel(group),
2485
+ count: __props.isExpandable ? ((_a2 = group.lines) == null ? void 0 : _a2.length) ?? 0 : void 0
2486
+ }, null, 8, ["label", "count"])
2487
+ ];
2488
+ }),
2489
+ _: 2
2490
+ }, 1024),
2491
+ createVNode(_sfc_main$h, { number: "" }, {
2492
+ default: withCtx(() => [
2493
+ createVNode(_sfc_main$k, {
2494
+ value: group.amount_excluding_tax
2495
+ }, null, 8, ["value"])
2496
+ ]),
2497
+ _: 2
2498
+ }, 1024)
2499
+ ], 42, _hoisted_9),
2500
+ unref(expandedDeductions).includes(formatIndex(rootGroupIndex, groupIndex)) ? (openBlock(), createElementBlock("tr", _hoisted_10, [
2501
+ createElementVNode("td", _hoisted_11, [
2502
+ createElementVNode("div", _hoisted_12, [
2503
+ createVNode(_sfc_main$6, {
2504
+ "start-date": group.start_at,
2505
+ "end-date": group.end_at,
2506
+ total: group.amount_excluding_tax,
2507
+ group,
2508
+ "amount-type": __props.invoice.pricing_amount_type,
2509
+ "show-tax-per-line-item": showTaxPerLineItem.value
2510
+ }, {
2511
+ "one-off-line-context-menu": withCtx((oneOffGroupProps) => [
2512
+ renderSlot(_ctx.$slots, "one-off-line-context-menu", mergeProps({ ref_for: true }, oneOffGroupProps, {
2513
+ groupOrder: group.group_order,
2514
+ periodOrder: rootGroup.period_order
2515
+ }))
2516
+ ]),
2517
+ _: 2
2518
+ }, 1032, ["start-date", "end-date", "total", "group", "amount-type", "show-tax-per-line-item"])
2519
+ ])
2520
+ ])
2521
+ ])) : createCommentVNode("", true)
2522
+ ], 64);
2523
+ }), 128))
2524
+ ], 64);
2525
+ }), 128)),
2526
+ __props.invoice.open_invoice_amount && !__props.invoice.paid ? (openBlock(), createElementBlock("tr", _hoisted_13, [
2527
+ createVNode(_sfc_main$h, { class: "font-bold" }, {
2528
+ default: withCtx(() => [
2529
+ createTextVNode(toDisplayString(unref(intl).$t({
2530
+ id: "invoice.amount_due_table_heading",
2531
+ defaultMessage: "Amount due",
2532
+ description: "Table heading for the amount due row in the invoice table"
2533
+ })), 1)
2534
+ ]),
2535
+ _: 1
2536
+ }),
2537
+ createVNode(_sfc_main$h, { number: "" }, {
2538
+ default: withCtx(() => [
2539
+ createVNode(_sfc_main$k, {
2540
+ value: __props.invoice.open_invoice_amount
2541
+ }, null, 8, ["value"])
2542
+ ]),
2543
+ _: 1
2544
+ })
2545
+ ])) : createCommentVNode("", true)
2546
+ ]),
2547
+ _: 3
2548
+ })) : createCommentVNode("", true)
2549
+ ]);
2550
+ };
2551
+ }
2552
+ });
2553
+ export {
2554
+ InvoiceTable as I,
2555
+ _sfc_main as _,
2556
+ _sfc_main$g as a,
2557
+ _sfc_main$h as b
2558
+ };