@lydianpay/sdk-web 3.18.7 → 3.19.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.
@@ -1,4 +1,4 @@
1
- import { g as c } from "./mountEngine-CG_6rKvA.js";
1
+ import { g as c } from "./mountEngine-Zn0WefMk.js";
2
2
  function f(t, i) {
3
3
  for (var o = 0; o < i.length; o++) {
4
4
  const e = i[o];
@@ -1,8 +1,8 @@
1
1
  var Va = Object.defineProperty;
2
2
  var Ka = (e, t, r) => t in e ? Va(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var Ee = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { E as Ja } from "./index-BmB5ME03.js";
5
- import { g as ri, c as gr } from "./mountEngine-CG_6rKvA.js";
4
+ import { E as Ja } from "./index-0LgMrBt6.js";
5
+ import { g as ri, c as gr } from "./mountEngine-Zn0WefMk.js";
6
6
  var _r = { exports: {} }, on, Hi;
7
7
  function Ya() {
8
8
  if (Hi) return on;
@@ -7879,7 +7879,7 @@ var Cn, Rs, Is, Fs, qe, gt, _t, xr, Bs, Os, Cr, zt, Ps, Ns, Ds, ta, ra = V({
7879
7879
  }
7880
7880
  getActiveSession() {
7881
7881
  return S(this, null, function* () {
7882
- const { kvstore: e } = this, { SessionStore: t } = yield import("./index-BhTaLNkR.js").then((n) => n.i), r = yield t.create(e);
7882
+ const { kvstore: e } = this, { SessionStore: t } = yield import("./index-R_sAPlVY.js").then((n) => n.i), r = yield t.create(e);
7883
7883
  try {
7884
7884
  const [n] = yield r.list();
7885
7885
  return n;
@@ -8058,7 +8058,7 @@ Xr(na, {
8058
8058
  });
8059
8059
  function Qd() {
8060
8060
  return S(this, null, function* () {
8061
- const { decrypt: e, encrypt: t, PrivateKey: r, PublicKey: n } = yield import("./index-CpjSM5Xu.js").then((i) => i.i);
8061
+ const { decrypt: e, encrypt: t, PrivateKey: r, PublicKey: n } = yield import("./index-Ll9MJfyW.js").then((i) => i.i);
8062
8062
  return {
8063
8063
  generateKeyPair() {
8064
8064
  const i = new r();
@@ -9329,12 +9329,12 @@ Ta = function() {
9329
9329
  Ui = function() {
9330
9330
  return S(this, null, function* () {
9331
9331
  const [e, { DappClient: t }, { createKeyManager: r }] = yield Promise.all([
9332
- import("./index-BhTaLNkR.js").then((h) => h.i),
9333
- import("./dist-BgxCOd2O.js"),
9332
+ import("./index-R_sAPlVY.js").then((h) => h.i),
9333
+ import("./dist-YaXkB10_.js"),
9334
9334
  Promise.resolve().then(() => (eh(), na))
9335
9335
  ]), n = yield r(), { adapter: i } = this.options.storage, o = yield e.SessionStore.create(i), l = (
9336
9336
  // eslint-disable-next-line no-negated-condition
9337
- typeof window < "u" ? WebSocket : (yield import("./browser-B7Rxf-Bu.js").then((h) => h.b)).WebSocket
9337
+ typeof window < "u" ? WebSocket : (yield import("./browser-LUCPMqOV.js").then((h) => h.b)).WebSocket
9338
9338
  ), c = yield e.WebSocketTransport.create({
9339
9339
  url: uh,
9340
9340
  kvstore: i,
@@ -9399,7 +9399,7 @@ Ba = function(e, t, r, n) {
9399
9399
  /* MWP */
9400
9400
  );
9401
9401
  })).catch((c) => S(this, null, function* () {
9402
- const { ProtocolError: d, ErrorCode: h } = yield import("./index-BhTaLNkR.js").then((y) => y.i);
9402
+ const { ProtocolError: d, ErrorCode: h } = yield import("./index-R_sAPlVY.js").then((y) => y.i);
9403
9403
  if (c instanceof d)
9404
9404
  c.code !== h.REQUEST_EXPIRED && (this.status = "disconnected", yield this.options.ui.factory.unload(c), i.reject(c));
9405
9405
  else {
@@ -9456,7 +9456,7 @@ Pa = function(e, t, r) {
9456
9456
  /* MWP */
9457
9457
  );
9458
9458
  } catch (i) {
9459
- const { ProtocolError: o } = yield import("./index-BhTaLNkR.js").then((l) => l.i);
9459
+ const { ProtocolError: o } = yield import("./index-R_sAPlVY.js").then((l) => l.i);
9460
9460
  throw this.status = "disconnected", yield this.storage.removeTransportType(), i instanceof o || i instanceof Error ? i : new Error(String(i));
9461
9461
  } finally {
9462
9462
  this.dappClient.off("session_request", n);
@@ -1,6 +1,6 @@
1
- import { i as Te, I as Xe, h as et, g as yn, b as vn, s as kn } from "./mountEngine-CG_6rKvA.js";
1
+ import { i as Te, I as Xe, h as et, g as yn, b as vn, s as kn } from "./mountEngine-Zn0WefMk.js";
2
2
  import { r as En, a as In } from "./utils-Ca8X9WUu.js";
3
- import { E as Cn } from "./index-BmB5ME03.js";
3
+ import { E as Cn } from "./index-0LgMrBt6.js";
4
4
  function Sn(t, e) {
5
5
  if (!Te(t, { strict: !1 }))
6
6
  throw new Xe({ address: t });
@@ -1,9 +1,9 @@
1
1
  var f = Object.defineProperty;
2
2
  var S = (e, t, n) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var h = (e, t, n) => S(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { d as s } from "./index-BhTaLNkR.js";
5
- import { v as w } from "./connect-multichain-DmSOZ6si.js";
6
- import { a as l } from "./mountEngine-CG_6rKvA.js";
4
+ import { d as s } from "./index-R_sAPlVY.js";
5
+ import { v as w } from "./connect-multichain-ZoZGkReI.js";
6
+ import { a as l } from "./mountEngine-Zn0WefMk.js";
7
7
  function m(e) {
8
8
  var t, n;
9
9
  return typeof ((n = (t = e == null ? void 0 : e.prototype) == null ? void 0 : t.constructor) == null ? void 0 : n.name) == "string";
@@ -1,4 +1,4 @@
1
- import { g as L } from "./mountEngine-CG_6rKvA.js";
1
+ import { g as L } from "./mountEngine-Zn0WefMk.js";
2
2
  var x = { exports: {} }, E;
3
3
  function C() {
4
4
  return E || (E = 1, (function(g) {
@@ -1,4 +1,4 @@
1
- import { g as cn } from "./mountEngine-CG_6rKvA.js";
1
+ import { g as cn } from "./mountEngine-Zn0WefMk.js";
2
2
  import { a as Ot, r as an } from "./utils-Ca8X9WUu.js";
3
3
  function fn(t, f) {
4
4
  for (var y = 0; y < f.length; y++) {
@@ -1,5 +1,5 @@
1
- import { d as Si, g as wi } from "./mountEngine-CG_6rKvA.js";
2
- import { r as Ti } from "./index-BmB5ME03.js";
1
+ import { d as Si, g as wi } from "./mountEngine-Zn0WefMk.js";
2
+ import { r as Ti } from "./index-0LgMrBt6.js";
3
3
  function Pi(r, u) {
4
4
  for (var f = 0; f < u.length; f++) {
5
5
  const h = u[f];
@@ -493,6 +493,8 @@ const ae = {
493
493
  "kyc.dateOfBirthPlaceholder": "Enter your date of birth",
494
494
  "kyc.dateAndPlaceOfBirthChoice": "Place and date of birth",
495
495
  "kyc.physicalAddressChoice": "Address",
496
+ "kyc.notCitizenOf": "I'm not a citizen of {country}",
497
+ "kyc.citizenshipLabel": "Country of Citizenship",
496
498
  "kyc.cityOfBirthLabel": "City of birth",
497
499
  "kyc.cityOfBirthPlaceholder": "Enter city",
498
500
  "kyc.nationalIdLabel": "ID number",
@@ -651,14 +653,14 @@ const ae = {
651
653
  "validation.customerDetailsMissing": "Customer details are missing.",
652
654
  "validation.invalidOtp": "Please enter a valid 6-digit code.",
653
655
  "terms.notice": 'By continuing, you agree to Lydian <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Terms and Conditions</a> and understand your data will be processed according to the <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Notice</a>.'
654
- }, T = { en: ae }, R = "en";
655
- let L = R;
656
+ }, T = { en: ae }, L = "en";
657
+ let R = L;
656
658
  function me() {
657
- return L;
659
+ return R;
658
660
  }
659
661
  function h(e, t) {
660
662
  var n;
661
- const a = ((n = T[L]) == null ? void 0 : n[e]) ?? T[R][e] ?? e;
663
+ const a = ((n = T[R]) == null ? void 0 : n[e]) ?? T[L][e] ?? e;
662
664
  return t ? a.replace(
663
665
  /\{(\w+)\}/g,
664
666
  (o, r) => t[r] != null ? String(t[r]) : `{${r}}`
@@ -769,7 +771,7 @@ class se extends HTMLElement {
769
771
  // Not started in the constructor: a page can carry the tag and never check out.
770
772
  // Overlapping initialize() calls share one download.
771
773
  getOrLoadEngine() {
772
- return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-CG_6rKvA.js").then((t) => t.m).then((t) => {
774
+ return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-Zn0WefMk.js").then((t) => t.m).then((t) => {
773
775
  const a = t.mountCheckoutEngine({
774
776
  host: this,
775
777
  shadowRoot: this.shadow