@solvimon/solvimon-web 0.1.0-alpha.19 → 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 (319) hide show
  1. package/README.md +9 -7
  2. package/dist/{AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Y3CzulQq.mjs → AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs} +8 -9
  3. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +1 -0
  4. package/dist/{Amount.vue.es-CRG-6dps.mjs → Amount.vue.es-BO5sS1UX.mjs} +4 -2
  5. package/dist/Amount.vue.es-JDVa_3H-.js +1 -0
  6. package/dist/{Avatar.vue.es-ClUBm_l5.js → Avatar.vue.es-BGTZSAqU.js} +1 -1
  7. package/dist/{Avatar.vue.es-DJp6NEU_.mjs → Avatar.vue.es-DJzJiYtv.mjs} +1 -1
  8. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-BUMK11Dw.mjs → BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs} +5 -6
  9. package/dist/{BillingInformation.vue_vue_type_script_setup_true_lang-DzrInCPA.js → BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js} +1 -1
  10. package/dist/{Button.vue.es-BrWHdiEA.mjs → Button.vue.es-Cm9pLU9i.mjs} +61 -93
  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-CU32AC4n.mjs → Comparators.vue.es-CYfxd5H-.mjs} +1 -1
  15. package/dist/{Comparators.vue.es-CfVGYJ_x.js → Comparators.vue.es-DK8wGjxM.js} +1 -1
  16. package/dist/{ContextMenu.vue.es-BBPFQfqY.mjs → ContextMenu.vue.es-CTc1ktXb.mjs} +23 -23
  17. package/dist/ContextMenu.vue.es-DaW0yp4Y.js +1 -0
  18. package/dist/{CustomerBillingInformation.vue.es-s-LYXA4T.js → CustomerBillingInformation.vue.es-BX0Da7Kr.js} +1 -1
  19. package/dist/{CustomerBillingInformation.vue.es-CLmXk5B9.mjs → CustomerBillingInformation.vue.es-CMZO8oLj.mjs} +3 -3
  20. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +1 -0
  21. package/dist/{CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-B2CtcBm0.mjs → CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs} +8 -10
  22. package/dist/{CustomerWalletBalances.vue_vue_type_script_setup_true_lang-Bej5_H7r.mjs → CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs} +37 -34
  23. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +1 -0
  24. package/dist/{DividerText.vue.es-DMg-DNgi.mjs → DividerText.vue.es-CeAHAe_Y.mjs} +1 -1
  25. package/dist/{DividerText.vue.es-D5ieOE1e.js → DividerText.vue.es-DjT4i_YD.js} +1 -1
  26. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-CTG5XdQt.mjs → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs} +16 -16
  27. package/dist/{EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js → EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js} +1 -1
  28. package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +38 -0
  29. package/dist/ErrorNotification.vue.es-CaEFTi2k.js +1 -0
  30. package/dist/FormMessage.vue.es-Bd4_NG9H.js +1 -0
  31. package/dist/{FormMessage.vue.es-DFQXxiSC.mjs → FormMessage.vue.es-C3oxwq_8.mjs} +3 -3
  32. package/dist/IconButton.vue.es-BHdQskx0.js +1 -0
  33. package/dist/{IconButton.vue.es-DcC4f5EQ.mjs → IconButton.vue.es-KywqWWvr.mjs} +20 -23
  34. package/dist/{IconTitle.vue.es-mQCMxc64.mjs → IconTitle.vue.es-BmjBdZb_.mjs} +13 -11
  35. package/dist/IconTitle.vue.es-D9Wc3PIq.js +1 -0
  36. package/dist/Input.vue.es-DqKJhFTr.js +1 -0
  37. package/dist/{Input.vue.es-Dp_RH03h.mjs → Input.vue.es-WZGF8dfr.mjs} +28 -16
  38. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-56fy6uY6.mjs → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs} +2 -2
  39. package/dist/{InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-CLUcV3qa.js → InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js} +1 -1
  40. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-ztaMeHQc.mjs → InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs} +2 -2
  41. package/dist/{InvoiceEntryView.vue_vue_type_script_setup_true_lang-flgEyaoj.js → InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js} +1 -1
  42. package/dist/{InvoiceSummary.vue.es-nCYeQ4tj.mjs → InvoiceSummary.vue.es-BI5sD_8F.mjs} +1057 -671
  43. package/dist/InvoiceSummary.vue.es-BWYIHezU.js +1 -0
  44. package/dist/Modal.vue.es-B_1aqm_m.js +1 -0
  45. package/dist/{Modal.vue.es-5EpA4Q0t.mjs → Modal.vue.es-qdUHDOnU.mjs} +172 -56
  46. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +1 -0
  47. package/dist/{PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs → PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs} +7 -8
  48. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs} +3 -3
  49. package/dist/{PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-D1oKZZ_m.js → PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js} +1 -1
  50. package/dist/{PaymentHistoryBlock-Dejtgyos.mjs → PaymentHistoryBlock-CgNUV8Gy.mjs} +1 -1
  51. package/dist/{PaymentHistoryBlock-RBxlC5xt.js → PaymentHistoryBlock-Ci8aSJeb.js} +1 -1
  52. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +1 -0
  53. package/dist/{PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs → PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs} +16 -16
  54. package/dist/{PaymentIntegrationForm-CbqfAdkc.mjs → PaymentIntegrationForm-CLokpXvK.mjs} +1 -1
  55. package/dist/{PaymentIntegrationForm-BWr7iyU6.js → PaymentIntegrationForm-CsuueDE0.js} +1 -1
  56. package/dist/{PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs → PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs} +26 -8
  57. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +1 -0
  58. package/dist/{PaymentIntegrationFormAdyen-CuRwe9_9.mjs → PaymentIntegrationFormAdyen-C885o8IE.mjs} +37 -29
  59. package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +1 -0
  60. package/dist/{PaymentIntegrationFormStripe-JZw2m1kJ.mjs → PaymentIntegrationFormStripe-BjMdJmDC.mjs} +8 -6
  61. package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +1 -0
  62. package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +1 -0
  63. package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +677 -0
  64. package/dist/{PaymentMethodForm-C5WqTDow.mjs → PaymentMethodForm-IEuDxEPN.mjs} +1 -1
  65. package/dist/{PaymentMethodForm-CBjHdZT7.js → PaymentMethodForm-hZuVHAti.js} +1 -1
  66. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +1 -0
  67. package/dist/{PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs → PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs} +21 -8
  68. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +1 -0
  69. package/dist/{PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs → PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs} +7 -7
  70. package/dist/{PricingGroupRangeInput.vue.es-A6eW-u2k.mjs → PricingGroupRangeInput.vue.es-ButaePib.mjs} +13 -17
  71. package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +1 -0
  72. package/dist/{Section.vue.es-tLYXp-tF.js → Section.vue.es-CAJvEDn6.js} +1 -1
  73. package/dist/{Section.vue.es-MEFUWCxU.mjs → Section.vue.es-DX_9ueCG.mjs} +1 -1
  74. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +1 -0
  75. package/dist/{SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-xvgyB2Yr.mjs → SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs} +31 -37
  76. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +1 -0
  77. package/dist/{SubscriptionSchedules.vue_vue_type_script_setup_true_lang-B_Zkbqx2.mjs → SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs} +171 -105
  78. package/dist/{SubscriptionSummary.vue_vue_type_script_setup_true_lang-Cj36jvZF.mjs → SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs} +4 -4
  79. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +1 -0
  80. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +1 -0
  81. package/dist/{SubscriptionsList.vue_vue_type_script_setup_true_lang-CfXgGKXA.mjs → SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs} +12 -13
  82. package/dist/{TooltipParagraph.vue.es-B5aHQv9O.mjs → TooltipParagraph.vue.es-C5RTcrid.mjs} +3 -3
  83. package/dist/{TooltipParagraph.vue.es-fSwKGXKg.js → TooltipParagraph.vue.es-H9fI7zzt.js} +1 -1
  84. package/dist/{TrialChip.vue.es-Fp7Lqo-b.mjs → TrialChip.vue.es-B1puKyR-.mjs} +3 -3
  85. package/dist/TrialChip.vue.es-CCs50m02.js +1 -0
  86. package/dist/accel.svg.es-CE5tIWtm.mjs +4 -0
  87. package/dist/accel.svg.es-Dt_1wJmV.js +1 -0
  88. package/dist/ach.svg.es-B4tn0_IV.js +1 -0
  89. package/dist/ach.svg.es-D4QPcIU-.mjs +4 -0
  90. package/dist/{adyen-Ba-mF3Jy.mjs → adyen-BXi_D9TQ.mjs} +14 -21
  91. package/dist/adyen-VS2sDW0m.js +1 -0
  92. package/dist/amazon-pay.svg.es-B428S4f3.js +1 -0
  93. package/dist/amazon-pay.svg.es-DUScOW15.mjs +4 -0
  94. package/dist/amex.svg.es-BCXkaVLN.mjs +4 -0
  95. package/dist/amex.svg.es-Bn9e31C3.js +1 -0
  96. package/dist/apple-pay.svg.es-Cfgn0K28.js +1 -0
  97. package/dist/apple-pay.svg.es-DlCfkt39.mjs +4 -0
  98. package/dist/bacs.svg.es-BKsvSeIP.mjs +4 -0
  99. package/dist/bacs.svg.es-hL7hLPkQ.js +1 -0
  100. package/dist/bancontact.svg.es-BbRqGgZ9.mjs +4 -0
  101. package/dist/bancontact.svg.es-DU2ejvNL.js +1 -0
  102. package/dist/carnet.svg.es-C5SFaOsa.js +1 -0
  103. package/dist/carnet.svg.es-Db-KEb13.mjs +4 -0
  104. package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +4 -0
  105. package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +1 -0
  106. package/dist/cashapp.svg.es-CnS5r_D8.mjs +4 -0
  107. package/dist/cashapp.svg.es-DE4vMu_p.js +1 -0
  108. package/dist/{cn.es-DB5pDpxS.mjs → cn.es-BEU5D0Wz.mjs} +4 -4
  109. package/dist/cn.es-DxSeYcoP.js +1 -0
  110. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  111. package/dist/components/BillingInformation/BillingInformation.mjs +4 -4
  112. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  113. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +8 -8
  114. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  115. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +4 -4
  116. package/dist/components/Invoice/Invoice.cjs +1 -1
  117. package/dist/components/Invoice/Invoice.mjs +19 -19
  118. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  119. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +3 -3
  120. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  121. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +2 -2
  122. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  123. package/dist/components/InvoicesList/InvoicesList.mjs +3 -3
  124. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  125. package/dist/components/PaymentHistory/PaymentHistory.mjs +3 -3
  126. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  127. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +5 -5
  128. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  129. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +4 -4
  130. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  131. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +5 -5
  132. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  133. package/dist/components/WalletBalances/WalletBalances.mjs +3 -3
  134. package/dist/{customElements-DdFA__me.mjs → customElements-B-89a5oH.mjs} +134 -53
  135. package/dist/customElements-DD7bpqkx.js +1 -0
  136. package/dist/{customer-D7HUfF3j.js → customer-DozNwS_a.js} +1 -1
  137. package/dist/{customer-B0AMetq6.mjs → customer-Dzj1g9lV.mjs} +1 -1
  138. package/dist/dana.svg.es-Bbn6_ktN.mjs +4 -0
  139. package/dist/dana.svg.es-DKZaseoJ.js +1 -0
  140. package/dist/dankort.svg.es-D8FgSiFf.js +1 -0
  141. package/dist/dankort.svg.es-DtAdliQq.mjs +4 -0
  142. package/dist/de-DE-BeyQVhTv.mjs +299 -0
  143. package/dist/de-DE-BvHD68Ay.js +1 -0
  144. package/dist/de-DE-CI2zQkiP.mjs +266 -0
  145. package/dist/de-DE-_40QfLNJ.js +1 -0
  146. package/dist/diners.svg.es-DhchsD1D.mjs +4 -0
  147. package/dist/diners.svg.es-SydF_H-Z.js +1 -0
  148. package/dist/discover.svg.es-B8vgzVNG.js +1 -0
  149. package/dist/discover.svg.es-BnqYPvnV.mjs +4 -0
  150. package/dist/eftpos.svg.es-DO0YPaY1.js +1 -0
  151. package/dist/eftpos.svg.es-DRLaafYa.mjs +4 -0
  152. package/dist/elo.svg.es-CTOm1rvj.js +1 -0
  153. package/dist/elo.svg.es-CgkEOP_O.mjs +4 -0
  154. package/dist/en-US--NRsi7Hz.js +1 -0
  155. package/dist/{en-US-D0P7NNNZ.mjs → en-US-5YWNEi-V.mjs} +72 -1
  156. package/dist/{en-US-Daw3v6GD.mjs → en-US-DksUWPIu.mjs} +10 -0
  157. package/dist/en-US-dqfKx3GS.js +1 -0
  158. package/dist/eps.svg.es-CApyGjyU.js +1 -0
  159. package/dist/eps.svg.es-D6IHsRYP.mjs +4 -0
  160. package/dist/formatting.es-DBtYnvI5.js +1 -0
  161. package/dist/{formatting.es-D-oVnc8H.mjs → formatting.es-eYgXv_AK.mjs} +3 -1
  162. package/dist/gcash.svg.es-BhJ-eA2z.mjs +4 -0
  163. package/dist/gcash.svg.es-JaL4fpZr.js +1 -0
  164. package/dist/girocard.svg.es-D_3LML4l.mjs +4 -0
  165. package/dist/girocard.svg.es-tVgtT23w.js +1 -0
  166. package/dist/go-pay.svg.es-6UtgwVBA.mjs +4 -0
  167. package/dist/go-pay.svg.es-fYX6yMzJ.js +1 -0
  168. package/dist/google-pay.svg.es-BYXX1em8.js +1 -0
  169. package/dist/google-pay.svg.es-CRxXgFVl.mjs +4 -0
  170. package/dist/hipercard.svg.es-Ct1-mF9F.mjs +4 -0
  171. package/dist/hipercard.svg.es-D-nmiFXB.js +1 -0
  172. package/dist/icon-sprite.svg.es-BpwT0GQ5.js +1 -0
  173. package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +4 -0
  174. package/dist/ideal.svg.es-D23EhJJ2.mjs +4 -0
  175. package/dist/ideal.svg.es-DXtHE0Jb.js +1 -0
  176. package/dist/{index-C5bKRt7l.mjs → index-Cai7laNY.mjs} +1 -1
  177. package/dist/{index-BJ3dHkSK.js → index-IZaUTAsE.js} +1 -1
  178. package/dist/{index.es-0cystq8F.mjs → index.es-D5xOw_SJ.mjs} +2 -2
  179. package/dist/{invoices-BSd-nKeE.mjs → invoices-1oYkdQQV.mjs} +1 -1
  180. package/dist/{invoices-BiqM6xN6.js → invoices-BAoh6X2a.js} +1 -1
  181. package/dist/it-IT-B6blp8MI.mjs +299 -0
  182. package/dist/it-IT-CEP3oeWs.js +1 -0
  183. package/dist/it-IT-CMy1tHKZ.mjs +266 -0
  184. package/dist/it-IT-aPQY57ht.js +1 -0
  185. package/dist/jcb.svg.es-Bz6J-c0s.js +1 -0
  186. package/dist/jcb.svg.es-CcH08OoO.mjs +4 -0
  187. package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +4 -0
  188. package/dist/kakao-pay.svg.es-qVTABboW.js +1 -0
  189. package/dist/klarna.svg.es-Clu-7zkp.js +1 -0
  190. package/dist/klarna.svg.es-DfIPX0gr.mjs +4 -0
  191. package/dist/maestro.svg.es-CVmNVokN.mjs +4 -0
  192. package/dist/maestro.svg.es-e8E_H2QU.js +1 -0
  193. package/dist/mastercard.svg.es-B8z0ZySS.mjs +4 -0
  194. package/dist/mastercard.svg.es-YO3_jGD6.js +1 -0
  195. package/dist/momo.svg.es-BXTQlQRy.js +1 -0
  196. package/dist/momo.svg.es-Bm5zCTOT.mjs +4 -0
  197. package/dist/{nl-NL-B4zEBFTw.mjs → nl-NL-CckNM7R9.mjs} +10 -0
  198. package/dist/nl-NL-CjoW8r_M.mjs +314 -0
  199. package/dist/nl-NL-e_vf6OuT.js +1 -0
  200. package/dist/nl-NL-zRUAuEHg.js +1 -0
  201. package/dist/nyce.svg.es-CgurqLKH.mjs +4 -0
  202. package/dist/nyce.svg.es-DM6esO47.js +1 -0
  203. package/dist/open-banking.svg.es-DUM360xB.js +1 -0
  204. package/dist/open-banking.svg.es-DzzLCVp_.mjs +4 -0
  205. package/dist/{paymentMethods-Cu2RzLgm.js → paymentMethods-CZ3ydybI.js} +1 -1
  206. package/dist/{paymentMethods-BsrkEbKT.mjs → paymentMethods-DIV78w0O.mjs} +1 -1
  207. package/dist/{payments-Bbm1HMQj.js → payments--lkjiwCt.js} +1 -1
  208. package/dist/{payments-B6Nfd6Al.mjs → payments-Cvqdrprv.mjs} +1 -1
  209. package/dist/paypal.svg.es-BdkNTf3c.js +1 -0
  210. package/dist/paypal.svg.es-DltWzW4V.mjs +4 -0
  211. package/dist/pulse.svg.es-BdpWAuIN.js +1 -0
  212. package/dist/pulse.svg.es-BecAwT-p.mjs +4 -0
  213. package/dist/screens/Checkout/Checkout.cjs +1 -1
  214. package/dist/screens/Checkout/Checkout.mjs +62 -62
  215. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  216. package/dist/screens/CustomerOverview/CustomerOverview.mjs +10 -10
  217. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  218. package/dist/screens/PayInvoice/PayInvoice.mjs +141 -38
  219. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  220. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +12 -14
  221. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  222. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +28 -31
  223. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  224. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +18 -18
  225. package/dist/sepa.svg.es-BF8PYKZg.js +1 -0
  226. package/dist/sepa.svg.es-cbE9g8gV.mjs +4 -0
  227. package/dist/star.svg.es-DsCD-tSp.mjs +4 -0
  228. package/dist/star.svg.es-Q50IzqXr.js +1 -0
  229. package/dist/{subscriptions-B4BOzLxR.js → subscriptions-300o4ae0.js} +1 -1
  230. package/dist/{subscriptions-C2C4WTuI.mjs → subscriptions-DcMHBPVJ.mjs} +1 -1
  231. package/dist/trustly.svg.es-C0Ou1HWk.mjs +4 -0
  232. package/dist/trustly.svg.es-CHojqNqm.js +1 -0
  233. package/dist/twint.svg.es-CQ-ZDfy8.js +1 -0
  234. package/dist/twint.svg.es-WrZYquRs.mjs +4 -0
  235. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +2 -0
  236. package/dist/types/components/payments/PaymentMethodsUnavailableCard/PaymentMethodsUnavailableCard.types.d.ts +8 -0
  237. package/dist/types/components/providers/LoggerProvider/LoggerProvider.lib.d.ts +8 -0
  238. package/dist/types/components/providers/LoggerProvider/LoggerProvider.types.d.ts +32 -2
  239. package/dist/types/translations/supported.d.ts +1 -1
  240. package/dist/unionpay.svg.es-DYgo83Hf.mjs +4 -0
  241. package/dist/unionpay.svg.es-YqJKKFEj.js +1 -0
  242. package/dist/url-CjULBkjW.js +1 -0
  243. package/dist/url-CvNDq4wp.mjs +22 -0
  244. package/dist/{useActionDispatchProvider-D55t_7LY.mjs → useActionDispatchProvider-BVOBO0Jx.mjs} +1 -1
  245. package/dist/{useActionDispatchProvider-Cz8xLLYA.js → useActionDispatchProvider-Cv9amjTf.js} +1 -1
  246. package/dist/{useCustomer-DYCpgA-3.js → useCustomer-DLHOs4BR.js} +1 -1
  247. package/dist/{useCustomer-BNhHz9RJ.mjs → useCustomer-EDhref7T.mjs} +1 -1
  248. package/dist/{useCustomerFormLabels-mX5QpApD.mjs → useCustomerFormLabels-B61-4xQ7.mjs} +111 -85
  249. package/dist/useCustomerFormLabels-C6wW4n2e.js +1 -0
  250. package/dist/useExperimentalFeature-0yFoaEzV.js +1 -0
  251. package/dist/useExperimentalFeature-DvxOrFPU.mjs +9 -0
  252. package/dist/{useInvoiceData-BczeMpuk.js → useInvoiceData-BSjVeJrI.js} +1 -1
  253. package/dist/{useInvoiceData-D-EvEioP.mjs → useInvoiceData-C0Y5WrbT.mjs} +2 -2
  254. package/dist/useInvoicesList-BRDZqsaB.js +1 -0
  255. package/dist/{useInvoicesList-BJJYwkIA.mjs → useInvoicesList-CYoE7q0u.mjs} +220 -184
  256. package/dist/{useLoadInitialData-BoGjdUu-.mjs → useLoadInitialData-Cp1OA8y6.mjs} +1 -1
  257. package/dist/{useLoadInitialData-CiJldX50.js → useLoadInitialData-u7IyXqb6.js} +1 -1
  258. package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +1 -0
  259. package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +141 -0
  260. package/dist/{usePaymentMethodOptions-fBvWYynV.js → usePaymentMethodOptions--8QpMvNm.js} +1 -1
  261. package/dist/{usePaymentMethodOptions-d49aOdLB.mjs → usePaymentMethodOptions-Cljh7HYp.mjs} +1 -1
  262. package/dist/{usePaymentMethods-Bkouz8aQ.mjs → usePaymentMethods-BJzoI8dZ.mjs} +1 -1
  263. package/dist/{usePaymentMethods-CFL3hFW_.js → usePaymentMethods-DvEnJWmB.js} +1 -1
  264. package/dist/usePayments-CANj0QVc.js +1 -0
  265. package/dist/{usePayments-BlliAt1E.mjs → usePayments-CaT1CBzE.mjs} +159 -59
  266. package/dist/{usePortal-fhri8neB.js → usePortal-BjGoSeLy.js} +1 -1
  267. package/dist/{usePortal-eyA4OqjU.mjs → usePortal-CMPQ0M9R.mjs} +1 -1
  268. package/dist/{useSubscription--IGLmLS6.mjs → useSubscription-D1UKnZAx.mjs} +1 -1
  269. package/dist/{useSubscription-V3KSuhOY.js → useSubscription-DZfRHbL7.js} +1 -1
  270. package/dist/visa.svg.es-B6aU_qRs.mjs +4 -0
  271. package/dist/visa.svg.es-D6sc4YTE.js +1 -0
  272. package/dist/vpay.svg.es-4qIqS4aX.mjs +4 -0
  273. package/dist/vpay.svg.es-CLGTyB09.js +1 -0
  274. package/dist/zip.svg.es-3PzSBe1E.mjs +4 -0
  275. package/dist/zip.svg.es-BRsgmur-.js +1 -0
  276. package/package.json +14 -2
  277. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang--AVI4Q4E.js +0 -1
  278. package/dist/Amount.vue.es-CeW8S7kT.js +0 -1
  279. package/dist/Button.vue.es-aLcIdATK.js +0 -1
  280. package/dist/Chip.vue.es-DPGTweAr.mjs +0 -164
  281. package/dist/Chip.vue.es-q4c-DXXl.js +0 -1
  282. package/dist/ContextMenu.vue.es-C_TL7-kg.js +0 -1
  283. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js +0 -1
  284. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js +0 -1
  285. package/dist/ErrorNotification.vue.es-BX3khKFc.js +0 -1
  286. package/dist/ErrorNotification.vue.es-C22Kt8Qn.mjs +0 -30
  287. package/dist/FormMessage.vue.es-LeWoj774.js +0 -1
  288. package/dist/IconButton.vue.es-CVFn0Ntj.js +0 -1
  289. package/dist/IconTitle.vue.es-DoN4GVde.js +0 -1
  290. package/dist/Input.vue.es-C8VhMKuI.js +0 -1
  291. package/dist/InvoiceSummary.vue.es-emE-mCFh.js +0 -1
  292. package/dist/Modal.vue.es-CX5geho3.js +0 -1
  293. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-B_IIOBjg.js +0 -1
  294. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js +0 -1
  295. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js +0 -1
  296. package/dist/PaymentIntegrationFormAdyen-BjPpoLF7.js +0 -1
  297. package/dist/PaymentIntegrationFormStripe-51KZc27R.js +0 -1
  298. package/dist/PaymentMethod.vue.es-CH__kPw4.mjs +0 -636
  299. package/dist/PaymentMethod.vue.es-uVZO0Zju.js +0 -1
  300. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js +0 -1
  301. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js +0 -1
  302. package/dist/PricingGroupRangeInput.vue.es-BuQeJCEX.js +0 -1
  303. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Jk34S5B7.js +0 -1
  304. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js +0 -1
  305. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js +0 -1
  306. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-CTnTWaB8.js +0 -1
  307. package/dist/TrialChip.vue.es-0nrqSZeY.js +0 -1
  308. package/dist/adyen-BMDZQBUG.js +0 -1
  309. package/dist/cn.es-BLHlMR4Y.js +0 -1
  310. package/dist/customElements-BTJzBHMy.js +0 -1
  311. package/dist/en-US-BSrbFk5W.js +0 -1
  312. package/dist/en-US-scSQQXK8.js +0 -1
  313. package/dist/formatting.es-9hM8aHSg.js +0 -1
  314. package/dist/nl-NL-B5tuyIOM.mjs +0 -88
  315. package/dist/nl-NL-Bs3d8q6T.js +0 -1
  316. package/dist/nl-NL-DIAZWDF9.js +0 -1
  317. package/dist/useCustomerFormLabels-Cw6QpEJY.js +0 -1
  318. package/dist/useInvoicesList-rMg-8LbH.js +0 -1
  319. package/dist/usePayments-BKTNn_RN.js +0 -1
@@ -1,27 +1,83 @@
1
- import { defineComponent, computed, capitalize, openBlock, createBlock, unref, mergeProps, withCtx, createTextVNode, toDisplayString, ref, createVNode, createCommentVNode, createElementBlock, Fragment, createElementVNode, normalizeClass, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
- import { f as formatAmount } from "../../formatting.es-D-oVnc8H.mjs";
3
- import { a as _sfc_main$4, _ as _sfc_main$9 } from "../../Button.vue.es-BrWHdiEA.mjs";
4
- import { _ as _sfc_main$c, u as useInvoice, a as usePayments } from "../../usePayments-BlliAt1E.mjs";
5
- import { _ as _sfc_main$6 } from "../../InvoiceSummary.vue.es-nCYeQ4tj.mjs";
6
- import { _ as _sfc_main$a } from "../../Section.vue.es-MEFUWCxU.mjs";
7
- import { u as useIntl, _ as _sfc_main$8, d as _sfc_main$d, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
1
+ import { defineComponent, computed, openBlock, createElementBlock, withDirectives, createElementVNode, mergeProps, withModifiers, unref, isRef, vModelCheckbox, normalizeClass, toDisplayString, capitalize, createBlock, withCtx, createTextVNode, ref, createVNode, createCommentVNode, Fragment, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import { f as formatAmount } from "../../formatting.es-eYgXv_AK.mjs";
3
+ import { a as _sfc_main$5, _ as _sfc_main$a } from "../../Button.vue.es-Cm9pLU9i.mjs";
4
+ import { u as useVModel } from "../../index.es-D5xOw_SJ.mjs";
5
+ import { _ as _sfc_main$e, u as useInvoice, a as usePayments } from "../../usePayments-CaT1CBzE.mjs";
6
+ import { _ as _sfc_main$7 } from "../../InvoiceSummary.vue.es-BI5sD_8F.mjs";
7
+ import { _ as _sfc_main$b } from "../../Section.vue.es-DX_9ueCG.mjs";
8
+ import { u as useIntl, _ as _sfc_main$9, d as _sfc_main$f, e as createSolvimonElement } from "../../customElements-B-89a5oH.mjs";
8
9
  import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
9
- import { _ as _sfc_main$b } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs";
10
- import { _ as _sfc_main$5 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
11
- import { _ as _sfc_main$7 } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs";
10
+ import { _ as _sfc_main$c } from "../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs";
11
+ import { _ as _sfc_main$6 } from "../../Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs";
12
+ import { _ as _sfc_main$8 } from "../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs";
13
+ import { u as usePaymentMethodAvailability, _ as _sfc_main$d } from "../../usePaymentMethodAvailability-EuhZPghG.mjs";
12
14
  import { g as getCustomerCountry } from "../../customer.es-C_vSWcVA.mjs";
13
- import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
14
- import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
15
- import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
15
+ import { u as useLoadInitialData } from "../../useLoadInitialData-Cp1OA8y6.mjs";
16
+ import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-Cljh7HYp.mjs";
17
+ import { u as usePaymentMethods } from "../../usePaymentMethods-BJzoI8dZ.mjs";
16
18
  import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
19
+ const _hoisted_1$1 = { class: "flex items-center gap-1 border-0 py-0" };
20
+ const _hoisted_2$1 = ["id", "name", "disabled", "value"];
21
+ const _hoisted_3 = ["for"];
22
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23
+ __name: "Checkbox",
24
+ props: {
25
+ modelValue: { type: Boolean },
26
+ label: {},
27
+ id: {},
28
+ name: {},
29
+ value: {},
30
+ disabled: { type: Boolean },
31
+ size: { default: "md" }
32
+ },
33
+ setup(__props) {
34
+ const props = __props;
35
+ const model = useVModel(props, "modelValue");
36
+ const labelSizeClassMap = {
37
+ sm: "size-2",
38
+ md: "size-4"
39
+ };
40
+ const labelSizeClass = computed(() => labelSizeClassMap[props.size]);
41
+ const checkboxSizeClassMap = {
42
+ sm: "text-xs",
43
+ md: "text-sm"
44
+ };
45
+ const checkboxSizeClass = computed(() => checkboxSizeClassMap[props.size]);
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createElementBlock("label", _hoisted_1$1, [
48
+ withDirectives(createElementVNode("input", mergeProps({ id: __props.id }, _ctx.$attrs, {
49
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
50
+ name: __props.name,
51
+ disabled: __props.disabled,
52
+ value: __props.value,
53
+ type: "checkbox",
54
+ class: ["rounded checked:bg-primary-600 checked:hover:bg-primary-700", {
55
+ "border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500": __props.disabled,
56
+ "bg-gray-100": __props.disabled && !unref(model),
57
+ "bg-gray-300 text-primary-600": !__props.disabled && unref(model),
58
+ "cursor-pointer": !__props.disabled,
59
+ [labelSizeClass.value]: true
60
+ }],
61
+ onClickCapture: _cache[1] || (_cache[1] = withModifiers(() => {
62
+ }, ["stop"]))
63
+ }), null, 16, _hoisted_2$1), [
64
+ [vModelCheckbox, unref(model)]
65
+ ]),
66
+ createElementVNode("span", {
67
+ for: __props.id,
68
+ class: normalizeClass(["leading-tight", { [checkboxSizeClass.value]: true }])
69
+ }, toDisplayString(__props.label), 11, _hoisted_3)
70
+ ]);
71
+ };
72
+ }
73
+ });
17
74
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
18
75
  __name: "PayButton",
19
76
  props: {
20
77
  amount: { type: Object },
21
78
  paymentMethod: { type: Object },
22
79
  type: { type: String },
23
- variant: { type: String },
24
- color: { type: String },
80
+ intent: { type: String },
25
81
  size: { type: String },
26
82
  pill: { type: Boolean },
27
83
  square: { type: Boolean },
@@ -37,7 +93,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
37
93
  const props = __props;
38
94
  const { $t } = useIntl();
39
95
  const buttonProps = computed(() => ({
40
- color: props.color ?? "primary",
96
+ intent: props.intent ?? "primary",
41
97
  disabled: props.disabled,
42
98
  iconPrefix: props.iconPrefix,
43
99
  iconSuffix: props.iconSuffix,
@@ -46,8 +102,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
46
102
  size: props.size ?? "lg",
47
103
  square: props.square,
48
104
  tag: props.tag,
49
- type: props.type,
50
- variant: props.variant
105
+ type: props.type
51
106
  }));
52
107
  const paymentMethodTypeLabel = computed(() => {
53
108
  var _a, _b, _c;
@@ -157,7 +212,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
157
212
  });
158
213
  });
159
214
  return (_ctx, _cache) => {
160
- return openBlock(), createBlock(unref(_sfc_main$4), mergeProps(buttonProps.value, {
215
+ return openBlock(), createBlock(unref(_sfc_main$5), mergeProps(buttonProps.value, {
161
216
  class: "w-full",
162
217
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
163
218
  }), {
@@ -169,7 +224,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
169
224
  };
170
225
  }
171
226
  });
172
- const _hoisted_1 = { key: 0 };
227
+ const _hoisted_1 = { class: "mt-4" };
228
+ const _hoisted_2 = { key: 0 };
173
229
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
174
230
  __name: "PayInvoice",
175
231
  props: {
@@ -186,7 +242,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
186
242
  setup(__props) {
187
243
  const { $t } = useIntl();
188
244
  const props = __props;
245
+ const { availability } = usePaymentMethodAvailability({
246
+ paymentMethodOptions: () => props.paymentMethodOptions,
247
+ isLoading: () => props.isLoading,
248
+ context: () => {
249
+ var _a;
250
+ return { invoiceId: (_a = props.invoice) == null ? void 0 : _a.id };
251
+ }
252
+ });
189
253
  const selectedPaymentMethod = ref();
254
+ const storePaymentMethod = ref(true);
190
255
  const paymentIntegrationFormRef = ref();
191
256
  const isPaymentPending = ref(false);
192
257
  function handleSubmit() {
@@ -207,9 +272,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
207
272
  return (_ctx, _cache) => {
208
273
  return openBlock(), createBlock(unref(ContentWithAsideLayout), null, {
209
274
  header: withCtx(() => [
210
- createVNode(_sfc_main$5, { class: "min-h-[52px] w-96" }, {
275
+ createVNode(_sfc_main$6, { class: "min-h-[52px] w-96" }, {
211
276
  default: withCtx(() => [
212
- __props.invoice && __props.downloadService ? (openBlock(), createBlock(unref(_sfc_main$c), {
277
+ __props.invoice && __props.downloadService ? (openBlock(), createBlock(unref(_sfc_main$e), {
213
278
  key: 0,
214
279
  invoice: __props.invoice,
215
280
  "payment-attempts": __props.paymentAttempts,
@@ -222,12 +287,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
222
287
  content: withCtx(() => {
223
288
  var _a, _b;
224
289
  return [
225
- __props.isLoading ? (openBlock(), createBlock(_sfc_main$5, {
290
+ __props.isLoading ? (openBlock(), createBlock(_sfc_main$6, {
226
291
  key: 0,
227
292
  variant: "section",
228
293
  class: "min-h-[300px]"
229
294
  })) : createCommentVNode("", true),
230
- ((_a = __props.invoice) == null ? void 0 : _a.paid) ? (openBlock(), createBlock(_sfc_main$7, {
295
+ ((_a = __props.invoice) == null ? void 0 : _a.paid) ? (openBlock(), createBlock(_sfc_main$8, {
231
296
  key: 1,
232
297
  status: "success",
233
298
  title: unref($t)({
@@ -238,19 +303,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
238
303
  class: "mt-8"
239
304
  }, {
240
305
  default: withCtx(() => [
241
- createVNode(unref(_sfc_main$8), {
306
+ createVNode(unref(_sfc_main$9), {
242
307
  variant: "body-sm",
243
308
  class: "mt-1"
244
309
  }, {
245
310
  default: withCtx(() => [
246
- createVNode(unref(_sfc_main$9), { icon: "check" }),
311
+ createVNode(unref(_sfc_main$a), { icon: "check" }),
247
312
  createTextVNode(toDisplayString(unref(formatAmount)(__props.invoice.tax_summary.total_amount)), 1)
248
313
  ]),
249
314
  _: 1
250
315
  })
251
316
  ]),
252
317
  _: 1
253
- }, 8, ["title"])) : __props.error ? (openBlock(), createBlock(_sfc_main$7, {
318
+ }, 8, ["title"])) : __props.error ? (openBlock(), createBlock(_sfc_main$8, {
254
319
  key: 2,
255
320
  status: "error",
256
321
  title: unref($t)({
@@ -260,7 +325,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
260
325
  })
261
326
  }, {
262
327
  default: withCtx(() => [
263
- createVNode(unref(_sfc_main$8), {
328
+ createVNode(unref(_sfc_main$9), {
264
329
  variant: "body-sm",
265
330
  class: "mt-1"
266
331
  }, {
@@ -276,7 +341,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
276
341
  ]),
277
342
  _: 1
278
343
  }, 8, ["title"])) : !__props.isLoading && __props.countryCode && __props.amount && __props.invoice ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
279
- ((_b = __props.paymentMethodOptions) == null ? void 0 : _b.length) ? (openBlock(), createBlock(unref(_sfc_main$a), {
344
+ unref(availability) === "READY" ? (openBlock(), createBlock(unref(_sfc_main$b), {
280
345
  key: 0,
281
346
  title: unref($t)({
282
347
  id: "pay_invoice.payment_methods.title",
@@ -291,7 +356,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
291
356
  createElementVNode("div", {
292
357
  class: normalizeClass({ "pointer-events-none opacity-60": isPaymentPending.value })
293
358
  }, [
294
- createVNode(_sfc_main$b, {
359
+ createVNode(_sfc_main$c, {
295
360
  ref_key: "paymentIntegrationFormRef",
296
361
  ref: paymentIntegrationFormRef,
297
362
  amount: __props.amount,
@@ -306,35 +371,73 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
306
371
  ]
307
372
  },
308
373
  "customer-id": __props.invoice.customer.id,
309
- "force-store-payment-method": "",
374
+ "store-payment-method": storePaymentMethod.value,
310
375
  "invoice-id": __props.invoice.id,
311
- "payment-method-options": __props.paymentMethodOptions,
376
+ "payment-method-options": __props.paymentMethodOptions ?? [],
312
377
  variant: "AUTHORIZE",
313
378
  onPaymentSuccess: handlePaymentSuccess,
314
379
  onPaymentFailed: handlePaymentFailed,
315
380
  onSelect: _cache[0] || (_cache[0] = (payload) => selectedPaymentMethod.value = payload)
316
- }, null, 8, ["amount", "country-code", "context", "customer-id", "invoice-id", "payment-method-options"])
381
+ }, null, 8, ["amount", "country-code", "context", "customer-id", "store-payment-method", "invoice-id", "payment-method-options"]),
382
+ createElementVNode("div", _hoisted_1, [
383
+ createVNode(unref(_sfc_main$4), {
384
+ id: "pay-invoice-store-payment-method",
385
+ modelValue: storePaymentMethod.value,
386
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => storePaymentMethod.value = $event),
387
+ label: unref($t)({
388
+ id: "pay_invoice.store_payment_method.label",
389
+ defaultMessage: "Save this payment method for future payments",
390
+ description: "Label of the checkbox that stores the payment method while paying an invoice"
391
+ })
392
+ }, null, 8, ["modelValue", "label"])
393
+ ])
317
394
  ], 2)
318
395
  ]),
319
396
  _: 1
320
- }, 8, ["title"])) : createCommentVNode("", true)
397
+ }, 8, ["title"])) : (openBlock(), createBlock(_sfc_main$d, {
398
+ key: 1,
399
+ variant: "AUTHORIZE",
400
+ "seller-name": (_b = __props.invoice.billing_entity) == null ? void 0 : _b.legal_name
401
+ }, {
402
+ default: withCtx(() => [
403
+ __props.downloadService ? (openBlock(), createBlock(unref(_sfc_main$5), {
404
+ key: 0,
405
+ type: "button",
406
+ intent: "secondary",
407
+ onClick: _cache[2] || (_cache[2] = () => {
408
+ var _a2;
409
+ return (_a2 = __props.downloadService) == null ? void 0 : _a2.call(__props, __props.invoice.id);
410
+ })
411
+ }, {
412
+ default: withCtx(() => [
413
+ createTextVNode(toDisplayString(unref($t)({
414
+ defaultMessage: "Download invoice",
415
+ description: "Button that downloads the invoice when it cannot be paid online",
416
+ id: "pay_invoice.unavailable.download_invoice"
417
+ })), 1)
418
+ ]),
419
+ _: 1
420
+ })) : createCommentVNode("", true)
421
+ ]),
422
+ _: 1
423
+ }, 8, ["seller-name"]))
321
424
  ], 64)) : createCommentVNode("", true)
322
425
  ];
323
426
  }),
324
427
  aside: withCtx(() => [
325
- createVNode(_sfc_main$5, {
428
+ createVNode(_sfc_main$6, {
326
429
  variant: "section",
327
430
  class: "min-h-[200px]"
328
431
  }, {
329
432
  default: withCtx(() => [
330
- __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$6), {
433
+ __props.invoice ? (openBlock(), createBlock(unref(_sfc_main$7), {
331
434
  key: 0,
332
435
  invoice: __props.invoice
333
436
  }, null, 8, ["invoice"])) : createCommentVNode("", true)
334
437
  ]),
335
438
  _: 1
336
439
  }),
337
- __props.invoice ? (openBlock(), createElementBlock("div", _hoisted_1, [
440
+ __props.invoice && unref(availability) === "READY" ? (openBlock(), createElementBlock("div", _hoisted_2, [
338
441
  createVNode(_sfc_main$3, {
339
442
  disabled: !selectedPaymentMethod.value || isPaymentPending.value,
340
443
  loading: isPaymentPending.value,
@@ -434,7 +537,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
434
537
  setup(__props) {
435
538
  const componentName = getComponentName("pay-invoice");
436
539
  return (_ctx, _cache) => {
437
- return openBlock(), createBlock(unref(_sfc_main$d), {
540
+ return openBlock(), createBlock(unref(_sfc_main$f), {
438
541
  entry: _ctx.$props,
439
542
  "component-name": unref(componentName),
440
543
  "allowed-portal-types": ["CUSTOMER"],
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-aLcIdATK.js"),o=require("../../Section.vue.es-tLYXp-tF.js"),n=require("../../customElements-BTJzBHMy.js"),r=require("../../ContentWithAsideLayout-DHpnJfGA.js"),a=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-XPz73RVU.js"),s=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-BktA5F4r.js"),i=require("../../useCustomer-DYCpgA-3.js"),m=require("../../usePaymentMethods-CFL3hFW_.js"),p=require("../../usePaymentMethodOptions-fBvWYynV.js"),d=require("../../useLoadInitialData-CiJldX50.js"),l=require("../../component-hDuDTBt5.js"),c={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},u={key:0},y=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup:t=>(o,r)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",null,[e.createVNode(e.unref(n._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),t.description?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,variant:"body-sm",shade:"lighter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)]),o.$slots.right?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"right")])):e.createCommentVNode("",!0)]))}),h=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete"],setup(i,{emit:m}){const p=m,{$t:d}=n.useIntl(),l=e.ref(!1);return(n,m)=>(e.openBlock(),e.createBlock(e.unref(r.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(y,{title:e.unref(d)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(d)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(o._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(a._sfc_main,{"payment-methods":i.paymentMethods,onSetDefault:m[0]||(m[0]=e=>p("set-default")),onDelete:m[1]||(m[1]=e=>p("delete"))},null,8,["payment-methods"])]),_:1}),l.value?(e.openBlock(),e.createBlock(s._sfc_main,{key:0,customer:i.customer,"payment-method-options":i.paymentMethodOptions},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,color:"gray",variant:"outline",onClick:m[2]||(m[2]=e=>l.value=!1)},{default:e.withCtx(()=>[...m[4]||(m[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:2,color:"gray",variant:"outline",onClick:m[3]||(m[3]=e=>l.value=!0)},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),g=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const o=t,n=o.portalObject.customer_id,{customer:r,get:a}=i.useCustomer({customerId:n}),{items:s,fetchInitial:l}=m.usePaymentMethods({customerId:o.portalObject.customer_id}),{paymentMethodOptions:c,get:u}=p.usePaymentMethodOptions(),{isLoading:y}=d.useLoadInitialData(a.execute(),l(),u({customerId:o.portalObject.customer_id}));return(t,o)=>e.renderSlot(t.$slots,"default",{customer:e.unref(r),paymentMethods:e.unref(s),paymentMethodOptions:e.unref(c),isLoading:e.unref(y),refreshPaymentMethods:e.unref(l)})}}),f=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const o=l.getComponentName("payment-methods-management");return(t,r)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{entry:t.$props,"component-name":e.unref(o),"allowed-portal-types":["CUSTOMER"],onError:r[0]||(r[0]=e=>t.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(g,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(({customer:t,paymentMethods:o,paymentMethodOptions:n,isLoading:r,refreshPaymentMethods:a})=>[t?(e.openBlock(),e.createBlock(h,{key:0,"is-loading":r,"payment-methods":o,"payment-method-options":n,customer:t,onSetDefault:a,onDelete:a},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:_}=n.createSolvimonElement(f,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=_;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../Button.vue.es-O8mNivLL.js"),n=require("../../Section.vue.es-CAJvEDn6.js"),o=require("../../customElements-DD7bpqkx.js"),r=require("../../ContentWithAsideLayout-DHpnJfGA.js"),a=require("../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js"),s=require("../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js"),i=require("../../useCustomer-DLHOs4BR.js"),m=require("../../usePaymentMethods-DvEnJWmB.js"),p=require("../../usePaymentMethodOptions--8QpMvNm.js"),d=require("../../useLoadInitialData-u7IyXqb6.js"),l=require("../../component-hDuDTBt5.js"),c={class:"grid gap-4 sm:grid-cols-1 md:grid-cols-2"},u={key:0},y=e.defineComponent({__name:"ScreenTitle",props:{title:{type:String},description:{type:String}},setup:t=>(n,r)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",null,[e.createVNode(e.unref(o._sfc_main),{variant:"heading-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),t.description?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,variant:"body-sm",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)]),n.$slots.right?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(n.$slots,"right")])):e.createCommentVNode("",!0)]))}),h=e.defineComponent({__name:"PaymentMethodsManagement",props:{customer:{type:Object},paymentMethods:{type:Array},paymentMethodOptions:{type:Array},isLoading:{type:Boolean},error:{type:null}},emits:["set-default","delete"],setup(i,{emit:m}){const p=m,{$t:d}=o.useIntl(),l=e.ref(!1);return(o,m)=>(e.openBlock(),e.createBlock(e.unref(r.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(y,{title:e.unref(d)({defaultMessage:"Payment methods",id:"screens.payment_method_management.title",description:"The title for the payment method management screen "}),description:e.unref(d)({defaultMessage:"Add a new payment method or set a default payment method for your payments.",id:"screens.payment_method_management.description",description:"The descriptive text for the payment method management screen"})},null,8,["title","description"])]),content:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main),{"no-border":"","no-spacing":"","content-background":"none",title:"Your payment methods"},{default:e.withCtx(()=>[e.createVNode(a._sfc_main,{"payment-methods":i.paymentMethods,onSetDefault:m[0]||(m[0]=e=>p("set-default")),onDelete:m[1]||(m[1]=e=>p("delete"))},null,8,["payment-methods"])]),_:1}),l.value?(e.openBlock(),e.createBlock(s._sfc_main,{key:0,customer:i.customer,"payment-method-options":i.paymentMethodOptions},null,8,["customer","payment-method-options"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:1,intent:"secondary",onClick:m[2]||(m[2]=e=>l.value=!1)},{default:e.withCtx(()=>[...m[4]||(m[4]=[e.createTextVNode("Cancel",-1)])]),_:1})):(e.openBlock(),e.createBlock(e.unref(t._sfc_main$1),{key:2,intent:"secondary",onClick:m[3]||(m[3]=e=>l.value=!0)},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("Add payment method",-1)])]),_:1}))]),_:1}))}}),g=e.defineComponent({__name:"PaymentMethodsManagement.entry.view",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=t,o=n.portalObject.customer_id,{customer:r,get:a}=i.useCustomer({customerId:o}),{items:s,fetchInitial:l}=m.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:c,get:u}=p.usePaymentMethodOptions(),{isLoading:y}=d.useLoadInitialData(a.execute(),l(),u({customerId:n.portalObject.customer_id}));return(t,n)=>e.renderSlot(t.$slots,"default",{customer:e.unref(r),paymentMethods:e.unref(s),paymentMethodOptions:e.unref(c),isLoading:e.unref(y),refreshPaymentMethods:e.unref(l)})}}),f=e.defineComponent({__name:"PaymentMethodsManagement.entry",props:{environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=l.getComponentName("payment-methods-management");return(t,r)=>(e.openBlock(),e.createBlock(e.unref(o._sfc_main$1),{entry:t.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:r[0]||(r[0]=e=>t.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(g,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(({customer:t,paymentMethods:n,paymentMethodOptions:o,isLoading:r,refreshPaymentMethods:a})=>[t?(e.openBlock(),e.createBlock(h,{key:0,"is-loading":r,"payment-methods":n,"payment-method-options":o,customer:t,onSetDefault:a,onDelete:a},null,8,["is-loading","payment-methods","payment-method-options","customer","onSetDefault","onDelete"])):e.createCommentVNode("",!0)]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:_}=o.createSolvimonElement(f,"payment-methods-management");exports.defineSolvimonPaymentMethodsManagement=_;
@@ -1,14 +1,14 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, renderSlot, ref, normalizeProps, guardReactiveProps } from "vue";
2
- import { a as _sfc_main$8 } from "../../Button.vue.es-BrWHdiEA.mjs";
3
- import { _ as _sfc_main$5 } from "../../Section.vue.es-MEFUWCxU.mjs";
4
- import { _ as _sfc_main$4, u as useIntl, d as _sfc_main$9, e as createSolvimonElement } from "../../customElements-DdFA__me.mjs";
2
+ import { a as _sfc_main$8 } from "../../Button.vue.es-Cm9pLU9i.mjs";
3
+ import { _ as _sfc_main$5 } from "../../Section.vue.es-DX_9ueCG.mjs";
4
+ import { _ as _sfc_main$4, u as useIntl, d as _sfc_main$9, e as createSolvimonElement } from "../../customElements-B-89a5oH.mjs";
5
5
  import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
6
- import { _ as _sfc_main$6 } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-DbTvbHk7.mjs";
7
- import { _ as _sfc_main$7 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-DhPTbip8.mjs";
8
- import { u as useCustomer } from "../../useCustomer-BNhHz9RJ.mjs";
9
- import { u as usePaymentMethods } from "../../usePaymentMethods-Bkouz8aQ.mjs";
10
- import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-d49aOdLB.mjs";
11
- import { u as useLoadInitialData } from "../../useLoadInitialData-BoGjdUu-.mjs";
6
+ import { _ as _sfc_main$6 } from "../../PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs";
7
+ import { _ as _sfc_main$7 } from "../../PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs";
8
+ import { u as useCustomer } from "../../useCustomer-EDhref7T.mjs";
9
+ import { u as usePaymentMethods } from "../../usePaymentMethods-BJzoI8dZ.mjs";
10
+ import { u as usePaymentMethodOptions } from "../../usePaymentMethodOptions-Cljh7HYp.mjs";
11
+ import { u as useLoadInitialData } from "../../useLoadInitialData-Cp1OA8y6.mjs";
12
12
  import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
13
13
  const _hoisted_1 = { class: "grid gap-4 sm:grid-cols-1 md:grid-cols-2" };
14
14
  const _hoisted_2 = { key: 0 };
@@ -31,7 +31,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
31
31
  __props.description ? (openBlock(), createBlock(unref(_sfc_main$4), {
32
32
  key: 0,
33
33
  variant: "body-sm",
34
- shade: "lighter"
34
+ color: "subtle"
35
35
  }, {
36
36
  default: withCtx(() => [
37
37
  createTextVNode(toDisplayString(__props.description), 1)
@@ -99,8 +99,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
99
99
  }, null, 8, ["customer", "payment-method-options"])) : createCommentVNode("", true),
100
100
  showPaymentMethodForm.value ? (openBlock(), createBlock(unref(_sfc_main$8), {
101
101
  key: 1,
102
- color: "gray",
103
- variant: "outline",
102
+ intent: "secondary",
104
103
  onClick: _cache[2] || (_cache[2] = ($event) => showPaymentMethodForm.value = false)
105
104
  }, {
106
105
  default: withCtx(() => [..._cache[4] || (_cache[4] = [
@@ -109,8 +108,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
109
108
  _: 1
110
109
  })) : (openBlock(), createBlock(unref(_sfc_main$8), {
111
110
  key: 2,
112
- color: "gray",
113
- variant: "outline",
111
+ intent: "secondary",
114
112
  onClick: _cache[3] || (_cache[3] = ($event) => showPaymentMethodForm.value = true)
115
113
  }, {
116
114
  default: withCtx(() => [..._cache[5] || (_cache[5] = [
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../IconButton.vue.es-CVFn0Ntj.js"),n=require("../../Button.vue.es-aLcIdATK.js"),i=require("../../ErrorNotification.vue.es-BX3khKFc.js"),a=require("../../customElements-BTJzBHMy.js"),o=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../useActionDispatchProvider-Cz8xLLYA.js"),r=require("../../subscription-b0OPx8Du.js"),l=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-CttBs_G8.js"),c=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BP-VRwEM.js"),u=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CMIVAoQq.js"),d=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-5I81Qr6q.js"),p=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),m=require("../../Section.vue.es-tLYXp-tF.js"),b=require("../../pricing-3W7XLwL6.js"),g=require("../../formatting.es-9hM8aHSg.js"),_=require("../../PaymentMethod.vue.es-uVZO0Zju.js"),f=require("../../Modal.vue.es-CX5geho3.js"),h=require("../../subscriptions-B4BOzLxR.js"),v=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-Dl5Lg39D.js"),y=require("../../api.es-Czekkp_X.js"),w=require("../../useIncrementalLoading-CdtGJm_Y.js"),C=require("../../paymentMethods-Cu2RzLgm.js"),x=require("../../error-Cg-i7gGl.js"),S=require("../../useSubscription-V3KSuhOY.js"),k=require("../../useCustomer-DYCpgA-3.js"),B=require("../../usePaymentMethods-CFL3hFW_.js"),M=require("../../useLoadInitialData-CiJldX50.js"),N=require("../../component-hDuDTBt5.js");function j(e){var t,n,i,a,o,s,r;const l=null==(i=null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.configs)?void 0:i[0],c=null==(o=null==(a=null==l?void 0:l.details)?void 0:a.bands)?void 0:o[0];return{amount:(null==c?void 0:c.amount)??(null==c?void 0:c.fixed_amount),billingPeriod:(null==(s=null==l?void 0:l.details)?void 0:s.pricing_period)??(null==(r=null==l?void 0:l.details)?void 0:r.billing_period)}}const V={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},E={class:"sv-enabled-pricings-list__item-content grow"},T=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const i=t,{$t:o}=a.useIntl(),s=e.computed(()=>{const{amount:e,billingPeriod:t}=i.entry;if(e)return t?o({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:g.formatAmount(e),period:g.formatBillingPeriod(t,{short:!0,hideValueForExactPeriods:!0})}):g.formatAmount(e)});return(i,r)=>(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",V,[e.createElementVNode("div",E,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",shade:"lighter",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),s.value?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,tag:"span",variant:"body-sm",shade:"lighter",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(n._sfc_main$1),{variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:r[0]||(r[0]=e=>i.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),A={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},L=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const n=t,{$t:i}=a.useIntl(),o=e.computed(()=>function(e){var t,n,i;const a=new Set(((null==(t=e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e));return 0===a.size?[]:((null==(i=null==(n=e.pricing_plan_version)?void 0:n.pricing_categories)?void 0:i.flatMap(e=>e.pricing_groups??[]))??[]).flatMap(e=>(e.pricings??[]).filter(e=>a.has(e.id)).map(t=>({pricingId:t.id,pricingGroupId:e.id,groupName:e.name,name:b.getNameFromPricing(t)||e.name,...j(t)})))}(n.pricingPlanSchedule));return(t,n)=>o.value.length>0?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,i=>(e.openBlock(),e.createBlock(T,{key:i.pricingId,entry:i,onUpgrade:n[0]||(n[0]=e=>t.$emit("upgrade",e))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});const P={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},q={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},I={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},D=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:n}){const o=t,s=n,{$t:l,formatDate:c}=a.useIntl(),u=a.useLogger(),{setSubscriptionCancellation:d}=h.createSubscriptionsService(),p=e.computed(()=>o.variant),b=e.computed(()=>{var e;const t=(null==(e=o.subscription)?void 0:e.inactive_periods)??[],n=t.find(({type:e})=>"CANCEL"===e)??t[0];if(n)return c({date:n.start_at,format:"date",offsetType:"local"})}),g=e.computed(()=>{var e,t;const n=null==(t=null==(e=o.subscription)?void 0:e.next_invoice)?void 0:t.invoice_date;if(n)return c({date:n,format:"date",offsetType:"local"})}),x=g,S=e.computed(()=>{var e,t;return((null==(t=null==(e=r.getMostRecentScheduleInfo(o.subscription))?void 0:e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e).filter(e=>Boolean(e))}),{title:k,explanation:B,confirmButtonText:M,cancelButtonText:N,errorMessage:j}=function({variant:t,renewableUntil:n,billingPeriodEndsAt:i}){const{$t:o}=a.useIntl(),s=e.computed(()=>"RENEW"===t.value);return{title:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):o({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),explanation:e.computed(()=>s.value?n.value?o({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:n.value}):o({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),confirmButtonText:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):o({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),cancelButtonText:e.computed(()=>o({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),errorMessage:e.computed(()=>s.value?o({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):o({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}))}}({variant:p,renewableUntil:b,billingPeriodEndsAt:g}),{paymentMethod:V,get:E}=function(){const{getPaymentMethods:t}=C.createPaymentMethodsService(),n=e.shallowRef();return{paymentMethod:n,get:async({customerId:e,paymentMethodId:i})=>{const a=await y.getPaginatedFullList(async n=>{const i=await t({customerId:e,pagination:{page:n,pageSize:50}});if(!w.isApiSuccessCollectionResponse(i))throw new Error("Could not load the customer’s payment methods.");return i});return n.value=a.data.find(({id:e})=>e===i),n.value}}}();e.watch([()=>o.showModal,()=>{var e;return null==(e=o.subscription)?void 0:e.payment_method_id},()=>{var e;return null==(e=o.subscription)?void 0:e.customer_id}],([e,t,n])=>{var i;e&&t&&n&&t!==(null==(i=V.value)?void 0:i.id)&&E({customerId:n,paymentMethodId:t}).catch(()=>{})},{immediate:!0});const T=e.ref(!1),A=e.ref(!1);e.watch(()=>o.showModal,e=>{e&&(A.value=!1)});const L=async()=>{if(o.subscription&&o.variant&&!T.value){T.value=!0,A.value=!1;try{await d({id:o.subscription.id,variant:o.variant}),s("confirmed"),s("close")}catch(e){u.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:o.variant},e),A.value=!0}finally{T.value=!1}}},D=()=>{T.value||s("close")};return(n,o)=>(e.openBlock(),e.createBlock(e.unref(f.Modal),{size:"md","show-modal":t.showModal,title:e.unref(k),"confirm-button-text":e.unref(M),"cancel-button-text":e.unref(N),"is-loading":T.value,"no-click-away":T.value,"no-backdrop-close":T.value,onConfirm:L,onClose:D},{body:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(a._sfc_main),{variant:"body-sm",shade:"lighter",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(v._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":S.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(x)||e.unref(V)?(e.openBlock(),e.createElementBlock("div",q,[e.unref(x)?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",shade:"light",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",shade:"light"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(V)?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(V)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(j)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),O={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},R=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(m,{emit:b}){const g=m,_=b,{$t:f}=a.useIntl(),{isCancellable:h,isRenewable:v,pendingVariant:y,cancel:w,renew:C,dismiss:x,manage:S}=function({subscription:t}){const{dispatchAction:n}=s.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const e=t.value.inactive_periods;return!e||0===e.length}),a=e.computed(()=>{var e;const n=null==(e=t.value)?void 0:e.inactive_periods;return Array.isArray(n)&&n.length>0}),o=e.ref();return{isCancellable:i,isRenewable:a,pendingVariant:o,cancel:()=>{t.value&&(o.value="CANCEL")},renew:()=>{t.value&&(o.value="RENEW")},dismiss:()=>{o.value=void 0},manage:()=>{t.value&&n({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}({subscription:e.toRef(g,"subscription")}),k=e.ref();e.watch(y,e=>{e&&(k.value=void 0)});const B=()=>{k.value=y.value,_("subscription-changed")},M=e.computed(()=>{if(k.value)return"RENEW"===k.value?f({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):f({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),N=e.computed(()=>r.getMostRecentScheduleInfo(g.subscription)),j=e.computed(()=>(g.paymentMethods??[]).find(({id:e})=>{var t;return e===(null==(t=g.subscription)?void 0:t.payment_method_id)})),V=e.computed(()=>g.subscription?[g.subscription]:[]),E=e.computed(()=>r.getSubscriptionName({subscription:g.subscription,fallback:f({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(o.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(a._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.value),1)]),_:1}),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:1,variant:"outline",color:"gray",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[M.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:M.value},null,8,["title"])):e.createCommentVNode("",!0),m.error?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(f)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):m.isLoading?(e.openBlock(),e.createBlock(p._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):m.subscription?(e.openBlock(),e.createBlock(l._sfc_main,{key:3,class:"sv-subscription-details__schedules","schedules-data":m.schedulesData??[],configuration:{subscriptionId:m.subscription.id},"is-loading":m.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(d._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(c._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":Boolean(m.hasWalletBalancesError),"is-loading":m.isLoading,"wallet-balances":m.walletBalances,"show-top-up-button":"",customer:m.customer,"payment-methods":m.paymentMethods,subscriptions:V.value,onTopUpCharged:r[0]||(r[0]=e=>s.$emit("top-up-charged")),onAutoTopUpSaved:r[1]||(r[1]=e=>s.$emit("auto-top-up-saved")),onAutoTopUpCancelled:r[2]||(r[2]=e=>s.$emit("auto-top-up-cancelled")),onPaymentMethodStored:r[3]||(r[3]=e=>s.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),N.value?(e.openBlock(),e.createBlock(L,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":N.value,onUpgrade:e.unref(S)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":m.isLoading,"payment-methods":[j.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(D,{"show-modal":Boolean(e.unref(y)),variant:e.unref(y),subscription:m.subscription,avatar:m.avatar,onConfirmed:B,onClose:e.unref(x)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),U=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=t,i=n.portalObject.customer_id,{subscription:a,withPlanData:o,get:s,error:r}=S.useSubscription({subscriptionId:n.configuration.subscriptionId}),{customer:l,get:u}=k.useCustomer({customerId:i}),{items:d,fetchAll:p}=B.usePaymentMethods({customerId:i}),{walletBalances:m,apiStatus:b,fetch:g}=c.useCustomerWalletBalances({customerId:i}),{isLoading:_}=M.useLoadInitialData(s(),u.execute(),p(),g()),f=e.computed(()=>a.value?o(a.value):[]),h=e.computed(()=>{var e;return(null==(e=m.value)?void 0:e.wallet_balances)??[]}),v=e.computed(()=>b.value===x.ApiStatus.Failed);return(t,n)=>e.renderSlot(t.$slots,"default",{subscription:e.unref(a),schedulesData:f.value,customer:e.unref(l),paymentMethods:e.unref(d),walletBalances:h.value,hasWalletBalancesError:v.value,isLoading:e.unref(_),error:e.unref(r),refreshWalletBalances:e.unref(g),refreshPaymentMethods:e.unref(p),refreshSubscription:e.unref(s)})}}),$=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=N.getComponentName("subscription-details");return(i,o)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main$1),{entry:i.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(U,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:n,schedulesData:i,customer:a,paymentMethods:o,walletBalances:s,hasWalletBalancesError:r,isLoading:l,error:c,refreshWalletBalances:u,refreshPaymentMethods:d,refreshSubscription:p})=>[e.createVNode(R,{subscription:n,"schedules-data":i,customer:a,avatar:t.configuration.avatar,"payment-methods":o,"wallet-balances":s,"has-wallet-balances-error":r,"is-loading":l,error:c,onTopUpCharged:u,onAutoTopUpSaved:u,onAutoTopUpCancelled:u,onPaymentMethodStored:d,onSubscriptionChanged:p},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:W}=a.createSolvimonElement($,"subscription-details");exports.defineSolvimonSubscriptionDetails=W;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../IconButton.vue.es-BHdQskx0.js"),n=require("../../Button.vue.es-O8mNivLL.js"),i=require("../../ErrorNotification.vue.es-CaEFTi2k.js"),a=require("../../customElements-DD7bpqkx.js"),o=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../useActionDispatchProvider-Cv9amjTf.js"),r=require("../../subscription-b0OPx8Du.js"),l=require("../../SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js"),c=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js"),u=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js"),d=require("../../EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js"),p=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),m=require("../../Section.vue.es-CAJvEDn6.js"),b=require("../../pricing-3W7XLwL6.js"),_=require("../../formatting.es-DBtYnvI5.js"),g=require("../../PaymentMethod.vue.es-CdskNJ3Z.js"),f=require("../../Modal.vue.es-B_1aqm_m.js"),h=require("../../subscriptions-300o4ae0.js"),v=require("../../SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js"),y=require("../../api.es-Czekkp_X.js"),w=require("../../useIncrementalLoading-CdtGJm_Y.js"),C=require("../../paymentMethods-CZ3ydybI.js"),S=require("../../error-Cg-i7gGl.js"),x=require("../../useSubscription-DZfRHbL7.js"),k=require("../../useCustomer-DLHOs4BR.js"),B=require("../../usePaymentMethods-DvEnJWmB.js"),M=require("../../useLoadInitialData-u7IyXqb6.js"),N=require("../../component-hDuDTBt5.js");function j(e){var t,n,i,a,o,s,r;const l=null==(i=null==(n=null==(t=e.items)?void 0:t[0])?void 0:n.configs)?void 0:i[0],c=null==(o=null==(a=null==l?void 0:l.details)?void 0:a.bands)?void 0:o[0];return{amount:(null==c?void 0:c.amount)??(null==c?void 0:c.fixed_amount),billingPeriod:(null==(s=null==l?void 0:l.details)?void 0:s.pricing_period)??(null==(r=null==l?void 0:l.details)?void 0:r.billing_period)}}const V={class:"sv-enabled-pricings-list__item-body flex items-center gap-4"},E={class:"sv-enabled-pricings-list__item-content grow"},T=e.defineComponent({__name:"EnabledPricingsListItem",props:{entry:{type:Object}},emits:["upgrade"],setup(t){const i=t,{$t:o}=a.useIntl(),s=e.computed(()=>{const{amount:e,billingPeriod:t}=i.entry;if(e)return t?o({defaultMessage:"{amount} per {period}",id:"enabled_pricings_list.item.price",description:'The recurring price of an enabled pricing, e.g. "€ 100,00 per month"'},{amount:_.formatAmount(e),period:_.formatBillingPeriod(t,{short:!0,hideValueForExactPeriods:!0})}):_.formatAmount(e)});return(i,r)=>(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{class:"sv-enabled-pricings-list__item"},{default:e.withCtx(()=>[e.createElementVNode("div",V,[e.createElementVNode("div",E,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",color:"subtle",class:"sv-enabled-pricings-list__item-group"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.groupName),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"h3",variant:"heading-3","no-spacing":"",class:"sv-enabled-pricings-list__item-name"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.entry.name),1)]),_:1}),s.value?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,tag:"span",variant:"body-sm",color:"subtle",class:"sv-enabled-pricings-list__item-price"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(n._sfc_main$1),{intent:"secondary",class:"sv-action sv-action--secondary sv-enabled-pricings-list__item-upgrade shrink-0",type:"button",size:"xs",onClick:r[0]||(r[0]=e=>i.$emit("upgrade",t.entry))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)({defaultMessage:"Upgrade",id:"enabled_pricings_list.item.upgrade_button.label",description:"Label for the button that changes which pricing is enabled for a group"})),1)]),_:1})])]),_:1}))}}),A={class:"sv-enabled-pricings-list__items grid grid-cols-1 gap-2"},L=e.defineComponent({__name:"EnabledPricingsList",props:{pricingPlanSchedule:{type:Object}},emits:["upgrade"],setup(t){const n=t,{$t:i}=a.useIntl(),o=e.computed(()=>function(e){var t,n,i;const a=new Set(((null==(t=e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e));return 0===a.size?[]:((null==(i=null==(n=e.pricing_plan_version)?void 0:n.pricing_categories)?void 0:i.flatMap(e=>e.pricing_groups??[]))??[]).flatMap(e=>(e.pricings??[]).filter(e=>a.has(e.id)).map(t=>({pricingId:t.id,pricingGroupId:e.id,groupName:e.name,name:b.getNameFromPricing(t)||e.name,...j(t)})))}(n.pricingPlanSchedule));return(t,n)=>o.value.length>0?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,class:"sv-enabled-pricings-list","content-background":"none","no-border":"","no-spacing":"",title:e.unref(i)({defaultMessage:"Upgrades",id:"enabled_pricings_list.title",description:"Title for the block listing the pricings enabled on a subscription"})},{default:e.withCtx(()=>[e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,i=>(e.openBlock(),e.createBlock(T,{key:i.pricingId,entry:i,onUpgrade:n[0]||(n[0]=e=>t.$emit("upgrade",e))},null,8,["entry"]))),128))])]),_:1},8,["title"])):e.createCommentVNode("",!0)}});const P={class:"sv-subscription-cancellation-modal sv-subscription-cancellation-modal__body flex flex-col gap-3"},q={key:0,class:"sv-subscription-cancellation-modal__meta flex flex-wrap items-center gap-x-6 gap-y-2 px-3 pb-2"},I={key:0,class:"sv-subscription-cancellation-modal__renews flex gap-1"},D=e.defineComponent({__name:"SubscriptionCancellationModal",props:{showModal:{type:Boolean},variant:{type:null},subscription:{type:Object},avatar:{type:String}},emits:["confirmed","close"],setup(t,{emit:n}){const o=t,s=n,{$t:l,formatDate:c}=a.useIntl(),u=a.useLogger(),{setSubscriptionCancellation:d}=h.createSubscriptionsService(),p=e.computed(()=>o.variant),b=e.computed(()=>{var e;const t=(null==(e=o.subscription)?void 0:e.inactive_periods)??[],n=t.find(({type:e})=>"CANCEL"===e)??t[0];if(n)return c({date:n.start_at,format:"date",offsetType:"local"})}),_=e.computed(()=>{var e,t;const n=null==(t=null==(e=o.subscription)?void 0:e.next_invoice)?void 0:t.invoice_date;if(n)return c({date:n,format:"date",offsetType:"local"})}),S=_,x=e.computed(()=>{var e,t;return((null==(t=null==(e=r.getMostRecentScheduleInfo(o.subscription))?void 0:e.pricing_plan_schedule)?void 0:t.enabled_pricings)??[]).map(({pricing_id:e})=>e).filter(e=>Boolean(e))}),{title:k,explanation:B,confirmButtonText:M,cancelButtonText:N,errorMessage:j}=function({variant:t,renewableUntil:n,billingPeriodEndsAt:i}){const{$t:o}=a.useIntl(),s=e.computed(()=>"RENEW"===t.value);return{title:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Title of the renew subscription confirmation modal",id:"subscription_cancellation_modal.renew.title"}):o({defaultMessage:"Cancel subscription",description:"Title of the cancel subscription confirmation modal",id:"subscription_cancellation_modal.cancel.title"})),explanation:e.computed(()=>s.value?n.value?o({defaultMessage:"You can renew your subscription until {date}. After this period you can only create a new subscription.",description:"Explanation of the deadline for undoing a cancellation, shown in the renew subscription modal",id:"subscription_cancellation_modal.renew.explanation_with_date"},{date:n.value}):o({defaultMessage:"Your subscription will continue as before, and billing will resume on its usual schedule.",description:"Explanation of what happens when a cancellation is undone, shown in the renew subscription modal when no end date is known",id:"subscription_cancellation_modal.renew.explanation"}):i.value?o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until {date}.",description:"Explanation of what happens when a running subscription is cancelled, naming the date access ends, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation_with_date"},{date:i.value}):o({defaultMessage:"Your subscription will be canceled, but you’ll continue to have access until the end of the billing period.",description:"Explanation of what happens when a running subscription is cancelled, shown in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.explanation"})),confirmButtonText:e.computed(()=>s.value?o({defaultMessage:"Renew subscription",description:"Label of the confirm button in the renew subscription modal",id:"subscription_cancellation_modal.renew.confirm_button.label"}):o({defaultMessage:"Cancel subscription",description:"Label of the confirm button in the cancel subscription modal",id:"subscription_cancellation_modal.cancel.confirm_button.label"})),cancelButtonText:e.computed(()=>o({defaultMessage:"Cancel",description:"Label of the button that dismisses the cancellation modal",id:"subscription_cancellation_modal.cancel_button.label"})),errorMessage:e.computed(()=>s.value?o({defaultMessage:"We could not renew your subscription. Please try again.",description:"Error shown when undoing a cancellation fails",id:"subscription_cancellation_modal.renew.error"}):o({defaultMessage:"We could not cancel your subscription. Please try again.",description:"Error shown when cancelling a subscription fails",id:"subscription_cancellation_modal.cancel.error"}))}}({variant:p,renewableUntil:b,billingPeriodEndsAt:_}),{paymentMethod:V,get:E}=function(){const{getPaymentMethods:t}=C.createPaymentMethodsService(),n=e.shallowRef();return{paymentMethod:n,get:async({customerId:e,paymentMethodId:i})=>{const a=await y.getPaginatedFullList(async n=>{const i=await t({customerId:e,pagination:{page:n,pageSize:50}});if(!w.isApiSuccessCollectionResponse(i))throw new Error("Could not load the customer’s payment methods.");return i});return n.value=a.data.find(({id:e})=>e===i),n.value}}}();e.watch([()=>o.showModal,()=>{var e;return null==(e=o.subscription)?void 0:e.payment_method_id},()=>{var e;return null==(e=o.subscription)?void 0:e.customer_id}],([e,t,n])=>{var i;e&&t&&n&&t!==(null==(i=V.value)?void 0:i.id)&&E({customerId:n,paymentMethodId:t}).catch(()=>{})},{immediate:!0});const T=e.ref(!1),A=e.ref(!1);e.watch(()=>o.showModal,e=>{e&&(A.value=!1)});const L=async()=>{if(o.subscription&&o.variant&&!T.value){T.value=!0,A.value=!1;try{await d({id:o.subscription.id,variant:o.variant}),s("confirmed"),s("close")}catch(e){u.error("SUBSCRIPTION_CANCELLATION_FAILED","Failed to change the cancellation state of a subscription",{variant:o.variant},e),A.value=!0}finally{T.value=!1}}},D=()=>{T.value||s("close")};return(n,o)=>(e.openBlock(),e.createBlock(e.unref(f.Modal),{size:"md","show-modal":t.showModal,title:e.unref(k),"confirm-button-text":e.unref(M),"cancel-button-text":e.unref(N),"is-loading":T.value,"no-click-away":T.value,"no-backdrop-close":T.value,onConfirm:L,onClose:D},{body:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(a._sfc_main),{variant:"body-sm",color:"subtle",tag:"p",class:"sv-subscription-cancellation-modal__explanation"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)),1)]),_:1}),t.subscription?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,"no-spacing":"",class:"sv-subscription-cancellation-modal__subscription"},{default:e.withCtx(()=>[e.createVNode(v._sfc_main,{subscription:t.subscription,avatar:t.avatar,"enabled-pricing-ids":x.value},null,8,["subscription","avatar","enabled-pricing-ids"]),e.unref(S)||e.unref(V)?(e.openBlock(),e.createElementBlock("div",q,[e.unref(S)?(e.openBlock(),e.createElementBlock("div",I,[e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",color:"secondary",weight:"semibold"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Renews",description:"Label before the date the subscription renews, shown in the cancel subscription modal",id:"subscription_cancellation_modal.renews_label"})),1)]),_:1}),e.createVNode(e.unref(a._sfc_main),{tag:"span",variant:"body-xs",color:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(S)),1)]),_:1})])):e.createCommentVNode("",!0),e.unref(V)?(e.openBlock(),e.createBlock(e.unref(g._sfc_main),{key:1,variant:"condensed",class:"sv-subscription-cancellation-modal__payment-method","payment-method":e.unref(V)},null,8,["payment-method"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-cancellation-modal__error sv-error",title:e.unref(j)},null,8,["title"])):e.createCommentVNode("",!0)])]),_:1},8,["show-modal","title","confirm-button-text","cancel-button-text","is-loading","no-click-away","no-backdrop-close"]))}}),O={class:"sv-subscription-details__header flex flex-col gap-2 md:flex-row md:items-center"},U=e.defineComponent({__name:"SubscriptionDetails",props:{subscription:{type:Object},schedulesData:{type:Array},customer:{type:Object},paymentMethods:{type:Array},walletBalances:{default:()=>[],type:Array},hasWalletBalancesError:{type:Boolean},avatar:{type:String},isLoading:{type:Boolean},error:{type:null}},emits:["top-up-charged","auto-top-up-saved","auto-top-up-cancelled","payment-method-stored","subscription-changed"],setup(m,{emit:b}){const _=m,g=b,{$t:f}=a.useIntl(),{isCancellable:h,isRenewable:v,pendingVariant:y,cancel:w,renew:C,dismiss:S,manage:x}=function({subscription:t}){const{dispatchAction:n}=s.useActionDispatchProvider(),i=e.computed(()=>{if(!t.value)return!1;const e=t.value.inactive_periods;return!e||0===e.length}),a=e.computed(()=>{var e;const n=null==(e=t.value)?void 0:e.inactive_periods;return Array.isArray(n)&&n.length>0}),o=e.ref();return{isCancellable:i,isRenewable:a,pendingVariant:o,cancel:()=>{t.value&&(o.value="CANCEL")},renew:()=>{t.value&&(o.value="RENEW")},dismiss:()=>{o.value=void 0},manage:()=>{t.value&&n({action:"manage-subscription",data:{subscriptionId:t.value.id}})}}}({subscription:e.toRef(_,"subscription")}),k=e.ref();e.watch(y,e=>{e&&(k.value=void 0)});const B=()=>{k.value=y.value,g("subscription-changed")},M=e.computed(()=>{if(k.value)return"RENEW"===k.value?f({defaultMessage:"Your subscription has been renewed.",id:"subscription_details.renew_success",description:"Confirmation shown after a cancellation has been undone"}):f({defaultMessage:"Your subscription has been cancelled. You keep access until the end of the billing period.",id:"subscription_details.cancel_success",description:"Confirmation shown after a subscription has been cancelled"})}),N=e.computed(()=>r.getMostRecentScheduleInfo(_.subscription)),j=e.computed(()=>(_.paymentMethods??[]).find(({id:e})=>{var t;return e===(null==(t=_.subscription)?void 0:t.payment_method_id)})),V=e.computed(()=>_.subscription?[_.subscription]:[]),E=e.computed(()=>r.getSubscriptionName({subscription:_.subscription,fallback:f({defaultMessage:"Subscription details",id:"subscription_details.title",description:"Title for the subscription details page"})}));return(s,r)=>(e.openBlock(),e.createBlock(e.unref(o.ContentWithAsideLayout),{class:"sv-subscription-details sv-root sv-screen"},{header:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(a._sfc_main),{variant:"heading-2",tag:"h1",class:"sv-subscription-details__title grow"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.value),1)]),_:1}),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__renew w-full md:w-auto",type:"button",onClick:e.unref(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Renew subscription",id:"subscription_details.renew_button.label",description:"Label for the renew subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:1,intent:"secondary",class:"sv-action sv-action--secondary sv-subscription-details__cancel w-full md:w-auto",type:"button",onClick:e.unref(w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Cancel subscription",id:"subscription_details.cancel_button.label",description:"Label for the cancel subscription button on the subscription details page"})),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])]),content:e.withCtx(()=>[M.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,class:"sv-subscription-details__cancellation-success",type:"success",title:M.value},null,8,["title"])):e.createCommentVNode("",!0),m.error?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:1,class:"sv-subscription-details__error sv-error",title:e.unref(f)({defaultMessage:"Unable to load this subscription. Please try again later.",id:"subscription_details.load_error",description:"Error message shown when the subscription cannot be loaded on the subscription details page"})},null,8,["title"])):m.isLoading?(e.openBlock(),e.createBlock(p._sfc_main,{key:2,variant:"section",class:"min-h-[220px]"})):m.subscription?(e.openBlock(),e.createBlock(l._sfc_main,{key:3,class:"sv-subscription-details__schedules","schedules-data":m.schedulesData??[],configuration:{subscriptionId:m.subscription.id},"is-loading":m.isLoading},null,8,["schedules-data","configuration","is-loading"])):(e.openBlock(),e.createBlock(d._sfc_main,{key:4,class:"sv-subscription-details__empty-state",icon:"receipt_long"},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"Subscription not found",id:"subscription_details.empty_state.title",description:"Title shown when the requested subscription does not exist"})),1)]),message:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)({defaultMessage:"This subscription is no longer available.",id:"subscription_details.empty_state.message",description:"Message shown when the requested subscription does not exist"})),1)]),_:1}))]),aside:e.withCtx(()=>[e.createVNode(c._sfc_main,{class:"sv-subscription-details__wallet-balances","has-error":Boolean(m.hasWalletBalancesError),"is-loading":m.isLoading,"wallet-balances":m.walletBalances,"show-top-up-button":"",customer:m.customer,"payment-methods":m.paymentMethods,subscriptions:V.value,onTopUpCharged:r[0]||(r[0]=e=>s.$emit("top-up-charged")),onAutoTopUpSaved:r[1]||(r[1]=e=>s.$emit("auto-top-up-saved")),onAutoTopUpCancelled:r[2]||(r[2]=e=>s.$emit("auto-top-up-cancelled")),onPaymentMethodStored:r[3]||(r[3]=e=>s.$emit("payment-method-stored"))},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),N.value?(e.openBlock(),e.createBlock(L,{key:0,class:"sv-subscription-details__upgrades","pricing-plan-schedule":N.value,onUpgrade:e.unref(x)},null,8,["pricing-plan-schedule","onUpgrade"])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createBlock(u._sfc_main,{key:1,class:"sv-subscription-details__payment-method","is-loading":m.isLoading,"payment-methods":[j.value],configuration:{showViewAllButton:!1,showAddButton:!1}},null,8,["is-loading","payment-methods"])):e.createCommentVNode("",!0),e.createVNode(D,{"show-modal":Boolean(e.unref(y)),variant:e.unref(y),subscription:m.subscription,avatar:m.avatar,onConfirmed:B,onClose:e.unref(S)},null,8,["show-modal","variant","subscription","avatar","onClose"])]),_:1}))}}),R=e.defineComponent({__name:"SubscriptionDetails.entry.view",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=t,i=n.portalObject.customer_id,{subscription:a,withPlanData:o,get:s,error:r}=x.useSubscription({subscriptionId:n.configuration.subscriptionId}),{customer:l,get:u}=k.useCustomer({customerId:i}),{items:d,fetchAll:p}=B.usePaymentMethods({customerId:i}),{walletBalances:m,apiStatus:b,fetch:_}=c.useCustomerWalletBalances({customerId:i}),{isLoading:g}=M.useLoadInitialData(s(),u.execute(),p(),_()),f=e.computed(()=>a.value?o(a.value):[]),h=e.computed(()=>{var e;return(null==(e=m.value)?void 0:e.wallet_balances)??[]}),v=e.computed(()=>b.value===S.ApiStatus.Failed);return(t,n)=>e.renderSlot(t.$slots,"default",{subscription:e.unref(a),schedulesData:f.value,customer:e.unref(l),paymentMethods:e.unref(d),walletBalances:h.value,hasWalletBalancesError:v.value,isLoading:e.unref(g),error:e.unref(r),refreshWalletBalances:e.unref(_),refreshPaymentMethods:e.unref(p),refreshSubscription:e.unref(s)})}}),$=e.defineComponent({__name:"SubscriptionDetails.entry",props:{configuration:{type:Object},environment:{type:String},locale:{type:String},dateLocale:{type:String},messages:{type:Object},primaryColor:{type:String},secondaryColor:{type:String},isShadowRoot:{type:Boolean},experimentalFeatures:{type:Array},logLevel:{type:String},onLog:{type:Function},allowedPortalTypes:{type:Array},portalObject:{type:Object},cssOverrides:{type:[String,Array]},branding:{type:Object}},setup(t){const n=N.getComponentName("subscription-details");return(i,o)=>(e.openBlock(),e.createBlock(e.unref(a._sfc_main$1),{entry:i.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>i.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(R,e.normalizeProps(e.guardReactiveProps(i.$props)),{default:e.withCtx(({subscription:n,schedulesData:i,customer:a,paymentMethods:o,walletBalances:s,hasWalletBalancesError:r,isLoading:l,error:c,refreshWalletBalances:u,refreshPaymentMethods:d,refreshSubscription:p})=>[e.createVNode(U,{subscription:n,"schedules-data":i,customer:a,avatar:t.configuration.avatar,"payment-methods":o,"wallet-balances":s,"has-wallet-balances-error":r,"is-loading":l,error:c,onTopUpCharged:u,onAutoTopUpSaved:u,onAutoTopUpCancelled:u,onPaymentMethodStored:d,onSubscriptionChanged:p},null,8,["subscription","schedules-data","customer","avatar","payment-methods","wallet-balances","has-wallet-balances-error","is-loading","error","onTopUpCharged","onAutoTopUpSaved","onAutoTopUpCancelled","onPaymentMethodStored","onSubscriptionChanged"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:W}=a.createSolvimonElement($,"subscription-details");exports.defineSolvimonSubscriptionDetails=W;