@odus/checkout 0.7.0 → 0.9.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/checkout.es.js +86 -100
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/checkout.es.js
CHANGED
|
@@ -90,7 +90,8 @@ class O {
|
|
|
90
90
|
return await this.fetchApi({
|
|
91
91
|
endpoint: `/payments/${e}/authorize`,
|
|
92
92
|
customHeaders: {
|
|
93
|
-
Authorization: `Bearer ${t}
|
|
93
|
+
Authorization: `Bearer ${t}`,
|
|
94
|
+
"X-Idempotency-Key": e
|
|
94
95
|
},
|
|
95
96
|
body: s
|
|
96
97
|
});
|
|
@@ -234,7 +235,7 @@ function _({
|
|
|
234
235
|
reload: a
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
|
-
const
|
|
238
|
+
const z = {
|
|
238
239
|
cardNumber: (n) => (n.replace(/\s/g, "").match(/.{1,4}/g) || []).join(" "),
|
|
239
240
|
cardExpiry: (n) => {
|
|
240
241
|
const t = n.replace(/\D/g, "").slice(0, 4);
|
|
@@ -354,7 +355,7 @@ const V = {
|
|
|
354
355
|
}
|
|
355
356
|
return t;
|
|
356
357
|
}, J = () => {
|
|
357
|
-
const { t: n } =
|
|
358
|
+
const { t: n } = P();
|
|
358
359
|
return {
|
|
359
360
|
validateEmail: (t) => {
|
|
360
361
|
const i = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
@@ -415,7 +416,7 @@ const V = {
|
|
|
415
416
|
}
|
|
416
417
|
};
|
|
417
418
|
}, W = () => {
|
|
418
|
-
const { t: n } =
|
|
419
|
+
const { t: n } = P(), { validateEmail: e } = J();
|
|
419
420
|
return {
|
|
420
421
|
email: (t) => {
|
|
421
422
|
const i = e(t);
|
|
@@ -465,14 +466,14 @@ const V = {
|
|
|
465
466
|
}, r = (l, c) => {
|
|
466
467
|
const d = e.getState();
|
|
467
468
|
let u = c;
|
|
468
|
-
l in
|
|
469
|
+
l in z && (u = z[l](c));
|
|
469
470
|
const f = {
|
|
470
471
|
...d.formData,
|
|
471
472
|
[l]: u
|
|
472
473
|
}, g = { ...d.errors };
|
|
473
474
|
if (d.touched[l]) {
|
|
474
|
-
const
|
|
475
|
-
|
|
475
|
+
const x = t(l, u);
|
|
476
|
+
x ? g[l] = x : delete g[l];
|
|
476
477
|
}
|
|
477
478
|
e.setState({
|
|
478
479
|
formData: f,
|
|
@@ -543,7 +544,6 @@ function ee({
|
|
|
543
544
|
let o = null;
|
|
544
545
|
const l = async () => {
|
|
545
546
|
try {
|
|
546
|
-
console.log("[IframeConfig] Generating iframe configuration...");
|
|
547
547
|
const m = await Q({
|
|
548
548
|
props: {
|
|
549
549
|
payment: r
|
|
@@ -551,7 +551,7 @@ function ee({
|
|
|
551
551
|
apiKey: n,
|
|
552
552
|
environment: a
|
|
553
553
|
});
|
|
554
|
-
m && (
|
|
554
|
+
m && (s.setState({
|
|
555
555
|
iframeConfig: {
|
|
556
556
|
...m,
|
|
557
557
|
origin: globalThis.location.origin
|
|
@@ -562,16 +562,16 @@ function ee({
|
|
|
562
562
|
}
|
|
563
563
|
}, c = () => {
|
|
564
564
|
const m = s.getState();
|
|
565
|
-
if (
|
|
565
|
+
if (!m.iframeConfig || !e) {
|
|
566
566
|
console.error(
|
|
567
567
|
"[IframeConfig] Missing iframe config or checkout profile."
|
|
568
568
|
);
|
|
569
569
|
return;
|
|
570
570
|
}
|
|
571
|
-
const
|
|
572
|
-
if (!
|
|
571
|
+
const C = document.getElementById("card-element"), w = document.getElementById("card-cvv-element");
|
|
572
|
+
if (!C || !w)
|
|
573
573
|
throw new Error("Card elements not found in DOM");
|
|
574
|
-
|
|
574
|
+
o = new globalThis.TokenEx.Iframe("card-element", {
|
|
575
575
|
...m.iframeConfig,
|
|
576
576
|
placeholder: "1234 1234 1234 1234",
|
|
577
577
|
cvvPlaceholder: "CVC",
|
|
@@ -596,20 +596,18 @@ function ee({
|
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
}), o.on("load", () => {
|
|
599
|
-
|
|
599
|
+
s.setState({ loadingIframe: !1 });
|
|
600
600
|
}), o.on("autoCompleteValues", function(y) {
|
|
601
|
-
const { nameOnCard:
|
|
601
|
+
const { nameOnCard: M, cardExp: b } = y;
|
|
602
602
|
i({
|
|
603
|
-
name:
|
|
604
|
-
cardExpiry:
|
|
603
|
+
name: M,
|
|
604
|
+
cardExpiry: b
|
|
605
605
|
});
|
|
606
606
|
}), o.on("validate", function(y) {
|
|
607
|
-
const { isValid:
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
isCcValid: F,
|
|
612
|
-
isCvvValid: C
|
|
607
|
+
const { isValid: M, isCvvValid: b } = y;
|
|
608
|
+
s.setState({
|
|
609
|
+
isCcValid: M,
|
|
610
|
+
isCvvValid: b
|
|
613
611
|
});
|
|
614
612
|
}), o.on("focus", function() {
|
|
615
613
|
s.setState({ isFocused: !0 });
|
|
@@ -626,8 +624,7 @@ function ee({
|
|
|
626
624
|
}
|
|
627
625
|
), o.load();
|
|
628
626
|
}, d = () => {
|
|
629
|
-
|
|
630
|
-
if (console.log("[IframeConfig] initializeIframe started."), !m.iframeConfig || !e) {
|
|
627
|
+
if (!s.getState().iframeConfig || !e) {
|
|
631
628
|
console.error(
|
|
632
629
|
"[IframeConfig] Missing iframe config or checkout profile for initialization."
|
|
633
630
|
);
|
|
@@ -638,19 +635,19 @@ function ee({
|
|
|
638
635
|
return;
|
|
639
636
|
}
|
|
640
637
|
try {
|
|
641
|
-
|
|
642
|
-
} catch (
|
|
643
|
-
console.error("Failed to create TokenEx iframe:",
|
|
638
|
+
c();
|
|
639
|
+
} catch (C) {
|
|
640
|
+
console.error("Failed to create TokenEx iframe:", C);
|
|
644
641
|
}
|
|
645
642
|
}, u = async () => {
|
|
646
|
-
n &&
|
|
643
|
+
n && await l();
|
|
647
644
|
}, f = () => {
|
|
648
645
|
o && (o.remove(), o = null);
|
|
649
646
|
}, g = async (m) => {
|
|
650
|
-
o && (o.on("tokenize", async function(
|
|
651
|
-
await m(
|
|
647
|
+
o && (o.on("tokenize", async function(C) {
|
|
648
|
+
await m(C);
|
|
652
649
|
}), o.tokenize());
|
|
653
|
-
},
|
|
650
|
+
}, x = () => {
|
|
654
651
|
if (o)
|
|
655
652
|
try {
|
|
656
653
|
o.focus();
|
|
@@ -671,7 +668,7 @@ function ee({
|
|
|
671
668
|
tokenize: g,
|
|
672
669
|
cleanup: f,
|
|
673
670
|
initialize: u,
|
|
674
|
-
focusCardNumber:
|
|
671
|
+
focusCardNumber: x,
|
|
675
672
|
focusCvv: I
|
|
676
673
|
};
|
|
677
674
|
}
|
|
@@ -693,23 +690,23 @@ const te = "E-Mail", ie = "Name des/der Karteninhaber/in", ae = "Kartendaten", r
|
|
|
693
690
|
loading: fe,
|
|
694
691
|
buttonTexts: ge,
|
|
695
692
|
validation: ye
|
|
696
|
-
}, Ee = "Correo electrónico", Ce = "Nombre del titular de la tarjeta", be = "Información de la tarjeta",
|
|
693
|
+
}, Ee = "Correo electrónico", Ce = "Nombre del titular de la tarjeta", be = "Información de la tarjeta", Se = "Nombre completo en la tarjeta", xe = "MM / AA", Fe = "Por favor, no cierre esta ventana", we = { pay: "PAGAR", submit: "ENVIAR", getPlan: "OBTENER MI PLAN", donate: "DONAR", book: "RESERVAR AHORA", order: "ORDENAR AHORA" }, Me = { emailSuggestion: "¿Quisiste decir {{email}}?", emailInvalid: "Su correo electrónico no es válido", cardExpiryInvalid: "La fecha de vencimiento de la tarjeta ya pasó", cardExpiryFormat: "La fecha de vencimiento de su tarjeta está incompleta", cardSecurityFormat: "El código de seguridad de su tarjeta está incompleto", nameRequired: "Por favor, ingrese el nombre tal como aparece en su tarjeta", cardNumberInvalid: "Su número de tarjeta no es válido" }, Le = {
|
|
697
694
|
email: Ee,
|
|
698
695
|
cardholderNameLabel: Ce,
|
|
699
696
|
cardInformation: be,
|
|
700
|
-
cardholderNamePlaceholder:
|
|
701
|
-
cardExpiry:
|
|
697
|
+
cardholderNamePlaceholder: Se,
|
|
698
|
+
cardExpiry: xe,
|
|
702
699
|
loading: Fe,
|
|
703
700
|
buttonTexts: we,
|
|
704
701
|
validation: Me
|
|
705
|
-
}, Te = "E-mail", ke = "Nom du titulaire de la carte", Ie = "Informations de la carte", Ne = "Nom complet figurant sur la carte",
|
|
702
|
+
}, Te = "E-mail", ke = "Nom du titulaire de la carte", Ie = "Informations de la carte", Ne = "Nom complet figurant sur la carte", Pe = "MM / AA", Ve = "Veuillez ne pas fermer cette fenêtre", ze = { pay: "PAYER", submit: "ENVOYER", getPlan: "OBTENIR MON PLAN", donate: "FAIRE UN DON", book: "RÉSERVER MAINTENANT", order: "COMMANDER MAINTENANT" }, Ae = { emailSuggestion: "Vouliez-vous dire {{email}}?", emailInvalid: "Votre adresse e-mail n’est pas valide", cardExpiryInvalid: "La date d'expiration de votre carte est dans le passé", cardExpiryFormat: "La date d’expiration de votre carte est incomplète", cardSecurityFormat: "Le code de sécurité de votre carte est incomplet", nameRequired: "Veuillez saisir le nom tel qu’il figure sur votre carte", cardNumberInvalid: "Votre numéro de carte est invalide" }, De = {
|
|
706
703
|
email: Te,
|
|
707
704
|
cardholderNameLabel: ke,
|
|
708
705
|
cardInformation: Ie,
|
|
709
706
|
cardholderNamePlaceholder: Ne,
|
|
710
|
-
cardExpiry:
|
|
711
|
-
loading:
|
|
712
|
-
buttonTexts:
|
|
707
|
+
cardExpiry: Pe,
|
|
708
|
+
loading: Ve,
|
|
709
|
+
buttonTexts: ze,
|
|
713
710
|
validation: Ae
|
|
714
711
|
}, $e = "Email", Re = "Nome del titolare della carta", Be = "Informazioni sulla carta", He = "Nome completo sulla carta", Oe = "MM / AA", qe = "Non chiudere la finestra", Ke = { pay: "PAGA", submit: "INVIA", getPlan: "OTTIENI IL MIO PIANO", donate: "DONARE", book: "PRENOTA ORA", order: "ORDINA ORA" }, je = { emailSuggestion: "Intendevi {{email}}?", emailInvalid: "La tua email non è corretta", cardExpiryInvalid: "La data di scadenza della tua carta è nel passato", cardExpiryFormat: "La data di scadenza della tua carta è incompleta", cardSecurityFormat: "Il codice di sicurezza della tua carta è incompleto", nameRequired: "Inserisci il nome come appare sulla tua carta", cardNumberInvalid: "Il numero della tua carta non è valido" }, Ue = {
|
|
715
712
|
email: $e,
|
|
@@ -826,8 +823,8 @@ function bt(n) {
|
|
|
826
823
|
subscribe: a.subscribe.bind(a)
|
|
827
824
|
};
|
|
828
825
|
}
|
|
829
|
-
const
|
|
830
|
-
const { translate: n, getLocale: e, setLocale: t, subscribe: i } =
|
|
826
|
+
const St = bt(), P = () => {
|
|
827
|
+
const { translate: n, getLocale: e, setLocale: t, subscribe: i } = St;
|
|
831
828
|
return {
|
|
832
829
|
t: n,
|
|
833
830
|
translate: n,
|
|
@@ -835,7 +832,7 @@ const xt = bt(), z = () => {
|
|
|
835
832
|
setLocale: t,
|
|
836
833
|
subscribe: i
|
|
837
834
|
};
|
|
838
|
-
},
|
|
835
|
+
}, xt = ({ fontFamily: n }) => {
|
|
839
836
|
if (!n)
|
|
840
837
|
return { cleanup: () => {
|
|
841
838
|
} };
|
|
@@ -893,7 +890,6 @@ const xt = bt(), z = () => {
|
|
|
893
890
|
class wt {
|
|
894
891
|
// The sequence of fields to focus in order
|
|
895
892
|
focusSequence = [
|
|
896
|
-
"email",
|
|
897
893
|
"cardNumber",
|
|
898
894
|
"cardExpiry",
|
|
899
895
|
"cardCvv",
|
|
@@ -988,10 +984,10 @@ class wt {
|
|
|
988
984
|
}, 0);
|
|
989
985
|
}
|
|
990
986
|
/**
|
|
991
|
-
* Focus the
|
|
987
|
+
* Focus the card number field (first field)
|
|
992
988
|
* Used for setting initial focus on page load
|
|
993
989
|
*/
|
|
994
|
-
|
|
990
|
+
focusCardNumberField() {
|
|
995
991
|
this.currentFocusIndex = 0, this.applyFocusToCurrentField();
|
|
996
992
|
}
|
|
997
993
|
}
|
|
@@ -1149,7 +1145,7 @@ class h {
|
|
|
1149
1145
|
}), this.eventListeners = [], this.children.forEach((e) => e.destroy()), this.children = [], this.element.parentNode && this.element.parentNode.removeChild(this.element);
|
|
1150
1146
|
}
|
|
1151
1147
|
}
|
|
1152
|
-
class
|
|
1148
|
+
class F {
|
|
1153
1149
|
/**
|
|
1154
1150
|
* Create a div element
|
|
1155
1151
|
*/
|
|
@@ -1222,14 +1218,14 @@ class Lt extends h {
|
|
|
1222
1218
|
messageComponent;
|
|
1223
1219
|
constructor(e) {
|
|
1224
1220
|
super("div", []);
|
|
1225
|
-
const t =
|
|
1221
|
+
const t = F.createDiv(["error-alert"], {
|
|
1226
1222
|
role: "alert",
|
|
1227
1223
|
"aria-live": "polite"
|
|
1228
|
-
}), i =
|
|
1224
|
+
}), i = F.createDiv(["error-alert-content"]), a = F.createDiv([
|
|
1229
1225
|
"error-alert-icon-container"
|
|
1230
1226
|
]);
|
|
1231
1227
|
a.getElement().innerHTML = this.createAlertCircleSVG();
|
|
1232
|
-
const r =
|
|
1228
|
+
const r = F.createDiv([
|
|
1233
1229
|
"error-alert-text-container"
|
|
1234
1230
|
]), s = new h("h4", [
|
|
1235
1231
|
"error-alert-title"
|
|
@@ -1265,7 +1261,7 @@ class $ extends h {
|
|
|
1265
1261
|
titleElement;
|
|
1266
1262
|
constructor(e = {}) {
|
|
1267
1263
|
super("div", ["blur-bg"]);
|
|
1268
|
-
const t =
|
|
1264
|
+
const t = F.createDiv(["loader"]);
|
|
1269
1265
|
this.titleElement = new h("h3", ["title"]), this.titleElement.setText(e.text || ""), this.appendChild(t), this.appendChild(this.titleElement);
|
|
1270
1266
|
}
|
|
1271
1267
|
setText(e) {
|
|
@@ -1299,7 +1295,7 @@ class Tt extends h {
|
|
|
1299
1295
|
t.style.fontFamily = "inherit", t.style.color = e.styles.color, t.style.fontSize = `${e.styles.fontSize}px`;
|
|
1300
1296
|
}
|
|
1301
1297
|
}
|
|
1302
|
-
class
|
|
1298
|
+
class V extends h {
|
|
1303
1299
|
inputElement;
|
|
1304
1300
|
helperText = null;
|
|
1305
1301
|
constructor(e) {
|
|
@@ -1319,7 +1315,7 @@ class P extends h {
|
|
|
1319
1315
|
name: e.name,
|
|
1320
1316
|
class: `form-input ${e.error ? "form-input-error" : ""}`
|
|
1321
1317
|
};
|
|
1322
|
-
if (e.placeholder && (t.placeholder = e.placeholder), e.value && (t.value = e.value), e.required && (t.required = String(e.required)), e.disabled && (t.disabled = String(e.disabled)), e.autocomplete && (t.autocomplete = e.autocomplete), this.inputElement =
|
|
1318
|
+
if (e.placeholder && (t.placeholder = e.placeholder), e.value && (t.value = e.value), e.required && (t.required = String(e.required)), e.disabled && (t.disabled = String(e.disabled)), e.autocomplete && (t.autocomplete = e.autocomplete), this.inputElement = F.createInput(
|
|
1323
1319
|
e.type || "text",
|
|
1324
1320
|
[],
|
|
1325
1321
|
t
|
|
@@ -1365,7 +1361,7 @@ class kt {
|
|
|
1365
1361
|
translationFunc: l,
|
|
1366
1362
|
autocomplete: c = "cc-name"
|
|
1367
1363
|
} = e;
|
|
1368
|
-
this.input = new
|
|
1364
|
+
this.input = new V({
|
|
1369
1365
|
name: "name",
|
|
1370
1366
|
label: l("cardholderNameLabel"),
|
|
1371
1367
|
// Always hide error initially - we'll show it only on blur if needed
|
|
@@ -1427,14 +1423,14 @@ class It extends h {
|
|
|
1427
1423
|
return t && (e ? t.classList.add("loading") : t.classList.remove("loading")), this;
|
|
1428
1424
|
}
|
|
1429
1425
|
}
|
|
1430
|
-
const Nt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='30px'%20width='30px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20style='fill:%23306FC5;'%20d='M512,402.281c0,16.716-13.55,30.267-30.265,30.267H30.265C13.55,432.549,0,418.997,0,402.281V109.717%20c0-16.715,13.55-30.266,30.265-30.266h451.47c16.716,0,30.265,13.551,30.265,30.266V402.281L512,402.281z'/%3e%3cpath%20style='opacity:0.15;fill:%23202121;enable-background:new%20;'%20d='M21.517,402.281V109.717%20c0-16.715,13.552-30.266,30.267-30.266h-21.52C13.55,79.451,0,93.001,0,109.717v292.565c0,16.716,13.55,30.267,30.265,30.267h21.52%20C35.07,432.549,21.517,418.997,21.517,402.281z'/%3e%3cg%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='74.59,220.748%2089.888,220.748%2082.241,201.278%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='155.946,286.107%20155.946,295.148%20181.675,295.148%20181.675,304.885%20155.946,304.885%20155.946,315.318%20184.455,315.318%20197.666,300.712%20185.151,286.107%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='356.898,201.278%20348.553,220.748%20364.548,220.748%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='230.348,320.875%20230.348,281.241%20212.268,300.712%20'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M264.42,292.368c-0.696-4.172-3.48-6.261-7.654-6.261h-14.599v12.516h15.299%20C261.637,298.624,264.42,296.539,264.42,292.368z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M313.09,297.236c1.391-0.697,2.089-2.785,2.089-4.867c0.696-2.779-0.698-4.172-2.089-4.868%20c-1.387-0.696-3.476-0.696-5.559-0.696h-13.91v11.127h13.909C309.613,297.932,311.702,297.932,313.09,297.236z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M413.217,183.198v8.344l-4.169-8.344H376.37v8.344l-4.174-8.344h-44.502%20c-7.648,0-13.909,1.392-19.469,4.173v-4.173h-31.289v0.696v3.477c-3.476-2.78-7.648-4.173-13.211-4.173h-111.95l-7.652,17.384%20l-7.647-17.384h-25.031h-10.431v8.344l-3.477-8.344h-0.696H66.942l-13.909,32.68L37.042,251.34l-0.294,0.697h0.294h35.463h0.444%20l0.252-0.697l4.174-10.428h9.039l4.172,11.125h40.326v-0.697v-7.647l3.479,8.343h20.163l3.475-8.343v7.647v0.697h15.993h79.965%20h0.696v-18.08h1.394c1.389,0,1.389,0,1.389,2.087v15.297h50.065v-4.172c4.172,2.089,10.426,4.172,18.771,4.172h20.863l4.172-11.123%20h9.732l4.172,11.123h40.328v-6.952v-3.476l6.261,10.428h1.387h0.698h30.595v-68.143h-31.291l0,0H413.217z%20M177.501,241.609h-6.955%20h-4.171v-4.169v-34.076l-0.696,1.595v-0.019l-16.176,36.669h-0.512h-3.719h-6.017l-16.687-38.245v38.245h-23.64l-4.867-10.43%20H70.417l-4.868,10.43H53.326l20.57-48.675h17.382l19.469,46.587v-46.587h4.171h14.251l0.328,0.697h0.024l8.773,19.094l6.3,14.306%20l0.223-0.721l13.906-33.375H177.5v48.674H177.501L177.501,241.609z%20M225.481,203.364h-27.119v9.039h26.423v9.734h-26.423v9.738%20h27.119v10.427h-38.939v-49.367h38.939V203.364L225.481,203.364z%20M275.076,221.294c0.018,0.016,0.041,0.027,0.063,0.042%20c0.263,0.278,0.488,0.557,0.68,0.824c1.332,1.746,2.409,4.343,2.463,8.151c0.004,0.066,0.007,0.131,0.011,0.197%20c0,0.038,0.007,0.071,0.007,0.11c0,0.022-0.002,0.039-0.002,0.06c0.016,0.383,0.026,0.774,0.026,1.197v9.735h-10.428v-5.565%20c0-2.781,0-6.954-2.089-9.735c-0.657-0.657-1.322-1.09-2.046-1.398c-1.042-0.675-3.017-0.686-6.295-0.686h-12.52v17.384h-11.818%20v-48.675h26.425c6.254,0,10.428,0,13.906,2.086c3.407,2.046,5.465,5.439,5.543,10.812c-0.161,7.4-4.911,11.46-8.326,12.829%20C270.676,218.662,272.996,219.129,275.076,221.294z%20M298.491,241.609h-11.822v-48.675h11.822V241.609z%20M434.083,241.609h-15.3%20l-22.25-36.855v30.595l-0.073-0.072v6.362h-11.747v-0.029h-11.822l-4.172-10.43H344.38l-4.172,11.123h-13.211%20c-5.559,0-12.517-1.389-16.687-5.561c-4.172-4.172-6.256-9.735-6.256-18.773c0-6.953,1.389-13.911,6.256-19.472%20c3.474-4.175,9.735-5.562,17.382-5.562h11.128v10.429h-11.128c-4.172,0-6.254,0.693-9.041,2.783%20c-2.082,2.085-3.474,6.256-3.474,11.123c0,5.564,0.696,9.04,3.474,11.821c2.091,2.089,4.87,2.785,8.346,2.785h4.867l15.991-38.243%20h6.957h10.428l19.472,46.587v-2.376v-15.705v-1.389v-27.116h17.382l20.161,34.07v-34.07h11.826v47.977h0.002L434.083,241.609%20L434.083,241.609z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M265.161,213.207c0.203-0.217,0.387-0.463,0.543-0.745c0.63-0.997,1.352-2.793,0.963-5.244%20c-0.016-0.225-0.057-0.433-0.105-0.634c-0.013-0.056-0.011-0.105-0.026-0.161l-0.007,0.001c-0.346-1.191-1.229-1.923-2.11-2.367%20c-1.394-0.693-3.48-0.693-5.565-0.693h-13.909v11.127h13.909c2.085,0,4.172,0,5.565-0.697c0.209-0.106,0.395-0.25,0.574-0.413%20l0.002,0.009C264.996,213.389,265.067,213.315,265.161,213.207z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M475.105,311.144c0-4.867-1.389-9.736-3.474-13.212v-31.289h-0.032v-2.089c0,0-29.145,0-33.483,0%20c-4.336,0-9.598,4.171-9.598,4.171v-4.171h-31.984c-4.87,0-11.124,1.392-13.909,4.171v-4.171h-57.016v2.089v2.081%20c-4.169-3.474-11.824-4.171-15.298-4.171h-37.549v2.089v2.081c-3.476-3.474-11.824-4.171-15.998-4.171H215.05l-9.737,10.431%20l-9.04-10.431h-2.911h-4.737h-54.93v2.089v5.493v62.651h61.19l10.054-10.057l8.715,10.057h0.698h35.258h1.598h0.696h0.692v-6.953%20v-9.039h3.479c4.863,0,11.124,0,15.991-2.089v17.382v1.394h31.291v-1.394V317.4h1.387c2.089,0,2.089,0,2.089,2.086v14.6v1.394%20h94.563c6.263,0,12.517-1.394,15.993-4.175v2.781v1.394h29.902c6.254,0,12.517-0.695,16.689-3.478%20c6.402-3.841,10.437-10.64,11.037-18.749c0.028-0.24,0.063-0.48,0.085-0.721l-0.041-0.039%20C475.087,312.043,475.105,311.598,475.105,311.144z%20M256.076,306.973h-13.91v2.081v4.174v4.173v7.649h-22.855l-13.302-15.299%20l-0.046,0.051l-0.65-0.748l-15.297,15.996h-44.501v-48.673h45.197l12.348,13.525l2.596,2.832l0.352-0.365l14.604-15.991h36.852%20c7.152,0,15.161,1.765,18.196,9.042c0.365,1.441,0.577,3.043,0.577,4.863C276.237,304.189,266.502,306.973,256.076,306.973z%20M325.609,306.276c1.389,2.081,2.085,4.867,2.085,9.041v9.732h-11.819v-6.256c0-2.786,0-7.65-2.089-9.739%20c-1.387-2.081-4.172-2.081-8.341-2.081H292.93v18.077h-11.82v-49.369h26.421c5.559,0,10.426,0,13.909,2.084%20c3.474,2.088,6.254,5.565,6.254,11.128c0,7.647-4.865,11.819-8.343,13.212C322.829,303.49,324.914,304.885,325.609,306.276z%20M373.589,286.107h-27.122v9.04h26.424v9.737h-26.424v9.736h27.122v10.429H334.65V275.68h38.939V286.107z%20M402.791,325.05h-22.252%20v-10.429h22.252c2.082,0,3.476,0,4.87-1.392c0.696-0.697,1.387-2.085,1.387-3.477c0-1.394-0.691-2.778-1.387-3.475%20c-0.698-0.695-2.091-1.391-4.176-1.391c-11.126-0.696-24.337,0-24.337-15.296c0-6.954,4.172-14.604,16.689-14.604h22.945v11.819%20h-21.554c-2.085,0-3.478,0-4.87,0.696c-1.387,0.697-1.387,2.089-1.387,3.478c0,2.087,1.387,2.783,2.778,3.473%20c1.394,0.697,2.783,0.697,4.172,0.697h6.259c6.259,0,10.43,1.391,13.211,4.173c2.087,2.087,3.478,5.564,3.478,10.43%20C420.869,320.179,414.611,325.05,402.791,325.05z%20M462.59,320.179c-2.778,2.785-7.648,4.871-14.604,4.871H425.74v-10.429h22.245%20c2.087,0,3.481,0,4.87-1.392c0.693-0.697,1.391-2.085,1.391-3.477c0-1.394-0.698-2.778-1.391-3.475%20c-0.696-0.695-2.085-1.391-4.172-1.391c-11.122-0.696-24.337,0-24.337-15.295c0-6.609,3.781-12.579,13.106-14.352%20c1.115-0.154,2.293-0.253,3.583-0.253h22.948v11.819h-15.3h-5.561h-0.696c-2.087,0-3.476,0-4.865,0.696%20c-0.7,0.697-1.396,2.089-1.396,3.478c0,2.087,0.696,2.783,2.785,3.473c1.389,0.697,2.78,0.697,4.172,0.697h0.691h5.565%20c3.039,0,5.337,0.375,7.44,1.114c1.926,0.697,8.302,3.549,9.728,10.994c0.124,0.78,0.215,1.594,0.215,2.495%20C466.761,313.925,465.37,317.401,462.59,320.179z'/%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='30px'%20width='30px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20style='fill:%2334495E;'%20d='M512,402.282c0,16.716-13.55,30.267-30.265,30.267H30.265C13.55,432.549,0,418.996,0,402.282V109.717%20c0-16.716,13.55-30.266,30.265-30.266h451.469c16.716,0,30.265,13.551,30.265,30.266L512,402.282L512,402.282z'/%3e%3cpath%20style='opacity:0.15;fill:%23202121;enable-background:new%20;'%20d='M21.517,402.282V109.717%20c0-16.716,13.552-30.266,30.267-30.266h-21.52C13.55,79.451,0,93.003,0,109.717v292.565c0,16.716,13.55,30.267,30.265,30.267h21.52%20C35.07,432.549,21.517,418.996,21.517,402.282z'/%3e%3cpath%20style='fill:%23F26E21;'%20d='M309.389,255.801c0.041-9.636-3.572-19.286-10.843-26.558c-7.287-7.287-16.961-10.897-26.617-10.839%20c-0.046,0-0.091-0.003-0.139-0.003c-20.968,0-37.6,16.628-37.6,37.602c0,20.767,16.837,37.599,37.6,37.599%20c20.974,0,37.604-16.631,37.604-37.599C309.394,255.934,309.389,255.869,309.389,255.801z'/%3e%3cg%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M227.198,271.909c-5.62,5.626-10.807,7.824-16.394,7.943c-13.611-0.122-23.618-10.202-23.618-24.573%20c0-7.234,2.739-13.163,7.078-18.228l0,0c4.069-3.863,9.311-6.359,15.339-6.359c6.507,0,11.571,2.169,17.352,7.954v-16.631%20c-5.78-2.891-10.846-4.338-17.352-4.338c-9.192,0.657-17.859,4.371-24.507,10.203l0,0c-1.916,1.724-3.752,3.627-5.309,5.805%20c-4.856,6.294-7.791,14.001-7.791,22.32c0,20.967,16.637,36.875,37.606,36.875c0.102,0,0.203-0.009,0.302-0.01%20c0.141,0.002,0.28,0.01,0.42,0.01c5.784,0,10.85-1.443,17.357-4.336L227.198,271.909c-0.244,0.244,0.242,0.471,0,0.702V271.909z'/%3e%3cpolygon%20style='fill:%23E7E8E3;'%20points='356.863,228.033%20356.863,228.033%20340.487,268.295%20321.685,220.566%20306.502,220.566%20336.148,293.601%20344.102,293.601%20375.196,220.566%20360.013,220.566%20'/%3e%3cpolygon%20style='fill:%23E7E8E3;'%20points='380.983,252.384%20380.983,291.435%20420.033,291.435%20420.753,291.435%20420.753,279.861%20408.461,279.861%20395.445,279.861%20395.445,266.848%20395.445,260.342%20420.033,260.342%20420.033,248.045%20395.445,248.045%20395.445,232.861%20420.753,232.861%20420.753,220.566%20380.983,220.566%20'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M54.135,220.566H33.884v70.869h20.25c10.845,0,18.798-2.895,25.306-7.957%20c7.953-6.508,13.017-16.629,13.017-27.474C92.458,235.028,77.27,220.566,54.135,220.566z%20M70.765,274.08%20c-4.339,3.614-10.124,5.781-18.802,5.781h-4.339V232.86h3.615c8.678,0,14.463,1.446,18.803,5.783%20c5.061,4.336,7.955,10.848,7.955,17.358C78.72,262.509,75.828,269.737,70.765,274.08z'/%3e%3crect%20x='98.97'%20y='220.56'%20style='fill:%23E7E8E3;'%20width='13.739'%20height='70.867'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M147.415,248.045c-8.676-2.892-10.848-5.063-10.848-8.677c0-4.339,4.339-7.954,10.124-7.954%20c4.339,0,7.954,1.447,11.57,5.786l7.233-9.4c-5.787-5.064-13.015-7.953-20.97-7.953c-12.296,0-22.42,8.678-22.42,20.244%20c0,10.126,4.343,14.464,17.357,19.526c5.785,2.166,7.955,2.892,9.404,4.338c2.887,1.444,4.336,4.339,4.336,7.228%20c0,5.786-4.336,10.126-10.848,10.126c-6.514,0-12.294-3.615-15.187-9.401l-8.678,8.678c6.511,9.4,14.465,13.738,24.589,13.738%20c14.461,0,24.58-9.4,24.58-23.141C167.659,258.893,163.324,253.831,147.415,248.045z'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M459.804,261.783c10.843-2.166,16.63-9.4,16.63-20.244c0-13.014-9.402-20.973-25.308-20.973h-20.972%20v70.869h13.739V263.23h2.172l19.519,28.205h16.634L459.804,261.783z%20M448.23,253.105h-4.336v-21.691h4.336%20c8.678,0,13.742,3.614,13.742,10.85C461.972,249.492,456.909,253.105,448.23,253.105z'/%3e%3c/g%3e%3c/svg%3e", Pt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20291.791%20291.791'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23E2574C;'%20d='M182.298,145.895c0,50.366-40.801,91.176-91.149,91.176S0,196.252,0,145.895%20s40.811-91.176,91.149-91.176S182.298,95.538,182.298,145.895z'/%3e%3cpath%20style='fill:%23F4B459;'%20d='M200.616,54.719c-20.442,0-39.261,6.811-54.469,18.181l0.073,0.009%20c2.991,2.89,6.291,4.924,8.835,8.251l-18.965,0.301c-2.972,3-5.68,6.264-8.233,9.656H161.3c2.544,3.054,4.896,5.708,7.03,9.081%20h-46.536c-1.705,2.936-3.282,5.954-4.659,9.09h56.493c1.477,3.127,2.799,5.489,3.921,8.799h-63.76%20c-1.012,3.146-1.878,6.364-2.535,9.646h68.966c0.675,3.155,1.194,6.072,1.55,9.045h-71.884c-0.301,3-0.456,6.045-0.456,9.118%20h72.859c0,3.228-0.228,6.218-0.556,9.118h-71.847c0.31,3.091,0.766,6.127,1.368,9.118h68.856c-0.711,2.954-1.532,5.926-2.562,9.008%20h-63.969c0.966,3.118,2.143,6.145,3.428,9.099h56.621c-1.568,3.319-3.346,5.972-5.306,9.081h-46.691%20c1.842,3.191,3.875,6.236,6.081,9.154l33.589,0.501c-2.863,3.437-6.537,5.507-9.884,8.516c0.182,0.146-5.352-0.018-16.248-0.191%20c16.576,17.105,39.744,27.772,65.446,27.772c50.357,0,91.176-40.82,91.176-91.176S250.981,54.719,200.616,54.719z'/%3e%3c/g%3e%3c/svg%3e", Vt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-140%20780%20780'%20enable-background='new%200%200%20780%20500'%20version='1.1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40,0h700c22.092,0,40,17.909,40,40v420c0,22.092-17.908,40-40,40H40c-22.091,0-40-17.908-40-40V40%20C0,17.909,17.909,0,40,0z'%20fill='%230E4595'/%3e%3cpath%20d='m293.2%20348.73l33.361-195.76h53.36l-33.385%20195.76h-53.336zm246.11-191.54c-10.57-3.966-27.137-8.222-47.822-8.222-52.725%200-89.865%2026.55-90.18%2064.603-0.299%2028.13%2026.514%2043.822%2046.752%2053.186%2020.771%209.595%2027.752%2015.714%2027.654%2024.283-0.131%2013.121-16.586%2019.116-31.922%2019.116-21.357%200-32.703-2.967-50.227-10.276l-6.876-3.11-7.489%2043.823c12.463%205.464%2035.51%2010.198%2059.438%2010.443%2056.09%200%2092.5-26.246%2092.916-66.882%200.199-22.269-14.016-39.216-44.801-53.188-18.65-9.055-30.072-15.099-29.951-24.268%200-8.137%209.668-16.839%2030.557-16.839%2017.449-0.27%2030.09%203.535%2039.938%207.5l4.781%202.26%207.232-42.429m137.31-4.223h-41.232c-12.773%200-22.332%203.487-27.941%2016.234l-79.244%20179.4h56.031s9.16-24.123%2011.232-29.418c6.125%200%2060.555%200.084%2068.338%200.084%201.596%206.853%206.49%2029.334%206.49%2029.334h49.514l-43.188-195.64zm-65.418%20126.41c4.412-11.279%2021.26-54.723%2021.26-54.723-0.316%200.522%204.379-11.334%207.074-18.684l3.605%2016.879s10.219%2046.729%2012.354%2056.528h-44.293zm-363.3-126.41l-52.24%20133.5-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766%20171.2%2056.456-0.064%2084.004-195.39h-56.521'%20fill='%23ffffff'/%3e%3cpath%20d='m146.92%20152.96h-86.041l-0.681%204.073c66.938%2016.204%20111.23%2055.363%20129.62%20102.41l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.527'%20fill='%23F2AE14'/%3e%3c/svg%3e", L = [
|
|
1426
|
+
const Nt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='30px'%20width='30px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20style='fill:%23306FC5;'%20d='M512,402.281c0,16.716-13.55,30.267-30.265,30.267H30.265C13.55,432.549,0,418.997,0,402.281V109.717%20c0-16.715,13.55-30.266,30.265-30.266h451.47c16.716,0,30.265,13.551,30.265,30.266V402.281L512,402.281z'/%3e%3cpath%20style='opacity:0.15;fill:%23202121;enable-background:new%20;'%20d='M21.517,402.281V109.717%20c0-16.715,13.552-30.266,30.267-30.266h-21.52C13.55,79.451,0,93.001,0,109.717v292.565c0,16.716,13.55,30.267,30.265,30.267h21.52%20C35.07,432.549,21.517,418.997,21.517,402.281z'/%3e%3cg%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='74.59,220.748%2089.888,220.748%2082.241,201.278%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='155.946,286.107%20155.946,295.148%20181.675,295.148%20181.675,304.885%20155.946,304.885%20155.946,315.318%20184.455,315.318%20197.666,300.712%20185.151,286.107%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='356.898,201.278%20348.553,220.748%20364.548,220.748%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='230.348,320.875%20230.348,281.241%20212.268,300.712%20'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M264.42,292.368c-0.696-4.172-3.48-6.261-7.654-6.261h-14.599v12.516h15.299%20C261.637,298.624,264.42,296.539,264.42,292.368z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M313.09,297.236c1.391-0.697,2.089-2.785,2.089-4.867c0.696-2.779-0.698-4.172-2.089-4.868%20c-1.387-0.696-3.476-0.696-5.559-0.696h-13.91v11.127h13.909C309.613,297.932,311.702,297.932,313.09,297.236z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M413.217,183.198v8.344l-4.169-8.344H376.37v8.344l-4.174-8.344h-44.502%20c-7.648,0-13.909,1.392-19.469,4.173v-4.173h-31.289v0.696v3.477c-3.476-2.78-7.648-4.173-13.211-4.173h-111.95l-7.652,17.384%20l-7.647-17.384h-25.031h-10.431v8.344l-3.477-8.344h-0.696H66.942l-13.909,32.68L37.042,251.34l-0.294,0.697h0.294h35.463h0.444%20l0.252-0.697l4.174-10.428h9.039l4.172,11.125h40.326v-0.697v-7.647l3.479,8.343h20.163l3.475-8.343v7.647v0.697h15.993h79.965%20h0.696v-18.08h1.394c1.389,0,1.389,0,1.389,2.087v15.297h50.065v-4.172c4.172,2.089,10.426,4.172,18.771,4.172h20.863l4.172-11.123%20h9.732l4.172,11.123h40.328v-6.952v-3.476l6.261,10.428h1.387h0.698h30.595v-68.143h-31.291l0,0H413.217z%20M177.501,241.609h-6.955%20h-4.171v-4.169v-34.076l-0.696,1.595v-0.019l-16.176,36.669h-0.512h-3.719h-6.017l-16.687-38.245v38.245h-23.64l-4.867-10.43%20H70.417l-4.868,10.43H53.326l20.57-48.675h17.382l19.469,46.587v-46.587h4.171h14.251l0.328,0.697h0.024l8.773,19.094l6.3,14.306%20l0.223-0.721l13.906-33.375H177.5v48.674H177.501L177.501,241.609z%20M225.481,203.364h-27.119v9.039h26.423v9.734h-26.423v9.738%20h27.119v10.427h-38.939v-49.367h38.939V203.364L225.481,203.364z%20M275.076,221.294c0.018,0.016,0.041,0.027,0.063,0.042%20c0.263,0.278,0.488,0.557,0.68,0.824c1.332,1.746,2.409,4.343,2.463,8.151c0.004,0.066,0.007,0.131,0.011,0.197%20c0,0.038,0.007,0.071,0.007,0.11c0,0.022-0.002,0.039-0.002,0.06c0.016,0.383,0.026,0.774,0.026,1.197v9.735h-10.428v-5.565%20c0-2.781,0-6.954-2.089-9.735c-0.657-0.657-1.322-1.09-2.046-1.398c-1.042-0.675-3.017-0.686-6.295-0.686h-12.52v17.384h-11.818%20v-48.675h26.425c6.254,0,10.428,0,13.906,2.086c3.407,2.046,5.465,5.439,5.543,10.812c-0.161,7.4-4.911,11.46-8.326,12.829%20C270.676,218.662,272.996,219.129,275.076,221.294z%20M298.491,241.609h-11.822v-48.675h11.822V241.609z%20M434.083,241.609h-15.3%20l-22.25-36.855v30.595l-0.073-0.072v6.362h-11.747v-0.029h-11.822l-4.172-10.43H344.38l-4.172,11.123h-13.211%20c-5.559,0-12.517-1.389-16.687-5.561c-4.172-4.172-6.256-9.735-6.256-18.773c0-6.953,1.389-13.911,6.256-19.472%20c3.474-4.175,9.735-5.562,17.382-5.562h11.128v10.429h-11.128c-4.172,0-6.254,0.693-9.041,2.783%20c-2.082,2.085-3.474,6.256-3.474,11.123c0,5.564,0.696,9.04,3.474,11.821c2.091,2.089,4.87,2.785,8.346,2.785h4.867l15.991-38.243%20h6.957h10.428l19.472,46.587v-2.376v-15.705v-1.389v-27.116h17.382l20.161,34.07v-34.07h11.826v47.977h0.002L434.083,241.609%20L434.083,241.609z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M265.161,213.207c0.203-0.217,0.387-0.463,0.543-0.745c0.63-0.997,1.352-2.793,0.963-5.244%20c-0.016-0.225-0.057-0.433-0.105-0.634c-0.013-0.056-0.011-0.105-0.026-0.161l-0.007,0.001c-0.346-1.191-1.229-1.923-2.11-2.367%20c-1.394-0.693-3.48-0.693-5.565-0.693h-13.909v11.127h13.909c2.085,0,4.172,0,5.565-0.697c0.209-0.106,0.395-0.25,0.574-0.413%20l0.002,0.009C264.996,213.389,265.067,213.315,265.161,213.207z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M475.105,311.144c0-4.867-1.389-9.736-3.474-13.212v-31.289h-0.032v-2.089c0,0-29.145,0-33.483,0%20c-4.336,0-9.598,4.171-9.598,4.171v-4.171h-31.984c-4.87,0-11.124,1.392-13.909,4.171v-4.171h-57.016v2.089v2.081%20c-4.169-3.474-11.824-4.171-15.298-4.171h-37.549v2.089v2.081c-3.476-3.474-11.824-4.171-15.998-4.171H215.05l-9.737,10.431%20l-9.04-10.431h-2.911h-4.737h-54.93v2.089v5.493v62.651h61.19l10.054-10.057l8.715,10.057h0.698h35.258h1.598h0.696h0.692v-6.953%20v-9.039h3.479c4.863,0,11.124,0,15.991-2.089v17.382v1.394h31.291v-1.394V317.4h1.387c2.089,0,2.089,0,2.089,2.086v14.6v1.394%20h94.563c6.263,0,12.517-1.394,15.993-4.175v2.781v1.394h29.902c6.254,0,12.517-0.695,16.689-3.478%20c6.402-3.841,10.437-10.64,11.037-18.749c0.028-0.24,0.063-0.48,0.085-0.721l-0.041-0.039%20C475.087,312.043,475.105,311.598,475.105,311.144z%20M256.076,306.973h-13.91v2.081v4.174v4.173v7.649h-22.855l-13.302-15.299%20l-0.046,0.051l-0.65-0.748l-15.297,15.996h-44.501v-48.673h45.197l12.348,13.525l2.596,2.832l0.352-0.365l14.604-15.991h36.852%20c7.152,0,15.161,1.765,18.196,9.042c0.365,1.441,0.577,3.043,0.577,4.863C276.237,304.189,266.502,306.973,256.076,306.973z%20M325.609,306.276c1.389,2.081,2.085,4.867,2.085,9.041v9.732h-11.819v-6.256c0-2.786,0-7.65-2.089-9.739%20c-1.387-2.081-4.172-2.081-8.341-2.081H292.93v18.077h-11.82v-49.369h26.421c5.559,0,10.426,0,13.909,2.084%20c3.474,2.088,6.254,5.565,6.254,11.128c0,7.647-4.865,11.819-8.343,13.212C322.829,303.49,324.914,304.885,325.609,306.276z%20M373.589,286.107h-27.122v9.04h26.424v9.737h-26.424v9.736h27.122v10.429H334.65V275.68h38.939V286.107z%20M402.791,325.05h-22.252%20v-10.429h22.252c2.082,0,3.476,0,4.87-1.392c0.696-0.697,1.387-2.085,1.387-3.477c0-1.394-0.691-2.778-1.387-3.475%20c-0.698-0.695-2.091-1.391-4.176-1.391c-11.126-0.696-24.337,0-24.337-15.296c0-6.954,4.172-14.604,16.689-14.604h22.945v11.819%20h-21.554c-2.085,0-3.478,0-4.87,0.696c-1.387,0.697-1.387,2.089-1.387,3.478c0,2.087,1.387,2.783,2.778,3.473%20c1.394,0.697,2.783,0.697,4.172,0.697h6.259c6.259,0,10.43,1.391,13.211,4.173c2.087,2.087,3.478,5.564,3.478,10.43%20C420.869,320.179,414.611,325.05,402.791,325.05z%20M462.59,320.179c-2.778,2.785-7.648,4.871-14.604,4.871H425.74v-10.429h22.245%20c2.087,0,3.481,0,4.87-1.392c0.693-0.697,1.391-2.085,1.391-3.477c0-1.394-0.698-2.778-1.391-3.475%20c-0.696-0.695-2.085-1.391-4.172-1.391c-11.122-0.696-24.337,0-24.337-15.295c0-6.609,3.781-12.579,13.106-14.352%20c1.115-0.154,2.293-0.253,3.583-0.253h22.948v11.819h-15.3h-5.561h-0.696c-2.087,0-3.476,0-4.865,0.696%20c-0.7,0.697-1.396,2.089-1.396,3.478c0,2.087,0.696,2.783,2.785,3.473c1.389,0.697,2.78,0.697,4.172,0.697h0.691h5.565%20c3.039,0,5.337,0.375,7.44,1.114c1.926,0.697,8.302,3.549,9.728,10.994c0.124,0.78,0.215,1.594,0.215,2.495%20C466.761,313.925,465.37,317.401,462.59,320.179z'/%3e%3c/g%3e%3c/svg%3e", Pt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='30px'%20width='30px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20style='fill:%2334495E;'%20d='M512,402.282c0,16.716-13.55,30.267-30.265,30.267H30.265C13.55,432.549,0,418.996,0,402.282V109.717%20c0-16.716,13.55-30.266,30.265-30.266h451.469c16.716,0,30.265,13.551,30.265,30.266L512,402.282L512,402.282z'/%3e%3cpath%20style='opacity:0.15;fill:%23202121;enable-background:new%20;'%20d='M21.517,402.282V109.717%20c0-16.716,13.552-30.266,30.267-30.266h-21.52C13.55,79.451,0,93.003,0,109.717v292.565c0,16.716,13.55,30.267,30.265,30.267h21.52%20C35.07,432.549,21.517,418.996,21.517,402.282z'/%3e%3cpath%20style='fill:%23F26E21;'%20d='M309.389,255.801c0.041-9.636-3.572-19.286-10.843-26.558c-7.287-7.287-16.961-10.897-26.617-10.839%20c-0.046,0-0.091-0.003-0.139-0.003c-20.968,0-37.6,16.628-37.6,37.602c0,20.767,16.837,37.599,37.6,37.599%20c20.974,0,37.604-16.631,37.604-37.599C309.394,255.934,309.389,255.869,309.389,255.801z'/%3e%3cg%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M227.198,271.909c-5.62,5.626-10.807,7.824-16.394,7.943c-13.611-0.122-23.618-10.202-23.618-24.573%20c0-7.234,2.739-13.163,7.078-18.228l0,0c4.069-3.863,9.311-6.359,15.339-6.359c6.507,0,11.571,2.169,17.352,7.954v-16.631%20c-5.78-2.891-10.846-4.338-17.352-4.338c-9.192,0.657-17.859,4.371-24.507,10.203l0,0c-1.916,1.724-3.752,3.627-5.309,5.805%20c-4.856,6.294-7.791,14.001-7.791,22.32c0,20.967,16.637,36.875,37.606,36.875c0.102,0,0.203-0.009,0.302-0.01%20c0.141,0.002,0.28,0.01,0.42,0.01c5.784,0,10.85-1.443,17.357-4.336L227.198,271.909c-0.244,0.244,0.242,0.471,0,0.702V271.909z'/%3e%3cpolygon%20style='fill:%23E7E8E3;'%20points='356.863,228.033%20356.863,228.033%20340.487,268.295%20321.685,220.566%20306.502,220.566%20336.148,293.601%20344.102,293.601%20375.196,220.566%20360.013,220.566%20'/%3e%3cpolygon%20style='fill:%23E7E8E3;'%20points='380.983,252.384%20380.983,291.435%20420.033,291.435%20420.753,291.435%20420.753,279.861%20408.461,279.861%20395.445,279.861%20395.445,266.848%20395.445,260.342%20420.033,260.342%20420.033,248.045%20395.445,248.045%20395.445,232.861%20420.753,232.861%20420.753,220.566%20380.983,220.566%20'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M54.135,220.566H33.884v70.869h20.25c10.845,0,18.798-2.895,25.306-7.957%20c7.953-6.508,13.017-16.629,13.017-27.474C92.458,235.028,77.27,220.566,54.135,220.566z%20M70.765,274.08%20c-4.339,3.614-10.124,5.781-18.802,5.781h-4.339V232.86h3.615c8.678,0,14.463,1.446,18.803,5.783%20c5.061,4.336,7.955,10.848,7.955,17.358C78.72,262.509,75.828,269.737,70.765,274.08z'/%3e%3crect%20x='98.97'%20y='220.56'%20style='fill:%23E7E8E3;'%20width='13.739'%20height='70.867'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M147.415,248.045c-8.676-2.892-10.848-5.063-10.848-8.677c0-4.339,4.339-7.954,10.124-7.954%20c4.339,0,7.954,1.447,11.57,5.786l7.233-9.4c-5.787-5.064-13.015-7.953-20.97-7.953c-12.296,0-22.42,8.678-22.42,20.244%20c0,10.126,4.343,14.464,17.357,19.526c5.785,2.166,7.955,2.892,9.404,4.338c2.887,1.444,4.336,4.339,4.336,7.228%20c0,5.786-4.336,10.126-10.848,10.126c-6.514,0-12.294-3.615-15.187-9.401l-8.678,8.678c6.511,9.4,14.465,13.738,24.589,13.738%20c14.461,0,24.58-9.4,24.58-23.141C167.659,258.893,163.324,253.831,147.415,248.045z'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M459.804,261.783c10.843-2.166,16.63-9.4,16.63-20.244c0-13.014-9.402-20.973-25.308-20.973h-20.972%20v70.869h13.739V263.23h2.172l19.519,28.205h16.634L459.804,261.783z%20M448.23,253.105h-4.336v-21.691h4.336%20c8.678,0,13.742,3.614,13.742,10.85C461.972,249.492,456.909,253.105,448.23,253.105z'/%3e%3c/g%3e%3c/svg%3e", Vt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20291.791%20291.791'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23E2574C;'%20d='M182.298,145.895c0,50.366-40.801,91.176-91.149,91.176S0,196.252,0,145.895%20s40.811-91.176,91.149-91.176S182.298,95.538,182.298,145.895z'/%3e%3cpath%20style='fill:%23F4B459;'%20d='M200.616,54.719c-20.442,0-39.261,6.811-54.469,18.181l0.073,0.009%20c2.991,2.89,6.291,4.924,8.835,8.251l-18.965,0.301c-2.972,3-5.68,6.264-8.233,9.656H161.3c2.544,3.054,4.896,5.708,7.03,9.081%20h-46.536c-1.705,2.936-3.282,5.954-4.659,9.09h56.493c1.477,3.127,2.799,5.489,3.921,8.799h-63.76%20c-1.012,3.146-1.878,6.364-2.535,9.646h68.966c0.675,3.155,1.194,6.072,1.55,9.045h-71.884c-0.301,3-0.456,6.045-0.456,9.118%20h72.859c0,3.228-0.228,6.218-0.556,9.118h-71.847c0.31,3.091,0.766,6.127,1.368,9.118h68.856c-0.711,2.954-1.532,5.926-2.562,9.008%20h-63.969c0.966,3.118,2.143,6.145,3.428,9.099h56.621c-1.568,3.319-3.346,5.972-5.306,9.081h-46.691%20c1.842,3.191,3.875,6.236,6.081,9.154l33.589,0.501c-2.863,3.437-6.537,5.507-9.884,8.516c0.182,0.146-5.352-0.018-16.248-0.191%20c16.576,17.105,39.744,27.772,65.446,27.772c50.357,0,91.176-40.82,91.176-91.176S250.981,54.719,200.616,54.719z'/%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-140%20780%20780'%20enable-background='new%200%200%20780%20500'%20version='1.1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40,0h700c22.092,0,40,17.909,40,40v420c0,22.092-17.908,40-40,40H40c-22.091,0-40-17.908-40-40V40%20C0,17.909,17.909,0,40,0z'%20fill='%230E4595'/%3e%3cpath%20d='m293.2%20348.73l33.361-195.76h53.36l-33.385%20195.76h-53.336zm246.11-191.54c-10.57-3.966-27.137-8.222-47.822-8.222-52.725%200-89.865%2026.55-90.18%2064.603-0.299%2028.13%2026.514%2043.822%2046.752%2053.186%2020.771%209.595%2027.752%2015.714%2027.654%2024.283-0.131%2013.121-16.586%2019.116-31.922%2019.116-21.357%200-32.703-2.967-50.227-10.276l-6.876-3.11-7.489%2043.823c12.463%205.464%2035.51%2010.198%2059.438%2010.443%2056.09%200%2092.5-26.246%2092.916-66.882%200.199-22.269-14.016-39.216-44.801-53.188-18.65-9.055-30.072-15.099-29.951-24.268%200-8.137%209.668-16.839%2030.557-16.839%2017.449-0.27%2030.09%203.535%2039.938%207.5l4.781%202.26%207.232-42.429m137.31-4.223h-41.232c-12.773%200-22.332%203.487-27.941%2016.234l-79.244%20179.4h56.031s9.16-24.123%2011.232-29.418c6.125%200%2060.555%200.084%2068.338%200.084%201.596%206.853%206.49%2029.334%206.49%2029.334h49.514l-43.188-195.64zm-65.418%20126.41c4.412-11.279%2021.26-54.723%2021.26-54.723-0.316%200.522%204.379-11.334%207.074-18.684l3.605%2016.879s10.219%2046.729%2012.354%2056.528h-44.293zm-363.3-126.41l-52.24%20133.5-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766%20171.2%2056.456-0.064%2084.004-195.39h-56.521'%20fill='%23ffffff'/%3e%3cpath%20d='m146.92%20152.96h-86.041l-0.681%204.073c66.938%2016.204%20111.23%2055.363%20129.62%20102.41l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.527'%20fill='%23F2AE14'/%3e%3c/svg%3e", L = [
|
|
1431
1427
|
{
|
|
1432
1428
|
type: "visa",
|
|
1433
|
-
imgSrc:
|
|
1429
|
+
imgSrc: zt
|
|
1434
1430
|
},
|
|
1435
1431
|
{
|
|
1436
1432
|
type: "masterCard",
|
|
1437
|
-
imgSrc:
|
|
1433
|
+
imgSrc: Vt
|
|
1438
1434
|
},
|
|
1439
1435
|
{
|
|
1440
1436
|
type: "americanExpress",
|
|
@@ -1442,7 +1438,7 @@ const Nt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%
|
|
|
1442
1438
|
},
|
|
1443
1439
|
{
|
|
1444
1440
|
type: "discover",
|
|
1445
|
-
imgSrc:
|
|
1441
|
+
imgSrc: Pt
|
|
1446
1442
|
}
|
|
1447
1443
|
];
|
|
1448
1444
|
class At extends h {
|
|
@@ -1524,11 +1520,11 @@ class Dt extends h {
|
|
|
1524
1520
|
cardExpiry: u,
|
|
1525
1521
|
cardExpiryError: f,
|
|
1526
1522
|
cardExpiryTouched: g,
|
|
1527
|
-
onChange:
|
|
1523
|
+
onChange: x,
|
|
1528
1524
|
onBlur: I,
|
|
1529
1525
|
translationFunc: m,
|
|
1530
|
-
cardExpiryAutocomplete:
|
|
1531
|
-
} = e,
|
|
1526
|
+
cardExpiryAutocomplete: C = "cc-exp"
|
|
1527
|
+
} = e, w = document.createElement("div");
|
|
1532
1528
|
this.cardNumber = new At({
|
|
1533
1529
|
styles: {
|
|
1534
1530
|
color: t.styles.textColor,
|
|
@@ -1539,9 +1535,9 @@ class Dt extends h {
|
|
|
1539
1535
|
isLoading: i,
|
|
1540
1536
|
isFocused: a,
|
|
1541
1537
|
cardType: d
|
|
1542
|
-
}),
|
|
1538
|
+
}), w.appendChild(this.cardNumber.getElement());
|
|
1543
1539
|
const y = document.createElement("div");
|
|
1544
|
-
y.className = "card-details", this.cardExpiry = new
|
|
1540
|
+
y.className = "card-details", this.cardExpiry = new V({
|
|
1545
1541
|
name: "cardExpiry",
|
|
1546
1542
|
type: "tel",
|
|
1547
1543
|
placeholder: m("cardExpiry"),
|
|
@@ -1549,11 +1545,11 @@ class Dt extends h {
|
|
|
1549
1545
|
error: !1,
|
|
1550
1546
|
errorMsg: f,
|
|
1551
1547
|
value: u,
|
|
1552
|
-
autocomplete:
|
|
1548
|
+
autocomplete: C,
|
|
1553
1549
|
onChange: (p) => {
|
|
1554
1550
|
this.cardExpiry.setError(!1);
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1551
|
+
const S = this.validationMessages.get("cardExpiry");
|
|
1552
|
+
S && (S.getElement().remove(), this.validationMessages.delete("cardExpiry"), this.updateErrorContainerHeight()), this.trimCardExpiry(), x(p);
|
|
1557
1553
|
},
|
|
1558
1554
|
styles: {
|
|
1559
1555
|
color: t.styles.textColor,
|
|
@@ -1564,27 +1560,27 @@ class Dt extends h {
|
|
|
1564
1560
|
}), this.cardExpiry.addEventListener("blur", (p) => {
|
|
1565
1561
|
f && g && this.cardExpiry.setError(!0, f), I(p);
|
|
1566
1562
|
}), this.cardExpiry.addEventListener("keydown", (p) => {
|
|
1567
|
-
const
|
|
1563
|
+
const S = p, B = [
|
|
1568
1564
|
"Backspace",
|
|
1569
1565
|
"Delete",
|
|
1570
1566
|
"ArrowLeft",
|
|
1571
1567
|
"ArrowRight",
|
|
1572
1568
|
"Tab"
|
|
1573
1569
|
], H = this.cardExpiry.getValue().replace(/\D/g, "");
|
|
1574
|
-
B.includes(
|
|
1570
|
+
B.includes(S.key) || (!/^\d$/.test(S.key) || H.length >= 4 && !S.isComposing) && S.preventDefault();
|
|
1575
1571
|
});
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1572
|
+
const M = this.cardExpiry.getElement();
|
|
1573
|
+
M.style.height = "38.5px";
|
|
1574
|
+
const b = document.createElement("div");
|
|
1575
|
+
b.className = "input-wrapper", this.cardCvv = new It({
|
|
1580
1576
|
styles: {
|
|
1581
1577
|
borderRadius: typeof t.styles.borderRadius == "number" ? t.styles.borderRadius : 0
|
|
1582
1578
|
},
|
|
1583
1579
|
isLoading: i,
|
|
1584
1580
|
isFocused: r
|
|
1585
|
-
}),
|
|
1581
|
+
}), b.appendChild(this.cardCvv.getElement()), y.appendChild(this.cardExpiry.getElement()), y.appendChild(b), w.appendChild(y);
|
|
1586
1582
|
const v = document.createElement("div");
|
|
1587
|
-
if (v.className = "error-messages-container", v.style.width = "100%", v.style.transition = "height 0.3s ease-in-out, opacity 0.3s ease-in-out", v.style.overflow = "hidden", v.style.height = "0px", v.style.opacity = "0", this.getElement().appendChild(
|
|
1583
|
+
if (v.className = "error-messages-container", v.style.width = "100%", v.style.transition = "height 0.3s ease-in-out, opacity 0.3s ease-in-out", v.style.overflow = "hidden", v.style.height = "0px", v.style.opacity = "0", this.getElement().appendChild(w), this.getElement().appendChild(v), (a || l) && !s) {
|
|
1588
1584
|
const p = new E({
|
|
1589
1585
|
text: m("validation.cardNumberInvalid")
|
|
1590
1586
|
});
|
|
@@ -1730,7 +1726,7 @@ class $t {
|
|
|
1730
1726
|
translationFunc: l,
|
|
1731
1727
|
autocomplete: c = "email"
|
|
1732
1728
|
} = e;
|
|
1733
|
-
this.input = new
|
|
1729
|
+
this.input = new V({
|
|
1734
1730
|
name: "email",
|
|
1735
1731
|
label: l("email"),
|
|
1736
1732
|
// Always hide error initially - we'll show it only on blur if needed
|
|
@@ -1824,9 +1820,7 @@ class Ht extends h {
|
|
|
1824
1820
|
return;
|
|
1825
1821
|
}
|
|
1826
1822
|
if (r === void 0) {
|
|
1827
|
-
|
|
1828
|
-
"[PaymentMethods] No supportedPaymentMethods provided, hiding payment methods"
|
|
1829
|
-
), this.getElement().style.display = "none";
|
|
1823
|
+
this.getElement().style.display = "none";
|
|
1830
1824
|
return;
|
|
1831
1825
|
}
|
|
1832
1826
|
const s = Object.entries(
|
|
@@ -1957,7 +1951,7 @@ class _t extends h {
|
|
|
1957
1951
|
// factories
|
|
1958
1952
|
formManager = X();
|
|
1959
1953
|
checkoutProfile;
|
|
1960
|
-
translation =
|
|
1954
|
+
translation = P();
|
|
1961
1955
|
iframeHook;
|
|
1962
1956
|
constructor(e) {
|
|
1963
1957
|
super("form", ["form-container"]), this.options = e, this.checkoutProfile = _({
|
|
@@ -1988,16 +1982,16 @@ class _t extends h {
|
|
|
1988
1982
|
if (!e.isLoading)
|
|
1989
1983
|
if (e.checkoutProfile)
|
|
1990
1984
|
try {
|
|
1991
|
-
if (
|
|
1985
|
+
if (e.checkoutProfile.styles?.fontFamily)
|
|
1992
1986
|
try {
|
|
1993
|
-
const { cleanup: t } =
|
|
1987
|
+
const { cleanup: t } = xt({
|
|
1994
1988
|
fontFamily: e.checkoutProfile.styles.fontFamily
|
|
1995
1989
|
});
|
|
1996
1990
|
this.fontCleanup = t;
|
|
1997
1991
|
} catch (t) {
|
|
1998
1992
|
console.error("Error loading Google Font:", t);
|
|
1999
1993
|
}
|
|
2000
|
-
this.renderFormComponents(),
|
|
1994
|
+
this.renderFormComponents(), this.initializeTokenExIframe().catch((t) => {
|
|
2001
1995
|
console.error("Error initializing TokenEx iframe:", t);
|
|
2002
1996
|
});
|
|
2003
1997
|
} catch (t) {
|
|
@@ -2011,7 +2005,6 @@ class _t extends h {
|
|
|
2011
2005
|
e.fontFamily && (this.getElement().style.fontFamily = e.fontFamily);
|
|
2012
2006
|
}
|
|
2013
2007
|
initializeTokenExIframe = async () => {
|
|
2014
|
-
console.log("[Form] initializeTokenExIframe started.");
|
|
2015
2008
|
const e = this.checkoutProfile.getState();
|
|
2016
2009
|
if (!e.checkoutProfile) {
|
|
2017
2010
|
console.error("Cannot initialize iframe: No checkout profile available");
|
|
@@ -2019,9 +2012,7 @@ class _t extends h {
|
|
|
2019
2012
|
}
|
|
2020
2013
|
if (!this.iframeHook)
|
|
2021
2014
|
try {
|
|
2022
|
-
if (await this.tokenExScriptPromise,
|
|
2023
|
-
"[Form] TokenEx script is loaded, proceeding with iframe initialization."
|
|
2024
|
-
), !("TokenEx" in globalThis)) {
|
|
2015
|
+
if (await this.tokenExScriptPromise, !("TokenEx" in globalThis)) {
|
|
2025
2016
|
console.error(
|
|
2026
2017
|
"[Form] TokenEx script loaded but TokenEx is not available in globalThis."
|
|
2027
2018
|
);
|
|
@@ -2047,7 +2038,7 @@ class _t extends h {
|
|
|
2047
2038
|
},
|
|
2048
2039
|
environment: this.options.environment,
|
|
2049
2040
|
paymentId: this.options.paymentId || ""
|
|
2050
|
-
}), this.iframeHook?.subscribe(this.handleIframeStateChange),
|
|
2041
|
+
}), this.iframeHook?.subscribe(this.handleIframeStateChange), await this.iframeHook?.initialize();
|
|
2051
2042
|
} catch (t) {
|
|
2052
2043
|
throw console.error("Failed to initialize payment form:", t), t;
|
|
2053
2044
|
}
|
|
@@ -2121,14 +2112,11 @@ class _t extends h {
|
|
|
2121
2112
|
}
|
|
2122
2113
|
};
|
|
2123
2114
|
initializeForm() {
|
|
2124
|
-
|
|
2125
|
-
const e = this.options.environment === "test" ? jt : Ut
|
|
2126
|
-
console.log("[Form] Appending TokenEx script.");
|
|
2127
|
-
const { cleanup: t, isLoaded: i } = Ft({
|
|
2115
|
+
this.setLoadingState(!0), this.options.errorMsg && this.setErrorMessage(this.options.errorMsg);
|
|
2116
|
+
const e = this.options.environment === "test" ? jt : Ut, { cleanup: t, isLoaded: i } = Ft({
|
|
2128
2117
|
scriptSrc: e
|
|
2129
2118
|
});
|
|
2130
2119
|
this.scriptCleanup = t, this.tokenExScriptPromise = i, i.then(() => {
|
|
2131
|
-
console.log("[Form] TokenEx script loaded successfully.");
|
|
2132
2120
|
}).catch(() => {
|
|
2133
2121
|
this.setLoadingState(!1), this.setErrorMessage(
|
|
2134
2122
|
"Failed to load payment system. Please try again later."
|
|
@@ -2136,37 +2124,35 @@ class _t extends h {
|
|
|
2136
2124
|
});
|
|
2137
2125
|
}
|
|
2138
2126
|
renderFormComponents() {
|
|
2139
|
-
if (
|
|
2140
|
-
console.log("[Form] Components already rendered, skipping.");
|
|
2127
|
+
if (this.emailField)
|
|
2141
2128
|
return;
|
|
2142
|
-
}
|
|
2143
2129
|
const e = this.checkoutProfile.getState();
|
|
2144
2130
|
if (!e.checkoutProfile) {
|
|
2145
2131
|
this.setErrorMessage("Failed to load checkout configuration");
|
|
2146
2132
|
return;
|
|
2147
2133
|
}
|
|
2148
2134
|
try {
|
|
2149
|
-
|
|
2135
|
+
this.createPaymentMethods(e.checkoutProfile);
|
|
2150
2136
|
} catch (t) {
|
|
2151
2137
|
console.error("Failed to create payment methods:", t);
|
|
2152
2138
|
}
|
|
2153
2139
|
try {
|
|
2154
|
-
|
|
2140
|
+
this.createEmailField(e.checkoutProfile);
|
|
2155
2141
|
} catch (t) {
|
|
2156
2142
|
console.error("Failed to create email field:", t);
|
|
2157
2143
|
}
|
|
2158
2144
|
try {
|
|
2159
|
-
|
|
2145
|
+
this.createCardSection(e.checkoutProfile);
|
|
2160
2146
|
} catch (t) {
|
|
2161
2147
|
console.error("Failed to create card section:", t);
|
|
2162
2148
|
}
|
|
2163
2149
|
try {
|
|
2164
|
-
|
|
2150
|
+
this.createCardholderSection(e.checkoutProfile);
|
|
2165
2151
|
} catch (t) {
|
|
2166
2152
|
console.error("Failed to create cardholder section:", t);
|
|
2167
2153
|
}
|
|
2168
2154
|
try {
|
|
2169
|
-
|
|
2155
|
+
this.createSubmitButton(e.checkoutProfile);
|
|
2170
2156
|
} catch (t) {
|
|
2171
2157
|
console.error("Failed to create submit button:", t);
|
|
2172
2158
|
}
|
package/dist/package.json
CHANGED