@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AsYouType-D1H_js4X.js +2607 -0
- package/dist/Trans-aTzdT_SA.js +55 -0
- package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
- package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
- package/dist/antifraud/antifraud.es.js +18 -17
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +50 -28
- package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
- package/dist/back-tutorial-An9AcMSe.js +29 -0
- package/dist/back-vertical-hint-CNieqiCr.js +5 -0
- package/dist/backdevicelottie-B4NgyWmX.js +29 -0
- package/dist/base.css +67 -327
- package/dist/blurdevicelottie-_BZRug1c.js +29 -0
- package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/cameraView-C2X7klNb.js +55 -0
- package/dist/captureOverlay-tCb4R4WE.js +592 -0
- package/dist/checkbox-B5X-mfqq.js +137 -0
- package/dist/chevronDown-DSHaPKbi.js +23 -0
- package/dist/closeIcon-9Hc97omv.js +28 -0
- package/dist/consent/consent.es.js +89 -82
- package/dist/consent/styles.css +1 -1
- package/dist/countries-DfLkrF0x.js +616 -0
- package/dist/curp-validation/curp-validation.es.js +313 -271
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-C7PCzh-U.js +173 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-C0mO-RGE.js +692 -0
- package/dist/dropdownComposed-BpinYlrx.js +367 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-Dr6LJUg-.js +357 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-C3mswduI.js +291 -0
- package/dist/email/email.es.js +154 -110
- package/dist/email/styles.css +1 -1
- package/dist/errorContent-Cb8nmQAE.js +44 -0
- package/dist/errorIcon-DEARBrGx.js +26 -0
- package/dist/extensibility.es.js +150 -22
- package/dist/face-match/styles.css +73 -147
- package/dist/faceMatch-DbDp7D3d.js +237 -0
- package/dist/fileIcon-CCSvS10T.js +52 -0
- package/dist/flip-animation-COR596wy.js +29 -0
- package/dist/flipAnimation-BqV462TA.js +2059 -0
- package/dist/flow/flow.es.js +2613 -2273
- package/dist/flow/styles.css +73 -432
- package/dist/formField-CP6wDdfA.js +106 -0
- package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
- package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
- package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
- package/dist/geolocation/geolocation.es.js +832 -852
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-DLuIStvb.js +29 -0
- package/dist/governmentValidation/governmentValidation.es.js +106 -100
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/id/id.es.js +59 -53
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BBV3r3rz.js +29 -0
- package/dist/id-laser-v-BTHJaSfx.js +29 -0
- package/dist/id-tutorial-B-F5Q28m.js +29 -0
- package/dist/incodeModule-C4XIllao.js +96 -0
- package/dist/index.es.js +25 -4
- package/dist/inputComposed-fUbAGrDy.js +103 -0
- package/dist/instance-BWYzq8dk.js +2163 -0
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
- package/dist/numberedStep-DwUB__mh.js +5 -0
- package/dist/otpInput-BFXhqFRT.js +156 -0
- package/dist/page-SrUl0qtN.js +69 -0
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
- package/dist/passport-tutorial-CaYBFTqt.js +29 -0
- package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
- package/dist/permissions-DT4Fz9MR.js +709 -0
- package/dist/phone/phone.es.js +121 -87
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-CGr8TxOO.js +158 -0
- package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
- package/dist/processing-szVOCQwZ.js +19 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-cspvNz2a.js +1807 -0
- package/dist/selfie/selfie.es.js +50 -29
- package/dist/selfie/styles.css +66 -170
- package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
- package/dist/signature/signature.es.js +707 -557
- package/dist/signature/styles.css +1 -1
- package/dist/spinner-DygONskw.js +60 -0
- package/dist/successIcon-Bjsdc4lF.js +26 -0
- package/dist/tutorial-Cdz1025D.js +473 -0
- package/dist/types/ekyb/styles.d.ts +1 -0
- package/dist/types/ekyc/styles.d.ts +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/typography-BDACYR5i.js +14 -0
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/useMediaQuery-lJdQBmC2.js +18 -0
- package/dist/vendor-preact-BoMmvSgn.js +694 -0
- package/dist/warningIcon-DQq_MrOB.js +26 -0
- package/package.json +11 -8
- package/dist/AsYouType-DPWqJvFu.js +0 -2482
- package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
- package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
- package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
- package/dist/back-tutorial-BNTyW-1N.js +0 -14584
- package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
- package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
- package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
- package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
- package/dist/button-DhL5eRT3.js +0 -123
- package/dist/checkbox-l8NxPf4o.js +0 -85
- package/dist/countries-y2ydYDhN.js +0 -8323
- package/dist/dateInputComposed-B9WqdYx9.js +0 -2
- package/dist/dateInputComposed-ndsGHX1M.js +0 -94
- package/dist/defineProperty-brqHEHA_.js +0 -39
- package/dist/documentCapture-wDgRLdon.js +0 -784
- package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekybModule-BBOm1y49.js +0 -2
- package/dist/ekybModule-fz6i9ZRt.js +0 -286
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekycModule-SeTFG3AJ.js +0 -233
- package/dist/ekycModule-hxIcNX8n.js +0 -2
- package/dist/extensibility-DJihqIzM.js +0 -2248
- package/dist/faceMatch-DH8sLx34.js +0 -191
- package/dist/flip-animation-DOJzdXB-.js +0 -6983
- package/dist/formField-BRTbY8w9.js +0 -100
- package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
- package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
- package/dist/frontdevicelottie-DadDp6be.js +0 -17302
- package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
- package/dist/i18n-DZOHbK9q.js +0 -1916
- package/dist/icons-BHbofCgJ.js +0 -245
- package/dist/id-laser-h-BWyU3VgL.js +0 -467
- package/dist/id-laser-v-JiWXUlv0.js +0 -467
- package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
- package/dist/incodeModule-Bf6yJ8RB.js +0 -18
- package/dist/inputComposed-BhbfD8Ru.js +0 -77
- package/dist/loadingIcon-CeQt7Zgb.js +0 -146
- package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
- package/dist/numberedStep-CQVRixRP.js +0 -11
- package/dist/otpInput-CDIG9el7.js +0 -143
- package/dist/page-SvlJWUfz.js +0 -61
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
- package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
- package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
- package/dist/phoneInput-C9T_8FJt.js +0 -138
- package/dist/phoneInputComposed-B-0zieIW.js +0 -407
- package/dist/processing-B5zhNH6I.js +0 -15
- package/dist/richText-Db0PfpkE.js +0 -1973
- package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
- package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
- package/dist/setup-Dq2bzNKH.js +0 -15
- package/dist/spacer-DCljE53A.js +0 -59
- package/dist/spinner-Bk0YuoLu.js +0 -1
- package/dist/spinner-snIGzmm8.js +0 -41
- package/dist/successIcon-AHrfmJvv.js +0 -17
- package/dist/tutorial-DNOd11tg.js +0 -2780
- package/dist/types/ekyb.d.ts +0 -29
- package/dist/types/ekyc.d.ts +0 -29
- package/dist/typography-BNbFNFek.js +0 -1
- package/dist/typography-DvHeVWfY.js +0 -29
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/warningIcon-Cvj-ayg1.js +0 -17
package/dist/email/email.es.js
CHANGED
|
@@ -1,110 +1,154 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
1
|
+
import { b as v, u as e, I as O, a as w, S as C } from "../loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { createEmailManager as y } from "@incodetech/core/email";
|
|
3
|
+
import { d as b, y as P } from "../vendor-preact-BoMmvSgn.js";
|
|
4
|
+
import "@incodetech/core";
|
|
5
|
+
import { B as V } from "../button-CE9kRlem.js";
|
|
6
|
+
import { O as R } from "../otpInput-BFXhqFRT.js";
|
|
7
|
+
import { P as I } from "../page-SrUl0qtN.js";
|
|
8
|
+
import { r as S } from "../incodeModule-C4XIllao.js";
|
|
9
|
+
import "../instance-BWYzq8dk.js";
|
|
10
|
+
import "../typography-BDACYR5i.js";
|
|
11
|
+
import { a as k } from "../inputComposed-fUbAGrDy.js";
|
|
12
|
+
import "../checkbox-B5X-mfqq.js";
|
|
13
|
+
import "../phoneInputComposed-Cm9O2Jba.js";
|
|
14
|
+
import "../dateInputComposed-C7PCzh-U.js";
|
|
15
|
+
import "../captureOverlay-tCb4R4WE.js";
|
|
16
|
+
import "../manualCaptureButton-BvFmTyJe.js";
|
|
17
|
+
import "../countries-DfLkrF0x.js";
|
|
18
|
+
const h = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, L = ({
|
|
19
|
+
prefilledEmail: i,
|
|
20
|
+
emailError: s,
|
|
21
|
+
label: m,
|
|
22
|
+
disabled: c = !1,
|
|
23
|
+
required: a = !1,
|
|
24
|
+
onEmailChange: t
|
|
25
|
+
}) => {
|
|
26
|
+
const { t: l } = v(), [f, p] = b("");
|
|
27
|
+
P(() => {
|
|
28
|
+
if (i) {
|
|
29
|
+
p(i);
|
|
30
|
+
const r = h.test(i.trim());
|
|
31
|
+
t(i.trim(), r);
|
|
32
|
+
}
|
|
33
|
+
}, [i, t]);
|
|
34
|
+
const E = (r) => {
|
|
35
|
+
const d = r.target.value;
|
|
36
|
+
p(d);
|
|
37
|
+
const o = d.trim(), u = o.length > 0 && h.test(o);
|
|
38
|
+
t(o, u);
|
|
39
|
+
}, n = s ? "email-error" : void 0;
|
|
40
|
+
return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children: /* @__PURE__ */ e(
|
|
41
|
+
k,
|
|
42
|
+
{
|
|
43
|
+
id: "email-input",
|
|
44
|
+
type: "email",
|
|
45
|
+
value: f,
|
|
46
|
+
onInput: E,
|
|
47
|
+
placeholder: l("email.placeholder"),
|
|
48
|
+
disabled: c,
|
|
49
|
+
required: a,
|
|
50
|
+
label: m,
|
|
51
|
+
"data-testid": "email-input",
|
|
52
|
+
"aria-label": m ? void 0 : "Email address",
|
|
53
|
+
"aria-invalid": s ? "true" : void 0,
|
|
54
|
+
"aria-describedby": n || void 0,
|
|
55
|
+
autocomplete: "email",
|
|
56
|
+
error: s,
|
|
57
|
+
showErrorIcon: !0
|
|
58
|
+
}
|
|
59
|
+
) }) });
|
|
60
|
+
}, T = ({
|
|
61
|
+
config: i,
|
|
62
|
+
manager: s,
|
|
63
|
+
onFinish: m,
|
|
64
|
+
onError: c
|
|
65
|
+
}) => {
|
|
66
|
+
const { t: a } = v(), [t, l] = w(
|
|
67
|
+
() => {
|
|
68
|
+
if (s) return s;
|
|
69
|
+
if (!i)
|
|
70
|
+
throw new Error("Email config is required");
|
|
71
|
+
return y({ config: i });
|
|
72
|
+
},
|
|
73
|
+
{ manageLifecycle: !s }
|
|
74
|
+
), [f, p] = b(!1);
|
|
75
|
+
if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
|
|
76
|
+
const n = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", r = t.status === "inputting" ? t.prefilledEmail : void 0, g = t.status === "inputting" && t.emailError ? a(t.emailError) : void 0, d = t.status === "inputting" ? t.otpVerification ?? !1 : !1;
|
|
77
|
+
return /* @__PURE__ */ e(
|
|
78
|
+
I,
|
|
79
|
+
{
|
|
80
|
+
className: "IncodeEmailPage",
|
|
81
|
+
title: a("otp.enterCodeEmail"),
|
|
82
|
+
subtitle: d ? a("email.willSendCode") : void 0,
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ e(
|
|
85
|
+
L,
|
|
86
|
+
{
|
|
87
|
+
prefilledEmail: r,
|
|
88
|
+
emailError: g,
|
|
89
|
+
disabled: n,
|
|
90
|
+
onEmailChange: (o, u) => {
|
|
91
|
+
l.setEmail(o, u), p(u);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ e(C, {}),
|
|
96
|
+
/* @__PURE__ */ e(
|
|
97
|
+
V,
|
|
98
|
+
{
|
|
99
|
+
onClick: () => l.submit(),
|
|
100
|
+
disabled: !f,
|
|
101
|
+
isLoading: n,
|
|
102
|
+
"data-testid": "email-submit",
|
|
103
|
+
children: a("common.continue")
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"email-input"
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
|
|
112
|
+
const n = t.status === "verifyingOtp", r = t.status === "otpError", g = t.status === "awaitingOtp", d = t.status === "resendingOtp", o = g || r || n;
|
|
113
|
+
return /* @__PURE__ */ e(
|
|
114
|
+
I,
|
|
115
|
+
{
|
|
116
|
+
className: "IncodeEmailPage IncodeEmailOtpPage",
|
|
117
|
+
title: a("otp.enterCodeEmail"),
|
|
118
|
+
children: /* @__PURE__ */ e(
|
|
119
|
+
R,
|
|
120
|
+
{
|
|
121
|
+
resendTimer: o ? t.resendTimer : 0,
|
|
122
|
+
canResend: o ? t.canResend : !1,
|
|
123
|
+
error: r ? a(t.otpError) : void 0,
|
|
124
|
+
isLoading: n,
|
|
125
|
+
disabled: d || n,
|
|
126
|
+
onSubmit: (u) => l.submitOtp(u),
|
|
127
|
+
onResend: () => l.resendOtp(),
|
|
128
|
+
onBack: () => l.back(),
|
|
129
|
+
backLinkText: "otp.changeEmail"
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
},
|
|
133
|
+
"email-otp"
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
return t.status === "finished" ? (m?.(), null) : (t.status === "error" && c?.(t.error), null);
|
|
137
|
+
}, B = ({
|
|
138
|
+
config: i,
|
|
139
|
+
manager: s,
|
|
140
|
+
onFinish: m,
|
|
141
|
+
onError: c
|
|
142
|
+
}) => /* @__PURE__ */ e(O, { children: i || s ? /* @__PURE__ */ e(
|
|
143
|
+
T,
|
|
144
|
+
{
|
|
145
|
+
config: i,
|
|
146
|
+
manager: s,
|
|
147
|
+
onFinish: m,
|
|
148
|
+
onError: c
|
|
149
|
+
}
|
|
150
|
+
) : null });
|
|
151
|
+
S(B, "incode-email");
|
|
152
|
+
export {
|
|
153
|
+
B as Email
|
|
154
|
+
};
|
package/dist/email/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.IncodeEmailPage .IncodePageContent {
|
|
3
3
|
padding-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
4
4
|
padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { b as m, u as n, S as r } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { A as l, y as p } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { B as C } from "./button-CE9kRlem.js";
|
|
4
|
+
import { E as f } from "./errorIcon-DEARBrGx.js";
|
|
5
|
+
import { W as E } from "./warningIcon-DQq_MrOB.js";
|
|
6
|
+
import { P as I } from "./page-SrUl0qtN.js";
|
|
7
|
+
import { T as h } from "./typography-BDACYR5i.js";
|
|
8
|
+
const b = ({
|
|
9
|
+
title: c,
|
|
10
|
+
description: s,
|
|
11
|
+
attemptsRemaining: e,
|
|
12
|
+
onButtonClick: a,
|
|
13
|
+
"data-testid": d
|
|
14
|
+
}) => {
|
|
15
|
+
const { t } = m(), o = e <= 0, i = l(null);
|
|
16
|
+
return p(() => {
|
|
17
|
+
i.current?.focus();
|
|
18
|
+
}, []), /* @__PURE__ */ n("div", { class: "IncodeErrorContent", children: /* @__PURE__ */ n(I, { "data-testid": d, children: /* @__PURE__ */ n("div", { class: "IncodeErrorContentContainer", children: [
|
|
19
|
+
/* @__PURE__ */ n("div", { class: "IncodeErrorContentIconContainer", children: [
|
|
20
|
+
o ? /* @__PURE__ */ n(f, { size: 32 }) : /* @__PURE__ */ n(E, { size: 32 }),
|
|
21
|
+
/* @__PURE__ */ n(r, { size: 16 }),
|
|
22
|
+
/* @__PURE__ */ n(
|
|
23
|
+
h,
|
|
24
|
+
{
|
|
25
|
+
ref: i,
|
|
26
|
+
id: "error-content-title",
|
|
27
|
+
tabIndex: -1,
|
|
28
|
+
className: "IncodeErrorContentTitle",
|
|
29
|
+
children: c
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ n(r, { size: 12 }),
|
|
33
|
+
/* @__PURE__ */ n("p", { class: "IncodeErrorContentDescription", children: s })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ n("div", { class: "IncodeErrorContentAttemptsContainer", children: [
|
|
36
|
+
/* @__PURE__ */ n("p", { class: "IncodeErrorContentAttemptsText", children: o ? t("notifications.noAttemptsRemaining") : t("common.attemptsRemaining", { count: e }) }),
|
|
37
|
+
/* @__PURE__ */ n(r, { size: 24 }),
|
|
38
|
+
/* @__PURE__ */ n(C, { onClick: a, children: t(o ? "common.continue" : "common.tryAgain") })
|
|
39
|
+
] })
|
|
40
|
+
] }) }) });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
b as E
|
|
44
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { u as r } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
const n = ({ size: t = 32 }) => /* @__PURE__ */ r(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: t,
|
|
7
|
+
height: t,
|
|
8
|
+
viewBox: "0 0 32 32",
|
|
9
|
+
fill: "none",
|
|
10
|
+
class: "IncodeErrorIcon",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ r("title", { children: "Error" }),
|
|
14
|
+
/* @__PURE__ */ r(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M16 0C24.8219 0 32 7.17642 32 16C32 24.8219 24.8219 32 16 32C7.17811 32 0 24.8219 0 16C0 7.17642 7.17811 0 16 0ZM13.1553 11.3701C12.6618 10.8767 11.8636 10.8767 11.3701 11.3701C10.8767 11.8636 10.8767 12.6618 11.3701 13.1553L14.4053 16.1924L11.3721 19.2256C10.8803 19.7191 10.8803 20.5173 11.3721 21.0107C11.8656 21.504 12.6658 21.5041 13.1592 21.0107L16.1924 17.9775L19.2334 21.0205C19.481 21.2664 19.8029 21.3916 20.1279 21.3916C20.4513 21.3916 20.7746 21.2664 21.0205 21.0205C21.514 20.527 21.514 19.7269 21.0205 19.2334L17.9775 16.1924L21.0107 13.1572C21.5041 12.6638 21.504 11.8639 21.0107 11.3721C20.5173 10.8786 19.7191 10.8786 19.2256 11.3721L16.1904 14.4053L13.1553 11.3701Z",
|
|
18
|
+
fill: "var(--icon-status-negative)"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
n as E
|
|
26
|
+
};
|
package/dist/extensibility.es.js
CHANGED
|
@@ -1,22 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
1
|
+
import { u as t } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { I as g, L as y, S as T, a as v, b as S } from "./loadingIcon-DmuPXh70.js";
|
|
3
|
+
import { u as F } from "./instance-BWYzq8dk.js";
|
|
4
|
+
import { P as L } from "./page-SrUl0qtN.js";
|
|
5
|
+
import { C as b, F as H, O as M } from "./fileIcon-CCSvS10T.js";
|
|
6
|
+
import { S as E } from "./spinner-DygONskw.js";
|
|
7
|
+
import { P as D } from "./processing-szVOCQwZ.js";
|
|
8
|
+
import { E as A } from "./errorContent-Cb8nmQAE.js";
|
|
9
|
+
import { F as U, V as j } from "./formField-CP6wDdfA.js";
|
|
10
|
+
import { C as q, P as z } from "./cameraView-C2X7klNb.js";
|
|
11
|
+
import { B as i } from "./button-CE9kRlem.js";
|
|
12
|
+
import { I as J, a as K } from "./inputComposed-fUbAGrDy.js";
|
|
13
|
+
import { O as Q } from "./otpInput-BFXhqFRT.js";
|
|
14
|
+
import { C as Y, a as Z } from "./checkbox-B5X-mfqq.js";
|
|
15
|
+
import { P as $ } from "./phoneInputComposed-Cm9O2Jba.js";
|
|
16
|
+
import { D as ra, S as ea } from "./dropdownComposed-BpinYlrx.js";
|
|
17
|
+
import { C as ta, D as sa } from "./dateInputComposed-C7PCzh-U.js";
|
|
18
|
+
import { b as pa, C as ia, c as ca, e as ua, d as ma, H as la, L as Ca, T as da, a as fa } from "./captureOverlay-tCb4R4WE.js";
|
|
19
|
+
import { d as xa, C as ha, b as ga, I as ya, c as Ta, F as va, T as Sa, S as Ba, V as Fa, a as Pa } from "./flipAnimation-BqV462TA.js";
|
|
20
|
+
import { L as Oa, M as ba } from "./manualCaptureButton-BvFmTyJe.js";
|
|
21
|
+
import { A as c, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
|
|
22
|
+
import { B as Ma, P as Va } from "./permissions-DT4Fz9MR.js";
|
|
23
|
+
import { T as ka, a as Da, b as wa, c as Aa, d as Ra, e as Ua } from "./typography-BDACYR5i.js";
|
|
24
|
+
import { C as Wa } from "./chevronDown-DSHaPKbi.js";
|
|
25
|
+
import { C as za } from "./closeIcon-9Hc97omv.js";
|
|
26
|
+
import { E as Ja } from "./errorIcon-DEARBrGx.js";
|
|
27
|
+
import { S as Na } from "./successIcon-Bjsdc4lF.js";
|
|
28
|
+
import { c as Xa, a as Ya, g as Za } from "./countries-DfLkrF0x.js";
|
|
29
|
+
import { C as $a, T as ar } from "./tutorial-Cdz1025D.js";
|
|
30
|
+
import { s as er } from "./uiConfig-Dnt-2YWB.js";
|
|
31
|
+
function l(a) {
|
|
32
|
+
if (a.readyState < 2 || a.videoWidth === 0 || a.videoHeight === 0)
|
|
33
|
+
return null;
|
|
34
|
+
const r = document.createElement("canvas");
|
|
35
|
+
r.width = a.videoWidth, r.height = a.videoHeight;
|
|
36
|
+
const e = r.getContext("2d");
|
|
37
|
+
return e ? (e.drawImage(a, 0, 0), r.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
|
|
38
|
+
}
|
|
39
|
+
const I = ({
|
|
40
|
+
stream: a,
|
|
41
|
+
onCapture: r,
|
|
42
|
+
disabled: e
|
|
43
|
+
}) => {
|
|
44
|
+
const o = c(null);
|
|
45
|
+
u(() => {
|
|
46
|
+
o.current && a && (o.current.srcObject = a, o.current.play().catch(() => {
|
|
47
|
+
}));
|
|
48
|
+
}, [a]);
|
|
49
|
+
const s = m(() => {
|
|
50
|
+
const n = o.current;
|
|
51
|
+
if (!n || e) return;
|
|
52
|
+
const p = l(n);
|
|
53
|
+
p && r(p);
|
|
54
|
+
}, [r, e]);
|
|
55
|
+
return /* @__PURE__ */ t("div", { class: "IncodeManualCapture", children: [
|
|
56
|
+
/* @__PURE__ */ t("div", { class: "IncodeManualCaptureVideoContainer", children: /* @__PURE__ */ t(
|
|
57
|
+
"video",
|
|
58
|
+
{
|
|
59
|
+
ref: o,
|
|
60
|
+
autoplay: !0,
|
|
61
|
+
playsInline: !0,
|
|
62
|
+
muted: !0,
|
|
63
|
+
class: "IncodeManualCaptureVideo",
|
|
64
|
+
"aria-label": "Camera stream for document capture"
|
|
65
|
+
}
|
|
66
|
+
) }),
|
|
67
|
+
/* @__PURE__ */ t("div", { class: "IncodeManualCaptureButtonContainer", children: /* @__PURE__ */ t(
|
|
68
|
+
i,
|
|
69
|
+
{
|
|
70
|
+
variant: "primary",
|
|
71
|
+
size: "L",
|
|
72
|
+
onClick: s,
|
|
73
|
+
disabled: e,
|
|
74
|
+
class: "IncodeManualCaptureButton",
|
|
75
|
+
"aria-label": "Capture document",
|
|
76
|
+
children: "Capture"
|
|
77
|
+
}
|
|
78
|
+
) })
|
|
79
|
+
] });
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
Ma as BaseTutorial,
|
|
83
|
+
i as Button,
|
|
84
|
+
ta as CalendarIcon,
|
|
85
|
+
pa as CameraFrame,
|
|
86
|
+
b as CameraIcon,
|
|
87
|
+
ia as CameraOverlay,
|
|
88
|
+
ca as CameraOverlayHeader,
|
|
89
|
+
q as CameraView,
|
|
90
|
+
ua as CaptureButtonIcon,
|
|
91
|
+
ma as CaptureFooter,
|
|
92
|
+
Y as Checkbox,
|
|
93
|
+
Z as CheckmarkIcon,
|
|
94
|
+
Wa as ChevronDown,
|
|
95
|
+
xa as ChevronRightIcon,
|
|
96
|
+
za as CloseIcon,
|
|
97
|
+
sa as DateInputComposed,
|
|
98
|
+
ra as DropdownComposed,
|
|
99
|
+
A as ErrorContent,
|
|
100
|
+
Ja as ErrorIcon,
|
|
101
|
+
H as FileIcon,
|
|
102
|
+
U as FormField,
|
|
103
|
+
la as HelpIcon,
|
|
104
|
+
ha as IdCapture,
|
|
105
|
+
ga as IdChooser,
|
|
106
|
+
ya as IdError,
|
|
107
|
+
Ta as IdExpired,
|
|
108
|
+
va as IdFlipAnimation,
|
|
109
|
+
Sa as IdTutorial,
|
|
110
|
+
g as IncodeComponent,
|
|
111
|
+
J as Input,
|
|
112
|
+
K as InputComposed,
|
|
113
|
+
y as LandscapeBlocker,
|
|
114
|
+
Ba as LightningIcon,
|
|
115
|
+
Ca as LockIcon,
|
|
116
|
+
Oa as Lottie,
|
|
117
|
+
I as ManualCapture,
|
|
118
|
+
ba as Modal,
|
|
119
|
+
Q as OtpInput,
|
|
120
|
+
M as Overlay,
|
|
121
|
+
L as Page,
|
|
122
|
+
Va as Permissions,
|
|
123
|
+
$ as PhoneInputComposed,
|
|
124
|
+
D as Processing,
|
|
125
|
+
z as ProgressBar,
|
|
126
|
+
ea as SearchIcon,
|
|
127
|
+
$a as SelfieCapture,
|
|
128
|
+
ar as SelfieTutorial,
|
|
129
|
+
T as Spacer,
|
|
130
|
+
E as Spinner,
|
|
131
|
+
Na as SuccessIcon,
|
|
132
|
+
da as TextArea,
|
|
133
|
+
fa as TextAreaComposed,
|
|
134
|
+
ka as Title,
|
|
135
|
+
Da as TypographyH1,
|
|
136
|
+
wa as TypographyH3,
|
|
137
|
+
Aa as TypographyH4,
|
|
138
|
+
Ra as TypographyH5,
|
|
139
|
+
Ua as TypographyP,
|
|
140
|
+
Fa as VerificationOptionCard,
|
|
141
|
+
Pa as VerificationOptionCardList,
|
|
142
|
+
j as VerificationResult,
|
|
143
|
+
Xa as countries,
|
|
144
|
+
Ya as getCountryByCallingCode,
|
|
145
|
+
Za as getCountryByCode,
|
|
146
|
+
er as setUiConfig,
|
|
147
|
+
v as useManager,
|
|
148
|
+
F as useScreenOrientation,
|
|
149
|
+
S as useTranslation
|
|
150
|
+
};
|