@incodetech/web 0.0.0-dev-20260407-4677d7f → 0.0.0-dev-20260407-ebd92aa

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 (2) hide show
  1. package/dist/flow/flow.es.js +179 -195
  2. package/package.json +2 -2
@@ -13,33 +13,17 @@ import { t as w } from "../successIcon-AHrfmJvv.js";
13
13
  import { n as ee } from "../countries-y2ydYDhN.js";
14
14
  import { t as T } from "../incodeModule-Bf6yJ8RB.js";
15
15
  import { resolveWasmConfig as te, warmupWasm as ne } from "@incodetech/core/wasm";
16
- import { idCaptureMachine as E } from "@incodetech/core/id";
17
- import { antifraudMachine as re } from "@incodetech/core/antifraud";
18
- import { authenticationMachine as ie } from "@incodetech/core/authentication";
19
- import { consentMachine as ae } from "@incodetech/core/consent";
20
- import { curpValidationMachine as oe } from "@incodetech/core/curp-validation";
21
- import { ekybMachine as se } from "@incodetech/core/ekyb";
22
- import { ekycMachine as ce } from "@incodetech/core/ekyc";
23
- import { emailMachine as le } from "@incodetech/core/email";
24
- import { createOrchestratedFlowManager as ue, getRequiredWasmPipelines as D } from "@incodetech/core/flow";
25
- import { createRedirectToMobileManager as de } from "@incodetech/core/redirect-to-mobile";
26
- import { faceMatchMachine as fe } from "@incodetech/core/face-match";
27
- import { geolocationMachine as pe } from "@incodetech/core/geolocation";
28
- import { documentCaptureMachine as O } from "@incodetech/core/document-capture";
29
- import { phoneMachine as me } from "@incodetech/core/phone";
30
- import { selfieMachine as he } from "@incodetech/core/selfie";
31
- import { governmentValidationMachine as ge } from "@incodetech/core/government-validation";
32
- import { mandatoryConsentMachine as _e } from "@incodetech/core/mandatory-consent";
33
- import { api as k } from "@incodetech/core/http";
34
- import { signatureMachine as ve } from "@incodetech/core/signature";
16
+ import { createOrchestratedFlowManager as re, getRequiredWasmPipelines as E } from "@incodetech/core/flow";
17
+ import { createRedirectToMobileManager as ie } from "@incodetech/core/redirect-to-mobile";
18
+ import { api as D } from "@incodetech/core/http";
35
19
  //#region src/shared/tabs/tabs.tsx
36
- var A = f(null), j = () => {
37
- let e = o(A);
20
+ var O = f(null), k = () => {
21
+ let e = o(O);
38
22
  if (!e) throw Error("Tabs compound components must be used within <Tabs>");
39
23
  return e;
40
- }, M = Object.assign(({ defaultValue: e, listClassName: t, triggerClassName: n, activeTriggerClassName: r, children: i }) => {
24
+ }, A = Object.assign(({ defaultValue: e, listClassName: t, triggerClassName: n, activeTriggerClassName: r, children: i }) => {
41
25
  let [a, o] = u(e);
42
- return /* @__PURE__ */ d(A.Provider, {
26
+ return /* @__PURE__ */ d(O.Provider, {
43
27
  value: {
44
28
  activeValue: a,
45
29
  setActiveValue: o,
@@ -51,14 +35,14 @@ var A = f(null), j = () => {
51
35
  });
52
36
  }, {
53
37
  List: ({ children: e }) => {
54
- let { listClassName: t } = j();
38
+ let { listClassName: t } = k();
55
39
  return /* @__PURE__ */ d("div", {
56
40
  class: t,
57
41
  children: e
58
42
  });
59
43
  },
60
44
  Trigger: ({ value: e, children: t }) => {
61
- let { activeValue: n, setActiveValue: r, triggerClassName: i, activeTriggerClassName: a } = j();
45
+ let { activeValue: n, setActiveValue: r, triggerClassName: i, activeTriggerClassName: a } = k();
62
46
  return /* @__PURE__ */ d("button", {
63
47
  type: "button",
64
48
  class: g(i, n === e && a),
@@ -67,10 +51,10 @@ var A = f(null), j = () => {
67
51
  });
68
52
  },
69
53
  Content: ({ value: e, children: t }) => {
70
- let { activeValue: n } = j();
54
+ let { activeValue: n } = k();
71
55
  return n === e ? /* @__PURE__ */ d(r, { children: t }) : null;
72
56
  }
73
- }), ye = ({ logoSrc: e }) => {
57
+ }), ae = ({ logoSrc: e }) => {
74
58
  let { t: n } = t();
75
59
  return /* @__PURE__ */ d("header", {
76
60
  class: "IncodeRedirectHeader",
@@ -95,7 +79,7 @@ var A = f(null), j = () => {
95
79
  })
96
80
  ]
97
81
  });
98
- }, be = ({ addContinueToDesktop: e, onContinueOnDesktop: n }) => {
82
+ }, oe = ({ addContinueToDesktop: e, onContinueOnDesktop: n }) => {
99
83
  let { t: r } = t();
100
84
  return /* @__PURE__ */ d("footer", {
101
85
  class: "IncodeRedirectBottomNav",
@@ -105,7 +89,7 @@ var A = f(null), j = () => {
105
89
  children: r("redirect.continueOnDesktop")
106
90
  }) : null, /* @__PURE__ */ d(b, {})]
107
91
  });
108
- }, xe = ({ visible: e }) => {
92
+ }, se = ({ visible: e }) => {
109
93
  let { t: n } = t();
110
94
  return e ? /* @__PURE__ */ d("div", {
111
95
  class: "IncodeRedirectToast",
@@ -114,11 +98,11 @@ var A = f(null), j = () => {
114
98
  children: n("redirect.linkResent")
115
99
  })]
116
100
  }) : null;
117
- }, Se = /* @__PURE__ */ e(((e, t) => {
101
+ }, ce = /* @__PURE__ */ e(((e, t) => {
118
102
  t.exports = function() {
119
103
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
120
104
  };
121
- })), N = /* @__PURE__ */ e(((e) => {
105
+ })), j = /* @__PURE__ */ e(((e) => {
122
106
  var t, n = [
123
107
  0,
124
108
  26,
@@ -180,7 +164,7 @@ var A = f(null), j = () => {
180
164
  }, e.toSJIS = function(e) {
181
165
  return t(e);
182
166
  };
183
- })), P = /* @__PURE__ */ e(((e) => {
167
+ })), M = /* @__PURE__ */ e(((e) => {
184
168
  e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
185
169
  function t(t) {
186
170
  if (typeof t != "string") throw Error("Param is not a string");
@@ -206,7 +190,7 @@ var A = f(null), j = () => {
206
190
  return r;
207
191
  }
208
192
  };
209
- })), Ce = /* @__PURE__ */ e(((e, t) => {
193
+ })), le = /* @__PURE__ */ e(((e, t) => {
210
194
  function n() {
211
195
  this.buffer = [], this.length = 0;
212
196
  }
@@ -226,7 +210,7 @@ var A = f(null), j = () => {
226
210
  this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
227
211
  }
228
212
  }, t.exports = n;
229
- })), we = /* @__PURE__ */ e(((e, t) => {
213
+ })), ue = /* @__PURE__ */ e(((e, t) => {
230
214
  function n(e) {
231
215
  if (!e || e < 1) throw Error("BitMatrix size must be defined and greater than 0");
232
216
  this.size = e, this.data = new Uint8Array(e * e), this.reservedBit = new Uint8Array(e * e);
@@ -241,8 +225,8 @@ var A = f(null), j = () => {
241
225
  }, n.prototype.isReserved = function(e, t) {
242
226
  return this.reservedBit[e * this.size + t];
243
227
  }, t.exports = n;
244
- })), Te = /* @__PURE__ */ e(((e) => {
245
- var t = N().getSymbolSize;
228
+ })), de = /* @__PURE__ */ e(((e) => {
229
+ var t = j().getSymbolSize;
246
230
  e.getRowColCoords = function(e) {
247
231
  if (e === 1) return [];
248
232
  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];
@@ -253,8 +237,8 @@ var A = f(null), j = () => {
253
237
  for (let e = 0; e < i; e++) for (let t = 0; t < i; t++) e === 0 && t === 0 || e === 0 && t === i - 1 || e === i - 1 && t === 0 || n.push([r[e], r[t]]);
254
238
  return n;
255
239
  };
256
- })), Ee = /* @__PURE__ */ e(((e) => {
257
- var t = N().getSymbolSize, n = 7;
240
+ })), fe = /* @__PURE__ */ e(((e) => {
241
+ var t = j().getSymbolSize, n = 7;
258
242
  e.getPositions = function(e) {
259
243
  let r = t(e);
260
244
  return [
@@ -263,7 +247,7 @@ var A = f(null), j = () => {
263
247
  [0, r - n]
264
248
  ];
265
249
  };
266
- })), De = /* @__PURE__ */ e(((e) => {
250
+ })), pe = /* @__PURE__ */ e(((e) => {
267
251
  e.Patterns = {
268
252
  PATTERN000: 0,
269
253
  PATTERN001: 1,
@@ -339,8 +323,8 @@ var A = f(null), j = () => {
339
323
  }
340
324
  return i;
341
325
  };
342
- })), F = /* @__PURE__ */ e(((e) => {
343
- var t = P(), n = [
326
+ })), N = /* @__PURE__ */ e(((e) => {
327
+ var t = M(), n = [
344
328
  1,
345
329
  1,
346
330
  1,
@@ -680,7 +664,7 @@ var A = f(null), j = () => {
680
664
  default: return;
681
665
  }
682
666
  };
683
- })), Oe = /* @__PURE__ */ e(((e) => {
667
+ })), me = /* @__PURE__ */ e(((e) => {
684
668
  var t = new Uint8Array(512), n = new Uint8Array(256);
685
669
  (function() {
686
670
  let e = 1;
@@ -694,8 +678,8 @@ var A = f(null), j = () => {
694
678
  }, e.mul = function(e, r) {
695
679
  return e === 0 || r === 0 ? 0 : t[n[e] + n[r]];
696
680
  };
697
- })), ke = /* @__PURE__ */ e(((e) => {
698
- var t = Oe();
681
+ })), he = /* @__PURE__ */ e(((e) => {
682
+ var t = me();
699
683
  e.mul = function(e, n) {
700
684
  let r = new Uint8Array(e.length + n.length - 1);
701
685
  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]);
@@ -715,8 +699,8 @@ var A = f(null), j = () => {
715
699
  for (let i = 0; i < n; i++) r = e.mul(r, new Uint8Array([1, t.exp(i)]));
716
700
  return r;
717
701
  };
718
- })), Ae = /* @__PURE__ */ e(((e, t) => {
719
- var n = ke();
702
+ })), ge = /* @__PURE__ */ e(((e, t) => {
703
+ var n = he();
720
704
  function r(e) {
721
705
  this.genPoly = void 0, this.degree = e, this.degree && this.initialize(this.degree);
722
706
  }
@@ -733,11 +717,11 @@ var A = f(null), j = () => {
733
717
  }
734
718
  return r;
735
719
  }, t.exports = r;
736
- })), I = /* @__PURE__ */ e(((e) => {
720
+ })), P = /* @__PURE__ */ e(((e) => {
737
721
  e.isValid = function(e) {
738
722
  return !isNaN(e) && e >= 1 && e <= 40;
739
723
  };
740
- })), L = /* @__PURE__ */ e(((e) => {
724
+ })), F = /* @__PURE__ */ e(((e) => {
741
725
  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])+";
742
726
  r = r.replace(/u/g, "\\u");
743
727
  var i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + r + ")(?:.|[\r\n]))+";
@@ -750,8 +734,8 @@ var A = f(null), j = () => {
750
734
  }, e.testAlphanumeric = function(e) {
751
735
  return s.test(e);
752
736
  };
753
- })), R = /* @__PURE__ */ e(((e) => {
754
- var t = I(), n = L();
737
+ })), I = /* @__PURE__ */ e(((e) => {
738
+ var t = P(), n = F();
755
739
  e.NUMERIC = {
756
740
  id: "Numeric",
757
741
  bit: 1,
@@ -814,8 +798,8 @@ var A = f(null), j = () => {
814
798
  return n;
815
799
  }
816
800
  };
817
- })), je = /* @__PURE__ */ e(((e) => {
818
- var t = N(), n = F(), r = P(), i = R(), a = I(), o = 7973, s = t.getBCHDigit(o);
801
+ })), L = /* @__PURE__ */ e(((e) => {
802
+ var t = j(), n = N(), r = M(), i = I(), a = P(), o = 7973, s = t.getBCHDigit(o);
819
803
  function c(t, n, r) {
820
804
  for (let i = 1; i <= 40; i++) if (n <= e.getCapacity(i, r, t)) return i;
821
805
  }
@@ -861,15 +845,15 @@ var A = f(null), j = () => {
861
845
  for (; t.getBCHDigit(n) - s >= 0;) n ^= o << t.getBCHDigit(n) - s;
862
846
  return e << 12 | n;
863
847
  };
864
- })), Me = /* @__PURE__ */ e(((e) => {
865
- var t = N(), n = 1335, r = 21522, i = t.getBCHDigit(n);
848
+ })), _e = /* @__PURE__ */ e(((e) => {
849
+ var t = j(), n = 1335, r = 21522, i = t.getBCHDigit(n);
866
850
  e.getEncodedBits = function(e, a) {
867
851
  let o = e.bit << 3 | a, s = o << 10;
868
852
  for (; t.getBCHDigit(s) - i >= 0;) s ^= n << t.getBCHDigit(s) - i;
869
853
  return (o << 10 | s) ^ r;
870
854
  };
871
- })), Ne = /* @__PURE__ */ e(((e, t) => {
872
- var n = R();
855
+ })), ve = /* @__PURE__ */ e(((e, t) => {
856
+ var n = I();
873
857
  function r(e) {
874
858
  this.mode = n.NUMERIC, this.data = e.toString();
875
859
  }
@@ -885,8 +869,8 @@ var A = f(null), j = () => {
885
869
  let i = this.data.length - t;
886
870
  i > 0 && (n = this.data.substr(t), r = parseInt(n, 10), e.put(r, i * 3 + 1));
887
871
  }, t.exports = r;
888
- })), Pe = /* @__PURE__ */ e(((e, t) => {
889
- var n = R(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
872
+ })), ye = /* @__PURE__ */ e(((e, t) => {
873
+ var n = I(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
890
874
  function i(e) {
891
875
  this.mode = n.ALPHANUMERIC, this.data = e;
892
876
  }
@@ -904,8 +888,8 @@ var A = f(null), j = () => {
904
888
  }
905
889
  this.data.length % 2 && e.put(r.indexOf(this.data[t]), 6);
906
890
  }, t.exports = i;
907
- })), Fe = /* @__PURE__ */ e(((e, t) => {
908
- var n = R();
891
+ })), be = /* @__PURE__ */ e(((e, t) => {
892
+ var n = I();
909
893
  function r(e) {
910
894
  this.mode = n.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
911
895
  }
@@ -918,8 +902,8 @@ var A = f(null), j = () => {
918
902
  }, r.prototype.write = function(e) {
919
903
  for (let t = 0, n = this.data.length; t < n; t++) e.put(this.data[t], 8);
920
904
  }, t.exports = r;
921
- })), Ie = /* @__PURE__ */ e(((e, t) => {
922
- var n = R(), r = N();
905
+ })), xe = /* @__PURE__ */ e(((e, t) => {
906
+ var n = I(), r = j();
923
907
  function i(e) {
924
908
  this.mode = n.KANJI, this.data = e;
925
909
  }
@@ -939,7 +923,7 @@ var A = f(null), j = () => {
939
923
  n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
940
924
  }
941
925
  }, t.exports = i;
942
- })), Le = /* @__PURE__ */ e(((e, t) => {
926
+ })), Se = /* @__PURE__ */ e(((e, t) => {
943
927
  var n = {
944
928
  single_source_shortest_paths: function(e, t, r) {
945
929
  var i = {}, a = {};
@@ -992,8 +976,8 @@ var A = f(null), j = () => {
992
976
  }
993
977
  };
994
978
  t !== void 0 && (t.exports = n);
995
- })), Re = /* @__PURE__ */ e(((e) => {
996
- var t = R(), n = Ne(), r = Pe(), i = Fe(), a = Ie(), o = L(), s = N(), c = Le();
979
+ })), Ce = /* @__PURE__ */ e(((e) => {
980
+ var t = I(), n = ve(), r = ye(), i = be(), a = xe(), o = F(), s = j(), c = Se();
997
981
  function l(e) {
998
982
  return unescape(encodeURIComponent(e)).length;
999
983
  }
@@ -1120,8 +1104,8 @@ var A = f(null), j = () => {
1120
1104
  }, e.rawSplit = function(t) {
1121
1105
  return e.fromArray(d(t, s.isKanjiModeEnabled()));
1122
1106
  };
1123
- })), ze = /* @__PURE__ */ e(((e) => {
1124
- var t = N(), n = P(), r = Ce(), i = we(), a = Te(), o = Ee(), s = De(), c = F(), l = Ae(), u = je(), d = Me(), f = R(), p = Re();
1107
+ })), we = /* @__PURE__ */ e(((e) => {
1108
+ var t = j(), n = M(), r = le(), i = ue(), a = de(), o = fe(), s = pe(), c = N(), l = ge(), u = L(), d = _e(), f = I(), p = Ce();
1125
1109
  function m(e, t) {
1126
1110
  let n = e.size, r = o.getPositions(t);
1127
1111
  for (let t = 0; t < r.length; t++) {
@@ -1216,7 +1200,7 @@ var A = f(null), j = () => {
1216
1200
  let i = n.M, a, o;
1217
1201
  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);
1218
1202
  };
1219
- })), z = /* @__PURE__ */ e(((e) => {
1203
+ })), R = /* @__PURE__ */ e(((e) => {
1220
1204
  function t(e) {
1221
1205
  if (typeof e == "number" && (e = e.toString()), typeof e != "string") throw Error("Color should be defined as hex string");
1222
1206
  let t = e.slice().replace("#", "").split("");
@@ -1263,8 +1247,8 @@ var A = f(null), j = () => {
1263
1247
  t[u++] = d.r, t[u++] = d.g, t[u++] = d.b, t[u] = d.a;
1264
1248
  }
1265
1249
  };
1266
- })), Be = /* @__PURE__ */ e(((e) => {
1267
- var t = z();
1250
+ })), Te = /* @__PURE__ */ e(((e) => {
1251
+ var t = R();
1268
1252
  function n(e, t, n) {
1269
1253
  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";
1270
1254
  }
@@ -1286,8 +1270,8 @@ var A = f(null), j = () => {
1286
1270
  let a = e.render(t, n, i), o = i.type || "image/png", s = i.rendererOpts || {};
1287
1271
  return a.toDataURL(o, s.quality);
1288
1272
  };
1289
- })), Ve = /* @__PURE__ */ e(((e) => {
1290
- var t = z();
1273
+ })), Ee = /* @__PURE__ */ e(((e) => {
1274
+ var t = R();
1291
1275
  function n(e, t) {
1292
1276
  let n = e.a / 255, r = t + "=\"" + e.hex + "\"";
1293
1277
  return n < 1 ? r + " " + t + "-opacity=\"" + n.toFixed(2).slice(1) + "\"" : r;
@@ -1308,8 +1292,8 @@ var A = f(null), j = () => {
1308
1292
  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";
1309
1293
  return typeof a == "function" && a(null, p), p;
1310
1294
  };
1311
- })), He = (/* @__PURE__ */ e(((e) => {
1312
- var t = Se(), n = ze(), r = Be(), i = Ve();
1295
+ })), De = (/* @__PURE__ */ e(((e) => {
1296
+ var t = ce(), n = we(), r = Te(), i = Ee();
1313
1297
  function a(e, r, i, a, o) {
1314
1298
  let s = [].slice.call(arguments, 1), c = s.length, l = typeof s[c - 1] == "function";
1315
1299
  if (!l && !t()) throw Error("Callback required as last argument");
@@ -1336,10 +1320,10 @@ var A = f(null), j = () => {
1336
1320
  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) {
1337
1321
  return i.render(e, n);
1338
1322
  });
1339
- })))(), Ue = ({ value: e, size: t = 150, bgColor: n = "#ffffff", fgColor: r = "#000000" }) => {
1323
+ })))(), Oe = ({ value: e, size: t = 150, bgColor: n = "#ffffff", fgColor: r = "#000000" }) => {
1340
1324
  let [a, o] = u("");
1341
1325
  return i(() => {
1342
- e && (0, He.toString)(e, {
1326
+ e && (0, De.toString)(e, {
1343
1327
  type: "svg",
1344
1328
  width: t,
1345
1329
  margin: 0,
@@ -1357,19 +1341,19 @@ var A = f(null), j = () => {
1357
1341
  class: "IncodeRedirectQrCode",
1358
1342
  dangerouslySetInnerHTML: { __html: a }
1359
1343
  }) : null;
1360
- }, We = ({ redirectUrl: e }) => {
1344
+ }, ke = ({ redirectUrl: e }) => {
1361
1345
  let { t: n } = t();
1362
1346
  return /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d("p", {
1363
1347
  class: "IncodeRedirectTabDescription",
1364
1348
  children: n("v2.redirectToMobile.qr.description")
1365
1349
  }), /* @__PURE__ */ d("div", {
1366
1350
  class: "IncodeRedirectQrWrapper",
1367
- children: /* @__PURE__ */ d(Ue, {
1351
+ children: /* @__PURE__ */ d(Oe, {
1368
1352
  value: e,
1369
1353
  size: 186
1370
1354
  })
1371
1355
  })] });
1372
- }, Ge = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
1356
+ }, Ae = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
1373
1357
  let { t: a } = t();
1374
1358
  return /* @__PURE__ */ d("div", {
1375
1359
  class: "IncodeRedirectLinkSent",
@@ -1405,11 +1389,11 @@ var A = f(null), j = () => {
1405
1389
  })
1406
1390
  ]
1407
1391
  });
1408
- }, Ke = a(() => import("../phoneInput-C9T_8FJt.js").then((e) => ({ default: e.PhoneInput }))), qe = ({ countryCode: e, phonePrefix: n, error: i, isSending: a, isPhoneValid: o, onPhoneChange: s, onSendSms: c }) => {
1392
+ }, je = a(() => import("../phoneInput-C9T_8FJt.js").then((e) => ({ default: e.PhoneInput }))), Me = ({ countryCode: e, phonePrefix: n, error: i, isSending: a, isPhoneValid: o, onPhoneChange: s, onSendSms: c }) => {
1409
1393
  let { t: u } = t();
1410
1394
  return /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d(l, {
1411
1395
  fallback: /* @__PURE__ */ d(C, {}),
1412
- children: /* @__PURE__ */ d(Ke, {
1396
+ children: /* @__PURE__ */ d(je, {
1413
1397
  countryCode: e,
1414
1398
  phonePrefix: n,
1415
1399
  phoneError: i,
@@ -1424,8 +1408,8 @@ var A = f(null), j = () => {
1424
1408
  class: "IncodeRedirectSmsSendButton",
1425
1409
  children: u("redirect.sendLinkViaSms")
1426
1410
  })] });
1427
- }, Je = (e, t) => e.startsWith(t) ? `${t} ${e.slice(t.length).replace(/(\d{3})(?=\d)/g, "$1 ")}` : e, Ye = ({ phonePrefix: e, smsSent: n, error: i, manager: a, onResend: o }) => {
1428
- let { t: c } = t(), [l, f] = u(e), [p, m] = u(!1), [h, g] = u(!1), _ = ee(e)?.code ?? "", v = Je(l, e), y = s((e, t) => {
1411
+ }, Ne = (e, t) => e.startsWith(t) ? `${t} ${e.slice(t.length).replace(/(\d{3})(?=\d)/g, "$1 ")}` : e, Pe = ({ phonePrefix: e, smsSent: n, error: i, manager: a, onResend: o }) => {
1412
+ let { t: c } = t(), [l, f] = u(e), [p, m] = u(!1), [h, g] = u(!1), _ = ee(e)?.code ?? "", v = Ne(l, e), y = s((e, t) => {
1429
1413
  f(e), m(t);
1430
1414
  }, []), b = s(() => {
1431
1415
  g(!0), a.sendSms(l), g(!1);
@@ -1437,11 +1421,11 @@ var A = f(null), j = () => {
1437
1421
  return /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d("p", {
1438
1422
  class: "IncodeRedirectTabDescription",
1439
1423
  children: c("v2.redirectToMobile.sms.description")
1440
- }), n ? /* @__PURE__ */ d(Ge, {
1424
+ }), n ? /* @__PURE__ */ d(Ae, {
1441
1425
  formattedPhone: v,
1442
1426
  onResend: x,
1443
1427
  onChangePhone: S
1444
- }) : /* @__PURE__ */ d(qe, {
1428
+ }) : /* @__PURE__ */ d(Me, {
1445
1429
  countryCode: _,
1446
1430
  phonePrefix: e,
1447
1431
  error: i,
@@ -1450,7 +1434,7 @@ var A = f(null), j = () => {
1450
1434
  onPhoneChange: y,
1451
1435
  onSendSms: b
1452
1436
  })] });
1453
- }, Xe = ({ redirectUrl: e, phonePrefix: n, smsSent: r, disableSmsOption: i, addContinueToDesktop: a, error: o, manager: c, logoSrc: l }) => {
1437
+ }, Fe = ({ redirectUrl: e, phonePrefix: n, smsSent: r, disableSmsOption: i, addContinueToDesktop: a, error: o, manager: c, logoSrc: l }) => {
1454
1438
  let { t: f } = t(), [p, m] = u(!1), h = s(() => {
1455
1439
  m(!0), setTimeout(() => m(!1), 3e3);
1456
1440
  }, []), g = s(() => {
@@ -1458,32 +1442,32 @@ var A = f(null), j = () => {
1458
1442
  }, [c]);
1459
1443
  return /* @__PURE__ */ d("div", {
1460
1444
  class: "IncodeRedirectContainer",
1461
- children: [/* @__PURE__ */ d(xe, { visible: p }), /* @__PURE__ */ d("div", {
1445
+ children: [/* @__PURE__ */ d(se, { visible: p }), /* @__PURE__ */ d("div", {
1462
1446
  class: "IncodeRedirectCard",
1463
1447
  children: [
1464
- /* @__PURE__ */ d(ye, { logoSrc: l }),
1448
+ /* @__PURE__ */ d(ae, { logoSrc: l }),
1465
1449
  /* @__PURE__ */ d("div", {
1466
1450
  class: "IncodeRedirectOptions",
1467
- children: /* @__PURE__ */ d(M, {
1451
+ children: /* @__PURE__ */ d(A, {
1468
1452
  defaultValue: "qr",
1469
1453
  listClassName: "IncodeRedirectTabs",
1470
1454
  triggerClassName: "IncodeRedirectTab",
1471
1455
  activeTriggerClassName: "IncodeRedirectTabActive",
1472
1456
  children: [
1473
- /* @__PURE__ */ d(M.List, { children: [/* @__PURE__ */ d(M.Trigger, {
1457
+ /* @__PURE__ */ d(A.List, { children: [/* @__PURE__ */ d(A.Trigger, {
1474
1458
  value: "qr",
1475
1459
  children: f("v2.redirectToMobile.tabs.0")
1476
- }), i ? null : /* @__PURE__ */ d(M.Trigger, {
1460
+ }), i ? null : /* @__PURE__ */ d(A.Trigger, {
1477
1461
  value: "sms",
1478
1462
  children: f("v2.redirectToMobile.tabs.1")
1479
1463
  })] }),
1480
- /* @__PURE__ */ d(M.Content, {
1464
+ /* @__PURE__ */ d(A.Content, {
1481
1465
  value: "qr",
1482
- children: /* @__PURE__ */ d(We, { redirectUrl: e })
1466
+ children: /* @__PURE__ */ d(ke, { redirectUrl: e })
1483
1467
  }),
1484
- i ? null : /* @__PURE__ */ d(M.Content, {
1468
+ i ? null : /* @__PURE__ */ d(A.Content, {
1485
1469
  value: "sms",
1486
- children: /* @__PURE__ */ d(Ye, {
1470
+ children: /* @__PURE__ */ d(Pe, {
1487
1471
  phonePrefix: n,
1488
1472
  smsSent: r,
1489
1473
  error: o,
@@ -1494,14 +1478,14 @@ var A = f(null), j = () => {
1494
1478
  ]
1495
1479
  })
1496
1480
  }),
1497
- /* @__PURE__ */ d(be, {
1481
+ /* @__PURE__ */ d(oe, {
1498
1482
  addContinueToDesktop: a,
1499
1483
  onContinueOnDesktop: g
1500
1484
  })
1501
1485
  ]
1502
1486
  })]
1503
1487
  });
1504
- }, Ze = ({ title: e, subtitle: n, logoSrc: r }) => {
1488
+ }, Ie = ({ title: e, subtitle: n, logoSrc: r }) => {
1505
1489
  let { t: i } = t(), a = e ?? i("verificationComplete.title"), o = n ?? i("verificationComplete.message");
1506
1490
  return /* @__PURE__ */ d("div", {
1507
1491
  class: "IncodeRedirectFinishedContainer",
@@ -1521,8 +1505,8 @@ var A = f(null), j = () => {
1521
1505
  }) : null
1522
1506
  ]
1523
1507
  });
1524
- }, Qe = ({ config: e, onFinish: t, onContinue: n, onError: r }) => {
1525
- let [a, o] = h(() => de({ config: e })), { logoSrc: s, logoHeightPx: c } = x({
1508
+ }, Le = ({ config: e, onFinish: t, onContinue: n, onError: r }) => {
1509
+ let [a, o] = h(() => ie({ config: e })), { logoSrc: s, logoHeightPx: c } = x({
1526
1510
  hideHeader: void 0,
1527
1511
  hideFooterBranding: void 0,
1528
1512
  logo: void 0,
@@ -1539,7 +1523,7 @@ var A = f(null), j = () => {
1539
1523
  r,
1540
1524
  a
1541
1525
  ]);
1542
- let l = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ d(C, { fullScreen: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ d(Xe, {
1526
+ let l = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ d(C, { fullScreen: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ d(Fe, {
1543
1527
  redirectUrl: a.redirectUrl,
1544
1528
  phonePrefix: a.phonePrefix,
1545
1529
  smsSent: a.smsSent,
@@ -1548,22 +1532,22 @@ var A = f(null), j = () => {
1548
1532
  error: a.error,
1549
1533
  manager: o,
1550
1534
  logoSrc: s
1551
- }) : a.status === "finished" ? /* @__PURE__ */ d(Ze, { logoSrc: s }) : null;
1535
+ }) : a.status === "finished" ? /* @__PURE__ */ d(Ie, { logoSrc: s }) : null;
1552
1536
  return /* @__PURE__ */ d("div", {
1553
1537
  class: "IncodeRedirectRoot",
1554
1538
  style: { "--logo-height": `${c}px` },
1555
1539
  children: l
1556
1540
  });
1557
- }, B = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Qe, {
1541
+ }, z = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Le, {
1558
1542
  config: e,
1559
1543
  onFinish: t,
1560
1544
  onContinue: n,
1561
1545
  onError: r
1562
1546
  }) : null });
1563
- T(B, "incode-redirect-to-mobile");
1547
+ T(z, "incode-redirect-to-mobile");
1564
1548
  //#endregion
1565
1549
  //#region src/styles/generatePalette.ts
1566
- function $e(e) {
1550
+ function Re(e) {
1567
1551
  let t = e.replace("#", "");
1568
1552
  t.length === 3 && (t = t.split("").map((e) => e + e).join(""));
1569
1553
  let n = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
@@ -1589,7 +1573,7 @@ function $e(e) {
1589
1573
  l: u * 100
1590
1574
  };
1591
1575
  }
1592
- function V(e, t, n) {
1576
+ function B(e, t, n) {
1593
1577
  let r = e / 360, i = t / 100, a = n / 100, o, s, c;
1594
1578
  if (i === 0) o = s = c = a;
1595
1579
  else {
@@ -1602,24 +1586,24 @@ function V(e, t, n) {
1602
1586
  };
1603
1587
  return `#${l(o)}${l(s)}${l(c)}`;
1604
1588
  }
1605
- function et(e) {
1606
- let t = $e(e);
1589
+ function ze(e) {
1590
+ let t = Re(e);
1607
1591
  if (!t) throw Error(`Invalid color format: ${e}`);
1608
1592
  return {
1609
- 50: V(t.h, t.s, 95),
1610
- 200: V(t.h, t.s, 80),
1611
- 300: V(t.h, t.s, 65),
1612
- 400: V(t.h, t.s, Math.min(100, t.l + 10)),
1593
+ 50: B(t.h, t.s, 95),
1594
+ 200: B(t.h, t.s, 80),
1595
+ 300: B(t.h, t.s, 65),
1596
+ 400: B(t.h, t.s, Math.min(100, t.l + 10)),
1613
1597
  500: e,
1614
- 600: V(t.h, t.s, Math.max(0, t.l - 10)),
1615
- 900: V(t.h, t.s, 20)
1598
+ 600: B(t.h, t.s, Math.max(0, t.l - 10)),
1599
+ 900: B(t.h, t.s, 20)
1616
1600
  };
1617
1601
  }
1618
1602
  //#endregion
1619
1603
  //#region src/styles/applyTheme.ts
1620
- function tt(e, t) {
1604
+ function Be(e, t) {
1621
1605
  if (typeof document > "u") return;
1622
- let n = et(e), r = document.getElementById("incode-theme");
1606
+ let n = ze(e), r = document.getElementById("incode-theme");
1623
1607
  r || (r = document.createElement("style"), r.id = "incode-theme", document.head.appendChild(r));
1624
1608
  let i = t || "#ffffff", a = `
1625
1609
  :root,
@@ -1638,49 +1622,69 @@ function tt(e, t) {
1638
1622
  }
1639
1623
  //#endregion
1640
1624
  //#region src/styles/fetchTheme.ts
1641
- async function nt() {
1642
- return (await k.get("/omni/asset/fetch-all")).data;
1625
+ async function Ve() {
1626
+ return (await D.get("/omni/asset/fetch-all")).data;
1643
1627
  }
1644
- var H = /* @__PURE__ */ new Map();
1645
- async function rt(e) {
1628
+ var V = /* @__PURE__ */ new Map();
1629
+ async function He(e) {
1646
1630
  if (e.startsWith("data:")) return e;
1647
- let t = H.get(e);
1631
+ let t = V.get(e);
1648
1632
  if (t) return t;
1649
1633
  let n = await (await fetch(e)).blob(), r = await new Promise((e, t) => {
1650
1634
  let r = new FileReader();
1651
1635
  r.onloadend = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
1652
1636
  });
1653
- return H.set(e, r), r;
1637
+ return V.set(e, r), r;
1654
1638
  }
1655
- async function it() {
1656
- let e = await nt();
1639
+ async function Ue() {
1640
+ let e = await Ve();
1657
1641
  if (!e.theme) throw Error("Theme URL not found in assets response");
1658
1642
  let t = e.theme, n = t.startsWith("http://") || t.startsWith("https://"), r;
1659
1643
  if (n) {
1660
1644
  let e = await fetch(t);
1661
1645
  if (!e.ok) throw Error(`Failed to fetch theme: ${e.statusText}`);
1662
1646
  r = await e.json();
1663
- } else r = (await k.get(t)).data;
1647
+ } else r = (await D.get(t)).data;
1664
1648
  let i = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo, a = i;
1665
- return i && (a = await rt(i)), {
1649
+ return i && (a = await He(i)), {
1666
1650
  ...r,
1667
1651
  logo: a
1668
1652
  };
1669
1653
  }
1670
- async function at() {
1671
- let e = await it();
1672
- return e.main && tt(e.main, e.buttonColor), e;
1654
+ async function We() {
1655
+ let e = await Ue();
1656
+ return e.main && Be(e.main, e.buttonColor), e;
1673
1657
  }
1674
1658
  //#endregion
1675
1659
  //#region src/modules/flow/flowInit.ts
1676
- var U = () => import("../id/id.es.js").then((e) => e.Id), W = {
1660
+ var H = () => import("../id/id.es.js").then((e) => e.Id), Ge = {
1661
+ PHONE: () => import("@incodetech/core/phone").then((e) => e.phoneMachine),
1662
+ EMAIL: () => import("@incodetech/core/email").then((e) => e.emailMachine),
1663
+ SELFIE: () => import("@incodetech/core/selfie").then((e) => e.selfieMachine),
1664
+ AUTHENTICATION: () => import("@incodetech/core/authentication").then((e) => e.authenticationMachine),
1665
+ ID: () => import("@incodetech/core/id").then((e) => e.idCaptureMachine),
1666
+ TUTORIAL_ID: () => import("@incodetech/core/id").then((e) => e.idCaptureMachine),
1667
+ SECOND_ID: () => import("@incodetech/core/id").then((e) => e.idCaptureMachine),
1668
+ FACE_MATCH: () => import("@incodetech/core/face-match").then((e) => e.faceMatchMachine),
1669
+ CURP_VALIDATION: () => import("@incodetech/core/curp-validation").then((e) => e.curpValidationMachine),
1670
+ GOVT_VALIDATION_PROVISIONING: () => import("@incodetech/core/government-validation").then((e) => e.governmentValidationMachine),
1671
+ GEOLOCATION: () => import("@incodetech/core/geolocation").then((e) => e.geolocationMachine),
1672
+ EXTERNAL_VERIFICATION: () => import("@incodetech/core/ekyc").then((e) => e.ekycMachine),
1673
+ EKYB: () => import("@incodetech/core/ekyb").then((e) => e.ekybMachine),
1674
+ DOCUMENT_CAPTURE: () => import("@incodetech/core/document-capture").then((e) => e.documentCaptureMachine),
1675
+ ADDRESS: () => import("@incodetech/core/document-capture").then((e) => e.documentCaptureMachine),
1676
+ COMBINED_CONSENT: () => import("@incodetech/core/consent").then((e) => e.consentMachine),
1677
+ MANDATORY_CONSENT: () => import("@incodetech/core/mandatory-consent").then((e) => e.mandatoryConsentMachine),
1678
+ SIGNATURE: () => import("@incodetech/core/signature").then((e) => e.signatureMachine),
1679
+ ANTIFRAUD: () => import("@incodetech/core/antifraud").then((e) => e.antifraudMachine)
1680
+ }, U = {
1677
1681
  PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
1678
1682
  EMAIL: () => import("../email/email.es.js").then((e) => e.Email),
1679
1683
  SELFIE: () => import("../selfie/selfie.es.js").then((e) => e.Selfie),
1680
1684
  AUTHENTICATION: () => import("../authentication/authentication.es.js").then((e) => e.Authentication),
1681
- ID: U,
1682
- TUTORIAL_ID: U,
1683
- SECOND_ID: U,
1685
+ ID: H,
1686
+ TUTORIAL_ID: H,
1687
+ SECOND_ID: H,
1684
1688
  FACE_MATCH: () => import("../faceMatch-K9k9f1HF.js").then((e) => e.FaceMatch),
1685
1689
  CURP_VALIDATION: () => import("../curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
1686
1690
  GOVT_VALIDATION_PROVISIONING: () => import("../governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
@@ -1694,30 +1698,10 @@ var U = () => import("../id/id.es.js").then((e) => e.Id), W = {
1694
1698
  SIGNATURE: () => import("../signature/signature.es.js").then((e) => e.Signature),
1695
1699
  ANTIFRAUD: () => import("../antifraud/antifraud.es.js").then((e) => e.Antifraud)
1696
1700
  };
1697
- function G() {
1698
- return ue({ modules: {
1699
- PHONE: me,
1700
- EMAIL: le,
1701
- SELFIE: he,
1702
- AUTHENTICATION: ie,
1703
- ID: E,
1704
- TUTORIAL_ID: E,
1705
- SECOND_ID: E,
1706
- FACE_MATCH: fe,
1707
- CURP_VALIDATION: oe,
1708
- GOVT_VALIDATION_PROVISIONING: ge,
1709
- GEOLOCATION: pe,
1710
- EXTERNAL_VERIFICATION: ce,
1711
- EKYB: se,
1712
- DOCUMENT_CAPTURE: O,
1713
- ADDRESS: O,
1714
- COMBINED_CONSENT: ae,
1715
- MANDATORY_CONSENT: _e,
1716
- SIGNATURE: ve,
1717
- ANTIFRAUD: re
1718
- } });
1701
+ function W() {
1702
+ return re({ lazyModules: Ge });
1719
1703
  }
1720
- async function K(e) {
1704
+ async function G(e) {
1721
1705
  await m({
1722
1706
  apiURL: e.apiURL,
1723
1707
  token: e.token,
@@ -1725,9 +1709,9 @@ async function K(e) {
1725
1709
  i18n: { lang: e.lang ?? "en" }
1726
1710
  });
1727
1711
  }
1728
- async function q() {
1712
+ async function K() {
1729
1713
  try {
1730
- let e = await at(), t = {
1714
+ let e = await We(), t = {
1731
1715
  logoSrc: e.logo,
1732
1716
  hideFooterBranding: e.hideFooterBranding
1733
1717
  };
@@ -1739,8 +1723,8 @@ async function q() {
1739
1723
  return {};
1740
1724
  }
1741
1725
  }
1742
- function J(e, t) {
1743
- let n = D(e.flow);
1726
+ function q(e, t) {
1727
+ let n = E(e.flow);
1744
1728
  n.length > 0 && ne(te({
1745
1729
  ...t,
1746
1730
  pipelines: n
@@ -1748,16 +1732,16 @@ function J(e, t) {
1748
1732
  console.error("WASM warmup failed:", e);
1749
1733
  });
1750
1734
  }
1751
- function ot(e) {
1735
+ function Ke(e) {
1752
1736
  let t = e.currentStep;
1753
1737
  if (t) {
1754
- let e = W[t];
1738
+ let e = U[t];
1755
1739
  e && e().catch(() => {});
1756
1740
  }
1757
1741
  }
1758
1742
  //#endregion
1759
1743
  //#region src/modules/flow/unsupportedModule.tsx
1760
- var st = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
1744
+ var qe = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
1761
1745
  class: "IncodeUnsupportedModule",
1762
1746
  "aria-live": "polite",
1763
1747
  children: /* @__PURE__ */ d("div", {
@@ -1783,9 +1767,9 @@ var st = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
1783
1767
  })
1784
1768
  ]
1785
1769
  })
1786
- }), Y = /* @__PURE__ */ new Map();
1787
- function X(e) {
1788
- let t = Y.get(e);
1770
+ }), J = /* @__PURE__ */ new Map();
1771
+ function Y(e) {
1772
+ let t = J.get(e);
1789
1773
  if (!t) throw Error("Preload state not found");
1790
1774
  return {
1791
1775
  get isReady() {
@@ -1801,16 +1785,16 @@ function X(e) {
1801
1785
  }
1802
1786
  },
1803
1787
  cancel() {
1804
- t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), Y.delete(e));
1788
+ t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), J.delete(e));
1805
1789
  }
1806
1790
  };
1807
1791
  }
1808
- function ct(e) {
1792
+ function X(e) {
1809
1793
  let { token: t } = e;
1810
- if (Y.has(t)) return X(t);
1794
+ if (J.has(t)) return Y(t);
1811
1795
  let n, r, i = new Promise((e, t) => {
1812
1796
  n = e, r = t;
1813
- }), a = G(), o = {
1797
+ }), a = W(), o = {
1814
1798
  status: "loading",
1815
1799
  flowManager: a,
1816
1800
  config: e,
@@ -1818,37 +1802,37 @@ function ct(e) {
1818
1802
  readyResolve: n,
1819
1803
  readyReject: r
1820
1804
  };
1821
- return Y.set(t, o), (async () => {
1805
+ return J.set(t, o), (async () => {
1822
1806
  try {
1823
- await K({
1807
+ await G({
1824
1808
  apiURL: e.apiURL,
1825
1809
  token: e.token,
1826
1810
  lang: e.lang
1827
1811
  });
1828
- let t = e.disableDashboardTheme ? Promise.resolve({}) : q().then((e) => {
1812
+ let t = e.disableDashboardTheme ? Promise.resolve({}) : K().then((e) => {
1829
1813
  o.theme = e.theme, o.uiConfig = e.uiConfig;
1830
1814
  });
1831
1815
  o.unsubscribe = a.subscribe((t) => {
1832
1816
  if (t.status === "ready") {
1833
1817
  let n = t;
1834
- e.wasmConfig && J(n, e.wasmConfig), ot(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
1818
+ e.wasmConfig && q(n, e.wasmConfig), Ke(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
1835
1819
  } else t.status === "error" && (o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "error", o.error = t.error, o.readyReject(Error(t.error)));
1836
1820
  }), a.load(), await t;
1837
1821
  } catch (e) {
1838
- o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")), Y.delete(t);
1822
+ o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")), J.delete(t);
1839
1823
  }
1840
- })(), X(t);
1824
+ })(), Y(t);
1841
1825
  }
1842
1826
  function Z(e) {
1843
- return Y.get(e) ?? null;
1827
+ return J.get(e) ?? null;
1844
1828
  }
1845
1829
  function Q(e) {
1846
1830
  let t = Z(e);
1847
- return t && Y.delete(e), t;
1831
+ return t && J.delete(e), t;
1848
1832
  }
1849
1833
  //#endregion
1850
1834
  //#region src/modules/flow/useFlowInitialization.ts
1851
- function lt(e) {
1835
+ function Je(e) {
1852
1836
  let { apiURL: t, token: n, lang: r, disableDashboardTheme: a, onError: o } = e, s = c(null), [l, d] = u(() => {
1853
1837
  let e = Z(n);
1854
1838
  if (e?.status === "ready") {
@@ -1858,7 +1842,7 @@ function lt(e) {
1858
1842
  flowManager: e.flowManager
1859
1843
  };
1860
1844
  }
1861
- let t = G();
1845
+ let t = W();
1862
1846
  return s.current = t, e?.status === "error" ? {
1863
1847
  status: "error",
1864
1848
  error: e.error ?? "Preload failed",
@@ -1890,12 +1874,12 @@ function lt(e) {
1890
1874
  }
1891
1875
  f.current || (f.current = !0, (async () => {
1892
1876
  try {
1893
- await K({
1877
+ await G({
1894
1878
  apiURL: t,
1895
1879
  token: n,
1896
1880
  lang: r
1897
1881
  });
1898
- let e = a ? Promise.resolve() : q().then((e) => {
1882
+ let e = a ? Promise.resolve() : K().then((e) => {
1899
1883
  e.uiConfig && p(e.uiConfig);
1900
1884
  });
1901
1885
  l.flowManager.load(), await e, d({
@@ -1922,14 +1906,14 @@ function lt(e) {
1922
1906
  }
1923
1907
  //#endregion
1924
1908
  //#region src/modules/flow/useModuleLoader.ts
1925
- function ut(e) {
1909
+ function Ye(e) {
1926
1910
  let { moduleKey: t, onModuleLoading: n, onModuleLoaded: r, onError: a } = e, [o, s] = u({ status: "idle" });
1927
1911
  return i(() => {
1928
1912
  if (!t) {
1929
1913
  s({ status: "idle" });
1930
1914
  return;
1931
1915
  }
1932
- let e = W[t];
1916
+ let e = U[t];
1933
1917
  if (!e) {
1934
1918
  s({
1935
1919
  status: "unsupported",
@@ -1967,14 +1951,14 @@ function ut(e) {
1967
1951
  a
1968
1952
  ]), o;
1969
1953
  }
1970
- function dt(e, t) {
1954
+ function Xe(e, t) {
1971
1955
  let n = c(/* @__PURE__ */ new Set());
1972
1956
  i(() => {
1973
1957
  if (t < e.length - 1) {
1974
1958
  let r = e[t + 1];
1975
1959
  if (r && !n.current.has(r)) {
1976
1960
  n.current.add(r);
1977
- let e = W[r];
1961
+ let e = U[r];
1978
1962
  e && e().catch(() => {
1979
1963
  n.current.delete(r);
1980
1964
  });
@@ -1984,25 +1968,25 @@ function dt(e, t) {
1984
1968
  }
1985
1969
  //#endregion
1986
1970
  //#region src/modules/flow/flow.tsx
1987
- var ft = ({ config: e, onFinish: n, onError: r }) => {
1988
- let { t: a, i18n: o } = t(), [s, c] = u(!1), l = lt({
1971
+ var Ze = ({ config: e, onFinish: n, onError: r }) => {
1972
+ let { t: a, i18n: o } = t(), [s, c] = u(!1), l = Je({
1989
1973
  apiURL: e.apiURL,
1990
1974
  token: e.token,
1991
1975
  lang: e.lang,
1992
1976
  disableDashboardTheme: e.disableDashboardTheme,
1993
1977
  onError: r
1994
- }), [f, p] = h(() => l.flowManager, { autoLoad: !1 }), m = f?.status === "ready" && f.flow.redirectDesktopToMobile && !s, g = ut({
1978
+ }), [f, p] = h(() => l.flowManager, { autoLoad: !1 }), m = f?.status === "ready" && f.flow.redirectDesktopToMobile && !s, g = Ye({
1995
1979
  moduleKey: f?.status === "ready" && !m ? f.currentStep : void 0,
1996
1980
  onModuleLoading: e.onModuleLoading,
1997
1981
  onModuleLoaded: e.onModuleLoaded,
1998
1982
  onError: r
1999
1983
  });
2000
- if (dt(f?.status === "ready" ? f.steps : [], f?.status === "ready" ? f.currentStepIndex : -1), i(() => {
1984
+ if (Xe(f?.status === "ready" ? f.steps : [], f?.status === "ready" ? f.currentStepIndex : -1), i(() => {
2001
1985
  e.lang && o.language !== e.lang && o.changeLanguage(e.lang);
2002
1986
  }, [e.lang, o]), i(() => {
2003
1987
  if (f?.status === "ready" && e.wasmConfig) {
2004
- let t = f, n = D(t.flow);
2005
- n.length > 0 && (e.onWasmWarmup?.(n), J(t, e.wasmConfig));
1988
+ let t = f, n = E(t.flow);
1989
+ n.length > 0 && (e.onWasmWarmup?.(n), q(t, e.wasmConfig));
2006
1990
  }
2007
1991
  }, [f, e]), i(() => {
2008
1992
  f?.status === "finished" && n(f.finishStatus);
@@ -2040,7 +2024,7 @@ var ft = ({ config: e, onFinish: n, onError: r }) => {
2040
2024
  let { currentStep: t, config: n, flow: { flowId: i, disableSmsOption: o, addContinueToDesktop: s, qrPhishingResistance: l } } = f;
2041
2025
  if (m) return /* @__PURE__ */ d("div", {
2042
2026
  class: "IncodeFlow",
2043
- children: /* @__PURE__ */ d(B, {
2027
+ children: /* @__PURE__ */ d(z, {
2044
2028
  config: {
2045
2029
  flowId: i,
2046
2030
  disableSmsOption: o,
@@ -2065,7 +2049,7 @@ var ft = ({ config: e, onFinish: n, onError: r }) => {
2065
2049
  });
2066
2050
  if (g.status === "unsupported") return /* @__PURE__ */ d("div", {
2067
2051
  class: "IncodeFlow",
2068
- children: /* @__PURE__ */ d(st, {
2052
+ children: /* @__PURE__ */ d(qe, {
2069
2053
  moduleKey: t,
2070
2054
  onNext: () => p.completeModule()
2071
2055
  })
@@ -2289,11 +2273,11 @@ var ft = ({ config: e, onFinish: n, onError: r }) => {
2289
2273
  });
2290
2274
  }
2291
2275
  return null;
2292
- }, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(ft, {
2276
+ }, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Ze, {
2293
2277
  config: e,
2294
2278
  onFinish: t,
2295
2279
  onError: n
2296
2280
  }) : null });
2297
2281
  T($, "incode-flow");
2298
2282
  //#endregion
2299
- export { $ as IncodeFlow, ct as preloadIncodeFlow };
2283
+ export { $ as IncodeFlow, X as preloadIncodeFlow };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260407-4677d7f",
3
+ "version": "0.0.0-dev-20260407-ebd92aa",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -144,7 +144,7 @@
144
144
  "qrcode": "^1.5.4",
145
145
  "signature_pad": "^5.1.3",
146
146
  "tailwindcss": "^4.1.17",
147
- "@incodetech/core": "0.0.0-dev-20260407-4677d7f"
147
+ "@incodetech/core": "0.0.0-dev-20260407-ebd92aa"
148
148
  },
149
149
  "devDependencies": {
150
150
  "@microsoft/api-extractor": "^7.53.3",