@paykka/card-checkout-ui 0.16.0 → 0.17.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 +23 -23
- package/dist/card-checkout-ui.umd.cjs +23 -23
- package/dist/es/api/modules/get-browser-params.js +1 -1
- package/dist/es/components/DropIn/index.js +145 -1
- package/dist/es/components/GuideCard/index.js +19 -1
- package/dist/es/components/index.js +18 -0
- package/dist/es/components/internal/icons/IconBancomatPay.js +33 -0
- package/dist/es/components/internal/icons/IconBizum.js +33 -0
- package/dist/es/components/internal/icons/IconDragonPay.js +42 -0
- package/dist/es/components/internal/icons/IconEPS.js +44 -0
- package/dist/es/components/internal/icons/IconFpx.js +42 -0
- package/dist/es/components/internal/icons/IconMbWay.js +33 -0
- package/dist/es/components/internal/icons/IconMultibanco.js +34 -0
- package/dist/es/components/internal/icons/IconMyBank.js +38 -0
- package/dist/es/components/internal/icons/IconOnlineBankingEstonia.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingFinland.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingIndonesia.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLatvia.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingLithuania.js +42 -0
- package/dist/es/components/internal/icons/IconOnlineBankingThailand.js +42 -0
- package/dist/es/components/internal/icons/IconPayByBank.js +42 -0
- package/dist/es/components/internal/icons/IconPayU.js +27 -0
- package/dist/es/components/internal/icons/IconSatispay.js +34 -0
- package/dist/es/components/internal/icons/IconUpi.js +42 -0
- package/dist/es/components/wallets/BancomatPay/BancomatPay.js +155 -0
- package/dist/es/components/wallets/BancomatPay/bancomat-pay.js +1 -0
- package/dist/es/components/wallets/BancomatPay/index.js +1 -0
- package/dist/es/components/wallets/BancomatPay/type.js +1 -0
- package/dist/es/components/wallets/Bizum/Bizum.js +155 -0
- package/dist/es/components/wallets/Bizum/bizum2.js +1 -0
- package/dist/es/components/wallets/Bizum/index.js +1 -0
- package/dist/es/components/wallets/Bizum/type.js +1 -0
- package/dist/es/components/wallets/DragonPay/DragonPay.js +180 -0
- package/dist/es/components/wallets/DragonPay/dragon-pay.js +1 -0
- package/dist/es/components/wallets/DragonPay/index.js +1 -0
- package/dist/es/components/wallets/DragonPay/type.js +1 -0
- package/dist/es/components/wallets/EPS/EPS.js +183 -0
- package/dist/es/components/wallets/EPS/eps2.js +1 -0
- package/dist/es/components/wallets/EPS/index.js +1 -0
- package/dist/es/components/wallets/EPS/type.js +1 -0
- package/dist/es/components/wallets/Fpx/Fpx.js +180 -0
- package/dist/es/components/wallets/Fpx/fpx2.js +1 -0
- package/dist/es/components/wallets/Fpx/index.js +1 -0
- package/dist/es/components/wallets/Fpx/type.js +1 -0
- package/dist/es/components/wallets/MbWay/MbWay.js +155 -0
- package/dist/es/components/wallets/MbWay/index.js +1 -0
- package/dist/es/components/wallets/MbWay/mb-way.js +1 -0
- package/dist/es/components/wallets/MbWay/type.js +1 -0
- package/dist/es/components/wallets/Multibanco/Multibanco.js +155 -0
- package/dist/es/components/wallets/Multibanco/index.js +1 -0
- package/dist/es/components/wallets/Multibanco/multibanco2.js +1 -0
- package/dist/es/components/wallets/Multibanco/type.js +1 -0
- package/dist/es/components/wallets/MyBank/MyBank.js +165 -0
- package/dist/es/components/wallets/MyBank/index.js +1 -0
- package/dist/es/components/wallets/MyBank/my-bank.js +1 -0
- package/dist/es/components/wallets/MyBank/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.js +180 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/online-banking-estonia.js +1 -0
- package/dist/es/components/wallets/OnlineBankingEstonia/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingFinland/OnlineBankingFinland.js +180 -0
- package/dist/es/components/wallets/OnlineBankingFinland/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingFinland/online-banking-finland.js +1 -0
- package/dist/es/components/wallets/OnlineBankingFinland/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.js +180 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/online-banking-indonesia.js +1 -0
- package/dist/es/components/wallets/OnlineBankingIndonesia/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.js +180 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/online-banking-latvia.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLatvia/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.js +180 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/online-banking-lithuania.js +1 -0
- package/dist/es/components/wallets/OnlineBankingLithuania/type.js +1 -0
- package/dist/es/components/wallets/OnlineBankingThailand/OnlineBankingThailand.js +180 -0
- package/dist/es/components/wallets/OnlineBankingThailand/index.js +1 -0
- package/dist/es/components/wallets/OnlineBankingThailand/online-banking-thailand.js +1 -0
- package/dist/es/components/wallets/OnlineBankingThailand/type.js +1 -0
- package/dist/es/components/wallets/PayByBank/PayByBank.js +212 -0
- package/dist/es/components/wallets/PayByBank/index.js +1 -0
- package/dist/es/components/wallets/PayByBank/pay-by-bank.js +1 -0
- package/dist/es/components/wallets/PayByBank/type.js +1 -0
- package/dist/es/components/wallets/PayU/PayU.js +186 -0
- package/dist/es/components/wallets/PayU/index.js +1 -0
- package/dist/es/components/wallets/PayU/payu2.js +1 -0
- package/dist/es/components/wallets/PayU/type.js +1 -0
- package/dist/es/components/wallets/Satispay/Satispay.js +198 -0
- package/dist/es/components/wallets/Satispay/index.js +1 -0
- package/dist/es/components/wallets/Satispay/satispay2.js +1 -0
- package/dist/es/components/wallets/Satispay/type.js +1 -0
- package/dist/es/components/wallets/Upi/Upi.js +180 -0
- package/dist/es/components/wallets/Upi/index.js +1 -0
- package/dist/es/components/wallets/Upi/type.js +1 -0
- package/dist/es/components/wallets/Upi/upi2.js +1 -0
- package/dist/es/components/wallets/index.js +18 -0
- package/dist/es/constant.js +110 -2
- package/dist/es/core/logger.js +1 -1
- package/dist/es/core.js +480 -480
- package/dist/es/i18n/locales/de-DE.js +19 -1
- package/dist/es/i18n/locales/en-GB.js +19 -1
- package/dist/es/i18n/locales/es-ES.js +19 -1
- package/dist/es/i18n/locales/fr-FR.js +19 -1
- package/dist/es/i18n/locales/ja-JP.js +19 -1
- package/dist/es/i18n/locales/ko-KR.js +19 -1
- package/dist/es/i18n/locales/nl-NL.js +19 -1
- package/dist/es/i18n/locales/pt-PT.js +19 -1
- package/dist/es/i18n/locales/ru-RU.js +19 -1
- package/dist/es/i18n/locales/zh-CN.js +19 -1
- package/dist/es/i18n/locales/zh-HK.js +19 -1
- package/dist/es/i18n/locales/zh-TW.js +19 -1
- package/dist/es/index.js +36 -0
- package/dist/es/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/DropIn/type.d.ts +1 -1
- package/dist/types/components/internal/icons/IconBancomatPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconBizum.d.ts +2 -0
- package/dist/types/components/internal/icons/IconDragonPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconEPS.d.ts +2 -0
- package/dist/types/components/internal/icons/IconFpx.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMbWay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMultibanco.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMyBank.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingEstonia.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingFinland.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingIndonesia.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingLatvia.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingLithuania.d.ts +2 -0
- package/dist/types/components/internal/icons/IconOnlineBankingThailand.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPayByBank.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPayU.d.ts +2 -0
- package/dist/types/components/internal/icons/IconSatispay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconUpi.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +18 -0
- package/dist/types/components/wallets/BancomatPay/BancomatPay.d.ts +15 -0
- package/dist/types/components/wallets/BancomatPay/index.d.ts +2 -0
- package/dist/types/components/wallets/BancomatPay/type.d.ts +7 -0
- package/dist/types/components/wallets/Bizum/Bizum.d.ts +15 -0
- package/dist/types/components/wallets/Bizum/index.d.ts +2 -0
- package/dist/types/components/wallets/Bizum/type.d.ts +7 -0
- package/dist/types/components/wallets/DragonPay/DragonPay.d.ts +16 -0
- package/dist/types/components/wallets/DragonPay/index.d.ts +2 -0
- package/dist/types/components/wallets/DragonPay/type.d.ts +6 -0
- package/dist/types/components/wallets/EPS/EPS.d.ts +15 -0
- package/dist/types/components/wallets/EPS/index.d.ts +2 -0
- package/dist/types/components/wallets/EPS/type.d.ts +7 -0
- package/dist/types/components/wallets/Fpx/Fpx.d.ts +16 -0
- package/dist/types/components/wallets/Fpx/index.d.ts +2 -0
- package/dist/types/components/wallets/Fpx/type.d.ts +6 -0
- package/dist/types/components/wallets/MbWay/MbWay.d.ts +15 -0
- package/dist/types/components/wallets/MbWay/index.d.ts +2 -0
- package/dist/types/components/wallets/MbWay/type.d.ts +7 -0
- package/dist/types/components/wallets/Multibanco/Multibanco.d.ts +15 -0
- package/dist/types/components/wallets/Multibanco/index.d.ts +2 -0
- package/dist/types/components/wallets/Multibanco/type.d.ts +7 -0
- package/dist/types/components/wallets/MyBank/MyBank.d.ts +15 -0
- package/dist/types/components/wallets/MyBank/index.d.ts +2 -0
- package/dist/types/components/wallets/MyBank/type.d.ts +7 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingEstonia/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingFinland/OnlineBankingFinland.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingFinland/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingFinland/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingIndonesia/OnlineBankingIndonesia.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingIndonesia/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingIndonesia/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingLatvia/OnlineBankingLatvia.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingLatvia/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingLatvia/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingLithuania/OnlineBankingLithuania.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingLithuania/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingLithuania/type.d.ts +6 -0
- package/dist/types/components/wallets/OnlineBankingThailand/OnlineBankingThailand.d.ts +16 -0
- package/dist/types/components/wallets/OnlineBankingThailand/index.d.ts +2 -0
- package/dist/types/components/wallets/OnlineBankingThailand/type.d.ts +6 -0
- package/dist/types/components/wallets/PayByBank/PayByBank.d.ts +16 -0
- package/dist/types/components/wallets/PayByBank/index.d.ts +2 -0
- package/dist/types/components/wallets/PayByBank/type.d.ts +6 -0
- package/dist/types/components/wallets/PayU/PayU.d.ts +15 -0
- package/dist/types/components/wallets/PayU/index.d.ts +2 -0
- package/dist/types/components/wallets/PayU/type.d.ts +7 -0
- package/dist/types/components/wallets/Satispay/Satispay.d.ts +15 -0
- package/dist/types/components/wallets/Satispay/index.d.ts +2 -0
- package/dist/types/components/wallets/Satispay/type.d.ts +7 -0
- package/dist/types/components/wallets/Upi/Upi.d.ts +16 -0
- package/dist/types/components/wallets/Upi/index.d.ts +2 -0
- package/dist/types/components/wallets/Upi/type.d.ts +6 -0
- package/dist/types/components/wallets/index.d.ts +18 -0
- package/dist/types/constant.d.ts +37 -1
- package/dist/types/i18n/locales/de-DE.d.ts +18 -0
- package/dist/types/i18n/locales/en-GB.d.ts +18 -0
- package/dist/types/i18n/locales/es-ES.d.ts +18 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +18 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +18 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +18 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +18 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +18 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +18 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +18 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +18 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconMyBank = ({ size, style, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("path", { d: "M12.3711 8.54546C12.0479 8.54546 11.7342 8.5423 11.4205 8.54757C11.3308 8.54915 11.2723 8.52384 11.2117 8.45583C10.4303 7.58056 9.46484 7.01586 8.31698 6.76857C7.76545 6.64993 7.20813 6.62304 6.64659 6.68473C5.64531 6.7944 4.73999 7.14925 3.94645 7.76827C2.91828 8.56972 2.24812 9.60843 1.98501 10.8865C1.65916 12.4715 1.97921 13.931 2.95466 15.2244C3.81094 16.3596 4.95722 17.0561 6.3645 17.2707C8.08498 17.5333 9.59666 17.0593 10.8832 15.8824C11.0155 15.7617 11.1384 15.6314 11.2549 15.4949C11.2765 15.4695 11.2976 15.4595 11.3298 15.4606C11.4141 15.4627 11.4985 15.4611 11.5829 15.4611C15.3597 15.4611 19.1365 15.4611 22.9133 15.4611C22.9386 15.4611 22.964 15.4611 22.9893 15.4611C22.9988 15.488 22.9771 15.5012 22.9661 15.517C22.8195 15.7332 22.6708 15.9478 22.5247 16.164C22.5037 16.1951 22.4815 16.214 22.443 16.2072C22.4388 16.2067 22.4346 16.2072 22.4304 16.2072C21.0415 16.2082 19.6527 16.2093 18.2639 16.2109C17.0269 16.2125 15.7899 16.2146 14.553 16.2162C13.6445 16.2172 12.736 16.2177 11.8281 16.2177C11.788 16.2177 11.759 16.2262 11.7295 16.2573C10.8146 17.2206 9.7058 17.8349 8.40292 18.0953C7.81502 18.2129 7.22079 18.2393 6.62392 18.1808C5.21348 18.0421 3.98758 17.4885 2.95571 16.5188C2.01085 15.6314 1.4066 14.5474 1.13348 13.2803C1.02011 12.7525 0.979514 12.2179 1.00957 11.6801C1.08549 10.3176 1.5516 9.10278 2.42212 8.05088C3.30108 6.98897 4.41572 6.29403 5.75551 5.96396C6.30281 5.8295 6.85908 5.77098 7.42168 5.7947C8.96446 5.86008 10.309 6.41161 11.4479 7.45771C11.789 7.7709 12.0848 8.12365 12.3474 8.50486C12.3543 8.51488 12.3601 8.52595 12.3722 8.54704L12.3711 8.54546Z", fill: "#00BAEC" }),
|
|
23
|
+
/* @__PURE__ */ u("path", { d: "M6.17497 12.5145C6.25564 12.2935 6.32999 12.0884 6.40433 11.8833C6.58466 11.3877 6.76498 10.8921 6.94373 10.3959C6.97958 10.2968 7.00964 10.1961 7.07502 10.1107C7.19576 9.95247 7.35447 9.88393 7.55061 9.91504C7.73621 9.94456 7.85643 10.0896 7.87172 10.2915C7.8733 10.3147 7.87383 10.3379 7.87383 10.3611C7.87383 11.4816 7.87383 12.602 7.87383 13.7224C7.87383 13.8785 7.82321 14.0093 7.67136 14.0773C7.38558 14.2054 7.10824 14.0272 7.10824 13.7177C7.10824 13.1577 7.10824 12.5972 7.10824 12.0368C7.08451 12.0368 7.08978 12.0568 7.08609 12.0689C6.91789 12.6194 6.74969 13.1704 6.58202 13.7214C6.55619 13.8068 6.5235 13.888 6.46602 13.9576C6.30784 14.149 6.04685 14.1458 5.89446 13.9502C5.85123 13.8949 5.82065 13.8332 5.79692 13.7678C5.59023 13.1968 5.38302 12.6262 5.1758 12.0552C5.17158 12.0441 5.16684 12.0336 5.15313 12.0241V12.0963C5.15313 12.6442 5.15313 13.1915 5.15313 13.7393C5.15313 13.9065 5.08089 14.0277 4.95171 14.081C4.793 14.1458 4.58895 14.1121 4.48508 14.004C4.4334 13.9502 4.40599 13.8854 4.39491 13.8131C4.3907 13.7841 4.38964 13.7546 4.38911 13.7251C4.38701 12.6595 4.38437 11.5939 4.3849 10.5282C4.3849 10.4154 4.38173 10.3005 4.40651 10.1887C4.43868 10.0453 4.52515 9.95564 4.66962 9.92347C4.94644 9.86231 5.17316 9.99624 5.29074 10.292C5.48952 10.7919 5.68778 11.2923 5.88656 11.7921C5.98041 12.0283 6.07479 12.2645 6.17444 12.5155L6.17497 12.5145Z", fill: "#00BAEC" }),
|
|
24
|
+
/* @__PURE__ */ u("path", { d: "M11.2931 12.2379C11.2931 11.65 11.2931 11.0626 11.2931 10.4747C11.2931 10.1541 11.4903 9.95112 11.8093 9.94638C12.1294 9.94216 12.45 9.93478 12.77 9.93952C12.9862 9.94269 13.2034 9.93741 13.4175 9.98329C13.9126 10.0898 14.2126 10.4288 14.258 10.9334C14.279 11.1691 14.2701 11.4001 14.172 11.6205C14.1377 11.698 14.0924 11.7686 14.0349 11.8308C14.0207 11.8467 14.0101 11.8561 14.0354 11.8741C14.2922 12.0507 14.404 12.3106 14.4409 12.607C14.4741 12.8727 14.4588 13.1369 14.3666 13.391C14.2189 13.7986 13.9084 14.0037 13.4971 14.0807C13.3663 14.1049 13.234 14.1123 13.1011 14.1123C12.5238 14.1123 11.9464 14.1118 11.3685 14.1139C11.3095 14.1139 11.291 14.1018 11.291 14.039C11.2937 13.4385 11.2926 12.8384 11.2926 12.2379H11.2931Z", fill: "#2C4B67" }),
|
|
25
|
+
/* @__PURE__ */ u("path", { d: "M16.5278 13.8757C16.3686 13.9717 16.203 14.0413 16.0232 14.0745C15.7021 14.1341 15.3952 14.0972 15.1253 13.9042C14.9017 13.7444 14.7994 13.5066 14.7657 13.2409C14.6945 12.6809 15.0146 12.2175 15.5703 12.0203C15.8455 11.9222 16.1308 11.8885 16.4213 11.8943C16.482 11.8953 16.492 11.8795 16.4772 11.8236C16.4182 11.5979 16.2473 11.5014 15.9995 11.5573C15.8123 11.5995 15.6415 11.6775 15.4902 11.7967C15.4469 11.8305 15.4037 11.8642 15.3578 11.8943C15.2039 11.9955 15.0093 11.9902 14.8949 11.8837C14.7667 11.7645 14.7367 11.5647 14.8242 11.4018C14.8801 11.2974 14.9655 11.2193 15.0583 11.1487C15.3446 10.932 15.671 10.8329 16.0269 10.8139C16.3575 10.7965 16.6575 10.874 16.9101 11.096C17.1141 11.2752 17.2127 11.5104 17.256 11.7725C17.2744 11.8848 17.2802 11.9981 17.2797 12.112C17.2792 12.6409 17.2797 13.1692 17.2797 13.698C17.2797 13.7687 17.2676 13.8362 17.2396 13.9005C17.1658 14.0703 16.9881 14.1467 16.7772 14.1014C16.6523 14.0745 16.5653 14.0054 16.5283 13.8757H16.5278Z", fill: "#2C4B67" }),
|
|
26
|
+
/* @__PURE__ */ u("path", { d: "M21.3466 11.7438C21.49 11.6109 21.6207 11.4897 21.7515 11.3684C21.8717 11.2566 21.9919 11.1448 22.1127 11.0331C22.1628 10.9867 22.2187 10.9503 22.2819 10.9244C22.4422 10.8591 22.5904 10.8944 22.7048 11.0241C22.815 11.1485 22.8271 11.2909 22.7407 11.4438C22.6748 11.5598 22.5656 11.6362 22.4728 11.7275C22.341 11.8572 22.205 11.9837 22.0684 12.1087C22.0368 12.1377 22.0352 12.1556 22.0589 12.1909C22.3283 12.5932 22.5951 12.9966 22.8635 13.4C22.921 13.4864 22.9674 13.5776 22.989 13.6799C23.0154 13.807 23.0032 13.9256 22.8941 14.0121C22.7728 14.1086 22.6384 14.1487 22.4881 14.0828C22.38 14.0353 22.3041 13.952 22.2419 13.8545C22.0009 13.4769 21.7589 13.0994 21.5195 12.7208C21.4926 12.6781 21.4821 12.6818 21.4452 12.7119C21.3661 12.7762 21.3418 12.8511 21.3445 12.9528C21.3508 13.2181 21.3497 13.4838 21.3418 13.749C21.3355 13.9536 21.172 14.1054 20.9738 14.107C20.7639 14.1086 20.6026 13.9626 20.5841 13.7548C20.5826 13.7337 20.582 13.7126 20.582 13.6915C20.582 12.569 20.582 11.4459 20.582 10.3234C20.582 10.1124 20.688 9.96534 20.8731 9.91788C21.0982 9.86041 21.3339 10.0228 21.3402 10.2532C21.3492 10.5838 21.345 10.9144 21.346 11.245C21.346 11.4048 21.346 11.5645 21.346 11.7438H21.3466Z", fill: "#2C4B67" }),
|
|
27
|
+
/* @__PURE__ */ u("path", { d: "M17.6719 12.4325C17.6719 12.0007 17.6719 11.5689 17.6719 11.1376C17.6719 10.9451 17.7879 10.797 17.9719 10.7527C18.1443 10.7115 18.3236 10.7938 18.4048 10.9578C18.4264 11.0015 18.4427 10.9905 18.4733 10.9752C18.7565 10.8328 19.0549 10.7727 19.367 10.8391C19.7936 10.9298 20.0282 11.214 20.1268 11.6248C20.1564 11.7482 20.168 11.8736 20.168 12.0002C20.168 12.2148 20.1674 12.4299 20.168 12.6445C20.169 13.0004 20.1717 13.3563 20.1711 13.7122C20.1711 13.9901 19.9259 14.1762 19.6713 14.095C19.512 14.0444 19.4061 13.9026 19.405 13.7349C19.4013 13.1665 19.3976 12.5981 19.3945 12.0297C19.3945 11.9707 19.3892 11.9121 19.3723 11.8552C19.3175 11.6701 19.1735 11.5836 18.9842 11.6221C18.8287 11.6538 18.7064 11.7445 18.5825 11.8378C18.4733 11.92 18.438 12.0176 18.4406 12.1547C18.4501 12.6851 18.448 13.2161 18.4475 13.7465C18.4475 13.96 18.2719 14.1235 18.0541 14.1219C17.8411 14.1203 17.6735 13.9532 17.6735 13.7407C17.6729 13.3046 17.6735 12.8686 17.6735 12.4331L17.6719 12.4325Z", fill: "#2C4B67" }),
|
|
28
|
+
/* @__PURE__ */ u("path", { d: "M9.51764 12.7966C9.57405 12.6342 9.6252 12.4882 9.67529 12.3421C9.79023 12.0083 9.90518 11.6746 10.0196 11.3403C10.0465 11.2617 10.0866 11.19 10.1424 11.1289C10.2463 11.015 10.3744 10.9833 10.5216 11.0234C10.6629 11.0619 10.7525 11.1505 10.7757 11.2971C10.7894 11.383 10.7836 11.4695 10.7588 11.5533C10.6866 11.7948 10.5985 12.0315 10.5158 12.2699C10.2811 12.9448 10.0396 13.6176 9.78022 14.2835C9.72222 14.4327 9.6542 14.5767 9.56773 14.7122C9.45067 14.8957 9.28933 15.0101 9.07579 15.057C8.83693 15.1097 8.59966 15.1182 8.36556 15.0407C8.23321 14.9969 8.12248 14.9231 8.08294 14.777C8.03074 14.5851 8.12143 14.4195 8.31125 14.3615C8.39034 14.3373 8.47206 14.3315 8.55484 14.3331C8.60546 14.3341 8.65661 14.3362 8.70617 14.3283C8.93237 14.293 9.06155 14.1638 9.10848 13.9339C9.1148 13.9039 9.10268 13.8801 9.09266 13.8554C8.81426 13.1272 8.53534 12.3985 8.25588 11.6704C8.2195 11.5749 8.19736 11.4774 8.20105 11.3746C8.20685 11.2 8.29596 11.083 8.45888 11.0334C8.63499 10.9802 8.77788 11.0266 8.88122 11.171C8.94977 11.2665 8.9814 11.3788 9.022 11.4869C9.17966 11.9039 9.33573 12.321 9.49233 12.7381C9.4976 12.7518 9.50393 12.765 9.51711 12.7961L9.51764 12.7966Z", fill: "#00BAEC" }),
|
|
29
|
+
/* @__PURE__ */ u("path", { d: "M12.6662 13.3591C12.489 13.3591 12.3124 13.358 12.1352 13.3601C12.0941 13.3601 12.0762 13.3528 12.0762 13.3058C12.0783 12.9984 12.0778 12.691 12.0762 12.3836C12.0762 12.3441 12.0883 12.3346 12.1263 12.3346C12.4695 12.3362 12.8128 12.3325 13.156 12.3362C13.4239 12.3388 13.6095 12.4828 13.6569 12.72C13.6806 12.8392 13.6743 12.9589 13.6327 13.0744C13.5689 13.2526 13.4028 13.3575 13.184 13.3586C13.011 13.3596 12.8386 13.3586 12.6657 13.3586L12.6662 13.3591Z", fill: "#FEFEFE" }),
|
|
30
|
+
/* @__PURE__ */ u("path", { d: "M12.624 11.5469C12.4622 11.5469 12.2998 11.5454 12.1379 11.548C12.0936 11.5485 12.0752 11.5406 12.0762 11.49C12.0789 11.2522 12.0783 11.0144 12.0762 10.7766C12.0762 10.7318 12.0899 10.7202 12.1337 10.7207C12.4411 10.7223 12.7485 10.7207 13.0559 10.7223C13.1018 10.7223 13.1487 10.7276 13.1935 10.7381C13.3944 10.7856 13.512 10.949 13.4972 11.1573C13.4903 11.248 13.4766 11.3376 13.4181 11.4125C13.3385 11.5137 13.2272 11.5454 13.1049 11.5464C12.9452 11.548 12.7849 11.5464 12.6251 11.5464L12.624 11.5469Z", fill: "#FEFEFE" }),
|
|
31
|
+
/* @__PURE__ */ u("path", { d: "M16.286 12.653C16.3492 12.653 16.4125 12.6557 16.4752 12.6525C16.5332 12.6494 16.5417 12.6778 16.5338 12.7258C16.51 12.8756 16.441 13.0005 16.3239 13.0965C16.1352 13.251 15.9216 13.3211 15.6775 13.2726C15.5314 13.2436 15.4502 13.1508 15.4455 13.0148C15.4418 12.9125 15.4956 12.8444 15.5768 12.7933C15.6991 12.7163 15.8378 12.69 15.9775 12.6689C16.0793 12.6536 16.1826 12.6478 16.286 12.6536V12.653Z", fill: "#FEFEFE" })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
IconMyBank
|
|
38
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconOnlineBankingEstonia = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#0369A1" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "EE"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconOnlineBankingEstonia
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconOnlineBankingFinland = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#0284C7" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "FI"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconOnlineBankingFinland
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconOnlineBankingIndonesia = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#EA580C" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "ID"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconOnlineBankingIndonesia
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconOnlineBankingLatvia = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#075985" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "LV"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconOnlineBankingLatvia
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconOnlineBankingLithuania = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#0C4A6E" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "LT"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconOnlineBankingLithuania
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconOnlineBankingThailand = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#CA8A04" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "TH"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconOnlineBankingThailand
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconPayByBank = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#2563EB" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "PbB"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconPayByBank
|
|
42
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconPayU = ({ size, style, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: /* @__PURE__ */ u("path", { d: "M20.4381 10.5927C20.3664 10.5925 20.2978 10.5639 20.2471 10.5132C20.1965 10.4625 20.1681 10.3937 20.1681 10.3221V9.12895H20.0682C19.4503 9.12895 19.2199 9.23068 19.2199 9.79458V13.2822C19.229 13.4723 19.1828 13.661 19.0868 13.8254C18.9185 14.0854 18.5844 14.2022 18.05 14.2022C17.5156 14.2022 17.1822 14.0835 17.0139 13.8254C16.9178 13.6608 16.8716 13.4719 16.8808 13.2816V11.4398V9.79458C16.8808 9.22942 16.6503 9.12895 16.0318 9.12895H15.8371C15.2186 9.12895 14.9887 9.23068 14.9887 9.79458V13.2822C14.9731 13.7812 15.102 14.274 15.3599 14.7014C15.8321 15.4436 16.7464 15.8386 18.0469 15.8386H18.0563C19.3568 15.8386 20.2711 15.4436 20.7433 14.7014C21.0012 14.274 21.13 13.7812 21.1144 13.2822V10.5958H20.44M23.2991 8.66615H22.2818C22.2285 8.66615 22.1774 8.64498 22.1397 8.60729C22.102 8.56961 22.0808 8.5185 22.0808 8.4652V7.43536C22.081 7.38212 22.1022 7.3311 22.1399 7.29345C22.1775 7.25581 22.2285 7.23458 22.2818 7.23442H23.2991C23.3524 7.23442 23.4035 7.25559 23.4411 7.29327C23.4788 7.33096 23.5 7.38207 23.5 7.43536V8.46583C23.5 8.51912 23.4788 8.57024 23.4411 8.60792C23.4035 8.6456 23.3524 8.66677 23.2991 8.66677M21.9439 7.23442H21.2532C21.2169 7.23442 21.1821 7.21999 21.1564 7.19432C21.1307 7.16865 21.1163 7.13383 21.1163 7.09752V6.39798C21.1163 6.36184 21.1306 6.32718 21.1562 6.30163C21.1818 6.27608 21.2164 6.26172 21.2526 6.26172H21.9433C21.9795 6.26188 22.0142 6.27638 22.0397 6.30204C22.0652 6.32769 22.0796 6.36241 22.0796 6.39861V7.09815C22.0796 7.13435 22.0652 7.16907 22.0397 7.19473C22.0142 7.22038 21.9795 7.23488 21.9433 7.23504M4.44919 11.2495C4.44919 12.0772 4.2382 12.5255 3.12296 12.5255H1.40739V10.3905C1.40739 10.0941 1.51728 9.98422 1.81368 9.98422H3.12296C3.96316 9.98422 4.44919 10.1914 4.44919 11.2508V11.2495ZM3.12296 9.12644H1.6435C0.852909 9.12644 0.5 9.47935 0.5 10.2693V15.3488C0.5 15.654 0.597961 15.7526 0.903773 15.7526H1.00362C1.30943 15.7526 1.40739 15.6546 1.40739 15.3488V13.3726H3.12296C4.647 13.3726 5.35595 12.6982 5.35595 11.2495C5.35595 9.80086 4.64637 9.12644 3.12296 9.12644ZM8.54783 13.4694V14.1651C8.54783 14.7303 8.33747 15.0612 7.26179 15.0612C6.55095 15.0612 6.2062 14.8044 6.2062 14.275C6.2062 13.6948 6.5522 13.4687 7.44201 13.4687H8.54846L8.54783 13.4694ZM7.26179 10.5808C6.89483 10.5768 6.52845 10.6109 6.16852 10.6825C5.92174 10.7359 5.81875 10.8037 5.81875 11.0844V11.1648C5.81256 11.248 5.83043 11.3313 5.87025 11.4046C5.89155 11.4361 5.92077 11.4613 5.95494 11.4779C5.98912 11.4944 6.02705 11.5016 6.06491 11.4988C6.11668 11.4976 6.16811 11.4903 6.21813 11.4769C6.57477 11.4039 6.93795 11.3677 7.30198 11.3689C8.18739 11.3689 8.54783 11.6138 8.54783 12.2153V12.7516H7.43196C5.99709 12.7516 5.32895 13.2358 5.32895 14.275C5.32895 15.2829 6.0197 15.8386 7.27183 15.8386C8.76071 15.8386 9.42508 15.3319 9.42508 14.1953V12.2147C9.42508 11.1158 8.71738 10.582 7.26179 10.582V10.5808ZM14.3325 10.8181C14.2916 10.7822 14.2433 10.7555 14.1911 10.74C14.1388 10.7245 14.0838 10.7205 14.0299 10.7283H13.9426C13.8857 10.7179 13.8273 10.7197 13.7712 10.7335C13.7151 10.7473 13.6626 10.7729 13.6171 10.8085C13.5716 10.8441 13.5341 10.8889 13.5072 10.9401C13.4803 10.9912 13.4645 11.0474 13.4609 11.1051L12.6314 14.5545C12.5278 14.9783 12.3802 15.0568 12.1328 15.0568C11.8283 15.0568 11.7058 14.984 11.5846 14.5545L10.6427 11.1057C10.6376 11.0477 10.6206 10.9914 10.5926 10.9404C10.5646 10.8893 10.5263 10.8447 10.4801 10.8092C10.4339 10.7738 10.3809 10.7483 10.3243 10.7345C10.2678 10.7207 10.209 10.7188 10.1516 10.729H10.0712C10.0172 10.7209 9.96205 10.7249 9.90973 10.7407C9.85741 10.7564 9.80921 10.7835 9.76857 10.82C9.74385 10.8693 9.73025 10.9234 9.72873 10.9785C9.72722 11.0337 9.73781 11.0884 9.75978 11.139L10.7099 14.6179C10.8876 15.2841 11.0998 15.8348 11.8911 15.8348C12.0261 15.8368 12.1605 15.8169 12.2892 15.7758C12.0493 16.5294 11.805 16.8641 11.0848 16.9375C10.9391 16.9495 10.8443 16.9708 10.7909 17.0418C10.7686 17.0833 10.755 17.129 10.7511 17.176C10.7473 17.223 10.7531 17.2703 10.7683 17.3149L10.7877 17.4035C10.8311 17.6101 10.9039 17.7382 11.1356 17.7382C11.1601 17.7382 11.1865 17.7382 11.2141 17.7344C12.2892 17.6641 12.8656 17.0851 13.2022 15.7369L14.352 11.1365C14.3721 11.0853 14.3808 11.0304 14.3775 10.9755C14.3741 10.9206 14.3588 10.8671 14.3325 10.8188M21.8089 8.50539H20.4394C20.3677 8.50539 20.2989 8.53382 20.2482 8.58444C20.1975 8.63506 20.1689 8.70374 20.1687 8.77541V8.9638H20.2635C20.8821 8.9638 21.1125 9.06615 21.1125 9.62943V10.4307H21.8083C21.8801 10.4307 21.9489 10.4022 21.9997 10.3514C22.0504 10.3007 22.0789 10.2318 22.0789 10.16V8.77353C22.0789 8.70175 22.0504 8.63291 21.9997 8.58215C21.9489 8.53139 21.8801 8.50288 21.8083 8.50288", fill: "#95BF3E" })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
IconPayU
|
|
27
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconSatispay = ({ size, style, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 24 24",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("g", { clipPath: "url(#clip0_satispay)", children: [
|
|
23
|
+
/* @__PURE__ */ u("path", { d: "M6.88086 12.8632H6.9234C7.17209 12.9156 7.39436 12.9525 7.61149 12.9525C7.93977 12.9525 8.17782 12.8736 8.17782 12.5953C8.17782 12.0804 6.89149 12.2851 6.89149 11.4343C6.89149 10.9719 7.32559 10.725 7.87081 10.725C8.08795 10.725 8.30491 10.7565 8.50609 10.8194V11.2082H8.46355C8.23595 11.1348 8.04009 11.1032 7.8655 11.1032C7.60618 11.1032 7.33622 11.161 7.33622 11.4342C7.33622 11.9227 8.62236 11.7284 8.62236 12.5531C8.62236 13.1523 8.13545 13.3308 7.59554 13.3308C7.33073 13.3308 7.06609 13.2939 6.88086 13.2519V12.8632ZM12.9521 13.2363C12.7826 13.2987 12.6034 13.3306 12.4228 13.3308C12.1633 13.3308 11.7558 13.2728 11.7558 12.6792V11.1661H11.4274V10.7985H11.7558V10.21L12.1316 10.1313H12.174V10.7985H12.9893V11.1661H12.174V12.6687C12.174 12.9365 12.4016 12.9576 12.5072 12.9576C12.6134 12.9576 12.7827 12.9209 12.9149 12.8789L12.9521 13.2361V13.2363ZM14.5027 12.8632H14.5451C14.7939 12.9156 15.0162 12.9525 15.2333 12.9525C15.5616 12.9525 15.7997 12.8736 15.7997 12.5953C15.7997 12.0804 14.5133 12.2851 14.5133 11.4343C14.5133 10.9719 14.9474 10.725 15.4927 10.725C15.7096 10.725 15.9268 10.7565 16.1279 10.8194V11.2082H16.0854C15.8578 11.1348 15.6618 11.1032 15.4874 11.1032C15.228 11.1032 14.9579 11.161 14.9579 11.4342C14.9579 11.9227 16.2442 11.7284 16.2442 12.5531C16.2442 13.1523 15.7573 13.3308 15.2174 13.3308C14.9526 13.3308 14.6879 13.2939 14.5027 13.2519V12.8632ZM17.2285 12.8999C17.3928 12.9261 17.5674 12.9525 17.7897 12.9525C18.3085 12.9525 18.6368 12.6267 18.6368 11.9909C18.6368 11.4024 18.4407 11.1032 18.0175 11.1032C17.7684 11.1032 17.4931 11.2082 17.2287 11.4395V12.9L17.2285 12.8999ZM16.805 10.8038L17.1755 10.7251H17.2287V11.0456C17.4774 10.8618 17.7473 10.7251 18.1126 10.7251C18.6579 10.7251 19.0813 11.1087 19.0813 11.9282C19.0813 12.732 18.6579 13.3308 17.7739 13.3308C17.5674 13.3308 17.4033 13.3045 17.2285 13.2678V14.4918L16.858 14.5706H16.805V10.8038ZM22.5906 13.2308L21.7369 10.7985H22.2238L22.8235 12.7107H22.8603L23.5188 10.7985H24.0006L23.067 13.3517C22.8446 13.9822 22.5693 14.2869 22.1141 14.5705L21.8759 14.2656C22.3364 13.9401 22.4528 13.7562 22.6274 13.3306M20.9444 12.1171L20.2616 12.2169C20.0817 12.2431 19.8804 12.3169 19.8804 12.6003C19.8804 12.8054 20.0236 12.9472 20.2404 12.9472C20.4733 12.9472 20.7381 12.8001 20.9444 12.6529V12.1173V12.1171ZM21.3679 13.2519L21.0238 13.3203H20.9657V12.9734H20.9551C20.7328 13.1416 20.4626 13.315 20.0975 13.315C19.7746 13.315 19.4358 13.0838 19.4358 12.6318C19.4358 12.0228 19.9864 11.9386 20.2827 11.8963L20.9444 11.8071V11.6391C20.9444 11.2188 20.7434 11.1032 20.3781 11.1032C20.2404 11.1032 19.8963 11.1452 19.6159 11.2713L19.5681 10.8825C19.8011 10.7932 20.1665 10.7248 20.4575 10.7248C20.9815 10.7248 21.3679 10.9403 21.3679 11.6391V13.2519ZM10.5172 12.6531C10.3109 12.8001 10.0461 12.9474 9.81315 12.9474C9.59619 12.9474 9.45315 12.8056 9.45315 12.6005C9.45315 12.3169 9.65451 12.2431 9.83424 12.2169L10.5172 12.1171V12.6531ZM10.9408 11.6392C10.9408 10.9403 10.5542 10.725 10.0303 10.725C9.73923 10.725 9.37374 10.7934 9.14083 10.8827L9.18869 11.2713C9.4691 11.1452 9.81315 11.1032 9.95087 11.1032C10.316 11.1032 10.5172 11.2188 10.5172 11.6391V11.8073L9.85551 11.8966C9.55914 11.9386 9.0086 12.0228 9.0086 12.6318C9.0086 13.0838 9.34733 13.315 9.67028 13.315C10.0354 13.315 10.3056 13.1416 10.5277 12.9734H10.5383V13.3203H10.5968L10.9406 13.2519V11.6391L10.9408 11.6392ZM13.4707 13.3203H13.4725L13.4707 13.3183V13.3201V13.3203Z", fill: "#EF373F" }),
|
|
24
|
+
/* @__PURE__ */ u("path", { d: "M13.8406 10.7248L13.4701 10.8035V13.3182L13.4717 13.3199H13.5247L13.8934 13.2416V10.7248H13.8406ZM13.8406 9.87254L13.4701 9.95142V10.3963L13.4717 10.3981H13.5247L13.8934 10.3198V9.87254H13.8406ZM17.2279 11.842C17.2278 11.8697 17.2223 11.8971 17.2116 11.9227C17.2009 11.9482 17.1853 11.9714 17.1656 11.9909C17.146 12.0105 17.1227 12.0259 17.097 12.0364C17.0714 12.0469 17.044 12.0523 17.0163 12.0522C16.9885 12.0523 16.9611 12.047 16.9354 12.0365C16.9098 12.026 16.8865 12.0105 16.8668 11.991C16.8471 11.9715 16.8315 11.9483 16.8208 11.9227C16.8101 11.8971 16.8045 11.8697 16.8044 11.842C16.8045 11.8143 16.8101 11.7869 16.8208 11.7613C16.8315 11.7357 16.8471 11.7125 16.8668 11.693C16.8865 11.6735 16.9098 11.658 16.9354 11.6475C16.9611 11.637 16.9885 11.6317 17.0163 11.6318C17.1332 11.6318 17.2279 11.7259 17.2279 11.842ZM4.56623 9.31544C4.57869 9.30301 4.58716 9.28716 4.59058 9.26989C4.594 9.25263 4.5922 9.23474 4.58541 9.21851C4.57862 9.20227 4.56716 9.18842 4.55247 9.17873C4.53778 9.16903 4.52055 9.16393 4.50295 9.16407H3.17692L3.94797 9.92909L4.56623 9.31544ZM2.71305 11.1546L1.76475 10.2134L0.911282 11.0607L0.0262608 11.939C0.0179432 11.9471 0.0113383 11.9569 0.00682996 11.9677C0.00232166 11.9785 0 11.99 0 12.0017C0 12.0134 0.00232166 12.0249 0.00682996 12.0357C0.0113383 12.0465 0.0179432 12.0563 0.0262608 12.0644L0.911282 12.9429L1.76475 13.79L2.71305 12.8488L1.92286 12.0644L1.85958 12.0017L1.92286 11.939L2.71305 11.1546ZM3.94797 14.0741L3.18011 14.8363H4.49993C4.51757 14.8365 4.53485 14.8314 4.54958 14.8217C4.5643 14.812 4.5758 14.7981 4.58259 14.7818C4.58939 14.7656 4.59117 14.7476 4.58772 14.7304C4.58427 14.7131 4.57574 14.6972 4.56321 14.6848L3.94797 14.0741Z", fill: "#EF373F" }),
|
|
25
|
+
/* @__PURE__ */ u("path", { d: "M5.70077 11.939L4.81575 11.0607L3.81906 10.0714L2.93102 9.19012C2.91486 9.17434 2.89334 9.16523 2.87076 9.1646C2.8697 9.1646 2.86881 9.16406 2.86775 9.16406H1.22391C1.20632 9.16396 1.18911 9.16909 1.17445 9.1788C1.15979 9.18851 1.14835 9.20236 1.14159 9.21859C1.13482 9.23482 1.13304 9.25269 1.13646 9.26994C1.13988 9.28718 1.14836 9.30302 1.1608 9.31544L1.92246 10.0712L2.87076 11.0125L3.80435 11.939L3.86745 12.0017L3.80417 12.0644L2.87058 12.9909L1.92228 13.9322L1.16399 14.6848C1.15148 14.6972 1.14296 14.713 1.1395 14.7303C1.13604 14.7476 1.13781 14.7655 1.14459 14.7818C1.15136 14.798 1.16282 14.8119 1.17752 14.8216C1.19222 14.8313 1.20948 14.8365 1.2271 14.8363H2.87111C2.89476 14.8363 2.91744 14.8269 2.93422 14.8103L3.81906 13.9322L4.81575 12.9431L5.70077 12.0644C5.70909 12.0562 5.71569 12.0465 5.7202 12.0357C5.72471 12.0249 5.72703 12.0134 5.72703 12.0017C5.72703 11.99 5.72471 11.9785 5.7202 11.9677C5.71569 11.9569 5.70909 11.9471 5.70077 11.939Z", fill: "#EF373F" })
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("clipPath", { id: "clip0_satispay", children: /* @__PURE__ */ u("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
IconSatispay
|
|
34
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { u } from "../../../core.js";
|
|
2
|
+
import { COMMON_CLASS_NAME } from "../../../constant.js";
|
|
3
|
+
import { isUndefined } from "../../../utils/is.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import "../../../core/context.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
const IconUpi = ({ size, style = {}, className }) => {
|
|
10
|
+
const computedSize = !isUndefined(size) ? `${size}px` : "1em";
|
|
11
|
+
return /* @__PURE__ */ u(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: computedSize,
|
|
15
|
+
height: computedSize,
|
|
16
|
+
viewBox: "0 0 22 22",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
style,
|
|
20
|
+
className: normalizedClass(COMMON_CLASS_NAME, className),
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ u("rect", { width: "22", height: "22", rx: "4.4", fill: "#7C3AED" }),
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"text",
|
|
25
|
+
{
|
|
26
|
+
x: "11",
|
|
27
|
+
y: "14.5",
|
|
28
|
+
textAnchor: "middle",
|
|
29
|
+
fill: "white",
|
|
30
|
+
fontSize: "6",
|
|
31
|
+
fontFamily: "system-ui, sans-serif",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
children: "UPI"
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
IconUpi
|
|
42
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { w, F, y, A, h, u, b } from "../../../core.js";
|
|
2
|
+
import { useBEM } from "../../../hooks/useBEM.js";
|
|
3
|
+
import { CoreContext } from "../../../core/context.js";
|
|
4
|
+
import "../../../utils/card-brand/brands.js";
|
|
5
|
+
import "../../../utils/system-info/get-browser-info.js";
|
|
6
|
+
import { normalizedClass } from "../../../utils/format.js";
|
|
7
|
+
import { PaymentMethod, PaymentCategory, COMMON_CLASS_NAME } from "../../../constant.js";
|
|
8
|
+
import "../../../out/fraud-detection.js";
|
|
9
|
+
import { usePayState } from "../../../hooks/usePayState.js";
|
|
10
|
+
import { useBaseWallet } from "../../../hooks/useBaseWallet.js";
|
|
11
|
+
import "./bancomat-pay.js";
|
|
12
|
+
import { GuideCard } from "../../GuideCard/index.js";
|
|
13
|
+
import "../../internal/Form/type.js";
|
|
14
|
+
import "../../internal/Form/context.js";
|
|
15
|
+
import "../../internal/Form/FormItem.js";
|
|
16
|
+
import { Form } from "../../internal/Form/Form.js";
|
|
17
|
+
import { createEmailCore, EmailField } from "../../EmailField/EmailField.js";
|
|
18
|
+
import { PaymentButton } from "../../PaymentButton/index.js";
|
|
19
|
+
import { Info } from "../../internal/Info/Info.js";
|
|
20
|
+
import { DEFAULT_ADDRESS, AddressField } from "../../AddressField/index.js";
|
|
21
|
+
const { bem } = useBEM("bancomat-pay");
|
|
22
|
+
const fieldClassNames = bem("field");
|
|
23
|
+
const CURR_PAYMENT_METHOD = PaymentMethod.BANCOMAT_PAY;
|
|
24
|
+
const DEFAULT_COUNTRY = "IT";
|
|
25
|
+
const BancomatPay = w((props, ref) => {
|
|
26
|
+
const { session, core, showGuideCard = true, hidePaymentButton = false } = props;
|
|
27
|
+
F(ref, () => ({
|
|
28
|
+
stopRetry: () => stopRetry(),
|
|
29
|
+
startRetry: (timeout) => startRetry(timeout),
|
|
30
|
+
updateAddress: () => {
|
|
31
|
+
var _a;
|
|
32
|
+
if (!(fieldStatus == null ? void 0 : fieldStatus.address.show))
|
|
33
|
+
return;
|
|
34
|
+
const address = addressCore.getAddressState();
|
|
35
|
+
form.address = address;
|
|
36
|
+
setForm(form);
|
|
37
|
+
(_a = addressFieldRef.current) == null ? void 0 : _a.update(address);
|
|
38
|
+
validateFormSilently();
|
|
39
|
+
},
|
|
40
|
+
updateEmail: () => {
|
|
41
|
+
var _a;
|
|
42
|
+
if (!(fieldStatus == null ? void 0 : fieldStatus.email.show))
|
|
43
|
+
return;
|
|
44
|
+
form.email = emailState.email;
|
|
45
|
+
setForm(form);
|
|
46
|
+
(_a = emailFieldRef.current) == null ? void 0 : _a.update(emailState.email);
|
|
47
|
+
validateFormSilently();
|
|
48
|
+
},
|
|
49
|
+
payment: () => {
|
|
50
|
+
hidePaymentButton && onSubmit();
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
const { i18n, sessionReady, disabled } = usePayState(session, props.core);
|
|
54
|
+
y(() => {
|
|
55
|
+
if (!sessionReady)
|
|
56
|
+
return;
|
|
57
|
+
const { country, bill = {} } = (session == null ? void 0 : session.checkout) || {};
|
|
58
|
+
const resolvedCountry = country || DEFAULT_COUNTRY;
|
|
59
|
+
country && addressCore.setCountry(country);
|
|
60
|
+
form.email = bill.email ?? "";
|
|
61
|
+
form.address.country = resolvedCountry;
|
|
62
|
+
}, [sessionReady]);
|
|
63
|
+
const {
|
|
64
|
+
isEnabled,
|
|
65
|
+
fieldStatus,
|
|
66
|
+
paymentButtonStatus,
|
|
67
|
+
setPaymentButtonStatus,
|
|
68
|
+
errorMessage,
|
|
69
|
+
setErrorMessage,
|
|
70
|
+
payment,
|
|
71
|
+
startRetry,
|
|
72
|
+
stopRetry,
|
|
73
|
+
getPaymentMethodContext
|
|
74
|
+
} = useBaseWallet(CURR_PAYMENT_METHOD, props, {
|
|
75
|
+
getFormData: () => ({ ...form })
|
|
76
|
+
});
|
|
77
|
+
const emailState = createEmailCore();
|
|
78
|
+
const emailFieldRef = A(null);
|
|
79
|
+
const addressCore = core.getAddressCore();
|
|
80
|
+
const addressFieldRef = A(null);
|
|
81
|
+
const formRef = A(null);
|
|
82
|
+
const [form, setForm] = h({
|
|
83
|
+
email: "",
|
|
84
|
+
address: { ...DEFAULT_ADDRESS }
|
|
85
|
+
});
|
|
86
|
+
const [validated, setValidated] = h(false);
|
|
87
|
+
const validateFormSilently = () => {
|
|
88
|
+
var _a;
|
|
89
|
+
(_a = formRef.current) == null ? void 0 : _a.validate(void 0, false).then(() => setValidated(true)).catch(() => setValidated(false));
|
|
90
|
+
};
|
|
91
|
+
const setFormRef = (dom) => {
|
|
92
|
+
formRef.current = dom;
|
|
93
|
+
dom && validateFormSilently();
|
|
94
|
+
};
|
|
95
|
+
y(() => validateFormSilently(), [form]);
|
|
96
|
+
const onSubmit = () => {
|
|
97
|
+
var _a;
|
|
98
|
+
setErrorMessage("");
|
|
99
|
+
(_a = formRef.current) == null ? void 0 : _a.validate(async (errors) => {
|
|
100
|
+
var _a2;
|
|
101
|
+
(fieldStatus == null ? void 0 : fieldStatus.address.show) && addressCore.setValidateAllFields(true);
|
|
102
|
+
const submitResult = await ((_a2 = props.onSubmit) == null ? void 0 : _a2.call(props, errors, getPaymentMethodContext()));
|
|
103
|
+
if (submitResult === false)
|
|
104
|
+
return;
|
|
105
|
+
if (errors) {
|
|
106
|
+
setPaymentButtonStatus("unSubmit");
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
setPaymentButtonStatus("loading");
|
|
110
|
+
await payment();
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
const Email = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.email.show) && /* @__PURE__ */ u("div", { className: fieldClassNames, children: /* @__PURE__ */ u(
|
|
114
|
+
EmailField,
|
|
115
|
+
{
|
|
116
|
+
ref: emailFieldRef,
|
|
117
|
+
value: form.email,
|
|
118
|
+
disabled: (fieldStatus == null ? void 0 : fieldStatus.email.disabled) || disabled
|
|
119
|
+
}
|
|
120
|
+
) }) });
|
|
121
|
+
const Address = () => /* @__PURE__ */ u(b, { children: (fieldStatus == null ? void 0 : fieldStatus.address.show) && /* @__PURE__ */ u("div", { className: fieldClassNames, children: /* @__PURE__ */ u(
|
|
122
|
+
AddressField,
|
|
123
|
+
{
|
|
124
|
+
ref: addressFieldRef,
|
|
125
|
+
value: form.address,
|
|
126
|
+
disabled,
|
|
127
|
+
onChange: (value) => setForm(Object.assign(form, { address: value }))
|
|
128
|
+
}
|
|
129
|
+
) }) });
|
|
130
|
+
const Button = () => /* @__PURE__ */ u(
|
|
131
|
+
PaymentButton,
|
|
132
|
+
{
|
|
133
|
+
className: bem("button"),
|
|
134
|
+
status: paymentButtonStatus,
|
|
135
|
+
disabled,
|
|
136
|
+
verified: validated,
|
|
137
|
+
onClick: onSubmit
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
const ErrorMessage = () => /* @__PURE__ */ u(b, { children: !!errorMessage && /* @__PURE__ */ u(Info, { content: errorMessage }) });
|
|
141
|
+
return /* @__PURE__ */ u(CoreContext.Provider, { value: { i18n, session, core }, children: isEnabled && i18n.ready.value && /* @__PURE__ */ u("div", { className: core.theme.className, children: [
|
|
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: [
|
|
144
|
+
Email(),
|
|
145
|
+
Address(),
|
|
146
|
+
/* @__PURE__ */ u("div", { className: bem("footer-wrapper"), children: [
|
|
147
|
+
ErrorMessage(),
|
|
148
|
+
!hidePaymentButton && Button()
|
|
149
|
+
] })
|
|
150
|
+
] }) })
|
|
151
|
+
] }) });
|
|
152
|
+
});
|
|
153
|
+
export {
|
|
154
|
+
BancomatPay
|
|
155
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./BancomatPay.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|