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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (610) hide show
  1. package/README.md +70 -31
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +1 -0
  3. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs} +6 -3
  4. package/dist/Amount.vue.es-CRG-6dps.mjs +23 -0
  5. package/dist/Amount.vue.es-CeW8S7kT.js +1 -0
  6. package/dist/Avatar.vue.es-ClUBm_l5.js +1 -0
  7. package/dist/Avatar.vue.es-DJp6NEU_.mjs +91 -0
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BWnZ98RQ.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs} +15 -7
  9. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js +1 -0
  10. package/dist/Button.vue.es-BrWHdiEA.mjs +453 -0
  11. package/dist/Button.vue.es-aLcIdATK.js +1 -0
  12. package/dist/Chip.vue.es-DPGTweAr.mjs +164 -0
  13. package/dist/Chip.vue.es-q4c-DXXl.js +1 -0
  14. package/dist/Comparators.vue.es-CU32AC4n.mjs +120 -0
  15. package/dist/Comparators.vue.es-CfVGYJ_x.js +1 -0
  16. package/dist/ContextMenu.vue.es-BBPFQfqY.mjs +681 -0
  17. package/dist/ContextMenu.vue.es-C_TL7-kg.js +1 -0
  18. package/dist/CustomerBillingInformation.vue.es-CLmXk5B9.mjs +175 -0
  19. package/dist/CustomerBillingInformation.vue.es-s-LYXA4T.js +1 -0
  20. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
  21. package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
  22. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-D7gL7dZX.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs} +17 -10
  23. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +1 -0
  24. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +1 -0
  25. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-OUg4yv7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs} +823 -216
  26. package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
  27. package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
  28. package/dist/DividerText.vue.es-D5ieOE1e.js +1 -0
  29. package/dist/DividerText.vue.es-DMg-DNgi.mjs +72 -0
  30. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js +1 -0
  31. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs +562 -0
  32. package/dist/ErrorNotification.vue.es-BX3khKFc.js +1 -0
  33. package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +30 -0
  34. package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
  35. package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
  36. package/dist/FormMessage.vue.es-DFQXxiSC.mjs +46 -0
  37. package/dist/FormMessage.vue.es-LeWoj774.js +1 -0
  38. package/dist/IconButton.vue.es-CVFn0Ntj.js +1 -0
  39. package/dist/IconButton.vue.es-DcC4f5EQ.mjs +231 -0
  40. package/dist/IconTitle.vue.es-DoN4GVde.js +1 -0
  41. package/dist/IconTitle.vue.es-mQCMxc64.mjs +105 -0
  42. package/dist/Input.vue.es-C8VhMKuI.js +1 -0
  43. package/dist/Input.vue.es-Dp_RH03h.mjs +239 -0
  44. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-DbY35gE_.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs} +2 -1
  45. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js +1 -0
  46. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js +1 -0
  47. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs +49 -0
  48. package/dist/InvoiceSummary.vue.es-emE-mCFh.js +1 -0
  49. package/dist/InvoiceSummary.vue.es-nCYeQ4tj.mjs +2558 -0
  50. package/dist/Modal.vue.es-5EpA4Q0t.mjs +367 -0
  51. package/dist/Modal.vue.es-CX5geho3.js +1 -0
  52. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +1 -0
  53. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-DBMgilG2.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs} +4 -2
  54. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CupZFJSF.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs} +3 -1
  55. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js +1 -0
  56. package/dist/{PaymentHistoryBlock-Bxr8lUGs.mjs → PaymentHistoryBlock-Dejtgyos.mjs} +1 -1
  57. package/dist/{PaymentHistoryBlock-COjIVYX4.js → PaymentHistoryBlock-RBxlC5xt.js} +1 -1
  58. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +1 -0
  59. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-CDjGab5p.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs} +5 -1
  60. package/dist/{PaymentIntegrationForm-BSauhuKv.js → PaymentIntegrationForm-BWr7iyU6.js} +1 -1
  61. package/dist/{PaymentIntegrationForm-PIT8gHYN.mjs → PaymentIntegrationForm-CbqfAdkc.mjs} +1 -1
  62. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +1 -0
  63. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-COO2ZUhN.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs} +4 -3
  64. package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +1 -0
  65. package/dist/{PaymentIntegrationFormAdyen-Cjj9aK0E.mjs → PaymentIntegrationFormAdyen-CuRwe9_9.mjs} +78 -116
  66. package/dist/PaymentIntegrationFormStripe-51KZc27R.js +1 -0
  67. package/dist/{PaymentIntegrationFormStripe-arpua_ZT.mjs → PaymentIntegrationFormStripe-JZw2m1kJ.mjs} +7 -7
  68. package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +636 -0
  69. package/dist/PaymentMethod.vue.es-uVZO0Zju.js +1 -0
  70. package/dist/{PaymentMethodForm-B7T5rrNz.mjs → PaymentMethodForm-C5WqTDow.mjs} +1 -1
  71. package/dist/{PaymentMethodForm-CLz3ZS-b.js → PaymentMethodForm-CBjHdZT7.js} +1 -1
  72. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +1 -0
  73. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-C4Zf92QP.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs} +5 -2
  74. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-CIIt6fGp.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs} +7 -3
  75. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +1 -0
  76. package/dist/PricingGroupRangeInput.vue.es-A6eW-u2k.mjs +636 -0
  77. package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +1 -0
  78. package/dist/Section.vue.es-MEFUWCxU.mjs +79 -0
  79. package/dist/Section.vue.es-tLYXp-tF.js +1 -0
  80. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +1 -0
  81. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs +1050 -0
  82. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs +6105 -0
  83. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +1 -0
  84. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs} +2 -1
  85. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +1 -0
  86. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +1 -0
  87. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-BOUSk2ZB.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs} +7 -4
  88. package/dist/TooltipParagraph.vue.es-B5aHQv9O.mjs +136 -0
  89. package/dist/TooltipParagraph.vue.es-fSwKGXKg.js +1 -0
  90. package/dist/TrialChip.vue.es-0nrqSZeY.js +1 -0
  91. package/dist/TrialChip.vue.es-Fp7Lqo-b.mjs +56 -0
  92. package/dist/api.es-C5pe8LUl.mjs +62 -0
  93. package/dist/api.es-Czekkp_X.js +1 -0
  94. package/dist/cn.es-BLHlMR4Y.js +1 -0
  95. package/dist/cn.es-DB5pDpxS.mjs +3298 -0
  96. package/dist/comparators.es-9VsCB-JI.mjs +175 -0
  97. package/dist/comparators.es-wrKHduVq.js +1 -0
  98. package/dist/component-BG6DmXcy.mjs +9 -0
  99. package/dist/component-hDuDTBt5.js +1 -0
  100. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
  101. package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
  102. package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +15 -26
  103. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
  104. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
  105. package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +42 -128
  106. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
  107. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
  108. package/dist/components/CustomerPaymentMethods/{CustomerPaymentMethods.es.js → CustomerPaymentMethods.mjs} +18 -51
  109. package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
  110. package/dist/components/Invoice/Invoice.cjs +1 -0
  111. package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +73 -79
  112. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
  113. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
  114. package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +12 -24
  115. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -3
  116. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
  117. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
  118. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
  119. package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
  120. package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +12 -24
  121. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
  122. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
  123. package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +12 -24
  124. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
  125. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
  126. package/dist/components/PaymentMethodForm/{PaymentMethodForm.es.js → PaymentMethodForm.mjs} +15 -27
  127. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
  128. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
  129. package/dist/components/SubscriptionSchedules/{SubscriptionSchedules.es.js → SubscriptionSchedules.mjs} +13 -25
  130. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
  131. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
  132. package/dist/components/SubscriptionsList/{SubscriptionsList.es.js → SubscriptionsList.mjs} +22 -53
  133. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
  134. package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
  135. package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +13 -25
  136. package/dist/configuration-BjYwV4_B.js +1 -0
  137. package/dist/configuration-CD8cOXAJ.mjs +15 -0
  138. package/dist/core/action-request.types.d.ts +1 -55
  139. package/dist/core/configuration.d.ts +1 -3
  140. package/dist/core/index.cjs +1 -0
  141. package/dist/core/index.d.ts +1 -11
  142. package/dist/core/index.mjs +197 -0
  143. package/dist/core/registry.ce.d.ts +1 -2
  144. package/dist/core/registry.d.ts +1 -6
  145. package/dist/core/types.d.ts +1 -121
  146. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  147. package/dist/countryData.es-D3MFzU92.js +1 -0
  148. package/dist/customElements-BTJzBHMy.js +1 -0
  149. package/dist/customElements-DdFA__me.mjs +6729 -0
  150. package/dist/{customer-DovIxTG1.mjs → customer-B0AMetq6.mjs} +1 -1
  151. package/dist/customer-D7HUfF3j.js +1 -0
  152. package/dist/customer.es-C_vSWcVA.mjs +30 -0
  153. package/dist/customer.es-D42Md24r.js +1 -0
  154. package/dist/en-US-BSrbFk5W.js +1 -0
  155. package/dist/en-US-D0P7NNNZ.mjs +228 -0
  156. package/dist/{en-US-CXDO3qhq.mjs → en-US-Daw3v6GD.mjs} +8 -31
  157. package/dist/en-US-scSQQXK8.js +1 -0
  158. package/dist/error-Cg-i7gGl.js +1 -0
  159. package/dist/error-DY_I2hPx.mjs +13 -0
  160. package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
  161. package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
  162. package/dist/formatting.es-9hM8aHSg.js +1 -0
  163. package/dist/formatting.es-D-oVnc8H.mjs +68 -0
  164. package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
  165. package/dist/getComposedString.es-DvSNX-_z.js +1 -0
  166. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  167. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  168. package/dist/index-BJ3dHkSK.js +1 -0
  169. package/dist/index-C5bKRt7l.mjs +1069 -0
  170. package/dist/index.cjs +1 -0
  171. package/dist/index.d.ts +1 -17
  172. package/dist/index.es-0cystq8F.mjs +542 -0
  173. package/dist/index.es-2JWHHSgP.js +1 -0
  174. package/dist/index.mjs +42 -0
  175. package/dist/{invoices-Dk-z04lg.mjs → invoices-BSd-nKeE.mjs} +17 -16
  176. package/dist/invoices-BiqM6xN6.js +1 -0
  177. package/dist/{nl-NL-BgL_PuBn.mjs → nl-NL-B4zEBFTw.mjs} +8 -54
  178. package/dist/nl-NL-B5tuyIOM.mjs +88 -0
  179. package/dist/nl-NL-Bs3d8q6T.js +1 -0
  180. package/dist/nl-NL-DIAZWDF9.js +1 -0
  181. package/dist/object.es-DFXiU9p3.js +1 -0
  182. package/dist/object.es-jvvnR8Kr.mjs +12 -0
  183. package/dist/{paymentMethods-BnF1XYS1.mjs → paymentMethods-BsrkEbKT.mjs} +4 -16
  184. package/dist/paymentMethods-Cu2RzLgm.js +1 -0
  185. package/dist/{payments-TnRjtlOw.mjs → payments-B6Nfd6Al.mjs} +1 -1
  186. package/dist/payments-Bbm1HMQj.js +1 -0
  187. package/dist/pricing-3W7XLwL6.js +1 -0
  188. package/dist/pricing-CJxS2hr2.mjs +17 -0
  189. package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
  190. package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
  191. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
  192. package/dist/screens/Checkout/Checkout.cjs +1 -0
  193. package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1250 -610
  194. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
  195. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
  196. package/dist/screens/CustomerOverview/{CustomerOverview.es.js → CustomerOverview.mjs} +33 -36
  197. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -3
  198. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
  199. package/dist/screens/PayInvoice/{PayInvoice.es.js → PayInvoice.mjs} +21 -28
  200. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -3
  201. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
  202. package/dist/screens/PaymentMethodsManagement/{PaymentMethodsManagement.es.js → PaymentMethodsManagement.mjs} +17 -29
  203. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -3
  204. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
  205. package/dist/screens/SubscriptionDetails/{SubscriptionDetails.es.js → SubscriptionDetails.mjs} +33 -37
  206. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -3
  207. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
  208. package/dist/screens/SubscriptionManagement/{SubscriptionManagement.es.js → SubscriptionManagement.mjs} +32 -41
  209. package/dist/slots.es-BpwYO3A3.mjs +18 -0
  210. package/dist/slots.es-Dq1PTUOv.js +1 -0
  211. package/dist/sorting.es-CjTrRfSW.mjs +105 -0
  212. package/dist/sorting.es-RyvcgbSL.js +1 -0
  213. package/dist/subscriptions-B4BOzLxR.js +1 -0
  214. package/dist/{subscriptions-vEE4Y7qm.mjs → subscriptions-C2C4WTuI.mjs} +7 -7
  215. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  216. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  217. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
  218. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  219. package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
  220. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
  221. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
  222. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
  223. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
  224. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
  225. package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
  226. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
  227. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
  228. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
  229. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
  230. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
  231. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
  232. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
  233. package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
  234. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +72 -0
  235. package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
  236. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
  237. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
  238. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
  239. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
  240. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
  241. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
  242. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
  243. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
  244. package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
  245. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
  246. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
  247. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
  248. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
  249. package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
  250. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
  251. package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
  252. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
  253. package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
  254. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
  255. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
  256. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
  257. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
  258. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
  259. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
  260. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
  261. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
  262. package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
  263. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
  264. package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
  265. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
  266. package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
  267. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +24 -0
  268. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +40 -0
  269. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
  270. package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
  271. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
  272. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
  273. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
  274. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
  275. package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
  276. package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
  277. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
  278. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
  279. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
  280. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
  281. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
  282. package/dist/types/components/providers/index.d.ts +9 -0
  283. package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
  284. package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
  285. package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
  286. package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
  287. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
  288. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
  289. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
  290. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
  291. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
  292. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
  293. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
  294. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
  295. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
  296. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
  297. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
  298. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
  299. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
  300. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
  301. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
  302. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
  303. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
  304. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  305. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
  306. package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
  307. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
  308. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
  309. package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
  310. package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
  311. package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
  312. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
  313. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
  314. package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
  315. package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
  316. package/dist/types/config/config.beta.d.ts +2 -0
  317. package/dist/types/config/config.dev.d.ts +2 -0
  318. package/dist/types/config/config.live.d.ts +2 -0
  319. package/dist/types/config/internalEnvironments.d.ts +11 -0
  320. package/dist/types/config/internalEnvironments.published.d.ts +7 -0
  321. package/dist/types/config/lib.d.ts +6 -0
  322. package/dist/types/config/types.d.ts +13 -0
  323. package/dist/types/index.d.ts +23 -0
  324. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
  325. package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
  326. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
  327. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
  328. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
  329. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
  330. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
  331. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
  332. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
  333. package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
  334. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
  335. package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
  336. package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
  337. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
  338. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
  339. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
  340. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
  341. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
  342. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
  343. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
  344. package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
  345. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
  346. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
  347. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
  348. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
  349. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
  350. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
  351. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
  352. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
  353. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
  354. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
  355. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
  356. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
  357. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  358. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
  359. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
  360. package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
  361. package/dist/types/public/core/action-request.types.d.ts +55 -0
  362. package/dist/types/public/core/configuration.d.ts +3 -0
  363. package/dist/types/public/core/index.d.ts +14 -0
  364. package/dist/types/public/core/registry.ce.d.ts +8 -0
  365. package/dist/types/public/core/registry.d.ts +6 -0
  366. package/dist/types/public/core/types.d.ts +120 -0
  367. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
  368. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
  369. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
  370. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
  371. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
  372. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
  373. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
  374. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
  375. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
  376. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
  377. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
  378. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
  379. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
  380. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
  381. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
  382. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
  383. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
  384. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
  385. package/dist/types/public/screens/types.d.ts +4 -0
  386. package/dist/types/public/types/index.d.ts +23 -0
  387. package/dist/types/services/invoices.types.d.ts +26 -0
  388. package/dist/types/services/paymentMethods.types.d.ts +31 -0
  389. package/dist/types/services/portals.types.d.ts +68 -0
  390. package/dist/types/services/requests.types.d.ts +24 -0
  391. package/dist/types/translations/supported.d.ts +1 -0
  392. package/dist/types/types/EntryBaseProps.d.ts +10 -0
  393. package/dist/types/types/errors.d.ts +7 -0
  394. package/dist/types/types/subscription.d.ts +4 -0
  395. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
  396. package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
  397. package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
  398. package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
  399. package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
  400. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
  401. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
  402. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
  403. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
  404. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
  405. package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
  406. package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
  407. package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
  408. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
  409. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
  410. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
  411. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
  412. package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
  413. package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
  414. package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
  415. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
  416. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
  417. package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
  418. package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
  419. package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
  420. package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
  421. package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
  422. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
  423. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
  424. package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
  425. package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
  426. package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
  427. package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
  428. package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
  429. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
  430. package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
  431. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
  432. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
  433. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
  434. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
  435. package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
  436. package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
  437. package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
  438. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
  439. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
  440. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
  441. package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
  442. package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
  443. package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
  444. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
  445. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
  446. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
  447. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
  448. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
  449. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
  450. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
  451. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
  452. package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
  453. package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
  454. package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
  455. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
  456. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
  457. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
  458. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
  459. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
  460. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
  461. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
  462. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
  463. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
  464. package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
  465. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
  466. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
  467. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
  468. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
  469. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
  470. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
  471. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
  472. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
  473. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
  474. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
  475. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
  476. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
  477. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
  478. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
  479. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
  480. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
  481. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
  482. package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
  483. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
  484. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
  485. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
  486. package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
  487. package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
  488. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
  489. package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
  490. package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
  491. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
  492. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
  493. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
  494. package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
  495. package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
  496. package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
  497. package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
  498. package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
  499. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
  500. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
  501. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
  502. package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
  503. package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
  504. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
  505. package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
  506. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
  507. package/dist/useActionDispatchProvider-Cz8xLLYA.js +1 -0
  508. package/dist/{useActionDispatchProvider-BlEf-RZ5.mjs → useActionDispatchProvider-D55t_7LY.mjs} +1 -1
  509. package/dist/{useCustomer-Cw8LXT6S.mjs → useCustomer-BNhHz9RJ.mjs} +2 -2
  510. package/dist/{useCustomer-C1XTqmrQ.js → useCustomer-DYCpgA-3.js} +1 -1
  511. package/dist/useCustomerFormLabels-Cw6QpEJY.js +1 -0
  512. package/dist/useCustomerFormLabels-mX5QpApD.mjs +1142 -0
  513. package/dist/{useIncrementalLoading-8WtKZ-mP.mjs → useIncrementalLoading-BK9pRYAU.mjs} +5 -4
  514. package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
  515. package/dist/{useInvoiceData-BrxMo4Zt.js → useInvoiceData-BczeMpuk.js} +1 -1
  516. package/dist/{useInvoiceData-Cy_ysMsq.mjs → useInvoiceData-D-EvEioP.mjs} +2 -2
  517. package/dist/{useInvoicesList-DMsZn1tE.mjs → useInvoicesList-BJJYwkIA.mjs} +277 -31
  518. package/dist/useInvoicesList-rMg-8LbH.js +1 -0
  519. package/dist/{useLoadInitialData-BP1v7qhd.mjs → useLoadInitialData-BoGjdUu-.mjs} +1 -1
  520. package/dist/useLoadInitialData-CiJldX50.js +1 -0
  521. package/dist/{usePaymentMethodOptions-CWfGvW0U.mjs → usePaymentMethodOptions-d49aOdLB.mjs} +13 -9
  522. package/dist/usePaymentMethodOptions-fBvWYynV.js +1 -0
  523. package/dist/{usePaymentMethods-Cyk4cjoE.mjs → usePaymentMethods-Bkouz8aQ.mjs} +2 -2
  524. package/dist/{usePaymentMethods-CAFMvSOr.js → usePaymentMethods-CFL3hFW_.js} +1 -1
  525. package/dist/usePayments-BKTNn_RN.js +1 -0
  526. package/dist/usePayments-BlliAt1E.mjs +262 -0
  527. package/dist/{usePortal-0NDlbFr9.mjs → usePortal-eyA4OqjU.mjs} +1 -1
  528. package/dist/usePortal-fhri8neB.js +1 -0
  529. package/dist/useService-D73FNBjT.js +1 -0
  530. package/dist/{useService-CqfJi5ST.mjs → useService-W3Kxems4.mjs} +24 -5
  531. package/dist/useSubscription--IGLmLS6.mjs +250 -0
  532. package/dist/useSubscription-V3KSuhOY.js +1 -0
  533. package/package.json +55 -45
  534. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Rub9ifBk.js +0 -1
  535. package/dist/ApiStatus-CyNDp_op.mjs +0 -9
  536. package/dist/ApiStatus-oqvUEWJx.js +0 -1
  537. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DurgWlLC.js +0 -1
  538. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Df7CsbiW.js +0 -1
  539. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-mM5udvi8.js +0 -1
  540. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BIpg-MSJ.mjs +0 -53
  541. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-BM3p8Pk8.js +0 -1
  542. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D5eSNYH2.js +0 -1
  543. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-Ci8r6tuC.js +0 -1
  544. package/dist/InvoiceHeader.vue_vue_type_script_setup_true_lang-jshby9pF.mjs +0 -27
  545. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-CNKxTtO7.js +0 -1
  546. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D6lpD1zo.js +0 -1
  547. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Bmgx7PSt.js +0 -1
  548. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-5XKz3kop.js +0 -1
  549. package/dist/PaymentIntegrationFormAdyen-B-Jbu2hU.js +0 -1
  550. package/dist/PaymentIntegrationFormStripe-Bnn8S1o5.js +0 -1
  551. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-UH9AVXnG.js +0 -1
  552. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-ifai5HVr.js +0 -1
  553. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DaWlLor0.mjs +0 -217
  554. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DdUoeTUL.js +0 -1
  555. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CyYhYYRp.mjs +0 -37
  556. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-DdjYVNku.js +0 -1
  557. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cu55ZvCH.js +0 -1
  558. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BKDMwuyh.js +0 -1
  559. package/dist/component--Y7Igv5i.mjs +0 -1022
  560. package/dist/component-DIy1hvJM.js +0 -1
  561. package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
  562. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
  563. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
  564. package/dist/components/Invoice/Invoice.cjs.js +0 -1
  565. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
  566. package/dist/components/InvoiceHeader/InvoiceHeader.cjs.js +0 -1
  567. package/dist/components/InvoiceHeader/InvoiceHeader.es.js +0 -123
  568. package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
  569. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
  570. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
  571. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
  572. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
  573. package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
  574. package/dist/core/index.cjs.js +0 -1
  575. package/dist/core/index.es.js +0 -6
  576. package/dist/customer-brfznoHY.js +0 -1
  577. package/dist/en-US-BvOHPudj.js +0 -1
  578. package/dist/index-BMWWP8xj.js +0 -1
  579. package/dist/index-Do7kzLpg.mjs +0 -265
  580. package/dist/index.cjs.js +0 -1
  581. package/dist/index.es.js +0 -51
  582. package/dist/invoices-Cf3dSYSj.js +0 -1
  583. package/dist/nl-NL-COGUFg60.js +0 -1
  584. package/dist/paymentMethods-DVDC_WfL.js +0 -1
  585. package/dist/payments-DVZFO5yb.js +0 -1
  586. package/dist/pricing-CuYndX6t.js +0 -1
  587. package/dist/pricing-GwLCiSzs.mjs +0 -19
  588. package/dist/registry-Ck0Gb6rj.mjs +0 -153
  589. package/dist/registry-Cra6yoB4.js +0 -1
  590. package/dist/screens/Checkout/Checkout.cjs.js +0 -1
  591. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
  592. package/dist/screens/PayInvoice/PayInvoice.cjs.js +0 -1
  593. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs.js +0 -1
  594. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs.js +0 -1
  595. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs.js +0 -1
  596. package/dist/solvimon-web.css +0 -1
  597. package/dist/subscriptions-BFCKVHnP.js +0 -1
  598. package/dist/useActionDispatchProvider-aJOy3kr1.js +0 -1
  599. package/dist/useIncrementalLoading-CkY2klIW.js +0 -1
  600. package/dist/useInvoicesList-DmisMQzy.js +0 -1
  601. package/dist/useLoadInitialData-_BjCD0Jc.js +0 -1
  602. package/dist/usePaymentMethodOptions-xeSTmaVo.js +0 -1
  603. package/dist/usePayments-BieVBaz-.js +0 -1
  604. package/dist/usePayments-D88XSZfS.mjs +0 -42
  605. package/dist/usePortal-B954nyEB.js +0 -1
  606. package/dist/useService-BiljI7XA.js +0 -1
  607. package/dist/useSubscription-9rJpFNUF.mjs +0 -29
  608. package/dist/useSubscription-k3limdu_.js +0 -1
  609. package/dist/vendor-ui-Dfh3_g4q.js +0 -1
  610. package/dist/vendor-ui-ItGf7wJV.mjs +0 -29938
@@ -1,21 +1,566 @@
1
- import { computed, ref, defineComponent, openBlock, createBlock, withCtx, unref, createElementBlock, createVNode, createTextVNode, toDisplayString, createCommentVNode, useModel, watch, createSlots, createElementVNode, mergeModels, mergeProps, renderSlot, reactive, normalizeClass, Fragment, renderList, withModifiers, onBeforeUnmount, normalizeStyle } from "vue";
2
- import { w as withExpand, s as serializeQueryParams, a4 as isFlexiblePricing, a5 as hasOneOfPricingTypes, u as useIntl, a6 as _sfc_main$c, b as _sfc_main$d, a1 as _sfc_main$e, W as _sfc_main$f, a as _sfc_main$g, E as formatAmount, R as useValidation, Y as _sfc_main$h, a7 as _sfc_main$i, a8 as formatWalletBalanceValue, t as _sfc_main$j, $ as _sfc_main$k, o as getCustomerCountry, M as Modal, k as _sfc_main$o, D as _sfc_main$p, a9 as _sfc_main$q } from "./vendor-ui-ItGf7wJV.mjs";
3
- import { c as createRequestService, u as useConfig, E as EXPAND_ALL, a as useLogger } from "./component--Y7Igv5i.mjs";
4
- import { u as useService } from "./useService-CqfJi5ST.mjs";
5
- import { _ as _sfc_main$b } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
6
- import { c as common, a as requiredIf, r as required } from "./index-Do7kzLpg.mjs";
7
- import { c as createInvoicesService } from "./invoices-Dk-z04lg.mjs";
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, computed, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createVNode, createTextVNode, createElementBlock, unref, createCommentVNode, renderSlot, createSlots, Fragment, renderList, useModel, watch, mergeModels, mergeProps, reactive, normalizeClass, withModifiers, normalizeStyle } from "vue";
2
+ import { w as withExpand } from "./api.es-C5pe8LUl.mjs";
3
+ import { u as useIntl, _ as _sfc_main$h, c as createRequestService, a as useConfig, b as useLogger, g as createLatestGuard } from "./customElements-DdFA__me.mjs";
4
+ import { E as EXPAND_ALL } from "./component-BG6DmXcy.mjs";
5
+ import { u as useService } from "./useService-W3Kxems4.mjs";
6
+ import { _ as _sfc_main$w } from "./ErrorNotification.vue.es-C22Kt8Qn.mjs";
7
+ import { i as isFixedPricing, a as isFlexiblePricing, h as hasOneOfPricingTypes } from "./pricingItemConfigs.es-BPIm6S8M.mjs";
8
+ import { f as formatAmount } from "./formatting.es-D-oVnc8H.mjs";
9
+ import { a as _sfc_main$i, _ as _sfc_main$j } from "./Button.vue.es-BrWHdiEA.mjs";
10
+ import { _ as _sfc_main$f, T as TooltipContent, a as _sfc_main$g } from "./TooltipParagraph.vue.es-B5aHQv9O.mjs";
11
+ import { _ as _sfc_main$k } from "./Section.vue.es-MEFUWCxU.mjs";
12
+ import { _ as _sfc_main$l } from "./Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
13
+ import { b as _sfc_main$n, a as _sfc_main$r } from "./EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs";
14
+ import { u as useValidation, c as common, _ as _sfc_main$p, a as requiredIf, r as required } from "./index-C5bKRt7l.mjs";
15
+ import { _ as _sfc_main$s } from "./Divider.vue.es-wKkIVBgb.mjs";
16
+ import { _ as _sfc_main$q } from "./Expand.vue.es-C4_XmqbR.mjs";
17
+ import { _ as _sfc_main$m } from "./cn.es-DB5pDpxS.mjs";
18
+ import { c as createInvoicesService } from "./invoices-BSd-nKeE.mjs";
8
19
  import { u as useWatchDebounced } from "./useWatchDebounced-Zmxd6InB.mjs";
9
- import { _ as _sfc_main$l, a as _sfc_main$m } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-C2IRj-FB.mjs";
10
- import { _ as _sfc_main$n } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-z8P1u1Gi.mjs";
11
- import { u as usePaymentMethodOptions } from "./usePaymentMethodOptions-CWfGvW0U.mjs";
20
+ import { _ as _sfc_main$o } from "./Input.vue.es-Dp_RH03h.mjs";
21
+ import { _ as _sfc_main$t, a as _sfc_main$u } from "./AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs";
22
+ import { _ as _sfc_main$v } from "./SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs";
23
+ import { g as getCustomerCountry } from "./customer.es-C_vSWcVA.mjs";
24
+ import { u as usePaymentMethodOptions } from "./usePaymentMethodOptions-d49aOdLB.mjs";
25
+ import { M as Modal } from "./Modal.vue.es-5EpA4Q0t.mjs";
26
+ const formatWalletBalanceValue = (formatMessage, formatNumber, balanceValue) => {
27
+ var _a, _b, _c, _d, _e, _f;
28
+ if (balanceValue == null ? void 0 : balanceValue.amount) {
29
+ return formatAmount(balanceValue.amount);
30
+ }
31
+ if (balanceValue == null ? void 0 : balanceValue.credits) {
32
+ const quantity = Number(balanceValue.credits.quantity);
33
+ const unitLabel = quantity === 1 ? (_b = (_a = balanceValue.credits.credit_type) == null ? void 0 : _a.unit_name) == null ? void 0 : _b.singular : ((_d = (_c = balanceValue.credits.credit_type) == null ? void 0 : _c.unit_name) == null ? void 0 : _d.plural) ?? ((_f = (_e = balanceValue.credits.credit_type) == null ? void 0 : _e.unit_name) == null ? void 0 : _f.singular);
34
+ const unit = unitLabel ?? formatMessage({
35
+ defaultMessage: "credits",
36
+ description: "Wallet balances credits default message",
37
+ id: "wB/wXs"
38
+ });
39
+ return `${formatNumber(quantity)} ${unit}`;
40
+ }
41
+ return formatMessage({
42
+ defaultMessage: "N/A",
43
+ description: "Fallback wallet balance label when no balance is available",
44
+ id: "PW+sL4"
45
+ });
46
+ };
47
+ const REFRESH_INTERVAL_MS = 3e4;
48
+ const SECONDS_PER_MINUTE = 60;
49
+ const MONTHS_PER_YEAR = 12;
50
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
51
+ __name: "DateTimeAgo",
52
+ props: {
53
+ date: {},
54
+ actionVerb: {}
55
+ },
56
+ setup(__props) {
57
+ const SECONDS_PER_HOUR = 60 * SECONDS_PER_MINUTE;
58
+ const SECONDS_PER_DAY = 24 * SECONDS_PER_HOUR;
59
+ const props = __props;
60
+ const { $t, formatDate } = useIntl();
61
+ const now = ref(Date.now());
62
+ let refreshTimer;
63
+ onMounted(() => {
64
+ refreshTimer = setInterval(() => {
65
+ now.value = Date.now();
66
+ }, REFRESH_INTERVAL_MS);
67
+ });
68
+ onBeforeUnmount(() => {
69
+ clearInterval(refreshTimer);
70
+ });
71
+ const elapsedMonths = (from, to) => {
72
+ const months = (to.getFullYear() - from.getFullYear()) * MONTHS_PER_YEAR + (to.getMonth() - from.getMonth());
73
+ return to.getDate() < from.getDate() ? months - 1 : months;
74
+ };
75
+ const timeAgo = computed(() => {
76
+ const elapsed = Math.max(0, (now.value - props.date.getTime()) / 1e3);
77
+ if (elapsed < SECONDS_PER_MINUTE) {
78
+ return $t(
79
+ {
80
+ defaultMessage: "{count, plural, one {# second} other {# seconds}} ago",
81
+ id: "dateTimeAgo.seconds",
82
+ description: "Relative time in whole seconds"
83
+ },
84
+ { count: Math.trunc(elapsed) }
85
+ );
86
+ }
87
+ if (elapsed < SECONDS_PER_HOUR) {
88
+ return $t(
89
+ {
90
+ defaultMessage: "{count, plural, one {# minute} other {# minutes}} ago",
91
+ id: "dateTimeAgo.minutes",
92
+ description: "Relative time in whole minutes"
93
+ },
94
+ { count: Math.trunc(elapsed / SECONDS_PER_MINUTE) }
95
+ );
96
+ }
97
+ if (elapsed < SECONDS_PER_DAY) {
98
+ return $t(
99
+ {
100
+ defaultMessage: "{count, plural, one {# hour} other {# hours}} ago",
101
+ id: "dateTimeAgo.hours",
102
+ description: "Relative time in whole hours"
103
+ },
104
+ { count: Math.trunc(elapsed / SECONDS_PER_HOUR) }
105
+ );
106
+ }
107
+ const months = elapsedMonths(props.date, new Date(now.value));
108
+ if (months < 1) {
109
+ const days = Math.trunc(elapsed / SECONDS_PER_DAY);
110
+ if (days === 1) {
111
+ return $t({
112
+ defaultMessage: "yesterday",
113
+ id: "dateTimeAgo.yesterday",
114
+ description: 'Relative time for a single day ago, reading as "updated yesterday" once the action verb is in front'
115
+ });
116
+ }
117
+ return $t(
118
+ {
119
+ defaultMessage: "{count, plural, one {# day} other {# days}} ago",
120
+ id: "dateTimeAgo.days",
121
+ description: "Relative time in whole days"
122
+ },
123
+ { count: days }
124
+ );
125
+ }
126
+ if (months < MONTHS_PER_YEAR) {
127
+ return $t(
128
+ {
129
+ defaultMessage: "{count, plural, one {# month} other {# months}} ago",
130
+ id: "dateTimeAgo.months",
131
+ description: "Relative time in whole months"
132
+ },
133
+ { count: months }
134
+ );
135
+ }
136
+ return $t(
137
+ {
138
+ defaultMessage: "{count, plural, one {# year} other {# years}} ago",
139
+ id: "dateTimeAgo.years",
140
+ description: "Relative time in whole years"
141
+ },
142
+ { count: Math.trunc(months / MONTHS_PER_YEAR) }
143
+ );
144
+ });
145
+ const label = computed(
146
+ () => props.actionVerb ? `${props.actionVerb} ${timeAgo.value}` : timeAgo.value
147
+ );
148
+ const fullDate = computed(
149
+ () => formatDate({ date: props.date, format: "dateTime", offsetType: "local" })
150
+ );
151
+ return (_ctx, _cache) => {
152
+ return openBlock(), createBlock(_sfc_main$f, null, {
153
+ tooltip: withCtx(() => [
154
+ createVNode(TooltipContent, null, {
155
+ default: withCtx(() => [
156
+ createVNode(_sfc_main$g, null, {
157
+ default: withCtx(() => [
158
+ createTextVNode(toDisplayString(fullDate.value), 1)
159
+ ]),
160
+ _: 1
161
+ })
162
+ ]),
163
+ _: 1
164
+ })
165
+ ]),
166
+ default: withCtx(() => [
167
+ createElementVNode("span", null, toDisplayString(label.value), 1)
168
+ ]),
169
+ _: 1
170
+ });
171
+ };
172
+ }
173
+ });
174
+ const useWalletBalancesItem = (props) => {
175
+ const { $t, formatNumber } = useIntl();
176
+ const formatBalance = (balanceValue) => formatWalletBalanceValue($t, formatNumber, balanceValue);
177
+ const walletName = computed(
178
+ () => {
179
+ var _a, _b;
180
+ return ((_b = (_a = props.walletBalance.wallet) == null ? void 0 : _a.wallet_type) == null ? void 0 : _b.name) || $t({
181
+ defaultMessage: "Balance",
182
+ id: "wallet_balance.balance_label",
183
+ description: "Label shown above a wallet's balance amount"
184
+ });
185
+ }
186
+ );
187
+ const getOnDemandConfigs = (chargeOnDemandItem) => {
188
+ var _a;
189
+ return (((_a = chargeOnDemandItem.pricing_item) == null ? void 0 : _a.configs) ?? []).filter((config) => !!config.on_demand);
190
+ };
191
+ const manualTopUpItems = computed(
192
+ () => (props.walletBalance.charge_on_demand_pricing_items ?? []).filter(
193
+ (chargeOnDemandItem) => getOnDemandConfigs(chargeOnDemandItem).some(
194
+ (config) => isFixedPricing(config) || isFlexiblePricing(config)
195
+ )
196
+ )
197
+ );
198
+ const flexibleManualTopUpItem = computed(
199
+ () => manualTopUpItems.value.find(
200
+ (chargeOnDemandItem) => getOnDemandConfigs(chargeOnDemandItem).some((config) => isFlexiblePricing(config))
201
+ )
202
+ );
203
+ const showManualTopUp = computed(
204
+ () => !!props.showManualTopUp && manualTopUpItems.value.length > 0
205
+ );
206
+ const showAutoTopUp = computed(() => !!props.showAutoTopUp && !!flexibleManualTopUpItem.value);
207
+ const activeTopUpConfig = computed(
208
+ () => {
209
+ var _a, _b;
210
+ return (_b = (_a = props.walletBalance.wallet) == null ? void 0 : _a.auto_top_up_configs) == null ? void 0 : _b.find(
211
+ (config) => config.status === "ACTIVE"
212
+ );
213
+ }
214
+ );
215
+ const balanceCreditType = computed(
216
+ () => {
217
+ var _a, _b;
218
+ return (_b = (_a = props.walletBalance.wallet_balance.open_balance) == null ? void 0 : _a.credits) == null ? void 0 : _b.credit_type;
219
+ }
220
+ );
221
+ const formatCredits = (quantity, creditTypeId) => formatBalance({
222
+ credits: {
223
+ quantity,
224
+ credit_type_id: creditTypeId,
225
+ credit_type: balanceCreditType.value
226
+ }
227
+ });
228
+ const formatThreshold = (threshold) => {
229
+ if (threshold.amount) {
230
+ return formatBalance({ amount: threshold.amount });
231
+ }
232
+ if (threshold.credits) {
233
+ return formatCredits(threshold.credits.quantity, threshold.credits.credit_type_id);
234
+ }
235
+ return "";
236
+ };
237
+ const autoTopUpWalletGrant = computed(() => {
238
+ var _a, _b;
239
+ const pricingItemId = (_a = activeTopUpConfig.value) == null ? void 0 : _a.pricing_item_id;
240
+ if (!pricingItemId) {
241
+ return void 0;
242
+ }
243
+ const grants = (props.walletBalance.charge_on_demand_pricing_items ?? []).filter((chargeOnDemandItem) => chargeOnDemandItem.pricing_item_id === pricingItemId).flatMap((chargeOnDemandItem) => getOnDemandConfigs(chargeOnDemandItem)).flatMap((config) => config.wallet_grants ?? []);
244
+ const walletTypeId = (_b = props.walletBalance.wallet) == null ? void 0 : _b.wallet_type_id;
245
+ return grants.find((grant) => grant.wallet_type_id === walletTypeId) ?? grants[0];
246
+ });
247
+ const autoTopUpCredits = computed(() => {
248
+ var _a, _b;
249
+ const topUpAmount = (_a = activeTopUpConfig.value) == null ? void 0 : _a.topup_amount;
250
+ const creditsGrant = (_b = autoTopUpWalletGrant.value) == null ? void 0 : _b.credits_grant;
251
+ if (!topUpAmount || !creditsGrant) {
252
+ return "";
253
+ }
254
+ if (creditsGrant.credits) {
255
+ return formatCredits(
256
+ creditsGrant.credits.quantity,
257
+ creditsGrant.credits.credit_type_id
258
+ );
259
+ }
260
+ if (creditsGrant.conversion) {
261
+ const quantity = Number(topUpAmount.quantity) * Number(creditsGrant.conversion.rate);
262
+ return formatCredits(String(quantity), creditsGrant.conversion.credit_type_id);
263
+ }
264
+ return "";
265
+ });
266
+ const autoTopUpLabel = computed(
267
+ () => activeTopUpConfig.value ? $t({
268
+ defaultMessage: "Auto top-up enabled",
269
+ id: "wallet_balance.auto_top_up_enabled_label",
270
+ description: "Label shown when a wallet tops itself up automatically"
271
+ }) : $t({
272
+ defaultMessage: "No auto top-up enabled",
273
+ id: "wallet_balance.auto_top_up_disabled_label",
274
+ description: "Label shown when a wallet has no automatic top-up configured"
275
+ })
276
+ );
277
+ const autoTopUpExplanation = computed(() => {
278
+ const config = activeTopUpConfig.value;
279
+ if (!config) {
280
+ return $t({
281
+ defaultMessage: "Set up an automatic top-up and your balance is increased for you whenever it drops below an amount you choose, so you never run out.",
282
+ id: "wallet_balance.auto_top_up_setup_explanation",
283
+ description: "Tooltip explaining what automatic top-ups do, shown when none is configured yet"
284
+ });
285
+ }
286
+ const topUpAmount = config.topup_amount ? formatBalance({ amount: config.topup_amount }) : "";
287
+ const threshold = formatThreshold(config.threshold);
288
+ if (!topUpAmount || !threshold) {
289
+ return $t({
290
+ defaultMessage: "Your balance is topped up automatically once it runs low.",
291
+ id: "wallet_balance.auto_top_up_generic_explanation",
292
+ description: "Tooltip shown for an active automatic top-up whose amount or threshold is unknown"
293
+ });
294
+ }
295
+ if (autoTopUpCredits.value) {
296
+ return $t(
297
+ {
298
+ defaultMessage: "Your balance is automatically increased with {topUpCredits} ({topUpAmount}) when it drops below {threshold}.",
299
+ id: "wallet_balance.auto_top_up_credits_explanation",
300
+ description: "Tooltip explaining an automatic top-up that grants credits for a paid amount"
301
+ },
302
+ { topUpCredits: autoTopUpCredits.value, topUpAmount, threshold }
303
+ );
304
+ }
305
+ return $t(
306
+ {
307
+ defaultMessage: "Your balance is automatically increased with {topUpAmount} when it drops below {threshold}.",
308
+ id: "wallet_balance.auto_top_up_explanation",
309
+ description: "Tooltip explaining how the automatic top-up of a wallet balance works"
310
+ },
311
+ { topUpAmount, threshold }
312
+ );
313
+ });
314
+ return {
315
+ walletName,
316
+ formatBalance,
317
+ manualTopUpItems,
318
+ flexibleManualTopUpItem,
319
+ showManualTopUp,
320
+ showAutoTopUp,
321
+ activeTopUpConfig,
322
+ autoTopUpLabel,
323
+ autoTopUpExplanation
324
+ };
325
+ };
326
+ const _hoisted_1$b = { class: "flex flex-col gap-3 py-3" };
327
+ const _hoisted_2$2 = { class: "flex flex-col gap-1 px-4" };
328
+ const _hoisted_3$2 = { class: "flex w-full justify-between gap-3" };
329
+ const _hoisted_4$1 = { class: "flex w-full items-center gap-4" };
330
+ const _hoisted_5$1 = { key: 0 };
331
+ const _hoisted_6 = {
332
+ key: 1,
333
+ class: "flex w-full justify-between gap-3 px-4"
334
+ };
335
+ const _hoisted_7 = { class: "flex min-w-0 items-center gap-1" };
336
+ const _hoisted_8 = { class: "flex min-w-0 items-center gap-1" };
337
+ const _hoisted_9 = { class: "shrink-0" };
338
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
339
+ __name: "WalletBalancesItem",
340
+ props: {
341
+ walletBalance: {},
342
+ showAutoTopUp: { type: Boolean },
343
+ showManualTopUp: { type: Boolean }
344
+ },
345
+ emits: ["top-up", "auto-top-up", "cancel-auto-top-up"],
346
+ setup(__props) {
347
+ const props = __props;
348
+ const { $t } = useIntl();
349
+ const {
350
+ walletName,
351
+ formatBalance,
352
+ manualTopUpItems,
353
+ flexibleManualTopUpItem,
354
+ showManualTopUp,
355
+ showAutoTopUp,
356
+ activeTopUpConfig,
357
+ autoTopUpLabel,
358
+ autoTopUpExplanation
359
+ } = useWalletBalancesItem(props);
360
+ return (_ctx, _cache) => {
361
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
362
+ createElementVNode("div", _hoisted_2$2, [
363
+ createElementVNode("div", _hoisted_3$2, [
364
+ createVNode(_sfc_main$h, {
365
+ variant: "body-xs",
366
+ shade: "lighter",
367
+ "no-spacing": ""
368
+ }, {
369
+ default: withCtx(() => [
370
+ createTextVNode(toDisplayString(unref(walletName)), 1)
371
+ ]),
372
+ _: 1
373
+ }),
374
+ createVNode(_sfc_main$h, {
375
+ variant: "body-xs",
376
+ shade: "lighter",
377
+ "no-spacing": ""
378
+ }, {
379
+ default: withCtx(() => {
380
+ var _a, _b;
381
+ return [
382
+ ((_a = __props.walletBalance.wallet_balance) == null ? void 0 : _a.balance_at) ? (openBlock(), createBlock(_sfc_main$e, {
383
+ key: 0,
384
+ date: new Date((_b = __props.walletBalance.wallet_balance) == null ? void 0 : _b.balance_at),
385
+ "action-verb": unref($t)({
386
+ defaultMessage: "updated",
387
+ id: "wallet_balance.updated_action_verb",
388
+ description: "Verb in front of when a wallet balance was last updated, e.g. 'updated 5 minutes ago'"
389
+ })
390
+ }, null, 8, ["date", "action-verb"])) : createCommentVNode("", true)
391
+ ];
392
+ }),
393
+ _: 1
394
+ })
395
+ ]),
396
+ createElementVNode("div", _hoisted_4$1, [
397
+ createVNode(_sfc_main$h, {
398
+ variant: "body-lg",
399
+ weight: "semibold",
400
+ "no-spacing": "",
401
+ class: "grow"
402
+ }, {
403
+ default: withCtx(() => [
404
+ createTextVNode(toDisplayString(unref(formatBalance)(props.walletBalance.wallet_balance.open_balance)), 1)
405
+ ]),
406
+ _: 1
407
+ }),
408
+ unref(showManualTopUp) ? (openBlock(), createBlock(unref(_sfc_main$i), {
409
+ key: 0,
410
+ size: "xs",
411
+ color: "primary",
412
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("top-up", unref(manualTopUpItems)[0]))
413
+ }, {
414
+ default: withCtx(() => [
415
+ createTextVNode(toDisplayString(unref($t)({
416
+ defaultMessage: "Top up",
417
+ id: "v1V8kA",
418
+ description: "Button to top up a wallet balance"
419
+ })), 1)
420
+ ]),
421
+ _: 1
422
+ })) : createCommentVNode("", true)
423
+ ])
424
+ ]),
425
+ _ctx.$slots["graph"] ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
426
+ renderSlot(_ctx.$slots, "graph")
427
+ ])) : createCommentVNode("", true),
428
+ unref(showAutoTopUp) ? (openBlock(), createElementBlock("div", _hoisted_6, [
429
+ createElementVNode("div", _hoisted_7, [
430
+ createVNode(_sfc_main$f, { class: "min-w-0" }, {
431
+ tooltip: withCtx(() => [
432
+ createVNode(TooltipContent, null, {
433
+ default: withCtx(() => [
434
+ createVNode(_sfc_main$g, null, {
435
+ default: withCtx(() => [
436
+ createTextVNode(toDisplayString(unref(autoTopUpExplanation)), 1)
437
+ ]),
438
+ _: 1
439
+ })
440
+ ]),
441
+ _: 1
442
+ })
443
+ ]),
444
+ default: withCtx(() => [
445
+ createElementVNode("div", _hoisted_8, [
446
+ createVNode(_sfc_main$h, {
447
+ variant: "body-sm",
448
+ shade: "lighter",
449
+ "no-spacing": "",
450
+ class: "truncate"
451
+ }, {
452
+ default: withCtx(() => [
453
+ createTextVNode(toDisplayString(unref(autoTopUpLabel)), 1)
454
+ ]),
455
+ _: 1
456
+ }),
457
+ createVNode(_sfc_main$j, {
458
+ icon: "info",
459
+ size: "2xs",
460
+ class: "shrink-0 cursor-help text-gray-400"
461
+ })
462
+ ])
463
+ ]),
464
+ _: 1
465
+ })
466
+ ]),
467
+ createElementVNode("div", _hoisted_9, [
468
+ unref(activeTopUpConfig) ? (openBlock(), createBlock(unref(_sfc_main$i), {
469
+ key: 0,
470
+ size: "xs",
471
+ color: "gray",
472
+ variant: "outline",
473
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("cancel-auto-top-up", unref(activeTopUpConfig)))
474
+ }, {
475
+ default: withCtx(() => [
476
+ createTextVNode(toDisplayString(unref($t)({
477
+ defaultMessage: "Disable",
478
+ id: "wallet_balance.auto_top_up_disable_button",
479
+ description: "Button to turn off a wallet's automatic top-up"
480
+ })), 1)
481
+ ]),
482
+ _: 1
483
+ })) : (openBlock(), createBlock(unref(_sfc_main$i), {
484
+ key: 1,
485
+ size: "xs",
486
+ color: "gray",
487
+ variant: "outline",
488
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("auto-top-up", unref(flexibleManualTopUpItem)))
489
+ }, {
490
+ default: withCtx(() => [
491
+ createTextVNode(toDisplayString(unref($t)({
492
+ defaultMessage: "Enable",
493
+ id: "wallet_balance.auto_top_up_enable_button",
494
+ description: "Button to set up a wallet's automatic top-up"
495
+ })), 1)
496
+ ]),
497
+ _: 1
498
+ }))
499
+ ])
500
+ ])) : createCommentVNode("", true)
501
+ ]);
502
+ };
503
+ }
504
+ });
505
+ const _hoisted_1$a = { class: "flex flex-col gap-2" };
506
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
507
+ __name: "WalletBalances",
508
+ props: {
509
+ customerWalletBalances: {},
510
+ title: { default: void 0 },
511
+ showAutoTopUp: { type: Boolean, default: false },
512
+ showManualTopUp: { type: Boolean, default: false }
513
+ },
514
+ emits: ["top-up", "auto-top-up", "cancel-auto-top-up"],
515
+ setup(__props) {
516
+ return (_ctx, _cache) => {
517
+ return openBlock(), createBlock(_sfc_main$k, {
518
+ "no-spacing": "",
519
+ "no-border": "",
520
+ title: __props.title
521
+ }, createSlots({
522
+ default: withCtx(() => [
523
+ createElementVNode("div", _hoisted_1$a, [
524
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.customerWalletBalances, (walletBalance) => {
525
+ return openBlock(), createBlock(_sfc_main$k, {
526
+ key: walletBalance.wallet_id,
527
+ "no-spacing": ""
528
+ }, {
529
+ default: withCtx(() => [
530
+ createVNode(_sfc_main$d, {
531
+ "wallet-balance": walletBalance,
532
+ "show-auto-top-up": __props.showAutoTopUp,
533
+ "show-manual-top-up": __props.showManualTopUp,
534
+ onTopUp: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("top-up", $event)),
535
+ onAutoTopUp: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("auto-top-up", $event)),
536
+ onCancelAutoTopUp: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("cancel-auto-top-up", $event))
537
+ }, null, 8, ["wallet-balance", "show-auto-top-up", "show-manual-top-up"])
538
+ ]),
539
+ _: 2
540
+ }, 1024);
541
+ }), 128))
542
+ ])
543
+ ]),
544
+ _: 2
545
+ }, [
546
+ _ctx.$slots["heading-right"] ? {
547
+ name: "right",
548
+ fn: withCtx(() => [
549
+ renderSlot(_ctx.$slots, "heading-right")
550
+ ]),
551
+ key: "0"
552
+ } : void 0
553
+ ]), 1032, ["title"]);
554
+ };
555
+ }
556
+ });
12
557
  function createWalletsService() {
13
558
  const request = createRequestService();
14
559
  const config = useConfig();
15
560
  function getCustomerWalletBalances(customerId) {
16
- const queryParams = withExpand({ expandParams: EXPAND_ALL });
17
561
  return request({
18
- url: `${config.apiUrls.config}/portal/customers/${customerId}/wallets/balance${serializeQueryParams(queryParams)}`,
562
+ url: `${config.apiUrls.config}/portal/customers/${customerId}/wallets/balance`,
563
+ query: withExpand({ expandParams: EXPAND_ALL }),
19
564
  options: { method: "POST" },
20
565
  data: {}
21
566
  });
@@ -296,10 +841,10 @@ function useTopUpInvoicePreview({
296
841
  const logger = useLogger();
297
842
  const invoicePreview = ref();
298
843
  const isPreviewPending = ref(false);
299
- let latestRequestId = 0;
844
+ const latestGuard = createLatestGuard();
300
845
  const loadPreview = async () => {
301
846
  const scheduleId = pricingPlanScheduleId.value;
302
- const requestId = ++latestRequestId;
847
+ const isLatest = latestGuard();
303
848
  if (!scheduleId || !pricingItems.value) {
304
849
  if (pricingItems.value && !scheduleId) {
305
850
  logger.warn(
@@ -318,11 +863,11 @@ function useTopUpInvoicePreview({
318
863
  pricingPlanScheduleId: scheduleId,
319
864
  pricingItems: pricingItems.value
320
865
  });
321
- if (requestId === latestRequestId) {
866
+ if (isLatest()) {
322
867
  invoicePreview.value = invoice;
323
868
  }
324
869
  } catch (error) {
325
- if (requestId === latestRequestId) {
870
+ if (isLatest()) {
326
871
  invoicePreview.value = void 0;
327
872
  }
328
873
  logger.error(
@@ -332,7 +877,7 @@ function useTopUpInvoicePreview({
332
877
  error
333
878
  );
334
879
  } finally {
335
- if (requestId === latestRequestId) {
880
+ if (isLatest()) {
336
881
  isPreviewPending.value = false;
337
882
  }
338
883
  }
@@ -344,8 +889,8 @@ function useTopUpInvoicePreview({
344
889
  void loadPreview();
345
890
  return { invoicePreview, isPreviewPending, loadPreview };
346
891
  }
347
- const _hoisted_1$8 = { key: 0 };
348
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
892
+ const _hoisted_1$9 = { key: 0 };
893
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
349
894
  __name: "TopUpInvoicePreview",
350
895
  props: {
351
896
  pricingPlanScheduleId: { type: String },
@@ -358,13 +903,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
358
903
  const pricingItems = computed(() => props.pricingItems);
359
904
  const { invoicePreview } = useTopUpInvoicePreview({ pricingPlanScheduleId, pricingItems });
360
905
  return (_ctx, _cache) => {
361
- return openBlock(), createBlock(_sfc_main$b, {
906
+ return openBlock(), createBlock(_sfc_main$l, {
362
907
  class: "sv-top-up-invoice-preview h-[152px]",
363
908
  "data-testid": "top-up-invoice-preview-skeleton"
364
909
  }, {
365
910
  default: withCtx(() => [
366
- unref(invoicePreview) ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
367
- createVNode(unref(_sfc_main$c), { required: "" }, {
911
+ unref(invoicePreview) ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
912
+ createVNode(unref(_sfc_main$m), { required: "" }, {
368
913
  default: withCtx(() => [
369
914
  createTextVNode(toDisplayString(unref($t)({
370
915
  defaultMessage: "You will pay",
@@ -374,9 +919,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
374
919
  ]),
375
920
  _: 1
376
921
  }),
377
- createVNode(unref(_sfc_main$d), { "content-background": "none" }, {
922
+ createVNode(unref(_sfc_main$k), { "content-background": "none" }, {
378
923
  default: withCtx(() => [
379
- createVNode(unref(_sfc_main$e), {
924
+ createVNode(unref(_sfc_main$n), {
380
925
  invoice: unref(invoicePreview),
381
926
  "is-customer-facing": ""
382
927
  }, null, 8, ["invoice"])
@@ -465,8 +1010,8 @@ const toBoundQuantity = (bound, base, conversionRate, formatNumber) => {
465
1010
  }
466
1011
  return base === "CREDITS" ? formatNumber(quantity) : toMoneyQuantity(quantity);
467
1012
  };
468
- const _hoisted_1$7 = ["data-testid"];
469
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1013
+ const _hoisted_1$8 = ["data-testid"];
1014
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
470
1015
  __name: "ConvertedAmountInput",
471
1016
  props: /* @__PURE__ */ mergeModels({
472
1017
  unit: { type: String },
@@ -617,7 +1162,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
617
1162
  return void 0;
618
1163
  });
619
1164
  return (_ctx, _cache) => {
620
- return openBlock(), createBlock(unref(_sfc_main$f), {
1165
+ return openBlock(), createBlock(unref(_sfc_main$o), {
621
1166
  modelValue: enteredQuantity.value,
622
1167
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => enteredQuantity.value = $event),
623
1168
  class: "sv-converted-amount-input",
@@ -632,14 +1177,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
632
1177
  suffix: withCtx(() => [
633
1178
  createElementVNode("span", {
634
1179
  "data-testid": `${__props.name}-unit`
635
- }, toDisplayString(__props.unit), 9, _hoisted_1$7)
1180
+ }, toDisplayString(__props.unit), 9, _hoisted_1$8)
636
1181
  ]),
637
1182
  _: 2
638
1183
  }, [
639
1184
  boundsText.value ? {
640
1185
  name: "label-suffix",
641
1186
  fn: withCtx(() => [
642
- createVNode(unref(_sfc_main$g), {
1187
+ createVNode(unref(_sfc_main$h), {
643
1188
  tag: "span",
644
1189
  variant: "body-xs",
645
1190
  shade: "lighter",
@@ -657,7 +1202,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
657
1202
  helperText.value ? {
658
1203
  name: "helper",
659
1204
  fn: withCtx(() => [
660
- createVNode(unref(_sfc_main$g), {
1205
+ createVNode(unref(_sfc_main$h), {
661
1206
  tag: "span",
662
1207
  variant: "body-xs",
663
1208
  shade: "lighter",
@@ -676,7 +1221,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
676
1221
  };
677
1222
  }
678
1223
  });
679
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1224
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
680
1225
  __name: "Section",
681
1226
  props: {
682
1227
  emphasized: { type: Boolean, default: false },
@@ -702,7 +1247,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
702
1247
  return rest;
703
1248
  });
704
1249
  return (_ctx, _cache) => {
705
- return openBlock(), createBlock(unref(_sfc_main$d), mergeProps(sectionProps.value, {
1250
+ return openBlock(), createBlock(unref(_sfc_main$k), mergeProps(sectionProps.value, {
706
1251
  class: "sv-section",
707
1252
  "content-classes": contentClasses.value
708
1253
  }), createSlots({
@@ -722,8 +1267,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
722
1267
  };
723
1268
  }
724
1269
  });
725
- const _hoisted_1$6 = { class: "flex grow flex-col" };
726
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1270
+ const _hoisted_1$7 = { class: "flex grow flex-col" };
1271
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
727
1272
  __name: "AutoTopUpConfig",
728
1273
  props: {
729
1274
  config: { type: Object },
@@ -907,14 +1452,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
907
1452
  isInvalid: computed(() => validation.value.$invalid)
908
1453
  });
909
1454
  return (_ctx, _cache) => {
910
- return openBlock(), createBlock(_sfc_main$8, {
1455
+ return openBlock(), createBlock(_sfc_main$9, {
911
1456
  class: "sv-auto-topup-config",
912
1457
  "content-background": __props.contained ? "gray" : "none",
913
1458
  "no-spacing": !__props.contained,
914
1459
  "no-border": !__props.contained
915
1460
  }, {
916
1461
  default: withCtx(() => [
917
- !__props.alwaysEnabled ? (openBlock(), createBlock(unref(_sfc_main$h), {
1462
+ !__props.alwaysEnabled ? (openBlock(), createBlock(unref(_sfc_main$p), {
918
1463
  key: 0,
919
1464
  modelValue: isEnabled.value,
920
1465
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isEnabled.value = $event),
@@ -924,8 +1469,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
924
1469
  disabled: __props.disabled
925
1470
  }, {
926
1471
  "inline-label": withCtx(() => [
927
- createElementVNode("div", _hoisted_1$6, [
928
- createVNode(unref(_sfc_main$g), {
1472
+ createElementVNode("div", _hoisted_1$7, [
1473
+ createVNode(unref(_sfc_main$h), {
929
1474
  tag: "span",
930
1475
  variant: "body-sm"
931
1476
  }, {
@@ -938,7 +1483,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
938
1483
  ]),
939
1484
  _: 1
940
1485
  }),
941
- createVNode(unref(_sfc_main$g), {
1486
+ createVNode(unref(_sfc_main$h), {
942
1487
  tag: "span",
943
1488
  variant: "body-xs",
944
1489
  shade: "lighter"
@@ -956,13 +1501,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
956
1501
  ]),
957
1502
  _: 1
958
1503
  }, 8, ["modelValue", "disabled"])) : createCommentVNode("", true),
959
- createVNode(unref(_sfc_main$i), { "is-open": isEnabled.value }, {
1504
+ createVNode(unref(_sfc_main$q), { "is-open": isEnabled.value }, {
960
1505
  default: withCtx(() => [
961
1506
  isEnabled.value ? (openBlock(), createElementBlock("div", {
962
1507
  key: 0,
963
1508
  class: normalizeClass(["grid grid-cols-1 gap-3", { "mt-4": !__props.alwaysEnabled }])
964
1509
  }, [
965
- createVNode(_sfc_main$9, {
1510
+ createVNode(_sfc_main$a, {
966
1511
  modelValue: thresholdQuantity.value,
967
1512
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => thresholdQuantity.value = $event),
968
1513
  name: "auto-top-up-threshold",
@@ -981,7 +1526,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
981
1526
  id: "auto_topup_config.threshold.label"
982
1527
  })
983
1528
  }, null, 8, ["modelValue", "unit", "model-base", "entry-base", "currency", "conversion-rate", "show-conversion-hint", "disabled", "error", "label"]),
984
- createVNode(_sfc_main$9, {
1529
+ createVNode(_sfc_main$a, {
985
1530
  modelValue: topUpQuantity.value,
986
1531
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => topUpQuantity.value = $event),
987
1532
  name: "auto-top-up-amount",
@@ -1058,12 +1603,12 @@ function useWalletBalanceFormat() {
1058
1603
  const formatOpenBalance = (balanceItem) => formatValue(balanceItem == null ? void 0 : balanceItem.wallet_balance.open_balance);
1059
1604
  return { formatValue, formatOpenBalance };
1060
1605
  }
1061
- const _hoisted_1$5 = { class: "sv-top-up-form" };
1062
- const _hoisted_2$2 = { class: "grid grid-cols-1 gap-4" };
1606
+ const _hoisted_1$6 = { class: "sv-top-up-form" };
1607
+ const _hoisted_2$1 = { class: "grid grid-cols-1 gap-4" };
1063
1608
  const _hoisted_3$1 = { class: "grid grid-cols-1 gap-1" };
1064
- const _hoisted_4$1 = { class: "sv-top-up-form__option-details" };
1609
+ const _hoisted_4 = { class: "sv-top-up-form__option-details" };
1065
1610
  const _hoisted_5 = { key: 0 };
1066
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1611
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1067
1612
  __name: "TopUpModalForm",
1068
1613
  props: {
1069
1614
  topUpPricingItems: { type: null },
@@ -1310,10 +1855,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1310
1855
  selectedPaymentMethodId
1311
1856
  });
1312
1857
  return (_ctx, _cache) => {
1313
- return openBlock(), createElementBlock("form", _hoisted_1$5, [
1314
- createElementVNode("div", _hoisted_2$2, [
1858
+ return openBlock(), createElementBlock("form", _hoisted_1$6, [
1859
+ createElementVNode("div", _hoisted_2$1, [
1315
1860
  createElementVNode("div", _hoisted_3$1, [
1316
- options.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$j), {
1861
+ options.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$r), {
1317
1862
  key: 0,
1318
1863
  modelValue: selectedPricingItemId.value,
1319
1864
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selectedPricingItemId.value = $event),
@@ -1332,7 +1877,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1332
1877
  }, {
1333
1878
  label: withCtx(({ option, optionValue }) => [
1334
1879
  createElementVNode("span", null, toDisplayString(option.label), 1),
1335
- getCostLabel(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$g), {
1880
+ getCostLabel(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$h), {
1336
1881
  key: 0,
1337
1882
  tag: "span",
1338
1883
  variant: "body-sm",
@@ -1348,8 +1893,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1348
1893
  }, 1024)) : createCommentVNode("", true)
1349
1894
  ]),
1350
1895
  description: withCtx(({ option, optionValue }) => [
1351
- createElementVNode("div", _hoisted_4$1, [
1352
- option.description && !isFlexibleOption(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$g), {
1896
+ createElementVNode("div", _hoisted_4, [
1897
+ option.description && !isFlexibleOption(optionValue) ? (openBlock(), createBlock(unref(_sfc_main$h), {
1353
1898
  key: 0,
1354
1899
  tag: "span",
1355
1900
  variant: "body-xs",
@@ -1361,7 +1906,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1361
1906
  ]),
1362
1907
  _: 2
1363
1908
  }, 1024)) : createCommentVNode("", true),
1364
- flexiblePricingFor(optionValue).length > 0 ? (openBlock(), createBlock(unref(_sfc_main$i), {
1909
+ flexiblePricingFor(optionValue).length > 0 ? (openBlock(), createBlock(unref(_sfc_main$q), {
1365
1910
  key: 1,
1366
1911
  "is-open": String(optionValue) === selectedPricingItemId.value,
1367
1912
  lazy: ""
@@ -1377,7 +1922,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1377
1922
  onKeydown: _cache[2] || (_cache[2] = withModifiers(() => {
1378
1923
  }, ["stop"]))
1379
1924
  }, [
1380
- option.description ? (openBlock(), createBlock(unref(_sfc_main$g), {
1925
+ option.description ? (openBlock(), createBlock(unref(_sfc_main$h), {
1381
1926
  key: 0,
1382
1927
  tag: "span",
1383
1928
  variant: "body-xs",
@@ -1389,7 +1934,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1389
1934
  ]),
1390
1935
  _: 2
1391
1936
  }, 1024)) : createCommentVNode("", true),
1392
- createVNode(_sfc_main$9, {
1937
+ createVNode(_sfc_main$a, {
1393
1938
  modelValue: flexibleAmountQuantity.value,
1394
1939
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => flexibleAmountQuantity.value = $event),
1395
1940
  name: "top-up-amount",
@@ -1412,13 +1957,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1412
1957
  }, 8, ["modelValue", "disabled", "options", "label"])) : createCommentVNode("", true)
1413
1958
  ]),
1414
1959
  createElementVNode("div", null, [
1415
- createVNode(_sfc_main$a, {
1960
+ createVNode(_sfc_main$b, {
1416
1961
  "pricing-plan-schedule-id": pricingPlanScheduleId.value,
1417
1962
  "pricing-items": pricingItems.value
1418
1963
  }, null, 8, ["pricing-plan-schedule-id", "pricing-items"])
1419
1964
  ]),
1420
1965
  autoTopUpEditor.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
1421
- createVNode(_sfc_main$7, mergeProps({
1966
+ createVNode(_sfc_main$8, mergeProps({
1422
1967
  ref_key: "autoTopUpFormRef",
1423
1968
  ref: autoTopUpFormRef,
1424
1969
  class: "sv-top-up-form__auto-top-up"
@@ -1429,11 +1974,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1429
1974
  }), null, 16, ["disabled"])
1430
1975
  ])) : createCommentVNode("", true),
1431
1976
  createElementVNode("div", null, [
1432
- createVNode(unref(_sfc_main$k), { spacing: "xs" })
1977
+ createVNode(unref(_sfc_main$s), { spacing: "xs" })
1433
1978
  ]),
1434
1979
  createElementVNode("div", null, [
1435
1980
  renderSlot(_ctx.$slots, "payment-method", {}, () => [
1436
- createVNode(_sfc_main$l, {
1981
+ createVNode(_sfc_main$t, {
1437
1982
  modelValue: selectedPaymentMethodId.value,
1438
1983
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => selectedPaymentMethodId.value = $event),
1439
1984
  class: "sv-top-up-form__payment-methods",
@@ -1456,8 +2001,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1456
2001
  };
1457
2002
  }
1458
2003
  });
1459
- const _hoisted_1$4 = { class: "sv-top-up-success grid grid-cols-1 gap-4" };
1460
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2004
+ const _hoisted_1$5 = { class: "sv-top-up-success grid grid-cols-1 gap-4" };
2005
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1461
2006
  __name: "TopUpModalSuccess",
1462
2007
  props: {
1463
2008
  addedValue: { type: Object },
@@ -1466,13 +2011,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1466
2011
  setup(__props) {
1467
2012
  const { $t } = useIntl();
1468
2013
  return (_ctx, _cache) => {
1469
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
1470
- __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$d), {
2014
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
2015
+ __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$k), {
1471
2016
  key: 0,
1472
2017
  "content-background": "none"
1473
2018
  }, {
1474
2019
  default: withCtx(() => [
1475
- createVNode(unref(_sfc_main$g), {
2020
+ createVNode(unref(_sfc_main$h), {
1476
2021
  tag: "span",
1477
2022
  variant: "body-sm",
1478
2023
  weight: "semibold",
@@ -1487,7 +2032,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1487
2032
  ]),
1488
2033
  _: 1
1489
2034
  }),
1490
- createVNode(unref(_sfc_main$e), {
2035
+ createVNode(unref(_sfc_main$n), {
1491
2036
  invoice: __props.invoice,
1492
2037
  "is-customer-facing": ""
1493
2038
  }, null, 8, ["invoice"])
@@ -1645,10 +2190,10 @@ function useElementHeight(target) {
1645
2190
  });
1646
2191
  return height;
1647
2192
  }
1648
- const _hoisted_1$3 = ["inert"];
2193
+ const _hoisted_1$4 = ["inert"];
1649
2194
  const PANE_TRANSITION_MS = 300;
1650
2195
  const PANE_GAP = "1rem";
1651
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2196
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1652
2197
  __name: "SlidingPanes",
1653
2198
  props: {
1654
2199
  panes: { type: Array },
@@ -1706,13 +2251,103 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1706
2251
  }, [
1707
2252
  renderSlot(_ctx.$slots, pane)
1708
2253
  ], 512)
1709
- ], 8, _hoisted_1$3);
2254
+ ], 8, _hoisted_1$4);
1710
2255
  }), 128))
1711
2256
  ], 4)
1712
2257
  ], 6);
1713
2258
  };
1714
2259
  }
1715
2260
  });
2261
+ const _hoisted_1$3 = { class: "grid grid-cols-1 gap-4 pb-4" };
2262
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2263
+ __name: "WalletModalShell",
2264
+ props: {
2265
+ showModal: { type: Boolean },
2266
+ title: { type: String },
2267
+ subTitle: { type: String },
2268
+ cancelButtonText: { type: String },
2269
+ confirmButtonText: { type: String },
2270
+ isPending: { type: Boolean },
2271
+ panes: { type: Array },
2272
+ step: { type: String },
2273
+ addPaymentMethodPane: { type: String },
2274
+ customer: { type: Object },
2275
+ paymentMethodOptions: { type: Array },
2276
+ isPaymentMethodOptionsPending: { type: Boolean },
2277
+ isAddingPaymentMethod: { type: Boolean }
2278
+ },
2279
+ emits: ["confirm", "cancel", "payment-success", "payment-failed"],
2280
+ setup(__props, { expose: __expose }) {
2281
+ const props = __props;
2282
+ const paneRef = ref();
2283
+ const hostPanes = computed(() => props.panes.filter((pane) => pane !== props.addPaymentMethodPane));
2284
+ __expose({
2285
+ submit: () => {
2286
+ var _a;
2287
+ return (_a = paneRef.value) == null ? void 0 : _a.submit();
2288
+ },
2289
+ isSaving: computed(() => {
2290
+ var _a;
2291
+ return !!((_a = paneRef.value) == null ? void 0 : _a.isSaving);
2292
+ })
2293
+ });
2294
+ return (_ctx, _cache) => {
2295
+ return openBlock(), createBlock(unref(Modal), {
2296
+ "no-click-away": "",
2297
+ "show-modal": __props.showModal,
2298
+ size: "lg",
2299
+ title: __props.title,
2300
+ "sub-title": __props.subTitle,
2301
+ "cancel-button-text": __props.cancelButtonText,
2302
+ "confirm-button-text": __props.confirmButtonText,
2303
+ "is-loading": __props.isPending,
2304
+ onConfirm: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("confirm")),
2305
+ onClose: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("cancel"))
2306
+ }, createSlots({
2307
+ body: withCtx(() => [
2308
+ createElementVNode("div", _hoisted_1$3, [
2309
+ createVNode(_sfc_main$5, {
2310
+ panes: __props.panes,
2311
+ current: __props.step
2312
+ }, createSlots({
2313
+ [__props.addPaymentMethodPane]: withCtx(() => [
2314
+ createVNode(_sfc_main$u, {
2315
+ ref_key: "paneRef",
2316
+ ref: paneRef,
2317
+ customer: __props.customer,
2318
+ "payment-method-options": __props.paymentMethodOptions,
2319
+ "is-loading": __props.isPaymentMethodOptionsPending,
2320
+ "is-active": __props.isAddingPaymentMethod,
2321
+ onSuccess: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("payment-success")),
2322
+ onFailure: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
2323
+ }, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
2324
+ ]),
2325
+ _: 2
2326
+ }, [
2327
+ renderList(hostPanes.value, (pane) => {
2328
+ return {
2329
+ name: pane,
2330
+ fn: withCtx(() => [
2331
+ renderSlot(_ctx.$slots, pane)
2332
+ ])
2333
+ };
2334
+ })
2335
+ ]), 1032, ["panes", "current"])
2336
+ ])
2337
+ ]),
2338
+ _: 2
2339
+ }, [
2340
+ _ctx.$slots.footer ? {
2341
+ name: "footer",
2342
+ fn: withCtx(() => [
2343
+ renderSlot(_ctx.$slots, "footer")
2344
+ ]),
2345
+ key: "0"
2346
+ } : void 0
2347
+ ]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-loading"]);
2348
+ };
2349
+ }
2350
+ });
1716
2351
  const getActiveAutoTopUpConfig = (walletBalanceItem) => {
1717
2352
  var _a;
1718
2353
  return (((_a = walletBalanceItem == null ? void 0 : walletBalanceItem.wallet) == null ? void 0 : _a.auto_top_up_configs) ?? []).find(
@@ -1847,13 +2482,12 @@ function useSaveAutoTopUpConfig() {
1847
2482
  };
1848
2483
  return { save, isSaving };
1849
2484
  }
1850
- const _hoisted_1$2 = { class: "grid grid-cols-1 gap-4 pb-4" };
1851
- const _hoisted_2$1 = {
2485
+ const _hoisted_1$2 = {
1852
2486
  key: 0,
1853
2487
  class: "mb-4"
1854
2488
  };
1855
- const _hoisted_3 = { class: "sr-only" };
1856
- const _hoisted_4 = { class: "flex flex-col gap-2" };
2489
+ const _hoisted_2 = { class: "sr-only" };
2490
+ const _hoisted_3 = { class: "flex flex-col gap-2" };
1857
2491
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1858
2492
  __name: "TopUpModal",
1859
2493
  props: {
@@ -2021,99 +2655,86 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2021
2655
  }
2022
2656
  );
2023
2657
  return (_ctx, _cache) => {
2024
- return openBlock(), createBlock(unref(Modal), {
2025
- "no-click-away": "",
2658
+ return openBlock(), createBlock(_sfc_main$4, {
2659
+ ref_key: "addPaymentMethodRef",
2660
+ ref: addPaymentMethodRef,
2026
2661
  "show-modal": __props.showModal,
2027
- size: "lg",
2028
2662
  title: unref(title),
2029
2663
  "sub-title": unref(subTitle),
2030
2664
  "cancel-button-text": unref(cancelButtonText),
2031
2665
  "confirm-button-text": unref(confirmButtonText),
2032
- "is-loading": isPending.value,
2666
+ "is-pending": isPending.value,
2667
+ panes: unref(TOP_UP_MODAL_STEPS),
2668
+ step: step.value,
2669
+ "add-payment-method-pane": "ADD_PAYMENT_METHOD",
2670
+ customer: __props.customer,
2671
+ "payment-method-options": unref(paymentMethodOptions),
2672
+ "is-payment-method-options-pending": unref(isPaymentMethodOptionsPending),
2673
+ "is-adding-payment-method": unref(isAddingPaymentMethod),
2033
2674
  onConfirm: handleConfirm,
2034
- onClose: handleCancel
2675
+ onCancel: handleCancel,
2676
+ onPaymentSuccess: handlePaymentSuccess,
2677
+ onPaymentFailed: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
2035
2678
  }, createSlots({
2036
- body: withCtx(() => [
2037
- createElementVNode("div", _hoisted_1$2, [
2038
- createVNode(_sfc_main$4, {
2039
- panes: unref(TOP_UP_MODAL_STEPS),
2040
- current: step.value
2679
+ TOP_UP: withCtx(() => [
2680
+ hasSubscriptionChoice.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
2681
+ createVNode(unref(_sfc_main$r), {
2682
+ modelValue: selectedSubscriptionId.value,
2683
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedSubscriptionId.value = $event),
2684
+ class: "sv-topup-modal__subscription",
2685
+ name: "top-up-subscription",
2686
+ direction: "column",
2687
+ required: "",
2688
+ options: subscriptionOptions.value,
2689
+ "show-radio": false,
2690
+ label: unref($t)({
2691
+ defaultMessage: "Subscription to top up",
2692
+ description: "Label above the list of subscriptions a top-up can be charged against, in the top-up modal",
2693
+ id: "topup_modal.subscriptions.label"
2694
+ })
2041
2695
  }, {
2042
- TOP_UP: withCtx(() => [
2043
- hasSubscriptionChoice.value ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
2044
- createVNode(unref(_sfc_main$j), {
2045
- modelValue: selectedSubscriptionId.value,
2046
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedSubscriptionId.value = $event),
2047
- class: "sv-topup-modal__subscription",
2048
- name: "top-up-subscription",
2049
- direction: "column",
2050
- required: "",
2051
- options: subscriptionOptions.value,
2052
- "show-radio": false,
2053
- label: unref($t)({
2054
- defaultMessage: "Subscription to top up",
2055
- description: "Label above the list of subscriptions a top-up can be charged against, in the top-up modal",
2056
- id: "topup_modal.subscriptions.label"
2057
- })
2058
- }, {
2059
- prefix: withCtx(({ optionValue }) => [
2060
- summaryById.value[String(optionValue)] ? (openBlock(), createBlock(_sfc_main$n, {
2061
- key: 0,
2062
- class: "sv-topup-modal__subscription-option grow",
2063
- "no-spacing": "",
2064
- subscription: summaryById.value[String(optionValue)].subscription,
2065
- "enabled-pricing-ids": summaryById.value[String(optionValue)].enabledPricingIds
2066
- }, null, 8, ["subscription", "enabled-pricing-ids"])) : createCommentVNode("", true)
2067
- ]),
2068
- label: withCtx(({ option }) => [
2069
- createElementVNode("span", _hoisted_3, toDisplayString(option.label), 1)
2070
- ]),
2071
- _: 1
2072
- }, 8, ["modelValue", "options", "label"])
2073
- ])) : createCommentVNode("", true),
2074
- (openBlock(), createBlock(_sfc_main$6, {
2075
- key: topUpFormKey.value,
2076
- ref_key: "topUpFormRef",
2077
- ref: topUpFormRef,
2078
- "top-up-pricing-items": topUpPricingItems.value,
2079
- "payment-methods": __props.paymentMethods,
2080
- "auto-top-up-config": savedAutoTopUpRule.value,
2081
- "payment-method-options": unref(settledOptions),
2082
- onAddPaymentMethod: unref(openAddPaymentMethod),
2083
- onSuccess: handleTopUpSuccess,
2084
- onSaveAutoTopUp: handleSaveAutoTopUp
2085
- }, null, 8, ["top-up-pricing-items", "payment-methods", "auto-top-up-config", "payment-method-options", "onAddPaymentMethod"]))
2086
- ]),
2087
- ADD_PAYMENT_METHOD: withCtx(() => [
2088
- createVNode(_sfc_main$m, {
2089
- ref_key: "addPaymentMethodRef",
2090
- ref: addPaymentMethodRef,
2091
- customer: __props.customer,
2092
- "payment-method-options": unref(paymentMethodOptions),
2093
- "is-loading": unref(isPaymentMethodOptionsPending),
2094
- "is-active": unref(isAddingPaymentMethod),
2095
- onSuccess: handlePaymentSuccess,
2096
- onFailure: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
2097
- }, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
2098
- ]),
2099
- SUCCESS: withCtx(() => [
2100
- chargedInvoice.value ? (openBlock(), createBlock(_sfc_main$5, {
2696
+ prefix: withCtx(({ optionValue }) => [
2697
+ summaryById.value[String(optionValue)] ? (openBlock(), createBlock(_sfc_main$v, {
2101
2698
  key: 0,
2102
- "added-value": chargedValue.value,
2103
- invoice: chargedInvoice.value
2104
- }, null, 8, ["added-value", "invoice"])) : createCommentVNode("", true)
2699
+ class: "sv-topup-modal__subscription-option grow",
2700
+ "no-spacing": "",
2701
+ subscription: summaryById.value[String(optionValue)].subscription,
2702
+ "enabled-pricing-ids": summaryById.value[String(optionValue)].enabledPricingIds
2703
+ }, null, 8, ["subscription", "enabled-pricing-ids"])) : createCommentVNode("", true)
2704
+ ]),
2705
+ label: withCtx(({ option }) => [
2706
+ createElementVNode("span", _hoisted_2, toDisplayString(option.label), 1)
2105
2707
  ]),
2106
2708
  _: 1
2107
- }, 8, ["panes", "current"])
2108
- ])
2709
+ }, 8, ["modelValue", "options", "label"])
2710
+ ])) : createCommentVNode("", true),
2711
+ (openBlock(), createBlock(_sfc_main$7, {
2712
+ key: topUpFormKey.value,
2713
+ ref_key: "topUpFormRef",
2714
+ ref: topUpFormRef,
2715
+ "top-up-pricing-items": topUpPricingItems.value,
2716
+ "payment-methods": __props.paymentMethods,
2717
+ "auto-top-up-config": savedAutoTopUpRule.value,
2718
+ "payment-method-options": unref(settledOptions),
2719
+ onAddPaymentMethod: unref(openAddPaymentMethod),
2720
+ onSuccess: handleTopUpSuccess,
2721
+ onSaveAutoTopUp: handleSaveAutoTopUp
2722
+ }, null, 8, ["top-up-pricing-items", "payment-methods", "auto-top-up-config", "payment-method-options", "onAddPaymentMethod"]))
2723
+ ]),
2724
+ SUCCESS: withCtx(() => [
2725
+ chargedInvoice.value ? (openBlock(), createBlock(_sfc_main$6, {
2726
+ key: 0,
2727
+ "added-value": chargedValue.value,
2728
+ invoice: chargedInvoice.value
2729
+ }, null, 8, ["added-value", "invoice"])) : createCommentVNode("", true)
2109
2730
  ]),
2110
2731
  _: 2
2111
2732
  }, [
2112
2733
  step.value === "SUCCESS" || isTopUpUnavailable.value ? {
2113
2734
  name: "footer",
2114
2735
  fn: withCtx(() => [
2115
- createElementVNode("div", _hoisted_4, [
2116
- step.value === "SUCCESS" ? (openBlock(), createBlock(unref(_sfc_main$o), {
2736
+ createElementVNode("div", _hoisted_3, [
2737
+ step.value === "SUCCESS" ? (openBlock(), createBlock(unref(_sfc_main$i), {
2117
2738
  key: 0,
2118
2739
  size: "lg",
2119
2740
  "data-testid": "done",
@@ -2124,7 +2745,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2124
2745
  ]),
2125
2746
  _: 1
2126
2747
  })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
2127
- createVNode(unref(_sfc_main$o), {
2748
+ createVNode(unref(_sfc_main$i), {
2128
2749
  size: "lg",
2129
2750
  disabled: "",
2130
2751
  "data-testid": "confirm"
@@ -2134,7 +2755,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2134
2755
  ]),
2135
2756
  _: 1
2136
2757
  }),
2137
- createVNode(unref(_sfc_main$o), {
2758
+ createVNode(unref(_sfc_main$i), {
2138
2759
  size: "lg",
2139
2760
  color: "gray",
2140
2761
  variant: "ghost",
@@ -2151,13 +2772,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2151
2772
  ]),
2152
2773
  key: "0"
2153
2774
  } : void 0
2154
- ]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-loading"]);
2775
+ ]), 1032, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-pending", "panes", "step", "customer", "payment-method-options", "is-payment-method-options-pending", "is-adding-payment-method"]);
2155
2776
  };
2156
2777
  }
2157
2778
  });
2158
2779
  const AUTO_TOP_UP_MODAL_STEPS = ["AUTO_TOP_UP", "ADD_PAYMENT_METHOD"];
2159
- const _hoisted_1$1 = { class: "grid grid-cols-1 gap-4 pb-4" };
2160
- const _hoisted_2 = { class: "grid grid-cols-1 gap-4" };
2780
+ const _hoisted_1$1 = { class: "grid grid-cols-1 gap-4" };
2161
2781
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2162
2782
  __name: "AutoTopUpModal",
2163
2783
  props: {
@@ -2341,75 +2961,62 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2341
2961
  }
2342
2962
  );
2343
2963
  return (_ctx, _cache) => {
2344
- return openBlock(), createBlock(unref(Modal), {
2345
- "no-click-away": "",
2964
+ return openBlock(), createBlock(_sfc_main$4, {
2965
+ ref_key: "addPaymentMethodRef",
2966
+ ref: addPaymentMethodRef,
2346
2967
  "show-modal": __props.showModal,
2347
- size: "lg",
2348
2968
  title: title.value,
2349
2969
  "sub-title": subTitle.value,
2350
2970
  "cancel-button-text": cancelButtonText.value,
2351
2971
  "confirm-button-text": confirmButtonText.value,
2352
- "is-loading": isPending.value,
2972
+ "is-pending": isPending.value,
2973
+ panes: unref(AUTO_TOP_UP_MODAL_STEPS),
2974
+ step: step.value,
2975
+ "add-payment-method-pane": "ADD_PAYMENT_METHOD",
2976
+ customer: __props.customer,
2977
+ "payment-method-options": unref(paymentMethodOptions),
2978
+ "is-payment-method-options-pending": unref(isPaymentMethodOptionsPending),
2979
+ "is-adding-payment-method": unref(isAddingPaymentMethod),
2353
2980
  onConfirm: handleConfirm,
2354
- onClose: handleCancel
2981
+ onCancel: handleCancel,
2982
+ onPaymentSuccess: handlePaymentSuccess,
2983
+ onPaymentFailed: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
2355
2984
  }, {
2356
- body: withCtx(() => [
2985
+ AUTO_TOP_UP: withCtx(() => [
2357
2986
  createElementVNode("div", _hoisted_1$1, [
2358
- createVNode(_sfc_main$4, {
2359
- panes: unref(AUTO_TOP_UP_MODAL_STEPS),
2360
- current: step.value
2361
- }, {
2362
- AUTO_TOP_UP: withCtx(() => [
2363
- createElementVNode("div", _hoisted_2, [
2364
- autoTopUpEditor.value ? (openBlock(), createBlock(_sfc_main$7, mergeProps({
2365
- key: formKey.value,
2366
- ref_key: "autoTopUpFormRef",
2367
- ref: autoTopUpFormRef,
2368
- class: "sv-auto-topup-modal__rule"
2369
- }, autoTopUpEditor.value, {
2370
- config: savedRule.value,
2371
- "always-enabled": "",
2372
- disabled: isPending.value
2373
- }), null, 16, ["config", "disabled"])) : createCommentVNode("", true),
2374
- createVNode(_sfc_main$a, {
2375
- "pricing-plan-schedule-id": previewScheduleId.value,
2376
- "pricing-items": previewPricingItems.value
2377
- }, null, 8, ["pricing-plan-schedule-id", "pricing-items"]),
2378
- createVNode(_sfc_main$l, {
2379
- modelValue: selectedPaymentMethodId.value,
2380
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedPaymentMethodId.value = $event),
2381
- class: "sv-auto-topup-modal__payment-method",
2382
- "payment-methods": unref(sortedPaymentMethods),
2383
- "payment-method-options": unref(settledOptions),
2384
- disabled: isPending.value,
2385
- error: unref(validation).paymentMethodId.$errors,
2386
- label: unref($t)({
2387
- defaultMessage: "Pay automatic top-ups with",
2388
- description: "Label above the payment method an automatic top-up is charged to",
2389
- id: "auto_topup_modal.payment_method.label"
2390
- }),
2391
- onAddPaymentMethod: unref(openAddPaymentMethod)
2392
- }, null, 8, ["modelValue", "payment-methods", "payment-method-options", "disabled", "error", "label", "onAddPaymentMethod"])
2393
- ])
2394
- ]),
2395
- ADD_PAYMENT_METHOD: withCtx(() => [
2396
- createVNode(_sfc_main$m, {
2397
- ref_key: "addPaymentMethodRef",
2398
- ref: addPaymentMethodRef,
2399
- customer: __props.customer,
2400
- "payment-method-options": unref(paymentMethodOptions),
2401
- "is-loading": unref(isPaymentMethodOptionsPending),
2402
- "is-active": unref(isAddingPaymentMethod),
2403
- onSuccess: handlePaymentSuccess,
2404
- onFailure: _cache[1] || (_cache[1] = (error) => _ctx.$emit("payment-failed", error))
2405
- }, null, 8, ["customer", "payment-method-options", "is-loading", "is-active"])
2406
- ]),
2407
- _: 1
2408
- }, 8, ["panes", "current"])
2987
+ autoTopUpEditor.value ? (openBlock(), createBlock(_sfc_main$8, mergeProps({
2988
+ key: formKey.value,
2989
+ ref_key: "autoTopUpFormRef",
2990
+ ref: autoTopUpFormRef,
2991
+ class: "sv-auto-topup-modal__rule"
2992
+ }, autoTopUpEditor.value, {
2993
+ config: savedRule.value,
2994
+ "always-enabled": "",
2995
+ disabled: isPending.value
2996
+ }), null, 16, ["config", "disabled"])) : createCommentVNode("", true),
2997
+ createVNode(_sfc_main$b, {
2998
+ "pricing-plan-schedule-id": previewScheduleId.value,
2999
+ "pricing-items": previewPricingItems.value
3000
+ }, null, 8, ["pricing-plan-schedule-id", "pricing-items"]),
3001
+ createVNode(_sfc_main$t, {
3002
+ modelValue: selectedPaymentMethodId.value,
3003
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedPaymentMethodId.value = $event),
3004
+ class: "sv-auto-topup-modal__payment-method",
3005
+ "payment-methods": unref(sortedPaymentMethods),
3006
+ "payment-method-options": unref(settledOptions),
3007
+ disabled: isPending.value,
3008
+ error: unref(validation).paymentMethodId.$errors,
3009
+ label: unref($t)({
3010
+ defaultMessage: "Pay automatic top-ups with",
3011
+ description: "Label above the payment method an automatic top-up is charged to",
3012
+ id: "auto_topup_modal.payment_method.label"
3013
+ }),
3014
+ onAddPaymentMethod: unref(openAddPaymentMethod)
3015
+ }, null, 8, ["modelValue", "payment-methods", "payment-method-options", "disabled", "error", "label", "onAddPaymentMethod"])
2409
3016
  ])
2410
3017
  ]),
2411
3018
  _: 1
2412
- }, 8, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-loading"]);
3019
+ }, 8, ["show-modal", "title", "sub-title", "cancel-button-text", "confirm-button-text", "is-pending", "panes", "step", "customer", "payment-method-options", "is-payment-method-options-pending", "is-adding-payment-method"]);
2413
3020
  };
2414
3021
  }
2415
3022
  });
@@ -2525,7 +3132,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2525
3132
  }, {
2526
3133
  body: withCtx(() => [
2527
3134
  createElementVNode("div", _hoisted_1, [
2528
- createVNode(unref(_sfc_main$g), {
3135
+ createVNode(unref(_sfc_main$h), {
2529
3136
  variant: "body-sm",
2530
3137
  shade: "lighter",
2531
3138
  tag: "p",
@@ -2536,7 +3143,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2536
3143
  ]),
2537
3144
  _: 1
2538
3145
  }),
2539
- hasFailed.value ? (openBlock(), createBlock(unref(_sfc_main$p), {
3146
+ hasFailed.value ? (openBlock(), createBlock(unref(_sfc_main$w), {
2540
3147
  key: 0,
2541
3148
  class: "sv-auto-topup-cancellation-modal__error sv-error",
2542
3149
  title: unref($t)({
@@ -2583,20 +3190,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2583
3190
  const showAutoTopUpCancellation = computed(() => !!cancellingAutoTopUpConfig.value);
2584
3191
  return (_ctx, _cache) => {
2585
3192
  return openBlock(), createElementBlock(Fragment, null, [
2586
- __props.isLoading ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
3193
+ __props.isLoading ? (openBlock(), createBlock(_sfc_main$l, mergeProps({
2587
3194
  key: 0,
2588
3195
  variant: "section"
2589
3196
  }, _ctx.$attrs, {
2590
3197
  class: "sv-wallet-balances sv-root sv-component sv-loading min-h-48",
2591
3198
  "data-testid": "customer-wallet-balances-skeleton"
2592
- }), null, 16)) : __props.hasError ? (openBlock(), createBlock(unref(_sfc_main$p), mergeProps({ key: 1 }, _ctx.$attrs, {
3199
+ }), null, 16)) : __props.hasError ? (openBlock(), createBlock(unref(_sfc_main$w), mergeProps({ key: 1 }, _ctx.$attrs, {
2593
3200
  class: "sv-wallet-balances sv-root sv-component sv-error",
2594
3201
  title: unref($t)({
2595
3202
  defaultMessage: "Could not load wallet balances",
2596
3203
  description: "Error shown when wallet balances fail to load",
2597
3204
  id: "wallet_balance.load_failed"
2598
3205
  })
2599
- }), null, 16, ["title"])) : __props.walletBalances.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$q), mergeProps({ key: 2 }, _ctx.$attrs, {
3206
+ }), null, 16, ["title"])) : __props.walletBalances.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$c), mergeProps({ key: 2 }, _ctx.$attrs, {
2600
3207
  class: "sv-wallet-balances sv-root sv-component",
2601
3208
  "customer-wallet-balances": __props.walletBalances,
2602
3209
  "show-auto-top-up": "",