@incodetech/web 0.0.0-dev-20260421-3d3274a → 0.0.0-dev-20260422-96fafd7
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/authentication/authentication.es.js +1 -1
- package/dist/consent/consent.es.js +2 -9
- package/dist/consent/styles.css +0 -7
- package/dist/{documentCapture-B2xLZjOb.js → documentCapture-DNi_TybD.js} +2 -2
- package/dist/email/email.es.js +1 -1
- package/dist/{extensibility-DQEOFw2F.js → extensibility-65EUn2O_.js} +2 -2
- package/dist/extensibility.es.js +3 -3
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-SsK7Fny4.js → faceMatch-BJCmMX5x.js} +1 -1
- package/dist/faceMatch-BnEBg97b.js +2 -0
- package/dist/flow/flow.es.js +27 -11
- package/dist/flow/styles.css +0 -7
- package/dist/id/id.es.js +5 -5
- package/dist/{mandatoryConsent-Cq1ZYojD.js → mandatoryConsent-BrkTmUBW.js} +2 -9
- package/dist/{processing-DCGDmzi-.js → processing-CjYwR8Kd.js} +1 -1
- package/dist/selfie/selfie.es.js +3 -3
- package/dist/signature/signature.es.js +108 -113
- package/dist/{transitionSpinner-BPyrHizA.js → transitionSpinner-tJrx3vrs.js} +4 -4
- package/dist/{tutorial--guc-r5j.js → tutorial-DcOKYchw.js} +1 -1
- package/dist/{useModuleLoader-nhyL4PCH.js → useModuleLoader-DmFt81vp.js} +4 -4
- package/dist/workflow/styles.css +0 -7
- package/dist/workflow/workflow.es.js +2 -2
- package/package.json +2 -2
- package/dist/faceMatch-C3cT9S78.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
2
|
import { o as t, t as n } from "../incodeComponent-pGWsrcca.js";
|
|
3
|
-
import { n as r, r as i, t as a } from "../tutorial
|
|
3
|
+
import { n as r, r as i, t as a } from "../tutorial-DcOKYchw.js";
|
|
4
4
|
import { t as o } from "../incodeModule-BH9gV7jI.js";
|
|
5
5
|
import { createAuthenticationManager as s } from "@incodetech/core/authentication";
|
|
6
6
|
//#region src/modules/authentication/authentication.tsx
|
|
@@ -2,8 +2,7 @@ import { n as e } from "../i18n-ntrVdqVv.js";
|
|
|
2
2
|
import { v as t } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as n, t as r } from "../incodeComponent-pGWsrcca.js";
|
|
4
4
|
import { t as i } from "../page-D5Mt-0zn.js";
|
|
5
|
-
import { t as a } from "../
|
|
6
|
-
import "../spinner-BmFWJNHp.js";
|
|
5
|
+
import { t as a } from "../transitionSpinner-tJrx3vrs.js";
|
|
7
6
|
import { t as o } from "../button-4-ToV5B_.js";
|
|
8
7
|
import { t as s } from "../checkbox-CUOVvO_K.js";
|
|
9
8
|
import { t as c } from "../incodeModule-BH9gV7jI.js";
|
|
@@ -16,13 +15,7 @@ var d = ({ config: r, manager: c, onFinish: d, onError: f }) => {
|
|
|
16
15
|
if (!r) throw Error("Consent config is required");
|
|
17
16
|
return u({ config: r });
|
|
18
17
|
}, { manageLifecycle: !c });
|
|
19
|
-
return m.status === "finished" ? (d?.(), null) : m.status === "error" ? (f?.(m.error), null) : m.status === "idle" || m.status === "loading" ? /* @__PURE__ */ t(i, {
|
|
20
|
-
className: "IncodeConsentPage",
|
|
21
|
-
children: /* @__PURE__ */ t("div", {
|
|
22
|
-
class: "IncodeConsentCentered",
|
|
23
|
-
children: /* @__PURE__ */ t(a, {})
|
|
24
|
-
})
|
|
25
|
-
}) : /* @__PURE__ */ t(i, {
|
|
18
|
+
return m.status === "finished" ? (d?.(), null) : m.status === "error" ? (f?.(m.error), null) : m.status === "idle" || m.status === "loading" ? /* @__PURE__ */ t(a, { hideText: !0 }) : /* @__PURE__ */ t(i, {
|
|
26
19
|
className: "IncodeConsentPage",
|
|
27
20
|
hideFooterBranding: !0,
|
|
28
21
|
hideHeader: !0,
|
package/dist/consent/styles.css
CHANGED
|
@@ -11,13 +11,6 @@
|
|
|
11
11
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.IncodeConsentPage .IncodeConsentCentered {
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
14
|
.IncodeConsentPage .IncodeConsentContent {
|
|
22
15
|
height: 100%;
|
|
23
16
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
@@ -3,12 +3,12 @@ import { S as t, _ as n, h as r, l as i, m as a, p as o, v as s } from "./vendor
|
|
|
3
3
|
import { o as c, r as l, t as u } from "./incodeComponent-pGWsrcca.js";
|
|
4
4
|
import { t as d } from "./spacer-DCljE53A.js";
|
|
5
5
|
import { t as f } from "./page-D5Mt-0zn.js";
|
|
6
|
-
import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-
|
|
6
|
+
import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-65EUn2O_.js";
|
|
7
7
|
import { n as b } from "./loadingIcon-wTrHZMGC.js";
|
|
8
8
|
import { t as x } from "./spinner-DyRQfsz_.js";
|
|
9
9
|
import { t as S } from "./button-4-ToV5B_.js";
|
|
10
10
|
import { a as C, f as w, r as T } from "./icons-GsJu_yZn.js";
|
|
11
|
-
import { o as E } from "./tutorial
|
|
11
|
+
import { o as E } from "./tutorial-DcOKYchw.js";
|
|
12
12
|
import { t as D } from "./successIcon-C4GI_9SU.js";
|
|
13
13
|
import { t as O } from "./bottomSheet-D7Bcy6_9.js";
|
|
14
14
|
import { t as k } from "./incodeModule-BH9gV7jI.js";
|
package/dist/email/email.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
|
3
3
|
import { o as i, t as a } from "../incodeComponent-pGWsrcca.js";
|
|
4
4
|
import { t as o } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as s } from "../page-D5Mt-0zn.js";
|
|
6
|
-
import "../extensibility-
|
|
6
|
+
import "../extensibility-65EUn2O_.js";
|
|
7
7
|
import { t as c } from "../button-4-ToV5B_.js";
|
|
8
8
|
import { t as l } from "../inputComposed-BXGBX7oR.js";
|
|
9
9
|
import { t as u } from "../otpInput-qhbE2Zg-.js";
|
|
@@ -8,10 +8,10 @@ import { n as p } from "./loadingIcon-wTrHZMGC.js";
|
|
|
8
8
|
import { t as m } from "./typography-B7nxauEL.js";
|
|
9
9
|
import { t as h } from "./spinner-DyRQfsz_.js";
|
|
10
10
|
import "./spinner-BmFWJNHp.js";
|
|
11
|
-
import "./processing-
|
|
11
|
+
import "./processing-CjYwR8Kd.js";
|
|
12
12
|
import { t as g } from "./button-4-ToV5B_.js";
|
|
13
13
|
import { d as _, h as v, i as y, r as b, s as x, t as S } from "./icons-GsJu_yZn.js";
|
|
14
|
-
import { a as C, i as w } from "./tutorial
|
|
14
|
+
import { a as C, i as w } from "./tutorial-DcOKYchw.js";
|
|
15
15
|
import { t as T } from "./successIcon-C4GI_9SU.js";
|
|
16
16
|
import "./verificationResult-D7grOTth.js";
|
|
17
17
|
import "./inputComposed-BXGBX7oR.js";
|
package/dist/extensibility.es.js
CHANGED
|
@@ -3,13 +3,13 @@ import { t } from "./uiConfig-CwpQ-IM6.js";
|
|
|
3
3
|
import { a as n, n as r, o as i, t as a } from "./incodeComponent-pGWsrcca.js";
|
|
4
4
|
import { t as o } from "./spacer-DCljE53A.js";
|
|
5
5
|
import { t as s } from "./page-D5Mt-0zn.js";
|
|
6
|
-
import { _ as c, a as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T } from "./extensibility-
|
|
6
|
+
import { _ as c, a as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T } from "./extensibility-65EUn2O_.js";
|
|
7
7
|
import { a as E, i as D, n as O, o as k, s as A, t as j } from "./typography-B7nxauEL.js";
|
|
8
8
|
import { t as M } from "./spinner-DyRQfsz_.js";
|
|
9
|
-
import { t as N } from "./processing-
|
|
9
|
+
import { t as N } from "./processing-CjYwR8Kd.js";
|
|
10
10
|
import { t as P } from "./button-4-ToV5B_.js";
|
|
11
11
|
import { a as F, c as I, d as L, f as R, h as z, i as B, l as V, m as H, n as U, o as W, p as G, r as K, s as q, t as J, u as Y } from "./icons-GsJu_yZn.js";
|
|
12
|
-
import { a as X, i as Z, n as Q, o as $, r as ee, t as te } from "./tutorial
|
|
12
|
+
import { a as X, i as Z, n as Q, o as $, r as ee, t as te } from "./tutorial-DcOKYchw.js";
|
|
13
13
|
import { t as ne } from "./successIcon-C4GI_9SU.js";
|
|
14
14
|
import { t as re } from "./verificationResult-D7grOTth.js";
|
|
15
15
|
import { n as ie, t as ae } from "./inputComposed-BXGBX7oR.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../faceMatch-
|
|
1
|
+
import { t as e } from "../faceMatch-BJCmMX5x.js";
|
|
2
2
|
export { e as FaceMatch };
|
|
@@ -5,7 +5,7 @@ import { t as s } from "./spacer-DCljE53A.js";
|
|
|
5
5
|
import { t as c } from "./page-D5Mt-0zn.js";
|
|
6
6
|
import { n as l } from "./loadingIcon-wTrHZMGC.js";
|
|
7
7
|
import { t as u } from "./typography-B7nxauEL.js";
|
|
8
|
-
import { t as d } from "./transitionSpinner-
|
|
8
|
+
import { t as d } from "./transitionSpinner-tJrx3vrs.js";
|
|
9
9
|
import { t as f } from "./button-4-ToV5B_.js";
|
|
10
10
|
import { t as p } from "./incodeModule-BH9gV7jI.js";
|
|
11
11
|
import { createFaceMatchManager as m } from "@incodetech/core/face-match";
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -2,9 +2,9 @@ import { n as e } from "../i18n-ntrVdqVv.js";
|
|
|
2
2
|
import { _ as t, c as n, l as r, o as i, p as a, v as o } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { t as s } from "../uiConfig-CwpQ-IM6.js";
|
|
4
4
|
import { o as c, t as l } from "../incodeComponent-pGWsrcca.js";
|
|
5
|
-
import { t as u } from "../transitionSpinner-
|
|
5
|
+
import { t as u } from "../transitionSpinner-tJrx3vrs.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-DmFt81vp.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";
|
|
@@ -196,9 +196,11 @@ function U(e) {
|
|
|
196
196
|
token: t,
|
|
197
197
|
lang: i,
|
|
198
198
|
flowManager: f.flowManager
|
|
199
|
-
})
|
|
199
|
+
});
|
|
200
|
+
let r = o ? Promise.resolve() : x().then((e) => {
|
|
200
201
|
e.uiConfig && s(e.uiConfig);
|
|
201
|
-
})
|
|
202
|
+
}), a = f.flowManager.waitForReady();
|
|
203
|
+
await Promise.all([a, r]), m({
|
|
202
204
|
status: "ready",
|
|
203
205
|
flowManager: f.flowManager
|
|
204
206
|
});
|
|
@@ -239,8 +241,8 @@ var W = n(() => import("../homeScreen-DUHiJ4GS.js").then((e) => ({ default: e.Ho
|
|
|
239
241
|
moduleKey: d.status === "ready" && d.homeScreen.visible ? g : void 0,
|
|
240
242
|
modules: f
|
|
241
243
|
});
|
|
242
|
-
let x = v.status === "loaded", w = n.enableHome === !0 && d.status === "ready" && d.currentStepIndex === 0 && d.homeScreen.visible === !1 && v.status === "loading", E = O(d.presentation.isAwaitingReady === !0, 150), D = O(d.status === "ready" && (v.status === "idle" || v.status === "loading" || v.status === "error"), 150);
|
|
243
|
-
|
|
244
|
+
let x = v.status === "loaded", w = n.enableHome === !0 && d.status === "ready" && d.flow.disableLaunchScreen !== !0 && d.currentStepIndex === 0 && d.homeScreen.visible === !1 && v.status === "loading", E = O(d.presentation.isAwaitingReady === !0, 150), D = O(d.status === "ready" && (v.status === "idle" || v.status === "loading" || v.status === "error"), 150);
|
|
245
|
+
b(d?.status === "ready" ? d.steps : [], d?.status === "ready" ? d.currentStepIndex : -1, f, x), t(() => {
|
|
244
246
|
d.presentation.shouldPrefetchHome && C();
|
|
245
247
|
}, [d.presentation.shouldPrefetchHome]), t(() => {
|
|
246
248
|
n.lang && s.language !== n.lang && s.changeLanguage(n.lang);
|
|
@@ -262,7 +264,9 @@ var W = n(() => import("../homeScreen-DUHiJ4GS.js").then((e) => ({ default: e.Ho
|
|
|
262
264
|
d
|
|
263
265
|
]), t(() => {
|
|
264
266
|
d?.status === "ready" && d.currentStep === "ID" && d.steps.includes("TUTORIAL_ID") && p.completeModule();
|
|
265
|
-
}, [d, p])
|
|
267
|
+
}, [d, p]);
|
|
268
|
+
let k = !(n.spinnerConfig?.title || n.spinnerConfig?.subtitle);
|
|
269
|
+
if (l.status === "error") return /* @__PURE__ */ o("div", {
|
|
266
270
|
class: "IncodeFlow",
|
|
267
271
|
children: /* @__PURE__ */ o("div", { children: ["Error: ", l.error] })
|
|
268
272
|
});
|
|
@@ -278,11 +282,17 @@ var W = n(() => import("../homeScreen-DUHiJ4GS.js").then((e) => ({ default: e.Ho
|
|
|
278
282
|
});
|
|
279
283
|
if (l.status === "initializing") return /* @__PURE__ */ o("div", {
|
|
280
284
|
class: "IncodeFlow",
|
|
281
|
-
children: /* @__PURE__ */ o(u, {
|
|
285
|
+
children: /* @__PURE__ */ o(u, {
|
|
286
|
+
spinnerConfig: n.spinnerConfig,
|
|
287
|
+
hideText: k
|
|
288
|
+
})
|
|
282
289
|
});
|
|
283
290
|
if (d.presentation.isAwaitingReady) return E ? /* @__PURE__ */ o("div", {
|
|
284
291
|
class: "IncodeFlow",
|
|
285
|
-
children: /* @__PURE__ */ o(u, {
|
|
292
|
+
children: /* @__PURE__ */ o(u, {
|
|
293
|
+
spinnerConfig: n.spinnerConfig,
|
|
294
|
+
hideText: k
|
|
295
|
+
})
|
|
286
296
|
}) : /* @__PURE__ */ o("div", { class: "IncodeFlow" });
|
|
287
297
|
if (d.status === "error") return /* @__PURE__ */ o("div", {
|
|
288
298
|
class: "IncodeFlow",
|
|
@@ -293,7 +303,10 @@ var W = n(() => import("../homeScreen-DUHiJ4GS.js").then((e) => ({ default: e.Ho
|
|
|
293
303
|
let { currentStep: e, config: t, flow: { flowId: r } } = d;
|
|
294
304
|
if (!e || !t) return /* @__PURE__ */ o("div", {
|
|
295
305
|
class: "IncodeFlow",
|
|
296
|
-
children: /* @__PURE__ */ o(u, {
|
|
306
|
+
children: /* @__PURE__ */ o(u, {
|
|
307
|
+
spinnerConfig: n.spinnerConfig,
|
|
308
|
+
hideText: k
|
|
309
|
+
})
|
|
297
310
|
});
|
|
298
311
|
if (v.status === "unsupported") return /* @__PURE__ */ o("div", {
|
|
299
312
|
class: "IncodeFlow",
|
|
@@ -304,7 +317,10 @@ var W = n(() => import("../homeScreen-DUHiJ4GS.js").then((e) => ({ default: e.Ho
|
|
|
304
317
|
});
|
|
305
318
|
if (v.status === "idle" || v.status === "loading" || v.status === "error") return D ? /* @__PURE__ */ o("div", {
|
|
306
319
|
class: "IncodeFlow",
|
|
307
|
-
children: /* @__PURE__ */ o(u, {
|
|
320
|
+
children: /* @__PURE__ */ o(u, {
|
|
321
|
+
spinnerConfig: n.spinnerConfig,
|
|
322
|
+
hideText: k
|
|
323
|
+
})
|
|
308
324
|
}) : /* @__PURE__ */ o("div", { class: "IncodeFlow" });
|
|
309
325
|
let { Component: i } = v;
|
|
310
326
|
if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ o("div", {
|
package/dist/flow/styles.css
CHANGED
|
@@ -7105,13 +7105,6 @@
|
|
|
7105
7105
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
7106
7106
|
}
|
|
7107
7107
|
|
|
7108
|
-
.IncodeConsentPage .IncodeConsentCentered {
|
|
7109
|
-
justify-content: center;
|
|
7110
|
-
align-items: center;
|
|
7111
|
-
height: 100%;
|
|
7112
|
-
display: flex;
|
|
7113
|
-
}
|
|
7114
|
-
|
|
7115
7108
|
.IncodeConsentPage .IncodeConsentContent {
|
|
7116
7109
|
height: 100%;
|
|
7117
7110
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
package/dist/id/id.es.js
CHANGED
|
@@ -2,15 +2,15 @@ import { n as e } from "../i18n-ntrVdqVv.js";
|
|
|
2
2
|
import { _ as t, c as n, l as r, o as i, v as a } from "../vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o, t as s } from "../incodeComponent-pGWsrcca.js";
|
|
4
4
|
import { t as c } from "../page-D5Mt-0zn.js";
|
|
5
|
-
import { a as l, i as u, n as d, o as f, r as p, t as m } from "../extensibility-
|
|
5
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "../extensibility-65EUn2O_.js";
|
|
6
6
|
import { n as h } from "../loadingIcon-wTrHZMGC.js";
|
|
7
7
|
import { t as g } from "../spinner-DyRQfsz_.js";
|
|
8
8
|
import "../spinner-BmFWJNHp.js";
|
|
9
|
-
import { t as _ } from "../transitionSpinner-
|
|
10
|
-
import { t as v } from "../processing-
|
|
9
|
+
import { t as _ } from "../transitionSpinner-tJrx3vrs.js";
|
|
10
|
+
import { t as v } from "../processing-CjYwR8Kd.js";
|
|
11
11
|
import { t as y } from "../button-4-ToV5B_.js";
|
|
12
12
|
import { h as b, s as x } from "../icons-GsJu_yZn.js";
|
|
13
|
-
import { o as S, r as C } from "../tutorial
|
|
13
|
+
import { o as S, r as C } from "../tutorial-DcOKYchw.js";
|
|
14
14
|
import { t as w } from "../successIcon-C4GI_9SU.js";
|
|
15
15
|
import { t as T } from "../incodeModule-BH9gV7jI.js";
|
|
16
16
|
import { t as E } from "../tabs-DnpffRKI.js";
|
|
@@ -219,7 +219,7 @@ function B() {
|
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/modules/id/id.tsx
|
|
222
|
-
var V = n(() => import("../mandatoryConsent-
|
|
222
|
+
var V = n(() => import("../mandatoryConsent-BrkTmUBW.js").then((e) => ({ default: e.MandatoryConsent }))), H = ({ config: n, manager: r, onFinish: s, onError: c }) => {
|
|
223
223
|
A();
|
|
224
224
|
let { t: h } = e();
|
|
225
225
|
t(() => {
|
|
@@ -2,8 +2,7 @@ import { n as e } from "./i18n-ntrVdqVv.js";
|
|
|
2
2
|
import { _ as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
3
|
import { o as r, t as i } from "./incodeComponent-pGWsrcca.js";
|
|
4
4
|
import { t as a } from "./page-D5Mt-0zn.js";
|
|
5
|
-
import { t as o } from "./
|
|
6
|
-
import "./spinner-BmFWJNHp.js";
|
|
5
|
+
import { t as o } from "./transitionSpinner-tJrx3vrs.js";
|
|
7
6
|
import { t as s } from "./button-4-ToV5B_.js";
|
|
8
7
|
import { t as c } from "./checkbox-CUOVvO_K.js";
|
|
9
8
|
import { t as l } from "./incodeModule-BH9gV7jI.js";
|
|
@@ -27,13 +26,7 @@ var f = ({ config: i, manager: l, onFinish: f, onError: p }) => {
|
|
|
27
26
|
f,
|
|
28
27
|
p
|
|
29
28
|
]), h.status === "finished" || h.status === "closed" || h.status === "error") return null;
|
|
30
|
-
if (h.status === "idle" || h.status === "loading") return /* @__PURE__ */ n(
|
|
31
|
-
className: "IncodeConsentPage",
|
|
32
|
-
children: /* @__PURE__ */ n("div", {
|
|
33
|
-
class: "IncodeConsentCentered",
|
|
34
|
-
children: /* @__PURE__ */ n(o, {})
|
|
35
|
-
})
|
|
36
|
-
});
|
|
29
|
+
if (h.status === "idle" || h.status === "loading") return /* @__PURE__ */ n(o, { hideText: !0 });
|
|
37
30
|
let _ = h.text.split("\n").filter((e) => e.trim().length > 0).join(" ");
|
|
38
31
|
return /* @__PURE__ */ n(a, {
|
|
39
32
|
className: "IncodeConsentPage",
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
2
|
import { o as n, t as r } from "../incodeComponent-pGWsrcca.js";
|
|
3
|
-
import { t as i } from "../transitionSpinner-
|
|
4
|
-
import { t as a } from "../processing-
|
|
5
|
-
import { n as o, r as s, t as c } from "../tutorial
|
|
3
|
+
import { t as i } from "../transitionSpinner-tJrx3vrs.js";
|
|
4
|
+
import { t as a } from "../processing-CjYwR8Kd.js";
|
|
5
|
+
import { n as o, r as s, t as c } from "../tutorial-DcOKYchw.js";
|
|
6
6
|
import { t as l } from "../incodeModule-BH9gV7jI.js";
|
|
7
7
|
import { createSelfieManager as u } from "@incodetech/core/selfie";
|
|
8
8
|
//#region src/modules/selfie/preloadTutorialAssets.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { n as e } from "../i18n-ntrVdqVv.js";
|
|
2
|
-
import { _ as t, a as n,
|
|
3
|
-
import { o as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { r as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { createSignatureManager as
|
|
2
|
+
import { _ as t, a as n, h as r, l as i, p as a, u as o, v as s } from "../vendor-preact-D6SntenC.js";
|
|
3
|
+
import { o as c, t as l } from "../incodeComponent-pGWsrcca.js";
|
|
4
|
+
import { t as u } from "../spacer-DCljE53A.js";
|
|
5
|
+
import { t as d } from "../page-D5Mt-0zn.js";
|
|
6
|
+
import { r as f } from "../typography-B7nxauEL.js";
|
|
7
|
+
import { t as p } from "../button-4-ToV5B_.js";
|
|
8
|
+
import { t as m } from "../successIcon-C4GI_9SU.js";
|
|
9
|
+
import { t as h } from "../incodeModule-BH9gV7jI.js";
|
|
10
|
+
import { t as g } from "../defineProperty-DB5OmvER.js";
|
|
11
|
+
import { createSignatureManager as _ } from "@incodetech/core/signature";
|
|
12
12
|
//#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
|
|
13
|
-
var
|
|
13
|
+
var v = class {
|
|
14
14
|
constructor(e, t, n, r) {
|
|
15
|
-
if (
|
|
15
|
+
if (g(this, "x", void 0), g(this, "y", void 0), g(this, "pressure", void 0), g(this, "time", void 0), isNaN(e) || isNaN(t)) throw Error(`Point is invalid: (${e}, ${t})`);
|
|
16
16
|
this.x = +e, this.y = +t, this.pressure = n || 0, this.time = r || Date.now();
|
|
17
17
|
}
|
|
18
18
|
distanceTo(e) {
|
|
@@ -24,7 +24,7 @@ var y = class {
|
|
|
24
24
|
velocityFrom(e) {
|
|
25
25
|
return this.time === e.time ? 0 : this.distanceTo(e) / (this.time - e.time);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, y = class e {
|
|
28
28
|
constructor(e, t, n, r, i, a) {
|
|
29
29
|
this.startPoint = e, this.control2 = t, this.control1 = n, this.endPoint = r, this.startWidth = i, this.endWidth = a;
|
|
30
30
|
}
|
|
@@ -44,8 +44,8 @@ var y = class {
|
|
|
44
44
|
y: c.y + f * p
|
|
45
45
|
}, h = t.x - m.x, g = t.y - m.y;
|
|
46
46
|
return {
|
|
47
|
-
c1: new
|
|
48
|
-
c2: new
|
|
47
|
+
c1: new v(s.x + h, s.y + g),
|
|
48
|
+
c2: new v(c.x + h, c.y + g)
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
length() {
|
|
@@ -63,9 +63,9 @@ var y = class {
|
|
|
63
63
|
point(e, t, n, r, i) {
|
|
64
64
|
return t * (1 - e) * (1 - e) * (1 - e) + 3 * n * (1 - e) * (1 - e) * e + 3 * r * (1 - e) * e * e + i * e * e * e;
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, b = class {
|
|
67
67
|
constructor() {
|
|
68
|
-
|
|
68
|
+
g(this, "_et", void 0);
|
|
69
69
|
try {
|
|
70
70
|
this._et = new EventTarget();
|
|
71
71
|
} catch {
|
|
@@ -82,7 +82,7 @@ var y = class {
|
|
|
82
82
|
this._et.removeEventListener(e, t, n);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
function
|
|
85
|
+
function x(e, t = 250) {
|
|
86
86
|
let n = 0, r = null, i, a, o, s = () => {
|
|
87
87
|
n = Date.now(), r = null, i = e.apply(a, o), r || (a = null, o = []);
|
|
88
88
|
};
|
|
@@ -91,9 +91,9 @@ function S(e, t = 250) {
|
|
|
91
91
|
return a = this, o = c, u <= 0 || u > t ? (r &&= (clearTimeout(r), null), n = l, i = e.apply(a, o), r || (a = null, o = [])) : r ||= window.setTimeout(s, u), i;
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var S = class e extends b {
|
|
95
95
|
constructor(t, n = {}) {
|
|
96
|
-
super(),
|
|
96
|
+
super(), g(this, "dotSize", void 0), g(this, "minWidth", void 0), g(this, "maxWidth", void 0), g(this, "penColor", void 0), g(this, "minDistance", void 0), g(this, "velocityFilterWeight", void 0), g(this, "compositeOperation", void 0), g(this, "backgroundColor", void 0), g(this, "throttle", void 0), g(this, "canvasContextOptions", void 0), g(this, "_ctx", void 0), g(this, "_drawingStroke", !1), g(this, "_isEmpty", !0), g(this, "_dataUrl", void 0), g(this, "_dataUrlOptions", void 0), g(this, "_lastPoints", []), g(this, "_data", []), g(this, "_lastVelocity", 0), g(this, "_lastWidth", 0), g(this, "_strokeMoveUpdate", void 0), g(this, "_strokePointerId", void 0), this.canvas = t, this.velocityFilterWeight = n.velocityFilterWeight || .7, this.minWidth = n.minWidth || .5, this.maxWidth = n.maxWidth || 2.5, this.throttle = n.throttle ?? 16, this.minDistance = n.minDistance ?? 5, this.dotSize = n.dotSize || 0, this.penColor = n.penColor || "black", this.backgroundColor = n.backgroundColor || "rgba(0,0,0,0)", this.compositeOperation = n.compositeOperation || "source-over", this.canvasContextOptions = n.canvasContextOptions ?? {}, this._strokeMoveUpdate = this.throttle ? x(e.prototype._strokeUpdate, this.throttle) : e.prototype._strokeUpdate, this._handleMouseDown = this._handleMouseDown.bind(this), this._handleMouseMove = this._handleMouseMove.bind(this), this._handleMouseUp = this._handleMouseUp.bind(this), this._handleTouchStart = this._handleTouchStart.bind(this), this._handleTouchMove = this._handleTouchMove.bind(this), this._handleTouchEnd = this._handleTouchEnd.bind(this), this._handlePointerDown = this._handlePointerDown.bind(this), this._handlePointerMove = this._handlePointerMove.bind(this), this._handlePointerUp = this._handlePointerUp.bind(this), this._handlePointerCancel = this._handlePointerCancel.bind(this), this._handleTouchCancel = this._handleTouchCancel.bind(this), this._ctx = t.getContext("2d", this.canvasContextOptions), this.clear(), this.on();
|
|
97
97
|
}
|
|
98
98
|
clear() {
|
|
99
99
|
let { _ctx: e, canvas: t } = this;
|
|
@@ -295,13 +295,13 @@ var C = class e extends x {
|
|
|
295
295
|
}
|
|
296
296
|
_createPoint(e, t, n) {
|
|
297
297
|
let r = this.canvas.getBoundingClientRect();
|
|
298
|
-
return new
|
|
298
|
+
return new v(e - r.left, t - r.top, n, (/* @__PURE__ */ new Date()).getTime());
|
|
299
299
|
}
|
|
300
300
|
_addPoint(e, t) {
|
|
301
301
|
let { _lastPoints: n } = this;
|
|
302
302
|
if (n.push(e), n.length > 2) {
|
|
303
303
|
n.length === 3 && n.unshift(n[0]);
|
|
304
|
-
let e = this._calculateCurveWidths(n[1], n[2], t), r =
|
|
304
|
+
let e = this._calculateCurveWidths(n[1], n[2], t), r = y.fromPoints(n, e);
|
|
305
305
|
return n.shift(), r;
|
|
306
306
|
}
|
|
307
307
|
return null;
|
|
@@ -341,7 +341,7 @@ var C = class e extends x {
|
|
|
341
341
|
for (let r of e) {
|
|
342
342
|
let { points: e } = r, i = this._getPointGroupOptions(r);
|
|
343
343
|
if (e.length > 1) for (let n = 0; n < e.length; n += 1) {
|
|
344
|
-
let r = e[n], a = new
|
|
344
|
+
let r = e[n], a = new v(r.x, r.y, r.pressure, r.time);
|
|
345
345
|
n === 0 && this._reset(i);
|
|
346
346
|
let o = this._addPoint(a, i);
|
|
347
347
|
o && t(o, i);
|
|
@@ -370,7 +370,7 @@ var C = class e extends x {
|
|
|
370
370
|
a.setAttribute("r", s.toString()), a.setAttribute("cx", e.x.toString()), a.setAttribute("cy", e.y.toString()), a.setAttribute("fill", t), o.appendChild(a);
|
|
371
371
|
}), o.outerHTML;
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, C = (e) => {
|
|
374
374
|
if (typeof document > "u") return null;
|
|
375
375
|
let t = document.createElement("div");
|
|
376
376
|
t.style.color = e, t.style.position = "absolute", t.style.visibility = "hidden", document.body.appendChild(t);
|
|
@@ -385,174 +385,169 @@ var C = class e extends x {
|
|
|
385
385
|
return `#${i(e)}${i(t)}${i(n)}`;
|
|
386
386
|
}
|
|
387
387
|
return null;
|
|
388
|
-
},
|
|
388
|
+
}, w = "var(--icon-neutral-800)", T = "#ffffff", E = (e) => {
|
|
389
389
|
let t = document.createElement("canvas");
|
|
390
390
|
t.width = e.width, t.height = e.height;
|
|
391
391
|
let n = t.getContext("2d");
|
|
392
392
|
if (!n) throw Error("Canvas 2D context is not available");
|
|
393
|
-
return n.fillStyle =
|
|
394
|
-
},
|
|
393
|
+
return n.fillStyle = T, n.fillRect(0, 0, t.width, t.height), n.drawImage(e, 0, 0), t;
|
|
394
|
+
}, D = (e, t, n) => new Promise((r, i) => {
|
|
395
395
|
e.toBlob((e) => {
|
|
396
396
|
e ? r(e) : i(/* @__PURE__ */ Error("Canvas toBlob() returned null"));
|
|
397
397
|
}, t, t === "image/jpeg" || t === "image/webp" ? n : void 0);
|
|
398
|
-
}),
|
|
399
|
-
let
|
|
400
|
-
|
|
401
|
-
let
|
|
402
|
-
let e =
|
|
398
|
+
}), O = n(({ onBeginStroke: e, hasDrawing: n, placeholder: a, customPenColor: c, customPenStrokeWidth: l, customBackgroundColor: u, customBorderColor: d }, f) => {
|
|
399
|
+
let p = i(null), m = i(null), h = i(null), g = i(e);
|
|
400
|
+
g.current = e;
|
|
401
|
+
let _ = r(() => {
|
|
402
|
+
let e = p.current, t = m.current, n = h.current;
|
|
403
403
|
if (!e || !t || !n) return;
|
|
404
404
|
let r = Math.max(window.devicePixelRatio || 1, 1), i = t.getContext("2d"), { width: a, height: o } = e.getBoundingClientRect();
|
|
405
405
|
if (a === 0 || o === 0 || !i) return;
|
|
406
406
|
let s = n.isEmpty() ? null : n.toData();
|
|
407
407
|
t.width = Math.floor(a * r), t.height = Math.floor(o * r), i.setTransform(r, 0, 0, r, 0, 0), s ? n.fromData(s, { clear: !0 }) : n.clear();
|
|
408
408
|
}, []);
|
|
409
|
-
return
|
|
409
|
+
return o(f, () => ({
|
|
410
410
|
clear: () => {
|
|
411
|
-
|
|
411
|
+
h.current?.clear();
|
|
412
412
|
},
|
|
413
|
-
isEmpty: () =>
|
|
414
|
-
toDataURL: (e = "image/png", t) =>
|
|
415
|
-
getCanvas: () =>
|
|
416
|
-
getSignaturePad: () =>
|
|
417
|
-
on: () =>
|
|
418
|
-
off: () =>
|
|
413
|
+
isEmpty: () => h.current?.isEmpty() ?? !0,
|
|
414
|
+
toDataURL: (e = "image/png", t) => h.current?.toDataURL(e, t) ?? "",
|
|
415
|
+
getCanvas: () => m.current,
|
|
416
|
+
getSignaturePad: () => h.current,
|
|
417
|
+
on: () => h.current?.on(),
|
|
418
|
+
off: () => h.current?.off(),
|
|
419
419
|
getSignatureWithWhiteBackground: () => {
|
|
420
|
-
let e =
|
|
421
|
-
return e ?
|
|
420
|
+
let e = m.current;
|
|
421
|
+
return e ? E(e) : null;
|
|
422
422
|
},
|
|
423
|
-
getBlob: (e =
|
|
423
|
+
getBlob: (e = m.current ?? void 0, t = "image/jpeg", n = .92) => e ? D(e, t, n) : Promise.reject(/* @__PURE__ */ Error("No canvas available for getBlob"))
|
|
424
424
|
}), []), t(() => {
|
|
425
|
-
let e =
|
|
425
|
+
let e = p.current, t = m.current;
|
|
426
426
|
if (!e || !t) return;
|
|
427
427
|
let n = null, r = () => {
|
|
428
428
|
n === null && (n = requestAnimationFrame(() => {
|
|
429
|
-
n = null,
|
|
429
|
+
n = null, _();
|
|
430
430
|
}));
|
|
431
|
-
}, i =
|
|
431
|
+
}, i = c ?? C(w), a = new S(t, {
|
|
432
432
|
...i ? { penColor: i } : {},
|
|
433
433
|
...l ? { maxWidth: l } : {}
|
|
434
434
|
});
|
|
435
|
-
|
|
436
|
-
let
|
|
437
|
-
a.addEventListener("beginStroke",
|
|
438
|
-
let
|
|
435
|
+
h.current = a;
|
|
436
|
+
let o = () => g.current?.();
|
|
437
|
+
a.addEventListener("beginStroke", o), _();
|
|
438
|
+
let s = new ResizeObserver(() => {
|
|
439
439
|
r();
|
|
440
440
|
});
|
|
441
|
-
return
|
|
442
|
-
n !== null && cancelAnimationFrame(n),
|
|
441
|
+
return s.observe(e), () => {
|
|
442
|
+
n !== null && cancelAnimationFrame(n), s.disconnect(), a.removeEventListener("beginStroke", o), a.off(), h.current = null;
|
|
443
443
|
};
|
|
444
444
|
}, [
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
_,
|
|
446
|
+
c,
|
|
447
447
|
l
|
|
448
|
-
]), /* @__PURE__ */
|
|
448
|
+
]), /* @__PURE__ */ s("div", {
|
|
449
449
|
class: "SignatureCanvasContainer",
|
|
450
|
-
style: u ? {
|
|
451
|
-
|
|
452
|
-
|
|
450
|
+
style: u || d ? {
|
|
451
|
+
...u ? { backgroundColor: u } : {},
|
|
452
|
+
...d ? { borderColor: d } : {}
|
|
453
|
+
} : void 0,
|
|
454
|
+
ref: p,
|
|
455
|
+
children: [/* @__PURE__ */ s("canvas", {
|
|
453
456
|
class: "SignatureCanvas",
|
|
454
|
-
ref:
|
|
455
|
-
"aria-label":
|
|
456
|
-
}), !n && /* @__PURE__ */
|
|
457
|
+
ref: m,
|
|
458
|
+
"aria-label": a
|
|
459
|
+
}), !n && /* @__PURE__ */ s("p", {
|
|
457
460
|
class: "SignatureCanvasPlaceholder",
|
|
458
|
-
children:
|
|
461
|
+
children: a
|
|
459
462
|
})]
|
|
460
463
|
});
|
|
461
464
|
});
|
|
462
|
-
|
|
465
|
+
O.displayName = "SignatureCanvas";
|
|
463
466
|
//#endregion
|
|
464
467
|
//#region src/modules/signature/signature.tsx
|
|
465
|
-
var
|
|
466
|
-
let { t:
|
|
467
|
-
|
|
468
|
-
}, [
|
|
469
|
-
S.current && (S.current.on(), S.current.clear(), x(!1), y.setSignatureValid(!1));
|
|
470
|
-
}, [y]);
|
|
468
|
+
var k = ({ config: n, onFinish: o, onError: l }) => {
|
|
469
|
+
let { t: h } = e(), [g, v] = c(() => _({ config: n }), { autoLoad: !0 }), [y, b] = a(!1), x = i(null), S = g.status === "error" ? g.error : void 0, C = g.status === "submitting", w = g.status === "capture" && g.canContinue && !C, T = r(() => {
|
|
470
|
+
x.current && (x.current.on(), x.current.clear(), b(!1), v.setSignatureValid(!1));
|
|
471
|
+
}, [v]);
|
|
471
472
|
t(() => {
|
|
472
|
-
|
|
473
|
-
}, [
|
|
474
|
-
|
|
475
|
-
}, [
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}, [
|
|
479
|
-
w,
|
|
480
|
-
y,
|
|
481
|
-
O
|
|
482
|
-
]);
|
|
483
|
-
let A = (e) => n.title?.trim() || g(e === "initials" ? "signature.initialsTitle" : "signature.fullSignatureTitle"), j = () => n.subTitle?.trim() || g("signature.subtitle"), M = async () => {
|
|
484
|
-
let e = S.current;
|
|
473
|
+
g.status === "finished" && o?.();
|
|
474
|
+
}, [g.status, o]), t(() => {
|
|
475
|
+
S && (l?.(S), x.current?.on());
|
|
476
|
+
}, [S, l]);
|
|
477
|
+
let E = () => n.title?.trim() || h("signature.fullSignatureTitle"), D = () => n.subTitle?.trim() || h("signature.subtitle"), k = async () => {
|
|
478
|
+
let e = x.current;
|
|
485
479
|
if (!e) return;
|
|
486
480
|
let t = e.getSignatureWithWhiteBackground();
|
|
487
481
|
if (t) return n.sendBase64 ?? !1 ? t.toDataURL("image/png").replace(/^data:image\/png;base64,/, "") : e.getBlob(t);
|
|
488
482
|
};
|
|
489
|
-
return
|
|
483
|
+
return g.status === "idle" || g.status === "finished" || g.status === "error" ? null : g.status === "success" ? /* @__PURE__ */ s(d, {
|
|
490
484
|
className: "IncodeSignature IncodeSignatureFadeIn",
|
|
491
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ s("div", {
|
|
492
486
|
class: "IncodeSignatureContent IncodeSignatureSuccess",
|
|
493
487
|
role: "status",
|
|
494
488
|
children: [
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ s(m, { size: 48 }),
|
|
490
|
+
/* @__PURE__ */ s(u, { size: 16 }),
|
|
491
|
+
/* @__PURE__ */ s(f, { children: h("signature.successTitle") })
|
|
498
492
|
]
|
|
499
493
|
})
|
|
500
|
-
}) : /* @__PURE__ */
|
|
494
|
+
}) : /* @__PURE__ */ s(d, {
|
|
501
495
|
className: "IncodeSignature IncodeSignatureFadeIn",
|
|
502
|
-
title:
|
|
503
|
-
subtitle:
|
|
504
|
-
children: [/* @__PURE__ */
|
|
496
|
+
title: E(),
|
|
497
|
+
subtitle: D(),
|
|
498
|
+
children: [/* @__PURE__ */ s("div", {
|
|
505
499
|
class: "IncodeSignatureContent",
|
|
506
500
|
children: [
|
|
507
|
-
/* @__PURE__ */
|
|
508
|
-
ref:
|
|
509
|
-
hasDrawing:
|
|
501
|
+
/* @__PURE__ */ s(O, {
|
|
502
|
+
ref: x,
|
|
503
|
+
hasDrawing: y,
|
|
510
504
|
onBeginStroke: () => {
|
|
511
|
-
|
|
505
|
+
b(!0), v.setSignatureValid(!0);
|
|
512
506
|
},
|
|
513
|
-
placeholder:
|
|
507
|
+
placeholder: h("signature.fullSignaturePlaceholder"),
|
|
514
508
|
customBackgroundColor: n.canvasBackgroundColor,
|
|
509
|
+
customBorderColor: n.canvasBorderColor,
|
|
515
510
|
customPenColor: n.penColor,
|
|
516
511
|
customPenStrokeWidth: n.penStrokeWidth
|
|
517
512
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ s(u, { size: 8 }),
|
|
514
|
+
/* @__PURE__ */ s(p, {
|
|
520
515
|
variant: "link",
|
|
521
|
-
disabled: !
|
|
522
|
-
onClick:
|
|
523
|
-
children:
|
|
516
|
+
disabled: !y || C,
|
|
517
|
+
onClick: T,
|
|
518
|
+
children: h("signature.clear")
|
|
524
519
|
})
|
|
525
520
|
]
|
|
526
|
-
}), /* @__PURE__ */
|
|
521
|
+
}), /* @__PURE__ */ s("div", {
|
|
527
522
|
class: "IncodeSignatureButtonContainer",
|
|
528
|
-
children: /* @__PURE__ */
|
|
529
|
-
disabled: !
|
|
530
|
-
isLoading:
|
|
523
|
+
children: /* @__PURE__ */ s(p, {
|
|
524
|
+
disabled: !w,
|
|
525
|
+
isLoading: C,
|
|
531
526
|
onClick: async () => {
|
|
532
|
-
let e =
|
|
533
|
-
if (!(!e ||
|
|
527
|
+
let e = x.current;
|
|
528
|
+
if (!(!e || g.status !== "capture" || e.isEmpty())) {
|
|
534
529
|
e.off();
|
|
535
530
|
try {
|
|
536
|
-
let t = await
|
|
531
|
+
let t = await k();
|
|
537
532
|
if (!t) {
|
|
538
533
|
e.on();
|
|
539
534
|
return;
|
|
540
535
|
}
|
|
541
|
-
|
|
536
|
+
v.submit(t);
|
|
542
537
|
} catch {
|
|
543
538
|
e.on();
|
|
544
539
|
}
|
|
545
540
|
}
|
|
546
541
|
},
|
|
547
|
-
children:
|
|
542
|
+
children: h("signature.done")
|
|
548
543
|
})
|
|
549
544
|
})]
|
|
550
545
|
});
|
|
551
|
-
},
|
|
546
|
+
}, A = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(l, { children: e ? /* @__PURE__ */ s(k, {
|
|
552
547
|
config: e,
|
|
553
548
|
onFinish: t,
|
|
554
549
|
onError: n
|
|
555
550
|
}) : null });
|
|
556
|
-
|
|
551
|
+
h(A, "incode-signature");
|
|
557
552
|
//#endregion
|
|
558
|
-
export {
|
|
553
|
+
export { A as Signature };
|
|
@@ -3,11 +3,11 @@ import { v as t } from "./vendor-preact-D6SntenC.js";
|
|
|
3
3
|
import { t as n } from "./spinner-DyRQfsz_.js";
|
|
4
4
|
import "./spinner-BmFWJNHp.js";
|
|
5
5
|
//#region src/shared/processing/transitionSpinner.tsx
|
|
6
|
-
var r = ({ spinnerConfig: r, className: i }) => {
|
|
7
|
-
let { t:
|
|
6
|
+
var r = ({ spinnerConfig: r, className: i, hideText: a = !1 }) => {
|
|
7
|
+
let { t: o } = e();
|
|
8
8
|
return /* @__PURE__ */ t(n, {
|
|
9
|
-
title: r?.title ??
|
|
10
|
-
subtitle: r?.subtitle ??
|
|
9
|
+
title: a ? void 0 : r?.title ?? o("loadingCircle.hangOn"),
|
|
10
|
+
subtitle: a ? void 0 : r?.subtitle ?? o("loadingCircle.validating"),
|
|
11
11
|
size: r?.size ?? "large",
|
|
12
12
|
fullScreen: !0,
|
|
13
13
|
className: i
|
|
@@ -5,7 +5,7 @@ import { t as d } from "./spacer-DCljE53A.js";
|
|
|
5
5
|
import { t as f } from "./page-D5Mt-0zn.js";
|
|
6
6
|
import { n as p, t as m } from "./loadingIcon-wTrHZMGC.js";
|
|
7
7
|
import { a as h, n as g, o as _, t as v } from "./typography-B7nxauEL.js";
|
|
8
|
-
import { t as y } from "./transitionSpinner-
|
|
8
|
+
import { t as y } from "./transitionSpinner-tJrx3vrs.js";
|
|
9
9
|
import { t as b } from "./button-4-ToV5B_.js";
|
|
10
10
|
import { h as x, m as S } from "./icons-GsJu_yZn.js";
|
|
11
11
|
import { t as C } from "./successIcon-C4GI_9SU.js";
|
|
@@ -161,16 +161,16 @@ var A = {
|
|
|
161
161
|
ID_CAPTURE: T,
|
|
162
162
|
TUTORIAL_ID: T,
|
|
163
163
|
SECOND_ID: T,
|
|
164
|
-
FACE_MATCH: () => import("./faceMatch-
|
|
164
|
+
FACE_MATCH: () => import("./faceMatch-BnEBg97b.js").then((e) => e.FaceMatch),
|
|
165
165
|
CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
|
|
166
166
|
GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
|
|
167
167
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
168
168
|
EXTERNAL_VERIFICATION: () => import("./ekycModule-CPcoffMp.js").then((e) => e.EkycModule),
|
|
169
169
|
EKYB: () => import("./ekybModule-DLvvDnRl.js").then((e) => e.EkybModule),
|
|
170
|
-
DOCUMENT_CAPTURE: () => import("./documentCapture-
|
|
171
|
-
ADDRESS: () => import("./documentCapture-
|
|
170
|
+
DOCUMENT_CAPTURE: () => import("./documentCapture-DNi_TybD.js").then((e) => e.DocumentCapture),
|
|
171
|
+
ADDRESS: () => import("./documentCapture-DNi_TybD.js").then((e) => e.DocumentCapture),
|
|
172
172
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
|
|
173
|
-
MANDATORY_CONSENT: () => import("./mandatoryConsent-
|
|
173
|
+
MANDATORY_CONSENT: () => import("./mandatoryConsent-BrkTmUBW.js").then((e) => e.MandatoryConsent),
|
|
174
174
|
SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
|
|
175
175
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
176
176
|
CUSTOM_FIELDS: () => import("./customFields-DVVoO-1L.js").then((e) => e.CustomFields),
|
package/dist/workflow/styles.css
CHANGED
|
@@ -6401,13 +6401,6 @@
|
|
|
6401
6401
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
6402
6402
|
}
|
|
6403
6403
|
|
|
6404
|
-
.IncodeConsentPage .IncodeConsentCentered {
|
|
6405
|
-
justify-content: center;
|
|
6406
|
-
align-items: center;
|
|
6407
|
-
height: 100%;
|
|
6408
|
-
display: flex;
|
|
6409
|
-
}
|
|
6410
|
-
|
|
6411
6404
|
.IncodeConsentPage .IncodeConsentContent {
|
|
6412
6405
|
height: 100%;
|
|
6413
6406
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
@@ -3,9 +3,9 @@ import { _ as t, l as n, p as r, v as i } from "../vendor-preact-D6SntenC.js";
|
|
|
3
3
|
import { t as a } from "../uiConfig-CwpQ-IM6.js";
|
|
4
4
|
import { o, t as s } from "../incodeComponent-pGWsrcca.js";
|
|
5
5
|
import "../spinner-BmFWJNHp.js";
|
|
6
|
-
import { t as c } from "../transitionSpinner-
|
|
6
|
+
import { t as c } from "../transitionSpinner-tJrx3vrs.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-DmFt81vp.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
|
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-20260422-96fafd7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"qrcode": "^1.5.4",
|
|
184
184
|
"signature_pad": "^5.1.3",
|
|
185
185
|
"tailwindcss": "^4.1.17",
|
|
186
|
-
"@incodetech/core": "0.0.0-dev-
|
|
186
|
+
"@incodetech/core": "0.0.0-dev-20260422-96fafd7"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@microsoft/api-extractor": "^7.53.3",
|