@paykka/card-checkout-ui 0.17.0 → 0.18.0

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 (378) hide show
  1. package/dist/card-checkout-ui.js +21 -21
  2. package/dist/card-checkout-ui.umd.cjs +21 -21
  3. package/dist/es/api/http.js +1 -0
  4. package/dist/es/api/index.js +1 -0
  5. package/dist/es/api/modules/checkout/map.js +11 -14
  6. package/dist/es/api/modules/get-browser-params.js +1 -1
  7. package/dist/es/api/modules/index.js +1 -0
  8. package/dist/es/api/utils/index.js +1 -0
  9. package/dist/es/components/AccordionItem/AccordionItem.js +1 -0
  10. package/dist/es/components/AddressField/index.js +1 -0
  11. package/dist/es/components/ApplePay/index.js +1 -0
  12. package/dist/es/components/CPFField/index.js +1 -0
  13. package/dist/es/components/Card/index.js +16 -17
  14. package/dist/es/components/CardBrands/index.js +1 -0
  15. package/dist/es/components/CardExpireDateField/index.js +1 -0
  16. package/dist/es/components/CardHolderNameField/index.js +1 -0
  17. package/dist/es/components/CardNo/index.js +1 -0
  18. package/dist/es/components/CardNumberField/index.js +1 -0
  19. package/dist/es/components/CardSecurityCodeField/index.js +1 -0
  20. package/dist/es/components/CardSelector/index.js +1 -0
  21. package/dist/es/components/CombinedCardInfo/index.js +1 -0
  22. package/dist/es/components/DropIn/index.js +67 -3
  23. package/dist/es/components/EmailField/EmailField.js +11 -1
  24. package/dist/es/components/EncryptedCard/index.js +1 -0
  25. package/dist/es/components/GooglePay/index.js +1 -0
  26. package/dist/es/components/GuideCard/index.js +9 -1
  27. package/dist/es/components/{CardIBANField → IBANField}/index.js +7 -5
  28. package/dist/es/components/PaymentButton/index.js +1 -0
  29. package/dist/es/components/RecurringTip/index.js +1 -0
  30. package/dist/es/components/SecuredFieldsProvider/index.js +1 -0
  31. package/dist/es/components/Sepa/index.js +141 -250
  32. package/dist/es/components/SubmitButton/index.js +1 -0
  33. package/dist/es/components/ThreeDS/index.js +1 -0
  34. package/dist/es/components/Tip/index.js +1 -0
  35. package/dist/es/components/business/BlikCodeField/BlikCodeField.js +2 -1
  36. package/dist/es/components/business/BlikCodeField/index.js +2 -1
  37. package/dist/es/components/business/NameField/NameField.js +1 -0
  38. package/dist/es/components/business/NameField/index.js +1 -0
  39. package/dist/es/components/business/{BlikConfirmModal/BlikConfirmModal.js → PaymentConfirmModal/PaymentConfirmModal.js} +8 -7
  40. package/dist/es/components/business/{BlikConfirmModal → PaymentConfirmModal}/index.js +2 -1
  41. package/dist/es/components/business/PhoneField/PhoneField.js +52 -27
  42. package/dist/es/components/business/PhoneField/area-codes.js +458 -0
  43. package/dist/es/components/business/PhoneField/config.js +2 -1
  44. package/dist/es/components/business/PhoneField/index.js +1 -0
  45. package/dist/es/components/business/QRCodeModal/QRCodeModal.js +1 -0
  46. package/dist/es/components/business/QRCodeModal/index.js +1 -0
  47. package/dist/es/components/business/SegmentedDigitInput/format.js +1 -0
  48. package/dist/es/components/business/SegmentedDigitInput/index.js +1 -0
  49. package/dist/es/components/business/Tooltip/{Tooltip.js → Tooltip2.js} +2 -1
  50. package/dist/es/components/business/Tooltip/index.js +2 -1
  51. package/dist/es/components/business/index.js +3 -2
  52. package/dist/es/components/index.js +8 -0
  53. package/dist/es/components/internal/Accordion/accordionTransition.js +1 -0
  54. package/dist/es/components/internal/Accordion/index.js +1 -0
  55. package/dist/es/components/internal/Button/Button2.js +1 -0
  56. package/dist/es/components/internal/Button/index.js +1 -0
  57. package/dist/es/components/internal/CheckBox/CheckBox.js +1 -0
  58. package/dist/es/components/internal/CheckBox/index.js +1 -0
  59. package/dist/es/components/internal/Form/Form.js +1 -0
  60. package/dist/es/components/internal/Form/FormItem.js +1 -0
  61. package/dist/es/components/internal/Form/type.js +1 -0
  62. package/dist/es/components/internal/Info/Info.js +1 -0
  63. package/dist/es/components/internal/Info/index.js +1 -0
  64. package/dist/es/components/internal/Input/Input.js +1 -0
  65. package/dist/es/components/internal/Input/type.js +1 -0
  66. package/dist/es/components/internal/Loading/Loading2.js +1 -0
  67. package/dist/es/components/internal/Loading/index.js +1 -0
  68. package/dist/es/components/internal/LoadingCheck/LoadingCheck.js +1 -0
  69. package/dist/es/components/internal/LoadingCheck/index.js +1 -0
  70. package/dist/es/components/internal/Modal/Modal.js +1 -0
  71. package/dist/es/components/internal/QRCode/QRCode.js +1 -0
  72. package/dist/es/components/internal/QRCode/index.js +1 -0
  73. package/dist/es/components/internal/Select/Select.js +1 -0
  74. package/dist/es/components/internal/Select/SelectMenu.js +1 -0
  75. package/dist/es/components/internal/Select/SelectMenuItem.js +1 -0
  76. package/dist/es/components/internal/icons/Icon3DSFail.js +1 -0
  77. package/dist/es/components/internal/icons/Icon3DSInfo.js +1 -0
  78. package/dist/es/components/internal/icons/Icon3DSSuccess.js +1 -0
  79. package/dist/es/components/internal/icons/IconAdd.js +1 -0
  80. package/dist/es/components/internal/icons/IconAlipayPlus.js +1 -0
  81. package/dist/es/components/internal/icons/IconAmex.js +1 -0
  82. package/dist/es/components/internal/icons/IconArrowDown.js +1 -0
  83. package/dist/es/components/internal/icons/IconBancomatPay.js +1 -0
  84. package/dist/es/components/internal/icons/IconBancontact.js +16 -71
  85. package/dist/es/components/internal/icons/IconBizum.js +1 -0
  86. package/dist/es/components/internal/icons/IconBlik.js +60 -542
  87. package/dist/es/components/internal/icons/IconBoost.js +14 -40
  88. package/dist/es/components/internal/icons/IconCard.js +1 -0
  89. package/dist/es/components/internal/icons/IconCard2.js +1 -0
  90. package/dist/es/components/internal/icons/IconCardNo.js +1 -0
  91. package/dist/es/components/internal/icons/IconDinnersClub.js +1 -0
  92. package/dist/es/components/internal/icons/IconDiscover.js +1 -0
  93. package/dist/es/components/internal/icons/IconDoku.js +31 -0
  94. package/dist/es/components/internal/icons/IconDragonPay.js +1 -0
  95. package/dist/es/components/internal/icons/IconEPS.js +1 -0
  96. package/dist/es/components/internal/icons/IconError.js +1 -0
  97. package/dist/es/components/internal/icons/IconFpx.js +31 -15
  98. package/dist/es/components/internal/icons/IconGCash.js +1 -0
  99. package/dist/es/components/internal/icons/IconGcashComplete.js +1 -0
  100. package/dist/es/components/internal/icons/IconGoPay.js +31 -0
  101. package/dist/es/components/internal/icons/IconGrabPay.js +1 -0
  102. package/dist/es/components/internal/icons/IconIdeal.js +1 -0
  103. package/dist/es/components/internal/icons/IconInfo.js +1 -0
  104. package/dist/es/components/internal/icons/IconJcb.js +1 -0
  105. package/dist/es/components/internal/icons/IconJenius.js +28 -0
  106. package/dist/es/components/internal/icons/IconLinePay.js +1 -0
  107. package/dist/es/components/internal/icons/IconLinkAja.js +44 -0
  108. package/dist/es/components/internal/icons/IconMasterCard.js +1 -0
  109. package/dist/es/components/internal/icons/IconMayBankQRPay.js +1 -0
  110. package/dist/es/components/internal/icons/IconMbWay.js +1 -0
  111. package/dist/es/components/internal/icons/IconMultibanco.js +1 -0
  112. package/dist/es/components/internal/icons/IconMyBank.js +2 -1
  113. package/dist/es/components/internal/icons/IconNinePay.js +1 -0
  114. package/dist/es/components/internal/icons/IconNuPay.js +31 -0
  115. package/dist/es/components/internal/icons/IconOnlineBankingEstonia.js +1 -0
  116. package/dist/es/components/internal/icons/IconOnlineBankingFinland.js +1 -0
  117. package/dist/es/components/internal/icons/IconOnlineBankingIndonesia.js +1 -0
  118. package/dist/es/components/internal/icons/IconOnlineBankingLatvia.js +1 -0
  119. package/dist/es/components/internal/icons/IconOnlineBankingLithuania.js +1 -0
  120. package/dist/es/components/internal/icons/IconOnlineBankingThailand.js +1 -0
  121. package/dist/es/components/internal/icons/IconOpayWallet.js +1 -0
  122. package/dist/es/components/internal/icons/IconOvo.js +1 -0
  123. package/dist/es/components/internal/icons/IconP24.js +1 -0
  124. package/dist/es/components/internal/icons/IconPagaWallet.js +1 -0
  125. package/dist/es/components/internal/icons/IconPayByBank.js +3 -17
  126. package/dist/es/components/internal/icons/IconPayU.js +1 -0
  127. package/dist/es/components/internal/icons/IconPaymaya.js +1 -0
  128. package/dist/es/components/internal/icons/IconPhone.js +1 -0
  129. package/dist/es/components/internal/icons/IconPicPay.js +1 -0
  130. package/dist/es/components/internal/icons/IconPix.js +1 -0
  131. package/dist/es/components/internal/icons/IconRedirect.js +1 -0
  132. package/dist/es/components/internal/icons/IconSafe.js +1 -0
  133. package/dist/es/components/internal/icons/IconSatispay.js +1 -0
  134. package/dist/es/components/internal/icons/IconScan.js +1 -0
  135. package/dist/es/components/internal/icons/IconSepa.js +36 -0
  136. package/dist/es/components/internal/icons/IconShopeePay.js +1 -0
  137. package/dist/es/components/internal/icons/IconSkrill.js +1 -0
  138. package/dist/es/components/internal/icons/IconSuccess.js +1 -0
  139. package/dist/es/components/internal/icons/IconSwish.js +35 -0
  140. package/dist/es/components/internal/icons/IconSwitch.js +1 -0
  141. package/dist/es/components/internal/icons/IconTNGWallet.js +1 -0
  142. package/dist/es/components/internal/icons/IconTick.js +1 -0
  143. package/dist/es/components/internal/icons/IconTrustly.js +1 -0
  144. package/dist/es/components/internal/icons/IconTwint.js +54 -0
  145. package/dist/es/components/internal/icons/IconUnionPay.js +1 -0
  146. package/dist/es/components/internal/icons/IconUpi.js +6 -15
  147. package/dist/es/components/internal/icons/IconVietqr.js +1 -0
  148. package/dist/es/components/internal/icons/IconVietqrComplete.js +1 -0
  149. package/dist/es/components/internal/icons/IconVisa.js +1 -0
  150. package/dist/es/components/internal/icons/IconWechatPayGlobal.js +1 -0
  151. package/dist/es/components/internal/icons/IconWechatPayGlobalComplete.js +1 -0
  152. package/dist/es/components/internal/icons/IconZalopay.js +1 -0
  153. package/dist/es/components/internal/icons/IconZalopayComplete.js +1 -0
  154. package/dist/es/components/internal/icons/iconChecked.js +1 -0
  155. package/dist/es/components/internal/icons/index.js +1 -0
  156. package/dist/es/components/wallets/AliPay/AliPay.js +5 -4
  157. package/dist/es/components/wallets/BancomatPay/BancomatPay.js +9 -9
  158. package/dist/es/components/wallets/Bancontact/Bancontact.js +14 -14
  159. package/dist/es/components/wallets/Bizum/Bizum.js +9 -9
  160. package/dist/es/components/wallets/Blik/Blik.js +16 -16
  161. package/dist/es/components/wallets/Boost/Boost.js +10 -10
  162. package/dist/es/components/wallets/Doku/Doku.js +207 -0
  163. package/dist/es/components/wallets/Doku/doku2.js +1 -0
  164. package/dist/es/components/wallets/Doku/index.js +1 -0
  165. package/dist/es/components/wallets/Doku/type.js +1 -0
  166. package/dist/es/components/wallets/DragonPay/DragonPay.js +10 -10
  167. package/dist/es/components/wallets/EPS/EPS.js +20 -26
  168. package/dist/es/components/wallets/Fpx/Fpx.js +10 -10
  169. package/dist/es/components/wallets/GCash/GCash.js +13 -13
  170. package/dist/es/components/wallets/GoPay/GoPay.js +196 -0
  171. package/dist/es/components/wallets/GoPay/go-pay.js +1 -0
  172. package/dist/es/components/wallets/GoPay/index.js +1 -0
  173. package/dist/es/components/wallets/GoPay/type.js +1 -0
  174. package/dist/es/components/wallets/GrabPay/GrabPay.js +10 -10
  175. package/dist/es/components/wallets/IDeal/IDeal.js +18 -17
  176. package/dist/es/components/wallets/Jenius/Jenius.js +207 -0
  177. package/dist/es/components/wallets/Jenius/index.js +1 -0
  178. package/dist/es/components/wallets/Jenius/jenius2.js +1 -0
  179. package/dist/es/components/wallets/Jenius/type.js +1 -0
  180. package/dist/es/components/wallets/LinePay/LinePay.js +10 -10
  181. package/dist/es/components/wallets/LinkAja/LinkAja.js +207 -0
  182. package/dist/es/components/wallets/LinkAja/index.js +1 -0
  183. package/dist/es/components/wallets/LinkAja/link-aja.js +1 -0
  184. package/dist/es/components/wallets/LinkAja/type.js +1 -0
  185. package/dist/es/components/wallets/MayBankQRPay/MayBankQRPay.js +10 -10
  186. package/dist/es/components/wallets/MbWay/MbWay.js +10 -10
  187. package/dist/es/components/wallets/Multibanco/Multibanco.js +10 -10
  188. package/dist/es/components/wallets/MyBank/MyBank.js +11 -11
  189. package/dist/es/components/wallets/NinePay/NinePay.js +10 -10
  190. package/dist/es/components/wallets/NuPay/NuPay.js +297 -0
  191. package/dist/es/components/wallets/NuPay/index.js +1 -0
  192. package/dist/es/components/wallets/NuPay/nu-pay.js +1 -0
  193. package/dist/es/components/wallets/NuPay/type.js +1 -0
  194. package/dist/es/components/wallets/OVO/OVO.js +19 -18
  195. package/dist/es/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.js +10 -10
  196. package/dist/es/components/wallets/OnlineBankingFinland/OnlineBankingFinland.js +10 -10
  197. package/dist/es/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.js +10 -10
  198. package/dist/es/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.js +10 -10
  199. package/dist/es/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.js +10 -10
  200. package/dist/es/components/wallets/OnlineBankingThailand/OnlineBankingThailand.js +10 -10
  201. package/dist/es/components/wallets/OpayWallet/OpayWallet.js +10 -10
  202. package/dist/es/components/wallets/P24/P24.js +14 -14
  203. package/dist/es/components/wallets/PagaWallet/PagaWallet.js +10 -10
  204. package/dist/es/components/wallets/PayByBank/PayByBank.js +15 -20
  205. package/dist/es/components/wallets/PayU/PayU.js +17 -20
  206. package/dist/es/components/wallets/Paymaya/Paymaya.js +10 -10
  207. package/dist/es/components/wallets/PicPay/PicPay.js +11 -11
  208. package/dist/es/components/wallets/Pix/Pix.js +11 -11
  209. package/dist/es/components/wallets/Satispay/Satispay.js +10 -10
  210. package/dist/es/components/wallets/ShopeePay/ShopeePay.js +9 -9
  211. package/dist/es/components/wallets/Skrill/Skrill.js +13 -13
  212. package/dist/es/components/wallets/Swish/Swish.js +180 -0
  213. package/dist/es/components/wallets/Swish/index.js +1 -0
  214. package/dist/es/components/wallets/Swish/swish2.js +1 -0
  215. package/dist/es/components/wallets/Swish/type.js +1 -0
  216. package/dist/es/components/wallets/TNGWallet/TNGWallet.js +9 -9
  217. package/dist/es/components/wallets/Trustly/Trustly.js +12 -12
  218. package/dist/es/components/wallets/Twint/Twint.js +196 -0
  219. package/dist/es/components/wallets/Twint/index.js +1 -0
  220. package/dist/es/components/wallets/Twint/twint2.js +1 -0
  221. package/dist/es/components/wallets/Twint/type.js +1 -0
  222. package/dist/es/components/wallets/Upi/Upi.js +10 -10
  223. package/dist/es/components/wallets/Vietqr/Vietqr.js +13 -13
  224. package/dist/es/components/wallets/WechatPay/WechatPay.js +13 -13
  225. package/dist/es/components/wallets/Zalopay/Zalopay.js +13 -13
  226. package/dist/es/components/wallets/index.js +7 -0
  227. package/dist/es/config.js +1 -0
  228. package/dist/es/constant.js +48 -4
  229. package/dist/es/core/address.js +1 -0
  230. package/dist/es/core/create.js +1 -0
  231. package/dist/es/core/index.js +1 -0
  232. package/dist/es/core/logger.js +27 -12
  233. package/dist/es/core/payment.js +1 -0
  234. package/dist/es/core/theme.js +1 -0
  235. package/dist/es/core.js +30 -30
  236. package/dist/es/hooks/index.js +1 -0
  237. package/dist/es/hooks/useBEM.js +1 -0
  238. package/dist/es/hooks/useBaseWallet.js +8 -2
  239. package/dist/es/hooks/useI18n.js +1 -0
  240. package/dist/es/hooks/usePayState.js +1 -0
  241. package/dist/es/i18n/I18n.js +1 -0
  242. package/dist/es/i18n/index.js +1 -0
  243. package/dist/es/i18n/locales/cs-CZ.js +146 -0
  244. package/dist/es/i18n/locales/da-DK.js +146 -0
  245. package/dist/es/i18n/locales/de-DE.js +13 -17
  246. package/dist/es/i18n/locales/en-GB.js +13 -17
  247. package/dist/es/i18n/locales/es-ES.js +13 -17
  248. package/dist/es/i18n/locales/fi-FI.js +146 -0
  249. package/dist/es/i18n/locales/fil-PH.js +146 -0
  250. package/dist/es/i18n/locales/fr-FR.js +13 -17
  251. package/dist/es/i18n/locales/hi-IN.js +146 -0
  252. package/dist/es/i18n/locales/id-ID.js +146 -0
  253. package/dist/es/i18n/locales/index.js +30 -3
  254. package/dist/es/i18n/locales/it-IT.js +146 -0
  255. package/dist/es/i18n/locales/ja-JP.js +13 -17
  256. package/dist/es/i18n/locales/ko-KR.js +13 -17
  257. package/dist/es/i18n/locales/ms-MY.js +146 -0
  258. package/dist/es/i18n/locales/nb-NO.js +146 -0
  259. package/dist/es/i18n/locales/nl-NL.js +13 -17
  260. package/dist/es/i18n/locales/pl-PL.js +146 -0
  261. package/dist/es/i18n/locales/pt-PT.js +13 -17
  262. package/dist/es/i18n/locales/ru-RU.js +13 -17
  263. package/dist/es/i18n/locales/sv-SE.js +146 -0
  264. package/dist/es/i18n/locales/th-TH.js +146 -0
  265. package/dist/es/i18n/locales/zh-CN.js +13 -17
  266. package/dist/es/i18n/locales/zh-HK.js +13 -17
  267. package/dist/es/i18n/locales/zh-TW.js +13 -17
  268. package/dist/es/i18n/util.js +12 -8
  269. package/dist/es/index.js +16 -1
  270. package/dist/es/out/base-fraud-detection.js +1 -0
  271. package/dist/es/out/config.js +2 -2
  272. package/dist/es/out/paykka-detection.js +1 -0
  273. package/dist/es/out/stripe-radar.js +2 -1
  274. package/dist/es/out/worldpay-ddc.js +1 -0
  275. package/dist/es/style.css +1 -1
  276. package/dist/es/utils/bem.js +1 -0
  277. package/dist/es/utils/card-brand/brands.js +1 -0
  278. package/dist/es/utils/index.js +1 -0
  279. package/dist/style.css +1 -1
  280. package/dist/types/api/modules/checkout/map.d.ts +7 -0
  281. package/dist/types/api/modules/checkout/type.d.ts +2 -1
  282. package/dist/types/components/ApplePay/hooks/useApplePay.d.ts +1 -0
  283. package/dist/types/components/ApplePay/type.d.ts +1 -0
  284. package/dist/types/components/DropIn/type.d.ts +1 -1
  285. package/dist/types/components/EmailField/type.d.ts +1 -1
  286. package/dist/types/components/IBANField/IBANField.d.ts +2 -0
  287. package/dist/types/components/{CardIBANField → IBANField}/type.d.ts +1 -1
  288. package/dist/types/components/Sepa/Sepa.d.ts +5 -0
  289. package/dist/types/components/Sepa/type.d.ts +4 -12
  290. package/dist/types/components/business/PaymentConfirmModal/PaymentConfirmModal.d.ts +6 -0
  291. package/dist/types/components/business/PaymentConfirmModal/index.d.ts +2 -0
  292. package/dist/types/components/business/{BlikConfirmModal → PaymentConfirmModal}/type.d.ts +1 -1
  293. package/dist/types/components/business/PhoneField/area-codes.d.ts +253 -0
  294. package/dist/types/components/business/PhoneField/index.d.ts +1 -0
  295. package/dist/types/components/business/PhoneField/type.d.ts +4 -0
  296. package/dist/types/components/business/index.d.ts +1 -1
  297. package/dist/types/components/index.d.ts +1 -1
  298. package/dist/types/components/internal/icons/IconDoku.d.ts +2 -0
  299. package/dist/types/components/internal/icons/IconGoPay.d.ts +2 -0
  300. package/dist/types/components/internal/icons/IconJenius.d.ts +2 -0
  301. package/dist/types/components/internal/icons/IconLinkAja.d.ts +2 -0
  302. package/dist/types/components/internal/icons/IconNuPay.d.ts +2 -0
  303. package/dist/types/components/internal/icons/IconSepa.d.ts +2 -0
  304. package/dist/types/components/internal/icons/IconSwish.d.ts +2 -0
  305. package/dist/types/components/internal/icons/IconTwint.d.ts +2 -0
  306. package/dist/types/components/internal/icons/index.d.ts +8 -0
  307. package/dist/types/components/wallets/Doku/Doku.d.ts +15 -0
  308. package/dist/types/components/wallets/Doku/index.d.ts +2 -0
  309. package/dist/types/components/wallets/Doku/type.d.ts +7 -0
  310. package/dist/types/components/wallets/DragonPay/DragonPay.d.ts +1 -1
  311. package/dist/types/components/wallets/EPS/EPS.d.ts +1 -1
  312. package/dist/types/components/wallets/GoPay/GoPay.d.ts +16 -0
  313. package/dist/types/components/wallets/GoPay/index.d.ts +2 -0
  314. package/dist/types/components/wallets/GoPay/type.d.ts +7 -0
  315. package/dist/types/components/wallets/IDeal/IDeal.d.ts +1 -1
  316. package/dist/types/components/wallets/Jenius/Jenius.d.ts +15 -0
  317. package/dist/types/components/wallets/Jenius/index.d.ts +2 -0
  318. package/dist/types/components/wallets/Jenius/type.d.ts +7 -0
  319. package/dist/types/components/wallets/LinkAja/LinkAja.d.ts +15 -0
  320. package/dist/types/components/wallets/LinkAja/index.d.ts +2 -0
  321. package/dist/types/components/wallets/LinkAja/type.d.ts +7 -0
  322. package/dist/types/components/wallets/MyBank/MyBank.d.ts +1 -0
  323. package/dist/types/components/wallets/NuPay/NuPay.d.ts +15 -0
  324. package/dist/types/components/wallets/NuPay/index.d.ts +2 -0
  325. package/dist/types/components/wallets/NuPay/type.d.ts +7 -0
  326. package/dist/types/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.d.ts +1 -0
  327. package/dist/types/components/wallets/OnlineBankingFinland/OnlineBankingFinland.d.ts +1 -0
  328. package/dist/types/components/wallets/PayByBank/PayByBank.d.ts +1 -1
  329. package/dist/types/components/wallets/PayU/PayU.d.ts +2 -2
  330. package/dist/types/components/wallets/Swish/Swish.d.ts +15 -0
  331. package/dist/types/components/wallets/Swish/index.d.ts +2 -0
  332. package/dist/types/components/wallets/Swish/type.d.ts +7 -0
  333. package/dist/types/components/wallets/Twint/Twint.d.ts +16 -0
  334. package/dist/types/components/wallets/Twint/index.d.ts +2 -0
  335. package/dist/types/components/wallets/Twint/type.d.ts +7 -0
  336. package/dist/types/components/wallets/index.d.ts +7 -0
  337. package/dist/types/constant.d.ts +21 -7
  338. package/dist/types/core/logger.d.ts +1 -0
  339. package/dist/types/hooks/useBaseWallet.d.ts +6 -1
  340. package/dist/types/i18n/locales/cs-CZ.d.ts +128 -0
  341. package/dist/types/i18n/locales/da-DK.d.ts +128 -0
  342. package/dist/types/i18n/locales/de-DE.d.ts +12 -15
  343. package/dist/types/i18n/locales/en-GB.d.ts +12 -15
  344. package/dist/types/i18n/locales/es-ES.d.ts +12 -15
  345. package/dist/types/i18n/locales/fi-FI.d.ts +128 -0
  346. package/dist/types/i18n/locales/fil-PH.d.ts +128 -0
  347. package/dist/types/i18n/locales/fr-FR.d.ts +12 -15
  348. package/dist/types/i18n/locales/hi-IN.d.ts +128 -0
  349. package/dist/types/i18n/locales/id-ID.d.ts +128 -0
  350. package/dist/types/i18n/locales/index.d.ts +24 -0
  351. package/dist/types/i18n/locales/it-IT.d.ts +128 -0
  352. package/dist/types/i18n/locales/ja-JP.d.ts +12 -15
  353. package/dist/types/i18n/locales/ko-KR.d.ts +12 -15
  354. package/dist/types/i18n/locales/ms-MY.d.ts +128 -0
  355. package/dist/types/i18n/locales/nb-NO.d.ts +128 -0
  356. package/dist/types/i18n/locales/nl-NL.d.ts +12 -15
  357. package/dist/types/i18n/locales/pl-PL.d.ts +128 -0
  358. package/dist/types/i18n/locales/pt-PT.d.ts +12 -15
  359. package/dist/types/i18n/locales/ru-RU.d.ts +12 -15
  360. package/dist/types/i18n/locales/sv-SE.d.ts +128 -0
  361. package/dist/types/i18n/locales/th-TH.d.ts +128 -0
  362. package/dist/types/i18n/locales/zh-CN.d.ts +12 -15
  363. package/dist/types/i18n/locales/zh-HK.d.ts +12 -15
  364. package/dist/types/i18n/locales/zh-TW.d.ts +12 -15
  365. package/dist/types/i18n/util.d.ts +1 -1
  366. package/dist/types/out/config.d.ts +4 -4
  367. package/package.json +1 -1
  368. package/dist/es/components/AccountNameField/index.js +0 -50
  369. package/dist/types/components/AccountNameField/AccountNameField.d.ts +0 -2
  370. package/dist/types/components/AccountNameField/index.d.ts +0 -2
  371. package/dist/types/components/AccountNameField/type.d.ts +0 -4
  372. package/dist/types/components/CardIBANField/IBANField.d.ts +0 -2
  373. package/dist/types/components/business/BlikConfirmModal/BlikConfirmModal.d.ts +0 -6
  374. package/dist/types/components/business/BlikConfirmModal/index.d.ts +0 -2
  375. /package/dist/es/components/business/{BlikConfirmModal/blik-confirm-modal.js → PaymentConfirmModal/payment-confirm-modal.js} +0 -0
  376. /package/dist/es/components/business/{BlikConfirmModal → PaymentConfirmModal}/type.js +0 -0
  377. /package/dist/es/components/business/Tooltip/{tooltip2.js → tooltip.js} +0 -0
  378. /package/dist/types/components/{CardIBANField → IBANField}/index.d.ts +0 -0
@@ -5,6 +5,7 @@ import { safeStringify } from "../utils/index.js";
5
5
  import { getFetch } from "./fetch.js";
6
6
  import { PayKKaError, EPayKKaError } from "../core/error.js";
7
7
  import "../out/fraud-detection.js";
8
+ import "../core/logger.js";
8
9
  import { getBrowserInfo } from "../utils/system-info/get-browser-info.js";
9
10
  const request = async (method, url, params, { timeout = 2e4, headers, locale, signal } = {}) => {
10
11
  const abortController = new AbortController();
@@ -3,3 +3,4 @@ import "../utils/system-info/get-browser-info.js";
3
3
  import "../core.js";
4
4
  import "../core/context.js";
5
5
  import "../out/fraud-detection.js";
6
+ import "../core/logger.js";
@@ -1,5 +1,14 @@
1
1
  import { PaymentMethod } from "../../../constant.js";
2
2
  import { amountMap } from "../map.js";
3
+ const formatFeeInfo = (configuration) => {
4
+ return {
5
+ neededToCompute: configuration == null ? void 0 : configuration.needed_to_compute,
6
+ fee: amountMap(configuration == null ? void 0 : configuration.fee),
7
+ totalAmount: amountMap(configuration == null ? void 0 : configuration.total_amount),
8
+ percentageFee: configuration == null ? void 0 : configuration.percentage_fee,
9
+ transactionFee: configuration == null ? void 0 : configuration.transaction_fee
10
+ };
11
+ };
3
12
  const formatPaymentMethodInfo = (paymentMethods = []) => {
4
13
  const supportMethods = [];
5
14
  const channelParams = {};
@@ -21,21 +30,9 @@ const formatPaymentMethodInfo = (paymentMethods = []) => {
21
30
  googlePayMerchantId: configuration == null ? void 0 : configuration.merchant_id
22
31
  };
23
32
  } else if (value === PaymentMethod.WECHAT_PAY) {
24
- channelParams.wechatPay = {
25
- neededToCompute: configuration == null ? void 0 : configuration.needed_to_compute,
26
- fee: amountMap(configuration == null ? void 0 : configuration.fee),
27
- totalAmount: amountMap(configuration == null ? void 0 : configuration.total_amount),
28
- percentageFee: configuration == null ? void 0 : configuration.percentage_fee,
29
- transactionFee: configuration == null ? void 0 : configuration.transaction_fee
30
- };
33
+ channelParams.wechatPay = formatFeeInfo(configuration);
31
34
  } else if (value === PaymentMethod.ALI_PAY) {
32
- channelParams.aliPay = {
33
- neededToCompute: configuration == null ? void 0 : configuration.needed_to_compute,
34
- fee: amountMap(configuration == null ? void 0 : configuration.fee),
35
- totalAmount: amountMap(configuration == null ? void 0 : configuration.total_amount),
36
- percentageFee: configuration == null ? void 0 : configuration.percentage_fee,
37
- transactionFee: configuration == null ? void 0 : configuration.transaction_fee
38
- };
35
+ channelParams.aliPay = formatFeeInfo(configuration);
39
36
  }
40
37
  if (value === PaymentMethod.BANKCARD) {
41
38
  supportMethods.push(...configuration.allowed_card_networks || []);
@@ -35,7 +35,7 @@ const getBaseBrowserParams = async (params = {}) => {
35
35
  terminal_type: terminalType,
36
36
  fraud_detection_id: fraudDetectionId,
37
37
  // 当前组件库版本(构建时由 define 注入)
38
- app_version: "0.17.0"
38
+ app_version: "0.18.0"
39
39
  };
40
40
  };
41
41
  const getBrowserParams = async (params = {}) => {
@@ -3,3 +3,4 @@ import "../../utils/system-info/get-browser-info.js";
3
3
  import "../../core/context.js";
4
4
  import "../../core.js";
5
5
  import "../../out/fraud-detection.js";
6
+ import "../../core/logger.js";
@@ -4,6 +4,7 @@ import { deepMerge } from "../../utils/object.js";
4
4
  import "../../core.js";
5
5
  import "../../core/context.js";
6
6
  import "../../out/fraud-detection.js";
7
+ import "../../core/logger.js";
7
8
  const buildPaymentParams = (params, extraParams = {}) => {
8
9
  const { bill, payment, customer } = params;
9
10
  const mergedParams = deepMerge(
@@ -6,6 +6,7 @@ import "../../utils/card-brand/brands.js";
6
6
  import "../../utils/system-info/get-browser-info.js";
7
7
  import { normalizedClass } from "../../utils/format.js";
8
8
  import "../../out/fraud-detection.js";
9
+ import "../../core/logger.js";
9
10
  import { AccordionContext } from "../internal/Accordion/type.js";
10
11
  import { accordionTransition } from "../internal/Accordion/accordionTransition.js";
11
12
  const { bem } = useBEM("accordion-item");
@@ -8,6 +8,7 @@ import { CoreContext } from "../../core/context.js";
8
8
  import "../../out/fraud-detection.js";
9
9
  import { useBEM } from "../../hooks/useBEM.js";
10
10
  import { useI18n } from "../../hooks/useI18n.js";
11
+ import "../../core/logger.js";
11
12
  import "../internal/Form/type.js";
12
13
  import "../internal/Form/context.js";
13
14
  import { FormItem } from "../internal/Form/FormItem.js";
@@ -15,6 +15,7 @@ import { useBEM } from "../../hooks/useBEM.js";
15
15
  import "../../core/context.js";
16
16
  import { PayKKaError } from "../../core/error.js";
17
17
  import "../../out/fraud-detection.js";
18
+ import "../../core/logger.js";
18
19
  import { usePayState } from "../../hooks/usePayState.js";
19
20
  import { useRetry } from "../../hooks/useRetry.js";
20
21
  import { Info } from "../internal/Info/Info.js";
@@ -5,6 +5,7 @@ import "../../utils/system-info/get-browser-info.js";
5
5
  import { EInternalFieldType } from "../SecuredFieldsProvider/index.js";
6
6
  import "../../core/context.js";
7
7
  import "../../out/fraud-detection.js";
8
+ import "../../core/logger.js";
8
9
  import { useI18n } from "../../hooks/useI18n.js";
9
10
  import "../internal/Form/type.js";
10
11
  import "../internal/Form/context.js";
@@ -2,7 +2,7 @@ import { w, A, h, F, y, q, T, u, b } from "../../core.js";
2
2
  import { isTimeoutError } from "../../api/http.js";
3
3
  import { safeParse, safeStringify } from "../../utils/index.js";
4
4
  import { defaultInputStyleConfig } from "../../types/index.js";
5
- import { PaymentMethod, PaymentType, SessionMode, COMMON_CLASS_NAME, CardPaymentMethods } from "../../constant.js";
5
+ import { PaymentMethod, PaymentType, SessionMode, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME, CardPaymentMethods } from "../../constant.js";
6
6
  import { commonPaymentQuery, commonPayment } from "../../api/modules/common/index.js";
7
7
  import { getBrowserParams } from "../../api/modules/get-browser-params.js";
8
8
  import { CoreContext } from "../../core/context.js";
@@ -13,6 +13,7 @@ import { useBEM } from "../../hooks/useBEM.js";
13
13
  import { usePayState } from "../../hooks/usePayState.js";
14
14
  import { useRetry } from "../../hooks/useRetry.js";
15
15
  import { buildPaymentParams } from "../../api/utils/index.js";
16
+ import "../../core/logger.js";
16
17
  import { DEFAULT_ADDRESS, AddressField } from "../AddressField/index.js";
17
18
  import { CardBrands } from "../CardBrands/index.js";
18
19
  import { CardExpireDateField } from "../CardExpireDateField/index.js";
@@ -44,7 +45,6 @@ import { createUrlWithParams } from "../../utils/location.js";
44
45
  import { formatPaymentResult, processPaymentStatus } from "../../utils/payment.js";
45
46
  import { normalizedClass, trimAll, limitedToNumber } from "../../utils/format.js";
46
47
  const { bem } = useBEM("card");
47
- const fieldClassNames = bem("field");
48
48
  const CURR_PAYMENT_METHOD = PaymentMethod.BANKCARD;
49
49
  const Card = w((props, ref) => {
50
50
  var _a, _b;
@@ -154,10 +154,10 @@ const Card = w((props, ref) => {
154
154
  };
155
155
  };
156
156
  y(() => {
157
- var _a2, _b2;
157
+ var _a2, _b2, _c;
158
158
  if (!sessionReady)
159
159
  return;
160
- const { status, supportMethods = [], bill = {}, sessionMode, country } = (session == null ? void 0 : session.checkout) || {};
160
+ const { status, supportMethods = [], tokens = [], sessionMode, country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
161
161
  if (sessionMode === SessionMode.DROP_IN && !isDropIn) {
162
162
  (_b2 = (_a2 = props.core.config).onInitError) == null ? void 0 : _b2.call(
163
163
  _a2,
@@ -173,6 +173,7 @@ const Card = w((props, ref) => {
173
173
  country && addressCore.setCountry(country);
174
174
  form.email = bill.email ?? "";
175
175
  form.address.country = country;
176
+ form.token = (_c = tokens[0]) == null ? void 0 : _c.token;
176
177
  setSupportedCardBrands(intersection(cardBrandCodes, supportMethods || []));
177
178
  setIsCheckoutEnabled(true);
178
179
  if (status === "SUCCESS") {
@@ -702,20 +703,20 @@ const Card = w((props, ref) => {
702
703
  processPaymentError(data.error);
703
704
  };
704
705
  const Email = () => {
705
- return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u("div", { className: fieldClassNames, children: /* @__PURE__ */ u(
706
+ return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
706
707
  EmailField,
707
708
  {
708
709
  ref: emailFieldRef,
709
710
  value: form.email,
710
711
  disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
711
712
  }
712
- ) }) });
713
+ ) });
713
714
  };
714
715
  const CardHolderName = () => {
715
716
  return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.holderName.show) && /* @__PURE__ */ u("div", { className: bem("holder-name"), children: /* @__PURE__ */ u(CardHolderNameField, { disabled: (fieldStatus == null ? void 0 : fieldStatus.holderName.disabled) || disabled }) }) });
716
717
  };
717
718
  const Address = () => {
718
- return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u("div", { className: bem("address"), children: /* @__PURE__ */ u(
719
+ return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
719
720
  AddressField,
720
721
  {
721
722
  ref: addressFieldRef,
@@ -723,7 +724,7 @@ const Card = w((props, ref) => {
723
724
  disabled,
724
725
  onChange: (value) => setForm(Object.assign(form, { address: value }))
725
726
  }
726
- ) }) });
727
+ ) });
727
728
  };
728
729
  const ErrorMessage = () => {
729
730
  return /* @__PURE__ */ u(b, { children: !!errorMsg && /* @__PURE__ */ u(Info, { content: errorMsg }) });
@@ -742,7 +743,7 @@ const Card = w((props, ref) => {
742
743
  const CardSplitInfo = () => {
743
744
  var _a2, _b2, _c, _d;
744
745
  return /* @__PURE__ */ u(b, { children: [
745
- /* @__PURE__ */ u("div", { className: fieldClassNames, children: [
746
+ /* @__PURE__ */ u("div", { children: [
746
747
  /* @__PURE__ */ u("div", { className: bem("card-number-wrapper"), children: [
747
748
  /* @__PURE__ */ u(
748
749
  CardNumberField,
@@ -769,7 +770,6 @@ const Card = w((props, ref) => {
769
770
  CardExpireDateField,
770
771
  {
771
772
  security,
772
- className: fieldClassNames,
773
773
  disabled,
774
774
  ref: cardExpireDateFieldRef
775
775
  }
@@ -778,7 +778,6 @@ const Card = w((props, ref) => {
778
778
  CardSecurityCodeField,
779
779
  {
780
780
  security,
781
- className: fieldClassNames,
782
781
  disabled,
783
782
  ref: cardSecurityCodeFieldRef
784
783
  }
@@ -788,13 +787,13 @@ const Card = w((props, ref) => {
788
787
  };
789
788
  const PaymentForm = () => {
790
789
  var _a2;
791
- return /* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
790
+ return /* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
792
791
  Email(),
793
792
  splitCardInfo ? CardSplitInfo() : CardCombineInfo(),
794
793
  CardHolderName(),
795
794
  Address(),
796
795
  ((_a2 = session == null ? void 0 : session.checkout) == null ? void 0 : _a2.paymentType) === PaymentType.RECURRING && RecurringTip(),
797
- /* @__PURE__ */ u("div", { className: bem("footer-wrapper"), children: [
796
+ /* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
798
797
  isShowStoreCheckBox && StoreCheckBox(),
799
798
  ErrorMessage(),
800
799
  !hidePaymentButton && Button()
@@ -803,7 +802,7 @@ const Card = w((props, ref) => {
803
802
  };
804
803
  const FastPaymentForm = () => {
805
804
  var _a2, _b2, _c, _d;
806
- return /* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
805
+ return /* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, bem()), children: [
807
806
  Email(),
808
807
  /* @__PURE__ */ u("div", { className: bem("card-selector-wrapper"), children: [
809
808
  /* @__PURE__ */ u(
@@ -815,14 +814,14 @@ const Card = w((props, ref) => {
815
814
  onClickEdit: onEditOtherCard,
816
815
  onClickChange: onClickChangeCard,
817
816
  onCardChange,
818
- className: bem("card-selector", fieldClassNames),
817
+ className: bem("card-selector"),
819
818
  style: { flex: 2 }
820
819
  }
821
820
  ),
822
821
  /* @__PURE__ */ u(
823
822
  CardSecurityCodeField,
824
823
  {
825
- className: bem("card-security-code", fieldClassNames),
824
+ className: bem("card-security-code"),
826
825
  style: { flex: 1 },
827
826
  disabled,
828
827
  security,
@@ -831,7 +830,7 @@ const Card = w((props, ref) => {
831
830
  )
832
831
  ] }),
833
832
  tokenAddressFilled && Address(),
834
- /* @__PURE__ */ u("div", { className: bem("footer-wrapper"), children: [
833
+ /* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
835
834
  ErrorMessage(),
836
835
  !hidePaymentButton && Button()
837
836
  ] })
@@ -4,6 +4,7 @@ import { useBEM } from "../../hooks/useBEM.js";
4
4
  import "../../core/context.js";
5
5
  import { clamp } from "../../utils/index.js";
6
6
  import "../../out/fraud-detection.js";
7
+ import "../../core/logger.js";
7
8
  import { getSupportedCardBrands, getCardBrandInfo } from "../../utils/card-brand/index.js";
8
9
  import { normalizedClass } from "../../utils/format.js";
9
10
  const { bem } = useBEM("card-brands");
@@ -3,6 +3,7 @@ import { isExpired } from "../../utils/index.js";
3
3
  import { useI18n } from "../../hooks/useI18n.js";
4
4
  import "../../out/fraud-detection.js";
5
5
  import "../../core/context.js";
6
+ import "../../core/logger.js";
6
7
  import "../internal/Form/type.js";
7
8
  import "../internal/Form/context.js";
8
9
  import { FormItem } from "../internal/Form/FormItem.js";
@@ -3,6 +3,7 @@ import "../../utils/card-brand/brands.js";
3
3
  import "../../utils/system-info/get-browser-info.js";
4
4
  import "../../core/context.js";
5
5
  import "../../out/fraud-detection.js";
6
+ import "../../core/logger.js";
6
7
  import { useI18n } from "../../hooks/useI18n.js";
7
8
  import "../internal/Form/type.js";
8
9
  import "../internal/Form/context.js";
@@ -6,6 +6,7 @@ import "../../utils/card-brand/brands.js";
6
6
  import "../../utils/system-info/get-browser-info.js";
7
7
  import { normalizedClass } from "../../utils/format.js";
8
8
  import "../../out/fraud-detection.js";
9
+ import "../../core/logger.js";
9
10
  const { bem } = useBEM("card-no");
10
11
  const CardNo = (props) => {
11
12
  const { value, className, style, disabled } = props;
@@ -3,6 +3,7 @@ import { clamp } from "../../utils/index.js";
3
3
  import { useI18n } from "../../hooks/useI18n.js";
4
4
  import "../../out/fraud-detection.js";
5
5
  import "../../core/context.js";
6
+ import "../../core/logger.js";
6
7
  import "../internal/Form/type.js";
7
8
  import "../internal/Form/context.js";
8
9
  import { FormItem } from "../internal/Form/FormItem.js";
@@ -6,6 +6,7 @@ import { limitedToNumber } from "../../utils/format.js";
6
6
  import { EFieldType } from "../SecuredFieldsProvider/index.js";
7
7
  import "../../core/context.js";
8
8
  import "../../out/fraud-detection.js";
9
+ import "../../core/logger.js";
9
10
  import { useI18n } from "../../hooks/useI18n.js";
10
11
  import "../internal/Form/type.js";
11
12
  import "../internal/Form/context.js";
@@ -5,6 +5,7 @@ import "../../out/fraud-detection.js";
5
5
  import { finCardBrandInfoByCode } from "../../utils/card-brand/index.js";
6
6
  import "../../utils/system-info/get-browser-info.js";
7
7
  import "../../core/context.js";
8
+ import "../../core/logger.js";
8
9
  import "../internal/Form/type.js";
9
10
  import "../internal/Form/context.js";
10
11
  import { FormItem } from "../internal/Form/FormItem.js";
@@ -13,6 +13,7 @@ import "../../core/context.js";
13
13
  import "../../out/fraud-detection.js";
14
14
  import { useBEM } from "../../hooks/useBEM.js";
15
15
  import { useI18n } from "../../hooks/useI18n.js";
16
+ import "../../core/logger.js";
16
17
  import { IconCardNo } from "../internal/icons/IconCardNo.js";
17
18
  const { bem } = useBEM("combined-card-info");
18
19
  const CombinedCardInfo = w(
@@ -45,12 +45,21 @@ import { OnlineBankingLatvia } from "../wallets/OnlineBankingLatvia/OnlineBankin
45
45
  import { OnlineBankingLithuania } from "../wallets/OnlineBankingLithuania/OnlineBankingLithuania.js";
46
46
  import { OnlineBankingIndonesia } from "../wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.js";
47
47
  import { OnlineBankingThailand } from "../wallets/OnlineBankingThailand/OnlineBankingThailand.js";
48
+ import { Swish } from "../wallets/Swish/Swish.js";
49
+ import { Twint } from "../wallets/Twint/Twint.js";
50
+ import { Doku } from "../wallets/Doku/Doku.js";
51
+ import { GoPay } from "../wallets/GoPay/GoPay.js";
52
+ import { Jenius } from "../wallets/Jenius/Jenius.js";
53
+ import { LinkAja } from "../wallets/LinkAja/LinkAja.js";
54
+ import { NuPay } from "../wallets/NuPay/NuPay.js";
55
+ import { Sepa } from "../Sepa/index.js";
48
56
  import { useBEM } from "../../hooks/useBEM.js";
49
57
  import { CoreContext } from "../../core/context.js";
50
58
  import "../../utils/card-brand/brands.js";
51
59
  import "../../utils/system-info/get-browser-info.js";
52
60
  import { PayKKaError } from "../../core/error.js";
53
61
  import "../../out/fraud-detection.js";
62
+ import "../../core/logger.js";
54
63
  import { createCheckoutChild } from "../../core/create-child.js";
55
64
  import { usePayState } from "../../hooks/usePayState.js";
56
65
  import { Accordion } from "../internal/Accordion/Accordion.js";
@@ -98,6 +107,14 @@ import { IconOnlineBankingLatvia } from "../internal/icons/IconOnlineBankingLatv
98
107
  import { IconOnlineBankingLithuania } from "../internal/icons/IconOnlineBankingLithuania.js";
99
108
  import { IconOnlineBankingIndonesia } from "../internal/icons/IconOnlineBankingIndonesia.js";
100
109
  import { IconOnlineBankingThailand } from "../internal/icons/IconOnlineBankingThailand.js";
110
+ import { IconSwish } from "../internal/icons/IconSwish.js";
111
+ import { IconTwint } from "../internal/icons/IconTwint.js";
112
+ import { IconDoku } from "../internal/icons/IconDoku.js";
113
+ import { IconGoPay } from "../internal/icons/IconGoPay.js";
114
+ import { IconJenius } from "../internal/icons/IconJenius.js";
115
+ import { IconLinkAja } from "../internal/icons/IconLinkAja.js";
116
+ import { IconNuPay } from "../internal/icons/IconNuPay.js";
117
+ import { IconSepa } from "../internal/icons/IconSepa.js";
101
118
  import { intersection } from "../../utils/array.js";
102
119
  const dropInSupportedPaymentMethods = [
103
120
  ...CardPaymentMethods,
@@ -105,6 +122,7 @@ const dropInSupportedPaymentMethods = [
105
122
  PaymentMethod.APPLE_PAY,
106
123
  PaymentMethod.ALI_PAY,
107
124
  PaymentMethod.WECHAT_PAY,
125
+ PaymentMethod.SEPA_DEBIT,
108
126
  PaymentMethod.BOOST,
109
127
  PaymentMethod.GRAB_PAY,
110
128
  PaymentMethod.LINE_PAY,
@@ -144,7 +162,14 @@ const dropInSupportedPaymentMethods = [
144
162
  PaymentMethod.ONLINE_BANKING_LATVIA,
145
163
  PaymentMethod.ONLINE_BANKING_LITHUANIA,
146
164
  PaymentMethod.ONLINE_BANKING_INDONESIA,
147
- PaymentMethod.ONLINE_BANKING_THAILAND
165
+ PaymentMethod.ONLINE_BANKING_THAILAND,
166
+ PaymentMethod.SWISH,
167
+ PaymentMethod.TWINT,
168
+ PaymentMethod.DOKU,
169
+ PaymentMethod.GO_PAY,
170
+ PaymentMethod.JENIUS,
171
+ PaymentMethod.LINK_AJA,
172
+ PaymentMethod.NU_PAY
148
173
  ];
149
174
  const PaymentComponentMap = {
150
175
  [PaymentCategory.CARD]: Card,
@@ -190,9 +215,16 @@ const PaymentComponentMap = {
190
215
  [PaymentCategory.ONLINE_BANKING_LITHUANIA]: OnlineBankingLithuania,
191
216
  [PaymentCategory.ONLINE_BANKING_INDONESIA]: OnlineBankingIndonesia,
192
217
  [PaymentCategory.ONLINE_BANKING_THAILAND]: OnlineBankingThailand,
218
+ [PaymentCategory.SWISH]: Swish,
219
+ [PaymentCategory.TWINT]: Twint,
220
+ [PaymentCategory.DOKU]: Doku,
221
+ [PaymentCategory.GO_PAY]: GoPay,
222
+ [PaymentCategory.JENIUS]: Jenius,
223
+ [PaymentCategory.LINK_AJA]: LinkAja,
224
+ [PaymentCategory.NU_PAY]: NuPay,
193
225
  [PaymentCategory.WECHAT_PAY]: WechatPay,
194
- [PaymentCategory.ALI_PAY]: AliPay
195
- // [PaymentCategory.SEPA_DEBIT]: Sepa
226
+ [PaymentCategory.ALI_PAY]: AliPay,
227
+ [PaymentCategory.SEPA_DEBIT]: Sepa
196
228
  };
197
229
  const paymentCategoryOptionMap = {
198
230
  [PaymentCategory.CARD]: {
@@ -359,6 +391,38 @@ const paymentCategoryOptionMap = {
359
391
  icon: IconOnlineBankingThailand,
360
392
  nameKey: "dropIn.onlineBankingThailand.label"
361
393
  },
394
+ [PaymentCategory.SEPA_DEBIT]: {
395
+ icon: IconSepa,
396
+ nameKey: "dropIn.sepaDebit.label"
397
+ },
398
+ [PaymentCategory.SWISH]: {
399
+ icon: IconSwish,
400
+ nameKey: "dropIn.swish.label"
401
+ },
402
+ [PaymentCategory.TWINT]: {
403
+ icon: IconTwint,
404
+ nameKey: "dropIn.twint.label"
405
+ },
406
+ [PaymentCategory.DOKU]: {
407
+ icon: IconDoku,
408
+ nameKey: "dropIn.doku.label"
409
+ },
410
+ [PaymentCategory.GO_PAY]: {
411
+ icon: IconGoPay,
412
+ nameKey: "dropIn.goPay.label"
413
+ },
414
+ [PaymentCategory.JENIUS]: {
415
+ icon: IconJenius,
416
+ nameKey: "dropIn.jenius.label"
417
+ },
418
+ [PaymentCategory.LINK_AJA]: {
419
+ icon: IconLinkAja,
420
+ nameKey: "dropIn.linkAja.label"
421
+ },
422
+ [PaymentCategory.NU_PAY]: {
423
+ icon: IconNuPay,
424
+ nameKey: "dropIn.nuPay.label"
425
+ },
362
426
  [PaymentCategory.ALI_PAY]: {
363
427
  icon: IconAlipayPlus,
364
428
  nameKey: "dropIn.aliPay.label"
@@ -11,6 +11,7 @@ import "../../utils/system-info/get-browser-info.js";
11
11
  import { EMAIL_REG } from "../../utils/reg-exp.js";
12
12
  import "../../core/context.js";
13
13
  import "../../out/fraud-detection.js";
14
+ import "../../core/logger.js";
14
15
  import { useI18n } from "../../hooks/useI18n.js";
15
16
  import "../internal/Form/type.js";
16
17
  import "../internal/Form/context.js";
@@ -95,7 +96,16 @@ const EmailField = w((props, ref) => {
95
96
  rule,
96
97
  className,
97
98
  style,
98
- children: /* @__PURE__ */ u(Input, { value, disabled, maxLength: 100, onInput })
99
+ children: /* @__PURE__ */ u(
100
+ Input,
101
+ {
102
+ value,
103
+ disabled,
104
+ maxLength: 100,
105
+ placeholder: props.placeholder ?? "email@example.com",
106
+ onInput
107
+ }
108
+ )
99
109
  }
100
110
  );
101
111
  });
@@ -5,6 +5,7 @@ import { w, F, h, A, y, u } from "../../core.js";
5
5
  import "../../utils/card-brand/brands.js";
6
6
  import { getBrowserInfo } from "../../utils/system-info/get-browser-info.js";
7
7
  import "../../out/fraud-detection.js";
8
+ import "../../core/logger.js";
8
9
  import { useBEM } from "../../hooks/useBEM.js";
9
10
  import { useI18n } from "../../hooks/useI18n.js";
10
11
  import { createPromise } from "../../utils/create-promise.js";
@@ -15,6 +15,7 @@ import { useBEM } from "../../hooks/useBEM.js";
15
15
  import "../../core/context.js";
16
16
  import { PayKKaError } from "../../core/error.js";
17
17
  import "../../out/fraud-detection.js";
18
+ import "../../core/logger.js";
18
19
  import { usePayState } from "../../hooks/usePayState.js";
19
20
  import { useRetry } from "../../hooks/useRetry.js";
20
21
  import { Info } from "../internal/Info/Info.js";
@@ -7,6 +7,7 @@ import "../../utils/card-brand/brands.js";
7
7
  import "../../utils/system-info/get-browser-info.js";
8
8
  import { isMobile } from "../../utils/system-info/get-system-info.js";
9
9
  import "../../core/context.js";
10
+ import "../../core/logger.js";
10
11
  import { IconRedirect } from "../internal/icons/IconRedirect.js";
11
12
  import { IconScan } from "../internal/icons/IconScan.js";
12
13
  const { bem } = useBEM("guide-card");
@@ -66,7 +67,14 @@ const GuideCard = (props) => {
66
67
  [PaymentCategory.ONLINE_BANKING_LATVIA]: redirectGuideCard,
67
68
  [PaymentCategory.ONLINE_BANKING_LITHUANIA]: redirectGuideCard,
68
69
  [PaymentCategory.ONLINE_BANKING_INDONESIA]: redirectGuideCard,
69
- [PaymentCategory.ONLINE_BANKING_THAILAND]: redirectGuideCard
70
+ [PaymentCategory.ONLINE_BANKING_THAILAND]: redirectGuideCard,
71
+ [PaymentCategory.SWISH]: redirectGuideCard,
72
+ [PaymentCategory.TWINT]: redirectGuideCard,
73
+ [PaymentCategory.DOKU]: redirectGuideCard,
74
+ [PaymentCategory.GO_PAY]: redirectGuideCard,
75
+ [PaymentCategory.JENIUS]: redirectGuideCard,
76
+ [PaymentCategory.LINK_AJA]: redirectGuideCard,
77
+ [PaymentCategory.NU_PAY]: redirectGuideCard
70
78
  };
71
79
  return /* @__PURE__ */ u(b, { children: guideCardInfoMap[type] && /* @__PURE__ */ u("div", { className: bem(), children: /* @__PURE__ */ u("div", { className: bem("content"), children: [
72
80
  /* @__PURE__ */ u("div", { className: bem("icon"), children: (_a = guideCardInfoMap[type]) == null ? void 0 : _a.icon }),
@@ -3,6 +3,7 @@ import { clamp } from "../../utils/index.js";
3
3
  import { useI18n } from "../../hooks/useI18n.js";
4
4
  import "../../out/fraud-detection.js";
5
5
  import "../../core/context.js";
6
+ import "../../core/logger.js";
6
7
  import "../internal/Form/type.js";
7
8
  import "../internal/Form/context.js";
8
9
  import { FormItem } from "../internal/Form/FormItem.js";
@@ -11,8 +12,8 @@ import { Input } from "../internal/Input/Input.js";
11
12
  import "../internal/Input/type.js";
12
13
  import { validateIBAN } from "../../utils/iban.js";
13
14
  import { trimAll, limitedToNumber } from "../../utils/format.js";
14
- function IBANField(props) {
15
- const { className, style } = props;
15
+ const IBANField = (props) => {
16
+ const { className, style, disabled } = props;
16
17
  const inputRef = A(null);
17
18
  const formItemRef = A(null);
18
19
  const { i18n } = useI18n();
@@ -27,7 +28,7 @@ function IBANField(props) {
27
28
  return true;
28
29
  }
29
30
  };
30
- function onInput(event) {
31
+ const onInput = (event) => {
31
32
  var _a;
32
33
  const { currentTarget, inputType } = event;
33
34
  const selectionStart = currentTarget.selectionStart;
@@ -40,7 +41,7 @@ function IBANField(props) {
40
41
  setValue(currentTarget.value = val);
41
42
  currentTarget.setSelectionRange(pos, pos);
42
43
  (_a = props.onInput) == null ? void 0 : _a.call(props, event);
43
- }
44
+ };
44
45
  return /* @__PURE__ */ u(
45
46
  FormItem,
46
47
  {
@@ -59,12 +60,13 @@ function IBANField(props) {
59
60
  maxLength: 42,
60
61
  value,
61
62
  onInput,
63
+ disabled,
62
64
  placeholder: i18n.get("sepa.iban.placeholder")
63
65
  }
64
66
  )
65
67
  }
66
68
  );
67
- }
69
+ };
68
70
  export {
69
71
  IBANField
70
72
  };
@@ -6,6 +6,7 @@ import "../../utils/card-brand/brands.js";
6
6
  import "../../utils/system-info/get-browser-info.js";
7
7
  import { formatAmount, normalizedClass } from "../../utils/format.js";
8
8
  import { CoreContext } from "../../core/context.js";
9
+ import "../../core/logger.js";
9
10
  import { Button } from "../internal/Button/Button2.js";
10
11
  import { IconSafe } from "../internal/icons/IconSafe.js";
11
12
  import { LoadingCheck } from "../internal/LoadingCheck/LoadingCheck.js";
@@ -4,6 +4,7 @@ import "../../utils/card-brand/brands.js";
4
4
  import "../../utils/system-info/get-browser-info.js";
5
5
  import "../../out/fraud-detection.js";
6
6
  import { useBEM } from "../../hooks/useBEM.js";
7
+ import "../../core/logger.js";
7
8
  import { IconInfo } from "../internal/icons/IconInfo.js";
8
9
  const { bem } = useBEM("recurring-tip");
9
10
  function RecurringTip(isCard = true) {
@@ -9,6 +9,7 @@ import "../../utils/system-info/get-browser-info.js";
9
9
  import "../../core/context.js";
10
10
  import { w, A, y, F, q, u } from "../../core.js";
11
11
  import "../../out/fraud-detection.js";
12
+ import "../../core/logger.js";
12
13
  import { SessionMode } from "../../constant.js";
13
14
  import { cdnUrl, cdnOrigin, apiUrl, apiPrefix } from "../../config.js";
14
15
  import { MessageAction } from "../../types/message.js";