@incodetech/web 0.0.0-dev-20260402-43cf9b8 → 0.0.0-dev-20260402-a9e4450

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.
@@ -0,0 +1,591 @@
1
+ import { u as e, c as b, b as z, B as M, S as P } from "./button-DXIWeie9.js";
2
+ import { D as N, A as g, y as I, d as O, q as B, k as V, P as L, z as H, T as W } from "./vendor-preact-BoMmvSgn.js";
3
+ import { E } from "./errorIcon-DOuc6ONw.js";
4
+ import { S as Z } from "./successIcon-BZphSsQr.js";
5
+ import "./uiConfig-DmIn-g8M.js";
6
+ import { T as _ } from "./typography-CBPoLoAP.js";
7
+ import { L as S } from "./manualCaptureButton-CPZ2xxEI.js";
8
+ const G = ({
9
+ className: r
10
+ }) => /* @__PURE__ */ e(
11
+ "svg",
12
+ {
13
+ width: "68",
14
+ height: "68",
15
+ viewBox: "0 0 68 68",
16
+ fill: "none",
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ class: r,
19
+ "aria-hidden": "true",
20
+ children: [
21
+ /* @__PURE__ */ e(
22
+ "path",
23
+ {
24
+ fillRule: "evenodd",
25
+ clipRule: "evenodd",
26
+ 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",
27
+ fill: "white"
28
+ }
29
+ ),
30
+ /* @__PURE__ */ e("circle", { cx: "33.5926", cy: "33.9996", r: "25.4187", fill: "white" })
31
+ ]
32
+ }
33
+ ), U = ({ className: r }) => /* @__PURE__ */ e(
34
+ "svg",
35
+ {
36
+ width: "30",
37
+ height: "30",
38
+ viewBox: "0 0 30 30",
39
+ fill: "none",
40
+ xmlns: "http://www.w3.org/2000/svg",
41
+ class: r,
42
+ "aria-hidden": "true",
43
+ children: [
44
+ /* @__PURE__ */ e(
45
+ "path",
46
+ {
47
+ fillRule: "evenodd",
48
+ clipRule: "evenodd",
49
+ 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",
50
+ fill: "white"
51
+ }
52
+ ),
53
+ /* @__PURE__ */ e(
54
+ "path",
55
+ {
56
+ fillRule: "evenodd",
57
+ clipRule: "evenodd",
58
+ 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",
59
+ fill: "black"
60
+ }
61
+ )
62
+ ]
63
+ }
64
+ ), j = ({ className: r }) => /* @__PURE__ */ e(
65
+ "svg",
66
+ {
67
+ width: "16",
68
+ height: "16",
69
+ viewBox: "0 0 16 16",
70
+ fill: "none",
71
+ xmlns: "http://www.w3.org/2000/svg",
72
+ class: r,
73
+ "aria-hidden": "true",
74
+ children: /* @__PURE__ */ e(
75
+ "path",
76
+ {
77
+ 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",
78
+ fill: "currentColor"
79
+ }
80
+ )
81
+ }
82
+ ), q = N(
83
+ (r, n) => {
84
+ const { class: t, rows: i = 4, ...a } = r;
85
+ return /* @__PURE__ */ e(
86
+ "textarea",
87
+ {
88
+ ...a,
89
+ ref: n,
90
+ rows: i,
91
+ class: b("IncodeTextArea", t)
92
+ }
93
+ );
94
+ }
95
+ ), K = N(
96
+ ({
97
+ id: r,
98
+ label: n,
99
+ "aria-label": t,
100
+ error: i,
101
+ showErrorIcon: a,
102
+ helper: o,
103
+ showHelperIcon: c,
104
+ required: s,
105
+ rows: d = 4,
106
+ class: u,
107
+ ...v
108
+ }, l) => {
109
+ const C = `${r}-helper`, m = `${r}-error`, w = [o ? C : null, i ? m : null].filter(Boolean).join(" ");
110
+ return /* @__PURE__ */ e("div", { class: b("IncodeTextAreaComposed", u), children: [
111
+ n && /* @__PURE__ */ e(
112
+ "label",
113
+ {
114
+ class: "IncodeTextAreaComposedLabel",
115
+ htmlFor: r,
116
+ "data-testid": `${r}-label`,
117
+ children: [
118
+ n,
119
+ s && /* @__PURE__ */ e("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
120
+ ]
121
+ }
122
+ ),
123
+ /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ e(
124
+ q,
125
+ {
126
+ id: r,
127
+ rows: d,
128
+ ...v,
129
+ ref: l,
130
+ required: s,
131
+ ...!n && t ? { "aria-label": t } : {},
132
+ "aria-describedby": w || void 0,
133
+ "aria-required": s ? "true" : void 0,
134
+ "aria-invalid": i ? "true" : void 0
135
+ }
136
+ ) }),
137
+ i && /* @__PURE__ */ e(
138
+ "div",
139
+ {
140
+ class: "IncodeTextAreaComposedErrorWrapper",
141
+ "data-testid": `${r}-error-wrapper`,
142
+ children: [
143
+ a && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(E, { size: 17 }) }),
144
+ /* @__PURE__ */ e("p", { id: m, class: "IncodeTextAreaComposedError", children: i })
145
+ ]
146
+ }
147
+ ),
148
+ o && !i && /* @__PURE__ */ e(
149
+ "div",
150
+ {
151
+ class: "IncodeTextAreaComposedHelperWrapper",
152
+ "data-testid": `${r}-helper-wrapper`,
153
+ children: [
154
+ c && /* @__PURE__ */ e("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ e(Z, { size: 17 }) }),
155
+ /* @__PURE__ */ e("p", { id: C, class: "IncodeTextAreaComposedHelper", children: o })
156
+ ]
157
+ }
158
+ )
159
+ ] });
160
+ }
161
+ );
162
+ K.displayName = "TextAreaComposed";
163
+ const J = N(
164
+ ({
165
+ variant: r,
166
+ aspectRatio: n,
167
+ orientation: t = "horizontal",
168
+ frameState: i = "idle",
169
+ className: a,
170
+ children: o
171
+ }, c) => {
172
+ const s = `IncodeCameraFrame${i.charAt(0).toUpperCase()}${i.slice(1)}`;
173
+ return /* @__PURE__ */ e(
174
+ "div",
175
+ {
176
+ ref: c,
177
+ class: b(
178
+ "IncodeCameraFrame",
179
+ r === "fill" && "IncodeCameraFrameFill",
180
+ r === "locked" && "IncodeCameraFrameLocked",
181
+ r === "locked" && t === "horizontal" && "IncodeCameraFrameHorizontal",
182
+ r === "locked" && t === "vertical" && "IncodeCameraFrameVertical",
183
+ s,
184
+ a
185
+ ),
186
+ style: n ? { aspectRatio: n } : void 0,
187
+ "aria-hidden": !0,
188
+ children: o
189
+ }
190
+ );
191
+ }
192
+ ), Q = ({
193
+ children: r,
194
+ className: n
195
+ }) => /* @__PURE__ */ e("div", { class: b("IncodeCameraOverlay", n), children: r }), X = ({
196
+ title: r,
197
+ subtitle: n,
198
+ visible: t = !0,
199
+ className: i,
200
+ titleId: a
201
+ }) => {
202
+ const o = g(null);
203
+ return I(() => {
204
+ o.current?.focus();
205
+ }, []), /* @__PURE__ */ e(
206
+ "div",
207
+ {
208
+ class: b(
209
+ "IncodeCameraOverlayHeader",
210
+ !t && "IncodeCameraOverlayHeaderHidden",
211
+ i
212
+ ),
213
+ children: [
214
+ /* @__PURE__ */ e(
215
+ _,
216
+ {
217
+ ref: o,
218
+ id: a,
219
+ className: "IncodeCameraOverlayHeaderTitle",
220
+ tabIndex: -1,
221
+ children: r
222
+ }
223
+ ),
224
+ /* @__PURE__ */ e("p", { class: "IncodeCameraOverlayHeaderSubtitle", children: n })
225
+ ]
226
+ }
227
+ );
228
+ }, Y = ({
229
+ onOpenHelp: r,
230
+ onCapture: n,
231
+ isManualCapture: t,
232
+ captureAriaLabel: i,
233
+ captureAriaDescribedBy: a,
234
+ helpAriaLabel: o,
235
+ helpButtonRef: c,
236
+ captureButtonRef: s,
237
+ encryptionLabel: d,
238
+ children: u
239
+ }) => {
240
+ const { t: v } = z();
241
+ return /* @__PURE__ */ e("div", { class: "IncodeCaptureFooter", children: [
242
+ /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterEncryption", children: [
243
+ /* @__PURE__ */ e(j, { className: "IncodeCaptureFooterEncryptionIcon" }),
244
+ /* @__PURE__ */ e("span", { children: d ?? v("v2.capture.label") })
245
+ ] }),
246
+ t && n ? /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterCaptureSection", children: [
247
+ u,
248
+ /* @__PURE__ */ e(
249
+ "button",
250
+ {
251
+ ref: s,
252
+ type: "button",
253
+ class: "IncodeCaptureFooterCaptureButton",
254
+ onClick: n,
255
+ "aria-label": i ?? v("manualCapture.ariaLabel"),
256
+ "aria-describedby": a,
257
+ "data-testid": "capture-button",
258
+ children: /* @__PURE__ */ e(G, {})
259
+ }
260
+ )
261
+ ] }) : null,
262
+ /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterHelp", children: /* @__PURE__ */ e(
263
+ M,
264
+ {
265
+ ref: c,
266
+ variant: "link",
267
+ onClick: r,
268
+ "aria-label": o ?? v("idv2.needHelp.open"),
269
+ class: "IncodeCaptureFooterHelpButton",
270
+ children: /* @__PURE__ */ e(U, {})
271
+ }
272
+ ) })
273
+ ] });
274
+ }, h = /* @__PURE__ */ new Map();
275
+ let $ = !1;
276
+ const y = {
277
+ blur: () => import("./blurdevicelottie-_BZRug1c.js"),
278
+ glare: () => import("./glaredevicelottie-DLuIStvb.js"),
279
+ align: () => import("./aligndevicelottie-DlQCRPfM.js"),
280
+ front: () => import("./frontdevicelottie-KhKxT5n9.js"),
281
+ back: () => import("./backdevicelottie-B4NgyWmX.js")
282
+ };
283
+ function R(r) {
284
+ $ || ($ = !0, Promise.all([
285
+ y.blur(),
286
+ y.glare(),
287
+ y.align(),
288
+ y.front(),
289
+ y.back()
290
+ ]).then(([n, t, i, a, o]) => {
291
+ 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?.();
292
+ }).catch(() => {
293
+ }));
294
+ }
295
+ function ee() {
296
+ R();
297
+ }
298
+ function re() {
299
+ I(() => {
300
+ ee();
301
+ }, []);
302
+ }
303
+ function te(r, n) {
304
+ const { t } = z(), [, i] = O(0);
305
+ if (I(() => {
306
+ R(() => i((a) => a + 1));
307
+ }, []), r === "blur")
308
+ return {
309
+ title: t("idv2.capture.notifications.blur.title"),
310
+ description: t("idv2.capture.notifications.blur.description"),
311
+ animationData: h.get("blur") ?? null
312
+ };
313
+ if (r === "glare")
314
+ return {
315
+ title: t("idv2.capture.notifications.glare.title"),
316
+ description: t("idv2.capture.notifications.glare.description"),
317
+ animationData: h.get("glare") ?? null
318
+ };
319
+ if (r === "farAway")
320
+ return {
321
+ title: t("idv2.capture.notifications.notAligned.title"),
322
+ description: t("idv2.capture.notifications.notAligned.description"),
323
+ animationData: h.get("align") ?? null
324
+ };
325
+ if (r === "wrongSide") {
326
+ const a = n === "back";
327
+ return {
328
+ title: t(a ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
329
+ description: t(a ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
330
+ animationData: h.get(a ? "back" : "front") ?? null
331
+ };
332
+ }
333
+ return null;
334
+ }
335
+ const ie = ({
336
+ detectionStatus: r,
337
+ mode: n,
338
+ isCapturing: t
339
+ }) => {
340
+ const { t: i } = z(), a = te(r, n), o = g(null), c = g({
341
+ message: "",
342
+ at: 0
343
+ }), 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) => {
344
+ const k = Date.now(), D = c.current;
345
+ if (f === D.message && k - D.at < 200) return;
346
+ c.current = { message: f, at: k };
347
+ const x = o.current;
348
+ x && (clearTimeout(u.current), x.textContent = "", v.current = setTimeout(() => {
349
+ x.textContent = f, u.current = setTimeout(() => {
350
+ x.textContent = "";
351
+ }, 3e3);
352
+ }, 50));
353
+ }, []), A = B(() => i(n === "passport" ? "idv2.capture.fillFramePassport" : n === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [n, i]);
354
+ return I(() => {
355
+ if (C) {
356
+ d.current = !1;
357
+ return;
358
+ }
359
+ if (d.current || !l) return;
360
+ const f = setTimeout(() => {
361
+ d.current = !0, p(A());
362
+ }, 500);
363
+ return () => clearTimeout(f);
364
+ }, [l, C, p, A]), I(() => {
365
+ const f = s.current;
366
+ s.current = r, f !== "manualCapture" && C && p(i("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
367
+ }, [p, r, C, i]), I(() => {
368
+ if (!t) {
369
+ if (m) {
370
+ const k = n === "front" || n === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
371
+ p(`${i(`${k}.title`)}. ${i(`${k}.description`)}`);
372
+ return;
373
+ }
374
+ if (w) {
375
+ p(`${i("idv2.capture.notifications.notAligned.title")}.`);
376
+ return;
377
+ }
378
+ if (T) {
379
+ p(`${i("idv2.capture.notifications.glare.title")}.`);
380
+ return;
381
+ }
382
+ if (F) {
383
+ p(`${i("idv2.capture.notifications.blur.title")}.`);
384
+ return;
385
+ }
386
+ l && d.current && p(A());
387
+ }
388
+ }, [
389
+ p,
390
+ F,
391
+ t,
392
+ w,
393
+ T,
394
+ l,
395
+ m,
396
+ n,
397
+ i,
398
+ A
399
+ ]), I(() => () => {
400
+ clearTimeout(v.current), clearTimeout(u.current);
401
+ }, []), /* @__PURE__ */ e(V, { children: [
402
+ /* @__PURE__ */ e(
403
+ "div",
404
+ {
405
+ ref: o,
406
+ class: "IncodeSrOnly",
407
+ "aria-live": "assertive",
408
+ "aria-atomic": "true"
409
+ }
410
+ ),
411
+ a ? /* @__PURE__ */ e("div", { class: b("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationContent", children: [
412
+ /* @__PURE__ */ e("div", { class: b("IncodeIdCaptureNotificationText"), children: [
413
+ /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationTitle", children: a.title }),
414
+ a.description && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationDescription", children: a.description })
415
+ ] }),
416
+ /* @__PURE__ */ e(P, { size: 16, direction: "horizontal" }),
417
+ a.animationData && /* @__PURE__ */ e("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ e(S, { animationData: a.animationData, loop: !0 }) })
418
+ ] }) }) : null
419
+ ] });
420
+ }, ne = H(
421
+ () => import("./front-horizontal-hint-lRLKd7vY.js")
422
+ ), ae = H(
423
+ () => import("./front-vertical-hint-qQoJXRE3.js")
424
+ ), oe = H(
425
+ () => import("./back-horizontal-hint-CSlf9KI1.js")
426
+ ), ce = H(
427
+ () => import("./back-vertical-hint-CNieqiCr.js")
428
+ ), le = H(
429
+ () => import("./passport-horizontal-hint-BCtpMp1Y.js")
430
+ ), se = H(
431
+ () => import("./passport-vertical-hint-GaLnzqHP.js")
432
+ ), de = {
433
+ "front-horizontal": 348,
434
+ "back-horizontal": 348,
435
+ "passport-horizontal": 342
436
+ }, ue = {
437
+ "front-vertical": 446,
438
+ "back-vertical": 446,
439
+ "passport-vertical": 342
440
+ };
441
+ function pe(r, n, t, i) {
442
+ const a = `${r}-${n}`, o = de[a];
443
+ if (o) return t / o;
444
+ const c = ue[a];
445
+ return c ? i / c : 1;
446
+ }
447
+ const fe = ({ mode: r, orientation: n }) => {
448
+ const t = g(null), [i, a] = O(1);
449
+ I(() => {
450
+ const c = t.current;
451
+ if (!c) return;
452
+ const s = () => {
453
+ a(
454
+ pe(r, n, c.clientWidth, c.clientHeight)
455
+ );
456
+ };
457
+ s();
458
+ const d = new ResizeObserver(s);
459
+ return d.observe(c), () => d.disconnect();
460
+ }, [r, n]);
461
+ 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;
462
+ return /* @__PURE__ */ e(
463
+ "div",
464
+ {
465
+ ref: t,
466
+ class: "IncodeIdHint",
467
+ "aria-hidden": "true",
468
+ role: "presentation",
469
+ children: /* @__PURE__ */ e("div", { class: "IncodeIdHintAnimated", children: /* @__PURE__ */ e(L, { fallback: null, children: /* @__PURE__ */ e("div", { class: "IncodeIdHintSvg", style: { transform: `scale(${i})` }, children: o() }) }) })
470
+ }
471
+ );
472
+ }, we = N(
473
+ ({
474
+ mode: r,
475
+ orientation: n,
476
+ detectionStatus: t,
477
+ counterValue: i,
478
+ isCapturing: a,
479
+ showManualCapture: o,
480
+ onCapture: c,
481
+ onOpenHelp: s,
482
+ helpButtonRef: d,
483
+ captureButtonRef: u
484
+ }, v) => {
485
+ const { t: l } = z();
486
+ re(), I(() => {
487
+ o && u && u.current?.focus();
488
+ }, [o, u]);
489
+ const C = () => a || t === "capturing" ? "capturing" : t === "blur" || t === "glare" || t === "wrongSide" || t === "farAway" ? "error" : "idle", m = W(() => {
490
+ if (a || t === "capturing")
491
+ return {
492
+ title: l("idv2.capture.takingPhoto"),
493
+ subtitle: l("idv2.capture.dontMove")
494
+ };
495
+ if (t === "detecting" || t === "idNotDetected" || t === "manualCapture") {
496
+ const f = t === "manualCapture";
497
+ return r === "passport" ? {
498
+ title: l("idv2.capture.fillFramePassport"),
499
+ subtitle: f ? "" : l("idv2.capture.v2.autoCapture")
500
+ } : r === "back" ? {
501
+ title: l("idv2.capture.v2.fillFrameBack"),
502
+ subtitle: f ? "" : l("idv2.capture.v2.autoCapture")
503
+ } : {
504
+ title: l("idv2.capture.v2.fillFrameFront"),
505
+ subtitle: f ? "" : l("idv2.capture.v2.autoCapture")
506
+ };
507
+ }
508
+ return null;
509
+ }, [a, t, r, l]), w = C(), T = r === "passport", F = n !== "vertical" || T, p = F ? "horizontal" : "vertical";
510
+ return /* @__PURE__ */ e(
511
+ Q,
512
+ {
513
+ className: b(
514
+ "IncodeCaptureOverlayId",
515
+ !F && "IncodeCaptureOverlayVertical"
516
+ ),
517
+ children: [
518
+ /* @__PURE__ */ e("div", { class: "IncodeCaptureTopSection", children: [
519
+ /* @__PURE__ */ e(
520
+ ie,
521
+ {
522
+ detectionStatus: t,
523
+ mode: r,
524
+ isCapturing: a
525
+ }
526
+ ),
527
+ /* @__PURE__ */ e(
528
+ X,
529
+ {
530
+ title: m?.title ?? "",
531
+ subtitle: m?.subtitle,
532
+ visible: m !== null,
533
+ titleId: "id-capture-heading"
534
+ }
535
+ )
536
+ ] }),
537
+ /* @__PURE__ */ e(
538
+ J,
539
+ {
540
+ ref: v,
541
+ variant: "locked",
542
+ orientation: p,
543
+ frameState: w,
544
+ className: b(T && "IncodeCaptureFramePassport"),
545
+ children: [
546
+ a && i > 0 && /* @__PURE__ */ e("div", { class: "IncodeCaptureCounter", children: i }),
547
+ t === "idNotDetected" && /* @__PURE__ */ e(fe, { mode: r, orientation: n ?? "horizontal" })
548
+ ]
549
+ }
550
+ ),
551
+ /* @__PURE__ */ e("div", { class: "IncodeSrOnly", "aria-live": "polite", "aria-atomic": "true", children: a && i > 0 ? i : "" }),
552
+ /* @__PURE__ */ e(
553
+ Y,
554
+ {
555
+ onOpenHelp: s,
556
+ onCapture: c,
557
+ isManualCapture: o,
558
+ helpButtonRef: d,
559
+ captureButtonRef: u,
560
+ captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
561
+ children: o ? /* @__PURE__ */ e("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ e(
562
+ "div",
563
+ {
564
+ id: "manual-capture-tooltip",
565
+ role: "tooltip",
566
+ class: "IncodeIdManualCaptureTooltip",
567
+ children: /* @__PURE__ */ e("ol", { class: "IncodeIdManualCaptureTooltipList", children: [
568
+ /* @__PURE__ */ e("li", { children: l("idv2.commonIssues.firstStep") }),
569
+ /* @__PURE__ */ e("li", { children: l("idv2.commonIssues.secondStep") })
570
+ ] })
571
+ }
572
+ ) }) : null
573
+ }
574
+ )
575
+ ]
576
+ }
577
+ );
578
+ }
579
+ );
580
+ export {
581
+ Q as C,
582
+ U as H,
583
+ j as L,
584
+ q as T,
585
+ K as a,
586
+ J as b,
587
+ X as c,
588
+ Y as d,
589
+ G as e,
590
+ we as f
591
+ };
@@ -2,30 +2,43 @@
2
2
  @layer properties {
3
3
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
4
  *, :before, :after, ::backdrop {
5
+ --tw-border-style: solid;
5
6
  --tw-font-weight: initial;
6
7
  --tw-translate-x: 0;
7
8
  --tw-translate-y: 0;
8
9
  --tw-translate-z: 0;
9
- --tw-border-style: solid;
10
10
  }
11
11
  }
12
12
  }
13
13
 
14
+ .IncodeDocumentCaptureFileInput {
15
+ pointer-events: none;
16
+ border-style: var(--tw-border-style);
17
+ padding: var(--spacing-0, var(--spacing-none, 0px));
18
+ opacity: 0;
19
+ clip: rect(0, 0, 0, 0);
20
+ clip-path: inset(50%);
21
+ white-space: nowrap;
22
+ border-width: 0;
23
+ position: absolute;
24
+ overflow: hidden;
25
+ width: 0 !important;
26
+ height: 0 !important;
27
+ margin: 0 !important;
28
+ }
29
+
30
+ .IncodeDocumentCaptureFileInput::file-selector-button {
31
+ display: none;
32
+ }
33
+
14
34
  .IncodeDocumentCapturePageTutorial .IncodePageContent {
15
35
  flex-direction: column;
16
36
  flex: 1;
17
37
  display: flex;
18
38
  }
19
39
 
20
- .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureFileInput {
21
- pointer-events: none;
22
- opacity: 0;
23
- width: 1px;
24
- height: 1px;
25
- position: absolute;
26
- }
27
-
28
40
  .IncodeDocumentCapturePageTutorial .IncodeDocumentCaptureTutorialContent {
41
+ margin-block: var(--spacing-16, var(--spacing-16, 16px));
29
42
  flex-direction: column;
30
43
  flex: 1;
31
44
  justify-content: center;
@@ -391,6 +404,12 @@
391
404
  display: flex;
392
405
  }
393
406
 
407
+ @property --tw-border-style {
408
+ syntax: "*";
409
+ inherits: false;
410
+ initial-value: solid;
411
+ }
412
+
394
413
  @property --tw-font-weight {
395
414
  syntax: "*";
396
415
  inherits: false
@@ -413,9 +432,3 @@
413
432
  inherits: false;
414
433
  initial-value: 0;
415
434
  }
416
-
417
- @property --tw-border-style {
418
- syntax: "*";
419
- inherits: false;
420
- initial-value: solid;
421
- }