@incodetech/web 0.0.0-dev-20260326-ac8336a → 0.0.0-dev-20260326-106dc21
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/{Trans-BQctqaWi.js → Trans-BSLSJO1_.js} +2 -2
- package/dist/{addressAutocomplete-CnuyGGR4.js → addressAutocomplete-BhUbJEuH.js} +6 -6
- package/dist/authentication/authentication.es.js +5 -5
- package/dist/{back-horizontal-hint-CktUy0An.js → back-horizontal-hint-CSlf9KI1.js} +1 -1
- package/dist/{back-vertical-hint-CMOWSEsc.js → back-vertical-hint-CNieqiCr.js} +1 -1
- package/dist/base.css +4 -1
- package/dist/{button-qiC4m4lf.js → button-B2Ewo0rX.js} +2 -2
- package/dist/cameraView-CT9-WWcG.js +55 -0
- package/dist/{captureFooter-BIPDtCn6.js → captureFooter-B_3eu8kq.js} +77 -127
- package/dist/captureOverlay-CB8lyLgp.js +399 -0
- package/dist/{checkbox-KYc1FnQr.js → checkbox-CXnQVsbJ.js} +3 -3
- package/dist/{chevronDown-J1Yx1Jy7.js → chevronDown-DKyU4xPP.js} +1 -1
- package/dist/{closeIcon-C5IKfu-j.js → closeIcon-DjWL_arL.js} +1 -1
- package/dist/consent/consent.es.js +8 -8
- package/dist/curp-validation/curp-validation.es.js +11 -11
- package/dist/{dateInputComposed-DzB7gNed.js → dateInputComposed-DmlHvCmR.js} +4 -4
- package/dist/{documentCapture-B4JcCGTV.js → documentCapture-DYsIVkcU.js} +14 -13
- package/dist/{dropdownComposed-CnmITmQb.js → dropdownComposed-DFrqye1c.js} +5 -5
- package/dist/{ekybModule-BLdLDQLO.js → ekybModule-Cve2s2tf.js} +10 -10
- package/dist/{ekycModule-CmuQbdiJ.js → ekycModule-Hi5yRFs3.js} +11 -11
- package/dist/email/email.es.js +97 -106
- package/dist/email/styles.css +0 -111
- package/dist/{errorContent-BudafcKL.js → errorContent-CqNelsXg.js} +6 -6
- package/dist/{errorIcon-DbJL-4MJ.js → errorIcon-C-Zd24vb.js} +1 -1
- package/dist/extensibility.es.js +92 -89
- package/dist/{faceMatch-DylE4LWy.js → faceMatch-BVsE7czZ.js} +6 -6
- package/dist/{fileIcon-ClvmLl6A.js → fileIcon-DIVwt0SD.js} +1 -1
- package/dist/{flipAnimation-BXWZxnGC.js → flipAnimation-CQ3So9XG.js} +269 -655
- package/dist/flow/flow.es.js +14 -14
- package/dist/flow/styles.css +0 -85
- package/dist/{formField-CMNAU-Eh.js → formField-CPfeaz8y.js} +8 -8
- package/dist/{front-horizontal-hint-Ca8ux7ED.js → front-horizontal-hint-lRLKd7vY.js} +1 -1
- package/dist/{front-vertical-hint-Cl9a47Kq.js → front-vertical-hint-qQoJXRE3.js} +1 -1
- package/dist/geolocation/geolocation.es.js +6 -6
- package/dist/governmentValidation/governmentValidation.es.js +10 -10
- package/dist/id/id.es.js +16 -15
- package/dist/{incodeModule-DtbbjNTQ.js → incodeModule-C4XIllao.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{inputComposed-7r-2MfA7.js → inputComposed-CJQTXKNA.js} +5 -5
- package/dist/{mandatoryConsent-BcbxGZN6.js → mandatoryConsent-B2zqptlI.js} +8 -8
- package/dist/manualCaptureButton-CUq6VXLb.js +371 -0
- package/dist/otpInput-CGlYkmvB.js +148 -0
- package/dist/{page-CH1_PpOG.js → page-DiscPBzz.js} +2 -2
- package/dist/{passport-horizontal-hint-CWnj6Kh1.js → passport-horizontal-hint-BCtpMp1Y.js} +1 -1
- package/dist/{passport-vertical-hint-DzkQdaag.js → passport-vertical-hint-GaLnzqHP.js} +1 -1
- package/dist/permissions-CDir4ckn.js +707 -0
- package/dist/phone/phone.es.js +66 -64
- package/dist/{phoneInput-C9tQVoqL.js → phoneInput-TwyIF7PG.js} +3 -3
- package/dist/{phoneInputComposed-DYE5UsRs.js → phoneInputComposed-Dsf9ZDTj.js} +6 -6
- package/dist/{processing-DW3Cq3ot.js → processing-De8XWnFp.js} +4 -4
- package/dist/{richText-Bh30370T.js → richText-DHl4ibE9.js} +2 -2
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/signature/signature.es.js +7 -7
- package/dist/{spinner-_-QbAnd8.js → spinner-DfUoOZN4.js} +3 -3
- package/dist/{successIcon-C-3-t1kz.js → successIcon-DyHNp_UT.js} +1 -1
- package/dist/{tutorial-BRvI-ZLU.js → tutorial-Cx_ANvlr.js} +42 -41
- package/dist/{typography-DgyeaZWI.js → typography-zMrvftfB.js} +2 -2
- package/dist/{uiConfig-BSR3Bl6G.js → uiConfig-DmIn-g8M.js} +1 -1
- package/dist/{useMediaQuery-DN93efdT.js → useMediaQuery-lJdQBmC2.js} +1 -1
- package/dist/{vendor-preact-BY8u4mdq.js → vendor-preact-BoMmvSgn.js} +3 -3
- package/dist/{warningIcon-BEDHbr3Z.js → warningIcon-MsE5PaSQ.js} +1 -1
- package/package.json +2 -2
- package/dist/manualCaptureButton-6WD7GhPe.js +0 -1071
- package/dist/otpInput-B4ic8127.js +0 -120
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,109 +1,111 @@
|
|
|
1
|
-
import { u as e, I
|
|
2
|
-
import { createPhoneManager as
|
|
3
|
-
import { d as
|
|
4
|
-
import "../uiConfig-
|
|
1
|
+
import { u as e, I, b, a as O, S as h, B as C } from "../button-B2Ewo0rX.js";
|
|
2
|
+
import { createPhoneManager as E } from "@incodetech/core/phone";
|
|
3
|
+
import { d as v } from "../vendor-preact-BoMmvSgn.js";
|
|
4
|
+
import "../uiConfig-DmIn-g8M.js";
|
|
5
5
|
import "@incodetech/core";
|
|
6
|
-
import { C as
|
|
7
|
-
import { O as
|
|
8
|
-
import { P as
|
|
9
|
-
import { P as
|
|
10
|
-
import { r as k } from "../incodeModule-
|
|
11
|
-
const
|
|
6
|
+
import { C as S } from "../checkbox-CXnQVsbJ.js";
|
|
7
|
+
import { O as w } from "../otpInput-CGlYkmvB.js";
|
|
8
|
+
import { P as g } from "../page-DiscPBzz.js";
|
|
9
|
+
import { P as y } from "../phoneInputComposed-Dsf9ZDTj.js";
|
|
10
|
+
import { r as k } from "../incodeModule-C4XIllao.js";
|
|
11
|
+
const R = ({
|
|
12
12
|
config: n,
|
|
13
|
-
manager:
|
|
14
|
-
onFinish:
|
|
15
|
-
onError:
|
|
13
|
+
manager: i,
|
|
14
|
+
onFinish: p,
|
|
15
|
+
onError: l
|
|
16
16
|
}) => {
|
|
17
|
-
const { t:
|
|
17
|
+
const { t: s } = b(), [t, o] = O(
|
|
18
18
|
() => {
|
|
19
|
-
if (
|
|
19
|
+
if (i) return i;
|
|
20
20
|
if (!n)
|
|
21
21
|
throw new Error("Phone config is required");
|
|
22
|
-
return
|
|
22
|
+
return E({ config: n });
|
|
23
23
|
},
|
|
24
|
-
{ manageLifecycle: !
|
|
25
|
-
), [
|
|
26
|
-
if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "
|
|
27
|
-
const
|
|
24
|
+
{ manageLifecycle: !i }
|
|
25
|
+
), [f, P] = v(!1);
|
|
26
|
+
if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
|
|
27
|
+
const r = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", a = t.status === "inputting" ? t.countryCode : "US", d = t.status === "inputting" ? t.prefilledPhone : void 0, c = t.status === "inputting" && t.phoneError ? s(t.phoneError) : void 0;
|
|
28
28
|
return /* @__PURE__ */ e(
|
|
29
|
-
|
|
29
|
+
g,
|
|
30
30
|
{
|
|
31
31
|
className: "IncodePhonePage",
|
|
32
|
-
title:
|
|
33
|
-
subtitle: n.otpVerification ?
|
|
32
|
+
title: s("phone.verify"),
|
|
33
|
+
subtitle: n.otpVerification ? s("email.willSendCode") : void 0,
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ e("div", { class: "IncodePhoneInputContainer", children: [
|
|
36
36
|
/* @__PURE__ */ e(
|
|
37
|
-
|
|
37
|
+
y,
|
|
38
38
|
{
|
|
39
39
|
id: "phone",
|
|
40
|
-
countryCode:
|
|
41
|
-
value:
|
|
42
|
-
error:
|
|
43
|
-
disabled:
|
|
44
|
-
onChange: (
|
|
45
|
-
|
|
40
|
+
countryCode: a,
|
|
41
|
+
value: d,
|
|
42
|
+
error: c,
|
|
43
|
+
disabled: r,
|
|
44
|
+
onChange: (u, m) => {
|
|
45
|
+
o.setPhoneNumber(u, m), P(m);
|
|
46
46
|
},
|
|
47
|
-
"data-testid": "phone-input"
|
|
47
|
+
"data-testid": "phone-input",
|
|
48
|
+
showErrorIcon: !0
|
|
48
49
|
}
|
|
49
50
|
),
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
+
/* @__PURE__ */ e(h, { size: 16 }),
|
|
51
52
|
n.optinEnabled && /* @__PURE__ */ e(
|
|
52
|
-
|
|
53
|
+
S,
|
|
53
54
|
{
|
|
54
55
|
id: "phone-optin",
|
|
55
|
-
label:
|
|
56
|
+
label: s("phone.optIn"),
|
|
56
57
|
size: "s",
|
|
57
|
-
onChange: (
|
|
58
|
+
onChange: (u) => o.setOptInGranted(u.target.checked)
|
|
58
59
|
}
|
|
59
60
|
)
|
|
60
61
|
] }),
|
|
61
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(h, {}),
|
|
62
63
|
/* @__PURE__ */ e(
|
|
63
|
-
|
|
64
|
+
C,
|
|
64
65
|
{
|
|
65
|
-
onClick: () =>
|
|
66
|
-
disabled: !
|
|
67
|
-
isLoading:
|
|
66
|
+
onClick: () => o.submit(),
|
|
67
|
+
disabled: !f,
|
|
68
|
+
isLoading: r,
|
|
68
69
|
"data-testid": "phone-submit",
|
|
69
|
-
children:
|
|
70
|
+
children: s("common.continue")
|
|
70
71
|
}
|
|
71
72
|
)
|
|
72
73
|
]
|
|
73
74
|
}
|
|
74
75
|
);
|
|
75
76
|
}
|
|
76
|
-
if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError") {
|
|
77
|
-
const
|
|
78
|
-
return /* @__PURE__ */ e(
|
|
79
|
-
|
|
77
|
+
if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
|
|
78
|
+
const r = t.status === "verifyingOtp", a = t.status === "otpError", d = t.status === "awaitingOtp", c = t.status === "resendingOtp";
|
|
79
|
+
return /* @__PURE__ */ e(g, { className: "IncodePhonePage", title: s("otp.enterCodeSMS"), children: /* @__PURE__ */ e(
|
|
80
|
+
w,
|
|
80
81
|
{
|
|
81
|
-
resendTimer:
|
|
82
|
-
canResend:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
resendTimer: d || a ? t.resendTimer : 0,
|
|
83
|
+
canResend: d || a ? t.canResend : !1,
|
|
84
|
+
isLoading: r,
|
|
85
|
+
disabled: c || r,
|
|
86
|
+
error: a ? s(t.otpError) : void 0,
|
|
87
|
+
onSubmit: (u) => o.submitOtp(u),
|
|
88
|
+
onResend: () => o.resendOtp(),
|
|
89
|
+
onBack: () => o.back()
|
|
88
90
|
}
|
|
89
91
|
) });
|
|
90
92
|
}
|
|
91
|
-
return t.status === "finished" ? (
|
|
92
|
-
},
|
|
93
|
+
return t.status === "finished" ? (p?.(), null) : (t.status === "error" && l?.(t.error), null);
|
|
94
|
+
}, B = ({
|
|
93
95
|
config: n,
|
|
94
|
-
manager:
|
|
95
|
-
onFinish:
|
|
96
|
-
onError:
|
|
97
|
-
}) => /* @__PURE__ */ e(
|
|
98
|
-
|
|
96
|
+
manager: i,
|
|
97
|
+
onFinish: p,
|
|
98
|
+
onError: l
|
|
99
|
+
}) => /* @__PURE__ */ e(I, { children: n ? /* @__PURE__ */ e(
|
|
100
|
+
R,
|
|
99
101
|
{
|
|
100
102
|
config: n,
|
|
101
|
-
manager:
|
|
102
|
-
onFinish:
|
|
103
|
-
onError:
|
|
103
|
+
manager: i,
|
|
104
|
+
onFinish: p,
|
|
105
|
+
onError: l
|
|
104
106
|
}
|
|
105
107
|
) : null });
|
|
106
|
-
k(
|
|
108
|
+
k(B, "incode-phone");
|
|
107
109
|
export {
|
|
108
|
-
|
|
110
|
+
B as Phone
|
|
109
111
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as n, S } from "./button-
|
|
2
|
-
import { d as p, A as D, y as u, k as $ } from "./vendor-preact-
|
|
1
|
+
import { u as n, S } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { d as p, A as D, y as u, k as $ } from "./vendor-preact-BoMmvSgn.js";
|
|
3
3
|
import { g as b, c as g } from "./countries-DfLkrF0x.js";
|
|
4
|
-
import { C as z } from "./chevronDown-
|
|
4
|
+
import { C as z } from "./chevronDown-DKyU4xPP.js";
|
|
5
5
|
import { p as k, A } from "./AsYouType-D1H_js4X.js";
|
|
6
6
|
const M = ({
|
|
7
7
|
countryCode: P,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as r } from "./button-
|
|
2
|
-
import { D as J, d as g, A as x, T as M, y as Q, q as A } from "./vendor-preact-
|
|
1
|
+
import { u as r } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { D as J, d as g, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
|
|
3
3
|
import { w as X, g as I, c as j, b as k } from "./countries-DfLkrF0x.js";
|
|
4
|
-
import { D as z } from "./dropdownComposed-
|
|
5
|
-
import { E as q } from "./errorIcon-
|
|
6
|
-
import { S as _ } from "./successIcon-
|
|
7
|
-
import { a as e2 } from "./inputComposed-
|
|
4
|
+
import { D as z } from "./dropdownComposed-DFrqye1c.js";
|
|
5
|
+
import { E as q } from "./errorIcon-C-Zd24vb.js";
|
|
6
|
+
import { S as _ } from "./successIcon-DyHNp_UT.js";
|
|
7
|
+
import { a as e2 } from "./inputComposed-CJQTXKNA.js";
|
|
8
8
|
import { P as n2, p as L, A as b } from "./AsYouType-D1H_js4X.js";
|
|
9
9
|
function o2(e, o, a) {
|
|
10
10
|
if (o[e])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as i, u as t } from "./button-
|
|
2
|
-
import { S as e } from "./spinner-
|
|
3
|
-
import "./uiConfig-
|
|
4
|
-
import "./vendor-preact-
|
|
1
|
+
import { b as i, u as t } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { S as e } from "./spinner-DfUoOZN4.js";
|
|
3
|
+
import "./uiConfig-DmIn-g8M.js";
|
|
4
|
+
import "./vendor-preact-BoMmvSgn.js";
|
|
5
5
|
const s = () => {
|
|
6
6
|
const { t: r } = i();
|
|
7
7
|
return /* @__PURE__ */ t(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Zn = Object.defineProperty;
|
|
2
2
|
var jn = (r, e, t) => e in r ? Zn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var A = (r, e, t) => jn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { u as an } from "./button-
|
|
5
|
-
import { _ as Yn, x as Xn } from "./vendor-preact-
|
|
4
|
+
import { u as an } from "./button-B2Ewo0rX.js";
|
|
5
|
+
import { _ as Yn, x as Xn } from "./vendor-preact-BoMmvSgn.js";
|
|
6
6
|
const {
|
|
7
7
|
entries: yn,
|
|
8
8
|
setPrototypeOf: on,
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as r, I as u, a } from "../button-
|
|
1
|
+
import { u as r, I as u, a } from "../button-B2Ewo0rX.js";
|
|
2
2
|
import { createSelfieManager as l } from "@incodetech/core/selfie";
|
|
3
|
-
import "../vendor-preact-
|
|
3
|
+
import "../vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { P as m } from "../
|
|
6
|
-
import { r as f } from "../incodeModule-
|
|
7
|
-
import { P as p } from "../processing-
|
|
8
|
-
import { T as c, C as d } from "../tutorial-
|
|
5
|
+
import { P as m } from "../permissions-CDir4ckn.js";
|
|
6
|
+
import { r as f } from "../incodeModule-C4XIllao.js";
|
|
7
|
+
import { P as p } from "../processing-De8XWnFp.js";
|
|
8
|
+
import { T as c, C as d } from "../tutorial-Cx_ANvlr.js";
|
|
9
9
|
const g = ({
|
|
10
10
|
config: e,
|
|
11
11
|
manager: s,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u, I as k, b as T, a as D, S as R, B as w } from "../button-
|
|
2
|
-
import { D as N, A as I, q as E, F as L, y, d as O, T as W } from "../vendor-preact-
|
|
1
|
+
import { u, I as k, b as T, a as D, S as R, B as w } from "../button-B2Ewo0rX.js";
|
|
2
|
+
import { D as N, A as I, q as E, F as L, y, d as O, T as W } from "../vendor-preact-BoMmvSgn.js";
|
|
3
3
|
import "@incodetech/core";
|
|
4
|
-
import "../uiConfig-
|
|
5
|
-
import { P } from "../page-
|
|
6
|
-
import { r as z } from "../incodeModule-
|
|
4
|
+
import "../uiConfig-DmIn-g8M.js";
|
|
5
|
+
import { P } from "../page-DiscPBzz.js";
|
|
6
|
+
import { r as z } from "../incodeModule-C4XIllao.js";
|
|
7
7
|
import { SignaturePad as M, createSignatureManager as H } from "@incodetech/core/signature";
|
|
8
|
-
import { S as A } from "../successIcon-
|
|
9
|
-
import { f as U } from "../typography-
|
|
8
|
+
import { S as A } from "../successIcon-DyHNp_UT.js";
|
|
9
|
+
import { f as U } from "../typography-zMrvftfB.js";
|
|
10
10
|
const F = (r) => {
|
|
11
11
|
if (typeof document > "u") return null;
|
|
12
12
|
const e = document.createElement("div");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as p, u as n, d as S, S as a } from "./button-
|
|
2
|
-
import { A as m, y as u, k as s } from "./vendor-preact-
|
|
3
|
-
import { T as I } from "./typography-
|
|
1
|
+
import { c as p, u as n, d as S, S as a } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { A as m, y as u, k as s } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { T as I } from "./typography-zMrvftfB.js";
|
|
4
4
|
const f = {
|
|
5
5
|
small: 24,
|
|
6
6
|
medium: 48,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { u as t, S as _, b as g, c as N, B as F, d as y } from "./button-
|
|
2
|
-
import { A as a, y as p, g as w, q as V, k as L, d as I } from "./vendor-preact-
|
|
3
|
-
import "./uiConfig-
|
|
4
|
-
import { S as P } from "./successIcon-
|
|
5
|
-
import { P as
|
|
6
|
-
import { T as v } from "./typography-
|
|
7
|
-
import { E as B } from "./errorContent-
|
|
8
|
-
import { a as M
|
|
9
|
-
import { S as
|
|
1
|
+
import { u as t, S as _, b as g, c as N, B as F, d as y } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { A as a, y as p, g as w, q as V, k as L, d as I } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import "./uiConfig-DmIn-g8M.js";
|
|
4
|
+
import { S as P } from "./successIcon-DyHNp_UT.js";
|
|
5
|
+
import { P as D } from "./page-DiscPBzz.js";
|
|
6
|
+
import { T as v } from "./typography-zMrvftfB.js";
|
|
7
|
+
import { E as B } from "./errorContent-CqNelsXg.js";
|
|
8
|
+
import { a as M } from "./manualCaptureButton-CUq6VXLb.js";
|
|
9
|
+
import { S as U } from "./spinner-DfUoOZN4.js";
|
|
10
|
+
import { B as H } from "./permissions-CDir4ckn.js";
|
|
10
11
|
const h = ({
|
|
11
12
|
icon: i,
|
|
12
13
|
title: n,
|
|
@@ -15,7 +16,7 @@ const h = ({
|
|
|
15
16
|
const r = a(null);
|
|
16
17
|
return p(() => {
|
|
17
18
|
r.current?.focus();
|
|
18
|
-
}, []), /* @__PURE__ */ t(
|
|
19
|
+
}, []), /* @__PURE__ */ t(D, { className: `IncodeCaptureStatusPage ${e ?? ""}`, children: [
|
|
19
20
|
/* @__PURE__ */ t(_, { size: 40 }),
|
|
20
21
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureStatusContainer", children: [
|
|
21
22
|
/* @__PURE__ */ t(_, { size: 120 }),
|
|
@@ -32,7 +33,7 @@ const h = ({
|
|
|
32
33
|
)
|
|
33
34
|
] })
|
|
34
35
|
] });
|
|
35
|
-
},
|
|
36
|
+
}, E = {
|
|
36
37
|
title: "Something went wrong",
|
|
37
38
|
description: "Please try again later"
|
|
38
39
|
}, x = {
|
|
@@ -68,13 +69,13 @@ const h = ({
|
|
|
68
69
|
title: "notifications.multiple",
|
|
69
70
|
description: "notifications.multipleDescription"
|
|
70
71
|
},
|
|
71
|
-
TOO_BLURRY_ERROR:
|
|
72
|
-
TOO_DARK_ERROR:
|
|
73
|
-
SERVER_ERROR:
|
|
74
|
-
FACE_CROPPING_FAILED:
|
|
75
|
-
FACE_TOO_SMALL:
|
|
76
|
-
PROCESSING_ERROR:
|
|
77
|
-
BAD_REQUEST:
|
|
72
|
+
TOO_BLURRY_ERROR: E,
|
|
73
|
+
TOO_DARK_ERROR: E,
|
|
74
|
+
SERVER_ERROR: E,
|
|
75
|
+
FACE_CROPPING_FAILED: E,
|
|
76
|
+
FACE_TOO_SMALL: E,
|
|
77
|
+
PROCESSING_ERROR: E,
|
|
78
|
+
BAD_REQUEST: E,
|
|
78
79
|
USER_IS_NOT_RECOGNIZED: {
|
|
79
80
|
title: "notifications.accessDenied",
|
|
80
81
|
description: "notifications.accessDeniedDescription"
|
|
@@ -168,7 +169,7 @@ const h = ({
|
|
|
168
169
|
}) => {
|
|
169
170
|
const { t: r } = g();
|
|
170
171
|
if (!i) return null;
|
|
171
|
-
const c = Q(i) ?? i, { title: s, description: l } = x[c] ??
|
|
172
|
+
const c = Q(i) ?? i, { title: s, description: l } = x[c] ?? E, u = r(s) ?? s, d = n <= 0 ? r("notifications.selfieCaptureFailedDescription") : r(l);
|
|
172
173
|
return /* @__PURE__ */ t(
|
|
173
174
|
B,
|
|
174
175
|
{
|
|
@@ -286,14 +287,14 @@ const h = ({
|
|
|
286
287
|
centerFace: e("notifications.centerFaceV2"),
|
|
287
288
|
getReady: e("notifications.getReady"),
|
|
288
289
|
capturing: e("idv2.capture.takingPhoto")
|
|
289
|
-
}[i] ?? "",
|
|
290
|
+
}[i] ?? "", f = V((R) => {
|
|
290
291
|
const S = Date.now(), O = o.current;
|
|
291
292
|
if (R === O.message && S - O.at < 200) return;
|
|
292
293
|
o.current = { message: R, at: S };
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
const m = r.current;
|
|
295
|
+
m && (clearTimeout(u.current), m.textContent = "", d.current = setTimeout(() => {
|
|
296
|
+
m.textContent = R, u.current = setTimeout(() => {
|
|
297
|
+
m.textContent = "";
|
|
297
298
|
}, 3e3);
|
|
298
299
|
}, 50));
|
|
299
300
|
}, []);
|
|
@@ -305,15 +306,15 @@ const h = ({
|
|
|
305
306
|
}
|
|
306
307
|
if (l.current) return;
|
|
307
308
|
const O = setTimeout(() => {
|
|
308
|
-
l.current = !0,
|
|
309
|
+
l.current = !0, f(e("selfiev2.autoCapture.defaultAriaInstructions"));
|
|
309
310
|
}, R ? 1e3 : 500);
|
|
310
311
|
return () => clearTimeout(O);
|
|
311
|
-
}, [i, n,
|
|
312
|
+
}, [i, n, f, e]), p(() => {
|
|
312
313
|
const R = c.current;
|
|
313
|
-
c.current = i, !n && R !== "manualCapture" && i === "manualCapture" &&
|
|
314
|
-
}, [
|
|
315
|
-
n || !C ||
|
|
316
|
-
}, [C,
|
|
314
|
+
c.current = i, !n && R !== "manualCapture" && i === "manualCapture" && f(e("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
315
|
+
}, [f, i, e, n]), p(() => {
|
|
316
|
+
n || !C || f(C);
|
|
317
|
+
}, [C, f, n]), p(() => () => {
|
|
317
318
|
clearTimeout(d.current), clearTimeout(u.current);
|
|
318
319
|
}, []), /* @__PURE__ */ t(L, { children: [
|
|
319
320
|
/* @__PURE__ */ t(
|
|
@@ -327,7 +328,7 @@ const h = ({
|
|
|
327
328
|
),
|
|
328
329
|
C ? /* @__PURE__ */ t("div", { class: "IncodeNotification", "aria-hidden": "true", children: /* @__PURE__ */ t("p", { class: "IncodeNotificationText", children: C }) }) : null
|
|
329
330
|
] });
|
|
330
|
-
},
|
|
331
|
+
}, nt = ({ manager: i, state: n }) => {
|
|
331
332
|
const {
|
|
332
333
|
captureStatus: e,
|
|
333
334
|
stream: r,
|
|
@@ -340,7 +341,7 @@ const h = ({
|
|
|
340
341
|
o === "manualCapture" && C.current?.focus();
|
|
341
342
|
}, [o]), e === "initializing")
|
|
342
343
|
return /* @__PURE__ */ t(
|
|
343
|
-
|
|
344
|
+
U,
|
|
344
345
|
{
|
|
345
346
|
fullScreen: !0,
|
|
346
347
|
title: T("v2.selfie.camera.loading"),
|
|
@@ -349,13 +350,13 @@ const h = ({
|
|
|
349
350
|
);
|
|
350
351
|
if (e === "detecting") {
|
|
351
352
|
if (o === "offline")
|
|
352
|
-
return /* @__PURE__ */ t(
|
|
353
|
-
const
|
|
354
|
-
return /* @__PURE__ */ t(
|
|
353
|
+
return /* @__PURE__ */ t(D, { title: "No internet connection" });
|
|
354
|
+
const f = () => u ? "capturing" : o === "detecting" ? "idle" : o === "getReady" ? "loading" : o === "success" ? "success" : o === "error" ? "error" : "idle";
|
|
355
|
+
return /* @__PURE__ */ t(D, { "data-testid": "capture-container", children: [
|
|
355
356
|
/* @__PURE__ */ t(v, { className: "IncodeCaptureVisuallyHidden", children: T("selfiev2.capture.title") }),
|
|
356
357
|
/* @__PURE__ */ t(_, { size: 48 }),
|
|
357
358
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureContainer", children: [
|
|
358
|
-
/* @__PURE__ */ t(b, { borderState:
|
|
359
|
+
/* @__PURE__ */ t(b, { borderState: f() }),
|
|
359
360
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureFrame", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureVideoWrapper", "aria-hidden": "true", children: r ? /* @__PURE__ */ t(L, { children: [
|
|
360
361
|
/* @__PURE__ */ t(K, { stream: r, mirrored: !l }),
|
|
361
362
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureVideo", children: /* @__PURE__ */ t(Y, {}) })
|
|
@@ -395,7 +396,7 @@ const h = ({
|
|
|
395
396
|
] });
|
|
396
397
|
}
|
|
397
398
|
return e === "capturing" ? /* @__PURE__ */ t(
|
|
398
|
-
|
|
399
|
+
D,
|
|
399
400
|
{
|
|
400
401
|
className: "IncodeCaptureCapturingPage",
|
|
401
402
|
title: "Capturing",
|
|
@@ -440,7 +441,7 @@ const h = ({
|
|
|
440
441
|
class: n ? "IncodeCaptureVideoElement IncodeCaptureVideoMirrored" : "IncodeCaptureVideoElement"
|
|
441
442
|
}
|
|
442
443
|
);
|
|
443
|
-
},
|
|
444
|
+
}, ot = ({ manager: i }) => {
|
|
444
445
|
const { t: n } = g(), [e, r] = I(!1), [o, c] = I(null);
|
|
445
446
|
p(() => {
|
|
446
447
|
import("./selfieTutorial-Dm_p0ke9.js").then((l) => {
|
|
@@ -451,7 +452,7 @@ const h = ({
|
|
|
451
452
|
r(!0), i.nextStep();
|
|
452
453
|
};
|
|
453
454
|
return o ? /* @__PURE__ */ t(
|
|
454
|
-
|
|
455
|
+
H,
|
|
455
456
|
{
|
|
456
457
|
animationData: o,
|
|
457
458
|
title: n("face.tutorial.title"),
|
|
@@ -466,6 +467,6 @@ const h = ({
|
|
|
466
467
|
) : null;
|
|
467
468
|
};
|
|
468
469
|
export {
|
|
469
|
-
|
|
470
|
-
|
|
470
|
+
nt as C,
|
|
471
|
+
ot as T
|
|
471
472
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as s, c as a } from "./button-
|
|
2
|
-
import { D as y } from "./vendor-preact-
|
|
1
|
+
import { u as s, c as a } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { D as y } from "./vendor-preact-BoMmvSgn.js";
|
|
3
3
|
const e = y(
|
|
4
4
|
({ children: o, className: r, ...p }, c) => /* @__PURE__ */ s("h2", { ref: c, class: `IncodeTitle ${r ?? ""}`, ...p, children: o })
|
|
5
5
|
), h = ({ children: o, className: r }) => /* @__PURE__ */ s("h1", { class: a("IncodeTypographyH1", r), children: o }), T = ({ children: o, className: r }) => /* @__PURE__ */ s("h2", { class: `IncodeTypographyH2 ${r ?? ""}`, children: o }), g = ({ children: o, className: r }) => /* @__PURE__ */ s("h3", { class: a("IncodeTypographyH3", r), children: o }), H = ({ children: o, className: r }) => /* @__PURE__ */ s("h4", { class: a("IncodeTypographyH4", r), children: o }), l = ({ children: o, className: r }) => /* @__PURE__ */ s("h5", { class: a("IncodeTypographyH5", r), children: o }), d = ({ children: o, className: r }) => /* @__PURE__ */ s("p", { class: a("IncodeTypographyP", r), children: o });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScreenOrientationProvider as et, createScreenOrientationObserver as tt, getDeviceClass as nt } from "@incodetech/core";
|
|
2
|
-
import { d as it, y as st,
|
|
2
|
+
import { d as it, y as st, c as rt, C as ot } from "./vendor-preact-BoMmvSgn.js";
|
|
3
3
|
let ne = null;
|
|
4
4
|
function at() {
|
|
5
5
|
if (!ne) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260326-
|
|
3
|
+
"version": "0.0.0-dev-20260326-106dc21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"preact-markup": "^2.1.1",
|
|
137
137
|
"qrcode": "^1.5.4",
|
|
138
138
|
"tailwindcss": "^4.1.17",
|
|
139
|
-
"@incodetech/core": "0.0.0-dev-20260326-
|
|
139
|
+
"@incodetech/core": "0.0.0-dev-20260326-106dc21"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@microsoft/api-extractor": "^7.53.3",
|