@incodetech/web 0.0.0-dev-20260313-bc2dab4 → 0.0.0-dev-20260317-ce5d28b
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.
- package/dist/addressAutocomplete-CL7IcYGQ.js +151 -0
- package/dist/base.css +55 -2
- package/dist/ekyb/styles.css +4 -0
- package/dist/ekybModule-CV7jE8qz.js +299 -0
- package/dist/ekycModule-fxKjsL1i.js +245 -0
- package/dist/extensibility.es.js +2 -2
- package/dist/flow/flow.es.js +145 -137
- package/dist/flow/styles.css +4 -0
- package/dist/formField-B2HDj15w.js +103 -0
- package/dist/phoneInputComposed-D0oBe-el.js +159 -0
- package/dist/types/extensibility.d.ts +10 -2
- package/package.json +2 -2
- package/dist/ekybModule-DiFpO2sE.js +0 -244
- package/dist/ekycModule-DdD1iChB.js +0 -370
- package/dist/formField-C91ckby4.js +0 -94
- package/dist/phoneInputComposed-B1gXoSzr.js +0 -107
- package/dist/useFormScrollable-3O3GeT4m.js +0 -15
package/dist/flow/flow.es.js
CHANGED
|
@@ -927,8 +927,8 @@ function Rn() {
|
|
|
927
927
|
function f(d, g) {
|
|
928
928
|
let b = 0;
|
|
929
929
|
return d.forEach(function(y) {
|
|
930
|
-
const
|
|
931
|
-
b +=
|
|
930
|
+
const B = h(y.mode, g);
|
|
931
|
+
b += B + y.getBitsLength();
|
|
932
932
|
}), b;
|
|
933
933
|
}
|
|
934
934
|
function u(d, g) {
|
|
@@ -942,32 +942,32 @@ function Rn() {
|
|
|
942
942
|
if (!o.isValid(g))
|
|
943
943
|
throw new Error("Invalid QR Code version");
|
|
944
944
|
typeof y > "u" && (y = n.BYTE);
|
|
945
|
-
const
|
|
946
|
-
if (y === n.MIXED) return
|
|
947
|
-
const
|
|
945
|
+
const B = t.getSymbolTotalCodewords(g), w = i.getTotalCodewordsCount(g, b), m = (B - w) * 8;
|
|
946
|
+
if (y === n.MIXED) return m;
|
|
947
|
+
const p = m - h(y, g);
|
|
948
948
|
switch (y) {
|
|
949
949
|
case n.NUMERIC:
|
|
950
|
-
return Math.floor(
|
|
950
|
+
return Math.floor(p / 10 * 3);
|
|
951
951
|
case n.ALPHANUMERIC:
|
|
952
|
-
return Math.floor(
|
|
952
|
+
return Math.floor(p / 11 * 2);
|
|
953
953
|
case n.KANJI:
|
|
954
|
-
return Math.floor(
|
|
954
|
+
return Math.floor(p / 13);
|
|
955
955
|
case n.BYTE:
|
|
956
956
|
default:
|
|
957
|
-
return Math.floor(
|
|
957
|
+
return Math.floor(p / 8);
|
|
958
958
|
}
|
|
959
959
|
}, e.getBestVersionForData = function(g, b) {
|
|
960
960
|
let y;
|
|
961
|
-
const
|
|
961
|
+
const B = r.from(b, r.M);
|
|
962
962
|
if (Array.isArray(g)) {
|
|
963
963
|
if (g.length > 1)
|
|
964
|
-
return u(g,
|
|
964
|
+
return u(g, B);
|
|
965
965
|
if (g.length === 0)
|
|
966
966
|
return 1;
|
|
967
967
|
y = g[0];
|
|
968
968
|
} else
|
|
969
969
|
y = g;
|
|
970
|
-
return c(y.mode, y.getLength(),
|
|
970
|
+
return c(y.mode, y.getLength(), B);
|
|
971
971
|
}, e.getEncodedBits = function(g) {
|
|
972
972
|
if (!o.isValid(g) || g < 7)
|
|
973
973
|
throw new Error("Invalid QR Code version");
|
|
@@ -1133,7 +1133,7 @@ Make sure your charset is UTF-8`
|
|
|
1133
1133
|
}, Se = i, Se;
|
|
1134
1134
|
}
|
|
1135
1135
|
var Ae = { exports: {} }, ct;
|
|
1136
|
-
function
|
|
1136
|
+
function Bn() {
|
|
1137
1137
|
return ct || (ct = 1, (function(e) {
|
|
1138
1138
|
var t = {
|
|
1139
1139
|
single_source_shortest_paths: function(i, r, n) {
|
|
@@ -1141,10 +1141,10 @@ function Pn() {
|
|
|
1141
1141
|
a[r] = 0;
|
|
1142
1142
|
var s = t.PriorityQueue.make();
|
|
1143
1143
|
s.push(r, 0);
|
|
1144
|
-
for (var c, h, f, u, d, g, b, y,
|
|
1144
|
+
for (var c, h, f, u, d, g, b, y, B; !s.empty(); ) {
|
|
1145
1145
|
c = s.pop(), h = c.value, u = c.cost, d = i[h] || {};
|
|
1146
1146
|
for (f in d)
|
|
1147
|
-
d.hasOwnProperty(f) && (g = d[f], b = u + g, y = a[f],
|
|
1147
|
+
d.hasOwnProperty(f) && (g = d[f], b = u + g, y = a[f], B = typeof a[f] > "u", (B || y > b) && (a[f] = b, s.push(f, b), o[f] = h));
|
|
1148
1148
|
}
|
|
1149
1149
|
if (typeof n < "u" && typeof a[n] > "u") {
|
|
1150
1150
|
var w = ["Could not find a path from ", r, " to ", n, "."].join("");
|
|
@@ -1201,28 +1201,28 @@ function Pn() {
|
|
|
1201
1201
|
})(Ae)), Ae.exports;
|
|
1202
1202
|
}
|
|
1203
1203
|
var lt;
|
|
1204
|
-
function
|
|
1204
|
+
function Pn() {
|
|
1205
1205
|
return lt || (lt = 1, (function(e) {
|
|
1206
|
-
const t = H(), i = Sn(), r = An(), n = vn(), o = Nn(), a = At(), s = z(), c =
|
|
1206
|
+
const t = H(), i = Sn(), r = An(), n = vn(), o = Nn(), a = At(), s = z(), c = Bn();
|
|
1207
1207
|
function h(w) {
|
|
1208
1208
|
return unescape(encodeURIComponent(w)).length;
|
|
1209
1209
|
}
|
|
1210
|
-
function f(w,
|
|
1210
|
+
function f(w, m, p) {
|
|
1211
1211
|
const E = [];
|
|
1212
|
-
let
|
|
1213
|
-
for (; (
|
|
1212
|
+
let P;
|
|
1213
|
+
for (; (P = w.exec(p)) !== null; )
|
|
1214
1214
|
E.push({
|
|
1215
|
-
data:
|
|
1216
|
-
index:
|
|
1217
|
-
mode:
|
|
1218
|
-
length:
|
|
1215
|
+
data: P[0],
|
|
1216
|
+
index: P.index,
|
|
1217
|
+
mode: m,
|
|
1218
|
+
length: P[0].length
|
|
1219
1219
|
});
|
|
1220
1220
|
return E;
|
|
1221
1221
|
}
|
|
1222
1222
|
function u(w) {
|
|
1223
|
-
const
|
|
1224
|
-
let E,
|
|
1225
|
-
return s.isKanjiModeEnabled() ? (E = f(a.BYTE, t.BYTE, w),
|
|
1223
|
+
const m = f(a.NUMERIC, t.NUMERIC, w), p = f(a.ALPHANUMERIC, t.ALPHANUMERIC, w);
|
|
1224
|
+
let E, P;
|
|
1225
|
+
return s.isKanjiModeEnabled() ? (E = f(a.BYTE, t.BYTE, w), P = f(a.KANJI, t.KANJI, w)) : (E = f(a.BYTE_KANJI, t.BYTE, w), P = []), m.concat(p, E, P).sort(function(S, R) {
|
|
1226
1226
|
return S.index - R.index;
|
|
1227
1227
|
}).map(function(S) {
|
|
1228
1228
|
return {
|
|
@@ -1232,8 +1232,8 @@ function Bn() {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
|
-
function d(w,
|
|
1236
|
-
switch (
|
|
1235
|
+
function d(w, m) {
|
|
1236
|
+
switch (m) {
|
|
1237
1237
|
case t.NUMERIC:
|
|
1238
1238
|
return i.getBitsLength(w);
|
|
1239
1239
|
case t.ALPHANUMERIC:
|
|
@@ -1245,69 +1245,69 @@ function Bn() {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
function g(w) {
|
|
1248
|
-
return w.reduce(function(
|
|
1249
|
-
const E =
|
|
1250
|
-
return E && E.mode ===
|
|
1248
|
+
return w.reduce(function(m, p) {
|
|
1249
|
+
const E = m.length - 1 >= 0 ? m[m.length - 1] : null;
|
|
1250
|
+
return E && E.mode === p.mode ? (m[m.length - 1].data += p.data, m) : (m.push(p), m);
|
|
1251
1251
|
}, []);
|
|
1252
1252
|
}
|
|
1253
1253
|
function b(w) {
|
|
1254
|
-
const
|
|
1255
|
-
for (let
|
|
1256
|
-
const E = w[
|
|
1254
|
+
const m = [];
|
|
1255
|
+
for (let p = 0; p < w.length; p++) {
|
|
1256
|
+
const E = w[p];
|
|
1257
1257
|
switch (E.mode) {
|
|
1258
1258
|
case t.NUMERIC:
|
|
1259
|
-
|
|
1259
|
+
m.push([
|
|
1260
1260
|
E,
|
|
1261
1261
|
{ data: E.data, mode: t.ALPHANUMERIC, length: E.length },
|
|
1262
1262
|
{ data: E.data, mode: t.BYTE, length: E.length }
|
|
1263
1263
|
]);
|
|
1264
1264
|
break;
|
|
1265
1265
|
case t.ALPHANUMERIC:
|
|
1266
|
-
|
|
1266
|
+
m.push([
|
|
1267
1267
|
E,
|
|
1268
1268
|
{ data: E.data, mode: t.BYTE, length: E.length }
|
|
1269
1269
|
]);
|
|
1270
1270
|
break;
|
|
1271
1271
|
case t.KANJI:
|
|
1272
|
-
|
|
1272
|
+
m.push([
|
|
1273
1273
|
E,
|
|
1274
1274
|
{ data: E.data, mode: t.BYTE, length: h(E.data) }
|
|
1275
1275
|
]);
|
|
1276
1276
|
break;
|
|
1277
1277
|
case t.BYTE:
|
|
1278
|
-
|
|
1278
|
+
m.push([
|
|
1279
1279
|
{ data: E.data, mode: t.BYTE, length: h(E.data) }
|
|
1280
1280
|
]);
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
|
-
return
|
|
1283
|
+
return m;
|
|
1284
1284
|
}
|
|
1285
|
-
function y(w,
|
|
1286
|
-
const
|
|
1287
|
-
let
|
|
1285
|
+
function y(w, m) {
|
|
1286
|
+
const p = {}, E = { start: {} };
|
|
1287
|
+
let P = ["start"];
|
|
1288
1288
|
for (let I = 0; I < w.length; I++) {
|
|
1289
1289
|
const S = w[I], R = [];
|
|
1290
1290
|
for (let C = 0; C < S.length; C++) {
|
|
1291
1291
|
const v = S[C], T = "" + I + C;
|
|
1292
|
-
R.push(T),
|
|
1293
|
-
for (let A = 0; A <
|
|
1294
|
-
const M =
|
|
1295
|
-
|
|
1292
|
+
R.push(T), p[T] = { node: v, lastCount: 0 }, E[T] = {};
|
|
1293
|
+
for (let A = 0; A < P.length; A++) {
|
|
1294
|
+
const M = P[A];
|
|
1295
|
+
p[M] && p[M].node.mode === v.mode ? (E[M][T] = d(p[M].lastCount + v.length, v.mode) - d(p[M].lastCount, v.mode), p[M].lastCount += v.length) : (p[M] && (p[M].lastCount = v.length), E[M][T] = d(v.length, v.mode) + 4 + t.getCharCountIndicator(v.mode, m));
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
|
|
1298
|
+
P = R;
|
|
1299
1299
|
}
|
|
1300
|
-
for (let I = 0; I <
|
|
1301
|
-
E[
|
|
1302
|
-
return { map: E, table:
|
|
1300
|
+
for (let I = 0; I < P.length; I++)
|
|
1301
|
+
E[P[I]].end = 0;
|
|
1302
|
+
return { map: E, table: p };
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
let
|
|
1304
|
+
function B(w, m) {
|
|
1305
|
+
let p;
|
|
1306
1306
|
const E = t.getBestModeForData(w);
|
|
1307
|
-
if (
|
|
1308
|
-
throw new Error('"' + w + '" cannot be encoded with mode ' + t.toString(
|
|
1307
|
+
if (p = t.from(m, E), p !== t.BYTE && p.bit < E.bit)
|
|
1308
|
+
throw new Error('"' + w + '" cannot be encoded with mode ' + t.toString(p) + `.
|
|
1309
1309
|
Suggested mode is: ` + t.toString(E));
|
|
1310
|
-
switch (
|
|
1310
|
+
switch (p === t.KANJI && !s.isKanjiModeEnabled() && (p = t.BYTE), p) {
|
|
1311
1311
|
case t.NUMERIC:
|
|
1312
1312
|
return new i(w);
|
|
1313
1313
|
case t.ALPHANUMERIC:
|
|
@@ -1318,18 +1318,18 @@ function Bn() {
|
|
|
1318
1318
|
return new n(w);
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
e.fromArray = function(
|
|
1322
|
-
return
|
|
1323
|
-
return typeof E == "string" ?
|
|
1321
|
+
e.fromArray = function(m) {
|
|
1322
|
+
return m.reduce(function(p, E) {
|
|
1323
|
+
return typeof E == "string" ? p.push(B(E, null)) : E.data && p.push(B(E.data, E.mode)), p;
|
|
1324
1324
|
}, []);
|
|
1325
|
-
}, e.fromString = function(
|
|
1326
|
-
const E = u(
|
|
1325
|
+
}, e.fromString = function(m, p) {
|
|
1326
|
+
const E = u(m, s.isKanjiModeEnabled()), P = b(E), I = y(P, p), S = c.find_path(I.map, "start", "end"), R = [];
|
|
1327
1327
|
for (let C = 1; C < S.length - 1; C++)
|
|
1328
1328
|
R.push(I.table[S[C]].node);
|
|
1329
1329
|
return e.fromArray(g(R));
|
|
1330
|
-
}, e.rawSplit = function(
|
|
1330
|
+
}, e.rawSplit = function(m) {
|
|
1331
1331
|
return e.fromArray(
|
|
1332
|
-
u(
|
|
1332
|
+
u(m, s.isKanjiModeEnabled())
|
|
1333
1333
|
);
|
|
1334
1334
|
};
|
|
1335
1335
|
})(Te)), Te;
|
|
@@ -1338,7 +1338,7 @@ var ut;
|
|
|
1338
1338
|
function Ln() {
|
|
1339
1339
|
if (ut) return le;
|
|
1340
1340
|
ut = 1;
|
|
1341
|
-
const e = z(), t = Ue(), i = pn(), r = wn(), n = Cn(), o = In(), a = yn(), s = bt(), c = Mn(), h = Rn(), f = bn(), u = H(), d =
|
|
1341
|
+
const e = z(), t = Ue(), i = pn(), r = wn(), n = Cn(), o = In(), a = yn(), s = bt(), c = Mn(), h = Rn(), f = bn(), u = H(), d = Pn();
|
|
1342
1342
|
function g(I, S) {
|
|
1343
1343
|
const R = I.size, C = o.getPositions(S);
|
|
1344
1344
|
for (let v = 0; v < C.length; v++) {
|
|
@@ -1365,7 +1365,7 @@ function Ln() {
|
|
|
1365
1365
|
A === -2 || A === 2 || M === -2 || M === 2 || A === 0 && M === 0 ? I.set(v + A, T + M, !0, !0) : I.set(v + A, T + M, !1, !0);
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function B(I, S) {
|
|
1369
1369
|
const R = I.size, C = h.getEncodedBits(S);
|
|
1370
1370
|
let v, T, A;
|
|
1371
1371
|
for (let M = 0; M < 18; M++)
|
|
@@ -1378,7 +1378,7 @@ function Ln() {
|
|
|
1378
1378
|
A = (v >> T & 1) === 1, T < 6 ? I.set(T, 8, A, !0) : T < 8 ? I.set(T + 1, 8, A, !0) : I.set(C - 15 + T, 8, A, !0), T < 8 ? I.set(8, C - T - 1, A, !0) : T < 9 ? I.set(8, 15 - T - 1 + 1, A, !0) : I.set(8, 15 - T - 1, A, !0);
|
|
1379
1379
|
I.set(C - 8, 8, 1, !0);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function m(I, S) {
|
|
1382
1382
|
const R = I.size;
|
|
1383
1383
|
let C = -1, v = R - 1, T = 7, A = 0;
|
|
1384
1384
|
for (let M = R - 1; M > 0; M -= 2)
|
|
@@ -1394,7 +1394,7 @@ function Ln() {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function p(I, S, R) {
|
|
1398
1398
|
const C = new i();
|
|
1399
1399
|
R.forEach(function(N) {
|
|
1400
1400
|
C.put(N.mode.bit, 4), C.put(N.getLength(), u.getCharCountIndicator(N.mode, I)), N.write(C);
|
|
@@ -1427,7 +1427,7 @@ function Ln() {
|
|
|
1427
1427
|
ie[qe++] = Oe[k][U];
|
|
1428
1428
|
return ie;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function P(I, S, R, C) {
|
|
1431
1431
|
let v;
|
|
1432
1432
|
if (Array.isArray(I))
|
|
1433
1433
|
v = d.fromArray(I);
|
|
@@ -1452,8 +1452,8 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
1452
1452
|
Minimum version required to store current data is: ` + T + `.
|
|
1453
1453
|
`
|
|
1454
1454
|
);
|
|
1455
|
-
const A =
|
|
1456
|
-
return g(N, S), b(N), y(N, S), w(N, R, 0), S >= 7 &&
|
|
1455
|
+
const A = p(S, R, v), M = e.getSymbolSize(S), N = new r(M);
|
|
1456
|
+
return g(N, S), b(N), y(N, S), w(N, R, 0), S >= 7 && B(N, S), m(N, A), isNaN(C) && (C = a.getBestMask(
|
|
1457
1457
|
N,
|
|
1458
1458
|
w.bind(null, N, R)
|
|
1459
1459
|
)), a.applyMask(C, N), w(N, R, C), {
|
|
@@ -1468,7 +1468,7 @@ Minimum version required to store current data is: ` + T + `.
|
|
|
1468
1468
|
if (typeof S > "u" || S === "")
|
|
1469
1469
|
throw new Error("No input text");
|
|
1470
1470
|
let C = t.M, v, T;
|
|
1471
|
-
return typeof R < "u" && (C = t.from(R.errorCorrectionLevel, t.M), v = h.from(R.version), T = a.from(R.maskPattern), R.toSJISFunc && e.setToSJISFunction(R.toSJISFunc)),
|
|
1471
|
+
return typeof R < "u" && (C = t.from(R.errorCorrectionLevel, t.M), v = h.from(R.version), T = a.from(R.maskPattern), R.toSJISFunc && e.setToSJISFunction(R.toSJISFunc)), P(S, v, C, T);
|
|
1472
1472
|
}, le;
|
|
1473
1473
|
}
|
|
1474
1474
|
var ve = {}, Ne = {}, dt;
|
|
@@ -1517,8 +1517,8 @@ function vt() {
|
|
|
1517
1517
|
for (let g = 0; g < h; g++) {
|
|
1518
1518
|
let b = (d * h + g) * 4, y = o.color.light;
|
|
1519
1519
|
if (d >= f && g >= f && d < h - f && g < h - f) {
|
|
1520
|
-
const
|
|
1521
|
-
y = u[s[
|
|
1520
|
+
const B = Math.floor((d - f) / c), w = Math.floor((g - f) / c);
|
|
1521
|
+
y = u[s[B * a + w] ? 1 : 0];
|
|
1522
1522
|
}
|
|
1523
1523
|
r[b++] = y.r, r[b++] = y.g, r[b++] = y.b, r[b] = y.a;
|
|
1524
1524
|
}
|
|
@@ -1552,9 +1552,9 @@ function Dn() {
|
|
|
1552
1552
|
};
|
|
1553
1553
|
})(ve)), ve;
|
|
1554
1554
|
}
|
|
1555
|
-
var
|
|
1555
|
+
var Be = {}, ht;
|
|
1556
1556
|
function Fn() {
|
|
1557
|
-
if (ht) return
|
|
1557
|
+
if (ht) return Be;
|
|
1558
1558
|
ht = 1;
|
|
1559
1559
|
const e = vt();
|
|
1560
1560
|
function t(n, o) {
|
|
@@ -1573,11 +1573,11 @@ function Fn() {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
return s;
|
|
1575
1575
|
}
|
|
1576
|
-
return
|
|
1577
|
-
const c = e.getOptions(a), h = o.modules.size, f = o.modules.data, u = h + c.margin * 2, d = c.color.light.a ? "<path " + t(c.color.light, "fill") + ' d="M0 0h' + u + "v" + u + 'H0z"/>' : "", g = "<path " + t(c.color.dark, "stroke") + ' d="' + r(f, h, c.margin) + '"/>', b = 'viewBox="0 0 ' + u + " " + u + '"',
|
|
1576
|
+
return Be.render = function(o, a, s) {
|
|
1577
|
+
const c = e.getOptions(a), h = o.modules.size, f = o.modules.data, u = h + c.margin * 2, d = c.color.light.a ? "<path " + t(c.color.light, "fill") + ' d="M0 0h' + u + "v" + u + 'H0z"/>' : "", g = "<path " + t(c.color.dark, "stroke") + ' d="' + r(f, h, c.margin) + '"/>', b = 'viewBox="0 0 ' + u + " " + u + '"', B = '<svg xmlns="http://www.w3.org/2000/svg" ' + (c.width ? 'width="' + c.width + '" height="' + c.width + '" ' : "") + b + ' shape-rendering="crispEdges">' + d + g + `</svg>
|
|
1578
1578
|
`;
|
|
1579
|
-
return typeof s == "function" && s(null,
|
|
1580
|
-
},
|
|
1579
|
+
return typeof s == "function" && s(null, B), B;
|
|
1580
|
+
}, Be;
|
|
1581
1581
|
}
|
|
1582
1582
|
var gt;
|
|
1583
1583
|
function Un() {
|
|
@@ -1717,11 +1717,11 @@ const _n = ({
|
|
|
1717
1717
|
manager: r,
|
|
1718
1718
|
onResend: n
|
|
1719
1719
|
}) => {
|
|
1720
|
-
const { t: o } = F(), [a, s] = _(e), [c, h] = _(!1), [f, u] = _(!1), d = xt(e)?.code ?? "", g = Hn(a, e), b = J((
|
|
1721
|
-
s(
|
|
1720
|
+
const { t: o } = F(), [a, s] = _(e), [c, h] = _(!1), [f, u] = _(!1), d = xt(e)?.code ?? "", g = Hn(a, e), b = J((m, p) => {
|
|
1721
|
+
s(m), h(p);
|
|
1722
1722
|
}, []), y = J(() => {
|
|
1723
1723
|
u(!0), r.sendSms(a), u(!1);
|
|
1724
|
-
}, [r, a]),
|
|
1724
|
+
}, [r, a]), B = J(() => {
|
|
1725
1725
|
y(), n();
|
|
1726
1726
|
}, [y, n]), w = J(() => {
|
|
1727
1727
|
s(e), h(!1), r.resetSms();
|
|
@@ -1732,7 +1732,7 @@ const _n = ({
|
|
|
1732
1732
|
qn,
|
|
1733
1733
|
{
|
|
1734
1734
|
formattedPhone: g,
|
|
1735
|
-
onResend:
|
|
1735
|
+
onResend: B,
|
|
1736
1736
|
onChangePhone: w
|
|
1737
1737
|
}
|
|
1738
1738
|
) : /* @__PURE__ */ l(
|
|
@@ -1986,22 +1986,22 @@ async function $n() {
|
|
|
1986
1986
|
const e = await Zn();
|
|
1987
1987
|
return e.main && Qn(e.main, e.buttonColor), e;
|
|
1988
1988
|
}
|
|
1989
|
-
const
|
|
1989
|
+
const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
|
|
1990
1990
|
PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
|
|
1991
1991
|
EMAIL: () => import("../email/email.es.js").then((e) => e.Email),
|
|
1992
1992
|
SELFIE: () => import("../selfie/selfie.es.js").then((e) => e.Selfie),
|
|
1993
1993
|
AUTHENTICATION: () => import("../authentication/authentication.es.js").then((e) => e.Authentication),
|
|
1994
|
-
ID:
|
|
1995
|
-
TUTORIAL_ID:
|
|
1996
|
-
SECOND_ID:
|
|
1994
|
+
ID: Pe,
|
|
1995
|
+
TUTORIAL_ID: Pe,
|
|
1996
|
+
SECOND_ID: Pe,
|
|
1997
1997
|
FACE_MATCH: () => import("../faceMatch-BjdNG_e0.js").then((e) => e.FaceMatch),
|
|
1998
1998
|
CURP_VALIDATION: () => import("../curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
|
|
1999
1999
|
GOVT_VALIDATION_PROVISIONING: () => import("../governmentValidation/governmentValidation.es.js").then(
|
|
2000
2000
|
(e) => e.GovernmentValidation
|
|
2001
2001
|
),
|
|
2002
2002
|
GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
2003
|
-
EXTERNAL_VERIFICATION: () => import("../ekycModule-
|
|
2004
|
-
EKYB: () => import("../ekybModule-
|
|
2003
|
+
EXTERNAL_VERIFICATION: () => import("../ekycModule-fxKjsL1i.js").then((e) => e.EkycModule),
|
|
2004
|
+
EKYB: () => import("../ekybModule-CV7jE8qz.js").then((e) => e.EkybModule),
|
|
2005
2005
|
DOCUMENT_CAPTURE: () => import("../documentCapture-PdKA2frR.js").then(
|
|
2006
2006
|
(e) => e.DocumentCapture
|
|
2007
2007
|
),
|
|
@@ -2009,7 +2009,7 @@ const Be = () => import("../id/id.es.js").then((e) => e.Id), ke = {
|
|
|
2009
2009
|
(e) => e.DocumentCapture
|
|
2010
2010
|
)
|
|
2011
2011
|
};
|
|
2012
|
-
function
|
|
2012
|
+
function Bt() {
|
|
2013
2013
|
return zt({
|
|
2014
2014
|
modules: {
|
|
2015
2015
|
PHONE: tn,
|
|
@@ -2030,7 +2030,7 @@ function Pt() {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
2033
|
-
async function
|
|
2033
|
+
async function Pt(e) {
|
|
2034
2034
|
await an({
|
|
2035
2035
|
apiURL: e.apiURL,
|
|
2036
2036
|
token: e.token,
|
|
@@ -2108,14 +2108,14 @@ function pt(e) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
};
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function Pr(e) {
|
|
2112
2112
|
const { token: t } = e;
|
|
2113
2113
|
if (V.has(t))
|
|
2114
2114
|
return pt(t);
|
|
2115
2115
|
let i, r;
|
|
2116
2116
|
const n = new Promise((c, h) => {
|
|
2117
2117
|
i = c, r = h;
|
|
2118
|
-
}), o =
|
|
2118
|
+
}), o = Bt(), a = {
|
|
2119
2119
|
status: "loading",
|
|
2120
2120
|
flowManager: o,
|
|
2121
2121
|
config: e,
|
|
@@ -2125,7 +2125,7 @@ function Br(e) {
|
|
|
2125
2125
|
};
|
|
2126
2126
|
return V.set(t, a), (async () => {
|
|
2127
2127
|
try {
|
|
2128
|
-
await
|
|
2128
|
+
await Pt({
|
|
2129
2129
|
apiURL: e.apiURL,
|
|
2130
2130
|
token: e.token,
|
|
2131
2131
|
lang: e.lang
|
|
@@ -2161,7 +2161,7 @@ function nr(e) {
|
|
|
2161
2161
|
if (d)
|
|
2162
2162
|
return a.current = d.flowManager, d.uiConfig && te(d.uiConfig), { status: "ready", flowManager: d.flowManager };
|
|
2163
2163
|
}
|
|
2164
|
-
const u =
|
|
2164
|
+
const u = Bt();
|
|
2165
2165
|
return a.current = u, f?.status === "error" ? {
|
|
2166
2166
|
status: "error",
|
|
2167
2167
|
error: f.error ?? "Preload failed",
|
|
@@ -2190,7 +2190,7 @@ function nr(e) {
|
|
|
2190
2190
|
return;
|
|
2191
2191
|
h.current = !0, (async () => {
|
|
2192
2192
|
try {
|
|
2193
|
-
await
|
|
2193
|
+
await Pt({ apiURL: t, token: i, lang: r });
|
|
2194
2194
|
const d = n ? Promise.resolve() : Lt().then((g) => {
|
|
2195
2195
|
g.uiConfig && te(g.uiConfig);
|
|
2196
2196
|
});
|
|
@@ -2320,7 +2320,7 @@ const ir = ({
|
|
|
2320
2320
|
flowId: g,
|
|
2321
2321
|
disableSmsOption: b,
|
|
2322
2322
|
addContinueToDesktop: y,
|
|
2323
|
-
qrPhishingResistance:
|
|
2323
|
+
qrPhishingResistance: B
|
|
2324
2324
|
}
|
|
2325
2325
|
} = s;
|
|
2326
2326
|
if (h)
|
|
@@ -2331,7 +2331,7 @@ const ir = ({
|
|
|
2331
2331
|
flowId: g,
|
|
2332
2332
|
disableSmsOption: b,
|
|
2333
2333
|
addContinueToDesktop: y,
|
|
2334
|
-
qrPhishingResistance:
|
|
2334
|
+
qrPhishingResistance: B,
|
|
2335
2335
|
authHint: e.authHint,
|
|
2336
2336
|
lang: e.lang
|
|
2337
2337
|
},
|
|
@@ -2375,8 +2375,8 @@ const ir = ({
|
|
|
2375
2375
|
{
|
|
2376
2376
|
config: d,
|
|
2377
2377
|
onFinish: () => c.completeModule(),
|
|
2378
|
-
onError: (
|
|
2379
|
-
i?.(
|
|
2378
|
+
onError: (p) => {
|
|
2379
|
+
i?.(p ?? "Selfie verification error");
|
|
2380
2380
|
}
|
|
2381
2381
|
},
|
|
2382
2382
|
`selfie-${s.currentStepIndex}`
|
|
@@ -2387,8 +2387,8 @@ const ir = ({
|
|
|
2387
2387
|
{
|
|
2388
2388
|
config: { ...d, authHint: e.authHint },
|
|
2389
2389
|
onFinish: () => c.completeModule(),
|
|
2390
|
-
onError: (
|
|
2391
|
-
i?.(
|
|
2390
|
+
onError: (p) => {
|
|
2391
|
+
i?.(p ?? "Authentication error");
|
|
2392
2392
|
}
|
|
2393
2393
|
},
|
|
2394
2394
|
`authentication-${s.currentStepIndex}`
|
|
@@ -2399,24 +2399,24 @@ const ir = ({
|
|
|
2399
2399
|
{
|
|
2400
2400
|
config: d,
|
|
2401
2401
|
onFinish: () => c.completeModule(),
|
|
2402
|
-
onError: (
|
|
2403
|
-
i?.(
|
|
2402
|
+
onError: (p) => {
|
|
2403
|
+
i?.(p ?? "Phone verification error");
|
|
2404
2404
|
}
|
|
2405
2405
|
},
|
|
2406
2406
|
`phone-${s.currentStepIndex}`
|
|
2407
2407
|
) });
|
|
2408
2408
|
if (u === "EMAIL") {
|
|
2409
|
-
const
|
|
2410
|
-
return !
|
|
2409
|
+
const m = d;
|
|
2410
|
+
return !m || typeof m.otpVerification != "boolean" || typeof m.otpExpirationInMinutes != "number" ? /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l("div", { children: "Error: Invalid email configuration" }) }) : /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
2411
2411
|
w,
|
|
2412
2412
|
{
|
|
2413
2413
|
config: {
|
|
2414
|
-
...
|
|
2415
|
-
prefill:
|
|
2414
|
+
...m,
|
|
2415
|
+
prefill: m.prefill ?? !1
|
|
2416
2416
|
},
|
|
2417
2417
|
onFinish: () => c.completeModule(),
|
|
2418
|
-
onError: (
|
|
2419
|
-
i?.(
|
|
2418
|
+
onError: (p) => {
|
|
2419
|
+
i?.(p ?? "Email verification error");
|
|
2420
2420
|
}
|
|
2421
2421
|
},
|
|
2422
2422
|
`email-${s.currentStepIndex}`
|
|
@@ -2424,28 +2424,28 @@ const ir = ({
|
|
|
2424
2424
|
}
|
|
2425
2425
|
if (u === "TUTORIAL_ID" || u === "SECOND_ID" || // Only render ID if TUTORIAL_ID doesn't exist (otherwise useEffect will skip it)
|
|
2426
2426
|
u === "ID" && !s.steps.includes("TUTORIAL_ID")) {
|
|
2427
|
-
const
|
|
2427
|
+
const m = d, E = u === "SECOND_ID" ? { ...m, isSecondId: !0 } : m;
|
|
2428
2428
|
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
2429
2429
|
w,
|
|
2430
2430
|
{
|
|
2431
2431
|
config: E,
|
|
2432
2432
|
onFinish: () => c.completeModule(),
|
|
2433
|
-
onError: (
|
|
2434
|
-
i?.(
|
|
2433
|
+
onError: (P) => {
|
|
2434
|
+
i?.(P ?? "ID capture error");
|
|
2435
2435
|
}
|
|
2436
2436
|
},
|
|
2437
2437
|
`id-${s.currentStepIndex}`
|
|
2438
2438
|
) });
|
|
2439
2439
|
}
|
|
2440
2440
|
if (u === "FACE_MATCH") {
|
|
2441
|
-
const
|
|
2442
|
-
variant:
|
|
2443
|
-
disableFaceMatchAnimation:
|
|
2441
|
+
const m = d, p = {
|
|
2442
|
+
variant: m.matchingType,
|
|
2443
|
+
disableFaceMatchAnimation: m.disableFaceMatchAnimation ?? !1
|
|
2444
2444
|
};
|
|
2445
2445
|
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
2446
2446
|
w,
|
|
2447
2447
|
{
|
|
2448
|
-
config:
|
|
2448
|
+
config: p,
|
|
2449
2449
|
onFinish: () => c.completeModule(),
|
|
2450
2450
|
onError: (E) => {
|
|
2451
2451
|
i?.(E ?? "Face match error");
|
|
@@ -2460,8 +2460,8 @@ const ir = ({
|
|
|
2460
2460
|
{
|
|
2461
2461
|
config: d,
|
|
2462
2462
|
onFinish: () => c.completeModule(),
|
|
2463
|
-
onError: (
|
|
2464
|
-
i?.(
|
|
2463
|
+
onError: (p) => {
|
|
2464
|
+
i?.(p ?? "CURP validation error");
|
|
2465
2465
|
}
|
|
2466
2466
|
},
|
|
2467
2467
|
`curp-validation-${s.currentStepIndex}`
|
|
@@ -2472,8 +2472,8 @@ const ir = ({
|
|
|
2472
2472
|
{
|
|
2473
2473
|
config: d,
|
|
2474
2474
|
onFinish: () => c.completeModule(),
|
|
2475
|
-
onError: (
|
|
2476
|
-
i?.(
|
|
2475
|
+
onError: (p) => {
|
|
2476
|
+
i?.(p ?? "Government validation error");
|
|
2477
2477
|
}
|
|
2478
2478
|
},
|
|
2479
2479
|
`govt-validation-${s.currentStepIndex}`
|
|
@@ -2484,8 +2484,8 @@ const ir = ({
|
|
|
2484
2484
|
{
|
|
2485
2485
|
config: { allowSkip: d.allowUserToSkipGeolocation },
|
|
2486
2486
|
onFinish: () => c.completeModule(),
|
|
2487
|
-
onError: (
|
|
2488
|
-
i?.(
|
|
2487
|
+
onError: (p) => {
|
|
2488
|
+
i?.(p ?? "Geolocation error");
|
|
2489
2489
|
}
|
|
2490
2490
|
},
|
|
2491
2491
|
`geolocation-${s.currentStepIndex}`
|
|
@@ -2496,8 +2496,8 @@ const ir = ({
|
|
|
2496
2496
|
{
|
|
2497
2497
|
config: { flowId: s.flow.flowId },
|
|
2498
2498
|
onFinish: () => c.completeModule(),
|
|
2499
|
-
onError: (
|
|
2500
|
-
i?.(
|
|
2499
|
+
onError: (m) => {
|
|
2500
|
+
i?.(m ?? "External verification error");
|
|
2501
2501
|
}
|
|
2502
2502
|
},
|
|
2503
2503
|
`ekyc-${s.currentStepIndex}`
|
|
@@ -2508,23 +2508,23 @@ const ir = ({
|
|
|
2508
2508
|
{
|
|
2509
2509
|
config: d,
|
|
2510
2510
|
onFinish: () => c.completeModule(),
|
|
2511
|
-
onError: (
|
|
2512
|
-
i?.(
|
|
2511
|
+
onError: (m) => {
|
|
2512
|
+
i?.(m ?? "Document capture error");
|
|
2513
2513
|
}
|
|
2514
2514
|
},
|
|
2515
2515
|
`document-capture-${s.currentStepIndex}`
|
|
2516
2516
|
) });
|
|
2517
2517
|
if (u === "ADDRESS") {
|
|
2518
|
-
const
|
|
2518
|
+
const m = d, p = {
|
|
2519
2519
|
processingType: "addressStatement",
|
|
2520
|
-
allowSkipDocumentCapture: !
|
|
2521
|
-
title:
|
|
2522
|
-
text:
|
|
2520
|
+
allowSkipDocumentCapture: !m.disableSkipPoa,
|
|
2521
|
+
title: m.title,
|
|
2522
|
+
text: m.text
|
|
2523
2523
|
};
|
|
2524
2524
|
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
2525
2525
|
w,
|
|
2526
2526
|
{
|
|
2527
|
-
config:
|
|
2527
|
+
config: p,
|
|
2528
2528
|
onFinish: () => c.completeModule(),
|
|
2529
2529
|
onError: (E) => {
|
|
2530
2530
|
i?.(E ?? "Address capture error");
|
|
@@ -2533,18 +2533,26 @@ const ir = ({
|
|
|
2533
2533
|
`address-${s.currentStepIndex}`
|
|
2534
2534
|
) });
|
|
2535
2535
|
}
|
|
2536
|
-
if (u === "EKYB")
|
|
2536
|
+
if (u === "EKYB") {
|
|
2537
|
+
const m = d, p = {
|
|
2538
|
+
flowId: g,
|
|
2539
|
+
checkBusinessName: m.checkBusinessName,
|
|
2540
|
+
checkAddress: m.checkAddress,
|
|
2541
|
+
checkTaxId: m.checkTaxId,
|
|
2542
|
+
checkUniqueBeneficialOwner: m.checkUniqueBeneficialOwner
|
|
2543
|
+
};
|
|
2537
2544
|
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
2538
2545
|
w,
|
|
2539
2546
|
{
|
|
2540
|
-
config:
|
|
2547
|
+
config: p,
|
|
2541
2548
|
onFinish: () => c.completeModule(),
|
|
2542
|
-
onError: (
|
|
2543
|
-
i?.(
|
|
2549
|
+
onError: (E) => {
|
|
2550
|
+
i?.(E ?? "eKYB verification error");
|
|
2544
2551
|
}
|
|
2545
2552
|
},
|
|
2546
2553
|
`ekyb-${s.currentStepIndex}`
|
|
2547
2554
|
) });
|
|
2555
|
+
}
|
|
2548
2556
|
}
|
|
2549
2557
|
return null;
|
|
2550
2558
|
}, sr = ({
|
|
@@ -2563,5 +2571,5 @@ const ir = ({
|
|
|
2563
2571
|
Tt(sr, "incode-flow");
|
|
2564
2572
|
export {
|
|
2565
2573
|
sr as IncodeFlow,
|
|
2566
|
-
|
|
2574
|
+
Pr as preloadIncodeFlow
|
|
2567
2575
|
};
|