@solvimon/solvimon-web 0.1.0-alpha.3 → 0.1.0-alpha.30

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