@payfurl/client 4.8.7 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/sdk/{CloseIcon-_3X2kvPG.js → CloseIcon-BJgZxU_4.js} +41 -38
  2. package/dist/sdk/{CxPayThreeDsProvider-DAAmw4ya.js → CxPayThreeDsProvider-lD7RyyaH.js} +1 -1
  3. package/dist/sdk/{DefaultThreeDsProvider-JPe2W_JG.js → DefaultThreeDsProvider-aIZr-d29.js} +56 -55
  4. package/dist/sdk/{EcentricThreeDsProvider-Ddy0Fn5h.js → EcentricThreeDsProvider-B7Hq90Yp.js} +17 -17
  5. package/dist/sdk/{EpnaThreeDsProvider-Ng4Pmq0D.js → EpnaThreeDsProvider-BAO2GROY.js} +1 -1
  6. package/dist/sdk/{FlashBancThreeDsProvider-DFZG4u44.js → FlashBancThreeDsProvider-CIZpoTAj.js} +1 -1
  7. package/dist/sdk/{GPaymentsThreeDsProvider-BIku3bZP.js → GPaymentsThreeDsProvider-COuZ_3w6.js} +21 -23
  8. package/dist/sdk/MetricsGlobalThreeDsProvider-D3x5hiTk.js +133 -0
  9. package/dist/sdk/{NmiThreeDsProvider-CzRH7vrp.js → NmiThreeDsProvider-fLTB46dM.js} +1 -1
  10. package/dist/sdk/{NuveiThreeDsProvider-DMO_bgOI.js → NuveiThreeDsProvider-BpWi_OJA.js} +50 -52
  11. package/dist/sdk/{PayGLocalThreeDsProvider-DDqJz4iC.js → PayGLocalThreeDsProvider-DvA8Ng4u.js} +31 -30
  12. package/dist/sdk/{PayWayAppleButton-DVoTz5Nn.js → PayWayAppleButton-DESHrVB-.js} +1 -1
  13. package/dist/sdk/{PayabliThreeDsProvider-BWStZH6E.js → PayabliThreeDsProvider-B34Ah8DW.js} +1 -1
  14. package/dist/sdk/{SkyBankThreeDsProvider-U6pzbMJY.js → SkyBankThreeDsProvider-0S5UKz-C.js} +1 -1
  15. package/dist/sdk/{alerts-D474JL4D.js → alerts-Bad_5Z62.js} +9 -9
  16. package/dist/sdk/{cxpay-BnpH4Q1F.js → cxpay-2tlxyzUF.js} +1 -1
  17. package/dist/sdk/{default-B8ZcE4ja.js → default-Sih0fC9J.js} +1 -1
  18. package/dist/sdk/{ecentric-DwR-gEaW.js → ecentric-CN_DxZw6.js} +1 -1
  19. package/dist/sdk/{epna-BtQr8Mlq.js → epna-CuWMBne4.js} +1 -1
  20. package/dist/sdk/favicon.ico +0 -0
  21. package/dist/sdk/{flashbanc-BNEJGUff.js → flashbanc-YdmE24o7.js} +1 -1
  22. package/dist/sdk/forter-CcQiwntl.js +60 -0
  23. package/dist/sdk/forterDeviceIntelScript-DdHZ7KLR.js +4 -0
  24. package/dist/sdk/{gpayments-QZCq0_0y.js → gpayments-DVhgcMCp.js} +1 -1
  25. package/dist/sdk/{metrics_global--mOHedmQ.js → metrics_global-DshQOuaW.js} +1 -1
  26. package/dist/sdk/{nmi-BtKpUtad.js → nmi-Qo4scfgJ.js} +1 -1
  27. package/dist/sdk/{nuvei-BOfZN_Em.js → nuvei-BFllJ45f.js} +1 -1
  28. package/dist/sdk/{payabli-BfZ7IhDq.js → payabli-eGPashQz.js} +1 -1
  29. package/dist/sdk/payfurl.es.js +1441 -1371
  30. package/dist/sdk/payfurl.umd.js +7 -7
  31. package/dist/sdk/{payglocal-CpEbJSpn.js → payglocal-WvM5v5cn.js} +1 -1
  32. package/dist/sdk/{payway_rest-CIjvQwcK.js → payway_rest-m9k6k7M0.js} +1 -1
  33. package/dist/sdk/screen-D7xBu0cj.js +24 -0
  34. package/dist/sdk/{skybank-DWPrfoAb.js → skybank-174OmYCW.js} +1 -1
  35. package/dist/sdk/{strings-JNmtxeev.js → strings-C1wc79_e.js} +12 -12
  36. package/package.json +1 -1
  37. package/dist/sdk/MetricsGlobalThreeDsProvider-BMeP5IWW.js +0 -118
  38. package/dist/sdk/forter-D0-GGAlC.js +0 -41
@@ -12,10 +12,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
12
12
  enumerable: !(s = n(i, d)) || s.enumerable
13
13
  });
14
14
  return e;
15
- }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
15
+ }, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
16
16
  value: n,
17
17
  enumerable: !0
18
- }) : a, n));
18
+ }) : o, n));
19
19
  //#endregion
20
20
  //#region node_modules/@vue/shared/dist/shared.esm-bundler.js
21
21
  // @__NO_SIDE_EFFECTS__
@@ -51,7 +51,8 @@ function ge(e) {
51
51
  if (i) for (let e in i) t[e] = i[e];
52
52
  }
53
53
  return t;
54
- } else if (E(e) || O(e)) return e;
54
+ }
55
+ if (E(e) || O(e)) return e;
55
56
  }
56
57
  var _e = /;(?![^(]*\))/g, ve = /:([^]+)/, ye = /\/\*[^]*?\*\//g;
57
58
  function be(e) {
@@ -104,7 +105,7 @@ function De(e, t) {
104
105
  }
105
106
  var Oe = (e) => !!(e && e.__v_isRef === !0), ke = (e) => E(e) ? e : e == null ? "" : x(e) || O(e) && (e.toString === te || !T(e.toString)) ? Oe(e) ? ke(e.value) : JSON.stringify(e, Ae, 2) : String(e), Ae = (e, t) => Oe(t) ? Ae(e, t.value) : S(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((e, [t, n], r) => (e[je(t, r) + " =>"] = n, e), {}) } : C(t) ? { [`Set(${t.size})`]: [...t.values()].map((e) => je(e)) } : D(t) ? je(t) : O(t) && !x(t) && !ie(t) ? String(t) : t, je = (e, t = "") => D(e) ? `Symbol(${e.description ?? t})` : e, N, Me = class {
106
107
  constructor(e = !1) {
107
- this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this._warnOnRun = !0, this.__v_skip = !0, !e && N && (N.active ? (this.parent = N, this.index = (N.scopes ||= []).push(this) - 1) : (this._active = !1, this._warnOnRun = !1));
108
+ this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this._warnOnRun = !0, this.__v_skip = !0, !e && N && (N.active ? (this.parent = N, this.index = (N.scopes || (N.scopes = [])).push(this) - 1) : (this._active = !1, this._warnOnRun = !1));
108
109
  }
109
110
  get active() {
110
111
  return this._active;
@@ -393,9 +394,7 @@ function ot(e, t, n, r, i, a) {
393
394
  case "delete":
394
395
  i || (s(o.get(rt)), S(e) && s(o.get(it)));
395
396
  break;
396
- case "set":
397
- S(e) && s(o.get(rt));
398
- break;
397
+ case "set": S(e) && s(o.get(rt));
399
398
  }
400
399
  }
401
400
  Ve();
@@ -1673,7 +1672,7 @@ function si(e, t, n, r = !1) {
1673
1672
  let i = {}, a = ai();
1674
1673
  e.propsDefaults = /* @__PURE__ */ Object.create(null), li(e, t, i, a);
1675
1674
  for (let t in e.propsOptions[0]) t in i || (i[t] = void 0);
1676
- n ? e.props = r ? i : /* @__PURE__ */ Bt(i) : e.type.props ? e.props = i : e.props = a, e.attrs = a;
1675
+ e.props = n ? r ? i : /* @__PURE__ */ Bt(i) : e.type.props ? i : a, e.attrs = a;
1677
1676
  }
1678
1677
  function ci(e, t, n, r) {
1679
1678
  let { props: i, attrs: a, vnode: { patchFlag: o } } = e, s = /* @__PURE__ */ z(i), [c] = e.propsOptions, l = !1;
@@ -1763,7 +1762,8 @@ function fi(e, t, n = !1) {
1763
1762
  if (n === "Boolean") {
1764
1763
  c = !0;
1765
1764
  break;
1766
- } else n === "String" && (l = !1);
1765
+ }
1766
+ n === "String" && (l = !1);
1767
1767
  }
1768
1768
  else c = T(i) && i.name === "Boolean";
1769
1769
  r[0] = c, r[1] = l, (c || b(r, "default")) && s.push(t);
@@ -1996,7 +1996,8 @@ function Ci(e, t) {
1996
1996
  if (p & 128) {
1997
1997
  le(l, f, n, r, i, a, o, s, c);
1998
1998
  return;
1999
- } else if (p & 256) {
1999
+ }
2000
+ if (p & 256) {
2000
2001
  ce(l, f, n, r, i, a, o, s, c);
2001
2002
  return;
2002
2003
  }
@@ -2829,7 +2830,7 @@ function wo(e, t) {
2829
2830
  let a = e.options[i], o = To(a);
2830
2831
  if (n) if (r) {
2831
2832
  let e = typeof o;
2832
- e === "string" || e === "number" ? a.selected = t.some((e) => String(e) === String(o)) : a.selected = De(t, o) > -1;
2833
+ a.selected = e === "string" || e === "number" ? t.some((e) => String(e) === String(o)) : De(t, o) > -1;
2833
2834
  } else a.selected = t.has(o);
2834
2835
  else if (Ee(To(a), t)) {
2835
2836
  e.selectedIndex !== i && (e.selectedIndex = i);
@@ -2879,22 +2880,24 @@ var Mo = ((...e) => {
2879
2880
  //#endregion
2880
2881
  //#region src/sdk/components/render.ts
2881
2882
  function No(e) {
2882
- let t, n = () => {
2883
- Mo(null, e.el), t = void 0;
2884
- }, r = Object.keys(e.on || {}).reduce((t, n) => {
2883
+ let t, n = e.el === document.body, r = n ? document.createElement("div") : e.el;
2884
+ n && document.body.appendChild(r);
2885
+ let i = () => {
2886
+ Mo(null, r), t = void 0, n && r.remove();
2887
+ }, a = Object.keys(e.on || {}).reduce((t, n) => {
2885
2888
  let r = n.charAt(0).toUpperCase() + n.slice(1);
2886
2889
  return t[`on${r}`] = e.on[n], t;
2887
2890
  }, {}) || {};
2888
- r.onClose ||= () => n();
2889
- let i = {
2891
+ a.onClose ||= () => i();
2892
+ let o = {
2890
2893
  ...e.props,
2891
- ...r,
2894
+ ...a,
2892
2895
  onVnodeUnmounted: () => {},
2893
2896
  onVnodeMounted: () => {}
2894
2897
  };
2895
- return t = Z(e.component, i), Mo(t, e.el), {
2898
+ return t = Z(e.component, o), Mo(t, r), {
2896
2899
  vnode: t,
2897
- destroy: n
2900
+ destroy: i
2898
2901
  };
2899
2902
  }
2900
2903
  //#endregion
@@ -3209,8 +3212,8 @@ function Lo(e) {
3209
3212
  if (e.search(/^\d{2}\/\d{2}$/i) === -1) return !1;
3210
3213
  let t = e.split("/"), n = parseInt(t[0], 10), r = parseInt(t[1], 10);
3211
3214
  if (n < 0 || n > 12) return !1;
3212
- let i = (0, Po.default)("20" + r.toString() + "-" + n.toString() + "-01", "YYYY-MM-DD");
3213
- return !((0, Po.default)().startOf("month").diff(i, "days") > 0);
3215
+ let i = "20" + r.toString() + "-" + n.toString() + "-01", a = (0, Po.default)(i, "YYYY-MM-DD");
3216
+ return !((0, Po.default)().startOf("month").diff(a, "days") > 0);
3214
3217
  }
3215
3218
  function Ro(e) {
3216
3219
  return e.slice().replaceAll(/[^0-9]/g, "");
@@ -3330,42 +3333,42 @@ var Xo = (e, t) => {
3330
3333
  X("div")
3331
3334
  ], -1)]));
3332
3335
  }
3333
- }), [["__scopeId", "data-v-16bb7d59"]]), ts = "compact", ns = "payfurl-init", rs = "init-card-form", is = "checkout-ready", as = "submit-card-form", os = "tokenise-card-form", ss = "request-card", cs = "card-details", ls = "secure-orchestrator-ready", us = "secure-orchestrator-submit", ds = "secure-orchestrator-submit-secondary-3ds", fs = "secure-orchestrator-tokenise", ps = "secure-orchestrator-failure", ms = "secure-orchestrator-update-state", hs = "secure-orchestrator-click-to-pay-card", gs = "secure-orchestrator-click-to-pay-new-card", _s = "iframe-has-changed", vs = "show-spinner", ys = "hide-spinner", bs = "set-amount", xs = "set-currency", Ss = "set-billing-address", Cs = "set-customer-info", ws = "set-order-info", Ts = "tokenise-card-success", Es = "tokenise-card-failure", Ds = "click2pay-cards", Os = "click2pay-remember-me", ks = "click2pay-show-learn-more", As = "show-card-form", js = "start-loading-card-form", Ms = "stop-loading-card-form", Ns = "pause-loading-card-form", Ps = "unpause-loading-card-form", Fs = "click2pay-change-user", Is = "click2pay-stop-using", Ls = "click2pay-update-available-card-brands", Rs = "card-form-error", zs = "card-form-info-message", Bs = "card-form-validation-error", Vs = "card-form-validation-status-change", Hs = "Payment Details Collected", Us = "3D Secure required", $ = null;
3334
- function Ws() {
3336
+ }), [["__scopeId", "data-v-16bb7d59"]]), ts = "compact", ns = "payfurl-init", rs = "init-card-form", is = "checkout-ready", as = "submit-card-form", os = "tokenise-card-form", ss = "request-card", cs = "card-details", ls = "secure-orchestrator-ready", us = "secure-orchestrator-submit", ds = "secure-orchestrator-submit-secondary-3ds", fs = "secure-orchestrator-tokenise", ps = "secure-orchestrator-failure", ms = "secure-orchestrator-update-state", hs = "secure-orchestrator-click-to-pay-card", gs = "secure-orchestrator-click-to-pay-new-card", _s = "secure-orchestrator-show-challenge", vs = "secure-orchestrator-hide-challenge", ys = "iframe-has-changed", bs = "show-spinner", xs = "hide-spinner", Ss = "set-amount", Cs = "set-currency", ws = "set-billing-address", Ts = "set-customer-info", Es = "set-order-info", Ds = "tokenise-card-success", Os = "tokenise-card-failure", ks = "click2pay-cards", As = "click2pay-remember-me", js = "click2pay-show-learn-more", Ms = "show-card-form", Ns = "start-loading-card-form", Ps = "stop-loading-card-form", Fs = "pause-loading-card-form", Is = "unpause-loading-card-form", Ls = "click2pay-change-user", Rs = "click2pay-stop-using", zs = "click2pay-update-available-card-brands", Bs = "card-form-error", Vs = "card-form-info-message", Hs = "card-form-validation-error", Us = "card-form-validation-status-change", Ws = "Payment Details Collected", Gs = "3D Secure required", Ks = "3D Secure failed", qs = "Unable to process payment details", $ = null;
3337
+ function Js() {
3335
3338
  if (window.self !== window.top) {
3336
- window.parent.postMessage({ status: ys }, "*");
3339
+ window.parent.postMessage({ status: xs }, "*");
3337
3340
  return;
3338
3341
  }
3339
- $ || Ks(), $ && ($.style.display = "none");
3342
+ $ || Xs(), $ && ($.style.display = "none");
3340
3343
  }
3341
- function Gs() {
3344
+ function Ys() {
3342
3345
  if (window.self !== window.top) {
3343
- window.parent.postMessage({ status: vs }, "*");
3346
+ window.parent.postMessage({ status: bs }, "*");
3344
3347
  return;
3345
3348
  }
3346
- $ || Ks(), $ && ($.style.display = "block");
3349
+ $ || Xs(), $ && ($.style.display = "block");
3347
3350
  }
3348
- function Ks() {
3351
+ function Xs() {
3349
3352
  $ = document.getElementById("payfurl-spinner"), !$ && document.body && ($ = document.createElement("div"), $.id = "payfurl-spinner", $.style.display = "none", document.body.appendChild($), No({
3350
3353
  el: $,
3351
3354
  component: es
3352
3355
  }));
3353
3356
  }
3354
- function qs() {
3355
- return window.self === window.top && Ks(), {
3356
- showSpinner: Gs,
3357
- hideSpinner: Ws
3357
+ function Zs() {
3358
+ return window.self === window.top && Xs(), {
3359
+ showSpinner: Ys,
3360
+ hideSpinner: Js
3358
3361
  };
3359
3362
  }
3360
3363
  //#endregion
3361
3364
  //#region src/components/CloseIcon.vue
3362
- var Js = {}, Ys = {
3365
+ var Qs = {}, $s = {
3363
3366
  xmlns: "http://www.w3.org/2000/svg",
3364
3367
  viewBox: "0 0 48 48"
3365
3368
  };
3366
- function Xs(e, t) {
3367
- return Ri(), Ui("svg", Ys, [...t[0] ||= [X("polygon", { points: "39 10.44 37.56 9 24 22.56 10.44 9 9 10.44 22.56 24 9 37.56 10.44 39 24 25.44 37.56 39 39 37.56 25.44 24 39 10.44" }, null, -1)]]);
3369
+ function ec(e, t) {
3370
+ return Ri(), Ui("svg", $s, [...t[0] ||= [X("polygon", { points: "39 10.44 37.56 9 24 22.56 10.44 9 9 10.44 22.56 24 9 37.56 10.44 39 24 25.44 37.56 39 39 37.56 25.44 24 39 10.44" }, null, -1)]]);
3368
3371
  }
3369
- var Zs = /*#__PURE__*/ Xo(Js, [["render", Xs], ["__scopeId", "data-v-d7e8386b"]]);
3372
+ var tc = /*#__PURE__*/ Xo(Qs, [["render", ec], ["__scopeId", "data-v-d7e8386b"]]);
3370
3373
  //#endregion
3371
- export { Uo as $, fs as A, On as At, Ms as B, Us as C, cr as Ct, ls as D, hr as Dt, ps as E, yr as Et, Cs as F, ge as Ft, Ps as G, Es as H, ws as I, ke as It, Ko as J, es as K, As as L, o as Lt, bs as M, Jt as Mt, Ss as N, Zt as Nt, us as O, Tr as Ot, xs as P, xe as Pt, Vo as Q, vs as R, s as Rt, ss as S, ir as St, gs as T, vr as Tt, os as U, as as V, Ts as W, Fo as X, Wo as Y, Ho as Z, zs as _, Ui as _t, Vs as a, Go as at, ns as b, Z as bt, Ds as c, Co as ct, Is as d, Oo as dt, Lo as et, Ls as f, J as ft, _s as g, ea as gt, ys as h, Wi as ht, Bs as i, Yo as it, ms as j, kn as jt, ds as k, Fn as kt, Os as l, So as lt, Rs as m, X as mt, qs as n, zo as nt, is as o, Jo as ot, ts as p, Da as pt, Xo as q, cs as r, qo as rt, Fs as s, No as st, Zs as t, Bo as tt, ks as u, Va as ut, rs as v, $i as vt, hs as w, Ri as wt, Hs as x, Un as xt, Ns as y, Qi as yt, js as z, l as zt };
3374
+ export { Wo as $, _s as A, yr as At, Ms as B, ke as Bt, ss as C, Qi as Ct, ps as D, cr as Dt, gs as E, ir as Et, Ss as F, kn as Ft, Os as G, Ns as H, s as Ht, ws as I, Jt as It, qs as J, os as K, Cs as L, Zt as Lt, ds as M, Tr as Mt, fs as N, Fn as Nt, vs as O, Ri as Ot, ms as P, On as Pt, Ko as Q, Ts as R, xe as Rt, Ws as S, $i as St, hs as T, Un as Tt, Ps as U, l as Ut, bs as V, o as Vt, as as W, es as X, Is as Y, Xo as Z, ys as _, Da as _t, Us as a, Bo as at, Fs as b, ea as bt, ks as c, Yo as ct, Rs as d, No as dt, Fo as et, zs as f, Co as ft, xs as g, J as gt, Ks as h, Oo as ht, Hs as i, Lo as it, us as j, hr as jt, ls as k, vr as kt, As as l, Go as lt, Bs as m, Va as mt, Zs as n, Vo as nt, is as o, zo as ot, ts as p, So as pt, Ds as q, cs as r, Uo as rt, Ls as s, qo as st, tc as t, Ho as tt, js as u, Jo as ut, Vs as v, X as vt, Gs as w, Z as wt, ns as x, Ui as xt, rs as y, Wi as yt, Es as z, ge as zt };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./MetricsGlobalThreeDsProvider-BMeP5IWW.js";
1
+ import { t as e } from "./MetricsGlobalThreeDsProvider-D3x5hiTk.js";
2
2
  //#region src/sdk/3ds/CxPayThreeDsProvider.ts
3
3
  var t = class extends e {
4
4
  getType() {
@@ -1,6 +1,6 @@
1
- import { Mt as e, Nt as t, Rt as n, St as r, _t as i, bt as a, it as o, mt as s, n as c, pt as l, q as u, st as d, t as f, wt as p, xt as m } from "./CloseIcon-_3X2kvPG.js";
1
+ import { A as e, Et as t, Ht as n, It as r, Lt as i, O as a, Ot as o, Tt as s, Z as c, _t as l, ct as u, dt as d, h as f, n as p, t as m, vt as h, wt as g, xt as _ } from "./CloseIcon-BJgZxU_4.js";
2
2
  //#region src/sdk/3ds/ThreeDsChallenge.vue?vue&type=script&setup=true&lang.ts
3
- var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" }, v = ["action"], y = ["value"], b = /*#__PURE__*/ u(/* @__PURE__ */ m({
3
+ var v = { class: "mask" }, y = { class: "wrapper" }, b = { class: "container" }, x = ["action"], S = ["value"], C = /*#__PURE__*/ c(/* @__PURE__ */ s({
4
4
  __name: "ThreeDsChallenge",
5
5
  props: {
6
6
  threeDSServerTransID: {},
@@ -8,36 +8,36 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
8
8
  formAction: {}
9
9
  },
10
10
  emits: ["close", "submit"],
11
- setup(n, { emit: c }) {
12
- let u = n, d = c, m = l(() => o(u.formAction) ? u.formAction : ""), b = e(null), x = JSON.stringify({
13
- threeDSServerTransID: u.threeDSServerTransID,
14
- acsTransID: u.acsTransID,
11
+ setup(e, { emit: n }) {
12
+ let a = e, s = n, c = l(() => u(a.formAction) ? a.formAction : ""), d = r(null), f = JSON.stringify({
13
+ threeDSServerTransID: a.threeDSServerTransID,
14
+ acsTransID: a.acsTransID,
15
15
  messageVersion: "2.2.0",
16
16
  messageType: "CReq",
17
17
  challengeWindowSize: "01"
18
- }), S = encodeURI(window.btoa(x).replace(/=*$/, ""));
19
- return r(() => {
20
- m.value && b.value?.submit();
21
- }), (e, n) => (p(), i("div", h, [s("div", g, [s("div", _, [
22
- a(f, {
23
- onClick: n[0] ||= (e) => d("close"),
18
+ }), p = encodeURI(window.btoa(f).replace(/=*$/, ""));
19
+ return t(() => {
20
+ c.value && d.value?.submit();
21
+ }), (e, t) => (o(), _("div", v, [h("div", y, [h("div", b, [
22
+ g(m, {
23
+ onClick: t[0] ||= (e) => s("close"),
24
24
  id: "3ds-challenge-close"
25
25
  }),
26
- n[1] ||= s("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1),
27
- s("form", {
28
- action: m.value,
26
+ t[1] ||= h("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1),
27
+ h("form", {
28
+ action: c.value,
29
29
  target: "ThreeDsChallengeIFrame",
30
30
  method: "post",
31
31
  ref_key: "form",
32
- ref: b
33
- }, [s("input", {
32
+ ref: d
33
+ }, [h("input", {
34
34
  type: "hidden",
35
35
  name: "creq",
36
- value: t(S)
37
- }, null, 8, y)], 8, v)
36
+ value: i(p)
37
+ }, null, 8, S)], 8, x)
38
38
  ])])]));
39
39
  }
40
- }), [["__scopeId", "data-v-07081e85"]]), x = class {
40
+ }), [["__scopeId", "data-v-07081e85"]]), w = class {
41
41
  iframeId = "threeDsIframeMethod";
42
42
  containerId = "payfurlContainerFormInvoker";
43
43
  iframe = null;
@@ -55,11 +55,11 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
55
55
  }
56
56
  a.submit();
57
57
  }
58
- }, S = /* @__PURE__ */ n({
59
- DefaultThreeDsProvider: () => D,
60
- THREE_DS_CHALLENGE_COMPLETE: () => E,
61
- THREE_DS_METHOD_INVOCATION_COMPLETE: () => T
62
- }), { hideSpinner: C, showSpinner: w } = c(), T = "3ds_method_invocation_complete", E = "3ds_challenge_complete", D = class {
58
+ }, T = /* @__PURE__ */ n({
59
+ DefaultThreeDsProvider: () => A,
60
+ THREE_DS_CHALLENGE_COMPLETE: () => k,
61
+ THREE_DS_METHOD_INVOCATION_COMPLETE: () => O
62
+ }), { hideSpinner: E, showSpinner: D } = p(), O = "3ds_method_invocation_complete", k = "3ds_challenge_complete", A = class {
63
63
  log;
64
64
  container;
65
65
  options;
@@ -80,7 +80,7 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
80
80
  return "";
81
81
  }
82
82
  onPreAuth() {
83
- this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (w(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
83
+ this.log(`[${this.getType()}][onPreAuth]`), this.threeDsProcessor && (D(), this.threeDsProcessor.onPreAuth(this.onInitAuthSuccess, this.onError), window.addEventListener("message", this.internalMessageHandler));
84
84
  }
85
85
  onAuth(e, t) {
86
86
  this.log(`[${this.getType()}][onAuth]`, {
@@ -117,11 +117,14 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
117
117
  "R"
118
118
  ].includes(t.transStatus) && (this.log(`[${this.getType()}]: Failed 3DS Challenge`, e.data), this.onError(400, "Failed 3DS Challenge"));
119
119
  }
120
+ setChallengeFrameVisible(t) {
121
+ window.self !== window.top && window.parent.postMessage({ status: t ? e : a }, "*");
122
+ }
120
123
  doChallenge(e, t, n) {
121
- this.log(`[${this.getType()}][doChallenge]`), C();
124
+ this.log(`[${this.getType()}][doChallenge]`), E(), this.setChallengeFrameVisible(!0);
122
125
  let { destroy: r } = d({
123
126
  el: document.body,
124
- component: b,
127
+ component: C,
125
128
  props: {
126
129
  threeDSServerTransID: this.threeDSServerTransID,
127
130
  acsTransID: t,
@@ -135,22 +138,22 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
135
138
  this.threeDSDestroy = r;
136
139
  }
137
140
  closeChallenge() {
138
- this.threeDSDestroy?.(), window.removeEventListener("message", this.internalMessageHandler);
141
+ this.threeDSDestroy?.(), this.setChallengeFrameVisible(!1), window.removeEventListener("message", this.internalMessageHandler);
139
142
  }
140
143
  onError = (e, t) => {
141
- if (this.closeChallenge(), C(), e === 404) {
144
+ if (this.closeChallenge(), E(), e === 404) {
142
145
  this.threeDsProcessor?.onError({ error: "This feature is only supported by ActiveServer v1.1.2+" });
143
146
  return;
144
147
  }
145
148
  this.threeDsProcessor?.onError({
146
- error: "3D Secure failed",
149
+ error: f,
147
150
  body: t
148
151
  });
149
152
  };
150
153
  onSuccess = (e, t) => {
151
- this.closeChallenge(), C();
154
+ this.closeChallenge(), E();
152
155
  let n = JSON.parse(t);
153
- ["Y", "A"].includes(n.transStatus) ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}]: 3D Secure failed`, n), this.threeDsProcessor?.onError({ error: "3D Secure failed" }));
156
+ ["Y", "A"].includes(n.transStatus) ? this.threeDsProcessor?.onSuccess(n) : (this.log(`[${this.getType()}]: ${f}`, n), this.threeDsProcessor?.onError({ error: f }));
154
157
  };
155
158
  threeDsMethodInvoke(e, t) {
156
159
  this.log(`[${this.getType()}][threeDsMethodInvoke]`, {
@@ -161,7 +164,7 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
161
164
  threeDSServerTransID: e,
162
165
  threeDSMethodNotificationURL: this.options.apiUrl + "/3ds/method_invocation"
163
166
  }, r = encodeURI(window.btoa(JSON.stringify(n)).replace(/=*$/, ""));
164
- new x().invoke(t, "POST", { threeDSMethodData: r });
167
+ new w().invoke(t, "POST", { threeDSMethodData: r });
165
168
  }
166
169
  onInitAuthSuccess = (e, t) => {
167
170
  let n = JSON.parse(t);
@@ -194,28 +197,26 @@ var h = { class: "mask" }, g = { class: "wrapper" }, _ = { class: "container" },
194
197
  case "R":
195
198
  this.log(`[${this.getType()}][threeDsAuth], Unable to perform 3DS verification, rejected at issuer`), this.onError(400, "Unable to perform 3DS verification, rejected at issuer");
196
199
  break;
197
- default:
198
- this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${n.transStatus}`), this.threeDsProcessor?.onSuccess({
199
- threeDSServerTransID: n.threeDSServerTransID,
200
- threeDSRequestorTransID: "",
201
- acsRenderingType: n.acsRenderingType,
202
- acsTransID: n.acsTransID,
203
- authenticationType: n.authenticationType,
204
- authenticationValue: n.authenticationValue,
205
- challengeCancel: "",
206
- dsTransID: n.dsTransID,
207
- eci: n.eci,
208
- interactionCounter: "",
209
- messageCategory: "",
210
- messageExtension: n.messageExtension,
211
- messageType: n.messageType,
212
- messageVersion: n.messageVersion,
213
- transStatus: n.transStatus,
214
- transStatusReason: n.transStatusReason
215
- });
216
- break;
200
+ default: this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${n.transStatus}`), this.threeDsProcessor?.onSuccess({
201
+ threeDSServerTransID: n.threeDSServerTransID,
202
+ threeDSRequestorTransID: "",
203
+ acsRenderingType: n.acsRenderingType,
204
+ acsTransID: n.acsTransID,
205
+ authenticationType: n.authenticationType,
206
+ authenticationValue: n.authenticationValue,
207
+ challengeCancel: "",
208
+ dsTransID: n.dsTransID,
209
+ eci: n.eci,
210
+ interactionCounter: "",
211
+ messageCategory: "",
212
+ messageExtension: n.messageExtension,
213
+ messageType: n.messageType,
214
+ messageVersion: n.messageVersion,
215
+ transStatus: n.transStatus,
216
+ transStatusReason: n.transStatusReason
217
+ });
217
218
  }
218
219
  };
219
220
  };
220
221
  //#endregion
221
- export { T as i, S as n, E as r, D as t };
222
+ export { O as i, T as n, k as r, A as t };
@@ -1,7 +1,7 @@
1
- import { Mt as e, Nt as t, St as n, _t as r, bt as i, it as a, mt as o, pt as s, q as c, st as l, t as u, wt as d, xt as f } from "./CloseIcon-_3X2kvPG.js";
2
- import { t as p } from "./DefaultThreeDsProvider-JPe2W_JG.js";
1
+ import { Et as e, It as t, Lt as n, Ot as r, Tt as i, Z as a, _t as o, ct as s, dt as c, t as l, vt as u, wt as d, xt as f } from "./CloseIcon-BJgZxU_4.js";
2
+ import { t as p } from "./DefaultThreeDsProvider-aIZr-d29.js";
3
3
  //#region src/sdk/3ds/ecentric.vue?vue&type=script&setup=true&lang.ts
4
- var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" }, _ = ["action"], v = ["value"], y = /*#__PURE__*/ c(/* @__PURE__ */ f({
4
+ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" }, _ = ["action"], v = ["value"], y = /*#__PURE__*/ a(/* @__PURE__ */ i({
5
5
  __name: "ecentric",
6
6
  props: {
7
7
  threeDSServerTransID: {},
@@ -9,23 +9,23 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
9
9
  formAction: {},
10
10
  authenticationValue: {}
11
11
  },
12
- setup(c) {
13
- let l = c, f = s(() => a(l.formAction) ? l.formAction : ""), p = e(null), y = l.authenticationValue;
14
- return n(() => {
15
- f.value && p.value?.submit();
16
- }), (e, n) => (d(), r("div", m, [o("div", h, [o("div", g, [
17
- i(u, { onClick: n[0] ||= (t) => e.emit("close") }),
18
- n[1] ||= o("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1),
19
- o("form", {
20
- action: f.value,
12
+ setup(i) {
13
+ let a = i, c = o(() => s(a.formAction) ? a.formAction : ""), p = t(null), y = a.authenticationValue;
14
+ return e(() => {
15
+ c.value && p.value?.submit();
16
+ }), (e, t) => (r(), f("div", m, [u("div", h, [u("div", g, [
17
+ d(l, { onClick: t[0] ||= (t) => e.emit("close") }),
18
+ t[1] ||= u("iframe", { name: "ThreeDsChallengeIFrame" }, null, -1),
19
+ u("form", {
20
+ action: c.value,
21
21
  target: "ThreeDsChallengeIFrame",
22
22
  method: "post",
23
23
  ref_key: "form",
24
24
  ref: p
25
- }, [o("input", {
25
+ }, [u("input", {
26
26
  type: "hidden",
27
27
  name: "PaReq",
28
- value: t(y)
28
+ value: n(y)
29
29
  }, null, 8, v)], 8, _)
30
30
  ])])]));
31
31
  }
@@ -44,8 +44,8 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
44
44
  }, this.onSuccess, this.onError);
45
45
  }
46
46
  doChallenge(e, t, n) {
47
- this.log(`[${this.getType()}][doChallenge]`);
48
- let { destroy: r } = l({
47
+ this.log(`[${this.getType()}][doChallenge]`), this.setChallengeFrameVisible(!0);
48
+ let { destroy: r } = c({
49
49
  el: document.body,
50
50
  component: y,
51
51
  props: {
@@ -55,7 +55,7 @@ var m = { class: "mask" }, h = { class: "wrapper" }, g = { class: "container" },
55
55
  authenticationValue: n
56
56
  },
57
57
  on: { close: () => {
58
- r(), this.threeDSDestroy = () => {}, this.threeDsProcessor?.onError({ error: "Challenge cancelled" });
58
+ r(), this.setChallengeFrameVisible(!1), this.threeDSDestroy = () => {}, this.threeDsProcessor?.onError({ error: "Challenge cancelled" });
59
59
  } }
60
60
  });
61
61
  this.threeDSDestroy = r;
@@ -1,4 +1,4 @@
1
- import { t as e } from "./MetricsGlobalThreeDsProvider-BMeP5IWW.js";
1
+ import { t as e } from "./MetricsGlobalThreeDsProvider-D3x5hiTk.js";
2
2
  //#region src/sdk/3ds/EpnaThreeDsProvider.ts
3
3
  var t = class extends e {
4
4
  getType() {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./MetricsGlobalThreeDsProvider-BMeP5IWW.js";
1
+ import { t as e } from "./MetricsGlobalThreeDsProvider-D3x5hiTk.js";
2
2
  //#region src/sdk/3ds/FlashBancThreeDsProvider.ts
3
3
  var t = class extends e {
4
4
  getType() {
@@ -1,41 +1,41 @@
1
- import { Ft as e, _t as t, it as n, mt as r, pt as i, q as a, st as o, wt as s, xt as c } from "./CloseIcon-_3X2kvPG.js";
2
- import { t as l } from "./DefaultThreeDsProvider-JPe2W_JG.js";
1
+ import { Ot as e, Tt as t, Z as n, _t as r, ct as i, dt as a, n as o, vt as s, xt as c, zt as l } from "./CloseIcon-BJgZxU_4.js";
2
+ import { t as u } from "./DefaultThreeDsProvider-aIZr-d29.js";
3
3
  //#region src/sdk/3ds/GPayments.vue?vue&type=script&setup=true&lang.ts
4
- var u = { class: "mask" }, d = { class: "wrapper" }, f = ["src"], p = /*#__PURE__*/ a(/* @__PURE__ */ c({
4
+ var d = { class: "mask" }, f = { class: "wrapper" }, p = ["src"], m = /*#__PURE__*/ n(/* @__PURE__ */ t({
5
5
  __name: "GPayments",
6
6
  props: {
7
7
  url: {},
8
8
  width: {},
9
9
  height: {}
10
10
  },
11
- setup(a) {
12
- let o = a, c = i(() => n(o.url) ? o.url : "");
13
- function l() {
11
+ setup(t) {
12
+ let n = t, a = r(() => i(n.url) ? n.url : "");
13
+ function o() {
14
14
  return {
15
- width: `${o.width || 650}px`,
16
- height: `${o.height || 400}px`
15
+ width: `${n.width || 650}px`,
16
+ height: `${n.height || 400}px`
17
17
  };
18
18
  }
19
- return (n, i) => (s(), t("div", u, [r("div", d, [r("div", {
19
+ return (t, n) => (e(), c("div", d, [s("div", f, [s("div", {
20
20
  class: "container",
21
- style: e([l(), {
21
+ style: l([o(), {
22
22
  padding: "0",
23
23
  margin: "0"
24
24
  }])
25
- }, [r("iframe", {
26
- src: c.value,
27
- style: e(l())
28
- }, null, 12, f)], 4)])]));
25
+ }, [s("iframe", {
26
+ src: a.value,
27
+ style: l(o())
28
+ }, null, 12, p)], 4)])]));
29
29
  }
30
- }), [["__scopeId", "data-v-cf5aa816"]]), m = class extends l {
30
+ }), [["__scopeId", "data-v-cf5aa816"]]), { hideSpinner: h } = o(), g = class extends u {
31
31
  getType() {
32
32
  return "GPayments";
33
33
  }
34
34
  doChallenge(e) {
35
- this.log(`[${this.getType()}][doChallenge]`);
36
- let { destroy: t } = o({
35
+ this.log(`[${this.getType()}][doChallenge]`), h(), this.setChallengeFrameVisible(!0);
36
+ let { destroy: t } = a({
37
37
  el: document.body,
38
- component: p,
38
+ component: m,
39
39
  props: {
40
40
  url: e,
41
41
  width: 390,
@@ -64,9 +64,7 @@ var u = { class: "mask" }, d = { class: "wrapper" }, f = ["src"], p = /*#__PURE_
64
64
  }
65
65
  this.doChallenge(n.acsURL);
66
66
  break;
67
- default:
68
- this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${n.transStatus}`), this.onPostAuth();
69
- break;
67
+ default: this.log(`[${this.getType()}][threeDsAuth], 3DS challenge not required, tranStatus: ${n.transStatus}`), this.onPostAuth();
70
68
  }
71
69
  };
72
70
  onInitAuthSuccess = (e, t) => {
@@ -82,10 +80,10 @@ var u = { class: "mask" }, d = { class: "wrapper" }, f = ["src"], p = /*#__PURE_
82
80
  this.onAuth(!1, "");
83
81
  };
84
82
  initFrame(e) {
85
- if (this.log(`[${this.getType()}][init3DSFrame]`, e), !n(e)) return;
83
+ if (this.log(`[${this.getType()}][init3DSFrame]`, e), !i(e)) return;
86
84
  let t = document.createElement("iframe");
87
85
  t.src = e, t.style.width = "1px", t.style.height = "1px", t.style.border = "0", document.body.appendChild(t);
88
86
  }
89
87
  };
90
88
  //#endregion
91
- export { m as GPaymentsThreeDsProvider };
89
+ export { g as GPaymentsThreeDsProvider };