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

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