@incodetech/web 0.0.0-dev-20260527-927030e4 → 0.0.0-dev-20260527-d2899d7c

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.
@@ -5,7 +5,7 @@ import { c as u } from "../hooks-CLjlsC2g.js";
5
5
  import { t as d } from "../incodeComponent-MZEyrb1V.js";
6
6
  import { t as f } from "../transitionSpinner-BWCiDYAb.js";
7
7
  import { t as p } from "../incodeModule-CHzKl22Y.js";
8
- import { a as m, c as h, d as g, f as _, g as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O } from "../useModuleLoader-Dnv_d2ZP.js";
8
+ import { a as m, c as h, d as g, f as _, g as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, t as E, u as D, v as O } from "../useModuleLoader-BcTaTo9L.js";
9
9
  import { getDeviceClass as k } from "@incodetech/core/device";
10
10
  import { getRequiredWasmPipelines as A } from "@incodetech/core/flow";
11
11
  import { bootstrapSession as j, refreshQrUrlUuid as M } from "@incodetech/core/session";
@@ -1,78 +1,78 @@
1
1
  import { t as e } from "./rolldown-runtime-CYMK-g2i.js";
2
2
  import { n as t, t as n } from "./i18n-Cw8Y_JeB.js";
3
- import { S as r, _ as i, h as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
4
- import { c, o as l } from "./hooks-CLjlsC2g.js";
5
- import { t as u } from "./incodeComponent-MZEyrb1V.js";
6
- import { r as d } from "./loadingIcon-BN5YRQUb.js";
7
- import { t as f } from "./incode-logo-DX016usY.js";
8
- import { n as p, t as m } from "./verifiedByIncode-ChZBpqNy.js";
9
- import { t as h } from "./transitionSpinner-BWCiDYAb.js";
10
- import { t as g } from "./button-DcCUEn2n.js";
3
+ import { S as r, _ as i, h as a, l as o, p as s, v as c } from "./vendor-preact-D6SntenC.js";
4
+ import { c as l, o as u } from "./hooks-CLjlsC2g.js";
5
+ import { t as d } from "./incodeComponent-MZEyrb1V.js";
6
+ import { r as f } from "./loadingIcon-BN5YRQUb.js";
7
+ import { t as p } from "./incode-logo-DX016usY.js";
8
+ import { n as m, t as h } from "./verifiedByIncode-ChZBpqNy.js";
9
+ import { t as g } from "./transitionSpinner-BWCiDYAb.js";
10
+ import { t as _ } from "./button-DcCUEn2n.js";
11
11
  import "./icons-9I5g9-_1.js";
12
- import { t as _ } from "./successIcon-SlKgTSty.js";
13
- import { r as v, t as y } from "./phoneInputComposed-D1EzmEhy.js";
14
- import { t as b } from "./incodeModule-CHzKl22Y.js";
15
- import { t as x } from "./autoFocusTitle-G-kfvIN4.js";
16
- import { t as S } from "./snackbar-YzOg-BFn.js";
17
- import { t as C } from "./tabs-D4BYhNn4.js";
18
- import { createRedirectToMobileManager as w } from "@incodetech/core/redirect-to-mobile";
12
+ import { t as v } from "./successIcon-SlKgTSty.js";
13
+ import { r as y, t as b } from "./phoneInputComposed-D1EzmEhy.js";
14
+ import { t as x } from "./incodeModule-CHzKl22Y.js";
15
+ import { t as S } from "./autoFocusTitle-G-kfvIN4.js";
16
+ import { t as C } from "./snackbar-YzOg-BFn.js";
17
+ import { t as w } from "./tabs-D4BYhNn4.js";
18
+ import { createRedirectToMobileManager as T } from "@incodetech/core/redirect-to-mobile";
19
19
  //#region src/modules/redirect-to-mobile/redirectHeader.tsx
20
- var T = ({ logoSrc: e }) => {
20
+ var E = ({ logoSrc: e }) => {
21
21
  let { t: n } = t();
22
- return /* @__PURE__ */ s("header", {
22
+ return /* @__PURE__ */ c("header", {
23
23
  class: "IncodeRedirectHeader",
24
24
  children: [
25
- /* @__PURE__ */ s("div", {
25
+ /* @__PURE__ */ c("div", {
26
26
  class: "IncodeRedirectLogoWrapper",
27
- children: /* @__PURE__ */ s("img", {
27
+ children: /* @__PURE__ */ c("img", {
28
28
  src: e,
29
29
  alt: "",
30
30
  "aria-hidden": "true",
31
31
  class: "IncodeRedirectLogo"
32
32
  })
33
33
  }),
34
- /* @__PURE__ */ s(d, { size: 24 }),
35
- /* @__PURE__ */ s(x, {
34
+ /* @__PURE__ */ c(f, { size: 24 }),
35
+ /* @__PURE__ */ c(S, {
36
36
  className: "IncodeRedirectTitle",
37
37
  children: n("v2.redirectToMobile.title")
38
38
  }),
39
- /* @__PURE__ */ s(d, { size: 12 }),
40
- /* @__PURE__ */ s("p", {
39
+ /* @__PURE__ */ c(f, { size: 12 }),
40
+ /* @__PURE__ */ c("p", {
41
41
  class: "IncodeRedirectSubtitle",
42
42
  children: n("v2.redirectToMobile.subtitle")
43
43
  })
44
44
  ]
45
45
  });
46
- }, E = ({ addContinueToDesktop: e, onContinueOnDesktop: n }) => {
46
+ }, D = ({ addContinueToDesktop: e, onContinueOnDesktop: n }) => {
47
47
  let { t: r } = t();
48
- return /* @__PURE__ */ s("footer", {
48
+ return /* @__PURE__ */ c("footer", {
49
49
  class: "IncodeRedirectBottomNav",
50
- children: [e ? /* @__PURE__ */ s("div", {
50
+ children: [e ? /* @__PURE__ */ c("div", {
51
51
  class: "IncodeRedirectFooterContent",
52
- children: [/* @__PURE__ */ s("span", {
52
+ children: [/* @__PURE__ */ c("span", {
53
53
  class: "IncodeRedirectFooterContentText",
54
54
  children: r("idv2.permissions.or")
55
- }), /* @__PURE__ */ s(g, {
55
+ }), /* @__PURE__ */ c(_, {
56
56
  variant: "secondary",
57
57
  onClick: n,
58
58
  children: r("redirect.continueOnDesktop")
59
59
  })]
60
- }) : null, /* @__PURE__ */ s(m, {})]
60
+ }) : null, /* @__PURE__ */ c(h, {})]
61
61
  });
62
- }, D = ({ visible: e }) => {
62
+ }, O = ({ visible: e }) => {
63
63
  let { t: n } = t();
64
- return e ? /* @__PURE__ */ s("div", {
64
+ return e ? /* @__PURE__ */ c("div", {
65
65
  class: "IncodeRedirectToast",
66
- children: /* @__PURE__ */ s(S, {
66
+ children: /* @__PURE__ */ c(C, {
67
67
  variant: "positive",
68
68
  children: n("redirect.linkResent")
69
69
  })
70
70
  }) : null;
71
- }, O = /* @__PURE__ */ e(((e, t) => {
71
+ }, k = /* @__PURE__ */ e(((e, t) => {
72
72
  t.exports = function() {
73
73
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
74
74
  };
75
- })), k = /* @__PURE__ */ e(((e) => {
75
+ })), A = /* @__PURE__ */ e(((e) => {
76
76
  var t, n = [
77
77
  0,
78
78
  26,
@@ -134,7 +134,7 @@ var T = ({ logoSrc: e }) => {
134
134
  }, e.toSJIS = function(e) {
135
135
  return t(e);
136
136
  };
137
- })), A = /* @__PURE__ */ e(((e) => {
137
+ })), j = /* @__PURE__ */ e(((e) => {
138
138
  e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
139
139
  function t(t) {
140
140
  if (typeof t != "string") throw Error("Param is not a string");
@@ -160,7 +160,7 @@ var T = ({ logoSrc: e }) => {
160
160
  return r;
161
161
  }
162
162
  };
163
- })), j = /* @__PURE__ */ e(((e, t) => {
163
+ })), M = /* @__PURE__ */ e(((e, t) => {
164
164
  function n() {
165
165
  this.buffer = [], this.length = 0;
166
166
  }
@@ -196,7 +196,7 @@ var T = ({ logoSrc: e }) => {
196
196
  return this.reservedBit[e * this.size + t];
197
197
  }, t.exports = n;
198
198
  })), te = /* @__PURE__ */ e(((e) => {
199
- var t = k().getSymbolSize;
199
+ var t = A().getSymbolSize;
200
200
  e.getRowColCoords = function(e) {
201
201
  if (e === 1) return [];
202
202
  let n = Math.floor(e / 7) + 2, r = t(e), i = r === 145 ? 26 : Math.ceil((r - 13) / (2 * n - 2)) * 2, a = [r - 7];
@@ -208,7 +208,7 @@ var T = ({ logoSrc: e }) => {
208
208
  return n;
209
209
  };
210
210
  })), ne = /* @__PURE__ */ e(((e) => {
211
- var t = k().getSymbolSize, n = 7;
211
+ var t = A().getSymbolSize, n = 7;
212
212
  e.getPositions = function(e) {
213
213
  let r = t(e);
214
214
  return [
@@ -217,7 +217,7 @@ var T = ({ logoSrc: e }) => {
217
217
  [0, r - n]
218
218
  ];
219
219
  };
220
- })), M = /* @__PURE__ */ e(((e) => {
220
+ })), N = /* @__PURE__ */ e(((e) => {
221
221
  e.Patterns = {
222
222
  PATTERN000: 0,
223
223
  PATTERN001: 1,
@@ -293,8 +293,8 @@ var T = ({ logoSrc: e }) => {
293
293
  }
294
294
  return i;
295
295
  };
296
- })), N = /* @__PURE__ */ e(((e) => {
297
- var t = A(), n = [
296
+ })), P = /* @__PURE__ */ e(((e) => {
297
+ var t = j(), n = [
298
298
  1,
299
299
  1,
300
300
  1,
@@ -634,7 +634,7 @@ var T = ({ logoSrc: e }) => {
634
634
  default: return;
635
635
  }
636
636
  };
637
- })), P = /* @__PURE__ */ e(((e) => {
637
+ })), F = /* @__PURE__ */ e(((e) => {
638
638
  var t = new Uint8Array(512), n = new Uint8Array(256);
639
639
  (function() {
640
640
  let e = 1;
@@ -648,8 +648,8 @@ var T = ({ logoSrc: e }) => {
648
648
  }, e.mul = function(e, r) {
649
649
  return e === 0 || r === 0 ? 0 : t[n[e] + n[r]];
650
650
  };
651
- })), F = /* @__PURE__ */ e(((e) => {
652
- var t = P();
651
+ })), I = /* @__PURE__ */ e(((e) => {
652
+ var t = F();
653
653
  e.mul = function(e, n) {
654
654
  let r = new Uint8Array(e.length + n.length - 1);
655
655
  for (let i = 0; i < e.length; i++) for (let a = 0; a < n.length; a++) r[i + a] ^= t.mul(e[i], n[a]);
@@ -669,8 +669,8 @@ var T = ({ logoSrc: e }) => {
669
669
  for (let i = 0; i < n; i++) r = e.mul(r, new Uint8Array([1, t.exp(i)]));
670
670
  return r;
671
671
  };
672
- })), I = /* @__PURE__ */ e(((e, t) => {
673
- var n = F();
672
+ })), L = /* @__PURE__ */ e(((e, t) => {
673
+ var n = I();
674
674
  function r(e) {
675
675
  this.genPoly = void 0, this.degree = e, this.degree && this.initialize(this.degree);
676
676
  }
@@ -687,11 +687,11 @@ var T = ({ logoSrc: e }) => {
687
687
  }
688
688
  return r;
689
689
  }, t.exports = r;
690
- })), L = /* @__PURE__ */ e(((e) => {
690
+ })), R = /* @__PURE__ */ e(((e) => {
691
691
  e.isValid = function(e) {
692
692
  return !isNaN(e) && e >= 1 && e <= 40;
693
693
  };
694
- })), R = /* @__PURE__ */ e(((e) => {
694
+ })), z = /* @__PURE__ */ e(((e) => {
695
695
  var t = "[0-9]+", n = "[A-Z $%*+\\-./:]+", r = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
696
696
  r = r.replace(/u/g, "\\u");
697
697
  var i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + r + ")(?:.|[\r\n]))+";
@@ -704,8 +704,8 @@ var T = ({ logoSrc: e }) => {
704
704
  }, e.testAlphanumeric = function(e) {
705
705
  return s.test(e);
706
706
  };
707
- })), z = /* @__PURE__ */ e(((e) => {
708
- var t = L(), n = R();
707
+ })), B = /* @__PURE__ */ e(((e) => {
708
+ var t = R(), n = z();
709
709
  e.NUMERIC = {
710
710
  id: "Numeric",
711
711
  bit: 1,
@@ -768,8 +768,8 @@ var T = ({ logoSrc: e }) => {
768
768
  return n;
769
769
  }
770
770
  };
771
- })), B = /* @__PURE__ */ e(((e) => {
772
- var t = k(), n = N(), r = A(), i = z(), a = L(), o = 7973, s = t.getBCHDigit(o);
771
+ })), V = /* @__PURE__ */ e(((e) => {
772
+ var t = A(), n = P(), r = j(), i = B(), a = R(), o = 7973, s = t.getBCHDigit(o);
773
773
  function c(t, n, r) {
774
774
  for (let i = 1; i <= 40; i++) if (n <= e.getCapacity(i, r, t)) return i;
775
775
  }
@@ -815,15 +815,15 @@ var T = ({ logoSrc: e }) => {
815
815
  for (; t.getBCHDigit(n) - s >= 0;) n ^= o << t.getBCHDigit(n) - s;
816
816
  return e << 12 | n;
817
817
  };
818
- })), V = /* @__PURE__ */ e(((e) => {
819
- var t = k(), n = 1335, r = 21522, i = t.getBCHDigit(n);
818
+ })), H = /* @__PURE__ */ e(((e) => {
819
+ var t = A(), n = 1335, r = 21522, i = t.getBCHDigit(n);
820
820
  e.getEncodedBits = function(e, a) {
821
821
  let o = e.bit << 3 | a, s = o << 10;
822
822
  for (; t.getBCHDigit(s) - i >= 0;) s ^= n << t.getBCHDigit(s) - i;
823
823
  return (o << 10 | s) ^ r;
824
824
  };
825
- })), H = /* @__PURE__ */ e(((e, t) => {
826
- var n = z();
825
+ })), U = /* @__PURE__ */ e(((e, t) => {
826
+ var n = B();
827
827
  function r(e) {
828
828
  this.mode = n.NUMERIC, this.data = e.toString();
829
829
  }
@@ -839,8 +839,8 @@ var T = ({ logoSrc: e }) => {
839
839
  let i = this.data.length - t;
840
840
  i > 0 && (n = this.data.substr(t), r = parseInt(n, 10), e.put(r, i * 3 + 1));
841
841
  }, t.exports = r;
842
- })), U = /* @__PURE__ */ e(((e, t) => {
843
- var n = z(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
842
+ })), W = /* @__PURE__ */ e(((e, t) => {
843
+ var n = B(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
844
844
  function i(e) {
845
845
  this.mode = n.ALPHANUMERIC, this.data = e;
846
846
  }
@@ -858,8 +858,8 @@ var T = ({ logoSrc: e }) => {
858
858
  }
859
859
  this.data.length % 2 && e.put(r.indexOf(this.data[t]), 6);
860
860
  }, t.exports = i;
861
- })), W = /* @__PURE__ */ e(((e, t) => {
862
- var n = z();
861
+ })), G = /* @__PURE__ */ e(((e, t) => {
862
+ var n = B();
863
863
  function r(e) {
864
864
  this.mode = n.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
865
865
  }
@@ -872,8 +872,8 @@ var T = ({ logoSrc: e }) => {
872
872
  }, r.prototype.write = function(e) {
873
873
  for (let t = 0, n = this.data.length; t < n; t++) e.put(this.data[t], 8);
874
874
  }, t.exports = r;
875
- })), G = /* @__PURE__ */ e(((e, t) => {
876
- var n = z(), r = k();
875
+ })), K = /* @__PURE__ */ e(((e, t) => {
876
+ var n = B(), r = A();
877
877
  function i(e) {
878
878
  this.mode = n.KANJI, this.data = e;
879
879
  }
@@ -893,7 +893,7 @@ var T = ({ logoSrc: e }) => {
893
893
  n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
894
894
  }
895
895
  }, t.exports = i;
896
- })), K = /* @__PURE__ */ e(((e, t) => {
896
+ })), q = /* @__PURE__ */ e(((e, t) => {
897
897
  var n = {
898
898
  single_source_shortest_paths: function(e, t, r) {
899
899
  var i = {}, a = {};
@@ -946,8 +946,8 @@ var T = ({ logoSrc: e }) => {
946
946
  }
947
947
  };
948
948
  t !== void 0 && (t.exports = n);
949
- })), q = /* @__PURE__ */ e(((e) => {
950
- var t = z(), n = H(), r = U(), i = W(), a = G(), o = R(), s = k(), c = K();
949
+ })), J = /* @__PURE__ */ e(((e) => {
950
+ var t = B(), n = U(), r = W(), i = G(), a = K(), o = z(), s = A(), c = q();
951
951
  function l(e) {
952
952
  return unescape(encodeURIComponent(e)).length;
953
953
  }
@@ -1074,8 +1074,8 @@ var T = ({ logoSrc: e }) => {
1074
1074
  }, e.rawSplit = function(t) {
1075
1075
  return e.fromArray(d(t, s.isKanjiModeEnabled()));
1076
1076
  };
1077
- })), J = /* @__PURE__ */ e(((e) => {
1078
- var t = k(), n = A(), r = j(), i = ee(), a = te(), o = ne(), s = M(), c = N(), l = I(), u = B(), d = V(), f = z(), p = q();
1077
+ })), Y = /* @__PURE__ */ e(((e) => {
1078
+ var t = A(), n = j(), r = M(), i = ee(), a = te(), o = ne(), s = N(), c = P(), l = L(), u = V(), d = H(), f = B(), p = J();
1079
1079
  function m(e, t) {
1080
1080
  let n = e.size, r = o.getPositions(t);
1081
1081
  for (let t = 0; t < r.length; t++) {
@@ -1170,7 +1170,7 @@ var T = ({ logoSrc: e }) => {
1170
1170
  let i = n.M, a, o;
1171
1171
  return r !== void 0 && (i = n.from(r.errorCorrectionLevel, n.M), a = u.from(r.version), o = s.from(r.maskPattern), r.toSJISFunc && t.setToSJISFunction(r.toSJISFunc)), S(e, a, i, o);
1172
1172
  };
1173
- })), Y = /* @__PURE__ */ e(((e) => {
1173
+ })), X = /* @__PURE__ */ e(((e) => {
1174
1174
  function t(e) {
1175
1175
  if (typeof e == "number" && (e = e.toString()), typeof e != "string") throw Error("Color should be defined as hex string");
1176
1176
  let t = e.slice().replace("#", "").split("");
@@ -1217,8 +1217,8 @@ var T = ({ logoSrc: e }) => {
1217
1217
  t[u++] = d.r, t[u++] = d.g, t[u++] = d.b, t[u] = d.a;
1218
1218
  }
1219
1219
  };
1220
- })), X = /* @__PURE__ */ e(((e) => {
1221
- var t = Y();
1220
+ })), re = /* @__PURE__ */ e(((e) => {
1221
+ var t = X();
1222
1222
  function n(e, t, n) {
1223
1223
  e.clearRect(0, 0, t.width, t.height), t.style ||= {}, t.height = n, t.width = n, t.style.height = n + "px", t.style.width = n + "px";
1224
1224
  }
@@ -1240,8 +1240,8 @@ var T = ({ logoSrc: e }) => {
1240
1240
  let a = e.render(t, n, i), o = i.type || "image/png", s = i.rendererOpts || {};
1241
1241
  return a.toDataURL(o, s.quality);
1242
1242
  };
1243
- })), re = /* @__PURE__ */ e(((e) => {
1244
- var t = Y();
1243
+ })), ie = /* @__PURE__ */ e(((e) => {
1244
+ var t = X();
1245
1245
  function n(e, t) {
1246
1246
  let n = e.a / 255, r = t + "=\"" + e.hex + "\"";
1247
1247
  return n < 1 ? r + " " + t + "-opacity=\"" + n.toFixed(2).slice(1) + "\"" : r;
@@ -1262,8 +1262,8 @@ var T = ({ logoSrc: e }) => {
1262
1262
  let o = t.getOptions(r), s = e.modules.size, c = e.modules.data, l = s + o.margin * 2, u = o.color.light.a ? "<path " + n(o.color.light, "fill") + " d=\"M0 0h" + l + "v" + l + "H0z\"/>" : "", d = "<path " + n(o.color.dark, "stroke") + " d=\"" + i(c, s, o.margin) + "\"/>", f = "viewBox=\"0 0 " + l + " " + l + "\"", p = "<svg xmlns=\"http://www.w3.org/2000/svg\" " + (o.width ? "width=\"" + o.width + "\" height=\"" + o.width + "\" " : "") + f + " shape-rendering=\"crispEdges\">" + u + d + "</svg>\n";
1263
1263
  return typeof a == "function" && a(null, p), p;
1264
1264
  };
1265
- })), ie = (/* @__PURE__ */ e(((e) => {
1266
- var t = O(), n = J(), r = X(), i = re();
1265
+ })), ae = (/* @__PURE__ */ e(((e) => {
1266
+ var t = k(), n = Y(), r = re(), i = ie();
1267
1267
  function a(e, r, i, a, o) {
1268
1268
  let s = [].slice.call(arguments, 1), c = s.length, l = typeof s[c - 1] == "function";
1269
1269
  if (!l && !t()) throw Error("Callback required as last argument");
@@ -1290,10 +1290,10 @@ var T = ({ logoSrc: e }) => {
1290
1290
  e.create = n.create, e.toCanvas = a.bind(null, r.render), e.toDataURL = a.bind(null, r.renderToDataURL), e.toString = a.bind(null, function(e, t, n) {
1291
1291
  return i.render(e, n);
1292
1292
  });
1293
- })))(), ae = ({ value: e, size: n = 150, bgColor: r = "#ffffff", fgColor: a = "#000000" }) => {
1294
- let { t: c } = t(), [l, u] = o("");
1293
+ })))(), oe = ({ value: e, size: n = 150, bgColor: r = "#ffffff", fgColor: a = "#000000" }) => {
1294
+ let { t: o } = t(), [l, u] = s("");
1295
1295
  return i(() => {
1296
- e && (0, ie.toString)(e, {
1296
+ e && (0, ae.toString)(e, {
1297
1297
  type: "svg",
1298
1298
  width: n,
1299
1299
  margin: 0,
@@ -1307,52 +1307,52 @@ var T = ({ logoSrc: e }) => {
1307
1307
  n,
1308
1308
  r,
1309
1309
  a
1310
- ]), l ? /* @__PURE__ */ s("div", {
1310
+ ]), l ? /* @__PURE__ */ c("div", {
1311
1311
  class: "IncodeRedirectQrCode",
1312
1312
  role: "img",
1313
- "aria-label": c("v2.redirectToMobile.qr.description"),
1313
+ "aria-label": o("v2.redirectToMobile.qr.description"),
1314
1314
  dangerouslySetInnerHTML: { __html: l }
1315
1315
  }) : null;
1316
1316
  }, Z = ({ redirectUrl: e }) => {
1317
1317
  let { t: n } = t();
1318
- return /* @__PURE__ */ s(r, { children: [/* @__PURE__ */ s("p", {
1318
+ return /* @__PURE__ */ c(r, { children: [/* @__PURE__ */ c("p", {
1319
1319
  class: "IncodeRedirectTabDescription",
1320
1320
  children: n("v2.redirectToMobile.qr.description")
1321
- }), /* @__PURE__ */ s("div", {
1321
+ }), /* @__PURE__ */ c("div", {
1322
1322
  class: "IncodeRedirectQrWrapper",
1323
- children: /* @__PURE__ */ s(ae, {
1323
+ children: /* @__PURE__ */ c(oe, {
1324
1324
  value: e,
1325
1325
  size: 186
1326
1326
  })
1327
1327
  })] });
1328
- }, oe = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
1328
+ }, se = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
1329
1329
  let { t: a } = t();
1330
- return /* @__PURE__ */ s("div", {
1330
+ return /* @__PURE__ */ c("div", {
1331
1331
  class: "IncodeRedirectLinkSent",
1332
1332
  children: [
1333
- /* @__PURE__ */ s(_, { size: 32 }),
1334
- /* @__PURE__ */ s(d, { size: 16 }),
1335
- /* @__PURE__ */ s(x, {
1333
+ /* @__PURE__ */ c(v, { size: 32 }),
1334
+ /* @__PURE__ */ c(f, { size: 16 }),
1335
+ /* @__PURE__ */ c(S, {
1336
1336
  className: "IncodeRedirectLinkSentTitle",
1337
1337
  children: a("redirect.linkSent")
1338
1338
  }),
1339
- /* @__PURE__ */ s(d, { size: 12 }),
1340
- /* @__PURE__ */ s("p", {
1339
+ /* @__PURE__ */ c(f, { size: 12 }),
1340
+ /* @__PURE__ */ c("p", {
1341
1341
  class: "IncodeRedirectLinkSentPhone",
1342
1342
  children: a("redirect.linkSentTo", { phone: e })
1343
1343
  }),
1344
- /* @__PURE__ */ s(d, { size: 32 }),
1345
- /* @__PURE__ */ s("div", {
1344
+ /* @__PURE__ */ c(f, { size: 32 }),
1345
+ /* @__PURE__ */ c("div", {
1346
1346
  class: "IncodeRedirectLinkSentActions",
1347
- children: /* @__PURE__ */ s(n, {
1347
+ children: /* @__PURE__ */ c(n, {
1348
1348
  i18nKey: "redirect.didntReceiveLinkActions",
1349
1349
  defaultValue: "Didn't receive the link? <resend>Resend</resend> or <changePhone>Change phone number</changePhone>",
1350
1350
  components: {
1351
- resend: /* @__PURE__ */ s(g, {
1351
+ resend: /* @__PURE__ */ c(_, {
1352
1352
  variant: "link",
1353
1353
  onClick: r
1354
1354
  }),
1355
- changePhone: /* @__PURE__ */ s(g, {
1355
+ changePhone: /* @__PURE__ */ c(_, {
1356
1356
  variant: "link",
1357
1357
  onClick: i
1358
1358
  })
@@ -1361,40 +1361,40 @@ var T = ({ logoSrc: e }) => {
1361
1361
  })
1362
1362
  ]
1363
1363
  });
1364
- }, se = ({ countryCode: e, error: n, isSending: i, isPhoneValid: a, onPhoneChange: o, onSendSms: c }) => {
1364
+ }, Q = ({ countryCode: e, error: n, isSending: i, isPhoneValid: a, onPhoneChange: o, onSendSms: s }) => {
1365
1365
  let { t: l } = t();
1366
- return /* @__PURE__ */ s(r, { children: [/* @__PURE__ */ s(y, {
1366
+ return /* @__PURE__ */ c(r, { children: [/* @__PURE__ */ c(b, {
1367
1367
  id: "sms-phone",
1368
1368
  countryCode: e,
1369
1369
  error: n,
1370
1370
  disabled: i,
1371
1371
  autoFocus: !0,
1372
1372
  onChange: o
1373
- }), /* @__PURE__ */ s(g, {
1374
- onClick: c,
1373
+ }), /* @__PURE__ */ c(_, {
1374
+ onClick: s,
1375
1375
  disabled: !a || i,
1376
1376
  isLoading: i,
1377
1377
  class: "IncodeRedirectSmsSendButton",
1378
1378
  children: l("redirect.sendLinkViaSms")
1379
1379
  })] });
1380
- }, Q = (e, t) => e.startsWith(t) ? `${t} ${e.slice(t.length).replace(/(\d{3})(?=\d)/g, "$1 ")}` : e, ce = ({ phonePrefix: e, smsSent: n, error: i, manager: c, onResend: l }) => {
1381
- let { t: u } = t(), [d, f] = o(e), [p, m] = o(!1), [h, g] = o(!1), _ = v(e)?.code ?? "", y = Q(d, e), b = a((e, t) => {
1380
+ }, ce = (e, t) => e.startsWith(t) ? `${t} ${e.slice(t.length).replace(/(\d{3})(?=\d)/g, "$1 ")}` : e, le = ({ phonePrefix: e, smsSent: n, error: i, manager: o, onResend: l }) => {
1381
+ let { t: u } = t(), [d, f] = s(e), [p, m] = s(!1), [h, g] = s(!1), _ = y(e)?.code ?? "", v = ce(d, e), b = a((e, t) => {
1382
1382
  f(e), m(t);
1383
1383
  }, []), x = a(() => {
1384
- g(!0), c.sendSms(d), g(!1);
1385
- }, [c, d]), S = a(() => {
1384
+ g(!0), o.sendSms(d), g(!1);
1385
+ }, [o, d]), S = a(() => {
1386
1386
  x(), l();
1387
1387
  }, [x, l]), C = a(() => {
1388
- f(e), m(!1), c.resetSms();
1389
- }, [c, e]);
1390
- return /* @__PURE__ */ s(r, { children: [/* @__PURE__ */ s("p", {
1388
+ f(e), m(!1), o.resetSms();
1389
+ }, [o, e]);
1390
+ return /* @__PURE__ */ c(r, { children: [/* @__PURE__ */ c("p", {
1391
1391
  class: "IncodeRedirectTabDescription",
1392
1392
  children: u("v2.redirectToMobile.sms.description")
1393
- }), n ? /* @__PURE__ */ s(oe, {
1394
- formattedPhone: y,
1393
+ }), n ? /* @__PURE__ */ c(se, {
1394
+ formattedPhone: v,
1395
1395
  onResend: S,
1396
1396
  onChangePhone: C
1397
- }) : /* @__PURE__ */ s(se, {
1397
+ }) : /* @__PURE__ */ c(Q, {
1398
1398
  countryCode: _,
1399
1399
  phonePrefix: e,
1400
1400
  error: i,
@@ -1403,44 +1403,44 @@ var T = ({ logoSrc: e }) => {
1403
1403
  onPhoneChange: b,
1404
1404
  onSendSms: x
1405
1405
  })] });
1406
- }, le = ({ redirectUrl: e, phonePrefix: n, smsSent: i, disableSmsOption: c, addContinueToDesktop: l, error: u, manager: d, logoSrc: f }) => {
1407
- let { t: p } = t(), [m, h] = o(!1), g = a(() => {
1406
+ }, ue = ({ redirectUrl: e, phonePrefix: n, smsSent: i, disableSmsOption: o, addContinueToDesktop: l, error: u, manager: d, logoSrc: f }) => {
1407
+ let { t: p } = t(), [m, h] = s(!1), g = a(() => {
1408
1408
  h(!0), setTimeout(() => h(!1), 3e3);
1409
1409
  }, []), _ = a(() => {
1410
1410
  d.continueOnDesktop();
1411
1411
  }, [d]);
1412
- return /* @__PURE__ */ s("div", {
1412
+ return /* @__PURE__ */ c("div", {
1413
1413
  class: "IncodeRedirectContainer",
1414
- children: [/* @__PURE__ */ s(D, { visible: m }), /* @__PURE__ */ s("div", {
1414
+ children: [/* @__PURE__ */ c(O, { visible: m }), /* @__PURE__ */ c("div", {
1415
1415
  class: "IncodeRedirectCard",
1416
- children: [c ? /* @__PURE__ */ s(r, { children: [/* @__PURE__ */ s(T, { logoSrc: f }), /* @__PURE__ */ s("div", {
1416
+ children: [o ? /* @__PURE__ */ c(r, { children: [/* @__PURE__ */ c(E, { logoSrc: f }), /* @__PURE__ */ c("div", {
1417
1417
  class: "IncodeRedirectOptions",
1418
- children: /* @__PURE__ */ s(Z, { redirectUrl: e })
1419
- })] }) : /* @__PURE__ */ s(C, {
1418
+ children: /* @__PURE__ */ c(Z, { redirectUrl: e })
1419
+ })] }) : /* @__PURE__ */ c(w, {
1420
1420
  defaultValue: "qr",
1421
1421
  listClassName: "IncodeRedirectTabs",
1422
1422
  triggerClassName: "IncodeRedirectTab",
1423
1423
  activeTriggerClassName: "IncodeRedirectTabActive",
1424
- children: [/* @__PURE__ */ s("div", {
1424
+ children: [/* @__PURE__ */ c("div", {
1425
1425
  class: "IncodeRedirectTopGroup",
1426
- children: [/* @__PURE__ */ s(T, { logoSrc: f }), /* @__PURE__ */ s(C.List, {
1426
+ children: [/* @__PURE__ */ c(E, { logoSrc: f }), /* @__PURE__ */ c(w.List, {
1427
1427
  label: p("v2.redirectToMobile.tabs.label"),
1428
- children: [/* @__PURE__ */ s(C.Trigger, {
1428
+ children: [/* @__PURE__ */ c(w.Trigger, {
1429
1429
  value: "qr",
1430
1430
  children: p("v2.redirectToMobile.tabs.0")
1431
- }), /* @__PURE__ */ s(C.Trigger, {
1431
+ }), /* @__PURE__ */ c(w.Trigger, {
1432
1432
  value: "sms",
1433
1433
  children: p("v2.redirectToMobile.tabs.1")
1434
1434
  })]
1435
1435
  })]
1436
- }), /* @__PURE__ */ s("div", {
1436
+ }), /* @__PURE__ */ c("div", {
1437
1437
  class: "IncodeRedirectOptions",
1438
- children: [/* @__PURE__ */ s(C.Content, {
1438
+ children: [/* @__PURE__ */ c(w.Content, {
1439
1439
  value: "qr",
1440
- children: /* @__PURE__ */ s(Z, { redirectUrl: e })
1441
- }), /* @__PURE__ */ s(C.Content, {
1440
+ children: /* @__PURE__ */ c(Z, { redirectUrl: e })
1441
+ }), /* @__PURE__ */ c(w.Content, {
1442
1442
  value: "sms",
1443
- children: /* @__PURE__ */ s(ce, {
1443
+ children: /* @__PURE__ */ c(le, {
1444
1444
  phonePrefix: n,
1445
1445
  smsSent: i,
1446
1446
  error: u,
@@ -1449,69 +1449,71 @@ var T = ({ logoSrc: e }) => {
1449
1449
  })
1450
1450
  })]
1451
1451
  })]
1452
- }), /* @__PURE__ */ s(E, {
1452
+ }), /* @__PURE__ */ c(D, {
1453
1453
  addContinueToDesktop: l,
1454
1454
  onContinueOnDesktop: _
1455
1455
  })]
1456
1456
  })]
1457
1457
  });
1458
- }, ue = ({ title: e, subtitle: n, logoSrc: r }) => {
1458
+ }, de = ({ title: e, subtitle: n, logoSrc: r }) => {
1459
1459
  let { t: i } = t(), a = e ?? i("verificationComplete.title"), o = n ?? i("verificationComplete.message");
1460
- return /* @__PURE__ */ s("div", {
1460
+ return /* @__PURE__ */ c("div", {
1461
1461
  class: "IncodeRedirectFinishedContainer",
1462
1462
  children: [
1463
- /* @__PURE__ */ s("img", {
1463
+ /* @__PURE__ */ c("img", {
1464
1464
  src: r,
1465
1465
  alt: "",
1466
1466
  "aria-hidden": "true",
1467
1467
  class: "IncodeRedirectLogo"
1468
1468
  }),
1469
- a ? /* @__PURE__ */ s(x, {
1469
+ a ? /* @__PURE__ */ c(S, {
1470
1470
  className: "IncodeRedirectFinishedTitle",
1471
1471
  children: a
1472
1472
  }) : null,
1473
- o ? /* @__PURE__ */ s("p", {
1473
+ o ? /* @__PURE__ */ c("p", {
1474
1474
  class: "IncodeRedirectFinishedSubtitle",
1475
1475
  children: o
1476
1476
  }) : null
1477
1477
  ]
1478
1478
  });
1479
- }, de = ({ config: e, onFinish: t, onContinue: n, onError: r }) => {
1480
- let [a, o] = c(() => w({ config: e })), { logoSrc: u, logoHeightPx: d } = p({
1479
+ }, fe = ({ config: e, onFinish: t, onContinue: n, onError: r }) => {
1480
+ let [a, s] = l(() => T({ config: e })), { logoSrc: d, logoHeightPx: f } = m({
1481
1481
  hideHeader: void 0,
1482
1482
  hideFooterBranding: void 0,
1483
1483
  logo: void 0,
1484
- defaultLogoSrc: f
1484
+ defaultLogoSrc: p
1485
1485
  });
1486
- l({
1486
+ u({
1487
1487
  status: a.status,
1488
1488
  onFinish: t,
1489
1489
  onError: r,
1490
1490
  error: a.status === "error" ? a.error : void 0
1491
- }), i(() => {
1492
- a.status === "closed" && n?.();
1491
+ });
1492
+ let h = o(!1);
1493
+ i(() => {
1494
+ h.current || a.status === "continue" && (h.current = !0, n?.());
1493
1495
  }, [a.status, n]);
1494
- let m = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ s(h, { hideText: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ s(le, {
1496
+ let _ = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ c(g, { hideText: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ c(ue, {
1495
1497
  redirectUrl: a.redirectUrl,
1496
1498
  phonePrefix: a.phonePrefix,
1497
1499
  smsSent: a.smsSent,
1498
1500
  disableSmsOption: e.disableSmsOption ?? !1,
1499
1501
  addContinueToDesktop: e.addContinueToDesktop ?? !1,
1500
1502
  error: a.error,
1501
- manager: o,
1502
- logoSrc: u
1503
- }) : a.status === "finished" ? /* @__PURE__ */ s(ue, { logoSrc: u }) : null;
1504
- return /* @__PURE__ */ s("main", {
1503
+ manager: s,
1504
+ logoSrc: d
1505
+ }) : a.status === "finished" ? /* @__PURE__ */ c(de, { logoSrc: d }) : null;
1506
+ return /* @__PURE__ */ c("main", {
1505
1507
  class: "IncodeRedirectRoot",
1506
- style: { "--logo-height": `${d}px` },
1507
- children: m
1508
+ style: { "--logo-height": `${f}px` },
1509
+ children: _
1508
1510
  });
1509
- }, $ = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(de, {
1511
+ }, $ = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ c(d, { children: e ? /* @__PURE__ */ c(fe, {
1510
1512
  config: e,
1511
1513
  onFinish: t,
1512
1514
  onContinue: n,
1513
1515
  onError: r
1514
1516
  }) : null });
1515
- b($, "incode-redirect-to-mobile");
1517
+ x($, "incode-redirect-to-mobile");
1516
1518
  //#endregion
1517
1519
  export { $ as RedirectToMobile };
@@ -207,7 +207,7 @@ function M(e) {
207
207
  return t;
208
208
  }
209
209
  var N = {
210
- REDIRECT_TO_MOBILE: () => import("./redirectToMobile-DQHIQWzY.js").then((e) => e.RedirectToMobile),
210
+ REDIRECT_TO_MOBILE: () => import("./redirectToMobile-C618Qp_k.js").then((e) => e.RedirectToMobile),
211
211
  PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
212
212
  EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
213
213
  SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
@@ -6,7 +6,7 @@ import { t as u } from "../incodeComponent-MZEyrb1V.js";
6
6
  import "../spinner-B4dcie2T.js";
7
7
  import { t as d } from "../transitionSpinner-BWCiDYAb.js";
8
8
  import { t as f } from "../incodeModule-CHzKl22Y.js";
9
- import { _ as p, a as m, c as h, h as g, i as _, o as v, t as y, v as b } from "../useModuleLoader-Dnv_d2ZP.js";
9
+ import { _ as p, a as m, c as h, h as g, i as _, o as v, t as y, v as b } from "../useModuleLoader-BcTaTo9L.js";
10
10
  import { resolveWasmConfig as x, upgradeToWasmHttpClient as S, warmupWasm as C } from "@incodetech/core/wasm";
11
11
  import { getDeviceClass as w } from "@incodetech/core/device";
12
12
  import { refreshQrUrlUuid as T } from "@incodetech/core/session";
@@ -14,7 +14,7 @@ import { createWorkflowManager as E } from "@incodetech/core/workflow";
14
14
  //#region src/modules/workflow/workflowInit.ts
15
15
  var D = {
16
16
  ...h,
17
- REDIRECT_TO_MOBILE: () => import("../redirectToMobile-DQHIQWzY.js").then((e) => e.RedirectToMobile),
17
+ REDIRECT_TO_MOBILE: () => import("../redirectToMobile-C618Qp_k.js").then((e) => e.RedirectToMobile),
18
18
  ID: () => import("../id-verification/id-verification.es.js").then((e) => e.IdVerification),
19
19
  IDENTITY_REUSE: () => import("../identity-reuse/identity-reuse.es.js").then((e) => e.IdentityReuse)
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260527-927030e4",
3
+ "version": "0.0.0-dev-20260527-d2899d7c",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
@@ -246,7 +246,7 @@
246
246
  "qrcode": "^1.5.4",
247
247
  "signature_pad": "^5.1.3",
248
248
  "tailwindcss": "^4.1.17",
249
- "@incodetech/core": "0.0.0-dev-20260527-927030e4"
249
+ "@incodetech/core": "0.0.0-dev-20260527-d2899d7c"
250
250
  },
251
251
  "devDependencies": {
252
252
  "@microsoft/api-extractor": "^7.53.3",