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

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 (624) hide show
  1. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-B9WTpz0k.js +1 -0
  2. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-DJCMa2Lz.mjs +223 -0
  3. package/dist/Amount.vue.es-DExaYBqm.js +1 -0
  4. package/dist/Amount.vue.es-DPqHB8Xd.mjs +22 -0
  5. package/dist/Avatar.vue.es-CJw5z7Uu.js +1 -0
  6. package/dist/Avatar.vue.es-ChcLSNaN.mjs +81 -0
  7. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js +1 -0
  8. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs +60 -0
  9. package/dist/Button.vue.es-BWl37nzm.js +1 -0
  10. package/dist/Button.vue.es-VQCd3V3C.mjs +368 -0
  11. package/dist/Checkout.entry.ce-BTVuGyNq.js +1 -0
  12. package/dist/Checkout.entry.ce-DRHqEFd7.mjs +3674 -0
  13. package/dist/Chip.vue.es-CXG8o1Qf.mjs +114 -0
  14. package/dist/Chip.vue.es-DUgjuRWm.js +1 -0
  15. package/dist/Comparators.vue.es-CwhX3rbx.mjs +93 -0
  16. package/dist/Comparators.vue.es-DmkxV0gb.js +1 -0
  17. package/dist/ContentWithAsideLayout-Bnbsq8_5.mjs +32 -0
  18. package/dist/ContentWithAsideLayout-C6yMIVJF.js +1 -0
  19. package/dist/ContextMenu.vue.es-BllxeDTt.js +1 -0
  20. package/dist/ContextMenu.vue.es-C6TKlSXs.mjs +573 -0
  21. package/dist/CustomerBillingInformation.vue.es-CKQH_ds0.mjs +153 -0
  22. package/dist/CustomerBillingInformation.vue.es-CMCZ-lIM.js +1 -0
  23. package/dist/CustomerPaymentMethods.lib-B_753rau.mjs +4 -0
  24. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs +140 -0
  25. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js +1 -0
  26. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js +1 -0
  27. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs +2700 -0
  28. package/dist/Divider.vue.es-DnP_HqLz.mjs +22 -0
  29. package/dist/Divider.vue.es-UwnWvUTl.js +1 -0
  30. package/dist/DividerText.vue.es-BBdydUy_.js +1 -0
  31. package/dist/DividerText.vue.es-Bomiy4if.mjs +56 -0
  32. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-C9elbdbF.mjs +335 -0
  33. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DXO9xpFT.js +1 -0
  34. package/dist/ErrorNotification.vue.es-0ZC_DozN.js +1 -0
  35. package/dist/ErrorNotification.vue.es-C6ngWAVU.mjs +31 -0
  36. package/dist/Expand.vue.es-BleuAfDz.mjs +32 -0
  37. package/dist/Expand.vue.es-BtM0EZEr.js +1 -0
  38. package/dist/FormMessage.vue.es-dqATjC2N.js +1 -0
  39. package/dist/FormMessage.vue.es-jG3fQZms.mjs +29 -0
  40. package/dist/IconButton.vue.es-DAR7e8NA.mjs +198 -0
  41. package/dist/IconButton.vue.es-DGLIdHkR.js +1 -0
  42. package/dist/IconTitle.vue.es-Bbusc4wK.mjs +103 -0
  43. package/dist/IconTitle.vue.es-D-q6w2E-.js +1 -0
  44. package/dist/Input.vue.es-AY1c0Rui.mjs +235 -0
  45. package/dist/Input.vue.es-BN95nPBw.js +1 -0
  46. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-1WjSbPEP.mjs +92 -0
  47. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-qiBCPY8l.js +1 -0
  48. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-BXTInmf9.js +1 -0
  49. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-D99nuBRE.mjs +41 -0
  50. package/dist/InvoiceSummary.vue.es-B0MPR0oI.js +1 -0
  51. package/dist/InvoiceSummary.vue.es-Bs5c2Ovx.mjs +2598 -0
  52. package/dist/Modal.vue.es-Chi6_MH_.js +1 -0
  53. package/dist/Modal.vue.es-DSkC4eMv.mjs +387 -0
  54. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Draz_8Ts.js +1 -0
  55. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-vD88j_U7.mjs +144 -0
  56. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-DVif_ME8.mjs +51 -0
  57. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js +1 -0
  58. package/dist/{PaymentHistoryBlock-Ci8aSJeb.js → PaymentHistoryBlock-DGJ_PiVq.js} +1 -1
  59. package/dist/PaymentHistoryBlock-budeR7ep.mjs +4 -0
  60. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-C28ofG7N.mjs +93 -0
  61. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dv-3suBX.js +1 -0
  62. package/dist/PaymentIntegrationForm-Crrhar96.mjs +4 -0
  63. package/dist/{PaymentIntegrationForm-CsuueDE0.js → PaymentIntegrationForm-DqqGcEP1.js} +1 -1
  64. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-C4bk0m8g.mjs +138 -0
  65. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js +1 -0
  66. package/dist/PaymentIntegrationFormAdyen-DM-xMcm0.mjs +621 -0
  67. package/dist/PaymentIntegrationFormAdyen-DronjwO3.js +98 -0
  68. package/dist/PaymentIntegrationFormStripe-yBm4KnpV.mjs +488 -0
  69. package/dist/PaymentIntegrationFormStripe-ybM6wirp.js +102 -0
  70. package/dist/PaymentMethod.vue.es-BdMcKq8_.mjs +623 -0
  71. package/dist/PaymentMethod.vue.es-Ctw9Es1g.js +1 -0
  72. package/dist/{PaymentMethodForm-hZuVHAti.js → PaymentMethodForm-BQ5TVHlS.js} +1 -1
  73. package/dist/PaymentMethodForm-C1bIGX10.mjs +4 -0
  74. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-5KKkuVt5.mjs +167 -0
  75. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-V88bCeDt.js +1 -0
  76. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B_207kq5.js +1 -0
  77. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CnmZ9dvP.mjs +169 -0
  78. package/dist/PlanCustomizationEditor-CCOTD6Qu.mjs +769 -0
  79. package/dist/PlanCustomizationEditor-CiZnVCM6.js +1 -0
  80. package/dist/PricingGroupRangeInput.vue.es-Bnb-ARie.mjs +627 -0
  81. package/dist/PricingGroupRangeInput.vue.es-D82XvoC_.js +185 -0
  82. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-CxMkCmti.js +1 -0
  83. package/dist/PricingGroupSingleEditor.vue_vue_type_script_setup_true_lang-skQMgHEL.mjs +131 -0
  84. package/dist/RadioGroupExtended.vue.es-B1YtLNKG.js +1 -0
  85. package/dist/RadioGroupExtended.vue.es-WDbo_yj1.mjs +163 -0
  86. package/dist/Section.vue.es-By1JltGi.mjs +72 -0
  87. package/dist/Section.vue.es-DuK52y67.js +1 -0
  88. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CS3KIkPL.mjs +687 -0
  89. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-Ct3ZNq-j.js +1 -0
  90. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DRLoYWGY.mjs +51 -0
  91. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js +1 -0
  92. package/dist/SubscriptionSchedules-DDCjVEbG.mjs +4 -0
  93. package/dist/SubscriptionSchedules-DEjIERyF.js +1 -0
  94. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BlX0W6lw.js +1 -0
  95. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-JAedXFzq.mjs +5256 -0
  96. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-D-Fa54M6.js +1 -0
  97. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-DVMS4gJQ.mjs +91 -0
  98. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs +284 -0
  99. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js +1 -0
  100. package/dist/TooltipParagraph.vue.es-DYu2ReL7.mjs +129 -0
  101. package/dist/TooltipParagraph.vue.es-sTgWAgcd.js +1 -0
  102. package/dist/TrialChip.vue.es-Cl-9_pdr.js +1 -0
  103. package/dist/TrialChip.vue.es-DX53r0ku.mjs +35 -0
  104. package/dist/accel.svg.es-C0hqmmEY.mjs +4 -0
  105. package/dist/accel.svg.es-DFJXdioD.js +1 -0
  106. package/dist/ach.svg.es-BYP873jU.js +1 -0
  107. package/dist/ach.svg.es-DduMiYM2.mjs +4 -0
  108. package/dist/adyen-BJfC7N6f.js +1 -0
  109. package/dist/adyen-Bugab0JE.mjs +4 -0
  110. package/dist/adyen-CvsH5fok.mjs +117 -0
  111. package/dist/adyen-Druit6gz.js +1 -0
  112. package/dist/adyenSdk-B01MB9Ia.mjs +58 -0
  113. package/dist/adyenSdk-BP2XXzeJ.js +1 -0
  114. package/dist/amazon-pay.svg.es-BACIX6C7.mjs +4 -0
  115. package/dist/amazon-pay.svg.es-CQWgtowB.js +1 -0
  116. package/dist/amex.svg.es-DKhW4Txt.js +1 -0
  117. package/dist/amex.svg.es-DjTEMRVg.mjs +4 -0
  118. package/dist/api.es-QaC926Xu.mjs +43 -0
  119. package/dist/api.es-duCDtZD9.js +1 -0
  120. package/dist/apple-pay.svg.es-B3tkA54p.mjs +4 -0
  121. package/dist/apple-pay.svg.es-Dyojd0F-.js +1 -0
  122. package/dist/bacs.svg.es-CZIjZIE8.mjs +4 -0
  123. package/dist/bacs.svg.es-GJpZs1sD.js +1 -0
  124. package/dist/bancontact.svg.es-B26-JwdE.mjs +4 -0
  125. package/dist/bancontact.svg.es-BQh7nAup.js +1 -0
  126. package/dist/carnet.svg.es-BtO3AmNu.mjs +4 -0
  127. package/dist/carnet.svg.es-DY04-F2L.js +1 -0
  128. package/dist/cartes-bancaires.svg.es-BleHMlkN.js +1 -0
  129. package/dist/cartes-bancaires.svg.es-DEPpdLvi.mjs +4 -0
  130. package/dist/cashapp.svg.es-DOGwRjXp.mjs +4 -0
  131. package/dist/cashapp.svg.es-MwXGYom6.js +1 -0
  132. package/dist/cn.es-CNvIP217.js +1 -0
  133. package/dist/{cn.es-BEU5D0Wz.mjs → cn.es-DjnGlmqV.mjs} +657 -927
  134. package/dist/comparators.es-D8WGL-c4.mjs +153 -0
  135. package/dist/comparators.es-OGt19O9U.js +1 -0
  136. package/dist/component-5wqcK7yz.mjs +8 -0
  137. package/dist/component-B7ZDyqBp.js +1 -0
  138. package/dist/components/BillingInformation/BillingInformation.cjs +1 -1
  139. package/dist/components/BillingInformation/BillingInformation.mjs +39 -48
  140. package/dist/components/BillingInformationForm/BillingInformationForm.cjs +1 -1
  141. package/dist/components/BillingInformationForm/BillingInformationForm.mjs +256 -307
  142. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.cjs +1 -1
  143. package/dist/components/CustomerPaymentMethods/CustomerPaymentMethods.mjs +43 -52
  144. package/dist/components/Invoice/Invoice.cjs +1 -1
  145. package/dist/components/Invoice/Invoice.mjs +372 -430
  146. package/dist/components/InvoiceDetails/InvoiceDetails.cjs +1 -1
  147. package/dist/components/InvoiceDetails/InvoiceDetails.mjs +55 -65
  148. package/dist/components/InvoiceHeader/InvoiceHeader.cjs +1 -1
  149. package/dist/components/InvoiceHeader/InvoiceHeader.mjs +41 -46
  150. package/dist/components/InvoicesList/InvoicesList.cjs +1 -1
  151. package/dist/components/InvoicesList/InvoicesList.mjs +43 -53
  152. package/dist/components/PaymentHistory/PaymentHistory.cjs +1 -1
  153. package/dist/components/PaymentHistory/PaymentHistory.mjs +58 -68
  154. package/dist/components/PaymentMethodForm/PaymentMethodForm.cjs +1 -1
  155. package/dist/components/PaymentMethodForm/PaymentMethodForm.mjs +51 -63
  156. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.cjs +1 -1
  157. package/dist/components/SubscriptionSchedules/SubscriptionSchedules.mjs +41 -50
  158. package/dist/components/SubscriptionsList/SubscriptionsList.cjs +1 -1
  159. package/dist/components/SubscriptionsList/SubscriptionsList.mjs +49 -60
  160. package/dist/components/WalletBalances/WalletBalances.cjs +1 -1
  161. package/dist/components/WalletBalances/WalletBalances.mjs +59 -70
  162. package/dist/configuration-BytDBAWs.mjs +14 -0
  163. package/dist/configuration-akTS7Wiw.js +1 -0
  164. package/dist/core/index.cjs +1 -1
  165. package/dist/core/index.mjs +89 -104
  166. package/dist/{countryData.es--zJAd6LA.mjs → countryData.es-BegoD-cZ.mjs} +2 -2
  167. package/dist/countryData.es-C4jHBzfo.js +1 -0
  168. package/dist/customElements-Bt8PbjIn.js +1187 -0
  169. package/dist/customElements-Com2NiGU.mjs +6531 -0
  170. package/dist/customer-CKgMJEgv.mjs +31 -0
  171. package/dist/customer-Q4JGfVfq.js +1 -0
  172. package/dist/customer.es-B5ppZf0j.mjs +20 -0
  173. package/dist/customer.es-BButyYo0.js +1 -0
  174. package/dist/dana.svg.es-BDtZLpwd.js +1 -0
  175. package/dist/dana.svg.es-Cy8Q6DZi.mjs +4 -0
  176. package/dist/dankort.svg.es-B7VqJdWq.mjs +4 -0
  177. package/dist/dankort.svg.es-CksaipXF.js +1 -0
  178. package/dist/{de-DE-CI2zQkiP.mjs → de-DE-CVCmzlNH.mjs} +5 -5
  179. package/dist/{de-DE-BeyQVhTv.mjs → de-DE-DBO5f-Eu.mjs} +38 -56
  180. package/dist/{de-DE-_40QfLNJ.js → de-DE-DqLD4IX2.js} +1 -1
  181. package/dist/de-DE-Ds_yJLS3.js +1 -0
  182. package/dist/diners.svg.es-BP9enCow.mjs +4 -0
  183. package/dist/diners.svg.es-D6Mu1pqP.js +1 -0
  184. package/dist/discover.svg.es-DEsEJBYh.mjs +4 -0
  185. package/dist/discover.svg.es-DgqWCMUM.js +1 -0
  186. package/dist/eftpos.svg.es--js6-yfk.mjs +4 -0
  187. package/dist/eftpos.svg.es-Dk2DOT8W.js +1 -0
  188. package/dist/elo.svg.es-C-BzjuRP.js +1 -0
  189. package/dist/elo.svg.es-CMZPAxcn.mjs +4 -0
  190. package/dist/{en-US-5YWNEi-V.mjs → en-US-3UmnS23B.mjs} +38 -56
  191. package/dist/en-US-C51ILrVv.js +1 -0
  192. package/dist/{en-US--NRsi7Hz.js → en-US-CvFmmI_O.js} +1 -1
  193. package/dist/{en-US-DksUWPIu.mjs → en-US-DVR9O7b_.mjs} +5 -5
  194. package/dist/eps.svg.es-B_85bP-W.js +1 -0
  195. package/dist/eps.svg.es-CzIPBSb9.mjs +4 -0
  196. package/dist/error-BHVZJGwD.mjs +13 -0
  197. package/dist/error-CmduqgVq.js +1 -0
  198. package/dist/floating-ui.vue.es-Bly3DGWm.js +1 -0
  199. package/dist/floating-ui.vue.es-CYt0fSY7.mjs +1108 -0
  200. package/dist/formatting.es-C72Nsrmh.js +1 -0
  201. package/dist/formatting.es-RclXHhKo.mjs +61 -0
  202. package/dist/gcash.svg.es-BKAdhWzv.js +1 -0
  203. package/dist/gcash.svg.es-BpDtvraq.mjs +4 -0
  204. package/dist/getComposedString.es-C__uhJpd.mjs +10 -0
  205. package/dist/getComposedString.es-haS4bAj7.js +1 -0
  206. package/dist/getCountryNameByCode.es-BDHua7VM.mjs +8 -0
  207. package/dist/getCountryNameByCode.es-Xxc0nZsH.js +1 -0
  208. package/dist/girocard.svg.es-HSOEvDif.js +1 -0
  209. package/dist/girocard.svg.es-Riswtk8Z.mjs +4 -0
  210. package/dist/go-pay.svg.es-CiIyLELZ.mjs +4 -0
  211. package/dist/go-pay.svg.es-DQjtunZ_.js +1 -0
  212. package/dist/google-pay.svg.es-Dgj_N6nz.mjs +4 -0
  213. package/dist/google-pay.svg.es-hzc_EgiJ.js +1 -0
  214. package/dist/hipercard.svg.es-B80bu8Vd.mjs +4 -0
  215. package/dist/hipercard.svg.es-CbCsRY2q.js +1 -0
  216. package/dist/icon-sprite.svg.es-Bt21fMEt.mjs +4 -0
  217. package/dist/icon-sprite.svg.es-Dauis9LS.js +1 -0
  218. package/dist/ideal.svg.es-Booz1IML.js +1 -0
  219. package/dist/ideal.svg.es-DaqTS2Ax.mjs +4 -0
  220. package/dist/index-BPU8tIml.mjs +828 -0
  221. package/dist/index-BPZPnOQQ.js +7 -0
  222. package/dist/index-CTwLxoOS.mjs +7250 -0
  223. package/dist/index-DwueOtPi.js +1 -0
  224. package/dist/index.cjs +1 -1
  225. package/dist/index.es-BclokHQX.js +1 -0
  226. package/dist/index.es-CXkP_k3u.mjs +345 -0
  227. package/dist/index.mjs +40 -40
  228. package/dist/invoices-CV9iAUHf.mjs +115 -0
  229. package/dist/invoices-CvpL4rv5.js +1 -0
  230. package/dist/{it-IT-CMy1tHKZ.mjs → it-IT-CDMnnFKZ.mjs} +5 -5
  231. package/dist/{it-IT-aPQY57ht.js → it-IT-CFEfSpPH.js} +1 -1
  232. package/dist/{it-IT-B6blp8MI.mjs → it-IT-CxBRisRm.mjs} +38 -56
  233. package/dist/it-IT-Dxw59eR_.js +1 -0
  234. package/dist/jcb.svg.es-B3WPB8c2.js +1 -0
  235. package/dist/jcb.svg.es-Couw-2p9.mjs +4 -0
  236. package/dist/kakao-pay.svg.es-CIFT8fob.mjs +4 -0
  237. package/dist/kakao-pay.svg.es-Cs-lCW74.js +1 -0
  238. package/dist/klarna.svg.es-Cs6XaHD7.js +1 -0
  239. package/dist/klarna.svg.es-WKt8_NZa.mjs +4 -0
  240. package/dist/maestro.svg.es-BvK4oPg4.js +1 -0
  241. package/dist/maestro.svg.es-DbdxwYUE.mjs +4 -0
  242. package/dist/mastercard.svg.es-B7T3PS12.mjs +4 -0
  243. package/dist/mastercard.svg.es-lp4AXyyV.js +1 -0
  244. package/dist/momo.svg.es-C5aLYf_R.js +1 -0
  245. package/dist/momo.svg.es-X5XB25fM.mjs +4 -0
  246. package/dist/{nl-NL-CjoW8r_M.mjs → nl-NL-BWGkVweu.mjs} +38 -56
  247. package/dist/nl-NL-Btbfd9p2.js +1 -0
  248. package/dist/{nl-NL-zRUAuEHg.js → nl-NL-jtVgF3jx.js} +1 -1
  249. package/dist/{nl-NL-CckNM7R9.mjs → nl-NL-o3UvtSNg.mjs} +5 -5
  250. package/dist/nyce.svg.es-ArAivAZW.js +1 -0
  251. package/dist/nyce.svg.es-DcPsO_sh.mjs +4 -0
  252. package/dist/object.es-8aLDIncs.mjs +12 -0
  253. package/dist/object.es-CdriXMPs.js +1 -0
  254. package/dist/open-banking.svg.es-C4mPhwsn.mjs +4 -0
  255. package/dist/open-banking.svg.es-Q3rRkCvP.js +1 -0
  256. package/dist/paymentMethods-BuwoJ1y9.mjs +75 -0
  257. package/dist/paymentMethods-ChWAwDSF.js +1 -0
  258. package/dist/payments-C_cMXQzE.mjs +45 -0
  259. package/dist/payments-DGckugN0.js +1 -0
  260. package/dist/paypal.svg.es-BC2AP20j.mjs +4 -0
  261. package/dist/paypal.svg.es-Cjp5sNI3.js +1 -0
  262. package/dist/pricing-BVAld27Y.js +1 -0
  263. package/dist/pricing-DLOeiAIB.mjs +16 -0
  264. package/dist/pricingItemConfigs.es-DMf1e6y7.mjs +76 -0
  265. package/dist/pricingItemConfigs.es-DlybwIh1.js +1 -0
  266. package/dist/pricingPlanSchedule-COfmWv_o.js +1 -0
  267. package/dist/pricingPlanSchedule-J1nb9pCu.mjs +129 -0
  268. package/dist/pulse.svg.es-Dit33E8S.js +1 -0
  269. package/dist/pulse.svg.es-Rmoz-9Ej.mjs +4 -0
  270. package/dist/screens/Checkout/Checkout.cjs +1 -1
  271. package/dist/screens/Checkout/Checkout.mjs +3 -5237
  272. package/dist/screens/CustomerOverview/CustomerOverview.cjs +1 -1
  273. package/dist/screens/CustomerOverview/CustomerOverview.mjs +112 -138
  274. package/dist/screens/PayInvoice/PayInvoice.cjs +1 -1
  275. package/dist/screens/PayInvoice/PayInvoice.mjs +348 -397
  276. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.cjs +1 -1
  277. package/dist/screens/PaymentMethodsManagement/PaymentMethodsManagement.mjs +153 -170
  278. package/dist/screens/SubscriptionDetails/SubscriptionDetails.cjs +1 -1
  279. package/dist/screens/SubscriptionDetails/SubscriptionDetails.mjs +609 -720
  280. package/dist/screens/SubscriptionManagement/SubscriptionManagement.cjs +1 -1
  281. package/dist/screens/SubscriptionManagement/SubscriptionManagement.mjs +466 -555
  282. package/dist/sepa.svg.es-0t4DKeA1.js +1 -0
  283. package/dist/sepa.svg.es-DIO_K345.mjs +4 -0
  284. package/dist/slots.es-BA4MyEAa.mjs +5 -0
  285. package/dist/slots.es-T9ZJRGtG.js +1 -0
  286. package/dist/sorting.es-DCihKqD2.mjs +77 -0
  287. package/dist/sorting.es-DQsjKr8A.js +1 -0
  288. package/dist/star.svg.es-BUZNUnYq.mjs +4 -0
  289. package/dist/star.svg.es-D2JncY7b.js +1 -0
  290. package/dist/subscription-9GORG-Gt.js +1 -0
  291. package/dist/subscription-CvfAEJeP.mjs +69 -0
  292. package/dist/subscriptions-B5VqRayX.mjs +55 -0
  293. package/dist/subscriptions-X0Ciw8z3.js +1 -0
  294. package/dist/trustly.svg.es-AM7Ha-3Y.mjs +4 -0
  295. package/dist/trustly.svg.es-GJByiFAs.js +1 -0
  296. package/dist/twint.svg.es-BJ2f48og.js +1 -0
  297. package/dist/twint.svg.es-DZogAQG6.mjs +4 -0
  298. package/dist/typeGuards.es-B4XMtlkM.mjs +8 -0
  299. package/dist/typeGuards.es-DS3vZaJn.js +1 -0
  300. package/dist/types/components/payments/PaymentCompletedCard/PaymentCompletedCard.types.d.ts +6 -0
  301. package/dist/types/components/payments/PaymentIntegrationForm/PaymentIntegrationForm.types.d.ts +7 -0
  302. package/dist/types/components/payments/PaymentIntegrationFormStripe/PaymentIntegrationFormStripeFrame.types.d.ts +2 -1
  303. package/dist/types/public/components/PaymentMethodForm/PaymentMethodForm.types.d.ts +7 -0
  304. package/dist/unionpay.svg.es-DjFZ5EMQ.js +1 -0
  305. package/dist/unionpay.svg.es-me7q-nTI.mjs +4 -0
  306. package/dist/url-BNKStNY9.js +1 -0
  307. package/dist/url-DwiuKYpu.mjs +20 -0
  308. package/dist/useActionDispatchProvider-B54GYEY7.js +1 -0
  309. package/dist/useActionDispatchProvider-e2lQXTid.mjs +11 -0
  310. package/dist/useCustomer-BJwJ9BkJ.js +1 -0
  311. package/dist/useCustomer-CC9zxV6c.mjs +20 -0
  312. package/dist/useCustomerFormLabels-72Pxw8X5.js +1 -0
  313. package/dist/useCustomerFormLabels-V2YuYMLU.mjs +930 -0
  314. package/dist/useExperimentalFeature-8Mzpj5wc.js +1 -0
  315. package/dist/useExperimentalFeature-B0IFn3Uw.mjs +6 -0
  316. package/dist/useIncrementalLoading-CaWOE8Xl.js +1 -0
  317. package/dist/useIncrementalLoading-Cgxw2GD7.mjs +48 -0
  318. package/dist/useInvoiceData-6mHUZC9a.mjs +38 -0
  319. package/dist/useInvoiceData-Bblwdl0f.js +1 -0
  320. package/dist/useInvoicesList-B5H5JfvY.mjs +500 -0
  321. package/dist/useInvoicesList-_U1-tn9_.js +1 -0
  322. package/dist/useLoadInitialData-CezlvhBV.js +1 -0
  323. package/dist/useLoadInitialData-ux_wpNiR.mjs +15 -0
  324. package/dist/usePaymentMethodAvailability-CkR4TwoV.mjs +118 -0
  325. package/dist/usePaymentMethodAvailability-DRwrBdto.js +1 -0
  326. package/dist/usePaymentMethodOptions-B6GIM9q4.js +1 -0
  327. package/dist/usePaymentMethodOptions-BfnLBZOo.mjs +37 -0
  328. package/dist/usePaymentMethods-C3QfLSrP.mjs +15 -0
  329. package/dist/usePaymentMethods-GFmQRp0X.js +1 -0
  330. package/dist/usePayments-BkwGyZT0.mjs +318 -0
  331. package/dist/usePayments-SQF_V7oL.js +1 -0
  332. package/dist/usePortal-BdM7hDge.js +1 -0
  333. package/dist/usePortal-DDG9b6FI.mjs +11 -0
  334. package/dist/useService-Bh47bllz.mjs +50 -0
  335. package/dist/useService-H7BjLg8P.js +1 -0
  336. package/dist/useSubscription-BJJYHYgr.mjs +210 -0
  337. package/dist/useSubscription-Q4C2DPhw.js +1 -0
  338. package/dist/useTimePeriod.es-9tZvAhyb.mjs +93 -0
  339. package/dist/useTimePeriod.es-pepm2TpV.js +1 -0
  340. package/dist/useViewport-BgdA2PPt.mjs +29 -0
  341. package/dist/useViewport-hPRVDWCm.js +1 -0
  342. package/dist/useWatchDebounced-CAU1WI1P.js +1 -0
  343. package/dist/useWatchDebounced-DT5IicPp.mjs +14 -0
  344. package/dist/visa.svg.es-B0T5Su99.mjs +4 -0
  345. package/dist/visa.svg.es-NY3BHhda.js +1 -0
  346. package/dist/vpay.svg.es-VViQi42w.js +1 -0
  347. package/dist/vpay.svg.es-Zt3rrmCy.mjs +4 -0
  348. package/dist/zip.svg.es-C9S_F31W.js +1 -0
  349. package/dist/zip.svg.es-QC6dxzC7.mjs +4 -0
  350. package/package.json +3 -3
  351. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-Ce30EXY5.mjs +0 -240
  352. package/dist/AddPaymentMethodPane.vue_vue_type_script_setup_true_lang-kmam2c7P.js +0 -1
  353. package/dist/Amount.vue.es-BO5sS1UX.mjs +0 -25
  354. package/dist/Amount.vue.es-JDVa_3H-.js +0 -1
  355. package/dist/Avatar.vue.es-BGTZSAqU.js +0 -1
  356. package/dist/Avatar.vue.es-DJzJiYtv.mjs +0 -91
  357. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs +0 -66
  358. package/dist/BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js +0 -1
  359. package/dist/Button.vue.es-Cm9pLU9i.mjs +0 -421
  360. package/dist/Button.vue.es-O8mNivLL.js +0 -1
  361. package/dist/Chip.vue.es-BBmn-qJp.mjs +0 -120
  362. package/dist/Chip.vue.es-DmCjC1hi.js +0 -1
  363. package/dist/Comparators.vue.es-CYfxd5H-.mjs +0 -120
  364. package/dist/Comparators.vue.es-DK8wGjxM.js +0 -1
  365. package/dist/ContentWithAsideLayout-DHpnJfGA.js +0 -1
  366. package/dist/ContentWithAsideLayout-Dy9xgxuF.mjs +0 -39
  367. package/dist/ContextMenu.vue.es-CTc1ktXb.mjs +0 -681
  368. package/dist/ContextMenu.vue.es-DaW0yp4Y.js +0 -1
  369. package/dist/CustomerBillingInformation.vue.es-BX0Da7Kr.js +0 -1
  370. package/dist/CustomerBillingInformation.vue.es-CMZO8oLj.mjs +0 -175
  371. package/dist/CustomerPaymentMethods.lib-CcSt0sl1.mjs +0 -4
  372. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js +0 -1
  373. package/dist/CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs +0 -150
  374. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs +0 -3264
  375. package/dist/CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js +0 -1
  376. package/dist/Divider.vue.es-ClFG8QtG.js +0 -1
  377. package/dist/Divider.vue.es-wKkIVBgb.mjs +0 -24
  378. package/dist/DividerText.vue.es-CeAHAe_Y.mjs +0 -72
  379. package/dist/DividerText.vue.es-DjT4i_YD.js +0 -1
  380. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DLE5-9wz.mjs +0 -562
  381. package/dist/EmptyStatePlaceholder.vue_vue_type_script_setup_true_lang-DkIK-lID.js +0 -1
  382. package/dist/ErrorNotification.vue.es-CHyVTBGs.mjs +0 -38
  383. package/dist/ErrorNotification.vue.es-CaEFTi2k.js +0 -1
  384. package/dist/Expand.vue.es-C-lnbA1v.js +0 -1
  385. package/dist/Expand.vue.es-C4_XmqbR.mjs +0 -50
  386. package/dist/FormMessage.vue.es-Bd4_NG9H.js +0 -1
  387. package/dist/FormMessage.vue.es-C3oxwq_8.mjs +0 -46
  388. package/dist/IconButton.vue.es-BHdQskx0.js +0 -1
  389. package/dist/IconButton.vue.es-KywqWWvr.mjs +0 -228
  390. package/dist/IconTitle.vue.es-BmjBdZb_.mjs +0 -107
  391. package/dist/IconTitle.vue.es-D9Wc3PIq.js +0 -1
  392. package/dist/Input.vue.es-DqKJhFTr.js +0 -1
  393. package/dist/Input.vue.es-WZGF8dfr.mjs +0 -251
  394. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-B6efz7NU.mjs +0 -97
  395. package/dist/InvoiceDetailsBlock.vue_vue_type_script_setup_true_lang-LE6zBLKM.js +0 -1
  396. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-C2aLMfu6.mjs +0 -49
  397. package/dist/InvoiceEntryView.vue_vue_type_script_setup_true_lang-CtpFzWU3.js +0 -1
  398. package/dist/InvoiceSummary.vue.es-BI5sD_8F.mjs +0 -2944
  399. package/dist/InvoiceSummary.vue.es-BWYIHezU.js +0 -1
  400. package/dist/Modal.vue.es-B_1aqm_m.js +0 -1
  401. package/dist/Modal.vue.es-qdUHDOnU.mjs +0 -483
  402. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js +0 -1
  403. package/dist/PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs +0 -154
  404. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs +0 -54
  405. package/dist/PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js +0 -1
  406. package/dist/PaymentHistoryBlock-CgNUV8Gy.mjs +0 -4
  407. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js +0 -1
  408. package/dist/PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs +0 -101
  409. package/dist/PaymentIntegrationForm-CLokpXvK.mjs +0 -4
  410. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs +0 -167
  411. package/dist/PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js +0 -1
  412. package/dist/PaymentIntegrationFormAdyen-C885o8IE.mjs +0 -699
  413. package/dist/PaymentIntegrationFormAdyen-Co19AgvG.js +0 -1
  414. package/dist/PaymentIntegrationFormStripe-BjMdJmDC.mjs +0 -547
  415. package/dist/PaymentIntegrationFormStripe-DWff6wzK.js +0 -1
  416. package/dist/PaymentMethod.vue.es-CdskNJ3Z.js +0 -1
  417. package/dist/PaymentMethod.vue.es-rv-pu1CC.mjs +0 -677
  418. package/dist/PaymentMethodForm-IEuDxEPN.mjs +0 -4
  419. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-Cj60U90J.js +0 -1
  420. package/dist/PaymentMethodForm.vue_vue_type_script_setup_true_lang-gA74Rak9.mjs +0 -172
  421. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-B3H_AWMM.js +0 -1
  422. package/dist/PaymentMethodsList.vue_vue_type_script_setup_true_lang-CTn-OxM6.mjs +0 -189
  423. package/dist/PricingGroupRangeInput.vue.es-ButaePib.mjs +0 -632
  424. package/dist/PricingGroupRangeInput.vue.es-Cls2lm80.js +0 -1
  425. package/dist/Section.vue.es-CAJvEDn6.js +0 -1
  426. package/dist/Section.vue.es-DX_9ueCG.mjs +0 -79
  427. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-CQAkPfJz.js +0 -1
  428. package/dist/SecurePaymentsKPI.vue_vue_type_script_setup_true_lang-DVtMzgjc.mjs +0 -1044
  429. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DGMxHc20.mjs +0 -78
  430. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js +0 -1
  431. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-BJVXCHny.js +0 -1
  432. package/dist/SubscriptionSchedules.vue_vue_type_script_setup_true_lang-ByO-L6nm.mjs +0 -6171
  433. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-C5zB3CgZ.mjs +0 -101
  434. package/dist/SubscriptionSummary.vue_vue_type_script_setup_true_lang-CabskT-r.js +0 -1
  435. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js +0 -1
  436. package/dist/SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs +0 -309
  437. package/dist/TooltipParagraph.vue.es-C5RTcrid.mjs +0 -136
  438. package/dist/TooltipParagraph.vue.es-H9fI7zzt.js +0 -1
  439. package/dist/TrialChip.vue.es-B1puKyR-.mjs +0 -56
  440. package/dist/TrialChip.vue.es-CCs50m02.js +0 -1
  441. package/dist/accel.svg.es-CE5tIWtm.mjs +0 -4
  442. package/dist/accel.svg.es-Dt_1wJmV.js +0 -1
  443. package/dist/ach.svg.es-B4tn0_IV.js +0 -1
  444. package/dist/ach.svg.es-D4QPcIU-.mjs +0 -4
  445. package/dist/adyen-51SvcyqV.mjs +0 -4
  446. package/dist/adyen-BXi_D9TQ.mjs +0 -123
  447. package/dist/adyen-DZsyEXkw.js +0 -1
  448. package/dist/adyen-VS2sDW0m.js +0 -1
  449. package/dist/amazon-pay.svg.es-B428S4f3.js +0 -1
  450. package/dist/amazon-pay.svg.es-DUScOW15.mjs +0 -4
  451. package/dist/amex.svg.es-BCXkaVLN.mjs +0 -4
  452. package/dist/amex.svg.es-Bn9e31C3.js +0 -1
  453. package/dist/api.es-C5pe8LUl.mjs +0 -62
  454. package/dist/api.es-Czekkp_X.js +0 -1
  455. package/dist/apple-pay.svg.es-Cfgn0K28.js +0 -1
  456. package/dist/apple-pay.svg.es-DlCfkt39.mjs +0 -4
  457. package/dist/bacs.svg.es-BKsvSeIP.mjs +0 -4
  458. package/dist/bacs.svg.es-hL7hLPkQ.js +0 -1
  459. package/dist/bancontact.svg.es-BbRqGgZ9.mjs +0 -4
  460. package/dist/bancontact.svg.es-DU2ejvNL.js +0 -1
  461. package/dist/carnet.svg.es-C5SFaOsa.js +0 -1
  462. package/dist/carnet.svg.es-Db-KEb13.mjs +0 -4
  463. package/dist/cartes-bancaires.svg.es-ByD-JAAi.mjs +0 -4
  464. package/dist/cartes-bancaires.svg.es-CbBJQZrk.js +0 -1
  465. package/dist/cashapp.svg.es-CnS5r_D8.mjs +0 -4
  466. package/dist/cashapp.svg.es-DE4vMu_p.js +0 -1
  467. package/dist/cn.es-DxSeYcoP.js +0 -1
  468. package/dist/comparators.es-9VsCB-JI.mjs +0 -175
  469. package/dist/comparators.es-wrKHduVq.js +0 -1
  470. package/dist/component-BG6DmXcy.mjs +0 -9
  471. package/dist/component-hDuDTBt5.js +0 -1
  472. package/dist/configuration-BjYwV4_B.js +0 -1
  473. package/dist/configuration-CD8cOXAJ.mjs +0 -15
  474. package/dist/countryData.es-D3MFzU92.js +0 -1
  475. package/dist/customElements-B-89a5oH.mjs +0 -6810
  476. package/dist/customElements-DD7bpqkx.js +0 -1
  477. package/dist/customer-DozNwS_a.js +0 -1
  478. package/dist/customer-Dzj1g9lV.mjs +0 -32
  479. package/dist/customer.es-C_vSWcVA.mjs +0 -30
  480. package/dist/customer.es-D42Md24r.js +0 -1
  481. package/dist/dana.svg.es-Bbn6_ktN.mjs +0 -4
  482. package/dist/dana.svg.es-DKZaseoJ.js +0 -1
  483. package/dist/dankort.svg.es-D8FgSiFf.js +0 -1
  484. package/dist/dankort.svg.es-DtAdliQq.mjs +0 -4
  485. package/dist/de-DE-BvHD68Ay.js +0 -1
  486. package/dist/diners.svg.es-DhchsD1D.mjs +0 -4
  487. package/dist/diners.svg.es-SydF_H-Z.js +0 -1
  488. package/dist/discover.svg.es-B8vgzVNG.js +0 -1
  489. package/dist/discover.svg.es-BnqYPvnV.mjs +0 -4
  490. package/dist/eftpos.svg.es-DO0YPaY1.js +0 -1
  491. package/dist/eftpos.svg.es-DRLaafYa.mjs +0 -4
  492. package/dist/elo.svg.es-CTOm1rvj.js +0 -1
  493. package/dist/elo.svg.es-CgkEOP_O.mjs +0 -4
  494. package/dist/en-US-dqfKx3GS.js +0 -1
  495. package/dist/eps.svg.es-CApyGjyU.js +0 -1
  496. package/dist/eps.svg.es-D6IHsRYP.mjs +0 -4
  497. package/dist/error-Cg-i7gGl.js +0 -1
  498. package/dist/error-DY_I2hPx.mjs +0 -13
  499. package/dist/floating-ui.vue.es-Bv94BfDm.js +0 -1
  500. package/dist/floating-ui.vue.es-DWY7pdz8.mjs +0 -1573
  501. package/dist/formatting.es-DBtYnvI5.js +0 -1
  502. package/dist/formatting.es-eYgXv_AK.mjs +0 -70
  503. package/dist/gcash.svg.es-BhJ-eA2z.mjs +0 -4
  504. package/dist/gcash.svg.es-JaL4fpZr.js +0 -1
  505. package/dist/getComposedString.es-CELkn0I7.mjs +0 -14
  506. package/dist/getComposedString.es-DvSNX-_z.js +0 -1
  507. package/dist/getCountryNameByCode.es-fP52nO_7.js +0 -1
  508. package/dist/getCountryNameByCode.es-ymC9R46j.mjs +0 -8
  509. package/dist/girocard.svg.es-D_3LML4l.mjs +0 -4
  510. package/dist/girocard.svg.es-tVgtT23w.js +0 -1
  511. package/dist/go-pay.svg.es-6UtgwVBA.mjs +0 -4
  512. package/dist/go-pay.svg.es-fYX6yMzJ.js +0 -1
  513. package/dist/google-pay.svg.es-BYXX1em8.js +0 -1
  514. package/dist/google-pay.svg.es-CRxXgFVl.mjs +0 -4
  515. package/dist/hipercard.svg.es-Ct1-mF9F.mjs +0 -4
  516. package/dist/hipercard.svg.es-D-nmiFXB.js +0 -1
  517. package/dist/icon-sprite.svg.es-BpwT0GQ5.js +0 -1
  518. package/dist/icon-sprite.svg.es-YYqtl2IP.mjs +0 -4
  519. package/dist/ideal.svg.es-D23EhJJ2.mjs +0 -4
  520. package/dist/ideal.svg.es-DXtHE0Jb.js +0 -1
  521. package/dist/index-Cai7laNY.mjs +0 -1069
  522. package/dist/index-DIFK3mcJ.js +0 -6
  523. package/dist/index-DyvRdSR7.mjs +0 -9673
  524. package/dist/index-IZaUTAsE.js +0 -1
  525. package/dist/index.es-2JWHHSgP.js +0 -1
  526. package/dist/index.es-D5xOw_SJ.mjs +0 -542
  527. package/dist/invoices-1oYkdQQV.mjs +0 -121
  528. package/dist/invoices-BAoh6X2a.js +0 -1
  529. package/dist/it-IT-CEP3oeWs.js +0 -1
  530. package/dist/jcb.svg.es-Bz6J-c0s.js +0 -1
  531. package/dist/jcb.svg.es-CcH08OoO.mjs +0 -4
  532. package/dist/kakao-pay.svg.es-DcgRDAsc.mjs +0 -4
  533. package/dist/kakao-pay.svg.es-qVTABboW.js +0 -1
  534. package/dist/klarna.svg.es-Clu-7zkp.js +0 -1
  535. package/dist/klarna.svg.es-DfIPX0gr.mjs +0 -4
  536. package/dist/maestro.svg.es-CVmNVokN.mjs +0 -4
  537. package/dist/maestro.svg.es-e8E_H2QU.js +0 -1
  538. package/dist/mastercard.svg.es-B8z0ZySS.mjs +0 -4
  539. package/dist/mastercard.svg.es-YO3_jGD6.js +0 -1
  540. package/dist/momo.svg.es-BXTQlQRy.js +0 -1
  541. package/dist/momo.svg.es-Bm5zCTOT.mjs +0 -4
  542. package/dist/nl-NL-e_vf6OuT.js +0 -1
  543. package/dist/nyce.svg.es-CgurqLKH.mjs +0 -4
  544. package/dist/nyce.svg.es-DM6esO47.js +0 -1
  545. package/dist/object.es-DFXiU9p3.js +0 -1
  546. package/dist/object.es-jvvnR8Kr.mjs +0 -12
  547. package/dist/open-banking.svg.es-DUM360xB.js +0 -1
  548. package/dist/open-banking.svg.es-DzzLCVp_.mjs +0 -4
  549. package/dist/paymentMethods-CZ3ydybI.js +0 -1
  550. package/dist/paymentMethods-DIV78w0O.mjs +0 -78
  551. package/dist/payments--lkjiwCt.js +0 -1
  552. package/dist/payments-Cvqdrprv.mjs +0 -47
  553. package/dist/paypal.svg.es-BdkNTf3c.js +0 -1
  554. package/dist/paypal.svg.es-DltWzW4V.mjs +0 -4
  555. package/dist/pricing-3W7XLwL6.js +0 -1
  556. package/dist/pricing-CJxS2hr2.mjs +0 -17
  557. package/dist/pricingItemConfigs.es-BPIm6S8M.mjs +0 -107
  558. package/dist/pricingItemConfigs.es-C73cQlxQ.js +0 -1
  559. package/dist/pricingPlanSchedule-B9HFiXy-.js +0 -1
  560. package/dist/pricingPlanSchedule-CXG3CQ61.mjs +0 -146
  561. package/dist/pulse.svg.es-BdpWAuIN.js +0 -1
  562. package/dist/pulse.svg.es-BecAwT-p.mjs +0 -4
  563. package/dist/sepa.svg.es-BF8PYKZg.js +0 -1
  564. package/dist/sepa.svg.es-cbE9g8gV.mjs +0 -4
  565. package/dist/slots.es-BpwYO3A3.mjs +0 -18
  566. package/dist/slots.es-Dq1PTUOv.js +0 -1
  567. package/dist/sorting.es-CjTrRfSW.mjs +0 -105
  568. package/dist/sorting.es-RyvcgbSL.js +0 -1
  569. package/dist/star.svg.es-DsCD-tSp.mjs +0 -4
  570. package/dist/star.svg.es-Q50IzqXr.js +0 -1
  571. package/dist/subscription-C41lG-rH.mjs +0 -89
  572. package/dist/subscription-b0OPx8Du.js +0 -1
  573. package/dist/subscriptions-300o4ae0.js +0 -1
  574. package/dist/subscriptions-DcMHBPVJ.mjs +0 -58
  575. package/dist/trustly.svg.es-C0Ou1HWk.mjs +0 -4
  576. package/dist/trustly.svg.es-CHojqNqm.js +0 -1
  577. package/dist/twint.svg.es-CQ-ZDfy8.js +0 -1
  578. package/dist/twint.svg.es-WrZYquRs.mjs +0 -4
  579. package/dist/typeGuards.es-C4nR5FkL.js +0 -1
  580. package/dist/typeGuards.es-fwUoeMCe.mjs +0 -12
  581. package/dist/unionpay.svg.es-DYgo83Hf.mjs +0 -4
  582. package/dist/unionpay.svg.es-YqJKKFEj.js +0 -1
  583. package/dist/url-CjULBkjW.js +0 -1
  584. package/dist/url-CvNDq4wp.mjs +0 -22
  585. package/dist/useActionDispatchProvider-BVOBO0Jx.mjs +0 -12
  586. package/dist/useActionDispatchProvider-Cv9amjTf.js +0 -1
  587. package/dist/useCustomer-DLHOs4BR.js +0 -1
  588. package/dist/useCustomer-EDhref7T.mjs +0 -25
  589. package/dist/useCustomerFormLabels-B61-4xQ7.mjs +0 -1168
  590. package/dist/useCustomerFormLabels-C6wW4n2e.js +0 -1
  591. package/dist/useExperimentalFeature-0yFoaEzV.js +0 -1
  592. package/dist/useExperimentalFeature-DvxOrFPU.mjs +0 -9
  593. package/dist/useIncrementalLoading-BK9pRYAU.mjs +0 -71
  594. package/dist/useIncrementalLoading-CdtGJm_Y.js +0 -1
  595. package/dist/useInvoiceData-BSjVeJrI.js +0 -1
  596. package/dist/useInvoiceData-C0Y5WrbT.mjs +0 -45
  597. package/dist/useInvoicesList-BRDZqsaB.js +0 -1
  598. package/dist/useInvoicesList-CYoE7q0u.mjs +0 -580
  599. package/dist/useLoadInitialData-Cp1OA8y6.mjs +0 -18
  600. package/dist/useLoadInitialData-u7IyXqb6.js +0 -1
  601. package/dist/usePaymentMethodAvailability-B3s1lqQ2.js +0 -1
  602. package/dist/usePaymentMethodAvailability-EuhZPghG.mjs +0 -141
  603. package/dist/usePaymentMethodOptions--8QpMvNm.js +0 -1
  604. package/dist/usePaymentMethodOptions-Cljh7HYp.mjs +0 -36
  605. package/dist/usePaymentMethods-BJzoI8dZ.mjs +0 -16
  606. package/dist/usePaymentMethods-DvEnJWmB.js +0 -1
  607. package/dist/usePayments-CANj0QVc.js +0 -1
  608. package/dist/usePayments-CaT1CBzE.mjs +0 -362
  609. package/dist/usePortal-BjGoSeLy.js +0 -1
  610. package/dist/usePortal-CMPQ0M9R.mjs +0 -12
  611. package/dist/useService-D73FNBjT.js +0 -1
  612. package/dist/useService-W3Kxems4.mjs +0 -72
  613. package/dist/useSubscription-D1UKnZAx.mjs +0 -250
  614. package/dist/useSubscription-DZfRHbL7.js +0 -1
  615. package/dist/useViewport-Bu0cyeSi.mjs +0 -38
  616. package/dist/useViewport-CKRY1CKR.js +0 -1
  617. package/dist/useWatchDebounced-C_YxgoQ6.js +0 -1
  618. package/dist/useWatchDebounced-Zmxd6InB.mjs +0 -16
  619. package/dist/visa.svg.es-B6aU_qRs.mjs +0 -4
  620. package/dist/visa.svg.es-D6sc4YTE.js +0 -1
  621. package/dist/vpay.svg.es-4qIqS4aX.mjs +0 -4
  622. package/dist/vpay.svg.es-CLGTyB09.js +0 -1
  623. package/dist/zip.svg.es-3PzSBe1E.mjs +0 -4
  624. package/dist/zip.svg.es-BRsgmur-.js +0 -1
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../error-Cg-i7gGl.js"),r=require("../../ContentWithAsideLayout-DHpnJfGA.js"),o=require("../../useInvoicesList-BRDZqsaB.js"),s=require("../../usePortal-BjGoSeLy.js"),n=require("../../customElements-DD7bpqkx.js"),i=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-D-T1wGg7.js"),u=require("../../useCustomer-DLHOs4BR.js"),a=require("../../usePaymentMethods-DvEnJWmB.js"),l=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-BtNTRSqH.js"),c=require("../../useLoadInitialData-u7IyXqb6.js"),m=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-Bi_dCntQ.js"),p=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),d=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-ZyN2vlNu.js"),v=require("../../pricingPlanSchedule-B9HFiXy-.js"),_=require("../../component-hDuDTBt5.js"),f=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(_){var f;const y=_,g=s.usePortal(),h=n.useLogger(),C=null==(f=g.value)?void 0:f.customer_id,b=u.useCustomer({customerId:C}),w=o.useInvoicesList({customerId:C,batchSize:5}),S=i.useSubscriptionsList({customerId:C}),j=a.usePaymentMethods({customerId:C}),q=d.useCustomerWalletBalances({customerId:C}),L=e.computed(()=>{var e;return(null==(e=q.walletBalances.value)?void 0:e.wallet_balances)??[]}),A=e.computed(()=>S.items.value.slice(0,2)),I=e.computed(()=>{var e;return j.items.value.slice(0,(null==(e=y.configuration)?void 0:e.maxItems)??p.DEFAULT_MAX_ITEMS)}),{isLoading:B}=c.useLoadInitialData(b.get.execute(),w.fetchInitial(),S.fetchAll(),j.fetchAll(),q.fetch()),O=()=>{j.fetchAll()},M=()=>{q.fetch()},x=e.computed(()=>v.getActiveDefaultScheduleId(S.items.value));return e.watch([x,()=>S.items.value],([e,t])=>{e||0===t.length||h.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:t.flatMap(({pricing_plan_schedule_infos:e})=>(e??[]).map(({id:e,type:t,start_at:r,end_at:o,...s})=>{var n;return{id:e,type:(null==(n=s.pricing_plan_schedule)?void 0:n.type)??t,start_at:r,end_at:o}}))})}),(s,n)=>(e.openBlock(),e.createBlock(e.unref(r.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(b).customer.value?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(b).customer.value,subscriptions:A.value,"payment-methods":e.unref(j).items.value,"is-loading":e.unref(B)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(o._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(w).items.value,"has-more-items":e.unref(w).hasNextBatch.value,"is-loading":e.unref(B),onLoadMore:e.unref(w).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(d._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(q).apiStatus.value===e.unref(t.ApiStatus).Failed,"is-loading":e.unref(B),"wallet-balances":L.value,"show-top-up-button":"",customer:e.unref(b).customer.value,"payment-methods":e.unref(j).items.value,subscriptions:e.unref(S).items.value,onTopUpCharged:M,onAutoTopUpSaved:M,onAutoTopUpCancelled:M,onPaymentMethodStored:O},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(m._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:_.configuration,"is-loading":e.unref(B),"payment-methods":I.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(b).customer.value?(e.openBlock(),e.createBlock(l._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(B),customer:e.unref(b).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),y=e.defineComponent({__name:"CustomerOverview.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},configuration:{type:Object}},setup(t){const r=_.getComponentName("customer-overview");return(o,s)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{entry:o.$props,"component-name":e.unref(r),"allowed-portal-types":["CUSTOMER"],onError:s[0]||(s[0]=e=>o.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(f,{configuration:t.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:g}=n.createSolvimonElement(y,"customer-overview");exports.defineSolvimonCustomerOverview=g;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("../../error-CmduqgVq.js"),T=require("../../ContentWithAsideLayout-C6yMIVJF.js"),g=require("../../useInvoicesList-_U1-tn9_.js"),k=require("../../usePortal-BdM7hDge.js"),_=require("../../customElements-Bt8PbjIn.js"),h=require("../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DiXmEjUD.js"),E=require("../../useCustomer-BJwJ9BkJ.js"),x=require("../../usePaymentMethods-GFmQRp0X.js"),U=require("../../BillingInformation.vue_vue_type_script_setup_true_lang-CTQ5RMtx.js"),j=require("../../useLoadInitialData-CezlvhBV.js"),V=require("../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-n097Xf1H.js"),W=require("../../CustomerPaymentMethods.lib-BKgQTCtc.js"),S=require("../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-C_yKvYtG.js"),D=require("../../pricingPlanSchedule-COfmWv_o.js"),F=require("../../component-B7ZDyqBp.js"),$=2,R=e.defineComponent({__name:"CustomerOverview",props:{configuration:{type:Object}},setup(i){var f;const p=i,u=k.usePortal(),c=_.useLogger(),o=(f=u.value)==null?void 0:f.customer_id,n=E.useCustomer({customerId:o}),l=g.useInvoicesList({customerId:o,batchSize:5}),s=h.useSubscriptionsList({customerId:o}),r=x.usePaymentMethods({customerId:o}),m=S.useCustomerWalletBalances({customerId:o}),w=e.computed(()=>{var t;return((t=m.walletBalances.value)==null?void 0:t.wallet_balances)??[]}),C=e.computed(()=>s.items.value.slice(0,$)),b=e.computed(()=>{var t;return r.items.value.slice(0,((t=p.configuration)==null?void 0:t.maxItems)??W.DEFAULT_MAX_ITEMS)}),{isLoading:a}=j.useLoadInitialData(n.get.execute(),l.fetchInitial(),s.fetchAll(),r.fetchAll(),m.fetch()),B=()=>{r.fetchAll()},d=()=>{m.fetch()},L=e.computed(()=>D.getActiveDefaultScheduleId(s.items.value));return e.watch([L,()=>s.items.value],([t,v])=>{t||v.length===0||c.warn("ACTIVE_SCHEDULE_NOT_FOUND","No schedule is currently being billed",{schedules:v.flatMap(({pricing_plan_schedule_infos:O})=>(O??[]).map(({id:q,type:M,start_at:A,end_at:I,...N})=>{var y;return{id:q,type:((y=N.pricing_plan_schedule)==null?void 0:y.type)??M,start_at:A,end_at:I}}))})}),(t,v)=>(e.openBlock(),e.createBlock(e.unref(T.ContentWithAsideLayout),{class:"sv-customer-overview sv-root sv-screen"},{header:e.withCtx(()=>[e.unref(n).customer.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:0,class:"sv-customer-overview__subscriptions",customer:e.unref(n).customer.value,subscriptions:C.value,"payment-methods":e.unref(r).items.value,"is-loading":e.unref(a)},null,8,["customer","subscriptions","payment-methods","is-loading"])):e.createCommentVNode("",!0)]),content:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"sv-customer-overview__invoices",invoices:e.unref(l).items.value,"has-more-items":e.unref(l).hasNextBatch.value,"is-loading":e.unref(a),onLoadMore:e.unref(l).fetchMore},null,8,["invoices","has-more-items","is-loading","onLoadMore"])]),aside:e.withCtx(()=>[e.createVNode(S._sfc_main,{class:"sv-customer-overview__wallet-balances","has-error":e.unref(m).apiStatus.value===e.unref(P.ApiStatus).Failed,"is-loading":e.unref(a),"wallet-balances":w.value,"show-top-up-button":"",customer:e.unref(n).customer.value,"payment-methods":e.unref(r).items.value,subscriptions:e.unref(s).items.value,onTopUpCharged:d,onAutoTopUpSaved:d,onAutoTopUpCancelled:d,onPaymentMethodStored:B},null,8,["has-error","is-loading","wallet-balances","customer","payment-methods","subscriptions"]),e.createVNode(V._sfc_main,{class:"sv-customer-overview__payment-methods",configuration:i.configuration,"is-loading":e.unref(a),"payment-methods":b.value},null,8,["configuration","is-loading","payment-methods"]),e.unref(n).customer.value?(e.openBlock(),e.createBlock(U._sfc_main,{key:0,class:"sv-customer-overview__billing-information","is-loading":e.unref(a),customer:e.unref(n).customer.value},null,8,["is-loading","customer"])):e.createCommentVNode("",!0)]),_:1}))}}),H=e.defineComponent({__name:"CustomerOverview.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},configuration:{type:Object}},setup(i){const p=F.getComponentName("customer-overview");return(u,c)=>(e.openBlock(),e.createBlock(e.unref(_._sfc_main$1),{entry:u.$props,"component-name":e.unref(p),"allowed-portal-types":["CUSTOMER"],onError:c[0]||(c[0]=o=>u.$emit("error",o))},{default:e.withCtx(()=>[e.createVNode(R,{configuration:i.configuration},null,8,["configuration"])]),_:1},8,["entry","component-name"]))}}),{define:z}=_.createSolvimonElement(H,"customer-overview");exports.defineSolvimonCustomerOverview=z;
@@ -1,136 +1,113 @@
1
- import { defineComponent, computed, watch, openBlock, createBlock, unref, withCtx, createVNode, createCommentVNode } from "vue";
2
- import { A as ApiStatus } from "../../error-DY_I2hPx.mjs";
3
- import { C as ContentWithAsideLayout } from "../../ContentWithAsideLayout-Dy9xgxuF.mjs";
4
- import { u as useInvoicesList, _ as _sfc_main$5 } from "../../useInvoicesList-CYoE7q0u.mjs";
5
- import { u as usePortal } from "../../usePortal-CMPQ0M9R.mjs";
6
- import { b as useLogger, d as _sfc_main$7, e as createSolvimonElement } from "../../customElements-B-89a5oH.mjs";
7
- import { u as useSubscriptionsList, _ as _sfc_main$6 } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-DKd2DIVb.mjs";
8
- import { u as useCustomer } from "../../useCustomer-EDhref7T.mjs";
9
- import { u as usePaymentMethods } from "../../usePaymentMethods-BJzoI8dZ.mjs";
10
- import { _ as _sfc_main$4 } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-Bq2mTdUs.mjs";
11
- import { u as useLoadInitialData } from "../../useLoadInitialData-Cp1OA8y6.mjs";
12
- import { _ as _sfc_main$3 } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-CtdFharm.mjs";
13
- import { D as DEFAULT_MAX_ITEMS } from "../../CustomerPaymentMethods.lib-CcSt0sl1.mjs";
14
- import { u as useCustomerWalletBalances, _ as _sfc_main$2 } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-BDqBXbJq.mjs";
15
- import { a as getActiveDefaultScheduleId } from "../../pricingPlanSchedule-CXG3CQ61.mjs";
16
- import { g as getComponentName } from "../../component-BG6DmXcy.mjs";
17
- const SUBSCRIPTIONS_SHOWN = 2;
18
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1
+ import { defineComponent as C, computed as p, watch as P, openBlock as d, createBlock as v, unref as e, withCtx as f, createVNode as g, createCommentVNode as b } from "vue";
2
+ import { A as j } from "../../error-BHVZJGwD.mjs";
3
+ import { C as x } from "../../ContentWithAsideLayout-Bnbsq8_5.mjs";
4
+ import { u as D, _ as F } from "../../useInvoicesList-B5H5JfvY.mjs";
5
+ import { u as W } from "../../usePortal-DDG9b6FI.mjs";
6
+ import { b as k, d as R, e as V } from "../../customElements-Com2NiGU.mjs";
7
+ import { u as H, _ as z } from "../../SubscriptionsList.vue_vue_type_script_setup_true_lang-BckZJtOc.mjs";
8
+ import { u as X } from "../../useCustomer-CC9zxV6c.mjs";
9
+ import { u as q } from "../../usePaymentMethods-C3QfLSrP.mjs";
10
+ import { _ as G } from "../../BillingInformation.vue_vue_type_script_setup_true_lang-DApMAncl.mjs";
11
+ import { u as J } from "../../useLoadInitialData-ux_wpNiR.mjs";
12
+ import { _ as K } from "../../CustomerPaymentMethods.vue_vue_type_script_setup_true_lang-BxwllXwU.mjs";
13
+ import { D as Q } from "../../CustomerPaymentMethods.lib-B_753rau.mjs";
14
+ import { u as Y, _ as Z } from "../../CustomerWalletBalances.vue_vue_type_script_setup_true_lang-CtaoLbrM.mjs";
15
+ import { a as ee } from "../../pricingPlanSchedule-J1nb9pCu.mjs";
16
+ import { g as te } from "../../component-5wqcK7yz.mjs";
17
+ const oe = 2, se = /* @__PURE__ */ C({
19
18
  __name: "CustomerOverview",
20
19
  props: {
21
20
  configuration: { type: Object }
22
21
  },
23
- setup(__props) {
24
- var _a;
25
- const props = __props;
26
- const portal = usePortal();
27
- const logger = useLogger();
28
- const customerId = (_a = portal.value) == null ? void 0 : _a.customer_id;
29
- const customer = useCustomer({ customerId });
30
- const invoices = useInvoicesList({ customerId, batchSize: 5 });
31
- const subscriptions = useSubscriptionsList({ customerId });
32
- const paymentMethods = usePaymentMethods({ customerId });
33
- const customerWalletBalances = useCustomerWalletBalances({ customerId });
34
- const walletBalanceItems = computed(
22
+ setup(i) {
23
+ var w;
24
+ const _ = i, c = W(), l = k(), o = (w = c.value) == null ? void 0 : w.customer_id, s = X({ customerId: o }), m = D({ customerId: o, batchSize: 5 }), a = H({ customerId: o }), n = q({ customerId: o }), u = Y({ customerId: o }), A = p(
35
25
  () => {
36
- var _a2;
37
- return ((_a2 = customerWalletBalances.walletBalances.value) == null ? void 0 : _a2.wallet_balances) ?? [];
26
+ var t;
27
+ return ((t = u.walletBalances.value) == null ? void 0 : t.wallet_balances) ?? [];
38
28
  }
39
- );
40
- const shownSubscriptions = computed(() => subscriptions.items.value.slice(0, SUBSCRIPTIONS_SHOWN));
41
- const shownPaymentMethods = computed(
29
+ ), O = p(() => a.items.value.slice(0, oe)), L = p(
42
30
  () => {
43
- var _a2;
44
- return paymentMethods.items.value.slice(0, ((_a2 = props.configuration) == null ? void 0 : _a2.maxItems) ?? DEFAULT_MAX_ITEMS);
31
+ var t;
32
+ return n.items.value.slice(0, ((t = _.configuration) == null ? void 0 : t.maxItems) ?? Q);
45
33
  }
46
- );
47
- const { isLoading } = useLoadInitialData(
48
- customer.get.execute(),
49
- invoices.fetchInitial(),
50
- subscriptions.fetchAll(),
51
- paymentMethods.fetchAll(),
52
- customerWalletBalances.fetch()
53
- );
54
- const handlePaymentMethodStored = () => {
55
- void paymentMethods.fetchAll();
56
- };
57
- const handleWalletBalancesChanged = () => {
58
- void customerWalletBalances.fetch();
59
- };
60
- const activeScheduleId = computed(() => getActiveDefaultScheduleId(subscriptions.items.value));
61
- watch([activeScheduleId, () => subscriptions.items.value], ([scheduleId, activeSubscriptions]) => {
62
- if (scheduleId || activeSubscriptions.length === 0) {
63
- return;
64
- }
65
- logger.warn("ACTIVE_SCHEDULE_NOT_FOUND", "No schedule is currently being billed", {
66
- schedules: activeSubscriptions.flatMap(
67
- ({ pricing_plan_schedule_infos }) => (pricing_plan_schedule_infos ?? []).map(({ id, type, start_at, end_at, ...info }) => {
68
- var _a2;
34
+ ), { isLoading: r } = J(
35
+ s.get.execute(),
36
+ m.fetchInitial(),
37
+ a.fetchAll(),
38
+ n.fetchAll(),
39
+ u.fetch()
40
+ ), I = () => {
41
+ n.fetchAll();
42
+ }, h = () => {
43
+ u.fetch();
44
+ }, M = p(() => ee(a.items.value));
45
+ return P([M, () => a.items.value], ([t, y]) => {
46
+ t || y.length === 0 || l.warn("ACTIVE_SCHEDULE_NOT_FOUND", "No schedule is currently being billed", {
47
+ schedules: y.flatMap(
48
+ ({ pricing_plan_schedule_infos: B }) => (B ?? []).map(({ id: N, type: T, start_at: $, end_at: E, ...U }) => {
49
+ var S;
69
50
  return {
70
- id,
71
- type: ((_a2 = info.pricing_plan_schedule) == null ? void 0 : _a2.type) ?? type,
72
- start_at,
73
- end_at
51
+ id: N,
52
+ type: ((S = U.pricing_plan_schedule) == null ? void 0 : S.type) ?? T,
53
+ start_at: $,
54
+ end_at: E
74
55
  };
75
56
  })
76
57
  )
77
58
  });
78
- });
79
- return (_ctx, _cache) => {
80
- return openBlock(), createBlock(unref(ContentWithAsideLayout), { class: "sv-customer-overview sv-root sv-screen" }, {
81
- header: withCtx(() => [
82
- unref(customer).customer.value ? (openBlock(), createBlock(_sfc_main$6, {
83
- key: 0,
84
- class: "sv-customer-overview__subscriptions",
85
- customer: unref(customer).customer.value,
86
- subscriptions: shownSubscriptions.value,
87
- "payment-methods": unref(paymentMethods).items.value,
88
- "is-loading": unref(isLoading)
89
- }, null, 8, ["customer", "subscriptions", "payment-methods", "is-loading"])) : createCommentVNode("", true)
90
- ]),
91
- content: withCtx(() => [
92
- createVNode(_sfc_main$5, {
93
- class: "sv-customer-overview__invoices",
94
- invoices: unref(invoices).items.value,
95
- "has-more-items": unref(invoices).hasNextBatch.value,
96
- "is-loading": unref(isLoading),
97
- onLoadMore: unref(invoices).fetchMore
98
- }, null, 8, ["invoices", "has-more-items", "is-loading", "onLoadMore"])
99
- ]),
100
- aside: withCtx(() => [
101
- createVNode(_sfc_main$2, {
102
- class: "sv-customer-overview__wallet-balances",
103
- "has-error": unref(customerWalletBalances).apiStatus.value === unref(ApiStatus).Failed,
104
- "is-loading": unref(isLoading),
105
- "wallet-balances": walletBalanceItems.value,
106
- "show-top-up-button": "",
107
- customer: unref(customer).customer.value,
108
- "payment-methods": unref(paymentMethods).items.value,
109
- subscriptions: unref(subscriptions).items.value,
110
- onTopUpCharged: handleWalletBalancesChanged,
111
- onAutoTopUpSaved: handleWalletBalancesChanged,
112
- onAutoTopUpCancelled: handleWalletBalancesChanged,
113
- onPaymentMethodStored: handlePaymentMethodStored
114
- }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
115
- createVNode(_sfc_main$3, {
116
- class: "sv-customer-overview__payment-methods",
117
- configuration: __props.configuration,
118
- "is-loading": unref(isLoading),
119
- "payment-methods": shownPaymentMethods.value
120
- }, null, 8, ["configuration", "is-loading", "payment-methods"]),
121
- unref(customer).customer.value ? (openBlock(), createBlock(_sfc_main$4, {
122
- key: 0,
123
- class: "sv-customer-overview__billing-information",
124
- "is-loading": unref(isLoading),
125
- customer: unref(customer).customer.value
126
- }, null, 8, ["is-loading", "customer"])) : createCommentVNode("", true)
127
- ]),
128
- _: 1
129
- });
130
- };
59
+ }), (t, y) => (d(), v(e(x), { class: "sv-customer-overview sv-root sv-screen" }, {
60
+ header: f(() => [
61
+ e(s).customer.value ? (d(), v(z, {
62
+ key: 0,
63
+ class: "sv-customer-overview__subscriptions",
64
+ customer: e(s).customer.value,
65
+ subscriptions: O.value,
66
+ "payment-methods": e(n).items.value,
67
+ "is-loading": e(r)
68
+ }, null, 8, ["customer", "subscriptions", "payment-methods", "is-loading"])) : b("", !0)
69
+ ]),
70
+ content: f(() => [
71
+ g(F, {
72
+ class: "sv-customer-overview__invoices",
73
+ invoices: e(m).items.value,
74
+ "has-more-items": e(m).hasNextBatch.value,
75
+ "is-loading": e(r),
76
+ onLoadMore: e(m).fetchMore
77
+ }, null, 8, ["invoices", "has-more-items", "is-loading", "onLoadMore"])
78
+ ]),
79
+ aside: f(() => [
80
+ g(Z, {
81
+ class: "sv-customer-overview__wallet-balances",
82
+ "has-error": e(u).apiStatus.value === e(j).Failed,
83
+ "is-loading": e(r),
84
+ "wallet-balances": A.value,
85
+ "show-top-up-button": "",
86
+ customer: e(s).customer.value,
87
+ "payment-methods": e(n).items.value,
88
+ subscriptions: e(a).items.value,
89
+ onTopUpCharged: h,
90
+ onAutoTopUpSaved: h,
91
+ onAutoTopUpCancelled: h,
92
+ onPaymentMethodStored: I
93
+ }, null, 8, ["has-error", "is-loading", "wallet-balances", "customer", "payment-methods", "subscriptions"]),
94
+ g(K, {
95
+ class: "sv-customer-overview__payment-methods",
96
+ configuration: i.configuration,
97
+ "is-loading": e(r),
98
+ "payment-methods": L.value
99
+ }, null, 8, ["configuration", "is-loading", "payment-methods"]),
100
+ e(s).customer.value ? (d(), v(G, {
101
+ key: 0,
102
+ class: "sv-customer-overview__billing-information",
103
+ "is-loading": e(r),
104
+ customer: e(s).customer.value
105
+ }, null, 8, ["is-loading", "customer"])) : b("", !0)
106
+ ]),
107
+ _: 1
108
+ }));
131
109
  }
132
- });
133
- const _sfc_main = /* @__PURE__ */ defineComponent({
110
+ }), ae = /* @__PURE__ */ C({
134
111
  __name: "CustomerOverview.entry",
135
112
  props: {
136
113
  environment: { type: String },
@@ -149,27 +126,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
126
  branding: { type: Object },
150
127
  configuration: { type: Object }
151
128
  },
152
- setup(__props) {
153
- const componentName = getComponentName("customer-overview");
154
- return (_ctx, _cache) => {
155
- return openBlock(), createBlock(unref(_sfc_main$7), {
156
- entry: _ctx.$props,
157
- "component-name": unref(componentName),
158
- "allowed-portal-types": ["CUSTOMER"],
159
- onError: _cache[0] || (_cache[0] = (error) => _ctx.$emit("error", error))
160
- }, {
161
- default: withCtx(() => [
162
- createVNode(_sfc_main$1, { configuration: __props.configuration }, null, 8, ["configuration"])
163
- ]),
164
- _: 1
165
- }, 8, ["entry", "component-name"]);
166
- };
129
+ setup(i) {
130
+ const _ = te("customer-overview");
131
+ return (c, l) => (d(), v(e(R), {
132
+ entry: c.$props,
133
+ "component-name": e(_),
134
+ "allowed-portal-types": ["CUSTOMER"],
135
+ onError: l[0] || (l[0] = (o) => c.$emit("error", o))
136
+ }, {
137
+ default: f(() => [
138
+ g(se, { configuration: i.configuration }, null, 8, ["configuration"])
139
+ ]),
140
+ _: 1
141
+ }, 8, ["entry", "component-name"]));
167
142
  }
168
- });
169
- const { define: defineSolvimonCustomerOverview } = createSolvimonElement(
170
- _sfc_main,
143
+ }), { define: Se } = V(
144
+ ae,
171
145
  "customer-overview"
172
146
  );
173
147
  export {
174
- defineSolvimonCustomerOverview
148
+ Se as defineSolvimonCustomerOverview
175
149
  };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../../formatting.es-DBtYnvI5.js"),n=require("../../Button.vue.es-O8mNivLL.js"),a=require("../../index.es-2JWHHSgP.js"),o=require("../../usePayments-CANj0QVc.js"),i=require("../../InvoiceSummary.vue.es-BWYIHezU.js"),r=require("../../Section.vue.es-CAJvEDn6.js"),l=require("../../customElements-DD7bpqkx.js"),c=require("../../ContentWithAsideLayout-DHpnJfGA.js"),s=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js"),u=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DfMgIsGm.js"),d=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js"),p=require("../../usePaymentMethodAvailability-B3s1lqQ2.js"),m=require("../../customer.es-D42Md24r.js"),y=require("../../useLoadInitialData-u7IyXqb6.js"),v=require("../../usePaymentMethodOptions--8QpMvNm.js"),f=require("../../usePaymentMethods-DvEnJWmB.js"),h=require("../../component-hDuDTBt5.js"),g={class:"flex items-center gap-1 border-0 py-0"},_=["id","name","disabled","value"],b=["for"],k=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=a.useVModel(n,"modelValue"),i={sm:"size-2",md:"size-4"},r=e.computed(()=>i[n.size]),l={sm:"text-xs",md:"text-sm"},c=e.computed(()=>l[n.size]);return(n,a)=>(e.openBlock(),e.createElementBlock("label",g,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},n.$attrs,{"onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(o)?o.value=t:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:a[1]||(a[1]=e.withModifiers(()=>{},["stop"]))}),null,16,_),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,b)]))}}),w=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(a){const o=a,{$t:i}=l.useIntl(),r=e.computed(()=>({intent:o.intent??"primary",disabled:o.disabled,iconPrefix:o.iconPrefix,iconSuffix:o.iconSuffix,loading:o.loading,pill:o.pill,size:o.size??"lg",square:o.square,tag:o.tag,type:o.type})),c=e.computed(()=>{var t,n,a;switch(null==(t=o.paymentMethod)?void 0:t.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(null==(n=o.paymentMethod)?void 0:n.paymentMethodType)?e.capitalize(null==(a=o.paymentMethod)?void 0:a.paymentMethodType):""}}),s=e.computed(()=>o.amount&&o.paymentMethod?i({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:t.formatAmount(o.amount),type:c.value}):o.amount?i({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:t.formatAmount(o.amount),type:c.value}):i({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(t,a)=>(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),e.mergeProps(r.value,{class:"w-full",onClick:a[0]||(a[0]=e=>t.$emit("click",e))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value),1)]),_:1},16))}}),C={class:"mt-4"},S={key:0},x=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(a){const{$t:m}=l.useIntl(),y=a,{availability:v}=p.usePaymentMethodAvailability({paymentMethodOptions:()=>y.paymentMethodOptions,isLoading:()=>y.isLoading,context:()=>{var e;return{invoiceId:null==(e=y.invoice)?void 0:e.id}}}),f=e.ref(),h=e.ref(!0),g=e.ref(),_=e.ref(!1);function b(){if(!g.value)throw new Error("payment integration form not found");_.value=!0,g.value.submit()}const x=()=>{y.configuration.onPaymentSuccess&&y.configuration.onPaymentSuccess()},P=()=>{_.value=!1};return(y,B)=>(e.openBlock(),e.createBlock(e.unref(c.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(u._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[a.invoice&&a.downloadService?(e.openBlock(),e.createBlock(e.unref(o._sfc_main),{key:0,invoice:a.invoice,"payment-attempts":a.paymentAttempts,"download-service":()=>a.downloadService(a.invoice.id)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var o,i;return[a.isLoading?(e.openBlock(),e.createBlock(u._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(null==(o=a.invoice)?void 0:o.paid)?(e.openBlock(),e.createBlock(d._sfc_main,{key:1,status:"success",title:e.unref(m)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(l._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(n._sfc_main),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(a.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):a.error?(e.openBlock(),e.createBlock(d._sfc_main,{key:2,status:"error",title:e.unref(m)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(l._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!a.isLoading&&a.countryCode&&a.amount&&a.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},["READY"===e.unref(v)?(e.openBlock(),e.createBlock(e.unref(r._sfc_main),{key:0,title:e.unref(m)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":_.value})},[e.createVNode(s._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:g,amount:a.amount,"country-code":a.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:a.invoice.id}]},"customer-id":a.invoice.customer.id,"store-payment-method":h.value,"invoice-id":a.invoice.id,"payment-method-options":a.paymentMethodOptions??[],variant:"AUTHORIZE",onPaymentSuccess:x,onPaymentFailed:P,onSelect:B[0]||(B[0]=e=>f.value=e)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options"]),e.createElementVNode("div",C,[e.createVNode(e.unref(k),{id:"pay-invoice-store-payment-method",modelValue:h.value,"onUpdate:modelValue":B[1]||(B[1]=e=>h.value=e),label:e.unref(m)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]),_:1},8,["title"])):(e.openBlock(),e.createBlock(p._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":null==(i=a.invoice.billing_entity)?void 0:i.legal_name},{default:e.withCtx(()=>[a.downloadService?(e.openBlock(),e.createBlock(e.unref(n._sfc_main$1),{key:0,type:"button",intent:"secondary",onClick:B[2]||(B[2]=()=>{var e;return null==(e=a.downloadService)?void 0:e.call(a,a.invoice.id)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(u._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[a.invoice?(e.openBlock(),e.createBlock(e.unref(i._sfc_main),{key:0,invoice:a.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),a.invoice&&"READY"===e.unref(v)?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(w,{disabled:!f.value||_.value,loading:_.value,amount:a.amount,"payment-method":f.value,onClick:b},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),P=e.defineComponent({__name:"PayInvoice.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},configuration:{type:Object}},setup(t){const n=t,{invoice:a,get:i,downloadInvoicePdf:r}=o.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:l,get:c}=o.usePayments(),{fetchInitial:s}=f.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:u,get:d}=v.usePaymentMethodOptions(),{isLoading:p}=y.useLoadInitialData((async()=>{const e=await i();await d({customerId:e.customer.id,amount:e.open_invoice_amount})})(),s(),c(n.configuration.invoiceId)),h=e.computed(()=>{var e;return(null==(e=a.value)?void 0:e.customer)?m.getCustomerCountry(a.value.customer):void 0});return(t,n)=>{var o;return e.renderSlot(t.$slots,"default",{invoice:e.unref(a),isLoading:e.unref(p),amount:null==(o=e.unref(a))?void 0:o.open_invoice_amount,countryCode:h.value,paymentMethodOptions:e.unref(u),paymentAttempts:e.unref(l),downloadService:e.unref(r)})}}}),B=e.defineComponent({__name:"PayInvoice.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},configuration:{type:Object}},setup(t){const n=h.getComponentName("pay-invoice");return(a,o)=>(e.openBlock(),e.createBlock(e.unref(l._sfc_main$1),{entry:a.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:o[0]||(o[0]=e=>a.$emit("error",e))},{default:e.withCtx(()=>[e.createVNode(P,e.normalizeProps(e.guardReactiveProps(a.$props)),{default:e.withCtx(({invoice:n,isLoading:a,amount:o,countryCode:i,paymentMethodOptions:r,paymentAttempts:l,downloadService:c})=>[e.createVNode(x,{"is-loading":a,invoice:n,amount:o,"country-code":i,"payment-method-options":r,configuration:t.configuration,"payment-attempts":l??[],"download-service":c},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:M}=l.createSolvimonElement(B,"pay-invoice");exports.defineSolvimonPayInvoice=M;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("../../formatting.es-C72Nsrmh.js"),k=require("../../Button.vue.es-BWl37nzm.js"),x=require("../../index.es-BclokHQX.js"),w=require("../../usePayments-SQF_V7oL.js"),B=require("../../InvoiceSummary.vue.es-B0MPR0oI.js"),M=require("../../Section.vue.es-DuK52y67.js"),f=require("../../customElements-Bt8PbjIn.js"),_=require("../../ContentWithAsideLayout-C6yMIVJF.js"),O=require("../../PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CcEEdHQJ.js"),g=require("../../Skeleton.vue_vue_type_script_setup_true_lang-DypW8aNJ.js"),S=require("../../PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-Db6jAkqD.js"),P=require("../../usePaymentMethodAvailability-DRwrBdto.js"),V=require("../../customer.es-BButyYo0.js"),A=require("../../useLoadInitialData-CezlvhBV.js"),I=require("../../usePaymentMethodOptions-B6GIM9q4.js"),N=require("../../usePaymentMethods-GFmQRp0X.js"),T=require("../../component-B7ZDyqBp.js"),q={class:"flex items-center gap-1 border-0 py-0"},z=["id","name","disabled","value"],E=["for"],L=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean},label:{},id:{},name:{},value:{},disabled:{type:Boolean},size:{default:"md"}},setup(t){const n=t,o=x.useVModel(n,"modelValue"),s={sm:"size-2",md:"size-4"},r=e.computed(()=>s[n.size]),l={sm:"text-xs",md:"text-sm"},c=e.computed(()=>l[n.size]);return(a,i)=>(e.openBlock(),e.createElementBlock("label",q,[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:t.id},a.$attrs,{"onUpdate:modelValue":i[0]||(i[0]=m=>e.isRef(o)?o.value=m:null),name:t.name,disabled:t.disabled,value:t.value,type:"checkbox",class:["rounded checked:bg-primary-600 checked:hover:bg-primary-700",{"border border-gray-300 checked:border-gray-300 checked:bg-gray-400 checked:hover:bg-gray-500":t.disabled,"bg-gray-100":t.disabled&&!e.unref(o),"bg-gray-300 text-primary-600":!t.disabled&&e.unref(o),"cursor-pointer":!t.disabled,[r.value]:!0}],onClickCapture:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))}),null,16,z),[[e.vModelCheckbox,e.unref(o)]]),e.createElementVNode("span",{for:t.id,class:e.normalizeClass(["leading-tight",{[c.value]:!0}])},e.toDisplayString(t.label),11,E)]))}}),j=e.defineComponent({__name:"PayButton",props:{amount:{type:Object},paymentMethod:{type:Object},type:{type:String},intent:{type:String},size:{type:String},pill:{type:Boolean},square:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},iconPrefix:{type:null},iconSuffix:{type:null},tag:{type:String},preventDoubleClick:{type:Boolean}},emits:["click"],setup(t){const n=t,{$t:o}=f.useIntl(),s=e.computed(()=>({intent:n.intent??"primary",disabled:n.disabled,iconPrefix:n.iconPrefix,iconSuffix:n.iconSuffix,loading:n.loading,pill:n.pill,size:n.size??"lg",square:n.square,tag:n.tag,type:n.type})),r=e.computed(()=>{var c,a,i;switch((c=n.paymentMethod)==null?void 0:c.paymentMethodType){case"scheme":return"Credit Card";case"applepay":return"Apple Pay";case"googlepay":return"Google Pay";case"paypal":return"PayPal";case"ideal":return"iDeal";case"klarna":return"Klarna";case"bcmc":return"BCMC";case"sepadirectdebit":return"SEPA";case"twint":return"Twint";case"swish":return"Swish";case"vipps":return"Vipps";case"mbway":return"MBway";case"alipay":return"AliPay";case"wechatpayWeb":return"WeChatPay";case"afterpay_default":return"Afterpay";case"affirm":return"Affirm";case"ach":return"ACH";case"blik":return"Blik";case"cashapp":return"Cash App Pay";case"amazonpay":return"Amazon Pay";case"venmo":return"Venmo";case"clicktopay":return"Click to Pay";case"upi":return"UPI";case"revolutpay":return"Revolut Pay";case"ratepay":return"Ratepay";case"walley":return"Walley";case"alma":return"Alma";case"facilypay_3x":case"facilypay_4x":return"Oney";case"samsungpay":return"Samsung Pay";case"bizum":return"Bizum";case"pix":return"Pix";case"multibanco":return"Multibanco";case"openbanking_UK":return"Open Banking";default:return(a=n.paymentMethod)!=null&&a.paymentMethodType?e.capitalize((i=n.paymentMethod)==null?void 0:i.paymentMethodType):""}}),l=e.computed(()=>n.amount&&n.paymentMethod?o({defaultMessage:"Pay {amount} with {type}",id:"pay_button.label.amount_and_payment_method",description:"The label for the pay button when both the amount and the payment method are known"},{amount:b.formatAmount(n.amount),type:r.value}):n.amount?o({defaultMessage:"Pay {amount}",id:"pay_button.label.amount_only",description:"The label for the pay button when only the amount is known"},{amount:b.formatAmount(n.amount),type:r.value}):o({defaultMessage:"Pay",id:"pay_button.label.default",description:"The default label for the pay button when no amount and payment method are known"}));return(c,a)=>(e.openBlock(),e.createBlock(e.unref(k._sfc_main),e.mergeProps(s.value,{class:"w-full",onClick:a[0]||(a[0]=i=>c.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),_:1},16))}}),$={class:"mt-4"},D={key:0},R=e.defineComponent({__name:"PayInvoice",props:{invoice:{type:Object},paymentMethodOptions:{type:Array},paymentAttempts:{default:()=>[],type:Array},countryCode:{type:String},amount:{type:Object},downloadService:{type:Function},configuration:{type:Object},isLoading:{type:Boolean},error:{type:null}},setup(t){const{$t:n}=f.useIntl(),o=t,{availability:s}=P.usePaymentMethodAvailability({paymentMethodOptions:()=>o.paymentMethodOptions,isLoading:()=>o.isLoading,context:()=>{var y;return{invoiceId:(y=o.invoice)==null?void 0:y.id}}}),r=e.ref(),l=e.ref(!0),c=e.ref(),a=e.ref(!1);function i(){if(!c.value)throw new Error("payment integration form not found");a.value=!0,c.value.submit()}const m=()=>{o.configuration.onPaymentSuccess&&o.configuration.onPaymentSuccess()},v=()=>{a.value=!1};return(y,d)=>(e.openBlock(),e.createBlock(e.unref(_.ContentWithAsideLayout),null,{header:e.withCtx(()=>[e.createVNode(g._sfc_main,{class:"min-h-[52px] w-96"},{default:e.withCtx(()=>[t.invoice&&t.downloadService?(e.openBlock(),e.createBlock(e.unref(w._sfc_main),{key:0,invoice:t.invoice,"payment-attempts":t.paymentAttempts,"download-service":()=>t.downloadService(t.invoice.id)},null,8,["invoice","payment-attempts","download-service"])):e.createCommentVNode("",!0)]),_:1})]),content:e.withCtx(()=>{var h,u;return[t.isLoading?(e.openBlock(),e.createBlock(g._sfc_main,{key:0,variant:"section",class:"min-h-[300px]"})):e.createCommentVNode("",!0),(h=t.invoice)!=null&&h.paid?(e.openBlock(),e.createBlock(S._sfc_main,{key:1,status:"success",title:e.unref(n)({id:"pay_invoice.paid.title",defaultMessage:"Thank you for your payment!",description:"Title shown when the invoice has already been paid"}),class:"mt-8"},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(k._sfc_main$1),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(b.formatAmount)(t.invoice.tax_summary.total_amount)),1)]),_:1})]),_:1},8,["title"])):t.error?(e.openBlock(),e.createBlock(S._sfc_main,{key:2,status:"error",title:e.unref(n)({id:"pay_invoice.error.title",defaultMessage:"Something went wrong",description:"Title shown when the invoice payment fails to load"})},{default:e.withCtx(()=>[e.createVNode(e.unref(f._sfc_main),{variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({id:"pay_invoice.error.description",defaultMessage:"Please try again or contact support.",description:"Body text shown when the invoice payment fails to load"})),1)]),_:1})]),_:1},8,["title"])):!t.isLoading&&t.countryCode&&t.amount&&t.invoice?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.unref(s)==="READY"?(e.openBlock(),e.createBlock(e.unref(M._sfc_main),{key:0,title:e.unref(n)({id:"pay_invoice.payment_methods.title",defaultMessage:"Payment methods",description:"Section title for the payment method selector on the pay invoice screen"}),"content-background":"none","no-border":"","no-spacing":""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({"pointer-events-none opacity-60":a.value})},[e.createVNode(O._sfc_main,{ref_key:"paymentIntegrationFormRef",ref:c,amount:t.amount,"country-code":t.countryCode,context:{type:"INVOICE",related_resource_ids:[{type:"INVOICE",id:t.invoice.id}]},"customer-id":t.invoice.customer.id,"store-payment-method":l.value,"invoice-id":t.invoice.id,"payment-method-options":t.paymentMethodOptions??[],variant:"AUTHORIZE",onPaymentSuccess:m,onPaymentFailed:v,onSelect:d[0]||(d[0]=p=>r.value=p)},null,8,["amount","country-code","context","customer-id","store-payment-method","invoice-id","payment-method-options"]),e.createElementVNode("div",$,[e.createVNode(e.unref(L),{id:"pay-invoice-store-payment-method",modelValue:l.value,"onUpdate:modelValue":d[1]||(d[1]=p=>l.value=p),label:e.unref(n)({id:"pay_invoice.store_payment_method.label",defaultMessage:"Save this payment method for future payments",description:"Label of the checkbox that stores the payment method while paying an invoice"})},null,8,["modelValue","label"])])],2)]),_:1},8,["title"])):(e.openBlock(),e.createBlock(P._sfc_main,{key:1,variant:"AUTHORIZE","seller-name":(u=t.invoice.billing_entity)==null?void 0:u.legal_name},{default:e.withCtx(()=>[t.downloadService?(e.openBlock(),e.createBlock(e.unref(k._sfc_main),{key:0,type:"button",intent:"secondary",onClick:d[2]||(d[2]=()=>{var p;return(p=t.downloadService)==null?void 0:p.call(t,t.invoice.id)})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)({defaultMessage:"Download invoice",description:"Button that downloads the invoice when it cannot be paid online",id:"pay_invoice.unavailable.download_invoice"})),1)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["seller-name"]))],64)):e.createCommentVNode("",!0)]}),aside:e.withCtx(()=>[e.createVNode(g._sfc_main,{variant:"section",class:"min-h-[200px]"},{default:e.withCtx(()=>[t.invoice?(e.openBlock(),e.createBlock(e.unref(B._sfc_main),{key:0,invoice:t.invoice},null,8,["invoice"])):e.createCommentVNode("",!0)]),_:1}),t.invoice&&!t.invoice.paid&&e.unref(s)==="READY"?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(j,{disabled:!r.value||a.value,loading:a.value,amount:t.amount,"payment-method":r.value,onClick:i},null,8,["disabled","loading","amount","payment-method"])])):e.createCommentVNode("",!0)]),_:1}))}}),F=e.defineComponent({__name:"PayInvoice.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},configuration:{type:Object}},setup(t){const n=t,{invoice:o,get:s,downloadInvoicePdf:r,error:l}=w.useInvoice({invoiceId:n.configuration.invoiceId}),{payments:c,get:a}=w.usePayments(),{fetchInitial:i}=N.usePaymentMethods({customerId:n.portalObject.customer_id}),{paymentMethodOptions:m,get:v}=I.usePaymentMethodOptions(),y=async()=>{const u=await s();await v({customerId:u.customer.id,amount:u.open_invoice_amount})},{isLoading:d}=A.useLoadInitialData(y(),i(),a(n.configuration.invoiceId)),h=e.computed(()=>{var u;return(u=o.value)!=null&&u.customer?V.getCustomerCountry(o.value.customer):void 0});return(u,p)=>{var C;return e.renderSlot(u.$slots,"default",{invoice:e.unref(o),isLoading:e.unref(d),amount:(C=e.unref(o))==null?void 0:C.open_invoice_amount,countryCode:h.value,paymentMethodOptions:e.unref(m),paymentAttempts:e.unref(c),downloadService:e.unref(r),error:e.unref(l)})}}}),U=e.defineComponent({__name:"PayInvoice.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},configuration:{type:Object}},setup(t){const n=T.getComponentName("pay-invoice");return(o,s)=>(e.openBlock(),e.createBlock(e.unref(f._sfc_main$1),{entry:o.$props,"component-name":e.unref(n),"allowed-portal-types":["CUSTOMER"],onError:s[0]||(s[0]=r=>o.$emit("error",r))},{default:e.withCtx(()=>[e.createVNode(F,e.normalizeProps(e.guardReactiveProps(o.$props)),{default:e.withCtx(({invoice:r,isLoading:l,amount:c,countryCode:a,paymentMethodOptions:i,paymentAttempts:m,downloadService:v,error:y})=>[e.createVNode(R,{"is-loading":l,invoice:r,amount:c,"country-code":a,"payment-method-options":i,configuration:t.configuration,"payment-attempts":m??[],"download-service":v,error:y},null,8,["is-loading","invoice","amount","country-code","payment-method-options","configuration","payment-attempts","download-service","error"])]),_:1},16)]),_:1},8,["entry","component-name"]))}}),{define:W}=f.createSolvimonElement(U,"pay-invoice");exports.defineSolvimonPayInvoice=W;