@solvimon/solvimon-web 0.1.0-alpha.2 → 0.1.0-alpha.20

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 (724) hide show
  1. package/README.md +244 -49
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs +240 -0
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +1 -0
  4. package/dist/Amount.vue.es-BO5sS1UX.mjs +25 -0
  5. package/dist/Amount.vue.es-JDVa_3H-.js +1 -0
  6. package/dist/Avatar.vue.es-BGTZSAqU.js +1 -0
  7. package/dist/Avatar.vue.es-DJzJiYtv.mjs +91 -0
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DQAp1xwu.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs} +23 -13
  9. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js +1 -0
  10. package/dist/Button.vue.es-Cm9pLU9i.mjs +421 -0
  11. package/dist/Button.vue.es-O8mNivLL.js +1 -0
  12. package/dist/Chip.vue.es-BBmn-qJp.mjs +120 -0
  13. package/dist/Chip.vue.es-DmCjC1hi.js +1 -0
  14. package/dist/Comparators.vue.es-CYfxd5H-.mjs +120 -0
  15. package/dist/Comparators.vue.es-DK8wGjxM.js +1 -0
  16. package/dist/ContentWithAsideLayout-DHpnJfGA.js +1 -0
  17. package/dist/ContentWithAsideLayout-Dy9xgxuF.mjs +39 -0
  18. package/dist/ContextMenu.vue.es-CTc1ktXb.mjs +681 -0
  19. package/dist/ContextMenu.vue.es-DaW0yp4Y.js +1 -0
  20. package/dist/CustomerBillingInformation.vue.es-BX0Da7Kr.js +1 -0
  21. package/dist/CustomerBillingInformation.vue.es-CMZO8oLj.mjs +175 -0
  22. package/dist/CustomerPaymentMethods.lib-BKgQTCtc.js +1 -0
  23. package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +4 -0
  24. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +1 -0
  25. package/dist/{useCustomerPaymentMethodOptions-BzEquyUV.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs} +43 -62
  26. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs +3264 -0
  27. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +1 -0
  28. package/dist/Divider.vue.es-ClFG8QtG.js +1 -0
  29. package/dist/Divider.vue.es-wKkIVBgb.mjs +24 -0
  30. package/dist/DividerText.vue.es-CeAHAe_Y.mjs +72 -0
  31. package/dist/DividerText.vue.es-DjT4i_YD.js +1 -0
  32. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs +562 -0
  33. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js +1 -0
  34. package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +38 -0
  35. package/dist/ErrorNotification.vue.es-CaEFTi2k.js +1 -0
  36. package/dist/Expand.vue.es-C-lnbA1v.js +1 -0
  37. package/dist/Expand.vue.es-C4_XmqbR.mjs +50 -0
  38. package/dist/FormMessage.vue.es-Bd4_NG9H.js +1 -0
  39. package/dist/FormMessage.vue.es-C3oxwq_8.mjs +46 -0
  40. package/dist/IconButton.vue.es-BHdQskx0.js +1 -0
  41. package/dist/IconButton.vue.es-KywqWWvr.mjs +228 -0
  42. package/dist/IconTitle.vue.es-BmjBdZb_.mjs +107 -0
  43. package/dist/IconTitle.vue.es-D9Wc3PIq.js +1 -0
  44. package/dist/Input.vue.es-DqKJhFTr.js +1 -0
  45. package/dist/Input.vue.es-WZGF8dfr.mjs +251 -0
  46. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-D0ie9Krt.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs} +21 -9
  47. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js +1 -0
  48. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs +49 -0
  49. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js +1 -0
  50. package/dist/InvoiceSummary.vue.es-BI5sD_8F.mjs +2944 -0
  51. package/dist/InvoiceSummary.vue.es-BWYIHezU.js +1 -0
  52. package/dist/Modal.vue.es-B_1aqm_m.js +1 -0
  53. package/dist/Modal.vue.es-qdUHDOnU.mjs +483 -0
  54. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +1 -0
  55. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs +154 -0
  56. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs +54 -0
  57. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js +1 -0
  58. package/dist/PaymentHistoryBlock-CgNUV8Gy.mjs +4 -0
  59. package/dist/PaymentHistoryBlock-Ci8aSJeb.js +1 -0
  60. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +1 -0
  61. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DVDOsMnT.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs} +34 -23
  62. package/dist/PaymentIntegrationForm-CLokpXvK.mjs +4 -0
  63. package/dist/PaymentIntegrationForm-CsuueDE0.js +1 -0
  64. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs +167 -0
  65. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +1 -0
  66. package/dist/PaymentIntegrationFormAdyen-C885o8IE.mjs +699 -0
  67. package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +1 -0
  68. package/dist/PaymentIntegrationFormStripe-BjMdJmDC.mjs +547 -0
  69. package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +1 -0
  70. package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +1 -0
  71. package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +677 -0
  72. package/dist/PaymentMethodForm-IEuDxEPN.mjs +4 -0
  73. package/dist/PaymentMethodForm-hZuVHAti.js +1 -0
  74. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +1 -0
  75. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs +172 -0
  76. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +1 -0
  77. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs +189 -0
  78. package/dist/PricingGroupRangeInput.vue.es-ButaePib.mjs +632 -0
  79. package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +1 -0
  80. package/dist/Section.vue.es-CAJvEDn6.js +1 -0
  81. package/dist/Section.vue.es-DX_9ueCG.mjs +79 -0
  82. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +1 -0
  83. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs +1044 -0
  84. package/dist/{Skeleton.vue_vue_type_script_setup_true_lang-C-taYlG4.mjs → Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs} +23 -8
  85. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +1 -0
  86. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +1 -0
  87. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs +6171 -0
  88. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs +101 -0
  89. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +1 -0
  90. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +1 -0
  91. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-Bp5RvQVS.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs} +61 -125
  92. package/dist/TooltipParagraph.vue.es-C5RTcrid.mjs +136 -0
  93. package/dist/TooltipParagraph.vue.es-H9fI7zzt.js +1 -0
  94. package/dist/TrialChip.vue.es-B1puKyR-.mjs +56 -0
  95. package/dist/TrialChip.vue.es-CCs50m02.js +1 -0
  96. package/dist/accel.svg.es-CE5tIWtm.mjs +4 -0
  97. package/dist/accel.svg.es-Dt_1wJmV.js +1 -0
  98. package/dist/ach.svg.es-B4tn0_IV.js +1 -0
  99. package/dist/ach.svg.es-D4QPcIU-.mjs +4 -0
  100. package/dist/adyen-51SvcyqV.mjs +4 -0
  101. package/dist/adyen-BXi_D9TQ.mjs +123 -0
  102. package/dist/adyen-DZsyEXkw.js +1 -0
  103. package/dist/adyen-VS2sDW0m.js +1 -0
  104. package/dist/amazon-pay.svg.es-B428S4f3.js +1 -0
  105. package/dist/amazon-pay.svg.es-DUScOW15.mjs +4 -0
  106. package/dist/amex.svg.es-BCXkaVLN.mjs +4 -0
  107. package/dist/amex.svg.es-Bn9e31C3.js +1 -0
  108. package/dist/api.es-C5pe8LUl.mjs +62 -0
  109. package/dist/api.es-Czekkp_X.js +1 -0
  110. package/dist/apple-pay.svg.es-Cfgn0K28.js +1 -0
  111. package/dist/apple-pay.svg.es-DlCfkt39.mjs +4 -0
  112. package/dist/bacs.svg.es-BKsvSeIP.mjs +4 -0
  113. package/dist/bacs.svg.es-hL7hLPkQ.js +1 -0
  114. package/dist/bancontact.svg.es-BbRqGgZ9.mjs +4 -0
  115. package/dist/bancontact.svg.es-DU2ejvNL.js +1 -0
  116. package/dist/carnet.svg.es-C5SFaOsa.js +1 -0
  117. package/dist/carnet.svg.es-Db-KEb13.mjs +4 -0
  118. package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +4 -0
  119. package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +1 -0
  120. package/dist/cashapp.svg.es-CnS5r_D8.mjs +4 -0
  121. package/dist/cashapp.svg.es-DE4vMu_p.js +1 -0
  122. package/dist/cn.es-BEU5D0Wz.mjs +3298 -0
  123. package/dist/cn.es-DxSeYcoP.js +1 -0
  124. package/dist/comparators.es-9VsCB-JI.mjs +175 -0
  125. package/dist/comparators.es-wrKHduVq.js +1 -0
  126. package/dist/component-BG6DmXcy.mjs +9 -0
  127. package/dist/component-hDuDTBt5.js +1 -0
  128. package/dist/components/BillingInformation/BillingInformation.ce.d.ts +1 -3
  129. package/dist/components/BillingInformation/BillingInformation.cjs +1 -0
  130. package/dist/components/BillingInformation/{BillingInformation.es.js → BillingInformation.mjs} +26 -34
  131. package/dist/components/BillingInformationForm/BillingInformationForm.ce.d.ts +1 -3
  132. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -0
  133. package/dist/components/BillingInformationForm/{BillingInformationForm.es.js → BillingInformationForm.mjs} +68 -154
  134. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.ce.d.ts +1 -3
  135. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -0
  136. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +95 -0
  137. package/dist/components/Invoice/Invoice.ce.d.ts +1 -3
  138. package/dist/components/Invoice/Invoice.cjs +1 -0
  139. package/dist/components/Invoice/{Invoice.es.js → Invoice.mjs} +133 -180
  140. package/dist/components/InvoiceDetails/InvoiceDetails.ce.d.ts +1 -3
  141. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -0
  142. package/dist/components/InvoiceDetails/{InvoiceDetails.es.js → InvoiceDetails.mjs} +17 -29
  143. package/dist/components/InvoiceHeader/InvoiceHeader.ce.d.ts +1 -0
  144. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -0
  145. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +73 -0
  146. package/dist/components/InvoicesList/InvoicesList.ce.d.ts +1 -3
  147. package/dist/components/InvoicesList/InvoicesList.cjs +1 -0
  148. package/dist/components/InvoicesList/{InvoicesList.es.js → InvoicesList.mjs} +21 -29
  149. package/dist/components/PaymentHistory/PaymentHistory.ce.d.ts +1 -3
  150. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -0
  151. package/dist/components/PaymentHistory/{PaymentHistory.es.js → PaymentHistory.mjs} +17 -29
  152. package/dist/components/PaymentMethodForm/PaymentMethodForm.ce.d.ts +1 -3
  153. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -0
  154. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +108 -0
  155. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.ce.d.ts +1 -3
  156. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -0
  157. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +93 -0
  158. package/dist/components/SubscriptionsList/SubscriptionsList.ce.d.ts +1 -3
  159. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -0
  160. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +103 -0
  161. package/dist/components/WalletBalances/WalletBalances.ce.d.ts +1 -3
  162. package/dist/components/WalletBalances/WalletBalances.cjs +1 -0
  163. package/dist/components/WalletBalances/{WalletBalances.es.js → WalletBalances.mjs} +38 -34
  164. package/dist/configuration-BjYwV4_B.js +1 -0
  165. package/dist/configuration-CD8cOXAJ.mjs +15 -0
  166. package/dist/core/action-request.types.d.ts +1 -58
  167. package/dist/core/configuration.d.ts +1 -3
  168. package/dist/core/index.cjs +1 -0
  169. package/dist/core/index.d.ts +1 -10
  170. package/dist/core/index.mjs +197 -0
  171. package/dist/core/registry.ce.d.ts +1 -2
  172. package/dist/core/registry.d.ts +1 -6
  173. package/dist/core/types.d.ts +1 -111
  174. package/dist/countryData.es--zJAd6LA.mjs +252 -0
  175. package/dist/countryData.es-D3MFzU92.js +1 -0
  176. package/dist/customElements-B-89a5oH.mjs +6810 -0
  177. package/dist/customElements-DD7bpqkx.js +1 -0
  178. package/dist/customer-DozNwS_a.js +1 -0
  179. package/dist/customer-Dzj1g9lV.mjs +32 -0
  180. package/dist/customer.es-C_vSWcVA.mjs +30 -0
  181. package/dist/customer.es-D42Md24r.js +1 -0
  182. package/dist/dana.svg.es-Bbn6_ktN.mjs +4 -0
  183. package/dist/dana.svg.es-DKZaseoJ.js +1 -0
  184. package/dist/dankort.svg.es-D8FgSiFf.js +1 -0
  185. package/dist/dankort.svg.es-DtAdliQq.mjs +4 -0
  186. package/dist/de-DE-BeyQVhTv.mjs +299 -0
  187. package/dist/de-DE-BvHD68Ay.js +1 -0
  188. package/dist/de-DE-CI2zQkiP.mjs +266 -0
  189. package/dist/de-DE-_40QfLNJ.js +1 -0
  190. package/dist/diners.svg.es-DhchsD1D.mjs +4 -0
  191. package/dist/diners.svg.es-SydF_H-Z.js +1 -0
  192. package/dist/discover.svg.es-B8vgzVNG.js +1 -0
  193. package/dist/discover.svg.es-BnqYPvnV.mjs +4 -0
  194. package/dist/eftpos.svg.es-DO0YPaY1.js +1 -0
  195. package/dist/eftpos.svg.es-DRLaafYa.mjs +4 -0
  196. package/dist/elo.svg.es-CTOm1rvj.js +1 -0
  197. package/dist/elo.svg.es-CgkEOP_O.mjs +4 -0
  198. package/dist/en-US--NRsi7Hz.js +1 -0
  199. package/dist/en-US-5YWNEi-V.mjs +299 -0
  200. package/dist/en-US-DksUWPIu.mjs +266 -0
  201. package/dist/en-US-dqfKx3GS.js +1 -0
  202. package/dist/eps.svg.es-CApyGjyU.js +1 -0
  203. package/dist/eps.svg.es-D6IHsRYP.mjs +4 -0
  204. package/dist/error-Cg-i7gGl.js +1 -0
  205. package/dist/error-DY_I2hPx.mjs +13 -0
  206. package/dist/floating-ui.vue.es-Bv94BfDm.js +1 -0
  207. package/dist/floating-ui.vue.es-DWY7pdz8.mjs +1573 -0
  208. package/dist/formatting.es-DBtYnvI5.js +1 -0
  209. package/dist/formatting.es-eYgXv_AK.mjs +70 -0
  210. package/dist/gcash.svg.es-BhJ-eA2z.mjs +4 -0
  211. package/dist/gcash.svg.es-JaL4fpZr.js +1 -0
  212. package/dist/getComposedString.es-CELkn0I7.mjs +14 -0
  213. package/dist/getComposedString.es-DvSNX-_z.js +1 -0
  214. package/dist/getCountryNameByCode.es-fP52nO_7.js +1 -0
  215. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +8 -0
  216. package/dist/girocard.svg.es-D_3LML4l.mjs +4 -0
  217. package/dist/girocard.svg.es-tVgtT23w.js +1 -0
  218. package/dist/go-pay.svg.es-6UtgwVBA.mjs +4 -0
  219. package/dist/go-pay.svg.es-fYX6yMzJ.js +1 -0
  220. package/dist/google-pay.svg.es-BYXX1em8.js +1 -0
  221. package/dist/google-pay.svg.es-CRxXgFVl.mjs +4 -0
  222. package/dist/hipercard.svg.es-Ct1-mF9F.mjs +4 -0
  223. package/dist/hipercard.svg.es-D-nmiFXB.js +1 -0
  224. package/dist/icon-sprite.svg.es-BpwT0GQ5.js +1 -0
  225. package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +4 -0
  226. package/dist/ideal.svg.es-D23EhJJ2.mjs +4 -0
  227. package/dist/ideal.svg.es-DXtHE0Jb.js +1 -0
  228. package/dist/index-Cai7laNY.mjs +1069 -0
  229. package/dist/index-DIFK3mcJ.js +6 -0
  230. package/dist/index-DyvRdSR7.mjs +9673 -0
  231. package/dist/index-IZaUTAsE.js +1 -0
  232. package/dist/index.cjs +1 -0
  233. package/dist/index.d.ts +1 -15
  234. package/dist/index.es-2JWHHSgP.js +1 -0
  235. package/dist/index.es-D5xOw_SJ.mjs +542 -0
  236. package/dist/index.mjs +42 -0
  237. package/dist/invoices-1oYkdQQV.mjs +121 -0
  238. package/dist/invoices-BAoh6X2a.js +1 -0
  239. package/dist/it-IT-B6blp8MI.mjs +299 -0
  240. package/dist/it-IT-CEP3oeWs.js +1 -0
  241. package/dist/it-IT-CMy1tHKZ.mjs +266 -0
  242. package/dist/it-IT-aPQY57ht.js +1 -0
  243. package/dist/jcb.svg.es-Bz6J-c0s.js +1 -0
  244. package/dist/jcb.svg.es-CcH08OoO.mjs +4 -0
  245. package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +4 -0
  246. package/dist/kakao-pay.svg.es-qVTABboW.js +1 -0
  247. package/dist/klarna.svg.es-Clu-7zkp.js +1 -0
  248. package/dist/klarna.svg.es-DfIPX0gr.mjs +4 -0
  249. package/dist/maestro.svg.es-CVmNVokN.mjs +4 -0
  250. package/dist/maestro.svg.es-e8E_H2QU.js +1 -0
  251. package/dist/mastercard.svg.es-B8z0ZySS.mjs +4 -0
  252. package/dist/mastercard.svg.es-YO3_jGD6.js +1 -0
  253. package/dist/momo.svg.es-BXTQlQRy.js +1 -0
  254. package/dist/momo.svg.es-Bm5zCTOT.mjs +4 -0
  255. package/dist/nl-NL-CckNM7R9.mjs +266 -0
  256. package/dist/nl-NL-CjoW8r_M.mjs +314 -0
  257. package/dist/nl-NL-e_vf6OuT.js +1 -0
  258. package/dist/nl-NL-zRUAuEHg.js +1 -0
  259. package/dist/nyce.svg.es-CgurqLKH.mjs +4 -0
  260. package/dist/nyce.svg.es-DM6esO47.js +1 -0
  261. package/dist/object.es-DFXiU9p3.js +1 -0
  262. package/dist/object.es-jvvnR8Kr.mjs +12 -0
  263. package/dist/open-banking.svg.es-DUM360xB.js +1 -0
  264. package/dist/open-banking.svg.es-DzzLCVp_.mjs +4 -0
  265. package/dist/paymentMethods-CZ3ydybI.js +1 -0
  266. package/dist/{paymentMethods-CqKUfc3w.mjs → paymentMethods-DIV78w0O.mjs} +31 -18
  267. package/dist/payments--lkjiwCt.js +1 -0
  268. package/dist/{payments-CosaPZwo.mjs → payments-Cvqdrprv.mjs} +1 -1
  269. package/dist/paypal.svg.es-BdkNTf3c.js +1 -0
  270. package/dist/paypal.svg.es-DltWzW4V.mjs +4 -0
  271. package/dist/pricing-3W7XLwL6.js +1 -0
  272. package/dist/pricing-CJxS2hr2.mjs +17 -0
  273. package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +107 -0
  274. package/dist/pricingItemConfigs.es-C73cQlxQ.js +1 -0
  275. package/dist/pricingPlanSchedule-B9HFiXy-.js +1 -0
  276. package/dist/pricingPlanSchedule-CXG3CQ61.mjs +146 -0
  277. package/dist/pulse.svg.es-BdpWAuIN.js +1 -0
  278. package/dist/pulse.svg.es-BecAwT-p.mjs +4 -0
  279. package/dist/screens/Checkout/Checkout.ce.d.ts +1 -3
  280. package/dist/screens/Checkout/Checkout.cjs +1 -0
  281. package/dist/screens/Checkout/{Checkout.es.js → Checkout.mjs} +1531 -1434
  282. package/dist/screens/CustomerOverview/CustomerOverview.ce.d.ts +1 -3
  283. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -0
  284. package/dist/screens/CustomerOverview/CustomerOverview.mjs +175 -0
  285. package/dist/screens/PayInvoice/PayInvoice.ce.d.ts +1 -0
  286. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -0
  287. package/dist/screens/PayInvoice/PayInvoice.mjs +582 -0
  288. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.ce.d.ts +1 -0
  289. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -0
  290. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +227 -0
  291. package/dist/screens/SubscriptionDetails/SubscriptionDetails.ce.d.ts +1 -0
  292. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -0
  293. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +882 -0
  294. package/dist/screens/SubscriptionManagement/SubscriptionManagement.ce.d.ts +1 -0
  295. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -0
  296. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +707 -0
  297. package/dist/sepa.svg.es-BF8PYKZg.js +1 -0
  298. package/dist/sepa.svg.es-cbE9g8gV.mjs +4 -0
  299. package/dist/slots.es-BpwYO3A3.mjs +18 -0
  300. package/dist/slots.es-Dq1PTUOv.js +1 -0
  301. package/dist/sorting.es-CjTrRfSW.mjs +105 -0
  302. package/dist/sorting.es-RyvcgbSL.js +1 -0
  303. package/dist/star.svg.es-DsCD-tSp.mjs +4 -0
  304. package/dist/star.svg.es-Q50IzqXr.js +1 -0
  305. package/dist/subscription-C41lG-rH.mjs +89 -0
  306. package/dist/subscription-b0OPx8Du.js +1 -0
  307. package/dist/subscriptions-300o4ae0.js +1 -0
  308. package/dist/subscriptions-DcMHBPVJ.mjs +58 -0
  309. package/dist/trustly.svg.es-C0Ou1HWk.mjs +4 -0
  310. package/dist/trustly.svg.es-CHojqNqm.js +1 -0
  311. package/dist/twint.svg.es-CQ-ZDfy8.js +1 -0
  312. package/dist/twint.svg.es-WrZYquRs.mjs +4 -0
  313. package/dist/typeGuards.es-C4nR5FkL.js +1 -0
  314. package/dist/typeGuards.es-fwUoeMCe.mjs +12 -0
  315. package/dist/types/components/InvoiceTable/InvoiceTable.types.d.ts +19 -0
  316. package/dist/types/components/checkout/CheckoutTitle.types.d.ts +10 -0
  317. package/dist/types/components/checkout/EmptyStatePlaceholder.types.d.ts +4 -0
  318. package/dist/types/components/checkout/PromotionCodeSection.types.d.ts +8 -0
  319. package/dist/types/components/customer/BillingInformationForm/BillingInformationForm.types.d.ts +24 -0
  320. package/dist/types/components/customer/CheckoutForm/CheckoutForm.types.d.ts +32 -0
  321. package/dist/types/components/customer/CustomerPaymentMethodsBlock/CustomerPaymentMethodsBlock.types.d.ts +12 -0
  322. package/dist/types/components/payments/AddPaymentMethodModal/AddPaymentMethodModal.types.d.ts +14 -0
  323. package/dist/types/components/payments/AddPaymentMethodPane/AddPaymentMethodPane.types.d.ts +19 -0
  324. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethod.types.d.ts +74 -0
  325. package/dist/types/components/payments/ExpressPaymentMethod/ExpressPaymentMethodApplePay.types.d.ts +9 -0
  326. package/dist/types/components/payments/ExpressPaymentMethodButton/ExpressPaymentMethodButton.types.d.ts +3 -0
  327. package/dist/types/components/payments/ExpressPaymentMethods/ExpressPaymentMethods.types.d.ts +21 -0
  328. package/dist/types/components/payments/PayButton/PayButton.types.d.ts +10 -0
  329. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +5 -0
  330. package/dist/types/components/payments/PaymentErrorCard/PaymentErrorCard.types.d.ts +4 -0
  331. package/dist/types/components/payments/PaymentFeedbackCard/PaymentFeedbackCard.types.d.ts +4 -0
  332. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +74 -0
  333. package/dist/types/components/payments/PaymentIntegrationFormAdyen/PaymentIntegrationFormAdyen.types.d.ts +6 -0
  334. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripe.types.d.ts +7 -0
  335. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +61 -0
  336. package/dist/types/components/payments/PaymentMethodSelector/PaymentMethodSelector.types.d.ts +53 -0
  337. package/dist/types/components/payments/PaymentMethodsList/PaymentMethodsList.types.d.ts +8 -0
  338. package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
  339. package/dist/types/components/payments/SubscriptionPaymentCompletedCard/SubscriptionPaymentCompletedCard.types.d.ts +3 -0
  340. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.d.ts +4 -0
  341. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.lib.types.d.ts +3 -0
  342. package/dist/types/components/providers/ActionDispatchProvider/ActionDispatchProvider.vue.d.ts +17 -0
  343. package/dist/types/components/providers/ActionDispatchProvider/composables/useActionDispatchProvider.d.ts +3 -0
  344. package/dist/types/components/providers/AuthProvider/AuthProvider.lib.d.ts +5 -0
  345. package/dist/types/components/providers/AuthProvider/AuthProvider.types.d.ts +8 -0
  346. package/dist/types/components/providers/AuthProvider/AuthProvider.vue.d.ts +18 -0
  347. package/dist/types/components/providers/AuthProvider/composables/useAuth.d.ts +3 -0
  348. package/dist/types/components/providers/AuthProvider/index.d.ts +3 -0
  349. package/dist/types/components/providers/ConfigProvider/ConfigProvider.lib.d.ts +5 -0
  350. package/dist/types/components/providers/ConfigProvider/ConfigProvider.types.d.ts +9 -0
  351. package/dist/types/components/providers/ConfigProvider/ConfigProvider.vue.d.ts +18 -0
  352. package/dist/types/components/providers/ConfigProvider/composables/useConfig.d.ts +3 -0
  353. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.types.d.ts +3 -0
  354. package/dist/types/components/providers/CssOverridesProvider/CssOverridesProvider.vue.d.ts +18 -0
  355. package/dist/types/components/providers/EntryProvider/EntryProvider.types.d.ts +10 -0
  356. package/dist/types/components/providers/EntryProvider/EntryProvider.vue.d.ts +22 -0
  357. package/dist/types/components/providers/ErrorBoundary/ErrorBoundary.vue.d.ts +17 -0
  358. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.lib.d.ts +5 -0
  359. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.types.d.ts +4 -0
  360. package/dist/types/components/providers/ExperimentalFeatureProvider/ExperimentalFeatureProvider.vue.d.ts +18 -0
  361. package/dist/types/components/providers/ExperimentalFeatureProvider/composables/useExperimentalFeature.d.ts +1 -0
  362. package/dist/types/components/providers/HostElementProvider/HostElementProvider.lib.d.ts +12 -0
  363. package/dist/types/components/providers/HostElementProvider/HostElementProvider.types.d.ts +3 -0
  364. package/dist/types/components/providers/HostElementProvider/HostElementProvider.vue.d.ts +18 -0
  365. package/dist/types/components/providers/HostElementProvider/composables/useHostElementProvider.d.ts +1 -0
  366. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +32 -0
  367. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +70 -0
  368. package/dist/types/components/providers/LoggerProvider/LoggerProvider.vue.d.ts +20 -0
  369. package/dist/types/components/providers/LoggerProvider/composables/useLogger.d.ts +6 -0
  370. package/dist/types/components/providers/PortalProvider/PortalProvider.lib.d.ts +7 -0
  371. package/dist/types/components/providers/PortalProvider/PortalProvider.types.d.ts +11 -0
  372. package/dist/types/components/providers/PortalProvider/PortalProvider.vue.d.ts +18 -0
  373. package/dist/types/components/providers/PortalProvider/composables/usePortal.d.ts +3 -0
  374. package/dist/types/components/providers/Provider/Provider.types.d.ts +15 -0
  375. package/dist/types/components/providers/Provider/Provider.vue.d.ts +21 -0
  376. package/dist/types/components/providers/TeleportProvider/TeleportProvider.vue.d.ts +17 -0
  377. package/dist/types/components/providers/TranslationProvider/TranslationOverride.vue.d.ts +18 -0
  378. package/dist/types/components/providers/TranslationProvider/TranslationProvider.lib.d.ts +9 -0
  379. package/dist/types/components/providers/TranslationProvider/TranslationProvider.types.d.ts +22 -0
  380. package/dist/types/components/providers/TranslationProvider/TranslationProvider.vue.d.ts +18 -0
  381. package/dist/types/components/providers/index.d.ts +9 -0
  382. package/dist/types/components/shared/ScreenTitle/ScreenTitle.types.d.ts +4 -0
  383. package/dist/types/components/shared/Section/Section.types.d.ts +21 -0
  384. package/dist/types/components/shared/Skeleton.types.d.ts +5 -0
  385. package/dist/types/components/shared/SlidingPanes/SlidingPanes.types.d.ts +12 -0
  386. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsList.types.d.ts +15 -0
  387. package/dist/types/components/subscriptions/EnabledPricingsList/EnabledPricingsListItem.types.d.ts +7 -0
  388. package/dist/types/components/subscriptions/OrderSummary.types.d.ts +65 -0
  389. package/dist/types/components/subscriptions/PlanCustomizationForm/AddonSingleEditor.types.d.ts +5 -0
  390. package/dist/types/components/subscriptions/PlanCustomizationForm/PlanCustomizationEditor.types.d.ts +8 -0
  391. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupContent.types.d.ts +4 -0
  392. package/dist/types/components/subscriptions/PlanCustomizationForm/PricingGroupEditorBase.types.d.ts +8 -0
  393. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditor.types.d.ts +6 -0
  394. package/dist/types/components/subscriptions/PlanCustomizationForm/SeatsEditorItem.types.d.ts +6 -0
  395. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTable.types.d.ts +5 -0
  396. package/dist/types/components/subscriptions/PlanCustomizationForm/TieredTableRow.types.d.ts +7 -0
  397. package/dist/types/components/subscriptions/SubscriptionCancellationModal/SubscriptionCancellationModal.types.d.ts +12 -0
  398. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagement.types.d.ts +47 -0
  399. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementForm.types.d.ts +28 -0
  400. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSuccess.types.d.ts +7 -0
  401. package/dist/types/components/subscriptions/SubscriptionManagement/SubscriptionManagementSummary.types.d.ts +7 -0
  402. package/dist/types/components/subscriptions/SubscriptionSummary.types.d.ts +33 -0
  403. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  404. package/dist/types/components/subscriptions/SubscriptionsList/SubscriptionsListItem.types.d.ts +13 -0
  405. package/dist/types/components/wallets/AutoTopUpCancellationModal/AutoTopUpCancellationModal.types.d.ts +9 -0
  406. package/dist/types/components/wallets/AutoTopUpConfig/AutoTopUpConfig.types.d.ts +56 -0
  407. package/dist/types/components/wallets/AutoTopUpModal/AutoTopUpModal.types.d.ts +16 -0
  408. package/dist/types/components/wallets/ConvertedAmountInput/ConvertedAmountInput.types.d.ts +32 -0
  409. package/dist/types/components/wallets/TopUpModal/TopUpInvoicePreview.types.d.ts +11 -0
  410. package/dist/types/components/wallets/TopUpModal/TopUpModal.types.d.ts +31 -0
  411. package/dist/types/components/wallets/TopUpModal/TopUpModalForm.types.d.ts +23 -0
  412. package/dist/types/components/wallets/TopUpModal/TopUpModalSuccess.types.d.ts +11 -0
  413. package/dist/types/components/wallets/WalletModalShell.types.d.ts +24 -0
  414. package/dist/types/composables/useInvoicePreview.types.d.ts +9 -0
  415. package/dist/types/config/config.beta.d.ts +2 -0
  416. package/dist/types/config/config.dev.d.ts +2 -0
  417. package/dist/types/config/config.live.d.ts +2 -0
  418. package/dist/types/config/internalEnvironments.d.ts +11 -0
  419. package/dist/types/config/internalEnvironments.published.d.ts +7 -0
  420. package/dist/types/config/lib.d.ts +6 -0
  421. package/dist/types/config/types.d.ts +13 -0
  422. package/dist/types/index.d.ts +23 -0
  423. package/dist/types/public/components/BillingInformation/BillingInformation.entry.ce.d.ts +1 -0
  424. package/dist/types/public/components/BillingInformation/BillingInformation.entry.types.d.ts +4 -0
  425. package/dist/types/public/components/BillingInformation/BillingInformation.types.d.ts +12 -0
  426. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.ce.d.ts +1 -0
  427. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.entry.types.d.ts +4 -0
  428. package/dist/types/public/components/BillingInformationForm/BillingInformationForm.types.d.ts +10 -0
  429. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.ce.d.ts +1 -0
  430. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.entry.types.d.ts +6 -0
  431. package/dist/types/public/components/CustomerPaymentMethods/CustomerPaymentMethods.types.d.ts +22 -0
  432. package/dist/types/public/components/CustomerWalletBalances/CustomerWalletBalances.types.d.ts +22 -0
  433. package/dist/types/public/components/Invoice/Invoice.entry.ce.d.ts +1 -0
  434. package/dist/types/public/components/Invoice/Invoice.entry.types.d.ts +5 -0
  435. package/dist/types/public/components/Invoice/Invoice.types.d.ts +26 -0
  436. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.ce.d.ts +1 -0
  437. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.entry.types.d.ts +5 -0
  438. package/dist/types/public/components/InvoiceDetails/InvoiceDetails.types.d.ts +9 -0
  439. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.ce.d.ts +1 -0
  440. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.entry.types.d.ts +5 -0
  441. package/dist/types/public/components/InvoiceHeader/InvoiceHeader.types.d.ts +16 -0
  442. package/dist/types/public/components/InvoicesList/InvoicesList.entry.ce.d.ts +1 -0
  443. package/dist/types/public/components/InvoicesList/InvoicesList.entry.types.d.ts +5 -0
  444. package/dist/types/public/components/InvoicesList/InvoicesList.types.d.ts +37 -0
  445. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.ce.d.ts +1 -0
  446. package/dist/types/public/components/PaymentHistory/PaymentHistory.entry.types.d.ts +5 -0
  447. package/dist/types/public/components/PaymentHistory/PaymentHistory.types.d.ts +10 -0
  448. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.ce.d.ts +1 -0
  449. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.entry.types.d.ts +5 -0
  450. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +38 -0
  451. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.ce.d.ts +1 -0
  452. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.entry.types.d.ts +5 -0
  453. package/dist/types/public/components/SubscriptionSchedules/SubscriptionSchedules.types.d.ts +9 -0
  454. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.ce.d.ts +1 -0
  455. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.entry.types.d.ts +5 -0
  456. package/dist/types/public/components/SubscriptionsList/SubscriptionsList.types.d.ts +16 -0
  457. package/dist/types/public/components/WalletBalances/WalletBalances.entry.ce.d.ts +1 -0
  458. package/dist/types/public/components/WalletBalances/WalletBalances.entry.types.d.ts +5 -0
  459. package/dist/types/public/components/WalletBalances/WalletBalances.types.d.ts +3 -0
  460. package/dist/types/public/core/action-request.types.d.ts +55 -0
  461. package/dist/types/public/core/configuration.d.ts +3 -0
  462. package/dist/types/public/core/index.d.ts +14 -0
  463. package/dist/types/public/core/registry.ce.d.ts +8 -0
  464. package/dist/types/public/core/registry.d.ts +6 -0
  465. package/dist/types/public/core/types.d.ts +120 -0
  466. package/dist/types/public/screens/Checkout/Checkout.entry.ce.d.ts +1 -0
  467. package/dist/types/public/screens/Checkout/Checkout.entry.types.d.ts +18 -0
  468. package/dist/types/public/screens/Checkout/Checkout.types.d.ts +46 -0
  469. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.ce.d.ts +1 -0
  470. package/dist/types/public/screens/CustomerOverview/CustomerOverview.entry.types.d.ts +5 -0
  471. package/dist/types/public/screens/CustomerOverview/CustomerOverview.types.d.ts +2 -0
  472. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.ce.d.ts +1 -0
  473. package/dist/types/public/screens/PayInvoice/PayInvoice.entry.types.d.ts +4 -0
  474. package/dist/types/public/screens/PayInvoice/PayInvoice.types.d.ts +23 -0
  475. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.ce.d.ts +1 -0
  476. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.entry.types.d.ts +3 -0
  477. package/dist/types/public/screens/PaymentMethodsManagement/PaymentMethodsManagement.types.d.ts +7 -0
  478. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.ce.d.ts +1 -0
  479. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.entry.types.d.ts +6 -0
  480. package/dist/types/public/screens/SubscriptionDetails/SubscriptionDetails.types.d.ts +23 -0
  481. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.ce.d.ts +1 -0
  482. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.entry.types.d.ts +5 -0
  483. package/dist/types/public/screens/SubscriptionManagement/SubscriptionManagement.types.d.ts +13 -0
  484. package/dist/types/public/screens/types.d.ts +4 -0
  485. package/dist/types/public/types/index.d.ts +23 -0
  486. package/dist/types/services/invoices.types.d.ts +26 -0
  487. package/dist/types/services/paymentMethods.types.d.ts +31 -0
  488. package/dist/types/services/portals.types.d.ts +68 -0
  489. package/dist/types/services/requests.types.d.ts +24 -0
  490. package/dist/types/translations/supported.d.ts +1 -0
  491. package/dist/types/types/EntryBaseProps.d.ts +10 -0
  492. package/dist/types/types/errors.d.ts +7 -0
  493. package/dist/types/types/subscription.d.ts +4 -0
  494. package/dist/types/vendor/@solvimon/solvimon-types/index.d.ts +111 -0
  495. package/dist/types/vendor/@solvimon/solvimon-types/types/Address.d.ts +17 -0
  496. package/dist/types/vendor/@solvimon/solvimon-types/types/Alerts.d.ts +72 -0
  497. package/dist/types/vendor/@solvimon/solvimon-types/types/Amount.d.ts +4 -0
  498. package/dist/types/vendor/@solvimon/solvimon-types/types/Api.d.ts +50 -0
  499. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiError.d.ts +7 -0
  500. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiKey.d.ts +21 -0
  501. package/dist/types/vendor/@solvimon/solvimon-types/types/ApiStatus.d.ts +7 -0
  502. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalPolicies.d.ts +77 -0
  503. package/dist/types/vendor/@solvimon/solvimon-types/types/ApprovalRequests.d.ts +22 -0
  504. package/dist/types/vendor/@solvimon/solvimon-types/types/Attachment.d.ts +14 -0
  505. package/dist/types/vendor/@solvimon/solvimon-types/types/Band.d.ts +30 -0
  506. package/dist/types/vendor/@solvimon/solvimon-types/types/BaseResourceStatus.d.ts +3 -0
  507. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingEntity.d.ts +45 -0
  508. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingPeriod.d.ts +5 -0
  509. package/dist/types/vendor/@solvimon/solvimon-types/types/BillingTime.d.ts +1 -0
  510. package/dist/types/vendor/@solvimon/solvimon-types/types/ChargeOnDemandPricingItems.d.ts +24 -0
  511. package/dist/types/vendor/@solvimon/solvimon-types/types/Commitment.d.ts +9 -0
  512. package/dist/types/vendor/@solvimon/solvimon-types/types/CommitmentItem.d.ts +17 -0
  513. package/dist/types/vendor/@solvimon/solvimon-types/types/Comparator.d.ts +1 -0
  514. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfigMeterProperties.d.ts +12 -0
  515. package/dist/types/vendor/@solvimon/solvimon-types/types/ConfiguredMeterValue.d.ts +9 -0
  516. package/dist/types/vendor/@solvimon/solvimon-types/types/Country.d.ts +1 -0
  517. package/dist/types/vendor/@solvimon/solvimon-types/types/CreateMeterData.d.ts +5 -0
  518. package/dist/types/vendor/@solvimon/solvimon-types/types/CreatePricingPlanVersion.d.ts +3 -0
  519. package/dist/types/vendor/@solvimon/solvimon-types/types/CreditType.d.ts +16 -0
  520. package/dist/types/vendor/@solvimon/solvimon-types/types/Currency.d.ts +8 -0
  521. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomFields.d.ts +39 -0
  522. package/dist/types/vendor/@solvimon/solvimon-types/types/CustomerContact.d.ts +12 -0
  523. package/dist/types/vendor/@solvimon/solvimon-types/types/Customers.d.ts +75 -0
  524. package/dist/types/vendor/@solvimon/solvimon-types/types/Discount.d.ts +12 -0
  525. package/dist/types/vendor/@solvimon/solvimon-types/types/DiscountItem.d.ts +24 -0
  526. package/dist/types/vendor/@solvimon/solvimon-types/types/Document.d.ts +22 -0
  527. package/dist/types/vendor/@solvimon/solvimon-types/types/DueDateConfiguration.d.ts +8 -0
  528. package/dist/types/vendor/@solvimon/solvimon-types/types/Entitlement.d.ts +16 -0
  529. package/dist/types/vendor/@solvimon/solvimon-types/types/Environment.d.ts +1 -0
  530. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTrace.d.ts +23 -0
  531. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceExtended.d.ts +22 -0
  532. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLink.d.ts +14 -0
  533. package/dist/types/vendor/@solvimon/solvimon-types/types/EventTraceLinkExtended.d.ts +15 -0
  534. package/dist/types/vendor/@solvimon/solvimon-types/types/Features.d.ts +25 -0
  535. package/dist/types/vendor/@solvimon/solvimon-types/types/IdentityProvider.d.ts +40 -0
  536. package/dist/types/vendor/@solvimon/solvimon-types/types/IndexingSettings.d.ts +24 -0
  537. package/dist/types/vendor/@solvimon/solvimon-types/types/Integrations.d.ts +367 -0
  538. package/dist/types/vendor/@solvimon/solvimon-types/types/Invoice.d.ts +349 -0
  539. package/dist/types/vendor/@solvimon/solvimon-types/types/JWT.d.ts +22 -0
  540. package/dist/types/vendor/@solvimon/solvimon-types/types/Markup.d.ts +8 -0
  541. package/dist/types/vendor/@solvimon/solvimon-types/types/MarkupItem.d.ts +11 -0
  542. package/dist/types/vendor/@solvimon/solvimon-types/types/Meter.d.ts +32 -0
  543. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterConditions.d.ts +26 -0
  544. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterData.d.ts +25 -0
  545. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterDataExpanded.d.ts +5 -0
  546. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterProperty.d.ts +34 -0
  547. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterPropertyValue.d.ts +5 -0
  548. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValue.d.ts +16 -0
  549. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueCalculation.d.ts +20 -0
  550. package/dist/types/vendor/@solvimon/solvimon-types/types/MeterValueValue.d.ts +7 -0
  551. package/dist/types/vendor/@solvimon/solvimon-types/types/ModelType.d.ts +1 -0
  552. package/dist/types/vendor/@solvimon/solvimon-types/types/Name.d.ts +5 -0
  553. package/dist/types/vendor/@solvimon/solvimon-types/types/NotificationPreferences.d.ts +9 -0
  554. package/dist/types/vendor/@solvimon/solvimon-types/types/Payment.d.ts +124 -0
  555. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAcceptor.d.ts +120 -0
  556. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentAction.d.ts +74 -0
  557. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethod.d.ts +173 -0
  558. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentMethodOptions.d.ts +45 -0
  559. package/dist/types/vendor/@solvimon/solvimon-types/types/PaymentSchedules.d.ts +142 -0
  560. package/dist/types/vendor/@solvimon/solvimon-types/types/Permission.d.ts +1 -0
  561. package/dist/types/vendor/@solvimon/solvimon-types/types/Platform.d.ts +118 -0
  562. package/dist/types/vendor/@solvimon/solvimon-types/types/Portal.d.ts +58 -0
  563. package/dist/types/vendor/@solvimon/solvimon-types/types/Pricing.d.ts +41 -0
  564. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategory.d.ts +18 -0
  565. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingCategoryExtended.d.ts +9 -0
  566. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingExtended.d.ts +9 -0
  567. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingGroup.d.ts +29 -0
  568. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItem.d.ts +40 -0
  569. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingItemConfig.d.ts +130 -0
  570. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSchedule.d.ts +103 -0
  571. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleInfo.d.ts +7 -0
  572. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanScheduleWithPlanData.d.ts +9 -0
  573. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscription.d.ts +80 -0
  574. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanSubscriptionGroup.d.ts +10 -0
  575. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersion.d.ts +71 -0
  576. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlanVersionExtended.d.ts +7 -0
  577. package/dist/types/vendor/@solvimon/solvimon-types/types/PricingPlans.d.ts +44 -0
  578. package/dist/types/vendor/@solvimon/solvimon-types/types/Product.d.ts +22 -0
  579. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductCategory.d.ts +10 -0
  580. package/dist/types/vendor/@solvimon/solvimon-types/types/ProductItem.d.ts +60 -0
  581. package/dist/types/vendor/@solvimon/solvimon-types/types/PromotionCodes.d.ts +14 -0
  582. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteTemplates.d.ts +43 -0
  583. package/dist/types/vendor/@solvimon/solvimon-types/types/QuoteVersions.d.ts +93 -0
  584. package/dist/types/vendor/@solvimon/solvimon-types/types/Quotes.d.ts +65 -0
  585. package/dist/types/vendor/@solvimon/solvimon-types/types/ReprocessLog.d.ts +31 -0
  586. package/dist/types/vendor/@solvimon/solvimon-types/types/Resource.d.ts +5 -0
  587. package/dist/types/vendor/@solvimon/solvimon-types/types/ResourceStatus.d.ts +2 -0
  588. package/dist/types/vendor/@solvimon/solvimon-types/types/Role.d.ts +19 -0
  589. package/dist/types/vendor/@solvimon/solvimon-types/types/SignatureRequest.d.ts +27 -0
  590. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxCategory.d.ts +1 -0
  591. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxIdentifier.d.ts +17 -0
  592. package/dist/types/vendor/@solvimon/solvimon-types/types/TaxSummary.d.ts +21 -0
  593. package/dist/types/vendor/@solvimon/solvimon-types/types/TimePeriod.d.ts +5 -0
  594. package/dist/types/vendor/@solvimon/solvimon-types/types/Timestamp.d.ts +4 -0
  595. package/dist/types/vendor/@solvimon/solvimon-types/types/Token.d.ts +6 -0
  596. package/dist/types/vendor/@solvimon/solvimon-types/types/User.d.ts +106 -0
  597. package/dist/types/vendor/@solvimon/solvimon-types/types/ValueType.d.ts +1 -0
  598. package/dist/types/vendor/@solvimon/solvimon-types/types/Wallet.d.ts +44 -0
  599. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletAutoTopUpConfigs.d.ts +28 -0
  600. package/dist/types/vendor/@solvimon/solvimon-types/types/WalletType.d.ts +54 -0
  601. package/dist/types/vendor/@solvimon/solvimon-types/types/Webhook.d.ts +48 -0
  602. package/dist/types/vendor/@solvimon/solvimon-types/types/WebhookEvent.d.ts +18 -0
  603. package/dist/types/vendor/@solvimon/solvimon-types/types/Workflows.d.ts +95 -0
  604. package/dist/types/vendor/@solvimon/solvimon-types/types/forms.d.ts +1 -0
  605. package/dist/types/vendor/@solvimon/solvimon-types/utils.d.ts +17 -0
  606. package/dist/unionpay.svg.es-DYgo83Hf.mjs +4 -0
  607. package/dist/unionpay.svg.es-YqJKKFEj.js +1 -0
  608. package/dist/url-CjULBkjW.js +1 -0
  609. package/dist/url-CvNDq4wp.mjs +22 -0
  610. package/dist/{useActionDispatchProvider-CgRcOqv3.mjs → useActionDispatchProvider-BVOBO0Jx.mjs} +1 -1
  611. package/dist/useActionDispatchProvider-Cv9amjTf.js +1 -0
  612. package/dist/useCustomer-DLHOs4BR.js +1 -0
  613. package/dist/useCustomer-EDhref7T.mjs +25 -0
  614. package/dist/useCustomerFormLabels-B61-4xQ7.mjs +1168 -0
  615. package/dist/useCustomerFormLabels-C6wW4n2e.js +1 -0
  616. package/dist/useExperimentalFeature-0yFoaEzV.js +1 -0
  617. package/dist/useExperimentalFeature-DvxOrFPU.mjs +9 -0
  618. package/dist/{useIncrementalLoading-C7ToTmZK.mjs → useIncrementalLoading-BK9pRYAU.mjs} +9 -9
  619. package/dist/useIncrementalLoading-CdtGJm_Y.js +1 -0
  620. package/dist/useInvoiceData-BSjVeJrI.js +1 -0
  621. package/dist/{useInvoiceData-CcueV3We.mjs → useInvoiceData-C0Y5WrbT.mjs} +6 -12
  622. package/dist/useInvoicesList-BRDZqsaB.js +1 -0
  623. package/dist/useInvoicesList-CYoE7q0u.mjs +580 -0
  624. package/dist/{useLoadInitialData-Dm48tlSO.mjs → useLoadInitialData-Cp1OA8y6.mjs} +5 -0
  625. package/dist/useLoadInitialData-u7IyXqb6.js +1 -0
  626. package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +1 -0
  627. package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +141 -0
  628. package/dist/usePaymentMethodOptions--8QpMvNm.js +1 -0
  629. package/dist/usePaymentMethodOptions-Cljh7HYp.mjs +36 -0
  630. package/dist/{usePaymentMethods-Db-1R6rI.mjs → usePaymentMethods-BJzoI8dZ.mjs} +2 -2
  631. package/dist/{usePaymentMethods-DCGVRXA4.js → usePaymentMethods-DvEnJWmB.js} +1 -1
  632. package/dist/usePayments-CANj0QVc.js +1 -0
  633. package/dist/usePayments-CaT1CBzE.mjs +362 -0
  634. package/dist/usePortal-BjGoSeLy.js +1 -0
  635. package/dist/usePortal-CMPQ0M9R.mjs +12 -0
  636. package/dist/useService-D73FNBjT.js +1 -0
  637. package/dist/useService-W3Kxems4.mjs +72 -0
  638. package/dist/useSubscription-D1UKnZAx.mjs +250 -0
  639. package/dist/useSubscription-DZfRHbL7.js +1 -0
  640. package/dist/useViewport-Bu0cyeSi.mjs +38 -0
  641. package/dist/useViewport-CKRY1CKR.js +1 -0
  642. package/dist/useWatchDebounced-C_YxgoQ6.js +1 -0
  643. package/dist/useWatchDebounced-Zmxd6InB.mjs +16 -0
  644. package/dist/visa.svg.es-B6aU_qRs.mjs +4 -0
  645. package/dist/visa.svg.es-D6sc4YTE.js +1 -0
  646. package/dist/vpay.svg.es-4qIqS4aX.mjs +4 -0
  647. package/dist/vpay.svg.es-CLGTyB09.js +1 -0
  648. package/dist/zip.svg.es-3PzSBe1E.mjs +4 -0
  649. package/dist/zip.svg.es-BRsgmur-.js +1 -0
  650. package/package.json +112 -61
  651. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BD3CrJzj.js +0 -1
  652. package/dist/ContentWithAsideLayout-CRsFr9TH.mjs +0 -42
  653. package/dist/ContentWithAsideLayout-DczcgSrt.js +0 -1
  654. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-BE3I7Oe1.js +0 -1
  655. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-sNdlKgdU.js +0 -1
  656. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJEZEEwZ.mjs +0 -6568
  657. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-Sn1Jq19s.js +0 -1
  658. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-Bifo4jTH.js +0 -1
  659. package/dist/PricingGroupContent.vue_vue_type_script_setup_true_lang-DWp42_G4.mjs +0 -75
  660. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-C_BwMlBE.js +0 -1
  661. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-yyhwzYSM.js +0 -1
  662. package/dist/_Uint8Array-DHE03FZr.mjs +0 -507
  663. package/dist/_Uint8Array-DxISR7XF.js +0 -1
  664. package/dist/auto-DzZuCneB.mjs +0 -14387
  665. package/dist/auto-PpnAChnH.js +0 -6
  666. package/dist/cloneDeep-DranHQkY.js +0 -1
  667. package/dist/cloneDeep-sm9cY-u2.mjs +0 -212
  668. package/dist/component-DEo_ndpK.mjs +0 -58668
  669. package/dist/component-XHQYFLA_.js +0 -1
  670. package/dist/components/BillingInformation/BillingInformation.cjs.js +0 -1
  671. package/dist/components/BillingInformationForm/BillingInformationForm.cjs.js +0 -1
  672. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs.js +0 -1
  673. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.es.js +0 -134
  674. package/dist/components/Invoice/Invoice.cjs.js +0 -1
  675. package/dist/components/InvoiceDetails/InvoiceDetails.cjs.js +0 -1
  676. package/dist/components/InvoicesList/InvoicesList.cjs.js +0 -1
  677. package/dist/components/PaymentHistory/PaymentHistory.cjs.js +0 -1
  678. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs.js +0 -1
  679. package/dist/components/PaymentMethodForm/PaymentMethodForm.es.js +0 -238
  680. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs.js +0 -1
  681. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.es.js +0 -152
  682. package/dist/components/SubscriptionsList/SubscriptionsList.cjs.js +0 -1
  683. package/dist/components/SubscriptionsList/SubscriptionsList.es.js +0 -134
  684. package/dist/components/WalletBalances/WalletBalances.cjs.js +0 -1
  685. package/dist/core/index.cjs.js +0 -1
  686. package/dist/core/index.es.js +0 -6
  687. package/dist/index-2jo9BSPM.js +0 -1
  688. package/dist/index-BFZ0dPh9.mjs +0 -179
  689. package/dist/index-CWSXne1Q.js +0 -1
  690. package/dist/index-CzL1ZcGi.mjs +0 -85
  691. package/dist/index-D3v7hAtc.mjs +0 -253
  692. package/dist/index-DRdBmZ2-.js +0 -1
  693. package/dist/index.cjs.js +0 -1
  694. package/dist/index.es.js +0 -45
  695. package/dist/invoices-BW1notiX.js +0 -1
  696. package/dist/invoices-M5oYVch6.mjs +0 -84
  697. package/dist/paymentMethods-BX80t2zk.js +0 -1
  698. package/dist/payments-BHv4hCeJ.js +0 -1
  699. package/dist/registry-BwKEYOf7.js +0 -1
  700. package/dist/registry-Cag1Jj7P.mjs +0 -143
  701. package/dist/screens/Checkout/Checkout.cjs.js +0 -1
  702. package/dist/screens/CustomerOverview/CustomerOverview.cjs.js +0 -1
  703. package/dist/screens/CustomerOverview/CustomerOverview.es.js +0 -136
  704. package/dist/screens/UpgradeSubscription/UpgradeSubscription.ce.d.ts +0 -3
  705. package/dist/screens/UpgradeSubscription/UpgradeSubscription.cjs.js +0 -1
  706. package/dist/screens/UpgradeSubscription/UpgradeSubscription.es.js +0 -1012
  707. package/dist/solvimon-web.css +0 -1
  708. package/dist/sprite-i5T7eZnk-C55G-dBo.js +0 -1
  709. package/dist/sprite-i5T7eZnk-i5T7eZnk.mjs +0 -4
  710. package/dist/subscriptions-Bs4DIE8f.mjs +0 -74
  711. package/dist/subscriptions-CnxvsBXd.js +0 -1
  712. package/dist/useActionDispatchProvider-Cru69mAl.js +0 -1
  713. package/dist/useCustomer-B0NK96dA.js +0 -1
  714. package/dist/useCustomer-DlcjY3fP.mjs +0 -45
  715. package/dist/useCustomerPaymentMethodOptions-C-8BLzqb.js +0 -1
  716. package/dist/useIncrementalLoading-D60Vttil.js +0 -1
  717. package/dist/useInvoiceData-DstXfI7t.js +0 -1
  718. package/dist/useInvoicesList-CXng3aUm.mjs +0 -294
  719. package/dist/useInvoicesList-DmzjgMlW.js +0 -1
  720. package/dist/useLoadInitialData-BRg7IWqW.js +0 -1
  721. package/dist/useService-B4qv5N2D.mjs +0 -281
  722. package/dist/useService-D-CUtlp3.js +0 -1
  723. package/dist/useWalletBalanceItems-BZyiAhcV.js +0 -1
  724. package/dist/useWalletBalanceItems-CHkLaccm.mjs +0 -105
@@ -0,0 +1,882 @@
1
+ import { computed, ref, defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, shallowRef, watch, toRef, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import { _ as _sfc_main$e } from "../../IconButton.vue.es-KywqWWvr.mjs";
3
+ import { a as _sfc_main$8 } from "../../Button.vue.es-Cm9pLU9i.mjs";
4
+ import { _ as _sfc_main$b } from "../../ErrorNotification.vue.es-CHyVTBGs.mjs";
5
+ import { u as useIntl, _ as _sfc_main$7, b as useLogger, d as _sfc_main$i, e as createSolvimonElement } from "../../customElements-B-89a5oH.mjs";
6
+ import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
7
+ import { u as useActionDispatchProvider } from "../../useActionDispatchProvider-BVOBO0Jx.mjs";
8
+ import { b as getMostRecentScheduleInfo, a as getSubscriptionName } from "../../subscription-C41lG-rH.mjs";
9
+ import { _ as _sfc_main$g } from "../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs";
10
+ import { _ as _sfc_main$c, u as useCustomerWalletBalances } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs";
11
+ import { _ as _sfc_main$d } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs";
12
+ import { _ as _sfc_main$h } from "../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs";
13
+ import { _ as _sfc_main$f } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
14
+ import { _ as _sfc_main$6 } from "../../Section.vue.es-DX_9ueCG.mjs";
15
+ import { g as getNameFromPricing } from "../../pricing-CJxS2hr2.mjs";
16
+ import { f as formatAmount, b as formatBillingPeriod } from "../../formatting.es-eYgXv_AK.mjs";
17
+ import { _ as _sfc_main$a } from "../../PaymentMethod.vue.es-rv-pu1CC.mjs";
18
+ import { M as Modal } from "../../Modal.vue.es-qdUHDOnU.mjs";
19
+ import { c as createSubscriptionsService } from "../../subscriptions-DcMHBPVJ.mjs";
20
+ import { _ as _sfc_main$9 } from "../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs";
21
+ import { g as getPaginatedFullList } from "../../api.es-C5pe8LUl.mjs";
22
+ import { i as isApiSuccessCollectionResponse } from "../../useIncrementalLoading-BK9pRYAU.mjs";
23
+ import { c as createPaymentMethodsService } from "../../paymentMethods-DIV78w0O.mjs";
24
+ import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
25
+ import { u as useSubscription } from "../../useSubscription-D1UKnZAx.mjs";
26
+ import { u as useCustomer } from "../../useCustomer-EDhref7T.mjs";
27
+ import { u as usePaymentMethods } from "../../usePaymentMethods-BJzoI8dZ.mjs";
28
+ import { u as useLoadInitialData } from "../../useLoadInitialData-Cp1OA8y6.mjs";
29
+ import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
30
+ function useSubscriptionActions({
31
+ subscription
32
+ }) {
33
+ const { dispatchAction } = useActionDispatchProvider();
34
+ const isCancellable = computed(() => {
35
+ if (!subscription.value) return false;
36
+ const inactivePeriods = subscription.value.inactive_periods;
37
+ return !inactivePeriods || inactivePeriods.length === 0;
38
+ });
39
+ const isRenewable = computed(() => {
40
+ var _a;
41
+ const inactivePeriods = (_a = subscription.value) == null ? void 0 : _a.inactive_periods;
42
+ return Array.isArray(inactivePeriods) && inactivePeriods.length > 0;
43
+ });
44
+ const pendingVariant = ref();
45
+ const cancel = () => {
46
+ if (!subscription.value) return;
47
+ pendingVariant.value = "CANCEL";
48
+ };
49
+ const renew = () => {
50
+ if (!subscription.value) return;
51
+ pendingVariant.value = "RENEW";
52
+ };
53
+ const dismiss = () => {
54
+ pendingVariant.value = void 0;
55
+ };
56
+ const manage = () => {
57
+ if (!subscription.value) return;
58
+ dispatchAction({
59
+ action: "manage-subscription",
60
+ data: { subscriptionId: subscription.value.id }
61
+ });
62
+ };
63
+ return { isCancellable, isRenewable, pendingVariant, cancel, renew, dismiss, manage };
64
+ }
65
+ function getHeadlinePrice(pricing) {
66
+ var _a, _b, _c, _d, _e, _f, _g;
67
+ const config = (_c = (_b = (_a = pricing.items) == null ? void 0 : _a[0]) == null ? void 0 : _b.configs) == null ? void 0 : _c[0];
68
+ const band = (_e = (_d = config == null ? void 0 : config.details) == null ? void 0 : _d.bands) == null ? void 0 : _e[0];
69
+ return {
70
+ amount: (band == null ? void 0 : band.amount) ?? (band == null ? void 0 : band.fixed_amount),
71
+ billingPeriod: ((_f = config == null ? void 0 : config.details) == null ? void 0 : _f.pricing_period) ?? ((_g = config == null ? void 0 : config.details) == null ? void 0 : _g.billing_period)
72
+ };
73
+ }
74
+ function getEnabledPricingsEntries(scheduleInfo) {
75
+ var _a, _b, _c;
76
+ const enabledPricingIds = new Set(
77
+ (((_a = scheduleInfo.pricing_plan_schedule) == null ? void 0 : _a.enabled_pricings) ?? []).map(
78
+ ({ pricing_id }) => pricing_id
79
+ )
80
+ );
81
+ if (enabledPricingIds.size === 0) {
82
+ return [];
83
+ }
84
+ const pricingGroups = ((_c = (_b = scheduleInfo.pricing_plan_version) == null ? void 0 : _b.pricing_categories) == null ? void 0 : _c.flatMap(
85
+ (category) => category.pricing_groups ?? []
86
+ )) ?? [];
87
+ return pricingGroups.flatMap(
88
+ (group) => (group.pricings ?? []).filter((pricing) => enabledPricingIds.has(pricing.id)).map((pricing) => ({
89
+ pricingId: pricing.id,
90
+ pricingGroupId: group.id,
91
+ groupName: group.name,
92
+ // A pricing without a name of its own is only identifiable by the choice it belongs to.
93
+ name: getNameFromPricing(pricing) || group.name,
94
+ ...getHeadlinePrice(pricing)
95
+ }))
96
+ );
97
+ }
98
+ const _hoisted_1$3 = { class: "sv-enabled-pricings-list__item-body flex items-center gap-4" };
99
+ const _hoisted_2$1 = { class: "sv-enabled-pricings-list__item-content grow" };
100
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
101
+ __name: "EnabledPricingsListItem",
102
+ props: {
103
+ entry: { type: Object }
104
+ },
105
+ emits: ["upgrade"],
106
+ setup(__props) {
107
+ const props = __props;
108
+ const { $t } = useIntl();
109
+ const price = computed(() => {
110
+ const { amount, billingPeriod } = props.entry;
111
+ if (!amount) {
112
+ return void 0;
113
+ }
114
+ if (!billingPeriod) {
115
+ return formatAmount(amount);
116
+ }
117
+ return $t(
118
+ {
119
+ defaultMessage: "{amount} per {period}",
120
+ id: "enabled_pricings_list.item.price",
121
+ description: 'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'
122
+ },
123
+ {
124
+ amount: formatAmount(amount),
125
+ period: formatBillingPeriod(billingPeriod, {
126
+ short: true,
127
+ hideValueForExactPeriods: true
128
+ })
129
+ }
130
+ );
131
+ });
132
+ return (_ctx, _cache) => {
133
+ return openBlock(), createBlock(unref(_sfc_main$6), { class: "sv-enabled-pricings-list__item" }, {
134
+ default: withCtx(() => [
135
+ createElementVNode("div", _hoisted_1$3, [
136
+ createElementVNode("div", _hoisted_2$1, [
137
+ createVNode(unref(_sfc_main$7), {
138
+ tag: "span",
139
+ variant: "body-xs",
140
+ color: "subtle",
141
+ class: "sv-enabled-pricings-list__item-group"
142
+ }, {
143
+ default: withCtx(() => [
144
+ createTextVNode(toDisplayString(__props.entry.groupName), 1)
145
+ ]),
146
+ _: 1
147
+ }),
148
+ createVNode(unref(_sfc_main$7), {
149
+ tag: "h3",
150
+ variant: "heading-3",
151
+ "no-spacing": "",
152
+ class: "sv-enabled-pricings-list__item-name"
153
+ }, {
154
+ default: withCtx(() => [
155
+ createTextVNode(toDisplayString(__props.entry.name), 1)
156
+ ]),
157
+ _: 1
158
+ }),
159
+ price.value ? (openBlock(), createBlock(unref(_sfc_main$7), {
160
+ key: 0,
161
+ tag: "span",
162
+ variant: "body-sm",
163
+ color: "subtle",
164
+ class: "sv-enabled-pricings-list__item-price"
165
+ }, {
166
+ default: withCtx(() => [
167
+ createTextVNode(toDisplayString(price.value), 1)
168
+ ]),
169
+ _: 1
170
+ })) : createCommentVNode("", true)
171
+ ]),
172
+ createVNode(unref(_sfc_main$8), {
173
+ intent: "secondary",
174
+ class: "sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",
175
+ type: "button",
176
+ size: "xs",
177
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("upgrade", __props.entry))
178
+ }, {
179
+ default: withCtx(() => [
180
+ createTextVNode(toDisplayString(unref($t)({
181
+ defaultMessage: "Upgrade",
182
+ id: "enabled_pricings_list.item.upgrade_button.label",
183
+ description: "Label for the button that changes which pricing is enabled for a group"
184
+ })), 1)
185
+ ]),
186
+ _: 1
187
+ })
188
+ ])
189
+ ]),
190
+ _: 1
191
+ });
192
+ };
193
+ }
194
+ });
195
+ const _hoisted_1$2 = { class: "sv-enabled-pricings-list__items grid grid-cols-1 gap-2" };
196
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
197
+ __name: "EnabledPricingsList",
198
+ props: {
199
+ pricingPlanSchedule: { type: Object }
200
+ },
201
+ emits: ["upgrade"],
202
+ setup(__props) {
203
+ const props = __props;
204
+ const { $t } = useIntl();
205
+ const entries = computed(() => getEnabledPricingsEntries(props.pricingPlanSchedule));
206
+ return (_ctx, _cache) => {
207
+ return entries.value.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$6), {
208
+ key: 0,
209
+ class: "sv-enabled-pricings-list",
210
+ "content-background": "none",
211
+ "no-border": "",
212
+ "no-spacing": "",
213
+ title: unref($t)({
214
+ defaultMessage: "Upgrades",
215
+ id: "enabled_pricings_list.title",
216
+ description: "Title for the block listing the pricings enabled on a subscription"
217
+ })
218
+ }, {
219
+ default: withCtx(() => [
220
+ createElementVNode("div", _hoisted_1$2, [
221
+ (openBlock(true), createElementBlock(Fragment, null, renderList(entries.value, (entry) => {
222
+ return openBlock(), createBlock(_sfc_main$5, {
223
+ key: entry.pricingId,
224
+ entry,
225
+ onUpgrade: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("upgrade", $event))
226
+ }, null, 8, ["entry"]);
227
+ }), 128))
228
+ ])
229
+ ]),
230
+ _: 1
231
+ }, 8, ["title"])) : createCommentVNode("", true);
232
+ };
233
+ }
234
+ });
235
+ function useSubscriptionCancellationModalLabels({
236
+ variant,
237
+ renewableUntil,
238
+ billingPeriodEndsAt
239
+ }) {
240
+ const { $t } = useIntl();
241
+ const isRenewing = computed(() => variant.value === "RENEW");
242
+ const title = computed(
243
+ () => isRenewing.value ? $t({
244
+ defaultMessage: "Renew subscription",
245
+ description: "Title of the renew subscription confirmation modal",
246
+ id: "subscription_cancellation_modal.renew.title"
247
+ }) : $t({
248
+ defaultMessage: "Cancel subscription",
249
+ description: "Title of the cancel subscription confirmation modal",
250
+ id: "subscription_cancellation_modal.cancel.title"
251
+ })
252
+ );
253
+ const explanation = computed(() => {
254
+ if (!isRenewing.value) {
255
+ if (billingPeriodEndsAt.value) {
256
+ return $t(
257
+ {
258
+ defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until {date}.",
259
+ description: "Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",
260
+ id: "subscription_cancellation_modal.cancel.explanation_with_date"
261
+ },
262
+ { date: billingPeriodEndsAt.value }
263
+ );
264
+ }
265
+ return $t({
266
+ defaultMessage: "Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",
267
+ description: "Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",
268
+ id: "subscription_cancellation_modal.cancel.explanation"
269
+ });
270
+ }
271
+ if (!renewableUntil.value) {
272
+ return $t({
273
+ defaultMessage: "Your subscription will continue as before, and billing will resume on its usual schedule.",
274
+ description: "Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",
275
+ id: "subscription_cancellation_modal.renew.explanation"
276
+ });
277
+ }
278
+ return $t(
279
+ {
280
+ defaultMessage: "You can renew your subscription until {date}. After this period you can only create a new subscription.",
281
+ description: "Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",
282
+ id: "subscription_cancellation_modal.renew.explanation_with_date"
283
+ },
284
+ { date: renewableUntil.value }
285
+ );
286
+ });
287
+ const confirmButtonText = computed(
288
+ () => isRenewing.value ? $t({
289
+ defaultMessage: "Renew subscription",
290
+ description: "Label of the confirm button in the renew subscription modal",
291
+ id: "subscription_cancellation_modal.renew.confirm_button.label"
292
+ }) : $t({
293
+ defaultMessage: "Cancel subscription",
294
+ description: "Label of the confirm button in the cancel subscription modal",
295
+ id: "subscription_cancellation_modal.cancel.confirm_button.label"
296
+ })
297
+ );
298
+ const cancelButtonText = computed(
299
+ () => $t({
300
+ defaultMessage: "Cancel",
301
+ description: "Label of the button that dismisses the cancellation modal",
302
+ id: "subscription_cancellation_modal.cancel_button.label"
303
+ })
304
+ );
305
+ const errorMessage = computed(
306
+ () => isRenewing.value ? $t({
307
+ defaultMessage: "We could not renew your subscription. Please try again.",
308
+ description: "Error shown when undoing a cancellation fails",
309
+ id: "subscription_cancellation_modal.renew.error"
310
+ }) : $t({
311
+ defaultMessage: "We could not cancel your subscription. Please try again.",
312
+ description: "Error shown when cancelling a subscription fails",
313
+ id: "subscription_cancellation_modal.cancel.error"
314
+ })
315
+ );
316
+ return { title, explanation, confirmButtonText, cancelButtonText, errorMessage };
317
+ }
318
+ const PAGE_SIZE = 50;
319
+ function usePaymentMethod() {
320
+ const { getPaymentMethods } = createPaymentMethodsService();
321
+ const paymentMethod = shallowRef();
322
+ const get = async ({
323
+ customerId,
324
+ paymentMethodId
325
+ }) => {
326
+ const response = await getPaginatedFullList(async (page) => {
327
+ const pageResponse = await getPaymentMethods({
328
+ customerId,
329
+ pagination: { page, pageSize: PAGE_SIZE }
330
+ });
331
+ if (!isApiSuccessCollectionResponse(pageResponse)) {
332
+ throw new Error("Could not load the customer’s payment methods.");
333
+ }
334
+ return pageResponse;
335
+ });
336
+ paymentMethod.value = response.data.find(({ id }) => id === paymentMethodId);
337
+ return paymentMethod.value;
338
+ };
339
+ return { paymentMethod, get };
340
+ }
341
+ const _hoisted_1$1 = { class: "sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3" };
342
+ const _hoisted_2 = {
343
+ key: 0,
344
+ class: "sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"
345
+ };
346
+ const _hoisted_3 = {
347
+ key: 0,
348
+ class: "sv-subscription-cancellation-modal__renews flex gap-1"
349
+ };
350
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
351
+ __name: "SubscriptionCancellationModal",
352
+ props: {
353
+ showModal: { type: Boolean },
354
+ variant: { type: null },
355
+ subscription: { type: Object },
356
+ avatar: { type: String }
357
+ },
358
+ emits: ["confirmed", "close"],
359
+ setup(__props, { emit: __emit }) {
360
+ const props = __props;
361
+ const emit = __emit;
362
+ const { $t, formatDate } = useIntl();
363
+ const logger = useLogger();
364
+ const { setSubscriptionCancellation } = createSubscriptionsService();
365
+ const variant = computed(() => props.variant);
366
+ const renewableUntil = computed(() => {
367
+ var _a;
368
+ const periods = ((_a = props.subscription) == null ? void 0 : _a.inactive_periods) ?? [];
369
+ const cancellation = periods.find(({ type }) => type === "CANCEL") ?? periods[0];
370
+ if (!cancellation) return void 0;
371
+ return formatDate({
372
+ date: cancellation.start_at,
373
+ format: "date",
374
+ offsetType: "local"
375
+ });
376
+ });
377
+ const billingPeriodEndsAt = computed(() => {
378
+ var _a, _b;
379
+ const invoiceDate = (_b = (_a = props.subscription) == null ? void 0 : _a.next_invoice) == null ? void 0 : _b.invoice_date;
380
+ if (!invoiceDate) return void 0;
381
+ return formatDate({
382
+ date: invoiceDate,
383
+ format: "date",
384
+ offsetType: "local"
385
+ });
386
+ });
387
+ const renewsOn = billingPeriodEndsAt;
388
+ const enabledPricingIds = computed(
389
+ () => {
390
+ var _a, _b;
391
+ return (((_b = (_a = getMostRecentScheduleInfo(props.subscription)) == null ? void 0 : _a.pricing_plan_schedule) == null ? void 0 : _b.enabled_pricings) ?? []).map(({ pricing_id }) => pricing_id).filter((pricingId) => Boolean(pricingId));
392
+ }
393
+ );
394
+ const { title, explanation, confirmButtonText, cancelButtonText, errorMessage } = useSubscriptionCancellationModalLabels({ variant, renewableUntil, billingPeriodEndsAt });
395
+ const { paymentMethod, get: fetchPaymentMethod } = usePaymentMethod();
396
+ watch(
397
+ [
398
+ () => props.showModal,
399
+ () => {
400
+ var _a;
401
+ return (_a = props.subscription) == null ? void 0 : _a.payment_method_id;
402
+ },
403
+ () => {
404
+ var _a;
405
+ return (_a = props.subscription) == null ? void 0 : _a.customer_id;
406
+ }
407
+ ],
408
+ ([showModal, paymentMethodId, customerId]) => {
409
+ var _a;
410
+ if (!showModal || !paymentMethodId || !customerId) return;
411
+ if (paymentMethodId === ((_a = paymentMethod.value) == null ? void 0 : _a.id)) return;
412
+ void fetchPaymentMethod({ customerId, paymentMethodId }).catch(() => void 0);
413
+ },
414
+ { immediate: true }
415
+ );
416
+ const isSubmitting = ref(false);
417
+ const hasFailed = ref(false);
418
+ watch(
419
+ () => props.showModal,
420
+ (showModal) => {
421
+ if (!showModal) return;
422
+ hasFailed.value = false;
423
+ }
424
+ );
425
+ const handleConfirm = async () => {
426
+ if (!props.subscription || !props.variant || isSubmitting.value) {
427
+ return;
428
+ }
429
+ isSubmitting.value = true;
430
+ hasFailed.value = false;
431
+ try {
432
+ await setSubscriptionCancellation({
433
+ id: props.subscription.id,
434
+ variant: props.variant
435
+ });
436
+ emit("confirmed");
437
+ emit("close");
438
+ } catch (error) {
439
+ logger.error(
440
+ "SUBSCRIPTION_CANCELLATION_FAILED",
441
+ "Failed to change the cancellation state of a subscription",
442
+ { variant: props.variant },
443
+ error
444
+ );
445
+ hasFailed.value = true;
446
+ } finally {
447
+ isSubmitting.value = false;
448
+ }
449
+ };
450
+ const handleClose = () => {
451
+ if (isSubmitting.value) return;
452
+ emit("close");
453
+ };
454
+ return (_ctx, _cache) => {
455
+ return openBlock(), createBlock(unref(Modal), {
456
+ size: "md",
457
+ "show-modal": __props.showModal,
458
+ title: unref(title),
459
+ "confirm-button-text": unref(confirmButtonText),
460
+ "cancel-button-text": unref(cancelButtonText),
461
+ "is-loading": isSubmitting.value,
462
+ "no-click-away": isSubmitting.value,
463
+ "no-backdrop-close": isSubmitting.value,
464
+ onConfirm: handleConfirm,
465
+ onClose: handleClose
466
+ }, {
467
+ body: withCtx(() => [
468
+ createElementVNode("div", _hoisted_1$1, [
469
+ createVNode(unref(_sfc_main$7), {
470
+ variant: "body-sm",
471
+ color: "subtle",
472
+ tag: "p",
473
+ class: "sv-subscription-cancellation-modal__explanation"
474
+ }, {
475
+ default: withCtx(() => [
476
+ createTextVNode(toDisplayString(unref(explanation)), 1)
477
+ ]),
478
+ _: 1
479
+ }),
480
+ __props.subscription ? (openBlock(), createBlock(unref(_sfc_main$6), {
481
+ key: 0,
482
+ "no-spacing": "",
483
+ class: "sv-subscription-cancellation-modal__subscription"
484
+ }, {
485
+ default: withCtx(() => [
486
+ createVNode(_sfc_main$9, {
487
+ subscription: __props.subscription,
488
+ avatar: __props.avatar,
489
+ "enabled-pricing-ids": enabledPricingIds.value
490
+ }, null, 8, ["subscription", "avatar", "enabled-pricing-ids"]),
491
+ unref(renewsOn) || unref(paymentMethod) ? (openBlock(), createElementBlock("div", _hoisted_2, [
492
+ unref(renewsOn) ? (openBlock(), createElementBlock("div", _hoisted_3, [
493
+ createVNode(unref(_sfc_main$7), {
494
+ tag: "span",
495
+ variant: "body-xs",
496
+ color: "secondary",
497
+ weight: "semibold"
498
+ }, {
499
+ default: withCtx(() => [
500
+ createTextVNode(toDisplayString(unref($t)({
501
+ defaultMessage: "Renews",
502
+ description: "Label before the date the subscription renews, shown in the cancel subscription modal",
503
+ id: "subscription_cancellation_modal.renews_label"
504
+ })), 1)
505
+ ]),
506
+ _: 1
507
+ }),
508
+ createVNode(unref(_sfc_main$7), {
509
+ tag: "span",
510
+ variant: "body-xs",
511
+ color: "secondary"
512
+ }, {
513
+ default: withCtx(() => [
514
+ createTextVNode(toDisplayString(unref(renewsOn)), 1)
515
+ ]),
516
+ _: 1
517
+ })
518
+ ])) : createCommentVNode("", true),
519
+ unref(paymentMethod) ? (openBlock(), createBlock(unref(_sfc_main$a), {
520
+ key: 1,
521
+ variant: "condensed",
522
+ class: "sv-subscription-cancellation-modal__payment-method",
523
+ "payment-method": unref(paymentMethod)
524
+ }, null, 8, ["payment-method"])) : createCommentVNode("", true)
525
+ ])) : createCommentVNode("", true)
526
+ ]),
527
+ _: 1
528
+ })) : createCommentVNode("", true),
529
+ hasFailed.value ? (openBlock(), createBlock(unref(_sfc_main$b), {
530
+ key: 1,
531
+ class: "sv-subscription-cancellation-modal__error sv-error",
532
+ title: unref(errorMessage)
533
+ }, null, 8, ["title"])) : createCommentVNode("", true)
534
+ ])
535
+ ]),
536
+ _: 1
537
+ }, 8, ["show-modal", "title", "confirm-button-text", "cancel-button-text", "is-loading", "no-click-away", "no-backdrop-close"]);
538
+ };
539
+ }
540
+ });
541
+ const _hoisted_1 = { class: "sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center" };
542
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
543
+ __name: "SubscriptionDetails",
544
+ props: {
545
+ subscription: { type: Object },
546
+ schedulesData: { type: Array },
547
+ customer: { type: Object },
548
+ paymentMethods: { type: Array },
549
+ walletBalances: { default: () => [], type: Array },
550
+ hasWalletBalancesError: { type: Boolean },
551
+ avatar: { type: String },
552
+ isLoading: { type: Boolean },
553
+ error: { type: null }
554
+ },
555
+ emits: ["top-up-charged", "auto-top-up-saved", "auto-top-up-cancelled", "payment-method-stored", "subscription-changed"],
556
+ setup(__props, { emit: __emit }) {
557
+ const props = __props;
558
+ const emit = __emit;
559
+ const { $t } = useIntl();
560
+ const {
561
+ isCancellable,
562
+ isRenewable,
563
+ pendingVariant,
564
+ cancel: handleCancel,
565
+ renew: handleRenew,
566
+ dismiss: handleDismissCancellation,
567
+ manage: handleUpgrade
568
+ } = useSubscriptionActions({ subscription: toRef(props, "subscription") });
569
+ const confirmedVariant = ref();
570
+ watch(pendingVariant, (variant) => {
571
+ if (variant) confirmedVariant.value = void 0;
572
+ });
573
+ const handleCancellationConfirmed = () => {
574
+ confirmedVariant.value = pendingVariant.value;
575
+ emit("subscription-changed");
576
+ };
577
+ const cancellationSuccessMessage = computed(() => {
578
+ if (!confirmedVariant.value) return void 0;
579
+ return confirmedVariant.value === "RENEW" ? $t({
580
+ defaultMessage: "Your subscription has been renewed.",
581
+ id: "subscription_details.renew_success",
582
+ description: "Confirmation shown after a cancellation has been undone"
583
+ }) : $t({
584
+ defaultMessage: "Your subscription has been cancelled. You keep access until the end of the billing period.",
585
+ id: "subscription_details.cancel_success",
586
+ description: "Confirmation shown after a subscription has been cancelled"
587
+ });
588
+ });
589
+ const currentScheduleInfo = computed(() => getMostRecentScheduleInfo(props.subscription));
590
+ const subscriptionPaymentMethod = computed(
591
+ () => (props.paymentMethods ?? []).find(({ id }) => {
592
+ var _a;
593
+ return id === ((_a = props.subscription) == null ? void 0 : _a.payment_method_id);
594
+ })
595
+ );
596
+ const topUpSubscriptions = computed(() => props.subscription ? [props.subscription] : []);
597
+ const title = computed(
598
+ () => getSubscriptionName({
599
+ subscription: props.subscription,
600
+ fallback: $t({
601
+ defaultMessage: "Subscription details",
602
+ id: "subscription_details.title",
603
+ description: "Title for the subscription details page"
604
+ })
605
+ })
606
+ );
607
+ return (_ctx, _cache) => {
608
+ return openBlock(), createBlock(unref(ContentWithAsideLayout), { class: "sv-subscription-details sv-root sv-screen" }, {
609
+ header: withCtx(() => [
610
+ createElementVNode("div", _hoisted_1, [
611
+ createVNode(unref(_sfc_main$7), {
612
+ variant: "heading-2",
613
+ tag: "h1",
614
+ class: "sv-subscription-details__title grow"
615
+ }, {
616
+ default: withCtx(() => [
617
+ createTextVNode(toDisplayString(title.value), 1)
618
+ ]),
619
+ _: 1
620
+ }),
621
+ unref(isRenewable) ? (openBlock(), createBlock(unref(_sfc_main$8), {
622
+ key: 0,
623
+ intent: "secondary",
624
+ class: "sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",
625
+ type: "button",
626
+ onClick: unref(handleRenew)
627
+ }, {
628
+ default: withCtx(() => [
629
+ createTextVNode(toDisplayString(unref($t)({
630
+ defaultMessage: "Renew subscription",
631
+ id: "subscription_details.renew_button.label",
632
+ description: "Label for the renew subscription button on the subscription details page"
633
+ })), 1)
634
+ ]),
635
+ _: 1
636
+ }, 8, ["onClick"])) : createCommentVNode("", true),
637
+ unref(isCancellable) ? (openBlock(), createBlock(unref(_sfc_main$8), {
638
+ key: 1,
639
+ intent: "secondary",
640
+ class: "sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",
641
+ type: "button",
642
+ onClick: unref(handleCancel)
643
+ }, {
644
+ default: withCtx(() => [
645
+ createTextVNode(toDisplayString(unref($t)({
646
+ defaultMessage: "Cancel subscription",
647
+ id: "subscription_details.cancel_button.label",
648
+ description: "Label for the cancel subscription button on the subscription details page"
649
+ })), 1)
650
+ ]),
651
+ _: 1
652
+ }, 8, ["onClick"])) : createCommentVNode("", true)
653
+ ])
654
+ ]),
655
+ content: withCtx(() => [
656
+ cancellationSuccessMessage.value ? (openBlock(), createBlock(unref(_sfc_main$e), {
657
+ key: 0,
658
+ class: "sv-subscription-details__cancellation-success",
659
+ type: "success",
660
+ title: cancellationSuccessMessage.value
661
+ }, null, 8, ["title"])) : createCommentVNode("", true),
662
+ __props.error ? (openBlock(), createBlock(unref(_sfc_main$b), {
663
+ key: 1,
664
+ class: "sv-subscription-details__error sv-error",
665
+ title: unref($t)({
666
+ defaultMessage: "Unable to load this subscription. Please try again later.",
667
+ id: "subscription_details.load_error",
668
+ description: "Error message shown when the subscription cannot be loaded on the subscription details page"
669
+ })
670
+ }, null, 8, ["title"])) : __props.isLoading ? (openBlock(), createBlock(_sfc_main$f, {
671
+ key: 2,
672
+ variant: "section",
673
+ class: "min-h-[220px]"
674
+ })) : __props.subscription ? (openBlock(), createBlock(_sfc_main$g, {
675
+ key: 3,
676
+ class: "sv-subscription-details__schedules",
677
+ "schedules-data": __props.schedulesData ?? [],
678
+ configuration: { subscriptionId: __props.subscription.id },
679
+ "is-loading": __props.isLoading
680
+ }, null, 8, ["schedules-data", "configuration", "is-loading"])) : (openBlock(), createBlock(_sfc_main$h, {
681
+ key: 4,
682
+ class: "sv-subscription-details__empty-state",
683
+ icon: "receipt_long"
684
+ }, {
685
+ title: withCtx(() => [
686
+ createTextVNode(toDisplayString(unref($t)({
687
+ defaultMessage: "Subscription not found",
688
+ id: "subscription_details.empty_state.title",
689
+ description: "Title shown when the requested subscription does not exist"
690
+ })), 1)
691
+ ]),
692
+ message: withCtx(() => [
693
+ createTextVNode(toDisplayString(unref($t)({
694
+ defaultMessage: "This subscription is no longer available.",
695
+ id: "subscription_details.empty_state.message",
696
+ description: "Message shown when the requested subscription does not exist"
697
+ })), 1)
698
+ ]),
699
+ _: 1
700
+ }))
701
+ ]),
702
+ aside: withCtx(() => [
703
+ createVNode(_sfc_main$c, {
704
+ class: "sv-subscription-details__wallet-balances",
705
+ "has-error": Boolean(__props.hasWalletBalancesError),
706
+ "is-loading": __props.isLoading,
707
+ "wallet-balances": __props.walletBalances,
708
+ "show-top-up-button": "",
709
+ customer: __props.customer,
710
+ "payment-methods": __props.paymentMethods,
711
+ subscriptions: topUpSubscriptions.value,
712
+ onTopUpCharged: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("top-up-charged")),
713
+ onAutoTopUpSaved: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("auto-top-up-saved")),
714
+ onAutoTopUpCancelled: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("auto-top-up-cancelled")),
715
+ onPaymentMethodStored: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("payment-method-stored"))
716
+ }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
717
+ currentScheduleInfo.value ? (openBlock(), createBlock(_sfc_main$4, {
718
+ key: 0,
719
+ class: "sv-subscription-details__upgrades",
720
+ "pricing-plan-schedule": currentScheduleInfo.value,
721
+ onUpgrade: unref(handleUpgrade)
722
+ }, null, 8, ["pricing-plan-schedule", "onUpgrade"])) : createCommentVNode("", true),
723
+ subscriptionPaymentMethod.value ? (openBlock(), createBlock(_sfc_main$d, {
724
+ key: 1,
725
+ class: "sv-subscription-details__payment-method",
726
+ "is-loading": __props.isLoading,
727
+ "payment-methods": [subscriptionPaymentMethod.value],
728
+ configuration: { showViewAllButton: false, showAddButton: false }
729
+ }, null, 8, ["is-loading", "payment-methods"])) : createCommentVNode("", true),
730
+ createVNode(_sfc_main$3, {
731
+ "show-modal": Boolean(unref(pendingVariant)),
732
+ variant: unref(pendingVariant),
733
+ subscription: __props.subscription,
734
+ avatar: __props.avatar,
735
+ onConfirmed: handleCancellationConfirmed,
736
+ onClose: unref(handleDismissCancellation)
737
+ }, null, 8, ["show-modal", "variant", "subscription", "avatar", "onClose"])
738
+ ]),
739
+ _: 1
740
+ });
741
+ };
742
+ }
743
+ });
744
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
745
+ __name: "SubscriptionDetails.entry.view",
746
+ props: {
747
+ configuration: { type: Object },
748
+ environment: { type: String },
749
+ locale: { type: String },
750
+ dateLocale: { type: String },
751
+ messages: { type: Object },
752
+ primaryColor: { type: String },
753
+ secondaryColor: { type: String },
754
+ isShadowRoot: { type: Boolean },
755
+ experimentalFeatures: { type: Array },
756
+ logLevel: { type: String },
757
+ onLog: { type: Function },
758
+ allowedPortalTypes: { type: Array },
759
+ portalObject: { type: Object },
760
+ cssOverrides: { type: [String, Array] },
761
+ branding: { type: Object }
762
+ },
763
+ setup(__props) {
764
+ const props = __props;
765
+ const customerId = props.portalObject.customer_id;
766
+ const {
767
+ subscription,
768
+ withPlanData,
769
+ get: fetchSubscription,
770
+ error
771
+ } = useSubscription({ subscriptionId: props.configuration.subscriptionId });
772
+ const { customer, get: fetchCustomer } = useCustomer({ customerId });
773
+ const { items: paymentMethods, fetchAll: fetchPaymentMethods } = usePaymentMethods({ customerId });
774
+ const {
775
+ walletBalances,
776
+ apiStatus: walletBalancesApiStatus,
777
+ fetch: fetchWalletBalances
778
+ } = useCustomerWalletBalances({ customerId });
779
+ const { isLoading } = useLoadInitialData(
780
+ fetchSubscription(),
781
+ fetchCustomer.execute(),
782
+ fetchPaymentMethods(),
783
+ fetchWalletBalances()
784
+ );
785
+ const schedulesData = computed(() => subscription.value ? withPlanData(subscription.value) : []);
786
+ const walletBalanceItems = computed(() => {
787
+ var _a;
788
+ return ((_a = walletBalances.value) == null ? void 0 : _a.wallet_balances) ?? [];
789
+ });
790
+ const hasWalletBalancesError = computed(() => walletBalancesApiStatus.value === ApiStatus.Failed);
791
+ return (_ctx, _cache) => {
792
+ return renderSlot(_ctx.$slots, "default", {
793
+ subscription: unref(subscription),
794
+ schedulesData: schedulesData.value,
795
+ customer: unref(customer),
796
+ paymentMethods: unref(paymentMethods),
797
+ walletBalances: walletBalanceItems.value,
798
+ hasWalletBalancesError: hasWalletBalancesError.value,
799
+ isLoading: unref(isLoading),
800
+ error: unref(error),
801
+ refreshWalletBalances: unref(fetchWalletBalances),
802
+ refreshPaymentMethods: unref(fetchPaymentMethods),
803
+ refreshSubscription: unref(fetchSubscription)
804
+ });
805
+ };
806
+ }
807
+ });
808
+ const _sfc_main = /* @__PURE__ */ defineComponent({
809
+ __name: "SubscriptionDetails.entry",
810
+ props: {
811
+ configuration: { type: Object },
812
+ environment: { type: String },
813
+ locale: { type: String },
814
+ dateLocale: { type: String },
815
+ messages: { type: Object },
816
+ primaryColor: { type: String },
817
+ secondaryColor: { type: String },
818
+ isShadowRoot: { type: Boolean },
819
+ experimentalFeatures: { type: Array },
820
+ logLevel: { type: String },
821
+ onLog: { type: Function },
822
+ allowedPortalTypes: { type: Array },
823
+ portalObject: { type: Object },
824
+ cssOverrides: { type: [String, Array] },
825
+ branding: { type: Object }
826
+ },
827
+ setup(__props) {
828
+ const componentName = getComponentName("subscription-details");
829
+ return (_ctx, _cache) => {
830
+ return openBlock(), createBlock(unref(_sfc_main$i), {
831
+ entry: _ctx.$props,
832
+ "component-name": unref(componentName),
833
+ "allowed-portal-types": ["CUSTOMER"],
834
+ onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
835
+ }, {
836
+ default: withCtx(() => [
837
+ createVNode(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$props)), {
838
+ default: withCtx(({
839
+ subscription,
840
+ schedulesData,
841
+ customer,
842
+ paymentMethods,
843
+ walletBalances,
844
+ hasWalletBalancesError,
845
+ isLoading,
846
+ error,
847
+ refreshWalletBalances,
848
+ refreshPaymentMethods,
849
+ refreshSubscription
850
+ }) => [
851
+ createVNode(_sfc_main$2, {
852
+ subscription,
853
+ "schedules-data": schedulesData,
854
+ customer,
855
+ avatar: __props.configuration.avatar,
856
+ "payment-methods": paymentMethods,
857
+ "wallet-balances": walletBalances,
858
+ "has-wallet-balances-error": hasWalletBalancesError,
859
+ "is-loading": isLoading,
860
+ error,
861
+ onTopUpCharged: refreshWalletBalances,
862
+ onAutoTopUpSaved: refreshWalletBalances,
863
+ onAutoTopUpCancelled: refreshWalletBalances,
864
+ onPaymentMethodStored: refreshPaymentMethods,
865
+ onSubscriptionChanged: refreshSubscription
866
+ }, null, 8, ["subscription", "schedules-data", "customer", "avatar", "payment-methods", "wallet-balances", "has-wallet-balances-error", "is-loading", "error", "onTopUpCharged", "onAutoTopUpSaved", "onAutoTopUpCancelled", "onPaymentMethodStored", "onSubscriptionChanged"])
867
+ ]),
868
+ _: 1
869
+ }, 16)
870
+ ]),
871
+ _: 1
872
+ }, 8, ["entry", "component-name"]);
873
+ };
874
+ }
875
+ });
876
+ const { define: defineSolvimonSubscriptionDetails } = createSolvimonElement(
877
+ _sfc_main,
878
+ "subscription-details"
879
+ );
880
+ export {
881
+ defineSolvimonSubscriptionDetails
882
+ };