@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
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
import { u as e, c as b, b as z, S as M } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { D as N, A as g, y as I, d as O, q as B, k as P, P as V, z as H, T as L } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { E as W } from "./errorIcon-DEARBrGx.js";
|
|
4
|
+
import { S as E } from "./successIcon-Bjsdc4lF.js";
|
|
5
|
+
import "./instance-BWYzq8dk.js";
|
|
6
|
+
import { T as Z } from "./typography-BDACYR5i.js";
|
|
7
|
+
import { B as _ } from "./button-CE9kRlem.js";
|
|
8
|
+
import { L as S } from "./manualCaptureButton-BvFmTyJe.js";
|
|
9
|
+
const G = ({
|
|
10
|
+
className: r
|
|
11
|
+
}) => /* @__PURE__ */ e(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width: "68",
|
|
15
|
+
height: "68",
|
|
16
|
+
viewBox: "0 0 68 68",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
class: r,
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M34.0001 68C52.7779 68 68.0003 52.7777 68.0003 34C68.0003 15.2223 52.7779 0 34.0001 0C15.2224 0 0 15.2223 0 34C0 52.7777 15.2224 68 34.0001 68ZM34 63.5265C50.307 63.5265 63.5265 50.3071 63.5265 34.0002C63.5265 17.6932 50.307 4.47385 34 4.47385C17.693 4.47385 4.4736 17.6932 4.4736 34.0002C4.4736 50.3071 17.693 63.5265 34 63.5265Z",
|
|
28
|
+
fill: "white"
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ e("circle", { cx: "33.5926", cy: "33.9996", r: "25.4187", fill: "white" })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
), U = ({ className: r }) => /* @__PURE__ */ e(
|
|
35
|
+
"svg",
|
|
36
|
+
{
|
|
37
|
+
width: "30",
|
|
38
|
+
height: "30",
|
|
39
|
+
viewBox: "0 0 30 30",
|
|
40
|
+
fill: "none",
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
class: r,
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
fillRule: "evenodd",
|
|
49
|
+
clipRule: "evenodd",
|
|
50
|
+
d: "M15 0C6.7279 0 0 6.72947 0 15C0 23.2705 6.7279 30 15 30C23.2705 30 30 23.2705 30 15C30 6.72947 23.2705 0 15 0Z",
|
|
51
|
+
fill: "white"
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ e(
|
|
55
|
+
"path",
|
|
56
|
+
{
|
|
57
|
+
fillRule: "evenodd",
|
|
58
|
+
clipRule: "evenodd",
|
|
59
|
+
d: "M17.3532 16.0616L17.1305 16.1863C16.1074 16.7579 15.7458 17.0516 15.7537 17.5537C15.7616 18.2074 15.2389 18.7442 14.5853 18.7537H14.5695C13.9221 18.7537 13.3932 18.2342 13.3853 17.5853C13.3584 15.5832 14.9958 14.6674 15.9732 14.1211L16.1958 13.9947C17.0942 13.5005 17.5426 12.8153 17.5426 11.9532C17.5426 10.5274 16.3821 9.36842 14.9563 9.36842C13.5053 9.36842 12.3684 10.5037 12.3684 11.9532C12.3684 12.6068 11.8379 13.1374 11.1842 13.1374C10.5305 13.1374 10 12.6068 10 11.9532C10 9.22158 12.2232 7 14.9563 7C17.6879 7 19.9111 9.22158 19.9111 11.9532C19.9111 13.6947 19.0016 15.1537 17.3532 16.0616ZM14.5711 22.6379C13.9174 22.6379 13.3868 22.1311 13.3868 21.4774V21.43C13.3868 20.7763 13.9174 20.2458 14.5711 20.2458C15.2247 20.2458 15.7553 20.7763 15.7553 21.43C15.7553 22.0837 15.2247 22.6379 14.5711 22.6379Z",
|
|
60
|
+
fill: "black"
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
), j = ({ className: r }) => /* @__PURE__ */ e(
|
|
66
|
+
"svg",
|
|
67
|
+
{
|
|
68
|
+
width: "16",
|
|
69
|
+
height: "16",
|
|
70
|
+
viewBox: "0 0 16 16",
|
|
71
|
+
fill: "none",
|
|
72
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
73
|
+
class: r,
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
children: /* @__PURE__ */ e(
|
|
76
|
+
"path",
|
|
77
|
+
{
|
|
78
|
+
d: "M8 2.83368C9.38071 2.83368 10.5 3.95297 10.5 5.33368V6.66669H11.333C11.7012 6.66669 12 6.96549 12 7.33368V11.9997C12 12.3679 11.7012 12.6667 11.333 12.6667H4.66699C4.2988 12.6667 4 12.3679 4 11.9997V7.33368C4 6.96549 4.2988 6.66669 4.66699 6.66669H5.5V5.33368C5.5 3.95297 6.61929 2.83368 8 2.83368ZM8 3.83368C7.17157 3.83368 6.5 4.50525 6.5 5.33368V6.66669H9.5V5.33368C9.5 4.50525 8.82843 3.83368 8 3.83368Z",
|
|
79
|
+
fill: "currentColor"
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
}
|
|
83
|
+
), q = N(
|
|
84
|
+
(r, n) => {
|
|
85
|
+
const { class: t, rows: i = 4, ...a } = r;
|
|
86
|
+
return /* @__PURE__ */ e(
|
|
87
|
+
"textarea",
|
|
88
|
+
{
|
|
89
|
+
...a,
|
|
90
|
+
ref: n,
|
|
91
|
+
rows: i,
|
|
92
|
+
class: b("IncodeTextArea", t)
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
), K = N(
|
|
97
|
+
({
|
|
98
|
+
id: r,
|
|
99
|
+
label: n,
|
|
100
|
+
"aria-label": t,
|
|
101
|
+
error: i,
|
|
102
|
+
showErrorIcon: a,
|
|
103
|
+
helper: o,
|
|
104
|
+
showHelperIcon: c,
|
|
105
|
+
required: s,
|
|
106
|
+
rows: d = 4,
|
|
107
|
+
class: u,
|
|
108
|
+
...v
|
|
109
|
+
}, l) => {
|
|
110
|
+
const C = `${r}-helper`, m = `${r}-error`, w = [o ? C : null, i ? m : null].filter(Boolean).join(" ");
|
|
111
|
+
return /* @__PURE__ */ e("div", { class: b("IncodeTextAreaComposed", u), children: [
|
|
112
|
+
n && /* @__PURE__ */ e(
|
|
113
|
+
"label",
|
|
114
|
+
{
|
|
115
|
+
class: "IncodeTextAreaComposedLabel",
|
|
116
|
+
htmlFor: r,
|
|
117
|
+
"data-testid": `${r}-label`,
|
|
118
|
+
children: [
|
|
119
|
+
n,
|
|
120
|
+
s && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ e(
|
|
125
|
+
q,
|
|
126
|
+
{
|
|
127
|
+
id: r,
|
|
128
|
+
rows: d,
|
|
129
|
+
...v,
|
|
130
|
+
ref: l,
|
|
131
|
+
required: s,
|
|
132
|
+
...!n && t ? { "aria-label": t } : {},
|
|
133
|
+
"aria-describedby": w || void 0,
|
|
134
|
+
"aria-required": s ? "true" : void 0,
|
|
135
|
+
"aria-invalid": i ? "true" : void 0
|
|
136
|
+
}
|
|
137
|
+
) }),
|
|
138
|
+
i && /* @__PURE__ */ e(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
class: "IncodeTextAreaComposedErrorWrapper",
|
|
142
|
+
"data-testid": `${r}-error-wrapper`,
|
|
143
|
+
children: [
|
|
144
|
+
a && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(W, { size: 17 }) }),
|
|
145
|
+
/* @__PURE__ */ e("p", { id: m, class: "IncodeTextAreaComposedError", children: i })
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
o && !i && /* @__PURE__ */ e(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
class: "IncodeTextAreaComposedHelperWrapper",
|
|
153
|
+
"data-testid": `${r}-helper-wrapper`,
|
|
154
|
+
children: [
|
|
155
|
+
c && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(E, { size: 17 }) }),
|
|
156
|
+
/* @__PURE__ */ e("p", { id: C, class: "IncodeTextAreaComposedHelper", children: o })
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
] });
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
K.displayName = "TextAreaComposed";
|
|
164
|
+
const J = N(
|
|
165
|
+
({
|
|
166
|
+
variant: r,
|
|
167
|
+
aspectRatio: n,
|
|
168
|
+
orientation: t = "horizontal",
|
|
169
|
+
frameState: i = "idle",
|
|
170
|
+
className: a,
|
|
171
|
+
children: o
|
|
172
|
+
}, c) => {
|
|
173
|
+
const s = `IncodeCameraFrame${i.charAt(0).toUpperCase()}${i.slice(1)}`;
|
|
174
|
+
return /* @__PURE__ */ e(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
ref: c,
|
|
178
|
+
class: b(
|
|
179
|
+
"IncodeCameraFrame",
|
|
180
|
+
r === "fill" && "IncodeCameraFrameFill",
|
|
181
|
+
r === "locked" && "IncodeCameraFrameLocked",
|
|
182
|
+
r === "locked" && t === "horizontal" && "IncodeCameraFrameHorizontal",
|
|
183
|
+
r === "locked" && t === "vertical" && "IncodeCameraFrameVertical",
|
|
184
|
+
s,
|
|
185
|
+
a
|
|
186
|
+
),
|
|
187
|
+
style: n ? { aspectRatio: n } : void 0,
|
|
188
|
+
"aria-hidden": !0,
|
|
189
|
+
children: o
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
), Q = ({
|
|
194
|
+
children: r,
|
|
195
|
+
className: n
|
|
196
|
+
}) => /* @__PURE__ */ e("div", { class: b("IncodeCameraOverlay", n), children: r }), X = ({
|
|
197
|
+
title: r,
|
|
198
|
+
subtitle: n,
|
|
199
|
+
visible: t = !0,
|
|
200
|
+
className: i,
|
|
201
|
+
titleId: a
|
|
202
|
+
}) => {
|
|
203
|
+
const o = g(null);
|
|
204
|
+
return I(() => {
|
|
205
|
+
o.current?.focus();
|
|
206
|
+
}, []), /* @__PURE__ */ e(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
class: b(
|
|
210
|
+
"IncodeCameraOverlayHeader",
|
|
211
|
+
!t && "IncodeCameraOverlayHeaderHidden",
|
|
212
|
+
i
|
|
213
|
+
),
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ e(
|
|
216
|
+
Z,
|
|
217
|
+
{
|
|
218
|
+
ref: o,
|
|
219
|
+
id: a,
|
|
220
|
+
className: "IncodeCameraOverlayHeaderTitle",
|
|
221
|
+
tabIndex: -1,
|
|
222
|
+
children: r
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
/* @__PURE__ */ e("p", { class: "IncodeCameraOverlayHeaderSubtitle", children: n })
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
}, Y = ({
|
|
230
|
+
onOpenHelp: r,
|
|
231
|
+
onCapture: n,
|
|
232
|
+
isManualCapture: t,
|
|
233
|
+
captureAriaLabel: i,
|
|
234
|
+
captureAriaDescribedBy: a,
|
|
235
|
+
helpAriaLabel: o,
|
|
236
|
+
helpButtonRef: c,
|
|
237
|
+
captureButtonRef: s,
|
|
238
|
+
encryptionLabel: d,
|
|
239
|
+
children: u
|
|
240
|
+
}) => {
|
|
241
|
+
const { t: v } = z();
|
|
242
|
+
return /* @__PURE__ */ e("div", { class: "IncodeCaptureFooter", children: [
|
|
243
|
+
/* @__PURE__ */ e("div", { class: "IncodeCaptureFooterEncryption", children: [
|
|
244
|
+
/* @__PURE__ */ e(j, { className: "IncodeCaptureFooterEncryptionIcon" }),
|
|
245
|
+
/* @__PURE__ */ e("span", { children: d ?? v("v2.capture.label") })
|
|
246
|
+
] }),
|
|
247
|
+
t && n ? /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterCaptureSection", children: [
|
|
248
|
+
u,
|
|
249
|
+
/* @__PURE__ */ e(
|
|
250
|
+
"button",
|
|
251
|
+
{
|
|
252
|
+
ref: s,
|
|
253
|
+
type: "button",
|
|
254
|
+
class: "IncodeCaptureFooterCaptureButton",
|
|
255
|
+
onClick: n,
|
|
256
|
+
"aria-label": i ?? v("manualCapture.ariaLabel"),
|
|
257
|
+
"aria-describedby": a,
|
|
258
|
+
"data-testid": "capture-button",
|
|
259
|
+
children: /* @__PURE__ */ e(G, {})
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
] }) : null,
|
|
263
|
+
/* @__PURE__ */ e("div", { class: "IncodeCaptureFooterHelp", children: /* @__PURE__ */ e(
|
|
264
|
+
_,
|
|
265
|
+
{
|
|
266
|
+
ref: c,
|
|
267
|
+
variant: "link",
|
|
268
|
+
onClick: r,
|
|
269
|
+
"aria-label": o ?? v("idv2.needHelp.open"),
|
|
270
|
+
class: "IncodeCaptureFooterHelpButton",
|
|
271
|
+
children: /* @__PURE__ */ e(U, {})
|
|
272
|
+
}
|
|
273
|
+
) })
|
|
274
|
+
] });
|
|
275
|
+
}, h = /* @__PURE__ */ new Map();
|
|
276
|
+
let $ = !1;
|
|
277
|
+
const y = {
|
|
278
|
+
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
279
|
+
glare: () => import("./glaredevicelottie-DLuIStvb.js"),
|
|
280
|
+
align: () => import("./aligndevicelottie-DlQCRPfM.js"),
|
|
281
|
+
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
282
|
+
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
283
|
+
};
|
|
284
|
+
function R(r) {
|
|
285
|
+
$ || ($ = !0, Promise.all([
|
|
286
|
+
y.blur(),
|
|
287
|
+
y.glare(),
|
|
288
|
+
y.align(),
|
|
289
|
+
y.front(),
|
|
290
|
+
y.back()
|
|
291
|
+
]).then(([n, t, i, a, o]) => {
|
|
292
|
+
h.set("blur", n.default), h.set("glare", t.default), h.set("align", i.default), h.set("front", a.default), h.set("back", o.default), r?.();
|
|
293
|
+
}).catch(() => {
|
|
294
|
+
}));
|
|
295
|
+
}
|
|
296
|
+
function ee() {
|
|
297
|
+
R();
|
|
298
|
+
}
|
|
299
|
+
function re() {
|
|
300
|
+
I(() => {
|
|
301
|
+
ee();
|
|
302
|
+
}, []);
|
|
303
|
+
}
|
|
304
|
+
function te(r, n) {
|
|
305
|
+
const { t } = z(), [, i] = O(0);
|
|
306
|
+
if (I(() => {
|
|
307
|
+
R(() => i((a) => a + 1));
|
|
308
|
+
}, []), r === "blur")
|
|
309
|
+
return {
|
|
310
|
+
title: t("idv2.capture.notifications.blur.title"),
|
|
311
|
+
description: t("idv2.capture.notifications.blur.description"),
|
|
312
|
+
animationData: h.get("blur") ?? null
|
|
313
|
+
};
|
|
314
|
+
if (r === "glare")
|
|
315
|
+
return {
|
|
316
|
+
title: t("idv2.capture.notifications.glare.title"),
|
|
317
|
+
description: t("idv2.capture.notifications.glare.description"),
|
|
318
|
+
animationData: h.get("glare") ?? null
|
|
319
|
+
};
|
|
320
|
+
if (r === "farAway")
|
|
321
|
+
return {
|
|
322
|
+
title: t("idv2.capture.notifications.notAligned.title"),
|
|
323
|
+
description: t("idv2.capture.notifications.notAligned.description"),
|
|
324
|
+
animationData: h.get("align") ?? null
|
|
325
|
+
};
|
|
326
|
+
if (r === "wrongSide") {
|
|
327
|
+
const a = n === "back";
|
|
328
|
+
return {
|
|
329
|
+
title: t(a ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
|
|
330
|
+
description: t(a ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
|
|
331
|
+
animationData: h.get(a ? "back" : "front") ?? null
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
return null;
|
|
335
|
+
}
|
|
336
|
+
const ie = ({
|
|
337
|
+
detectionStatus: r,
|
|
338
|
+
mode: n,
|
|
339
|
+
isCapturing: t
|
|
340
|
+
}) => {
|
|
341
|
+
const { t: i } = z(), a = te(r, n), o = g(null), c = g({
|
|
342
|
+
message: "",
|
|
343
|
+
at: 0
|
|
344
|
+
}), s = g(r), d = g(!1), u = g(), v = g(), l = r === "detecting" || r === "idNotDetected" || r === "manualCapture", C = r === "manualCapture", m = r === "wrongSide", w = r === "farAway", T = r === "glare", F = r === "blur", p = B((f) => {
|
|
345
|
+
const k = Date.now(), D = c.current;
|
|
346
|
+
if (f === D.message && k - D.at < 200) return;
|
|
347
|
+
c.current = { message: f, at: k };
|
|
348
|
+
const x = o.current;
|
|
349
|
+
x && (clearTimeout(u.current), x.textContent = "", v.current = setTimeout(() => {
|
|
350
|
+
x.textContent = f, u.current = setTimeout(() => {
|
|
351
|
+
x.textContent = "";
|
|
352
|
+
}, 3e3);
|
|
353
|
+
}, 50));
|
|
354
|
+
}, []), A = B(() => i(n === "passport" ? "idv2.capture.fillFramePassport" : n === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [n, i]);
|
|
355
|
+
return I(() => {
|
|
356
|
+
if (C) {
|
|
357
|
+
d.current = !1;
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
if (d.current || !l) return;
|
|
361
|
+
const f = setTimeout(() => {
|
|
362
|
+
d.current = !0, p(A());
|
|
363
|
+
}, 500);
|
|
364
|
+
return () => clearTimeout(f);
|
|
365
|
+
}, [l, C, p, A]), I(() => {
|
|
366
|
+
const f = s.current;
|
|
367
|
+
s.current = r, f !== "manualCapture" && C && p(i("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
368
|
+
}, [p, r, C, i]), I(() => {
|
|
369
|
+
if (!t) {
|
|
370
|
+
if (m) {
|
|
371
|
+
const k = n === "front" || n === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
372
|
+
p(`${i(`${k}.title`)}. ${i(`${k}.description`)}`);
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
if (w) {
|
|
376
|
+
p(`${i("idv2.capture.notifications.notAligned.title")}.`);
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (T) {
|
|
380
|
+
p(`${i("idv2.capture.notifications.glare.title")}.`);
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
if (F) {
|
|
384
|
+
p(`${i("idv2.capture.notifications.blur.title")}.`);
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
l && d.current && p(A());
|
|
388
|
+
}
|
|
389
|
+
}, [
|
|
390
|
+
p,
|
|
391
|
+
F,
|
|
392
|
+
t,
|
|
393
|
+
w,
|
|
394
|
+
T,
|
|
395
|
+
l,
|
|
396
|
+
m,
|
|
397
|
+
n,
|
|
398
|
+
i,
|
|
399
|
+
A
|
|
400
|
+
]), I(() => () => {
|
|
401
|
+
clearTimeout(v.current), clearTimeout(u.current);
|
|
402
|
+
}, []), /* @__PURE__ */ e(P, { children: [
|
|
403
|
+
/* @__PURE__ */ e(
|
|
404
|
+
"div",
|
|
405
|
+
{
|
|
406
|
+
ref: o,
|
|
407
|
+
class: "IncodeSrOnly",
|
|
408
|
+
"aria-live": "assertive",
|
|
409
|
+
"aria-atomic": "true"
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
a ? /* @__PURE__ */ e("div", { class: b("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
|
|
413
|
+
/* @__PURE__ */ e("div", { class: b("IncodeIdCaptureNotificationText"), children: [
|
|
414
|
+
/* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationTitle", children: a.title }),
|
|
415
|
+
a.description && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationDescription", children: a.description })
|
|
416
|
+
] }),
|
|
417
|
+
/* @__PURE__ */ e(M, { size: 16, direction: "horizontal" }),
|
|
418
|
+
a.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(S, { animationData: a.animationData, loop: !0 }) })
|
|
419
|
+
] }) }) : null
|
|
420
|
+
] });
|
|
421
|
+
}, ne = H(
|
|
422
|
+
() => import("./front-horizontal-hint-lRLKd7vY.js")
|
|
423
|
+
), ae = H(
|
|
424
|
+
() => import("./front-vertical-hint-qQoJXRE3.js")
|
|
425
|
+
), oe = H(
|
|
426
|
+
() => import("./back-horizontal-hint-CSlf9KI1.js")
|
|
427
|
+
), ce = H(
|
|
428
|
+
() => import("./back-vertical-hint-CNieqiCr.js")
|
|
429
|
+
), le = H(
|
|
430
|
+
() => import("./passport-horizontal-hint-BCtpMp1Y.js")
|
|
431
|
+
), se = H(
|
|
432
|
+
() => import("./passport-vertical-hint-GaLnzqHP.js")
|
|
433
|
+
), de = {
|
|
434
|
+
"front-horizontal": 348,
|
|
435
|
+
"back-horizontal": 348,
|
|
436
|
+
"passport-horizontal": 342
|
|
437
|
+
}, ue = {
|
|
438
|
+
"front-vertical": 446,
|
|
439
|
+
"back-vertical": 446,
|
|
440
|
+
"passport-vertical": 342
|
|
441
|
+
};
|
|
442
|
+
function pe(r, n, t, i) {
|
|
443
|
+
const a = `${r}-${n}`, o = de[a];
|
|
444
|
+
if (o) return t / o;
|
|
445
|
+
const c = ue[a];
|
|
446
|
+
return c ? i / c : 1;
|
|
447
|
+
}
|
|
448
|
+
const fe = ({ mode: r, orientation: n }) => {
|
|
449
|
+
const t = g(null), [i, a] = O(1);
|
|
450
|
+
I(() => {
|
|
451
|
+
const c = t.current;
|
|
452
|
+
if (!c) return;
|
|
453
|
+
const s = () => {
|
|
454
|
+
a(
|
|
455
|
+
pe(r, n, c.clientWidth, c.clientHeight)
|
|
456
|
+
);
|
|
457
|
+
};
|
|
458
|
+
s();
|
|
459
|
+
const d = new ResizeObserver(s);
|
|
460
|
+
return d.observe(c), () => d.disconnect();
|
|
461
|
+
}, [r, n]);
|
|
462
|
+
const o = () => r === "front" ? n === "horizontal" ? /* @__PURE__ */ e(ne, {}) : /* @__PURE__ */ e(ae, {}) : r === "back" ? n === "horizontal" ? /* @__PURE__ */ e(oe, {}) : /* @__PURE__ */ e(ce, {}) : r === "passport" ? n === "horizontal" ? /* @__PURE__ */ e(le, {}) : /* @__PURE__ */ e(se, {}) : null;
|
|
463
|
+
return /* @__PURE__ */ e(
|
|
464
|
+
"div",
|
|
465
|
+
{
|
|
466
|
+
ref: t,
|
|
467
|
+
class: "IncodeIdHint",
|
|
468
|
+
"aria-hidden": "true",
|
|
469
|
+
role: "presentation",
|
|
470
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeIdHintAnimated", children: /* @__PURE__ */ e(V, { fallback: null, children: /* @__PURE__ */ e("div", { class: "IncodeIdHintSvg", style: { transform: `scale(${i})` }, children: o() }) }) })
|
|
471
|
+
}
|
|
472
|
+
);
|
|
473
|
+
}, He = N(
|
|
474
|
+
({
|
|
475
|
+
mode: r,
|
|
476
|
+
orientation: n,
|
|
477
|
+
detectionStatus: t,
|
|
478
|
+
counterValue: i,
|
|
479
|
+
isCapturing: a,
|
|
480
|
+
showManualCapture: o,
|
|
481
|
+
onCapture: c,
|
|
482
|
+
onOpenHelp: s,
|
|
483
|
+
helpButtonRef: d,
|
|
484
|
+
captureButtonRef: u
|
|
485
|
+
}, v) => {
|
|
486
|
+
const { t: l } = z();
|
|
487
|
+
re(), I(() => {
|
|
488
|
+
o && u && u.current?.focus();
|
|
489
|
+
}, [o, u]);
|
|
490
|
+
const C = () => a || t === "capturing" ? "capturing" : t === "blur" || t === "glare" || t === "wrongSide" || t === "farAway" ? "error" : "idle", m = L(() => {
|
|
491
|
+
if (a || t === "capturing")
|
|
492
|
+
return {
|
|
493
|
+
title: l("idv2.capture.takingPhoto"),
|
|
494
|
+
subtitle: l("idv2.capture.dontMove")
|
|
495
|
+
};
|
|
496
|
+
if (t === "detecting" || t === "idNotDetected" || t === "manualCapture") {
|
|
497
|
+
const f = t === "manualCapture";
|
|
498
|
+
return r === "passport" ? {
|
|
499
|
+
title: l("idv2.capture.fillFramePassport"),
|
|
500
|
+
subtitle: f ? "" : l("idv2.capture.v2.autoCapture")
|
|
501
|
+
} : r === "back" ? {
|
|
502
|
+
title: l("idv2.capture.v2.fillFrameBack"),
|
|
503
|
+
subtitle: f ? "" : l("idv2.capture.v2.autoCapture")
|
|
504
|
+
} : {
|
|
505
|
+
title: l("idv2.capture.v2.fillFrameFront"),
|
|
506
|
+
subtitle: f ? "" : l("idv2.capture.v2.autoCapture")
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
return null;
|
|
510
|
+
}, [a, t, r, l]), w = C(), T = r === "passport", F = n !== "vertical" || T, p = F ? "horizontal" : "vertical";
|
|
511
|
+
return /* @__PURE__ */ e(
|
|
512
|
+
Q,
|
|
513
|
+
{
|
|
514
|
+
className: b(
|
|
515
|
+
"IncodeCaptureOverlayId",
|
|
516
|
+
!F && "IncodeCaptureOverlayVertical"
|
|
517
|
+
),
|
|
518
|
+
children: [
|
|
519
|
+
/* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
|
|
520
|
+
/* @__PURE__ */ e(
|
|
521
|
+
ie,
|
|
522
|
+
{
|
|
523
|
+
detectionStatus: t,
|
|
524
|
+
mode: r,
|
|
525
|
+
isCapturing: a
|
|
526
|
+
}
|
|
527
|
+
),
|
|
528
|
+
/* @__PURE__ */ e(
|
|
529
|
+
X,
|
|
530
|
+
{
|
|
531
|
+
title: m?.title ?? "",
|
|
532
|
+
subtitle: m?.subtitle,
|
|
533
|
+
visible: m !== null,
|
|
534
|
+
titleId: "id-capture-heading"
|
|
535
|
+
}
|
|
536
|
+
)
|
|
537
|
+
] }),
|
|
538
|
+
/* @__PURE__ */ e(
|
|
539
|
+
J,
|
|
540
|
+
{
|
|
541
|
+
ref: v,
|
|
542
|
+
variant: "locked",
|
|
543
|
+
orientation: p,
|
|
544
|
+
frameState: w,
|
|
545
|
+
className: b(T && "IncodeCaptureFramePassport"),
|
|
546
|
+
children: [
|
|
547
|
+
a && i > 0 && /* @__PURE__ */ e("div", { class: "IncodeCaptureCounter", children: i }),
|
|
548
|
+
t === "idNotDetected" && /* @__PURE__ */ e(fe, { mode: r, orientation: n ?? "horizontal" })
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
),
|
|
552
|
+
/* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: a && i > 0 ? i : "" }),
|
|
553
|
+
/* @__PURE__ */ e(
|
|
554
|
+
Y,
|
|
555
|
+
{
|
|
556
|
+
onOpenHelp: s,
|
|
557
|
+
onCapture: c,
|
|
558
|
+
isManualCapture: o,
|
|
559
|
+
helpButtonRef: d,
|
|
560
|
+
captureButtonRef: u,
|
|
561
|
+
captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
|
|
562
|
+
children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
|
|
563
|
+
"div",
|
|
564
|
+
{
|
|
565
|
+
id: "manual-capture-tooltip",
|
|
566
|
+
role: "tooltip",
|
|
567
|
+
class: "IncodeIdManualCaptureTooltip",
|
|
568
|
+
children: /* @__PURE__ */ e("ol", { class: "IncodeIdManualCaptureTooltipList", children: [
|
|
569
|
+
/* @__PURE__ */ e("li", { children: l("idv2.commonIssues.firstStep") }),
|
|
570
|
+
/* @__PURE__ */ e("li", { children: l("idv2.commonIssues.secondStep") })
|
|
571
|
+
] })
|
|
572
|
+
}
|
|
573
|
+
) }) : null
|
|
574
|
+
}
|
|
575
|
+
)
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
);
|
|
579
|
+
}
|
|
580
|
+
);
|
|
581
|
+
export {
|
|
582
|
+
Q as C,
|
|
583
|
+
U as H,
|
|
584
|
+
j as L,
|
|
585
|
+
q as T,
|
|
586
|
+
K as a,
|
|
587
|
+
J as b,
|
|
588
|
+
X as c,
|
|
589
|
+
Y as d,
|
|
590
|
+
G as e,
|
|
591
|
+
He as f
|
|
592
|
+
};
|