@incodetech/web 0.0.0-dev-20260325-72e1e24 → 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 +16 -3
- 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/curp-validation/styles.css +12 -0
- package/dist/{dateInputComposed-DzB7gNed.js → dateInputComposed-DmlHvCmR.js} +4 -4
- package/dist/{documentCapture-B4JcCGTV.js → documentCapture-DYsIVkcU.js} +14 -13
- package/dist/dropdownComposed-DFrqye1c.js +367 -0
- package/dist/{ekybModule-ly0wrPsV.js → ekybModule-Cve2s2tf.js} +10 -10
- package/dist/{ekycModule-BkTDINkE.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-CmG-kgPi.js → flipAnimation-CQ3So9XG.js} +269 -655
- package/dist/flow/flow.es.js +14 -14
- package/dist/flow/styles.css +12 -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-B4OTfqLt.js → phoneInputComposed-Dsf9ZDTj.js} +27 -27
- 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/themes/dark.css +1 -0
- package/dist/themes/light.css +1 -0
- package/dist/{tutorial-BRvI-ZLU.js → tutorial-Cx_ANvlr.js} +42 -41
- package/dist/types/extensibility.d.ts +1 -0
- 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/dropdownComposed-LjhdF9Jx.js +0 -345
- package/dist/manualCaptureButton-6WD7GhPe.js +0 -1071
- package/dist/otpInput-cZblmynr.js +0 -124
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,11 +1,11 @@
|
|
|
1
|
-
import { u as r } from "./button-
|
|
2
|
-
import { D as J, d as
|
|
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-
|
|
8
|
-
import { P as n2, p as
|
|
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
|
+
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])
|
|
11
11
|
return new n2(e, o[e], a);
|
|
@@ -15,7 +15,7 @@ function t2() {
|
|
|
15
15
|
}
|
|
16
16
|
const r2 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2684641234", AI: "2642351234", AL: "672123456", AM: "77123456", AO: "923123456", AR: "91123456789", AS: "6847331234", AT: "664123456", AU: "412345678", AW: "5601234", AX: "412345678", AZ: "401234567", BA: "61123456", BB: "2462501234", BD: "1812345678", BE: "470123456", BF: "70123456", BG: "43012345", BH: "36001234", BI: "79561234", BJ: "0195123456", BL: "690001234", BM: "4413701234", BN: "7123456", BO: "71234567", BQ: "3181234", BR: "11961234567", BS: "2423591234", BT: "17123456", BW: "71123456", BY: "294911911", BZ: "6221234", CA: "5062345678", CC: "412345678", CD: "991234567", CF: "70012345", CG: "061234567", CH: "781234567", CI: "0123456789", CK: "71234", CL: "221234567", CM: "671234567", CN: "13123456789", CO: "3211234567", CR: "83123456", CU: "51234567", CV: "9911234", CW: "95181234", CX: "412345678", CY: "96123456", CZ: "601123456", DE: "15123456789", DJ: "77831001", DK: "34412345", DM: "7672251234", DO: "8092345678", DZ: "551234567", EC: "991234567", EE: "51234567", EG: "1001234567", EH: "650123456", ER: "7123456", ES: "612345678", ET: "911234567", FI: "412345678", FJ: "7012345", FK: "51234", FM: "3501234", FO: "211234", FR: "612345678", GA: "06031234", GB: "7400123456", GD: "4734031234", GE: "555123456", GF: "694201234", GG: "7781123456", GH: "231234567", GI: "57123456", GL: "221234", GM: "3012345", GN: "601123456", GP: "690001234", GQ: "222123456", GR: "6912345678", GT: "51234567", GU: "6713001234", GW: "955012345", GY: "6091234", HK: "51234567", HN: "91234567", HR: "921234567", HT: "34101234", HU: "201234567", ID: "812345678", IE: "850123456", IL: "502345678", IM: "7924123456", IN: "8123456789", IO: "3801234", IQ: "7912345678", IR: "9123456789", IS: "6111234", IT: "3123456789", JE: "7797712345", JM: "8762101234", JO: "790123456", JP: "9012345678", KE: "712123456", KG: "700123456", KH: "91234567", KI: "72001234", KM: "3212345", KN: "8697652917", KP: "1921234567", KR: "1020000000", KW: "50012345", KY: "3453231234", KZ: "7710009998", LA: "2023123456", LB: "71123456", LC: "7582845678", LI: "660234567", LK: "712345678", LR: "770123456", LS: "50123456", LT: "61234567", LU: "628123456", LV: "21234567", LY: "912345678", MA: "650123456", MC: "612345678", MD: "62112345", ME: "60123456", MF: "690001234", MG: "321234567", MH: "2351234", MK: "72345678", ML: "65012345", MM: "92123456", MN: "88123456", MO: "66123456", MP: "6702345678", MQ: "696201234", MR: "22123456", MS: "6644923456", MT: "96961234", MU: "52512345", MV: "7712345", MW: "991234567", MX: "2221234567", MY: "123456789", MZ: "821234567", NA: "811234567", NC: "751234", NE: "93123456", NF: "381234", NG: "8021234567", NI: "81234567", NL: "612345678", NO: "40612345", NP: "9841234567", NR: "5551234", NU: "8884012", NZ: "211234567", OM: "92123456", PA: "61234567", PE: "912345678", PF: "87123456", PG: "70123456", PH: "9051234567", PK: "3012345678", PL: "512345678", PM: "551234", PR: "7872345678", PS: "599123456", PT: "912345678", PW: "6201234", PY: "961456789", QA: "33123456", RE: "692123456", RO: "712034567", RS: "601234567", RU: "9123456789", RW: "720123456", SA: "512345678", SB: "7421234", SC: "2510123", SD: "911231234", SE: "701234567", SG: "81234567", SH: "51234", SI: "31234567", SJ: "41234567", SK: "912123456", SL: "25123456", SM: "66661212", SN: "701234567", SO: "71123456", SR: "7412345", SS: "977123456", ST: "9812345", SV: "70123456", SX: "7215205678", SY: "944567890", SZ: "76123456", TA: "8999", TC: "6492311234", TD: "63012345", TG: "90112345", TH: "812345678", TJ: "917123456", TK: "7290", TL: "77212345", TM: "66123456", TN: "20123456", TO: "7715123", TR: "5012345678", TT: "8682911234", TV: "901234", TW: "912345678", TZ: "621234567", UA: "501234567", UG: "712345678", US: "2015550123", UY: "94231234", UZ: "912345678", VA: "3123456789", VC: "7844301234", VE: "4121234567", VG: "2843001234", VI: "3406421234", VN: "912345678", VU: "5912345", WF: "821234", WS: "7212345", XK: "43201234", YE: "712345678", YT: "639012345", ZA: "711234567", ZM: "955123456", ZW: "712345678" };
|
|
17
17
|
function y(e, o, a) {
|
|
18
|
-
return new
|
|
18
|
+
return new b(a).input(`${o}${e}`).replace(o, "").trimStart();
|
|
19
19
|
}
|
|
20
20
|
function s2(e, o) {
|
|
21
21
|
const a = e.replace(/\D/g, "");
|
|
@@ -56,34 +56,34 @@ const l2 = J(
|
|
|
56
56
|
"data-testid": W,
|
|
57
57
|
...F
|
|
58
58
|
}, H) => {
|
|
59
|
-
const [
|
|
59
|
+
const [d, T] = g(a), [u, f] = g(""), G = x(!1), U = M(
|
|
60
60
|
() => j.map((t) => ({
|
|
61
61
|
value: t.code,
|
|
62
62
|
label: `${t.emoji} ${t.callingCode} ${t.name}`
|
|
63
63
|
})),
|
|
64
64
|
[]
|
|
65
|
-
),
|
|
66
|
-
() => I(
|
|
67
|
-
[
|
|
65
|
+
), i = M(
|
|
66
|
+
() => I(d) ?? I("US"),
|
|
67
|
+
[d]
|
|
68
68
|
), O = M(
|
|
69
|
-
() => c ?? a2(
|
|
70
|
-
[c,
|
|
69
|
+
() => c ?? a2(d),
|
|
70
|
+
[c, d]
|
|
71
71
|
);
|
|
72
72
|
Q(() => {
|
|
73
|
-
if (G.current || !s || !
|
|
73
|
+
if (G.current || !s || !i) return;
|
|
74
74
|
G.current = !0;
|
|
75
|
-
const t = s.startsWith("+") ? s : `+${s}`, n =
|
|
75
|
+
const t = s.startsWith("+") ? s : `+${s}`, n = L(t);
|
|
76
76
|
if (n?.isValid() && n.country) {
|
|
77
|
-
n.country !==
|
|
78
|
-
const p = new
|
|
77
|
+
n.country !== d && T(n.country);
|
|
78
|
+
const p = new b(n.country);
|
|
79
79
|
f(p.input(n.nationalNumber));
|
|
80
80
|
}
|
|
81
|
-
}, [s,
|
|
81
|
+
}, [s, i, d]);
|
|
82
82
|
const C = A(
|
|
83
83
|
(t, n) => {
|
|
84
84
|
const p = `${n.callingCode}${t.replace(/\D/g, "")}`;
|
|
85
85
|
try {
|
|
86
|
-
const Y =
|
|
86
|
+
const Y = L(p, n.code);
|
|
87
87
|
S?.(p, Y?.isValid() ?? !1);
|
|
88
88
|
} catch {
|
|
89
89
|
S?.(p, !1);
|
|
@@ -100,18 +100,18 @@ const l2 = J(
|
|
|
100
100
|
), Z = A(
|
|
101
101
|
(t) => {
|
|
102
102
|
const n = t.target.value;
|
|
103
|
-
if (!
|
|
103
|
+
if (!i) {
|
|
104
104
|
f(n);
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
const p = y(
|
|
108
108
|
n,
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
i.callingCode,
|
|
110
|
+
i.code
|
|
111
111
|
);
|
|
112
|
-
f(p), C(n,
|
|
112
|
+
f(p), C(n, i);
|
|
113
113
|
},
|
|
114
|
-
[
|
|
114
|
+
[i, C]
|
|
115
115
|
), v = `${e}-country`, m = `${e}-phone`, E = `${m}-helper`, B = `${m}-error`, w = [h ? E : null, l ? B : null].filter(Boolean).join(" ");
|
|
116
116
|
return /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposed", children: [
|
|
117
117
|
o && /* @__PURE__ */ r(
|
|
@@ -131,14 +131,14 @@ const l2 = J(
|
|
|
131
131
|
{
|
|
132
132
|
id: v,
|
|
133
133
|
options: U,
|
|
134
|
-
value:
|
|
134
|
+
value: d,
|
|
135
135
|
onChange: V,
|
|
136
136
|
disabled: N || R,
|
|
137
137
|
required: P,
|
|
138
138
|
searchable: !0,
|
|
139
139
|
searchPlaceholder: "Search countries...",
|
|
140
140
|
suppressMessages: !0,
|
|
141
|
-
"aria-label":
|
|
141
|
+
"aria-label": `Country code ${i.callingCode}, ${i.name}`,
|
|
142
142
|
renderSelectedLabel: (t) => {
|
|
143
143
|
const n = I(t.value);
|
|
144
144
|
return n ? `${n.emoji} ${n.callingCode}` : t.label;
|
|
@@ -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,
|
package/dist/themes/dark.css
CHANGED
package/dist/themes/light.css
CHANGED
|
@@ -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) {
|