@incodetech/web 0.0.0-dev-20260313-486e658 → 0.0.0-dev-20260313-bc2dab4
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/{AsYouType-BtKe6-rC.js → AsYouType-CpH-Rmtj.js} +1 -1
- package/dist/{Trans-C2X8WLEu.js → Trans-CA9a3vKp.js} +1 -1
- package/dist/authentication/authentication.es.js +25 -20
- package/dist/base.css +9 -4
- package/dist/{browser-ponyfill-CLXJUgvu.js → browser-ponyfill-B6W6hHVY.js} +49 -46
- package/dist/{incodeModule-DLGHhn9E.js → button-Ca1tRSTI.js} +153 -239
- package/dist/{captureFooter-C2Yrou50.js → captureFooter-X2qN1773.js} +72 -70
- package/dist/{chevronDown-D5uHEaU-.js → chevronDown-BUaOuf9J.js} +1 -1
- package/dist/{closeIcon-BMPoRQCd.js → closeIcon-BM7WLbKp.js} +1 -1
- package/dist/{countries-3p5tkqcx.js → countries-C9bhJe4u.js} +3 -3
- package/dist/curp-validation/curp-validation.es.js +26 -25
- package/dist/{dateInputComposed-CqHIiKPV.js → dateInputComposed-CvFmQpJ0.js} +11 -10
- package/dist/document-capture/styles.css +1 -0
- package/dist/{documentCapture-CzGmGxzA.js → documentCapture-PdKA2frR.js} +113 -157
- package/dist/{dropdownComposed-BgGKKaXv.js → dropdownComposed-DBm7cotT.js} +8 -6
- package/dist/{ekybModule-Bttpjr3j.js → ekybModule-DiFpO2sE.js} +16 -14
- package/dist/ekycModule-DdD1iChB.js +370 -0
- package/dist/email/email.es.js +86 -63
- package/dist/{errorContent-6xl4ArMV.js → errorContent-yUAdbZ5o.js} +5 -5
- package/dist/{errorIcon-Cxcv4ISP.js → errorIcon-BL647nVh.js} +1 -1
- package/dist/extensibility.es.js +290 -0
- package/dist/face-match/styles.css +8 -0
- package/dist/{faceMatch-DKqzUCml.js → faceMatch-BjdNG_e0.js} +12 -11
- package/dist/fileIcon-DOyMcRWU.js +52 -0
- package/dist/flipAnimation-DoMQoFPb.js +1355 -0
- package/dist/flow/flow.es.js +157 -157
- package/dist/flow/styles.css +15 -3
- package/dist/formField-C91ckby4.js +94 -0
- package/dist/geolocation/geolocation.es.js +15 -14
- package/dist/governmentValidation/governmentValidation.es.js +19 -18
- package/dist/id/id.es.js +30 -1354
- package/dist/id/styles.css +2 -0
- package/dist/incodeModule-aE-LkKwM.js +96 -0
- package/dist/index.es.js +7 -7
- package/dist/{otpInput-BT0ZXrAt.js → otpInput-cazUY73p.js} +1 -1
- package/dist/{page-BJDfLRpO.js → page-BVHG3h0V.js} +1 -1
- package/dist/permissions-DwF2Ez1N.js +754 -0
- package/dist/phone/phone.es.js +53 -30
- package/dist/{phoneInput-d3sq4X5R.js → phoneInput-Duuochsh.js} +4 -4
- package/dist/phoneInputComposed-B1gXoSzr.js +107 -0
- package/dist/{processing-CGb_3dSE.js → processing-CDgOueI3.js} +3 -3
- package/dist/selfie/selfie.es.js +29 -18
- package/dist/selfie/styles.css +12 -3
- package/dist/{spinner--i134wYq.js → spinner-Cx3FPUCD.js} +13 -11
- package/dist/{successIcon-1BcPFhum.js → successIcon-BybULRRU.js} +1 -1
- package/dist/{tutorial-DXgOS41l.js → tutorial-Dagmccxh.js} +21 -21
- package/dist/types/authentication.d.ts +10 -3
- package/dist/types/curp-validation.d.ts +5 -1
- package/dist/types/email.d.ts +8 -3
- package/dist/types/extensibility.d.ts +671 -0
- package/dist/types/flow.d.ts +5 -1
- package/dist/types/geolocation.d.ts +5 -1
- package/dist/types/governmentValidation.d.ts +5 -1
- package/dist/types/id.d.ts +8 -3
- package/dist/types/phone.d.ts +8 -3
- package/dist/types/selfie.d.ts +8 -3
- package/dist/{uiConfig-DisZ_yFB.js → uiConfig-Z6RT23Sl.js} +3 -3
- package/dist/useFormScrollable-3O3GeT4m.js +15 -0
- package/dist/{warningIcon-WqI5X7cK.js → warningIcon-DyoKeqDd.js} +1 -1
- package/package.json +6 -2
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/baseTutorial-hbezn8sT.js +0 -755
- package/dist/ekycModule-DfwZMKdL.js +0 -467
- package/dist/verificationResult-CKZqPXb9.js +0 -106
package/dist/flow/flow.es.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { u as l, d as _t, b as F, S as X, B as Z, V as Ot,
|
|
2
|
-
import { createOrchestratedFlowManager as zt, getRequiredWasmPipelines as
|
|
3
|
-
import { Q as Ht, d as _, k as ne, x as Kt, y as L, P as
|
|
4
|
-
import { api as
|
|
5
|
-
import { s as te } from "../uiConfig-
|
|
6
|
-
import {
|
|
1
|
+
import { u as l, d as _t, b as F, S as X, B as Z, V as Ot, I as Ct, a as It, c as qt, i as Vt } from "../button-Ca1tRSTI.js";
|
|
2
|
+
import { createOrchestratedFlowManager as zt, getRequiredWasmPipelines as yt } from "@incodetech/core/flow";
|
|
3
|
+
import { Q as Ht, d as _, k as ne, x as Kt, y as L, P as Gt, z as jt, q as J, A as Le } from "../vendor-preact-BXf0bkEs.js";
|
|
4
|
+
import { api as Et, warmupWasm as Yt } from "@incodetech/core";
|
|
5
|
+
import { s as te } from "../uiConfig-Z6RT23Sl.js";
|
|
6
|
+
import { r as Tt } from "../incodeModule-aE-LkKwM.js";
|
|
7
|
+
import { S as x } from "../spinner-Cx3FPUCD.js";
|
|
7
8
|
import { createRedirectToMobileManager as Jt } from "@incodetech/core/redirect-to-mobile";
|
|
8
|
-
import { S as Mt } from "../successIcon-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { geolocationMachine as tn } from "@incodetech/core/geolocation";
|
|
9
|
+
import { S as Mt } from "../successIcon-BybULRRU.js";
|
|
10
|
+
import { a as xt } from "../countries-C9bhJe4u.js";
|
|
11
|
+
import { T as Qt } from "../Trans-CA9a3vKp.js";
|
|
12
|
+
import { ekybMachine as Wt } from "@incodetech/core/ekyb";
|
|
13
|
+
import { ekycMachine as Xt } from "@incodetech/core/ekyc";
|
|
14
|
+
import { emailMachine as Zt } from "@incodetech/core/email";
|
|
15
|
+
import { faceMatchMachine as $t } from "@incodetech/core/face-match";
|
|
16
|
+
import { geolocationMachine as en } from "@incodetech/core/geolocation";
|
|
17
17
|
import { documentCaptureMachine as Ve } from "@incodetech/core/document-capture";
|
|
18
18
|
import { idCaptureMachine as ae } from "@incodetech/core/id";
|
|
19
|
-
import { phoneMachine as
|
|
20
|
-
import { selfieMachine as
|
|
21
|
-
import { authenticationMachine as
|
|
22
|
-
import { curpValidationMachine as
|
|
23
|
-
import { governmentValidationMachine as
|
|
24
|
-
import { setup as
|
|
19
|
+
import { phoneMachine as tn } from "@incodetech/core/phone";
|
|
20
|
+
import { selfieMachine as nn } from "@incodetech/core/selfie";
|
|
21
|
+
import { authenticationMachine as rn } from "@incodetech/core/authentication";
|
|
22
|
+
import { curpValidationMachine as on } from "@incodetech/core/curp-validation";
|
|
23
|
+
import { governmentValidationMachine as sn } from "@incodetech/core/government-validation";
|
|
24
|
+
import { setup as an } from "../index.es.js";
|
|
25
25
|
const Rt = Ht(null), Fe = () => {
|
|
26
26
|
const e = Kt(Rt);
|
|
27
27
|
if (!e)
|
|
28
28
|
throw new Error("Tabs compound components must be used within <Tabs>");
|
|
29
29
|
return e;
|
|
30
|
-
},
|
|
30
|
+
}, cn = ({
|
|
31
31
|
defaultValue: e,
|
|
32
32
|
listClassName: t,
|
|
33
33
|
triggerClassName: i,
|
|
@@ -48,10 +48,10 @@ const Rt = Ht(null), Fe = () => {
|
|
|
48
48
|
children: n
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
},
|
|
51
|
+
}, ln = ({ children: e }) => {
|
|
52
52
|
const { listClassName: t } = Fe();
|
|
53
53
|
return /* @__PURE__ */ l("div", { class: t, children: e });
|
|
54
|
-
},
|
|
54
|
+
}, un = ({ value: e, children: t }) => {
|
|
55
55
|
const {
|
|
56
56
|
activeValue: i,
|
|
57
57
|
setActiveValue: r,
|
|
@@ -70,14 +70,14 @@ const Rt = Ht(null), Fe = () => {
|
|
|
70
70
|
children: t
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
|
-
},
|
|
73
|
+
}, dn = ({ value: e, children: t }) => {
|
|
74
74
|
const { activeValue: i } = Fe();
|
|
75
75
|
return i !== e ? null : /* @__PURE__ */ l(ne, { children: t });
|
|
76
|
-
},
|
|
77
|
-
List:
|
|
78
|
-
Trigger:
|
|
79
|
-
Content:
|
|
80
|
-
}),
|
|
76
|
+
}, G = Object.assign(cn, {
|
|
77
|
+
List: ln,
|
|
78
|
+
Trigger: un,
|
|
79
|
+
Content: dn
|
|
80
|
+
}), fn = ({ logoSrc: e }) => {
|
|
81
81
|
const { t } = F();
|
|
82
82
|
return /* @__PURE__ */ l("header", { class: "IncodeRedirectHeader", children: [
|
|
83
83
|
/* @__PURE__ */ l("div", { class: "IncodeRedirectLogoWrapper", children: /* @__PURE__ */ l("img", { src: e, alt: "Logo", class: "IncodeRedirectLogo" }) }),
|
|
@@ -86,7 +86,7 @@ const Rt = Ht(null), Fe = () => {
|
|
|
86
86
|
/* @__PURE__ */ l(X, { size: 12 }),
|
|
87
87
|
/* @__PURE__ */ l("p", { class: "IncodeRedirectSubtitle", children: t("v2.redirectToMobile.subtitle") })
|
|
88
88
|
] });
|
|
89
|
-
},
|
|
89
|
+
}, hn = ({
|
|
90
90
|
addContinueToDesktop: e,
|
|
91
91
|
onContinueOnDesktop: t
|
|
92
92
|
}) => {
|
|
@@ -95,15 +95,15 @@ const Rt = Ht(null), Fe = () => {
|
|
|
95
95
|
e ? /* @__PURE__ */ l(Z, { variant: "link", onClick: t, children: i("redirect.continueOnDesktop") }) : null,
|
|
96
96
|
/* @__PURE__ */ l(Ot, {})
|
|
97
97
|
] });
|
|
98
|
-
},
|
|
98
|
+
}, gn = ({ visible: e }) => {
|
|
99
99
|
const { t } = F();
|
|
100
100
|
return e ? /* @__PURE__ */ l("div", { class: "IncodeRedirectToast", children: [
|
|
101
101
|
/* @__PURE__ */ l(Mt, { size: 24 }),
|
|
102
102
|
/* @__PURE__ */ l("span", { class: "IncodeRedirectToastText", children: t("redirect.linkResent") })
|
|
103
103
|
] }) : null;
|
|
104
104
|
};
|
|
105
|
-
var
|
|
106
|
-
function
|
|
105
|
+
var j = {}, ce, ze;
|
|
106
|
+
function mn() {
|
|
107
107
|
return ze || (ze = 1, ce = function() {
|
|
108
108
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
109
109
|
}), ce;
|
|
@@ -215,10 +215,10 @@ function Ue() {
|
|
|
215
215
|
};
|
|
216
216
|
})(ue)), ue;
|
|
217
217
|
}
|
|
218
|
-
var de,
|
|
219
|
-
function
|
|
220
|
-
if (
|
|
221
|
-
|
|
218
|
+
var de, Ge;
|
|
219
|
+
function pn() {
|
|
220
|
+
if (Ge) return de;
|
|
221
|
+
Ge = 1;
|
|
222
222
|
function e() {
|
|
223
223
|
this.buffer = [], this.length = 0;
|
|
224
224
|
}
|
|
@@ -240,10 +240,10 @@ function wn() {
|
|
|
240
240
|
}
|
|
241
241
|
}, de = e, de;
|
|
242
242
|
}
|
|
243
|
-
var fe,
|
|
244
|
-
function
|
|
245
|
-
if (
|
|
246
|
-
|
|
243
|
+
var fe, je;
|
|
244
|
+
function wn() {
|
|
245
|
+
if (je) return fe;
|
|
246
|
+
je = 1;
|
|
247
247
|
function e(t) {
|
|
248
248
|
if (!t || t < 1)
|
|
249
249
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -261,7 +261,7 @@ function Cn() {
|
|
|
261
261
|
}, fe = e, fe;
|
|
262
262
|
}
|
|
263
263
|
var he = {}, Ye;
|
|
264
|
-
function
|
|
264
|
+
function Cn() {
|
|
265
265
|
return Ye || (Ye = 1, (function(e) {
|
|
266
266
|
const t = z().getSymbolSize;
|
|
267
267
|
e.getRowColCoords = function(r) {
|
|
@@ -282,7 +282,7 @@ function In() {
|
|
|
282
282
|
})(he)), he;
|
|
283
283
|
}
|
|
284
284
|
var ge = {}, Je;
|
|
285
|
-
function
|
|
285
|
+
function In() {
|
|
286
286
|
if (Je) return ge;
|
|
287
287
|
Je = 1;
|
|
288
288
|
const e = z().getSymbolSize, t = 7;
|
|
@@ -299,7 +299,7 @@ function yn() {
|
|
|
299
299
|
}, ge;
|
|
300
300
|
}
|
|
301
301
|
var me = {}, xe;
|
|
302
|
-
function
|
|
302
|
+
function yn() {
|
|
303
303
|
return xe || (xe = 1, (function(e) {
|
|
304
304
|
e.Patterns = {
|
|
305
305
|
PATTERN000: 0,
|
|
@@ -754,7 +754,7 @@ function bt() {
|
|
|
754
754
|
}, ee;
|
|
755
755
|
}
|
|
756
756
|
var pe = {}, W = {}, We;
|
|
757
|
-
function
|
|
757
|
+
function En() {
|
|
758
758
|
if (We) return W;
|
|
759
759
|
We = 1;
|
|
760
760
|
const e = new Uint8Array(512), t = new Uint8Array(256);
|
|
@@ -774,9 +774,9 @@ function Tn() {
|
|
|
774
774
|
}, W;
|
|
775
775
|
}
|
|
776
776
|
var Xe;
|
|
777
|
-
function
|
|
777
|
+
function Tn() {
|
|
778
778
|
return Xe || (Xe = 1, (function(e) {
|
|
779
|
-
const t =
|
|
779
|
+
const t = En();
|
|
780
780
|
e.mul = function(r, n) {
|
|
781
781
|
const o = new Uint8Array(r.length + n.length - 1);
|
|
782
782
|
for (let a = 0; a < r.length; a++)
|
|
@@ -803,10 +803,10 @@ function Mn() {
|
|
|
803
803
|
})(pe)), pe;
|
|
804
804
|
}
|
|
805
805
|
var we, Ze;
|
|
806
|
-
function
|
|
806
|
+
function Mn() {
|
|
807
807
|
if (Ze) return we;
|
|
808
808
|
Ze = 1;
|
|
809
|
-
const e =
|
|
809
|
+
const e = Tn();
|
|
810
810
|
function t(i) {
|
|
811
811
|
this.genPoly = void 0, this.degree = i, this.degree && this.initialize(this.degree);
|
|
812
812
|
}
|
|
@@ -913,7 +913,7 @@ function H() {
|
|
|
913
913
|
})(Ie)), Ie;
|
|
914
914
|
}
|
|
915
915
|
var nt;
|
|
916
|
-
function
|
|
916
|
+
function Rn() {
|
|
917
917
|
return nt || (nt = 1, (function(e) {
|
|
918
918
|
const t = z(), i = bt(), r = Ue(), n = H(), o = St(), a = 7973, s = t.getBCHDigit(a);
|
|
919
919
|
function c(d, g, b) {
|
|
@@ -979,7 +979,7 @@ function bn() {
|
|
|
979
979
|
})(Ce)), Ce;
|
|
980
980
|
}
|
|
981
981
|
var Ee = {}, rt;
|
|
982
|
-
function
|
|
982
|
+
function bn() {
|
|
983
983
|
if (rt) return Ee;
|
|
984
984
|
rt = 1;
|
|
985
985
|
const e = z(), t = 1335, i = 21522, r = e.getBCHDigit(t);
|
|
@@ -992,7 +992,7 @@ function Sn() {
|
|
|
992
992
|
}, Ee;
|
|
993
993
|
}
|
|
994
994
|
var Te = {}, Me, ot;
|
|
995
|
-
function
|
|
995
|
+
function Sn() {
|
|
996
996
|
if (ot) return Me;
|
|
997
997
|
ot = 1;
|
|
998
998
|
const e = H();
|
|
@@ -1014,7 +1014,7 @@ function An() {
|
|
|
1014
1014
|
}, Me = t, Me;
|
|
1015
1015
|
}
|
|
1016
1016
|
var Re, it;
|
|
1017
|
-
function
|
|
1017
|
+
function An() {
|
|
1018
1018
|
if (it) return Re;
|
|
1019
1019
|
it = 1;
|
|
1020
1020
|
const e = H(), t = [
|
|
@@ -1083,7 +1083,7 @@ function vn() {
|
|
|
1083
1083
|
}, Re = i, Re;
|
|
1084
1084
|
}
|
|
1085
1085
|
var be, st;
|
|
1086
|
-
function
|
|
1086
|
+
function vn() {
|
|
1087
1087
|
if (st) return be;
|
|
1088
1088
|
st = 1;
|
|
1089
1089
|
const e = H();
|
|
@@ -1102,7 +1102,7 @@ function Nn() {
|
|
|
1102
1102
|
}, be = t, be;
|
|
1103
1103
|
}
|
|
1104
1104
|
var Se, at;
|
|
1105
|
-
function
|
|
1105
|
+
function Nn() {
|
|
1106
1106
|
if (at) return Se;
|
|
1107
1107
|
at = 1;
|
|
1108
1108
|
const e = H(), t = z();
|
|
@@ -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 Pn() {
|
|
1137
1137
|
return ct || (ct = 1, (function(e) {
|
|
1138
1138
|
var t = {
|
|
1139
1139
|
single_source_shortest_paths: function(i, r, n) {
|
|
@@ -1201,9 +1201,9 @@ function Bn() {
|
|
|
1201
1201
|
})(Ae)), Ae.exports;
|
|
1202
1202
|
}
|
|
1203
1203
|
var lt;
|
|
1204
|
-
function
|
|
1204
|
+
function Bn() {
|
|
1205
1205
|
return lt || (lt = 1, (function(e) {
|
|
1206
|
-
const t = H(), i =
|
|
1206
|
+
const t = H(), i = Sn(), r = An(), n = vn(), o = Nn(), a = At(), s = z(), c = Pn();
|
|
1207
1207
|
function h(w) {
|
|
1208
1208
|
return unescape(encodeURIComponent(w)).length;
|
|
1209
1209
|
}
|
|
@@ -1335,10 +1335,10 @@ function Ln() {
|
|
|
1335
1335
|
})(Te)), Te;
|
|
1336
1336
|
}
|
|
1337
1337
|
var ut;
|
|
1338
|
-
function
|
|
1338
|
+
function Ln() {
|
|
1339
1339
|
if (ut) return le;
|
|
1340
1340
|
ut = 1;
|
|
1341
|
-
const e = z(), t = Ue(), i =
|
|
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 = Bn();
|
|
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++) {
|
|
@@ -1526,7 +1526,7 @@ function vt() {
|
|
|
1526
1526
|
})(Ne)), Ne;
|
|
1527
1527
|
}
|
|
1528
1528
|
var ft;
|
|
1529
|
-
function
|
|
1529
|
+
function Dn() {
|
|
1530
1530
|
return ft || (ft = 1, (function(e) {
|
|
1531
1531
|
const t = vt();
|
|
1532
1532
|
function i(n, o, a) {
|
|
@@ -1553,7 +1553,7 @@ function Fn() {
|
|
|
1553
1553
|
})(ve)), ve;
|
|
1554
1554
|
}
|
|
1555
1555
|
var Pe = {}, ht;
|
|
1556
|
-
function
|
|
1556
|
+
function Fn() {
|
|
1557
1557
|
if (ht) return Pe;
|
|
1558
1558
|
ht = 1;
|
|
1559
1559
|
const e = vt();
|
|
@@ -1580,10 +1580,10 @@ function Un() {
|
|
|
1580
1580
|
}, Pe;
|
|
1581
1581
|
}
|
|
1582
1582
|
var gt;
|
|
1583
|
-
function
|
|
1584
|
-
if (gt) return
|
|
1583
|
+
function Un() {
|
|
1584
|
+
if (gt) return j;
|
|
1585
1585
|
gt = 1;
|
|
1586
|
-
const e =
|
|
1586
|
+
const e = mn(), t = Ln(), i = Dn(), r = Fn();
|
|
1587
1587
|
function n(o, a, s, c, h) {
|
|
1588
1588
|
const f = [].slice.call(arguments, 1), u = f.length, d = typeof f[u - 1] == "function";
|
|
1589
1589
|
if (!d && !e())
|
|
@@ -1611,12 +1611,12 @@ function kn() {
|
|
|
1611
1611
|
h(g);
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
|
-
return
|
|
1614
|
+
return j.create = t.create, j.toCanvas = n.bind(null, i.render), j.toDataURL = n.bind(null, i.renderToDataURL), j.toString = n.bind(null, function(o, a, s) {
|
|
1615
1615
|
return r.render(o, s);
|
|
1616
|
-
}),
|
|
1616
|
+
}), j;
|
|
1617
1617
|
}
|
|
1618
|
-
var
|
|
1619
|
-
const
|
|
1618
|
+
var kn = Un();
|
|
1619
|
+
const _n = ({
|
|
1620
1620
|
value: e,
|
|
1621
1621
|
size: t = 150,
|
|
1622
1622
|
bgColor: i = "#ffffff",
|
|
@@ -1624,7 +1624,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1624
1624
|
}) => {
|
|
1625
1625
|
const [n, o] = _("");
|
|
1626
1626
|
return L(() => {
|
|
1627
|
-
e &&
|
|
1627
|
+
e && kn.toString(e, {
|
|
1628
1628
|
type: "svg",
|
|
1629
1629
|
width: t,
|
|
1630
1630
|
margin: 0,
|
|
@@ -1640,13 +1640,13 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1640
1640
|
dangerouslySetInnerHTML: { __html: n }
|
|
1641
1641
|
}
|
|
1642
1642
|
) : null;
|
|
1643
|
-
},
|
|
1643
|
+
}, On = ({ redirectUrl: e }) => {
|
|
1644
1644
|
const { t } = F();
|
|
1645
1645
|
return /* @__PURE__ */ l(ne, { children: [
|
|
1646
1646
|
/* @__PURE__ */ l("p", { class: "IncodeRedirectTabDescription", children: t("v2.redirectToMobile.qr.description") }),
|
|
1647
|
-
/* @__PURE__ */ l("div", { class: "IncodeRedirectQrWrapper", children: /* @__PURE__ */ l(
|
|
1647
|
+
/* @__PURE__ */ l("div", { class: "IncodeRedirectQrWrapper", children: /* @__PURE__ */ l(_n, { value: e, size: 186 }) })
|
|
1648
1648
|
] });
|
|
1649
|
-
},
|
|
1649
|
+
}, qn = ({
|
|
1650
1650
|
formattedPhone: e,
|
|
1651
1651
|
onResend: t,
|
|
1652
1652
|
onChangePhone: i
|
|
@@ -1660,7 +1660,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1660
1660
|
/* @__PURE__ */ l("p", { class: "IncodeRedirectLinkSentPhone", children: r("redirect.linkSentTo", { phone: e }) }),
|
|
1661
1661
|
/* @__PURE__ */ l(X, { size: 32 }),
|
|
1662
1662
|
/* @__PURE__ */ l("div", { class: "IncodeRedirectLinkSentActions", children: /* @__PURE__ */ l(
|
|
1663
|
-
|
|
1663
|
+
Qt,
|
|
1664
1664
|
{
|
|
1665
1665
|
i18nKey: "redirect.didntReceiveLinkActions",
|
|
1666
1666
|
defaultValue: "Didn't receive the link? <resend>Resend</resend> or <changePhone>Change phone number</changePhone>",
|
|
@@ -1671,9 +1671,9 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1671
1671
|
}
|
|
1672
1672
|
) })
|
|
1673
1673
|
] });
|
|
1674
|
-
},
|
|
1675
|
-
() => import("../phoneInput-
|
|
1676
|
-
),
|
|
1674
|
+
}, Vn = jt(
|
|
1675
|
+
() => import("../phoneInput-Duuochsh.js").then((e) => ({ default: e.PhoneInput }))
|
|
1676
|
+
), zn = ({
|
|
1677
1677
|
countryCode: e,
|
|
1678
1678
|
phonePrefix: t,
|
|
1679
1679
|
error: i,
|
|
@@ -1684,8 +1684,8 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1684
1684
|
}) => {
|
|
1685
1685
|
const { t: s } = F();
|
|
1686
1686
|
return /* @__PURE__ */ l(ne, { children: [
|
|
1687
|
-
/* @__PURE__ */ l(
|
|
1688
|
-
|
|
1687
|
+
/* @__PURE__ */ l(Gt, { fallback: /* @__PURE__ */ l(x, {}), children: /* @__PURE__ */ l(
|
|
1688
|
+
Vn,
|
|
1689
1689
|
{
|
|
1690
1690
|
countryCode: e,
|
|
1691
1691
|
phonePrefix: t,
|
|
@@ -1706,18 +1706,18 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1706
1706
|
}
|
|
1707
1707
|
)
|
|
1708
1708
|
] });
|
|
1709
|
-
},
|
|
1709
|
+
}, Hn = (e, t) => {
|
|
1710
1710
|
if (!e.startsWith(t)) return e;
|
|
1711
1711
|
const i = e.slice(t.length);
|
|
1712
1712
|
return `${t} ${i.replace(/(\d{3})(?=\d)/g, "$1 ")}`;
|
|
1713
|
-
},
|
|
1713
|
+
}, Kn = ({
|
|
1714
1714
|
phonePrefix: e,
|
|
1715
1715
|
smsSent: t,
|
|
1716
1716
|
error: i,
|
|
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 =
|
|
1720
|
+
const { t: o } = F(), [a, s] = _(e), [c, h] = _(!1), [f, u] = _(!1), d = xt(e)?.code ?? "", g = Hn(a, e), b = J((p, m) => {
|
|
1721
1721
|
s(p), h(m);
|
|
1722
1722
|
}, []), y = J(() => {
|
|
1723
1723
|
u(!0), r.sendSms(a), u(!1);
|
|
@@ -1729,14 +1729,14 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1729
1729
|
return /* @__PURE__ */ l(ne, { children: [
|
|
1730
1730
|
/* @__PURE__ */ l("p", { class: "IncodeRedirectTabDescription", children: o("v2.redirectToMobile.sms.description") }),
|
|
1731
1731
|
t ? /* @__PURE__ */ l(
|
|
1732
|
-
|
|
1732
|
+
qn,
|
|
1733
1733
|
{
|
|
1734
1734
|
formattedPhone: g,
|
|
1735
1735
|
onResend: P,
|
|
1736
1736
|
onChangePhone: w
|
|
1737
1737
|
}
|
|
1738
1738
|
) : /* @__PURE__ */ l(
|
|
1739
|
-
|
|
1739
|
+
zn,
|
|
1740
1740
|
{
|
|
1741
1741
|
countryCode: d,
|
|
1742
1742
|
phonePrefix: e,
|
|
@@ -1748,7 +1748,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1748
1748
|
}
|
|
1749
1749
|
)
|
|
1750
1750
|
] });
|
|
1751
|
-
},
|
|
1751
|
+
}, Gn = ({
|
|
1752
1752
|
redirectUrl: e,
|
|
1753
1753
|
phonePrefix: t,
|
|
1754
1754
|
smsSent: i,
|
|
@@ -1764,24 +1764,24 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1764
1764
|
a.continueOnDesktop();
|
|
1765
1765
|
}, [a]);
|
|
1766
1766
|
return /* @__PURE__ */ l("div", { class: "IncodeRedirectContainer", children: [
|
|
1767
|
-
/* @__PURE__ */ l(
|
|
1767
|
+
/* @__PURE__ */ l(gn, { visible: h }),
|
|
1768
1768
|
/* @__PURE__ */ l("div", { class: "IncodeRedirectCard", children: [
|
|
1769
|
-
/* @__PURE__ */ l(
|
|
1769
|
+
/* @__PURE__ */ l(fn, { logoSrc: s }),
|
|
1770
1770
|
/* @__PURE__ */ l("div", { class: "IncodeRedirectOptions", children: /* @__PURE__ */ l(
|
|
1771
|
-
|
|
1771
|
+
G,
|
|
1772
1772
|
{
|
|
1773
1773
|
defaultValue: "qr",
|
|
1774
1774
|
listClassName: "IncodeRedirectTabs",
|
|
1775
1775
|
triggerClassName: "IncodeRedirectTab",
|
|
1776
1776
|
activeTriggerClassName: "IncodeRedirectTabActive",
|
|
1777
1777
|
children: [
|
|
1778
|
-
/* @__PURE__ */ l(
|
|
1779
|
-
/* @__PURE__ */ l(
|
|
1780
|
-
r ? null : /* @__PURE__ */ l(
|
|
1778
|
+
/* @__PURE__ */ l(G.List, { children: [
|
|
1779
|
+
/* @__PURE__ */ l(G.Trigger, { value: "qr", children: c("v2.redirectToMobile.tabs.0") }),
|
|
1780
|
+
r ? null : /* @__PURE__ */ l(G.Trigger, { value: "sms", children: c("v2.redirectToMobile.tabs.1") })
|
|
1781
1781
|
] }),
|
|
1782
|
-
/* @__PURE__ */ l(
|
|
1783
|
-
r ? null : /* @__PURE__ */ l(
|
|
1784
|
-
|
|
1782
|
+
/* @__PURE__ */ l(G.Content, { value: "qr", children: /* @__PURE__ */ l(On, { redirectUrl: e }) }),
|
|
1783
|
+
r ? null : /* @__PURE__ */ l(G.Content, { value: "sms", children: /* @__PURE__ */ l(
|
|
1784
|
+
Kn,
|
|
1785
1785
|
{
|
|
1786
1786
|
phonePrefix: t,
|
|
1787
1787
|
smsSent: i,
|
|
@@ -1794,7 +1794,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1794
1794
|
}
|
|
1795
1795
|
) }),
|
|
1796
1796
|
/* @__PURE__ */ l(
|
|
1797
|
-
|
|
1797
|
+
hn,
|
|
1798
1798
|
{
|
|
1799
1799
|
addContinueToDesktop: n,
|
|
1800
1800
|
onContinueOnDesktop: d
|
|
@@ -1802,7 +1802,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1802
1802
|
)
|
|
1803
1803
|
] })
|
|
1804
1804
|
] });
|
|
1805
|
-
},
|
|
1805
|
+
}, jn = ({
|
|
1806
1806
|
title: e,
|
|
1807
1807
|
subtitle: t,
|
|
1808
1808
|
logoSrc: i
|
|
@@ -1813,13 +1813,13 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1813
1813
|
n ? /* @__PURE__ */ l("h1", { class: "IncodeRedirectFinishedTitle", children: n }) : null,
|
|
1814
1814
|
o ? /* @__PURE__ */ l("p", { class: "IncodeRedirectFinishedSubtitle", children: o }) : null
|
|
1815
1815
|
] });
|
|
1816
|
-
},
|
|
1816
|
+
}, Yn = ({
|
|
1817
1817
|
config: e,
|
|
1818
1818
|
onFinish: t,
|
|
1819
1819
|
onContinue: i,
|
|
1820
1820
|
onError: r
|
|
1821
1821
|
}) => {
|
|
1822
|
-
const [n, o] =
|
|
1822
|
+
const [n, o] = It(
|
|
1823
1823
|
() => Jt({ config: e })
|
|
1824
1824
|
), { logoSrc: a, logoHeightPx: s } = qt({
|
|
1825
1825
|
hideHeader: void 0,
|
|
@@ -1835,7 +1835,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1835
1835
|
n.status === "error" && r?.(n.error);
|
|
1836
1836
|
}, [n.status, r, n]);
|
|
1837
1837
|
const c = n.status === "idle" || n.status === "loading" ? /* @__PURE__ */ l(x, { fullScreen: !0 }) : n.status === "redirecting" ? /* @__PURE__ */ l(
|
|
1838
|
-
|
|
1838
|
+
Gn,
|
|
1839
1839
|
{
|
|
1840
1840
|
redirectUrl: n.redirectUrl,
|
|
1841
1841
|
phonePrefix: n.phonePrefix,
|
|
@@ -1846,7 +1846,7 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1846
1846
|
manager: o,
|
|
1847
1847
|
logoSrc: a
|
|
1848
1848
|
}
|
|
1849
|
-
) : n.status === "finished" ? /* @__PURE__ */ l(
|
|
1849
|
+
) : n.status === "finished" ? /* @__PURE__ */ l(jn, { logoSrc: a }) : null;
|
|
1850
1850
|
return /* @__PURE__ */ l(
|
|
1851
1851
|
"div",
|
|
1852
1852
|
{
|
|
@@ -1860,8 +1860,8 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1860
1860
|
onFinish: t,
|
|
1861
1861
|
onContinue: i,
|
|
1862
1862
|
onError: r
|
|
1863
|
-
}) => /* @__PURE__ */ l(
|
|
1864
|
-
|
|
1863
|
+
}) => /* @__PURE__ */ l(Ct, { children: e ? /* @__PURE__ */ l(
|
|
1864
|
+
Yn,
|
|
1865
1865
|
{
|
|
1866
1866
|
config: e,
|
|
1867
1867
|
onFinish: t,
|
|
@@ -1869,8 +1869,8 @@ const On = /* @__PURE__ */ xt(_n), qn = ({
|
|
|
1869
1869
|
onError: r
|
|
1870
1870
|
}
|
|
1871
1871
|
) : null });
|
|
1872
|
-
|
|
1873
|
-
function
|
|
1872
|
+
Tt(Nt, "incode-redirect-to-mobile");
|
|
1873
|
+
function Jn(e) {
|
|
1874
1874
|
let t = e.replace("#", "");
|
|
1875
1875
|
t.length === 3 && (t = t.split("").map((u) => u + u).join(""));
|
|
1876
1876
|
const i = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
@@ -1909,8 +1909,8 @@ function Y(e, t, i) {
|
|
|
1909
1909
|
};
|
|
1910
1910
|
return `#${h(a)}${h(s)}${h(c)}`;
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1913
|
-
const t =
|
|
1912
|
+
function xn(e) {
|
|
1913
|
+
const t = Jn(e);
|
|
1914
1914
|
if (!t)
|
|
1915
1915
|
throw new Error(`Invalid color format: ${e}`);
|
|
1916
1916
|
return {
|
|
@@ -1923,10 +1923,10 @@ function Wn(e) {
|
|
|
1923
1923
|
900: Y(t.h, t.s, 20)
|
|
1924
1924
|
};
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function Qn(e, t) {
|
|
1927
1927
|
if (typeof document > "u")
|
|
1928
1928
|
return;
|
|
1929
|
-
const i =
|
|
1929
|
+
const i = xn(e);
|
|
1930
1930
|
let r = document.getElementById(
|
|
1931
1931
|
"incode-theme"
|
|
1932
1932
|
);
|
|
@@ -1946,11 +1946,11 @@ function Xn(e, t) {
|
|
|
1946
1946
|
`;
|
|
1947
1947
|
r.textContent = o;
|
|
1948
1948
|
}
|
|
1949
|
-
async function
|
|
1950
|
-
return (await
|
|
1949
|
+
async function Wn() {
|
|
1950
|
+
return (await Et.get("/omni/asset/fetch-all")).data;
|
|
1951
1951
|
}
|
|
1952
1952
|
const mt = /* @__PURE__ */ new Map();
|
|
1953
|
-
async function
|
|
1953
|
+
async function Xn(e) {
|
|
1954
1954
|
if (e.startsWith("data:"))
|
|
1955
1955
|
return e;
|
|
1956
1956
|
const t = mt.get(e);
|
|
@@ -1962,8 +1962,8 @@ async function $n(e) {
|
|
|
1962
1962
|
});
|
|
1963
1963
|
return mt.set(e, n), n;
|
|
1964
1964
|
}
|
|
1965
|
-
async function
|
|
1966
|
-
const e = await
|
|
1965
|
+
async function Zn() {
|
|
1966
|
+
const e = await Wn();
|
|
1967
1967
|
if (!e.theme)
|
|
1968
1968
|
throw new Error("Theme URL not found in assets response");
|
|
1969
1969
|
const t = e.theme, i = t.startsWith("http://") || t.startsWith("https://");
|
|
@@ -1974,17 +1974,17 @@ async function er() {
|
|
|
1974
1974
|
throw new Error(`Failed to fetch theme: ${a.statusText}`);
|
|
1975
1975
|
r = await a.json();
|
|
1976
1976
|
} else
|
|
1977
|
-
r = (await
|
|
1977
|
+
r = (await Et.get(t)).data;
|
|
1978
1978
|
const n = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo;
|
|
1979
1979
|
let o = n;
|
|
1980
|
-
return n && (o = await
|
|
1980
|
+
return n && (o = await Xn(n)), {
|
|
1981
1981
|
...r,
|
|
1982
1982
|
logo: o
|
|
1983
1983
|
};
|
|
1984
1984
|
}
|
|
1985
|
-
async function
|
|
1986
|
-
const e = await
|
|
1987
|
-
return e.main &&
|
|
1985
|
+
async function $n() {
|
|
1986
|
+
const e = await Zn();
|
|
1987
|
+
return e.main && Qn(e.main, e.buttonColor), e;
|
|
1988
1988
|
}
|
|
1989
1989
|
const Be = () => import("../id/id.es.js").then((e) => e.Id), ke = {
|
|
1990
1990
|
PHONE: () => import("../phone/phone.es.js").then((e) => e.Phone),
|
|
@@ -1994,44 +1994,44 @@ const Be = () => import("../id/id.es.js").then((e) => e.Id), ke = {
|
|
|
1994
1994
|
ID: Be,
|
|
1995
1995
|
TUTORIAL_ID: Be,
|
|
1996
1996
|
SECOND_ID: Be,
|
|
1997
|
-
FACE_MATCH: () => import("../faceMatch-
|
|
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-
|
|
2005
|
-
DOCUMENT_CAPTURE: () => import("../documentCapture-
|
|
2003
|
+
EXTERNAL_VERIFICATION: () => import("../ekycModule-DdD1iChB.js").then((e) => e.EkycModule),
|
|
2004
|
+
EKYB: () => import("../ekybModule-DiFpO2sE.js").then((e) => e.EkybModule),
|
|
2005
|
+
DOCUMENT_CAPTURE: () => import("../documentCapture-PdKA2frR.js").then(
|
|
2006
2006
|
(e) => e.DocumentCapture
|
|
2007
2007
|
),
|
|
2008
|
-
ADDRESS: () => import("../documentCapture-
|
|
2008
|
+
ADDRESS: () => import("../documentCapture-PdKA2frR.js").then(
|
|
2009
2009
|
(e) => e.DocumentCapture
|
|
2010
2010
|
)
|
|
2011
2011
|
};
|
|
2012
2012
|
function Pt() {
|
|
2013
2013
|
return zt({
|
|
2014
2014
|
modules: {
|
|
2015
|
-
PHONE:
|
|
2016
|
-
EMAIL:
|
|
2017
|
-
SELFIE:
|
|
2018
|
-
AUTHENTICATION:
|
|
2015
|
+
PHONE: tn,
|
|
2016
|
+
EMAIL: Zt,
|
|
2017
|
+
SELFIE: nn,
|
|
2018
|
+
AUTHENTICATION: rn,
|
|
2019
2019
|
ID: ae,
|
|
2020
2020
|
TUTORIAL_ID: ae,
|
|
2021
2021
|
SECOND_ID: ae,
|
|
2022
|
-
FACE_MATCH:
|
|
2023
|
-
CURP_VALIDATION:
|
|
2024
|
-
GOVT_VALIDATION_PROVISIONING:
|
|
2025
|
-
GEOLOCATION:
|
|
2026
|
-
EXTERNAL_VERIFICATION:
|
|
2027
|
-
EKYB:
|
|
2022
|
+
FACE_MATCH: $t,
|
|
2023
|
+
CURP_VALIDATION: on,
|
|
2024
|
+
GOVT_VALIDATION_PROVISIONING: sn,
|
|
2025
|
+
GEOLOCATION: en,
|
|
2026
|
+
EXTERNAL_VERIFICATION: Xt,
|
|
2027
|
+
EKYB: Wt,
|
|
2028
2028
|
DOCUMENT_CAPTURE: Ve,
|
|
2029
2029
|
ADDRESS: Ve
|
|
2030
2030
|
}
|
|
2031
2031
|
});
|
|
2032
2032
|
}
|
|
2033
2033
|
async function Bt(e) {
|
|
2034
|
-
await
|
|
2034
|
+
await an({
|
|
2035
2035
|
apiURL: e.apiURL,
|
|
2036
2036
|
token: e.token,
|
|
2037
2037
|
i18n: { lang: e.lang ?? "en" }
|
|
@@ -2039,7 +2039,7 @@ async function Bt(e) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
async function Lt() {
|
|
2041
2041
|
try {
|
|
2042
|
-
const e = await
|
|
2042
|
+
const e = await $n(), t = {
|
|
2043
2043
|
logoSrc: e.logo,
|
|
2044
2044
|
hideFooterBranding: e.hideFooterBranding
|
|
2045
2045
|
};
|
|
@@ -2049,7 +2049,7 @@ async function Lt() {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
2051
2051
|
function Dt(e, t) {
|
|
2052
|
-
const i =
|
|
2052
|
+
const i = yt(e.flow);
|
|
2053
2053
|
i.length > 0 && Yt({
|
|
2054
2054
|
...t,
|
|
2055
2055
|
pipelines: i
|
|
@@ -2057,7 +2057,7 @@ function Dt(e, t) {
|
|
|
2057
2057
|
console.error("WASM warmup failed:", r);
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function er(e) {
|
|
2061
2061
|
const t = e.currentStep;
|
|
2062
2062
|
if (t) {
|
|
2063
2063
|
const i = ke[t];
|
|
@@ -2065,7 +2065,7 @@ function nr(e) {
|
|
|
2065
2065
|
});
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
|
-
const
|
|
2068
|
+
const tr = ({
|
|
2069
2069
|
moduleKey: e,
|
|
2070
2070
|
onNext: t
|
|
2071
2071
|
}) => /* @__PURE__ */ l("section", { class: "IncodeUnsupportedModule", "aria-live": "polite", children: /* @__PURE__ */ l("div", { class: "IncodeUnsupportedModuleContent", children: [
|
|
@@ -2108,7 +2108,7 @@ function pt(e) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
};
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function Br(e) {
|
|
2112
2112
|
const { token: t } = e;
|
|
2113
2113
|
if (V.has(t))
|
|
2114
2114
|
return pt(t);
|
|
@@ -2135,7 +2135,7 @@ function Dr(e) {
|
|
|
2135
2135
|
}), h = o.subscribe((f) => {
|
|
2136
2136
|
if (f.status === "ready") {
|
|
2137
2137
|
const u = f;
|
|
2138
|
-
e.wasmConfig && Dt(u, e.wasmConfig),
|
|
2138
|
+
e.wasmConfig && Dt(u, e.wasmConfig), er(u), a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "ready", a.readyResolve();
|
|
2139
2139
|
} else f.status === "error" && (a.unsubscribe?.(), a.unsubscribe = void 0, a.status = "error", a.error = f.error, a.readyReject(new Error(f.error)));
|
|
2140
2140
|
});
|
|
2141
2141
|
a.unsubscribe = h, o.load(), await c;
|
|
@@ -2153,7 +2153,7 @@ function wt(e) {
|
|
|
2153
2153
|
const t = De(e);
|
|
2154
2154
|
return t && V.delete(e), t;
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function nr(e) {
|
|
2157
2157
|
const { apiURL: t, token: i, lang: r, disableDashboardTheme: n, onError: o } = e, a = Le(null), [s, c] = _(() => {
|
|
2158
2158
|
const f = De(i);
|
|
2159
2159
|
if (f?.status === "ready") {
|
|
@@ -2206,7 +2206,7 @@ function or(e) {
|
|
|
2206
2206
|
})();
|
|
2207
2207
|
}, [t, i, r, n, o, s]), s;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function rr(e) {
|
|
2210
2210
|
const { moduleKey: t, onModuleLoading: i, onModuleLoaded: r, onError: n } = e, [o, a] = _({ status: "idle" });
|
|
2211
2211
|
return L(() => {
|
|
2212
2212
|
if (!t) {
|
|
@@ -2232,7 +2232,7 @@ function ir(e) {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
}, [t, i, r, n]), o;
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function or(e, t) {
|
|
2236
2236
|
const i = Le(/* @__PURE__ */ new Set());
|
|
2237
2237
|
L(() => {
|
|
2238
2238
|
if (t < e.length - 1) {
|
|
@@ -2247,31 +2247,31 @@ function sr(e, t) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
}, [e, t]);
|
|
2249
2249
|
}
|
|
2250
|
-
const
|
|
2250
|
+
const ir = ({
|
|
2251
2251
|
config: e,
|
|
2252
2252
|
onFinish: t,
|
|
2253
2253
|
onError: i
|
|
2254
2254
|
}) => {
|
|
2255
|
-
const { t: r } = F(), [n, o] = _(!1), a =
|
|
2255
|
+
const { t: r } = F(), [n, o] = _(!1), a = nr({
|
|
2256
2256
|
apiURL: e.apiURL,
|
|
2257
2257
|
token: e.token,
|
|
2258
2258
|
lang: e.lang,
|
|
2259
2259
|
disableDashboardTheme: e.disableDashboardTheme,
|
|
2260
2260
|
onError: i
|
|
2261
|
-
}), [s, c] =
|
|
2261
|
+
}), [s, c] = It(() => a.flowManager, {
|
|
2262
2262
|
autoLoad: !1
|
|
2263
|
-
}), h = s?.status === "ready" && s.flow.redirectDesktopToMobile && !n, f =
|
|
2263
|
+
}), h = s?.status === "ready" && s.flow.redirectDesktopToMobile && !n, f = rr({
|
|
2264
2264
|
moduleKey: s?.status === "ready" && !h ? s.currentStep : void 0,
|
|
2265
2265
|
onModuleLoading: e.onModuleLoading,
|
|
2266
2266
|
onModuleLoaded: e.onModuleLoaded,
|
|
2267
2267
|
onError: i
|
|
2268
2268
|
});
|
|
2269
|
-
if (
|
|
2269
|
+
if (or(
|
|
2270
2270
|
s?.status === "ready" ? s.steps : [],
|
|
2271
2271
|
s?.status === "ready" ? s.currentStepIndex : -1
|
|
2272
2272
|
), L(() => {
|
|
2273
2273
|
if (s?.status === "ready" && e.wasmConfig) {
|
|
2274
|
-
const u = s, d =
|
|
2274
|
+
const u = s, d = yt(u.flow);
|
|
2275
2275
|
d.length > 0 && (e.onWasmWarmup?.(d), Dt(u, e.wasmConfig));
|
|
2276
2276
|
}
|
|
2277
2277
|
}, [s, e]), L(() => {
|
|
@@ -2352,7 +2352,7 @@ const ar = ({
|
|
|
2352
2352
|
) });
|
|
2353
2353
|
if (f.status === "unsupported")
|
|
2354
2354
|
return /* @__PURE__ */ l("div", { class: "IncodeFlow", children: /* @__PURE__ */ l(
|
|
2355
|
-
|
|
2355
|
+
tr,
|
|
2356
2356
|
{
|
|
2357
2357
|
moduleKey: u,
|
|
2358
2358
|
onNext: () => c.completeModule()
|
|
@@ -2547,21 +2547,21 @@ const ar = ({
|
|
|
2547
2547
|
) });
|
|
2548
2548
|
}
|
|
2549
2549
|
return null;
|
|
2550
|
-
},
|
|
2550
|
+
}, sr = ({
|
|
2551
2551
|
config: e,
|
|
2552
2552
|
onFinish: t = () => {
|
|
2553
2553
|
},
|
|
2554
2554
|
onError: i
|
|
2555
|
-
}) => /* @__PURE__ */ l(
|
|
2556
|
-
|
|
2555
|
+
}) => /* @__PURE__ */ l(Ct, { children: e ? /* @__PURE__ */ l(
|
|
2556
|
+
ir,
|
|
2557
2557
|
{
|
|
2558
2558
|
config: e,
|
|
2559
2559
|
onFinish: t,
|
|
2560
2560
|
onError: i
|
|
2561
2561
|
}
|
|
2562
2562
|
) : null });
|
|
2563
|
-
|
|
2563
|
+
Tt(sr, "incode-flow");
|
|
2564
2564
|
export {
|
|
2565
|
-
|
|
2566
|
-
|
|
2565
|
+
sr as IncodeFlow,
|
|
2566
|
+
Br as preloadIncodeFlow
|
|
2567
2567
|
};
|