@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/email/email.es.js
CHANGED
|
@@ -1,113 +1,103 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as v, u as e, I as O, a as C, S as w, B as y } from "../button-B2Ewo0rX.js";
|
|
2
2
|
import { createEmailManager as P } from "@incodetech/core/email";
|
|
3
|
-
import { d as
|
|
3
|
+
import { d as b, y as S } from "../vendor-preact-BoMmvSgn.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { O as
|
|
6
|
-
import { P as
|
|
7
|
-
import { r as
|
|
8
|
-
import "../uiConfig-
|
|
9
|
-
|
|
5
|
+
import { O as V } from "../otpInput-CGlYkmvB.js";
|
|
6
|
+
import { P as f } from "../page-DiscPBzz.js";
|
|
7
|
+
import { r as k } from "../incodeModule-C4XIllao.js";
|
|
8
|
+
import "../uiConfig-DmIn-g8M.js";
|
|
9
|
+
import "../typography-zMrvftfB.js";
|
|
10
|
+
import { a as L } from "../inputComposed-CJQTXKNA.js";
|
|
11
|
+
import "../checkbox-CXnQVsbJ.js";
|
|
12
|
+
import "../phoneInputComposed-Dsf9ZDTj.js";
|
|
13
|
+
import "../dateInputComposed-DmlHvCmR.js";
|
|
14
|
+
import "../captureOverlay-CB8lyLgp.js";
|
|
15
|
+
import "../manualCaptureButton-CUq6VXLb.js";
|
|
16
|
+
import "../captureFooter-B_3eu8kq.js";
|
|
17
|
+
import "../countries-DfLkrF0x.js";
|
|
18
|
+
const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, R = ({
|
|
10
19
|
prefilledEmail: i,
|
|
11
|
-
emailError:
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
emailError: s,
|
|
21
|
+
label: m,
|
|
22
|
+
disabled: u = !1,
|
|
23
|
+
required: n = !1,
|
|
24
|
+
onEmailChange: t
|
|
14
25
|
}) => {
|
|
15
|
-
const [
|
|
16
|
-
|
|
26
|
+
const { t: o } = v(), [g, p] = b("");
|
|
27
|
+
S(() => {
|
|
17
28
|
if (i) {
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
29
|
+
p(i);
|
|
30
|
+
const a = I.test(i.trim());
|
|
31
|
+
t(i.trim(), a);
|
|
21
32
|
}
|
|
22
|
-
}, [i,
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
autocomplete: "email"
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
),
|
|
56
|
-
a && /* @__PURE__ */ e(w, { children: [
|
|
57
|
-
/* @__PURE__ */ e(g, { size: 8 }),
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
"p",
|
|
60
|
-
{
|
|
61
|
-
id: m,
|
|
62
|
-
class: "IncodeEmailInputError",
|
|
63
|
-
"data-testid": "email-error",
|
|
64
|
-
role: "alert",
|
|
65
|
-
children: a
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
] })
|
|
69
|
-
] }) });
|
|
70
|
-
}, R = ({
|
|
33
|
+
}, [i, t]);
|
|
34
|
+
const E = (a) => {
|
|
35
|
+
const d = a.target.value;
|
|
36
|
+
p(d);
|
|
37
|
+
const r = d.trim(), h = r.length > 0 && I.test(r);
|
|
38
|
+
t(r, h);
|
|
39
|
+
}, l = s ? "email-error" : void 0;
|
|
40
|
+
return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children: /* @__PURE__ */ e(
|
|
41
|
+
L,
|
|
42
|
+
{
|
|
43
|
+
id: "email-input",
|
|
44
|
+
type: "email",
|
|
45
|
+
value: g,
|
|
46
|
+
onInput: E,
|
|
47
|
+
placeholder: o("email.placeholder"),
|
|
48
|
+
disabled: u,
|
|
49
|
+
required: n,
|
|
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": l || void 0,
|
|
55
|
+
autocomplete: "email",
|
|
56
|
+
error: s,
|
|
57
|
+
showErrorIcon: !0
|
|
58
|
+
}
|
|
59
|
+
) }) });
|
|
60
|
+
}, T = ({
|
|
71
61
|
config: i,
|
|
72
|
-
manager:
|
|
73
|
-
onFinish:
|
|
74
|
-
onError:
|
|
62
|
+
manager: s,
|
|
63
|
+
onFinish: m,
|
|
64
|
+
onError: u
|
|
75
65
|
}) => {
|
|
76
|
-
const { t: n } =
|
|
66
|
+
const { t: n } = v(), [t, o] = C(
|
|
77
67
|
() => {
|
|
78
|
-
if (
|
|
68
|
+
if (s) return s;
|
|
79
69
|
if (!i)
|
|
80
70
|
throw new Error("Email config is required");
|
|
81
71
|
return P({ config: i });
|
|
82
72
|
},
|
|
83
|
-
{ manageLifecycle: !
|
|
84
|
-
), [
|
|
85
|
-
if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "
|
|
86
|
-
const l = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "
|
|
73
|
+
{ manageLifecycle: !s }
|
|
74
|
+
), [g, p] = b(!1);
|
|
75
|
+
if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
|
|
76
|
+
const l = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", a = t.status === "inputting" ? t.prefilledEmail : void 0, c = t.status === "inputting" && t.emailError ? n(t.emailError) : void 0;
|
|
87
77
|
return /* @__PURE__ */ e(
|
|
88
|
-
|
|
78
|
+
f,
|
|
89
79
|
{
|
|
90
80
|
className: "IncodeEmailPage",
|
|
91
81
|
title: n("otp.enterCodeEmail"),
|
|
92
82
|
subtitle: i.otpVerification ? n("email.willSendCode") : void 0,
|
|
93
83
|
children: [
|
|
94
84
|
/* @__PURE__ */ e(
|
|
95
|
-
|
|
85
|
+
R,
|
|
96
86
|
{
|
|
97
|
-
prefilledEmail:
|
|
87
|
+
prefilledEmail: a,
|
|
98
88
|
emailError: c,
|
|
99
89
|
disabled: l,
|
|
100
|
-
onEmailChange: (
|
|
101
|
-
|
|
90
|
+
onEmailChange: (d, r) => {
|
|
91
|
+
o.setEmail(d, r), p(r);
|
|
102
92
|
}
|
|
103
93
|
}
|
|
104
94
|
),
|
|
105
|
-
/* @__PURE__ */ e(
|
|
95
|
+
/* @__PURE__ */ e(w, {}),
|
|
106
96
|
/* @__PURE__ */ e(
|
|
107
|
-
|
|
97
|
+
y,
|
|
108
98
|
{
|
|
109
|
-
onClick: () =>
|
|
110
|
-
disabled: !
|
|
99
|
+
onClick: () => o.submit(),
|
|
100
|
+
disabled: !g,
|
|
111
101
|
isLoading: l,
|
|
112
102
|
"data-testid": "email-submit",
|
|
113
103
|
children: n("common.continue")
|
|
@@ -117,45 +107,46 @@ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, V = ({
|
|
|
117
107
|
}
|
|
118
108
|
);
|
|
119
109
|
}
|
|
120
|
-
if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError") {
|
|
121
|
-
const l = t.status === "verifyingOtp";
|
|
110
|
+
if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
|
|
111
|
+
const l = t.status === "verifyingOtp", a = t.status === "otpError", c = t.status === "awaitingOtp", d = t.status === "resendingOtp";
|
|
122
112
|
return /* @__PURE__ */ e(
|
|
123
|
-
|
|
113
|
+
f,
|
|
124
114
|
{
|
|
125
115
|
className: "IncodeEmailPage IncodeEmailOtpPage",
|
|
126
116
|
title: n("otp.enterCodeEmail"),
|
|
127
117
|
children: /* @__PURE__ */ e(
|
|
128
|
-
|
|
118
|
+
V,
|
|
129
119
|
{
|
|
130
|
-
resendTimer:
|
|
131
|
-
canResend:
|
|
132
|
-
error:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
120
|
+
resendTimer: c || a ? t.resendTimer : 0,
|
|
121
|
+
canResend: c || a ? t.canResend : !1,
|
|
122
|
+
error: a ? n(t.otpError) : void 0,
|
|
123
|
+
isLoading: l,
|
|
124
|
+
disabled: d || l,
|
|
125
|
+
onSubmit: (r) => o.submitOtp(r),
|
|
126
|
+
onResend: () => o.resendOtp(),
|
|
127
|
+
onBack: () => o.back(),
|
|
128
|
+
backLinkText: "otp.changeEmail"
|
|
138
129
|
}
|
|
139
130
|
)
|
|
140
131
|
}
|
|
141
132
|
);
|
|
142
133
|
}
|
|
143
|
-
return t.status === "finished" ? (
|
|
144
|
-
},
|
|
134
|
+
return t.status === "finished" ? (m?.(), null) : (t.status === "error" && u?.(t.error), null);
|
|
135
|
+
}, B = ({
|
|
145
136
|
config: i,
|
|
146
|
-
manager:
|
|
147
|
-
onFinish:
|
|
148
|
-
onError:
|
|
149
|
-
}) => /* @__PURE__ */ e(
|
|
150
|
-
|
|
137
|
+
manager: s,
|
|
138
|
+
onFinish: m,
|
|
139
|
+
onError: u
|
|
140
|
+
}) => /* @__PURE__ */ e(O, { children: i ? /* @__PURE__ */ e(
|
|
141
|
+
T,
|
|
151
142
|
{
|
|
152
143
|
config: i,
|
|
153
|
-
manager:
|
|
154
|
-
onFinish:
|
|
155
|
-
onError:
|
|
144
|
+
manager: s,
|
|
145
|
+
onFinish: m,
|
|
146
|
+
onError: u
|
|
156
147
|
}
|
|
157
148
|
) : null });
|
|
158
|
-
|
|
149
|
+
k(B, "incode-email");
|
|
159
150
|
export {
|
|
160
|
-
|
|
151
|
+
B as Email
|
|
161
152
|
};
|
package/dist/email/styles.css
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties {
|
|
3
|
-
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
|
-
*, :before, :after, ::backdrop {
|
|
5
|
-
--tw-border-style: solid;
|
|
6
|
-
--tw-duration: initial;
|
|
7
|
-
--tw-font-weight: initial;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
2
|
.IncodeEmailPage .IncodePageContent {
|
|
13
3
|
padding-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
14
4
|
padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
@@ -20,104 +10,3 @@
|
|
|
20
10
|
width: 100%;
|
|
21
11
|
display: flex;
|
|
22
12
|
}
|
|
23
|
-
|
|
24
|
-
.IncodeEmailPage .IncodeEmailInputWrapper {
|
|
25
|
-
border-radius: var(--radius-small, var(--border-radius-small));
|
|
26
|
-
border-style: var(--tw-border-style);
|
|
27
|
-
border-width: 1px;
|
|
28
|
-
border-color: var(--color-input-border-default, var(--input-border-default));
|
|
29
|
-
background-color: var(--color-input-surface-default, var(--input-surface-default));
|
|
30
|
-
width: 100%;
|
|
31
|
-
max-width: 340px;
|
|
32
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
33
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
|
|
34
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
|
|
35
|
-
--tw-duration: .2s;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
transition-duration: .2s;
|
|
38
|
-
display: flex;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.IncodeEmailPage .IncodeEmailInputWrapper:focus-within {
|
|
42
|
-
border-color: var(--color-input-border-focused, var(--input-border-focused));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.IncodeEmailPage .IncodeEmailInputWrapper.IncodeEmailInputWrapperError {
|
|
46
|
-
border-color: var(--color-input-border-negative, var(--input-border-negative));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.IncodeEmailPage .IncodeEmailInputWrapper.IncodeEmailInputWrapperDisabled {
|
|
50
|
-
border-color: var(--color-input-border-disabled, var(--input-border-disabled));
|
|
51
|
-
background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.IncodeEmailPage .IncodeEmailInputLabel {
|
|
55
|
-
clip-path: inset(50%);
|
|
56
|
-
white-space: nowrap;
|
|
57
|
-
border-width: 0;
|
|
58
|
-
width: 1px;
|
|
59
|
-
height: 1px;
|
|
60
|
-
margin: -1px;
|
|
61
|
-
padding: 0;
|
|
62
|
-
position: absolute;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.IncodeEmailPage .IncodeEmailInputField {
|
|
67
|
-
border-style: var(--tw-border-style);
|
|
68
|
-
border-width: var(--border-width-none, var(--primitive-border-width-0));
|
|
69
|
-
--tw-border-style: none;
|
|
70
|
-
width: 100%;
|
|
71
|
-
padding-inline: var(--spacing-16, var(--spacing-16, 16px));
|
|
72
|
-
padding-block: var(--spacing-16, var(--spacing-16, 16px));
|
|
73
|
-
font-size: var(--text-18, var(--primitive-typography-size-18));
|
|
74
|
-
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
75
|
-
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
76
|
-
color: var(--color-input-text-field-default, var(--input-text-field-default));
|
|
77
|
-
--tw-outline-style: none;
|
|
78
|
-
border-radius: var(--radius-small, var(--border-radius-small));
|
|
79
|
-
background-color: #0000;
|
|
80
|
-
border-style: none;
|
|
81
|
-
outline-style: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.IncodeEmailPage .IncodeEmailInputField::placeholder {
|
|
85
|
-
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
86
|
-
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
87
|
-
color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.IncodeEmailPage .IncodeEmailInputField:disabled {
|
|
91
|
-
cursor: not-allowed;
|
|
92
|
-
color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.IncodeEmailPage .IncodeEmailInputField:focus {
|
|
96
|
-
--tw-outline-style: none;
|
|
97
|
-
outline-style: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.IncodeEmailPage .IncodeEmailInputError {
|
|
101
|
-
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
102
|
-
text-align: center;
|
|
103
|
-
font-size: var(--text-14, var(--primitive-typography-size-14));
|
|
104
|
-
--tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
105
|
-
font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
|
|
106
|
-
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@property --tw-border-style {
|
|
110
|
-
syntax: "*";
|
|
111
|
-
inherits: false;
|
|
112
|
-
initial-value: solid;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@property --tw-duration {
|
|
116
|
-
syntax: "*";
|
|
117
|
-
inherits: false
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@property --tw-font-weight {
|
|
121
|
-
syntax: "*";
|
|
122
|
-
inherits: false
|
|
123
|
-
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as l, u as n, S as r, B as m } from "./button-
|
|
2
|
-
import { A as p, y as C } from "./vendor-preact-
|
|
3
|
-
import { E } from "./errorIcon-
|
|
4
|
-
import { W as I } from "./warningIcon-
|
|
5
|
-
import { P as f } from "./page-
|
|
6
|
-
import { T as h } from "./typography-
|
|
1
|
+
import { b as l, u as n, S as r, B as m } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { A as p, y as C } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { E } from "./errorIcon-C-Zd24vb.js";
|
|
4
|
+
import { W as I } from "./warningIcon-MsE5PaSQ.js";
|
|
5
|
+
import { P as f } from "./page-DiscPBzz.js";
|
|
6
|
+
import { T as h } from "./typography-zMrvftfB.js";
|
|
7
7
|
const x = ({
|
|
8
8
|
title: c,
|
|
9
9
|
description: s,
|
package/dist/extensibility.es.js
CHANGED
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
import { u as t, B as c } from "./button-
|
|
2
|
-
import { I as h, L as g, S as y, a as T, b as v } from "./button-
|
|
3
|
-
import { s as B, u as F } from "./uiConfig-
|
|
4
|
-
import { P as L } from "./page-
|
|
5
|
-
import { C as b, F as H, O as M } from "./fileIcon-
|
|
6
|
-
import { S as E } from "./spinner-
|
|
7
|
-
import { P as D } from "./processing-
|
|
8
|
-
import { E as A } from "./errorContent-
|
|
9
|
-
import { F as U, V as j } from "./formField-
|
|
10
|
-
import {
|
|
11
|
-
import { I as
|
|
12
|
-
import { O as
|
|
13
|
-
import { C as
|
|
14
|
-
import { P as
|
|
15
|
-
import { D as
|
|
16
|
-
import { C as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
|
|
1
|
+
import { u as t, B as c } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { I as h, L as g, S as y, a as T, b as v } from "./button-B2Ewo0rX.js";
|
|
3
|
+
import { s as B, u as F } from "./uiConfig-DmIn-g8M.js";
|
|
4
|
+
import { P as L } from "./page-DiscPBzz.js";
|
|
5
|
+
import { C as b, F as H, O as M } from "./fileIcon-DIVwt0SD.js";
|
|
6
|
+
import { S as E } from "./spinner-DfUoOZN4.js";
|
|
7
|
+
import { P as D } from "./processing-De8XWnFp.js";
|
|
8
|
+
import { E as A } from "./errorContent-CqNelsXg.js";
|
|
9
|
+
import { F as U, V as j } from "./formField-CPfeaz8y.js";
|
|
10
|
+
import { C as q, P as z } from "./cameraView-CT9-WWcG.js";
|
|
11
|
+
import { I as J, a as K } from "./inputComposed-CJQTXKNA.js";
|
|
12
|
+
import { O as Q } from "./otpInput-CGlYkmvB.js";
|
|
13
|
+
import { C as Y, a as Z } from "./checkbox-CXnQVsbJ.js";
|
|
14
|
+
import { P as $ } from "./phoneInputComposed-Dsf9ZDTj.js";
|
|
15
|
+
import { D as ra, S as ea } from "./dropdownComposed-DFrqye1c.js";
|
|
16
|
+
import { C as ta, D as sa } from "./dateInputComposed-DmlHvCmR.js";
|
|
17
|
+
import { T as pa, a as ca } from "./captureOverlay-CB8lyLgp.js";
|
|
18
|
+
import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-CQ3So9XG.js";
|
|
19
|
+
import { L as Ta, M as va } from "./manualCaptureButton-CUq6VXLb.js";
|
|
20
|
+
import { a as Ba, C as Fa, b as Pa, d as La, c as Oa, H as ba, L as Ha } from "./captureFooter-B_3eu8kq.js";
|
|
21
|
+
import { A as i, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
|
|
22
|
+
import { B as Va, P as Ea } from "./permissions-CDir4ckn.js";
|
|
23
|
+
import { T as Da, a as wa, b as Aa, c as Ra, d as Ua, e as ja } from "./typography-zMrvftfB.js";
|
|
24
|
+
import { C as qa } from "./chevronDown-DKyU4xPP.js";
|
|
25
|
+
import { C as Ga } from "./closeIcon-DjWL_arL.js";
|
|
26
|
+
import { E as Ka } from "./errorIcon-C-Zd24vb.js";
|
|
27
|
+
import { S as Qa } from "./successIcon-DyHNp_UT.js";
|
|
28
|
+
import { c as Ya, a as Za, g as _a } from "./countries-DfLkrF0x.js";
|
|
29
|
+
import { C as ar, T as rr } from "./tutorial-Cx_ANvlr.js";
|
|
30
|
+
function l(a) {
|
|
28
31
|
if (a.readyState < 2 || a.videoWidth === 0 || a.videoHeight === 0)
|
|
29
32
|
return null;
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
return
|
|
33
|
+
const r = document.createElement("canvas");
|
|
34
|
+
r.width = a.videoWidth, r.height = a.videoHeight;
|
|
35
|
+
const e = r.getContext("2d");
|
|
36
|
+
return e ? (e.drawImage(a, 0, 0), r.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
|
|
34
37
|
}
|
|
35
38
|
const f = ({
|
|
36
39
|
stream: a,
|
|
37
|
-
onCapture:
|
|
38
|
-
disabled:
|
|
40
|
+
onCapture: r,
|
|
41
|
+
disabled: e
|
|
39
42
|
}) => {
|
|
40
43
|
const o = i(null);
|
|
41
44
|
u(() => {
|
|
42
45
|
o.current && a && (o.current.srcObject = a, o.current.play().catch(() => {
|
|
43
46
|
}));
|
|
44
47
|
}, [a]);
|
|
45
|
-
const s =
|
|
48
|
+
const s = m(() => {
|
|
46
49
|
const n = o.current;
|
|
47
|
-
if (!n ||
|
|
48
|
-
const p =
|
|
49
|
-
p &&
|
|
50
|
-
}, [
|
|
50
|
+
if (!n || e) return;
|
|
51
|
+
const p = l(n);
|
|
52
|
+
p && r(p);
|
|
53
|
+
}, [r, e]);
|
|
51
54
|
return /* @__PURE__ */ t("div", { class: "IncodeManualCapture", children: [
|
|
52
55
|
/* @__PURE__ */ t("div", { class: "IncodeManualCaptureVideoContainer", children: /* @__PURE__ */ t(
|
|
53
56
|
"video",
|
|
@@ -66,7 +69,7 @@ const f = ({
|
|
|
66
69
|
variant: "primary",
|
|
67
70
|
size: "L",
|
|
68
71
|
onClick: s,
|
|
69
|
-
disabled:
|
|
72
|
+
disabled: e,
|
|
70
73
|
class: "IncodeManualCaptureButton",
|
|
71
74
|
"aria-label": "Capture document",
|
|
72
75
|
children: "Capture"
|
|
@@ -75,70 +78,70 @@ const f = ({
|
|
|
75
78
|
] });
|
|
76
79
|
};
|
|
77
80
|
export {
|
|
78
|
-
|
|
81
|
+
Va as BaseTutorial,
|
|
79
82
|
c as Button,
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
ta as CalendarIcon,
|
|
84
|
+
Ba as CameraFrame,
|
|
82
85
|
b as CameraIcon,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
86
|
+
Fa as CameraOverlay,
|
|
87
|
+
Pa as CameraOverlayHeader,
|
|
88
|
+
q as CameraView,
|
|
89
|
+
La as CaptureButtonIcon,
|
|
90
|
+
Oa as CaptureFooter,
|
|
91
|
+
Y as Checkbox,
|
|
92
|
+
Z as CheckmarkIcon,
|
|
93
|
+
qa as ChevronDown,
|
|
94
|
+
ua as ChevronRightIcon,
|
|
95
|
+
Ga as CloseIcon,
|
|
96
|
+
sa as DateInputComposed,
|
|
97
|
+
ra as DropdownComposed,
|
|
95
98
|
A as ErrorContent,
|
|
96
|
-
|
|
99
|
+
Ka as ErrorIcon,
|
|
97
100
|
H as FileIcon,
|
|
98
101
|
U as FormField,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
ba as HelpIcon,
|
|
103
|
+
ma as IdCapture,
|
|
104
|
+
la as IdChooser,
|
|
105
|
+
Ca as IdError,
|
|
106
|
+
da as IdExpired,
|
|
107
|
+
fa as IdFlipAnimation,
|
|
108
|
+
Ia as IdTutorial,
|
|
106
109
|
h as IncodeComponent,
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
J as Input,
|
|
111
|
+
K as InputComposed,
|
|
109
112
|
g as LandscapeBlocker,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
xa as LightningIcon,
|
|
114
|
+
Ha as LockIcon,
|
|
115
|
+
Ta as Lottie,
|
|
113
116
|
f as ManualCapture,
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
va as Modal,
|
|
118
|
+
Q as OtpInput,
|
|
116
119
|
M as Overlay,
|
|
117
120
|
L as Page,
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
Ea as Permissions,
|
|
122
|
+
$ as PhoneInputComposed,
|
|
120
123
|
D as Processing,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
z as ProgressBar,
|
|
125
|
+
ea as SearchIcon,
|
|
126
|
+
ar as SelfieCapture,
|
|
127
|
+
rr as SelfieTutorial,
|
|
125
128
|
y as Spacer,
|
|
126
129
|
E as Spinner,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
Qa as SuccessIcon,
|
|
131
|
+
pa as TextArea,
|
|
132
|
+
ca as TextAreaComposed,
|
|
133
|
+
Da as Title,
|
|
134
|
+
wa as TypographyH1,
|
|
135
|
+
Aa as TypographyH3,
|
|
136
|
+
Ra as TypographyH4,
|
|
137
|
+
Ua as TypographyH5,
|
|
138
|
+
ja as TypographyP,
|
|
139
|
+
ha as VerificationOptionCard,
|
|
140
|
+
ga as VerificationOptionCardList,
|
|
138
141
|
j as VerificationResult,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
Ya as countries,
|
|
143
|
+
Za as getCountryByCallingCode,
|
|
144
|
+
_a as getCountryByCode,
|
|
142
145
|
B as setUiConfig,
|
|
143
146
|
T as useManager,
|
|
144
147
|
F as useScreenOrientation,
|