@incodetech/web 0.0.0-dev-20260407-690b1a8 → 0.0.0-dev-20260408-6cf064e
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.
|
@@ -692,7 +692,7 @@ var H = ({ manager: n, title: a, text: c, allowSkipDocumentCapture: l, captureMo
|
|
|
692
692
|
/* @__PURE__ */ s("input", {
|
|
693
693
|
ref: u,
|
|
694
694
|
type: "file",
|
|
695
|
-
accept: "image
|
|
695
|
+
accept: "image/jpeg,image/png",
|
|
696
696
|
onChange: S,
|
|
697
697
|
"aria-hidden": !0,
|
|
698
698
|
tabIndex: -1,
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -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
|
|
16
|
-
import { createOrchestratedFlowManager as re, getRequiredWasmPipelines as
|
|
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
|
|
18
|
+
import { api as O } from "@incodetech/core/http";
|
|
19
19
|
//#region src/shared/tabs/tabs.tsx
|
|
20
|
-
var
|
|
21
|
-
let e = 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
|
-
},
|
|
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(
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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 =
|
|
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 =
|
|
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
|
-
})),
|
|
327
|
-
var t =
|
|
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
|
-
})),
|
|
720
|
+
})), F = /* @__PURE__ */ e(((e) => {
|
|
721
721
|
e.isValid = function(e) {
|
|
722
722
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
723
723
|
};
|
|
724
|
-
})),
|
|
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
|
-
})),
|
|
738
|
-
var t =
|
|
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
|
-
})),
|
|
802
|
-
var t =
|
|
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
|
-
})),
|
|
849
|
-
var t =
|
|
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
|
-
})),
|
|
856
|
-
var n =
|
|
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
|
-
})),
|
|
873
|
-
var n =
|
|
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
|
-
})),
|
|
892
|
-
var n =
|
|
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
|
-
})),
|
|
906
|
-
var n =
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
980
|
-
var t =
|
|
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
|
-
})),
|
|
1108
|
-
var t =
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
1296
|
-
var t = ce(), n =
|
|
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
|
-
})))(),
|
|
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,
|
|
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
|
-
},
|
|
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(
|
|
1351
|
+
children: /* @__PURE__ */ d(ke, {
|
|
1352
1352
|
value: e,
|
|
1353
1353
|
size: 186
|
|
1354
1354
|
})
|
|
1355
1355
|
})] });
|
|
1356
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
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
|
-
},
|
|
1412
|
-
let { t: c } = t(), [l, f] = u(e), [p, m] = u(!1), [h, g] = u(!1), _ = ee(e)?.code ?? "", v =
|
|
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(
|
|
1424
|
+
}), n ? /* @__PURE__ */ d(je, {
|
|
1425
1425
|
formattedPhone: v,
|
|
1426
1426
|
onResend: x,
|
|
1427
1427
|
onChangePhone: S
|
|
1428
|
-
}) : /* @__PURE__ */ d(
|
|
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
|
-
},
|
|
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(
|
|
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(
|
|
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(
|
|
1460
|
+
}), i ? null : /* @__PURE__ */ d(j.Trigger, {
|
|
1461
1461
|
value: "sms",
|
|
1462
1462
|
children: f("v2.redirectToMobile.tabs.1")
|
|
1463
1463
|
})] }),
|
|
1464
|
-
/* @__PURE__ */ d(
|
|
1464
|
+
/* @__PURE__ */ d(j.Content, {
|
|
1465
1465
|
value: "qr",
|
|
1466
|
-
children: /* @__PURE__ */ d(
|
|
1466
|
+
children: /* @__PURE__ */ d(Ae, { redirectUrl: e })
|
|
1467
1467
|
}),
|
|
1468
|
-
i ? null : /* @__PURE__ */ d(
|
|
1468
|
+
i ? null : /* @__PURE__ */ d(j.Content, {
|
|
1469
1469
|
value: "sms",
|
|
1470
|
-
children: /* @__PURE__ */ d(
|
|
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(
|
|
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
|
-
},
|
|
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(
|
|
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
|
|
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:
|
|
1594
|
-
200:
|
|
1595
|
-
300:
|
|
1596
|
-
400:
|
|
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:
|
|
1599
|
-
900:
|
|
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
|
|
1626
|
+
return (await O.get("/omni/asset/fetch-all")).data;
|
|
1627
1627
|
}
|
|
1628
|
-
var
|
|
1628
|
+
var H = /* @__PURE__ */ new Map();
|
|
1629
1629
|
async function He(e) {
|
|
1630
1630
|
if (e.startsWith("data:")) return e;
|
|
1631
|
-
let t =
|
|
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
|
|
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
|
|
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,52 +1657,69 @@ async function We() {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
//#endregion
|
|
1659
1659
|
//#region src/modules/flow/flowInit.ts
|
|
1660
|
-
var
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
TUTORIAL_ID
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
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:
|
|
1686
|
-
TUTORIAL_ID:
|
|
1687
|
-
SECOND_ID:
|
|
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),
|
|
1691
1700
|
GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
1692
1701
|
EXTERNAL_VERIFICATION: () => import("../ekycModule-B1p3nVjs.js").then((e) => e.EkycModule),
|
|
1693
1702
|
EKYB: () => import("../ekybModule-BFnH4wjX.js").then((e) => e.EkybModule),
|
|
1694
|
-
DOCUMENT_CAPTURE: () => import("../documentCapture-
|
|
1695
|
-
ADDRESS: () => import("../documentCapture-
|
|
1703
|
+
DOCUMENT_CAPTURE: () => import("../documentCapture-BauSTull.js").then((e) => e.DocumentCapture),
|
|
1704
|
+
ADDRESS: () => import("../documentCapture-BauSTull.js").then((e) => e.DocumentCapture),
|
|
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
1708
|
ANTIFRAUD: () => import("../antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
1700
1709
|
CROSS_DOCUMENT_DATA_MATCH: () => import("../cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
|
|
1701
1710
|
};
|
|
1702
|
-
function
|
|
1703
|
-
|
|
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
|
+
});
|
|
1704
1721
|
}
|
|
1705
|
-
async function
|
|
1722
|
+
async function qe(e) {
|
|
1706
1723
|
await m({
|
|
1707
1724
|
apiURL: e.apiURL,
|
|
1708
1725
|
token: e.token,
|
|
@@ -1710,7 +1727,15 @@ async function G(e) {
|
|
|
1710
1727
|
i18n: { lang: e.lang ?? "en" }
|
|
1711
1728
|
});
|
|
1712
1729
|
}
|
|
1713
|
-
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() {
|
|
1714
1739
|
try {
|
|
1715
1740
|
let e = await We(), t = {
|
|
1716
1741
|
logoSrc: e.logo,
|
|
@@ -1724,25 +1749,25 @@ async function K() {
|
|
|
1724
1749
|
return {};
|
|
1725
1750
|
}
|
|
1726
1751
|
}
|
|
1727
|
-
function
|
|
1728
|
-
let n =
|
|
1729
|
-
n.length > 0 &&
|
|
1752
|
+
function J(e, t) {
|
|
1753
|
+
let n = D(e.flow);
|
|
1754
|
+
n.length > 0 && E(te({
|
|
1730
1755
|
...t,
|
|
1731
1756
|
pipelines: n
|
|
1732
1757
|
})).catch((e) => {
|
|
1733
1758
|
console.error("WASM warmup failed:", e);
|
|
1734
1759
|
});
|
|
1735
1760
|
}
|
|
1736
|
-
function
|
|
1761
|
+
function Je(e) {
|
|
1737
1762
|
let t = e.currentStep;
|
|
1738
1763
|
if (t) {
|
|
1739
|
-
let e =
|
|
1764
|
+
let e = W[t];
|
|
1740
1765
|
e && e().catch(() => {});
|
|
1741
1766
|
}
|
|
1742
1767
|
}
|
|
1743
1768
|
//#endregion
|
|
1744
1769
|
//#region src/modules/flow/unsupportedModule.tsx
|
|
1745
|
-
var
|
|
1770
|
+
var Ye = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
|
|
1746
1771
|
class: "IncodeUnsupportedModule",
|
|
1747
1772
|
"aria-live": "polite",
|
|
1748
1773
|
children: /* @__PURE__ */ d("div", {
|
|
@@ -1768,9 +1793,9 @@ var qe = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ d("section", {
|
|
|
1768
1793
|
})
|
|
1769
1794
|
]
|
|
1770
1795
|
})
|
|
1771
|
-
}),
|
|
1772
|
-
function
|
|
1773
|
-
let t =
|
|
1796
|
+
}), Y = /* @__PURE__ */ new Map();
|
|
1797
|
+
function X(e) {
|
|
1798
|
+
let t = Y.get(e);
|
|
1774
1799
|
if (!t) throw Error("Preload state not found");
|
|
1775
1800
|
return {
|
|
1776
1801
|
get isReady() {
|
|
@@ -1786,16 +1811,16 @@ function Y(e) {
|
|
|
1786
1811
|
}
|
|
1787
1812
|
},
|
|
1788
1813
|
cancel() {
|
|
1789
|
-
t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")),
|
|
1814
|
+
t.status === "loading" && (t.unsubscribe && t.unsubscribe(), t.flowManager.stop(), t.readyReject(/* @__PURE__ */ Error("Preload cancelled")), Y.delete(e));
|
|
1790
1815
|
}
|
|
1791
1816
|
};
|
|
1792
1817
|
}
|
|
1793
|
-
function
|
|
1818
|
+
function Xe(e) {
|
|
1794
1819
|
let { token: t } = e;
|
|
1795
|
-
if (
|
|
1820
|
+
if (Y.has(t)) return X(t);
|
|
1796
1821
|
let n, r, i = new Promise((e, t) => {
|
|
1797
1822
|
n = e, r = t;
|
|
1798
|
-
}), a =
|
|
1823
|
+
}), a = G(), o = {
|
|
1799
1824
|
status: "loading",
|
|
1800
1825
|
flowManager: a,
|
|
1801
1826
|
config: e,
|
|
@@ -1803,37 +1828,38 @@ function X(e) {
|
|
|
1803
1828
|
readyResolve: n,
|
|
1804
1829
|
readyReject: r
|
|
1805
1830
|
};
|
|
1806
|
-
return
|
|
1831
|
+
return Y.set(t, o), (async () => {
|
|
1807
1832
|
try {
|
|
1808
|
-
await
|
|
1833
|
+
await K({
|
|
1809
1834
|
apiURL: e.apiURL,
|
|
1810
1835
|
token: e.token,
|
|
1811
|
-
lang: e.lang
|
|
1836
|
+
lang: e.lang,
|
|
1837
|
+
flowManager: a
|
|
1812
1838
|
});
|
|
1813
|
-
let t = e.disableDashboardTheme ? Promise.resolve({}) :
|
|
1839
|
+
let t = e.disableDashboardTheme ? Promise.resolve({}) : q().then((e) => {
|
|
1814
1840
|
o.theme = e.theme, o.uiConfig = e.uiConfig;
|
|
1815
1841
|
});
|
|
1816
1842
|
o.unsubscribe = a.subscribe((t) => {
|
|
1817
1843
|
if (t.status === "ready") {
|
|
1818
1844
|
let n = t;
|
|
1819
|
-
e.wasmConfig &&
|
|
1845
|
+
e.wasmConfig && J(n, e.wasmConfig), Je(n), o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "ready", o.readyResolve();
|
|
1820
1846
|
} else t.status === "error" && (o.unsubscribe?.(), o.unsubscribe = void 0, o.status = "error", o.error = t.error, o.readyReject(Error(t.error)));
|
|
1821
|
-
}),
|
|
1847
|
+
}), await t;
|
|
1822
1848
|
} catch (e) {
|
|
1823
|
-
o.status = "error", o.error = e instanceof Error ? e.message : "Failed to preload", o.readyReject(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to preload")),
|
|
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);
|
|
1824
1850
|
}
|
|
1825
|
-
})(),
|
|
1851
|
+
})(), X(t);
|
|
1826
1852
|
}
|
|
1827
1853
|
function Z(e) {
|
|
1828
|
-
return
|
|
1854
|
+
return Y.get(e) ?? null;
|
|
1829
1855
|
}
|
|
1830
1856
|
function Q(e) {
|
|
1831
1857
|
let t = Z(e);
|
|
1832
|
-
return t &&
|
|
1858
|
+
return t && Y.delete(e), t;
|
|
1833
1859
|
}
|
|
1834
1860
|
//#endregion
|
|
1835
1861
|
//#region src/modules/flow/useFlowInitialization.ts
|
|
1836
|
-
function
|
|
1862
|
+
function Ze(e) {
|
|
1837
1863
|
let { apiURL: t, token: n, lang: r, disableDashboardTheme: a, onError: o } = e, s = c(null), [l, d] = u(() => {
|
|
1838
1864
|
let e = Z(n);
|
|
1839
1865
|
if (e?.status === "ready") {
|
|
@@ -1843,7 +1869,7 @@ function Je(e) {
|
|
|
1843
1869
|
flowManager: e.flowManager
|
|
1844
1870
|
};
|
|
1845
1871
|
}
|
|
1846
|
-
let t =
|
|
1872
|
+
let t = G();
|
|
1847
1873
|
return s.current = t, e?.status === "error" ? {
|
|
1848
1874
|
status: "error",
|
|
1849
1875
|
error: e.error ?? "Preload failed",
|
|
@@ -1875,15 +1901,14 @@ function Je(e) {
|
|
|
1875
1901
|
}
|
|
1876
1902
|
f.current || (f.current = !0, (async () => {
|
|
1877
1903
|
try {
|
|
1878
|
-
await
|
|
1904
|
+
await K({
|
|
1879
1905
|
apiURL: t,
|
|
1880
1906
|
token: n,
|
|
1881
|
-
lang: r
|
|
1882
|
-
|
|
1883
|
-
|
|
1907
|
+
lang: r,
|
|
1908
|
+
flowManager: l.flowManager
|
|
1909
|
+
}), await (a ? Promise.resolve() : q().then((e) => {
|
|
1884
1910
|
e.uiConfig && p(e.uiConfig);
|
|
1885
|
-
})
|
|
1886
|
-
l.flowManager.load(), await e, d({
|
|
1911
|
+
})), d({
|
|
1887
1912
|
status: "ready",
|
|
1888
1913
|
flowManager: l.flowManager
|
|
1889
1914
|
});
|
|
@@ -1907,14 +1932,14 @@ function Je(e) {
|
|
|
1907
1932
|
}
|
|
1908
1933
|
//#endregion
|
|
1909
1934
|
//#region src/modules/flow/useModuleLoader.ts
|
|
1910
|
-
function
|
|
1935
|
+
function Qe(e) {
|
|
1911
1936
|
let { moduleKey: t, onModuleLoading: n, onModuleLoaded: r, onError: a } = e, [o, s] = u({ status: "idle" });
|
|
1912
1937
|
return i(() => {
|
|
1913
1938
|
if (!t) {
|
|
1914
1939
|
s({ status: "idle" });
|
|
1915
1940
|
return;
|
|
1916
1941
|
}
|
|
1917
|
-
let e =
|
|
1942
|
+
let e = W[t];
|
|
1918
1943
|
if (!e) {
|
|
1919
1944
|
s({
|
|
1920
1945
|
status: "unsupported",
|
|
@@ -1952,14 +1977,14 @@ function Ye(e) {
|
|
|
1952
1977
|
a
|
|
1953
1978
|
]), o;
|
|
1954
1979
|
}
|
|
1955
|
-
function
|
|
1980
|
+
function $e(e, t) {
|
|
1956
1981
|
let n = c(/* @__PURE__ */ new Set());
|
|
1957
1982
|
i(() => {
|
|
1958
1983
|
if (t < e.length - 1) {
|
|
1959
1984
|
let r = e[t + 1];
|
|
1960
1985
|
if (r && !n.current.has(r)) {
|
|
1961
1986
|
n.current.add(r);
|
|
1962
|
-
let e =
|
|
1987
|
+
let e = W[r];
|
|
1963
1988
|
e && e().catch(() => {
|
|
1964
1989
|
n.current.delete(r);
|
|
1965
1990
|
});
|
|
@@ -1969,25 +1994,25 @@ function Xe(e, t) {
|
|
|
1969
1994
|
}
|
|
1970
1995
|
//#endregion
|
|
1971
1996
|
//#region src/modules/flow/flow.tsx
|
|
1972
|
-
var
|
|
1973
|
-
let { t: a, i18n: o } = t(), [s, c] = u(!1), l =
|
|
1997
|
+
var et = ({ config: e, onFinish: n, onError: r }) => {
|
|
1998
|
+
let { t: a, i18n: o } = t(), [s, c] = u(!1), l = Ze({
|
|
1974
1999
|
apiURL: e.apiURL,
|
|
1975
2000
|
token: e.token,
|
|
1976
2001
|
lang: e.lang,
|
|
1977
2002
|
disableDashboardTheme: e.disableDashboardTheme,
|
|
1978
2003
|
onError: r
|
|
1979
|
-
}), [f, p] = h(() => l.flowManager, { autoLoad: !1 }), m = f?.status === "ready" && f.flow.redirectDesktopToMobile && !s, g =
|
|
2004
|
+
}), [f, p] = h(() => l.flowManager, { autoLoad: !1 }), m = f?.status === "ready" && f.flow.redirectDesktopToMobile && !s, g = Qe({
|
|
1980
2005
|
moduleKey: f?.status === "ready" && !m ? f.currentStep : void 0,
|
|
1981
2006
|
onModuleLoading: e.onModuleLoading,
|
|
1982
2007
|
onModuleLoaded: e.onModuleLoaded,
|
|
1983
2008
|
onError: r
|
|
1984
2009
|
});
|
|
1985
|
-
if (
|
|
2010
|
+
if ($e(f?.status === "ready" ? f.steps : [], f?.status === "ready" ? f.currentStepIndex : -1), i(() => {
|
|
1986
2011
|
e.lang && o.language !== e.lang && o.changeLanguage(e.lang);
|
|
1987
2012
|
}, [e.lang, o]), i(() => {
|
|
1988
2013
|
if (f?.status === "ready" && e.wasmConfig) {
|
|
1989
|
-
let t = f, n =
|
|
1990
|
-
n.length > 0 && (e.onWasmWarmup?.(n),
|
|
2014
|
+
let t = f, n = D(t.flow);
|
|
2015
|
+
n.length > 0 && (e.onWasmWarmup?.(n), J(t, e.wasmConfig));
|
|
1991
2016
|
}
|
|
1992
2017
|
}, [f, e]), i(() => {
|
|
1993
2018
|
f?.status === "finished" && n(f.finishStatus);
|
|
@@ -2025,7 +2050,7 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
|
|
|
2025
2050
|
let { currentStep: t, config: n, flow: { flowId: i, disableSmsOption: o, addContinueToDesktop: s, qrPhishingResistance: l } } = f;
|
|
2026
2051
|
if (m) return /* @__PURE__ */ d("div", {
|
|
2027
2052
|
class: "IncodeFlow",
|
|
2028
|
-
children: /* @__PURE__ */ d(
|
|
2053
|
+
children: /* @__PURE__ */ d(B, {
|
|
2029
2054
|
config: {
|
|
2030
2055
|
flowId: i,
|
|
2031
2056
|
disableSmsOption: o,
|
|
@@ -2050,7 +2075,7 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
|
|
|
2050
2075
|
});
|
|
2051
2076
|
if (g.status === "unsupported") return /* @__PURE__ */ d("div", {
|
|
2052
2077
|
class: "IncodeFlow",
|
|
2053
|
-
children: /* @__PURE__ */ d(
|
|
2078
|
+
children: /* @__PURE__ */ d(Ye, {
|
|
2054
2079
|
moduleKey: t,
|
|
2055
2080
|
onNext: () => p.completeModule()
|
|
2056
2081
|
})
|
|
@@ -2292,11 +2317,11 @@ var Ze = ({ config: e, onFinish: n, onError: r }) => {
|
|
|
2292
2317
|
});
|
|
2293
2318
|
}
|
|
2294
2319
|
return null;
|
|
2295
|
-
}, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(
|
|
2320
|
+
}, $ = ({ config: e, onFinish: t = () => {}, onError: n }) => /* @__PURE__ */ d(_, { children: e ? /* @__PURE__ */ d(et, {
|
|
2296
2321
|
config: e,
|
|
2297
2322
|
onFinish: t,
|
|
2298
2323
|
onError: n
|
|
2299
2324
|
}) : null });
|
|
2300
2325
|
T($, "incode-flow");
|
|
2301
2326
|
//#endregion
|
|
2302
|
-
export { $ as IncodeFlow,
|
|
2327
|
+
export { $ as IncodeFlow, Xe as preloadIncodeFlow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260408-6cf064e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"qrcode": "^1.5.4",
|
|
149
149
|
"signature_pad": "^5.1.3",
|
|
150
150
|
"tailwindcss": "^4.1.17",
|
|
151
|
-
"@incodetech/core": "0.0.0-dev-
|
|
151
|
+
"@incodetech/core": "0.0.0-dev-20260408-6cf064e"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
154
|
"@microsoft/api-extractor": "^7.53.3",
|