@incodetech/web 0.0.0-dev-20260427-0fc8f18 → 0.0.0-dev-20260427-b544b2e
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/flow/flow.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as s } from "../uiConfig-CwpQ-IM6.js";
|
|
|
4
4
|
import { o as c, t as l } from "../incodeComponent-DmPlyJO-.js";
|
|
5
5
|
import { t as u } from "../transitionSpinner-CU8-yMmE.js";
|
|
6
6
|
import { t as d } from "../incodeModule-BH9gV7jI.js";
|
|
7
|
-
import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-
|
|
7
|
+
import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-rt24SpRg.js";
|
|
8
8
|
import { getDeviceClass as w } from "@incodetech/core/device";
|
|
9
9
|
import { getRequiredWasmPipelines as T } from "@incodetech/core/flow";
|
|
10
10
|
import { createSession as E, validateQrUuid as D } from "@incodetech/core/session";
|
|
@@ -7,15 +7,16 @@ import { t as p } from "./incode-logo-DhG3d-rP.js";
|
|
|
7
7
|
import { n as m, t as h } from "./verifiedByIncode-CiuBhYBD.js";
|
|
8
8
|
import { t as g } from "./spinner-DLV8Z1TT.js";
|
|
9
9
|
import "./spinner-CcWzwNeZ.js";
|
|
10
|
-
import { t as _ } from "./
|
|
10
|
+
import { t as _ } from "./transitionSpinner-CU8-yMmE.js";
|
|
11
|
+
import { t as v } from "./button-i4SPU5G7.js";
|
|
11
12
|
import "./icons-CR0w16NT.js";
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { createRedirectToMobileManager as
|
|
13
|
+
import { t as y } from "./successIcon-Dklx5JWI.js";
|
|
14
|
+
import { n as b } from "./countries-BntFjJJG.js";
|
|
15
|
+
import { t as x } from "./incodeModule-BH9gV7jI.js";
|
|
16
|
+
import { t as S } from "./tabs-NxklvgNU.js";
|
|
17
|
+
import { createRedirectToMobileManager as C } from "@incodetech/core/redirect-to-mobile";
|
|
17
18
|
//#region src/modules/redirect-to-mobile/redirectHeader.tsx
|
|
18
|
-
var
|
|
19
|
+
var w = ({ logoSrc: e }) => {
|
|
19
20
|
let { t: n } = t();
|
|
20
21
|
return /* @__PURE__ */ l("header", {
|
|
21
22
|
class: "IncodeRedirectHeader",
|
|
@@ -40,30 +41,30 @@ var C = ({ logoSrc: e }) => {
|
|
|
40
41
|
})
|
|
41
42
|
]
|
|
42
43
|
});
|
|
43
|
-
},
|
|
44
|
+
}, T = ({ addContinueToDesktop: e, onContinueOnDesktop: n }) => {
|
|
44
45
|
let { t: r } = t();
|
|
45
46
|
return /* @__PURE__ */ l("footer", {
|
|
46
47
|
class: "IncodeRedirectBottomNav",
|
|
47
|
-
children: [e ? /* @__PURE__ */ l(
|
|
48
|
+
children: [e ? /* @__PURE__ */ l(v, {
|
|
48
49
|
variant: "link",
|
|
49
50
|
onClick: n,
|
|
50
51
|
children: r("redirect.continueOnDesktop")
|
|
51
52
|
}) : null, /* @__PURE__ */ l(h, {})]
|
|
52
53
|
});
|
|
53
|
-
},
|
|
54
|
+
}, E = ({ visible: e }) => {
|
|
54
55
|
let { t: n } = t();
|
|
55
56
|
return e ? /* @__PURE__ */ l("div", {
|
|
56
57
|
class: "IncodeRedirectToast",
|
|
57
|
-
children: [/* @__PURE__ */ l(
|
|
58
|
+
children: [/* @__PURE__ */ l(y, { size: 24 }), /* @__PURE__ */ l("span", {
|
|
58
59
|
class: "IncodeRedirectToastText",
|
|
59
60
|
children: n("redirect.linkResent")
|
|
60
61
|
})]
|
|
61
62
|
}) : null;
|
|
62
|
-
},
|
|
63
|
+
}, D = /* @__PURE__ */ e(((e, t) => {
|
|
63
64
|
t.exports = function() {
|
|
64
65
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
65
66
|
};
|
|
66
|
-
})),
|
|
67
|
+
})), O = /* @__PURE__ */ e(((e) => {
|
|
67
68
|
var t, n = [
|
|
68
69
|
0,
|
|
69
70
|
26,
|
|
@@ -125,7 +126,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
125
126
|
}, e.toSJIS = function(e) {
|
|
126
127
|
return t(e);
|
|
127
128
|
};
|
|
128
|
-
})),
|
|
129
|
+
})), k = /* @__PURE__ */ e(((e) => {
|
|
129
130
|
e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
|
|
130
131
|
function t(t) {
|
|
131
132
|
if (typeof t != "string") throw Error("Param is not a string");
|
|
@@ -151,7 +152,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
151
152
|
return r;
|
|
152
153
|
}
|
|
153
154
|
};
|
|
154
|
-
})),
|
|
155
|
+
})), A = /* @__PURE__ */ e(((e, t) => {
|
|
155
156
|
function n() {
|
|
156
157
|
this.buffer = [], this.length = 0;
|
|
157
158
|
}
|
|
@@ -171,7 +172,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
171
172
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
172
173
|
}
|
|
173
174
|
}, t.exports = n;
|
|
174
|
-
})),
|
|
175
|
+
})), ee = /* @__PURE__ */ e(((e, t) => {
|
|
175
176
|
function n(e) {
|
|
176
177
|
if (!e || e < 1) throw Error("BitMatrix size must be defined and greater than 0");
|
|
177
178
|
this.size = e, this.data = new Uint8Array(e * e), this.reservedBit = new Uint8Array(e * e);
|
|
@@ -186,8 +187,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
186
187
|
}, n.prototype.isReserved = function(e, t) {
|
|
187
188
|
return this.reservedBit[e * this.size + t];
|
|
188
189
|
}, t.exports = n;
|
|
189
|
-
})),
|
|
190
|
-
var t =
|
|
190
|
+
})), te = /* @__PURE__ */ e(((e) => {
|
|
191
|
+
var t = O().getSymbolSize;
|
|
191
192
|
e.getRowColCoords = function(e) {
|
|
192
193
|
if (e === 1) return [];
|
|
193
194
|
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];
|
|
@@ -198,8 +199,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
198
199
|
for (let e = 0; e < i; e++) for (let t = 0; t < i; t++) e === 0 && t === 0 || e === 0 && t === i - 1 || e === i - 1 && t === 0 || n.push([r[e], r[t]]);
|
|
199
200
|
return n;
|
|
200
201
|
};
|
|
201
|
-
})),
|
|
202
|
-
var t =
|
|
202
|
+
})), j = /* @__PURE__ */ e(((e) => {
|
|
203
|
+
var t = O().getSymbolSize, n = 7;
|
|
203
204
|
e.getPositions = function(e) {
|
|
204
205
|
let r = t(e);
|
|
205
206
|
return [
|
|
@@ -208,7 +209,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
208
209
|
[0, r - n]
|
|
209
210
|
];
|
|
210
211
|
};
|
|
211
|
-
})),
|
|
212
|
+
})), M = /* @__PURE__ */ e(((e) => {
|
|
212
213
|
e.Patterns = {
|
|
213
214
|
PATTERN000: 0,
|
|
214
215
|
PATTERN001: 1,
|
|
@@ -284,8 +285,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
284
285
|
}
|
|
285
286
|
return i;
|
|
286
287
|
};
|
|
287
|
-
})),
|
|
288
|
-
var t =
|
|
288
|
+
})), N = /* @__PURE__ */ e(((e) => {
|
|
289
|
+
var t = k(), n = [
|
|
289
290
|
1,
|
|
290
291
|
1,
|
|
291
292
|
1,
|
|
@@ -625,7 +626,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
625
626
|
default: return;
|
|
626
627
|
}
|
|
627
628
|
};
|
|
628
|
-
})),
|
|
629
|
+
})), P = /* @__PURE__ */ e(((e) => {
|
|
629
630
|
var t = new Uint8Array(512), n = new Uint8Array(256);
|
|
630
631
|
(function() {
|
|
631
632
|
let e = 1;
|
|
@@ -639,8 +640,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
639
640
|
}, e.mul = function(e, r) {
|
|
640
641
|
return e === 0 || r === 0 ? 0 : t[n[e] + n[r]];
|
|
641
642
|
};
|
|
642
|
-
})),
|
|
643
|
-
var t =
|
|
643
|
+
})), F = /* @__PURE__ */ e(((e) => {
|
|
644
|
+
var t = P();
|
|
644
645
|
e.mul = function(e, n) {
|
|
645
646
|
let r = new Uint8Array(e.length + n.length - 1);
|
|
646
647
|
for (let i = 0; i < e.length; i++) for (let a = 0; a < n.length; a++) r[i + a] ^= t.mul(e[i], n[a]);
|
|
@@ -660,8 +661,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
660
661
|
for (let i = 0; i < n; i++) r = e.mul(r, new Uint8Array([1, t.exp(i)]));
|
|
661
662
|
return r;
|
|
662
663
|
};
|
|
663
|
-
})),
|
|
664
|
-
var n =
|
|
664
|
+
})), I = /* @__PURE__ */ e(((e, t) => {
|
|
665
|
+
var n = F();
|
|
665
666
|
function r(e) {
|
|
666
667
|
this.genPoly = void 0, this.degree = e, this.degree && this.initialize(this.degree);
|
|
667
668
|
}
|
|
@@ -678,11 +679,11 @@ var C = ({ logoSrc: e }) => {
|
|
|
678
679
|
}
|
|
679
680
|
return r;
|
|
680
681
|
}, t.exports = r;
|
|
681
|
-
})),
|
|
682
|
+
})), L = /* @__PURE__ */ e(((e) => {
|
|
682
683
|
e.isValid = function(e) {
|
|
683
684
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
684
685
|
};
|
|
685
|
-
})),
|
|
686
|
+
})), R = /* @__PURE__ */ e(((e) => {
|
|
686
687
|
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])+";
|
|
687
688
|
r = r.replace(/u/g, "\\u");
|
|
688
689
|
var i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + r + ")(?:.|[\r\n]))+";
|
|
@@ -695,8 +696,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
695
696
|
}, e.testAlphanumeric = function(e) {
|
|
696
697
|
return s.test(e);
|
|
697
698
|
};
|
|
698
|
-
})),
|
|
699
|
-
var t =
|
|
699
|
+
})), z = /* @__PURE__ */ e(((e) => {
|
|
700
|
+
var t = L(), n = R();
|
|
700
701
|
e.NUMERIC = {
|
|
701
702
|
id: "Numeric",
|
|
702
703
|
bit: 1,
|
|
@@ -759,8 +760,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
759
760
|
return n;
|
|
760
761
|
}
|
|
761
762
|
};
|
|
762
|
-
})),
|
|
763
|
-
var t =
|
|
763
|
+
})), B = /* @__PURE__ */ e(((e) => {
|
|
764
|
+
var t = O(), n = N(), r = k(), i = z(), a = L(), o = 7973, s = t.getBCHDigit(o);
|
|
764
765
|
function c(t, n, r) {
|
|
765
766
|
for (let i = 1; i <= 40; i++) if (n <= e.getCapacity(i, r, t)) return i;
|
|
766
767
|
}
|
|
@@ -806,15 +807,15 @@ var C = ({ logoSrc: e }) => {
|
|
|
806
807
|
for (; t.getBCHDigit(n) - s >= 0;) n ^= o << t.getBCHDigit(n) - s;
|
|
807
808
|
return e << 12 | n;
|
|
808
809
|
};
|
|
809
|
-
})),
|
|
810
|
-
var t =
|
|
810
|
+
})), V = /* @__PURE__ */ e(((e) => {
|
|
811
|
+
var t = O(), n = 1335, r = 21522, i = t.getBCHDigit(n);
|
|
811
812
|
e.getEncodedBits = function(e, a) {
|
|
812
813
|
let o = e.bit << 3 | a, s = o << 10;
|
|
813
814
|
for (; t.getBCHDigit(s) - i >= 0;) s ^= n << t.getBCHDigit(s) - i;
|
|
814
815
|
return (o << 10 | s) ^ r;
|
|
815
816
|
};
|
|
816
|
-
})),
|
|
817
|
-
var n =
|
|
817
|
+
})), H = /* @__PURE__ */ e(((e, t) => {
|
|
818
|
+
var n = z();
|
|
818
819
|
function r(e) {
|
|
819
820
|
this.mode = n.NUMERIC, this.data = e.toString();
|
|
820
821
|
}
|
|
@@ -830,8 +831,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
830
831
|
let i = this.data.length - t;
|
|
831
832
|
i > 0 && (n = this.data.substr(t), r = parseInt(n, 10), e.put(r, i * 3 + 1));
|
|
832
833
|
}, t.exports = r;
|
|
833
|
-
})),
|
|
834
|
-
var n =
|
|
834
|
+
})), U = /* @__PURE__ */ e(((e, t) => {
|
|
835
|
+
var n = z(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
|
|
835
836
|
function i(e) {
|
|
836
837
|
this.mode = n.ALPHANUMERIC, this.data = e;
|
|
837
838
|
}
|
|
@@ -849,8 +850,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
849
850
|
}
|
|
850
851
|
this.data.length % 2 && e.put(r.indexOf(this.data[t]), 6);
|
|
851
852
|
}, t.exports = i;
|
|
852
|
-
})),
|
|
853
|
-
var n =
|
|
853
|
+
})), W = /* @__PURE__ */ e(((e, t) => {
|
|
854
|
+
var n = z();
|
|
854
855
|
function r(e) {
|
|
855
856
|
this.mode = n.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
|
|
856
857
|
}
|
|
@@ -863,8 +864,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
863
864
|
}, r.prototype.write = function(e) {
|
|
864
865
|
for (let t = 0, n = this.data.length; t < n; t++) e.put(this.data[t], 8);
|
|
865
866
|
}, t.exports = r;
|
|
866
|
-
})),
|
|
867
|
-
var n =
|
|
867
|
+
})), G = /* @__PURE__ */ e(((e, t) => {
|
|
868
|
+
var n = z(), r = O();
|
|
868
869
|
function i(e) {
|
|
869
870
|
this.mode = n.KANJI, this.data = e;
|
|
870
871
|
}
|
|
@@ -884,7 +885,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
884
885
|
n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
|
|
885
886
|
}
|
|
886
887
|
}, t.exports = i;
|
|
887
|
-
})),
|
|
888
|
+
})), K = /* @__PURE__ */ e(((e, t) => {
|
|
888
889
|
var n = {
|
|
889
890
|
single_source_shortest_paths: function(e, t, r) {
|
|
890
891
|
var i = {}, a = {};
|
|
@@ -937,8 +938,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
937
938
|
}
|
|
938
939
|
};
|
|
939
940
|
t !== void 0 && (t.exports = n);
|
|
940
|
-
})),
|
|
941
|
-
var t =
|
|
941
|
+
})), ne = /* @__PURE__ */ e(((e) => {
|
|
942
|
+
var t = z(), n = H(), r = U(), i = W(), a = G(), o = R(), s = O(), c = K();
|
|
942
943
|
function l(e) {
|
|
943
944
|
return unescape(encodeURIComponent(e)).length;
|
|
944
945
|
}
|
|
@@ -1066,7 +1067,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
1066
1067
|
return e.fromArray(d(t, s.isKanjiModeEnabled()));
|
|
1067
1068
|
};
|
|
1068
1069
|
})), q = /* @__PURE__ */ e(((e) => {
|
|
1069
|
-
var t =
|
|
1070
|
+
var t = O(), n = k(), r = A(), i = ee(), a = te(), o = j(), s = M(), c = N(), l = I(), u = B(), d = V(), f = z(), p = ne();
|
|
1070
1071
|
function m(e, t) {
|
|
1071
1072
|
let n = e.size, r = o.getPositions(t);
|
|
1072
1073
|
for (let t = 0; t < r.length; t++) {
|
|
@@ -1254,7 +1255,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
1254
1255
|
return typeof a == "function" && a(null, p), p;
|
|
1255
1256
|
};
|
|
1256
1257
|
})), Z = (/* @__PURE__ */ e(((e) => {
|
|
1257
|
-
var t =
|
|
1258
|
+
var t = D(), n = q(), r = Y(), i = X();
|
|
1258
1259
|
function a(e, r, i, a, o) {
|
|
1259
1260
|
let s = [].slice.call(arguments, 1), c = s.length, l = typeof s[c - 1] == "function";
|
|
1260
1261
|
if (!l && !t()) throw Error("Callback required as last argument");
|
|
@@ -1281,7 +1282,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
1281
1282
|
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) {
|
|
1282
1283
|
return i.render(e, n);
|
|
1283
1284
|
});
|
|
1284
|
-
})))(),
|
|
1285
|
+
})))(), re = ({ value: e, size: t = 150, bgColor: n = "#ffffff", fgColor: r = "#000000" }) => {
|
|
1285
1286
|
let [a, o] = c("");
|
|
1286
1287
|
return i(() => {
|
|
1287
1288
|
e && (0, Z.toString)(e, {
|
|
@@ -1302,24 +1303,24 @@ var C = ({ logoSrc: e }) => {
|
|
|
1302
1303
|
class: "IncodeRedirectQrCode",
|
|
1303
1304
|
dangerouslySetInnerHTML: { __html: a }
|
|
1304
1305
|
}) : null;
|
|
1305
|
-
},
|
|
1306
|
+
}, ie = ({ redirectUrl: e }) => {
|
|
1306
1307
|
let { t: n } = t();
|
|
1307
1308
|
return /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ l("p", {
|
|
1308
1309
|
class: "IncodeRedirectTabDescription",
|
|
1309
1310
|
children: n("v2.redirectToMobile.qr.description")
|
|
1310
1311
|
}), /* @__PURE__ */ l("div", {
|
|
1311
1312
|
class: "IncodeRedirectQrWrapper",
|
|
1312
|
-
children: /* @__PURE__ */ l(
|
|
1313
|
+
children: /* @__PURE__ */ l(re, {
|
|
1313
1314
|
value: e,
|
|
1314
1315
|
size: 186
|
|
1315
1316
|
})
|
|
1316
1317
|
})] });
|
|
1317
|
-
},
|
|
1318
|
+
}, ae = ({ formattedPhone: e, onResend: r, onChangePhone: i }) => {
|
|
1318
1319
|
let { t: a } = t();
|
|
1319
1320
|
return /* @__PURE__ */ l("div", {
|
|
1320
1321
|
class: "IncodeRedirectLinkSent",
|
|
1321
1322
|
children: [
|
|
1322
|
-
/* @__PURE__ */ l(
|
|
1323
|
+
/* @__PURE__ */ l(y, { size: 32 }),
|
|
1323
1324
|
/* @__PURE__ */ l(f, { size: 16 }),
|
|
1324
1325
|
/* @__PURE__ */ l("h2", {
|
|
1325
1326
|
class: "IncodeRedirectLinkSentTitle",
|
|
@@ -1337,11 +1338,11 @@ var C = ({ logoSrc: e }) => {
|
|
|
1337
1338
|
i18nKey: "redirect.didntReceiveLinkActions",
|
|
1338
1339
|
defaultValue: "Didn't receive the link? <resend>Resend</resend> or <changePhone>Change phone number</changePhone>",
|
|
1339
1340
|
components: {
|
|
1340
|
-
resend: /* @__PURE__ */ l(
|
|
1341
|
+
resend: /* @__PURE__ */ l(v, {
|
|
1341
1342
|
variant: "link",
|
|
1342
1343
|
onClick: r
|
|
1343
1344
|
}),
|
|
1344
|
-
changePhone: /* @__PURE__ */ l(
|
|
1345
|
+
changePhone: /* @__PURE__ */ l(v, {
|
|
1345
1346
|
variant: "link",
|
|
1346
1347
|
onClick: i
|
|
1347
1348
|
})
|
|
@@ -1350,11 +1351,11 @@ var C = ({ logoSrc: e }) => {
|
|
|
1350
1351
|
})
|
|
1351
1352
|
]
|
|
1352
1353
|
});
|
|
1353
|
-
},
|
|
1354
|
+
}, oe = a(() => import("./phoneInput-29FjtawS.js").then((e) => ({ default: e.PhoneInput }))), se = ({ countryCode: e, phonePrefix: n, error: i, isSending: a, isPhoneValid: o, onPhoneChange: c, onSendSms: u }) => {
|
|
1354
1355
|
let { t: d } = t();
|
|
1355
1356
|
return /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ l(s, {
|
|
1356
1357
|
fallback: /* @__PURE__ */ l(g, {}),
|
|
1357
|
-
children: /* @__PURE__ */ l(
|
|
1358
|
+
children: /* @__PURE__ */ l(oe, {
|
|
1358
1359
|
countryCode: e,
|
|
1359
1360
|
phonePrefix: n,
|
|
1360
1361
|
phoneError: i,
|
|
@@ -1362,15 +1363,15 @@ var C = ({ logoSrc: e }) => {
|
|
|
1362
1363
|
autoFocus: !0,
|
|
1363
1364
|
onPhoneChange: c
|
|
1364
1365
|
})
|
|
1365
|
-
}), /* @__PURE__ */ l(
|
|
1366
|
+
}), /* @__PURE__ */ l(v, {
|
|
1366
1367
|
onClick: u,
|
|
1367
1368
|
disabled: !o || a,
|
|
1368
1369
|
isLoading: a,
|
|
1369
1370
|
class: "IncodeRedirectSmsSendButton",
|
|
1370
1371
|
children: d("redirect.sendLinkViaSms")
|
|
1371
1372
|
})] });
|
|
1372
|
-
},
|
|
1373
|
-
let { t: u } = t(), [d, f] = c(e), [p, m] = c(!1), [h, g] = c(!1), _ =
|
|
1373
|
+
}, Q = (e, t) => e.startsWith(t) ? `${t} ${e.slice(t.length).replace(/(\d{3})(?=\d)/g, "$1 ")}` : e, ce = ({ phonePrefix: e, smsSent: n, error: i, manager: a, onResend: s }) => {
|
|
1374
|
+
let { t: u } = t(), [d, f] = c(e), [p, m] = c(!1), [h, g] = c(!1), _ = b(e)?.code ?? "", v = Q(d, e), y = o((e, t) => {
|
|
1374
1375
|
f(e), m(t);
|
|
1375
1376
|
}, []), x = o(() => {
|
|
1376
1377
|
g(!0), a.sendSms(d), g(!1);
|
|
@@ -1382,20 +1383,20 @@ var C = ({ logoSrc: e }) => {
|
|
|
1382
1383
|
return /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ l("p", {
|
|
1383
1384
|
class: "IncodeRedirectTabDescription",
|
|
1384
1385
|
children: u("v2.redirectToMobile.sms.description")
|
|
1385
|
-
}), n ? /* @__PURE__ */ l(
|
|
1386
|
+
}), n ? /* @__PURE__ */ l(ae, {
|
|
1386
1387
|
formattedPhone: v,
|
|
1387
1388
|
onResend: S,
|
|
1388
1389
|
onChangePhone: C
|
|
1389
|
-
}) : /* @__PURE__ */ l(
|
|
1390
|
+
}) : /* @__PURE__ */ l(se, {
|
|
1390
1391
|
countryCode: _,
|
|
1391
1392
|
phonePrefix: e,
|
|
1392
1393
|
error: i,
|
|
1393
1394
|
isSending: h,
|
|
1394
1395
|
isPhoneValid: p,
|
|
1395
|
-
onPhoneChange:
|
|
1396
|
+
onPhoneChange: y,
|
|
1396
1397
|
onSendSms: x
|
|
1397
1398
|
})] });
|
|
1398
|
-
},
|
|
1399
|
+
}, le = ({ redirectUrl: e, phonePrefix: n, smsSent: r, disableSmsOption: i, addContinueToDesktop: a, error: s, manager: u, logoSrc: d }) => {
|
|
1399
1400
|
let { t: f } = t(), [p, m] = c(!1), h = o(() => {
|
|
1400
1401
|
m(!0), setTimeout(() => m(!1), 3e3);
|
|
1401
1402
|
}, []), g = o(() => {
|
|
@@ -1403,32 +1404,32 @@ var C = ({ logoSrc: e }) => {
|
|
|
1403
1404
|
}, [u]);
|
|
1404
1405
|
return /* @__PURE__ */ l("div", {
|
|
1405
1406
|
class: "IncodeRedirectContainer",
|
|
1406
|
-
children: [/* @__PURE__ */ l(
|
|
1407
|
+
children: [/* @__PURE__ */ l(E, { visible: p }), /* @__PURE__ */ l("div", {
|
|
1407
1408
|
class: "IncodeRedirectCard",
|
|
1408
1409
|
children: [
|
|
1409
|
-
/* @__PURE__ */ l(
|
|
1410
|
+
/* @__PURE__ */ l(w, { logoSrc: d }),
|
|
1410
1411
|
/* @__PURE__ */ l("div", {
|
|
1411
1412
|
class: "IncodeRedirectOptions",
|
|
1412
|
-
children: /* @__PURE__ */ l(
|
|
1413
|
+
children: /* @__PURE__ */ l(S, {
|
|
1413
1414
|
defaultValue: "qr",
|
|
1414
1415
|
listClassName: "IncodeRedirectTabs",
|
|
1415
1416
|
triggerClassName: "IncodeRedirectTab",
|
|
1416
1417
|
activeTriggerClassName: "IncodeRedirectTabActive",
|
|
1417
1418
|
children: [
|
|
1418
|
-
/* @__PURE__ */ l(
|
|
1419
|
+
/* @__PURE__ */ l(S.List, { children: [/* @__PURE__ */ l(S.Trigger, {
|
|
1419
1420
|
value: "qr",
|
|
1420
1421
|
children: f("v2.redirectToMobile.tabs.0")
|
|
1421
|
-
}), i ? null : /* @__PURE__ */ l(
|
|
1422
|
+
}), i ? null : /* @__PURE__ */ l(S.Trigger, {
|
|
1422
1423
|
value: "sms",
|
|
1423
1424
|
children: f("v2.redirectToMobile.tabs.1")
|
|
1424
1425
|
})] }),
|
|
1425
|
-
/* @__PURE__ */ l(
|
|
1426
|
+
/* @__PURE__ */ l(S.Content, {
|
|
1426
1427
|
value: "qr",
|
|
1427
|
-
children: /* @__PURE__ */ l(
|
|
1428
|
+
children: /* @__PURE__ */ l(ie, { redirectUrl: e })
|
|
1428
1429
|
}),
|
|
1429
|
-
i ? null : /* @__PURE__ */ l(
|
|
1430
|
+
i ? null : /* @__PURE__ */ l(S.Content, {
|
|
1430
1431
|
value: "sms",
|
|
1431
|
-
children: /* @__PURE__ */ l(
|
|
1432
|
+
children: /* @__PURE__ */ l(ce, {
|
|
1432
1433
|
phonePrefix: n,
|
|
1433
1434
|
smsSent: r,
|
|
1434
1435
|
error: s,
|
|
@@ -1439,14 +1440,14 @@ var C = ({ logoSrc: e }) => {
|
|
|
1439
1440
|
]
|
|
1440
1441
|
})
|
|
1441
1442
|
}),
|
|
1442
|
-
/* @__PURE__ */ l(
|
|
1443
|
+
/* @__PURE__ */ l(T, {
|
|
1443
1444
|
addContinueToDesktop: a,
|
|
1444
1445
|
onContinueOnDesktop: g
|
|
1445
1446
|
})
|
|
1446
1447
|
]
|
|
1447
1448
|
})]
|
|
1448
1449
|
});
|
|
1449
|
-
},
|
|
1450
|
+
}, ue = ({ title: e, subtitle: n, logoSrc: r }) => {
|
|
1450
1451
|
let { t: i } = t(), a = e ?? i("verificationComplete.title"), o = n ?? i("verificationComplete.message");
|
|
1451
1452
|
return /* @__PURE__ */ l("div", {
|
|
1452
1453
|
class: "IncodeRedirectFinishedContainer",
|
|
@@ -1466,8 +1467,8 @@ var C = ({ logoSrc: e }) => {
|
|
|
1466
1467
|
}) : null
|
|
1467
1468
|
]
|
|
1468
1469
|
});
|
|
1469
|
-
},
|
|
1470
|
-
let [a, o] = u(() =>
|
|
1470
|
+
}, de = ({ config: e, onFinish: t, onContinue: n, onError: r }) => {
|
|
1471
|
+
let [a, o] = u(() => C({ config: e })), { logoSrc: s, logoHeightPx: c } = m({
|
|
1471
1472
|
hideHeader: void 0,
|
|
1472
1473
|
hideFooterBranding: void 0,
|
|
1473
1474
|
logo: void 0,
|
|
@@ -1484,7 +1485,7 @@ var C = ({ logoSrc: e }) => {
|
|
|
1484
1485
|
r,
|
|
1485
1486
|
a
|
|
1486
1487
|
]);
|
|
1487
|
-
let d = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ l(
|
|
1488
|
+
let d = a.status === "idle" || a.status === "loading" ? /* @__PURE__ */ l(_, { hideText: !0 }) : a.status === "redirecting" ? /* @__PURE__ */ l(le, {
|
|
1488
1489
|
redirectUrl: a.redirectUrl,
|
|
1489
1490
|
phonePrefix: a.phonePrefix,
|
|
1490
1491
|
smsSent: a.smsSent,
|
|
@@ -1493,18 +1494,18 @@ var C = ({ logoSrc: e }) => {
|
|
|
1493
1494
|
error: a.error,
|
|
1494
1495
|
manager: o,
|
|
1495
1496
|
logoSrc: s
|
|
1496
|
-
}) : a.status === "finished" ? /* @__PURE__ */ l(
|
|
1497
|
+
}) : a.status === "finished" ? /* @__PURE__ */ l(ue, { logoSrc: s }) : null;
|
|
1497
1498
|
return /* @__PURE__ */ l("div", {
|
|
1498
1499
|
class: "IncodeRedirectRoot",
|
|
1499
1500
|
style: { "--logo-height": `${c}px` },
|
|
1500
1501
|
children: d
|
|
1501
1502
|
});
|
|
1502
|
-
}, $ = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ l(d, { children: e ? /* @__PURE__ */ l(
|
|
1503
|
+
}, $ = ({ config: e, onFinish: t, onContinue: n, onError: r }) => /* @__PURE__ */ l(d, { children: e ? /* @__PURE__ */ l(de, {
|
|
1503
1504
|
config: e,
|
|
1504
1505
|
onFinish: t,
|
|
1505
1506
|
onContinue: n,
|
|
1506
1507
|
onError: r
|
|
1507
1508
|
}) : null });
|
|
1508
|
-
|
|
1509
|
+
x($, "incode-redirect-to-mobile");
|
|
1509
1510
|
//#endregion
|
|
1510
1511
|
export { $ as RedirectToMobile };
|
|
@@ -156,7 +156,7 @@ function j(e) {
|
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
158
|
var M = {
|
|
159
|
-
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-
|
|
159
|
+
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-a_68n3x8.js").then((e) => e.RedirectToMobile),
|
|
160
160
|
PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
|
|
161
161
|
EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
|
|
162
162
|
SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
|
|
@@ -5,13 +5,13 @@ import { o, t as s } from "../incodeComponent-DmPlyJO-.js";
|
|
|
5
5
|
import "../spinner-CcWzwNeZ.js";
|
|
6
6
|
import { t as c } from "../transitionSpinner-CU8-yMmE.js";
|
|
7
7
|
import { t as l } from "../incodeModule-BH9gV7jI.js";
|
|
8
|
-
import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-
|
|
8
|
+
import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-rt24SpRg.js";
|
|
9
9
|
import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
|
|
10
10
|
import { createWorkflowManager as _ } from "@incodetech/core/workflow";
|
|
11
11
|
//#region src/modules/workflow/workflowInit.ts
|
|
12
12
|
var v = {
|
|
13
13
|
...u,
|
|
14
|
-
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-
|
|
14
|
+
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-a_68n3x8.js").then((e) => e.RedirectToMobile)
|
|
15
15
|
};
|
|
16
16
|
async function y() {
|
|
17
17
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260427-
|
|
3
|
+
"version": "0.0.0-dev-20260427-b544b2e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"qrcode": "^1.5.4",
|
|
231
231
|
"signature_pad": "^5.1.3",
|
|
232
232
|
"tailwindcss": "^4.1.17",
|
|
233
|
-
"@incodetech/core": "0.0.0-dev-20260427-
|
|
233
|
+
"@incodetech/core": "0.0.0-dev-20260427-b544b2e"
|
|
234
234
|
},
|
|
235
235
|
"devDependencies": {
|
|
236
236
|
"@microsoft/api-extractor": "^7.53.3",
|