@payfurl/client 4.9.0 → 4.9.2

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 (44) hide show
  1. package/dist/sdk/{CloseIcon-BJgZxU_4.js → CloseIcon-CTY2bpwF.js} +1224 -1167
  2. package/dist/sdk/{DefaultThreeDsProvider-aIZr-d29.js → DefaultThreeDsProvider-ChnRLzKI.js} +30 -34
  3. package/dist/sdk/{MetricsGlobalThreeDsProvider-D3x5hiTk.js → MetricsGlobalThreeDsProvider-DW-gsG6q.js} +29 -29
  4. package/dist/sdk/{PayWayAppleButton-DESHrVB-.js → PayWayAppleButton-7Gi89Gij.js} +2 -2
  5. package/dist/sdk/{alerts-Bad_5Z62.js → alerts-DKbyC20w.js} +1 -1
  6. package/dist/sdk/{CxPayThreeDsProvider-lD7RyyaH.js → cxpay-CGIndAf1.js} +7 -2
  7. package/dist/sdk/{default-Sih0fC9J.js → default-CgpOZU3K.js} +1 -1
  8. package/dist/sdk/{EcentricThreeDsProvider-B7Hq90Yp.js → ecentric-F3nn_MwX.js} +8 -3
  9. package/dist/sdk/{EpnaThreeDsProvider-BAO2GROY.js → epna-uXpYJKOA.js} +7 -2
  10. package/dist/sdk/{FlashBancThreeDsProvider-CIZpoTAj.js → flashbanc-9XKA8Wrl.js} +7 -2
  11. package/dist/sdk/forter-Bm2GJ2Hs.js +59 -0
  12. package/dist/sdk/{GPaymentsThreeDsProvider-COuZ_3w6.js → gpayments-DsXj9xbu.js} +8 -3
  13. package/dist/sdk/{metrics_global-DshQOuaW.js → metrics_global-L-Rm7bcl.js} +1 -1
  14. package/dist/sdk/nmi-BzHX8wqW.js +17 -0
  15. package/dist/sdk/{NuveiThreeDsProvider-BpWi_OJA.js → nuvei-CS-nW8SB.js} +9 -4
  16. package/dist/sdk/{PayabliThreeDsProvider-B34Ah8DW.js → payabli-C4YuB7Sr.js} +7 -2
  17. package/dist/sdk/payfurl.es.js +606 -628
  18. package/dist/sdk/payfurl.umd.js +8 -7
  19. package/dist/sdk/{PayGLocalThreeDsProvider-DvA8Ng4u.js → payglocal-Cy6Qd8ve.js} +9 -4
  20. package/dist/sdk/{payway_rest-m9k6k7M0.js → payway_rest-ZMjPv2si.js} +1 -1
  21. package/dist/sdk/{SkyBankThreeDsProvider-0S5UKz-C.js → skybank-C6ZmVyX6.js} +7 -2
  22. package/dist/sdk/{strings-C1wc79_e.js → strings-A3mXSUch.js} +12 -12
  23. package/dist/sdk/style.css +1 -1
  24. package/package.json +1 -1
  25. package/dist/sdk/NmiThreeDsProvider-fLTB46dM.js +0 -12
  26. package/dist/sdk/ThreeDsAuthResponse.type-BvRk9kiK.js +0 -0
  27. package/dist/sdk/ThreeDsInitResponse.type-BvRk9kiK.js +0 -0
  28. package/dist/sdk/ThreeDsPostAuthResponse.type-BFN9wqum.js +0 -26
  29. package/dist/sdk/ThreeDsProvider.interface-BvRk9kiK.js +0 -0
  30. package/dist/sdk/cxpay-2tlxyzUF.js +0 -7
  31. package/dist/sdk/ecentric-CN_DxZw6.js +0 -7
  32. package/dist/sdk/epna-CuWMBne4.js +0 -7
  33. package/dist/sdk/flashbanc-YdmE24o7.js +0 -7
  34. package/dist/sdk/forter-CcQiwntl.js +0 -60
  35. package/dist/sdk/forterDeviceIntelScript-DdHZ7KLR.js +0 -4
  36. package/dist/sdk/fraudCheck.type-BvRk9kiK.js +0 -0
  37. package/dist/sdk/fraudProvider.type-Bzd9orn2.js +0 -7
  38. package/dist/sdk/fraudStatus.type-BvRk9kiK.js +0 -0
  39. package/dist/sdk/gpayments-DVhgcMCp.js +0 -7
  40. package/dist/sdk/nmi-Qo4scfgJ.js +0 -7
  41. package/dist/sdk/nuvei-BFllJ45f.js +0 -7
  42. package/dist/sdk/payabli-eGPashQz.js +0 -7
  43. package/dist/sdk/payglocal-WvM5v5cn.js +0 -7
  44. 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-CTY2bpwF.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-A3mXSUch.js";
3
+ import { t as Ze } from "./screen-D7xBu0cj.js";
4
+ import { n as Qe, t as I } from "./alerts-DKbyC20w.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);
@@ -1327,7 +1319,7 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1327
1319
  n("Card information is missing");
1328
1320
  return;
1329
1321
  }
1330
- Nt(), this.httpInvoker?.invoke(H(this.apiUrl)[V.TOKENISE_CARD].url, H(this.apiUrl)[V.TOKENISE_CARD].method, JSON.stringify({
1322
+ jt(), this.httpInvoker?.invoke(H(this.apiUrl)[V.TOKENISE_CARD].url, H(this.apiUrl)[V.TOKENISE_CARD].method, JSON.stringify({
1331
1323
  paymentInformation: {
1332
1324
  cardNumber: r.cardNumber,
1333
1325
  expiryDate: `${r.expiryDate.slice(2)}/${r.expiryDate.slice(0, 2)}`,
@@ -1337,40 +1329,40 @@ var { hideSpinner: Mt, showSpinner: Nt } = ke(), V = {
1337
1329
  currency: this.getCurrency(),
1338
1330
  amount: this.getAmount()
1339
1331
  }), z(this, "[tokeniseCardSuccessCallback]", (e, n) => {
1340
- this.log("tokeniseCardSuccessCallback", e, n), Mt(), t(JSON.parse(n));
1332
+ this.log("tokeniseCardSuccessCallback", e, n), At(), t(JSON.parse(n));
1341
1333
  }), z(this, "[tokeniseCardFailureCallback]", (e, t) => {
1342
- this.log("tokeniseCardFailureCallback", e, t), Mt(), n("Unable to tokenise payment information");
1334
+ this.log("tokeniseCardFailureCallback", e, t), At(), n("Unable to tokenise payment information");
1343
1335
  }), { providerId: e });
1344
1336
  }
1345
1337
  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) => {
1338
+ 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
1339
  this.log("updateTokenExternal3dsDataSuccessCallback", e, t);
1348
1340
  }, (e, t) => {
1349
- this.log("updateTokenExternal3dsDataFailureCallback", e, t), Mt();
1341
+ this.log("updateTokenExternal3dsDataFailureCallback", e, t), At();
1350
1342
  }, {});
1351
1343
  }
1352
1344
  };
1353
1345
  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
1346
  //#endregion
1355
1347
  //#region src/sdk/utils/loading.ts
1356
- var Pt = m(!1);
1348
+ var Mt = m(!1);
1357
1349
  function W() {
1358
1350
  return {
1359
- isLoading: Pt,
1351
+ isLoading: Mt,
1360
1352
  startLoading: () => {
1361
- Pt.value = !0;
1353
+ Mt.value = !0;
1362
1354
  },
1363
1355
  stopLoading: () => {
1364
- Pt.value = !1;
1356
+ Mt.value = !1;
1365
1357
  }
1366
1358
  };
1367
1359
  }
1368
1360
  //#endregion
1369
1361
  //#region src/sdk/components/PaypalForm.vue?vue&type=script&setup=true&lang.ts
1370
- var Ft = { style: { position: "relative" } }, It = {
1362
+ var Nt = { style: { position: "relative" } }, Pt = {
1371
1363
  key: 0,
1372
1364
  class: "error text-normal"
1373
- }, Lt = "payfurl-paypal-script", Rt = /* @__PURE__ */ w({
1365
+ }, Ft = "payfurl-paypal-script", It = /* @__PURE__ */ w({
1374
1366
  __name: "PaypalForm",
1375
1367
  props: {
1376
1368
  log: { type: Function },
@@ -1378,7 +1370,7 @@ var Ft = { style: { position: "relative" } }, It = {
1378
1370
  currency: {},
1379
1371
  enablePayIn4: { type: Boolean },
1380
1372
  buttonStyle: {},
1381
- onValidate: { type: Function }
1373
+ clickGate: { type: Function }
1382
1374
  },
1383
1375
  emits: [
1384
1376
  "approve",
@@ -1392,7 +1384,7 @@ var Ft = { style: { position: "relative" } }, It = {
1392
1384
  d.value = e, n.log && n.log("[Paypal]: checkout", d.value), !f && (f = !0, v());
1393
1385
  }
1394
1386
  function v() {
1395
- if (document.getElementById(Lt)) {
1387
+ if (document.getElementById(Ft)) {
1396
1388
  y();
1397
1389
  return;
1398
1390
  }
@@ -1405,10 +1397,10 @@ var Ft = { style: { position: "relative" } }, It = {
1405
1397
  let t = `https://www.paypal.com/sdk/js?${new URLSearchParams(e)}`;
1406
1398
  window.paypal = null;
1407
1399
  let r = document.createElement("script");
1408
- r.src = t, r.id = Lt, r.onload = y, document.body.appendChild(r);
1400
+ r.src = t, r.id = Ft, r.onload = y, document.body.appendChild(r);
1409
1401
  }
1410
1402
  function y() {
1411
- !window.paypal || !window.paypal.Buttons || (window.paypal.Buttons({
1403
+ window.paypal && window.paypal.Buttons && (window.paypal.Buttons({
1412
1404
  style: { color: n.buttonStyle },
1413
1405
  createOrder: function() {
1414
1406
  return d.value?.gatewayTransactionId;
@@ -1421,14 +1413,14 @@ var Ft = { style: { position: "relative" } }, It = {
1421
1413
  },
1422
1414
  onInit(e, t) {
1423
1415
  t.disable(), p = setInterval(() => {
1424
- if (n.onValidate()?.() === !1) {
1416
+ if (n.clickGate()?.() === !1) {
1425
1417
  t.disable();
1426
1418
  return;
1427
1419
  }
1428
1420
  t.enable();
1429
1421
  }, 1e3);
1430
1422
  }
1431
- }).render(n.el), window.postMessage({ status: Be }, "*"));
1423
+ }).render(n.el), window.postMessage({ status: ze }, "*"));
1432
1424
  }
1433
1425
  function b(e) {
1434
1426
  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 +1428,20 @@ var Ft = { style: { position: "relative" } }, It = {
1436
1428
  return s(() => {
1437
1429
  window.removeEventListener("message", b), p && clearInterval(p);
1438
1430
  }), 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", {
1431
+ window.addEventListener("message", b), lt(a.value, "payfurl-combined-container") || (o.value = !0, r("activate"));
1432
+ }), (e, t) => (x(), M(O, null, [j("div", Nt, [u(Re(ce, null, null, 512), [[De, _(h)]])]), j("div", {
1441
1433
  style: { position: "relative" },
1442
1434
  ref_key: "root",
1443
1435
  ref: a
1444
- }, [l.value ? (x(), M("div", It, i(l.value), 1)) : E("", !0)], 512)], 64));
1436
+ }, [l.value ? (x(), M("div", Pt, i(l.value), 1)) : E("", !0)], 512)], 64));
1445
1437
  }
1446
- }), zt = /* @__PURE__ */ f({
1447
- FRAUD_DECISION: () => Bt,
1448
- shouldStopPaymentForFraud: () => Vt
1449
- }), Bt = {
1438
+ }), Lt = {
1450
1439
  APPROVED: "Approved",
1451
1440
  DECLINED: "Declined",
1452
1441
  UNDECIDED: "Undecided"
1453
1442
  };
1454
- function Vt(e) {
1455
- return e ? e.decision === Bt.DECLINED && e.stopPaymentOnFailure === !0 : !1;
1443
+ function Rt(e) {
1444
+ return e ? e.decision === Lt.DECLINED && e.stopPaymentOnFailure === !0 : !1;
1456
1445
  }
1457
1446
  //#endregion
1458
1447
  //#region src/sdk/utils/optionCleaning.ts
@@ -1464,7 +1453,7 @@ function G(e) {
1464
1453
  }
1465
1454
  //#endregion
1466
1455
  //#region src/sdk/processors/paypalProcessor.ts
1467
- var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1456
+ var { hideSpinner: zt, showSpinner: Bt } = Oe(), Vt = class {
1468
1457
  container = null;
1469
1458
  log;
1470
1459
  apiUrl = "";
@@ -1511,14 +1500,14 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1511
1500
  this.container = e, this.fraudProcessor && (this.fraudProcessor.setAmount(n), this.fraudProcessor.setCurrency(r));
1512
1501
  let s = D({
1513
1502
  el: e,
1514
- component: Rt,
1503
+ component: It,
1515
1504
  props: {
1516
1505
  log: this.log,
1517
1506
  el: e,
1518
1507
  currency: r,
1519
1508
  enablePayIn4: !!a?.paypalEnablePayIn4,
1520
1509
  buttonStyle: a?.paypalButtonStyle,
1521
- onValidate: this.getOnValidate.bind(this)
1510
+ clickGate: this.getOnValidate.bind(this)
1522
1511
  },
1523
1512
  on: {
1524
1513
  activate: z(this, "[Paypal]: activate", () => {
@@ -1550,14 +1539,14 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1550
1539
  paymentStatus: r.value.status,
1551
1540
  payerAccountCountry: r.value.payer.address.country_code,
1552
1541
  paymentId: r.value.id
1553
- }), Ut(), this.fraudProcessor.fraudCheck((t) => {
1554
- if (Ht(), Vt(t)) {
1542
+ }), Bt(), this.fraudProcessor.fraudCheck((t) => {
1543
+ if (zt(), Rt(t)) {
1555
1544
  I(e, "Payment couldn't be processed"), this.failureCallback?.({ error: "Payment couldn't be processed" });
1556
1545
  return;
1557
1546
  }
1558
1547
  this.addCharge(e, t);
1559
1548
  }, (t) => {
1560
- Ht(), I(e, t.error), this.failureCallback?.(t);
1549
+ zt(), I(e, t.error), this.failureCallback?.(t);
1561
1550
  });
1562
1551
  }
1563
1552
  }, 200);
@@ -1607,7 +1596,7 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1607
1596
  this.log("paypal success", n);
1608
1597
  let r = JSON.parse(t), i = JSON.parse(window.atob(r.checkoutData));
1609
1598
  this.checkoutExternalId = i.externalId, window.postMessage({
1610
- status: je,
1599
+ status: Ae,
1611
1600
  component: "paypal",
1612
1601
  checkoutData: i
1613
1602
  }, "*");
@@ -1623,7 +1612,7 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1623
1612
  getSuccessAddChargeHandler(e) {
1624
1613
  return z(this, "[PayPalProcessor][getSuccessAddChargeHandler]", (t, n) => {
1625
1614
  let r = JSON.parse(n);
1626
- this.log("[getSuccessAddChargeHandler]", r), $e(e, this.getSuccessMessage()), this.successCallback?.({ transactionId: r.chargeId });
1615
+ this.log("[getSuccessAddChargeHandler]", r), Qe(e, this.getSuccessMessage()), this.successCallback?.({ transactionId: r.chargeId });
1627
1616
  });
1628
1617
  }
1629
1618
  addCharge(e, t) {
@@ -1638,20 +1627,20 @@ var { hideSpinner: Ht, showSpinner: Ut } = ke(), Wt = class {
1638
1627
  if (!e(n)) throw I(t, "Invalid amount: " + n), TypeError("invalid amount: " + n);
1639
1628
  }
1640
1629
  };
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);
1630
+ 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
1631
  //#endregion
1643
1632
  //#region src/sdk/components/CardForm.vue?vue&type=script&setup=true&lang.ts
1644
- var Gt = ["src"], Kt = {
1633
+ var Ht = ["src"], Ut = {
1645
1634
  key: 0,
1646
1635
  id: "threeDs"
1647
- }, qt = 620, Jt = /* @__PURE__ */ w({
1636
+ }, Wt = 620, Gt = /* @__PURE__ */ w({
1648
1637
  __name: "CardForm",
1649
1638
  props: {
1650
1639
  log: { type: Function },
1651
1640
  iframeSrc: {},
1652
1641
  form: {},
1653
1642
  threeDSEnabled: { type: Boolean },
1654
- onValidate: { type: Function }
1643
+ clickGate: { type: Function }
1655
1644
  },
1656
1645
  emits: [
1657
1646
  "load",
@@ -1668,7 +1657,7 @@ var Gt = ["src"], Kt = {
1668
1657
  r.form.submit();
1669
1658
  return;
1670
1659
  }
1671
- if (r.onValidate()?.() === !1) return;
1660
+ if (r.clickGate()?.() === !1) return;
1672
1661
  i("submit");
1673
1662
  }
1674
1663
  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 +1683,18 @@ var Gt = ["src"], Kt = {
1694
1683
  }
1695
1684
  function y(e) {
1696
1685
  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}`)));
1686
+ 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
1687
  }
1699
1688
  return (e, t) => (x(), M(O, null, [j("iframe", {
1700
1689
  src: o.value,
1701
1690
  onLoad: g,
1702
1691
  ref_key: "iframe",
1703
1692
  ref: a,
1704
- style: We(`height:${_(200)}px`),
1693
+ style: Ue(`height:${_(200)}px`),
1705
1694
  id: "payfurl-card-iframe"
1706
- }, null, 44, Gt), l.value ? (x(), M("div", Kt)) : E("", !0)], 64));
1695
+ }, null, 44, Ht), l.value ? (x(), M("div", Ut)) : E("", !0)], 64));
1707
1696
  }
1708
- }), Yt = class {
1697
+ }), Kt = class {
1709
1698
  log;
1710
1699
  startLoadingCardFormHandler = null;
1711
1700
  constructor(e) {
@@ -1748,7 +1737,7 @@ var Gt = ["src"], Kt = {
1748
1737
  pauseLoadingCardForm() {
1749
1738
  let e = this.getCardFormFrame();
1750
1739
  if (e) try {
1751
- e.contentWindow?.postMessage({ status: me }, "*");
1740
+ e.contentWindow?.postMessage({ status: pe }, "*");
1752
1741
  } catch (e) {
1753
1742
  this.log("[pauseLoadingCardForm] iframe error", e);
1754
1743
  }
@@ -1756,7 +1745,7 @@ var Gt = ["src"], Kt = {
1756
1745
  unpauseLoadingCardForm() {
1757
1746
  let e = this.getCardFormFrame();
1758
1747
  if (e) try {
1759
- e.contentWindow?.postMessage({ status: ue }, "*");
1748
+ e.contentWindow?.postMessage({ status: le }, "*");
1760
1749
  } catch (e) {
1761
1750
  this.log("[unpauseLoadingCardForm] iframe error", e);
1762
1751
  }
@@ -1764,14 +1753,14 @@ var Gt = ["src"], Kt = {
1764
1753
  showMessage(e) {
1765
1754
  let t = this.getCardFormFrame();
1766
1755
  t && t.contentWindow?.postMessage({
1767
- status: De,
1756
+ status: Ee,
1768
1757
  message: e
1769
1758
  }, "*");
1770
1759
  }
1771
1760
  showInfoMessage(e) {
1772
1761
  let t = this.getCardFormFrame();
1773
1762
  t && t.contentWindow?.postMessage({
1774
- status: Re,
1763
+ status: Le,
1775
1764
  message: e
1776
1765
  }, "*");
1777
1766
  }
@@ -1784,11 +1773,11 @@ var Gt = ["src"], Kt = {
1784
1773
  }
1785
1774
  }
1786
1775
  };
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);
1776
+ 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
1777
  //#endregion
1789
1778
  //#region src/utils/networkTokenOptions.ts
1790
- function Xt(e) {
1791
- return e === Ke.PRODUCTION ? {
1779
+ function qt(e) {
1780
+ return e === Ge.PRODUCTION ? {
1792
1781
  acquirerMerchantId: "550e8400",
1793
1782
  acquirerBIN: "444444",
1794
1783
  authenticationReasons: ["TRANSACTION_AUTHENTICATION"]
@@ -1800,10 +1789,10 @@ function Xt(e) {
1800
1789
  }
1801
1790
  //#endregion
1802
1791
  //#region src/sdk/processors/networkToken/mastercardTokenAuthenticationProcessor.ts
1803
- var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en = (e, t) => ({ [$t.UPDATE]: {
1792
+ var { hideSpinner: Jt, showSpinner: Yt } = Oe(), Xt = { UPDATE: "UPDATE" }, Zt = (e, t) => ({ [Xt.UPDATE]: {
1804
1793
  url: e + ("/token/" + t + "/authentication"),
1805
1794
  method: "PUT"
1806
- } }), tn = class extends Yt {
1795
+ } }), Qt = class extends Kt {
1807
1796
  environment;
1808
1797
  token;
1809
1798
  networkToken;
@@ -1820,7 +1809,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1820
1809
  onFailureCallback;
1821
1810
  constructor(e, t) {
1822
1811
  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);
1812
+ let n = qt(this.environment);
1824
1813
  this.networkTokenOptions = {
1825
1814
  ...n,
1826
1815
  ...t.networkTokenOptions
@@ -1910,7 +1899,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1910
1899
  modalShow() {
1911
1900
  if (this.modal) return;
1912
1901
  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,
1902
+ Jt(), he(this.networkTokenAuthenticateUrl) && (this.modal = window.open(this.networkTokenAuthenticateUrl + "?origin=" + window.location.origin, "targetWindow", `toolbar=no,
1914
1903
  location=no,
1915
1904
  status=no,
1916
1905
  menubar=no,
@@ -1922,7 +1911,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1922
1911
  left=${o}`));
1923
1912
  }
1924
1913
  modalHide() {
1925
- this.modal && (Qt(), this.modal.close());
1914
+ this.modal && (Yt(), this.modal.close());
1926
1915
  }
1927
1916
  updateToken(e) {
1928
1917
  if (this.log("[MastercardTokenAuthenticationProcessor][updateToken]", e), !e.assuranceData?.verificationData.length) {
@@ -1934,7 +1923,7 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1934
1923
  return;
1935
1924
  }
1936
1925
  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({
1926
+ this.httpInvoker?.invoke(Zt(this.apiUrl, this.token)[Xt.UPDATE].url, Zt(this.apiUrl, this.token)[Xt.UPDATE].method, JSON.stringify({
1938
1927
  VerificationType: t.verificationType,
1939
1928
  VerificationEntity: t.verificationEntity,
1940
1929
  VerificationMethod: t.verificationMethod,
@@ -1949,22 +1938,22 @@ var { hideSpinner: Zt, showSpinner: Qt } = ke(), $t = { UPDATE: "UPDATE" }, en =
1949
1938
  }));
1950
1939
  }
1951
1940
  };
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);
1941
+ 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
1942
  //#endregion
1954
1943
  //#region src/sdk/processors/cardProcessor.ts
1955
- var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
1944
+ var { hideSpinner: K, showSpinner: $t } = Oe(), en = {
1956
1945
  TOKENISE_CARD: "TOKENISE_CARD",
1957
1946
  GET_PROVIDER_INFO: "GET_PROVIDER_INFO"
1958
- }, an = (e, t, n) => ({
1959
- [rn.TOKENISE_CARD]: {
1947
+ }, tn = (e, t, n) => ({
1948
+ [en.TOKENISE_CARD]: {
1960
1949
  url: e + "/token/card",
1961
1950
  method: "POST"
1962
1951
  },
1963
- [rn.GET_PROVIDER_INFO]: {
1952
+ [en.GET_PROVIDER_INFO]: {
1964
1953
  url: e + "/info/providers/" + t,
1965
1954
  method: "GET"
1966
1955
  }
1967
- }), q = class extends Yt {
1956
+ }), q = class extends Kt {
1968
1957
  container = null;
1969
1958
  iframe = null;
1970
1959
  form = null;
@@ -2055,7 +2044,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2055
2044
  options: a
2056
2045
  }), 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
2046
  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);
2047
+ 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
2048
  let s = Object.keys(a?.networkTokenOptions || {}).length ? a?.networkTokenOptions : a?.clickToPayOptions?.networkTokenOptions;
2060
2049
  a?.clickToPayEnabled && this.clickToPayProcessor && (this.clickToPayProcessor.setAmount(r), this.clickToPayProcessor.setCurrency(i), this.clickToPayProcessor.setCustomerInfo({
2061
2050
  ...this.customer || {},
@@ -2068,13 +2057,13 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2068
2057
  }), 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
2058
  let c = D({
2070
2059
  el: this.container,
2071
- component: Jt,
2060
+ component: Gt,
2072
2061
  props: {
2073
2062
  log: this.log,
2074
2063
  iframeSrc: this.url,
2075
2064
  form: this.form,
2076
2065
  threeDSEnabled: this.threeDSEnabled,
2077
- onValidate: this.getOnValidate.bind(this)
2066
+ clickGate: this.getOnValidate.bind(this)
2078
2067
  },
2079
2068
  on: {
2080
2069
  load: z(this, "[addCard], onload", (e) => {
@@ -2109,7 +2098,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2109
2098
  } : null;
2110
2099
  this.secureConfig = t;
2111
2100
  let c = {
2112
- status: Ve,
2101
+ status: Be,
2113
2102
  environment: this.environment,
2114
2103
  debug: this.debug,
2115
2104
  publicKey: this.publicKey,
@@ -2119,7 +2108,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2119
2108
  currency: i,
2120
2109
  vault: A(a?.vault),
2121
2110
  verifyCard: A(a?.verifyCard),
2122
- showEmail: a?.threeDSEnabled && !Ae(o),
2111
+ showEmail: a?.threeDSEnabled && !ke(o),
2123
2112
  visProviderId: a?.visProviderId,
2124
2113
  requiredFields: a?.requiredFields,
2125
2114
  clickToPayEnabled: a?.clickToPayEnabled,
@@ -2131,13 +2120,13 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2131
2120
  let t = new MessageChannel();
2132
2121
  this.setCardDetailsPort(t.port1), e?.contentWindow?.postMessage(c, "*", [t.port2]);
2133
2122
  } else e?.contentWindow?.postMessage(c, "*");
2134
- this.customer?.phoneNumber && !pe(String(this.customer?.phoneNumber)) && this.getCardFormFrame()?.contentWindow?.postMessage({
2135
- status: De,
2123
+ this.customer?.phoneNumber && !fe(String(this.customer?.phoneNumber)) && this.getCardFormFrame()?.contentWindow?.postMessage({
2124
+ status: Ee,
2136
2125
  message: "Invalid phone number"
2137
2126
  }, "*");
2138
2127
  }),
2139
2128
  submit: z(this, "[addCard], onsubmit", () => {
2140
- this.log("[CardProcessor]: submit event"), nn(), this.requestCardDetails();
2129
+ this.log("[CardProcessor]: submit event"), $t(), this.requestCardDetails();
2141
2130
  })
2142
2131
  }
2143
2132
  });
@@ -2175,7 +2164,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2175
2164
  return;
2176
2165
  }
2177
2166
  if (e.data.status === "show-spinner") {
2178
- this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), nn();
2167
+ this.log(`[sdk][cardProcessor]: message "${e.data.status}" received`, e.data), $t();
2179
2168
  return;
2180
2169
  }
2181
2170
  if (e.data.status === "card-form-validation-error") {
@@ -2219,14 +2208,14 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2219
2208
  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
2209
  if (n) {
2221
2210
  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);
2211
+ this.log("[sdk][cardProcessor], token authentication success"), K(), Qe(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2223
2212
  }), z(this, "[sdk][cardProcessor], token authentication error", (e) => {
2224
2213
  K(), this.log("[sdk][cardProcessor], token authentication error", e);
2225
2214
  }));
2226
2215
  return;
2227
2216
  }
2228
2217
  }
2229
- K(), $e(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2218
+ K(), Qe(this.container, this.getSuccessMessage()), this.successCallback?.(t);
2230
2219
  return;
2231
2220
  }
2232
2221
  }
@@ -2268,7 +2257,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2268
2257
  this.secureConfig?.clickToPay && this.clickToPayProcessor && this.postSecureMessage(S, { clickToPay: {
2269
2258
  ...this.secureConfig.clickToPay,
2270
2259
  rememberMe: this.clickToPayProcessor.getRememberMe()
2271
- } }), this.postSecureMessage(Ce);
2260
+ } }), this.postSecureMessage(Se);
2272
2261
  return;
2273
2262
  }
2274
2263
  if (this.cardDetailsPort) {
@@ -2279,7 +2268,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2279
2268
  }
2280
2269
  handleCardDetailsMessage(e) {
2281
2270
  if (!e?.message) return;
2282
- this.log(`[sdk][cardProcessor]: "${Pe}" message received`, e);
2271
+ this.log(`[sdk][cardProcessor]: "${Ne}" message received`, e);
2283
2272
  let t = !!(this.clickToPayProcessor?.isEnabled() && this.clickToPayProcessor?.getRememberMe()), n = !!(this.clickToPayProcessor?.isEnabled() && e.message.srcDigitalCardId), r = !!(t && !n && e.message.cardNumber);
2284
2273
  if (r && !this.clickToPayProcessor?.isSchemeSupported(e.message.cardNumber)) {
2285
2274
  this.log("[clickToPayProcessor]: checkoutWithNewCard - Scheme is not supported!"), K(), this.showMessage("Please use another card or use an alternative payment method");
@@ -2287,7 +2276,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2287
2276
  }
2288
2277
  if (n) {
2289
2278
  K(), this.clickToPayProcessor?.checkoutWithCard(e.message, (t) => {
2290
- this.log("[clickToPayProcessor]: checkoutWithCard", t), t.checkoutActionCode !== "CANCEL" && t.checkoutActionCode !== "CHANGE_CARD" && (nn(), this.tokenise({ clickToPayInfo: {
2279
+ this.log("[clickToPayProcessor]: checkoutWithCard", t), t.checkoutActionCode !== "CANCEL" && t.checkoutActionCode !== "CHANGE_CARD" && ($t(), this.tokenise({ clickToPayInfo: {
2291
2280
  correlationId: t.checkoutResponseData.srcCorrelationId,
2292
2281
  srcFlowId: t.headers["x-src-cx-flow-id"],
2293
2282
  merchantTransactionId: t.headers["merchant-transaction-id"],
@@ -2315,8 +2304,8 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2315
2304
  cardholder: e.message.cardholder,
2316
2305
  ccv: e.message.ccv
2317
2306
  }), 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)) {
2307
+ $t(), this.fraudProcessor.fraudCheck(z(this, "[fraudProcessor][fraudCheck], success", (t) => {
2308
+ if (Rt(t)) {
2320
2309
  K(), I(this.container, "Payment couldn't be processed"), this.failureCallback?.({ error: "Payment couldn't be processed" });
2321
2310
  return;
2322
2311
  }
@@ -2342,7 +2331,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2342
2331
  if (this.log("[cardProcessor]: onSubmit", {
2343
2332
  cardInfo: {
2344
2333
  ...e,
2345
- cardNumber: qe(e.cardNumber),
2334
+ cardNumber: Ke(e.cardNumber),
2346
2335
  ccv: "***"
2347
2336
  },
2348
2337
  fraudCheckResult: t
@@ -2364,7 +2353,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2364
2353
  }
2365
2354
  tokenise(e) {
2366
2355
  if (this.log("[cardProcessor]: tokenise", e), !this.iframe) return;
2367
- nn();
2356
+ $t();
2368
2357
  let t = {
2369
2358
  status: h,
2370
2359
  threeDSServerTransID: e.threeDSServerTransID,
@@ -2386,7 +2375,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2386
2375
  }
2387
2376
  tokeniseWithClickToPay(e, t, n) {
2388
2377
  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({
2378
+ this.log("[clickToPayProcessor]: checkoutWithNewCard", r), r.checkoutActionCode !== "CANCEL" && ($t(), this.tokenise({
2390
2379
  threeDSServerTransID: t,
2391
2380
  fraudCheckResult: n,
2392
2381
  clickToPayInfo: {
@@ -2403,7 +2392,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2403
2392
  }
2404
2393
  checkoutWithSecureClickToPayCard(e) {
2405
2394
  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: {
2395
+ this.log("[clickToPayProcessor]: secure checkoutWithCard", e), e.checkoutActionCode !== "CANCEL" && e.checkoutActionCode !== "CHANGE_CARD" && ($t(), this.tokenise({ clickToPayInfo: {
2407
2396
  correlationId: e.checkoutResponseData.srcCorrelationId,
2408
2397
  srcFlowId: e.headers["x-src-cx-flow-id"],
2409
2398
  merchantTransactionId: e.headers["merchant-transaction-id"],
@@ -2419,7 +2408,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2419
2408
  return;
2420
2409
  }
2421
2410
  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: {
2411
+ this.log("[clickToPayProcessor]: secure checkoutWithEncryptedNewCard", e), e.checkoutActionCode !== "CANCEL" && ($t(), this.tokenise({ clickToPayInfo: {
2423
2412
  correlationId: e.checkoutResponseData.srcCorrelationId,
2424
2413
  srcFlowId: e.headers["x-src-cx-flow-id"],
2425
2414
  merchantTransactionId: e.headers["merchant-transaction-id"],
@@ -2458,19 +2447,19 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2458
2447
  this.log("missing parameter: providerId"), this.failureCallback?.({ error: "missing parameter: providerId" });
2459
2448
  return;
2460
2449
  }
2461
- if (!ve(t)) {
2450
+ if (!_e(t)) {
2462
2451
  this.log("wrong parameter: cardNumber"), this.failureCallback?.({ error: "wrong parameter: cardNumber" });
2463
2452
  return;
2464
2453
  }
2465
- if (!Se(n)) {
2454
+ if (!xe(n)) {
2466
2455
  this.log("wrong parameter: expiryDate"), this.failureCallback?.({ error: "wrong parameter: expiryDate" });
2467
2456
  return;
2468
2457
  }
2469
- if (!Le(i)) {
2458
+ if (!Ie(i)) {
2470
2459
  this.log("wrong parameter: ccv"), this.failureCallback?.({ error: "wrong parameter: ccv" });
2471
2460
  return;
2472
2461
  }
2473
- this.httpInvoker?.invoke(an(this.apiUrl, e)[rn.TOKENISE_CARD].url, an(this.apiUrl, e)[rn.TOKENISE_CARD].method, JSON.stringify({
2462
+ this.httpInvoker?.invoke(tn(this.apiUrl, e)[en.TOKENISE_CARD].url, tn(this.apiUrl, e)[en.TOKENISE_CARD].method, JSON.stringify({
2474
2463
  paymentInformation: {
2475
2464
  cardNumber: t,
2476
2465
  expiryDate: n,
@@ -2516,7 +2505,7 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2516
2505
  });
2517
2506
  let o = (i?.scheme || "").toLowerCase(), s = this.networkTokenProviders.find((e) => e.providerType.toLowerCase() === o);
2518
2507
  switch (String(s?.providerType).toLowerCase()) {
2519
- case "mastercard": return new tn(this.log.bind(this), {
2508
+ case "mastercard": return new Qt(this.log.bind(this), {
2520
2509
  container: this.container,
2521
2510
  token: e,
2522
2511
  networkToken: t,
@@ -2535,43 +2524,43 @@ var { hideSpinner: K, showSpinner: nn } = ke(), rn = {
2535
2524
  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
2525
  //#endregion
2537
2526
  //#region src/sdk/utils/error.ts
2538
- var on = m("");
2539
- function sn() {
2527
+ var nn = m("");
2528
+ function rn() {
2540
2529
  return {
2541
- errorMessage: on,
2530
+ errorMessage: nn,
2542
2531
  showErrorMessage: (e) => {
2543
- on.value = e;
2532
+ nn.value = e;
2544
2533
  },
2545
2534
  hideErrorMessage: () => {
2546
- on.value = "";
2535
+ nn.value = "";
2547
2536
  }
2548
2537
  };
2549
2538
  }
2550
2539
  //#endregion
2551
2540
  //#region src/sdk/components/PayToForm.vue?vue&type=script&setup=true&lang.ts
2552
- var cn = {
2541
+ var an = {
2553
2542
  id: "payfurl-payto-form",
2554
2543
  class: "payfurl-form"
2555
- }, ln = {
2544
+ }, on = {
2556
2545
  key: 0,
2557
2546
  class: "error text-normal"
2558
- }, un = { class: "row" }, dn = { class: "row" }, fn = { class: "row" }, pn = ["placeholder"], mn = {
2547
+ }, sn = { class: "row" }, cn = { class: "row" }, ln = { class: "row" }, un = ["placeholder"], dn = {
2559
2548
  key: 0,
2560
2549
  class: "small"
2561
- }, hn = {
2550
+ }, fn = {
2562
2551
  key: 1,
2563
2552
  class: "error"
2564
- }, gn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2553
+ }, pn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2565
2554
  __name: "PayToForm",
2566
2555
  props: {
2567
2556
  log: { type: Function },
2568
- onValidate: { type: Function }
2557
+ clickGate: { type: Function }
2569
2558
  },
2570
2559
  emits: ["submit"],
2571
2560
  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();
2561
+ 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
2562
  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 === "";
2563
+ 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
2564
  }
2576
2565
  function y(e) {
2577
2566
  if (e?.data?.status) {
@@ -2580,11 +2569,11 @@ var cn = {
2580
2569
  payerName: l.value,
2581
2570
  payIdType: d.value,
2582
2571
  payId: f.value
2583
- }), !v()) || n.onValidate()?.() === !1) return;
2572
+ }), !v()) || n.clickGate()?.() === !1) return;
2584
2573
  r("submit", {
2585
2574
  payerName: l.value,
2586
2575
  payIdType: d.value,
2587
- payId: d.value === "PHONE" ? Me(f.value) : String(f.value).toLowerCase().replace(/ /g, "")
2576
+ payId: d.value === "PHONE" ? je(f.value) : String(f.value).toLowerCase().replace(/ /g, "")
2588
2577
  });
2589
2578
  }
2590
2579
  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 +2582,60 @@ var cn = {
2593
2582
  return c(() => {
2594
2583
  window.addEventListener("message", y), window.addEventListener("keypress", function(e) {
2595
2584
  e.altKey && e.code === "KeyP" && (e.preventDefault(), l.value = "test", d.value = "ABN", f.value = "67384721620");
2596
- }), window.postMessage({ status: Be }, "*");
2585
+ }), window.postMessage({ status: ze }, "*");
2597
2586
  }), s(() => {
2598
2587
  window.removeEventListener("message", y);
2599
- }), (e, t) => (x(), M("div", cn, [u(ze(le, null, null, 512), [[Oe, _(o)]]), j("div", {
2588
+ }), (e, t) => (x(), M("div", an, [u(Re(ce, null, null, 512), [[De, _(o)]]), j("div", {
2600
2589
  class: "container-form",
2601
- style: We(`visibility: ${_(o) ? "hidden" : "visible"}`)
2590
+ style: Ue(`visibility: ${_(o) ? "hidden" : "visible"}`)
2602
2591
  }, [
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", {
2592
+ _(g) ? (x(), M("div", on, i(_(g)), 1)) : E("", !0),
2593
+ j("div", sn, [t[3] ||= j("label", null, "Payer Name", -1), j("div", null, [u(j("input", {
2605
2594
  type: "text",
2606
2595
  maxlength: "100",
2607
2596
  placeholder: "Payer Name",
2608
2597
  "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] ||= [
2598
+ }, null, 512), [[Me, l.value]])])]),
2599
+ 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
2600
  j("option", { value: "PHONE" }, "Phone", -1),
2612
2601
  j("option", { value: "EMAIL" }, "Email", -1),
2613
2602
  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, [
2603
+ ]], 512), [[ye, d.value]])])]),
2604
+ j("div", ln, [t[6] ||= j("label", null, " Pay Id ", -1), j("div", null, [
2616
2605
  u(j("input", {
2617
2606
  type: "text",
2618
2607
  maxlength: "100",
2619
2608
  placeholder: p.value,
2620
2609
  "onUpdate:modelValue": t[2] ||= (e) => f.value = e,
2621
2610
  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)
2611
+ }, null, 40, un), [[Me, f.value]]),
2612
+ d.value === "PHONE" ? (x(), M("div", dn, "(mobile or landline with area code)")) : E("", !0),
2613
+ a.value.payId ? (x(), M("p", fn, i(a.value.payId), 1)) : E("", !0)
2625
2614
  ])])
2626
2615
  ], 4)]));
2627
2616
  }
2628
- }), [["__scopeId", "data-v-abff4886"]]), _n = {
2617
+ }), [["__scopeId", "data-v-3e5bba92"]]), mn = {
2629
2618
  id: "payfurl-payto-agreement",
2630
2619
  class: "payfurl-form"
2631
- }, vn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2620
+ }, hn = /*#__PURE__*/ T(/* @__PURE__ */ w({
2632
2621
  __name: "PayToAgreement",
2633
2622
  props: { debug: { type: Boolean } },
2634
2623
  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)]));
2624
+ return (e, t) => (x(), M("div", mn, [Re(ce), t[0] ||= j("div", { class: "message" }, "Approve the agreement in your banking app", -1)]));
2636
2625
  }
2637
- }), [["__scopeId", "data-v-f06289bf"]]), yn = {
2626
+ }), [["__scopeId", "data-v-f06289bf"]]), gn = {
2638
2627
  TOKENISE: "TOKENISE",
2639
2628
  TOKEN_STATUS: "TOKEN_STATUS"
2640
- }, bn = (e, t) => ({
2641
- [yn.TOKENISE]: {
2629
+ }, _n = (e, t) => ({
2630
+ [gn.TOKENISE]: {
2642
2631
  url: e + "/token/payto",
2643
2632
  method: "POST"
2644
2633
  },
2645
- [yn.TOKEN_STATUS]: {
2634
+ [gn.TOKEN_STATUS]: {
2646
2635
  url: e + "/token/" + t,
2647
2636
  method: "GET"
2648
2637
  }
2649
- }), xn = class {
2638
+ }), vn = class {
2650
2639
  container = null;
2651
2640
  log;
2652
2641
  apiUrl = "";
@@ -2683,11 +2672,11 @@ var cn = {
2683
2672
  if (i.maximumAmount ||= 1e3, i.maximumAmount < 0 || i.maximumAmount > 9999) throw I(t, "Invalid maximum amount: " + i.maximumAmount), TypeError("invalid maximumAmount: " + i.maximumAmount);
2684
2673
  let a = D({
2685
2674
  el: this.container,
2686
- component: gn,
2675
+ component: pn,
2687
2676
  props: {
2688
2677
  el: this.container,
2689
2678
  log: this.log,
2690
- onValidate: this.getOnValidate.bind(this)
2679
+ clickGate: this.getOnValidate.bind(this)
2691
2680
  },
2692
2681
  on: { submit: z(this, "[PayTo]: submit", (e) => {
2693
2682
  this.log("[PayTo]: submit payto form", e), W().startLoading(), setTimeout(() => {
@@ -2709,7 +2698,7 @@ var cn = {
2709
2698
  },
2710
2699
  metadata: this.options?.metadata
2711
2700
  };
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));
2701
+ 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
2702
  }
2714
2703
  successPayToHandler = z(this, "[PayTo][tokenise][successPayToHandler]", (e, t) => {
2715
2704
  this.log("successPayToHandler", e, t);
@@ -2717,7 +2706,7 @@ var cn = {
2717
2706
  if (!n || !n?.tokenId) return this.failurePayToHandler(e, t);
2718
2707
  this.tokenId = n.tokenId, D({
2719
2708
  el: this.container,
2720
- component: vn,
2709
+ component: hn,
2721
2710
  props: {
2722
2711
  el: this.container,
2723
2712
  log: this.log
@@ -2725,7 +2714,7 @@ var cn = {
2725
2714
  }), this.checkAgreement();
2726
2715
  });
2727
2716
  failurePayToHandler = z(this, "[PayTo][tokenise][failurePayToHandler]", (e, t) => {
2728
- this.log("failurePayToHandler", e, t), W().stopLoading(), sn().showErrorMessage("Invalid payment details");
2717
+ this.log("failurePayToHandler", e, t), W().stopLoading(), rn().showErrorMessage("Invalid payment details");
2729
2718
  });
2730
2719
  failurePayToAgreementHandler = z(this, "[PayTo][tokenise][failurePayToAgreementHandler]", (e, t) => {
2731
2720
  W().stopLoading(), this.log("failurePayToAgreementHandler", e, t), I(this.container, "Agreement has been canceled"), this.failureCallback?.({
@@ -2734,10 +2723,10 @@ var cn = {
2734
2723
  });
2735
2724
  });
2736
2725
  successPayToAgreementHandler() {
2737
- W().stopLoading(), this.log("success agreement", this.tokenId), $e(this.container, "PayTo Agreement Approved"), this.successCallback?.({ token: this.tokenId });
2726
+ W().stopLoading(), this.log("success agreement", this.tokenId), Qe(this.container, "PayTo Agreement Approved"), this.successCallback?.({ token: this.tokenId });
2738
2727
  }
2739
2728
  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) => {
2729
+ 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
2730
  this.log("checkAgreement", e, t);
2742
2731
  let n = JSON.parse(t);
2743
2732
  if (!n) return clearInterval(this.checkAgreementHandler), this.failurePayToAgreementHandler(e, t);
@@ -2745,7 +2734,7 @@ var cn = {
2745
2734
  }), z(this, "[checkAgreement], failure", (e, t) => (this.log("checkAgreement", e, t), clearInterval(this.checkAgreementHandler), this.failurePayToAgreementHandler(e, t))));
2746
2735
  }
2747
2736
  };
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);
2737
+ 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
2738
  //#endregion
2750
2739
  //#region src/sdk/checkout/checkoutProvider.type.ts
2751
2740
  var J;
@@ -2754,7 +2743,7 @@ var J;
2754
2743
  })(J ||= {});
2755
2744
  //#endregion
2756
2745
  //#region src/sdk/checkout/checkoutOptions.ts
2757
- var Sn = {
2746
+ var yn = {
2758
2747
  [J.AZUPAY]: {
2759
2748
  name: "PayID",
2760
2749
  description: "",
@@ -3139,10 +3128,10 @@ var Sn = {
3139
3128
  buttonTitle: "Pay with eRaty",
3140
3129
  icon: "Eraty"
3141
3130
  }
3142
- }, Cn = { class: "modal-header" }, wn = { class: "main-title" }, Tn = { class: "modal-body" }, En = {
3131
+ }, bn = { class: "modal-header" }, xn = { class: "main-title" }, Sn = { class: "modal-body" }, Cn = {
3143
3132
  key: 0,
3144
3133
  class: "modal-footer"
3145
- }, Dn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3134
+ }, wn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3146
3135
  __name: "Modal",
3147
3136
  props: {
3148
3137
  width: {},
@@ -3159,31 +3148,31 @@ var Sn = {
3159
3148
  function o() {
3160
3149
  r.backdrop !== "static" && a();
3161
3150
  }
3162
- let s = y(), c = de(() => !!s.footer), l = de(() => {
3151
+ let s = y(), c = ue(() => !!s.footer), l = ue(() => {
3163
3152
  let e = [];
3164
3153
  return r.width && e.push(`width: ${r.width}`), r.height && e.push(`height: ${r.height}`), e.join(";");
3165
- }), u = de(() => r.mode == "confirm" ? "small" : "");
3154
+ }), u = ue(() => r.mode == "confirm" ? "small" : "");
3166
3155
  return (e, t) => (x(), M("div", {
3167
3156
  class: "modal-mask",
3168
- onMousedown: xe(o, ["self"])
3157
+ onMousedown: be(o, ["self"])
3169
3158
  }, [j("div", {
3170
3159
  class: ne(["modal-wrapper", u.value]),
3171
3160
  role: "document",
3172
- onClick: t[0] ||= xe(() => {}, ["stop"])
3161
+ onClick: t[0] ||= be(() => {}, ["stop"])
3173
3162
  }, [j("div", {
3174
3163
  class: "modal-content",
3175
- style: We(l.value)
3164
+ style: Ue(l.value)
3176
3165
  }, [
3177
- j("div", Cn, [j("div", {
3166
+ j("div", bn, [j("div", {
3178
3167
  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),
3168
+ onClick: be(a, ["stop"])
3169
+ }, [Re(Fe, { size: 15 })]), j("div", xn, [n(e.$slots, "title", {}, void 0, !0)])]),
3170
+ j("div", Sn, [n(e.$slots, "body", {}, void 0, !0)]),
3171
+ c.value ? (x(), M("div", Cn, [n(e.$slots, "footer", {}, void 0, !0)])) : E("", !0),
3183
3172
  n(e.$slots, "default", {}, void 0, !0)
3184
3173
  ], 4)], 2)], 32));
3185
3174
  }
3186
- }), [["__scopeId", "data-v-2b2c8fc7"]]), On = ["src"], kn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3175
+ }), [["__scopeId", "data-v-2b2c8fc7"]]), Tn = ["src"], En = /*#__PURE__*/ T(/* @__PURE__ */ w({
3187
3176
  __name: "CheckoutPopup",
3188
3177
  props: {
3189
3178
  url: {},
@@ -3194,7 +3183,7 @@ var Sn = {
3194
3183
  let n = e, r = t, a = m(n.url);
3195
3184
  return m(null), b(() => n.url, (e) => {
3196
3185
  a.value = e;
3197
- }), c(() => {}), (t, n) => (x(), He(Dn, {
3186
+ }), c(() => {}), (t, n) => (x(), Ve(wn, {
3198
3187
  width: "80vw",
3199
3188
  height: "80vh",
3200
3189
  backdrop: "static",
@@ -3204,23 +3193,23 @@ var Sn = {
3204
3193
  body: C(() => [j("iframe", {
3205
3194
  src: a.value,
3206
3195
  sandbox: "allow-same-origin allow-scripts allow-popups allow-forms"
3207
- }, null, 8, On)]),
3196
+ }, null, 8, Tn)]),
3208
3197
  _: 1
3209
3198
  }));
3210
3199
  }
3211
- }), [["__scopeId", "data-v-5d26ad8f"]]), An = ["id"], jn = {
3200
+ }), [["__scopeId", "data-v-5d26ad8f"]]), Dn = ["id"], On = {
3212
3201
  key: 0,
3213
3202
  class: "error text-normal"
3214
- }, Mn = { class: "row" }, Nn = {
3203
+ }, kn = { class: "row" }, An = {
3215
3204
  key: 1,
3216
3205
  class: "error"
3217
- }, Pn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3206
+ }, jn = /*#__PURE__*/ T(/* @__PURE__ */ w({
3218
3207
  __name: "CheckoutForm",
3219
3208
  props: {
3220
3209
  log: { type: Function },
3221
3210
  providerType: {},
3222
3211
  options: {},
3223
- onValidate: { type: Function }
3212
+ clickGate: { type: Function }
3224
3213
  },
3225
3214
  emits: [
3226
3215
  "activate",
@@ -3231,13 +3220,13 @@ var Sn = {
3231
3220
  "newWindowClose"
3232
3221
  ],
3233
3222
  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(() => {
3223
+ 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
3224
  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);
3225
+ return !e || !he(e) ? "" : p.value ? e : `${e}${e.includes("?") ? "&" : "?"}embedded=true`;
3226
+ }), S = m(!1), C = m(!1), ee = ue(() => b.value && !S.value && !C.value);
3238
3227
  function te(e) {
3239
3228
  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)) {
3229
+ 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
3230
  let t = JSON.parse(e.data.originalError);
3242
3231
  t?.message && (f.value = t.message);
3243
3232
  }
@@ -3245,7 +3234,7 @@ var Sn = {
3245
3234
  }
3246
3235
  }
3247
3236
  function ne() {
3248
- if (f.value = "", n.onValidate()?.() !== !1) {
3237
+ if (f.value = "", n.clickGate()?.() !== !1) {
3249
3238
  if (p.value) {
3250
3239
  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
3240
  h = window.open(b.value, "_blank", `popup=yes,
@@ -3267,12 +3256,12 @@ var Sn = {
3267
3256
  S.value = !1, C.value = !1, h?.close(), r("popupClose");
3268
3257
  }
3269
3258
  return c(() => {
3270
- window.addEventListener("message", te), dt(a.value, "payfurl-combined-container") || (l.value = !0, r("activate", n.options));
3259
+ window.addEventListener("message", te), lt(a.value, "payfurl-combined-container") || (l.value = !0, r("activate", n.options));
3271
3260
  }), s(() => {
3272
3261
  window.removeEventListener("message", te);
3273
3262
  }), (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, {
3263
+ u(Re(ce, { "use-local": "" }, null, 512), [[De, !b.value]]),
3264
+ C.value && !S.value ? (x(), Ve(ce, {
3276
3265
  key: 0,
3277
3266
  message: "Finalise the payment"
3278
3267
  })) : E("", !0),
@@ -3283,13 +3272,13 @@ var Sn = {
3283
3272
  ref: a
3284
3273
  }, [j("div", {
3285
3274
  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", {
3275
+ style: Ue(`visibility: ${_(o) ? "hidden" : "visible"}`)
3276
+ }, [_(v) ? (x(), M("div", On, i(_(v)), 1)) : E("", !0), j("div", kn, [ee.value ? (x(), M("button", {
3288
3277
  key: 0,
3289
3278
  onClick: ne,
3290
3279
  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, {
3280
+ }, i(y.value), 1)) : E("", !0), f.value ? (x(), M("p", An, i(f.value), 1)) : E("", !0)])], 4)], 8, Dn),
3281
+ S.value ? (x(), Ve(En, {
3293
3282
  key: 1,
3294
3283
  onClose: re,
3295
3284
  url: b.value,
@@ -3297,19 +3286,19 @@ var Sn = {
3297
3286
  }, null, 8, ["url", "name"])) : E("", !0)
3298
3287
  ], 64));
3299
3288
  }
3300
- }), [["__scopeId", "data-v-2c4ce814"]]), Fn = {
3289
+ }), [["__scopeId", "data-v-8fc4cc32"]]), Mn = {
3301
3290
  CHECKOUT: "CHECKOUT",
3302
3291
  CHECK_STATUS: "CHECK_STATUS"
3303
- }, In = (e, t) => ({
3304
- [Fn.CHECKOUT]: {
3292
+ }, Nn = (e, t) => ({
3293
+ [Mn.CHECKOUT]: {
3305
3294
  url: e + "/payment_method/checkout",
3306
3295
  method: "POST"
3307
3296
  },
3308
- [Fn.CHECK_STATUS]: {
3297
+ [Mn.CHECK_STATUS]: {
3309
3298
  url: e + "/checkout/external/" + t,
3310
3299
  method: "GET"
3311
3300
  }
3312
- }), Ln = class {
3301
+ }), Pn = class {
3313
3302
  container = null;
3314
3303
  log;
3315
3304
  apiUrl = "";
@@ -3343,7 +3332,7 @@ var Sn = {
3343
3332
  }), this.container = e;
3344
3333
  let s = !1, c, l = D({
3345
3334
  el: e,
3346
- component: Pn,
3335
+ component: jn,
3347
3336
  props: {
3348
3337
  log: this.log,
3349
3338
  providerType: r,
@@ -3353,7 +3342,7 @@ var Sn = {
3353
3342
  currency: n,
3354
3343
  checkoutOptions: o
3355
3344
  },
3356
- onValidate: this.getOnValidate.bind(this)
3345
+ clickGate: this.getOnValidate.bind(this)
3357
3346
  },
3358
3347
  on: {
3359
3348
  activate: z(this, "[sdk][checkoutProcessor][${providerType}]: activate checkout form", (e) => {
@@ -3381,7 +3370,7 @@ var Sn = {
3381
3370
  this.destroy = l.destroy;
3382
3371
  }
3383
3372
  checkout(e, t, n, r) {
3384
- this.httpInvoker?.invoke(In(this.apiUrl)[Fn.CHECKOUT].url, In(this.apiUrl)[Fn.CHECKOUT].method, JSON.stringify({
3373
+ this.httpInvoker?.invoke(Nn(this.apiUrl)[Mn.CHECKOUT].url, Nn(this.apiUrl)[Mn.CHECKOUT].method, JSON.stringify({
3385
3374
  providerId: e.providerId,
3386
3375
  amount: e.amount,
3387
3376
  currency: e.currency,
@@ -3421,7 +3410,7 @@ var Sn = {
3421
3410
  this.log(`[sdk][checkoutProcessor][${e}]: successCheckoutHandler`, t, n);
3422
3411
  let r = JSON.parse(n), i = JSON.parse(window.atob(r.checkoutData));
3423
3412
  window.postMessage({
3424
- status: je,
3413
+ status: Ae,
3425
3414
  component: "checkout",
3426
3415
  providerType: e,
3427
3416
  checkoutData: i
@@ -3455,11 +3444,11 @@ var Sn = {
3455
3444
  W().stopLoading(), i.log(`[sdk][checkoutProcessor][${n}]: successCheckStatusHandler`, {
3456
3445
  transactionId: t,
3457
3446
  token: r
3458
- }), $e(e, "Transaction in progress. Please don't close the window or navigate away");
3447
+ }), Qe(e, "Transaction in progress. Please don't close the window or navigate away");
3459
3448
  let a = {};
3460
3449
  t && (a.transactionId = t), r && (a.token = r), i.successCallback?.(a);
3461
3450
  });
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) => {
3451
+ 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
3452
  let n = JSON.parse(t);
3464
3453
  if (this.log("checkoutStatus", n), !n) return this.stopCheckingStatus(r), a(e, t);
3465
3454
  if (n.status == "SUCCESS" && n.status === "SUCCESS") return this.stopCheckingStatus(r), o(n.transactionId, n.tokenId);
@@ -3485,11 +3474,11 @@ var Sn = {
3485
3474
  });
3486
3475
  }
3487
3476
  };
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);
3477
+ 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
3478
  var Y = {
3490
3479
  name: "@payfurl/client",
3491
3480
  private: !1,
3492
- version: "4.9.0",
3481
+ version: "4.9.2",
3493
3482
  files: ["dist/sdk"],
3494
3483
  type: "module",
3495
3484
  main: "./dist/sdk/payfurl.umd.js",
@@ -3545,24 +3534,24 @@ var Y = {
3545
3534
  "vite-plugin-checker": "^0.8.0",
3546
3535
  "vue-tsc": "^2.1.6"
3547
3536
  }
3548
- }, Rn = {
3537
+ }, Fn = {
3549
3538
  CHECK_FRAUD: "CHECK_FRAUD",
3550
3539
  RESOLVE_THREE_DS: "RESOLVE_THREE_DS",
3551
3540
  CANCEL_THREE_DS: "CANCEL_THREE_DS"
3552
- }, zn = (e) => ({
3553
- [Rn.CHECK_FRAUD]: {
3541
+ }, In = (e) => ({
3542
+ [Fn.CHECK_FRAUD]: {
3554
3543
  url: e + "/fraud_check",
3555
3544
  method: "POST"
3556
3545
  },
3557
- [Rn.RESOLVE_THREE_DS]: {
3546
+ [Fn.RESOLVE_THREE_DS]: {
3558
3547
  url: e + "/3ds/result",
3559
3548
  method: "POST"
3560
3549
  },
3561
- [Rn.CANCEL_THREE_DS]: {
3550
+ [Fn.CANCEL_THREE_DS]: {
3562
3551
  url: e + "/3ds/cancel",
3563
3552
  method: "POST"
3564
3553
  }
3565
- }), Bn = class {
3554
+ }), Ln = class {
3566
3555
  providerId = "";
3567
3556
  stopPaymentOnFailure = !1;
3568
3557
  log;
@@ -3584,9 +3573,6 @@ var Y = {
3584
3573
  this.httpInvoker = new F(t.publicKey, t.version, n);
3585
3574
  }
3586
3575
  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
3576
  if (!this.paymentInformation && !this.paypalInformation) return t({ error: "Payment information is required" });
3591
3577
  this.log("[fraudCheck]", {
3592
3578
  amount: this.amount,
@@ -3597,7 +3583,7 @@ var Y = {
3597
3583
  address: this.address,
3598
3584
  order: this.order,
3599
3585
  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) => {
3586
+ }), 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
3587
  if (this.log("[fraudCheck], success", n, r, this.stopPaymentOnFailure), this.checkResult = JSON.parse(r), this.checkResult === null) return t({
3602
3588
  error: "Fraud Check Failed",
3603
3589
  body: r
@@ -3611,7 +3597,7 @@ var Y = {
3611
3597
  }));
3612
3598
  }
3613
3599
  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) => {
3600
+ 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
3601
  this.log("[resolveThreeDsResult], success", e, r);
3616
3602
  let i = JSON.parse(r);
3617
3603
  if (i === null) return n({
@@ -3627,7 +3613,7 @@ var Y = {
3627
3613
  }));
3628
3614
  }
3629
3615
  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) => {
3616
+ 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
3617
  this.log("[cancelThreeDsOrder], success", e, n), t({});
3632
3618
  }), z(this, "[cancelThreeDsOrder], failure", (e, t) => {
3633
3619
  this.log("[cancelThreeDsOrder], failure", e, t), n({
@@ -3664,13 +3650,13 @@ var Y = {
3664
3650
  return this.checkResult;
3665
3651
  }
3666
3652
  };
3667
- L([R], Bn.prototype, "fraudCheck", null), L([R], Bn.prototype, "resolveThreeDsResult", null), L([R], Bn.prototype, "cancelThreeDsOrder", null);
3653
+ L([R], Ln.prototype, "fraudCheck", null), L([R], Ln.prototype, "resolveThreeDsResult", null), L([R], Ln.prototype, "cancelThreeDsOrder", null);
3668
3654
  //#endregion
3669
3655
  //#region src/sdk/utils/errorDetails.ts
3670
- function Vn(e) {
3656
+ function Rn(e) {
3671
3657
  return e == null || typeof e == "string" ? e : void 0;
3672
3658
  }
3673
- function Hn(e) {
3659
+ function zn(e) {
3674
3660
  if (!e) return;
3675
3661
  let t;
3676
3662
  try {
@@ -3678,18 +3664,18 @@ function Hn(e) {
3678
3664
  } catch {
3679
3665
  return;
3680
3666
  }
3681
- if (!(typeof t != "object" || !t || Array.isArray(t)) && typeof t.code == "number" && typeof t.isRetryable == "boolean") return {
3667
+ if (typeof t == "object" && t && !Array.isArray(t) && typeof t.code == "number" && typeof t.isRetryable == "boolean") return {
3682
3668
  code: t.code,
3683
3669
  isRetryable: t.isRetryable,
3684
- message: Vn(t.message),
3685
- gatewayCode: Vn(t.gatewayCode),
3686
- gatewayMessage: Vn(t.gatewayMessage),
3687
- type: Vn(t.type)
3670
+ message: Rn(t.message),
3671
+ gatewayCode: Rn(t.gatewayCode),
3672
+ gatewayMessage: Rn(t.gatewayMessage),
3673
+ type: Rn(t.type)
3688
3674
  };
3689
3675
  }
3690
3676
  //#endregion
3691
3677
  //#region src/sdk/utils/googlePayButton.ts
3692
- function Un(e, t) {
3678
+ function Bn(e, t) {
3693
3679
  let n = { onClick: e };
3694
3680
  if (!t) return n;
3695
3681
  for (let [e, r] of Object.entries(t)) r !== void 0 && (n[e] = r);
@@ -3697,10 +3683,10 @@ function Un(e, t) {
3697
3683
  }
3698
3684
  //#endregion
3699
3685
  //#region src/sdk/components/GooglePayForm.vue?vue&type=script&setup=true&lang.ts
3700
- var Wn = { style: { position: "relative" } }, Gn = {
3686
+ var Vn = { style: { position: "relative" } }, Hn = {
3701
3687
  key: 0,
3702
3688
  class: "error text-normal"
3703
- }, Kn = "payfurl-googlepay-script", qn = /* @__PURE__ */ w({
3689
+ }, Un = "payfurl-googlepay-script", Wn = /* @__PURE__ */ w({
3704
3690
  __name: "GooglePayForm",
3705
3691
  props: {
3706
3692
  log: { type: Function },
@@ -3709,7 +3695,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3709
3695
  amount: {},
3710
3696
  currency: {},
3711
3697
  options: {},
3712
- onValidate: { type: Function }
3698
+ clickGate: { type: Function }
3713
3699
  },
3714
3700
  emits: [
3715
3701
  "complete",
@@ -3721,17 +3707,17 @@ var Wn = { style: { position: "relative" } }, Gn = {
3721
3707
  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
3708
  function g() {
3723
3709
  if (p) return;
3724
- if (p = !0, document.getElementById(Kn)) {
3710
+ if (p = !0, document.getElementById(Un)) {
3725
3711
  re();
3726
3712
  return;
3727
3713
  }
3728
3714
  window.google = null;
3729
3715
  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);
3716
+ 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
3717
  }
3732
3718
  let v = null;
3733
3719
  function y() {
3734
- return v === null && (v = new window.google.payments.api.PaymentsClient({ environment: n.environment == Ke.PRODUCTION ? "PRODUCTION" : "TEST" })), v;
3720
+ return v === null && (v = new window.google.payments.api.PaymentsClient({ environment: n.environment == Ge.PRODUCTION ? "PRODUCTION" : "TEST" })), v;
3735
3721
  }
3736
3722
  let b = {
3737
3723
  type: "CARD",
@@ -3755,17 +3741,17 @@ var Wn = { style: { position: "relative" } }, Gn = {
3755
3741
  };
3756
3742
  }
3757
3743
  function C() {
3758
- let e = y().createButton(Un(te, n.options.buttonOptions));
3744
+ let e = y().createButton(Bn(te, n.options.buttonOptions));
3759
3745
  n.el.appendChild(e);
3760
3746
  }
3761
3747
  function ee() {
3762
- return n.environment == Ke.PRODUCTION ? {
3748
+ return n.environment == Ge.PRODUCTION ? {
3763
3749
  merchantName: n.options.googlePayMerchantName ?? "Example Merchant",
3764
3750
  merchantId: n.options.googlePayMerchantId
3765
3751
  } : { merchantName: n.options.googlePayMerchantName ?? "Example Merchant" };
3766
3752
  }
3767
3753
  function te() {
3768
- if (n.log("[onGooglePaymentButtonClicked]"), n.onValidate()?.() === !1) return;
3754
+ if (n.log("[onGooglePaymentButtonClicked]"), n.clickGate()?.() === !1) return;
3769
3755
  let e = ne(), t = y();
3770
3756
  n.log("[paymentData], request", e), t.loadPaymentData(e).then(function(e) {
3771
3757
  n.log("[paymentData], success", e);
@@ -3803,7 +3789,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3803
3789
  }
3804
3790
  function re() {
3805
3791
  y().isReadyToPay(S()).then(function(e) {
3806
- e.result && (C(), window.postMessage({ status: Be }, "*"));
3792
+ e.result && (C(), window.postMessage({ status: ze }, "*"));
3807
3793
  }).catch(function(e) {
3808
3794
  console.error("Load GooglePay error", e);
3809
3795
  });
@@ -3814,17 +3800,17 @@ var Wn = { style: { position: "relative" } }, Gn = {
3814
3800
  return s(() => {
3815
3801
  window.removeEventListener("message", ie);
3816
3802
  }), 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", {
3803
+ window.addEventListener("message", ie), lt(a.value, "payfurl-combined-container") || (d.value = !0, r("activate"), g());
3804
+ }), (e, t) => (x(), M(O, null, [j("div", Vn, [u(Re(ce, null, null, 512), [[De, _(h)]])]), j("div", {
3819
3805
  style: { position: "relative" },
3820
3806
  ref_key: "root",
3821
3807
  ref: a
3822
- }, [f.value ? (x(), M("div", Gn, i(f.value), 1)) : E("", !0)], 512)], 64));
3808
+ }, [f.value ? (x(), M("div", Hn, i(f.value), 1)) : E("", !0)], 512)], 64));
3823
3809
  }
3824
- }), Jn = { ADD_CHARGE_WITH_GOOGLE_PAY: "ADD_CHARGE_WITH_GOOGLE_PAY" }, Yn = (e) => ({ [Jn.ADD_CHARGE_WITH_GOOGLE_PAY]: {
3810
+ }), Gn = { ADD_CHARGE_WITH_GOOGLE_PAY: "ADD_CHARGE_WITH_GOOGLE_PAY" }, Kn = (e) => ({ [Gn.ADD_CHARGE_WITH_GOOGLE_PAY]: {
3825
3811
  url: e + "/charge/token/google",
3826
3812
  method: "POST"
3827
- } }), Xn = class {
3813
+ } }), qn = class {
3828
3814
  container = null;
3829
3815
  log;
3830
3816
  apiUrl = "";
@@ -3879,7 +3865,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3879
3865
  this.container = e;
3880
3866
  let o = D({
3881
3867
  el: e,
3882
- component: qn,
3868
+ component: Wn,
3883
3869
  props: {
3884
3870
  log: this.log,
3885
3871
  el: e,
@@ -3887,7 +3873,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3887
3873
  amount: this.amount,
3888
3874
  currency: this.currency,
3889
3875
  options: i,
3890
- onValidate: this.getOnValidate.bind(this)
3876
+ clickGate: this.getOnValidate.bind(this)
3891
3877
  },
3892
3878
  on: {
3893
3879
  activate: z(this, "[GooglePay]: activate", () => {
@@ -3948,7 +3934,7 @@ var Wn = { style: { position: "relative" } }, Gn = {
3948
3934
  this.destroy = o.destroy;
3949
3935
  }
3950
3936
  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 });
3937
+ 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
3938
  }
3953
3939
  getFailureAddChargeHandler(e) {
3954
3940
  return z(this, "[GooglePay], failure", (t, n) => {
@@ -3971,13 +3957,73 @@ var Wn = { style: { position: "relative" } }, Gn = {
3971
3957
  if (!i.googlePayGatewayMerchantId) throw I(t, "Invalid gateway merchant id parameter"), TypeError("Invalid gateway merchant id parameter");
3972
3958
  }
3973
3959
  };
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);
3960
+ 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);
3961
+ //#endregion
3962
+ //#region \0rolldown_dynamic_import_helper.js
3963
+ var Jn = (e, t, n) => {
3964
+ let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
3965
+ return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
3966
+ (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."))));
3967
+ });
3968
+ }, Yn = ["supports3DS"], Xn = [
3969
+ "visa",
3970
+ "masterCard",
3971
+ "amex",
3972
+ "discover"
3973
+ ];
3974
+ function Zn(e) {
3975
+ try {
3976
+ return typeof ApplePaySession < "u" && ApplePaySession.supportsVersion(e) === !0;
3977
+ } catch {
3978
+ return !1;
3979
+ }
3980
+ }
3981
+ function Qn() {
3982
+ for (let e = 14; e > 3; e--) if (Zn(e)) return e;
3983
+ return 3;
3984
+ }
3985
+ function $n(e) {
3986
+ return e && Zn(e) ? e : Qn();
3987
+ }
3988
+ function er(e) {
3989
+ return e?.length ? [.../* @__PURE__ */ new Set(["supports3DS", ...e])] : Yn;
3990
+ }
3991
+ function tr(e, t, n) {
3992
+ let r = {
3993
+ countryCode: e.countryCode || "AU",
3994
+ currencyCode: t,
3995
+ merchantCapabilities: er(e.merchantCapabilities),
3996
+ supportedNetworks: e.supportedNetworks?.length ? e.supportedNetworks : Xn,
3997
+ total: {
3998
+ label: e.lineItemLabel,
3999
+ type: "final",
4000
+ amount: Number(n).toFixed(2)
4001
+ }
4002
+ };
4003
+ return e.supportedCountries?.length && (r.supportedCountries = e.supportedCountries), r;
4004
+ }
4005
+ //#endregion
4006
+ //#region src/sdk/utils/applePaySdkLoader.ts
4007
+ var nr = "payfurl-applepay-script", rr = "https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js", ir = 1e4, ar = null;
4008
+ function or() {
4009
+ return !!window.ApplePaySession && !!window.customElements?.get("apple-pay-button");
4010
+ }
4011
+ function sr() {
4012
+ return typeof window > "u" || typeof document > "u" || or() ? Promise.resolve() : ar || (ar = new Promise((e) => {
4013
+ let t = document.createElement("script");
4014
+ t.id = nr, t.src = rr, t.type = "text/javascript", t.crossOrigin = "anonymous";
4015
+ let n = setTimeout(() => e(), ir), r = () => {
4016
+ clearTimeout(n), e();
4017
+ };
4018
+ t.addEventListener("load", r, { once: !0 }), t.addEventListener("error", r, { once: !0 }), document.head.appendChild(t);
4019
+ }), ar);
4020
+ }
3975
4021
  //#endregion
3976
4022
  //#region src/sdk/components/ApplePayForm.vue?vue&type=script&setup=true&lang.ts
3977
- var Zn = { style: { position: "relative" } }, Qn = {
4023
+ var cr = { style: { position: "relative" } }, lr = {
3978
4024
  key: 0,
3979
4025
  class: "error text-normal"
3980
- }, $n = "payfurl-applepay-script", er = /* @__PURE__ */ w({
4026
+ }, ur = /* @__PURE__ */ w({
3981
4027
  __name: "ApplePayForm",
3982
4028
  props: {
3983
4029
  log: { type: Function },
@@ -3986,11 +4032,11 @@ var Zn = { style: { position: "relative" } }, Qn = {
3986
4032
  amount: {},
3987
4033
  currency: {},
3988
4034
  options: {},
3989
- onValidate: { type: Function }
4035
+ clickGate: { type: Function }
3990
4036
  },
3991
4037
  emits: [
3992
4038
  "submit",
3993
- "validate",
4039
+ "validateMerchant",
3994
4040
  "activate",
3995
4041
  "close",
3996
4042
  "error",
@@ -3999,47 +4045,27 @@ var Zn = { style: { position: "relative" } }, Qn = {
3999
4045
  setup(e, { emit: t }) {
4000
4046
  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
4047
  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) => {
4048
+ if (n.log("[onApplePayButtonClicked]"), !ApplePaySession || n.clickGate()?.() === !1) return;
4049
+ let e = tr(n.options, l.value, o.value), t = $n(n.options.applePayVersion);
4050
+ n.log("[onApplePayButtonClicked], Create ApplePaySession", e, t);
4051
+ let i = new ApplePaySession(t, e);
4052
+ i.onvalidatemerchant = (e) => {
4053
+ let t = e.validationURL;
4054
+ r("validateMerchant", {
4055
+ validationUrl: t,
4056
+ domainName: window.location.hostname
4057
+ }, i);
4058
+ }, i.onpaymentauthorized = (e) => {
4059
+ n.log("[onpaymentauthorized]", e), r("submit", e.payment, i);
4060
+ }, i.oncancel = (e) => {
4032
4061
  n.log("[oncancel]", e), r("cancel");
4033
- }, t.begin();
4062
+ }, i.begin();
4034
4063
  }
4035
4064
  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 = () => {
4065
+ p || (p = !0, window.google = null, sr().then(() => {
4040
4066
  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);
4067
+ e.buttonstyle = "black", e.locale = "en-US", e.type = "buy", e.onclick = g, a.value?.appendChild(e), window.postMessage({ status: ze }, "*");
4068
+ }));
4043
4069
  }
4044
4070
  function y(e) {
4045
4071
  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 +4073,26 @@ var Zn = { style: { position: "relative" } }, Qn = {
4047
4073
  return s(() => {
4048
4074
  window.removeEventListener("message", y);
4049
4075
  }), 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", {
4076
+ window.addEventListener("message", y), lt(a.value, "payfurl-combined-container") || (d.value = !0, r("activate"), v());
4077
+ }), (e, t) => (x(), M(O, null, [j("div", cr, [u(Re(ce, null, null, 512), [[De, _(h)]])]), j("div", {
4052
4078
  style: { position: "relative" },
4053
4079
  ref_key: "root",
4054
4080
  ref: a
4055
- }, [f.value ? (x(), M("div", Qn, i(f.value), 1)) : E("", !0)], 512)], 64));
4081
+ }, [f.value ? (x(), M("div", lr, i(f.value), 1)) : E("", !0)], 512)], 64));
4056
4082
  }
4057
- }), tr = {
4083
+ }), dr = {
4058
4084
  VALIDATE_MERCHANT: "VALIDATE_MERCHANT",
4059
4085
  ADD_CHARGE_WITH_APPLE_PAY: "ADD_CHARGE_WITH_APPLE_PAY"
4060
- }, nr = (e) => ({
4061
- [tr.VALIDATE_MERCHANT]: {
4086
+ }, fr = (e) => ({
4087
+ [dr.VALIDATE_MERCHANT]: {
4062
4088
  url: e + "/charge/token/apple/validate",
4063
4089
  method: "POST"
4064
4090
  },
4065
- [tr.ADD_CHARGE_WITH_APPLE_PAY]: {
4091
+ [dr.ADD_CHARGE_WITH_APPLE_PAY]: {
4066
4092
  url: e + "/charge/token/apple",
4067
4093
  method: "POST"
4068
4094
  }
4069
- }), rr = class {
4095
+ }), pr = class {
4070
4096
  container = null;
4071
4097
  log;
4072
4098
  apiUrl = "";
@@ -4131,7 +4157,7 @@ var Zn = { style: { position: "relative" } }, Qn = {
4131
4157
  });
4132
4158
  let o = D({
4133
4159
  el: e,
4134
- component: er,
4160
+ component: ur,
4135
4161
  props: {
4136
4162
  log: this.log,
4137
4163
  el: e,
@@ -4139,13 +4165,13 @@ var Zn = { style: { position: "relative" } }, Qn = {
4139
4165
  amount: this.amount,
4140
4166
  currency: this.currency,
4141
4167
  options: i,
4142
- onValidate: this.getOnValidate.bind(this)
4168
+ clickGate: this.getOnValidate.bind(this)
4143
4169
  },
4144
4170
  on: {
4145
4171
  activate: () => {
4146
4172
  a || (a = !0, this.log("activate applepay form"));
4147
4173
  },
4148
- validate: z(this, "[addApplePay], validate", (n, r) => {
4174
+ validateMerchant: z(this, "[addApplePay], validateMerchant", (n, r) => {
4149
4175
  this.log("[ApplePay]: validate", n), this.validateMerchant(e, t, n, r);
4150
4176
  }),
4151
4177
  submit: z(this, "[addApplePay], submit", (n, r) => {
@@ -4223,13 +4249,13 @@ var Zn = { style: { position: "relative" } }, Qn = {
4223
4249
  onFailure: z(this, "[addApplePay], failure", (e) => {
4224
4250
  this.log("[addApplePay], failure", e), this.applePayButton?.redraw(), this.failureCallback?.({ error: e.error });
4225
4251
  })
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 }, "*");
4252
+ }), 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
4253
  });
4228
- et(/* #__PURE__ */ Object.assign({
4254
+ Jn(/* #__PURE__ */ Object.assign({
4229
4255
  "./applepay/ApplePayButton.interface.ts": () => import("./ApplePayButton.interface-BvRk9kiK.js"),
4230
4256
  "./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")
4257
+ "./applepay/PayWayAppleButton.ts": () => import("./PayWayAppleButton-7Gi89Gij.js"),
4258
+ "./applepay/payway_rest.ts": () => import("./payway_rest-ZMjPv2si.js")
4233
4259
  }), `./applepay/${i.providerType.toLowerCase()}.ts`, 3).then(z(this, "[localAddApplePay], then", (e) => {
4234
4260
  this.log(`Loading ${i.providerType}...`, e), s(e);
4235
4261
  })).catch(() => {
@@ -4237,7 +4263,7 @@ var Zn = { style: { position: "relative" } }, Qn = {
4237
4263
  });
4238
4264
  }
4239
4265
  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) => {
4266
+ 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
4267
  try {
4242
4268
  let e = JSON.parse(t);
4243
4269
  this.log("[validateMerchant], success", e), r.completeMerchantValidation(e);
@@ -4252,7 +4278,7 @@ var Zn = { style: { position: "relative" } }, Qn = {
4252
4278
  }), { providerId: t });
4253
4279
  }
4254
4280
  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 });
4281
+ 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
4282
  }
4257
4283
  getFailureAddChargeHandler(e, t) {
4258
4284
  return z(this, "[getFailureAddChargeHandler]", (n, r) => {
@@ -4283,15 +4309,12 @@ var Zn = { style: { position: "relative" } }, Qn = {
4283
4309
  if (!B(r)) throw I(t, "Invalid currency: " + r), TypeError("invalid currency: " + r);
4284
4310
  if (!e(n)) throw I(t, "Invalid amount: " + n), TypeError("invalid amount: " + n);
4285
4311
  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
4312
  }
4290
4313
  };
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);
4314
+ 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
4315
  //#endregion
4293
4316
  //#region src/components/ApplePayIcon.vue
4294
- var ir = /*#__PURE__*/ T(/* @__PURE__ */ w({
4317
+ var mr = /*#__PURE__*/ T(/* @__PURE__ */ w({
4295
4318
  __name: "ApplePayIcon",
4296
4319
  props: {
4297
4320
  size: {},
@@ -4313,65 +4336,65 @@ var ir = /*#__PURE__*/ T(/* @__PURE__ */ w({
4313
4336
  (function(e) {
4314
4337
  e.mastercard = "mastercard", e.maestro = "maestro", e.visa = "visa", e.amex = "amex", e.discover = "discover";
4315
4338
  })(X ||= {});
4316
- var ar = [
4339
+ var hr = [
4317
4340
  X.mastercard,
4318
4341
  X.maestro,
4319
4342
  X.visa,
4320
4343
  X.amex,
4321
4344
  X.discover
4322
- ], or;
4345
+ ], gr;
4323
4346
  (function(e) {
4324
4347
  e.NONE = "NONE", e.FULL = "FULL", e.POSTAL_COUNTRY = "POSTAL_COUNTRY";
4325
- })(or ||= {});
4348
+ })(gr ||= {});
4326
4349
  //#endregion
4327
4350
  //#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 = {
4351
+ 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
4352
  key: 0,
4330
- src: sr,
4353
+ src: _r,
4331
4354
  alt: "MasterCard"
4332
- }, pr = {
4355
+ }, Cr = {
4333
4356
  key: 1,
4334
- src: cr,
4357
+ src: vr,
4335
4358
  alt: "Visa"
4336
- }, mr = {
4359
+ }, wr = {
4337
4360
  key: 2,
4338
- src: lr,
4361
+ src: yr,
4339
4362
  alt: "American Express"
4340
- }, hr = {
4363
+ }, Tr = {
4341
4364
  key: 3,
4342
- src: ur,
4365
+ src: br,
4343
4366
  alt: "Discover"
4344
- }, gr = /*#__PURE__*/ T(/* @__PURE__ */ w({
4367
+ }, Er = /*#__PURE__*/ T(/* @__PURE__ */ w({
4345
4368
  __name: "ClickToPayLogo",
4346
4369
  props: { options: {} },
4347
4370
  setup(e) {
4348
- let t = e, n = m(t.options.cardBrands || ar);
4371
+ let t = e, n = m(t.options.cardBrands || hr);
4349
4372
  return b(() => t, () => {
4350
4373
  n.value = t.options.cardBrands || [];
4351
4374
  }, {
4352
4375
  flush: "post",
4353
4376
  deep: !0
4354
- }), (e, t) => (x(), M("div", dr, [
4377
+ }), (e, t) => (x(), M("div", xr, [
4355
4378
  t[0] ||= j("img", {
4356
4379
  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
4380
  alt: "Click To Pay"
4358
4381
  }, 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)
4382
+ n.value.includes(_(X).mastercard) ? (x(), M("img", Sr)) : E("", !0),
4383
+ n.value.includes(_(X).visa) ? (x(), M("img", Cr)) : E("", !0),
4384
+ n.value.includes(_(X).amex) ? (x(), M("img", wr)) : E("", !0),
4385
+ n.value.includes(_(X).discover) ? (x(), M("img", Tr)) : E("", !0)
4363
4386
  ]));
4364
4387
  }
4365
- }), [["__scopeId", "data-v-cb006d2b"]]), _r = { style: {
4388
+ }), [["__scopeId", "data-v-cb006d2b"]]), Dr = { style: {
4366
4389
  display: "flex",
4367
4390
  gap: "20px"
4368
- } }, vr = { class: "payfurl-form" }, yr = { class: "container-form" }, br = { class: "row" }, xr = { style: { width: "100%" } }, Sr = {
4391
+ } }, Or = { class: "payfurl-form" }, kr = { class: "container-form" }, Ar = { class: "row" }, jr = { style: { width: "100%" } }, Mr = {
4369
4392
  key: 0,
4370
4393
  class: "error"
4371
- }, Cr = { class: "row" }, wr = { style: { width: "100%" } }, Tr = {
4394
+ }, Nr = { class: "row" }, Pr = { style: { width: "100%" } }, Fr = {
4372
4395
  key: 0,
4373
4396
  class: "error"
4374
- }, Er = /*#__PURE__*/ T(/* @__PURE__ */ w({
4397
+ }, Ir = /*#__PURE__*/ T(/* @__PURE__ */ w({
4375
4398
  __name: "LoginForm",
4376
4399
  props: {
4377
4400
  log: { type: Function },
@@ -4385,7 +4408,7 @@ var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csv
4385
4408
  setup(e, { emit: t }) {
4386
4409
  let n = e, r = t, a = m(""), s = m(""), c = m({});
4387
4410
  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;
4411
+ 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
4412
  }
4390
4413
  function d() {
4391
4414
  l() && r("submit", {
@@ -4399,29 +4422,29 @@ var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csv
4399
4422
  function p() {
4400
4423
  r("logout");
4401
4424
  }
4402
- return (e, t) => (x(), He(Dn, {
4425
+ return (e, t) => (x(), Ve(wn, {
4403
4426
  width: "350",
4404
4427
  onClose: f
4405
4428
  }, {
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", {
4429
+ title: C(() => [j("div", Dr, [Re(Er, { options: n.options }, null, 8, ["options"]), t[2] ||= o(" Click To Pay Login ", -1)])]),
4430
+ 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
4431
  type: "text",
4409
4432
  maxlength: "100",
4410
4433
  placeholder: "Email Address",
4411
4434
  name: "email",
4412
4435
  "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", {
4436
+ }, 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
4437
  type: "text",
4415
4438
  maxlength: "100",
4416
4439
  placeholder: "Phone",
4417
4440
  name: "phone",
4418
4441
  "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)])])])])]),
4442
+ }, null, 512), [[Me, s.value]]), c.value.phone ? (x(), M("p", Fr, i(c.value.phone), 1)) : E("", !0)])])])])]),
4420
4443
  footer: C(() => [j("div", { class: "payfurl-form payfurl-form-footer" }, [j("button", { onClick: p }, "Continue as Guest"), j("button", { onClick: d }, "Login")])]),
4421
4444
  _: 1
4422
4445
  }));
4423
4446
  }
4424
- }), [["__scopeId", "data-v-693ba623"]]), Dr = [
4447
+ }), [["__scopeId", "data-v-693ba623"]]), Lr = [
4425
4448
  "4761739001010010",
4426
4449
  "4005520000000129",
4427
4450
  "5413330089010640",
@@ -4430,9 +4453,9 @@ var sr = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csv
4430
4453
  "4035874000424977",
4431
4454
  "5413330089010640"
4432
4455
  ];
4433
- function Or(e, t) {
4434
- if (t === Ke.PRODUCTION || !Dr.includes(e)) return null;
4435
- switch (Fe(e)) {
4456
+ function Rr(e, t) {
4457
+ if (t === Ge.PRODUCTION || !Lr.includes(e)) return null;
4458
+ switch (Pe(e)) {
4436
4459
  case "visa": return {
4437
4460
  cardNumber: "4622943123103732",
4438
4461
  expiryDate: "12/25",
@@ -4452,7 +4475,7 @@ function Or(e, t) {
4452
4475
  }
4453
4476
  //#endregion
4454
4477
  //#region src/sdk/processors/clickToPayProcessor.ts
4455
- var kr = "Click to Pay is unavailable. Please proceed with an alternative payment method", Ar = {
4478
+ var zr = "Click to Pay is unavailable. Please proceed with an alternative payment method", Br = {
4456
4479
  SANDBOX: {
4457
4480
  uiKit: "https://src.mastercard.com/srci/integration/components/src-ui-kit/src-ui-kit.esm.js",
4458
4481
  uiKitCss: "https://src.mastercard.com/srci/integration/components/src-ui-kit/src-ui-kit.css",
@@ -4465,7 +4488,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4465
4488
  sdk: "https://src.mastercard.com/sdk/srcsdk.mastercard.js",
4466
4489
  lib: "https://src.mastercard.com/srci/integration/2/lib.js?srcDpaId={dpaId}&locale=en_AU"
4467
4490
  }
4468
- }, Z = class extends Yt {
4491
+ }, Z = class extends Kt {
4469
4492
  enabled = !0;
4470
4493
  initialized = !1;
4471
4494
  loaded = !1;
@@ -4493,8 +4516,8 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4493
4516
  startIsRunning = !1;
4494
4517
  readyCallbacks = [];
4495
4518
  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);
4519
+ super(e), this.options = t.options || {}, this.container = t.container || document.body, this.environment = t.environment || Ge.DEVELOPMENT;
4520
+ let n = qt(this.environment);
4498
4521
  this.options.networkTokenOptions = {
4499
4522
  ...n,
4500
4523
  ...this.options.networkTokenOptions || {}
@@ -4559,7 +4582,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4559
4582
  if (t) {
4560
4583
  try {
4561
4584
  t.contentWindow?.postMessage({
4562
- status: he,
4585
+ status: me,
4563
4586
  cards: e
4564
4587
  }, "*");
4565
4588
  } catch (e) {
@@ -4570,7 +4593,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4570
4593
  this.log("[setCards] iframe not found");
4571
4594
  }
4572
4595
  isSchemeSupported(e) {
4573
- return this.availableCardBrands.includes(Fe(e));
4596
+ return this.availableCardBrands.includes(Pe(e));
4574
4597
  }
4575
4598
  messageHandler(e) {
4576
4599
  if (e?.data?.status) {
@@ -4671,7 +4694,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4671
4694
  let r = document.createElement("div");
4672
4695
  r.setAttribute("class", "modal-body"), n.appendChild(r);
4673
4696
  let i = this, a = document.createElement("src-learn-more");
4674
- a.setAttribute("card-brands", (this.options.cardBrands || ar).join(",")), a.addEventListener("close", function(e) {
4697
+ a.setAttribute("card-brands", (this.options.cardBrands || hr).join(",")), a.addEventListener("close", function(e) {
4675
4698
  i.log("src-learn-more: close", e), i.mcHideLearnMore();
4676
4699
  }), a.addEventListener("ok", function(e) {
4677
4700
  i.log("src-learn-more: ok", e), i.mcHideLearnMore();
@@ -4751,8 +4774,8 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4751
4774
  }
4752
4775
  mcShowLearnMore() {
4753
4776
  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";
4777
+ let e = this.availableCardBrands.length > 0 && this.availableCardBrands || hr;
4778
+ 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
4779
  }
4757
4780
  showChangeUserPopup() {
4758
4781
  this.showLoginForm();
@@ -4760,7 +4783,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4760
4783
  showLoginForm() {
4761
4784
  let { destroy: e } = D({
4762
4785
  el: document.body,
4763
- component: Er,
4786
+ component: Ir,
4764
4787
  props: {
4765
4788
  log: this.log,
4766
4789
  options: this.options
@@ -4792,7 +4815,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4792
4815
  let r = this, i = z(this, "[checkoutWithCard.promiseResolvedHandler]", (e) => {
4793
4816
  r.log("[checkoutWithCard.promiseResolvedHandler]", e), r.hideModalForm(), t(e);
4794
4817
  }), a = z(this, "[checkoutWithCard.promiseRejectedHandler]", (t) => {
4795
- r.log("[checkoutWithCard.promiseRejectedHandler]", t), r.stopUsing(), r.showInfoMessage(kr), n(t), r.sendErrorNotification("checkoutWithCard error", [
4818
+ r.log("[checkoutWithCard.promiseRejectedHandler]", t), r.stopUsing(), r.showInfoMessage(zr), n(t), r.sendErrorNotification("checkoutWithCard error", [
4796
4819
  e,
4797
4820
  o,
4798
4821
  t
@@ -4809,7 +4832,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4809
4832
  }
4810
4833
  checkoutWithNewCard(e, t, n, r, i, a) {
4811
4834
  this.log("ClickToPayProcessor.checkoutWithNewCard", {
4812
- cardNumber: qe(e),
4835
+ cardNumber: Ke(e),
4813
4836
  expiryDate: t,
4814
4837
  ccv: "***",
4815
4838
  enrollCard: r
@@ -4833,7 +4856,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4833
4856
  }
4834
4857
  ["CHANGE_CARD", "CANCEL"].includes(e.checkoutActionCode) || n(e);
4835
4858
  }), 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]);
4859
+ i.log("[checkoutWithNewCard.promiseRejectedHandler]", e), i.stopUsing(), i.showInfoMessage(zr), r(e), i.sendErrorNotification("checkoutWithNewCard error", [s, e]);
4837
4860
  });
4838
4861
  this.showModalForm();
4839
4862
  let s = {
@@ -4846,7 +4869,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4846
4869
  this.log("checkoutWithNewCard", s), window.mcCheckoutService.checkoutWithNewCard(s).then(a).catch(o);
4847
4870
  }
4848
4871
  encryptCard(e, t, n, r, i) {
4849
- let a = Or(e, this.environment);
4872
+ let a = Rr(e, this.environment);
4850
4873
  this.whenReady().then(() => {
4851
4874
  this.mcEncryptCard(a?.cardNumber || e, a?.expiryDate || t, a?.ccv || n, r, i);
4852
4875
  }).catch(i);
@@ -4867,7 +4890,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4867
4890
  srcDpaId: this.options.dpaId,
4868
4891
  dpaData: { dpaName: this.options.dpaName || `TAS-${this.options.dpaId}` },
4869
4892
  dpaTransactionOptions: this.generateDpaTransactionOptions(),
4870
- cardBrands: this.options?.cardBrands?.length ? this.options?.cardBrands : ar,
4893
+ cardBrands: this.options?.cardBrands?.length ? this.options?.cardBrands : hr,
4871
4894
  checkoutExperience: "WITHIN_CHECKOUT"
4872
4895
  }, i = this.getRecognitionToken();
4873
4896
  i && (r.recognitionToken = i), this.log("[mcInitClickToPay]", r), window.mcCheckoutService.init(r).then(t).catch(n);
@@ -4890,7 +4913,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4890
4913
  t.stopLoadingCardForm();
4891
4914
  }), r = z(this, "[mcIdLookup.promiseRejectedHandler]", (e) => {
4892
4915
  t.log("[mcIdLookup.promiseRejectedHandler]", e), t.stopLoadingCardForm(), t.sendErrorNotification("mcIdLookup error", [a, e]), t.stopUsing();
4893
- }), i = Ge(this.customer?.phoneNumber || ""), a = e ? { mobileNumber: {
4916
+ }), i = We(this.customer?.phoneNumber || ""), a = e ? { mobileNumber: {
4894
4917
  phoneNumber: i[1] || "",
4895
4918
  countryCode: i[0] || "61"
4896
4919
  } } : { email: this.customer?.email };
@@ -4929,7 +4952,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4929
4952
  t.mcShowOtpInput(t.supportedValidationChannels, t.validationChannelsNetwork, e.reason);
4930
4953
  return;
4931
4954
  }
4932
- t.stopUsing(), t.showInfoMessage(kr);
4955
+ t.stopUsing(), t.showInfoMessage(zr);
4933
4956
  }), i = {
4934
4957
  value: e,
4935
4958
  recognitionTokenRequested: this.getRememberMe()
@@ -4976,7 +4999,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4976
4999
  this.log("[ClickToPayProcessor]: stop using Click To Pay"), this.enabled = !1, this.cleanUp(this.container);
4977
5000
  let e = this.getCardFormFrame();
4978
5001
  if (e) try {
4979
- e.contentWindow?.postMessage({ status: _e }, "*"), e.contentWindow?.postMessage({ status: r }, "*");
5002
+ e.contentWindow?.postMessage({ status: ge }, "*"), e.contentWindow?.postMessage({ status: r }, "*");
4980
5003
  } catch (e) {
4981
5004
  this.log("[stopUsing] iframe error", e);
4982
5005
  }
@@ -4986,7 +5009,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4986
5009
  let t = this.getCardFormFrame();
4987
5010
  if (t) try {
4988
5011
  t.contentWindow?.postMessage({
4989
- status: ye,
5012
+ status: ve,
4990
5013
  availableCardBrands: e
4991
5014
  }, "*");
4992
5015
  } catch (e) {
@@ -4997,7 +5020,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
4997
5020
  return !!this.enabled;
4998
5021
  }
4999
5022
  getLibUrl(e) {
5000
- return Ar[this.environment === Ke.PRODUCTION ? "PRODUCTION" : "SANDBOX"][e] || "";
5023
+ return Br[this.environment === Ge.PRODUCTION ? "PRODUCTION" : "SANDBOX"][e] || "";
5001
5024
  }
5002
5025
  saveRecognitionToken(e) {
5003
5026
  let t = /* @__PURE__ */ new Date();
@@ -5010,12 +5033,12 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5010
5033
  return e.length === 2 && e.pop().split(";").shift() || "";
5011
5034
  }
5012
5035
  sendErrorNotification(e, t) {
5013
- nt("[ClickToPayProcessor]", e, t);
5036
+ et("[ClickToPayProcessor]", e, t);
5014
5037
  }
5015
5038
  generateDpaTransactionOptions() {
5016
5039
  let e = {
5017
5040
  dpaLocale: this.options.locale || "en_AU",
5018
- dpaBillingPreference: or.NONE,
5041
+ dpaBillingPreference: gr.NONE,
5019
5042
  dpaAcceptedBillingCountries: [],
5020
5043
  dpaAcceptedShippingCountries: [],
5021
5044
  dpaShippingPreference: "NONE",
@@ -5026,7 +5049,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5026
5049
  transactionCurrencyCode: this.currency
5027
5050
  }
5028
5051
  };
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 = [{
5052
+ 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
5053
  dpaDynamicDataTtlMinutes: 15,
5031
5054
  dynamicDataType: "CARD_APPLICATION_CRYPTOGRAM_SHORT_FORM"
5032
5055
  }], 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 +5057,7 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5034
5057
  generateConsumerInfo() {
5035
5058
  let e = {};
5036
5059
  if (this.customer?.email && (e.emailAddress = this.customer.email), this.customer?.phoneNumber) {
5037
- let t = Ge(this.customer?.phoneNumber || "");
5060
+ let t = We(this.customer?.phoneNumber || "");
5038
5061
  e.mobileNumber = {
5039
5062
  phoneNumber: t[1] || "",
5040
5063
  countryCode: t[0] || "61"
@@ -5046,16 +5069,16 @@ var kr = "Click to Pay is unavailable. Please proceed with an alternative paymen
5046
5069
  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
5070
  //#endregion
5048
5071
  //#region src/sdk/types/PaymentMethodInfo.type.ts
5049
- var jr;
5072
+ var Vr;
5050
5073
  (function(e) {
5051
5074
  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 ||= {});
5075
+ })(Vr ||= {});
5053
5076
  //#endregion
5054
5077
  //#region src/sdk/components/PaymentMethod.vue?vue&type=script&setup=true&lang.ts
5055
- var Mr = {
5078
+ var Hr = {
5056
5079
  key: 0,
5057
5080
  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({
5081
+ }, 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
5082
  __name: "PaymentMethod",
5060
5083
  props: {
5061
5084
  log: { type: Function },
@@ -5090,7 +5113,7 @@ var Mr = {
5090
5113
  }
5091
5114
  function a() {
5092
5115
  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`;
5116
+ case "CARD": return n.value.card?.scheme ? `${t.cssUrl}icons/${Je(String(n.value.card?.scheme).toLowerCase())}.svg` : `${t.cssUrl}icons/Card.svg`;
5094
5117
  case "PAYPAL": return `${t.cssUrl}icons/PayPal.svg`;
5095
5118
  case "PAYTO": return `${t.cssUrl}icons/PayTo.svg`;
5096
5119
  case "PAYID": return `${t.cssUrl}icons/PayID.svg`;
@@ -5110,22 +5133,22 @@ var Mr = {
5110
5133
  }
5111
5134
  return b(() => t.paymentMethod, () => {
5112
5135
  n.value = t.paymentMethod;
5113
- }, { flush: "post" }), (e, t) => n.value ? (x(), M("div", Mr, [j("img", {
5136
+ }, { flush: "post" }), (e, t) => n.value ? (x(), M("div", Hr, [j("img", {
5114
5137
  src: a(),
5115
5138
  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, [
5139
+ }, null, 8, Ur), j("div", Wr, [
5140
+ j("div", Gr, i(r()), 1),
5141
+ n.value.type === _(Vr).CARD ? (x(), M("div", Kr, [
5119
5142
  o(" Card: " + i(n.value.card?.cardNumber || "Unknown"), 1),
5120
5143
  t[0] ||= j("br", null, null, -1),
5121
5144
  o(" Expire: " + i(n.value.card?.expiryDate || "Unknown"), 1)
5122
5145
  ])) : E("", !0),
5123
- n.value.type === _(jr).BANKPAYMENT ? (x(), M("div", Lr, [
5146
+ n.value.type === _(Vr).BANKPAYMENT ? (x(), M("div", qr, [
5124
5147
  o(" Name: " + i(n.value.bankPayment?.accountName), 1),
5125
5148
  t[1] ||= j("br", null, null, -1),
5126
5149
  o(" Acc No: " + i(n.value.bankPayment?.accountNumber), 1)
5127
5150
  ])) : E("", !0),
5128
- n.value.type === _(jr).PAYTO ? (x(), M("div", Rr, [
5151
+ n.value.type === _(Vr).PAYTO ? (x(), M("div", Jr, [
5129
5152
  o(" Name: " + i(n.value.payTo?.payerName), 1),
5130
5153
  t[3] ||= j("br", null, null, -1),
5131
5154
  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 +5160,36 @@ var Mr = {
5137
5160
  ])) : E("", !0)
5138
5161
  ])])) : E("", !0);
5139
5162
  }
5140
- }), [["__scopeId", "data-v-7894e1cd"]]), Br = {
5163
+ }), [["__scopeId", "data-v-7894e1cd"]]), Xr = {
5141
5164
  key: 0,
5142
5165
  class: "saved-payment-methods"
5143
- }, Vr = {
5166
+ }, Zr = {
5144
5167
  key: 0,
5145
5168
  class: "error"
5146
- }, Hr = ["onClick"], Ur = ["id", "checked"], Wr = {
5169
+ }, Qr = ["onClick"], $r = ["id", "checked"], ei = {
5147
5170
  key: 0,
5148
5171
  class: "error"
5149
- }, Gr = {
5172
+ }, ti = {
5150
5173
  key: 1,
5151
5174
  class: "payment-method-container"
5152
- }, Kr = {
5175
+ }, ni = {
5153
5176
  key: 1,
5154
5177
  class: "saved-payment-methods"
5155
- }, qr = /*#__PURE__*/ T(/* @__PURE__ */ w({
5178
+ }, ri = /*#__PURE__*/ T(/* @__PURE__ */ w({
5156
5179
  __name: "PaymentMethodsForm",
5157
5180
  props: {
5158
5181
  log: { type: Function },
5159
5182
  cssUrl: {},
5160
5183
  paymentMethods: {},
5161
- onValidate: { type: Function }
5184
+ clickGate: { type: Function }
5162
5185
  },
5163
5186
  emits: ["submit", "select"],
5164
5187
  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]]);
5188
+ 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
5189
  function p(e) {
5167
5190
  if (e?.data?.status) {
5168
5191
  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;
5192
+ if (n.log?.(`[PaymentMethods]: message "${e.data.status}" received`, e.data), !a.value || (e.stopPropagation(), d.value = {}, n.clickGate()?.() === !1)) return;
5170
5193
  r("submit", o.value);
5171
5194
  }
5172
5195
  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);
@@ -5181,7 +5204,7 @@ var Mr = {
5181
5204
  function g() {
5182
5205
  if (l.value.length > 0) {
5183
5206
  h(l.value.find((e) => e.isDefault) || l.value[0]), window.postMessage({
5184
- status: fe,
5207
+ status: de,
5185
5208
  message: {
5186
5209
  status: "success",
5187
5210
  message: ""
@@ -5190,7 +5213,7 @@ var Mr = {
5190
5213
  return;
5191
5214
  }
5192
5215
  window.postMessage({
5193
- status: fe,
5216
+ status: de,
5194
5217
  message: {
5195
5218
  status: "error",
5196
5219
  message: "No saved payment methods found"
@@ -5198,12 +5221,12 @@ var Mr = {
5198
5221
  }, "*");
5199
5222
  }
5200
5223
  return c(() => {
5201
- window.addEventListener("message", p), window.postMessage({ status: Be }, "*"), g();
5224
+ window.addEventListener("message", p), window.postMessage({ status: ze }, "*"), g();
5202
5225
  }), s(() => {
5203
5226
  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", {
5227
+ }), (e, t) => l.value.length > 0 ? (x(), M("div", Xr, [
5228
+ d.value.global ? (x(), M("div", Zr, i(d.value.global), 1)) : E("", !0),
5229
+ (x(!0), M(O, null, we(f.value, (e, t) => (x(), M("div", {
5207
5230
  key: `paymentMethod${t}`,
5208
5231
  class: ne(["payment-method-container", `${o.value?.paymentMethodId === e?.paymentMethodId ? "selected" : ""} ${d.value[`${e?.paymentMethodId}`] ? "error" : ""}`]),
5209
5232
  onClick: (t) => h(e)
@@ -5213,8 +5236,8 @@ var Mr = {
5213
5236
  name: "paymentMethod",
5214
5237
  id: `payment-method-${e?.paymentMethodId}`,
5215
5238
  checked: o.value?.paymentMethodId === e?.paymentMethodId
5216
- }, null, 8, Ur),
5217
- ze(zr, {
5239
+ }, null, 8, $r),
5240
+ Re(Yr, {
5218
5241
  log: n.log,
5219
5242
  "css-url": n.cssUrl,
5220
5243
  "payment-method": e
@@ -5223,9 +5246,9 @@ var Mr = {
5223
5246
  "css-url",
5224
5247
  "payment-method"
5225
5248
  ]),
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", {
5249
+ d.value[`${e?.paymentMethodId}`] ? (x(), M("div", ei, i(d.value[`${e?.paymentMethodId}`]), 1)) : E("", !0)
5250
+ ], 10, Qr))), 128)),
5251
+ 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
5252
  key: 0,
5230
5253
  href: "#",
5231
5254
  class: "black",
@@ -5236,9 +5259,9 @@ var Mr = {
5236
5259
  class: "black",
5237
5260
  onClick: t[1] ||= (e) => u.value = !0
5238
5261
  }, "Show all"))])])) : E("", !0)
5239
- ])) : (x(), M("div", Kr, [...t[3] ||= [j("div", { class: "title" }, "No saved payment methods found", -1)]]));
5262
+ ])) : (x(), M("div", ni, [...t[3] ||= [j("div", { class: "title" }, "No saved payment methods found", -1)]]));
5240
5263
  }
5241
- }), [["__scopeId", "data-v-7f8bbef8"]]), Jr = class {
5264
+ }), [["__scopeId", "data-v-d3f0944f"]]), ii = class {
5242
5265
  log;
5243
5266
  debug = !1;
5244
5267
  container = null;
@@ -5376,27 +5399,27 @@ var Mr = {
5376
5399
  };
5377
5400
  }
5378
5401
  };
5379
- L([R], Jr.prototype, "setPaymentInfo", null), L([R], Jr.prototype, "cleanUp", null);
5402
+ L([R], ii.prototype, "setPaymentInfo", null), L([R], ii.prototype, "cleanUp", null);
5380
5403
  //#endregion
5381
5404
  //#region src/sdk/processors/paymentMethodProcessor.ts
5382
- var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5405
+ var { hideSpinner: ai, showSpinner: oi } = Oe(), si = {
5383
5406
  CUSTOMER_INFO: "CUSTOMER_INFO",
5384
5407
  PAYMENT_METHODS_INFO: "PAYMENT_METHODS_INFO",
5385
5408
  TOKENISE: "TOKENISE"
5386
- }, Qr = (e, t) => ({
5387
- [Zr.CUSTOMER_INFO]: {
5409
+ }, ci = (e, t) => ({
5410
+ [si.CUSTOMER_INFO]: {
5388
5411
  url: e + "/customer/" + t,
5389
5412
  method: "GET"
5390
5413
  },
5391
- [Zr.PAYMENT_METHODS_INFO]: {
5414
+ [si.PAYMENT_METHODS_INFO]: {
5392
5415
  url: e + "/customer/" + t + "/payment_method",
5393
5416
  method: "GET"
5394
5417
  },
5395
- [Zr.TOKENISE]: {
5418
+ [si.TOKENISE]: {
5396
5419
  url: e + "/token/payment_method",
5397
5420
  method: "POST"
5398
5421
  }
5399
- }), $r = class extends Jr {
5422
+ }), li = class extends ii {
5400
5423
  cssUrl = "";
5401
5424
  networkTokenProviders = [];
5402
5425
  validationStatusChangeCallback = null;
@@ -5415,11 +5438,12 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5415
5438
  this.log("[addPaymentMethods], paymentMethods", n);
5416
5439
  let o = D({
5417
5440
  el: this.container,
5418
- component: qr,
5441
+ component: ri,
5419
5442
  props: {
5420
5443
  el: t,
5421
5444
  log: this.log,
5422
5445
  cssUrl: this.cssUrl,
5446
+ clickGate: this.getOnValidate.bind(this),
5423
5447
  paymentMethods: n.filter((e) => !a?.tokenAuthenticationEnabled || a?.tokenAuthenticationEnabled && e.networkToken?.schemeTokenId).map((t) => ({
5424
5448
  paymentMethodId: t.paymentMethodId,
5425
5449
  customerId: t.customerId,
@@ -5457,7 +5481,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5457
5481
  }))
5458
5482
  },
5459
5483
  on: { submit: z(this, "[PaymentMethods]: submit", (e) => {
5460
- this.log("[PaymentMethods]: submit", e), e?.paymentMethodId && (Xr(), setTimeout(() => {
5484
+ this.log("[PaymentMethods]: submit", e), e?.paymentMethodId && (oi(), setTimeout(() => {
5461
5485
  this.onSubmit(t, r, i, a, e);
5462
5486
  }, 500));
5463
5487
  }) }
@@ -5478,7 +5502,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5478
5502
  authenticationData: i
5479
5503
  });
5480
5504
  let a = z(this, "[PaymentMethodProcessor][tokenise], success", (t, n) => {
5481
- this.log("[PaymentMethodProcessor][tokenise], success", t, n), Yr();
5505
+ this.log("[PaymentMethodProcessor][tokenise], success", t, n), ai();
5482
5506
  let r = JSON.parse(n), i = { token: r.tokenId };
5483
5507
  r.card && (i.cardDetails = {
5484
5508
  bin: r.card.cardIin,
@@ -5493,9 +5517,9 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5493
5517
  issuer: r.card.iinData.issuer || "",
5494
5518
  countryCode: r.card.iinData.countryCode || "",
5495
5519
  cardType: r.card.iinData.cardType || ""
5496
- }), this.successCallback?.(i), $e(e, this.getSuccessMessage());
5520
+ }), this.successCallback?.(i), Qe(e, this.getSuccessMessage());
5497
5521
  }), o = z(this, "[PaymentMethodProcessor][tokenise], failure", (e, n) => {
5498
- this.log("[PaymentMethodProcessor][tokenise], failure", e, n), Yr();
5522
+ this.log("[PaymentMethodProcessor][tokenise], failure", e, n), ai();
5499
5523
  let r = JSON.parse(n);
5500
5524
  this.failureCallback?.({ error: r.message }), this.sendError(t, r.message);
5501
5525
  }), s = {
@@ -5513,7 +5537,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5513
5537
  },
5514
5538
  ...this.createBaseApiRequest()
5515
5539
  };
5516
- this.httpInvoker?.invoke(Qr(this.apiUrl)[Zr.TOKENISE].url, Qr(this.apiUrl)[Zr.TOKENISE].method, JSON.stringify(s), a, o);
5540
+ this.httpInvoker?.invoke(ci(this.apiUrl)[si.TOKENISE].url, ci(this.apiUrl)[si.TOKENISE].method, JSON.stringify(s), a, o);
5517
5541
  }
5518
5542
  getCustomerData(e, t, n) {
5519
5543
  let r = z(this, "[getCustomerData], success", (e, n) => {
@@ -5521,7 +5545,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5521
5545
  }), i = z(this, "[getCustomerData], failure", (e, t) => {
5522
5546
  this.log("[getCustomerData], failure", e, t), n(JSON.parse(t));
5523
5547
  });
5524
- this.httpInvoker?.invoke(Qr(this.apiUrl, e)[Zr.CUSTOMER_INFO].url, Qr(this.apiUrl, e)[Zr.CUSTOMER_INFO].method, {}, r, i);
5548
+ this.httpInvoker?.invoke(ci(this.apiUrl, e)[si.CUSTOMER_INFO].url, ci(this.apiUrl, e)[si.CUSTOMER_INFO].method, {}, r, i);
5525
5549
  }
5526
5550
  getPaymentMethodsInfo(e, t, n) {
5527
5551
  let r = z(this, "[getPaymentMethodsInfo], success", (e, n) => {
@@ -5529,7 +5553,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5529
5553
  }), i = z(this, "[getPaymentMethodsInfo], failure", (e, t) => {
5530
5554
  this.log("[getPaymentMethodsInfo], failure", e, t), n(JSON.parse(t));
5531
5555
  });
5532
- this.httpInvoker?.invoke(Qr(this.apiUrl, e)[Zr.PAYMENT_METHODS_INFO].url, Qr(this.apiUrl, e)[Zr.PAYMENT_METHODS_INFO].method, {}, r, i);
5556
+ this.httpInvoker?.invoke(ci(this.apiUrl, e)[si.PAYMENT_METHODS_INFO].url, ci(this.apiUrl, e)[si.PAYMENT_METHODS_INFO].method, {}, r, i);
5533
5557
  }
5534
5558
  onSubmit(e, t, n, r, i) {
5535
5559
  if (!i?.paymentMethodId) {
@@ -5554,7 +5578,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5554
5578
  o.invoke(this.amount, this.currency, z(this, "[sdk][paymentMethodProcessor], token authentication success", (r) => {
5555
5579
  this.log("[sdk][paymentMethodProcessor], token authentication success"), this.tokenise(e, i.paymentMethodId, t, n, r.assuranceData?.verificationData?.[0]);
5556
5580
  }), z(this, "[sdk][paymentMethodProcessor], token authentication error", (e) => {
5557
- Yr(), this.log("[sdk][paymentMethodProcessor], token authentication error", e), this.failureCallback?.({ error: "Token Authentication Error" });
5581
+ ai(), this.log("[sdk][paymentMethodProcessor], token authentication error", e), this.failureCallback?.({ error: "Token Authentication Error" });
5558
5582
  }));
5559
5583
  }
5560
5584
  }
@@ -5574,7 +5598,7 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5574
5598
  });
5575
5599
  let o = (i?.scheme || "").toLowerCase(), s = this.networkTokenProviders.find((e) => e.providerType.toLowerCase() === o);
5576
5600
  switch (String(s?.providerType).toLowerCase()) {
5577
- case "mastercard": return new tn(this.log.bind(this), {
5601
+ case "mastercard": return new Qt(this.log.bind(this), {
5578
5602
  container: this.container,
5579
5603
  token: e,
5580
5604
  networkToken: t,
@@ -5591,12 +5615,12 @@ var { hideSpinner: Yr, showSpinner: Xr } = ke(), Zr = {
5591
5615
  }
5592
5616
  messageHandler(e) {
5593
5617
  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);
5618
+ this.log(`[sdk][paymentMethodProcessor]: message "${e.data.status}" received`, e.data), ai(), this.validationStatusChangeCallback?.(e.data.message?.status, e.data.message?.message);
5595
5619
  return;
5596
5620
  }
5597
5621
  }
5598
5622
  };
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);
5623
+ 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
5624
  //#endregion
5601
5625
  //#region src/sdk/types/PaymentType.type.ts
5602
5626
  var Q;
@@ -5605,7 +5629,7 @@ var Q;
5605
5629
  })(Q ||= {});
5606
5630
  //#endregion
5607
5631
  //#region src/sdk/utils/paymentType.ts
5608
- function ei(e) {
5632
+ function ui(e) {
5609
5633
  switch (e) {
5610
5634
  case J.SHIFT: return Q.shift;
5611
5635
  case J.PESAPAL: return Q.pesapal;
@@ -5616,87 +5640,50 @@ function ei(e) {
5616
5640
  }
5617
5641
  //#endregion
5618
5642
  //#region src/sdk/utils/moduleLoader.ts
5619
- function ti() {
5620
- try {
5621
- return (0, eval)("import.meta");
5622
- } catch {
5623
- return;
5624
- }
5643
+ var di = {
5644
+ cxpay: () => import("./cxpay-CGIndAf1.js"),
5645
+ default: () => import("./default-CgpOZU3K.js"),
5646
+ ecentric: () => import("./ecentric-F3nn_MwX.js"),
5647
+ epna: () => import("./epna-uXpYJKOA.js"),
5648
+ flashbanc: () => import("./flashbanc-9XKA8Wrl.js"),
5649
+ gpayments: () => import("./gpayments-DsXj9xbu.js"),
5650
+ metrics_global: () => import("./metrics_global-L-Rm7bcl.js"),
5651
+ nmi: () => import("./nmi-BzHX8wqW.js"),
5652
+ nuvei: () => import("./nuvei-CS-nW8SB.js"),
5653
+ payabli: () => import("./payabli-C4YuB7Sr.js"),
5654
+ payglocal: () => import("./payglocal-Cy6Qd8ve.js"),
5655
+ skybank: () => import("./skybank-C6ZmVyX6.js")
5656
+ }, fi = { forter: () => import("./forter-Bm2GJ2Hs.js") };
5657
+ async function pi(e) {
5658
+ let t = di[e.toLowerCase()];
5659
+ if (!t) throw Error(`Module ${e} not found`);
5660
+ return await t();
5625
5661
  }
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);
5662
+ async function mi(e) {
5663
+ let t = fi[e.toLowerCase()];
5664
+ if (!t) throw Error(`Module ${e} not found`);
5665
+ return await t();
5679
5666
  }
5680
5667
  //#endregion
5681
5668
  //#region src/sdk/payfurl.ts
5682
- var { hideSpinner: ii } = ke(), ai = {
5669
+ var { hideSpinner: hi } = Oe(), gi = {
5683
5670
  PROVIDER_INFO: "PROVIDER_INFO",
5684
5671
  PROVIDERS_INFO: "PROVIDERS_INFO"
5685
- }, oi = (e, t, n) => ({
5686
- [ai.PROVIDERS_INFO]: {
5672
+ }, _i = (e, t, n) => ({
5673
+ [gi.PROVIDERS_INFO]: {
5687
5674
  url: e + "/info/providers/",
5688
5675
  method: "GET"
5689
5676
  },
5690
- [ai.PROVIDER_INFO]: {
5677
+ [gi.PROVIDER_INFO]: {
5691
5678
  url: e + (n ? "/info/providers/token/" + n : "/info/providers/" + t),
5692
5679
  method: "GET"
5693
5680
  }
5694
5681
  }), $ = class {
5695
5682
  _submitFormHandlers = {};
5696
5683
  _destroyDropIns = {};
5697
- environment = Ke.PRODUCTION;
5684
+ environment = Ge.PRODUCTION;
5698
5685
  debug = !1;
5699
- config = Je(Ke.PRODUCTION);
5686
+ config = qe(Ge.PRODUCTION);
5700
5687
  publicKey = "";
5701
5688
  amount = 0;
5702
5689
  currency = "";
@@ -5726,12 +5713,12 @@ var { hideSpinner: ii } = ke(), ai = {
5726
5713
  paymentOptions = {};
5727
5714
  initProcessorsHandlers = [];
5728
5715
  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.");
5716
+ if (this.environment = String(e).toLowerCase(), $e.init(this.environment, t, Y.version), window._payfurl) return window._payfurl;
5717
+ 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
5718
  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
5719
  }
5733
5720
  execute() {
5734
- window.postMessage({ status: ce }, "*");
5721
+ window.postMessage({ status: se }, "*");
5735
5722
  }
5736
5723
  messageHandler(e) {
5737
5724
  e?.data?.status && e.data.status === "payfurl-init" && this.userOnLoaded?.();
@@ -5753,7 +5740,7 @@ var { hideSpinner: ii } = ke(), ai = {
5753
5740
  }),
5754
5741
  onFailure: z(this, "[cardProcessor], failure", (e) => {
5755
5742
  this.log("[cardProcessor], failure", e);
5756
- let t = Hn(e.body);
5743
+ let t = zn(e.body);
5757
5744
  e.body && !t && this.log("[cardProcessor], failure", "no structured error detail in body"), this.userOnFailure?.({
5758
5745
  error: e.error,
5759
5746
  ...t && { errorDetails: t }
@@ -5774,7 +5761,7 @@ var { hideSpinner: ii } = ke(), ai = {
5774
5761
  }
5775
5762
  initPaypalProcessor(e) {
5776
5763
  if (this.log("[initPaypalProcessor]", { container: e }), this.paypalProcessor) return this.paypalProcessor;
5777
- let t = new Wt(this.log.bind(this), {
5764
+ let t = new Vt(this.log.bind(this), {
5778
5765
  debug: this.debug,
5779
5766
  environment: this.environment,
5780
5767
  publicKey: this.publicKey,
@@ -5793,7 +5780,7 @@ var { hideSpinner: ii } = ke(), ai = {
5793
5780
  }
5794
5781
  initCheckoutProcessor(e) {
5795
5782
  this.log("[initCheckoutProcessor]", { container: e });
5796
- let t = new Ln(this.log.bind(this), {
5783
+ let t = new Pn(this.log.bind(this), {
5797
5784
  debug: this.debug,
5798
5785
  environment: this.environment,
5799
5786
  publicKey: this.publicKey,
@@ -5815,7 +5802,7 @@ var { hideSpinner: ii } = ke(), ai = {
5815
5802
  }
5816
5803
  initGooglePayProcessor(e) {
5817
5804
  if (this.log("[initGooglePayProcessor]", { container: e }), this.googlePayProcessor) return this.googlePayProcessor;
5818
- let t = new Xn(this.log.bind(this), {
5805
+ let t = new qn(this.log.bind(this), {
5819
5806
  debug: this.debug,
5820
5807
  environment: this.environment,
5821
5808
  publicKey: this.publicKey,
@@ -5834,7 +5821,7 @@ var { hideSpinner: ii } = ke(), ai = {
5834
5821
  }
5835
5822
  initApplePayProcessor(e) {
5836
5823
  if (this.log("[initApplePayProcessor]", { container: e }), this.applePayProcessor) return this.applePayProcessor;
5837
- let t = new rr(this.log.bind(this), {
5824
+ let t = new pr(this.log.bind(this), {
5838
5825
  debug: this.debug,
5839
5826
  environment: this.environment,
5840
5827
  publicKey: this.publicKey,
@@ -5865,7 +5852,7 @@ var { hideSpinner: ii } = ke(), ai = {
5865
5852
  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
5853
  }
5867
5854
  initPayToProcessor(e) {
5868
- return this.log("[initPayToProcessor]", { container: e }), this.payToProcessor ? this.payToProcessor : (this.payToProcessor = new xn(this.log.bind(this), {
5855
+ return this.log("[initPayToProcessor]", { container: e }), this.payToProcessor ? this.payToProcessor : (this.payToProcessor = new vn(this.log.bind(this), {
5869
5856
  debug: this.debug,
5870
5857
  environment: this.environment,
5871
5858
  publicKey: this.publicKey,
@@ -5883,7 +5870,7 @@ var { hideSpinner: ii } = ke(), ai = {
5883
5870
  }), this.payToProcessor.setOnValidate(this.userOnValidate), this.payToProcessor);
5884
5871
  }
5885
5872
  initPaymentMethodProcessor(e) {
5886
- return this.log("[initPaymentMethodProcessor]", { container: e }), this.paymentMethodProcessor ? this.paymentMethodProcessor : (this.paymentMethodProcessor = new $r(this.log.bind(this), {
5873
+ return this.log("[initPaymentMethodProcessor]", { container: e }), this.paymentMethodProcessor ? this.paymentMethodProcessor : (this.paymentMethodProcessor = new li(this.log.bind(this), {
5887
5874
  debug: this.debug,
5888
5875
  environment: this.environment,
5889
5876
  publicKey: this.publicKey,
@@ -5947,12 +5934,12 @@ var { hideSpinner: ii } = ke(), ai = {
5947
5934
  let r = z(this, "[getSubmitFormHandler][handler]", (t) => {
5948
5935
  this.log("[sdk], submitForm", t), t.preventDefault();
5949
5936
  let n = this.getForm(e);
5950
- if (!(n?.onsubmit && !n.onsubmit(new SubmitEvent("submit")))) {
5937
+ if (!n?.onsubmit || n.onsubmit(new SubmitEvent("submit"))) {
5951
5938
  if (n && this.getInput(e, "token")?.value) {
5952
5939
  n.submit();
5953
5940
  return;
5954
5941
  }
5955
- window.postMessage({ status: ce }, "*");
5942
+ window.postMessage({ status: se }, "*");
5956
5943
  }
5957
5944
  });
5958
5945
  return this._submitFormHandlers[n] = r, r;
@@ -6133,7 +6120,7 @@ var { hideSpinner: ii } = ke(), ai = {
6133
6120
  createNetworkToken: r?.createNetworkToken,
6134
6121
  tokenAuthenticationEnabled: r?.tokenAuthenticationEnabled || r?.clickToPayOptions?.tokenAuthenticationEnabled,
6135
6122
  networkTokenOptions: r?.networkTokenOptions || r?.clickToPayOptions?.networkTokenOptions
6136
- }, z(this, "[addDropIn][initProcessors], callback", (a, c) => {
6123
+ }, z(this, "[addDropIn][initProcessors], callback", async (a, c) => {
6137
6124
  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
6125
  let l = [
6139
6126
  c.hasCardProviders,
@@ -6141,7 +6128,7 @@ var { hideSpinner: ii } = ke(), ai = {
6141
6128
  c.hasPayToProviders,
6142
6129
  c.hasBnplProviders,
6143
6130
  c.hasGooglePayProviders,
6144
- this.isApplePayAvailable() && c.hasApplePayProviders
6131
+ c.hasApplePayProviders && await this.isApplePayAvailable()
6145
6132
  ].filter(Boolean).length > 1, u = this.resolveThreeDsProvider(a, c), d = {
6146
6133
  threeDSEnabled: !!c.required3dsProvider,
6147
6134
  threeDsProviderId: c.required3dsProvider || "",
@@ -6222,11 +6209,16 @@ var { hideSpinner: ii } = ke(), ai = {
6222
6209
  metadata: G(r?.metadata)
6223
6210
  }, _ = c.hasApplePayProviders ? c.applePayProviders.find((e) => e.providerId === r?.applePayOptions?.providerId) || c.applePayProviders[0] : null, v = {
6224
6211
  lineItemLabel: r?.applePayOptions?.lineItemLabel || _?.lineItemLabel || "",
6225
- displayName: r?.applePayOptions?.domainName || _?.displayName || "",
6212
+ displayName: r?.applePayOptions?.displayName || _?.displayName || "",
6226
6213
  domainName: r?.applePayOptions?.domainName || _?.domainName || "",
6227
6214
  merchantIdentifier: r?.applePayOptions?.merchantIdentifier || _?.merchantIdentifier || "",
6228
6215
  providerId: r?.applePayOptions?.providerId || _?.providerId || "",
6229
6216
  providerType: r?.applePayOptions?.providerType || _?.providerType || "",
6217
+ countryCode: r?.applePayOptions?.countryCode || _?.countryCode,
6218
+ merchantCapabilities: r?.applePayOptions?.merchantCapabilities || _?.merchantCapabilities,
6219
+ supportedNetworks: r?.applePayOptions?.supportedNetworks || _?.supportedNetworks,
6220
+ supportedCountries: r?.applePayOptions?.supportedCountries || _?.supportedCountries,
6221
+ applePayVersion: r?.applePayOptions?.applePayVersion || _?.applePayVersion,
6230
6222
  clientParameters: a.clientParameters,
6231
6223
  metadata: G(r?.metadata)
6232
6224
  };
@@ -6245,10 +6237,10 @@ var { hideSpinner: ii } = ke(), ai = {
6245
6237
  o(Q.payto) && this.addPayTo(e, t, c.payToProviders[0], p);
6246
6238
  return;
6247
6239
  }
6248
- if (!l && c.hasBnplProviders && Sn[c.bnplProviders[0].providerType]) {
6240
+ if (!l && c.hasBnplProviders && yn[c.bnplProviders[0].providerType]) {
6249
6241
  if (c.bnplProviders[0].providerType === "upi") o(Q.upi) && this.addUpi(e, t, c.bnplProviders[0].providerId, r?.upiOptions || {});
6250
6242
  else {
6251
- let r = ei(c.bnplProviders[0].providerType);
6243
+ let r = ui(c.bnplProviders[0].providerType);
6252
6244
  r && o(r) && this.addCheckout(e, t, n, c.bnplProviders[0].providerType, c.bnplProviders[0].providerId, m, {
6253
6245
  ...c.bnplProviders[0].options,
6254
6246
  ...c.bnplProviders[0].clientParameters
@@ -6260,7 +6252,7 @@ var { hideSpinner: ii } = ke(), ai = {
6260
6252
  o(Q.googlepay) && this.addGooglePay(e, t, n, c.googlePayProviders[0].providerId, g);
6261
6253
  return;
6262
6254
  }
6263
- if (!l && this.isApplePayAvailable() && c.hasApplePayProviders) {
6255
+ if (!l && c.hasApplePayProviders && await this.isApplePayAvailable()) {
6264
6256
  o(Q.applepay) && this.addApplePay(e, t, n, v.providerId || "", v);
6265
6257
  return;
6266
6258
  }
@@ -6292,7 +6284,7 @@ var { hideSpinner: ii } = ke(), ai = {
6292
6284
  if (c.hasCardProviders && o(Q.card) && s.push({
6293
6285
  title: "Card",
6294
6286
  description: "Credit or Debit",
6295
- icon: ot,
6287
+ icon: it,
6296
6288
  render: (e) => {
6297
6289
  this.initCardProcessor(e).addCard(e, this.getForm(e), r?.cardProviderId || "", t, n, d);
6298
6290
  },
@@ -6304,7 +6296,7 @@ var { hideSpinner: ii } = ke(), ai = {
6304
6296
  }
6305
6297
  }), c.hasPaypalProviders && o(Q.paypal) && s.push({
6306
6298
  title: "Paypal",
6307
- icon: at,
6299
+ icon: rt,
6308
6300
  render: (e) => {
6309
6301
  this.initPaypalProcessor(e).addPaypal(e, this.getForm(e), t, n, c.paypalProviders[0], f);
6310
6302
  },
@@ -6314,27 +6306,29 @@ var { hideSpinner: ii } = ke(), ai = {
6314
6306
  component: "paypal"
6315
6307
  }, "*");
6316
6308
  }
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
- }, "*");
6309
+ }), c.hasPayToProviders && o(Q.payto)) {
6310
+ if (k(p.description)) s.push({
6311
+ title: "PayTo",
6312
+ icon: st,
6313
+ render: (e) => {
6314
+ this.initPayToProcessor(e).addPayTo(e, t, c.payToProviders[0], p);
6315
+ },
6316
+ activate: () => {
6317
+ a(), window.postMessage({
6318
+ status: "activate",
6319
+ component: "payto"
6320
+ }, "*");
6321
+ }
6322
+ });
6323
+ else {
6324
+ this.showErrorMessage(i, "Missing parameter: PayTo Description"), this.userOnFailure?.({ error: "Missing parameter: PayTo Description" });
6325
+ return;
6328
6326
  }
6329
- });
6330
- else {
6331
- this.showErrorMessage(i, "Missing parameter: PayTo Description"), this.userOnFailure?.({ error: "Missing parameter: PayTo Description" });
6332
- return;
6333
6327
  }
6334
6328
  c.hasBnplProviders && c.bnplProviders.forEach((e) => {
6335
- let i = Sn[e.providerType];
6329
+ let i = yn[e.providerType];
6336
6330
  if (!i) return;
6337
- let c = ei(e.providerType);
6331
+ let c = ui(e.providerType);
6338
6332
  if (!c || !o(c)) return;
6339
6333
  let l = i.icon ? `${this.config.cssUrl}icons/${i.icon}.svg` : null;
6340
6334
  s.push({
@@ -6357,7 +6351,7 @@ var { hideSpinner: ii } = ke(), ai = {
6357
6351
  });
6358
6352
  }), c.hasGooglePayProviders && o(Q.googlepay) && s.push({
6359
6353
  title: "Google Pay",
6360
- icon: st,
6354
+ icon: at,
6361
6355
  render: (e) => {
6362
6356
  this.initGooglePayProcessor(e).addGooglePay(e, c.hasGooglePayProviders ? c.googlePayProviders[0].providerId : "", t, n, g);
6363
6357
  },
@@ -6367,9 +6361,9 @@ var { hideSpinner: ii } = ke(), ai = {
6367
6361
  component: "googlepay"
6368
6362
  }, "*");
6369
6363
  }
6370
- }), this.isApplePayAvailable() && c.hasApplePayProviders && o(Q.applepay) && s.push({
6364
+ }), c.hasApplePayProviders && o(Q.applepay) && await this.isApplePayAvailable() && s.push({
6371
6365
  title: "Apple Pay",
6372
- icon: ir,
6366
+ icon: mr,
6373
6367
  render: (e) => {
6374
6368
  this.addApplePay(e.id, t, n, v.providerId || "", v);
6375
6369
  },
@@ -6382,7 +6376,7 @@ var { hideSpinner: ii } = ke(), ai = {
6382
6376
  });
6383
6377
  let l = D({
6384
6378
  el: document.getElementById(e),
6385
- component: bt,
6379
+ component: vt,
6386
6380
  props: { elements: s }
6387
6381
  });
6388
6382
  this.setDestroyDropIn(i, l.destroy);
@@ -6469,16 +6463,24 @@ var { hideSpinner: ii } = ke(), ai = {
6469
6463
  });
6470
6464
  })), this);
6471
6465
  }
6472
- isApplePayAvailable() {
6473
- if (typeof window > "u" || !window.ApplePaySession) return !1;
6466
+ async isApplePayAvailable() {
6467
+ if (await sr(), typeof window > "u" || !window.ApplePaySession) return !1;
6474
6468
  try {
6475
6469
  return ApplePaySession.canMakePayments() === !0;
6476
6470
  } catch {
6477
6471
  return !1;
6478
6472
  }
6479
6473
  }
6480
- addApplePay(t, n, r, i, a) {
6481
- if (!this.isApplePayAvailable()) return this.log("Your browser does not support ApplePay"), this;
6474
+ addApplePay(e, t, n, r, i) {
6475
+ return this.isApplePayAvailable().then(z(this, "[addApplePay], available", (a) => {
6476
+ if (!a) {
6477
+ this.log("Your browser does not support ApplePay");
6478
+ return;
6479
+ }
6480
+ this.renderApplePay(e, t, n, r, i);
6481
+ })).catch(() => {}), this;
6482
+ }
6483
+ renderApplePay(t, n, r, i, a) {
6482
6484
  this.log("[addApplePay]", {
6483
6485
  amount: n,
6484
6486
  currency: r,
@@ -6503,7 +6505,7 @@ var { hideSpinner: ii } = ke(), ai = {
6503
6505
  clientParameters: a
6504
6506
  });
6505
6507
  });
6506
- return this.initProcessors(o, n, r, i || "", "", {}, z(this, "[addApplePay][initProcessors], callback", (e, t) => {
6508
+ this.initProcessors(o, n, r, i || "", "", {}, z(this, "[addApplePay][initProcessors], callback", (e, t) => {
6507
6509
  if (!t.hasApplePayProviders) return;
6508
6510
  let n = i && t.applePayProviders.find((e) => e.providerId === i) || t.applePayProviders[0];
6509
6511
  s(n.providerId, n.providerType, {
@@ -6513,9 +6515,14 @@ var { hideSpinner: ii } = ke(), ai = {
6513
6515
  displayName: a?.displayName || n.displayName,
6514
6516
  providerId: a?.providerId || n.providerId,
6515
6517
  providerType: a?.providerType || n.providerType,
6518
+ countryCode: a?.countryCode || n.countryCode,
6519
+ merchantCapabilities: a?.merchantCapabilities || n.merchantCapabilities,
6520
+ supportedNetworks: a?.supportedNetworks || n.supportedNetworks,
6521
+ supportedCountries: a?.supportedCountries || n.supportedCountries,
6522
+ applePayVersion: a?.applePayVersion || n.applePayVersion,
6516
6523
  metadata: G(a?.metadata)
6517
6524
  }, e.clientParameters || n.clientParameters);
6518
- })), this;
6525
+ }));
6519
6526
  }
6520
6527
  addCheckout(e, t, n, r, i, a, o) {
6521
6528
  this.log(`[addCheckout], ${r}`, {
@@ -6572,7 +6579,7 @@ var { hideSpinner: ii } = ke(), ai = {
6572
6579
  }
6573
6580
  addThreeDsWithFullParameters(t, n, r, i, a, o, s, c, l) {
6574
6581
  this.log("[addThreeDsWithFullParameters]", {
6575
- cardNumber: qe(n),
6582
+ cardNumber: Ke(n),
6576
6583
  expiryDate: r,
6577
6584
  cardholder: i,
6578
6585
  email: a,
@@ -6584,7 +6591,7 @@ var { hideSpinner: ii } = ke(), ai = {
6584
6591
  let u = t && document.getElementById(t) || null;
6585
6592
  if (!e(o)) throw this.showErrorMessage(u, "Missing parameter: amount"), this.userOnFailure?.({ error: "Missing parameter: amount" }), TypeError("Missing parameter: amount");
6586
6593
  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) => {
6594
+ 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) => {
6588
6595
  if (!e.hasThreeDsProviders) {
6589
6596
  this.log("No 3DS providers found"), this.userOnSuccess?.({});
6590
6597
  return;
@@ -6596,7 +6603,7 @@ var { hideSpinner: ii } = ke(), ai = {
6596
6603
  cardholder: i,
6597
6604
  ccv: c
6598
6605
  }), this.threeDsProcessor?.threeDSInvoke(u, !!l?.requireChallenge, (e) => {
6599
- ii(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID });
6606
+ hi(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID });
6600
6607
  });
6601
6608
  }), z(this, "[addThreeDsWithFullParameters][add3DsProcessor], onerror", () => {
6602
6609
  this.log(`Cannot load 3DS provider (${e.threeDsProviders[0].providerType})`), this.userOnSuccess?.({});
@@ -6606,7 +6613,7 @@ var { hideSpinner: ii } = ke(), ai = {
6606
6613
  tokeniseWith3Ds(t, n, r, i, a, o, s, c, l, u, d) {
6607
6614
  this.log("[tokeniseWith3Ds]", {
6608
6615
  providerId: n,
6609
- cardNumber: qe(r),
6616
+ cardNumber: Ke(r),
6610
6617
  expiryDate: i,
6611
6618
  cardholder: a,
6612
6619
  ccv: "***",
@@ -6620,7 +6627,7 @@ var { hideSpinner: ii } = ke(), ai = {
6620
6627
  if (!k(n)) throw this.showErrorMessage(f, "Missing parameter: providerId"), this.userOnFailure?.({ error: "Missing parameter: Provider Id" }), TypeError("Missing parameter: providerId");
6621
6628
  if (!e(c)) throw this.userOnFailure?.({ error: "Missing parameter: amount" }), TypeError("Missing parameter: amount");
6622
6629
  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, "", {
6630
+ 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
6631
  createNetworkToken: d?.createNetworkToken,
6625
6632
  clickToPayEnabled: !1
6626
6633
  }, z(this, "[tokeniseWith3Ds][initProcessors], callback", (e, t) => {
@@ -6633,19 +6640,19 @@ var { hideSpinner: ii } = ke(), ai = {
6633
6640
  cardholder: a,
6634
6641
  ccv: o
6635
6642
  }), 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);
6643
+ hi(), this.log("[threeDSInvoke], postAuthData", t), e.threeDsProviderType === "payglocal" ? this.userOnSuccess?.({ threeDSServerTransID: t.threeDSServerTransID }) : s(t.threeDSServerTransID);
6637
6644
  })) : (this.log("threeDsProcessor NOT FOUND"), s());
6638
6645
  })), this;
6639
6646
  }
6640
6647
  tokeniseCard(e, t, n, r, i, a, o, s) {
6641
6648
  return this.log("[tokeniseCard]", {
6642
6649
  providerId: e,
6643
- cardNumber: qe(t),
6650
+ cardNumber: Ke(t),
6644
6651
  expiryDate: n,
6645
6652
  cardHolderName: r,
6646
6653
  options: s,
6647
6654
  metadata: a
6648
- }), t = Xe(t), this.initCardProcessor(null).tokeniseCard(e, t, n, r, i, G(a), o, s), this;
6655
+ }), t = Ye(t), this.initCardProcessor(null).tokeniseCard(e, t, n, r, i, G(a), o, s), this;
6649
6656
  }
6650
6657
  addThreeDsWithToken(t, n, r, i, a, o) {
6651
6658
  if (this.log("[addThreeDsWithToken]", {
@@ -6663,7 +6670,7 @@ var { hideSpinner: ii } = ke(), ai = {
6663
6670
  return;
6664
6671
  }
6665
6672
  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);
6673
+ hi(), this.log("[threeDSInvoke], postAuthData", e), this.userOnSuccess?.({ threeDSServerTransID: e.threeDSServerTransID }), this.threeDsProcessor?.updateTokenExternal3dsData(e.externalThreeDsData);
6667
6674
  }), this.threeDsProcessor?.setPaymentInfo({
6668
6675
  cardNumber: "",
6669
6676
  expiryDate: "",
@@ -6688,7 +6695,7 @@ var { hideSpinner: ii } = ke(), ai = {
6688
6695
  let i = JSON.parse(t);
6689
6696
  this.log("[getPaymentOptions], success", i), this.paymentOptions[r] = i, n?.(i);
6690
6697
  });
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);
6698
+ 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
6699
  }
6693
6700
  getProviderInfo(e, t, n, r, i, a) {
6694
6701
  this.log("[getProviderInfo], request", {
@@ -6709,7 +6716,7 @@ var { hideSpinner: ii } = ke(), ai = {
6709
6716
  let n = JSON.parse(t);
6710
6717
  this.log("[getProviderInfo], data", n), this.paymentOptions[o] = n, i(n);
6711
6718
  });
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);
6719
+ 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
6720
  }
6714
6721
  setAmount(e) {
6715
6722
  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({
@@ -6759,7 +6766,7 @@ var { hideSpinner: ii } = ke(), ai = {
6759
6766
  }
6760
6767
  setOrderInfo(e) {
6761
6768
  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,
6769
+ status: He,
6763
6770
  order: e
6764
6771
  }, "*"), this;
6765
6772
  }
@@ -6857,7 +6864,7 @@ var { hideSpinner: ii } = ke(), ai = {
6857
6864
  }));
6858
6865
  }
6859
6866
  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) {
6867
+ if (this.log("[addFraudProcessor]", e, t, r), !this.amount || !this.currency) {
6861
6868
  this.log("[addFraudProcessor], NOT loaded", {
6862
6869
  amount: this.amount,
6863
6870
  currency: this.currency,
@@ -6867,10 +6874,10 @@ var { hideSpinner: ii } = ke(), ai = {
6867
6874
  }), i?.();
6868
6875
  return;
6869
6876
  }
6870
- ri(t).then(z(this, "[addFraudProcessor], onload", (a) => {
6877
+ mi(t).then(z(this, "[addFraudProcessor], onload", (a) => {
6871
6878
  this.log(`Loading ${t}...`, a);
6872
6879
  let o = a.default();
6873
- o?.getFraudCheckData && (this.fraudProcessor = new Bn(this.log.bind(this), {
6880
+ o?.getFraudCheckData && (this.fraudProcessor = new Ln(this.log.bind(this), {
6874
6881
  debug: this.debug,
6875
6882
  environment: this.environment,
6876
6883
  publicKey: this.publicKey,
@@ -6898,7 +6905,7 @@ var { hideSpinner: ii } = ke(), ai = {
6898
6905
  } : t.threeDsProviders?.find((e) => e.providerId === t.required3dsProvider) || t.threeDsProviders?.[0];
6899
6906
  }
6900
6907
  add3DsProcessor(e, t, n, r, i, a, o) {
6901
- this.log("[add3DsProcessor]", t, n), ni(n).then(z(this, "[add3DsProcessor], onload", (o) => {
6908
+ this.log("[add3DsProcessor]", t, n), pi(n).then(z(this, "[add3DsProcessor], onload", (o) => {
6902
6909
  this.log(`Loading ${n}...`, o);
6903
6910
  let s = o.default(this.log.bind(this), e, {
6904
6911
  environment: this.environment,
@@ -6934,36 +6941,7 @@ var { hideSpinner: ii } = ke(), ai = {
6934
6941
  }));
6935
6942
  }
6936
6943
  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) => {
6944
+ this.log("[addSecondary3DsProcessor]", t, n), pi(n).then(z(this, "[addSecondary3DsProcessor], onload", (o) => {
6967
6945
  this.log(`Loading ${n}...`, o);
6968
6946
  let s = o.default(this.log.bind(this), e, {
6969
6947
  environment: this.environment,
@@ -7043,6 +7021,6 @@ var { hideSpinner: ii } = ke(), ai = {
7043
7021
  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
7022
  //#endregion
7045
7023
  //#region src/sdk/main.ts
7046
- var si = new $();
7024
+ var vi = new $();
7047
7025
  //#endregion
7048
- export { si as default };
7026
+ export { vi as default };