@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.
- package/dist/card-checkout-ui.js +21 -21
- package/dist/card-checkout-ui.umd.cjs +21 -21
- package/dist/es/api/http.js +1 -0
- package/dist/es/api/index.js +1 -0
- package/dist/es/api/modules/checkout/map.js +11 -14
- package/dist/es/api/modules/get-browser-params.js +1 -1
- package/dist/es/api/modules/index.js +1 -0
- package/dist/es/api/utils/index.js +1 -0
- package/dist/es/components/AccordionItem/AccordionItem.js +1 -0
- package/dist/es/components/AddressField/index.js +1 -0
- package/dist/es/components/ApplePay/index.js +1 -0
- package/dist/es/components/CPFField/index.js +1 -0
- package/dist/es/components/Card/index.js +16 -17
- package/dist/es/components/CardBrands/index.js +1 -0
- package/dist/es/components/CardExpireDateField/index.js +1 -0
- package/dist/es/components/CardHolderNameField/index.js +1 -0
- package/dist/es/components/CardNo/index.js +1 -0
- package/dist/es/components/CardNumberField/index.js +1 -0
- package/dist/es/components/CardSecurityCodeField/index.js +1 -0
- package/dist/es/components/CardSelector/index.js +1 -0
- package/dist/es/components/CombinedCardInfo/index.js +1 -0
- package/dist/es/components/DropIn/index.js +67 -3
- package/dist/es/components/EmailField/EmailField.js +11 -1
- package/dist/es/components/EncryptedCard/index.js +1 -0
- package/dist/es/components/GooglePay/index.js +1 -0
- package/dist/es/components/GuideCard/index.js +9 -1
- package/dist/es/components/{CardIBANField → IBANField}/index.js +7 -5
- package/dist/es/components/PaymentButton/index.js +1 -0
- package/dist/es/components/RecurringTip/index.js +1 -0
- package/dist/es/components/SecuredFieldsProvider/index.js +1 -0
- package/dist/es/components/Sepa/index.js +141 -250
- package/dist/es/components/SubmitButton/index.js +1 -0
- package/dist/es/components/ThreeDS/index.js +1 -0
- package/dist/es/components/Tip/index.js +1 -0
- package/dist/es/components/business/BlikCodeField/BlikCodeField.js +2 -1
- package/dist/es/components/business/BlikCodeField/index.js +2 -1
- package/dist/es/components/business/NameField/NameField.js +1 -0
- package/dist/es/components/business/NameField/index.js +1 -0
- package/dist/es/components/business/{BlikConfirmModal/BlikConfirmModal.js → PaymentConfirmModal/PaymentConfirmModal.js} +8 -7
- package/dist/es/components/business/{BlikConfirmModal → PaymentConfirmModal}/index.js +2 -1
- package/dist/es/components/business/PhoneField/PhoneField.js +52 -27
- package/dist/es/components/business/PhoneField/area-codes.js +458 -0
- package/dist/es/components/business/PhoneField/config.js +2 -1
- package/dist/es/components/business/PhoneField/index.js +1 -0
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +1 -0
- package/dist/es/components/business/QRCodeModal/index.js +1 -0
- package/dist/es/components/business/SegmentedDigitInput/format.js +1 -0
- package/dist/es/components/business/SegmentedDigitInput/index.js +1 -0
- package/dist/es/components/business/Tooltip/{Tooltip.js → Tooltip2.js} +2 -1
- package/dist/es/components/business/Tooltip/index.js +2 -1
- package/dist/es/components/business/index.js +3 -2
- package/dist/es/components/index.js +8 -0
- package/dist/es/components/internal/Accordion/accordionTransition.js +1 -0
- package/dist/es/components/internal/Accordion/index.js +1 -0
- package/dist/es/components/internal/Button/Button2.js +1 -0
- package/dist/es/components/internal/Button/index.js +1 -0
- package/dist/es/components/internal/CheckBox/CheckBox.js +1 -0
- package/dist/es/components/internal/CheckBox/index.js +1 -0
- package/dist/es/components/internal/Form/Form.js +1 -0
- package/dist/es/components/internal/Form/FormItem.js +1 -0
- package/dist/es/components/internal/Form/type.js +1 -0
- package/dist/es/components/internal/Info/Info.js +1 -0
- package/dist/es/components/internal/Info/index.js +1 -0
- package/dist/es/components/internal/Input/Input.js +1 -0
- package/dist/es/components/internal/Input/type.js +1 -0
- package/dist/es/components/internal/Loading/Loading2.js +1 -0
- package/dist/es/components/internal/Loading/index.js +1 -0
- package/dist/es/components/internal/LoadingCheck/LoadingCheck.js +1 -0
- package/dist/es/components/internal/LoadingCheck/index.js +1 -0
- package/dist/es/components/internal/Modal/Modal.js +1 -0
- package/dist/es/components/internal/QRCode/QRCode.js +1 -0
- package/dist/es/components/internal/QRCode/index.js +1 -0
- package/dist/es/components/internal/Select/Select.js +1 -0
- package/dist/es/components/internal/Select/SelectMenu.js +1 -0
- package/dist/es/components/internal/Select/SelectMenuItem.js +1 -0
- package/dist/es/components/internal/icons/Icon3DSFail.js +1 -0
- package/dist/es/components/internal/icons/Icon3DSInfo.js +1 -0
- package/dist/es/components/internal/icons/Icon3DSSuccess.js +1 -0
- package/dist/es/components/internal/icons/IconAdd.js +1 -0
- package/dist/es/components/internal/icons/IconAlipayPlus.js +1 -0
- package/dist/es/components/internal/icons/IconAmex.js +1 -0
- package/dist/es/components/internal/icons/IconArrowDown.js +1 -0
- package/dist/es/components/internal/icons/IconBancomatPay.js +1 -0
- package/dist/es/components/internal/icons/IconBancontact.js +16 -71
- package/dist/es/components/internal/icons/IconBizum.js +1 -0
- package/dist/es/components/internal/icons/IconBlik.js +60 -542
- package/dist/es/components/internal/icons/IconBoost.js +14 -40
- package/dist/es/components/internal/icons/IconCard.js +1 -0
- package/dist/es/components/internal/icons/IconCard2.js +1 -0
- package/dist/es/components/internal/icons/IconCardNo.js +1 -0
- package/dist/es/components/internal/icons/IconDinnersClub.js +1 -0
- package/dist/es/components/internal/icons/IconDiscover.js +1 -0
- package/dist/es/components/internal/icons/IconDoku.js +31 -0
- package/dist/es/components/internal/icons/IconDragonPay.js +1 -0
- package/dist/es/components/internal/icons/IconEPS.js +1 -0
- package/dist/es/components/internal/icons/IconError.js +1 -0
- package/dist/es/components/internal/icons/IconFpx.js +31 -15
- package/dist/es/components/internal/icons/IconGCash.js +1 -0
- package/dist/es/components/internal/icons/IconGcashComplete.js +1 -0
- package/dist/es/components/internal/icons/IconGoPay.js +31 -0
- package/dist/es/components/internal/icons/IconGrabPay.js +1 -0
- package/dist/es/components/internal/icons/IconIdeal.js +1 -0
- package/dist/es/components/internal/icons/IconInfo.js +1 -0
- package/dist/es/components/internal/icons/IconJcb.js +1 -0
- package/dist/es/components/internal/icons/IconJenius.js +28 -0
- package/dist/es/components/internal/icons/IconLinePay.js +1 -0
- package/dist/es/components/internal/icons/IconLinkAja.js +44 -0
- package/dist/es/components/internal/icons/IconMasterCard.js +1 -0
- package/dist/es/components/internal/icons/IconMayBankQRPay.js +1 -0
- package/dist/es/components/internal/icons/IconMbWay.js +1 -0
- package/dist/es/components/internal/icons/IconMultibanco.js +1 -0
- package/dist/es/components/internal/icons/IconMyBank.js +2 -1
- package/dist/es/components/internal/icons/IconNinePay.js +1 -0
- package/dist/es/components/internal/icons/IconNuPay.js +31 -0
- package/dist/es/components/internal/icons/IconOnlineBankingEstonia.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingFinland.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingIndonesia.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLatvia.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLithuania.js +1 -0
- package/dist/es/components/internal/icons/IconOnlineBankingThailand.js +1 -0
- package/dist/es/components/internal/icons/IconOpayWallet.js +1 -0
- package/dist/es/components/internal/icons/IconOvo.js +1 -0
- package/dist/es/components/internal/icons/IconP24.js +1 -0
- package/dist/es/components/internal/icons/IconPagaWallet.js +1 -0
- package/dist/es/components/internal/icons/IconPayByBank.js +3 -17
- package/dist/es/components/internal/icons/IconPayU.js +1 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +1 -0
- package/dist/es/components/internal/icons/IconPhone.js +1 -0
- package/dist/es/components/internal/icons/IconPicPay.js +1 -0
- package/dist/es/components/internal/icons/IconPix.js +1 -0
- package/dist/es/components/internal/icons/IconRedirect.js +1 -0
- package/dist/es/components/internal/icons/IconSafe.js +1 -0
- package/dist/es/components/internal/icons/IconSatispay.js +1 -0
- package/dist/es/components/internal/icons/IconScan.js +1 -0
- package/dist/es/components/internal/icons/IconSepa.js +36 -0
- package/dist/es/components/internal/icons/IconShopeePay.js +1 -0
- package/dist/es/components/internal/icons/IconSkrill.js +1 -0
- package/dist/es/components/internal/icons/IconSuccess.js +1 -0
- package/dist/es/components/internal/icons/IconSwish.js +35 -0
- package/dist/es/components/internal/icons/IconSwitch.js +1 -0
- package/dist/es/components/internal/icons/IconTNGWallet.js +1 -0
- package/dist/es/components/internal/icons/IconTick.js +1 -0
- package/dist/es/components/internal/icons/IconTrustly.js +1 -0
- package/dist/es/components/internal/icons/IconTwint.js +54 -0
- package/dist/es/components/internal/icons/IconUnionPay.js +1 -0
- package/dist/es/components/internal/icons/IconUpi.js +6 -15
- package/dist/es/components/internal/icons/IconVietqr.js +1 -0
- package/dist/es/components/internal/icons/IconVietqrComplete.js +1 -0
- package/dist/es/components/internal/icons/IconVisa.js +1 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobal.js +1 -0
- package/dist/es/components/internal/icons/IconWechatPayGlobalComplete.js +1 -0
- package/dist/es/components/internal/icons/IconZalopay.js +1 -0
- package/dist/es/components/internal/icons/IconZalopayComplete.js +1 -0
- package/dist/es/components/internal/icons/iconChecked.js +1 -0
- package/dist/es/components/internal/icons/index.js +1 -0
- package/dist/es/components/wallets/AliPay/AliPay.js +5 -4
- package/dist/es/components/wallets/BancomatPay/BancomatPay.js +9 -9
- package/dist/es/components/wallets/Bancontact/Bancontact.js +14 -14
- package/dist/es/components/wallets/Bizum/Bizum.js +9 -9
- package/dist/es/components/wallets/Blik/Blik.js +16 -16
- package/dist/es/components/wallets/Boost/Boost.js +10 -10
- package/dist/es/components/wallets/Doku/Doku.js +207 -0
- package/dist/es/components/wallets/Doku/doku2.js +1 -0
- package/dist/es/components/wallets/Doku/index.js +1 -0
- package/dist/es/components/wallets/Doku/type.js +1 -0
- package/dist/es/components/wallets/DragonPay/DragonPay.js +10 -10
- package/dist/es/components/wallets/EPS/EPS.js +20 -26
- package/dist/es/components/wallets/Fpx/Fpx.js +10 -10
- package/dist/es/components/wallets/GCash/GCash.js +13 -13
- package/dist/es/components/wallets/GoPay/GoPay.js +196 -0
- package/dist/es/components/wallets/GoPay/go-pay.js +1 -0
- package/dist/es/components/wallets/GoPay/index.js +1 -0
- package/dist/es/components/wallets/GoPay/type.js +1 -0
- package/dist/es/components/wallets/GrabPay/GrabPay.js +10 -10
- package/dist/es/components/wallets/IDeal/IDeal.js +18 -17
- package/dist/es/components/wallets/Jenius/Jenius.js +207 -0
- package/dist/es/components/wallets/Jenius/index.js +1 -0
- package/dist/es/components/wallets/Jenius/jenius2.js +1 -0
- package/dist/es/components/wallets/Jenius/type.js +1 -0
- package/dist/es/components/wallets/LinePay/LinePay.js +10 -10
- package/dist/es/components/wallets/LinkAja/LinkAja.js +207 -0
- package/dist/es/components/wallets/LinkAja/index.js +1 -0
- package/dist/es/components/wallets/LinkAja/link-aja.js +1 -0
- package/dist/es/components/wallets/LinkAja/type.js +1 -0
- package/dist/es/components/wallets/MayBankQRPay/MayBankQRPay.js +10 -10
- package/dist/es/components/wallets/MbWay/MbWay.js +10 -10
- package/dist/es/components/wallets/Multibanco/Multibanco.js +10 -10
- package/dist/es/components/wallets/MyBank/MyBank.js +11 -11
- package/dist/es/components/wallets/NinePay/NinePay.js +10 -10
- package/dist/es/components/wallets/NuPay/NuPay.js +297 -0
- package/dist/es/components/wallets/NuPay/index.js +1 -0
- package/dist/es/components/wallets/NuPay/nu-pay.js +1 -0
- package/dist/es/components/wallets/NuPay/type.js +1 -0
- package/dist/es/components/wallets/OVO/OVO.js +19 -18
- package/dist/es/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.js +10 -10
- package/dist/es/components/wallets/OnlineBankingFinland/OnlineBankingFinland.js +10 -10
- package/dist/es/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.js +10 -10
- package/dist/es/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.js +10 -10
- package/dist/es/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.js +10 -10
- package/dist/es/components/wallets/OnlineBankingThailand/OnlineBankingThailand.js +10 -10
- package/dist/es/components/wallets/OpayWallet/OpayWallet.js +10 -10
- package/dist/es/components/wallets/P24/P24.js +14 -14
- package/dist/es/components/wallets/PagaWallet/PagaWallet.js +10 -10
- package/dist/es/components/wallets/PayByBank/PayByBank.js +15 -20
- package/dist/es/components/wallets/PayU/PayU.js +17 -20
- package/dist/es/components/wallets/Paymaya/Paymaya.js +10 -10
- package/dist/es/components/wallets/PicPay/PicPay.js +11 -11
- package/dist/es/components/wallets/Pix/Pix.js +11 -11
- package/dist/es/components/wallets/Satispay/Satispay.js +10 -10
- package/dist/es/components/wallets/ShopeePay/ShopeePay.js +9 -9
- package/dist/es/components/wallets/Skrill/Skrill.js +13 -13
- package/dist/es/components/wallets/Swish/Swish.js +180 -0
- package/dist/es/components/wallets/Swish/index.js +1 -0
- package/dist/es/components/wallets/Swish/swish2.js +1 -0
- package/dist/es/components/wallets/Swish/type.js +1 -0
- package/dist/es/components/wallets/TNGWallet/TNGWallet.js +9 -9
- package/dist/es/components/wallets/Trustly/Trustly.js +12 -12
- package/dist/es/components/wallets/Twint/Twint.js +196 -0
- package/dist/es/components/wallets/Twint/index.js +1 -0
- package/dist/es/components/wallets/Twint/twint2.js +1 -0
- package/dist/es/components/wallets/Twint/type.js +1 -0
- package/dist/es/components/wallets/Upi/Upi.js +10 -10
- package/dist/es/components/wallets/Vietqr/Vietqr.js +13 -13
- package/dist/es/components/wallets/WechatPay/WechatPay.js +13 -13
- package/dist/es/components/wallets/Zalopay/Zalopay.js +13 -13
- package/dist/es/components/wallets/index.js +7 -0
- package/dist/es/config.js +1 -0
- package/dist/es/constant.js +48 -4
- package/dist/es/core/address.js +1 -0
- package/dist/es/core/create.js +1 -0
- package/dist/es/core/index.js +1 -0
- package/dist/es/core/logger.js +27 -12
- package/dist/es/core/payment.js +1 -0
- package/dist/es/core/theme.js +1 -0
- package/dist/es/core.js +30 -30
- package/dist/es/hooks/index.js +1 -0
- package/dist/es/hooks/useBEM.js +1 -0
- package/dist/es/hooks/useBaseWallet.js +8 -2
- package/dist/es/hooks/useI18n.js +1 -0
- package/dist/es/hooks/usePayState.js +1 -0
- package/dist/es/i18n/I18n.js +1 -0
- package/dist/es/i18n/index.js +1 -0
- package/dist/es/i18n/locales/cs-CZ.js +146 -0
- package/dist/es/i18n/locales/da-DK.js +146 -0
- package/dist/es/i18n/locales/de-DE.js +13 -17
- package/dist/es/i18n/locales/en-GB.js +13 -17
- package/dist/es/i18n/locales/es-ES.js +13 -17
- package/dist/es/i18n/locales/fi-FI.js +146 -0
- package/dist/es/i18n/locales/fil-PH.js +146 -0
- package/dist/es/i18n/locales/fr-FR.js +13 -17
- package/dist/es/i18n/locales/hi-IN.js +146 -0
- package/dist/es/i18n/locales/id-ID.js +146 -0
- package/dist/es/i18n/locales/index.js +30 -3
- package/dist/es/i18n/locales/it-IT.js +146 -0
- package/dist/es/i18n/locales/ja-JP.js +13 -17
- package/dist/es/i18n/locales/ko-KR.js +13 -17
- package/dist/es/i18n/locales/ms-MY.js +146 -0
- package/dist/es/i18n/locales/nb-NO.js +146 -0
- package/dist/es/i18n/locales/nl-NL.js +13 -17
- package/dist/es/i18n/locales/pl-PL.js +146 -0
- package/dist/es/i18n/locales/pt-PT.js +13 -17
- package/dist/es/i18n/locales/ru-RU.js +13 -17
- package/dist/es/i18n/locales/sv-SE.js +146 -0
- package/dist/es/i18n/locales/th-TH.js +146 -0
- package/dist/es/i18n/locales/zh-CN.js +13 -17
- package/dist/es/i18n/locales/zh-HK.js +13 -17
- package/dist/es/i18n/locales/zh-TW.js +13 -17
- package/dist/es/i18n/util.js +12 -8
- package/dist/es/index.js +16 -1
- package/dist/es/out/base-fraud-detection.js +1 -0
- package/dist/es/out/config.js +2 -2
- package/dist/es/out/paykka-detection.js +1 -0
- package/dist/es/out/stripe-radar.js +2 -1
- package/dist/es/out/worldpay-ddc.js +1 -0
- package/dist/es/style.css +1 -1
- package/dist/es/utils/bem.js +1 -0
- package/dist/es/utils/card-brand/brands.js +1 -0
- package/dist/es/utils/index.js +1 -0
- package/dist/style.css +1 -1
- package/dist/types/api/modules/checkout/map.d.ts +7 -0
- package/dist/types/api/modules/checkout/type.d.ts +2 -1
- package/dist/types/components/ApplePay/hooks/useApplePay.d.ts +1 -0
- package/dist/types/components/ApplePay/type.d.ts +1 -0
- package/dist/types/components/DropIn/type.d.ts +1 -1
- package/dist/types/components/EmailField/type.d.ts +1 -1
- package/dist/types/components/IBANField/IBANField.d.ts +2 -0
- package/dist/types/components/{CardIBANField → IBANField}/type.d.ts +1 -1
- package/dist/types/components/Sepa/Sepa.d.ts +5 -0
- package/dist/types/components/Sepa/type.d.ts +4 -12
- package/dist/types/components/business/PaymentConfirmModal/PaymentConfirmModal.d.ts +6 -0
- package/dist/types/components/business/PaymentConfirmModal/index.d.ts +2 -0
- package/dist/types/components/business/{BlikConfirmModal → PaymentConfirmModal}/type.d.ts +1 -1
- package/dist/types/components/business/PhoneField/area-codes.d.ts +253 -0
- package/dist/types/components/business/PhoneField/index.d.ts +1 -0
- package/dist/types/components/business/PhoneField/type.d.ts +4 -0
- package/dist/types/components/business/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/internal/icons/IconDoku.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGoPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconJenius.d.ts +2 -0
- package/dist/types/components/internal/icons/IconLinkAja.d.ts +2 -0
- package/dist/types/components/internal/icons/IconNuPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconSepa.d.ts +2 -0
- package/dist/types/components/internal/icons/IconSwish.d.ts +2 -0
- package/dist/types/components/internal/icons/IconTwint.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +8 -0
- package/dist/types/components/wallets/Doku/Doku.d.ts +15 -0
- package/dist/types/components/wallets/Doku/index.d.ts +2 -0
- package/dist/types/components/wallets/Doku/type.d.ts +7 -0
- package/dist/types/components/wallets/DragonPay/DragonPay.d.ts +1 -1
- package/dist/types/components/wallets/EPS/EPS.d.ts +1 -1
- package/dist/types/components/wallets/GoPay/GoPay.d.ts +16 -0
- package/dist/types/components/wallets/GoPay/index.d.ts +2 -0
- package/dist/types/components/wallets/GoPay/type.d.ts +7 -0
- package/dist/types/components/wallets/IDeal/IDeal.d.ts +1 -1
- package/dist/types/components/wallets/Jenius/Jenius.d.ts +15 -0
- package/dist/types/components/wallets/Jenius/index.d.ts +2 -0
- package/dist/types/components/wallets/Jenius/type.d.ts +7 -0
- package/dist/types/components/wallets/LinkAja/LinkAja.d.ts +15 -0
- package/dist/types/components/wallets/LinkAja/index.d.ts +2 -0
- package/dist/types/components/wallets/LinkAja/type.d.ts +7 -0
- package/dist/types/components/wallets/MyBank/MyBank.d.ts +1 -0
- package/dist/types/components/wallets/NuPay/NuPay.d.ts +15 -0
- package/dist/types/components/wallets/NuPay/index.d.ts +2 -0
- package/dist/types/components/wallets/NuPay/type.d.ts +7 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.d.ts +1 -0
- package/dist/types/components/wallets/OnlineBankingFinland/OnlineBankingFinland.d.ts +1 -0
- package/dist/types/components/wallets/PayByBank/PayByBank.d.ts +1 -1
- package/dist/types/components/wallets/PayU/PayU.d.ts +2 -2
- package/dist/types/components/wallets/Swish/Swish.d.ts +15 -0
- package/dist/types/components/wallets/Swish/index.d.ts +2 -0
- package/dist/types/components/wallets/Swish/type.d.ts +7 -0
- package/dist/types/components/wallets/Twint/Twint.d.ts +16 -0
- package/dist/types/components/wallets/Twint/index.d.ts +2 -0
- package/dist/types/components/wallets/Twint/type.d.ts +7 -0
- package/dist/types/components/wallets/index.d.ts +7 -0
- package/dist/types/constant.d.ts +21 -7
- package/dist/types/core/logger.d.ts +1 -0
- package/dist/types/hooks/useBaseWallet.d.ts +6 -1
- package/dist/types/i18n/locales/cs-CZ.d.ts +128 -0
- package/dist/types/i18n/locales/da-DK.d.ts +128 -0
- package/dist/types/i18n/locales/de-DE.d.ts +12 -15
- package/dist/types/i18n/locales/en-GB.d.ts +12 -15
- package/dist/types/i18n/locales/es-ES.d.ts +12 -15
- package/dist/types/i18n/locales/fi-FI.d.ts +128 -0
- package/dist/types/i18n/locales/fil-PH.d.ts +128 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +12 -15
- package/dist/types/i18n/locales/hi-IN.d.ts +128 -0
- package/dist/types/i18n/locales/id-ID.d.ts +128 -0
- package/dist/types/i18n/locales/index.d.ts +24 -0
- package/dist/types/i18n/locales/it-IT.d.ts +128 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +12 -15
- package/dist/types/i18n/locales/ko-KR.d.ts +12 -15
- package/dist/types/i18n/locales/ms-MY.d.ts +128 -0
- package/dist/types/i18n/locales/nb-NO.d.ts +128 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +12 -15
- package/dist/types/i18n/locales/pl-PL.d.ts +128 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +12 -15
- package/dist/types/i18n/locales/ru-RU.d.ts +12 -15
- package/dist/types/i18n/locales/sv-SE.d.ts +128 -0
- package/dist/types/i18n/locales/th-TH.d.ts +128 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +12 -15
- package/dist/types/i18n/locales/zh-HK.d.ts +12 -15
- package/dist/types/i18n/locales/zh-TW.d.ts +12 -15
- package/dist/types/i18n/util.d.ts +1 -1
- package/dist/types/out/config.d.ts +4 -4
- package/package.json +1 -1
- package/dist/es/components/AccountNameField/index.js +0 -50
- package/dist/types/components/AccountNameField/AccountNameField.d.ts +0 -2
- package/dist/types/components/AccountNameField/index.d.ts +0 -2
- package/dist/types/components/AccountNameField/type.d.ts +0 -4
- package/dist/types/components/CardIBANField/IBANField.d.ts +0 -2
- package/dist/types/components/business/BlikConfirmModal/BlikConfirmModal.d.ts +0 -6
- package/dist/types/components/business/BlikConfirmModal/index.d.ts +0 -2
- /package/dist/es/components/business/{BlikConfirmModal/blik-confirm-modal.js → PaymentConfirmModal/payment-confirm-modal.js} +0 -0
- /package/dist/es/components/business/{BlikConfirmModal → PaymentConfirmModal}/type.js +0 -0
- /package/dist/es/components/business/Tooltip/{tooltip2.js → tooltip.js} +0 -0
- /package/dist/types/components/{CardIBANField → IBANField}/index.d.ts +0 -0
|
@@ -6,6 +6,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
7
|
import "../../../core/context.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
const IconWechatPayGlobal = ({ size, style, className }) => {
|
|
10
11
|
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
12
|
return /* @__PURE__ */ u(
|
|
@@ -6,6 +6,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
7
|
import "../../../core/context.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
const IconWechatPayGlobalComplete = ({ size, style, className }) => {
|
|
10
11
|
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
12
|
return /* @__PURE__ */ u(
|
|
@@ -6,6 +6,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
7
|
import "../../../core/context.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
const IconZalopay = ({ size, style, className }) => {
|
|
10
11
|
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
12
|
return /* @__PURE__ */ u(
|
|
@@ -6,6 +6,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
7
|
import "../../../core/context.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
const IconZalopayComplete = ({ size, style, className }) => {
|
|
10
11
|
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
12
|
return /* @__PURE__ */ u(
|
|
@@ -6,6 +6,7 @@ import "../../../utils/system-info/get-browser-info.js";
|
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
7
|
import "../../../core/context.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
function IconChecked({ size, style, className }) {
|
|
10
11
|
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
12
|
return /* @__PURE__ */ u(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { w, A, h, F, y, u, b } from "../../../core.js";
|
|
2
2
|
import "./ali-pay.js";
|
|
3
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PaymentType } from "../../../constant.js";
|
|
3
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PaymentType, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
4
4
|
import { CoreContext } from "../../../core/context.js";
|
|
5
5
|
import "../../../utils/card-brand/brands.js";
|
|
6
6
|
import "../../../utils/system-info/get-browser-info.js";
|
|
@@ -9,6 +9,7 @@ import "../../../out/fraud-detection.js";
|
|
|
9
9
|
import { useBEM } from "../../../hooks/useBEM.js";
|
|
10
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
11
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
12
|
+
import "../../../core/logger.js";
|
|
12
13
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
13
14
|
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
14
15
|
import "../../internal/Form/type.js";
|
|
@@ -84,7 +85,7 @@ const AliPay = w((props, ref) => {
|
|
|
84
85
|
y(() => {
|
|
85
86
|
if (!sessionReady)
|
|
86
87
|
return;
|
|
87
|
-
const { bill = {}
|
|
88
|
+
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
88
89
|
country && addressCore.setCountry(country);
|
|
89
90
|
form.email = bill.email ?? "";
|
|
90
91
|
form.address.country = country;
|
|
@@ -168,11 +169,11 @@ const AliPay = w((props, ref) => {
|
|
|
168
169
|
},
|
|
169
170
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u(b, { children: [
|
|
170
171
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.ALI_PAY }),
|
|
171
|
-
/* @__PURE__ */ u("div", { className: core.theme.className, children: /* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
172
|
+
/* @__PURE__ */ u("div", { className: core.theme.className, children: /* @__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: [
|
|
172
173
|
Email(),
|
|
173
174
|
Address(),
|
|
174
175
|
(session == null ? void 0 : session.checkout.paymentType) === PaymentType.RECURRING && RecurringTip(),
|
|
175
|
-
/* @__PURE__ */ u("div", { className:
|
|
176
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
176
177
|
ErrorMessage(),
|
|
177
178
|
!hidePaymentButton && Button()
|
|
178
179
|
] })
|
|
@@ -4,8 +4,9 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
12
|
import "./bancomat-pay.js";
|
|
@@ -19,7 +20,6 @@ import { PaymentButton } from "../../PaymentButton/index.js";
|
|
|
19
20
|
import { Info } from "../../internal/Info/Info.js";
|
|
20
21
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
21
22
|
const { bem } = useBEM("bancomat-pay");
|
|
22
|
-
const fieldClassNames = bem("field");
|
|
23
23
|
const CURR_PAYMENT_METHOD = PaymentMethod.BANCOMAT_PAY;
|
|
24
24
|
const DEFAULT_COUNTRY = "IT";
|
|
25
25
|
const BancomatPay = w((props, ref) => {
|
|
@@ -74,9 +74,9 @@ const BancomatPay = w((props, ref) => {
|
|
|
74
74
|
} = useBaseWallet(CURR_PAYMENT_METHOD, props, {
|
|
75
75
|
getFormData: () => ({ ...form })
|
|
76
76
|
});
|
|
77
|
-
const emailState = createEmailCore();
|
|
78
77
|
const emailFieldRef = A(null);
|
|
79
78
|
const addressCore = core.getAddressCore();
|
|
79
|
+
const emailState = createEmailCore();
|
|
80
80
|
const addressFieldRef = A(null);
|
|
81
81
|
const formRef = A(null);
|
|
82
82
|
const [form, setForm] = h({
|
|
@@ -110,15 +110,15 @@ const BancomatPay = w((props, ref) => {
|
|
|
110
110
|
await payment();
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
113
|
+
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
114
114
|
EmailField,
|
|
115
115
|
{
|
|
116
116
|
ref: emailFieldRef,
|
|
117
117
|
value: form.email,
|
|
118
118
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
119
119
|
}
|
|
120
|
-
) })
|
|
121
|
-
const Address = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
120
|
+
) });
|
|
121
|
+
const Address = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
122
122
|
AddressField,
|
|
123
123
|
{
|
|
124
124
|
ref: addressFieldRef,
|
|
@@ -126,7 +126,7 @@ const BancomatPay = w((props, ref) => {
|
|
|
126
126
|
disabled,
|
|
127
127
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
128
128
|
}
|
|
129
|
-
) })
|
|
129
|
+
) });
|
|
130
130
|
const Button = () => /* @__PURE__ */ u(
|
|
131
131
|
PaymentButton,
|
|
132
132
|
{
|
|
@@ -140,10 +140,10 @@ const BancomatPay = w((props, ref) => {
|
|
|
140
140
|
const ErrorMessage = () => /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
141
141
|
return /* @__PURE__ */ u(CoreContext.Provider, { value: { i18n, session, core }, children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
142
142
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.BANCOMAT_PAY }),
|
|
143
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
143
|
+
/* @__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: [
|
|
144
144
|
Email(),
|
|
145
145
|
Address(),
|
|
146
|
-
/* @__PURE__ */ u("div", { className:
|
|
146
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
147
147
|
ErrorMessage(),
|
|
148
148
|
!hidePaymentButton && Button()
|
|
149
149
|
] })
|
|
@@ -4,8 +4,9 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PaymentType } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PaymentType, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
12
|
import "./bancontact2.js";
|
|
@@ -14,7 +15,6 @@ import "../../internal/Form/type.js";
|
|
|
14
15
|
import "../../internal/Form/context.js";
|
|
15
16
|
import "../../internal/Form/FormItem.js";
|
|
16
17
|
import { Form } from "../../internal/Form/Form.js";
|
|
17
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
18
18
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
19
19
|
import { Info } from "../../internal/Info/Info.js";
|
|
20
20
|
import "../../internal/Modal/Modal.js";
|
|
@@ -25,15 +25,15 @@ import "../../internal/Input/Input.js";
|
|
|
25
25
|
import "../../internal/Input/type.js";
|
|
26
26
|
import "../../business/PhoneField/config.js";
|
|
27
27
|
import "../../business/PhoneField/phone-field.js";
|
|
28
|
-
import "../../business/Tooltip/
|
|
28
|
+
import "../../business/Tooltip/tooltip.js";
|
|
29
29
|
import "../../business/BlikCodeField/blik-code-field.js";
|
|
30
30
|
import "../../internal/Button/button.js";
|
|
31
|
-
import "../../business/
|
|
31
|
+
import "../../business/PaymentConfirmModal/payment-confirm-modal.js";
|
|
32
32
|
import "../../internal/LoadingCheck/loading-check.js";
|
|
33
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
33
34
|
import { RecurringTip } from "../../RecurringTip/index.js";
|
|
34
35
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
35
36
|
const { bem } = useBEM("bancontact");
|
|
36
|
-
const fieldClassNames = bem("field");
|
|
37
37
|
const CURR_PAYMENT_METHOD = PaymentMethod.BANCONTACT;
|
|
38
38
|
const Bancontact = w((props, ref) => {
|
|
39
39
|
var _a;
|
|
@@ -73,7 +73,7 @@ const Bancontact = w((props, ref) => {
|
|
|
73
73
|
y(() => {
|
|
74
74
|
if (!sessionReady)
|
|
75
75
|
return;
|
|
76
|
-
const { bill = {}
|
|
76
|
+
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
77
77
|
country && addressCore.setCountry(country);
|
|
78
78
|
form.email = bill.email ?? "";
|
|
79
79
|
form.address.country = country;
|
|
@@ -97,9 +97,9 @@ const Bancontact = w((props, ref) => {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
const emailState = createEmailCore();
|
|
101
100
|
const emailFieldRef = A(null);
|
|
102
101
|
const addressCore = core.getAddressCore();
|
|
102
|
+
const emailState = createEmailCore();
|
|
103
103
|
const addressFieldRef = A(null);
|
|
104
104
|
const formRef = A(null);
|
|
105
105
|
const [form, setForm] = h({
|
|
@@ -134,17 +134,17 @@ const Bancontact = w((props, ref) => {
|
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
136
|
const Email = () => {
|
|
137
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
137
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
138
138
|
EmailField,
|
|
139
139
|
{
|
|
140
140
|
ref: emailFieldRef,
|
|
141
141
|
value: form.email,
|
|
142
142
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
143
143
|
}
|
|
144
|
-
) })
|
|
144
|
+
) });
|
|
145
145
|
};
|
|
146
146
|
const Address = () => {
|
|
147
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
147
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
148
148
|
AddressField,
|
|
149
149
|
{
|
|
150
150
|
ref: addressFieldRef,
|
|
@@ -152,7 +152,7 @@ const Bancontact = w((props, ref) => {
|
|
|
152
152
|
value: form.address,
|
|
153
153
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
154
154
|
}
|
|
155
|
-
) })
|
|
155
|
+
) });
|
|
156
156
|
};
|
|
157
157
|
const Button = () => {
|
|
158
158
|
return /* @__PURE__ */ u(
|
|
@@ -179,12 +179,12 @@ const Bancontact = w((props, ref) => {
|
|
|
179
179
|
},
|
|
180
180
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
181
181
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.BANCONTACT }),
|
|
182
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
182
|
+
/* @__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: [
|
|
183
183
|
Email(),
|
|
184
|
-
/* @__PURE__ */ u(
|
|
184
|
+
/* @__PURE__ */ u(NameField, { disabled }),
|
|
185
185
|
Address(),
|
|
186
186
|
((_a = session == null ? void 0 : session.checkout) == null ? void 0 : _a.paymentType) === PaymentType.RECURRING && RecurringTip(false),
|
|
187
|
-
/* @__PURE__ */ u("div", { className:
|
|
187
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
188
188
|
ErrorMessage(),
|
|
189
189
|
!hidePaymentButton && Button()
|
|
190
190
|
] })
|
|
@@ -4,8 +4,9 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
12
|
import "./bizum2.js";
|
|
@@ -19,7 +20,6 @@ import { PaymentButton } from "../../PaymentButton/index.js";
|
|
|
19
20
|
import { Info } from "../../internal/Info/Info.js";
|
|
20
21
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
21
22
|
const { bem } = useBEM("bizum");
|
|
22
|
-
const fieldClassNames = bem("field");
|
|
23
23
|
const CURR_PAYMENT_METHOD = PaymentMethod.BIZUM;
|
|
24
24
|
const DEFAULT_COUNTRY = "ES";
|
|
25
25
|
const Bizum = w((props, ref) => {
|
|
@@ -74,9 +74,9 @@ const Bizum = w((props, ref) => {
|
|
|
74
74
|
} = useBaseWallet(CURR_PAYMENT_METHOD, props, {
|
|
75
75
|
getFormData: () => ({ ...form })
|
|
76
76
|
});
|
|
77
|
-
const emailState = createEmailCore();
|
|
78
77
|
const emailFieldRef = A(null);
|
|
79
78
|
const addressCore = core.getAddressCore();
|
|
79
|
+
const emailState = createEmailCore();
|
|
80
80
|
const addressFieldRef = A(null);
|
|
81
81
|
const formRef = A(null);
|
|
82
82
|
const [form, setForm] = h({
|
|
@@ -110,15 +110,15 @@ const Bizum = w((props, ref) => {
|
|
|
110
110
|
await payment();
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
113
|
+
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
114
114
|
EmailField,
|
|
115
115
|
{
|
|
116
116
|
ref: emailFieldRef,
|
|
117
117
|
value: form.email,
|
|
118
118
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
119
119
|
}
|
|
120
|
-
) })
|
|
121
|
-
const Address = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
120
|
+
) });
|
|
121
|
+
const Address = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
122
122
|
AddressField,
|
|
123
123
|
{
|
|
124
124
|
ref: addressFieldRef,
|
|
@@ -126,7 +126,7 @@ const Bizum = w((props, ref) => {
|
|
|
126
126
|
disabled,
|
|
127
127
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
128
128
|
}
|
|
129
|
-
) })
|
|
129
|
+
) });
|
|
130
130
|
const Button = () => /* @__PURE__ */ u(
|
|
131
131
|
PaymentButton,
|
|
132
132
|
{
|
|
@@ -140,10 +140,10 @@ const Bizum = w((props, ref) => {
|
|
|
140
140
|
const ErrorMessage = () => /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
141
141
|
return /* @__PURE__ */ u(CoreContext.Provider, { value: { i18n, session, core }, children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
142
142
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.BIZUM }),
|
|
143
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
143
|
+
/* @__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: [
|
|
144
144
|
Email(),
|
|
145
145
|
Address(),
|
|
146
|
-
/* @__PURE__ */ u("div", { className:
|
|
146
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
147
147
|
ErrorMessage(),
|
|
148
148
|
!hidePaymentButton && Button()
|
|
149
149
|
] })
|
|
@@ -4,8 +4,9 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass, limitedToNumber } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, COMMON_CLASS_NAME, PaymentType } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PaymentType, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
12
|
import "./blik2.js";
|
|
@@ -13,7 +14,6 @@ import "../../internal/Form/type.js";
|
|
|
13
14
|
import "../../internal/Form/context.js";
|
|
14
15
|
import "../../internal/Form/FormItem.js";
|
|
15
16
|
import { Form } from "../../internal/Form/Form.js";
|
|
16
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
17
17
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
18
18
|
import { Info } from "../../internal/Info/Info.js";
|
|
19
19
|
import "../../internal/Modal/Modal.js";
|
|
@@ -25,12 +25,12 @@ import "../../internal/Input/type.js";
|
|
|
25
25
|
import "../../business/PhoneField/config.js";
|
|
26
26
|
import "../../business/PhoneField/phone-field.js";
|
|
27
27
|
import { BlikCodeField } from "../../business/BlikCodeField/BlikCodeField.js";
|
|
28
|
-
import {
|
|
29
|
-
import "../../business/Tooltip/
|
|
28
|
+
import { PaymentConfirmModal } from "../../business/PaymentConfirmModal/PaymentConfirmModal.js";
|
|
29
|
+
import "../../business/Tooltip/tooltip.js";
|
|
30
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
30
31
|
import { RecurringTip } from "../../RecurringTip/index.js";
|
|
31
32
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
32
33
|
const { bem } = useBEM("blik");
|
|
33
|
-
const fieldClassNames = bem("field");
|
|
34
34
|
const CURR_PAYMENT_METHOD = PaymentMethod.BLIK;
|
|
35
35
|
const Blik = w((props, ref) => {
|
|
36
36
|
var _a;
|
|
@@ -69,7 +69,7 @@ const Blik = w((props, ref) => {
|
|
|
69
69
|
y(() => {
|
|
70
70
|
if (!sessionReady)
|
|
71
71
|
return;
|
|
72
|
-
const { bill = {}
|
|
72
|
+
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
73
73
|
country && addressCore.setCountry(country);
|
|
74
74
|
form.email = bill.email ?? "";
|
|
75
75
|
form.address.country = country;
|
|
@@ -132,9 +132,9 @@ const Blik = w((props, ref) => {
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
const [showConfirmModal, setShowConfirmModal] = h(false);
|
|
135
|
-
const emailState = createEmailCore();
|
|
136
135
|
const emailFieldRef = A(null);
|
|
137
136
|
const addressCore = core.getAddressCore();
|
|
137
|
+
const emailState = createEmailCore();
|
|
138
138
|
const addressFieldRef = A(null);
|
|
139
139
|
const formRef = A(null);
|
|
140
140
|
const [form, setForm] = h({
|
|
@@ -170,17 +170,17 @@ const Blik = w((props, ref) => {
|
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
172
|
const Email = () => {
|
|
173
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
173
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
174
174
|
EmailField,
|
|
175
175
|
{
|
|
176
176
|
ref: emailFieldRef,
|
|
177
177
|
value: form.email,
|
|
178
178
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
179
179
|
}
|
|
180
|
-
) })
|
|
180
|
+
) });
|
|
181
181
|
};
|
|
182
182
|
const Address = () => {
|
|
183
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
183
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
184
184
|
AddressField,
|
|
185
185
|
{
|
|
186
186
|
ref: addressFieldRef,
|
|
@@ -188,7 +188,7 @@ const Blik = w((props, ref) => {
|
|
|
188
188
|
disabled,
|
|
189
189
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
190
190
|
}
|
|
191
|
-
) })
|
|
191
|
+
) });
|
|
192
192
|
};
|
|
193
193
|
const Button = () => {
|
|
194
194
|
return /* @__PURE__ */ u(
|
|
@@ -214,18 +214,18 @@ const Blik = w((props, ref) => {
|
|
|
214
214
|
core
|
|
215
215
|
},
|
|
216
216
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u(b, { children: [
|
|
217
|
-
/* @__PURE__ */ u("div", { className: core.theme.className, children: /* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
217
|
+
/* @__PURE__ */ u("div", { className: core.theme.className, children: /* @__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: [
|
|
218
218
|
Email(),
|
|
219
|
-
/* @__PURE__ */ u(
|
|
219
|
+
/* @__PURE__ */ u(NameField, { disabled }),
|
|
220
220
|
Address(),
|
|
221
|
-
/* @__PURE__ */ u("div", {
|
|
221
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(BlikCodeField, { disabled }) }),
|
|
222
222
|
((_a = session == null ? void 0 : session.checkout) == null ? void 0 : _a.paymentType) === PaymentType.RECURRING && RecurringTip(false),
|
|
223
|
-
/* @__PURE__ */ u("div", { className:
|
|
223
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
224
224
|
ErrorMessage(),
|
|
225
225
|
!hidePaymentButton && Button()
|
|
226
226
|
] })
|
|
227
227
|
] }) }) }),
|
|
228
|
-
/* @__PURE__ */ u(
|
|
228
|
+
/* @__PURE__ */ u(PaymentConfirmModal, { show: showConfirmModal })
|
|
229
229
|
] })
|
|
230
230
|
}
|
|
231
231
|
);
|
|
@@ -4,22 +4,22 @@ import { CoreContext } from "../../../core/context.js";
|
|
|
4
4
|
import "../../../utils/card-brand/brands.js";
|
|
5
5
|
import "../../../utils/system-info/get-browser-info.js";
|
|
6
6
|
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
-
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME, PAY_FORM_CLASS_NAME, PAY_FORM_FOOTER_CLASS_NAME } from "../../../constant.js";
|
|
8
8
|
import "../../../out/fraud-detection.js";
|
|
9
|
+
import "../../../core/logger.js";
|
|
9
10
|
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
11
|
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
|
-
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
12
12
|
import "../../internal/Form/type.js";
|
|
13
13
|
import "../../internal/Form/context.js";
|
|
14
14
|
import "../../internal/Form/FormItem.js";
|
|
15
15
|
import { Form } from "../../internal/Form/Form.js";
|
|
16
16
|
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
17
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
17
18
|
import { Info } from "../../internal/Info/Info.js";
|
|
18
19
|
import "./boost2.js";
|
|
19
20
|
import { GuideCard } from "../../GuideCard/index.js";
|
|
20
21
|
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
21
22
|
const { bem } = useBEM("boost");
|
|
22
|
-
const fieldClassNames = bem("field");
|
|
23
23
|
const CURR_PAYMENT_METHOD = PaymentMethod.BOOST;
|
|
24
24
|
const Boost = w((props, ref) => {
|
|
25
25
|
const {
|
|
@@ -60,8 +60,8 @@ const Boost = w((props, ref) => {
|
|
|
60
60
|
return;
|
|
61
61
|
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
62
62
|
country && addressCore.setCountry(country);
|
|
63
|
-
form.address.country = country;
|
|
64
63
|
form.email = bill.email ?? "";
|
|
64
|
+
form.address.country = country;
|
|
65
65
|
}, [sessionReady]);
|
|
66
66
|
const {
|
|
67
67
|
isEnabled,
|
|
@@ -118,17 +118,17 @@ const Boost = w((props, ref) => {
|
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
120
|
const Email = () => {
|
|
121
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
121
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u(
|
|
122
122
|
EmailField,
|
|
123
123
|
{
|
|
124
124
|
ref: emailFieldRef,
|
|
125
125
|
value: form.email,
|
|
126
126
|
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
127
127
|
}
|
|
128
|
-
) })
|
|
128
|
+
) });
|
|
129
129
|
};
|
|
130
130
|
const Address = () => {
|
|
131
|
-
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
131
|
+
return /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u(
|
|
132
132
|
AddressField,
|
|
133
133
|
{
|
|
134
134
|
ref: addressFieldRef,
|
|
@@ -136,7 +136,7 @@ const Boost = w((props, ref) => {
|
|
|
136
136
|
disabled,
|
|
137
137
|
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
138
138
|
}
|
|
139
|
-
) })
|
|
139
|
+
) });
|
|
140
140
|
};
|
|
141
141
|
const Button = () => {
|
|
142
142
|
return /* @__PURE__ */ u(
|
|
@@ -163,10 +163,10 @@ const Boost = w((props, ref) => {
|
|
|
163
163
|
},
|
|
164
164
|
children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
165
165
|
showGuideCard && /* @__PURE__ */ u(GuideCard, { type: PaymentCategory.BOOST }),
|
|
166
|
-
/* @__PURE__ */ u(Form, { form, ref: setFormRef, onFormChange: (form2) => setForm(form2), children: /* @__PURE__ */ u("div", { className: normalizedClass(COMMON_CLASS_NAME, bem()), children: [
|
|
166
|
+
/* @__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: [
|
|
167
167
|
Email(),
|
|
168
168
|
Address(),
|
|
169
|
-
/* @__PURE__ */ u("div", { className:
|
|
169
|
+
/* @__PURE__ */ u("div", { className: PAY_FORM_FOOTER_CLASS_NAME, children: [
|
|
170
170
|
ErrorMessage(),
|
|
171
171
|
!hidePaymentButton && Button()
|
|
172
172
|
] })
|