@payfurl/client 4.9.0 → 4.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/sdk/{CloseIcon-BJgZxU_4.js → CloseIcon-_KV9iu0n.js} +1235 -1197
  2. package/dist/sdk/{DefaultThreeDsProvider-aIZr-d29.js → DefaultThreeDsProvider-DreQM4fZ.js} +33 -54
  3. package/dist/sdk/{MetricsGlobalThreeDsProvider-D3x5hiTk.js → MetricsGlobalThreeDsProvider-UjlztqNp.js} +27 -35
  4. package/dist/sdk/{PayWayAppleButton-DESHrVB-.js → PayWayAppleButton-wGK5SMiI.js} +3 -13
  5. package/dist/sdk/{alerts-Bad_5Z62.js → alerts-xVUTwiZD.js} +1 -1
  6. package/dist/sdk/{CxPayThreeDsProvider-lD7RyyaH.js → cxpay-2xgRySpM.js} +7 -2
  7. package/dist/sdk/{default-Sih0fC9J.js → default-C1jUec5H.js} +1 -1
  8. package/dist/sdk/{EcentricThreeDsProvider-B7Hq90Yp.js → ecentric-H05aJpLn.js} +8 -3
  9. package/dist/sdk/{EpnaThreeDsProvider-BAO2GROY.js → epna-DTN4buF_.js} +7 -2
  10. package/dist/sdk/{FlashBancThreeDsProvider-CIZpoTAj.js → flashbanc-BeK15hvh.js} +7 -2
  11. package/dist/sdk/{forterDeviceIntelScript-DdHZ7KLR.js → forter-B5mAsqh7.js} +52 -2
  12. package/dist/sdk/forter-DH-MZghb.js +28 -0
  13. package/dist/sdk/{GPaymentsThreeDsProvider-COuZ_3w6.js → gpayments-B5l_XcOn.js} +11 -17
  14. package/dist/sdk/managedOrders-D8BtEsXf.js +23 -0
  15. package/dist/sdk/{metrics_global-DshQOuaW.js → metrics_global-B-VSDUV6.js} +1 -1
  16. package/dist/sdk/nmi-DqmyITL0.js +17 -0
  17. package/dist/sdk/{NuveiThreeDsProvider-BpWi_OJA.js → nuvei-D4BRLq6t.js} +12 -16
  18. package/dist/sdk/{PayabliThreeDsProvider-B34Ah8DW.js → payabli-BuZpPAgS.js} +7 -2
  19. package/dist/sdk/payfurl.es.js +796 -1050
  20. package/dist/sdk/payfurl.umd.js +8 -7
  21. package/dist/sdk/{PayGLocalThreeDsProvider-DvA8Ng4u.js → payglocal--1ddjrp-.js} +32 -39
  22. package/dist/sdk/{payway_rest-m9k6k7M0.js → payway_rest-Dwo-Hfis.js} +1 -1
  23. package/dist/sdk/{SkyBankThreeDsProvider-0S5UKz-C.js → skybank-DwVlGG-A.js} +7 -2
  24. package/dist/sdk/{strings-C1wc79_e.js → strings-CnX8240A.js} +13 -19
  25. package/dist/sdk/style.css +1 -1
  26. package/package.json +1 -1
  27. package/dist/sdk/NmiThreeDsProvider-fLTB46dM.js +0 -12
  28. package/dist/sdk/ThreeDsAuthResponse.type-BvRk9kiK.js +0 -0
  29. package/dist/sdk/ThreeDsInitResponse.type-BvRk9kiK.js +0 -0
  30. package/dist/sdk/ThreeDsPostAuthResponse.type-BFN9wqum.js +0 -26
  31. package/dist/sdk/ThreeDsProvider.interface-BvRk9kiK.js +0 -0
  32. package/dist/sdk/cxpay-2tlxyzUF.js +0 -7
  33. package/dist/sdk/ecentric-CN_DxZw6.js +0 -7
  34. package/dist/sdk/epna-CuWMBne4.js +0 -7
  35. package/dist/sdk/flashbanc-YdmE24o7.js +0 -7
  36. package/dist/sdk/forter-CcQiwntl.js +0 -60
  37. package/dist/sdk/fraudCheck.type-BvRk9kiK.js +0 -0
  38. package/dist/sdk/fraudProvider.type-Bzd9orn2.js +0 -7
  39. package/dist/sdk/fraudStatus.type-BvRk9kiK.js +0 -0
  40. package/dist/sdk/gpayments-DVhgcMCp.js +0 -7
  41. package/dist/sdk/nmi-Qo4scfgJ.js +0 -7
  42. package/dist/sdk/nuvei-BFllJ45f.js +0 -7
  43. package/dist/sdk/payabli-eGPashQz.js +0 -7
  44. package/dist/sdk/payglocal-WvM5v5cn.js +0 -7
  45. package/dist/sdk/skybank-174OmYCW.js +0 -7
@@ -1,15 +1,7 @@
1
- import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, Dt as s, Et as c, F as l, Ft as u, H as d, Ht as f, I as p, It as m, K as h, L as g, Lt as _, M as v, Mt as y, Nt as b, Ot as x, P as S, Pt as C, Q as ee, R as te, Rt as ne, S as re, St as ie, Tt as w, U as ae, Ut as oe, Vt as se, W as ce, X as le, Y as ue, Z as T, _t as de, a as fe, at as pe, b as me, bt as E, c as he, ct as ge, d as _e, dt as D, et as ve, f as ye, ft as be, gt as O, ht as xe, it as Se, j as Ce, jt as we, kt as Te, lt as Ee, m as De, mt as Oe, n as ke, nt as Ae, o as je, ot as Me, pt as Ne, r as Pe, rt as k, st as Fe, t as Ie, tt as Le, ut as A, v as Re, vt as j, wt as ze, x as Be, xt as M, y as Ve, yt as He, z as Ue, zt as We } from "./CloseIcon-BJgZxU_4.js";
2
- import { a as Ge, c as Ke, i as qe, l as Je, n as Ye, o as N, r as P, s as F, t as Xe, u as Ze } from "./strings-C1wc79_e.js";
3
- import { t as Qe } from "./screen-D7xBu0cj.js";
4
- import { n as $e, t as I } from "./alerts-Bad_5Z62.js";
5
- //#region \0rolldown_dynamic_import_helper.js
6
- var et = (e, t, n) => {
7
- let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
8
- return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
9
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
10
- });
11
- };
12
- //#endregion
1
+ import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, Dt as s, Et as c, F as l, Ft as u, H as d, Ht as f, I as p, It as m, K as h, L as g, Lt as _, M as v, Mt as y, Nt as b, Ot as x, P as S, Pt as C, Q as ee, R as te, Rt as ne, S as re, St as ie, Tt as w, U as ae, Vt as oe, W as se, X as ce, Y as le, Z as T, _t as ue, a as de, at as fe, b as pe, bt as E, c as me, ct as he, d as ge, dt as D, et as _e, f as ve, ft as ye, gt as O, ht as be, it as xe, j as Se, jt as Ce, kt as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, pt as Me, r as Ne, rt as k, st as Pe, t as Fe, tt as Ie, ut as A, v as Le, vt as j, wt as Re, x as ze, xt as M, y as Be, yt as Ve, z as He, zt as Ue } from "./CloseIcon-_KV9iu0n.js";
2
+ import { a as We, c as Ge, i as Ke, l as qe, n as Je, o as N, r as P, s as F, t as Ye, u as Xe } from "./strings-CnX8240A.js";
3
+ import { t as Ze } from "./screen-D7xBu0cj.js";
4
+ import { n as Qe, t as I } from "./alerts-xVUTwiZD.js";
13
5
  //#region node_modules/tslib/tslib.es6.mjs
14
6
  function L(e, t, n, r) {
15
7
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
@@ -19,7 +11,7 @@ function L(e, t, n, r) {
19
11
  }
20
12
  //#endregion
21
13
  //#region src/utils/ErrorHandler.ts
22
- var tt = class e {
14
+ var $e = class e {
23
15
  static instance;
24
16
  static environment;
25
17
  static publicKey;
@@ -34,7 +26,7 @@ var tt = class e {
34
26
  }
35
27
  sendError(t, n, r) {
36
28
  try {
37
- let i = Ze(e.environment), a = /* @__PURE__ */ new Date();
29
+ let i = Xe(e.environment), a = /* @__PURE__ */ new Date();
38
30
  this.httpInvoker?.invoke(i, "POST", JSON.stringify({
39
31
  method: t,
40
32
  message: n,
@@ -45,7 +37,7 @@ var tt = class e {
45
37
  browser: {
46
38
  userAgent: navigator.userAgent,
47
39
  language: window.navigator.language,
48
- colorDepth: String(Qe()),
40
+ colorDepth: String(Ze()),
49
41
  screenHeight: screen.height + "",
50
42
  screenWidth: screen.width + "",
51
43
  timezone: Math.round(a.getTimezoneOffset() / 60) + "",
@@ -67,7 +59,7 @@ function R(e, t, n) {
67
59
  try {
68
60
  return r.apply(this, arguments);
69
61
  } catch (n) {
70
- throw new tt().sendError(t, n.message, rt(Array.from(arguments))), console.warn("[ErrorHandled], exception", {
62
+ throw new $e().sendError(t, n.message, tt(Array.from(arguments))), console.warn("[ErrorHandled], exception", {
71
63
  error: n,
72
64
  target: e,
73
65
  propertyKey: t,
@@ -81,7 +73,7 @@ function z(e, t, n) {
81
73
  try {
82
74
  return n.apply(e, r);
83
75
  } catch (e) {
84
- throw new tt().sendError(t, e.message, rt(r)), console.warn("[ErrorHandledFunction], exception", {
76
+ throw new $e().sendError(t, e.message, tt(r)), console.warn("[ErrorHandledFunction], exception", {
85
77
  error: e,
86
78
  funcName: t,
87
79
  args: r
@@ -89,22 +81,22 @@ function z(e, t, n) {
89
81
  }
90
82
  };
91
83
  }
92
- function nt(e, t, n) {
93
- new tt().sendError(e, t, rt(n));
84
+ function et(e, t, n) {
85
+ new $e().sendError(e, t, tt(n));
94
86
  }
95
- function rt(e) {
96
- return e.map((e) => it(e));
87
+ function tt(e) {
88
+ return e.map((e) => nt(e));
97
89
  }
98
- function it(e) {
90
+ function nt(e) {
99
91
  if (typeof e != "object" || !e) return typeof e == "string" && e.replace(/\s/g, "").search(/^[0-9]{8,19}$/) !== -1 ? "**** **** **** " + e.replace(/\s/g, "").slice(-4) : typeof e == "string" && e.replace(/\s/g, "").search(/^[0-9]{3,4}$/) !== -1 ? "***" : e;
100
- if (Array.isArray(e)) return e.map((e) => it(e));
92
+ if (Array.isArray(e)) return e.map((e) => nt(e));
101
93
  let t = {};
102
- for (let n in e) e.hasOwnProperty && e.hasOwnProperty(n) && typeof e[n] != "function" && !(e[n] instanceof Node) && (e.constructor === Object || e.name === "click2PayError") && (t[n] = it(e[n]), n === "cardNumber" && t[n] ? t[n] = "**** **** **** " + t[n].replace(" ", "").slice(-4) : n === "ccv" && (t[n] = "***"));
94
+ for (let n in e) e.hasOwnProperty && e.hasOwnProperty(n) && typeof e[n] != "function" && !(e[n] instanceof Node) && (e.constructor === Object || e.name === "click2PayError") && (t[n] = nt(e[n]), n === "cardNumber" && t[n] ? t[n] = "**** **** **** " + t[n].replace(" ", "").slice(-4) : n === "ccv" && (t[n] = "***"));
103
95
  return t;
104
96
  }
105
97
  //#endregion
106
98
  //#region src/components/PaypalIcon.vue
107
- var at = /*#__PURE__*/ T(/* @__PURE__ */ w({
99
+ var rt = /*#__PURE__*/ T(/* @__PURE__ */ w({
108
100
  __name: "PaypalIcon",
109
101
  props: {
110
102
  size: {},
@@ -120,23 +112,23 @@ var at = /*#__PURE__*/ T(/* @__PURE__ */ w({
120
112
  }, [
121
113
  j("path", {
122
114
  d: "m 7.2659888,29.154 0.523,-3.322 -1.165,-0.027 -5.563,0 3.866,-24.513 c 0.012,-0.074 0.051,-0.143 0.108,-0.192 0.057,-0.049 0.13,-0.076 0.206,-0.076 l 9.3800002,0 c 3.114,0 5.263,0.648 6.385,1.927 0.526,0.6 0.861,1.227 1.023,1.917 0.17,0.724 0.173,1.589 0.007,2.644 l -0.012,0.077 0,0.676 0.526,0.298 c 0.443,0.235 0.795,0.504 1.065,0.812 0.45,0.513 0.741,1.165 0.864,1.938 0.127,0.795 0.085,1.741 -0.123,2.812 -0.24,1.232 -0.628,2.305 -1.152,3.183 -0.482,0.809 -1.096,1.48 -1.825,2 -0.696,0.494 -1.523,0.869 -2.458,1.109 -0.906,0.236 -1.939,0.355 -3.072,0.355 l -0.73,0 c -0.522,0 -1.029,0.188 -1.427,0.525 -0.399,0.344 -0.663,0.814 -0.744,1.328 l -0.055,0.299 -0.924,5.855 -0.042,0.215 c -0.011,0.068 -0.03,0.102 -0.058,0.125 -0.025,0.021 -0.061,0.035 -0.096,0.035 l -4.5070002,0 z",
123
- style: We(`fill: ${_(n)}`)
115
+ style: Ue(`fill: ${_(n)}`)
124
116
  }, null, 4),
125
117
  j("path", {
126
118
  d: "m 23.047989,7.667 0,0 0,0 c -0.028,0.179 -0.06,0.362 -0.096,0.55 -1.237,6.351 -5.469,8.545 -10.874,8.545 l -2.7520002,0 c -0.661,0 -1.218,0.48 -1.321,1.132 l 0,0 0,0 -1.409,8.936 -0.399,2.533 c -0.067,0.428 0.263,0.814 0.695,0.814 l 4.8810002,0 c 0.578,0 1.069,-0.42 1.16,-0.99 l 0.048,-0.248 0.919,-5.832 0.059,-0.32 c 0.09,-0.572 0.582,-0.992 1.16,-0.992 l 0.73,0 c 4.729,0 8.431,-1.92 9.513,-7.476 0.452,-2.321 0.218,-4.259 -0.978,-5.622 -0.362,-0.411 -0.811,-0.752 -1.336,-1.03 z",
127
- style: We(`fill: ${_(r)}`)
119
+ style: Ue(`fill: ${_(r)}`)
128
120
  }, null, 4),
129
121
  j("path", {
130
122
  d: "m 21.753989,7.151 c -0.189,-0.055 -0.384,-0.105 -0.584,-0.15 -0.201,-0.044 -0.407,-0.083 -0.619,-0.117 -0.742,-0.12 -1.555,-0.177 -2.426,-0.177 l -7.352,0 c -0.181,0 -0.353,0.041 -0.507,0.115 C 9.9269888,6.985 9.6749888,7.306 9.6139888,7.699 l -1.564,9.906 -0.045,0.289 c 0.103,-0.652 0.66,-1.132 1.321,-1.132 l 2.7520002,0 c 5.405,0 9.637,-2.195 10.874,-8.545 0.037,-0.188 0.068,-0.371 0.096,-0.55 -0.313,-0.166 -0.652,-0.308 -1.017,-0.429 -0.09,-0.03 -0.183,-0.059 -0.277,-0.087 z",
131
- style: We(`fill: ${_(i)}`)
123
+ style: Ue(`fill: ${_(i)}`)
132
124
  }, null, 4),
133
125
  j("path", {
134
126
  d: "m 9.6139888,7.699 c 0.061,-0.393 0.313,-0.714 0.6520002,-0.876 0.155,-0.074 0.326,-0.115 0.507,-0.115 l 7.352,0 c 0.871,0 1.684,0.057 2.426,0.177 0.212,0.034 0.418,0.073 0.619,0.117 0.2,0.045 0.395,0.095 0.584,0.15 0.094,0.028 0.187,0.057 0.278,0.086 0.365,0.121 0.704,0.264 1.017,0.429 0.368,-2.347 -0.003,-3.945 -1.272,-5.392 C 20.377989,0.682 17.852989,0 14.621989,0 L 5.2419888,0 c -0.66,0 -1.223,0.48 -1.325,1.133 L 0.00998882,25.898 c -0.077,0.49 0.301,0.932 0.795,0.932 l 5.79099998,0 1.454,-9.225 1.564,-9.906 z",
135
- style: We(`fill: ${_(n)}`)
127
+ style: Ue(`fill: ${_(n)}`)
136
128
  }, null, 4)
137
129
  ]));
138
130
  }
139
- }), [["__scopeId", "data-v-2b840669"]]), ot = /*#__PURE__*/ T(/* @__PURE__ */ w({
131
+ }), [["__scopeId", "data-v-2b840669"]]), it = /*#__PURE__*/ T(/* @__PURE__ */ w({
140
132
  __name: "CreditCardIcon",
141
133
  props: {
142
134
  size: {},
@@ -148,10 +140,10 @@ var at = /*#__PURE__*/ T(/* @__PURE__ */ w({
148
140
  b(() => t.color, (e) => {
149
141
  n.value = e;
150
142
  });
151
- let r = de(() => `--size: ${t.size}px;fill:${n.value}`);
143
+ let r = ue(() => `--size: ${t.size}px;fill:${n.value}`);
152
144
  return (e, t) => (x(), M("svg", {
153
145
  xmlns: "http://www.w3.org/2000/svg",
154
- style: We([{
146
+ style: Ue([{
155
147
  width: "1.2587890625em",
156
148
  height: "1em",
157
149
  "vertical-align": "middle",
@@ -160,7 +152,7 @@ var at = /*#__PURE__*/ T(/* @__PURE__ */ w({
160
152
  viewBox: "0 0 1289 1024"
161
153
  }, [...t[0] ||= [j("path", { d: "M1188.420307 68.911452c16.92562 0 32.642267 14.507674 32.642267 32.642267v822.101535c0 16.92562-14.507674 32.642267-32.642267 32.642267h-1088.075561c-16.92562 0-32.642267-14.507674-32.642267-32.642267v-822.101535c0-16.92562 14.507674-32.642267 32.642267-32.642267h1088.075561m0-68.911452h-1088.075561C44.731995 0 0 45.940968 0 100.344746v822.101535c0 55.612751 44.731995 100.344746 100.344746 100.344746h1088.075561c55.612751 0 100.344746-44.731995 100.344746-100.344746v-822.101535c1.208973-54.403778-44.731995-100.344746-100.344746-100.344746z" }, null, -1), j("path", { d: "M41.105077 252.675325h1221.062574v258.720189H41.105077zM177.719008 778.578512h174.09209v71.329398H177.719008zM432.812279 778.578512h259.929161v71.329398H432.812279z" }, null, -1)]], 4));
162
154
  }
163
- }), [["__scopeId", "data-v-6a1e8b23"]]), st = /*#__PURE__*/ T(/* @__PURE__ */ w({
155
+ }), [["__scopeId", "data-v-6a1e8b23"]]), at = /*#__PURE__*/ T(/* @__PURE__ */ w({
164
156
  __name: "GooglePayIcon",
165
157
  props: {
166
158
  size: {},
@@ -175,7 +167,7 @@ var at = /*#__PURE__*/ T(/* @__PURE__ */ w({
175
167
  viewBox: "170.7 170 752 400"
176
168
  }, [...n[0] ||= [ie("<path id=\"Base_1_\" fill=\"#FFFFFF\" d=\"M722.7,170h-352c-110,0-200,90-200,200l0,0c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0 C922.7,260,832.7,170,722.7,170z\" data-v-f87e02ce></path><path id=\"Outline\" fill=\"#3C4043\" d=\"M722.7,186.2c24.7,0,48.7,4.9,71.3,14.5c21.9,9.3,41.5,22.6,58.5,39.5 c16.9,16.9,30.2,36.6,39.5,58.5c9.6,22.6,14.5,46.6,14.5,71.3s-4.9,48.7-14.5,71.3c-9.3,21.9-22.6,41.5-39.5,58.5 c-16.9,16.9-36.6,30.2-58.5,39.5c-22.6,9.6-46.6,14.5-71.3,14.5h-352c-24.7,0-48.7-4.9-71.3-14.5c-21.9-9.3-41.5-22.6-58.5-39.5 c-16.9-16.9-30.2-36.6-39.5-58.5c-9.6-22.6-14.5-46.6-14.5-71.3s4.9-48.7,14.5-71.3c9.3-21.9,22.6-41.5,39.5-58.5 c16.9-16.9,36.6-30.2,58.5-39.5c22.6-9.6,46.6-14.5,71.3-14.5L722.7,186.2 M722.7,170h-352c-110,0-200,90-200,200l0,0 c0,110,90,200,200,200h352c110,0,200-90,200-200l0,0C922.7,260,832.7,170,722.7,170L722.7,170z\" data-v-f87e02ce></path><g id=\"Google_Pay_Lockup_1_\" data-v-f87e02ce><g id=\"Pay_Typeface_3_\" data-v-f87e02ce><path id=\"Letter_p_3_\" fill=\"#3C4043\" d=\"M529.3,384.2v60.5h-19.2V295.3H561c12.9,0,23.9,4.3,32.9,12.9 c9.2,8.6,13.8,19.1,13.8,31.5c0,12.7-4.6,23.2-13.8,31.7c-8.9,8.5-19.9,12.7-32.9,12.7h-31.7V384.2z M529.3,313.7v52.1h32.1 c7.6,0,14-2.6,19-7.7c5.1-5.1,7.7-11.3,7.7-18.3c0-6.9-2.6-13-7.7-18.1c-5-5.3-11.3-7.9-19-7.9h-32.1V313.7z\" data-v-f87e02ce></path><path id=\"Letter_a_3_\" fill=\"#3C4043\" d=\"M657.9,339.1c14.2,0,25.4,3.8,33.6,11.4c8.2,7.6,12.3,18,12.3,31.2v63h-18.3v-14.2h-0.8 c-7.9,11.7-18.5,17.5-31.7,17.5c-11.3,0-20.7-3.3-28.3-10s-11.4-15-11.4-25c0-10.6,4-19,12-25.2c8-6.3,18.7-9.4,32-9.4 c11.4,0,20.8,2.1,28.1,6.3v-4.4c0-6.7-2.6-12.3-7.9-17c-5.3-4.7-11.5-7-18.6-7c-10.7,0-19.2,4.5-25.4,13.6l-16.9-10.6 C625.9,345.8,639.7,339.1,657.9,339.1z M633.1,413.3c0,5,2.1,9.2,6.4,12.5c4.2,3.3,9.2,5,14.9,5c8.1,0,15.3-3,21.6-9 s9.5-13,9.5-21.1c-6-4.7-14.3-7.1-25-7.1c-7.8,0-14.3,1.9-19.5,5.6C635.7,403.1,633.1,407.8,633.1,413.3z\" data-v-f87e02ce></path><path id=\"Letter_y_3_\" fill=\"#3C4043\" d=\"M808.2,342.4l-64,147.2h-19.8l23.8-51.5L706,342.4h20.9l30.4,73.4h0.4l29.6-73.4H808.2z\" data-v-f87e02ce></path></g><g id=\"Google_Mark_1_\" data-v-f87e02ce><path id=\"Blue_500\" fill=\"#4285F4\" d=\"M452.93,372c0-6.26-0.56-12.25-1.6-18.01h-80.48v33L417.2,387 c-1.88,10.98-7.93,20.34-17.2,26.58v21.41h27.59C443.7,420.08,452.93,398.04,452.93,372z\" data-v-f87e02ce></path><path id=\"Green_500_1_\" fill=\"#34A853\" d=\"M400.01,413.58c-7.68,5.18-17.57,8.21-29.14,8.21c-22.35,0-41.31-15.06-48.1-35.36 h-28.46v22.08c14.1,27.98,43.08,47.18,76.56,47.18c23.14,0,42.58-7.61,56.73-20.71L400.01,413.58z\" data-v-f87e02ce></path><path id=\"Yellow_500_1_\" fill=\"#FABB05\" d=\"M320.09,370.05c0-5.7,0.95-11.21,2.68-16.39v-22.08h-28.46 c-5.83,11.57-9.11,24.63-9.11,38.47s3.29,26.9,9.11,38.47l28.46-22.08C321.04,381.26,320.09,375.75,320.09,370.05z\" data-v-f87e02ce></path><path id=\"Red_500\" fill=\"#E94235\" d=\"M370.87,318.3c12.63,0,23.94,4.35,32.87,12.85l24.45-24.43 c-14.85-13.83-34.21-22.32-57.32-22.32c-33.47,0-62.46,19.2-76.56,47.18l28.46,22.08C329.56,333.36,348.52,318.3,370.87,318.3z\" data-v-f87e02ce></path></g></g>", 3)]]));
177
169
  }
178
- }), [["__scopeId", "data-v-f87e02ce"]]), ct = ["fill"], lt = /*#__PURE__*/ T(/* @__PURE__ */ w({
170
+ }), [["__scopeId", "data-v-f87e02ce"]]), ot = ["fill"], st = /*#__PURE__*/ T(/* @__PURE__ */ w({
179
171
  __name: "PayToIcon",
180
172
  props: {
181
173
  size: {},
@@ -193,20 +185,20 @@ var at = /*#__PURE__*/ T(/* @__PURE__ */ w({
193
185
  }, [j("path", {
194
186
  d: "m8.285 27.63c.8 0 1.562-.06 2.285-.176a6.262 6.262 0 0 0 1.937-.624 3.529 3.529 0 0 0 1.354-1.227c.335-.52.502-1.194.502-2.025s-.169-1.463-.502-1.97a3.492 3.492 0 0 0 -1.337-1.187c-.555-.287-1.186-.473-1.897-.565a17.32 17.32 0 0 0 -2.188-.136h-3.56v7.91zm-8.285-12.04h8.945c1.573 0 2.994.144 4.258.429 1.265.288 2.349.754 3.254 1.404.902.648 1.599 1.479 2.092 2.493.488 1.012.736 2.235.736 3.663 0 1.533-.283 2.818-.853 3.858a6.956 6.956 0 0 1 -2.303 2.512c-.968.637-2.098 1.097-3.388 1.383-1.29.285-2.66.43-4.103.43h-3.76v11.415h-4.878zm32.679 19.054h-1.043c-.751 0-1.538.034-2.364.098s-1.588.207-2.283.427c-.697.223-1.279.534-1.742.937-.464.403-.696.954-.696 1.655 0 .442.095.812.29 1.11.195.3.446.54.755.721.31.183.659.311 1.045.39a5.94 5.94 0 0 0 1.161.117c1.6 0 2.813-.427 3.639-1.287.826-.857 1.238-2.026 1.238-3.505zm.078 6.156h-.116c-.466.832-1.213 1.516-2.247 2.047-1.034.532-2.206.8-3.523.8-.749 0-1.53-.099-2.343-.293a6.902 6.902 0 0 1 -2.245-.972 5.624 5.624 0 0 1 -1.705-1.793c-.45-.74-.676-1.656-.676-2.745 0-1.404.394-2.52 1.18-3.351.787-.831 1.8-1.468 3.04-1.91 1.24-.44 2.614-.732 4.124-.875a47.58 47.58 0 0 1 4.433-.215v-.47c0-1.168-.42-2.031-1.259-2.589s-1.839-.839-3-.839c-.981 0-1.923.21-2.826.624-.903.417-1.652.924-2.246 1.521l-2.4-2.844a10.478 10.478 0 0 1 3.659-2.222 12.448 12.448 0 0 1 4.203-.74c1.651 0 3.013.233 4.084.7 1.072.468 1.916 1.079 2.536 1.83a6.571 6.571 0 0 1 1.298 2.534c.245.936.369 1.869.369 2.806v11.376h-4.338v-2.377l-.002-.004zm5.719-16.325h5.15l5.189 13.599h.078l4.607-13.6h4.84l-8.791 22.717a16.433 16.433 0 0 1 -1.083 2.278 6.33 6.33 0 0 1 -1.395 1.676 5.56 5.56 0 0 1 -1.916 1.032c-.736.234-1.62.351-2.654.351-.386 0-.78-.019-1.182-.058a8.113 8.113 0 0 1 -1.219-.215l.386-4.052c.31.104.614.175.91.215s.575.058.834.058c.49 0 .902-.058 1.238-.175.337-.117.62-.298.852-.545.232-.248.438-.552.618-.917.181-.364.376-.792.582-1.286l.93-2.376-7.977-18.702zm42.808 14.279c.893 0 2.072-.328 2.536-.49v3.735c-.468.183-1.478.535-2.536.535-3.691 0-6.695-3.064-6.697-6.831v-11.228h-4.225v-3.675h4.225v-4.66h3.665v4.66h10a13.83 13.83 0 0 0 -3.625 3.675h-6.375v11.228c0 1.688 1.39 3.05 3.032 3.05zm15 3.78c-6.038 0-10.801-4.79-10.801-10.866s4.845-10.868 10.8-10.868h12.183l.004-3.376 6.267 5.245-6.278 5.256.004-3.45h-12.337c-3.775 0-6.897 3.396-6.897 7.193s3.11 7.13 7.053 7.13c3.942 0 7.053-3.163 7.053-7.13 0-1.755-.62-3.377-1.386-4.553h4.139c.65 1.402.993 3.006.993 4.553 0 6.076-4.761 10.866-10.801 10.866zm10.909-42.534h-31.031c-7.074 0-12.807 5.77-12.807 12.886v31.226c0 7.117 5.735 12.886 12.807 12.886h31.031c7.074 0 12.806-5.77 12.806-12.886v-31.226c0-7.116-5.734-12.886-12.806-12.886z",
195
187
  fill: _("#000")
196
- }, null, 8, ct)]));
188
+ }, null, 8, ot)]));
197
189
  }
198
- }), [["__scopeId", "data-v-0b2d8aa0"]]), ut = "payfurl-combined-container";
199
- function dt(e, t) {
190
+ }), [["__scopeId", "data-v-0b2d8aa0"]]), ct = "payfurl-combined-container";
191
+ function lt(e, t) {
200
192
  if (!e) return null;
201
193
  for (; e.parentNode && e.parentNode.nodeName.toLowerCase() !== "body";) if (e = e.parentNode, e.id === t) return e;
202
194
  return null;
203
195
  }
204
196
  //#endregion
205
197
  //#region src/sdk/components/Combined.vue?vue&type=script&setup=true&lang.ts
206
- var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "combined-tab-title" }, gt = { class: "combined-tab-name" }, _t = {
198
+ var ut = ["id"], dt = ["id", "onClick"], ft = ["value", "id"], pt = { class: "combined-tab-title" }, mt = { class: "combined-tab-name" }, ht = {
207
199
  key: 0,
208
200
  class: "combined-tab-description"
209
- }, vt = ["src", "alt"], yt = ["id"], bt = /*#__PURE__*/ T(/* @__PURE__ */ w({
201
+ }, gt = ["src", "alt"], _t = ["id"], vt = /*#__PURE__*/ T(/* @__PURE__ */ w({
210
202
  __name: "Combined",
211
203
  props: { elements: {} },
212
204
  setup(e) {
@@ -244,8 +236,8 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
244
236
  }), o(0);
245
237
  }), (e, r) => (x(), M("div", {
246
238
  class: "payfurl-sdk-combined-container",
247
- id: _(ut)
248
- }, [(x(!0), M(O, null, Te(t.elements, (e, t) => (x(), M(O, { key: `container-component${t}` }, [a.value[t] ? E("", !0) : (x(), M("div", {
239
+ id: _(ct)
240
+ }, [(x(!0), M(O, null, we(t.elements, (e, t) => (x(), M(O, { key: `container-component${t}` }, [a.value[t] ? E("", !0) : (x(), M("div", {
249
241
  key: 0,
250
242
  class: ne(["payfurl-sdk-combined-tab", t === n.value ? "active" : ""]),
251
243
  id: e.id || `combined-tab${t}`,
@@ -256,9 +248,9 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
256
248
  name: "payment-type",
257
249
  value: e.title,
258
250
  id: `payment-type${t}`
259
- }, null, 8, mt),
260
- j("div", ht, [j("div", gt, i(e.title), 1), e.description ? (x(), M("div", _t, i(e.description), 1)) : E("", !0)]),
261
- s(e) ? (x(), He(we(e.icon), {
251
+ }, null, 8, ft),
252
+ j("div", pt, [j("div", mt, i(e.title), 1), e.description ? (x(), M("div", ht, i(e.description), 1)) : E("", !0)]),
253
+ s(e) ? (x(), Ve(Ce(e.icon), {
262
254
  key: 0,
263
255
  size: 30
264
256
  })) : E("", !0),
@@ -271,18 +263,18 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
271
263
  "object-fit": "contain"
272
264
  },
273
265
  alt: e.title
274
- }, null, 8, vt)) : E("", !0)
275
- ], 10, pt)), u(j("div", {
266
+ }, null, 8, gt)) : E("", !0)
267
+ ], 10, dt)), u(j("div", {
276
268
  class: "payfurl-sdk-container-component",
277
269
  id: `container-component${t}`
278
- }, null, 8, yt), [[Oe, d(t)]])], 64))), 128))], 8, ft));
270
+ }, null, 8, _t), [[De, d(t)]])], 64))), 128))], 8, ut));
279
271
  }
280
- }), [["__scopeId", "data-v-240dc514"]]), xt = /* @__PURE__ */ se(((e, t) => {
272
+ }), [["__scopeId", "data-v-240dc514"]]), yt = /* @__PURE__ */ oe(((e, t) => {
281
273
  t.exports = {};
282
- })), St = /* @__PURE__ */ se(((e) => {
274
+ })), bt = /* @__PURE__ */ oe(((e) => {
283
275
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getCrypto = e.getRootWebCrypto = e.getWebCrypto = e.getNodeCrypto = void 0;
284
276
  var t = function() {
285
- if (!(typeof window < "u" && window.crypto) && !(typeof window > "u" && typeof crypto < "u")) return xt();
277
+ if (!(typeof window < "u" && window.crypto) && (typeof window < "u" || typeof crypto > "u")) return yt();
286
278
  };
287
279
  e.getNodeCrypto = t;
288
280
  var n = function() {
@@ -311,7 +303,7 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
311
303
  getRootWebCrypto: r,
312
304
  getCrypto: i
313
305
  };
314
- })), Ct = /* @__PURE__ */ se(((e) => {
306
+ })), xt = /* @__PURE__ */ oe(((e) => {
315
307
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
316
308
  ciphers: {
317
309
  "AES-GCM": {
@@ -351,12 +343,12 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
351
343
  ])
352
344
  } }
353
345
  };
354
- })), wt = /* @__PURE__ */ se(((e) => {
346
+ })), St = /* @__PURE__ */ oe(((e) => {
355
347
  var t = e && e.__importDefault || function(e) {
356
348
  return e && e.__esModule ? e : { default: e };
357
349
  };
358
350
  Object.defineProperty(e, "__esModule", { value: !0 }), e.decrypt = e.encrypt = e.unwrapKey = e.wrapKey = void 0;
359
- var n = t(Ct());
351
+ var n = t(xt());
360
352
  e.wrapKey = function(t, n, r, i) {
361
353
  var a = r.name, o = r.iv;
362
354
  return (0, e.encrypt)(t, n, {
@@ -422,7 +414,7 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
422
414
  var r = n[e].nodePrefix;
423
415
  return r = `${r}${(t * 8).toString()}`, r + n[e].nodeSuffix;
424
416
  };
425
- })), Tt = /* @__PURE__ */ se(((e) => {
417
+ })), Ct = /* @__PURE__ */ oe(((e) => {
426
418
  var t = e && e.__awaiter || function(e, t, n, r) {
427
419
  function i(e) {
428
420
  return e instanceof n ? e : new n(function(t) {
@@ -458,12 +450,12 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
458
450
  },
459
451
  trys: [],
460
452
  ops: []
461
- }, r, i, a, o;
462
- return o = {
453
+ }, r, i, a, o = {
463
454
  next: s(0),
464
455
  throw: s(1),
465
456
  return: s(2)
466
- }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
457
+ };
458
+ return typeof Symbol == "function" && (o[Symbol.iterator] = function() {
467
459
  return this;
468
460
  }), o;
469
461
  function s(e) {
@@ -638,7 +630,7 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
638
630
  }
639
631
  return a;
640
632
  };
641
- })), Et = /* @__PURE__ */ se(((e) => {
633
+ })), wt = /* @__PURE__ */ oe(((e) => {
642
634
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
643
635
  r === void 0 && (r = n);
644
636
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -697,12 +689,12 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
697
689
  },
698
690
  trys: [],
699
691
  ops: []
700
- }, r, i, a, o;
701
- return o = {
692
+ }, r, i, a, o = {
702
693
  next: s(0),
703
694
  throw: s(1),
704
695
  return: s(2)
705
- }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
696
+ };
697
+ return typeof Symbol == "function" && (o[Symbol.iterator] = function() {
706
698
  return this;
707
699
  }), o;
708
700
  function s(e) {
@@ -765,7 +757,7 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
765
757
  return e && e.__esModule ? e : { default: e };
766
758
  };
767
759
  Object.defineProperty(e, "__esModule", { value: !0 }), e.unwrapKey = e.wrapKey = e.decrypt = e.encrypt = void 0;
768
- var s = r(St()), c = r(wt()), l = r(Tt()), u = o(Ct()), d = function(e) {
760
+ var s = r(bt()), c = r(St()), l = r(Ct()), u = o(xt()), d = function(e) {
769
761
  var t = e.name, n = e.iv, r = e.tagLength;
770
762
  if (u.default.ciphers[t].ivLength) {
771
763
  if (!(n instanceof Uint8Array)) throw Error("InvalidArguments");
@@ -870,7 +862,7 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
870
862
  });
871
863
  });
872
864
  };
873
- })), Dt = /* @__PURE__ */ oe((/* @__PURE__ */ se(((e) => {
865
+ })), Tt = /* @__PURE__ */ f((/* @__PURE__ */ oe(((e) => {
874
866
  var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
875
867
  r === void 0 && (r = n);
876
868
  var i = Object.getOwnPropertyDescriptor(t, n);
@@ -896,14 +888,14 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
896
888
  return n(r, e), r;
897
889
  };
898
890
  Object.defineProperty(e, "__esModule", { value: !0 }), e.unwrapKey = e.wrapKey = e.decrypt = e.encrypt = void 0;
899
- var i = r(Et());
891
+ var i = r(wt());
900
892
  e.encrypt = i.encrypt, e.decrypt = i.decrypt, e.wrapKey = i.wrapKey, e.unwrapKey = i.unwrapKey, e.default = {
901
893
  encrypt: e.encrypt,
902
894
  decrypt: e.decrypt,
903
895
  wrapKey: e.wrapKey,
904
896
  unwrapKey: e.unwrapKey
905
897
  };
906
- })))(), 1), Ot = {
898
+ })))(), 1), Et = {
907
899
  AED: "784",
908
900
  AFN: "971",
909
901
  ALL: "008",
@@ -1082,7 +1074,7 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
1082
1074
  ZAR: "710",
1083
1075
  ZMW: "967",
1084
1076
  ZWL: "932"
1085
- }, kt = {
1077
+ }, Dt = {
1086
1078
  BHD: 3,
1087
1079
  BIF: 0,
1088
1080
  CLF: 4,
@@ -1111,17 +1103,17 @@ var ft = ["id"], pt = ["id", "onClick"], mt = ["value", "id"], ht = { class: "co
1111
1103
  XPF: 0
1112
1104
  };
1113
1105
  function B(e) {
1114
- return !!Ot[String(e).toUpperCase()];
1106
+ return !!Et[String(e).toUpperCase()];
1115
1107
  }
1116
- function At(e) {
1117
- return Ot[String(e).toUpperCase()] || "";
1108
+ function Ot(e) {
1109
+ return Et[String(e).toUpperCase()] || "";
1118
1110
  }
1119
- function jt(e) {
1120
- return kt[String(e).toUpperCase()] || 2;
1111
+ function kt(e) {
1112
+ return Dt[String(e).toUpperCase()] || 2;
1121
1113
  }
1122
1114
  //#endregion
1123
1115
  //#region src/sdk/processors/threeDsProcessor.ts
1124
- var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1116
+ var { hideSpinner: At, showSpinner: jt } = Oe(), V = {
1125
1117
  PREAUTH: "PREAUTH",
1126
1118
  AUTH: "AUTH",
1127
1119
  POSTAUTH: "POSTAUTH",
@@ -1236,10 +1228,10 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1236
1228
  return { ...this.clientParameters };
1237
1229
  }
1238
1230
  onError(e) {
1239
- this.log("[3ds error]", e), Mt(), I(this.container, e.error), this.threeDSFailureHandler ? this.threeDSFailureHandler(e) : this.failureCallback?.(e);
1231
+ this.log("[3ds error]", e), At(), I(this.container, e.error), this.threeDSFailureHandler ? this.threeDSFailureHandler(e) : this.failureCallback?.(e);
1240
1232
  }
1241
1233
  onSuccess(e) {
1242
- Mt(), this.log("[3ds success]", e), this.threeDSCompleteHandler ? this.threeDSCompleteHandler?.(e) : this.successCallback?.(e);
1234
+ At(), this.log("[3ds success]", e), this.threeDSCompleteHandler ? this.threeDSCompleteHandler?.(e) : this.successCallback?.(e);
1243
1235
  }
1244
1236
  onPreAuth(e, t) {
1245
1237
  let n = {
@@ -1255,7 +1247,7 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1255
1247
  threeDSServerTransID: n,
1256
1248
  isMethodPerformed: r
1257
1249
  });
1258
- let s = At(this.currency), c = jt(this.currency), l = /* @__PURE__ */ new Date(), u = {
1250
+ let s = Ot(this.currency), c = kt(this.currency), l = /* @__PURE__ */ new Date(), u = {
1259
1251
  acctNumber: this.paymentInfo?.cardNumber,
1260
1252
  notificationURL: this.apiUrl + "/3ds/auth_complete",
1261
1253
  threeDSAuthURL: e,
@@ -1272,7 +1264,7 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1272
1264
  browserJavascriptEnabled: !0,
1273
1265
  browserJavaEnabled: !1,
1274
1266
  browserLanguage: window.navigator.language,
1275
- browserColorDepth: String(Qe()),
1267
+ browserColorDepth: String(Ze()),
1276
1268
  browserScreenHeight: screen.height + "",
1277
1269
  browserScreenWidth: screen.width + "",
1278
1270
  browserTZ: Math.round(l.getTimezoneOffset() / 60) + "",
@@ -1292,24 +1284,24 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1292
1284
  threeDSRequestorChallengeInd: this.requireChallenge ? "04" : "01"
1293
1285
  };
1294
1286
  this.httpInvoker?.invoke(H(this.apiUrl, this.tokenId)[V.AUTH].url, H(this.apiUrl, this.tokenId)[V.AUTH].method, JSON.stringify(u), (e, t) => {
1295
- Mt(), a(e, t);
1287
+ At(), a(e, t);
1296
1288
  }, o);
1297
1289
  }
1298
1290
  onPostAuth(e, t, n) {
1299
- this.log("[onPostAuth]", e), Nt(), this.httpInvoker?.invoke(H(this.apiUrl, this.tokenId)[V.POSTAUTH].url, H(this.apiUrl, this.tokenId)[V.POSTAUTH].method, JSON.stringify(e), t, n);
1291
+ this.log("[onPostAuth]", e), jt(), this.httpInvoker?.invoke(H(this.apiUrl, this.tokenId)[V.POSTAUTH].url, H(this.apiUrl, this.tokenId)[V.POSTAUTH].method, JSON.stringify(e), t, n);
1300
1292
  }
1301
1293
  threeDSInvoke(e, t, n, r) {
1302
1294
  this.container = e, this.threeDSCompleteHandler = n || null, this.threeDSFailureHandler = r || null, this.requireChallenge = t, this.threeDsInvoker?.onPreAuth();
1303
1295
  }
1304
1296
  getCardDetails(e, t, n, r) {
1305
1297
  let i = z(this, "[getCardDetails], decrypt", async (e) => {
1306
- let t = this.publicKey.substring(0, 16), n = Uint8Array.from(Array.from(t).map((e) => e.charCodeAt(0))), r = Uint8Array.from(atob(e), (e) => e.charCodeAt(0)), i = await Dt.default.decrypt(r, n, {
1298
+ let t = this.publicKey.substring(0, 16), n = Uint8Array.from(Array.from(t).map((e) => e.charCodeAt(0))), r = Uint8Array.from(atob(e), (e) => e.charCodeAt(0)), i = await Tt.default.decrypt(r, n, {
1307
1299
  name: "AES-CBC",
1308
1300
  iv: n
1309
1301
  });
1310
1302
  return new TextDecoder().decode(i);
1311
1303
  }), a = z(this, "[getCardDetailsFailureCallback]", (e, t) => {
1312
- this.log("getCardDetailsFailureCallback", e, t), Mt(), r();
1304
+ this.log("getCardDetailsFailureCallback", e, t), At(), r();
1313
1305
  }), o = z(this, "[getCardDetailsSuccessCallback]", async (e, t) => {
1314
1306
  this.log("getCardDetailsSuccessCallback", e, t);
1315
1307
  let r = JSON.parse(t).data, a = await i(r), o = JSON.parse(a);
@@ -1323,11 +1315,7 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1323
1315
  }
1324
1316
  tokeniseCard(e, t, n) {
1325
1317
  let r = this.getPaymentInfo();
1326
- if (!r.cardNumber || !r.expiryDate || !r.cardholder) {
1327
- n("Card information is missing");
1328
- return;
1329
- }
1330
- Nt(), this.httpInvoker?.invoke(H(this.apiUrl)[V.TOKENISE_CARD].url, H(this.apiUrl)[V.TOKENISE_CARD].method, JSON.stringify({
1318
+ !r.cardNumber || !r.expiryDate || !r.cardholder ? n("Card information is missing") : (jt(), this.httpInvoker?.invoke(H(this.apiUrl)[V.TOKENISE_CARD].url, H(this.apiUrl)[V.TOKENISE_CARD].method, JSON.stringify({
1331
1319
  paymentInformation: {
1332
1320
  cardNumber: r.cardNumber,
1333
1321
  expiryDate: `${r.expiryDate.slice(2)}/${r.expiryDate.slice(0, 2)}`,
@@ -1337,40 +1325,40 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1337
1325
  currency: this.getCurrency(),
1338
1326
  amount: this.getAmount()
1339
1327
  }), z(this, "[tokeniseCardSuccessCallback]", (e, n) => {
1340
- this.log("tokeniseCardSuccessCallback", e, n), Mt(), t(JSON.parse(n));
1328
+ this.log("tokeniseCardSuccessCallback", e, n), At(), t(JSON.parse(n));
1341
1329
  }), z(this, "[tokeniseCardFailureCallback]", (e, t) => {
1342
- this.log("tokeniseCardFailureCallback", e, t), Mt(), n("Unable to tokenise payment information");
1343
- }), { providerId: e });
1330
+ this.log("tokeniseCardFailureCallback", e, t), At(), n("Unable to tokenise payment information");
1331
+ }), { providerId: e }));
1344
1332
  }
1345
1333
  updateTokenExternal3dsData(e) {
1346
- !this.tokenId || !e || Object.keys(e).length === 0 || this.httpInvoker?.invoke(H(this.apiUrl, this.tokenId)[V.PUT_TOKEN_EXTERNAL_3DS_DATA].url, H(this.apiUrl, this.tokenId)[V.PUT_TOKEN_EXTERNAL_3DS_DATA].method, JSON.stringify(e), (e, t) => {
1334
+ this.tokenId && e && Object.keys(e).length !== 0 && this.httpInvoker?.invoke(H(this.apiUrl, this.tokenId)[V.PUT_TOKEN_EXTERNAL_3DS_DATA].url, H(this.apiUrl, this.tokenId)[V.PUT_TOKEN_EXTERNAL_3DS_DATA].method, JSON.stringify(e), (e, t) => {
1347
1335
  this.log("updateTokenExternal3dsDataSuccessCallback", e, t);
1348
1336
  }, (e, t) => {
1349
- this.log("updateTokenExternal3dsDataFailureCallback", e, t), Mt();
1337
+ this.log("updateTokenExternal3dsDataFailureCallback", e, t), At();
1350
1338
  }, {});
1351
1339
  }
1352
1340
  };
1353
1341
  L([R], U.prototype, "setPaymentInfo", null), L([R], U.prototype, "onError", null), L([R], U.prototype, "onSuccess", null), L([R], U.prototype, "onPreAuth", null), L([R], U.prototype, "onAuth", null), L([R], U.prototype, "onPostAuth", null), L([R], U.prototype, "threeDSInvoke", null), L([R], U.prototype, "getCardDetails", null), L([R], U.prototype, "tokeniseCard", null), L([R], U.prototype, "updateTokenExternal3dsData", null);
1354
1342
  //#endregion
1355
1343
  //#region src/sdk/utils/loading.ts
1356
- var Pt = m(!1);
1344
+ var Mt = m(!1);
1357
1345
  function W() {
1358
1346
  return {
1359
- isLoading: Pt,
1347
+ isLoading: Mt,
1360
1348
  startLoading: () => {
1361
- Pt.value = !0;
1349
+ Mt.value = !0;
1362
1350
  },
1363
1351
  stopLoading: () => {
1364
- Pt.value = !1;
1352
+ Mt.value = !1;
1365
1353
  }
1366
1354
  };
1367
1355
  }
1368
1356
  //#endregion
1369
1357
  //#region src/sdk/components/PaypalForm.vue?vue&type=script&setup=true&lang.ts
1370
- var Ft = { style: { position: "relative" } }, It = {
1358
+ var Nt = { style: { position: "relative" } }, Pt = {
1371
1359
  key: 0,
1372
1360
  class: "error text-normal"
1373
- }, Lt = "payfurl-paypal-script", Rt = /* @__PURE__ */ w({
1361
+ }, Ft = "payfurl-paypal-script", It = /* @__PURE__ */ w({
1374
1362
  __name: "PaypalForm",
1375
1363
  props: {
1376
1364
  log: { type: Function },
@@ -1378,7 +1366,7 @@ var Ft = { style: { position: "relative" } }, It = {
1378
1366
  currency: {},
1379
1367
  enablePayIn4: { type: Boolean },
1380
1368
  buttonStyle: {},
1381
- onValidate: { type: Function }
1369
+ clickGate: { type: Function }
1382
1370
  },
1383
1371
  emits: [
1384
1372
  "approve",
@@ -1392,7 +1380,7 @@ var Ft = { style: { position: "relative" } }, It = {
1392
1380
  d.value = e, n.log && n.log("[Paypal]: checkout", d.value), !f && (f = !0, v());
1393
1381
  }
1394
1382
  function v() {
1395
- if (document.getElementById(Lt)) {
1383
+ if (document.getElementById(Ft)) {
1396
1384
  y();
1397
1385
  return;
1398
1386
  }
@@ -1405,10 +1393,10 @@ var Ft = { style: { position: "relative" } }, It = {
1405
1393
  let t = `https://www.paypal.com/sdk/js?${new URLSearchParams(e)}`;
1406
1394
  window.paypal = null;
1407
1395
  let r = document.createElement("script");
1408
- r.src = t, r.id = Lt, r.onload = y, document.body.appendChild(r);
1396
+ r.src = t, r.id = Ft, r.onload = y, document.body.appendChild(r);
1409
1397
  }
1410
1398
  function y() {
1411
- !window.paypal || !window.paypal.Buttons || (window.paypal.Buttons({
1399
+ window.paypal && window.paypal.Buttons && (window.paypal.Buttons({
1412
1400
  style: { color: n.buttonStyle },
1413
1401
  createOrder: function() {
1414
1402
  return d.value?.gatewayTransactionId;
@@ -1421,14 +1409,10 @@ var Ft = { style: { position: "relative" } }, It = {
1421
1409
  },
1422
1410
  onInit(e, t) {
1423
1411
  t.disable(), p = setInterval(() => {
1424
- if (n.onValidate()?.() === !1) {
1425
- t.disable();
1426
- return;
1427
- }
1428
- t.enable();
1412
+ n.clickGate()?.() === !1 ? t.disable() : t.enable();
1429
1413
  }, 1e3);
1430
1414
  }
1431
- }).render(n.el), window.postMessage({ status: Be }, "*"));
1415
+ }).render(n.el), window.postMessage({ status: ze }, "*"));
1432
1416
  }
1433
1417
  function b(e) {
1434
1418
  e?.data?.status && (e.data.status === "activate" && e.data.component === "paypal" && (n.log?.(`[PayPal]: message "${e.data.status}" received`, e.data), o.value = !0, r("activate")), e.data.status === "deactivate" && e.data.component === "paypal" && (n.log?.(`[PayPal]: message "${e.data.status}" received`, e.data), o.value = !1), e.data.status === "checkout-ready" && e.data.component === "paypal" && (n.log?.(`[PayPal]: message "${e.data.status}" received`, e.data), g(e.data.checkoutData)), e.data.status === "message" && e.data.component === "paypal" && (n.log?.(`[PayPal]: message "${e.data.status}" received`, e.data), l.value = e.data.message), e.data.status === "error" && e.data.component === "paypal" && (n.log?.(`[PayPal]: message "${e.data.status}" received`, e.data), l.value = e.data.error));
@@ -1436,23 +1420,20 @@ var Ft = { style: { position: "relative" } }, It = {
1436
1420
  return s(() => {
1437
1421
  window.removeEventListener("message", b), p && clearInterval(p);
1438
1422
  }), c(() => {
1439
- window.addEventListener("message", b), dt(a.value, "payfurl-combined-container") || (o.value = !0, r("activate"));
1440
- }), (e, t) => (x(), M(O, null, [j("div", Ft, [u(ze(le, null, null, 512), [[Oe, _(h)]])]), j("div", {
1423
+ window.addEventListener("message", b), lt(a.value, "payfurl-combined-container") || (o.value = !0, r("activate"));
1424
+ }), (e, t) => (x(), M(O, null, [j("div", Nt, [u(Re(ce, null, null, 512), [[De, _(h)]])]), j("div", {
1441
1425
  style: { position: "relative" },
1442
1426
  ref_key: "root",
1443
1427
  ref: a
1444
- }, [l.value ? (x(), M("div", It, i(l.value), 1)) : E("", !0)], 512)], 64));
1428
+ }, [l.value ? (x(), M("div", Pt, i(l.value), 1)) : E("", !0)], 512)], 64));
1445
1429
  }
1446
- }), zt = /* @__PURE__ */ f({
1447
- FRAUD_DECISION: () => Bt,
1448
- shouldStopPaymentForFraud: () => Vt
1449
- }), Bt = {
1430
+ }), Lt = {
1450
1431
  APPROVED: "Approved",
1451
1432
  DECLINED: "Declined",
1452
1433
  UNDECIDED: "Undecided"
1453
1434
  };
1454
- function Vt(e) {
1455
- return e ? e.decision === Bt.DECLINED && e.stopPaymentOnFailure === !0 : !1;
1435
+ function Rt(e) {
1436
+ return e ? e.decision === Lt.DECLINED && e.stopPaymentOnFailure === !0 : !1;
1456
1437
  }
1457
1438
  //#endregion
1458
1439
  //#region src/sdk/utils/optionCleaning.ts
@@ -1464,7 +1445,7 @@ function G(e) {
1464
1445
  }
1465
1446
  //#endregion
1466
1447
  //#region src/sdk/processors/paypalProcessor.ts
1467
- var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1448
+ var { hideSpinner: zt, showSpinner: Bt } = Oe(), Vt = class {
1468
1449
  container = null;
1469
1450
  log;
1470
1451
  apiUrl = "";
@@ -1511,14 +1492,14 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1511
1492
  this.container = e, this.fraudProcessor && (this.fraudProcessor.setAmount(n), this.fraudProcessor.setCurrency(r));
1512
1493
  let s = D({
1513
1494
  el: e,
1514
- component: Rt,
1495
+ component: It,
1515
1496
  props: {
1516
1497
  log: this.log,
1517
1498
  el: e,
1518
1499
  currency: r,
1519
1500
  enablePayIn4: !!a?.paypalEnablePayIn4,
1520
1501
  buttonStyle: a?.paypalButtonStyle,
1521
- onValidate: this.getOnValidate.bind(this)
1502
+ clickGate: this.getOnValidate.bind(this)
1522
1503
  },
1523
1504
  on: {
1524
1505
  activate: z(this, "[Paypal]: activate", () => {
@@ -1538,28 +1519,18 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1538
1519
  let r = n.order.get();
1539
1520
  this.log("[Paypal]: order", r);
1540
1521
  let i = setInterval(() => {
1541
- if (this.log("[Paypal]: setInterval resolved = " + r.resolved), r.resolved) {
1542
- if (clearInterval(i), !this.fraudProcessor) {
1543
- this.addCharge(e, null);
1544
- return;
1545
- }
1546
- this.fraudProcessor.setPaypalInfo({
1547
- payerId: r.value.payer.payer_id,
1548
- payerEmail: r.value.payer.email_address,
1549
- paymentMethod: "Instant Transfer",
1550
- paymentStatus: r.value.status,
1551
- payerAccountCountry: r.value.payer.address.country_code,
1552
- paymentId: r.value.id
1553
- }), Ut(), this.fraudProcessor.fraudCheck((t) => {
1554
- if (Ht(), Vt(t)) {
1555
- I(e, "Payment couldn't be processed"), this.failureCallback?.({ error: "Payment couldn't be processed" });
1556
- return;
1557
- }
1558
- this.addCharge(e, t);
1559
- }, (t) => {
1560
- Ht(), I(e, t.error), this.failureCallback?.(t);
1561
- });
1562
- }
1522
+ this.log("[Paypal]: setInterval resolved = " + r.resolved), r.resolved && (clearInterval(i), this.fraudProcessor ? (this.fraudProcessor.setPaypalInfo({
1523
+ payerId: r.value.payer.payer_id,
1524
+ payerEmail: r.value.payer.email_address,
1525
+ paymentMethod: "Instant Transfer",
1526
+ paymentStatus: r.value.status,
1527
+ payerAccountCountry: r.value.payer.address.country_code,
1528
+ paymentId: r.value.id
1529
+ }), Bt(), this.fraudProcessor.fraudCheck((t) => {
1530
+ zt(), Rt(t) ? (I(e, "Payment couldn't be processed"), this.failureCallback?.({ error: "Payment couldn't be processed" })) : this.addCharge(e, t);
1531
+ }, (t) => {
1532
+ zt(), I(e, t.error), this.failureCallback?.(t);
1533
+ })) : this.addCharge(e, null));
1563
1534
  }, 200);
1564
1535
  })
1565
1536
  }
@@ -1607,7 +1578,7 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1607
1578
  this.log("paypal success", n);
1608
1579
  let r = JSON.parse(t), i = JSON.parse(window.atob(r.checkoutData));
1609
1580
  this.checkoutExternalId = i.externalId, window.postMessage({
1610
- status: je,
1581
+ status: Ae,
1611
1582
  component: "paypal",
1612
1583
  checkoutData: i
1613
1584
  }, "*");
@@ -1623,7 +1594,7 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1623
1594
  getSuccessAddChargeHandler(e) {
1624
1595
  return z(this, "[PayPalProcessor][getSuccessAddChargeHandler]", (t, n) => {
1625
1596
  let r = JSON.parse(n);
1626
- this.log("[getSuccessAddChargeHandler]", r), $e(e, this.getSuccessMessage()), this.successCallback?.({ transactionId: r.chargeId });
1597
+ this.log("[getSuccessAddChargeHandler]", r), Qe(e, this.getSuccessMessage()), this.successCallback?.({ transactionId: r.chargeId });
1627
1598
  });
1628
1599
  }
1629
1600
  addCharge(e, t) {
@@ -1638,20 +1609,20 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1638
1609
  if (!e(n)) throw I(t, "Invalid amount: " + n), TypeError("invalid amount: " + n);
1639
1610
  }
1640
1611
  };
1641
- L([R], Wt.prototype, "cleanUp", null), L([R], Wt.prototype, "addPaypal", null), L([R], Wt.prototype, "setAmount", null), L([R], Wt.prototype, "checkout", null), L([R], Wt.prototype, "getFailureAddChargeHandler", null), L([R], Wt.prototype, "getSuccessAddChargeHandler", null), L([R], Wt.prototype, "addCharge", null), L([R], Wt.prototype, "validateOptions", null);
1612
+ L([R], Vt.prototype, "cleanUp", null), L([R], Vt.prototype, "addPaypal", null), L([R], Vt.prototype, "setAmount", null), L([R], Vt.prototype, "checkout", null), L([R], Vt.prototype, "getFailureAddChargeHandler", null), L([R], Vt.prototype, "getSuccessAddChargeHandler", null), L([R], Vt.prototype, "addCharge", null), L([R], Vt.prototype, "validateOptions", null);
1642
1613
  //#endregion
1643
1614
  //#region src/sdk/components/CardForm.vue?vue&type=script&setup=true&lang.ts
1644
- var Gt = ["src"], Kt = {
1615
+ var Ht = ["src"], Ut = {
1645
1616
  key: 0,
1646
1617
  id: "threeDs"
1647
- }, qt = 620, Jt = /* @__PURE__ */ w({
1618
+ }, Wt = 620, Gt = /* @__PURE__ */ w({
1648
1619
  __name: "CardForm",
1649
1620
  props: {
1650
1621
  log: { type: Function },
1651
1622
  iframeSrc: {},
1652
1623
  form: {},
1653
1624
  threeDSEnabled: { type: Boolean },
1654
- onValidate: { type: Function }
1625
+ clickGate: { type: Function }
1655
1626
  },
1656
1627
  emits: [
1657
1628
  "load",
@@ -1668,7 +1639,7 @@ var Gt = ["src"], Kt = {
1668
1639
  r.form.submit();
1669
1640
  return;
1670
1641
  }
1671
- if (r.onValidate()?.() === !1) return;
1642
+ if (r.clickGate()?.() === !1) return;
1672
1643
  i("submit");
1673
1644
  }
1674
1645
  e.data.status === "activate" && e.data.component === "card" && (r.log?.(`[CardForm]: message "${e.data.status}" received`, e.data), d.value = !0), e.data.status === "deactivate" && e.data.component === "card" && (r.log?.(`[CardForm]: message "${e.data.status}" received`, e.data), d.value = !1);
@@ -1694,18 +1665,18 @@ var Gt = ["src"], Kt = {
1694
1665
  }
1695
1666
  function y(e) {
1696
1667
  let t = a.value;
1697
- t && (e ? (p = t.style.height || "200px", f.value = !0, t.setAttribute("style", `height: ${qt}px`)) : (f.value = !1, t.setAttribute("style", `height: ${p}`)));
1668
+ t && (e ? (p = t.style.height || "200px", f.value = !0, t.setAttribute("style", `height: ${Wt}px`)) : (f.value = !1, t.setAttribute("style", `height: ${p}`)));
1698
1669
  }
1699
1670
  return (e, t) => (x(), M(O, null, [j("iframe", {
1700
1671
  src: o.value,
1701
1672
  onLoad: g,
1702
1673
  ref_key: "iframe",
1703
1674
  ref: a,
1704
- style: We(`height:${_(200)}px`),
1675
+ style: Ue(`height:${_(200)}px`),
1705
1676
  id: "payfurl-card-iframe"
1706
- }, null, 44, Gt), l.value ? (x(), M("div", Kt)) : E("", !0)], 64));
1677
+ }, null, 44, Ht), l.value ? (x(), M("div", Ut)) : E("", !0)], 64));
1707
1678
  }
1708
- }), Yt = class {
1679
+ }), Kt = class {
1709
1680
  log;
1710
1681
  startLoadingCardFormHandler = null;
1711
1682
  constructor(e) {
@@ -1716,39 +1687,37 @@ var Gt = ["src"], Kt = {
1716
1687
  }
1717
1688
  startLoadingCardForm() {
1718
1689
  let e = this.getCardFormFrame();
1719
- if (!e) {
1720
- this.startLoadingCardFormHandler = setTimeout(() => {
1721
- this.startLoadingCardForm();
1722
- }, 200);
1723
- return;
1724
- }
1725
- this.startLoadingCardFormHandler = null, this.log("[startLoadingCardForm]");
1726
- try {
1727
- e.contentWindow?.postMessage({ status: d }, "*");
1728
- } catch (e) {
1729
- this.log("[startLoadingCardForm] iframe error", e);
1690
+ if (!e) this.startLoadingCardFormHandler = setTimeout(() => {
1691
+ this.startLoadingCardForm();
1692
+ }, 200);
1693
+ else {
1694
+ this.startLoadingCardFormHandler = null, this.log("[startLoadingCardForm]");
1695
+ try {
1696
+ e.contentWindow?.postMessage({ status: d }, "*");
1697
+ } catch (e) {
1698
+ this.log("[startLoadingCardForm] iframe error", e);
1699
+ }
1730
1700
  }
1731
1701
  }
1732
1702
  stopLoadingCardForm() {
1733
1703
  this.startLoadingCardFormHandler &&= (clearTimeout(this.startLoadingCardFormHandler), null);
1734
1704
  let e = this.getCardFormFrame();
1735
- if (!e) {
1736
- setTimeout(() => {
1737
- this.stopLoadingCardForm();
1738
- }, 200);
1739
- return;
1740
- }
1741
- this.log("[stopLoadingCardForm]");
1742
- try {
1743
- e.contentWindow?.postMessage({ status: ae }, "*");
1744
- } catch (e) {
1745
- this.log("[stopLoadingCardForm] iframe error", e);
1705
+ if (!e) setTimeout(() => {
1706
+ this.stopLoadingCardForm();
1707
+ }, 200);
1708
+ else {
1709
+ this.log("[stopLoadingCardForm]");
1710
+ try {
1711
+ e.contentWindow?.postMessage({ status: ae }, "*");
1712
+ } catch (e) {
1713
+ this.log("[stopLoadingCardForm] iframe error", e);
1714
+ }
1746
1715
  }
1747
1716
  }
1748
1717
  pauseLoadingCardForm() {
1749
1718
  let e = this.getCardFormFrame();
1750
1719
  if (e) try {
1751
- e.contentWindow?.postMessage({ status: me }, "*");
1720
+ e.contentWindow?.postMessage({ status: pe }, "*");
1752
1721
  } catch (e) {
1753
1722
  this.log("[pauseLoadingCardForm] iframe error", e);
1754
1723
  }
@@ -1756,7 +1725,7 @@ var Gt = ["src"], Kt = {
1756
1725
  unpauseLoadingCardForm() {
1757
1726
  let e = this.getCardFormFrame();
1758
1727
  if (e) try {
1759
- e.contentWindow?.postMessage({ status: ue }, "*");
1728
+ e.contentWindow?.postMessage({ status: le }, "*");
1760
1729
  } catch (e) {
1761
1730
  this.log("[unpauseLoadingCardForm] iframe error", e);
1762
1731
  }
@@ -1764,14 +1733,14 @@ var Gt = ["src"], Kt = {
1764
1733
  showMessage(e) {
1765
1734
  let t = this.getCardFormFrame();
1766
1735
  t && t.contentWindow?.postMessage({
1767
- status: De,
1736
+ status: Ee,
1768
1737
  message: e
1769
1738
  }, "*");
1770
1739
  }
1771
1740
  showInfoMessage(e) {
1772
1741
  let t = this.getCardFormFrame();
1773
1742
  t && t.contentWindow?.postMessage({
1774
- status: Re,
1743
+ status: Le,
1775
1744
  message: e
1776
1745
  }, "*");
1777
1746
  }
@@ -1784,11 +1753,11 @@ var Gt = ["src"], Kt = {
1784
1753
  }
1785
1754
  }
1786
1755
  };
1787
- L([R], Yt.prototype, "startLoadingCardForm", null), L([R], Yt.prototype, "stopLoadingCardForm", null), L([R], Yt.prototype, "pauseLoadingCardForm", null), L([R], Yt.prototype, "unpauseLoadingCardForm", null), L([R], Yt.prototype, "showMessage", null), L([R], Yt.prototype, "showInfoMessage", null), L([R], Yt.prototype, "requestCardDetails", null);
1756
+ L([R], Kt.prototype, "startLoadingCardForm", null), L([R], Kt.prototype, "stopLoadingCardForm", null), L([R], Kt.prototype, "pauseLoadingCardForm", null), L([R], Kt.prototype, "unpauseLoadingCardForm", null), L([R], Kt.prototype, "showMessage", null), L([R], Kt.prototype, "showInfoMessage", null), L([R], Kt.prototype, "requestCardDetails", null);
1788
1757
  //#endregion
1789
1758
  //#region src/utils/networkTokenOptions.ts
1790
- function Xt(e) {
1791
- return e === Ke.PRODUCTION ? {
1759
+ function qt(e) {
1760
+ return e === Ge.PRODUCTION ? {
1792
1761
  acquirerMerchantId: "550e8400",
1793
1762
  acquirerBIN: "444444",
1794
1763
  authenticationReasons: ["TRANSACTION_AUTHENTICATION"]
@@ -1800,10 +1769,10 @@ function Xt(e) {
1800
1769
  }
1801
1770
  //#endregion
1802
1771
  //#region src/sdk/processors/networkToken/mastercardTokenAuthenticationProcessor.ts
1803
- var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en = (e, t) => ({ [$t.UPDATE]: {
1772
+ var { hideSpinner: Jt, showSpinner: Yt } = Oe(), Xt = { UPDATE: "UPDATE" }, Zt = (e, t) => ({ [Xt.UPDATE]: {
1804
1773
  url: e + ("/token/" + t + "/authentication"),
1805
1774
  method: "PUT"
1806
- } }), tn = class extends Yt {
1775
+ } }), Qt = class extends Kt {
1807
1776
  environment;
1808
1777
  token;
1809
1778
  networkToken;
@@ -1820,7 +1789,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1820
1789
  onFailureCallback;
1821
1790
  constructor(e, t) {
1822
1791
  super(e), this.log("[MastercardTokenAuthenticationProcessor]", t), this.environment = t.environment, this.token = t.token, this.networkToken = t.networkToken, this.networkTokenData = t.networkTokenData, this.networkTokenAuthenticateUrl = t.redirectUrl, this.networkTokenProvider = t.networkTokenProvider;
1823
- let n = Xt(this.environment);
1792
+ let n = qt(this.environment);
1824
1793
  this.networkTokenOptions = {
1825
1794
  ...n,
1826
1795
  ...t.networkTokenOptions
@@ -1839,19 +1808,14 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1839
1808
  }
1840
1809
  messageHandler(e) {
1841
1810
  if (e.data?.action) {
1842
- if (this.log("[MastercardTokenAuthenticationProcessor][messageHandler]", e), e.data.action === "Ready") {
1843
- this.isReady = !0, this.invokeHandler && this.invokeHandler();
1844
- return;
1845
- }
1846
- if (e.data.action === "Error") {
1811
+ if (this.log("[MastercardTokenAuthenticationProcessor][messageHandler]", e), e.data.action === "Ready") this.isReady = !0, this.invokeHandler && this.invokeHandler();
1812
+ else if (e.data.action === "Error") {
1847
1813
  if (this.modalHide(), e.data.payload.message === "NOT_SUPPORTED") {
1848
1814
  this.showMessage("This card is not supported token authentication. Please use another card."), this.onFailureCallback?.({ error: "This card is not supported token authentication. Please use another card." });
1849
1815
  return;
1850
1816
  }
1851
1817
  this.showMessage("Unknown error. Please try again later."), this.onFailureCallback?.({ error: "Unknown error. Please try again later." });
1852
- return;
1853
- }
1854
- if (e.data.action === "Success") {
1818
+ } else if (e.data.action === "Success") {
1855
1819
  if (e.data.payload.authenticationStatus === "CANCELLED") {
1856
1820
  this.modalHide(), this.showMessage("Cancelled 3DS Challenge"), this.onFailureCallback?.({ error: "Cancelled 3DS Challenge" });
1857
1821
  return;
@@ -1910,7 +1874,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1910
1874
  modalShow() {
1911
1875
  if (this.modal) return;
1912
1876
  let e = "maxTouchPoints" in navigator && navigator.maxTouchPoints > 0 ? 791 : 637, t = window.screenLeft === void 0 ? window.screenX : window.screenLeft, n = window.screenTop === void 0 ? window.screenY : window.screenTop, r = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width, i = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height, a = r / window.screen.availWidth, o = (r - 375) / 2 / a + t, s = (i - e) / 2 / a + n;
1913
- Zt(), ge(this.networkTokenAuthenticateUrl) && (this.modal = window.open(this.networkTokenAuthenticateUrl + "?origin=" + window.location.origin, "targetWindow", `toolbar=no,
1877
+ Jt(), he(this.networkTokenAuthenticateUrl) && (this.modal = window.open(this.networkTokenAuthenticateUrl + "?origin=" + window.location.origin, "targetWindow", `toolbar=no,
1914
1878
  location=no,
1915
1879
  status=no,
1916
1880
  menubar=no,
@@ -1922,7 +1886,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1922
1886
  left=${o}`));
1923
1887
  }
1924
1888
  modalHide() {
1925
- this.modal && (Qt(), this.modal.close());
1889
+ this.modal && (Yt(), this.modal.close());
1926
1890
  }
1927
1891
  updateToken(e) {
1928
1892
  if (this.log("[MastercardTokenAuthenticationProcessor][updateToken]", e), !e.assuranceData?.verificationData.length) {
@@ -1934,7 +1898,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1934
1898
  return;
1935
1899
  }
1936
1900
  let t = e.assuranceData.verificationData[0];
1937
- this.httpInvoker?.invoke(en(this.apiUrl, this.token)[$t.UPDATE].url, en(this.apiUrl, this.token)[$t.UPDATE].method, JSON.stringify({
1901
+ this.httpInvoker?.invoke(Zt(this.apiUrl, this.token)[Xt.UPDATE].url, Zt(this.apiUrl, this.token)[Xt.UPDATE].method, JSON.stringify({
1938
1902
  VerificationType: t.verificationType,
1939
1903
  VerificationEntity: t.verificationEntity,
1940
1904
  VerificationMethod: t.verificationMethod,
@@ -1949,22 +1913,22 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1949
1913
  }));
1950
1914
  }
1951
1915
  };
1952
- L([R], tn.prototype, "invoke", null), L([R], tn.prototype, "messageHandler", null), L([R], tn.prototype, "authenticate", null), L([R], tn.prototype, "init", null), L([R], tn.prototype, "initCss", null), L([R], tn.prototype, "modalShow", null), L([R], tn.prototype, "modalHide", null), L([R], tn.prototype, "updateToken", null);
1916
+ L([R], Qt.prototype, "invoke", null), L([R], Qt.prototype, "messageHandler", null), L([R], Qt.prototype, "authenticate", null), L([R], Qt.prototype, "init", null), L([R], Qt.prototype, "initCss", null), L([R], Qt.prototype, "modalShow", null), L([R], Qt.prototype, "modalHide", null), L([R], Qt.prototype, "updateToken", null);
1953
1917
  //#endregion
1954
1918
  //#region src/sdk/processors/cardProcessor.ts
1955
- var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
1919
+ var { hideSpinner: K, showSpinner: $t } = Oe(), en = {
1956
1920
  TOKENISE_CARD: "TOKENISE_CARD",
1957
1921
  GET_PROVIDER_INFO: "GET_PROVIDER_INFO"
1958
- }, an = (e, t, n) => ({
1959
- [rn.TOKENISE_CARD]: {
1922
+ }, tn = (e, t, n) => ({
1923
+ [en.TOKENISE_CARD]: {
1960
1924
  url: e + "/token/card",
1961
1925
  method: "POST"
1962
1926
  },
1963
- [rn.GET_PROVIDER_INFO]: {
1927
+ [en.GET_PROVIDER_INFO]: {
1964
1928
  url: e + "/info/providers/" + t,
1965
1929
  method: "GET"
1966
1930
  }
1967
- }), q = class extends Yt {
1931
+ }), q = class extends Kt {
1968
1932
  container = null;
1969
1933
  iframe = null;
1970
1934
  form = null;
@@ -2055,7 +2019,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2055
2019
  options: a
2056
2020
  }), this.attachMessageListener(), a?.createNetworkToken && !a?.tokenAuthenticationEnabled && (a.clickToPayEnabled = !1), a?.clickToPayEnabled && this.clickToPayProcessor && (a.threeDSEnabled = !1), this.secureFallback = !1, this.secureReady = !1, this.secureEnabled = !!a?.secureCardOrchestration?.enabled;
2057
2021
  let o = a?.threeDSEmail || "";
2058
- this.amount = r, this.currency = i, this.vault = A(a?.vault), this.verifyCard = A(a?.verifyCard), this.metadata = G(a?.metadata), this.fraudProcessor && (this.fraudProcessor.setAmount(r), this.fraudProcessor.setCurrency(i)), this.threeDsProcessor && (this.threeDsProcessor.setEmail(a?.threeDSEmail || ""), this.threeDsProcessor.setAmount(r), this.threeDsProcessor.setCurrency(i), this.threeDsProcessor.setClientParameters(a?.clientParameters || {})), a?.threeDSEnabled && (Ee(r, k, "Missing or invalid amount", this.failureCallback), Ee(i, B, "Missing or invalid currency", this.failureCallback), this.threeDSEnabled = !0);
2022
+ this.amount = r, this.currency = i, this.vault = A(a?.vault), this.verifyCard = A(a?.verifyCard), this.metadata = G(a?.metadata), this.fraudProcessor && (this.fraudProcessor.setAmount(r), this.fraudProcessor.setCurrency(i)), this.threeDsProcessor && (this.threeDsProcessor.setEmail(a?.threeDSEmail || ""), this.threeDsProcessor.setAmount(r), this.threeDsProcessor.setCurrency(i), this.threeDsProcessor.setClientParameters(a?.clientParameters || {})), a?.threeDSEnabled && (Te(r, k, "Missing or invalid amount", this.failureCallback), Te(i, B, "Missing or invalid currency", this.failureCallback), this.threeDSEnabled = !0);
2059
2023
  let s = Object.keys(a?.networkTokenOptions || {}).length ? a?.networkTokenOptions : a?.clickToPayOptions?.networkTokenOptions;
2060
2024
  a?.clickToPayEnabled && this.clickToPayProcessor && (this.clickToPayProcessor.setAmount(r), this.clickToPayProcessor.setCurrency(i), this.clickToPayProcessor.setCustomerInfo({
2061
2025
  ...this.customer || {},
@@ -2068,13 +2032,13 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2068
2032
  }), this.clickToPayProcessor.setContainer(e), this.clickToPayProcessor.init(), this.clickToPayProcessor.start()), !a?.clickToPayEnabled && this.clickToPayProcessor && this.clickToPayProcessor.isInitialized() && this.clickToPayProcessor.stopUsing(), this.createNetworkToken = !!a?.createNetworkToken, this.tokenAuthenticationEnabled = !!a?.tokenAuthenticationEnabled, this.networkTokenProviders = a?.networkTokenProviders || [], this.networkTokenOptions = a?.networkTokenOptions || {}, this.container = e || null, this.form = t;
2069
2033
  let c = D({
2070
2034
  el: this.container,
2071
- component: Jt,
2035
+ component: Gt,
2072
2036
  props: {
2073
2037
  log: this.log,
2074
2038
  iframeSrc: this.url,
2075
2039
  form: this.form,
2076
2040
  threeDSEnabled: this.threeDSEnabled,
2077
- onValidate: this.getOnValidate.bind(this)
2041
+ clickGate: this.getOnValidate.bind(this)
2078
2042
  },
2079
2043
  on: {
2080
2044
  load: z(this, "[addCard], onload", (e) => {
@@ -2109,7 +2073,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2109
2073
  } : null;
2110
2074
  this.secureConfig = t;
2111
2075
  let c = {
2112
- status: Ve,
2076
+ status: Be,
2113
2077
  environment: this.environment,
2114
2078
  debug: this.debug,
2115
2079
  publicKey: this.publicKey,
@@ -2119,7 +2083,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2119
2083
  currency: i,
2120
2084
  vault: A(a?.vault),
2121
2085
  verifyCard: A(a?.verifyCard),
2122
- showEmail: a?.threeDSEnabled && !Ae(o),
2086
+ showEmail: a?.threeDSEnabled && !ke(o),
2123
2087
  visProviderId: a?.visProviderId,
2124
2088
  requiredFields: a?.requiredFields,
2125
2089
  clickToPayEnabled: a?.clickToPayEnabled,
@@ -2131,13 +2095,13 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2131
2095
  let t = new MessageChannel();
2132
2096
  this.setCardDetailsPort(t.port1), e?.contentWindow?.postMessage(c, "*", [t.port2]);
2133
2097
  } else e?.contentWindow?.postMessage(c, "*");
2134
- this.customer?.phoneNumber && !pe(String(this.customer?.phoneNumber)) && this.getCardFormFrame()?.contentWindow?.postMessage({
2135
- status: De,
2098
+ this.customer?.phoneNumber && !fe(String(this.customer?.phoneNumber)) && this.getCardFormFrame()?.contentWindow?.postMessage({
2099
+ status: Ee,
2136
2100
  message: "Invalid phone number"
2137
2101
  }, "*");
2138
2102
  }),
2139
2103
  submit: z(this, "[addCard], onsubmit", () => {
2140
- this.log("[CardProcessor]: submit event"), nn(), this.requestCardDetails();
2104
+ this.log("[CardProcessor]: submit event"), $t(), this.requestCardDetails();
2141
2105
  })
2142
2106
  }
2143
2107
  });
@@ -2145,48 +2109,22 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2145
2109
  }
2146
2110
  messageHandler(e) {
2147
2111
  if (e?.data?.status) {
2148
- if (e.data.status === "secure-orchestrator-ready" && this.isTrustedSecureMessage(e)) {
2149
- this.secureReady = !0;
2150
- return;
2151
- }
2152
- if (e.data.status === "secure-orchestrator-tokenise" && this.isTrustedSecureMessage(e)) {
2112
+ if (e.data.status === "secure-orchestrator-ready" && this.isTrustedSecureMessage(e)) this.secureReady = !0;
2113
+ else if (e.data.status === "secure-orchestrator-tokenise" && this.isTrustedSecureMessage(e)) {
2153
2114
  let t = e.data.message || {};
2154
2115
  this.tokenise({
2155
2116
  threeDSServerTransID: t.threeDSServerTransID,
2156
2117
  fraudCheckResult: t.fraudCheckResult,
2157
2118
  externalThreeDsData: t.externalThreeDsData
2158
2119
  });
2159
- return;
2160
- }
2161
- if (e.data.status === "secure-orchestrator-click-to-pay-card" && this.isTrustedSecureMessage(e)) {
2162
- this.checkoutWithSecureClickToPayCard(e.data.message || {});
2163
- return;
2164
- }
2165
- if (e.data.status === "secure-orchestrator-click-to-pay-new-card" && this.isTrustedSecureMessage(e)) {
2166
- this.checkoutWithSecureClickToPayNewCard(e.data.message || {});
2167
- return;
2168
- }
2169
- if (e.data.status === "secure-orchestrator-failure" && this.isTrustedSecureMessage(e)) {
2170
- K(), this.showMessage(e.data.error || "Unable to process payment details"), this.failureCallback?.({ error: e.data.error || "Unable to process payment details" });
2171
- return;
2172
- }
2173
- if (e.data.status === "hide-spinner") {
2174
- this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K();
2175
- return;
2176
- }
2177
- if (e.data.status === "show-spinner") {
2178
- this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), nn();
2179
- return;
2180
- }
2181
- if (e.data.status === "card-form-validation-error") {
2182
- this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K(), this.failureCallback?.({ error: e.data.message });
2183
- return;
2184
- }
2185
- if (e.data.status === "card-form-validation-status-change") {
2186
- this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K(), this.validationStatusChangeCallback?.(e.data.message?.status, e.data.message?.message);
2187
- return;
2188
- }
2189
- if (e.data.status === "tokenise-card-failure") {
2120
+ } else if (e.data.status === "secure-orchestrator-click-to-pay-card" && this.isTrustedSecureMessage(e)) this.checkoutWithSecureClickToPayCard(e.data.message || {});
2121
+ else if (e.data.status === "secure-orchestrator-click-to-pay-new-card" && this.isTrustedSecureMessage(e)) this.checkoutWithSecureClickToPayNewCard(e.data.message || {});
2122
+ else if (e.data.status === "secure-orchestrator-failure" && this.isTrustedSecureMessage(e)) K(), this.showMessage(e.data.error || "Unable to process payment details"), this.failureCallback?.({ error: e.data.error || "Unable to process payment details" });
2123
+ else if (e.data.status === "hide-spinner") this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K();
2124
+ else if (e.data.status === "show-spinner") this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), $t();
2125
+ else if (e.data.status === "card-form-validation-error") this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K(), this.failureCallback?.({ error: e.data.message });
2126
+ else if (e.data.status === "card-form-validation-status-change") this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K(), this.validationStatusChangeCallback?.(e.data.message?.status, e.data.message?.message);
2127
+ else if (e.data.status === "tokenise-card-failure") {
2190
2128
  if (this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), K(), e.data.message === "3D Secure required" && this.isSecureFlowEnabled()) {
2191
2129
  this.postSecureMessage(v);
2192
2130
  return;
@@ -2204,9 +2142,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2204
2142
  error: e.data.message,
2205
2143
  body: e.data.body
2206
2144
  });
2207
- return;
2208
- }
2209
- if (e.data.status === "tokenise-card-success") {
2145
+ } else if (e.data.status === "tokenise-card-success") {
2210
2146
  this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), e.stopPropagation(), this.iframe = null;
2211
2147
  let t = { token: e.data.tokenId };
2212
2148
  if (e.data.options?.cardDetails && (t.cardDetails = e.data.options?.cardDetails), e.data.options?.iinData && (t.iinData = e.data.options?.iinData), e.data.options?.clickToPay && (t.clickToPayData = {
@@ -2219,15 +2155,14 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2219
2155
  let n = this.initTokenAuthenticationProcessor(e.data.tokenId, e.data.options.networkToken, e.data.options?.networkTokenData, e.data.options.networkTokenAuthenticateUrl, e.data.options?.cardDetails, this.networkTokenOptions);
2220
2156
  if (n) {
2221
2157
  n.invoke(this.amount, this.currency, z(this, "[sdk][cardProcessor], token authentication success", () => {
2222
- this.log("[sdk][cardProcessor], token authentication success"), K(), $e(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2158
+ this.log("[sdk][cardProcessor], token authentication success"), K(), Qe(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2223
2159
  }), z(this, "[sdk][cardProcessor], token authentication error", (e) => {
2224
2160
  K(), this.log("[sdk][cardProcessor], token authentication error", e);
2225
2161
  }));
2226
2162
  return;
2227
2163
  }
2228
2164
  }
2229
- K(), $e(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2230
- return;
2165
+ K(), Qe(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2231
2166
  }
2232
2167
  }
2233
2168
  }
@@ -2260,46 +2195,26 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2260
2195
  return this.secureEnabled && !this.secureFallback;
2261
2196
  }
2262
2197
  requestCardDetails() {
2263
- if (this.isSecureFlowEnabled() && !this.secureReady) {
2264
- K(), this.showMessage("Secure payment flow is not ready. Please try again."), this.failureCallback?.({ error: "Secure payment flow is not ready" });
2265
- return;
2266
- }
2267
- if (this.isSecureFlowEnabled() && this.secureReady) {
2268
- this.secureConfig?.clickToPay && this.clickToPayProcessor && this.postSecureMessage(S, { clickToPay: {
2269
- ...this.secureConfig.clickToPay,
2270
- rememberMe: this.clickToPayProcessor.getRememberMe()
2271
- } }), this.postSecureMessage(Ce);
2272
- return;
2273
- }
2274
- if (this.cardDetailsPort) {
2275
- this.cardDetailsPort.postMessage({ status: a });
2276
- return;
2277
- }
2278
- super.requestCardDetails();
2198
+ this.isSecureFlowEnabled() && !this.secureReady ? (K(), this.showMessage("Secure payment flow is not ready. Please try again."), this.failureCallback?.({ error: "Secure payment flow is not ready" })) : this.isSecureFlowEnabled() && this.secureReady ? (this.secureConfig?.clickToPay && this.clickToPayProcessor && this.postSecureMessage(S, { clickToPay: {
2199
+ ...this.secureConfig.clickToPay,
2200
+ rememberMe: this.clickToPayProcessor.getRememberMe()
2201
+ } }), this.postSecureMessage(Se)) : this.cardDetailsPort ? this.cardDetailsPort.postMessage({ status: a }) : super.requestCardDetails();
2279
2202
  }
2280
2203
  handleCardDetailsMessage(e) {
2281
2204
  if (!e?.message) return;
2282
- this.log(`[sdk][cardProcessor]: "${Pe}" message received`, e);
2205
+ this.log(`[sdk][cardProcessor]: "${Ne}" message received`, e);
2283
2206
  let t = !!(this.clickToPayProcessor?.isEnabled() && this.clickToPayProcessor?.getRememberMe()), n = !!(this.clickToPayProcessor?.isEnabled() && e.message.srcDigitalCardId), r = !!(t && !n && e.message.cardNumber);
2284
- if (r && !this.clickToPayProcessor?.isSchemeSupported(e.message.cardNumber)) {
2285
- this.log("[clickToPayProcessor]: checkoutWithNewCard - Scheme is not supported!"), K(), this.showMessage("Please use another card or use an alternative payment method");
2286
- return;
2287
- }
2288
- if (n) {
2289
- K(), this.clickToPayProcessor?.checkoutWithCard(e.message, (t) => {
2290
- this.log("[clickToPayProcessor]: checkoutWithCard", t), t.checkoutActionCode !== "CANCEL" && t.checkoutActionCode !== "CHANGE_CARD" && (nn(), this.tokenise({ clickToPayInfo: {
2291
- correlationId: t.checkoutResponseData.srcCorrelationId,
2292
- srcFlowId: t.headers["x-src-cx-flow-id"],
2293
- merchantTransactionId: t.headers["merchant-transaction-id"],
2294
- ccv: e.message.ccv,
2295
- digitalCardId: t.checkoutResponseData.maskedCard.srcDigitalCardId.replace(/^-/, "")
2296
- } }));
2297
- }, (e) => {
2298
- this.log("[clickToPayProcessor]: checkoutWithCard, error", e), K();
2299
- });
2300
- return;
2301
- }
2302
- if (this.fraudProcessor?.setPaymentInfo({
2207
+ r && !this.clickToPayProcessor?.isSchemeSupported(e.message.cardNumber) ? (this.log("[clickToPayProcessor]: checkoutWithNewCard - Scheme is not supported!"), K(), this.showMessage("Please use another card or use an alternative payment method")) : n ? (K(), this.clickToPayProcessor?.checkoutWithCard(e.message, (t) => {
2208
+ this.log("[clickToPayProcessor]: checkoutWithCard", t), t.checkoutActionCode !== "CANCEL" && t.checkoutActionCode !== "CHANGE_CARD" && ($t(), this.tokenise({ clickToPayInfo: {
2209
+ correlationId: t.checkoutResponseData.srcCorrelationId,
2210
+ srcFlowId: t.headers["x-src-cx-flow-id"],
2211
+ merchantTransactionId: t.headers["merchant-transaction-id"],
2212
+ ccv: e.message.ccv,
2213
+ digitalCardId: t.checkoutResponseData.maskedCard.srcDigitalCardId.replace(/^-/, "")
2214
+ } }));
2215
+ }, (e) => {
2216
+ this.log("[clickToPayProcessor]: checkoutWithCard, error", e), K();
2217
+ })) : (this.fraudProcessor?.setPaymentInfo({
2303
2218
  cardNumber: e.message.cardNumber,
2304
2219
  expiryDate: e.message.expiryDate,
2305
2220
  cardholder: e.message.cardholder,
@@ -2314,57 +2229,41 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2314
2229
  expiryDate: e.message.expiryDate,
2315
2230
  cardholder: e.message.cardholder,
2316
2231
  ccv: e.message.ccv
2317
- }), e.message.email && (this.threeDsProcessor?.setEmail(e.message.email), this.secondaryThreeDsProcessor?.setEmail(e.message.email)), this.fraudProcessor && !(n || r)) {
2318
- nn(), this.fraudProcessor.fraudCheck(z(this, "[fraudProcessor][fraudCheck], success", (t) => {
2319
- if (Vt(t)) {
2320
- K(), I(this.container, "Payment couldn't be processed"), this.failureCallback?.({ error: "Payment couldn't be processed" });
2321
- return;
2322
- }
2323
- this.onSubmit({
2324
- cardNumber: e.message.cardNumber,
2325
- expiryDate: e.message.expiryDate,
2326
- cardholder: e.message.cardholder,
2327
- ccv: e.message.ccv
2328
- }, t);
2329
- }), z(this, "[fraudProcessor][fraudCheck], error", (e) => {
2330
- K(), I(this.container, e.error), this.failureCallback?.(e);
2331
- }));
2332
- return;
2333
- }
2334
- this.onSubmit({
2232
+ }), e.message.email && (this.threeDsProcessor?.setEmail(e.message.email), this.secondaryThreeDsProcessor?.setEmail(e.message.email)), this.fraudProcessor && !(n || r) ? ($t(), this.fraudProcessor.fraudCheck(z(this, "[fraudProcessor][fraudCheck], success", (t) => {
2233
+ Rt(t) ? (K(), I(this.container, "Payment couldn't be processed"), this.failureCallback?.({ error: "Payment couldn't be processed" })) : this.onSubmit({
2234
+ cardNumber: e.message.cardNumber,
2235
+ expiryDate: e.message.expiryDate,
2236
+ cardholder: e.message.cardholder,
2237
+ ccv: e.message.ccv
2238
+ }, t);
2239
+ }), z(this, "[fraudProcessor][fraudCheck], error", (e) => {
2240
+ K(), I(this.container, e.error), this.failureCallback?.(e);
2241
+ }))) : this.onSubmit({
2335
2242
  cardNumber: e.message.cardNumber,
2336
2243
  expiryDate: e.message.expiryDate,
2337
2244
  cardholder: e.message.cardholder,
2338
2245
  ccv: e.message.ccv
2339
- });
2246
+ }));
2340
2247
  }
2341
2248
  onSubmit(e, t) {
2342
- if (this.log("[cardProcessor]: onSubmit", {
2249
+ this.log("[cardProcessor]: onSubmit", {
2343
2250
  cardInfo: {
2344
2251
  ...e,
2345
- cardNumber: qe(e.cardNumber),
2252
+ cardNumber: Ke(e.cardNumber),
2346
2253
  ccv: "***"
2347
2254
  },
2348
2255
  fraudCheckResult: t
2349
- }), this.clickToPayProcessor?.isEnabled() && this.clickToPayProcessor?.getRememberMe()) {
2350
- this.tokeniseWithClickToPay(e, void 0, t);
2351
- return;
2352
- }
2353
- if (this.threeDsProcessor) {
2354
- this.threeDsProcessor?.threeDSInvoke(this.container, !1, (e) => {
2355
- K(), this.log("[threeDSInvoke], postAuthData", e), this.tokenise({
2356
- threeDSServerTransID: e.threeDSServerTransID,
2357
- fraudCheckResult: t,
2358
- externalThreeDsData: e.externalThreeDsData
2359
- });
2256
+ }), t?.managedOrderToken ? (K(), I(this.container, "3DS challenge could not be started"), this.failureCallback?.({ error: "3DS challenge could not be started" })) : this.clickToPayProcessor?.isEnabled() && this.clickToPayProcessor?.getRememberMe() ? this.tokeniseWithClickToPay(e, void 0, t) : this.threeDsProcessor ? this.threeDsProcessor?.threeDSInvoke(this.container, !1, (e) => {
2257
+ K(), this.log("[threeDSInvoke], postAuthData", e), this.tokenise({
2258
+ threeDSServerTransID: e.threeDSServerTransID,
2259
+ fraudCheckResult: t,
2260
+ externalThreeDsData: e.externalThreeDsData
2360
2261
  });
2361
- return;
2362
- }
2363
- this.tokenise({ fraudCheckResult: t });
2262
+ }) : this.tokenise({ fraudCheckResult: t });
2364
2263
  }
2365
2264
  tokenise(e) {
2366
2265
  if (this.log("[cardProcessor]: tokenise", e), !this.iframe) return;
2367
- nn();
2266
+ $t();
2368
2267
  let t = {
2369
2268
  status: h,
2370
2269
  threeDSServerTransID: e.threeDSServerTransID,
@@ -2386,7 +2285,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2386
2285
  }
2387
2286
  tokeniseWithClickToPay(e, t, n) {
2388
2287
  K(), this.clickToPayProcessor?.checkoutWithNewCard(e.cardNumber, e.expiryDate, e.ccv || "", !0, z(this, "[clickToPayProcessor]: checkoutWithNewCard", (r) => {
2389
- this.log("[clickToPayProcessor]: checkoutWithNewCard", r), r.checkoutActionCode !== "CANCEL" && (nn(), this.tokenise({
2288
+ this.log("[clickToPayProcessor]: checkoutWithNewCard", r), r.checkoutActionCode !== "CANCEL" && ($t(), this.tokenise({
2390
2289
  threeDSServerTransID: t,
2391
2290
  fraudCheckResult: n,
2392
2291
  clickToPayInfo: {
@@ -2403,7 +2302,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2403
2302
  }
2404
2303
  checkoutWithSecureClickToPayCard(e) {
2405
2304
  K(), this.clickToPayProcessor?.checkoutWithCard(e, z(this, "[clickToPayProcessor]: secure checkoutWithCard", (e) => {
2406
- this.log("[clickToPayProcessor]: secure checkoutWithCard", e), e.checkoutActionCode !== "CANCEL" && e.checkoutActionCode !== "CHANGE_CARD" && (nn(), this.tokenise({ clickToPayInfo: {
2305
+ this.log("[clickToPayProcessor]: secure checkoutWithCard", e), e.checkoutActionCode !== "CANCEL" && e.checkoutActionCode !== "CHANGE_CARD" && ($t(), this.tokenise({ clickToPayInfo: {
2407
2306
  correlationId: e.checkoutResponseData.srcCorrelationId,
2408
2307
  srcFlowId: e.headers["x-src-cx-flow-id"],
2409
2308
  merchantTransactionId: e.headers["merchant-transaction-id"],
@@ -2414,12 +2313,8 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2414
2313
  }));
2415
2314
  }
2416
2315
  checkoutWithSecureClickToPayNewCard(e) {
2417
- if (!e.encryptedCard || !e.cardBrand) {
2418
- K(), this.showMessage("Unable to process Click to Pay card"), this.failureCallback?.({ error: "Unable to process Click to Pay card" });
2419
- return;
2420
- }
2421
- K(), this.clickToPayProcessor?.checkoutWithEncryptedNewCard(e.encryptedCard, e.cardBrand, z(this, "[clickToPayProcessor]: secure checkoutWithEncryptedNewCard", (e) => {
2422
- this.log("[clickToPayProcessor]: secure checkoutWithEncryptedNewCard", e), e.checkoutActionCode !== "CANCEL" && (nn(), this.tokenise({ clickToPayInfo: {
2316
+ !e.encryptedCard || !e.cardBrand ? (K(), this.showMessage("Unable to process Click to Pay card"), this.failureCallback?.({ error: "Unable to process Click to Pay card" })) : (K(), this.clickToPayProcessor?.checkoutWithEncryptedNewCard(e.encryptedCard, e.cardBrand, z(this, "[clickToPayProcessor]: secure checkoutWithEncryptedNewCard", (e) => {
2317
+ this.log("[clickToPayProcessor]: secure checkoutWithEncryptedNewCard", e), e.checkoutActionCode !== "CANCEL" && ($t(), this.tokenise({ clickToPayInfo: {
2423
2318
  correlationId: e.checkoutResponseData.srcCorrelationId,
2424
2319
  srcFlowId: e.headers["x-src-cx-flow-id"],
2425
2320
  merchantTransactionId: e.headers["merchant-transaction-id"],
@@ -2427,7 +2322,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2427
2322
  } }));
2428
2323
  }), z(this, "[clickToPayProcessor]: secure checkoutWithEncryptedNewCard, error", (e) => {
2429
2324
  this.log("[clickToPayProcessor]: secure checkoutWithEncryptedNewCard, error", e), K(), I(this.container, e.message);
2430
- }));
2325
+ })));
2431
2326
  }
2432
2327
  setAmount(e) {
2433
2328
  this.amount = e, this.clickToPayProcessor?.setAmount(e), this.isSecureFlowEnabled() && this.postSecureMessage(S, { amount: e }), this.iframe && this.iframe.contentWindow?.postMessage({
@@ -2454,23 +2349,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2454
2349
  this.geolocation = { ...e }, this.isSecureFlowEnabled() && this.postSecureMessage(S, { geolocation: e });
2455
2350
  }
2456
2351
  tokeniseCard(e, t, n, r, i, a, o, s) {
2457
- if (!k(e)) {
2458
- this.log("missing parameter: providerId"), this.failureCallback?.({ error: "missing parameter: providerId" });
2459
- return;
2460
- }
2461
- if (!ve(t)) {
2462
- this.log("wrong parameter: cardNumber"), this.failureCallback?.({ error: "wrong parameter: cardNumber" });
2463
- return;
2464
- }
2465
- if (!Se(n)) {
2466
- this.log("wrong parameter: expiryDate"), this.failureCallback?.({ error: "wrong parameter: expiryDate" });
2467
- return;
2468
- }
2469
- if (!Le(i)) {
2470
- this.log("wrong parameter: ccv"), this.failureCallback?.({ error: "wrong parameter: ccv" });
2471
- return;
2472
- }
2473
- this.httpInvoker?.invoke(an(this.apiUrl, e)[rn.TOKENISE_CARD].url, an(this.apiUrl, e)[rn.TOKENISE_CARD].method, JSON.stringify({
2352
+ k(e) ? _e(t) ? xe(n) ? Ie(i) ? this.httpInvoker?.invoke(tn(this.apiUrl, e)[en.TOKENISE_CARD].url, tn(this.apiUrl, e)[en.TOKENISE_CARD].method, JSON.stringify({
2474
2353
  paymentInformation: {
2475
2354
  cardNumber: t,
2476
2355
  expiryDate: n,
@@ -2506,7 +2385,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2506
2385
  error: "Unable to tokenise payment information",
2507
2386
  body: t
2508
2387
  });
2509
- }, { providerId: e });
2388
+ }, { providerId: e }) : (this.log("wrong parameter: ccv"), this.failureCallback?.({ error: "wrong parameter: ccv" })) : (this.log("wrong parameter: expiryDate"), this.failureCallback?.({ error: "wrong parameter: expiryDate" })) : (this.log("wrong parameter: cardNumber"), this.failureCallback?.({ error: "wrong parameter: cardNumber" })) : (this.log("missing parameter: providerId"), this.failureCallback?.({ error: "missing parameter: providerId" }));
2510
2389
  }
2511
2390
  initTokenAuthenticationProcessor(e, t, n, r, i, a) {
2512
2391
  this.log("[initTokenAuthenticationProcessor]", {
@@ -2516,7 +2395,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2516
2395
  });
2517
2396
  let o = (i?.scheme || "").toLowerCase(), s = this.networkTokenProviders.find((e) => e.providerType.toLowerCase() === o);
2518
2397
  switch (String(s?.providerType).toLowerCase()) {
2519
- case "mastercard": return new tn(this.log.bind(this), {
2398
+ case "mastercard": return new Qt(this.log.bind(this), {
2520
2399
  container: this.container,
2521
2400
  token: e,
2522
2401
  networkToken: t,
@@ -2535,43 +2414,43 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2535
2414
  L([R], q.prototype, "cleanUp", null), L([R], q.prototype, "addCard", null), L([R], q.prototype, "messageHandler", null), L([R], q.prototype, "setCardDetailsPort", null), L([R], q.prototype, "closeCardDetailsPort", null), L([R], q.prototype, "postSecureMessage", null), L([R], q.prototype, "requestCardDetails", null), L([R], q.prototype, "handleCardDetailsMessage", null), L([R], q.prototype, "onSubmit", null), L([R], q.prototype, "tokenise", null), L([R], q.prototype, "tokeniseWithClickToPay", null), L([R], q.prototype, "checkoutWithSecureClickToPayCard", null), L([R], q.prototype, "checkoutWithSecureClickToPayNewCard", null), L([R], q.prototype, "setAmount", null), L([R], q.prototype, "setCurrency", null), L([R], q.prototype, "setCustomerInfo", null), L([R], q.prototype, "setBillingAddress", null), L([R], q.prototype, "setOrderInfo", null), L([R], q.prototype, "setGeolocation", null), L([R], q.prototype, "tokeniseCard", null), L([R], q.prototype, "initTokenAuthenticationProcessor", null);
2536
2415
  //#endregion
2537
2416
  //#region src/sdk/utils/error.ts
2538
- var on = m("");
2539
- function sn() {
2417
+ var nn = m("");
2418
+ function rn() {
2540
2419
  return {
2541
- errorMessage: on,
2420
+ errorMessage: nn,
2542
2421
  showErrorMessage: (e) => {
2543
- on.value = e;
2422
+ nn.value = e;
2544
2423
  },
2545
2424
  hideErrorMessage: () => {
2546
- on.value = "";
2425
+ nn.value = "";
2547
2426
  }
2548
2427
  };
2549
2428
  }
2550
2429
  //#endregion
2551
2430
  //#region src/sdk/components/PayToForm.vue?vue&type=script&setup=true&lang.ts
2552
- var cn = {
2431
+ var an = {
2553
2432
  id: "payfurl-payto-form",
2554
2433
  class: "payfurl-form"
2555
- }, ln = {
2434
+ }, on = {
2556
2435
  key: 0,
2557
2436
  class: "error text-normal"
2558
- }, un = { class: "row" }, dn = { class: "row" }, fn = { class: "row" }, pn = ["placeholder"], mn = {
2437
+ }, sn = { class: "row" }, cn = { class: "row" }, ln = { class: "row" }, un = ["placeholder"], dn = {
2559
2438
  key: 0,
2560
2439
  class: "small"
2561
- }, hn = {
2440
+ }, fn = {
2562
2441
  key: 1,
2563
2442
  class: "error"
2564
- }, gn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2443
+ }, pn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2565
2444
  __name: "PayToForm",
2566
2445
  props: {
2567
2446
  log: { type: Function },
2568
- onValidate: { type: Function }
2447
+ clickGate: { type: Function }
2569
2448
  },
2570
2449
  emits: ["submit"],
2571
2450
  setup(e, { emit: t }) {
2572
- let n = e, r = t, a = m({}), { isLoading: o } = W(), l = m(""), d = m("PHONE"), f = m(""), p = de(() => d.value === "PHONE" ? "0405123456 or 0212341234" : Ye(d.value.toLowerCase())), h = m(!0), { errorMessage: g } = sn();
2451
+ let n = e, r = t, a = m({}), { isLoading: o } = W(), l = m(""), d = m("PHONE"), f = m(""), p = ue(() => d.value === "PHONE" ? "0405123456 or 0212341234" : Je(d.value.toLowerCase())), h = m(!0), { errorMessage: g } = rn();
2573
2452
  function v() {
2574
- return a.value.payId = "", d.value === "PHONE" && (pe(f.value) || (a.value.payId = "Invalid phone number")), d.value === "EMAIL" && (Ae(f.value) || (a.value.payId = "Invalid email")), d.value === "ABN" && (ee(f.value.replace(/ /g, "")) || (a.value.payId = "Invalid ABN")), a.value.payId === "";
2453
+ return a.value.payId = "", d.value === "PHONE" && (fe(f.value) || (a.value.payId = "Invalid phone number")), d.value === "EMAIL" && (ke(f.value) || (a.value.payId = "Invalid email")), d.value === "ABN" && (ee(f.value.replace(/ /g, "")) || (a.value.payId = "Invalid ABN")), a.value.payId === "";
2575
2454
  }
2576
2455
  function y(e) {
2577
2456
  if (e?.data?.status) {
@@ -2580,11 +2459,11 @@ var cn = {
2580
2459
  payerName: l.value,
2581
2460
  payIdType: d.value,
2582
2461
  payId: f.value
2583
- }), !v()) || n.onValidate()?.() === !1) return;
2462
+ }), !v()) || n.clickGate()?.() === !1) return;
2584
2463
  r("submit", {
2585
2464
  payerName: l.value,
2586
2465
  payIdType: d.value,
2587
- payId: d.value === "PHONE" ? Me(f.value) : String(f.value).toLowerCase().replace(/ /g, "")
2466
+ payId: d.value === "PHONE" ? je(f.value) : String(f.value).toLowerCase().replace(/ /g, "")
2588
2467
  });
2589
2468
  }
2590
2469
  e.data.status === "activate" && e.data.component === "payto" && (n.log?.(`[PayTo]: message "${e.data.status}" received`, e.data), g.value = "", h.value = !0), e.data.status === "deactivate" && e.data.component === "payto" && (n.log?.(`[PayTo]: message "${e.data.status}" received`, e.data), h.value = !1);
@@ -2593,60 +2472,60 @@ var cn = {
2593
2472
  return c(() => {
2594
2473
  window.addEventListener("message", y), window.addEventListener("keypress", function(e) {
2595
2474
  e.altKey && e.code === "KeyP" && (e.preventDefault(), l.value = "test", d.value = "ABN", f.value = "67384721620");
2596
- }), window.postMessage({ status: Be }, "*");
2475
+ }), window.postMessage({ status: ze }, "*");
2597
2476
  }), s(() => {
2598
2477
  window.removeEventListener("message", y);
2599
- }), (e, t) => (x(), M("div", cn, [u(ze(le, null, null, 512), [[Oe, _(o)]]), j("div", {
2478
+ }), (e, t) => (x(), M("div", an, [u(Re(ce, null, null, 512), [[De, _(o)]]), j("div", {
2600
2479
  class: "container-form",
2601
- style: We(`visibility: ${_(o) ? "hidden" : "visible"}`)
2480
+ style: Ue(`visibility: ${_(o) ? "hidden" : "visible"}`)
2602
2481
  }, [
2603
- _(g) ? (x(), M("div", ln, i(_(g)), 1)) : E("", !0),
2604
- j("div", un, [t[3] ||= j("label", null, "Payer Name", -1), j("div", null, [u(j("input", {
2482
+ _(g) ? (x(), M("div", on, i(_(g)), 1)) : E("", !0),
2483
+ j("div", sn, [t[3] ||= j("label", null, "Payer Name", -1), j("div", null, [u(j("input", {
2605
2484
  type: "text",
2606
2485
  maxlength: "100",
2607
2486
  placeholder: "Payer Name",
2608
2487
  "onUpdate:modelValue": t[0] ||= (e) => l.value = e
2609
- }, null, 512), [[Ne, l.value]])])]),
2610
- j("div", dn, [t[5] ||= j("label", null, "Payer Id Type", -1), j("div", null, [u(j("select", { "onUpdate:modelValue": t[1] ||= (e) => d.value = e }, [...t[4] ||= [
2488
+ }, null, 512), [[Me, l.value]])])]),
2489
+ j("div", cn, [t[5] ||= j("label", null, "Payer Id Type", -1), j("div", null, [u(j("select", { "onUpdate:modelValue": t[1] ||= (e) => d.value = e }, [...t[4] ||= [
2611
2490
  j("option", { value: "PHONE" }, "Phone", -1),
2612
2491
  j("option", { value: "EMAIL" }, "Email", -1),
2613
2492
  j("option", { value: "ABN" }, "Abn", -1)
2614
- ]], 512), [[be, d.value]])])]),
2615
- j("div", fn, [t[6] ||= j("label", null, " Pay Id ", -1), j("div", null, [
2493
+ ]], 512), [[ye, d.value]])])]),
2494
+ j("div", ln, [t[6] ||= j("label", null, " Pay Id ", -1), j("div", null, [
2616
2495
  u(j("input", {
2617
2496
  type: "text",
2618
2497
  maxlength: "100",
2619
2498
  placeholder: p.value,
2620
2499
  "onUpdate:modelValue": t[2] ||= (e) => f.value = e,
2621
2500
  onKeyup: v
2622
- }, null, 40, pn), [[Ne, f.value]]),
2623
- d.value === "PHONE" ? (x(), M("div", mn, "(mobile or landline with area code)")) : E("", !0),
2624
- a.value.payId ? (x(), M("p", hn, i(a.value.payId), 1)) : E("", !0)
2501
+ }, null, 40, un), [[Me, f.value]]),
2502
+ d.value === "PHONE" ? (x(), M("div", dn, "(mobile or landline with area code)")) : E("", !0),
2503
+ a.value.payId ? (x(), M("p", fn, i(a.value.payId), 1)) : E("", !0)
2625
2504
  ])])
2626
2505
  ], 4)]));
2627
2506
  }
2628
- }), [["__scopeId", "data-v-abff4886"]]), _n = {
2507
+ }), [["__scopeId", "data-v-3e5bba92"]]), mn = {
2629
2508
  id: "payfurl-payto-agreement",
2630
2509
  class: "payfurl-form"
2631
- }, vn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2510
+ }, hn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2632
2511
  __name: "PayToAgreement",
2633
2512
  props: { debug: { type: Boolean } },
2634
2513
  setup(e) {
2635
- return (e, t) => (x(), M("div", _n, [ze(le), t[0] ||= j("div", { class: "message" }, "Approve the agreement in your banking app", -1)]));
2514
+ return (e, t) => (x(), M("div", mn, [Re(ce), t[0] ||= j("div", { class: "message" }, "Approve the agreement in your banking app", -1)]));
2636
2515
  }
2637
- }), [["__scopeId", "data-v-f06289bf"]]), yn = {
2516
+ }), [["__scopeId", "data-v-f06289bf"]]), gn = {
2638
2517
  TOKENISE: "TOKENISE",
2639
2518
  TOKEN_STATUS: "TOKEN_STATUS"
2640
- }, bn = (e, t) => ({
2641
- [yn.TOKENISE]: {
2519
+ }, _n = (e, t) => ({
2520
+ [gn.TOKENISE]: {
2642
2521
  url: e + "/token/payto",
2643
2522
  method: "POST"
2644
2523
  },
2645
- [yn.TOKEN_STATUS]: {
2524
+ [gn.TOKEN_STATUS]: {
2646
2525
  url: e + "/token/" + t,
2647
2526
  method: "GET"
2648
2527
  }
2649
- }), xn = class {
2528
+ }), vn = class {
2650
2529
  container = null;
2651
2530
  log;
2652
2531
  apiUrl = "";
@@ -2683,11 +2562,11 @@ var cn = {
2683
2562
  if (i.maximumAmount ||= 1e3, i.maximumAmount < 0 || i.maximumAmount > 9999) throw I(t, "Invalid maximum amount: " + i.maximumAmount), TypeError("invalid maximumAmount: " + i.maximumAmount);
2684
2563
  let a = D({
2685
2564
  el: this.container,
2686
- component: gn,
2565
+ component: pn,
2687
2566
  props: {
2688
2567
  el: this.container,
2689
2568
  log: this.log,
2690
- onValidate: this.getOnValidate.bind(this)
2569
+ clickGate: this.getOnValidate.bind(this)
2691
2570
  },
2692
2571
  on: { submit: z(this, "[PayTo]: submit", (e) => {
2693
2572
  this.log("[PayTo]: submit payto form", e), W().startLoading(), setTimeout(() => {
@@ -2709,7 +2588,7 @@ var cn = {
2709
2588
  },
2710
2589
  metadata: this.options?.metadata
2711
2590
  };
2712
- this.httpInvoker?.invoke(bn(this.apiUrl)[yn.TOKENISE].url, bn(this.apiUrl)[yn.TOKENISE].method, JSON.stringify(t), this.successPayToHandler.bind(this), this.failurePayToHandler.bind(this));
2591
+ this.httpInvoker?.invoke(_n(this.apiUrl)[gn.TOKENISE].url, _n(this.apiUrl)[gn.TOKENISE].method, JSON.stringify(t), this.successPayToHandler.bind(this), this.failurePayToHandler.bind(this));
2713
2592
  }
2714
2593
  successPayToHandler = z(this, "[PayTo][tokenise][successPayToHandler]", (e, t) => {
2715
2594
  this.log("successPayToHandler", e, t);
@@ -2717,7 +2596,7 @@ var cn = {
2717
2596
  if (!n || !n?.tokenId) return this.failurePayToHandler(e, t);
2718
2597
  this.tokenId = n.tokenId, D({
2719
2598
  el: this.container,
2720
- component: vn,
2599
+ component: hn,
2721
2600
  props: {
2722
2601
  el: this.container,
2723
2602
  log: this.log
@@ -2725,7 +2604,7 @@ var cn = {
2725
2604
  }), this.checkAgreement();
2726
2605
  });
2727
2606
  failurePayToHandler = z(this, "[PayTo][tokenise][failurePayToHandler]", (e, t) => {
2728
- this.log("failurePayToHandler", e, t), W().stopLoading(), sn().showErrorMessage("Invalid payment details");
2607
+ this.log("failurePayToHandler", e, t), W().stopLoading(), rn().showErrorMessage("Invalid payment details");
2729
2608
  });
2730
2609
  failurePayToAgreementHandler = z(this, "[PayTo][tokenise][failurePayToAgreementHandler]", (e, t) => {
2731
2610
  W().stopLoading(), this.log("failurePayToAgreementHandler", e, t), I(this.container, "Agreement has been canceled"), this.failureCallback?.({
@@ -2734,10 +2613,10 @@ var cn = {
2734
2613
  });
2735
2614
  });
2736
2615
  successPayToAgreementHandler() {
2737
- W().stopLoading(), this.log("success agreement", this.tokenId), $e(this.container, "PayTo Agreement Approved"), this.successCallback?.({ token: this.tokenId });
2616
+ W().stopLoading(), this.log("success agreement", this.tokenId), Qe(this.container, "PayTo Agreement Approved"), this.successCallback?.({ token: this.tokenId });
2738
2617
  }
2739
2618
  checkAgreement() {
2740
- this.checkAgreementHandler ||= setInterval(this.checkAgreement.bind(this), 5e3), this.httpInvoker?.invoke(bn(this.apiUrl, this.tokenId)[yn.TOKEN_STATUS].url, bn(this.apiUrl, this.tokenId)[yn.TOKEN_STATUS].method, {}, z(this, "[checkAgreement], success", (e, t) => {
2619
+ this.checkAgreementHandler ||= setInterval(this.checkAgreement.bind(this), 5e3), this.httpInvoker?.invoke(_n(this.apiUrl, this.tokenId)[gn.TOKEN_STATUS].url, _n(this.apiUrl, this.tokenId)[gn.TOKEN_STATUS].method, {}, z(this, "[checkAgreement], success", (e, t) => {
2741
2620
  this.log("checkAgreement", e, t);
2742
2621
  let n = JSON.parse(t);
2743
2622
  if (!n) return clearInterval(this.checkAgreementHandler), this.failurePayToAgreementHandler(e, t);
@@ -2745,7 +2624,7 @@ var cn = {
2745
2624
  }), z(this, "[checkAgreement], failure", (e, t) => (this.log("checkAgreement", e, t), clearInterval(this.checkAgreementHandler), this.failurePayToAgreementHandler(e, t))));
2746
2625
  }
2747
2626
  };
2748
- L([R], xn.prototype, "cleanUp", null), L([R], xn.prototype, "addPayTo", null), L([R], xn.prototype, "tokenise", null), L([R], xn.prototype, "successPayToAgreementHandler", null), L([R], xn.prototype, "checkAgreement", null);
2627
+ L([R], vn.prototype, "cleanUp", null), L([R], vn.prototype, "addPayTo", null), L([R], vn.prototype, "tokenise", null), L([R], vn.prototype, "successPayToAgreementHandler", null), L([R], vn.prototype, "checkAgreement", null);
2749
2628
  //#endregion
2750
2629
  //#region src/sdk/checkout/checkoutProvider.type.ts
2751
2630
  var J;
@@ -2754,7 +2633,7 @@ var J;
2754
2633
  })(J ||= {});
2755
2634
  //#endregion
2756
2635
  //#region src/sdk/checkout/checkoutOptions.ts
2757
- var Sn = {
2636
+ var yn = {
2758
2637
  [J.AZUPAY]: {
2759
2638
  name: "PayID",
2760
2639
  description: "",
@@ -3139,10 +3018,10 @@ var Sn = {
3139
3018
  buttonTitle: "Pay with eRaty",
3140
3019
  icon: "Eraty"
3141
3020
  }
3142
- }, Cn = { class: "modal-header" }, wn = { class: "main-title" }, Tn = { class: "modal-body" }, En = {
3021
+ }, bn = { class: "modal-header" }, xn = { class: "main-title" }, Sn = { class: "modal-body" }, Cn = {
3143
3022
  key: 0,
3144
3023
  class: "modal-footer"
3145
- }, Dn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3024
+ }, wn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3146
3025
  __name: "Modal",
3147
3026
  props: {
3148
3027
  width: {},
@@ -3159,31 +3038,31 @@ var Sn = {
3159
3038
  function o() {
3160
3039
  r.backdrop !== "static" && a();
3161
3040
  }
3162
- let s = y(), c = de(() => !!s.footer), l = de(() => {
3041
+ let s = y(), c = ue(() => !!s.footer), l = ue(() => {
3163
3042
  let e = [];
3164
3043
  return r.width && e.push(`width: ${r.width}`), r.height && e.push(`height: ${r.height}`), e.join(";");
3165
- }), u = de(() => r.mode == "confirm" ? "small" : "");
3044
+ }), u = ue(() => r.mode == "confirm" ? "small" : "");
3166
3045
  return (e, t) => (x(), M("div", {
3167
3046
  class: "modal-mask",
3168
- onMousedown: xe(o, ["self"])
3047
+ onMousedown: be(o, ["self"])
3169
3048
  }, [j("div", {
3170
3049
  class: ne(["modal-wrapper", u.value]),
3171
3050
  role: "document",
3172
- onClick: t[0] ||= xe(() => {}, ["stop"])
3051
+ onClick: t[0] ||= be(() => {}, ["stop"])
3173
3052
  }, [j("div", {
3174
3053
  class: "modal-content",
3175
- style: We(l.value)
3054
+ style: Ue(l.value)
3176
3055
  }, [
3177
- j("div", Cn, [j("div", {
3056
+ j("div", bn, [j("div", {
3178
3057
  class: "close-icon",
3179
- onClick: xe(a, ["stop"])
3180
- }, [ze(Ie, { size: 15 })]), j("div", wn, [n(e.$slots, "title", {}, void 0, !0)])]),
3181
- j("div", Tn, [n(e.$slots, "body", {}, void 0, !0)]),
3182
- c.value ? (x(), M("div", En, [n(e.$slots, "footer", {}, void 0, !0)])) : E("", !0),
3058
+ onClick: be(a, ["stop"])
3059
+ }, [Re(Fe, { size: 15 })]), j("div", xn, [n(e.$slots, "title", {}, void 0, !0)])]),
3060
+ j("div", Sn, [n(e.$slots, "body", {}, void 0, !0)]),
3061
+ c.value ? (x(), M("div", Cn, [n(e.$slots, "footer", {}, void 0, !0)])) : E("", !0),
3183
3062
  n(e.$slots, "default", {}, void 0, !0)
3184
3063
  ], 4)], 2)], 32));
3185
3064
  }
3186
- }), [["__scopeId", "data-v-2b2c8fc7"]]), On = ["src"], kn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3065
+ }), [["__scopeId", "data-v-2b2c8fc7"]]), Tn = ["src"], En = /*#__PURE__*/ T(/* @__PURE__ */ w({
3187
3066
  __name: "CheckoutPopup",
3188
3067
  props: {
3189
3068
  url: {},
@@ -3194,7 +3073,7 @@ var Sn = {
3194
3073
  let n = e, r = t, a = m(n.url);
3195
3074
  return m(null), b(() => n.url, (e) => {
3196
3075
  a.value = e;
3197
- }), c(() => {}), (t, n) => (x(), He(Dn, {
3076
+ }), c(() => {}), (t, n) => (x(), Ve(wn, {
3198
3077
  width: "80vw",
3199
3078
  height: "80vh",
3200
3079
  backdrop: "static",
@@ -3204,23 +3083,23 @@ var Sn = {
3204
3083
  body: C(() => [j("iframe", {
3205
3084
  src: a.value,
3206
3085
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
3207
- }, null, 8, On)]),
3086
+ }, null, 8, Tn)]),
3208
3087
  _: 1
3209
3088
  }));
3210
3089
  }
3211
- }), [["__scopeId", "data-v-5d26ad8f"]]), An = ["id"], jn = {
3090
+ }), [["__scopeId", "data-v-5d26ad8f"]]), Dn = ["id"], On = {
3212
3091
  key: 0,
3213
3092
  class: "error text-normal"
3214
- }, Mn = { class: "row" }, Nn = {
3093
+ }, kn = { class: "row" }, An = {
3215
3094
  key: 1,
3216
3095
  class: "error"
3217
- }, Pn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3096
+ }, jn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3218
3097
  __name: "CheckoutForm",
3219
3098
  props: {
3220
3099
  log: { type: Function },
3221
3100
  providerType: {},
3222
3101
  options: {},
3223
- onValidate: { type: Function }
3102
+ clickGate: { type: Function }
3224
3103
  },
3225
3104
  emits: [
3226
3105
  "activate",
@@ -3231,13 +3110,13 @@ var Sn = {
3231
3110
  "newWindowClose"
3232
3111
  ],
3233
3112
  setup(e, { emit: t }) {
3234
- let n = e, r = t, a = m(null), { isLoading: o } = W(), l = m(!0), d = m(n.providerType), f = m(""), p = m(!!n.options.checkoutOptions?.newWindow), h = null, g = m(null), { errorMessage: v } = sn(), y = de(() => Sn[d.value]?.buttonTitle || `Pay with ${d.value}`), b = de(() => {
3113
+ let n = e, r = t, a = m(null), { isLoading: o } = W(), l = m(!0), d = m(n.providerType), f = m(""), p = m(!!n.options.checkoutOptions?.newWindow), h = null, g = m(null), { errorMessage: v } = rn(), y = ue(() => yn[d.value]?.buttonTitle || `Pay with ${d.value}`), b = ue(() => {
3235
3114
  let e = g.value?.gatewayTransactionData?.RedirectUrl || "";
3236
- return !e || !ge(e) ? "" : p.value ? e : `${e}${e.includes("?") ? "&" : "?"}embedded=true`;
3237
- }), S = m(!1), C = m(!1), ee = de(() => b.value && !S.value && !C.value);
3115
+ return !e || !he(e) ? "" : p.value ? e : `${e}${e.includes("?") ? "&" : "?"}embedded=true`;
3116
+ }), S = m(!1), C = m(!1), ee = ue(() => b.value && !S.value && !C.value);
3238
3117
  function te(e) {
3239
3118
  if (e?.data?.status) {
3240
- if (e.data.status === "activate" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), l.value = !0, r("activate", n.options)), e.data.status === "deactivate" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), l.value = !1), e.data.status === "checkout-ready" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), v.value = "", g.value = e.data.checkoutData, n.log?.("[BNPL]: checkout", g.value), window.postMessage({ status: Be }, "*")), e.data.status === "message" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), f.value = e.data.message, C.value = !1, S.value = !1), e.data.status === "error" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), f.value = e.data.error, e.data.originalError)) {
3119
+ if (e.data.status === "activate" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), l.value = !0, r("activate", n.options)), e.data.status === "deactivate" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), l.value = !1), e.data.status === "checkout-ready" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), v.value = "", g.value = e.data.checkoutData, n.log?.("[BNPL]: checkout", g.value), window.postMessage({ status: ze }, "*")), e.data.status === "message" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), f.value = e.data.message, C.value = !1, S.value = !1), e.data.status === "error" && e.data.component === "checkout" && e.data.providerType === d.value && (n.log?.(`[Checkout]: message "${e.data.status}" received`, e.data), f.value = e.data.error, e.data.originalError)) {
3241
3120
  let t = JSON.parse(e.data.originalError);
3242
3121
  t?.message && (f.value = t.message);
3243
3122
  }
@@ -3245,7 +3124,7 @@ var Sn = {
3245
3124
  }
3246
3125
  }
3247
3126
  function ne() {
3248
- if (f.value = "", n.onValidate()?.() !== !1) {
3127
+ if (f.value = "", n.clickGate()?.() !== !1) {
3249
3128
  if (p.value) {
3250
3129
  let e = "maxTouchPoints" in navigator && navigator.maxTouchPoints > 0 ? 791 : 637, t = window.screenLeft === void 0 ? window.screenX : window.screenLeft, n = window.screenTop === void 0 ? window.screenY : window.screenTop, i = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width, a = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height, o = i / window.screen.availWidth, s = (i - 400) / 2 / o + t, c = (a - e) / 2 / o + n;
3251
3130
  h = window.open(b.value, "_blank", `popup=yes,
@@ -3267,12 +3146,12 @@ var Sn = {
3267
3146
  S.value = !1, C.value = !1, h?.close(), r("popupClose");
3268
3147
  }
3269
3148
  return c(() => {
3270
- window.addEventListener("message", te), dt(a.value, "payfurl-combined-container") || (l.value = !0, r("activate", n.options));
3149
+ window.addEventListener("message", te), lt(a.value, "payfurl-combined-container") || (l.value = !0, r("activate", n.options));
3271
3150
  }), s(() => {
3272
3151
  window.removeEventListener("message", te);
3273
3152
  }), (e, t) => (x(), M(O, null, [
3274
- u(ze(le, { "use-local": "" }, null, 512), [[Oe, !b.value]]),
3275
- C.value && !S.value ? (x(), He(le, {
3153
+ u(Re(ce, { "use-local": "" }, null, 512), [[De, !b.value]]),
3154
+ C.value && !S.value ? (x(), Ve(ce, {
3276
3155
  key: 0,
3277
3156
  message: "Finalise the payment"
3278
3157
  })) : E("", !0),
@@ -3283,13 +3162,13 @@ var Sn = {
3283
3162
  ref: a
3284
3163
  }, [j("div", {
3285
3164
  class: "container-form",
3286
- style: We(`visibility: ${_(o) ? "hidden" : "visible"}`)
3287
- }, [_(v) ? (x(), M("div", jn, i(_(v)), 1)) : E("", !0), j("div", Mn, [ee.value ? (x(), M("button", {
3165
+ style: Ue(`visibility: ${_(o) ? "hidden" : "visible"}`)
3166
+ }, [_(v) ? (x(), M("div", On, i(_(v)), 1)) : E("", !0), j("div", kn, [ee.value ? (x(), M("button", {
3288
3167
  key: 0,
3289
3168
  onClick: ne,
3290
3169
  type: "button"
3291
- }, i(y.value), 1)) : E("", !0), f.value ? (x(), M("p", Nn, i(f.value), 1)) : E("", !0)])], 4)], 8, An),
3292
- S.value ? (x(), He(kn, {
3170
+ }, i(y.value), 1)) : E("", !0), f.value ? (x(), M("p", An, i(f.value), 1)) : E("", !0)])], 4)], 8, Dn),
3171
+ S.value ? (x(), Ve(En, {
3293
3172
  key: 1,
3294
3173
  onClose: re,
3295
3174
  url: b.value,
@@ -3297,19 +3176,19 @@ var Sn = {
3297
3176
  }, null, 8, ["url", "name"])) : E("", !0)
3298
3177
  ], 64));
3299
3178
  }
3300
- }), [["__scopeId", "data-v-2c4ce814"]]), Fn = {
3179
+ }), [["__scopeId", "data-v-8fc4cc32"]]), Mn = {
3301
3180
  CHECKOUT: "CHECKOUT",
3302
3181
  CHECK_STATUS: "CHECK_STATUS"
3303
- }, In = (e, t) => ({
3304
- [Fn.CHECKOUT]: {
3182
+ }, Nn = (e, t) => ({
3183
+ [Mn.CHECKOUT]: {
3305
3184
  url: e + "/payment_method/checkout",
3306
3185
  method: "POST"
3307
3186
  },
3308
- [Fn.CHECK_STATUS]: {
3187
+ [Mn.CHECK_STATUS]: {
3309
3188
  url: e + "/checkout/external/" + t,
3310
3189
  method: "GET"
3311
3190
  }
3312
- }), Ln = class {
3191
+ }), Pn = class {
3313
3192
  container = null;
3314
3193
  log;
3315
3194
  apiUrl = "";
@@ -3343,7 +3222,7 @@ var Sn = {
3343
3222
  }), this.container = e;
3344
3223
  let s = !1, c, l = D({
3345
3224
  el: e,
3346
- component: Pn,
3225
+ component: jn,
3347
3226
  props: {
3348
3227
  log: this.log,
3349
3228
  providerType: r,
@@ -3353,7 +3232,7 @@ var Sn = {
3353
3232
  currency: n,
3354
3233
  checkoutOptions: o
3355
3234
  },
3356
- onValidate: this.getOnValidate.bind(this)
3235
+ clickGate: this.getOnValidate.bind(this)
3357
3236
  },
3358
3237
  on: {
3359
3238
  activate: z(this, "[sdk][checkoutProcessor][${providerType}]: activate checkout form", (e) => {
@@ -3381,7 +3260,7 @@ var Sn = {
3381
3260
  this.destroy = l.destroy;
3382
3261
  }
3383
3262
  checkout(e, t, n, r) {
3384
- this.httpInvoker?.invoke(In(this.apiUrl)[Fn.CHECKOUT].url, In(this.apiUrl)[Fn.CHECKOUT].method, JSON.stringify({
3263
+ this.httpInvoker?.invoke(Nn(this.apiUrl)[Mn.CHECKOUT].url, Nn(this.apiUrl)[Mn.CHECKOUT].method, JSON.stringify({
3385
3264
  providerId: e.providerId,
3386
3265
  amount: e.amount,
3387
3266
  currency: e.currency,
@@ -3421,7 +3300,7 @@ var Sn = {
3421
3300
  this.log(`[sdk][checkoutProcessor][${e}]: successCheckoutHandler`, t, n);
3422
3301
  let r = JSON.parse(n), i = JSON.parse(window.atob(r.checkoutData));
3423
3302
  window.postMessage({
3424
- status: je,
3303
+ status: Ae,
3425
3304
  component: "checkout",
3426
3305
  providerType: e,
3427
3306
  checkoutData: i
@@ -3455,11 +3334,11 @@ var Sn = {
3455
3334
  W().stopLoading(), i.log(`[sdk][checkoutProcessor][${n}]: successCheckStatusHandler`, {
3456
3335
  transactionId: t,
3457
3336
  token: r
3458
- }), $e(e, "Transaction in progress. Please don't close the window or navigate away");
3337
+ }), Qe(e, "Transaction in progress. Please don't close the window or navigate away");
3459
3338
  let a = {};
3460
3339
  t && (a.transactionId = t), r && (a.token = r), i.successCallback?.(a);
3461
3340
  });
3462
- this.httpInvoker?.invoke(In(this.apiUrl, t)[Fn.CHECK_STATUS].url, In(this.apiUrl, t)[Fn.CHECK_STATUS].method, {}, z(this, `[sdk][checkoutProcessor][${n}]: checkStatus, success`, (e, t) => {
3341
+ this.httpInvoker?.invoke(Nn(this.apiUrl, t)[Mn.CHECK_STATUS].url, Nn(this.apiUrl, t)[Mn.CHECK_STATUS].method, {}, z(this, `[sdk][checkoutProcessor][${n}]: checkStatus, success`, (e, t) => {
3463
3342
  let n = JSON.parse(t);
3464
3343
  if (this.log("checkoutStatus", n), !n) return this.stopCheckingStatus(r), a(e, t);
3465
3344
  if (n.status == "SUCCESS" && n.status === "SUCCESS") return this.stopCheckingStatus(r), o(n.transactionId, n.tokenId);
@@ -3474,22 +3353,19 @@ var Sn = {
3474
3353
  if (i.data.status === "set-amount") {
3475
3354
  if (Number(e.amount) == Number(i.data.amount)) return;
3476
3355
  this.log(`[sdk][checkoutProcessor][${t}]: message received`, i.data), e.amount = Number(i.data.amount), this.checkout(e, t, n, r);
3477
- return;
3478
- }
3479
- if (i.data.status === "set-currency") {
3356
+ } else if (i.data.status === "set-currency") {
3480
3357
  if (e.currency == i.data.currency) return;
3481
3358
  this.log(`[sdk][checkoutProcessor][${t}]: message received`, i.data), e.currency = i.data.currency, this.checkout(e, t, n, r);
3482
- return;
3483
3359
  }
3484
3360
  }
3485
3361
  });
3486
3362
  }
3487
3363
  };
3488
- L([R], Ln.prototype, "cleanUp", null), L([R], Ln.prototype, "addCheckout", null), L([R], Ln.prototype, "checkout", null), L([R], Ln.prototype, "getSuccessCheckoutHandler", null), L([R], Ln.prototype, "getFailureCheckoutHandler", null), L([R], Ln.prototype, "stopCheckingStatus", null), L([R], Ln.prototype, "checkStatus", null), L([R], Ln.prototype, "getMessageHandler", null);
3364
+ L([R], Pn.prototype, "cleanUp", null), L([R], Pn.prototype, "addCheckout", null), L([R], Pn.prototype, "checkout", null), L([R], Pn.prototype, "getSuccessCheckoutHandler", null), L([R], Pn.prototype, "getFailureCheckoutHandler", null), L([R], Pn.prototype, "stopCheckingStatus", null), L([R], Pn.prototype, "checkStatus", null), L([R], Pn.prototype, "getMessageHandler", null);
3489
3365
  var Y = {
3490
3366
  name: "@payfurl/client",
3491
3367
  private: !1,
3492
- version: "4.9.0",
3368
+ version: "4.9.3",
3493
3369
  files: ["dist/sdk"],
3494
3370
  type: "module",
3495
3371
  main: "./dist/sdk/payfurl.umd.js",
@@ -3545,24 +3421,24 @@ var Y = {
3545
3421
  "vite-plugin-checker": "^0.8.0",
3546
3422
  "vue-tsc": "^2.1.6"
3547
3423
  }
3548
- }, Rn = {
3424
+ }, Fn = {
3549
3425
  CHECK_FRAUD: "CHECK_FRAUD",
3550
3426
  RESOLVE_THREE_DS: "RESOLVE_THREE_DS",
3551
3427
  CANCEL_THREE_DS: "CANCEL_THREE_DS"
3552
- }, zn = (e) => ({
3553
- [Rn.CHECK_FRAUD]: {
3428
+ }, In = (e) => ({
3429
+ [Fn.CHECK_FRAUD]: {
3554
3430
  url: e + "/fraud_check",
3555
3431
  method: "POST"
3556
3432
  },
3557
- [Rn.RESOLVE_THREE_DS]: {
3433
+ [Fn.RESOLVE_THREE_DS]: {
3558
3434
  url: e + "/3ds/result",
3559
3435
  method: "POST"
3560
3436
  },
3561
- [Rn.CANCEL_THREE_DS]: {
3437
+ [Fn.CANCEL_THREE_DS]: {
3562
3438
  url: e + "/3ds/cancel",
3563
3439
  method: "POST"
3564
3440
  }
3565
- }), Bn = class {
3441
+ }), Ln = class {
3566
3442
  providerId = "";
3567
3443
  stopPaymentOnFailure = !1;
3568
3444
  log;
@@ -3584,9 +3460,6 @@ var Y = {
3584
3460
  this.httpInvoker = new F(t.publicKey, t.version, n);
3585
3461
  }
3586
3462
  fraudCheck(e, t) {
3587
- if (!this.customer) return t({ error: "Customer information is required" });
3588
- if (!this.address) return t({ error: "Address information is required" });
3589
- if (!this.order) return t({ error: "Order information is required" });
3590
3463
  if (!this.paymentInformation && !this.paypalInformation) return t({ error: "Payment information is required" });
3591
3464
  this.log("[fraudCheck]", {
3592
3465
  amount: this.amount,
@@ -3597,7 +3470,7 @@ var Y = {
3597
3470
  address: this.address,
3598
3471
  order: this.order,
3599
3472
  metadata: this.metadata
3600
- }), this.httpInvoker?.invoke(zn(this.apiUrl)[Rn.CHECK_FRAUD].url, zn(this.apiUrl)[Rn.CHECK_FRAUD].method, this.getFraudCheckData(this.providerId, this.amount, this.currency, this.paymentInformation, this.paypalInformation, this.customer, this.address, this.order, this.metadata), z(this, "[fraudCheck], success", (n, r) => {
3473
+ }), this.httpInvoker?.invoke(In(this.apiUrl)[Fn.CHECK_FRAUD].url, In(this.apiUrl)[Fn.CHECK_FRAUD].method, this.getFraudCheckData(this.providerId, this.amount, this.currency, this.paymentInformation, this.paypalInformation, this.customer, this.address, this.order, this.metadata), z(this, "[fraudCheck], success", (n, r) => {
3601
3474
  if (this.log("[fraudCheck], success", n, r, this.stopPaymentOnFailure), this.checkResult = JSON.parse(r), this.checkResult === null) return t({
3602
3475
  error: "Fraud Check Failed",
3603
3476
  body: r
@@ -3611,7 +3484,7 @@ var Y = {
3611
3484
  }));
3612
3485
  }
3613
3486
  resolveThreeDsResult(e, t, n) {
3614
- this.httpInvoker?.invoke(zn(this.apiUrl)[Rn.RESOLVE_THREE_DS].url, zn(this.apiUrl)[Rn.RESOLVE_THREE_DS].method, JSON.stringify({ threeDSServerTransID: e }), z(this, "[resolveThreeDsResult], success", (e, r) => {
3487
+ this.httpInvoker?.invoke(In(this.apiUrl)[Fn.RESOLVE_THREE_DS].url, In(this.apiUrl)[Fn.RESOLVE_THREE_DS].method, JSON.stringify({ threeDSServerTransID: e }), z(this, "[resolveThreeDsResult], success", (e, r) => {
3615
3488
  this.log("[resolveThreeDsResult], success", e, r);
3616
3489
  let i = JSON.parse(r);
3617
3490
  if (i === null) return n({
@@ -3627,7 +3500,7 @@ var Y = {
3627
3500
  }));
3628
3501
  }
3629
3502
  cancelThreeDsOrder(e, t, n) {
3630
- this.httpInvoker?.invoke(zn(this.apiUrl)[Rn.CANCEL_THREE_DS].url, zn(this.apiUrl)[Rn.CANCEL_THREE_DS].method, JSON.stringify({ threeDSServerTransID: e }), z(this, "[cancelThreeDsOrder], success", (e, n) => {
3503
+ this.httpInvoker?.invoke(In(this.apiUrl)[Fn.CANCEL_THREE_DS].url, In(this.apiUrl)[Fn.CANCEL_THREE_DS].method, JSON.stringify({ threeDSServerTransID: e }), z(this, "[cancelThreeDsOrder], success", (e, n) => {
3631
3504
  this.log("[cancelThreeDsOrder], success", e, n), t({});
3632
3505
  }), z(this, "[cancelThreeDsOrder], failure", (e, t) => {
3633
3506
  this.log("[cancelThreeDsOrder], failure", e, t), n({
@@ -3664,13 +3537,13 @@ var Y = {
3664
3537
  return this.checkResult;
3665
3538
  }
3666
3539
  };
3667
- L([R], Bn.prototype, "fraudCheck", null), L([R], Bn.prototype, "resolveThreeDsResult", null), L([R], Bn.prototype, "cancelThreeDsOrder", null);
3540
+ L([R], Ln.prototype, "fraudCheck", null), L([R], Ln.prototype, "resolveThreeDsResult", null), L([R], Ln.prototype, "cancelThreeDsOrder", null);
3668
3541
  //#endregion
3669
3542
  //#region src/sdk/utils/errorDetails.ts
3670
- function Vn(e) {
3543
+ function Rn(e) {
3671
3544
  return e == null || typeof e == "string" ? e : void 0;
3672
3545
  }
3673
- function Hn(e) {
3546
+ function zn(e) {
3674
3547
  if (!e) return;
3675
3548
  let t;
3676
3549
  try {
@@ -3678,18 +3551,18 @@ function Hn(e) {
3678
3551
  } catch {
3679
3552
  return;
3680
3553
  }
3681
- if (!(typeof t != "object" || !t || Array.isArray(t)) && typeof t.code == "number" && typeof t.isRetryable == "boolean") return {
3554
+ if (typeof t == "object" && t && !Array.isArray(t) && typeof t.code == "number" && typeof t.isRetryable == "boolean") return {
3682
3555
  code: t.code,
3683
3556
  isRetryable: t.isRetryable,
3684
- message: Vn(t.message),
3685
- gatewayCode: Vn(t.gatewayCode),
3686
- gatewayMessage: Vn(t.gatewayMessage),
3687
- type: Vn(t.type)
3557
+ message: Rn(t.message),
3558
+ gatewayCode: Rn(t.gatewayCode),
3559
+ gatewayMessage: Rn(t.gatewayMessage),
3560
+ type: Rn(t.type)
3688
3561
  };
3689
3562
  }
3690
3563
  //#endregion
3691
3564
  //#region src/sdk/utils/googlePayButton.ts
3692
- function Un(e, t) {
3565
+ function Bn(e, t) {
3693
3566
  let n = { onClick: e };
3694
3567
  if (!t) return n;
3695
3568
  for (let [e, r] of Object.entries(t)) r !== void 0 && (n[e] = r);
@@ -3697,10 +3570,10 @@ function Un(e, t) {
3697
3570
  }
3698
3571
  //#endregion
3699
3572
  //#region src/sdk/components/GooglePayForm.vue?vue&type=script&setup=true&lang.ts
3700
- var Wn = { style: { position: "relative" } }, Gn = {
3573
+ var Vn = { style: { position: "relative" } }, Hn = {
3701
3574
  key: 0,
3702
3575
  class: "error text-normal"
3703
- }, Kn = "payfurl-googlepay-script", qn = /* @__PURE__ */ w({
3576
+ }, Un = "payfurl-googlepay-script", Wn = /* @__PURE__ */ w({
3704
3577
  __name: "GooglePayForm",
3705
3578
  props: {
3706
3579
  log: { type: Function },
@@ -3709,7 +3582,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3709
3582
  amount: {},
3710
3583
  currency: {},
3711
3584
  options: {},
3712
- onValidate: { type: Function }
3585
+ clickGate: { type: Function }
3713
3586
  },
3714
3587
  emits: [
3715
3588
  "complete",
@@ -3721,17 +3594,17 @@ var Wn = { style: { position: "relative" } }, Gn = {
3721
3594
  let n = e, r = t, a = m(null), o = m(n.amount), l = m(n.currency), d = m(!0), f = m(""), p = !1, { isLoading: h } = W();
3722
3595
  function g() {
3723
3596
  if (p) return;
3724
- if (p = !0, document.getElementById(Kn)) {
3597
+ if (p = !0, document.getElementById(Un)) {
3725
3598
  re();
3726
3599
  return;
3727
3600
  }
3728
3601
  window.google = null;
3729
3602
  let e = document.createElement("script");
3730
- e.src = "https://pay.google.com/gp/p/js/pay.js", e.type = "text/javascript", e.id = Kn, e.onload = re, document.body.appendChild(e);
3603
+ e.src = "https://pay.google.com/gp/p/js/pay.js", e.type = "text/javascript", e.id = Un, e.onload = re, document.body.appendChild(e);
3731
3604
  }
3732
3605
  let v = null;
3733
3606
  function y() {
3734
- return v === null && (v = new window.google.payments.api.PaymentsClient({ environment: n.environment == Ke.PRODUCTION ? "PRODUCTION" : "TEST" })), v;
3607
+ return v === null && (v = new window.google.payments.api.PaymentsClient({ environment: n.environment == Ge.PRODUCTION ? "PRODUCTION" : "TEST" })), v;
3735
3608
  }
3736
3609
  let b = {
3737
3610
  type: "CARD",
@@ -3755,17 +3628,17 @@ var Wn = { style: { position: "relative" } }, Gn = {
3755
3628
  };
3756
3629
  }
3757
3630
  function C() {
3758
- let e = y().createButton(Un(te, n.options.buttonOptions));
3631
+ let e = y().createButton(Bn(te, n.options.buttonOptions));
3759
3632
  n.el.appendChild(e);
3760
3633
  }
3761
3634
  function ee() {
3762
- return n.environment == Ke.PRODUCTION ? {
3635
+ return n.environment == Ge.PRODUCTION ? {
3763
3636
  merchantName: n.options.googlePayMerchantName ?? "Example Merchant",
3764
3637
  merchantId: n.options.googlePayMerchantId
3765
3638
  } : { merchantName: n.options.googlePayMerchantName ?? "Example Merchant" };
3766
3639
  }
3767
3640
  function te() {
3768
- if (n.log("[onGooglePaymentButtonClicked]"), n.onValidate()?.() === !1) return;
3641
+ if (n.log("[onGooglePaymentButtonClicked]"), n.clickGate()?.() === !1) return;
3769
3642
  let e = ne(), t = y();
3770
3643
  n.log("[paymentData], request", e), t.loadPaymentData(e).then(function(e) {
3771
3644
  n.log("[paymentData], success", e);
@@ -3803,7 +3676,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3803
3676
  }
3804
3677
  function re() {
3805
3678
  y().isReadyToPay(S()).then(function(e) {
3806
- e.result && (C(), window.postMessage({ status: Be }, "*"));
3679
+ e.result && (C(), window.postMessage({ status: ze }, "*"));
3807
3680
  }).catch(function(e) {
3808
3681
  console.error("Load GooglePay error", e);
3809
3682
  });
@@ -3814,17 +3687,17 @@ var Wn = { style: { position: "relative" } }, Gn = {
3814
3687
  return s(() => {
3815
3688
  window.removeEventListener("message", ie);
3816
3689
  }), c(() => {
3817
- window.addEventListener("message", ie), dt(a.value, "payfurl-combined-container") || (d.value = !0, r("activate"), g());
3818
- }), (e, t) => (x(), M(O, null, [j("div", Wn, [u(ze(le, null, null, 512), [[Oe, _(h)]])]), j("div", {
3690
+ window.addEventListener("message", ie), lt(a.value, "payfurl-combined-container") || (d.value = !0, r("activate"), g());
3691
+ }), (e, t) => (x(), M(O, null, [j("div", Vn, [u(Re(ce, null, null, 512), [[De, _(h)]])]), j("div", {
3819
3692
  style: { position: "relative" },
3820
3693
  ref_key: "root",
3821
3694
  ref: a
3822
- }, [f.value ? (x(), M("div", Gn, i(f.value), 1)) : E("", !0)], 512)], 64));
3695
+ }, [f.value ? (x(), M("div", Hn, i(f.value), 1)) : E("", !0)], 512)], 64));
3823
3696
  }
3824
- }), Jn = { ADD_CHARGE_WITH_GOOGLE_PAY: "ADD_CHARGE_WITH_GOOGLE_PAY" }, Yn = (e) => ({ [Jn.ADD_CHARGE_WITH_GOOGLE_PAY]: {
3697
+ }), Gn = { ADD_CHARGE_WITH_GOOGLE_PAY: "ADD_CHARGE_WITH_GOOGLE_PAY" }, Kn = (e) => ({ [Gn.ADD_CHARGE_WITH_GOOGLE_PAY]: {
3825
3698
  url: e + "/charge/token/google",
3826
3699
  method: "POST"
3827
- } }), Xn = class {
3700
+ } }), qn = class {
3828
3701
  container = null;
3829
3702
  log;
3830
3703
  apiUrl = "";
@@ -3879,7 +3752,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3879
3752
  this.container = e;
3880
3753
  let o = D({
3881
3754
  el: e,
3882
- component: qn,
3755
+ component: Wn,
3883
3756
  props: {
3884
3757
  log: this.log,
3885
3758
  el: e,
@@ -3887,7 +3760,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3887
3760
  amount: this.amount,
3888
3761
  currency: this.currency,
3889
3762
  options: i,
3890
- onValidate: this.getOnValidate.bind(this)
3763
+ clickGate: this.getOnValidate.bind(this)
3891
3764
  },
3892
3765
  on: {
3893
3766
  activate: z(this, "[GooglePay]: activate", () => {
@@ -3948,7 +3821,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3948
3821
  this.destroy = o.destroy;
3949
3822
  }
3950
3823
  addChargeWithGooglePay(e, t, n) {
3951
- this.log("[addChargeWithGooglePay]", n), this.httpInvoker?.invoke(Yn(this.apiUrl)[Jn.ADD_CHARGE_WITH_GOOGLE_PAY].url, Yn(this.apiUrl)[Jn.ADD_CHARGE_WITH_GOOGLE_PAY].method, JSON.stringify(n), this.getSuccessAddChargeHandler(e).bind(this), this.getFailureAddChargeHandler(e).bind(this), { providerId: t });
3824
+ this.log("[addChargeWithGooglePay]", n), this.httpInvoker?.invoke(Kn(this.apiUrl)[Gn.ADD_CHARGE_WITH_GOOGLE_PAY].url, Kn(this.apiUrl)[Gn.ADD_CHARGE_WITH_GOOGLE_PAY].method, JSON.stringify(n), this.getSuccessAddChargeHandler(e).bind(this), this.getFailureAddChargeHandler(e).bind(this), { providerId: t });
3952
3825
  }
3953
3826
  getFailureAddChargeHandler(e) {
3954
3827
  return z(this, "[GooglePay], failure", (t, n) => {
@@ -3971,13 +3844,73 @@ var Wn = { style: { position: "relative" } }, Gn = {
3971
3844
  if (!i.googlePayGatewayMerchantId) throw I(t, "Invalid gateway merchant id parameter"), TypeError("Invalid gateway merchant id parameter");
3972
3845
  }
3973
3846
  };
3974
- L([R], Xn.prototype, "cleanUp", null), L([R], Xn.prototype, "addGooglePay", null), L([R], Xn.prototype, "addChargeWithGooglePay", null), L([R], Xn.prototype, "getFailureAddChargeHandler", null), L([R], Xn.prototype, "getSuccessAddChargeHandler", null), L([R], Xn.prototype, "validateOptions", null);
3847
+ L([R], qn.prototype, "cleanUp", null), L([R], qn.prototype, "addGooglePay", null), L([R], qn.prototype, "addChargeWithGooglePay", null), L([R], qn.prototype, "getFailureAddChargeHandler", null), L([R], qn.prototype, "getSuccessAddChargeHandler", null), L([R], qn.prototype, "validateOptions", null);
3848
+ //#endregion
3849
+ //#region \0rolldown_dynamic_import_helper.js
3850
+ var Jn = (e, t, n) => {
3851
+ let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
3852
+ return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
3853
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
3854
+ });
3855
+ }, Yn = ["supports3DS"], Xn = [
3856
+ "visa",
3857
+ "masterCard",
3858
+ "amex",
3859
+ "discover"
3860
+ ];
3861
+ function Zn(e) {
3862
+ try {
3863
+ return typeof ApplePaySession < "u" && ApplePaySession.supportsVersion(e) === !0;
3864
+ } catch {
3865
+ return !1;
3866
+ }
3867
+ }
3868
+ function Qn() {
3869
+ for (let e = 14; e > 3; e--) if (Zn(e)) return e;
3870
+ return 3;
3871
+ }
3872
+ function $n(e) {
3873
+ return e && Zn(e) ? e : Qn();
3874
+ }
3875
+ function er(e) {
3876
+ return e?.length ? [.../* @__PURE__ */ new Set(["supports3DS", ...e])] : Yn;
3877
+ }
3878
+ function tr(e, t, n) {
3879
+ let r = {
3880
+ countryCode: e.countryCode || "AU",
3881
+ currencyCode: t,
3882
+ merchantCapabilities: er(e.merchantCapabilities),
3883
+ supportedNetworks: e.supportedNetworks?.length ? e.supportedNetworks : Xn,
3884
+ total: {
3885
+ label: e.lineItemLabel,
3886
+ type: "final",
3887
+ amount: Number(n).toFixed(2)
3888
+ }
3889
+ };
3890
+ return e.supportedCountries?.length && (r.supportedCountries = e.supportedCountries), r;
3891
+ }
3892
+ //#endregion
3893
+ //#region src/sdk/utils/applePaySdkLoader.ts
3894
+ var nr = "payfurl-applepay-script", rr = "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js", ir = 1e4, ar = null;
3895
+ function or() {
3896
+ return !!window.ApplePaySession && !!window.customElements?.get("apple-pay-button");
3897
+ }
3898
+ function sr() {
3899
+ return typeof window > "u" || typeof document > "u" || or() ? Promise.resolve() : ar || (ar = new Promise((e) => {
3900
+ let t = document.createElement("script");
3901
+ t.id = nr, t.src = rr, t.type = "text/javascript", t.crossOrigin = "anonymous";
3902
+ let n = setTimeout(() => e(), ir), r = () => {
3903
+ clearTimeout(n), e();
3904
+ };
3905
+ t.addEventListener("load", r, { once: !0 }), t.addEventListener("error", r, { once: !0 }), document.head.appendChild(t);
3906
+ }), ar);
3907
+ }
3975
3908
  //#endregion
3976
3909
  //#region src/sdk/components/ApplePayForm.vue?vue&type=script&setup=true&lang.ts
3977
- var Zn = { style: { position: "relative" } }, Qn = {
3910
+ var cr = { style: { position: "relative" } }, lr = {
3978
3911
  key: 0,
3979
3912
  class: "error text-normal"
3980
- }, $n = "payfurl-applepay-script", er = /* @__PURE__ */ w({
3913
+ }, ur = /* @__PURE__ */ w({
3981
3914
  __name: "ApplePayForm",
3982
3915
  props: {
3983
3916
  log: { type: Function },
@@ -3986,11 +3919,11 @@ var Zn = { style: { position: "relative" } }, Qn = {
3986
3919
  amount: {},
3987
3920
  currency: {},
3988
3921
  options: {},
3989
- onValidate: { type: Function }
3922
+ clickGate: { type: Function }
3990
3923
  },
3991
3924
  emits: [
3992
3925
  "submit",
3993
- "validate",
3926
+ "validateMerchant",
3994
3927
  "activate",
3995
3928
  "close",
3996
3929
  "error",
@@ -3999,47 +3932,27 @@ var Zn = { style: { position: "relative" } }, Qn = {
3999
3932
  setup(e, { emit: t }) {
4000
3933
  let n = e, r = t, a = m(null), o = m(n.amount), l = m(n.currency), d = m(!0), f = m(""), p = !1, { isLoading: h } = W();
4001
3934
  function g() {
4002
- if (n.log("[onApplePayButtonClicked]"), !ApplePaySession || n.onValidate()?.() === !1) return;
4003
- let e = {
4004
- countryCode: "AU",
4005
- currencyCode: l.value,
4006
- merchantCapabilities: ["supports3DS"],
4007
- supportedNetworks: [
4008
- "visa",
4009
- "masterCard",
4010
- "amex",
4011
- "discover"
4012
- ],
4013
- total: {
4014
- label: n.options.lineItemLabel,
4015
- type: "final",
4016
- amount: Number(o.value).toFixed(2)
4017
- }
4018
- };
4019
- n.log("[onApplePayButtonClicked], Create ApplePaySession", e);
4020
- let t = new ApplePaySession(3, e);
4021
- t.onvalidatemerchant = (e) => {
4022
- let i = e.validationURL;
4023
- r("validate", {
4024
- validationUrl: i,
4025
- merchantIdentifier: n.options.merchantIdentifier,
4026
- domainName: n.options.domainName,
4027
- displayName: n.options.displayName
4028
- }, t);
4029
- }, t.onpaymentauthorized = (e) => {
4030
- n.log("[onpaymentauthorized]", e), r("submit", e.payment, t);
4031
- }, t.oncancel = (e) => {
3935
+ if (n.log("[onApplePayButtonClicked]"), !ApplePaySession || n.clickGate()?.() === !1) return;
3936
+ let e = tr(n.options, l.value, o.value), t = $n(n.options.applePayVersion);
3937
+ n.log("[onApplePayButtonClicked], Create ApplePaySession", e, t);
3938
+ let i = new ApplePaySession(t, e);
3939
+ i.onvalidatemerchant = (e) => {
3940
+ let t = e.validationURL;
3941
+ r("validateMerchant", {
3942
+ validationUrl: t,
3943
+ domainName: window.location.hostname
3944
+ }, i);
3945
+ }, i.onpaymentauthorized = (e) => {
3946
+ n.log("[onpaymentauthorized]", e), r("submit", e.payment, i);
3947
+ }, i.oncancel = (e) => {
4032
3948
  n.log("[oncancel]", e), r("cancel");
4033
- }, t.begin();
3949
+ }, i.begin();
4034
3950
  }
4035
3951
  function v() {
4036
- if (document.getElementById($n) || p) return;
4037
- p = !0, window.google = null;
4038
- let e = document.createElement("script");
4039
- e.src = "https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js", e.type = "text/javascript", e.id = $n, e.onload = () => {
3952
+ p || (p = !0, window.google = null, sr().then(() => {
4040
3953
  let e = document.createElement("apple-pay-button");
4041
- e.buttonstyle = "black", e.locale = "en-US", e.type = "buy", e.onclick = g, a.value?.appendChild(e), window.postMessage({ status: Be }, "*");
4042
- }, document.body.appendChild(e);
3954
+ e.buttonstyle = "black", e.locale = "en-US", e.type = "buy", e.onclick = g, a.value?.appendChild(e), window.postMessage({ status: ze }, "*");
3955
+ }));
4043
3956
  }
4044
3957
  function y(e) {
4045
3958
  e?.data?.status && (e.data.status === "activate" && e.data.component === "applepay" && (n.log?.(`[ApplePay]: message "${e.data.status}" received`, e.data), d.value = !0, r("activate"), v()), e.data.status === "deactivate" && e.data.component === "applepay" && (n.log?.(`[ApplePay]: message "${e.data.status}" received`, e.data), d.value = !1), e.data.status === "message" && e.data.component === "applepay" && (n.log?.(`[ApplePay]: message "${e.data.status}" received`, e.data), f.value = e.data.message), e.data.status === "error" && e.data.component === "applepay" && (n.log?.(`[ApplePay]: message "${e.data.status}" received`, e.data), f.value = e.data.error), e.data.status === "set-amount" && (n.log?.(`[ApplePay]: message "${e.data.status}" received`, e.data), o.value = Number(e.data.amount)), e.data.status === "set-currency" && (n.log?.(`[ApplePay]: message "${e.data.status}" received`, e.data), l.value = e.data.currency));
@@ -4047,26 +3960,26 @@ var Zn = { style: { position: "relative" } }, Qn = {
4047
3960
  return s(() => {
4048
3961
  window.removeEventListener("message", y);
4049
3962
  }), c(() => {
4050
- window.addEventListener("message", y), dt(a.value, "payfurl-combined-container") || (d.value = !0, r("activate"), v());
4051
- }), (e, t) => (x(), M(O, null, [j("div", Zn, [u(ze(le, null, null, 512), [[Oe, _(h)]])]), j("div", {
3963
+ window.addEventListener("message", y), lt(a.value, "payfurl-combined-container") || (d.value = !0, r("activate"), v());
3964
+ }), (e, t) => (x(), M(O, null, [j("div", cr, [u(Re(ce, null, null, 512), [[De, _(h)]])]), j("div", {
4052
3965
  style: { position: "relative" },
4053
3966
  ref_key: "root",
4054
3967
  ref: a
4055
- }, [f.value ? (x(), M("div", Qn, i(f.value), 1)) : E("", !0)], 512)], 64));
3968
+ }, [f.value ? (x(), M("div", lr, i(f.value), 1)) : E("", !0)], 512)], 64));
4056
3969
  }
4057
- }), tr = {
3970
+ }), dr = {
4058
3971
  VALIDATE_MERCHANT: "VALIDATE_MERCHANT",
4059
3972
  ADD_CHARGE_WITH_APPLE_PAY: "ADD_CHARGE_WITH_APPLE_PAY"
4060
- }, nr = (e) => ({
4061
- [tr.VALIDATE_MERCHANT]: {
3973
+ }, fr = (e) => ({
3974
+ [dr.VALIDATE_MERCHANT]: {
4062
3975
  url: e + "/charge/token/apple/validate",
4063
3976
  method: "POST"
4064
3977
  },
4065
- [tr.ADD_CHARGE_WITH_APPLE_PAY]: {
3978
+ [dr.ADD_CHARGE_WITH_APPLE_PAY]: {
4066
3979
  url: e + "/charge/token/apple",
4067
3980
  method: "POST"
4068
3981
  }
4069
- }), rr = class {
3982
+ }), pr = class {
4070
3983
  container = null;
4071
3984
  log;
4072
3985
  apiUrl = "";
@@ -4131,7 +4044,7 @@ var Zn = { style: { position: "relative" } }, Qn = {
4131
4044
  });
4132
4045
  let o = D({
4133
4046
  el: e,
4134
- component: er,
4047
+ component: ur,
4135
4048
  props: {
4136
4049
  log: this.log,
4137
4050
  el: e,
@@ -4139,13 +4052,13 @@ var Zn = { style: { position: "relative" } }, Qn = {
4139
4052
  amount: this.amount,
4140
4053
  currency: this.currency,
4141
4054
  options: i,
4142
- onValidate: this.getOnValidate.bind(this)
4055
+ clickGate: this.getOnValidate.bind(this)
4143
4056
  },
4144
4057
  on: {
4145
4058
  activate: () => {
4146
4059
  a || (a = !0, this.log("activate applepay form"));
4147
4060
  },
4148
- validate: z(this, "[addApplePay], validate", (n, r) => {
4061
+ validateMerchant: z(this, "[addApplePay], validateMerchant", (n, r) => {
4149
4062
  this.log("[ApplePay]: validate", n), this.validateMerchant(e, t, n, r);
4150
4063
  }),
4151
4064
  submit: z(this, "[addApplePay], submit", (n, r) => {
@@ -4223,13 +4136,13 @@ var Zn = { style: { position: "relative" } }, Qn = {
4223
4136
  onFailure: z(this, "[addApplePay], failure", (e) => {
4224
4137
  this.log("[addApplePay], failure", e), this.applePayButton?.redraw(), this.failureCallback?.({ error: e.error });
4225
4138
  })
4226
- }), this.billingAddress && this.applePayButton?.setBillingAddress(this.billingAddress), this.customer && this.applePayButton?.setCustomerInfo(this.customer), this.order && this.applePayButton?.setOrderInfo(this.order), this.applePayButton?.draw(), window.postMessage({ status: Be }, "*");
4139
+ }), this.billingAddress && this.applePayButton?.setBillingAddress(this.billingAddress), this.customer && this.applePayButton?.setCustomerInfo(this.customer), this.order && this.applePayButton?.setOrderInfo(this.order), this.applePayButton?.draw(), window.postMessage({ status: ze }, "*");
4227
4140
  });
4228
- et(/* #__PURE__ */ Object.assign({
4141
+ Jn(/* #__PURE__ */ Object.assign({
4229
4142
  "./applepay/ApplePayButton.interface.ts": () => import("./ApplePayButton.interface-BvRk9kiK.js"),
4230
4143
  "./applepay/ApplePayButtonOptions.type.ts": () => import("./ApplePayButtonOptions.type-BvRk9kiK.js"),
4231
- "./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-DESHrVB-.js"),
4232
- "./applepay/payway_rest.ts": () => import("./payway_rest-m9k6k7M0.js")
4144
+ "./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-wGK5SMiI.js"),
4145
+ "./applepay/payway_rest.ts": () => import("./payway_rest-Dwo-Hfis.js")
4233
4146
  }), `./applepay/${i.providerType.toLowerCase()}.ts`, 3).then(z(this, "[localAddApplePay], then", (e) => {
4234
4147
  this.log(`Loading ${i.providerType}...`, e), s(e);
4235
4148
  })).catch(() => {
@@ -4237,7 +4150,7 @@ var Zn = { style: { position: "relative" } }, Qn = {
4237
4150
  });
4238
4151
  }
4239
4152
  validateMerchant(e, t, n, r) {
4240
- this.log("[validateMerchant]", n), this.httpInvoker?.invoke(nr(this.apiUrl)[tr.VALIDATE_MERCHANT].url, nr(this.apiUrl)[tr.VALIDATE_MERCHANT].method, JSON.stringify(n), z(this, "[validateMerchant], success", (e, t) => {
4153
+ this.log("[validateMerchant]", n), this.httpInvoker?.invoke(fr(this.apiUrl)[dr.VALIDATE_MERCHANT].url, fr(this.apiUrl)[dr.VALIDATE_MERCHANT].method, JSON.stringify(n), z(this, "[validateMerchant], success", (e, t) => {
4241
4154
  try {
4242
4155
  let e = JSON.parse(t);
4243
4156
  this.log("[validateMerchant], success", e), r.completeMerchantValidation(e);
@@ -4252,7 +4165,7 @@ var Zn = { style: { position: "relative" } }, Qn = {
4252
4165
  }), { providerId: t });
4253
4166
  }
4254
4167
  addChargeWithApplePay(e, t, n, r) {
4255
- this.log("[addChargeWithApplePay]", n), this.httpInvoker?.invoke(nr(this.apiUrl)[tr.ADD_CHARGE_WITH_APPLE_PAY].url, nr(this.apiUrl)[tr.ADD_CHARGE_WITH_APPLE_PAY].method, JSON.stringify(n), this.getSuccessAddChargeHandler(e, r).bind(this), this.getFailureAddChargeHandler(e, r).bind(this), { providerId: t });
4168
+ this.log("[addChargeWithApplePay]", n), this.httpInvoker?.invoke(fr(this.apiUrl)[dr.ADD_CHARGE_WITH_APPLE_PAY].url, fr(this.apiUrl)[dr.ADD_CHARGE_WITH_APPLE_PAY].method, JSON.stringify(n), this.getSuccessAddChargeHandler(e, r).bind(this), this.getFailureAddChargeHandler(e, r).bind(this), { providerId: t });
4256
4169
  }
4257
4170
  getFailureAddChargeHandler(e, t) {
4258
4171
  return z(this, "[getFailureAddChargeHandler]", (n, r) => {
@@ -4283,15 +4196,12 @@ var Zn = { style: { position: "relative" } }, Qn = {
4283
4196
  if (!B(r)) throw I(t, "Invalid currency: " + r), TypeError("invalid currency: " + r);
4284
4197
  if (!e(n)) throw I(t, "Invalid amount: " + n), TypeError("invalid amount: " + n);
4285
4198
  if (!i.lineItemLabel) throw I(t, "Invalid lineItemLabel parameter"), TypeError("Invalid lineItemLabel parameter");
4286
- if (!i.domainName) throw I(t, "Invalid domainName parameter"), TypeError("Invalid domainName parameter");
4287
- if (!i.displayName) throw I(t, "Invalid displayName parameter"), TypeError("Invalid displayName parameter");
4288
- if (!i.merchantIdentifier) throw I(t, "Invalid merchantIdentifier parameter"), TypeError("Invalid merchantIdentifier parameter");
4289
4199
  }
4290
4200
  };
4291
- L([R], rr.prototype, "cleanUp", null), L([R], rr.prototype, "addApplePay", null), L([R], rr.prototype, "validateMerchant", null), L([R], rr.prototype, "addChargeWithApplePay", null), L([R], rr.prototype, "getFailureAddChargeHandler", null), L([R], rr.prototype, "getSuccessAddChargeHandler", null), L([R], rr.prototype, "validateOptions", null);
4201
+ L([R], pr.prototype, "cleanUp", null), L([R], pr.prototype, "addApplePay", null), L([R], pr.prototype, "validateMerchant", null), L([R], pr.prototype, "addChargeWithApplePay", null), L([R], pr.prototype, "getFailureAddChargeHandler", null), L([R], pr.prototype, "getSuccessAddChargeHandler", null), L([R], pr.prototype, "validateOptions", null);
4292
4202
  //#endregion
4293
4203
  //#region src/components/ApplePayIcon.vue
4294
- var ir = /*#__PURE__*/ T(/* @__PURE__ */ w({
4204
+ var mr = /*#__PURE__*/ T(/* @__PURE__ */ w({
4295
4205
  __name: "ApplePayIcon",
4296
4206
  props: {
4297
4207
  size: {},
@@ -4313,65 +4223,65 @@ var ir = /*#__PURE__*/ T(/* @__PURE__ */ w({
4313
4223
  (function(e) {
4314
4224
  e.mastercard = "mastercard", e.maestro = "maestro", e.visa = "visa", e.amex = "amex", e.discover = "discover";
4315
4225
  })(X ||= {});
4316
- var ar = [
4226
+ var hr = [
4317
4227
  X.mastercard,
4318
4228
  X.maestro,
4319
4229
  X.visa,
4320
4230
  X.amex,
4321
4231
  X.discover
4322
- ], or;
4232
+ ], gr;
4323
4233
  (function(e) {
4324
4234
  e.NONE = "NONE", e.FULL = "FULL", e.POSTAL_COUNTRY = "POSTAL_COUNTRY";
4325
- })(or ||= {});
4235
+ })(gr ||= {});
4326
4236
  //#endregion
4327
4237
  //#region src/assets/click2pay/mastercard.svg
4328
- var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='20px'%20viewBox='0%200%2028%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eMC%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3824.000000,%20-619.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='MC'%20transform='translate(34.000000,%200.000000)'%3e%3cg%20id='Group'%20transform='translate(0.000000,%200.500000)'%20fill-rule='nonzero'%3e%3cg%20id='mc_symbol'%3e%3crect%20id='Rectangle'%20fill='%23FF5F00'%20x='9.54692308'%20y='1.89561644'%20width='7.99846152'%20height='13.1831507'%3e%3c/rect%3e%3cpath%20d='M10.3707692,8.48835615%20C10.3687609,5.9162332%2011.5388328,3.4860197%2013.5438461,1.8979452%20C10.1376439,-0.803412601%205.24620091,-0.409936474%202.30709182,2.80184914%20C-0.632017274,6.01363474%20-0.632017274,10.9654063%202.30709182,14.1771919%20C5.24620091,17.3889776%2010.1376439,17.7824537%2013.5438461,15.0810959%20C11.5381947,13.4925171%2010.3680514,11.0612963%2010.3707692,8.48835615%20Z'%20id='Path'%20fill='%23EB001B'%3e%3c/path%3e%3cpolygon%20id='Path'%20fill='%23F79E1B'%20points='26.037982%2013.7760322%2026.037982%2013.4940046%2026.1523888%2013.4940046%2026.1523888%2013.447%2025.8778125%2013.447%2025.8778125%2013.4940046%2025.9922193%2013.4940046%2025.9922193%2013.7760322'%3e%3c/polygon%3e%3cpolygon%20id='Path'%20fill='%23F79E1B'%20points='26.5645392%2013.447%2026.4730138%2013.447%2026.3814883%2013.682023%2026.2899629%2013.447%2026.1984375%2013.447%2026.1984375%2013.7760322%2026.2670816%2013.7760322%2026.2670816%2013.5175069%2026.3431635%2013.7290277%2026.4272511%2013.7290277%2026.5008388%2013.5175069%2026.5008388%2013.7760322%2026.5645392%2013.7760322'%3e%3c/polygon%3e%3cpath%20d='M26.9861539,8.48835615%20C26.9861539,11.6981845%2025.1698664,14.6262062%2022.3088666,16.0288794%20C19.4478669,17.4315526%2016.0443669,17.0626193%2013.5438461,15.0787671%20C15.5479847,13.4893444%2016.7181446,11.059454%2016.7181446,8.48719178%20C16.7181446,5.9149296%2015.5479847,3.48503916%2013.5438461,1.89561644%20C16.0443669,-0.0882357813%2019.4478669,-0.45716899%2022.3088666,0.945504164%20C25.1698664,2.34817732%2026.9861539,5.27619909%2026.9861539,8.4860274%20L26.9861539,8.48835615%20Z'%20id='Path'%20fill='%23F79E1B'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='27'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", cr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='19px'%20viewBox='0%200%2030%2019'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eVisa-dark%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3857.000000,%20-659.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='Visa-dark'%20transform='translate(67.000000,%2040.000000)'%3e%3cg%20id='Group'%20transform='translate(0.000000,%204.500000)'%20fill='%231A1F71'%20fill-rule='nonzero'%3e%3cg%20id='Visa-Brand-Mark-Blue'%3e%3cpath%20d='M10.9839171,0.218028169%20L7.20456221,8.77056338%20L4.73889401,8.77056338%20L2.87995392,1.94450704%20C2.76635945,1.52366197%202.66880184,1.37028169%202.32534562,1.1928169%20C1.76539171,0.903802817%200.839262673,0.633802817%200.0240552995,0.465211268%20L0.0801843318,0.216760563%20L4.04930876,0.216760563%20C4.55447005,0.216760563%205.01018433,0.536197183%205.12511521,1.08887324%20L6.10737327,6.03887324%20L8.53428571,0.218028169%20L10.9839171,0.218028169%20Z%20M20.6447926,5.97802817%20C20.6541475,3.72042254%2017.3532258,3.59619718%2017.3759447,2.5884507%20C17.3826267,2.28169014%2017.6913364,1.95591549%2018.3648848,1.87225352%20C18.6989862,1.83042254%2019.6197696,1.79873239%2020.6648387,2.25507042%20L21.0737788,0.441126761%20C20.5124885,0.247183099%2019.7908295,0.0621126761%2018.8914286,0.0621126761%20C16.586129,0.0621126761%2014.9637327,1.22450704%2014.9490323,2.89014085%20C14.9343318,4.12098592%2016.1076959,4.80802817%2016.9910599,5.21746479%20C17.8998157,5.63704225%2018.2045161,5.90577465%2018.2005069,6.27971831%20C18.1951613,6.85394366%2017.4761751,7.10619718%2016.8052995,7.11633803%20C15.6319355,7.13408451%2014.9517051,6.81591549%2014.4091244,6.57633803%20L13.9868203,8.44985915%20C14.5320737,8.68690141%2015.5370507,8.89352113%2016.5807834,8.90366197%20C19.034424,8.90366197%2020.6367742,7.75521127%2020.6447926,5.97802817%20L20.6447926,5.97802817%20Z%20M26.7321198,8.77056338%20L28.8890783,8.77056338%20L27.0060829,0.218028169%20L25.0148387,0.218028169%20C24.5671429,0.218028169%2024.1902765,0.465211268%2024.0218894,0.845492958%20L20.5231797,8.77056338%20L22.9728111,8.77056338%20L23.4592627,7.4928169%20L26.4514747,7.4928169%20L26.7321198,8.77056338%20Z%20M24.1301382,5.73971831%20L25.3582949,2.52760563%20L26.0652535,5.73971831%20L24.1301382,5.73971831%20Z%20M14.3169124,0.218028169%20L12.3884793,8.77056338%20L10.0564516,8.77056338%20L11.9862212,0.218028169%20L14.3169124,0.218028169%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='29'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='19px'%20height='19px'%20viewBox='0%200%2019%2019'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eAMEX%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3890.000000,%20-619.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='AMEX'%20transform='translate(100.000000,%200.000000)'%3e%3cg%20id='Group'%20fill-rule='nonzero'%3e%3cg%20id='Amex-500x500@1x'%3e%3crect%20id='Rectangle'%20fill='%23FFFFFF'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3cpath%20d='M0,0%20L0,18%20L18,18%20L18,15.147828%20L15.828444,15.147828%20L14.710428,13.911588%20L13.58676,15.147828%20L6.426972,15.147828%20L6.426972,9.386172%20L4.116096,9.386172%20L6.982488,2.89926%20L9.746856,2.89926%20L10.733652,5.121576%20L10.733652,2.89926%20L14.155416,2.89926%20L14.749524,4.573872%20L15.34752,2.89926%20L18,2.89926%20L18,0%20L0,0%20Z%20M15.884244,3.620664%20L14.754384,6.758172%20L13.631796,3.620664%20L11.480112,3.620664%20L11.480112,8.658072%20L12.840192,8.658072%20L12.840192,5.131872%20L14.135616,8.658072%20L15.344496,8.658072%20L16.639812,5.1246%20L16.639812,8.658072%20L18,8.658072%20L18,3.620664%20L15.884244,3.620664%20Z%20M7.486272,3.620664%20L5.262516,8.658072%20L6.77376,8.658072%20L7.191216,7.650576%20L9.508356,7.650576%20L9.93294,8.658072%20L11.480112,8.658072%20L9.256608,3.620664%20L7.486272,3.620664%20Z%20M8.349804,4.87278%20L9.03348,6.520716%20L7.666092,6.520716%20L8.349804,4.87278%20Z%20M16.222968,9.389052%20L14.747796,11.00106%20L13.286808,9.389052%20L11.480616,9.389052%20L13.855356,11.907792%20L11.480616,14.426496%20L13.236516,14.426496%20L14.71896,12.800088%20L16.19424,14.426496%20L18,14.426496%20L15.611328,11.893356%20L18,9.389052%20L16.222968,9.389052%20Z%20M7.191576,9.389052%20L7.191576,14.426496%20L11.480508,14.426496%20L11.480508,13.260672%20L8.566128,13.260672%20L8.566128,12.476268%20L11.40858,12.476268%20L11.40858,11.339172%20L8.566128,11.339172%20L8.566128,10.554912%20L11.480508,10.554912%20L11.480508,9.389052%20L7.191576,9.389052%20Z%20M16.6167,11.89548%20L18,13.367124%20L18,10.436112%20L16.6167,11.89548%20Z'%20id='500x500'%20fill='%23006FCF'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='20px'%20viewBox='0%200%2028%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDiscover%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3913.000000,%20-619.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='Discover'%20transform='translate(123.000000,%200.000000)'%3e%3cg%20id='Group'%20transform='translate(0.000000,%200.500000)'%20fill-rule='nonzero'%3e%3cg%20id='Discover_26x16'%3e%3crect%20id='Rectangle'%20fill='%23FFFFFF'%20x='0'%20y='0'%20width='27'%20height='17'%3e%3c/rect%3e%3cpath%20d='M26.8272,9.445625%20C26.8272,9.445625%2019.494,14.535%206.0696,16.80875%20L26.8272,16.80875%20L26.8272,9.445625%20Z'%20id='Path'%20fill='%23F68C1E'%3e%3c/path%3e%3cpath%20d='M26.9028389,0%20L0,0%20L0,17%20L27,17%20L27,0%20L26.9028389,0%20Z%20M26.8056777,0.19125%20L26.8056777,16.80875%20L0.194322271,16.80875%20C0.194322271,16.6175%200.194322271,0.3825%200.194322271,0.19125%20C0.388644542,0.19125%2026.6113555,0.19125%2026.8056777,0.19125'%20id='Shape'%20fill='%23000105'%3e%3c/path%3e%3cpath%20d='M2.3652,5.20625%20L1.242,5.20625%20L1.242,9.0525%20L2.3544,9.0525%20C2.9484,9.0525%203.3696,8.914375%203.7476,8.60625%20C4.1904,8.245%204.4604,7.6925%204.4604,7.129375%20C4.4604,5.9925%203.5964,5.20625%202.3652,5.20625%20M3.2508,8.09625%20C3.0132,8.30875%202.7,8.39375%202.214,8.39375%20L2.0088,8.39375%20L2.0088,5.854375%20L2.214,5.854375%20C2.7108,5.854375%203.0024,5.939375%203.2616,6.1625%20C3.5208,6.39625%203.672,6.7575%203.672,7.11875%20C3.672,7.490625%203.5208,7.8625%203.2508,8.09625'%20id='Shape'%20fill='%23000105'%3e%3c/path%3e%3crect%20id='Rectangle'%20fill='%23000105'%20x='4.8168'%20y='5.20625'%20width='1'%20height='3.84625'%3e%3c/rect%3e%3cpath%20d='M7.4412,6.6725%20C6.9768,6.513125%206.8472,6.39625%206.8472,6.194375%20C6.8472,5.95%207.0848,5.769375%207.4196,5.769375%20C7.6464,5.769375%207.8408,5.865%208.0352,6.0775%20L8.424,5.5675%20C8.1,5.280625%207.7004,5.1425%207.2792,5.1425%20C6.588,5.1425%206.0588,5.61%206.0588,6.2475%20C6.0588,6.77875%206.3072,7.044375%207.02,7.299375%20C7.3224,7.405625%207.4736,7.469375%207.5492,7.5225%20C7.7004,7.6075%207.776,7.745625%207.776,7.915625%20C7.776,8.22375%207.5276,8.4575%207.182,8.4575%20C6.8148,8.4575%206.5232,8.276875%206.3504,7.9475%20L5.8644,8.404375%20C6.21,8.914375%206.6312,9.1375%207.2144,9.1375%20C8.0028,9.1375%208.5644,8.616875%208.5644,7.873125%20C8.5644,7.2675%208.3052,6.99125%207.4412,6.6725'%20id='Path'%20fill='%23000105'%3e%3c/path%3e%3cpath%20d='M8.802,7.129375%20C8.802,8.255625%209.7092,9.1375%2010.8648,9.1375%20C11.1888,9.1375%2011.4696,9.07375%2011.826,8.914375%20L11.826,8.0325%20C11.5236,8.33%2011.2536,8.4575%2010.908,8.4575%20C10.1412,8.4575%209.5904,7.905%209.5904,7.129375%20C9.5904,6.385625%2010.152,5.811875%2010.8648,5.811875%20C11.232,5.811875%2011.502,5.939375%2011.826,6.2475%20L11.826,5.355%20C11.4912,5.185%2011.2212,5.12125%2010.8864,5.12125%20C9.7308,5.110625%208.802,6.01375%208.802,7.129375'%20id='Path'%20fill='%23000105'%3e%3c/path%3e%3cpolygon%20id='Path'%20fill='%23000105'%20points='17.874%207.788125%2016.8264%205.20625%2015.9948%205.20625%2017.658%209.148125%2018.0684%209.148125%2019.7532%205.20625%2018.9216%205.20625'%3e%3c/polygon%3e%3cpolygon%20id='Path'%20fill='%23000105'%20points='20.0988%209.0525%2022.2588%209.0525%2022.2588%208.39375%2020.8548%208.39375%2020.8548%207.363125%2022.2048%207.363125%2022.2048%206.704375%2020.8548%206.704375%2020.8548%205.854375%2022.2588%205.854375%2022.2588%205.20625%2020.0988%205.20625'%3e%3c/polygon%3e%3cpath%20d='M25.2828,6.3325%20C25.2828,5.61%2024.7752,5.195625%2023.9004,5.195625%20L22.7664,5.195625%20L22.7664,9.041875%20L23.5332,9.041875%20L23.5332,7.50125%20L23.6304,7.50125%20L24.6888,9.041875%20L25.6284,9.041875%20L24.3972,7.426875%20C24.9588,7.31%2025.2828,6.9275%2025.2828,6.3325%20M23.7492,6.97%20L23.5224,6.97%20L23.5224,5.80125%20L23.76,5.80125%20C24.2352,5.80125%2024.4944,5.9925%2024.4944,6.375%20C24.4944,6.768125%2024.2352,6.97%2023.7492,6.97'%20id='Shape'%20fill='%23000105'%3e%3c/path%3e%3cpath%20d='M16.2216,7.129375%20C16.2216,8.255625%2015.2928,9.169375%2014.148,9.169375%20C13.0032,9.169375%2012.0744,8.255625%2012.0744,7.129375%20C12.0744,6.003125%2013.0032,5.089375%2014.148,5.089375%20C15.2928,5.07875%2016.2216,6.003125%2016.2216,7.129375'%20id='Path'%20fill='%23F68C1E'%3e%3c/path%3e%3cpath%20d='M25.6824,5.282375%20C25.6824,5.217575%2025.6392,5.174375%2025.5528,5.174375%20L25.4448,5.174375%20L25.4448,5.519975%20L25.5312,5.519975%20L25.5312,5.379575%20L25.6284,5.509175%20L25.7256,5.509175%20L25.6176,5.368775%20C25.6608,5.357975%2025.6824,5.325575%2025.6824,5.282375'%20id='Shape'%20fill='%23231F20'%3e%3c/path%3e%3cpath%20d='M25.5744,5.046875%20C25.4124,5.046875%2025.272,5.176475%2025.272,5.349275%20C25.272,5.511275%2025.4016,5.651675%2025.5744,5.651675%20C25.7364,5.651675%2025.866,5.522075%2025.866,5.349275%20C25.866,5.187275%2025.7364,5.046875%2025.5744,5.046875%20M25.5744,5.597675%20C25.4448,5.597675%2025.3368,5.489675%2025.3368,5.349275%20C25.3368,5.208875%2025.4448,5.100875%2025.5744,5.100875%20C25.704,5.100875%2025.812,5.208875%2025.812,5.349275%20C25.812,5.478875%2025.704,5.597675%2025.5744,5.597675'%20id='Shape'%20fill='%23231F20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='27'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", dr = { class: "click2pay-logo" }, fr = {
4238
+ var _r = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='20px'%20viewBox='0%200%2028%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eMC%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3824.000000,%20-619.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='MC'%20transform='translate(34.000000,%200.000000)'%3e%3cg%20id='Group'%20transform='translate(0.000000,%200.500000)'%20fill-rule='nonzero'%3e%3cg%20id='mc_symbol'%3e%3crect%20id='Rectangle'%20fill='%23FF5F00'%20x='9.54692308'%20y='1.89561644'%20width='7.99846152'%20height='13.1831507'%3e%3c/rect%3e%3cpath%20d='M10.3707692,8.48835615%20C10.3687609,5.9162332%2011.5388328,3.4860197%2013.5438461,1.8979452%20C10.1376439,-0.803412601%205.24620091,-0.409936474%202.30709182,2.80184914%20C-0.632017274,6.01363474%20-0.632017274,10.9654063%202.30709182,14.1771919%20C5.24620091,17.3889776%2010.1376439,17.7824537%2013.5438461,15.0810959%20C11.5381947,13.4925171%2010.3680514,11.0612963%2010.3707692,8.48835615%20Z'%20id='Path'%20fill='%23EB001B'%3e%3c/path%3e%3cpolygon%20id='Path'%20fill='%23F79E1B'%20points='26.037982%2013.7760322%2026.037982%2013.4940046%2026.1523888%2013.4940046%2026.1523888%2013.447%2025.8778125%2013.447%2025.8778125%2013.4940046%2025.9922193%2013.4940046%2025.9922193%2013.7760322'%3e%3c/polygon%3e%3cpolygon%20id='Path'%20fill='%23F79E1B'%20points='26.5645392%2013.447%2026.4730138%2013.447%2026.3814883%2013.682023%2026.2899629%2013.447%2026.1984375%2013.447%2026.1984375%2013.7760322%2026.2670816%2013.7760322%2026.2670816%2013.5175069%2026.3431635%2013.7290277%2026.4272511%2013.7290277%2026.5008388%2013.5175069%2026.5008388%2013.7760322%2026.5645392%2013.7760322'%3e%3c/polygon%3e%3cpath%20d='M26.9861539,8.48835615%20C26.9861539,11.6981845%2025.1698664,14.6262062%2022.3088666,16.0288794%20C19.4478669,17.4315526%2016.0443669,17.0626193%2013.5438461,15.0787671%20C15.5479847,13.4893444%2016.7181446,11.059454%2016.7181446,8.48719178%20C16.7181446,5.9149296%2015.5479847,3.48503916%2013.5438461,1.89561644%20C16.0443669,-0.0882357813%2019.4478669,-0.45716899%2022.3088666,0.945504164%20C25.1698664,2.34817732%2026.9861539,5.27619909%2026.9861539,8.4860274%20L26.9861539,8.48835615%20Z'%20id='Path'%20fill='%23F79E1B'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='27'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='30px'%20height='19px'%20viewBox='0%200%2030%2019'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eVisa-dark%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3857.000000,%20-659.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='Visa-dark'%20transform='translate(67.000000,%2040.000000)'%3e%3cg%20id='Group'%20transform='translate(0.000000,%204.500000)'%20fill='%231A1F71'%20fill-rule='nonzero'%3e%3cg%20id='Visa-Brand-Mark-Blue'%3e%3cpath%20d='M10.9839171,0.218028169%20L7.20456221,8.77056338%20L4.73889401,8.77056338%20L2.87995392,1.94450704%20C2.76635945,1.52366197%202.66880184,1.37028169%202.32534562,1.1928169%20C1.76539171,0.903802817%200.839262673,0.633802817%200.0240552995,0.465211268%20L0.0801843318,0.216760563%20L4.04930876,0.216760563%20C4.55447005,0.216760563%205.01018433,0.536197183%205.12511521,1.08887324%20L6.10737327,6.03887324%20L8.53428571,0.218028169%20L10.9839171,0.218028169%20Z%20M20.6447926,5.97802817%20C20.6541475,3.72042254%2017.3532258,3.59619718%2017.3759447,2.5884507%20C17.3826267,2.28169014%2017.6913364,1.95591549%2018.3648848,1.87225352%20C18.6989862,1.83042254%2019.6197696,1.79873239%2020.6648387,2.25507042%20L21.0737788,0.441126761%20C20.5124885,0.247183099%2019.7908295,0.0621126761%2018.8914286,0.0621126761%20C16.586129,0.0621126761%2014.9637327,1.22450704%2014.9490323,2.89014085%20C14.9343318,4.12098592%2016.1076959,4.80802817%2016.9910599,5.21746479%20C17.8998157,5.63704225%2018.2045161,5.90577465%2018.2005069,6.27971831%20C18.1951613,6.85394366%2017.4761751,7.10619718%2016.8052995,7.11633803%20C15.6319355,7.13408451%2014.9517051,6.81591549%2014.4091244,6.57633803%20L13.9868203,8.44985915%20C14.5320737,8.68690141%2015.5370507,8.89352113%2016.5807834,8.90366197%20C19.034424,8.90366197%2020.6367742,7.75521127%2020.6447926,5.97802817%20L20.6447926,5.97802817%20Z%20M26.7321198,8.77056338%20L28.8890783,8.77056338%20L27.0060829,0.218028169%20L25.0148387,0.218028169%20C24.5671429,0.218028169%2024.1902765,0.465211268%2024.0218894,0.845492958%20L20.5231797,8.77056338%20L22.9728111,8.77056338%20L23.4592627,7.4928169%20L26.4514747,7.4928169%20L26.7321198,8.77056338%20Z%20M24.1301382,5.73971831%20L25.3582949,2.52760563%20L26.0652535,5.73971831%20L24.1301382,5.73971831%20Z%20M14.3169124,0.218028169%20L12.3884793,8.77056338%20L10.0564516,8.77056338%20L11.9862212,0.218028169%20L14.3169124,0.218028169%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='29'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", yr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='19px'%20height='19px'%20viewBox='0%200%2019%2019'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eAMEX%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3890.000000,%20-619.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='AMEX'%20transform='translate(100.000000,%200.000000)'%3e%3cg%20id='Group'%20fill-rule='nonzero'%3e%3cg%20id='Amex-500x500@1x'%3e%3crect%20id='Rectangle'%20fill='%23FFFFFF'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3cpath%20d='M0,0%20L0,18%20L18,18%20L18,15.147828%20L15.828444,15.147828%20L14.710428,13.911588%20L13.58676,15.147828%20L6.426972,15.147828%20L6.426972,9.386172%20L4.116096,9.386172%20L6.982488,2.89926%20L9.746856,2.89926%20L10.733652,5.121576%20L10.733652,2.89926%20L14.155416,2.89926%20L14.749524,4.573872%20L15.34752,2.89926%20L18,2.89926%20L18,0%20L0,0%20Z%20M15.884244,3.620664%20L14.754384,6.758172%20L13.631796,3.620664%20L11.480112,3.620664%20L11.480112,8.658072%20L12.840192,8.658072%20L12.840192,5.131872%20L14.135616,8.658072%20L15.344496,8.658072%20L16.639812,5.1246%20L16.639812,8.658072%20L18,8.658072%20L18,3.620664%20L15.884244,3.620664%20Z%20M7.486272,3.620664%20L5.262516,8.658072%20L6.77376,8.658072%20L7.191216,7.650576%20L9.508356,7.650576%20L9.93294,8.658072%20L11.480112,8.658072%20L9.256608,3.620664%20L7.486272,3.620664%20Z%20M8.349804,4.87278%20L9.03348,6.520716%20L7.666092,6.520716%20L8.349804,4.87278%20Z%20M16.222968,9.389052%20L14.747796,11.00106%20L13.286808,9.389052%20L11.480616,9.389052%20L13.855356,11.907792%20L11.480616,14.426496%20L13.236516,14.426496%20L14.71896,12.800088%20L16.19424,14.426496%20L18,14.426496%20L15.611328,11.893356%20L18,9.389052%20L16.222968,9.389052%20Z%20M7.191576,9.389052%20L7.191576,14.426496%20L11.480508,14.426496%20L11.480508,13.260672%20L8.566128,13.260672%20L8.566128,12.476268%20L11.40858,12.476268%20L11.40858,11.339172%20L8.566128,11.339172%20L8.566128,10.554912%20L11.480508,10.554912%20L11.480508,9.389052%20L7.191576,9.389052%20Z%20M16.6167,11.89548%20L18,13.367124%20L18,10.436112%20L16.6167,11.89548%20Z'%20id='500x500'%20fill='%23006FCF'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", br = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='20px'%20viewBox='0%200%2028%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eDiscover%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Click-to-Pay-Styles-for-UI-Display'%20transform='translate(-3913.000000,%20-619.000000)'%3e%3cg%20id='button_dark_v3.1_178x32'%20transform='translate(3776.000000,%20612.000000)'%3e%3cg%20id='v4_mark_light_S_15px'%20transform='translate(14.500000,%207.500000)'%3e%3cg%20id='Discover'%20transform='translate(123.000000,%200.000000)'%3e%3cg%20id='Group'%20transform='translate(0.000000,%200.500000)'%20fill-rule='nonzero'%3e%3cg%20id='Discover_26x16'%3e%3crect%20id='Rectangle'%20fill='%23FFFFFF'%20x='0'%20y='0'%20width='27'%20height='17'%3e%3c/rect%3e%3cpath%20d='M26.8272,9.445625%20C26.8272,9.445625%2019.494,14.535%206.0696,16.80875%20L26.8272,16.80875%20L26.8272,9.445625%20Z'%20id='Path'%20fill='%23F68C1E'%3e%3c/path%3e%3cpath%20d='M26.9028389,0%20L0,0%20L0,17%20L27,17%20L27,0%20L26.9028389,0%20Z%20M26.8056777,0.19125%20L26.8056777,16.80875%20L0.194322271,16.80875%20C0.194322271,16.6175%200.194322271,0.3825%200.194322271,0.19125%20C0.388644542,0.19125%2026.6113555,0.19125%2026.8056777,0.19125'%20id='Shape'%20fill='%23000105'%3e%3c/path%3e%3cpath%20d='M2.3652,5.20625%20L1.242,5.20625%20L1.242,9.0525%20L2.3544,9.0525%20C2.9484,9.0525%203.3696,8.914375%203.7476,8.60625%20C4.1904,8.245%204.4604,7.6925%204.4604,7.129375%20C4.4604,5.9925%203.5964,5.20625%202.3652,5.20625%20M3.2508,8.09625%20C3.0132,8.30875%202.7,8.39375%202.214,8.39375%20L2.0088,8.39375%20L2.0088,5.854375%20L2.214,5.854375%20C2.7108,5.854375%203.0024,5.939375%203.2616,6.1625%20C3.5208,6.39625%203.672,6.7575%203.672,7.11875%20C3.672,7.490625%203.5208,7.8625%203.2508,8.09625'%20id='Shape'%20fill='%23000105'%3e%3c/path%3e%3crect%20id='Rectangle'%20fill='%23000105'%20x='4.8168'%20y='5.20625'%20width='1'%20height='3.84625'%3e%3c/rect%3e%3cpath%20d='M7.4412,6.6725%20C6.9768,6.513125%206.8472,6.39625%206.8472,6.194375%20C6.8472,5.95%207.0848,5.769375%207.4196,5.769375%20C7.6464,5.769375%207.8408,5.865%208.0352,6.0775%20L8.424,5.5675%20C8.1,5.280625%207.7004,5.1425%207.2792,5.1425%20C6.588,5.1425%206.0588,5.61%206.0588,6.2475%20C6.0588,6.77875%206.3072,7.044375%207.02,7.299375%20C7.3224,7.405625%207.4736,7.469375%207.5492,7.5225%20C7.7004,7.6075%207.776,7.745625%207.776,7.915625%20C7.776,8.22375%207.5276,8.4575%207.182,8.4575%20C6.8148,8.4575%206.5232,8.276875%206.3504,7.9475%20L5.8644,8.404375%20C6.21,8.914375%206.6312,9.1375%207.2144,9.1375%20C8.0028,9.1375%208.5644,8.616875%208.5644,7.873125%20C8.5644,7.2675%208.3052,6.99125%207.4412,6.6725'%20id='Path'%20fill='%23000105'%3e%3c/path%3e%3cpath%20d='M8.802,7.129375%20C8.802,8.255625%209.7092,9.1375%2010.8648,9.1375%20C11.1888,9.1375%2011.4696,9.07375%2011.826,8.914375%20L11.826,8.0325%20C11.5236,8.33%2011.2536,8.4575%2010.908,8.4575%20C10.1412,8.4575%209.5904,7.905%209.5904,7.129375%20C9.5904,6.385625%2010.152,5.811875%2010.8648,5.811875%20C11.232,5.811875%2011.502,5.939375%2011.826,6.2475%20L11.826,5.355%20C11.4912,5.185%2011.2212,5.12125%2010.8864,5.12125%20C9.7308,5.110625%208.802,6.01375%208.802,7.129375'%20id='Path'%20fill='%23000105'%3e%3c/path%3e%3cpolygon%20id='Path'%20fill='%23000105'%20points='17.874%207.788125%2016.8264%205.20625%2015.9948%205.20625%2017.658%209.148125%2018.0684%209.148125%2019.7532%205.20625%2018.9216%205.20625'%3e%3c/polygon%3e%3cpolygon%20id='Path'%20fill='%23000105'%20points='20.0988%209.0525%2022.2588%209.0525%2022.2588%208.39375%2020.8548%208.39375%2020.8548%207.363125%2022.2048%207.363125%2022.2048%206.704375%2020.8548%206.704375%2020.8548%205.854375%2022.2588%205.854375%2022.2588%205.20625%2020.0988%205.20625'%3e%3c/polygon%3e%3cpath%20d='M25.2828,6.3325%20C25.2828,5.61%2024.7752,5.195625%2023.9004,5.195625%20L22.7664,5.195625%20L22.7664,9.041875%20L23.5332,9.041875%20L23.5332,7.50125%20L23.6304,7.50125%20L24.6888,9.041875%20L25.6284,9.041875%20L24.3972,7.426875%20C24.9588,7.31%2025.2828,6.9275%2025.2828,6.3325%20M23.7492,6.97%20L23.5224,6.97%20L23.5224,5.80125%20L23.76,5.80125%20C24.2352,5.80125%2024.4944,5.9925%2024.4944,6.375%20C24.4944,6.768125%2024.2352,6.97%2023.7492,6.97'%20id='Shape'%20fill='%23000105'%3e%3c/path%3e%3cpath%20d='M16.2216,7.129375%20C16.2216,8.255625%2015.2928,9.169375%2014.148,9.169375%20C13.0032,9.169375%2012.0744,8.255625%2012.0744,7.129375%20C12.0744,6.003125%2013.0032,5.089375%2014.148,5.089375%20C15.2928,5.07875%2016.2216,6.003125%2016.2216,7.129375'%20id='Path'%20fill='%23F68C1E'%3e%3c/path%3e%3cpath%20d='M25.6824,5.282375%20C25.6824,5.217575%2025.6392,5.174375%2025.5528,5.174375%20L25.4448,5.174375%20L25.4448,5.519975%20L25.5312,5.519975%20L25.5312,5.379575%20L25.6284,5.509175%20L25.7256,5.509175%20L25.6176,5.368775%20C25.6608,5.357975%2025.6824,5.325575%2025.6824,5.282375'%20id='Shape'%20fill='%23231F20'%3e%3c/path%3e%3cpath%20d='M25.5744,5.046875%20C25.4124,5.046875%2025.272,5.176475%2025.272,5.349275%20C25.272,5.511275%2025.4016,5.651675%2025.5744,5.651675%20C25.7364,5.651675%2025.866,5.522075%2025.866,5.349275%20C25.866,5.187275%2025.7364,5.046875%2025.5744,5.046875%20M25.5744,5.597675%20C25.4448,5.597675%2025.3368,5.489675%2025.3368,5.349275%20C25.3368,5.208875%2025.4448,5.100875%2025.5744,5.100875%20C25.704,5.100875%2025.812,5.208875%2025.812,5.349275%20C25.812,5.478875%2025.704,5.597675%2025.5744,5.597675'%20id='Shape'%20fill='%23231F20'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3crect%20id='Rectangle-export'%20x='0'%20y='0'%20width='27'%20height='18'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", xr = { class: "click2pay-logo" }, Sr = {
4329
4239
  key: 0,
4330
- src: sr,
4240
+ src: _r,
4331
4241
  alt: "MasterCard"
4332
- }, pr = {
4242
+ }, Cr = {
4333
4243
  key: 1,
4334
- src: cr,
4244
+ src: vr,
4335
4245
  alt: "Visa"
4336
- }, mr = {
4246
+ }, wr = {
4337
4247
  key: 2,
4338
- src: lr,
4248
+ src: yr,
4339
4249
  alt: "American Express"
4340
- }, hr = {
4250
+ }, Tr = {
4341
4251
  key: 3,
4342
- src: ur,
4252
+ src: br,
4343
4253
  alt: "Discover"
4344
- }, gr = /*#__PURE__*/ T(/* @__PURE__ */ w({
4254
+ }, Er = /*#__PURE__*/ T(/* @__PURE__ */ w({
4345
4255
  __name: "ClickToPayLogo",
4346
4256
  props: { options: {} },
4347
4257
  setup(e) {
4348
- let t = e, n = m(t.options.cardBrands || ar);
4258
+ let t = e, n = m(t.options.cardBrands || hr);
4349
4259
  return b(() => t, () => {
4350
4260
  n.value = t.options.cardBrands || [];
4351
4261
  }, {
4352
4262
  flush: "post",
4353
4263
  deep: !0
4354
- }), (e, t) => (x(), M("div", dr, [
4264
+ }), (e, t) => (x(), M("div", xr, [
4355
4265
  t[0] ||= j("img", {
4356
4266
  src: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20viewBox='0%204.1942%20233.76%20118.7958'%20width='233.76'%20height='118.7958'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23000000'%20d='%20M%200.00%20103.74%20L%200.00%2023.26%20Q%202.71%209.47%2014.47%205.49%20Q%2018.21%204.22%2025.63%204.29%20Q%2036.12%204.39%2046.57%204.28%20Q%2049.98%204.25%2051.32%204.95%20C%2054.47%206.62%2054.71%2012.27%2051.60%2014.18%20Q%2050.30%2014.99%2047.25%2015.02%20Q%2035.25%2015.14%2023.26%2015.04%20Q%2014.82%2014.97%2012.04%2021.22%20Q%2010.75%2024.12%2010.75%2032.47%20Q%2010.77%2064.65%2010.78%2096.84%20C%2010.79%20108.05%2013.62%20112.09%2024.83%20112.11%20Q%2044.80%20112.15%2064.75%20112.07%20C%2068.72%20112.05%2071.55%20109.52%2074.24%20106.26%20Q%2091.06%2085.85%20108.91%2064.44%20A%200.86%200.86%200.0%200%200%20108.91%2063.34%20Q%2088.54%2038.50%2067.91%2013.34%20C%2065.75%2010.71%2065.99%207.28%2068.57%205.40%20Q%2070.05%204.32%2073.59%204.32%20Q%2088.43%204.31%20103.25%204.33%20Q%20105.90%204.33%20107.17%205.80%20Q%20130.58%2032.79%20153.94%2059.81%20C%20156.70%2063.00%20155.25%2065.90%20152.73%2068.88%20Q%20134.57%2090.29%20116.24%20111.71%20A%200.35%200.35%200.0%200%200%20116.51%20112.29%20L%20132.44%20112.24%20A%201.43%201.43%200.0%200%200%20133.55%20111.71%20L%20172.96%2063.93%20A%200.83%200.83%200.0%200%200%20172.96%2062.87%20Q%20152.96%2038.50%20132.93%2014.07%20Q%20131.33%2012.10%20131.02%2010.69%20C%20130.23%207.08%20133.94%203.44%20137.37%204.33%20Q%20139.27%204.83%20141.51%207.48%20Q%20163.74%2033.77%20186.06%2059.98%20Q%20189.13%2063.58%20185.65%2067.66%20Q%20162.44%2094.91%20139.34%20121.71%20A%203.12%203.10%2020.2%200%201%20137.01%20122.78%20Q%20120.84%20122.82%20104.23%20122.76%20C%2097.72%20122.74%2097.24%20117.14%20100.66%20112.96%20Q%20120.69%2088.51%20140.71%2064.30%20A%200.99%200.99%200.0%200%200%20140.71%2063.04%20L%20101.46%2015.56%20A%201.23%201.23%200.0%200%200%20100.51%2015.11%20L%2084.28%2015.01%20A%200.39%200.39%200.0%200%200%2083.98%2015.65%20Q%20102.93%2037.75%20121.70%2059.56%20C%20125.42%2063.89%20122.26%2066.94%20118.90%2070.92%20Q%2099.67%2093.66%2080.30%20116.30%20Q%2077.34%20119.77%2072.30%20121.55%20Q%2068.93%20122.74%2063.06%20122.75%20Q%2042.72%20122.77%2022.39%20122.77%20C%2010.50%20122.77%202.31%20115.51%200.00%20103.74%20Z'%20transform='matrix(1,%200,%200,%201,%20-3.552713678800501e-15,%200)'/%3e%3crect%20fill='%23000000'%20x='228.78'%20y='4.23'%20width='4.98'%20height='118.76'%20rx='2.41'%20transform='matrix(1,%200,%200,%201,%20-3.552713678800501e-15,%200)'/%3e%3c/svg%3e",
4357
4267
  alt: "Click To Pay"
4358
4268
  }, null, -1),
4359
- n.value.includes(_(X).mastercard) ? (x(), M("img", fr)) : E("", !0),
4360
- n.value.includes(_(X).visa) ? (x(), M("img", pr)) : E("", !0),
4361
- n.value.includes(_(X).amex) ? (x(), M("img", mr)) : E("", !0),
4362
- n.value.includes(_(X).discover) ? (x(), M("img", hr)) : E("", !0)
4269
+ n.value.includes(_(X).mastercard) ? (x(), M("img", Sr)) : E("", !0),
4270
+ n.value.includes(_(X).visa) ? (x(), M("img", Cr)) : E("", !0),
4271
+ n.value.includes(_(X).amex) ? (x(), M("img", wr)) : E("", !0),
4272
+ n.value.includes(_(X).discover) ? (x(), M("img", Tr)) : E("", !0)
4363
4273
  ]));
4364
4274
  }
4365
- }), [["__scopeId", "data-v-cb006d2b"]]), _r = { style: {
4275
+ }), [["__scopeId", "data-v-cb006d2b"]]), Dr = { style: {
4366
4276
  display: "flex",
4367
4277
  gap: "20px"
4368
- } }, vr = { class: "payfurl-form" }, yr = { class: "container-form" }, br = { class: "row" }, xr = { style: { width: "100%" } }, Sr = {
4278
+ } }, Or = { class: "payfurl-form" }, kr = { class: "container-form" }, Ar = { class: "row" }, jr = { style: { width: "100%" } }, Mr = {
4369
4279
  key: 0,
4370
4280
  class: "error"
4371
- }, Cr = { class: "row" }, wr = { style: { width: "100%" } }, Tr = {
4281
+ }, Nr = { class: "row" }, Pr = { style: { width: "100%" } }, Fr = {
4372
4282
  key: 0,
4373
4283
  class: "error"
4374
- }, Er = /*#__PURE__*/ T(/* @__PURE__ */ w({
4284
+ }, Ir = /*#__PURE__*/ T(/* @__PURE__ */ w({
4375
4285
  __name: "LoginForm",
4376
4286
  props: {
4377
4287
  log: { type: Function },
@@ -4385,7 +4295,7 @@ var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csv
4385
4295
  setup(e, { emit: t }) {
4386
4296
  let n = e, r = t, a = m(""), s = m(""), c = m({});
4387
4297
  function l() {
4388
- return c.value = {}, !s.value && !Ae(a.value) && (c.value.email = "Please type valid email address"), s.value && !pe(s.value) && (c.value.phone = "Please type phone in international format"), Object.keys(c.value).length === 0;
4298
+ return c.value = {}, !s.value && !ke(a.value) && (c.value.email = "Please type valid email address"), s.value && !fe(s.value) && (c.value.phone = "Please type phone in international format"), Object.keys(c.value).length === 0;
4389
4299
  }
4390
4300
  function d() {
4391
4301
  l() && r("submit", {
@@ -4399,29 +4309,29 @@ var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csv
4399
4309
  function p() {
4400
4310
  r("logout");
4401
4311
  }
4402
- return (e, t) => (x(), He(Dn, {
4312
+ return (e, t) => (x(), Ve(wn, {
4403
4313
  width: "350",
4404
4314
  onClose: f
4405
4315
  }, {
4406
- title: C(() => [j("div", _r, [ze(gr, { options: n.options }, null, 8, ["options"]), t[2] ||= o(" Click To Pay Login ", -1)])]),
4407
- body: C(() => [j("div", vr, [j("div", yr, [j("div", br, [t[3] ||= j("label", null, "Email Address", -1), j("div", xr, [u(j("input", {
4316
+ title: C(() => [j("div", Dr, [Re(Er, { options: n.options }, null, 8, ["options"]), t[2] ||= o(" Click To Pay Login ", -1)])]),
4317
+ body: C(() => [j("div", Or, [j("div", kr, [j("div", Ar, [t[3] ||= j("label", null, "Email Address", -1), j("div", jr, [u(j("input", {
4408
4318
  type: "text",
4409
4319
  maxlength: "100",
4410
4320
  placeholder: "Email Address",
4411
4321
  name: "email",
4412
4322
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e
4413
- }, null, 512), [[Ne, a.value]]), c.value.email ? (x(), M("p", Sr, i(c.value.email), 1)) : E("", !0)])]), j("div", Cr, [t[4] ||= j("label", null, "Phone", -1), j("div", wr, [u(j("input", {
4323
+ }, null, 512), [[Me, a.value]]), c.value.email ? (x(), M("p", Mr, i(c.value.email), 1)) : E("", !0)])]), j("div", Nr, [t[4] ||= j("label", null, "Phone", -1), j("div", Pr, [u(j("input", {
4414
4324
  type: "text",
4415
4325
  maxlength: "100",
4416
4326
  placeholder: "Phone",
4417
4327
  name: "phone",
4418
4328
  "onUpdate:modelValue": t[1] ||= (e) => s.value = e
4419
- }, null, 512), [[Ne, s.value]]), c.value.phone ? (x(), M("p", Tr, i(c.value.phone), 1)) : E("", !0)])])])])]),
4329
+ }, null, 512), [[Me, s.value]]), c.value.phone ? (x(), M("p", Fr, i(c.value.phone), 1)) : E("", !0)])])])])]),
4420
4330
  footer: C(() => [j("div", { class: "payfurl-form payfurl-form-footer" }, [j("button", { onClick: p }, "Continue as Guest"), j("button", { onClick: d }, "Login")])]),
4421
4331
  _: 1
4422
4332
  }));
4423
4333
  }
4424
- }), [["__scopeId", "data-v-693ba623"]]), Dr = [
4334
+ }), [["__scopeId", "data-v-693ba623"]]), Lr = [
4425
4335
  "4761739001010010",
4426
4336
  "4005520000000129",
4427
4337
  "5413330089010640",
@@ -4430,9 +4340,9 @@ var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csv
4430
4340
  "4035874000424977",
4431
4341
  "5413330089010640"
4432
4342
  ];
4433
- function Or(e, t) {
4434
- if (t === Ke.PRODUCTION || !Dr.includes(e)) return null;
4435
- switch (Fe(e)) {
4343
+ function Rr(e, t) {
4344
+ if (t === Ge.PRODUCTION || !Lr.includes(e)) return null;
4345
+ switch (Pe(e)) {
4436
4346
  case "visa": return {
4437
4347
  cardNumber: "4622943123103732",
4438
4348
  expiryDate: "12/25",
@@ -4452,7 +4362,7 @@ function Or(e, t) {
4452
4362
  }
4453
4363
  //#endregion
4454
4364
  //#region src/sdk/processors/clickToPayProcessor.ts
4455
- var kr = "Click to Pay is unavailable. Please proceed with an alternative payment method", Ar = {
4365
+ var zr = "Click to Pay is unavailable. Please proceed with an alternative payment method", Br = {
4456
4366
  SANDBOX: {
4457
4367
  uiKit: "https://src.mastercard.com/srci/integration/components/src-ui-kit/src-ui-kit.esm.js",
4458
4368
  uiKitCss: "https://src.mastercard.com/srci/integration/components/src-ui-kit/src-ui-kit.css",
@@ -4465,7 +4375,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4465
4375
  sdk: "https://src.mastercard.com/sdk/srcsdk.mastercard.js",
4466
4376
  lib: "https://src.mastercard.com/srci/integration/2/lib.js?srcDpaId={dpaId}&locale=en_AU"
4467
4377
  }
4468
- }, Z = class extends Yt {
4378
+ }, Z = class extends Kt {
4469
4379
  enabled = !0;
4470
4380
  initialized = !1;
4471
4381
  loaded = !1;
@@ -4493,8 +4403,8 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4493
4403
  startIsRunning = !1;
4494
4404
  readyCallbacks = [];
4495
4405
  constructor(e, t) {
4496
- super(e), this.options = t.options || {}, this.container = t.container || document.body, this.environment = t.environment || Ke.DEVELOPMENT;
4497
- let n = Xt(this.environment);
4406
+ super(e), this.options = t.options || {}, this.container = t.container || document.body, this.environment = t.environment || Ge.DEVELOPMENT;
4407
+ let n = qt(this.environment);
4498
4408
  this.options.networkTokenOptions = {
4499
4409
  ...n,
4500
4410
  ...this.options.networkTokenOptions || {}
@@ -4556,33 +4466,21 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4556
4466
  setCards(e) {
4557
4467
  this.cards = e;
4558
4468
  let t = this.getCardFormFrame();
4559
- if (t) {
4560
- try {
4561
- t.contentWindow?.postMessage({
4562
- status: he,
4563
- cards: e
4564
- }, "*");
4565
- } catch (e) {
4566
- this.log("[setCards] iframe error", e);
4567
- }
4568
- return;
4469
+ if (t) try {
4470
+ t.contentWindow?.postMessage({
4471
+ status: me,
4472
+ cards: e
4473
+ }, "*");
4474
+ } catch (e) {
4475
+ this.log("[setCards] iframe error", e);
4569
4476
  }
4570
- this.log("[setCards] iframe not found");
4477
+ else this.log("[setCards] iframe not found");
4571
4478
  }
4572
4479
  isSchemeSupported(e) {
4573
- return this.availableCardBrands.includes(Fe(e));
4480
+ return this.availableCardBrands.includes(Pe(e));
4574
4481
  }
4575
4482
  messageHandler(e) {
4576
- if (e?.data?.status) {
4577
- if (e.data.status === "click2pay-remember-me") {
4578
- this.log(`[clickToPayProcessor]: message "${e.data.status}" received`, e.data), this.setRememberMe(!!e.data.message);
4579
- return;
4580
- }
4581
- if (e.data.status === "click2pay-change-user" && (this.log(`[clickToPayProcessor]: message "${e.data.status}" received`, e.data), this.showChangeUserPopup()), e.data.status === "click2pay-show-learn-more") {
4582
- this.log(`[clickToPayProcessor]: message "${e.data.status}" received`, e.data), this.mcShowLearnMore();
4583
- return;
4584
- }
4585
- }
4483
+ e?.data?.status && (e.data.status === "click2pay-remember-me" ? (this.log(`[clickToPayProcessor]: message "${e.data.status}" received`, e.data), this.setRememberMe(!!e.data.message)) : (e.data.status === "click2pay-change-user" && (this.log(`[clickToPayProcessor]: message "${e.data.status}" received`, e.data), this.showChangeUserPopup()), e.data.status === "click2pay-show-learn-more" && (this.log(`[clickToPayProcessor]: message "${e.data.status}" received`, e.data), this.mcShowLearnMore())));
4586
4484
  }
4587
4485
  init() {
4588
4486
  this.initialized ||= (this.log("[ClickToPayProcessor] - INIT", this.getCustomerInfo()), this.startLoadingCardForm(), this.initCss(), this.createOtpInput(), this.createModalForm(), this.createLearnMore(), this.initScripts(), !0);
@@ -4671,7 +4569,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4671
4569
  let r = document.createElement("div");
4672
4570
  r.setAttribute("class", "modal-body"), n.appendChild(r);
4673
4571
  let i = this, a = document.createElement("src-learn-more");
4674
- a.setAttribute("card-brands", (this.options.cardBrands || ar).join(",")), a.addEventListener("close", function(e) {
4572
+ a.setAttribute("card-brands", (this.options.cardBrands || hr).join(",")), a.addEventListener("close", function(e) {
4675
4573
  i.log("src-learn-more: close", e), i.mcHideLearnMore();
4676
4574
  }), a.addEventListener("ok", function(e) {
4677
4575
  i.log("src-learn-more: ok", e), i.mcHideLearnMore();
@@ -4713,12 +4611,11 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4713
4611
  left=${o}`);
4714
4612
  }
4715
4613
  hideModalForm() {
4716
- if (!this.tokenAuthenticationEnabled) {
4614
+ if (this.tokenAuthenticationEnabled) this.modal && this.modal.close();
4615
+ else {
4717
4616
  if (!this.mcModal) return;
4718
4617
  this.mcModal.style.display = "none";
4719
- return;
4720
4618
  }
4721
- this.modal && this.modal.close();
4722
4619
  }
4723
4620
  mcHideOtpInput() {
4724
4621
  let e = this;
@@ -4751,8 +4648,8 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4751
4648
  }
4752
4649
  mcShowLearnMore() {
4753
4650
  this.log("[src-learn-more], mcShowLearnMore", this.srcLearnMore);
4754
- let e = this.availableCardBrands.length > 0 && this.availableCardBrands || ar;
4755
- e.includes(X.mastercard) && (e.splice(e.indexOf(X.mastercard), 1), e.unshift(X.mastercard)), this.srcLearnMoreElement.setAttribute("card-brands", (this.availableCardBrands.length > 0 && this.availableCardBrands || ar).join(",")), this.srcLearnMore.style.display = "block";
4651
+ let e = this.availableCardBrands.length > 0 && this.availableCardBrands || hr;
4652
+ e.includes(X.mastercard) && (e.splice(e.indexOf(X.mastercard), 1), e.unshift(X.mastercard)), this.srcLearnMoreElement.setAttribute("card-brands", (this.availableCardBrands.length > 0 && this.availableCardBrands || hr).join(",")), this.srcLearnMore.style.display = "block";
4756
4653
  }
4757
4654
  showChangeUserPopup() {
4758
4655
  this.showLoginForm();
@@ -4760,7 +4657,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4760
4657
  showLoginForm() {
4761
4658
  let { destroy: e } = D({
4762
4659
  el: document.body,
4763
- component: Er,
4660
+ component: Ir,
4764
4661
  props: {
4765
4662
  log: this.log,
4766
4663
  options: this.options
@@ -4770,16 +4667,12 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4770
4667
  this.log("[LoginForm.close]"), this.stopLoadingCardForm(), e();
4771
4668
  }),
4772
4669
  submit: z(this, "[showLoginForm], onsubmit", ({ email: t, phone: n }) => {
4773
- if (this.log("[LoginForm.submit]", t, n), e(), this.customer || this.setCustomerInfo({
4670
+ this.log("[LoginForm.submit]", t, n), e(), this.customer || this.setCustomerInfo({
4774
4671
  firstName: "",
4775
4672
  lastName: "",
4776
4673
  email: "",
4777
4674
  phoneNumber: ""
4778
- }), this.customer.email = t, this.customer.phoneNumber = n, !t && !n) {
4779
- this.stopLoadingCardForm();
4780
- return;
4781
- }
4782
- this.setCards([]), this.mcIdLookup();
4675
+ }), this.customer.email = t, this.customer.phoneNumber = n, !t && !n ? this.stopLoadingCardForm() : (this.setCards([]), this.mcIdLookup());
4783
4676
  }),
4784
4677
  logout: z(this, "[showLoginForm], onlogout", () => {
4785
4678
  this.log("[LoginForm.logout]"), e(), this.stopLoadingCardForm(), this.setCards([]), this.mcLogout();
@@ -4792,7 +4685,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4792
4685
  let r = this, i = z(this, "[checkoutWithCard.promiseResolvedHandler]", (e) => {
4793
4686
  r.log("[checkoutWithCard.promiseResolvedHandler]", e), r.hideModalForm(), t(e);
4794
4687
  }), a = z(this, "[checkoutWithCard.promiseRejectedHandler]", (t) => {
4795
- r.log("[checkoutWithCard.promiseRejectedHandler]", t), r.stopUsing(), r.showInfoMessage(kr), n(t), r.sendErrorNotification("checkoutWithCard error", [
4688
+ r.log("[checkoutWithCard.promiseRejectedHandler]", t), r.stopUsing(), r.showInfoMessage(zr), n(t), r.sendErrorNotification("checkoutWithCard error", [
4796
4689
  e,
4797
4690
  o,
4798
4691
  t
@@ -4809,7 +4702,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4809
4702
  }
4810
4703
  checkoutWithNewCard(e, t, n, r, i, a) {
4811
4704
  this.log("ClickToPayProcessor.checkoutWithNewCard", {
4812
- cardNumber: qe(e),
4705
+ cardNumber: Ke(e),
4813
4706
  expiryDate: t,
4814
4707
  ccv: "***",
4815
4708
  enrollCard: r
@@ -4827,13 +4720,9 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4827
4720
  }
4828
4721
  checkoutWithEncryptedNewCard(e, t, n, r) {
4829
4722
  let i = this, a = z(this, "[checkoutWithNewCard.promiseResolvedHandler]", (e) => {
4830
- if (i.log("[checkoutWithNewCard.promiseResolvedHandler]", e), i.hideModalForm(), e.checkoutActionCode === "SWITCH_CONSUMER") {
4831
- i.showLoginForm();
4832
- return;
4833
- }
4834
- ["CHANGE_CARD", "CANCEL"].includes(e.checkoutActionCode) || n(e);
4723
+ i.log("[checkoutWithNewCard.promiseResolvedHandler]", e), i.hideModalForm(), e.checkoutActionCode === "SWITCH_CONSUMER" ? i.showLoginForm() : ["CHANGE_CARD", "CANCEL"].includes(e.checkoutActionCode) || n(e);
4835
4724
  }), o = z(this, "[checkoutWithNewCard.promiseRejectedHandler]", (e) => {
4836
- i.log("[checkoutWithNewCard.promiseRejectedHandler]", e), i.stopUsing(), i.showInfoMessage(kr), r(e), i.sendErrorNotification("checkoutWithNewCard error", [s, e]);
4725
+ i.log("[checkoutWithNewCard.promiseRejectedHandler]", e), i.stopUsing(), i.showInfoMessage(zr), r(e), i.sendErrorNotification("checkoutWithNewCard error", [s, e]);
4837
4726
  });
4838
4727
  this.showModalForm();
4839
4728
  let s = {
@@ -4846,7 +4735,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4846
4735
  this.log("checkoutWithNewCard", s), window.mcCheckoutService.checkoutWithNewCard(s).then(a).catch(o);
4847
4736
  }
4848
4737
  encryptCard(e, t, n, r, i) {
4849
- let a = Or(e, this.environment);
4738
+ let a = Rr(e, this.environment);
4850
4739
  this.whenReady().then(() => {
4851
4740
  this.mcEncryptCard(a?.cardNumber || e, a?.expiryDate || t, a?.ccv || n, r, i);
4852
4741
  }).catch(i);
@@ -4867,7 +4756,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4867
4756
  srcDpaId: this.options.dpaId,
4868
4757
  dpaData: { dpaName: this.options.dpaName || `TAS-${this.options.dpaId}` },
4869
4758
  dpaTransactionOptions: this.generateDpaTransactionOptions(),
4870
- cardBrands: this.options?.cardBrands?.length ? this.options?.cardBrands : ar,
4759
+ cardBrands: this.options?.cardBrands?.length ? this.options?.cardBrands : hr,
4871
4760
  checkoutExperience: "WITHIN_CHECKOUT"
4872
4761
  }, i = this.getRecognitionToken();
4873
4762
  i && (r.recognitionToken = i), this.log("[mcInitClickToPay]", r), window.mcCheckoutService.init(r).then(t).catch(n);
@@ -4879,18 +4768,10 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4879
4768
  }
4880
4769
  this.customer?.email || (e = !0);
4881
4770
  let t = this, n = z(this, "[mcIdLookup.promiseResolvedHandler]", (n) => {
4882
- if (t.log("[mcIdLookup.promiseResolvedHandler]", n), n.consumerPresent) {
4883
- t.mcInitiateValidation();
4884
- return;
4885
- }
4886
- if (!n.consumerPresent && !e && t.customer?.phoneNumber) {
4887
- t.mcIdLookup(!0);
4888
- return;
4889
- }
4890
- t.stopLoadingCardForm();
4771
+ t.log("[mcIdLookup.promiseResolvedHandler]", n), n.consumerPresent ? t.mcInitiateValidation() : !n.consumerPresent && !e && t.customer?.phoneNumber ? t.mcIdLookup(!0) : t.stopLoadingCardForm();
4891
4772
  }), r = z(this, "[mcIdLookup.promiseRejectedHandler]", (e) => {
4892
4773
  t.log("[mcIdLookup.promiseRejectedHandler]", e), t.stopLoadingCardForm(), t.sendErrorNotification("mcIdLookup error", [a, e]), t.stopUsing();
4893
- }), i = Ge(this.customer?.phoneNumber || ""), a = e ? { mobileNumber: {
4774
+ }), i = We(this.customer?.phoneNumber || ""), a = e ? { mobileNumber: {
4894
4775
  phoneNumber: i[1] || "",
4895
4776
  countryCode: i[0] || "61"
4896
4777
  } } : { email: this.customer?.email };
@@ -4917,19 +4798,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4917
4798
  let t = this, n = z(this, "[mcValidate.promiseResolvedHandler]", (e) => {
4918
4799
  t.log("[mcValidate.promiseResolvedHandler]", e), e.cards ? (t.setCards(e.cards), t.stopLoadingCardForm()) : t.mcGetCards(), t.saveRecognitionToken(e.recognitionToken);
4919
4800
  }), r = z(this, "[mcValidate.promiseRejectedHandler]", (e) => {
4920
- if (t.log("[mcValidate.promiseRejectedHandler]", e), t.sendErrorNotification("mcValidate error", [i, e]), t.attempts++, t.attempts > 2) {
4921
- t.stopLoadingCardForm(), t.showMessage("Too many attempts to access your click to pay profile. Please check out as a guest.");
4922
- return;
4923
- }
4924
- if (!e?.reason || e.reason == "REQUEST_TIMEOUT") {
4925
- t.stopLoadingCardForm(), t.showMessage("Too many attempts to access your click to pay profile. Please check out as a guest.");
4926
- return;
4927
- }
4928
- if (e.reason === "CODE_INVALID" || e.reason === "RETRIES_EXCEEDED" || e.reason === "ACCT_INACCESSIBLE" || e.reason === "CODE_EXPIRED") {
4929
- t.mcShowOtpInput(t.supportedValidationChannels, t.validationChannelsNetwork, e.reason);
4930
- return;
4931
- }
4932
- t.stopUsing(), t.showInfoMessage(kr);
4801
+ t.log("[mcValidate.promiseRejectedHandler]", e), t.sendErrorNotification("mcValidate error", [i, e]), t.attempts++, t.attempts > 2 || !e?.reason || e.reason == "REQUEST_TIMEOUT" ? (t.stopLoadingCardForm(), t.showMessage("Too many attempts to access your click to pay profile. Please check out as a guest.")) : e.reason === "CODE_INVALID" || e.reason === "RETRIES_EXCEEDED" || e.reason === "ACCT_INACCESSIBLE" || e.reason === "CODE_EXPIRED" ? t.mcShowOtpInput(t.supportedValidationChannels, t.validationChannelsNetwork, e.reason) : (t.stopUsing(), t.showInfoMessage(zr));
4933
4802
  }), i = {
4934
4803
  value: e,
4935
4804
  recognitionTokenRequested: this.getRememberMe()
@@ -4938,11 +4807,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4938
4807
  }
4939
4808
  runClickToPay() {
4940
4809
  let e = this, t = z(this, "[runClickToPay.promiseResolvedHandler]", (t) => {
4941
- if (e.log("[runClickToPay.promiseResolvedHandler]", t), !t || !t.length) {
4942
- e.mcIdLookup();
4943
- return;
4944
- }
4945
- e.setCards(t), e.stopLoadingCardForm();
4810
+ e.log("[runClickToPay.promiseResolvedHandler]", t), !t || !t.length ? e.mcIdLookup() : (e.setCards(t), e.stopLoadingCardForm());
4946
4811
  }), n = z(this, "[runClickToPay.promiseRejectedHandler]", (t) => {
4947
4812
  e.log("[runClickToPay.promiseRejectedHandler]", t), e.stopUsing(), e.stopLoadingCardForm(), e.sendErrorNotification("mcCheckoutService.getCards error", [t]);
4948
4813
  });
@@ -4976,7 +4841,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4976
4841
  this.log("[ClickToPayProcessor]: stop using Click To Pay"), this.enabled = !1, this.cleanUp(this.container);
4977
4842
  let e = this.getCardFormFrame();
4978
4843
  if (e) try {
4979
- e.contentWindow?.postMessage({ status: _e }, "*"), e.contentWindow?.postMessage({ status: r }, "*");
4844
+ e.contentWindow?.postMessage({ status: ge }, "*"), e.contentWindow?.postMessage({ status: r }, "*");
4980
4845
  } catch (e) {
4981
4846
  this.log("[stopUsing] iframe error", e);
4982
4847
  }
@@ -4986,7 +4851,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4986
4851
  let t = this.getCardFormFrame();
4987
4852
  if (t) try {
4988
4853
  t.contentWindow?.postMessage({
4989
- status: ye,
4854
+ status: ve,
4990
4855
  availableCardBrands: e
4991
4856
  }, "*");
4992
4857
  } catch (e) {
@@ -4997,7 +4862,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4997
4862
  return !!this.enabled;
4998
4863
  }
4999
4864
  getLibUrl(e) {
5000
- return Ar[this.environment === Ke.PRODUCTION ? "PRODUCTION" : "SANDBOX"][e] || "";
4865
+ return Br[this.environment === Ge.PRODUCTION ? "PRODUCTION" : "SANDBOX"][e] || "";
5001
4866
  }
5002
4867
  saveRecognitionToken(e) {
5003
4868
  let t = /* @__PURE__ */ new Date();
@@ -5010,12 +4875,12 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5010
4875
  return e.length === 2 && e.pop().split(";").shift() || "";
5011
4876
  }
5012
4877
  sendErrorNotification(e, t) {
5013
- nt("[ClickToPayProcessor]", e, t);
4878
+ et("[ClickToPayProcessor]", e, t);
5014
4879
  }
5015
4880
  generateDpaTransactionOptions() {
5016
4881
  let e = {
5017
4882
  dpaLocale: this.options.locale || "en_AU",
5018
- dpaBillingPreference: or.NONE,
4883
+ dpaBillingPreference: gr.NONE,
5019
4884
  dpaAcceptedBillingCountries: [],
5020
4885
  dpaAcceptedShippingCountries: [],
5021
4886
  dpaShippingPreference: "NONE",
@@ -5026,7 +4891,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5026
4891
  transactionCurrencyCode: this.currency
5027
4892
  }
5028
4893
  };
5029
- return !this.tokenAuthenticationEnabled && this.options.useFpan && (e.paymentOptions = [{ dynamicDataType: "NONE" }]), this.options.confirmPayment !== void 0 && (e.confirmPayment = !!this.options.confirmPayment), this.tokenAuthenticationEnabled && (e.dpaBillingPreference = or.NONE, e.merchantCountryCode = "AU", e.authenticationPreferences = { payloadRequested: "AUTHENTICATED" }, e.paymentOptions = [{
4894
+ return !this.tokenAuthenticationEnabled && this.options.useFpan && (e.paymentOptions = [{ dynamicDataType: "NONE" }]), this.options.confirmPayment !== void 0 && (e.confirmPayment = !!this.options.confirmPayment), this.tokenAuthenticationEnabled && (e.dpaBillingPreference = gr.NONE, e.merchantCountryCode = "AU", e.authenticationPreferences = { payloadRequested: "AUTHENTICATED" }, e.paymentOptions = [{
5030
4895
  dpaDynamicDataTtlMinutes: 15,
5031
4896
  dynamicDataType: "CARD_APPLICATION_CRYPTOGRAM_SHORT_FORM"
5032
4897
  }], this.options.networkTokenOptions?.acquirerMerchantId && (e.acquirerMerchantId = this.options.networkTokenOptions.acquirerMerchantId), this.options.networkTokenOptions?.acquirerBIN && (e.acquirerBIN = this.options.networkTokenOptions.acquirerBIN), this.options.networkTokenOptions?.merchantCategoryCode && (e.merchantCategoryCode = this.options.networkTokenOptions.merchantCategoryCode)), e;
@@ -5034,7 +4899,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5034
4899
  generateConsumerInfo() {
5035
4900
  let e = {};
5036
4901
  if (this.customer?.email && (e.emailAddress = this.customer.email), this.customer?.phoneNumber) {
5037
- let t = Ge(this.customer?.phoneNumber || "");
4902
+ let t = We(this.customer?.phoneNumber || "");
5038
4903
  e.mobileNumber = {
5039
4904
  phoneNumber: t[1] || "",
5040
4905
  countryCode: t[0] || "61"
@@ -5046,16 +4911,16 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5046
4911
  L([R], Z.prototype, "setContainer", null), L([R], Z.prototype, "setCustomerInfo", null), L([R], Z.prototype, "setCards", null), L([R], Z.prototype, "isSchemeSupported", null), L([R], Z.prototype, "messageHandler", null), L([R], Z.prototype, "init", null), L([R], Z.prototype, "cleanUp", null), L([R], Z.prototype, "start", null), L([R], Z.prototype, "initCheckoutServiceLib", null), L([R], Z.prototype, "initScripts", null), L([R], Z.prototype, "initCss", null), L([R], Z.prototype, "createOtpInput", null), L([R], Z.prototype, "attachOtpInput", null), L([R], Z.prototype, "createLearnMore", null), L([R], Z.prototype, "createModalForm", null), L([R], Z.prototype, "showModalForm", null), L([R], Z.prototype, "hideModalForm", null), L([R], Z.prototype, "mcHideOtpInput", null), L([R], Z.prototype, "mcShowOtpInput", null), L([R], Z.prototype, "adjustRememberMeOnOtpInput", null), L([R], Z.prototype, "mcHideLearnMore", null), L([R], Z.prototype, "mcShowLearnMore", null), L([R], Z.prototype, "showChangeUserPopup", null), L([R], Z.prototype, "showLoginForm", null), L([R], Z.prototype, "checkoutWithCard", null), L([R], Z.prototype, "checkoutWithNewCard", null), L([R], Z.prototype, "checkoutWithEncryptedNewCard", null), L([R], Z.prototype, "encryptCard", null), L([R], Z.prototype, "mcLogout", null), L([R], Z.prototype, "mcInitClickToPay", null), L([R], Z.prototype, "mcIdLookup", null), L([R], Z.prototype, "mcInitiateValidation", null), L([R], Z.prototype, "mcValidate", null), L([R], Z.prototype, "runClickToPay", null), L([R], Z.prototype, "mcGetCards", null), L([R], Z.prototype, "mcEncryptCard", null), L([R], Z.prototype, "stopUsing", null), L([R], Z.prototype, "updateAvailableCardBrands", null), L([R], Z.prototype, "getLibUrl", null), L([R], Z.prototype, "saveRecognitionToken", null), L([R], Z.prototype, "getRecognitionToken", null), L([R], Z.prototype, "sendErrorNotification", null), L([R], Z.prototype, "generateDpaTransactionOptions", null), L([R], Z.prototype, "generateConsumerInfo", null);
5047
4912
  //#endregion
5048
4913
  //#region src/sdk/types/PaymentMethodInfo.type.ts
5049
- var jr;
4914
+ var Vr;
5050
4915
  (function(e) {
5051
4916
  e.CARD = "CARD", e.PAYPAL = "PAYPAL", e.PAYTO = "PAYTO", e.PAYID = "PAYID", e.OPTTY = "OPTTY", e.GOOGLEPAY = "GOOGLEPAY", e.APPLEPAY = "APPLEPAY", e.VIS = "VIS", e.SHIFT = "SHIFT", e.PESAPAL = "PESAPAL", e.PAYBYACCOUNT = "PAYBYACCOUNT", e.CLICK2PAY = "CLICK2PAY", e.UPI = "UPI", e.PAYGLOCAL = "PAYGLOCAL", e.BANKPAYMENT = "BANKPAYMENT", e.PAYMENT_METHOD = "PAYMENT_METHOD";
5052
- })(jr ||= {});
4917
+ })(Vr ||= {});
5053
4918
  //#endregion
5054
4919
  //#region src/sdk/components/PaymentMethod.vue?vue&type=script&setup=true&lang.ts
5055
- var Mr = {
4920
+ var Hr = {
5056
4921
  key: 0,
5057
4922
  class: "payment-method-info"
5058
- }, Nr = ["src", "alt"], Pr = { class: "payment-method-details" }, Fr = { class: "payment-method-details-name" }, Ir = { key: 0 }, Lr = { key: 1 }, Rr = { key: 2 }, zr = /*#__PURE__*/ T(/* @__PURE__ */ w({
4923
+ }, Ur = ["src", "alt"], Wr = { class: "payment-method-details" }, Gr = { class: "payment-method-details-name" }, Kr = { key: 0 }, qr = { key: 1 }, Jr = { key: 2 }, Yr = /*#__PURE__*/ T(/* @__PURE__ */ w({
5059
4924
  __name: "PaymentMethod",
5060
4925
  props: {
5061
4926
  log: { type: Function },
@@ -5090,7 +4955,7 @@ var Mr = {
5090
4955
  }
5091
4956
  function a() {
5092
4957
  switch (n.value.type) {
5093
- case "CARD": return n.value.card?.scheme ? `${t.cssUrl}icons/${Ye(String(n.value.card?.scheme).toLowerCase())}.svg` : `${t.cssUrl}icons/Card.svg`;
4958
+ case "CARD": return n.value.card?.scheme ? `${t.cssUrl}icons/${Je(String(n.value.card?.scheme).toLowerCase())}.svg` : `${t.cssUrl}icons/Card.svg`;
5094
4959
  case "PAYPAL": return `${t.cssUrl}icons/PayPal.svg`;
5095
4960
  case "PAYTO": return `${t.cssUrl}icons/PayTo.svg`;
5096
4961
  case "PAYID": return `${t.cssUrl}icons/PayID.svg`;
@@ -5110,22 +4975,22 @@ var Mr = {
5110
4975
  }
5111
4976
  return b(() => t.paymentMethod, () => {
5112
4977
  n.value = t.paymentMethod;
5113
- }, { flush: "post" }), (e, t) => n.value ? (x(), M("div", Mr, [j("img", {
4978
+ }, { flush: "post" }), (e, t) => n.value ? (x(), M("div", Hr, [j("img", {
5114
4979
  src: a(),
5115
4980
  alt: r()
5116
- }, null, 8, Nr), j("div", Pr, [
5117
- j("div", Fr, i(r()), 1),
5118
- n.value.type === _(jr).CARD ? (x(), M("div", Ir, [
4981
+ }, null, 8, Ur), j("div", Wr, [
4982
+ j("div", Gr, i(r()), 1),
4983
+ n.value.type === _(Vr).CARD ? (x(), M("div", Kr, [
5119
4984
  o(" Card: " + i(n.value.card?.cardNumber || "Unknown"), 1),
5120
4985
  t[0] ||= j("br", null, null, -1),
5121
4986
  o(" Expire: " + i(n.value.card?.expiryDate || "Unknown"), 1)
5122
4987
  ])) : E("", !0),
5123
- n.value.type === _(jr).BANKPAYMENT ? (x(), M("div", Lr, [
4988
+ n.value.type === _(Vr).BANKPAYMENT ? (x(), M("div", qr, [
5124
4989
  o(" Name: " + i(n.value.bankPayment?.accountName), 1),
5125
4990
  t[1] ||= j("br", null, null, -1),
5126
4991
  o(" Acc No: " + i(n.value.bankPayment?.accountNumber), 1)
5127
4992
  ])) : E("", !0),
5128
- n.value.type === _(jr).PAYTO ? (x(), M("div", Rr, [
4993
+ n.value.type === _(Vr).PAYTO ? (x(), M("div", Jr, [
5129
4994
  o(" Name: " + i(n.value.payTo?.payerName), 1),
5130
4995
  t[3] ||= j("br", null, null, -1),
5131
4996
  n.value.payTo?.payerPayIdDetails ? (x(), M(O, { key: 0 }, [o(i(n.value.payTo?.payerPayIdDetails?.payIdType) + ": " + i(n.value.payTo?.payerPayIdDetails?.payId), 1)], 64)) : E("", !0),
@@ -5137,36 +5002,36 @@ var Mr = {
5137
5002
  ])) : E("", !0)
5138
5003
  ])])) : E("", !0);
5139
5004
  }
5140
- }), [["__scopeId", "data-v-7894e1cd"]]), Br = {
5005
+ }), [["__scopeId", "data-v-7894e1cd"]]), Xr = {
5141
5006
  key: 0,
5142
5007
  class: "saved-payment-methods"
5143
- }, Vr = {
5008
+ }, Zr = {
5144
5009
  key: 0,
5145
5010
  class: "error"
5146
- }, Hr = ["onClick"], Ur = ["id", "checked"], Wr = {
5011
+ }, Qr = ["onClick"], $r = ["id", "checked"], ei = {
5147
5012
  key: 0,
5148
5013
  class: "error"
5149
- }, Gr = {
5014
+ }, ti = {
5150
5015
  key: 1,
5151
5016
  class: "payment-method-container"
5152
- }, Kr = {
5017
+ }, ni = {
5153
5018
  key: 1,
5154
5019
  class: "saved-payment-methods"
5155
- }, qr = /*#__PURE__*/ T(/* @__PURE__ */ w({
5020
+ }, ri = /*#__PURE__*/ T(/* @__PURE__ */ w({
5156
5021
  __name: "PaymentMethodsForm",
5157
5022
  props: {
5158
5023
  log: { type: Function },
5159
5024
  cssUrl: {},
5160
5025
  paymentMethods: {},
5161
- onValidate: { type: Function }
5026
+ clickGate: { type: Function }
5162
5027
  },
5163
5028
  emits: ["submit", "select"],
5164
5029
  setup(e, { emit: t }) {
5165
- let n = e, r = t, a = m(!0), o = m(null), l = m(n.paymentMethods), u = m(!1), d = m({}), f = de(() => u.value ? l.value : o.value ? [o.value] : [l.value[0]]);
5030
+ let n = e, r = t, a = m(!0), o = m(null), l = m(n.paymentMethods), u = m(!1), d = m({}), f = ue(() => u.value ? l.value : o.value ? [o.value] : [l.value[0]]);
5166
5031
  function p(e) {
5167
5032
  if (e?.data?.status) {
5168
5033
  if (e.data.status === "submit-card-form") {
5169
- if (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), !a.value || (e.stopPropagation(), d.value = {}, n.onValidate()?.() === !1)) return;
5034
+ if (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), !a.value || (e.stopPropagation(), d.value = {}, n.clickGate()?.() === !1)) return;
5170
5035
  r("submit", o.value);
5171
5036
  }
5172
5037
  e.data.status === "activate" && e.data.component === "payment-methods" && (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), a.value = !0), e.data.status === "deactivate" && e.data.component === "payment-methods" && (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), a.value = !1), e.data.status === "message" && e.data.component === "payment-methods" && (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), d.value = e.data.message), e.data.status === "error" && e.data.component === "payment-methods" && (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), d.value[e.data.paymentMethodId || "global"] = e.data.error);
@@ -5179,18 +5044,14 @@ var Mr = {
5179
5044
  n.log?.("[PaymentMethods]: selected payment method", e), d.value = {}, o.value = e, r("select", e ? { ...e } : null);
5180
5045
  }
5181
5046
  function g() {
5182
- if (l.value.length > 0) {
5183
- h(l.value.find((e) => e.isDefault) || l.value[0]), window.postMessage({
5184
- status: fe,
5185
- message: {
5186
- status: "success",
5187
- message: ""
5188
- }
5189
- }, "*");
5190
- return;
5191
- }
5192
- window.postMessage({
5193
- status: fe,
5047
+ l.value.length > 0 ? (h(l.value.find((e) => e.isDefault) || l.value[0]), window.postMessage({
5048
+ status: de,
5049
+ message: {
5050
+ status: "success",
5051
+ message: ""
5052
+ }
5053
+ }, "*")) : window.postMessage({
5054
+ status: de,
5194
5055
  message: {
5195
5056
  status: "error",
5196
5057
  message: "No saved payment methods found"
@@ -5198,12 +5059,12 @@ var Mr = {
5198
5059
  }, "*");
5199
5060
  }
5200
5061
  return c(() => {
5201
- window.addEventListener("message", p), window.postMessage({ status: Be }, "*"), g();
5062
+ window.addEventListener("message", p), window.postMessage({ status: ze }, "*"), g();
5202
5063
  }), s(() => {
5203
5064
  window.removeEventListener("message", p);
5204
- }), (e, t) => l.value.length > 0 ? (x(), M("div", Br, [
5205
- d.value.global ? (x(), M("div", Vr, i(d.value.global), 1)) : E("", !0),
5206
- (x(!0), M(O, null, Te(f.value, (e, t) => (x(), M("div", {
5065
+ }), (e, t) => l.value.length > 0 ? (x(), M("div", Xr, [
5066
+ d.value.global ? (x(), M("div", Zr, i(d.value.global), 1)) : E("", !0),
5067
+ (x(!0), M(O, null, we(f.value, (e, t) => (x(), M("div", {
5207
5068
  key: `paymentMethod${t}`,
5208
5069
  class: ne(["payment-method-container", `${o.value?.paymentMethodId === e?.paymentMethodId ? "selected" : ""} ${d.value[`${e?.paymentMethodId}`] ? "error" : ""}`]),
5209
5070
  onClick: (t) => h(e)
@@ -5213,8 +5074,8 @@ var Mr = {
5213
5074
  name: "paymentMethod",
5214
5075
  id: `payment-method-${e?.paymentMethodId}`,
5215
5076
  checked: o.value?.paymentMethodId === e?.paymentMethodId
5216
- }, null, 8, Ur),
5217
- ze(zr, {
5077
+ }, null, 8, $r),
5078
+ Re(Yr, {
5218
5079
  log: n.log,
5219
5080
  "css-url": n.cssUrl,
5220
5081
  "payment-method": e
@@ -5223,9 +5084,9 @@ var Mr = {
5223
5084
  "css-url",
5224
5085
  "payment-method"
5225
5086
  ]),
5226
- d.value[`${e?.paymentMethodId}`] ? (x(), M("div", Wr, i(d.value[`${e?.paymentMethodId}`]), 1)) : E("", !0)
5227
- ], 10, Hr))), 128)),
5228
- l.value.length > 1 ? (x(), M("div", Gr, [t[2] ||= j("div", { style: { width: "20px" } }, null, -1), j("div", null, [u.value ? (x(), M("a", {
5087
+ d.value[`${e?.paymentMethodId}`] ? (x(), M("div", ei, i(d.value[`${e?.paymentMethodId}`]), 1)) : E("", !0)
5088
+ ], 10, Qr))), 128)),
5089
+ l.value.length > 1 ? (x(), M("div", ti, [t[2] ||= j("div", { style: { width: "20px" } }, null, -1), j("div", null, [u.value ? (x(), M("a", {
5229
5090
  key: 0,
5230
5091
  href: "#",
5231
5092
  class: "black",
@@ -5236,9 +5097,9 @@ var Mr = {
5236
5097
  class: "black",
5237
5098
  onClick: t[1] ||= (e) => u.value = !0
5238
5099
  }, "Show all"))])])) : E("", !0)
5239
- ])) : (x(), M("div", Kr, [...t[3] ||= [j("div", { class: "title" }, "No saved payment methods found", -1)]]));
5100
+ ])) : (x(), M("div", ni, [...t[3] ||= [j("div", { class: "title" }, "No saved payment methods found", -1)]]));
5240
5101
  }
5241
- }), [["__scopeId", "data-v-7f8bbef8"]]), Jr = class {
5102
+ }), [["__scopeId", "data-v-d3f0944f"]]), ii = class {
5242
5103
  log;
5243
5104
  debug = !1;
5244
5105
  container = null;
@@ -5277,31 +5138,19 @@ var Mr = {
5277
5138
  return this.currency;
5278
5139
  }
5279
5140
  setCustomerInfo(e) {
5280
- if (!e) {
5281
- this.customer = null;
5282
- return;
5283
- }
5284
- this.customer = { ...e };
5141
+ this.customer = e ? { ...e } : null;
5285
5142
  }
5286
5143
  getCustomerInfo() {
5287
5144
  return this.customer;
5288
5145
  }
5289
5146
  setBillingAddress(e) {
5290
- if (!e) {
5291
- this.billingAddress = null;
5292
- return;
5293
- }
5294
- this.billingAddress = { ...e };
5147
+ this.billingAddress = e ? { ...e } : null;
5295
5148
  }
5296
5149
  getBillingAddress() {
5297
5150
  return this.billingAddress;
5298
5151
  }
5299
5152
  setOrderInfo(e) {
5300
- if (!e) {
5301
- this.order = null;
5302
- return;
5303
- }
5304
- this.order = { ...e };
5153
+ this.order = e ? { ...e } : null;
5305
5154
  }
5306
5155
  getOrderInfo() {
5307
5156
  return this.order;
@@ -5323,11 +5172,7 @@ var Mr = {
5323
5172
  return this.paymentInfo;
5324
5173
  }
5325
5174
  setGeolocation(e) {
5326
- if (!e) {
5327
- this.geolocation = null;
5328
- return;
5329
- }
5330
- this.geolocation = { ...e };
5175
+ this.geolocation = e ? { ...e } : null;
5331
5176
  }
5332
5177
  getGeolocation() {
5333
5178
  return this.geolocation;
@@ -5376,27 +5221,27 @@ var Mr = {
5376
5221
  };
5377
5222
  }
5378
5223
  };
5379
- L([R], Jr.prototype, "setPaymentInfo", null), L([R], Jr.prototype, "cleanUp", null);
5224
+ L([R], ii.prototype, "setPaymentInfo", null), L([R], ii.prototype, "cleanUp", null);
5380
5225
  //#endregion
5381
5226
  //#region src/sdk/processors/paymentMethodProcessor.ts
5382
- var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5227
+ var { hideSpinner: ai, showSpinner: oi } = Oe(), si = {
5383
5228
  CUSTOMER_INFO: "CUSTOMER_INFO",
5384
5229
  PAYMENT_METHODS_INFO: "PAYMENT_METHODS_INFO",
5385
5230
  TOKENISE: "TOKENISE"
5386
- }, Qr = (e, t) => ({
5387
- [Zr.CUSTOMER_INFO]: {
5231
+ }, ci = (e, t) => ({
5232
+ [si.CUSTOMER_INFO]: {
5388
5233
  url: e + "/customer/" + t,
5389
5234
  method: "GET"
5390
5235
  },
5391
- [Zr.PAYMENT_METHODS_INFO]: {
5236
+ [si.PAYMENT_METHODS_INFO]: {
5392
5237
  url: e + "/customer/" + t + "/payment_method",
5393
5238
  method: "GET"
5394
5239
  },
5395
- [Zr.TOKENISE]: {
5240
+ [si.TOKENISE]: {
5396
5241
  url: e + "/token/payment_method",
5397
5242
  method: "POST"
5398
5243
  }
5399
- }), $r = class extends Jr {
5244
+ }), li = class extends ii {
5400
5245
  cssUrl = "";
5401
5246
  networkTokenProviders = [];
5402
5247
  validationStatusChangeCallback = null;
@@ -5415,11 +5260,12 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5415
5260
  this.log("[addPaymentMethods], paymentMethods", n);
5416
5261
  let o = D({
5417
5262
  el: this.container,
5418
- component: qr,
5263
+ component: ri,
5419
5264
  props: {
5420
5265
  el: t,
5421
5266
  log: this.log,
5422
5267
  cssUrl: this.cssUrl,
5268
+ clickGate: this.getOnValidate.bind(this),
5423
5269
  paymentMethods: n.filter((e) => !a?.tokenAuthenticationEnabled || a?.tokenAuthenticationEnabled && e.networkToken?.schemeTokenId).map((t) => ({
5424
5270
  paymentMethodId: t.paymentMethodId,
5425
5271
  customerId: t.customerId,
@@ -5457,7 +5303,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5457
5303
  }))
5458
5304
  },
5459
5305
  on: { submit: z(this, "[PaymentMethods]: submit", (e) => {
5460
- this.log("[PaymentMethods]: submit", e), e?.paymentMethodId && (Xr(), setTimeout(() => {
5306
+ this.log("[PaymentMethods]: submit", e), e?.paymentMethodId && (oi(), setTimeout(() => {
5461
5307
  this.onSubmit(t, r, i, a, e);
5462
5308
  }, 500));
5463
5309
  }) }
@@ -5478,7 +5324,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5478
5324
  authenticationData: i
5479
5325
  });
5480
5326
  let a = z(this, "[PaymentMethodProcessor][tokenise], success", (t, n) => {
5481
- this.log("[PaymentMethodProcessor][tokenise], success", t, n), Yr();
5327
+ this.log("[PaymentMethodProcessor][tokenise], success", t, n), ai();
5482
5328
  let r = JSON.parse(n), i = { token: r.tokenId };
5483
5329
  r.card && (i.cardDetails = {
5484
5330
  bin: r.card.cardIin,
@@ -5493,9 +5339,9 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5493
5339
  issuer: r.card.iinData.issuer || "",
5494
5340
  countryCode: r.card.iinData.countryCode || "",
5495
5341
  cardType: r.card.iinData.cardType || ""
5496
- }), this.successCallback?.(i), $e(e, this.getSuccessMessage());
5342
+ }), this.successCallback?.(i), Qe(e, this.getSuccessMessage());
5497
5343
  }), o = z(this, "[PaymentMethodProcessor][tokenise], failure", (e, n) => {
5498
- this.log("[PaymentMethodProcessor][tokenise], failure", e, n), Yr();
5344
+ this.log("[PaymentMethodProcessor][tokenise], failure", e, n), ai();
5499
5345
  let r = JSON.parse(n);
5500
5346
  this.failureCallback?.({ error: r.message }), this.sendError(t, r.message);
5501
5347
  }), s = {
@@ -5513,7 +5359,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5513
5359
  },
5514
5360
  ...this.createBaseApiRequest()
5515
5361
  };
5516
- this.httpInvoker?.invoke(Qr(this.apiUrl)[Zr.TOKENISE].url, Qr(this.apiUrl)[Zr.TOKENISE].method, JSON.stringify(s), a, o);
5362
+ this.httpInvoker?.invoke(ci(this.apiUrl)[si.TOKENISE].url, ci(this.apiUrl)[si.TOKENISE].method, JSON.stringify(s), a, o);
5517
5363
  }
5518
5364
  getCustomerData(e, t, n) {
5519
5365
  let r = z(this, "[getCustomerData], success", (e, n) => {
@@ -5521,7 +5367,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5521
5367
  }), i = z(this, "[getCustomerData], failure", (e, t) => {
5522
5368
  this.log("[getCustomerData], failure", e, t), n(JSON.parse(t));
5523
5369
  });
5524
- this.httpInvoker?.invoke(Qr(this.apiUrl, e)[Zr.CUSTOMER_INFO].url, Qr(this.apiUrl, e)[Zr.CUSTOMER_INFO].method, {}, r, i);
5370
+ this.httpInvoker?.invoke(ci(this.apiUrl, e)[si.CUSTOMER_INFO].url, ci(this.apiUrl, e)[si.CUSTOMER_INFO].method, {}, r, i);
5525
5371
  }
5526
5372
  getPaymentMethodsInfo(e, t, n) {
5527
5373
  let r = z(this, "[getPaymentMethodsInfo], success", (e, n) => {
@@ -5529,18 +5375,12 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5529
5375
  }), i = z(this, "[getPaymentMethodsInfo], failure", (e, t) => {
5530
5376
  this.log("[getPaymentMethodsInfo], failure", e, t), n(JSON.parse(t));
5531
5377
  });
5532
- this.httpInvoker?.invoke(Qr(this.apiUrl, e)[Zr.PAYMENT_METHODS_INFO].url, Qr(this.apiUrl, e)[Zr.PAYMENT_METHODS_INFO].method, {}, r, i);
5378
+ this.httpInvoker?.invoke(ci(this.apiUrl, e)[si.PAYMENT_METHODS_INFO].url, ci(this.apiUrl, e)[si.PAYMENT_METHODS_INFO].method, {}, r, i);
5533
5379
  }
5534
5380
  onSubmit(e, t, n, r, i) {
5535
- if (!i?.paymentMethodId) {
5536
- this.failureCallback?.({ error: "Invalid payment method" });
5537
- return;
5538
- }
5539
- if (!r?.tokenAuthenticationEnabled || !i.networkToken?.schemeTokenId) {
5540
- this.tokenise(e, i.paymentMethodId, t, n);
5541
- return;
5542
- }
5543
- if (r?.tokenAuthenticationEnabled && i.networkToken?.schemeTokenId) {
5381
+ if (!i?.paymentMethodId) this.failureCallback?.({ error: "Invalid payment method" });
5382
+ else if (!r?.tokenAuthenticationEnabled || !i.networkToken?.schemeTokenId) this.tokenise(e, i.paymentMethodId, t, n);
5383
+ else if (r?.tokenAuthenticationEnabled && i.networkToken?.schemeTokenId) {
5544
5384
  let a = {
5545
5385
  expiryDate: i.card?.expiryDate || "",
5546
5386
  cardholder: i.card?.cardholder || "",
@@ -5554,7 +5394,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5554
5394
  o.invoke(this.amount, this.currency, z(this, "[sdk][paymentMethodProcessor], token authentication success", (r) => {
5555
5395
  this.log("[sdk][paymentMethodProcessor], token authentication success"), this.tokenise(e, i.paymentMethodId, t, n, r.assuranceData?.verificationData?.[0]);
5556
5396
  }), z(this, "[sdk][paymentMethodProcessor], token authentication error", (e) => {
5557
- Yr(), this.log("[sdk][paymentMethodProcessor], token authentication error", e), this.failureCallback?.({ error: "Token Authentication Error" });
5397
+ ai(), this.log("[sdk][paymentMethodProcessor], token authentication error", e), this.failureCallback?.({ error: "Token Authentication Error" });
5558
5398
  }));
5559
5399
  }
5560
5400
  }
@@ -5574,7 +5414,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5574
5414
  });
5575
5415
  let o = (i?.scheme || "").toLowerCase(), s = this.networkTokenProviders.find((e) => e.providerType.toLowerCase() === o);
5576
5416
  switch (String(s?.providerType).toLowerCase()) {
5577
- case "mastercard": return new tn(this.log.bind(this), {
5417
+ case "mastercard": return new Qt(this.log.bind(this), {
5578
5418
  container: this.container,
5579
5419
  token: e,
5580
5420
  networkToken: t,
@@ -5590,13 +5430,10 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5590
5430
  }
5591
5431
  }
5592
5432
  messageHandler(e) {
5593
- if (e?.data?.status && e.data.status === "card-form-validation-status-change") {
5594
- this.log(`[sdk][paymentMethodProcessor]: message "${e.data.status}" received`, e.data), Yr(), this.validationStatusChangeCallback?.(e.data.message?.status, e.data.message?.message);
5595
- return;
5596
- }
5433
+ e?.data?.status && e.data.status === "card-form-validation-status-change" && (this.log(`[sdk][paymentMethodProcessor]: message "${e.data.status}" received`, e.data), ai(), this.validationStatusChangeCallback?.(e.data.message?.status, e.data.message?.message));
5597
5434
  }
5598
5435
  };
5599
- L([R], $r.prototype, "addPaymentMethods", null), L([R], $r.prototype, "tokenise", null), L([R], $r.prototype, "getCustomerData", null), L([R], $r.prototype, "getPaymentMethodsInfo", null), L([R], $r.prototype, "onSubmit", null), L([R], $r.prototype, "sendError", null), L([R], $r.prototype, "initTokenAuthenticationProcessor", null), L([R], $r.prototype, "messageHandler", null);
5436
+ L([R], li.prototype, "addPaymentMethods", null), L([R], li.prototype, "tokenise", null), L([R], li.prototype, "getCustomerData", null), L([R], li.prototype, "getPaymentMethodsInfo", null), L([R], li.prototype, "onSubmit", null), L([R], li.prototype, "sendError", null), L([R], li.prototype, "initTokenAuthenticationProcessor", null), L([R], li.prototype, "messageHandler", null);
5600
5437
  //#endregion
5601
5438
  //#region src/sdk/types/PaymentType.type.ts
5602
5439
  var Q;
@@ -5605,7 +5442,7 @@ var Q;
5605
5442
  })(Q ||= {});
5606
5443
  //#endregion
5607
5444
  //#region src/sdk/utils/paymentType.ts
5608
- function ei(e) {
5445
+ function ui(e) {
5609
5446
  switch (e) {
5610
5447
  case J.SHIFT: return Q.shift;
5611
5448
  case J.PESAPAL: return Q.pesapal;
@@ -5616,87 +5453,51 @@ function ei(e) {
5616
5453
  }
5617
5454
  //#endregion
5618
5455
  //#region src/sdk/utils/moduleLoader.ts
5619
- function ti() {
5620
- try {
5621
- return (0, eval)("import.meta");
5622
- } catch {
5623
- return;
5624
- }
5456
+ var di = {
5457
+ cxpay: () => import("./cxpay-2xgRySpM.js"),
5458
+ default: () => import("./default-C1jUec5H.js"),
5459
+ ecentric: () => import("./ecentric-H05aJpLn.js"),
5460
+ epna: () => import("./epna-DTN4buF_.js"),
5461
+ flashbanc: () => import("./flashbanc-BeK15hvh.js"),
5462
+ forter: () => import("./forter-DH-MZghb.js"),
5463
+ gpayments: () => import("./gpayments-B5l_XcOn.js"),
5464
+ metrics_global: () => import("./metrics_global-B-VSDUV6.js"),
5465
+ nmi: () => import("./nmi-DqmyITL0.js"),
5466
+ nuvei: () => import("./nuvei-D4BRLq6t.js"),
5467
+ payabli: () => import("./payabli-BuZpPAgS.js"),
5468
+ payglocal: () => import("./payglocal--1ddjrp-.js"),
5469
+ skybank: () => import("./skybank-DwVlGG-A.js")
5470
+ }, fi = { forter: () => import("./forter-B5mAsqh7.js") };
5471
+ async function pi(e) {
5472
+ let t = di[e.toLowerCase()];
5473
+ if (!t) throw Error(`Module ${e} not found`);
5474
+ return await t();
5625
5475
  }
5626
- async function ni(e) {
5627
- let t = ti();
5628
- if (t?.glob) {
5629
- let n = t.glob("../3ds/*.ts"), r = `../3ds/${e.toLowerCase()}.ts`;
5630
- if (!n[r]) throw Error(`Module ${e} not found`);
5631
- return await n[r]();
5632
- }
5633
- return await et(/* #__PURE__ */ Object.assign({
5634
- "../3ds/CxPayThreeDsProvider.ts": () => import("./CxPayThreeDsProvider-lD7RyyaH.js"),
5635
- "../3ds/DefaultThreeDsProvider.ts": () => import("./DefaultThreeDsProvider-aIZr-d29.js").then((e) => e.n),
5636
- "../3ds/EcentricThreeDsProvider.ts": () => import("./EcentricThreeDsProvider-B7Hq90Yp.js"),
5637
- "../3ds/EpnaThreeDsProvider.ts": () => import("./EpnaThreeDsProvider-BAO2GROY.js"),
5638
- "../3ds/FlashBancThreeDsProvider.ts": () => import("./FlashBancThreeDsProvider-CIZpoTAj.js"),
5639
- "../3ds/GPaymentsThreeDsProvider.ts": () => import("./GPaymentsThreeDsProvider-COuZ_3w6.js"),
5640
- "../3ds/MetricsGlobalThreeDsProvider.ts": () => import("./MetricsGlobalThreeDsProvider-D3x5hiTk.js").then((e) => e.n),
5641
- "../3ds/NmiThreeDsProvider.ts": () => import("./NmiThreeDsProvider-fLTB46dM.js"),
5642
- "../3ds/NuveiThreeDsProvider.ts": () => import("./NuveiThreeDsProvider-BpWi_OJA.js"),
5643
- "../3ds/PayGLocalThreeDsProvider.ts": () => import("./PayGLocalThreeDsProvider-DvA8Ng4u.js"),
5644
- "../3ds/PayabliThreeDsProvider.ts": () => import("./PayabliThreeDsProvider-B34Ah8DW.js"),
5645
- "../3ds/SkyBankThreeDsProvider.ts": () => import("./SkyBankThreeDsProvider-0S5UKz-C.js"),
5646
- "../3ds/ThreeDsAuthResponse.type.ts": () => import("./ThreeDsAuthResponse.type-BvRk9kiK.js"),
5647
- "../3ds/ThreeDsInitResponse.type.ts": () => import("./ThreeDsInitResponse.type-BvRk9kiK.js"),
5648
- "../3ds/ThreeDsPostAuthResponse.type.ts": () => import("./ThreeDsPostAuthResponse.type-BFN9wqum.js"),
5649
- "../3ds/ThreeDsProvider.interface.ts": () => import("./ThreeDsProvider.interface-BvRk9kiK.js"),
5650
- "../3ds/cxpay.ts": () => import("./cxpay-2tlxyzUF.js"),
5651
- "../3ds/default.ts": () => import("./default-Sih0fC9J.js"),
5652
- "../3ds/ecentric.ts": () => import("./ecentric-CN_DxZw6.js"),
5653
- "../3ds/epna.ts": () => import("./epna-CuWMBne4.js"),
5654
- "../3ds/flashbanc.ts": () => import("./flashbanc-YdmE24o7.js"),
5655
- "../3ds/gpayments.ts": () => import("./gpayments-DVhgcMCp.js"),
5656
- "../3ds/metrics_global.ts": () => import("./metrics_global-DshQOuaW.js"),
5657
- "../3ds/nmi.ts": () => import("./nmi-Qo4scfgJ.js"),
5658
- "../3ds/nuvei.ts": () => import("./nuvei-BFllJ45f.js"),
5659
- "../3ds/payabli.ts": () => import("./payabli-eGPashQz.js"),
5660
- "../3ds/payglocal.ts": () => import("./payglocal-WvM5v5cn.js"),
5661
- "../3ds/skybank.ts": () => import("./skybank-174OmYCW.js")
5662
- }), `../3ds/${e.toLowerCase()}.ts`, 3);
5663
- }
5664
- async function ri(e) {
5665
- let t = ti();
5666
- if (t?.glob) {
5667
- let n = t.glob("../fraud/*.ts"), r = `../fraud/${e.toLowerCase()}.ts`;
5668
- if (!n[r]) throw Error(`Module ${e} not found`);
5669
- return await n[r]();
5670
- }
5671
- return await et(/* #__PURE__ */ Object.assign({
5672
- "../fraud/forter.ts": () => import("./forter-CcQiwntl.js"),
5673
- "../fraud/forterDeviceIntelScript.ts": () => import("./forterDeviceIntelScript-DdHZ7KLR.js"),
5674
- "../fraud/fraudCheck.type.ts": () => import("./fraudCheck.type-BvRk9kiK.js"),
5675
- "../fraud/fraudDecision.ts": () => Promise.resolve().then(() => zt),
5676
- "../fraud/fraudProvider.type.ts": () => import("./fraudProvider.type-Bzd9orn2.js"),
5677
- "../fraud/fraudStatus.type.ts": () => import("./fraudStatus.type-BvRk9kiK.js")
5678
- }), `../fraud/${e.toLowerCase()}.ts`, 3);
5476
+ async function mi(e) {
5477
+ let t = fi[e.toLowerCase()];
5478
+ if (!t) throw Error(`Module ${e} not found`);
5479
+ return await t();
5679
5480
  }
5680
5481
  //#endregion
5681
5482
  //#region src/sdk/payfurl.ts
5682
- var { hideSpinner: ii } = ke(), ai = {
5483
+ var { hideSpinner: hi } = Oe(), gi = {
5683
5484
  PROVIDER_INFO: "PROVIDER_INFO",
5684
5485
  PROVIDERS_INFO: "PROVIDERS_INFO"
5685
- }, oi = (e, t, n) => ({
5686
- [ai.PROVIDERS_INFO]: {
5486
+ }, _i = (e, t, n) => ({
5487
+ [gi.PROVIDERS_INFO]: {
5687
5488
  url: e + "/info/providers/",
5688
5489
  method: "GET"
5689
5490
  },
5690
- [ai.PROVIDER_INFO]: {
5491
+ [gi.PROVIDER_INFO]: {
5691
5492
  url: e + (n ? "/info/providers/token/" + n : "/info/providers/" + t),
5692
5493
  method: "GET"
5693
5494
  }
5694
5495
  }), $ = class {
5695
5496
  _submitFormHandlers = {};
5696
5497
  _destroyDropIns = {};
5697
- environment = Ke.PRODUCTION;
5498
+ environment = Ge.PRODUCTION;
5698
5499
  debug = !1;
5699
- config = Je(Ke.PRODUCTION);
5500
+ config = qe(Ge.PRODUCTION);
5700
5501
  publicKey = "";
5701
5502
  amount = 0;
5702
5503
  currency = "";
@@ -5726,12 +5527,12 @@ var { hideSpinner: ii } = ke(), ai = {
5726
5527
  paymentOptions = {};
5727
5528
  initProcessorsHandlers = [];
5728
5529
  init(e, t, n) {
5729
- if (this.environment = String(e).toLowerCase(), tt.init(this.environment, t, Y.version), window._payfurl) return window._payfurl;
5730
- if (this.debug = n, this.publicKey = t, this.config = Je(this.environment), !this.config) throw this.showErrorMessage(null, "Error: Unable to configure SDK due to an incorrect environment setting."), this.userOnFailure?.({ error: "Unable to configure SDK" }), TypeError("Error: Unable to configure SDK due to an incorrect environment setting.");
5530
+ if (this.environment = String(e).toLowerCase(), $e.init(this.environment, t, Y.version), window._payfurl) return window._payfurl;
5531
+ if (this.debug = n, this.publicKey = t, this.config = qe(this.environment), !this.config) throw this.showErrorMessage(null, "Error: Unable to configure SDK due to an incorrect environment setting."), this.userOnFailure?.({ error: "Unable to configure SDK" }), TypeError("Error: Unable to configure SDK due to an incorrect environment setting.");
5731
5532
  return this.regionResolver = new N(e, P(t)), this.httpInvoker = new F(t, Y.version, this.regionResolver), this.loadCss(), window._payfurl = this, window.addEventListener("message", this.messageHandler.bind(this)), this;
5732
5533
  }
5733
5534
  execute() {
5734
- window.postMessage({ status: ce }, "*");
5535
+ window.postMessage({ status: se }, "*");
5735
5536
  }
5736
5537
  messageHandler(e) {
5737
5538
  e?.data?.status && e.data.status === "payfurl-init" && this.userOnLoaded?.();
@@ -5753,7 +5554,7 @@ var { hideSpinner: ii } = ke(), ai = {
5753
5554
  }),
5754
5555
  onFailure: z(this, "[cardProcessor], failure", (e) => {
5755
5556
  this.log("[cardProcessor], failure", e);
5756
- let t = Hn(e.body);
5557
+ let t = zn(e.body);
5757
5558
  e.body && !t && this.log("[cardProcessor], failure", "no structured error detail in body"), this.userOnFailure?.({
5758
5559
  error: e.error,
5759
5560
  ...t && { errorDetails: t }
@@ -5774,7 +5575,7 @@ var { hideSpinner: ii } = ke(), ai = {
5774
5575
  }
5775
5576
  initPaypalProcessor(e) {
5776
5577
  if (this.log("[initPaypalProcessor]", { container: e }), this.paypalProcessor) return this.paypalProcessor;
5777
- let t = new Wt(this.log.bind(this), {
5578
+ let t = new Vt(this.log.bind(this), {
5778
5579
  debug: this.debug,
5779
5580
  environment: this.environment,
5780
5581
  publicKey: this.publicKey,
@@ -5793,7 +5594,7 @@ var { hideSpinner: ii } = ke(), ai = {
5793
5594
  }
5794
5595
  initCheckoutProcessor(e) {
5795
5596
  this.log("[initCheckoutProcessor]", { container: e });
5796
- let t = new Ln(this.log.bind(this), {
5597
+ let t = new Pn(this.log.bind(this), {
5797
5598
  debug: this.debug,
5798
5599
  environment: this.environment,
5799
5600
  publicKey: this.publicKey,
@@ -5815,7 +5616,7 @@ var { hideSpinner: ii } = ke(), ai = {
5815
5616
  }
5816
5617
  initGooglePayProcessor(e) {
5817
5618
  if (this.log("[initGooglePayProcessor]", { container: e }), this.googlePayProcessor) return this.googlePayProcessor;
5818
- let t = new Xn(this.log.bind(this), {
5619
+ let t = new qn(this.log.bind(this), {
5819
5620
  debug: this.debug,
5820
5621
  environment: this.environment,
5821
5622
  publicKey: this.publicKey,
@@ -5834,26 +5635,18 @@ var { hideSpinner: ii } = ke(), ai = {
5834
5635
  }
5835
5636
  initApplePayProcessor(e) {
5836
5637
  if (this.log("[initApplePayProcessor]", { container: e }), this.applePayProcessor) return this.applePayProcessor;
5837
- let t = new rr(this.log.bind(this), {
5638
+ let t = new pr(this.log.bind(this), {
5838
5639
  debug: this.debug,
5839
5640
  environment: this.environment,
5840
5641
  publicKey: this.publicKey,
5841
5642
  apiUrl: this.config.apiUrl,
5842
5643
  version: Y.version,
5843
5644
  onSuccess: z(this, "[applePayProcessor], success", (t) => {
5844
- if (this.log("[applePayProcessor], success", t), !this.userOnSuccess && t.transactionId) {
5845
- this._setToken(e, t.transactionId, "transactionId"), setTimeout(() => {
5846
- this.getForm(e)?.submit();
5847
- }, 500);
5848
- return;
5849
- }
5850
- if (!this.userOnSuccess && t.token) {
5851
- this._setToken(e, t.token), setTimeout(() => {
5852
- this.userOnSuccess || this.getForm(e)?.submit();
5853
- }, 500);
5854
- return;
5855
- }
5856
- this.userOnSuccess?.({
5645
+ this.log("[applePayProcessor], success", t), !this.userOnSuccess && t.transactionId ? (this._setToken(e, t.transactionId, "transactionId"), setTimeout(() => {
5646
+ this.getForm(e)?.submit();
5647
+ }, 500)) : !this.userOnSuccess && t.token ? (this._setToken(e, t.token), setTimeout(() => {
5648
+ this.userOnSuccess || this.getForm(e)?.submit();
5649
+ }, 500)) : this.userOnSuccess?.({
5857
5650
  transactionId: t.transactionId,
5858
5651
  token: t.token
5859
5652
  });
@@ -5865,7 +5658,7 @@ var { hideSpinner: ii } = ke(), ai = {
5865
5658
  return this.amount && t.setAmount(this.amount), this.currency && t.setCurrency(this.currency), this.customer && t.setCustomerInfo(this.customer), this.billingAddress && t.setBillingAddress(this.billingAddress), this.order && t.setOrderInfo(this.order), t.setOnValidate(this.userOnValidate), this.applePayProcessor = t, this.applePayProcessor;
5866
5659
  }
5867
5660
  initPayToProcessor(e) {
5868
- return this.log("[initPayToProcessor]", { container: e }), this.payToProcessor ? this.payToProcessor : (this.payToProcessor = new xn(this.log.bind(this), {
5661
+ return this.log("[initPayToProcessor]", { container: e }), this.payToProcessor || (this.payToProcessor = new vn(this.log.bind(this), {
5869
5662
  debug: this.debug,
5870
5663
  environment: this.environment,
5871
5664
  publicKey: this.publicKey,
@@ -5880,10 +5673,10 @@ var { hideSpinner: ii } = ke(), ai = {
5880
5673
  onFailure: z(this, "[payToProcessor], failure", (e) => {
5881
5674
  this.log("[payToProcessor], failure", e), this.userOnFailure?.({ error: e.error });
5882
5675
  })
5883
- }), this.payToProcessor.setOnValidate(this.userOnValidate), this.payToProcessor);
5676
+ }), this.payToProcessor.setOnValidate(this.userOnValidate)), this.payToProcessor;
5884
5677
  }
5885
5678
  initPaymentMethodProcessor(e) {
5886
- return this.log("[initPaymentMethodProcessor]", { container: e }), this.paymentMethodProcessor ? this.paymentMethodProcessor : (this.paymentMethodProcessor = new $r(this.log.bind(this), {
5679
+ return this.log("[initPaymentMethodProcessor]", { container: e }), this.paymentMethodProcessor || (this.paymentMethodProcessor = new li(this.log.bind(this), {
5887
5680
  debug: this.debug,
5888
5681
  environment: this.environment,
5889
5682
  publicKey: this.publicKey,
@@ -5901,7 +5694,7 @@ var { hideSpinner: ii } = ke(), ai = {
5901
5694
  onValidationStatusChangeCallback: z(this, "[paymentMethodProcessor], ValidationStatusChange", (e, t) => {
5902
5695
  this.log("[paymentMethodProcessor], ValidationStatusChange", e, t), this.userOnValidationStatusChange?.(e, t);
5903
5696
  })
5904
- }), this.initBaseProcessor(this.paymentMethodProcessor), this.paymentMethodProcessor);
5697
+ }), this.initBaseProcessor(this.paymentMethodProcessor)), this.paymentMethodProcessor;
5905
5698
  }
5906
5699
  loadCss() {
5907
5700
  let e = document.createElement("link");
@@ -5947,13 +5740,7 @@ var { hideSpinner: ii } = ke(), ai = {
5947
5740
  let r = z(this, "[getSubmitFormHandler][handler]", (t) => {
5948
5741
  this.log("[sdk], submitForm", t), t.preventDefault();
5949
5742
  let n = this.getForm(e);
5950
- if (!(n?.onsubmit && !n.onsubmit(new SubmitEvent("submit")))) {
5951
- if (n && this.getInput(e, "token")?.value) {
5952
- n.submit();
5953
- return;
5954
- }
5955
- window.postMessage({ status: ce }, "*");
5956
- }
5743
+ (!n?.onsubmit || n.onsubmit(new SubmitEvent("submit"))) && (n && this.getInput(e, "token")?.value ? n.submit() : window.postMessage({ status: se }, "*"));
5957
5744
  });
5958
5745
  return this._submitFormHandlers[n] = r, r;
5959
5746
  }
@@ -6014,19 +5801,26 @@ var { hideSpinner: ii } = ke(), ai = {
6014
5801
  fraud: !(r?.clickToPayEnabled !== !1 && s.clickToPayEnabled) && u ? {
6015
5802
  providerId: u.providerId,
6016
5803
  providerType: u.providerType,
6017
- stopPaymentOnFailure: !!u.stopPaymentOnFailure
5804
+ stopPaymentOnFailure: !!u.stopPaymentOnFailure,
5805
+ clientParameters: u.clientParameters || {}
6018
5806
  } : void 0,
6019
5807
  threeDs: !(r?.clickToPayEnabled !== !1 && s.clickToPayEnabled) && c ? {
6020
5808
  providerId: c.providerId,
6021
5809
  providerType: c.providerType,
6022
5810
  cardProviderId: n,
6023
- clientParameters: t.clientParameters || {}
5811
+ clientParameters: {
5812
+ ...t.clientParameters,
5813
+ ...c.clientParameters
5814
+ }
6024
5815
  } : void 0,
6025
5816
  secondaryThreeDs: !(r?.clickToPayEnabled !== !1 && s.clickToPayEnabled) && l ? {
6026
5817
  providerId: l.providerId,
6027
5818
  providerType: l.providerType,
6028
5819
  cardProviderId: n,
6029
- clientParameters: t.clientParameters || {}
5820
+ clientParameters: {
5821
+ ...t.clientParameters,
5822
+ ...l.clientParameters
5823
+ }
6030
5824
  } : void 0
6031
5825
  }
6032
5826
  };
@@ -6088,19 +5882,26 @@ var { hideSpinner: ii } = ke(), ai = {
6088
5882
  fraud: !(i?.clickToPayEnabled !== !1 && o.clickToPayEnabled) && l ? {
6089
5883
  providerId: l.providerId,
6090
5884
  providerType: l.providerType,
6091
- stopPaymentOnFailure: !!l.stopPaymentOnFailure
5885
+ stopPaymentOnFailure: !!l.stopPaymentOnFailure,
5886
+ clientParameters: l.clientParameters || {}
6092
5887
  } : void 0,
6093
5888
  threeDs: !(i?.clickToPayEnabled !== !1 && o.clickToPayEnabled) && s ? {
6094
5889
  providerId: s.providerId,
6095
5890
  providerType: s.providerType,
6096
5891
  cardProviderId: "",
6097
- clientParameters: t.clientParameters || {}
5892
+ clientParameters: {
5893
+ ...t.clientParameters,
5894
+ ...s.clientParameters
5895
+ }
6098
5896
  } : void 0,
6099
5897
  secondaryThreeDs: !(i?.clickToPayEnabled !== !1 && o.clickToPayEnabled) && c ? {
6100
5898
  providerId: c.providerId,
6101
5899
  providerType: c.providerType,
6102
5900
  cardProviderId: "",
6103
- clientParameters: t.clientParameters || {}
5901
+ clientParameters: {
5902
+ ...t.clientParameters,
5903
+ ...c.clientParameters
5904
+ }
6104
5905
  } : void 0
6105
5906
  }
6106
5907
  };
@@ -6133,7 +5934,7 @@ var { hideSpinner: ii } = ke(), ai = {
6133
5934
  createNetworkToken: r?.createNetworkToken,
6134
5935
  tokenAuthenticationEnabled: r?.tokenAuthenticationEnabled || r?.clickToPayOptions?.tokenAuthenticationEnabled,
6135
5936
  networkTokenOptions: r?.networkTokenOptions || r?.clickToPayOptions?.networkTokenOptions
6136
- }, z(this, "[addDropIn][initProcessors], callback", (a, c) => {
5937
+ }, z(this, "[addDropIn][initProcessors], callback", async (a, c) => {
6137
5938
  r?.paypalProviderId && c.hasPaypalProviders && c.paypalProviders.includes(r?.paypalProviderId) && (c.hasPaypalProviders = !0, c.paypalProviders.unshift(r?.paypalProviderId)), r?.payToProviderId && c.hasPayToProviders && c.payToProviders.includes(r?.payToProviderId) && (c.hasPayToProviders = !0, c.payToProviders.unshift(r?.payToProviderId));
6138
5939
  let l = [
6139
5940
  c.hasCardProviders,
@@ -6141,7 +5942,7 @@ var { hideSpinner: ii } = ke(), ai = {
6141
5942
  c.hasPayToProviders,
6142
5943
  c.hasBnplProviders,
6143
5944
  c.hasGooglePayProviders,
6144
- this.isApplePayAvailable() && c.hasApplePayProviders
5945
+ c.hasApplePayProviders && await this.isApplePayAvailable()
6145
5946
  ].filter(Boolean).length > 1, u = this.resolveThreeDsProvider(a, c), d = {
6146
5947
  threeDSEnabled: !!c.required3dsProvider,
6147
5948
  threeDsProviderId: c.required3dsProvider || "",
@@ -6180,19 +5981,26 @@ var { hideSpinner: ii } = ke(), ai = {
6180
5981
  fraud: !(r?.clickToPayEnabled !== !1 && c.clickToPayEnabled) && c.fraudProviders?.[0] ? {
6181
5982
  providerId: c.fraudProviders[0].providerId,
6182
5983
  providerType: c.fraudProviders[0].providerType,
6183
- stopPaymentOnFailure: !!c.fraudProviders[0].stopPaymentOnFailure
5984
+ stopPaymentOnFailure: !!c.fraudProviders[0].stopPaymentOnFailure,
5985
+ clientParameters: c.fraudProviders[0].clientParameters || {}
6184
5986
  } : void 0,
6185
5987
  threeDs: !(r?.clickToPayEnabled !== !1 && c.clickToPayEnabled) && u ? {
6186
5988
  providerId: u.providerId,
6187
5989
  providerType: u.providerType,
6188
5990
  cardProviderId: r?.cardProviderId || "",
6189
- clientParameters: a.clientParameters || {}
5991
+ clientParameters: {
5992
+ ...a.clientParameters,
5993
+ ...u.clientParameters
5994
+ }
6190
5995
  } : void 0,
6191
5996
  secondaryThreeDs: !(r?.clickToPayEnabled !== !1 && c.clickToPayEnabled) && c.allThreeDsProviders?.[0] ? {
6192
5997
  providerId: c.allThreeDsProviders[0].providerId,
6193
5998
  providerType: c.allThreeDsProviders[0].providerType,
6194
5999
  cardProviderId: r?.cardProviderId || "",
6195
- clientParameters: a.clientParameters || {}
6000
+ clientParameters: {
6001
+ ...a.clientParameters,
6002
+ ...c.allThreeDsProviders[0].clientParameters
6003
+ }
6196
6004
  } : void 0
6197
6005
  }
6198
6006
  }, f = {
@@ -6222,11 +6030,16 @@ var { hideSpinner: ii } = ke(), ai = {
6222
6030
  metadata: G(r?.metadata)
6223
6031
  }, _ = c.hasApplePayProviders ? c.applePayProviders.find((e) => e.providerId === r?.applePayOptions?.providerId) || c.applePayProviders[0] : null, v = {
6224
6032
  lineItemLabel: r?.applePayOptions?.lineItemLabel || _?.lineItemLabel || "",
6225
- displayName: r?.applePayOptions?.domainName || _?.displayName || "",
6033
+ displayName: r?.applePayOptions?.displayName || _?.displayName || "",
6226
6034
  domainName: r?.applePayOptions?.domainName || _?.domainName || "",
6227
6035
  merchantIdentifier: r?.applePayOptions?.merchantIdentifier || _?.merchantIdentifier || "",
6228
6036
  providerId: r?.applePayOptions?.providerId || _?.providerId || "",
6229
6037
  providerType: r?.applePayOptions?.providerType || _?.providerType || "",
6038
+ countryCode: r?.applePayOptions?.countryCode || _?.countryCode,
6039
+ merchantCapabilities: r?.applePayOptions?.merchantCapabilities || _?.merchantCapabilities,
6040
+ supportedNetworks: r?.applePayOptions?.supportedNetworks || _?.supportedNetworks,
6041
+ supportedCountries: r?.applePayOptions?.supportedCountries || _?.supportedCountries,
6042
+ applePayVersion: r?.applePayOptions?.applePayVersion || _?.applePayVersion,
6230
6043
  clientParameters: a.clientParameters,
6231
6044
  metadata: G(r?.metadata)
6232
6045
  };
@@ -6235,36 +6048,20 @@ var { hideSpinner: ii } = ke(), ai = {
6235
6048
  let r = e && document.getElementById(e) || null;
6236
6049
  this.initCardProcessor(r).addCard(r, this.getForm(r), s, t, n, d);
6237
6050
  }
6238
- return;
6239
- }
6240
- if (!l && c.hasPaypalProviders) {
6241
- o(Q.paypal) && this.addPaypal(e, t, n, c.paypalProviders[0], f);
6242
- return;
6243
- }
6244
- if (!l && c.hasPayToProviders) {
6245
- o(Q.payto) && this.addPayTo(e, t, c.payToProviders[0], p);
6246
- return;
6247
- }
6248
- if (!l && c.hasBnplProviders && Sn[c.bnplProviders[0].providerType]) {
6051
+ } else if (!l && c.hasPaypalProviders) o(Q.paypal) && this.addPaypal(e, t, n, c.paypalProviders[0], f);
6052
+ else if (!l && c.hasPayToProviders) o(Q.payto) && this.addPayTo(e, t, c.payToProviders[0], p);
6053
+ else if (!l && c.hasBnplProviders && yn[c.bnplProviders[0].providerType]) {
6249
6054
  if (c.bnplProviders[0].providerType === "upi") o(Q.upi) && this.addUpi(e, t, c.bnplProviders[0].providerId, r?.upiOptions || {});
6250
6055
  else {
6251
- let r = ei(c.bnplProviders[0].providerType);
6056
+ let r = ui(c.bnplProviders[0].providerType);
6252
6057
  r && o(r) && this.addCheckout(e, t, n, c.bnplProviders[0].providerType, c.bnplProviders[0].providerId, m, {
6253
6058
  ...c.bnplProviders[0].options,
6254
6059
  ...c.bnplProviders[0].clientParameters
6255
6060
  });
6256
6061
  }
6257
- return;
6258
- }
6259
- if (!l && c.hasGooglePayProviders) {
6260
- o(Q.googlepay) && this.addGooglePay(e, t, n, c.googlePayProviders[0].providerId, g);
6261
- return;
6262
- }
6263
- if (!l && this.isApplePayAvailable() && c.hasApplePayProviders) {
6264
- o(Q.applepay) && this.addApplePay(e, t, n, v.providerId || "", v);
6265
- return;
6266
- }
6267
- if (l) {
6062
+ } else if (!l && c.hasGooglePayProviders) o(Q.googlepay) && this.addGooglePay(e, t, n, c.googlePayProviders[0].providerId, g);
6063
+ else if (!l && c.hasApplePayProviders && await this.isApplePayAvailable()) o(Q.applepay) && this.addApplePay(e, t, n, v.providerId || "", v);
6064
+ else if (l) {
6268
6065
  let a = () => {
6269
6066
  window.postMessage({
6270
6067
  status: "deactivate",
@@ -6292,7 +6089,7 @@ var { hideSpinner: ii } = ke(), ai = {
6292
6089
  if (c.hasCardProviders && o(Q.card) && s.push({
6293
6090
  title: "Card",
6294
6091
  description: "Credit or Debit",
6295
- icon: ot,
6092
+ icon: it,
6296
6093
  render: (e) => {
6297
6094
  this.initCardProcessor(e).addCard(e, this.getForm(e), r?.cardProviderId || "", t, n, d);
6298
6095
  },
@@ -6304,7 +6101,7 @@ var { hideSpinner: ii } = ke(), ai = {
6304
6101
  }
6305
6102
  }), c.hasPaypalProviders && o(Q.paypal) && s.push({
6306
6103
  title: "Paypal",
6307
- icon: at,
6104
+ icon: rt,
6308
6105
  render: (e) => {
6309
6106
  this.initPaypalProcessor(e).addPaypal(e, this.getForm(e), t, n, c.paypalProviders[0], f);
6310
6107
  },
@@ -6314,27 +6111,29 @@ var { hideSpinner: ii } = ke(), ai = {
6314
6111
  component: "paypal"
6315
6112
  }, "*");
6316
6113
  }
6317
- }), c.hasPayToProviders && o(Q.payto)) if (k(p.description)) s.push({
6318
- title: "PayTo",
6319
- icon: lt,
6320
- render: (e) => {
6321
- this.initPayToProcessor(e).addPayTo(e, t, c.payToProviders[0], p);
6322
- },
6323
- activate: () => {
6324
- a(), window.postMessage({
6325
- status: "activate",
6326
- component: "payto"
6327
- }, "*");
6114
+ }), c.hasPayToProviders && o(Q.payto)) {
6115
+ if (k(p.description)) s.push({
6116
+ title: "PayTo",
6117
+ icon: st,
6118
+ render: (e) => {
6119
+ this.initPayToProcessor(e).addPayTo(e, t, c.payToProviders[0], p);
6120
+ },
6121
+ activate: () => {
6122
+ a(), window.postMessage({
6123
+ status: "activate",
6124
+ component: "payto"
6125
+ }, "*");
6126
+ }
6127
+ });
6128
+ else {
6129
+ this.showErrorMessage(i, "Missing parameter: PayTo Description"), this.userOnFailure?.({ error: "Missing parameter: PayTo Description" });
6130
+ return;
6328
6131
  }
6329
- });
6330
- else {
6331
- this.showErrorMessage(i, "Missing parameter: PayTo Description"), this.userOnFailure?.({ error: "Missing parameter: PayTo Description" });
6332
- return;
6333
6132
  }
6334
6133
  c.hasBnplProviders && c.bnplProviders.forEach((e) => {
6335
- let i = Sn[e.providerType];
6134
+ let i = yn[e.providerType];
6336
6135
  if (!i) return;
6337
- let c = ei(e.providerType);
6136
+ let c = ui(e.providerType);
6338
6137
  if (!c || !o(c)) return;
6339
6138
  let l = i.icon ? `${this.config.cssUrl}icons/${i.icon}.svg` : null;
6340
6139
  s.push({
@@ -6357,7 +6156,7 @@ var { hideSpinner: ii } = ke(), ai = {
6357
6156
  });
6358
6157
  }), c.hasGooglePayProviders && o(Q.googlepay) && s.push({
6359
6158
  title: "Google Pay",
6360
- icon: st,
6159
+ icon: at,
6361
6160
  render: (e) => {
6362
6161
  this.initGooglePayProcessor(e).addGooglePay(e, c.hasGooglePayProviders ? c.googlePayProviders[0].providerId : "", t, n, g);
6363
6162
  },
@@ -6367,9 +6166,9 @@ var { hideSpinner: ii } = ke(), ai = {
6367
6166
  component: "googlepay"
6368
6167
  }, "*");
6369
6168
  }
6370
- }), this.isApplePayAvailable() && c.hasApplePayProviders && o(Q.applepay) && s.push({
6169
+ }), c.hasApplePayProviders && o(Q.applepay) && await this.isApplePayAvailable() && s.push({
6371
6170
  title: "Apple Pay",
6372
- icon: ir,
6171
+ icon: mr,
6373
6172
  render: (e) => {
6374
6173
  this.addApplePay(e.id, t, n, v.providerId || "", v);
6375
6174
  },
@@ -6382,7 +6181,7 @@ var { hideSpinner: ii } = ke(), ai = {
6382
6181
  });
6383
6182
  let l = D({
6384
6183
  el: document.getElementById(e),
6385
- component: bt,
6184
+ component: vt,
6386
6185
  props: { elements: s }
6387
6186
  });
6388
6187
  this.setDestroyDropIn(i, l.destroy);
@@ -6402,11 +6201,7 @@ var { hideSpinner: ii } = ke(), ai = {
6402
6201
  if (!B(r)) throw this.showErrorMessage(o, "Missing parameter: currency"), this.userOnFailure?.({ error: "Missing parameter: currency" }), TypeError("Missing parameter: currency");
6403
6202
  return r &&= r.toUpperCase(), this._cleanUp(o), this._initForm(o), this.setAmount(n), this.setCurrency(r), this.initProcessors(o, n, r, i || "", "", {}, z(this, "[addPaypal][initProcessors], callback", (e, t) => {
6404
6203
  let s = t.paypalProviders[0] || i || "";
6405
- if (!s) {
6406
- this.showErrorMessage(o, "Missing parameter: Provider Id"), this.userOnFailure?.({ error: "Missing parameter: Provider Id" });
6407
- return;
6408
- }
6409
- this.initPaypalProcessor(o).addPaypal(o, this.getForm(o), n, r, s, a);
6204
+ s ? this.initPaypalProcessor(o).addPaypal(o, this.getForm(o), n, r, s, a) : (this.showErrorMessage(o, "Missing parameter: Provider Id"), this.userOnFailure?.({ error: "Missing parameter: Provider Id" }));
6410
6205
  })), this;
6411
6206
  }
6412
6207
  addPayTo(t, n, r, i) {
@@ -6469,16 +6264,20 @@ var { hideSpinner: ii } = ke(), ai = {
6469
6264
  });
6470
6265
  })), this);
6471
6266
  }
6472
- isApplePayAvailable() {
6473
- if (typeof window > "u" || !window.ApplePaySession) return !1;
6267
+ async isApplePayAvailable() {
6268
+ if (await sr(), typeof window > "u" || !window.ApplePaySession) return !1;
6474
6269
  try {
6475
6270
  return ApplePaySession.canMakePayments() === !0;
6476
6271
  } catch {
6477
6272
  return !1;
6478
6273
  }
6479
6274
  }
6480
- addApplePay(t, n, r, i, a) {
6481
- if (!this.isApplePayAvailable()) return this.log("Your browser does not support ApplePay"), this;
6275
+ addApplePay(e, t, n, r, i) {
6276
+ return this.isApplePayAvailable().then(z(this, "[addApplePay], available", (a) => {
6277
+ a ? this.renderApplePay(e, t, n, r, i) : this.log("Your browser does not support ApplePay");
6278
+ })).catch(() => {}), this;
6279
+ }
6280
+ renderApplePay(t, n, r, i, a) {
6482
6281
  this.log("[addApplePay]", {
6483
6282
  amount: n,
6484
6283
  currency: r,
@@ -6503,7 +6302,7 @@ var { hideSpinner: ii } = ke(), ai = {
6503
6302
  clientParameters: a
6504
6303
  });
6505
6304
  });
6506
- return this.initProcessors(o, n, r, i || "", "", {}, z(this, "[addApplePay][initProcessors], callback", (e, t) => {
6305
+ this.initProcessors(o, n, r, i || "", "", {}, z(this, "[addApplePay][initProcessors], callback", (e, t) => {
6507
6306
  if (!t.hasApplePayProviders) return;
6508
6307
  let n = i && t.applePayProviders.find((e) => e.providerId === i) || t.applePayProviders[0];
6509
6308
  s(n.providerId, n.providerType, {
@@ -6513,9 +6312,14 @@ var { hideSpinner: ii } = ke(), ai = {
6513
6312
  displayName: a?.displayName || n.displayName,
6514
6313
  providerId: a?.providerId || n.providerId,
6515
6314
  providerType: a?.providerType || n.providerType,
6315
+ countryCode: a?.countryCode || n.countryCode,
6316
+ merchantCapabilities: a?.merchantCapabilities || n.merchantCapabilities,
6317
+ supportedNetworks: a?.supportedNetworks || n.supportedNetworks,
6318
+ supportedCountries: a?.supportedCountries || n.supportedCountries,
6319
+ applePayVersion: a?.applePayVersion || n.applePayVersion,
6516
6320
  metadata: G(a?.metadata)
6517
6321
  }, e.clientParameters || n.clientParameters);
6518
- })), this;
6322
+ }));
6519
6323
  }
6520
6324
  addCheckout(e, t, n, r, i, a, o) {
6521
6325
  this.log(`[addCheckout], ${r}`, {
@@ -6572,7 +6376,7 @@ var { hideSpinner: ii } = ke(), ai = {
6572
6376
  }
6573
6377
  addThreeDsWithFullParameters(t, n, r, i, a, o, s, c, l) {
6574
6378
  this.log("[addThreeDsWithFullParameters]", {
6575
- cardNumber: qe(n),
6379
+ cardNumber: Ke(n),
6576
6380
  expiryDate: r,
6577
6381
  cardholder: i,
6578
6382
  email: a,
@@ -6584,29 +6388,25 @@ var { hideSpinner: ii } = ke(), ai = {
6584
6388
  let u = t && document.getElementById(t) || null;
6585
6389
  if (!e(o)) throw this.showErrorMessage(u, "Missing parameter: amount"), this.userOnFailure?.({ error: "Missing parameter: amount" }), TypeError("Missing parameter: amount");
6586
6390
  if (!B(s)) throw this.showErrorMessage(u, "Missing parameter: currency"), this.userOnFailure?.({ error: "Missing parameter: currency" }), TypeError("Missing parameter: currency");
6587
- return s &&= s.toUpperCase(), this._cleanUp(u), this._initForm(u), this.setAmount(o), this.setCurrency(s), n = Xe(n), this.getPaymentOptions(o, s, z(this, "[addThreeDsWithFullParameters][getPaymentOptions], callback", (e) => {
6588
- if (!e.hasThreeDsProviders) {
6589
- this.log("No 3DS providers found"), this.userOnSuccess?.({});
6590
- return;
6591
- }
6592
- this.add3DsProcessor(u, e.threeDsProviders[0].providerId, e.threeDsProviders[0].providerType, "", {}, z(this, "[addThreeDsWithFullParameters][add3DsProcessor], onload", () => {
6391
+ return s &&= s.toUpperCase(), this._cleanUp(u), this._initForm(u), this.setAmount(o), this.setCurrency(s), n = Ye(n), this.getPaymentOptions(o, s, z(this, "[addThreeDsWithFullParameters][getPaymentOptions], callback", (e) => {
6392
+ e.hasThreeDsProviders ? this.add3DsProcessor(u, e.threeDsProviders[0].providerId, e.threeDsProviders[0].providerType, "", e.threeDsProviders[0].clientParameters || {}, z(this, "[addThreeDsWithFullParameters][add3DsProcessor], onload", () => {
6593
6393
  this.threeDsProcessor?.setEmail(a), this.threeDsProcessor?.setPaymentInfo({
6594
6394
  cardNumber: n,
6595
6395
  expiryDate: r,
6596
6396
  cardholder: i,
6597
6397
  ccv: c
6598
6398
  }), this.threeDsProcessor?.threeDSInvoke(u, !!l?.requireChallenge, (e) => {
6599
- ii(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID });
6399
+ hi(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID });
6600
6400
  });
6601
6401
  }), z(this, "[addThreeDsWithFullParameters][add3DsProcessor], onerror", () => {
6602
6402
  this.log(`Cannot load 3DS provider (${e.threeDsProviders[0].providerType})`), this.userOnSuccess?.({});
6603
- }));
6403
+ })) : (this.log("No 3DS providers found"), this.userOnSuccess?.({}));
6604
6404
  })), this;
6605
6405
  }
6606
6406
  tokeniseWith3Ds(t, n, r, i, a, o, s, c, l, u, d) {
6607
6407
  this.log("[tokeniseWith3Ds]", {
6608
6408
  providerId: n,
6609
- cardNumber: qe(r),
6409
+ cardNumber: Ke(r),
6610
6410
  expiryDate: i,
6611
6411
  cardholder: a,
6612
6412
  ccv: "***",
@@ -6620,7 +6420,7 @@ var { hideSpinner: ii } = ke(), ai = {
6620
6420
  if (!k(n)) throw this.showErrorMessage(f, "Missing parameter: providerId"), this.userOnFailure?.({ error: "Missing parameter: Provider Id" }), TypeError("Missing parameter: providerId");
6621
6421
  if (!e(c)) throw this.userOnFailure?.({ error: "Missing parameter: amount" }), TypeError("Missing parameter: amount");
6622
6422
  if (!B(l)) throw this.userOnFailure?.({ error: "Missing parameter: currency" }), TypeError("Missing parameter: currency");
6623
- return l &&= l.toUpperCase(), this._cleanUp(f), this._initForm(f), this.setAmount(c), this.setCurrency(l), r = Xe(r), this.initProcessors(f, c, l, n, "", {
6423
+ return l &&= l.toUpperCase(), this._cleanUp(f), this._initForm(f), this.setAmount(c), this.setCurrency(l), r = Ye(r), this.initProcessors(f, c, l, n, "", {
6624
6424
  createNetworkToken: d?.createNetworkToken,
6625
6425
  clickToPayEnabled: !1
6626
6426
  }, z(this, "[tokeniseWith3Ds][initProcessors], callback", (e, t) => {
@@ -6633,19 +6433,19 @@ var { hideSpinner: ii } = ke(), ai = {
6633
6433
  cardholder: a,
6634
6434
  ccv: o
6635
6435
  }), this.threeDsProcessor?.threeDSInvoke(f, !!d?.requireChallenge, (t) => {
6636
- ii(), this.log("[threeDSInvoke], postAuthData", t), e.threeDsProviderType === "payglocal" ? this.userOnSuccess?.({ threeDSServerTransID: t.threeDSServerTransID }) : s(t.threeDSServerTransID);
6436
+ hi(), this.log("[threeDSInvoke], postAuthData", t), e.threeDsProviderType === "payglocal" ? this.userOnSuccess?.({ threeDSServerTransID: t.threeDSServerTransID }) : s(t.threeDSServerTransID);
6637
6437
  })) : (this.log("threeDsProcessor NOT FOUND"), s());
6638
6438
  })), this;
6639
6439
  }
6640
6440
  tokeniseCard(e, t, n, r, i, a, o, s) {
6641
6441
  return this.log("[tokeniseCard]", {
6642
6442
  providerId: e,
6643
- cardNumber: qe(t),
6443
+ cardNumber: Ke(t),
6644
6444
  expiryDate: n,
6645
6445
  cardHolderName: r,
6646
6446
  options: s,
6647
6447
  metadata: a
6648
- }), t = Xe(t), this.initCardProcessor(null).tokeniseCard(e, t, n, r, i, G(a), o, s), this;
6448
+ }), t = Ye(t), this.initCardProcessor(null).tokeniseCard(e, t, n, r, i, G(a), o, s), this;
6649
6449
  }
6650
6450
  addThreeDsWithToken(t, n, r, i, a, o) {
6651
6451
  if (this.log("[addThreeDsWithToken]", {
@@ -6658,18 +6458,14 @@ var { hideSpinner: ii } = ke(), ai = {
6658
6458
  if (!e(r)) throw this.userOnFailure?.({ error: "Missing parameter: amount" }), TypeError("Missing parameter: amount");
6659
6459
  if (!B(i)) throw this.userOnFailure?.({ error: "Missing parameter: currency" }), TypeError("Missing parameter: currency");
6660
6460
  return i &&= i.toUpperCase(), this.setAmount(r), this.setCurrency(i), this.initProcessors(null, r, i, "", t, { clickToPayEnabled: !1 }, z(this, "[addThreeDsWithToken][initProcessors], callback", () => {
6661
- if (!this.threeDsProcessor) {
6662
- this.userOnFailure?.({ error: "Cannot load 3DS provider" });
6663
- return;
6664
- }
6665
- this.threeDsProcessor?.setEmail(n), this.threeDsProcessor?.setTokenId(t), this.threeDsProcessor?.threeDSInvoke(null, !!o?.requireChallenge, (e) => {
6666
- ii(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID }), this.threeDsProcessor?.updateTokenExternal3dsData(e.externalThreeDsData);
6461
+ this.threeDsProcessor ? (this.threeDsProcessor?.setEmail(n), this.threeDsProcessor?.setTokenId(t), this.threeDsProcessor?.threeDSInvoke(null, !!o?.requireChallenge, (e) => {
6462
+ hi(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID }), this.threeDsProcessor?.updateTokenExternal3dsData(e.externalThreeDsData);
6667
6463
  }), this.threeDsProcessor?.setPaymentInfo({
6668
6464
  cardNumber: "",
6669
6465
  expiryDate: "",
6670
6466
  cardholder: "",
6671
6467
  ccv: a
6672
- });
6468
+ })) : this.userOnFailure?.({ error: "Cannot load 3DS provider" });
6673
6469
  })), this;
6674
6470
  }
6675
6471
  getPaymentOptions(e, t, n) {
@@ -6688,7 +6484,7 @@ var { hideSpinner: ii } = ke(), ai = {
6688
6484
  let i = JSON.parse(t);
6689
6485
  this.log("[getPaymentOptions], success", i), this.paymentOptions[r] = i, n?.(i);
6690
6486
  });
6691
- this.httpInvoker?.invoke(oi(this.config.apiUrl)[ai.PROVIDERS_INFO].url + `?amount=${e}&currency=${t}`, oi(this.config.apiUrl)[ai.PROVIDERS_INFO].method, {}, a, i);
6487
+ this.httpInvoker?.invoke(_i(this.config.apiUrl)[gi.PROVIDERS_INFO].url + `?amount=${e}&currency=${t}`, _i(this.config.apiUrl)[gi.PROVIDERS_INFO].method, {}, a, i);
6692
6488
  }
6693
6489
  getProviderInfo(e, t, n, r, i, a) {
6694
6490
  this.log("[getProviderInfo], request", {
@@ -6709,19 +6505,19 @@ var { hideSpinner: ii } = ke(), ai = {
6709
6505
  let n = JSON.parse(t);
6710
6506
  this.log("[getProviderInfo], data", n), this.paymentOptions[o] = n, i(n);
6711
6507
  });
6712
- this.httpInvoker?.invoke(oi(this.config.apiUrl, e, r)[ai.PROVIDER_INFO].url + `?amount=${t}&currency=${n}`, oi(this.config.apiUrl, e, r)[ai.PROVIDER_INFO].method, {}, c, s);
6508
+ this.httpInvoker?.invoke(_i(this.config.apiUrl, e, r)[gi.PROVIDER_INFO].url + `?amount=${t}&currency=${n}`, _i(this.config.apiUrl, e, r)[gi.PROVIDER_INFO].method, {}, c, s);
6713
6509
  }
6714
6510
  setAmount(e) {
6715
- return Number(e) === Number(this.amount) || Number(e) < 0 ? this : (this.log("[setAmount]", Number(e)), this.amount = Number(e), this.cardProcessor?.setAmount(this.amount), this.threeDsProcessor?.setAmount(this.amount), this.secondaryThreeDsProcessor?.setAmount(this.amount), this.paypalProcessor?.setAmount(this.amount), this.fraudProcessor?.setAmount(this.amount), this.googlePayProcessor?.setAmount(this.amount), this.applePayProcessor?.setAmount(this.amount), this.paymentMethodProcessor?.setAmount(this.amount), window.postMessage({
6511
+ return Number(e) === Number(this.amount) || Number(e) < 0 || (this.log("[setAmount]", Number(e)), this.amount = Number(e), this.cardProcessor?.setAmount(this.amount), this.threeDsProcessor?.setAmount(this.amount), this.secondaryThreeDsProcessor?.setAmount(this.amount), this.paypalProcessor?.setAmount(this.amount), this.fraudProcessor?.setAmount(this.amount), this.googlePayProcessor?.setAmount(this.amount), this.applePayProcessor?.setAmount(this.amount), this.paymentMethodProcessor?.setAmount(this.amount), window.postMessage({
6716
6512
  status: l,
6717
6513
  amount: this.amount
6718
- }, "*"), this);
6514
+ }, "*")), this;
6719
6515
  }
6720
6516
  setCurrency(e) {
6721
- return e === this.currency ? this : (e &&= e.toUpperCase(), this.log("[setCurrency]", e), this.currency = e, this.cardProcessor?.setCurrency(e), this.threeDsProcessor?.setCurrency(e), this.secondaryThreeDsProcessor?.setCurrency(e), this.googlePayProcessor?.setCurrency(e), this.applePayProcessor?.setCurrency(e), this.paymentMethodProcessor?.setCurrency(e), window.postMessage({
6517
+ return e === this.currency || (e &&= e.toUpperCase(), this.log("[setCurrency]", e), this.currency = e, this.cardProcessor?.setCurrency(e), this.threeDsProcessor?.setCurrency(e), this.secondaryThreeDsProcessor?.setCurrency(e), this.googlePayProcessor?.setCurrency(e), this.applePayProcessor?.setCurrency(e), this.paymentMethodProcessor?.setCurrency(e), window.postMessage({
6722
6518
  status: g,
6723
6519
  currency: e
6724
- }, "*"), this);
6520
+ }, "*")), this;
6725
6521
  }
6726
6522
  onSuccess(e) {
6727
6523
  return this.log("[onSuccess]"), this.userOnSuccess = e, this;
@@ -6759,7 +6555,7 @@ var { hideSpinner: ii } = ke(), ai = {
6759
6555
  }
6760
6556
  setOrderInfo(e) {
6761
6557
  return this.log("[setOrderInfo]", e), this.order = { ...e }, this.cardProcessor?.setOrderInfo(this.order), this.googlePayProcessor?.setOrderInfo(this.order), this.applePayProcessor?.setOrderInfo(this.order), this.fraudProcessor?.setOrderInfo(this.order), this.paymentMethodProcessor?.setOrderInfo(this.order), window.postMessage({
6762
- status: Ue,
6558
+ status: He,
6763
6559
  order: e
6764
6560
  }, "*"), this;
6765
6561
  }
@@ -6789,88 +6585,74 @@ var { hideSpinner: ii } = ke(), ai = {
6789
6585
  return;
6790
6586
  }
6791
6587
  this.initProcessorsHandlers.push(o);
6792
- let s = {}, c = "", l = "", u = !1, d = "", f = "", p = "", m = "", h = !1, g = (e) => {
6588
+ let s = {}, c = "", l = "", u = !1, d = {}, f = "", p = "", m = {}, h = "", g = "", _ = {}, v = !1, y = (e) => {
6793
6589
  this.getProviderInfo(r, t, n, i || "", z(this, "[getProviderInfo], success", (t) => {
6794
- s = { ...t }, !h && t.threeDsProviderId && (d = t.threeDsProviderId, f = t.threeDsProviderType), e();
6590
+ s = { ...t }, !v && t.threeDsProviderId && (f = t.threeDsProviderId, p = t.threeDsProviderType, m = t.threeDsClientParameters || {}), e();
6795
6591
  }), z(this, "[getProviderInfo], error", (t) => {
6796
6592
  this.log("Unable to get provider information", t), e();
6797
6593
  }));
6798
- }, _ = z(this, "[initFraudProcessor]", (e, t, n, r) => {
6799
- if (!e || !t) {
6800
- r();
6801
- return;
6802
- }
6803
- this.addFraudProcessor(e, t, n, {}, z(this, "[addFraudProcessor], success", () => {
6804
- r();
6594
+ }, b = z(this, "[initFraudProcessor]", (e, t, n, r, i) => {
6595
+ !e || !t ? i() : this.addFraudProcessor(e, t, n, r, {}, z(this, "[addFraudProcessor], success", () => {
6596
+ i();
6805
6597
  }), z(this, "[addFraudProcessor], error", () => {
6806
- this.log("Error loading fraud provider", t), r();
6598
+ this.log("Error loading fraud provider", t), i();
6807
6599
  }));
6808
- }), v = z(this, "[initThreeDsProcessor]", (t, n, i) => {
6809
- if (!t || !n) {
6810
- i();
6811
- return;
6812
- }
6813
- this.add3DsProcessor(e, t, n, r, s.clientParameters || {}, z(this, "[add3DsProcessor], success", () => {
6600
+ }), x = z(this, "[initThreeDsProcessor]", (t, n, i) => {
6601
+ !t || !n ? i() : this.add3DsProcessor(e, t, n, r, {
6602
+ ...s.clientParameters,
6603
+ ...m
6604
+ }, z(this, "[add3DsProcessor], success", () => {
6814
6605
  i();
6815
6606
  }), z(this, "[add3DsProcessor], error", () => {
6816
6607
  this.log("Error loading 3ds provider", n), i();
6817
6608
  }));
6818
- }), y = z(this, "[initSecondaryThreeDsProcessor]", (t, n, i) => {
6819
- if (!t || !n) {
6820
- i();
6821
- return;
6822
- }
6823
- this.addSecondary3DsProcessor(e, t, n, r, s.clientParameters || {}, z(this, "[addSecondary3DsProcessor], success", () => {
6609
+ }), S = z(this, "[initSecondaryThreeDsProcessor]", (t, n, i) => {
6610
+ !t || !n ? i() : this.addSecondary3DsProcessor(e, t, n, r, {
6611
+ ...s.clientParameters,
6612
+ ..._
6613
+ }, z(this, "[addSecondary3DsProcessor], success", () => {
6824
6614
  i();
6825
6615
  }), z(this, "[addSecondary3DsProcessor], error", () => {
6826
6616
  this.log("Error loading 3ds provider", n), i();
6827
6617
  }));
6828
- }), b = z(this, "[callCallbackHandlers]", (e, t) => {
6618
+ }), C = z(this, "[callCallbackHandlers]", (e, t) => {
6829
6619
  for (let n of this.initProcessorsHandlers) n(e, t);
6830
6620
  this.initProcessorsHandlers = [];
6831
6621
  });
6832
6622
  this.getPaymentOptions(t, n, z(this, "[getPaymentOptions], callback", (t) => {
6833
- if (a?.createNetworkToken && !a?.tokenAuthenticationEnabled && (t.clickToPayEnabled = !1), t?.clickToPayEnabled && a?.clickToPayEnabled !== !1 && (h = !0), t?.hasNetworkTokenProviders && a?.tokenAuthenticationEnabled && (h = !0), !h && t.hasThreeDsProviders && (d = t.threeDsProviders[0].providerId, f = t.threeDsProviders[0].providerType), !h && t.allThreeDsProviders?.[0]?.providerId && (p = t.allThreeDsProviders[0].providerId, m = t.allThreeDsProviders[0].providerType), !h && t.hasFraudProviders && (c = t.fraudProviders[0].providerId, l = t.fraudProviders[0].providerType, u = t.fraudProviders[0].stopPaymentOnFailure), t.clickToPayEnabled && a?.clickToPayEnabled !== !1 && this.initClickToPayProcessor(e, {
6623
+ a?.createNetworkToken && !a?.tokenAuthenticationEnabled && (t.clickToPayEnabled = !1), t?.clickToPayEnabled && a?.clickToPayEnabled !== !1 && (v = !0), t?.hasNetworkTokenProviders && a?.tokenAuthenticationEnabled && (v = !0), !v && t.hasThreeDsProviders && (f = t.threeDsProviders[0].providerId, p = t.threeDsProviders[0].providerType, m = t.threeDsProviders[0].clientParameters || {}), !v && t.allThreeDsProviders?.[0]?.providerId && (h = t.allThreeDsProviders[0].providerId, g = t.allThreeDsProviders[0].providerType, _ = t.allThreeDsProviders[0].clientParameters || {}), !v && t.hasFraudProviders && (c = t.fraudProviders[0].providerId, l = t.fraudProviders[0].providerType, u = t.fraudProviders[0].stopPaymentOnFailure, d = t.fraudProviders[0].clientParameters || {}), t.clickToPayEnabled && a?.clickToPayEnabled !== !1 && this.initClickToPayProcessor(e, {
6834
6624
  ...t.clickToPayOptions,
6835
6625
  ...a?.clickToPayOptions,
6836
6626
  tokenAuthenticationEnabled: !!a?.tokenAuthenticationEnabled,
6837
6627
  networkTokenOptions: a?.networkTokenOptions
6838
- }), !r && !i) {
6839
- _(c, l, u, () => {
6840
- v(d, f, () => {
6841
- y(p, m, () => {
6842
- b(s, t);
6843
- });
6628
+ }), !r && !i ? b(c, l, u, d, () => {
6629
+ x(f, p, () => {
6630
+ S(h, g, () => {
6631
+ C(s, t);
6844
6632
  });
6845
6633
  });
6846
- return;
6847
- }
6848
- g(() => {
6849
- _(c, l, u, () => {
6850
- v(d, f, () => {
6851
- y(p, m, () => {
6852
- b(s, t);
6634
+ }) : y(() => {
6635
+ b(c, l, u, d, () => {
6636
+ x(f, p, () => {
6637
+ S(h, g, () => {
6638
+ C(s, t);
6853
6639
  });
6854
6640
  });
6855
6641
  });
6856
6642
  });
6857
6643
  }));
6858
6644
  }
6859
- addFraudProcessor(e, t, n, r, i, a) {
6860
- if (this.log("[addFraudProcessor]", e, t, r), !this.amount || !this.currency || !this.billingAddress || !this.customer || !this.order) {
6861
- this.log("[addFraudProcessor], NOT loaded", {
6862
- amount: this.amount,
6863
- currency: this.currency,
6864
- billingAddress: this.billingAddress,
6865
- customer: this.customer,
6866
- order: this.order
6867
- }), i?.();
6868
- return;
6869
- }
6870
- ri(t).then(z(this, "[addFraudProcessor], onload", (a) => {
6871
- this.log(`Loading ${t}...`, a);
6872
- let o = a.default();
6873
- o?.getFraudCheckData && (this.fraudProcessor = new Bn(this.log.bind(this), {
6645
+ addFraudProcessor(e, t, n, r, i, a, o) {
6646
+ this.log("[addFraudProcessor]", e, t, i), !this.amount || !this.currency ? (this.log("[addFraudProcessor], NOT loaded", {
6647
+ amount: this.amount,
6648
+ currency: this.currency,
6649
+ billingAddress: this.billingAddress,
6650
+ customer: this.customer,
6651
+ order: this.order
6652
+ }), a?.()) : mi(t).then(z(this, "[addFraudProcessor], onload", (o) => {
6653
+ this.log(`Loading ${t}...`, o);
6654
+ let s = o.default(r);
6655
+ s?.getFraudCheckData && (this.fraudProcessor = new Ln(this.log.bind(this), {
6874
6656
  debug: this.debug,
6875
6657
  environment: this.environment,
6876
6658
  publicKey: this.publicKey,
@@ -6878,27 +6660,28 @@ var { hideSpinner: ii } = ke(), ai = {
6878
6660
  version: Y.version,
6879
6661
  providerId: e,
6880
6662
  stopPaymentOnFailure: n,
6881
- metadata: r,
6882
- getFraudCheckData: o.getFraudCheckData,
6663
+ metadata: i,
6664
+ getFraudCheckData: s.getFraudCheckData,
6883
6665
  onSuccess: (e) => {
6884
6666
  this.log("[fraudProcessor], success", e);
6885
6667
  },
6886
6668
  onFailure: (e) => {
6887
6669
  this.log("[fraudProcessor], failure", e);
6888
6670
  }
6889
- }), this.amount && this.fraudProcessor.setAmount(this.amount), this.currency && this.fraudProcessor.setCurrency(this.currency), this.billingAddress && this.fraudProcessor.setAddressInfo(this.billingAddress), this.customer && this.fraudProcessor.setCustomerInfo(this.customer), this.order && this.fraudProcessor.setOrderInfo(this.order), this.cardProcessor?.addFraudProcessor(this.fraudProcessor), this.paypalProcessor?.addFraudProcessor(this.fraudProcessor), i?.());
6671
+ }), this.amount && this.fraudProcessor.setAmount(this.amount), this.currency && this.fraudProcessor.setCurrency(this.currency), this.billingAddress && this.fraudProcessor.setAddressInfo(this.billingAddress), this.customer && this.fraudProcessor.setCustomerInfo(this.customer), this.order && this.fraudProcessor.setOrderInfo(this.order), this.cardProcessor?.addFraudProcessor(this.fraudProcessor), this.paypalProcessor?.addFraudProcessor(this.fraudProcessor), a?.());
6890
6672
  })).catch(z(this, "[addFraudProcessor], onerror", (e) => {
6891
- this.log(`Error loading ${t}`, e), a?.();
6673
+ this.log(`Error loading ${t}`, e), o?.();
6892
6674
  }));
6893
6675
  }
6894
6676
  resolveThreeDsProvider(e, t) {
6895
6677
  return e?.threeDsProviderId && e?.threeDsProviderType ? {
6896
6678
  providerId: e.threeDsProviderId,
6897
- providerType: e.threeDsProviderType
6679
+ providerType: e.threeDsProviderType,
6680
+ clientParameters: e.threeDsClientParameters
6898
6681
  } : t.threeDsProviders?.find((e) => e.providerId === t.required3dsProvider) || t.threeDsProviders?.[0];
6899
6682
  }
6900
6683
  add3DsProcessor(e, t, n, r, i, a, o) {
6901
- this.log("[add3DsProcessor]", t, n), ni(n).then(z(this, "[add3DsProcessor], onload", (o) => {
6684
+ this.log("[add3DsProcessor]", t, n), pi(n).then(z(this, "[add3DsProcessor], onload", (o) => {
6902
6685
  this.log(`Loading ${n}...`, o);
6903
6686
  let s = o.default(this.log.bind(this), e, {
6904
6687
  environment: this.environment,
@@ -6926,44 +6709,11 @@ var { hideSpinner: ii } = ke(), ai = {
6926
6709
  }
6927
6710
  }), this.amount && this.threeDsProcessor.setAmount(this.amount), this.currency && this.threeDsProcessor.setCurrency(this.currency), this.billingAddress && this.threeDsProcessor.setAddressInfo(this.billingAddress), this.cardProcessor?.addThreeDsProcessor(this.threeDsProcessor), s.setThreeDsProcessor(this.threeDsProcessor), a?.());
6928
6711
  })).catch(z(this, "[add3DsProcessor], onerror", (s) => {
6929
- if (this.log(`Error loading ${n}`, s), n !== "default") {
6930
- this.add3DsProcessor(e, t, "default", r, i, a, o);
6931
- return;
6932
- }
6933
- o?.();
6712
+ this.log(`Error loading ${n}`, s), n === "default" ? o?.() : this.add3DsProcessor(e, t, "default", r, i, a, o);
6934
6713
  }));
6935
6714
  }
6936
6715
  addSecondary3DsProcessor(e, t, n, r, i, a, o) {
6937
- this.log("[addSecondary3DsProcessor]", t, n), et(/* #__PURE__ */ Object.assign({
6938
- "./3ds/CxPayThreeDsProvider.ts": () => import("./CxPayThreeDsProvider-lD7RyyaH.js"),
6939
- "./3ds/DefaultThreeDsProvider.ts": () => import("./DefaultThreeDsProvider-aIZr-d29.js").then((e) => e.n),
6940
- "./3ds/EcentricThreeDsProvider.ts": () => import("./EcentricThreeDsProvider-B7Hq90Yp.js"),
6941
- "./3ds/EpnaThreeDsProvider.ts": () => import("./EpnaThreeDsProvider-BAO2GROY.js"),
6942
- "./3ds/FlashBancThreeDsProvider.ts": () => import("./FlashBancThreeDsProvider-CIZpoTAj.js"),
6943
- "./3ds/GPaymentsThreeDsProvider.ts": () => import("./GPaymentsThreeDsProvider-COuZ_3w6.js"),
6944
- "./3ds/MetricsGlobalThreeDsProvider.ts": () => import("./MetricsGlobalThreeDsProvider-D3x5hiTk.js").then((e) => e.n),
6945
- "./3ds/NmiThreeDsProvider.ts": () => import("./NmiThreeDsProvider-fLTB46dM.js"),
6946
- "./3ds/NuveiThreeDsProvider.ts": () => import("./NuveiThreeDsProvider-BpWi_OJA.js"),
6947
- "./3ds/PayGLocalThreeDsProvider.ts": () => import("./PayGLocalThreeDsProvider-DvA8Ng4u.js"),
6948
- "./3ds/PayabliThreeDsProvider.ts": () => import("./PayabliThreeDsProvider-B34Ah8DW.js"),
6949
- "./3ds/SkyBankThreeDsProvider.ts": () => import("./SkyBankThreeDsProvider-0S5UKz-C.js"),
6950
- "./3ds/ThreeDsAuthResponse.type.ts": () => import("./ThreeDsAuthResponse.type-BvRk9kiK.js"),
6951
- "./3ds/ThreeDsInitResponse.type.ts": () => import("./ThreeDsInitResponse.type-BvRk9kiK.js"),
6952
- "./3ds/ThreeDsPostAuthResponse.type.ts": () => import("./ThreeDsPostAuthResponse.type-BFN9wqum.js"),
6953
- "./3ds/ThreeDsProvider.interface.ts": () => import("./ThreeDsProvider.interface-BvRk9kiK.js"),
6954
- "./3ds/cxpay.ts": () => import("./cxpay-2tlxyzUF.js"),
6955
- "./3ds/default.ts": () => import("./default-Sih0fC9J.js"),
6956
- "./3ds/ecentric.ts": () => import("./ecentric-CN_DxZw6.js"),
6957
- "./3ds/epna.ts": () => import("./epna-CuWMBne4.js"),
6958
- "./3ds/flashbanc.ts": () => import("./flashbanc-YdmE24o7.js"),
6959
- "./3ds/gpayments.ts": () => import("./gpayments-DVhgcMCp.js"),
6960
- "./3ds/metrics_global.ts": () => import("./metrics_global-DshQOuaW.js"),
6961
- "./3ds/nmi.ts": () => import("./nmi-Qo4scfgJ.js"),
6962
- "./3ds/nuvei.ts": () => import("./nuvei-BFllJ45f.js"),
6963
- "./3ds/payabli.ts": () => import("./payabli-eGPashQz.js"),
6964
- "./3ds/payglocal.ts": () => import("./payglocal-WvM5v5cn.js"),
6965
- "./3ds/skybank.ts": () => import("./skybank-174OmYCW.js")
6966
- }), `./3ds/${n.toLowerCase()}.ts`, 3).then(z(this, "[addSecondary3DsProcessor], onload", (o) => {
6716
+ this.log("[addSecondary3DsProcessor]", t, n), pi(n).then(z(this, "[addSecondary3DsProcessor], onload", (o) => {
6967
6717
  this.log(`Loading ${n}...`, o);
6968
6718
  let s = o.default(this.log.bind(this), e, {
6969
6719
  environment: this.environment,
@@ -6991,11 +6741,7 @@ var { hideSpinner: ii } = ke(), ai = {
6991
6741
  }
6992
6742
  }), this.amount && this.secondaryThreeDsProcessor.setAmount(this.amount), this.currency && this.secondaryThreeDsProcessor.setCurrency(this.currency), this.billingAddress && this.secondaryThreeDsProcessor.setAddressInfo(this.billingAddress), this.cardProcessor?.addSecondaryThreeDsProcessor(this.secondaryThreeDsProcessor), s.setThreeDsProcessor(this.secondaryThreeDsProcessor), a?.());
6993
6743
  })).catch(z(this, "[addSecondary3DsProcessor], onerror", (s) => {
6994
- if (this.log(`Error loading ${n}`, s), n !== "default") {
6995
- this.addSecondary3DsProcessor(e, t, "default", r, i, a, o);
6996
- return;
6997
- }
6998
- o?.();
6744
+ this.log(`Error loading ${n}`, s), n === "default" ? o?.() : this.addSecondary3DsProcessor(e, t, "default", r, i, a, o);
6999
6745
  }));
7000
6746
  }
7001
6747
  preloadClickToPay(e) {
@@ -7043,6 +6789,6 @@ var { hideSpinner: ii } = ke(), ai = {
7043
6789
  L([R], $.prototype, "init", null), L([R], $.prototype, "execute", null), L([R], $.prototype, "messageHandler", null), L([R], $.prototype, "initCardProcessor", null), L([R], $.prototype, "initClickToPayProcessor", null), L([R], $.prototype, "initPaypalProcessor", null), L([R], $.prototype, "initCheckoutProcessor", null), L([R], $.prototype, "initGooglePayProcessor", null), L([R], $.prototype, "initApplePayProcessor", null), L([R], $.prototype, "initPayToProcessor", null), L([R], $.prototype, "loadCss", null), L([R], $.prototype, "_cleanUp", null), L([R], $.prototype, "getForm", null), L([R], $.prototype, "getSubmit", null), L([R], $.prototype, "getInput", null), L([R], $.prototype, "_initForm", null), L([R], $.prototype, "_setToken", null), L([R], $.prototype, "getSubmitFormHandler", null), L([R], $.prototype, "getDestroyDropIn", null), L([R], $.prototype, "setDestroyDropIn", null), L([R], $.prototype, "addCard", null), L([R], $.prototype, "addCardLeastCost", null), L([R], $.prototype, "addDropIn", null), L([R], $.prototype, "addPaypal", null), L([R], $.prototype, "addPayTo", null), L([R], $.prototype, "addGooglePay", null), L([R], $.prototype, "addApplePay", null), L([R], $.prototype, "addCheckout", null), L([R], $.prototype, "addUpi", null), L([R], $.prototype, "addThreeDsWithFullParameters", null), L([R], $.prototype, "tokeniseWith3Ds", null), L([R], $.prototype, "tokeniseCard", null), L([R], $.prototype, "addThreeDsWithToken", null), L([R], $.prototype, "getPaymentOptions", null), L([R], $.prototype, "getProviderInfo", null), L([R], $.prototype, "setAmount", null), L([R], $.prototype, "setCurrency", null), L([R], $.prototype, "onSuccess", null), L([R], $.prototype, "onFailure", null), L([R], $.prototype, "onLoaded", null), L([R], $.prototype, "onValidationStatusChange", null), L([R], $.prototype, "onValidate", null), L([R], $.prototype, "showErrorMessage", null), L([R], $.prototype, "setBillingAddress", null), L([R], $.prototype, "setCustomerInfo", null), L([R], $.prototype, "setOrderInfo", null), L([R], $.prototype, "setGeolocation", null), L([R], $.prototype, "checkGeolocation", null), L([R], $.prototype, "initProcessors", null), L([R], $.prototype, "addFraudProcessor", null), L([R], $.prototype, "resolveThreeDsProvider", null), L([R], $.prototype, "add3DsProcessor", null), L([R], $.prototype, "addSecondary3DsProcessor", null), L([R], $.prototype, "preloadClickToPay", null), L([R], $.prototype, "addSavedPaymentMethods", null);
7044
6790
  //#endregion
7045
6791
  //#region src/sdk/main.ts
7046
- var si = new $();
6792
+ var vi = new $();
7047
6793
  //#endregion
7048
- export { si as default };
6794
+ export { vi as default };