@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
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./formatting.es-DBtYnvI5.js"),a=require("./Button.vue.es-O8mNivLL.js"),n=require("./customElements-DD7bpqkx.js"),s=require("./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-mKNNYnMU.js"),i=e.defineComponent({__name:"PaymentCompletedCard",props:{amount:{type:Object},variant:{type:String}},setup(i){const o=i,{$t:r}=n.useIntl(),l=e.computed(()=>"AUTHORIZE"===o.variant?r({defaultMessage:"Payment successful",description:"The title for when a payment has been successful",id:"payment_completed_card.title.authorize"}):r({defaultMessage:"Your payment method is added",description:"The title for when a payment method was successfully added",id:"payment_completed_card.title.tokenize"}));return(o,d)=>(e.openBlock(),e.createBlock(s._sfc_main,{status:"success",title:l.value},{default:e.withCtx(()=>[i.amount?(e.openBlock(),e.createBlock(e.unref(n._sfc_main),{key:0,variant:"body-sm",class:"mt-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(a._sfc_main),{icon:"check"}),e.createTextVNode(e.toDisplayString(e.unref(t.formatAmount)(i.amount)),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",color:"subtle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)({defaultMessage:"You are being redirected...",description:"The text shown after a successful message before a redirect",id:"payment_completed_card.redirect_message"})),1)]),_:1})]),_:1},8,["title"]))}}),o={UNKNOWN_ERROR:{title:"Something went wrong",message:"An unknown error has occurred",isReloadButtonVisible:!0},AUTHORIZATION_FAILED:{title:"Payment failed",message:"The payment failed"},PAYMENT_DETAILS_CALL_FAILED:{title:"Payment details call failed",message:"There was a problem getting the payment details"},PAYMENT_METHOD_STORAGE_FAILED:{title:"Failed storing payment method",message:"Something went wrong with storing the payment method"},REDIRECT_RESULT_PAYMENT_ACCEPTOR_MISSING:{title:"Missing payment acceptor",message:"A redirect result is set, but a payment acceptor is missing in the url"},TOKENIZE_FAILED:{title:"Tokenization failed",message:"The tokenization of the payment method has failed"},PAYMENT_INTEGRATION_INITIALIZATION_FAILED:{title:"Failed loading payment methods",message:"Failed loading payment integration",isReloadButtonVisible:!0},RESOURCE_REVOKED:{title:"Resource revoked",message:"The resource has been revoked",isReloadButtonVisible:!0}},r={class:"flex flex-col items-center gap-6"},l=e.defineComponent({__name:"PaymentErrorCard",props:{error:{type:Object}},setup(t){const i=t,{$t:l}=n.useIntl(),d=e.computed(()=>o[i.error.code]),c=()=>{window.location.reload()};return(t,i)=>(e.openBlock(),e.createBlock(s._sfc_main,{status:"error",title:d.value.title},{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(n._sfc_main),{variant:"body-xs",color:"subtle",class:"mt-3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value.message),1)]),_:1}),d.value.isReloadButtonVisible?(e.openBlock(),e.createBlock(e.unref(a._sfc_main$1),{key:0,type:"button",intent:"secondary",onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Try again",description:"Retry button text when an error has happened during a payment",id:"payments.retry_button.label"})),1)]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["title"]))}});exports._sfc_main=i,exports._sfc_main$1=l;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, withCtx, unref, createVNode, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
2
- import { f as formatAmount } from "./formatting.es-D-oVnc8H.mjs";
3
- import { _ as _sfc_main$4, a as _sfc_main$5 } from "./Button.vue.es-BrWHdiEA.mjs";
4
- import { u as useIntl, _ as _sfc_main$3 } from "./customElements-DdFA__me.mjs";
5
- import { _ as _sfc_main$2 } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-C8nvN-6f.mjs";
2
+ import { f as formatAmount } from "./formatting.es-eYgXv_AK.mjs";
3
+ import { _ as _sfc_main$4, a as _sfc_main$5 } from "./Button.vue.es-Cm9pLU9i.mjs";
4
+ import { u as useIntl, _ as _sfc_main$3 } from "./customElements-B-89a5oH.mjs";
5
+ import { _ as _sfc_main$2 } from "./PaymentFeedbackCard.vue_vue_type_script_setup_true_lang-CsH47WSM.mjs";
6
6
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7
7
  __name: "PaymentCompletedCard",
8
8
  props: {
@@ -42,7 +42,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42
42
  })) : createCommentVNode("", true),
43
43
  createVNode(unref(_sfc_main$3), {
44
44
  variant: "body-xs",
45
- shade: "lighter"
45
+ color: "subtle"
46
46
  }, {
47
47
  default: withCtx(() => [
48
48
  createTextVNode(toDisplayString(unref($t)({
@@ -118,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  createElementVNode("div", _hoisted_1, [
119
119
  createVNode(unref(_sfc_main$3), {
120
120
  variant: "body-xs",
121
- shade: "lighter",
121
+ color: "subtle",
122
122
  class: "mt-3"
123
123
  }, {
124
124
  default: withCtx(() => [
@@ -129,8 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
129
129
  errorConfig.value.isReloadButtonVisible ? (openBlock(), createBlock(unref(_sfc_main$5), {
130
130
  key: 0,
131
131
  type: "button",
132
- color: "gray",
133
- variant: "outline",
132
+ intent: "secondary",
134
133
  onClick: reload
135
134
  }, {
136
135
  default: withCtx(() => [
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, renderSlot, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$2 } from "./Button.vue.es-BrWHdiEA.mjs";
3
- import { _ as _sfc_main$1 } from "./Section.vue.es-MEFUWCxU.mjs";
4
- import { _ as _sfc_main$3 } from "./customElements-DdFA__me.mjs";
2
+ import { _ as _sfc_main$2 } from "./Button.vue.es-Cm9pLU9i.mjs";
3
+ import { _ as _sfc_main$1 } from "./Section.vue.es-DX_9ueCG.mjs";
4
+ import { _ as _sfc_main$3 } from "./customElements-B-89a5oH.mjs";
5
5
  const _hoisted_1 = { class: "flex flex-col items-center py-10" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "PaymentFeedbackCard",
@@ -1 +1 @@
1
- const e=require("vue"),t=require("./Button.vue.es-aLcIdATK.js"),s=require("./Section.vue.es-tLYXp-tF.js"),a=require("./customElements-BTJzBHMy.js"),r={class:"flex flex-col items-center py-10"},c=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup:c=>(n,l)=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main),null,{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(t._sfc_main),{icon:"success"===c.status?"check_circle":"error",class:e.normalizeClass({"text-green-400":"success"===c.status,"text-red-600":"error"===c.status}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(a._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.title),1)]),_:1}),n.$slots.default?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))});exports._sfc_main=c;
1
+ const e=require("vue"),t=require("./Button.vue.es-O8mNivLL.js"),s=require("./Section.vue.es-CAJvEDn6.js"),a=require("./customElements-DD7bpqkx.js"),r={class:"flex flex-col items-center py-10"},c=e.defineComponent({__name:"PaymentFeedbackCard",props:{status:{default:"success",type:String},title:{type:String}},setup:c=>(n,l)=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main),null,{default:e.withCtx(()=>[e.createElementVNode("div",r,[e.createVNode(e.unref(t._sfc_main),{icon:"success"===c.status?"check_circle":"error",class:e.normalizeClass({"text-green-400":"success"===c.status,"text-red-600":"error"===c.status}),size:"lg"},null,8,["icon","class"]),e.createVNode(e.unref(a._sfc_main),{variant:"heading-3",tag:"span",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.title),1)]),_:1}),n.$slots.default?(e.openBlock(),e.createBlock(e.unref(a._sfc_main),{key:0,tag:"div",variant:"body-sm"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3})):e.createCommentVNode("",!0)])]),_:3}))});exports._sfc_main=c;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Dk52bjJd.mjs";
1
+ import { _ as _sfc_main } from "./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-Uj1aK-dp.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-BdfWchcQ.js");exports.default=e._sfc_main;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentHistoryBlock.vue_vue_type_script_setup_true_lang-DZwnDzha.js");exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./PaymentMethod.vue.es-CdskNJ3Z.js"),a=require("./formatting.es-DBtYnvI5.js"),n=require("./Chip.vue.es-DmCjC1hi.js"),s=require("./Section.vue.es-CAJvEDn6.js"),i=require("./customElements-DD7bpqkx.js"),r={class:"sv-payment-history"},o={class:"sv-payment-history__items flex flex-col-reverse gap-1"},m={class:"sv-payment-history__item-header mb-2 flex items-center justify-between"},c=e.defineComponent({__name:"PaymentHistoryBlock",props:{paymentAttempts:{type:Array},customer:{type:Object}},setup(c){const{$t:l,formatDate:d}=i.useIntl(),p={AUTHORIZED:"success",CANCELLED:"danger",ERROR:"danger",PENDING:"warning",PENDING_REFUND:"warning",REFUNDED:"warning",CHARGED_BACK:"warning",REFUSED:"danger"};return(y,_)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(i._sfc_main),{tag:"h2",variant:"heading-3",class:"sv-payment-history__title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Payment history",description:"Title for the payment history block on the invoice details page",id:"sdk.invoice_details.payment_history.title"})),1)]),_:1}),e.createElementVNode("div",o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.paymentAttempts,r=>(e.openBlock(),e.createBlock(e.unref(s._sfc_main),{key:r.id,class:"sv-payment-history__item mt-1 md:mt-2"},{default:e.withCtx(()=>[e.createElementVNode("div",m,[e.createVNode(e.unref(i._sfc_main),{variant:"caps-heading",class:"sv-payment-history__item-title"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)({defaultMessage:"Payment attempt",description:"Title for the payment attempt block",id:"sdk.invoice_details.payment_history.payment_attempt"})),1)]),_:1}),e.createVNode(e.unref(n._sfc_main),{class:"sv-payment-history__item-status",intent:p[r.result]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a.formatEnum)(r.result)),1)]),_:2},1032,["intent"])]),r.payment_method_details?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,class:"sv-payment-history__payment-method","payment-method":r.payment_method_details},{description:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)({date:r.created_at,format:"dateTime",offsetType:"offsetted",timezone:c.customer.timezone})),1)]),_:2},1032,["payment-method"])):e.createCommentVNode("",!0)]),_:2},1024))),128))])]))}});exports._sfc_main=c;
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$4 } from "./PaymentMethod.vue.es-CH__kPw4.mjs";
3
- import { a as formatEnum } from "./formatting.es-D-oVnc8H.mjs";
4
- import { _ as _sfc_main$3 } from "./Chip.vue.es-DPGTweAr.mjs";
5
- import { _ as _sfc_main$2 } from "./Section.vue.es-MEFUWCxU.mjs";
6
- import { u as useIntl, _ as _sfc_main$1 } from "./customElements-DdFA__me.mjs";
2
+ import { _ as _sfc_main$4 } from "./PaymentMethod.vue.es-rv-pu1CC.mjs";
3
+ import { a as formatEnum } from "./formatting.es-eYgXv_AK.mjs";
4
+ import { _ as _sfc_main$3 } from "./Chip.vue.es-BBmn-qJp.mjs";
5
+ import { _ as _sfc_main$2 } from "./Section.vue.es-DX_9ueCG.mjs";
6
+ import { u as useIntl, _ as _sfc_main$1 } from "./customElements-B-89a5oH.mjs";
7
7
  const _hoisted_1 = { class: "sv-payment-history" };
8
8
  const _hoisted_2 = { class: "sv-payment-history__items flex flex-col-reverse gap-1" };
9
9
  const _hoisted_3 = { class: "sv-payment-history__item-header mb-2 flex items-center justify-between" };
@@ -15,15 +15,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  },
16
16
  setup(__props) {
17
17
  const { $t, formatDate } = useIntl();
18
- const colorMapping = {
19
- AUTHORIZED: "green",
20
- CANCELLED: "red",
21
- ERROR: "red",
22
- PENDING: "orange",
23
- PENDING_REFUND: "orange",
24
- REFUNDED: "orange",
25
- CHARGED_BACK: "orange",
26
- REFUSED: "red"
18
+ const intentMapping = {
19
+ AUTHORIZED: "success",
20
+ CANCELLED: "danger",
21
+ ERROR: "danger",
22
+ PENDING: "warning",
23
+ PENDING_REFUND: "warning",
24
+ REFUNDED: "warning",
25
+ CHARGED_BACK: "warning",
26
+ REFUSED: "danger"
27
27
  };
28
28
  return (_ctx, _cache) => {
29
29
  return openBlock(), createElementBlock("div", _hoisted_1, [
@@ -64,13 +64,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  }),
65
65
  createVNode(unref(_sfc_main$3), {
66
66
  class: "sv-payment-history__item-status",
67
- color: colorMapping[paymentAttempt.result]
67
+ intent: intentMapping[paymentAttempt.result]
68
68
  }, {
69
69
  default: withCtx(() => [
70
70
  createTextVNode(toDisplayString(unref(formatEnum)(paymentAttempt.result)), 1)
71
71
  ]),
72
72
  _: 2
73
- }, 1032, ["color"])
73
+ }, 1032, ["intent"])
74
74
  ]),
75
75
  paymentAttempt.payment_method_details ? (openBlock(), createBlock(unref(_sfc_main$4), {
76
76
  key: 0,
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-DJHwpswk.mjs";
1
+ import { _ as _sfc_main } from "./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-CRUs7sP4.mjs";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-D8fkE1yG.js");exports.default=e._sfc_main;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PaymentIntegrationForm.vue_vue_type_script_setup_true_lang-kKkzRi6w.js");exports.default=e._sfc_main;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, defineAsyncComponent, ref, computed, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, createCommentVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
- import { _ as _sfc_main$1 } from "./FormMessage.vue.es-DFQXxiSC.mjs";
3
- import { u as useIntl } from "./customElements-DdFA__me.mjs";
2
+ import { _ as _sfc_main$1 } from "./FormMessage.vue.es-C3oxwq_8.mjs";
3
+ import { u as useIntl } from "./customElements-B-89a5oH.mjs";
4
+ import { g as getAdyenDropInPaymentMethods } from "./adyen-BXi_D9TQ.mjs";
4
5
  const isAdyenPaymentIntegration = (paymentMethodOption) => {
5
6
  var _a;
6
7
  return ((_a = paymentMethodOption.integration.payment_gateway) == null ? void 0 : _a.variant) === "ADYEN";
@@ -16,6 +17,19 @@ const isSelectedIntegration = ({
16
17
  var _a, _b;
17
18
  return selectedIntegration === ((_b = (_a = paymentMethodOption.integration) == null ? void 0 : _a.payment_gateway) == null ? void 0 : _b.variant);
18
19
  };
20
+ const isRenderablePaymentIntegration = (paymentMethodOption, { excludeExpressPaymentMethods = false } = {}) => {
21
+ var _a;
22
+ if (isAdyenPaymentIntegration(paymentMethodOption)) {
23
+ return getAdyenDropInPaymentMethods(paymentMethodOption, { excludeExpressPaymentMethods }).length > 0;
24
+ }
25
+ if (isStripePaymentIntegration(paymentMethodOption)) {
26
+ return !!((_a = paymentMethodOption.integration.payment_gateway.stripe) == null ? void 0 : _a.public_key);
27
+ }
28
+ return false;
29
+ };
30
+ const hasRenderablePaymentIntegration = (paymentMethodOptions, options = {}) => paymentMethodOptions.some(
31
+ (paymentMethodOption) => isRenderablePaymentIntegration(paymentMethodOption, options)
32
+ );
19
33
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
34
  __name: "PaymentIntegrationForm",
21
35
  props: {
@@ -30,17 +44,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
44
  email: { type: String },
31
45
  name: { type: String },
32
46
  validateOnSubmit: { type: Function },
33
- forceStorePaymentMethod: { type: Boolean }
47
+ forceStorePaymentMethod: { type: Boolean },
48
+ storePaymentMethod: { type: Boolean, default: void 0 }
34
49
  },
35
50
  emits: ["select", "payment-failed", "payment-success", "ready"],
36
51
  setup(__props, { expose: __expose, emit: __emit }) {
37
52
  const PaymentIntegrationFormStripe = defineAsyncComponent(
38
- () => import("./PaymentIntegrationFormStripe-JZw2m1kJ.mjs").then(
53
+ () => import("./PaymentIntegrationFormStripe-BjMdJmDC.mjs").then(
39
54
  (m) => m.default
40
55
  )
41
56
  );
42
57
  const PaymentIntegrationFormAdyen = defineAsyncComponent(
43
- () => import("./PaymentIntegrationFormAdyen-CuRwe9_9.mjs").then(
58
+ () => import("./PaymentIntegrationFormAdyen-C885o8IE.mjs").then(
44
59
  (m) => m.default
45
60
  )
46
61
  );
@@ -99,11 +114,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
114
  selected: unref(isSelectedIntegration)({ selectedIntegration: selectedIntegration.value, paymentMethodOption }),
100
115
  "validate-on-submit": __props.validateOnSubmit,
101
116
  "force-store-payment-method": __props.forceStorePaymentMethod,
117
+ "store-payment-method": __props.storePaymentMethod,
102
118
  onSelect: handleSelect,
103
119
  onPaymentFailed: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("payment-failed", $event)),
104
120
  onPaymentSuccess: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("payment-success")),
105
121
  onReady: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("ready"))
106
- }, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "validate-on-submit", "force-store-payment-method"])) : unref(isStripePaymentIntegration)(paymentMethodOption) ? (openBlock(), createBlock(unref(PaymentIntegrationFormStripe), {
122
+ }, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "validate-on-submit", "force-store-payment-method", "store-payment-method"])) : unref(isStripePaymentIntegration)(paymentMethodOption) ? (openBlock(), createBlock(unref(PaymentIntegrationFormStripe), {
107
123
  key: 1,
108
124
  ref_for: true,
109
125
  ref: setIntegrationRef(paymentMethodOption),
@@ -119,11 +135,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
135
  name: __props.name,
120
136
  "validate-on-submit": __props.validateOnSubmit,
121
137
  "force-store-payment-method": __props.forceStorePaymentMethod,
138
+ "store-payment-method": __props.storePaymentMethod,
122
139
  onSelect: handleSelect,
123
140
  onPaymentFailed: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("payment-failed", $event)),
124
141
  onPaymentSuccess: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("payment-success")),
125
142
  onReady: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("ready"))
126
- }, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "email", "name", "validate-on-submit", "force-store-payment-method"])) : createCommentVNode("", true)
143
+ }, null, 8, ["context", "payment-method-option-response-entry", "country-code", "customer-id", "variant", "amount", "invoice-id", "selected", "email", "name", "validate-on-submit", "force-store-payment-method", "store-payment-method"])) : createCommentVNode("", true)
127
144
  ], 64);
128
145
  }), 128)),
129
146
  showIntegrationError.value ? (openBlock(), createBlock(unref(_sfc_main$1), {
@@ -145,5 +162,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
145
162
  }
146
163
  });
147
164
  export {
148
- _sfc_main as _
165
+ _sfc_main as _,
166
+ hasRenderablePaymentIntegration as h
149
167
  };
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./FormMessage.vue.es-Bd4_NG9H.js"),n=require("./customElements-DD7bpqkx.js"),o=require("./adyen-VS2sDW0m.js"),a=e=>{var t;return"ADYEN"===(null==(t=e.integration.payment_gateway)?void 0:t.variant)},r=e=>{var t;return"STRIPE"===(null==(t=e.integration.payment_gateway)?void 0:t.variant)},i=({selectedIntegration:e,paymentMethodOption:t})=>{var n,o;return e===(null==(o=null==(n=t.integration)?void 0:n.payment_gateway)?void 0:o.variant)},m=e.defineComponent({__name:"PaymentIntegrationForm",props:{customerId:{type:String},variant:{type:String},context:{type:Object},paymentMethodOptions:{type:Array},countryCode:{type:String},invoiceId:{type:String},amount:{type:Object},selectedOption:{type:String},email:{type:String},name:{type:String},validateOnSubmit:{type:Function},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0}},emits:["select","payment-failed","payment-success","ready"],setup(o,{expose:m,emit:d}){const s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormStripe-DWff6wzK.js")).then(e=>e.default)),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PaymentIntegrationFormAdyen-Co19AgvG.js")).then(e=>e.default)),y=o,c=d;m({submit:function(){var e,t;v.value||(f.value=!0,null==(e=y.validateOnSubmit)||e.call(y));null==(t=h.value.get(v.value))||t.submit()}});const{$t:u}=n.useIntl(),p=e.ref(),v=e.computed(()=>{var e,t;return p.value??(null==(t=null==(e=y.paymentMethodOptions[0])?void 0:e.integration.payment_gateway)?void 0:t.variant)}),h=e.ref(new Map),f=e.ref(!1),g=({paymentGatewayVariant:e,paymentMethodType:t})=>{f.value=!1,p.value=e,c("select",{paymentGatewayVariant:e,paymentMethodType:t})},S=e=>t=>{var n;return h.value.set(null==(n=e.integration.payment_gateway)?void 0:n.variant,t)};return(n,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paymentMethodOptions,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.integration.id},[e.unref(a)(t)?(e.openBlock(),e.createBlock(e.unref(l),{key:0,ref_for:!0,ref:S(t),context:o.context,"payment-method-option-response-entry":t,"country-code":o.countryCode,"customer-id":o.customerId,variant:o.variant,amount:o.amount,"invoice-id":o.invoiceId,selected:e.unref(i)({selectedIntegration:v.value,paymentMethodOption:t}),"validate-on-submit":o.validateOnSubmit,"force-store-payment-method":o.forceStorePaymentMethod,"store-payment-method":o.storePaymentMethod,onSelect:g,onPaymentFailed:m[0]||(m[0]=e=>n.$emit("payment-failed",e)),onPaymentSuccess:m[1]||(m[1]=e=>n.$emit("payment-success")),onReady:m[2]||(m[2]=e=>n.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","validate-on-submit","force-store-payment-method","store-payment-method"])):e.unref(r)(t)?(e.openBlock(),e.createBlock(e.unref(s),{key:1,ref_for:!0,ref:S(t),context:o.context,"payment-method-option-response-entry":t,"country-code":o.countryCode,"customer-id":o.customerId,variant:o.variant,amount:o.amount,"invoice-id":o.invoiceId,selected:e.unref(i)({selectedIntegration:v.value,paymentMethodOption:t}),email:o.email,name:o.name,"validate-on-submit":o.validateOnSubmit,"force-store-payment-method":o.forceStorePaymentMethod,"store-payment-method":o.storePaymentMethod,onSelect:g,onPaymentFailed:m[3]||(m[3]=e=>n.$emit("payment-failed",e)),onPaymentSuccess:m[4]||(m[4]=e=>n.$emit("payment-success")),onReady:m[5]||(m[5]=e=>n.$emit("ready"))},null,8,["context","payment-method-option-response-entry","country-code","customer-id","variant","amount","invoice-id","selected","email","name","validate-on-submit","force-store-payment-method","store-payment-method"])):e.createCommentVNode("",!0)],64))),128)),f.value?(e.openBlock(),e.createBlock(e.unref(t._sfc_main),{key:0,variant:"error",class:"mt-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)({defaultMessage:"Select a payment method",id:"payment_integration_form.select_payment_method_error",description:"Error shown when no payment method is selected"})),1)]),_:1})):e.createCommentVNode("",!0)],64))}});exports._sfc_main=m,exports.hasRenderablePaymentIntegration=(e,t={})=>e.some(e=>((e,{excludeExpressPaymentMethods:t=!1}={})=>{var n;return a(e)?o.getAdyenDropInPaymentMethods(e,{excludeExpressPaymentMethods:t}).length>0:!!r(e)&&!!(null==(n=e.integration.payment_gateway.stripe)?void 0:n.public_key)})(e,t));
@@ -1,10 +1,12 @@
1
- import { inject, defineComponent, ref, onMounted, onBeforeUnmount, watch, openBlock, createElementBlock, Fragment, createBlock, createCommentVNode, createElementVNode } from "vue";
1
+ import { defineComponent, ref, computed, onMounted, onBeforeUnmount, watch, openBlock, createElementBlock, Fragment, createBlock, createCommentVNode, nextTick } from "vue";
2
2
  import { a as isEqual } from "./useService-W3Kxems4.mjs";
3
- import { E as EXPERIMENTAL_FEATURE_INJECTION_KEY, b as useLogger, u as useIntl } from "./customElements-DdFA__me.mjs";
4
- import { _ as _sfc_main$1, a as _sfc_main$2 } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs";
5
- import { c as createPaymentsService } from "./payments-B6Nfd6Al.mjs";
6
- import { g as getQueryParam, t as toMinorUnitAmount, m as mapAdyenPaymentMethods, a as getAdyenEnvironmentFromPaymentMethodOptionsResponse, b as getAdyenClientKeyFromPaymentMethodOptionsResponse, R as REDIRECT_RESULT_QUERY_STRING, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, c as transformObjectToAdyenObject, d as createReturnUrl } from "./adyen-Ba-mF3Jy.mjs";
7
- import { c as createPaymentMethodsService } from "./paymentMethods-BsrkEbKT.mjs";
3
+ import { b as useLogger, u as useIntl } from "./customElements-B-89a5oH.mjs";
4
+ import { _ as _sfc_main$1, a as _sfc_main$2 } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs";
5
+ import { c as createPaymentsService } from "./payments-Cvqdrprv.mjs";
6
+ import { g as getQueryParam } from "./url-CvNDq4wp.mjs";
7
+ import { c as createPaymentMethodsService } from "./paymentMethods-DIV78w0O.mjs";
8
+ import { g as getAdyenDropInPaymentMethods, t as toMinorUnitAmount, a as getAdyenEnvironmentFromPaymentMethodOptionsResponse, b as getAdyenClientKeyFromPaymentMethodOptionsResponse, R as REDIRECT_RESULT_QUERY_STRING, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING, c as transformObjectToAdyenObject, d as createReturnUrl } from "./adyen-BXi_D9TQ.mjs";
9
+ import { u as useExperimentalFeature } from "./useExperimentalFeature-DvxOrFPU.mjs";
8
10
  const getOverriddenTranslations = (variant) => {
9
11
  let result = {};
10
12
  if (variant === "TOKENIZE") {
@@ -157,19 +159,6 @@ const DROP_IN_PAYMENT_METHOD_COMPONENTS = [
157
159
  "PayByBankUS",
158
160
  "Redirect"
159
161
  ];
160
- const useExperimentalFeature = () => {
161
- const experimentalFeature = inject(EXPERIMENTAL_FEATURE_INJECTION_KEY);
162
- return experimentalFeature;
163
- };
164
- const EXPRESS_PAYMENT_METHOD_TYPES = ["applepay"];
165
- function filterOutExpressPaymentMethods(paymentMethods) {
166
- return paymentMethods.filter(
167
- (method) => !EXPRESS_PAYMENT_METHOD_TYPES.some((type) => {
168
- var _a;
169
- return type === ((_a = method.type) == null ? void 0 : _a.toLowerCase());
170
- })
171
- );
172
- }
173
162
  const PAYMENT_GATEWAY_VARIANT_ADYEN = "ADYEN";
174
163
  const _sfc_main = /* @__PURE__ */ defineComponent({
175
164
  __name: "PaymentIntegrationFormAdyen",
@@ -183,7 +172,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
183
172
  selected: { type: Boolean },
184
173
  amount: { type: Object },
185
174
  validateOnSubmit: { type: Function, default: () => Promise.resolve(true) },
186
- forceStorePaymentMethod: { type: Boolean }
175
+ forceStorePaymentMethod: { type: Boolean },
176
+ storePaymentMethod: { type: Boolean, default: void 0 }
187
177
  },
188
178
  emits: ["select", "payment-failed", "payment-success", "ready"],
189
179
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -200,6 +190,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
200
190
  const { authorizePayment, getPaymentDetails } = createPaymentsService();
201
191
  const { tokenizePaymentMethod } = createPaymentMethodsService();
202
192
  const experimentalFeatures = useExperimentalFeature();
193
+ const dropInPaymentMethods = computed(
194
+ () => {
195
+ var _a;
196
+ return getAdyenDropInPaymentMethods(props.paymentMethodOptionResponseEntry, {
197
+ excludeExpressPaymentMethods: !!((_a = experimentalFeatures == null ? void 0 : experimentalFeatures.value) == null ? void 0 : _a["express-checkout"])
198
+ });
199
+ }
200
+ );
201
+ const canMountDropIn = computed(() => dropInPaymentMethods.value.length > 0);
203
202
  function submit() {
204
203
  try {
205
204
  dropInInstance == null ? void 0 : dropInInstance.submit();
@@ -208,11 +207,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
208
207
  }
209
208
  }
210
209
  async function getConfiguration() {
211
- var _a;
212
210
  const adyenAmount = toMinorUnitAmount(props.amount);
213
- const paymentMethods = ((_a = experimentalFeatures == null ? void 0 : experimentalFeatures.value) == null ? void 0 : _a["express-checkout"]) ? filterOutExpressPaymentMethods(
214
- mapAdyenPaymentMethods(props.paymentMethodOptionResponseEntry)
215
- ) : mapAdyenPaymentMethods(props.paymentMethodOptionResponseEntry);
211
+ const paymentMethods = dropInPaymentMethods.value;
216
212
  return {
217
213
  checkoutConfig: {
218
214
  amount: adyenAmount,
@@ -241,7 +237,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
241
237
  card: {
242
238
  hasHolderName: true,
243
239
  holderNameRequired: true,
244
- enableStoreDetails: !props.forceStorePaymentMethod && props.variant === "AUTHORIZE"
240
+ enableStoreDetails: !props.forceStorePaymentMethod && props.storePaymentMethod === void 0 && props.variant === "AUTHORIZE"
245
241
  },
246
242
  paypal: {
247
243
  intent: adyenAmount.value > 0 ? "authorize" : "tokenize",
@@ -258,9 +254,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
258
254
  };
259
255
  }
260
256
  async function mountDropIn() {
257
+ await unmountDropIn();
258
+ if (!canMountDropIn.value) {
259
+ const { payment_acceptor: paymentAcceptor, integration } = props.paymentMethodOptionResponseEntry;
260
+ logger.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE", "No Adyen payment methods to offer", {
261
+ fingerprint: ["PAYMENT_INTEGRATION_NOT_RENDERABLE", paymentAcceptor.id],
262
+ paymentAcceptorId: paymentAcceptor.id,
263
+ integrationId: integration.id,
264
+ ...props.invoiceId ? { invoiceId: props.invoiceId } : {}
265
+ });
266
+ return;
267
+ }
268
+ await nextTick();
261
269
  if (!dropInContainerRef.value) return;
262
270
  try {
263
- await unmountDropIn();
264
271
  const [adyenModule, { default: adyenCss }] = await Promise.all([
265
272
  import("./index-DyvRdSR7.mjs"),
266
273
  import("./adyen-51SvcyqV.mjs")
@@ -453,7 +460,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
453
460
  payment_gateway_variant: PAYMENT_GATEWAY_VARIANT_ADYEN,
454
461
  adyen: {
455
462
  ...adyen,
456
- store_payment_method: props.forceStorePaymentMethod || state.data.storePaymentMethod
463
+ store_payment_method: props.storePaymentMethod ?? (props.forceStorePaymentMethod || state.data.storePaymentMethod)
457
464
  },
458
465
  amount: props.amount,
459
466
  ...props.context ? { context: props.context } : {},
@@ -678,10 +685,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
678
685
  key: 1,
679
686
  error: integrationError.value
680
687
  }, null, 8, ["error"])) : createCommentVNode("", true),
681
- createElementVNode("div", {
688
+ canMountDropIn.value ? (openBlock(), createElementBlock("div", {
689
+ key: 2,
682
690
  ref_key: "dropInContainerRef",
683
691
  ref: dropInContainerRef
684
- }, null, 512)
692
+ }, null, 512)) : createCommentVNode("", true)
685
693
  ], 64);
686
694
  };
687
695
  }
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./useService-D73FNBjT.js"),n=require("./customElements-DD7bpqkx.js"),a=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js"),o=require("./payments--lkjiwCt.js"),r=require("./url-CjULBkjW.js"),i=require("./paymentMethods-CZ3ydybI.js"),d=require("./adyen-VS2sDW0m.js"),c=require("./useExperimentalFeature-0yFoaEzV.js"),s=e=>{let t={};return"TOKENIZE"===e&&(t={"en-US":{payButton:"Add payment method",confirmPurchase:"Add payment method"},"fr-FR":{payButton:"Ajouter un moyen de paiement",confirmPurchase:"Ajouter un moyen de paiement"},"de-DE":{payButton:"Zahlungsmethode hinzufügen",confirmPurchase:"Zahlungsmethode hinzufügen"},"it-IT":{payButton:"Aggiungi metodo di pagamento",confirmPurchase:"Aggiungi metodo di pagamento"},"es-ES":{payButton:"Añadir método de pago",confirmPurchase:"Añadir método de pago"},"nl-NL":{payButton:"Betaalmethode toevoegen",confirmPurchase:"Betaalmethode toevoegen"},"pt-BR":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pt-PT":{payButton:"Adicionar método de pagamento",confirmPurchase:"Adicionar método de pagamento"},"pl-PL":{payButton:"Dodaj metodę płatności",confirmPurchase:"Dodaj metodę płatności"},"ru-RU":{payButton:"Добавить способ оплаты",confirmPurchase:"Добавить способ оплаты"},"sv-SE":{payButton:"Lägg till betalningsmetod",confirmPurchase:"Lägg till betalningsmetod"},"da-DK":{payButton:"Tilføj betalingsmetode",confirmPurchase:"Tilføj betalingsmetode"},"fi-FI":{payButton:"Lisää maksutapa",confirmPurchase:"Lisää maksutapa"},"no-NO":{payButton:"Legg til betalingsmetode",confirmPurchase:"Legg til betalingsmetode"},"cs-CZ":{payButton:"Přidat platební metodu",confirmPurchase:"Přidat platební metodu"},"hu-HU":{payButton:"Fizetési mód hozzáadása",confirmPurchase:"Fizetési mód hozzáadása"},"ro-RO":{payButton:"Adăugați metodă de plată",confirmPurchase:"Adăugați metodă de plată"},"ja-JP":{payButton:"支払い方法を追加",confirmPurchase:"支払い方法を追加"},"ko-KR":{payButton:"결제 수단 추가",confirmPurchase:"결제 수단 추가"},"zh-CN":{payButton:"添加支付方式",confirmPurchase:"添加支付方式"},"zh-TW":{payButton:"新增付款方式",confirmPurchase:"新增付款方式"},ar:{payButton:"إضافة وسيلة دفع",confirmPurchase:"إضافة وسيلة دفع"},"hr-HR":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"el-GR":{payButton:"Προσθήκη μεθόδου πληρωμής",confirmPurchase:"Προσθήκη μεθόδου πληρωμής"},"sk-SK":{payButton:"Pridať spôsob platby",confirmPurchase:"Pridať spôsob platby"},"sl-SI":{payButton:"Dodajte način plačanja",confirmPurchase:"Dodajte način plačanja"},"bg-BG":{payButton:"Добавяне на начин на плащане",confirmPurchase:"Добавяне на начин на плащане"},"ca-ES":{payButton:"Afegir mètode de pagament",confirmPurchase:"Afegir mètode de pagament"},"et-EE":{payButton:"Lisa makseviis",confirmPurchase:"Lisa makseviis"},"lv-LV":{payButton:"Pievienot maksājuma veidu",confirmPurchase:"Pievienot maksājuma veidu"},"lt-LT":{payButton:"Pridėti mokėjimo metodą",confirmPurchase:"Pridėti mokėjimo metodą"}}),t},p=["Card","Bancontact","Ach","AmazonPay","ApplePay","BcmcMobile","BacsDirectDebit","CashAppPay","EPS","GooglePay","Klarna","PayByBank","PayPal","SepaDirectDebit","Trustly","Twint","PayByBankUS","Redirect"],u="ADYEN",m=e.defineComponent({__name:"PaymentIntegrationFormAdyen",props:{context:{type:Object},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean,default:void 0}},emits:["select","payment-failed","payment-success","ready"],setup(m,{expose:y,emit:l}){let h=null,_=null;const f=m,g=l;y({submit:function(){try{null==h||h.submit()}catch(e){A.error("ADYEN_SUBMIT_FAILED","Failed to submit Adyen drop-in",{},e)}}});const E=e.ref(),v=e.ref(!1),P=e.ref(),A=n.useLogger(),{locale:R}=n.useIntl(),{authorizePayment:b,getPaymentDetails:I}=o.createPaymentsService(),{tokenizePaymentMethod:k}=i.createPaymentMethodsService(),T=c.useExperimentalFeature(),O=e.computed(()=>{var e;return d.getAdyenDropInPaymentMethods(f.paymentMethodOptionResponseEntry,{excludeExpressPaymentMethods:!!(null==(e=null==T?void 0:T.value)?void 0:e["express-checkout"])})}),N=e.computed(()=>O.value.length>0);async function B(){if(await M(),!N.value){const{payment_acceptor:e,integration:t}=f.paymentMethodOptionResponseEntry;return void A.warn("PAYMENT_INTEGRATION_NOT_RENDERABLE","No Adyen payment methods to offer",{fingerprint:["PAYMENT_INTEGRATION_NOT_RENDERABLE",e.id],paymentAcceptorId:e.id,integrationId:t.id,...f.invoiceId?{invoiceId:f.invoiceId}:{}})}if(await e.nextTick(),E.value)try{const[e,{default:t}]=await Promise.all([Promise.resolve().then(()=>require("./index-DIFK3mcJ.js")),Promise.resolve().then(()=>require("./adyen-DZsyEXkw.js"))]),{AdyenCheckout:n,Dropin:a}=e,{checkoutConfig:o,dropInConfig:r}=await async function(){const e=d.toMinorUnitAmount(f.amount),t=O.value;return{checkoutConfig:{amount:e,clientKey:d.getAdyenClientKeyFromPaymentMethodOptionsResponse(f.paymentMethodOptionResponseEntry),environment:d.getAdyenEnvironmentFromPaymentMethodOptionsResponse(f.paymentMethodOptionResponseEntry,A),locale:R,translations:s(f.variant),countryCode:f.countryCode,analytics:{enabled:!1},paymentMethodsResponse:{paymentMethods:t},onSubmit:w,onAdditionalDetails:D,onPaymentCompleted:j,onPaymentFailed:C,onError:S,showPayButton:!1},dropInConfig:{disableFinalAnimation:!0,paymentMethodsConfiguration:{card:{hasHolderName:!0,holderNameRequired:!0,enableStoreDetails:!f.forceStorePaymentMethod&&void 0===f.storePaymentMethod&&"AUTHORIZE"===f.variant},paypal:{intent:e.value>0?"authorize":"tokenize",showPayButton:!0}},openFirstPaymentMethod:f.selected,onSelect:({props:{type:e}})=>{e&&g("select",{paymentMethodType:e,paymentGatewayVariant:"ADYEN"})},onReady:()=>g("ready")}}}();_=await n(o),h=new a(_,{...r,paymentMethodComponents:p.map(t=>e[t])}).mount(E.value),function(e){var t;const n=null==(t=E.value)?void 0:t.getRootNode();if(n instanceof ShadowRoot){const t=document.createElement("style");t.textContent=e,n.appendChild(t);const a=document.createElement("style");a.textContent="\n :host {\n --adyen-sdk-color-background-secondary: transparent;\n --adyen-sdk-color-background-primary: rgb(243 244 246 / 0.5);\n --adyen-sdk-color-outline-secondary: #e5e7eb;\n --adyen-sdk-color-outline-primary: transparent;\n --adyen-sdk-color-background-always-dark: var(--color-primary-500);\n --adyen-sdk-color-background-inverse-primary-hover: var(--color-primary-600);\n }\n\n .adyen-checkout__payment-method__image__wrapper {\n width: 32px;\n height: 32px;\n }\n\n .adyen-checkout__payment-method__image {\n height: 32px;\n }\n\n .adyen-checkout__input-wrapper,\n .adyen-checkout__input {\n border-color: rgb(229, 231, 235);\n border-radius: var(--adyen-sdk-border-radius-s, 4px);\n }\n\n .adyen-checkout__button,\n .adyen-checkout__payment-method {\n border-radius: var(--adyen-sdk-border-radius-s, 4px);\n }\n\n .adyen-checkout__payment-method {\n border-color: rgb(229, 231, 235);\n box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n transition: box-shadow 0.2s ease-in-out;\n }\n\n .adyen-checkout__payment-method--selected {\n box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);\n }\n\n .adyen-checkout__payment-method:after {\n transform: scale(0%);\n }\n\n .adyen-checkout__paypal__button {\n display: block !important;\n }\n\n .adyen-checkout__payment-methods-list {\n gap: 4px;\n }\n\n .adyen-checkout__dropdown__list {\n background-color: white;\n border-radius: var(--adyen-sdk-border-radius-s, 4px);\n }\n\n .adyen-checkout__payment-method.adyen-checkout__payment-method--selected:after {\n content: '✓';\n width: 20px;\n height: 20px;\n border-radius: 10px;\n background-color: var(--color-primary-600);\n position: absolute;\n top: 14px;\n right: 14px;\n text-align: center;\n line-height: 20px;\n color: white;\n transform: scale(100%);\n font-size: 12px;\n }\n\n .adyen-checkout__payment-method__header {\n padding: 8px 16px !important;\n }\n\n .adyen-checkout__payment-method__brands {\n align-items: center;\n }\n .adyen-checkout__payment-method__brand-number {\n line-height: 1;\n }\n .adyen-checkout__button__text {\n font-size: 14px;\n }\n .adyen-checkout__store-details {\n background: transparent;\n padding: 0;\n }\n .adyen-checkout__checkbox__input + .adyen-checkout__checkbox__label:after {\n border-color: rgb(229, 231, 235);\n }\n ","AUTHORIZE"===f.variant&&(a.textContent+="\n .adyen-checkout__payment-method--cashapp .adyen-checkout-pm-details-wrapper {\n display: none;\n }\n "),n.appendChild(a)}}(t)}catch(t){A.error("PAYMENT_INTEGRATION_INITIALIZATION_FAILED","Failed to mount Adyen web drop-in",{error:t})}}async function M(){h&&(h.unmount(),h=null),E.value&&(E.value.innerHTML="")}function x(e,{paymentMethodType:t,actions:n,logFailure:a}){if("ACTION_REQUIRED"===e.status&&e.action.payment_gateway_variant===u){const o=function(e,t){if("ACTION_REQUIRED"!==e.status)return;const n=e.action;if("ADYEN"!=n.payment_gateway_variant)return;const a=n.adyen;return{paymentMethodType:(null==a?void 0:a.payment_method_type)??t,method:n.method,url:n.url,data:n.data,type:null==a?void 0:a.action_type,paymentData:null==a?void 0:a.payment_data,sdkData:null==a?void 0:a.sdk_data}}(e,t);return o?(h.handleAction(o),void n.resolve({resultCode:e.action.adyen.result_code,action:o})):void a(e)}if("AUTHORIZED"===e.payment.result)return v.value=!0,void n.resolve({resultCode:"Authorised"});a(e),n.resolve({resultCode:"Error"})}function w(...e){const[t,n,a]=e;f.validateOnSubmit().then(e=>{if(!e)return;const n=f.paymentMethodOptionResponseEntry.payment_acceptor.id,o={risk_data:d.transformObjectToAdyenObject(t.data.riskData),payment_method:d.transformObjectToAdyenObject(t.data.paymentMethod),browser_info:d.transformObjectToAdyenObject(t.data.browserInfo)};if("AUTHORIZE"===f.variant){const e=d.createReturnUrl({paymentAcceptorId:f.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});return void b({payment_acceptor_id:n,...f.customerId?{customer_id:f.customerId}:{},payment_gateway_variant:u,adyen:{...o,store_payment_method:f.storePaymentMethod??(f.forceStorePaymentMethod||t.data.storePaymentMethod)},amount:f.amount,...f.context?{context:f.context}:{},return_url:e}).then(e=>x(e,{paymentMethodType:t.data.paymentMethod.type,actions:a,logFailure:e=>A.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${n}`,{error:e})})).catch(e=>{A.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${n}`,{error:e}),a.resolve({resultCode:"Error"})})}if("TOKENIZE"===f.variant){const e=d.createReturnUrl({paymentAcceptorId:f.paymentMethodOptionResponseEntry.payment_acceptor.id,redirectUrl:window.location.href});if(!f.customerId)return void A.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${n}`);k({customer_id:f.customerId,payment_acceptor_id:n,payment_gateway_variant:u,adyen:o,return_url:e}).then(e=>x(e,{paymentMethodType:t.data.paymentMethod.type,actions:a,logFailure:e=>A.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${n}`,{error:e})})).catch(e=>{A.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${n}`,{error:e}),a.resolve({resultCode:"Error"})})}}).catch(e=>{A.error("INTEGRATION_ERROR","Unhandled error in payment submission flow",{},e)})}function D(...e){const[t]=e,n=t.data.details,a=t.data.paymentData;if(f.paymentMethodOptionResponseEntry.payment_acceptor.id)return void L({detailsResult:n?(o=n,Object.fromEntries(Object.entries(o).filter(([,e])=>null!=e))):void 0,paymentDataResult:a,paymentAcceptorId:f.paymentMethodOptionResponseEntry.payment_acceptor.id});var o;const r={code:"UNKNOWN_ERROR",message:"Payment failed",error:e};g("payment-failed",r),P.value=r}function C(...e){const[t]=e,n={code:"UNKNOWN_ERROR",message:"Payment failed",error:t};g("payment-failed",n),P.value=n}function j(...e){const[,t]=e;null==t||t.unmount(),g("payment-success")}function S(...e){const[t,n]=e;if("CANCEL"===t.name)return;const a={code:"UNKNOWN_ERROR",message:"Something went wrong",error:t};A.error("INTEGRATION_ERROR","Something went wrong",{error:t}),P.value=a,null==n||n.unmount()}function L({detailsResult:e,threeDSResult:t,redirectResult:n,paymentDataResult:a,paymentAcceptorId:o}){I({paymentAcceptorId:o,paymentGatewayVariant:u,adyen:{...e?{details:e}:{},...n?{redirect_result:n}:{},...t?{threeds_result:t}:{},...a?{payment_data:a}:{}}}).then(e=>{"FAILURE"!==e.payment_status?"SUCCESS"!==e.payment_status||g("payment-success"):g("payment-failed",{code:"UNKNOWN_ERROR",message:"Failed getting payment details",error:e})}).catch(e=>{A.error("PAYMENT_DETAILS_CALL_FAILED","Failed fetching payment details",{error:e})})}return e.onMounted(()=>{B(),function(){const e=r.getQueryParam(d.REDIRECT_RESULT_QUERY_STRING),t=r.getQueryParam(d.PAYMENT_ACCEPTOR_ID_QUERY_STRING);e&&(t?L({paymentAcceptorId:t,detailsResult:{redirectResult:decodeURI(e)}}):A.error("INVALID_REDIRECT_RESULT","Redirect result is set but payment acceptor id is missing",{context:{redirectResult:e}}))}()}),e.onBeforeUnmount(()=>{M()}),e.watch(()=>f.paymentMethodOptionResponseEntry,(e,n)=>{t.isEqual(e,n)||B()},{deep:!0}),(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createBlock(a._sfc_main,{key:0,variant:m.variant},null,8,["variant"])):P.value?(e.openBlock(),e.createBlock(a._sfc_main$1,{key:1,error:P.value},null,8,["error"])):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"dropInContainerRef",ref:E},null,512)):e.createCommentVNode("",!0)],64))}});exports.default=m;
@@ -1,10 +1,11 @@
1
1
  import { defineComponent, ref, onMounted, onBeforeUnmount, watch, openBlock, createElementBlock, computed, createBlock, unref, createCommentVNode } from "vue";
2
2
  import { a as isEqual } from "./useService-W3Kxems4.mjs";
3
- import { t as toMinorUnitAmount, d as createReturnUrl, g as getQueryParam, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING } from "./adyen-Ba-mF3Jy.mjs";
4
- import { _ as _sfc_main$2, a as _sfc_main$3 } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-D7IX9qqy.mjs";
5
- import { c as createPaymentsService } from "./payments-B6Nfd6Al.mjs";
6
- import { c as createPaymentMethodsService } from "./paymentMethods-BsrkEbKT.mjs";
7
- import { b as useLogger } from "./customElements-DdFA__me.mjs";
3
+ import { t as toMinorUnitAmount, d as createReturnUrl, P as PAYMENT_ACCEPTOR_ID_QUERY_STRING } from "./adyen-BXi_D9TQ.mjs";
4
+ import { _ as _sfc_main$2, a as _sfc_main$3 } from "./PaymentErrorCard.vue_vue_type_script_setup_true_lang-Ch1TFO7x.mjs";
5
+ import { c as createPaymentsService } from "./payments-Cvqdrprv.mjs";
6
+ import { c as createPaymentMethodsService } from "./paymentMethods-DIV78w0O.mjs";
7
+ import { g as getQueryParam } from "./url-CvNDq4wp.mjs";
8
+ import { b as useLogger } from "./customElements-B-89a5oH.mjs";
8
9
  const STRIPE_SCRIPT_URL = "https://js.stripe.com/dahlia/stripe.js";
9
10
  const STRIPE_FRAME_SRCDOC = `<!DOCTYPE html>
10
11
  <html>
@@ -290,7 +291,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
290
291
  amount: { type: Object },
291
292
  validateOnSubmit: { type: Function, default: () => Promise.resolve(true) },
292
293
  context: { type: Object },
293
- forceStorePaymentMethod: { type: Boolean }
294
+ forceStorePaymentMethod: { type: Boolean },
295
+ storePaymentMethod: { type: Boolean }
294
296
  },
295
297
  emits: ["select", "payment-failed", "payment-success", "ready"],
296
298
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./useService-D73FNBjT.js"),n=require("./adyen-VS2sDW0m.js"),r=require("./PaymentErrorCard.vue_vue_type_script_setup_true_lang-BKKXQbge.js"),a=require("./payments--lkjiwCt.js"),o=require("./paymentMethods-CZ3ydybI.js"),i=require("./url-CjULBkjW.js"),s=require("./customElements-DD7bpqkx.js"),c="https://js.stripe.com/dahlia/stripe.js",u=`<!DOCTYPE html>\n<html>\n<head>\n<meta charset="UTF-8">\n<meta name="viewport" content="width=device-width, initial-scale=1">\n<style>\n* { box-sizing: border-box; margin: 0; padding: 0; }\nbody { overflow: hidden; }\n</style>\n</head>\n<body>\n<div id="stripe-root"></div>\n<script src="${c}"><\/script>\n<script>\n(function () {\n let stripe, elements, countryCode, email, name, parentOrigin;\n\n window.addEventListener('message', function (event) {\n if (!event.data || typeof event.data !== 'object') return;\n if (event.source !== window.parent) return;\n\n if (event.data.type === 'stripe:init') {\n parentOrigin = event.origin;\n countryCode = event.data.countryCode;\n email = event.data.email;\n name = event.data.name;\n stripe = Stripe(event.data.publicKey);\n elements = stripe.elements(event.data.options);\n const paymentElement = elements.create('payment', { layout: { type: 'accordion', defaultCollapsed: false }, wallets: event.data.options.wallets, fields: event.data.options.fields });\n\n paymentElement.on('ready', function () {\n parent.postMessage({ type: 'stripe:ready' }, parentOrigin);\n });\n\n paymentElement.on('change', function (e) {\n parent.postMessage({ type: 'stripe:change', paymentMethodType: e.value.type }, parentOrigin);\n });\n\n paymentElement.on('loaderror', function (e) {\n parent.postMessage({\n type: 'stripe:loaderror',\n error: { message: e.error.message, type: e.error.type }\n }, parentOrigin);\n });\n\n paymentElement.mount('#stripe-root');\n\n new ResizeObserver(function () {\n parent.postMessage({\n type: 'stripe:resize',\n height: document.documentElement.scrollHeight\n }, parentOrigin);\n }).observe(document.documentElement);\n }\n\n if (event.data.type === 'stripe:submit') {\n if (!elements || !parentOrigin || event.origin !== parentOrigin) return;\n const submitEmail = 'email' in event.data ? event.data.email : email;\n const submitName = 'name' in event.data ? event.data.name : name;\n elements.submit().then(function (submitResult) {\n if (submitResult.error) {\n parent.postMessage({\n type: 'stripe:submit:error',\n error: {\n message: submitResult.error.message,\n type: submitResult.error.type,\n code: submitResult.error.code\n }\n }, parentOrigin);\n return;\n }\n const billingDetails = {};\n if (countryCode) billingDetails.address = { country: countryCode };\n if (submitEmail) billingDetails.email = submitEmail;\n if (submitName) billingDetails.name = submitName;\n const tokenParams = Object.keys(billingDetails).length\n ? { payment_method_data: { billing_details: billingDetails } }\n : {};\n stripe.createConfirmationToken({ elements: elements, params: tokenParams }).then(function (tokenResult) {\n if (tokenResult.error) {\n parent.postMessage({\n type: 'stripe:submit:error',\n error: {\n message: tokenResult.error.message,\n type: tokenResult.error.type,\n code: tokenResult.error.code\n }\n }, parentOrigin);\n return;\n }\n parent.postMessage({\n type: 'stripe:submit:success',\n confirmationTokenId: tokenResult.confirmationToken.id\n }, parentOrigin);\n });\n });\n }\n });\n})();\n<\/script>\n</body>\n</html>`,p=["src","height"],m=e.defineComponent({__name:"PaymentIntegrationFormStripeFrame",props:{publicKey:{type:String},options:{type:Object},countryCode:{type:String},email:{type:String},name:{type:String}},emits:["ready","change","loaderror","submit-success","submit-error"],setup(n,{expose:r,emit:a}){const o=n,i=a;r({triggerSubmit:function(){var e,t;null==(t=null==(e=s.value)?void 0:e.contentWindow)||t.postMessage({type:"stripe:submit",email:o.email,name:o.name},"*")}});const s=e.ref(),c=e.ref(0),m=e.ref();function l(){var e,t;null==(t=null==(e=s.value)?void 0:e.contentWindow)||t.postMessage({type:"stripe:init",publicKey:o.publicKey,options:o.options,countryCode:o.countryCode,email:o.email,name:o.name},"*")}function d(e){return"object"==typeof e&&null!==e}function y(e){if(!s.value||e.source!==s.value.contentWindow)return;if(!d(e.data))return;const t=e.data,n=t.type;if("string"==typeof n&&n.startsWith("stripe:"))switch(n){case"stripe:ready":i("ready");break;case"stripe:change":i("change","string"==typeof t.paymentMethodType?t.paymentMethodType:"card");break;case"stripe:loaderror":{const e=d(t.error)?t.error:{};i("loaderror",{message:"string"==typeof e.message?e.message:void 0,type:"string"==typeof e.type?e.type:void 0});break}case"stripe:resize":"number"==typeof t.height&&(c.value=t.height);break;case"stripe:submit:success":"string"==typeof t.confirmationTokenId&&i("submit-success",t.confirmationTokenId);break;case"stripe:submit:error":{const e=d(t.error)?t.error:{};i("submit-error",{message:"string"==typeof e.message?e.message:void 0,type:"string"==typeof e.type?e.type:void 0,code:"string"==typeof e.code?e.code:void 0});break}}}return e.onMounted(()=>{const e=new Blob([u],{type:"text/html"});m.value=URL.createObjectURL(e),window.addEventListener("message",y)}),e.onBeforeUnmount(()=>{window.removeEventListener("message",y),m.value&&URL.revokeObjectURL(m.value)}),e.watch(()=>o.options,(e,n)=>{t.isEqual(e,n)||l()},{deep:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"iframeRef",ref:s,src:m.value,height:c.value||void 0,frameborder:"0",style:{width:"100%",display:"block",border:"none"},title:"Payment form",onLoad:l},null,40,p))}}),l={link:"never"},d={variables:{borderRadius:"4px",colorBackground:"rgba(243, 244, 246, 0.5)"},rules:{".TermsText":{fontSize:"14px"},".Input":{backgroundColor:"rgba(243, 244, 246, 0.5)",fontSize:"14px",borderColor:"rgb(229, 231, 235)"}}};const y="STRIPE",f=e.defineComponent({__name:"PaymentIntegrationFormStripe",props:{email:{type:String},name:{type:String},countryCode:{type:String},customerId:{type:String},invoiceId:{type:String},paymentMethodOptionResponseEntry:{type:Object},variant:{type:String},selected:{type:Boolean},amount:{type:Object},validateOnSubmit:{type:Function,default:()=>Promise.resolve(!0)},context:{type:Object},forceStorePaymentMethod:{type:Boolean},storePaymentMethod:{type:Boolean}},emits:["select","payment-failed","payment-success","ready"],setup(t,{expose:u,emit:p}){const f=t,g=p;u({submit:function(){(async function(){var e;if(!(await f.validateOnSubmit()))return;null==(e=b.value)||e.triggerSubmit()})().catch(e=>{h.error("STRIPE_SUBMIT_FAILED","Unexpected error during Stripe submission",{},e)})}});const v=e.ref(!1),_=e.ref(),b=e.ref(),E=e.computed(()=>function({amount:e,email:t,name:r,variant:a}){const o=e.currency.toLowerCase(),i=function(e,t){return{billingDetails:{address:{country:"never"},...e?{email:"never"}:{},...t?{name:"never"}:{}}}}(t,r);return"TOKENIZE"===a?{mode:"setup",currency:o,setup_future_usage:"off_session",wallets:l,fields:i,appearance:d}:{mode:"payment",currency:o,amount:n.toMinorUnitAmount(e).value,setup_future_usage:"off_session",wallets:l,fields:i,appearance:d}}({amount:f.amount,email:f.email,name:f.name,variant:f.variant})),R=e.ref(null),h=s.useLogger(),{authorizePayment:O}=a.createPaymentsService(),{tokenizePaymentMethod:w}=o.createPaymentMethodsService(),S=e.computed(()=>{var e,t;return null==(t=null==(e=f.paymentMethodOptionResponseEntry.integration.payment_gateway)?void 0:e.stripe)?void 0:t.public_key});async function I(){if(R.value)return R.value;const e=S.value;if(!e)throw new Error("Missing Stripe public key");const t=await function(e){return new Promise((t,n)=>{if(window.Stripe)return void t(window.Stripe(e));const r=document.createElement("script");r.src=c,r.onload=()=>{window.Stripe?t(window.Stripe(e)):n(new Error("Stripe not available after script load"))},r.onerror=()=>n(new Error("Failed to load Stripe.js")),document.head.appendChild(r)})}(e);return R.value=t,t}async function N(e){const t=f.paymentMethodOptionResponseEntry.payment_acceptor.id,r=n.createReturnUrl({paymentAcceptorId:t,redirectUrl:window.location.href});if("AUTHORIZE"!==f.variant){if("TOKENIZE"===f.variant){if(!f.customerId)return void h.error("TOKENIZATION_FAILED",`Missing customer id for payment acceptor with id ${t}`);try{const n=await w({customer_id:f.customerId,payment_acceptor_id:t,payment_gateway_variant:y,stripe:{confirmation_token_id:e},return_url:r});await T(n)}catch(a){h.error("TOKENIZATION_FAILED",`Tokenization failed for payment acceptor with id ${t}`,{error:a}),C({code:"UNKNOWN_ERROR",message:"Tokenization failed",error:a})}}}else try{const n=await O({payment_acceptor_id:t,...f.customerId?{customer_id:f.customerId}:{},payment_gateway_variant:y,stripe:{confirmation_token_id:e},amount:f.amount,...f.context&&"CHARGE_ON_DEMAND"!==f.context.type?{context:f.context}:{},return_url:r});await T(n)}catch(a){h.error("PAYMENT_AUTHORIZATION_FAILED",`Failed payment authorization for payment acceptor with id ${t}`,{error:a}),C({code:"UNKNOWN_ERROR",message:"Payment authorization failed",error:a})}}async function T(e){var t;if("ACTION_REQUIRED"===e.status&&e.action.payment_gateway_variant===y){const r=e.action.client_secret||(null==(t=e.action.data)?void 0:t.client_secret);if(!r)return h.error("STRIPE_ACTION_FAILED","Missing client_secret in Stripe ACTION_REQUIRED response"),void C({code:"UNKNOWN_ERROR",message:"Payment action failed",error:e});let a;try{a=await I()}catch(n){return h.error("STRIPE_ACTION_FAILED","Failed to load Stripe.js",{error:n}),void C({code:"UNKNOWN_ERROR",message:"Payment action failed",error:n})}const{error:o}=await a.handleNextAction({clientSecret:r});return o?(h.error("STRIPE_ACTION_FAILED","Stripe handleNextAction failed",{error:o}),void C({code:"UNKNOWN_ERROR",message:"Payment action failed",error:o})):(v.value=!0,void g("payment-success"))}if("SUCCESS"===e.status)return v.value=!0,void g("payment-success");h.error("STRIPE_ACTION_FAILED","Unexpected payment result status",{error:e}),C({code:"UNKNOWN_ERROR",message:"Payment failed",error:e})}function k(){g("select",{paymentMethodType:"card",paymentGatewayVariant:y}),g("ready")}function P(e){C({code:"UNKNOWN_ERROR",message:e.message??"Failed to load payment form",error:e})}function C(e){_.value=e,g("payment-failed",e)}return e.onMounted(()=>{(async function(){const e=f.paymentMethodOptionResponseEntry.payment_acceptor.id;if(i.getQueryParam(n.PAYMENT_ACCEPTOR_ID_QUERY_STRING)!==e)return;const t=i.getQueryParam("redirect_status"),r=i.getQueryParam("payment_intent_client_secret"),a=i.getQueryParam("setup_intent_client_secret");if(t&&(r||a)){if("succeeded"===t)return v.value=!0,void g("payment-success");h.error("STRIPE_REDIRECT_RETURN_FAILED","Stripe redirect returned non-succeeded status",{redirectStatus:t}),C({code:"UNKNOWN_ERROR",message:"Payment failed",error:new globalThis.Error(`Stripe redirect returned status: ${t}`)})}})().catch(e=>{h.error("STRIPE_REDIRECT_RETURN_FAILED","handleRedirectReturn threw unexpectedly",{error:e})})}),e.onBeforeUnmount(()=>{R.value=null}),(n,a)=>v.value?(e.openBlock(),e.createBlock(r._sfc_main,{key:0,variant:t.variant},null,8,["variant"])):_.value?(e.openBlock(),e.createBlock(r._sfc_main$1,{key:1,error:_.value},null,8,["error"])):S.value?(e.openBlock(),e.createBlock(m,{key:2,ref_key:"frameRef",ref:b,"public-key":S.value,options:E.value,"country-code":t.countryCode,email:t.email,name:t.name,onReady:k,onChange:a[0]||(a[0]=e=>g("select",{paymentMethodType:e,paymentGatewayVariant:y})),onLoaderror:P,onSubmitSuccess:N,onSubmitError:a[1]||(a[1]=t=>e.unref(h).error("STRIPE_CONFIRMATION_TOKEN_FAILED","Stripe submission failed",{error:t}))},null,8,["public-key","options","country-code","email","name"])):e.createCommentVNode("",!0)}});exports.default=f;
@@ -0,0 +1 @@
1
+ const e=require("vue"),t=require("./FormMessage.vue.es-Bd4_NG9H.js"),a=require("./ContextMenu.vue.es-DaW0yp4Y.js"),n=require("./customElements-DD7bpqkx.js"),o=require("./Chip.vue.es-DmCjC1hi.js"),r="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23f5f7f8'%20d='M0%200h40v40H0z'/%3e%3cmask%20id='a'%20width='28'%20height='28'%20x='6'%20y='6'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M6%206h28v28H6z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%23333'%20d='M11.8%2028a2%202%200%200%201-1.3-.6%202%202%200%200%201-.6-1.4V14q0-.8.6-1.4a2%202%200%200%201%201.3-.6h16.4q.8%200%201.3.6t.6%201.4v12q0%20.8-.6%201.4a2%202%200%200%201-1.3.6zm-.3-8.4h17v-3.4h-17z'/%3e%3c/g%3e%3c/svg%3e",s={class:"shrink-0"},i={class:"flex items-center justify-center overflow-clip rounded"},l=["src","alt","width","height"],d={class:"grow"},u={key:0},m={key:0,class:"pt-3"},c=e.defineComponent({__name:"PaymentMethodBase",props:{imageSrc:{},imageAlt:{},variant:{default:"default"},disabled:{type:Boolean},options:{},error:{}},setup(n){const o=n,c=e.computed(()=>o.imageSrc||r);return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["flex gap-3",{"opacity-50":n.disabled}])},[e.createElementVNode("div",s,[e.createElementVNode("div",i,[c.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value,alt:n.imageAlt,width:"condensed"===n.variant?20:36,height:"condensed"===n.variant?20:36,class:e.normalizeClass({"h-9 w-9":"default"===n.variant,"h-5 w-5":"condensed"===n.variant})},null,10,l)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",d,[e.renderSlot(o.$slots,"default")]),n.options&&n.options.length>0?(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(a._sfc_main$1,{width:"wide",square:"",items:n.options},null,8,["items"])])):e.createCommentVNode("",!0)],2),n.error?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(t._sfc_main,{message:n.error,variant:"error"},null,8,["message"])])):e.createCommentVNode("",!0)]))}}),v=e.defineComponent({__name:"PaymentMethodDefaultChip",props:{isDefault:{type:Boolean}},setup(t){const a=n.useIntl();return(n,r)=>t.isDefault?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,class:"mt-1 self-start"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).$t({defaultMessage:"Default",description:"The textual label for the default payment method chip",id:"payment_methods.default_chip.label"})),1)]),_:1})):e.createCommentVNode("",!0)}}),p=e.defineComponent({__name:"PaymentMethodInactiveChip",props:{isInactive:{type:Boolean}},setup(t){const a=n.useIntl();return(n,r)=>t.isInactive?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,class:"mt-1 self-start"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a).$t({defaultMessage:"Inactive",description:"The textual label for the inactive payment method chip",id:"payment_methods.inactive_chip.label"})),1)]),_:1})):e.createCommentVNode("",!0)}}),h={KLARNA:{name:"Klarna",logo:()=>Promise.resolve().then(()=>require("./klarna.svg.es-Clu-7zkp.js")).then(e=>e.default)},ZIP:{name:"Zip",logo:()=>Promise.resolve().then(()=>require("./zip.svg.es-BRsgmur-.js")).then(e=>e.default)}},f=t=>{const a=e.shallowRef();return e.watch(()=>e.toValue(t),(e,t,n)=>{if(a.value=void 0,!e)return;let o=!1;n(()=>{o=!0}),e().then(e=>{o||(a.value=e)}).catch(()=>{})},{immediate:!0}),a},g={class:"flex h-full grow flex-col justify-center"},y=e.defineComponent({__name:"PaymentMethodBuyNowPayLater",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(t){const a=t,o=e.computed(()=>{var e;return(null==(e=a.paymentMethod.buy_now_pay_later)?void 0:e.variant)?h[a.paymentMethod.buy_now_pay_later.variant]:void 0}),s=f(()=>{var e;return null==(e=o.value)?void 0:e.logo});return(a,i)=>{var l,d;return e.openBlock(),e.createBlock(c,{"image-src":e.unref(s)??e.unref(r),"image-alt":null==(d=null==(l=o.value)?void 0:l.name)?void 0:d.toLowerCase(),variant:t.variant,options:t.options,disabled:"INACTIVE"===t.paymentMethod.status},{default:e.withCtx(()=>[e.createElementVNode("div",g,[e.createVNode(n._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:"condensed"===t.variant?"body-xs":"body-sm",color:"condensed"===t.variant?"secondary":void 0},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString(null==(t=o.value)?void 0:t.name),1)]}),_:1},8,["variant","color"]),e.createVNode(v,{"is-default":t.isDefault},null,8,["is-default"]),e.createVNode(p,{"is-inactive":"INACTIVE"===t.paymentMethod.status},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),_={ACCEL:()=>Promise.resolve().then(()=>require("./accel.svg.es-Dt_1wJmV.js")).then(e=>e.default),AMERICAN_EXPRESS:()=>Promise.resolve().then(()=>require("./amex.svg.es-Bn9e31C3.js")).then(e=>e.default),BANCONTACT:()=>Promise.resolve().then(()=>require("./bancontact.svg.es-DU2ejvNL.js")).then(e=>e.default),CARNET:()=>Promise.resolve().then(()=>require("./carnet.svg.es-C5SFaOsa.js")).then(e=>e.default),CARTES_BANCAIRES:()=>Promise.resolve().then(()=>require("./cartes-bancaires.svg.es-CbBJQZrk.js")).then(e=>e.default),DANKORT:()=>Promise.resolve().then(()=>require("./dankort.svg.es-D8FgSiFf.js")).then(e=>e.default),DINERS:()=>Promise.resolve().then(()=>require("./diners.svg.es-SydF_H-Z.js")).then(e=>e.default),DISCOVER:()=>Promise.resolve().then(()=>require("./discover.svg.es-B8vgzVNG.js")).then(e=>e.default),EFTPOS:()=>Promise.resolve().then(()=>require("./eftpos.svg.es-DO0YPaY1.js")).then(e=>e.default),ELO:()=>Promise.resolve().then(()=>require("./elo.svg.es-CTOm1rvj.js")).then(e=>e.default),GIROCARD:()=>Promise.resolve().then(()=>require("./girocard.svg.es-tVgtT23w.js")).then(e=>e.default),HIPERCARD:()=>Promise.resolve().then(()=>require("./hipercard.svg.es-D-nmiFXB.js")).then(e=>e.default),JCB:()=>Promise.resolve().then(()=>require("./jcb.svg.es-Bz6J-c0s.js")).then(e=>e.default),MAESTRO:()=>Promise.resolve().then(()=>require("./maestro.svg.es-e8E_H2QU.js")).then(e=>e.default),MASTERCARD:()=>Promise.resolve().then(()=>require("./mastercard.svg.es-YO3_jGD6.js")).then(e=>e.default),NYCE:()=>Promise.resolve().then(()=>require("./nyce.svg.es-DM6esO47.js")).then(e=>e.default),PULSE:()=>Promise.resolve().then(()=>require("./pulse.svg.es-BdpWAuIN.js")).then(e=>e.default),STAR:()=>Promise.resolve().then(()=>require("./star.svg.es-Q50IzqXr.js")).then(e=>e.default),UNION_PAY:()=>Promise.resolve().then(()=>require("./unionpay.svg.es-YqJKKFEj.js")).then(e=>e.default),VISA:()=>Promise.resolve().then(()=>require("./visa.svg.es-D6sc4YTE.js")).then(e=>e.default),V_PAY:()=>Promise.resolve().then(()=>require("./vpay.svg.es-CLGTyB09.js")).then(e=>e.default)},P={class:"flex h-full grow flex-col justify-center"},C=e.defineComponent({__name:"PaymentMethodCard",props:{paymentMethod:{},isDefault:{type:Boolean},i18n:{},options:{},variant:{default:"default"}},setup(t){const a=t,o=e.computed(()=>{var e,t,n;return(null==(e=a.i18n)?void 0:e.expiryDate)&&a.paymentMethod.card.expiry_date?a.i18n.expiryDate(a.paymentMethod.card.expiry_date.expiry_month,a.paymentMethod.card.expiry_date.expiry_year):a.paymentMethod.card.expiry_date?`Expiry date: ${null==(t=a.paymentMethod.card.expiry_date)?void 0:t.expiry_month}/${null==(n=a.paymentMethod.card.expiry_date)?void 0:n.expiry_year}`:void 0}),s=f(()=>a.paymentMethod.card.brand?_[a.paymentMethod.card.brand]:void 0);return(a,i)=>{var l;return e.openBlock(),e.createBlock(c,{"image-src":e.unref(s)??e.unref(r),"image-alt":null==(l=t.paymentMethod.card.brand)?void 0:l.toLowerCase(),variant:t.variant,options:t.options,disabled:"INACTIVE"===t.paymentMethod.status},{default:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(n._sfc_main,{tag:"span",variant:"condensed"===t.variant?"body-xs":"body-sm",color:"condensed"===t.variant?"secondary":void 0,weight:"semibold","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(" **** **** **** "+e.toDisplayString(t.paymentMethod.card.last_four_digits??"****"),1)]),_:1},8,["variant","color"]),"default"===t.variant&&o.value?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(v,{"is-default":t.isDefault},null,8,["is-default"]),e.createVNode(p,{"is-inactive":"INACTIVE"===t.paymentMethod.status},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),N={AMAZON_PAY:{name:"Amazon Pay",logo:()=>Promise.resolve().then(()=>require("./amazon-pay.svg.es-B428S4f3.js")).then(e=>e.default)},APPLE_PAY:{name:"Apple Pay",logo:()=>Promise.resolve().then(()=>require("./apple-pay.svg.es-Cfgn0K28.js")).then(e=>e.default)},CASH_APP:{name:"Cash App",logo:()=>Promise.resolve().then(()=>require("./cashapp.svg.es-DE4vMu_p.js")).then(e=>e.default)},DANA:{name:"DANA",logo:()=>Promise.resolve().then(()=>require("./dana.svg.es-DKZaseoJ.js")).then(e=>e.default)},GCASH:{name:"GCash",logo:()=>Promise.resolve().then(()=>require("./gcash.svg.es-JaL4fpZr.js")).then(e=>e.default)},GOOGLE_PAY:{name:"Google Pay",logo:()=>Promise.resolve().then(()=>require("./google-pay.svg.es-BYXX1em8.js")).then(e=>e.default)},GO_PAY:{name:"GoPay",logo:()=>Promise.resolve().then(()=>require("./go-pay.svg.es-fYX6yMzJ.js")).then(e=>e.default)},KAKAOPAY:{name:"KakaoPay",logo:()=>Promise.resolve().then(()=>require("./kakao-pay.svg.es-qVTABboW.js")).then(e=>e.default)},MOMO:{name:"Momo",logo:()=>Promise.resolve().then(()=>require("./momo.svg.es-BXTQlQRy.js")).then(e=>e.default)},PAYPAL:{name:"PayPal",logo:()=>Promise.resolve().then(()=>require("./paypal.svg.es-BdkNTf3c.js")).then(e=>e.default)},TWINT:{name:"Twint",logo:()=>Promise.resolve().then(()=>require("./twint.svg.es-CQ-ZDfy8.js")).then(e=>e.default)}},k={class:"flex h-full grow flex-col justify-center"},M=e.defineComponent({__name:"PaymentMethodDigitalWallet",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(t){const a=t,o=e.computed(()=>{var e;return(null==(e=a.paymentMethod.digital_wallet)?void 0:e.variant)?N[a.paymentMethod.digital_wallet.variant]:void 0}),s=f(()=>{var e;return null==(e=o.value)?void 0:e.logo});return(a,i)=>{var l,d;return e.openBlock(),e.createBlock(c,{"image-src":e.unref(s)??e.unref(r),"image-alt":null==(d=null==(l=o.value)?void 0:l.name)?void 0:d.toLowerCase(),variant:t.variant,options:t.options,disabled:"INACTIVE"===t.paymentMethod.status},{default:e.withCtx(()=>[e.createElementVNode("div",k,[e.createVNode(n._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:"condensed"===t.variant?"body-xs":"body-sm",color:"condensed"===t.variant?"secondary":void 0},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString(null==(t=o.value)?void 0:t.name),1)]}),_:1},8,["variant","color"]),e.createVNode(v,{"is-default":t.isDefault},null,8,["is-default"]),e.createVNode(p,{"is-inactive":"INACTIVE"===t.paymentMethod.status},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),A={ACH:{name:"ACH",logo:()=>Promise.resolve().then(()=>require("./ach.svg.es-B4tn0_IV.js")).then(e=>e.default)},DIRECT_DEBIT_GB:{name:"Direct Debit GB",logo:()=>Promise.resolve().then(()=>require("./bacs.svg.es-hL7hLPkQ.js")).then(e=>e.default)},SEPA_DIRECT_DEBIT:{name:"SEPA Direct Debit",logo:()=>Promise.resolve().then(()=>require("./sepa.svg.es-BF8PYKZg.js")).then(e=>e.default)}},x={class:"flex h-full grow flex-col justify-center"},B=e.defineComponent({__name:"PaymentMethodDirectDebit",props:{paymentMethod:{},isDefault:{type:Boolean},options:{},variant:{default:"default"}},setup(t){const a=t,o=e.computed(()=>{var e;return(null==(e=a.paymentMethod.direct_debit)?void 0:e.variant)?A[a.paymentMethod.direct_debit.variant]:void 0}),s=f(()=>{var e;return null==(e=o.value)?void 0:e.logo});return(a,i)=>{var l,d;return e.openBlock(),e.createBlock(c,{"image-src":e.unref(s)??e.unref(r),"image-alt":null==(d=null==(l=o.value)?void 0:l.name)?void 0:d.toLowerCase(),variant:t.variant,options:t.options,disabled:"INACTIVE"===t.paymentMethod.status},{default:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(n._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:"condensed"===t.variant?"body-xs":"body-sm",color:"condensed"===t.variant?"secondary":void 0},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString(null==(t=o.value)?void 0:t.name),1)]}),_:1},8,["variant","color"]),e.createVNode(v,{"is-default":t.isDefault},null,8,["is-default"]),e.createVNode(p,{"is-inactive":"INACTIVE"===t.paymentMethod.status},null,8,["is-inactive"])])]),_:1},8,["image-src","image-alt","variant","options","disabled"])}}}),V={EPS:{name:"Electronic Payment Services",logo:()=>Promise.resolve().then(()=>require("./eps.svg.es-CApyGjyU.js")).then(e=>e.default)},IDEAL:{name:"iDEAL",logo:()=>Promise.resolve().then(()=>require("./ideal.svg.es-DXtHE0Jb.js")).then(e=>e.default)},PAY_BY_BANK:{name:"Open Banking / Pay by bank",logo:()=>Promise.resolve().then(()=>require("./open-banking.svg.es-DUM360xB.js")).then(e=>e.default)},TRUSTLY:{name:"Trustly",logo:()=>Promise.resolve().then(()=>require("./trustly.svg.es-CHojqNqm.js")).then(e=>e.default)}},b={class:"flex h-full grow flex-col justify-center"},w=e.defineComponent({__name:"PaymentMethodOnlineBanking",props:{paymentMethod:{},i18n:{},isDefault:{type:Boolean},variant:{default:"default"}},setup(t){const a=t,r=e.computed(()=>{var e;return(null==(e=a.paymentMethod.online_banking)?void 0:e.variant)?V[a.paymentMethod.online_banking.variant]:void 0}),s=f(()=>{var e;return null==(e=r.value)?void 0:e.logo});return(a,i)=>{var l,d;return e.openBlock(),e.createBlock(c,{"image-alt":(null==(l=r.value)?void 0:l.name)??(null==(d=t.i18n)?void 0:d.imageAlt)??"Bank transfer","image-src":e.unref(s)??e.unref("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23e1e2ff'%20d='M0%200h32v32H0z'/%3e%3cmask%20id='a'%20width='24'%20height='24'%20x='4'%20y='4'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23d9d9d9'%20d='M4%204h24v24H4z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cpath%20fill='%231f216a'%20d='M6.5%2022.5v-13h19v3.14H24l-4.6%204.61h-9.15v1.5h7.64l-3.75%203.75zm3.75-7.75h5.5v-1.5h-5.5zm6.9%209.71V23.2l6.38-6.38%201.27%201.27-6.38%206.38zm8.23-6.98-1.26-1.27.84-.84a.4.4%200%200%201%20.25-.12q.14%200%20.26.12l.76.76a.4.4%200%200%201%20.11.25.4.4%200%200%201-.11.26z'/%3e%3c/g%3e%3c/svg%3e"),variant:t.variant,disabled:"INACTIVE"===t.paymentMethod.status},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createVNode(n._sfc_main,{tag:"span",weight:"semibold","no-spacing":"",variant:"condensed"===t.variant?"body-xs":"body-sm",color:"condensed"===t.variant?"secondary":void 0},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString(null==(a=r.value)?void 0:a.name)+" ",1),"SETUP"===t.paymentMethod.status?(e.openBlock(),e.createBlock(o._sfc_main,{key:0,size:"sm",intent:"info",class:"ml-1 font-normal"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((null==(a=t.i18n)?void 0:a.pendingLabel)??"Pending"),1)]}),_:1})):e.createCommentVNode("",!0)]}),_:1},8,["variant","color"]),"default"===t.variant?(e.openBlock(),e.createBlock(n._sfc_main,{key:0,tag:"span",variant:"body-xs",color:"subtle","no-spacing":""},{default:e.withCtx(()=>{var a,n;return[e.createTextVNode(e.toDisplayString((null==(a=t.paymentMethod.online_banking)?void 0:a.iban)??(null==(n=t.i18n)?void 0:n.onlineBankingLabel)??"Online banking"),1)]}),_:1})):e.createCommentVNode("",!0),e.createVNode(v,{"is-default":t.isDefault},null,8,["is-default"]),e.createVNode(p,{"is-inactive":"INACTIVE"===t.paymentMethod.status},null,8,["is-inactive"])])]),_:1},8,["image-alt","image-src","variant","disabled"])}}}),E=e.defineComponent({__name:"PaymentMethod",props:{paymentMethod:{},variant:{},i18n:{},options:{},disabled:{type:Boolean}},setup:t=>(a,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,["CARD"===t.paymentMethod.type?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},a.$attrs,{"payment-method":t.paymentMethod,variant:t.variant,"is-default":t.paymentMethod.is_default,options:t.options}),null,16,["payment-method","variant","is-default","options"])):e.createCommentVNode("",!0),"ONLINE_BANKING"===t.paymentMethod.type?(e.openBlock(),e.createBlock(w,e.mergeProps({key:1},a.$attrs,{"payment-method":t.paymentMethod,variant:t.variant,"is-default":t.paymentMethod.is_default,options:t.options}),null,16,["payment-method","variant","is-default","options"])):e.createCommentVNode("",!0),"BUY_NOW_PAY_LATER"===t.paymentMethod.type?(e.openBlock(),e.createBlock(y,e.mergeProps({key:2},a.$attrs,{"payment-method":t.paymentMethod,variant:t.variant,"is-default":t.paymentMethod.is_default,options:t.options}),null,16,["payment-method","variant","is-default","options"])):e.createCommentVNode("",!0),"DIRECT_DEBIT"===t.paymentMethod.type?(e.openBlock(),e.createBlock(B,e.mergeProps({key:3},a.$attrs,{"payment-method":t.paymentMethod,variant:t.variant,"is-default":t.paymentMethod.is_default,options:t.options}),null,16,["payment-method","variant","is-default","options"])):e.createCommentVNode("",!0),"DIGITAL_WALLET"===t.paymentMethod.type?(e.openBlock(),e.createBlock(M,e.mergeProps({key:4},a.$attrs,{"payment-method":t.paymentMethod,variant:t.variant,"is-default":t.paymentMethod.is_default,options:t.options}),null,16,["payment-method","variant","is-default","options"])):e.createCommentVNode("",!0)],64))});exports._sfc_main=E;