@incodetech/web 0.0.0-dev-20260407-d5ee208 → 0.0.0-dev-20260407-8c4e1e2

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.
@@ -0,0 +1,17 @@
1
+ import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
+ import { c as n, r } from "../loadingIcon-Bpl85Irq.js";
3
+ import { t as i } from "../spinner-myFOTQZH.js";
4
+ import { t as a } from "../incodeModule-Bf6yJ8RB.js";
5
+ import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
6
+ //#region src/modules/cross-document-data-match/cross-document-data-match.tsx
7
+ var s = ({ onFinish: r }) => {
8
+ let [a, s] = n(() => o());
9
+ return e(() => {
10
+ s.load();
11
+ }, [s]), e(() => {
12
+ a.status === "finished" && r?.();
13
+ }, [a.status, r]), /* @__PURE__ */ t(i, { fullScreen: !0 });
14
+ }, c = ({ onFinish: e }) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(s, { onFinish: e }) });
15
+ a(c, "incode-cross-document-data-match");
16
+ //#endregion
17
+ export { c as CrossDocumentDataMatch };
@@ -12,18 +12,18 @@ import "../icons-BHbofCgJ.js";
12
12
  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
- import { resolveWasmConfig as te, warmupWasm as ne } from "@incodetech/core/wasm";
16
- import { createOrchestratedFlowManager as re, getRequiredWasmPipelines as E } from "@incodetech/core/flow";
15
+ import { resolveWasmConfig as te, warmupWasm as E } from "@incodetech/core/wasm";
16
+ import { createOrchestratedFlowManager as ne, getFlow as re, getRequiredWasmPipelines as D } from "@incodetech/core/flow";
17
17
  import { createRedirectToMobileManager as ie } from "@incodetech/core/redirect-to-mobile";
18
- import { api as D } from "@incodetech/core/http";
18
+ import { api as O } from "@incodetech/core/http";
19
19
  //#region src/shared/tabs/tabs.tsx
20
- var O = f(null), k = () => {
21
- let e = o(O);
20
+ var k = f(null), A = () => {
21
+ let e = o(k);
22
22
  if (!e) throw Error("Tabs compound components must be used within <Tabs>");
23
23
  return e;
24
- }, A = Object.assign(({ defaultValue: e, listClassName: t, triggerClassName: n, activeTriggerClassName: r, children: i }) => {
24
+ }, j = Object.assign(({ defaultValue: e, listClassName: t, triggerClassName: n, activeTriggerClassName: r, children: i }) => {
25
25
  let [a, o] = u(e);
26
- return /* @__PURE__ */ d(O.Provider, {
26
+ return /* @__PURE__ */ d(k.Provider, {
27
27
  value: {
28
28
  activeValue: a,
29
29
  setActiveValue: o,
@@ -35,14 +35,14 @@ var O = f(null), k = () => {
35
35
  });
36
36
  }, {
37
37
  List: ({ children: e }) => {
38
- let { listClassName: t } = k();
38
+ let { listClassName: t } = A();
39
39
  return /* @__PURE__ */ d("div", {
40
40
  class: t,
41
41
  children: e
42
42
  });
43
43
  },
44
44
  Trigger: ({ value: e, children: t }) => {
45
- let { activeValue: n, setActiveValue: r, triggerClassName: i, activeTriggerClassName: a } = k();
45
+ let { activeValue: n, setActiveValue: r, triggerClassName: i, activeTriggerClassName: a } = A();
46
46
  return /* @__PURE__ */ d("button", {
47
47
  type: "button",
48
48
  class: g(i, n === e && a),
@@ -51,7 +51,7 @@ var O = f(null), k = () => {
51
51
  });
52
52
  },
53
53
  Content: ({ value: e, children: t }) => {
54
- let { activeValue: n } = k();
54
+ let { activeValue: n } = A();
55
55
  return n === e ? /* @__PURE__ */ d(r, { children: t }) : null;
56
56
  }
57
57
  }), ae = ({ logoSrc: e }) => {
@@ -102,7 +102,7 @@ var O = f(null), k = () => {
102
102
  t.exports = function() {
103
103
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
104
104
  };
105
- })), j = /* @__PURE__ */ e(((e) => {
105
+ })), M = /* @__PURE__ */ e(((e) => {
106
106
  var t, n = [
107
107
  0,
108
108
  26,
@@ -164,7 +164,7 @@ var O = f(null), k = () => {
164
164
  }, e.toSJIS = function(e) {
165
165
  return t(e);
166
166
  };
167
- })), M = /* @__PURE__ */ e(((e) => {
167
+ })), N = /* @__PURE__ */ e(((e) => {
168
168
  e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
169
169
  function t(t) {
170
170
  if (typeof t != "string") throw Error("Param is not a string");
@@ -226,7 +226,7 @@ var O = f(null), k = () => {
226
226
  return this.reservedBit[e * this.size + t];
227
227
  }, t.exports = n;
228
228
  })), de = /* @__PURE__ */ e(((e) => {
229
- var t = j().getSymbolSize;
229
+ var t = M().getSymbolSize;
230
230
  e.getRowColCoords = function(e) {
231
231
  if (e === 1) return [];
232
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];
@@ -238,7 +238,7 @@ var O = f(null), k = () => {
238
238
  return n;
239
239
  };
240
240
  })), fe = /* @__PURE__ */ e(((e) => {
241
- var t = j().getSymbolSize, n = 7;
241
+ var t = M().getSymbolSize, n = 7;
242
242
  e.getPositions = function(e) {
243
243
  let r = t(e);
244
244
  return [
@@ -323,8 +323,8 @@ var O = f(null), k = () => {
323
323
  }
324
324
  return i;
325
325
  };
326
- })), N = /* @__PURE__ */ e(((e) => {
327
- var t = M(), n = [
326
+ })), P = /* @__PURE__ */ e(((e) => {
327
+ var t = N(), n = [
328
328
  1,
329
329
  1,
330
330
  1,
@@ -717,11 +717,11 @@ var O = f(null), k = () => {
717
717
  }
718
718
  return r;
719
719
  }, t.exports = r;
720
- })), P = /* @__PURE__ */ e(((e) => {
720
+ })), F = /* @__PURE__ */ e(((e) => {
721
721
  e.isValid = function(e) {
722
722
  return !isNaN(e) && e >= 1 && e <= 40;
723
723
  };
724
- })), F = /* @__PURE__ */ e(((e) => {
724
+ })), I = /* @__PURE__ */ e(((e) => {
725
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])+";
726
726
  r = r.replace(/u/g, "\\u");
727
727
  var i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + r + ")(?:.|[\r\n]))+";
@@ -734,8 +734,8 @@ var O = f(null), k = () => {
734
734
  }, e.testAlphanumeric = function(e) {
735
735
  return s.test(e);
736
736
  };
737
- })), I = /* @__PURE__ */ e(((e) => {
738
- var t = P(), n = F();
737
+ })), L = /* @__PURE__ */ e(((e) => {
738
+ var t = F(), n = I();
739
739
  e.NUMERIC = {
740
740
  id: "Numeric",
741
741
  bit: 1,
@@ -798,8 +798,8 @@ var O = f(null), k = () => {
798
798
  return n;
799
799
  }
800
800
  };
801
- })), L = /* @__PURE__ */ e(((e) => {
802
- var t = j(), n = N(), r = M(), i = I(), a = P(), o = 7973, s = t.getBCHDigit(o);
801
+ })), _e = /* @__PURE__ */ e(((e) => {
802
+ var t = M(), n = P(), r = N(), i = L(), a = F(), o = 7973, s = t.getBCHDigit(o);
803
803
  function c(t, n, r) {
804
804
  for (let i = 1; i <= 40; i++) if (n <= e.getCapacity(i, r, t)) return i;
805
805
  }
@@ -845,15 +845,15 @@ var O = f(null), k = () => {
845
845
  for (; t.getBCHDigit(n) - s >= 0;) n ^= o << t.getBCHDigit(n) - s;
846
846
  return e << 12 | n;
847
847
  };
848
- })), _e = /* @__PURE__ */ e(((e) => {
849
- var t = j(), n = 1335, r = 21522, i = t.getBCHDigit(n);
848
+ })), ve = /* @__PURE__ */ e(((e) => {
849
+ var t = M(), n = 1335, r = 21522, i = t.getBCHDigit(n);
850
850
  e.getEncodedBits = function(e, a) {
851
851
  let o = e.bit << 3 | a, s = o << 10;
852
852
  for (; t.getBCHDigit(s) - i >= 0;) s ^= n << t.getBCHDigit(s) - i;
853
853
  return (o << 10 | s) ^ r;
854
854
  };
855
- })), ve = /* @__PURE__ */ e(((e, t) => {
856
- var n = I();
855
+ })), ye = /* @__PURE__ */ e(((e, t) => {
856
+ var n = L();
857
857
  function r(e) {
858
858
  this.mode = n.NUMERIC, this.data = e.toString();
859
859
  }
@@ -869,8 +869,8 @@ var O = f(null), k = () => {
869
869
  let i = this.data.length - t;
870
870
  i > 0 && (n = this.data.substr(t), r = parseInt(n, 10), e.put(r, i * 3 + 1));
871
871
  }, t.exports = r;
872
- })), ye = /* @__PURE__ */ e(((e, t) => {
873
- var n = I(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
872
+ })), be = /* @__PURE__ */ e(((e, t) => {
873
+ var n = L(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
874
874
  function i(e) {
875
875
  this.mode = n.ALPHANUMERIC, this.data = e;
876
876
  }
@@ -888,8 +888,8 @@ var O = f(null), k = () => {
888
888
  }
889
889
  this.data.length % 2 && e.put(r.indexOf(this.data[t]), 6);
890
890
  }, t.exports = i;
891
- })), be = /* @__PURE__ */ e(((e, t) => {
892
- var n = I();
891
+ })), xe = /* @__PURE__ */ e(((e, t) => {
892
+ var n = L();
893
893
  function r(e) {
894
894
  this.mode = n.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
895
895
  }
@@ -902,8 +902,8 @@ var O = f(null), k = () => {
902
902
  }, r.prototype.write = function(e) {
903
903
  for (let t = 0, n = this.data.length; t < n; t++) e.put(this.data[t], 8);
904
904
  }, t.exports = r;
905
- })), xe = /* @__PURE__ */ e(((e, t) => {
906
- var n = I(), r = j();
905
+ })), Se = /* @__PURE__ */ e(((e, t) => {
906
+ var n = L(), r = M();
907
907
  function i(e) {
908
908
  this.mode = n.KANJI, this.data = e;
909
909
  }
@@ -923,7 +923,7 @@ var O = f(null), k = () => {
923
923
  n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
924
924
  }
925
925
  }, t.exports = i;
926
- })), Se = /* @__PURE__ */ e(((e, t) => {
926
+ })), Ce = /* @__PURE__ */ e(((e, t) => {
927
927
  var n = {
928
928
  single_source_shortest_paths: function(e, t, r) {
929
929
  var i = {}, a = {};
@@ -976,8 +976,8 @@ var O = f(null), k = () => {
976
976
  }
977
977
  };
978
978
  t !== void 0 && (t.exports = n);
979
- })), Ce = /* @__PURE__ */ e(((e) => {
980
- var t = I(), n = ve(), r = ye(), i = be(), a = xe(), o = F(), s = j(), c = Se();
979
+ })), we = /* @__PURE__ */ e(((e) => {
980
+ var t = L(), n = ye(), r = be(), i = xe(), a = Se(), o = I(), s = M(), c = Ce();
981
981
  function l(e) {
982
982
  return unescape(encodeURIComponent(e)).length;
983
983
  }
@@ -1104,8 +1104,8 @@ var O = f(null), k = () => {
1104
1104
  }, e.rawSplit = function(t) {
1105
1105
  return e.fromArray(d(t, s.isKanjiModeEnabled()));
1106
1106
  };
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();
1107
+ })), Te = /* @__PURE__ */ e(((e) => {
1108
+ var t = M(), n = N(), r = le(), i = ue(), a = de(), o = fe(), s = pe(), c = P(), l = ge(), u = _e(), d = ve(), f = L(), p = we();
1109
1109
  function m(e, t) {
1110
1110
  let n = e.size, r = o.getPositions(t);
1111
1111
  for (let t = 0; t < r.length; t++) {
@@ -1247,7 +1247,7 @@ var O = f(null), k = () => {
1247
1247
  t[u++] = d.r, t[u++] = d.g, t[u++] = d.b, t[u] = d.a;
1248
1248
  }
1249
1249
  };
1250
- })), Te = /* @__PURE__ */ e(((e) => {
1250
+ })), Ee = /* @__PURE__ */ e(((e) => {
1251
1251
  var t = R();
1252
1252
  function n(e, t, n) {
1253
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,7 +1270,7 @@ var O = f(null), k = () => {
1270
1270
  let a = e.render(t, n, i), o = i.type || "image/png", s = i.rendererOpts || {};
1271
1271
  return a.toDataURL(o, s.quality);
1272
1272
  };
1273
- })), Ee = /* @__PURE__ */ e(((e) => {
1273
+ })), De = /* @__PURE__ */ e(((e) => {
1274
1274
  var t = R();
1275
1275
  function n(e, t) {
1276
1276
  let n = e.a / 255, r = t + "=\"" + e.hex + "\"";
@@ -1292,8 +1292,8 @@ var O = f(null), k = () => {
1292
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";
1293
1293
  return typeof a == "function" && a(null, p), p;
1294
1294
  };
1295
- })), De = (/* @__PURE__ */ e(((e) => {
1296
- var t = ce(), n = we(), r = Te(), i = Ee();
1295
+ })), Oe = (/* @__PURE__ */ e(((e) => {
1296
+ var t = ce(), n = Te(), r = Ee(), i = De();
1297
1297
  function a(e, r, i, a, o) {
1298
1298
  let s = [].slice.call(arguments, 1), c = s.length, l = typeof s[c - 1] == "function";
1299
1299
  if (!l && !t()) throw Error("Callback required as last argument");
@@ -1320,10 +1320,10 @@ var O = f(null), k = () => {
1320
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) {
1321
1321
  return i.render(e, n);
1322
1322
  });
1323
- })))(), Oe = ({ value: e, size: t = 150, bgColor: n = "#ffffff", fgColor: r = "#000000" }) => {
1323
+ })))(), ke = ({ value: e, size: t = 150, bgColor: n = "#ffffff", fgColor: r = "#000000" }) => {
1324
1324
  let [a, o] = u("");
1325
1325
  return i(() => {
1326
- e && (0, De.toString)(e, {
1326
+ e && (0, Oe.toString)(e, {
1327
1327
  type: "svg",
1328
1328
  width: t,
1329
1329
  margin: 0,
@@ -1341,19 +1341,19 @@ var O = f(null), k = () => {
1341
1341
  class: "IncodeRedirectQrCode",
1342
1342
  dangerouslySetInnerHTML: { __html: a }
1343
1343
  }) : null;
1344
- }, ke = ({ redirectUrl: e }) => {
1344
+ }, Ae = ({ redirectUrl: e }) => {
1345
1345
  let { t: n } = t();
1346
1346
  return /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d("p", {
1347
1347
  class: "IncodeRedirectTabDescription",
1348
1348
  children: n("v2.redirectToMobile.qr.description")
1349
1349
  }), /* @__PURE__ */ d("div", {
1350
1350
  class: "IncodeRedirectQrWrapper",
1351
- children: /* @__PURE__ */ d(Oe, {
1351
+ children: /* @__PURE__ */ d(ke, {
1352
1352
  value: e,
1353
1353
  size: 186
1354
1354
  })
1355
1355
  })] });
1356
- }, Ae = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
1356
+ }, je = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
1357
1357
  let { t: a } = t();
1358
1358
  return /* @__PURE__ */ d("div", {
1359
1359
  class: "IncodeRedirectLinkSent",
@@ -1389,11 +1389,11 @@ var O = f(null), k = () => {
1389
1389
  })
1390
1390
  ]
1391
1391
  });
1392
- }, je = a(() => import("../phoneInput-CfIfXnWf.js").then((e) => ({ default: e.PhoneInput }))), Me = ({ countryCode: e, phonePrefix: n, error: i, isSending: a, isPhoneValid: o, onPhoneChange: s, onSendSms: c }) => {
1392
+ }, Me = a(() => import("../phoneInput-CfIfXnWf.js").then((e) => ({ default: e.PhoneInput }))), Ne = ({ countryCode: e, phonePrefix: n, error: i, isSending: a, isPhoneValid: o, onPhoneChange: s, onSendSms: c }) => {
1393
1393
  let { t: u } = t();
1394
1394
  return /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d(l, {
1395
1395
  fallback: /* @__PURE__ */ d(C, {}),
1396
- children: /* @__PURE__ */ d(je, {
1396
+ children: /* @__PURE__ */ d(Me, {
1397
1397
  countryCode: e,
1398
1398
  phonePrefix: n,
1399
1399
  phoneError: i,
@@ -1408,8 +1408,8 @@ var O = f(null), k = () => {
1408
1408
  class: "IncodeRedirectSmsSendButton",
1409
1409
  children: u("redirect.sendLinkViaSms")
1410
1410
  })] });
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) => {
1411
+ }, Pe = (e, t) => e.startsWith(t) ? `${t} ${e.slice(t.length).replace(/(\d{3})(?=\d)/g, "$1 ")}` : e, Fe = ({ 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 = Pe(l, e), y = s((e, t) => {
1413
1413
  f(e), m(t);
1414
1414
  }, []), b = s(() => {
1415
1415
  g(!0), a.sendSms(l), g(!1);
@@ -1421,11 +1421,11 @@ var O = f(null), k = () => {
1421
1421
  return /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d("p", {
1422
1422
  class: "IncodeRedirectTabDescription",
1423
1423
  children: c("v2.redirectToMobile.sms.description")
1424
- }), n ? /* @__PURE__ */ d(Ae, {
1424
+ }), n ? /* @__PURE__ */ d(je, {
1425
1425
  formattedPhone: v,
1426
1426
  onResend: x,
1427
1427
  onChangePhone: S
1428
- }) : /* @__PURE__ */ d(Me, {
1428
+ }) : /* @__PURE__ */ d(Ne, {
1429
1429
  countryCode: _,
1430
1430
  phonePrefix: e,
1431
1431
  error: i,
@@ -1434,7 +1434,7 @@ var O = f(null), k = () => {
1434
1434
  onPhoneChange: y,
1435
1435
  onSendSms: b
1436
1436
  })] });
1437
- }, Fe = ({ redirectUrl: e, phonePrefix: n, smsSent: r, disableSmsOption: i, addContinueToDesktop: a, error: o, manager: c, logoSrc: l }) => {
1437
+ }, z = ({ redirectUrl: e, phonePrefix: n, smsSent: r, disableSmsOption: i, addContinueToDesktop: a, error: o, manager: c, logoSrc: l }) => {
1438
1438
  let { t: f } = t(), [p, m] = u(!1), h = s(() => {
1439
1439
  m(!0), setTimeout(() => m(!1), 3e3);
1440
1440
  }, []), g = s(() => {
@@ -1448,26 +1448,26 @@ var O = f(null), k = () => {
1448
1448
  /* @__PURE__ */ d(ae, { logoSrc: l }),
1449
1449
  /* @__PURE__ */ d("div", {
1450
1450
  class: "IncodeRedirectOptions",
1451
- children: /* @__PURE__ */ d(A, {
1451
+ children: /* @__PURE__ */ d(j, {
1452
1452
  defaultValue: "qr",
1453
1453
  listClassName: "IncodeRedirectTabs",
1454
1454
  triggerClassName: "IncodeRedirectTab",
1455
1455
  activeTriggerClassName: "IncodeRedirectTabActive",
1456
1456
  children: [
1457
- /* @__PURE__ */ d(A.List, { children: [/* @__PURE__ */ d(A.Trigger, {
1457
+ /* @__PURE__ */ d(j.List, { children: [/* @__PURE__ */ d(j.Trigger, {
1458
1458
  value: "qr",
1459
1459
  children: f("v2.redirectToMobile.tabs.0")
1460
- }), i ? null : /* @__PURE__ */ d(A.Trigger, {
1460
+ }), i ? null : /* @__PURE__ */ d(j.Trigger, {
1461
1461
  value: "sms",
1462
1462
  children: f("v2.redirectToMobile.tabs.1")
1463
1463
  })] }),
1464
- /* @__PURE__ */ d(A.Content, {
1464
+ /* @__PURE__ */ d(j.Content, {
1465
1465
  value: "qr",
1466
- children: /* @__PURE__ */ d(ke, { redirectUrl: e })
1466
+ children: /* @__PURE__ */ d(Ae, { redirectUrl: e })
1467
1467
  }),
1468
- i ? null : /* @__PURE__ */ d(A.Content, {
1468
+ i ? null : /* @__PURE__ */ d(j.Content, {
1469
1469
  value: "sms",
1470
- children: /* @__PURE__ */ d(Pe, {
1470
+ children: /* @__PURE__ */ d(Fe, {
1471
1471
  phonePrefix: n,
1472
1472
  smsSent: r,
1473
1473
  error: o,
@@ -1523,7 +1523,7 @@ var O = f(null), k = () => {
1523
1523
  r,
1524
1524
  a
1525
1525
  ]);
1526
- let l = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ d(C, { fullScreen: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ d(Fe, {
1526
+ let l = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ d(C, { fullScreen: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ d(z, {
1527
1527
  redirectUrl: a.redirectUrl,
1528
1528
  phonePrefix: a.phonePrefix,
1529
1529
  smsSent: a.smsSent,
@@ -1538,13 +1538,13 @@ var O = f(null), k = () => {
1538
1538
  style: { "--logo-height": `${c}px` },
1539
1539
  children: l
1540
1540
  });
1541
- }, z = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Le, {
1541
+ }, B = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Le, {
1542
1542
  config: e,
1543
1543
  onFinish: t,
1544
1544
  onContinue: n,
1545
1545
  onError: r
1546
1546
  }) : null });
1547
- T(z, "incode-redirect-to-mobile");
1547
+ T(B, "incode-redirect-to-mobile");
1548
1548
  //#endregion
1549
1549
  //#region src/styles/generatePalette.ts
1550
1550
  function Re(e) {
@@ -1573,7 +1573,7 @@ function Re(e) {
1573
1573
  l: u * 100
1574
1574
  };
1575
1575
  }
1576
- function B(e, t, n) {
1576
+ function V(e, t, n) {
1577
1577
  let r = e / 360, i = t / 100, a = n / 100, o, s, c;
1578
1578
  if (i === 0) o = s = c = a;
1579
1579
  else {
@@ -1590,13 +1590,13 @@ function ze(e) {
1590
1590
  let t = Re(e);
1591
1591
  if (!t) throw Error(`Invalid color format: ${e}`);
1592
1592
  return {
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)),
1593
+ 50: V(t.h, t.s, 95),
1594
+ 200: V(t.h, t.s, 80),
1595
+ 300: V(t.h, t.s, 65),
1596
+ 400: V(t.h, t.s, Math.min(100, t.l + 10)),
1597
1597
  500: e,
1598
- 600: B(t.h, t.s, Math.max(0, t.l - 10)),
1599
- 900: B(t.h, t.s, 20)
1598
+ 600: V(t.h, t.s, Math.max(0, t.l - 10)),
1599
+ 900: V(t.h, t.s, 20)
1600
1600
  };
1601
1601
  }
1602
1602
  //#endregion
@@ -1623,18 +1623,18 @@ function Be(e, t) {
1623
1623
  //#endregion
1624
1624
  //#region src/styles/fetchTheme.ts
1625
1625
  async function Ve() {
1626
- return (await D.get("/omni/asset/fetch-all")).data;
1626
+ return (await O.get("/omni/asset/fetch-all")).data;
1627
1627
  }
1628
- var V = /* @__PURE__ */ new Map();
1628
+ var H = /* @__PURE__ */ new Map();
1629
1629
  async function He(e) {
1630
1630
  if (e.startsWith("data:")) return e;
1631
- let t = V.get(e);
1631
+ let t = H.get(e);
1632
1632
  if (t) return t;
1633
1633
  let n = await (await fetch(e)).blob(), r = await new Promise((e, t) => {
1634
1634
  let r = new FileReader();
1635
1635
  r.onloadend = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
1636
1636
  });
1637
- return V.set(e, r), r;
1637
+ return H.set(e, r), r;
1638
1638
  }
1639
1639
  async function Ue() {
1640
1640
  let e = await Ve();
@@ -1644,7 +1644,7 @@ async function Ue() {
1644
1644
  let e = await fetch(t);
1645
1645
  if (!e.ok) throw Error(`Failed to fetch theme: ${e.statusText}`);
1646
1646
  r = await e.json();
1647
- } else r = (await D.get(t)).data;
1647
+ } else r = (await O.get(t)).data;
1648
1648
  let i = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo, a = i;
1649
1649
  return i && (a = await He(i)), {
1650
1650
  ...r,
@@ -1657,34 +1657,43 @@ async function We() {
1657
1657
  }
1658
1658
  //#endregion
1659
1659
  //#region src/modules/flow/flowInit.ts
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 = {
1660
+ var U = () => import("../id/id.es.js").then((e) => e.Id);
1661
+ function Ge(e) {
1662
+ if (e === "PHONE") return () => import("@incodetech/core/phone").then((e) => e.phoneMachine);
1663
+ if (e === "EMAIL") return () => import("@incodetech/core/email").then((e) => e.emailMachine);
1664
+ if (e === "SELFIE") return () => import("@incodetech/core/selfie").then((e) => e.selfieMachine);
1665
+ if (e === "AUTHENTICATION") return () => import("@incodetech/core/authentication").then((e) => e.authenticationMachine);
1666
+ if (e === "ID" || e === "TUTORIAL_ID" || e === "SECOND_ID") return () => import("@incodetech/core/id").then((e) => e.idCaptureMachine);
1667
+ if (e === "FACE_MATCH") return () => import("@incodetech/core/face-match").then((e) => e.faceMatchMachine);
1668
+ if (e === "CURP_VALIDATION") return () => import("@incodetech/core/curp-validation").then((e) => e.curpValidationMachine);
1669
+ if (e === "GOVT_VALIDATION_PROVISIONING") return () => import("@incodetech/core/government-validation").then((e) => e.governmentValidationMachine);
1670
+ if (e === "GEOLOCATION") return () => import("@incodetech/core/geolocation").then((e) => e.geolocationMachine);
1671
+ if (e === "EXTERNAL_VERIFICATION") return () => import("@incodetech/core/ekyc").then((e) => e.ekycMachine);
1672
+ if (e === "EKYB") return () => import("@incodetech/core/ekyb").then((e) => e.ekybMachine);
1673
+ if (e === "DOCUMENT_CAPTURE" || e === "ADDRESS") return () => import("@incodetech/core/document-capture").then((e) => e.documentCaptureMachine);
1674
+ if (e === "COMBINED_CONSENT") return () => import("@incodetech/core/consent").then((e) => e.consentMachine);
1675
+ if (e === "MANDATORY_CONSENT") return () => import("@incodetech/core/mandatory-consent").then((e) => e.mandatoryConsentMachine);
1676
+ if (e === "SIGNATURE") return () => import("@incodetech/core/signature").then((e) => e.signatureMachine);
1677
+ if (e === "ANTIFRAUD") return () => import("@incodetech/core/antifraud").then((e) => e.antifraudMachine);
1678
+ }
1679
+ function Ke(e) {
1680
+ let t = {};
1681
+ for (let n of e) {
1682
+ let e = n.key;
1683
+ if (t[e]) continue;
1684
+ let r = Ge(e);
1685
+ r && (t[e] = r);
1686
+ }
1687
+ return t;
1688
+ }
1689
+ var W = {
1681
1690
  PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
1682
1691
  EMAIL: () => import("../email/email.es.js").then((e) => e.Email),
1683
1692
  SELFIE: () => import("../selfie/selfie.es.js").then((e) => e.Selfie),
1684
1693
  AUTHENTICATION: () => import("../authentication/authentication.es.js").then((e) => e.Authentication),
1685
- ID: H,
1686
- TUTORIAL_ID: H,
1687
- SECOND_ID: H,
1694
+ ID: U,
1695
+ TUTORIAL_ID: U,
1696
+ SECOND_ID: U,
1688
1697
  FACE_MATCH: () => import("../faceMatch-Dtbnvq3v.js").then((e) => e.FaceMatch),
1689
1698
  CURP_VALIDATION: () => import("../curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
1690
1699
  GOVT_VALIDATION_PROVISIONING: () => import("../governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
@@ -1696,12 +1705,21 @@ var H = () => import("../id/id.es.js").then((e) => e.Id), Ge = {
1696
1705
  COMBINED_CONSENT: () => import("../consent/consent.es.js").then((e) => e.Consent),
1697
1706
  MANDATORY_CONSENT: () => import("../mandatoryConsent-B99XyHyX.js").then((e) => e.MandatoryConsent),
1698
1707
  SIGNATURE: () => import("../signature/signature.es.js").then((e) => e.Signature),
1699
- ANTIFRAUD: () => import("../antifraud/antifraud.es.js").then((e) => e.Antifraud)
1708
+ ANTIFRAUD: () => import("../antifraud/antifraud.es.js").then((e) => e.Antifraud),
1709
+ CROSS_DOCUMENT_DATA_MATCH: () => import("../cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
1700
1710
  };
1701
- function W() {
1702
- return re({ lazyModules: Ge });
1711
+ function G() {
1712
+ let e = {};
1713
+ return ne({
1714
+ getFlow: async (t) => {
1715
+ let n = await re(t), r = Ke(n.flowModules ?? []);
1716
+ for (let t of Object.keys(e)) delete e[t];
1717
+ return Object.assign(e, r), n;
1718
+ },
1719
+ lazyModules: e
1720
+ });
1703
1721
  }
1704
- async function G(e) {
1722
+ async function qe(e) {
1705
1723
  await m({
1706
1724
  apiURL: e.apiURL,
1707
1725
  token: e.token,
@@ -1709,7 +1727,15 @@ async function G(e) {
1709
1727
  i18n: { lang: e.lang ?? "en" }
1710
1728
  });
1711
1729
  }
1712
- async function K() {
1730
+ async function K(e) {
1731
+ let { apiURL: t, token: n, lang: r, flowManager: i } = e;
1732
+ await qe({
1733
+ apiURL: t,
1734
+ token: n,
1735
+ lang: r
1736
+ }), i.load();
1737
+ }
1738
+ async function q() {
1713
1739
  try {
1714
1740
  let e = await We(), t = {
1715
1741
  logoSrc: e.logo,
@@ -1723,25 +1749,25 @@ async function K() {
1723
1749
  return {};
1724
1750
  }
1725
1751
  }
1726
- function q(e, t) {
1727
- let n = E(e.flow);
1728
- n.length > 0 && ne(te({
1752
+ function J(e, t) {
1753
+ let n = D(e.flow);
1754
+ n.length > 0 && E(te({
1729
1755
  ...t,
1730
1756
  pipelines: n
1731
1757
  })).catch((e) => {
1732
1758
  console.error("WASM warmup failed:", e);
1733
1759
  });
1734
1760
  }
1735
- function Ke(e) {
1761
+ function Je(e) {
1736
1762
  let t = e.currentStep;
1737
1763
  if (t) {
1738
- let e = U[t];
1764
+ let e = W[t];
1739
1765
  e && e().catch(() => {});
1740
1766
  }
1741
1767
  }
1742
1768
  //#endregion
1743
1769
  //#region src/modules/flow/unsupportedModule.tsx
1744
- var qe = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
1770
+ var Ye = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
1745
1771
  class: "IncodeUnsupportedModule",
1746
1772
  "aria-live": "polite",
1747
1773
  children: /* @__PURE__ */ d("div", {
@@ -1767,9 +1793,9 @@ var qe = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
1767
1793
  })
1768
1794
  ]
1769
1795
  })
1770
- }), J = /* @__PURE__ */ new Map();
1771
- function Y(e) {
1772
- let t = J.get(e);
1796
+ }), Y = /* @__PURE__ */ new Map();
1797
+ function X(e) {
1798
+ let t = Y.get(e);
1773
1799
  if (!t) throw Error("Preload state not found");
1774
1800
  return {
1775
1801
  get isReady() {
@@ -1785,16 +1811,16 @@ function Y(e) {
1785
1811
  }
1786
1812
  },
1787
1813
  cancel() {
1788
- t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), J.delete(e));
1814
+ t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), Y.delete(e));
1789
1815
  }
1790
1816
  };
1791
1817
  }
1792
- function X(e) {
1818
+ function Xe(e) {
1793
1819
  let { token: t } = e;
1794
- if (J.has(t)) return Y(t);
1820
+ if (Y.has(t)) return X(t);
1795
1821
  let n, r, i = new Promise((e, t) => {
1796
1822
  n = e, r = t;
1797
- }), a = W(), o = {
1823
+ }), a = G(), o = {
1798
1824
  status: "loading",
1799
1825
  flowManager: a,
1800
1826
  config: e,
@@ -1802,37 +1828,38 @@ function X(e) {
1802
1828
  readyResolve: n,
1803
1829
  readyReject: r
1804
1830
  };
1805
- return J.set(t, o), (async () => {
1831
+ return Y.set(t, o), (async () => {
1806
1832
  try {
1807
- await G({
1833
+ await K({
1808
1834
  apiURL: e.apiURL,
1809
1835
  token: e.token,
1810
- lang: e.lang
1836
+ lang: e.lang,
1837
+ flowManager: a
1811
1838
  });
1812
- let t = e.disableDashboardTheme ? Promise.resolve({}) : K().then((e) => {
1839
+ let t = e.disableDashboardTheme ? Promise.resolve({}) : q().then((e) => {
1813
1840
  o.theme = e.theme, o.uiConfig = e.uiConfig;
1814
1841
  });
1815
1842
  o.unsubscribe = a.subscribe((t) => {
1816
1843
  if (t.status === "ready") {
1817
1844
  let n = t;
1818
- e.wasmConfig && q(n, e.wasmConfig), Ke(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
1845
+ e.wasmConfig && J(n, e.wasmConfig), Je(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
1819
1846
  } else t.status === "error" && (o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "error", o.error = t.error, o.readyReject(Error(t.error)));
1820
- }), a.load(), await t;
1847
+ }), await t;
1821
1848
  } catch (e) {
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);
1849
+ 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);
1823
1850
  }
1824
- })(), Y(t);
1851
+ })(), X(t);
1825
1852
  }
1826
1853
  function Z(e) {
1827
- return J.get(e) ?? null;
1854
+ return Y.get(e) ?? null;
1828
1855
  }
1829
1856
  function Q(e) {
1830
1857
  let t = Z(e);
1831
- return t && J.delete(e), t;
1858
+ return t && Y.delete(e), t;
1832
1859
  }
1833
1860
  //#endregion
1834
1861
  //#region src/modules/flow/useFlowInitialization.ts
1835
- function Je(e) {
1862
+ function Ze(e) {
1836
1863
  let { apiURL: t, token: n, lang: r, disableDashboardTheme: a, onError: o } = e, s = c(null), [l, d] = u(() => {
1837
1864
  let e = Z(n);
1838
1865
  if (e?.status === "ready") {
@@ -1842,7 +1869,7 @@ function Je(e) {
1842
1869
  flowManager: e.flowManager
1843
1870
  };
1844
1871
  }
1845
- let t = W();
1872
+ let t = G();
1846
1873
  return s.current = t, e?.status === "error" ? {
1847
1874
  status: "error",
1848
1875
  error: e.error ?? "Preload failed",
@@ -1874,15 +1901,14 @@ function Je(e) {
1874
1901
  }
1875
1902
  f.current || (f.current = !0, (async () => {
1876
1903
  try {
1877
- await G({
1904
+ await K({
1878
1905
  apiURL: t,
1879
1906
  token: n,
1880
- lang: r
1881
- });
1882
- let e = a ? Promise.resolve() : K().then((e) => {
1907
+ lang: r,
1908
+ flowManager: l.flowManager
1909
+ }), await (a ? Promise.resolve() : q().then((e) => {
1883
1910
  e.uiConfig && p(e.uiConfig);
1884
- });
1885
- l.flowManager.load(), await e, d({
1911
+ })), d({
1886
1912
  status: "ready",
1887
1913
  flowManager: l.flowManager
1888
1914
  });
@@ -1906,14 +1932,14 @@ function Je(e) {
1906
1932
  }
1907
1933
  //#endregion
1908
1934
  //#region src/modules/flow/useModuleLoader.ts
1909
- function Ye(e) {
1935
+ function Qe(e) {
1910
1936
  let { moduleKey: t, onModuleLoading: n, onModuleLoaded: r, onError: a } = e, [o, s] = u({ status: "idle" });
1911
1937
  return i(() => {
1912
1938
  if (!t) {
1913
1939
  s({ status: "idle" });
1914
1940
  return;
1915
1941
  }
1916
- let e = U[t];
1942
+ let e = W[t];
1917
1943
  if (!e) {
1918
1944
  s({
1919
1945
  status: "unsupported",
@@ -1951,14 +1977,14 @@ function Ye(e) {
1951
1977
  a
1952
1978
  ]), o;
1953
1979
  }
1954
- function Xe(e, t) {
1980
+ function $e(e, t) {
1955
1981
  let n = c(/* @__PURE__ */ new Set());
1956
1982
  i(() => {
1957
1983
  if (t < e.length - 1) {
1958
1984
  let r = e[t + 1];
1959
1985
  if (r && !n.current.has(r)) {
1960
1986
  n.current.add(r);
1961
- let e = U[r];
1987
+ let e = W[r];
1962
1988
  e && e().catch(() => {
1963
1989
  n.current.delete(r);
1964
1990
  });
@@ -1968,25 +1994,25 @@ function Xe(e, t) {
1968
1994
  }
1969
1995
  //#endregion
1970
1996
  //#region src/modules/flow/flow.tsx
1971
- var Ze = ({ config: e, onFinish: n, onError: r }) => {
1972
- let { t: a, i18n: o } = t(), [s, c] = u(!1), l = Je({
1997
+ var et = ({ config: e, onFinish: n, onError: r }) => {
1998
+ let { t: a, i18n: o } = t(), [s, c] = u(!1), l = Ze({
1973
1999
  apiURL: e.apiURL,
1974
2000
  token: e.token,
1975
2001
  lang: e.lang,
1976
2002
  disableDashboardTheme: e.disableDashboardTheme,
1977
2003
  onError: r
1978
- }), [f, p] = h(() => l.flowManager, { autoLoad: !1 }), m = f?.status === "ready" && f.flow.redirectDesktopToMobile && !s, g = Ye({
2004
+ }), [f, p] = h(() => l.flowManager, { autoLoad: !1 }), m = f?.status === "ready" && f.flow.redirectDesktopToMobile && !s, g = Qe({
1979
2005
  moduleKey: f?.status === "ready" && !m ? f.currentStep : void 0,
1980
2006
  onModuleLoading: e.onModuleLoading,
1981
2007
  onModuleLoaded: e.onModuleLoaded,
1982
2008
  onError: r
1983
2009
  });
1984
- if (Xe(f?.status === "ready" ? f.steps : [], f?.status === "ready" ? f.currentStepIndex : -1), i(() => {
2010
+ if ($e(f?.status === "ready" ? f.steps : [], f?.status === "ready" ? f.currentStepIndex : -1), i(() => {
1985
2011
  e.lang && o.language !== e.lang && o.changeLanguage(e.lang);
1986
2012
  }, [e.lang, o]), i(() => {
1987
2013
  if (f?.status === "ready" && e.wasmConfig) {
1988
- let t = f, n = E(t.flow);
1989
- n.length > 0 && (e.onWasmWarmup?.(n), q(t, e.wasmConfig));
2014
+ let t = f, n = D(t.flow);
2015
+ n.length > 0 && (e.onWasmWarmup?.(n), J(t, e.wasmConfig));
1990
2016
  }
1991
2017
  }, [f, e]), i(() => {
1992
2018
  f?.status === "finished" && n(f.finishStatus);
@@ -2024,7 +2050,7 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
2024
2050
  let { currentStep: t, config: n, flow: { flowId: i, disableSmsOption: o, addContinueToDesktop: s, qrPhishingResistance: l } } = f;
2025
2051
  if (m) return /* @__PURE__ */ d("div", {
2026
2052
  class: "IncodeFlow",
2027
- children: /* @__PURE__ */ d(z, {
2053
+ children: /* @__PURE__ */ d(B, {
2028
2054
  config: {
2029
2055
  flowId: i,
2030
2056
  disableSmsOption: o,
@@ -2049,7 +2075,7 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
2049
2075
  });
2050
2076
  if (g.status === "unsupported") return /* @__PURE__ */ d("div", {
2051
2077
  class: "IncodeFlow",
2052
- children: /* @__PURE__ */ d(qe, {
2078
+ children: /* @__PURE__ */ d(Ye, {
2053
2079
  moduleKey: t,
2054
2080
  onNext: () => p.completeModule()
2055
2081
  })
@@ -2271,13 +2297,31 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
2271
2297
  }
2272
2298
  }, `mandatory-consent-${f.currentStepIndex}`)
2273
2299
  });
2300
+ if (t === "ANTIFRAUD") return /* @__PURE__ */ d("div", {
2301
+ class: "IncodeFlow",
2302
+ children: /* @__PURE__ */ d(u, {
2303
+ onFinish: () => p.completeModule(),
2304
+ onError: (e) => {
2305
+ r?.(e ?? "Antifraud check error");
2306
+ }
2307
+ }, `antifraud-${f.currentStepIndex}`)
2308
+ });
2309
+ if (t === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ d("div", {
2310
+ class: "IncodeFlow",
2311
+ children: /* @__PURE__ */ d(u, {
2312
+ onFinish: () => p.completeModule(),
2313
+ onError: (e) => {
2314
+ r?.(e ?? "Cross document data match error");
2315
+ }
2316
+ }, `cross-document-data-match-${f.currentStepIndex}`)
2317
+ });
2274
2318
  }
2275
2319
  return null;
2276
- }, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(Ze, {
2320
+ }, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(et, {
2277
2321
  config: e,
2278
2322
  onFinish: t,
2279
2323
  onError: n
2280
2324
  }) : null });
2281
2325
  T($, "incode-flow");
2282
2326
  //#endregion
2283
- export { $ as IncodeFlow, X as preloadIncodeFlow };
2327
+ export { $ as IncodeFlow, Xe as preloadIncodeFlow };
@@ -0,0 +1,29 @@
1
+ import { CrossDocumentDataMatchConfig } from '@incodetech/core/cross-document-data-match';
2
+ import { FC } from 'preact/compat';
3
+
4
+ export declare const CrossDocumentDataMatch: FC<CrossDocumentDataMatchProps>;
5
+
6
+ declare type CrossDocumentDataMatchProps = IncodeModuleProps<CrossDocumentDataMatchConfig>;
7
+
8
+ declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
9
+ /**
10
+ * Module configuration required to render the flow.
11
+ * For Web Components, this is typically assigned via `element.config = ...`.
12
+ */
13
+ config?: TConfig;
14
+ /**
15
+ * Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
16
+ */
17
+ manager?: TManager;
18
+ /**
19
+ * Callback invoked when the module completes successfully.
20
+ * @param result - Optional result data from the module completion
21
+ */
22
+ onFinish?: (result?: TResult) => void;
23
+ /**
24
+ * Callback invoked when a fatal module error occurs.
25
+ */
26
+ onError?: (error: string | undefined) => void;
27
+ };
28
+
29
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260407-d5ee208",
3
+ "version": "0.0.0-dev-20260407-8c4e1e2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -126,6 +126,10 @@
126
126
  },
127
127
  "./antifraud/styles.css": {
128
128
  "default": "./dist/antifraud/styles.css"
129
+ },
130
+ "./cross-document-data-match": {
131
+ "types": "./dist/types/cross-document-data-match.d.ts",
132
+ "import": "./dist/cross-document-data-match/cross-document-data-match.es.js"
129
133
  }
130
134
  },
131
135
  "files": [
@@ -144,7 +148,7 @@
144
148
  "qrcode": "^1.5.4",
145
149
  "signature_pad": "^5.1.3",
146
150
  "tailwindcss": "^4.1.17",
147
- "@incodetech/core": "0.0.0-dev-20260407-d5ee208"
151
+ "@incodetech/core": "0.0.0-dev-20260407-8c4e1e2"
148
152
  },
149
153
  "devDependencies": {
150
154
  "@microsoft/api-extractor": "^7.53.3",