@incodetech/web 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4677d7f

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.
Files changed (164) hide show
  1. package/dist/AsYouType-DPWqJvFu.js +2482 -0
  2. package/dist/addressAutocomplete-t809rK3N.js +108 -0
  3. package/dist/aligndevicelottie-C9xl1spu.js +12757 -0
  4. package/dist/antifraud/antifraud.es.js +17 -18
  5. package/dist/antifraud/styles.css +1 -1
  6. package/dist/authentication/authentication.es.js +28 -50
  7. package/dist/back-horizontal-hint-Be3dUGk6.js +137 -0
  8. package/dist/back-tutorial-BNTyW-1N.js +14584 -0
  9. package/dist/back-vertical-hint-Bz_rnhd-.js +128 -0
  10. package/dist/backdevicelottie-DBB1YCtW.js +16678 -0
  11. package/dist/base.css +327 -67
  12. package/dist/blurdevicelottie-9WvZCZ6C.js +15939 -0
  13. package/dist/browser-ponyfill-B4Qc6yfW.js +299 -0
  14. package/dist/button-DrtZRYJX.js +123 -0
  15. package/dist/checkbox-kZerHUek.js +85 -0
  16. package/dist/consent/consent.es.js +82 -89
  17. package/dist/consent/styles.css +1 -1
  18. package/dist/countries-y2ydYDhN.js +8323 -0
  19. package/dist/curp-validation/curp-validation.es.js +271 -313
  20. package/dist/curp-validation/styles.css +1 -1
  21. package/dist/dateInputComposed-9zbxhNlX.js +94 -0
  22. package/dist/dateInputComposed-B36DI9FJ.js +2 -0
  23. package/dist/defineProperty-brqHEHA_.js +39 -0
  24. package/dist/document-capture/styles.css +1 -1
  25. package/dist/documentCapture-CY-g1OUT.js +784 -0
  26. package/dist/dropdownComposed-CWxUwv7E.js +258 -0
  27. package/dist/ekyb/ekyb.es.js +2 -0
  28. package/dist/ekyb/styles.css +1 -1
  29. package/dist/ekybModule-DGOhCY0S.js +286 -0
  30. package/dist/ekybModule-mBTq_Apn.js +2 -0
  31. package/dist/ekyc/ekyc.es.js +2 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-DZlqb6Bc.js +2 -0
  34. package/dist/ekycModule-rJxf46TS.js +233 -0
  35. package/dist/email/email.es.js +110 -154
  36. package/dist/email/styles.css +1 -1
  37. package/dist/extensibility-CcUfegWj.js +2248 -0
  38. package/dist/extensibility.es.js +22 -150
  39. package/dist/face-match/styles.css +147 -73
  40. package/dist/faceMatch-K9k9f1HF.js +191 -0
  41. package/dist/flip-animation-DOJzdXB-.js +6983 -0
  42. package/dist/flow/flow.es.js +2274 -2613
  43. package/dist/flow/styles.css +432 -73
  44. package/dist/formField-BBfAFfVZ.js +100 -0
  45. package/dist/front-horizontal-hint-aGAhadA2.js +380 -0
  46. package/dist/front-vertical-hint-DZz1VeNp.js +420 -0
  47. package/dist/frontdevicelottie-DadDp6be.js +17302 -0
  48. package/dist/geolocation/geolocation.es.js +852 -832
  49. package/dist/geolocation/styles.css +1 -1
  50. package/dist/glaredevicelottie-BfI84cPw.js +14466 -0
  51. package/dist/governmentValidation/governmentValidation.es.js +100 -106
  52. package/dist/governmentValidation/styles.css +1 -1
  53. package/dist/i18n-DZOHbK9q.js +1916 -0
  54. package/dist/icons-BHbofCgJ.js +245 -0
  55. package/dist/id/id.es.js +53 -59
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BWyU3VgL.js +467 -0
  58. package/dist/id-laser-v-JiWXUlv0.js +467 -0
  59. package/dist/id-tutorial-Cc9xg5_J.js +13152 -0
  60. package/dist/incodeModule-Bf6yJ8RB.js +18 -0
  61. package/dist/index.es.js +4 -25
  62. package/dist/inputComposed-rPAh6ptN.js +77 -0
  63. package/dist/loadingIcon-BDMR5L6z.js +147 -0
  64. package/dist/mandatoryConsent-ohmxTqe7.js +101 -0
  65. package/dist/numberedStep-CQVRixRP.js +11 -0
  66. package/dist/otpInput-DRZiayDi.js +143 -0
  67. package/dist/page-M9yWRw73.js +61 -0
  68. package/dist/passport-horizontal-hint-CFsGs7Dp.js +293 -0
  69. package/dist/passport-tutorial-z0LN7Hsp.js +11688 -0
  70. package/dist/passport-vertical-hint-BnCpKWeN.js +267 -0
  71. package/dist/phone/phone.es.js +87 -121
  72. package/dist/phone/styles.css +1 -1
  73. package/dist/phoneInput-C9T_8FJt.js +138 -0
  74. package/dist/phoneInputComposed-CXTXBQ0B.js +407 -0
  75. package/dist/processing-yJ5QEgaC.js +15 -0
  76. package/dist/redirect-to-mobile/styles.css +1 -1
  77. package/dist/richText-Db0PfpkE.js +1973 -0
  78. package/dist/rolldown-runtime-CjdbFOpI.js +13 -0
  79. package/dist/selfie/selfie.es.js +29 -50
  80. package/dist/selfie/styles.css +170 -66
  81. package/dist/selfieTutorial-B0MIyPrk.js +2676 -0
  82. package/dist/setup-Dq2bzNKH.js +15 -0
  83. package/dist/signature/signature.es.js +557 -707
  84. package/dist/signature/styles.css +1 -1
  85. package/dist/spacer-DCljE53A.js +59 -0
  86. package/dist/spinner-BK2pIUzB.js +41 -0
  87. package/dist/spinner-DjG-sUzI.js +1 -0
  88. package/dist/successIcon-AHrfmJvv.js +17 -0
  89. package/dist/tutorial-C2kSUHWe.js +2781 -0
  90. package/dist/types/ekyb.d.ts +29 -0
  91. package/dist/types/ekyc.d.ts +29 -0
  92. package/dist/types/extensibility.d.ts +3 -5
  93. package/dist/types/flow.d.ts +1 -1
  94. package/dist/types/index.d.ts +2 -10
  95. package/dist/typography-BQrJwR60.js +1 -0
  96. package/dist/typography-BtyuWjzC.js +29 -0
  97. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  98. package/dist/vendor-preact-D6SntenC.js +958 -0
  99. package/dist/warningIcon-Cvj-ayg1.js +17 -0
  100. package/package.json +8 -11
  101. package/dist/AsYouType-D1H_js4X.js +0 -2607
  102. package/dist/Trans-aTzdT_SA.js +0 -55
  103. package/dist/addressAutocomplete-C8-wL1j_.js +0 -153
  104. package/dist/aligndevicelottie-DlQCRPfM.js +0 -29
  105. package/dist/back-horizontal-hint-CSlf9KI1.js +0 -5
  106. package/dist/back-tutorial-An9AcMSe.js +0 -29
  107. package/dist/back-vertical-hint-CNieqiCr.js +0 -5
  108. package/dist/backdevicelottie-B4NgyWmX.js +0 -29
  109. package/dist/blurdevicelottie-_BZRug1c.js +0 -29
  110. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  111. package/dist/button-CE9kRlem.js +0 -184
  112. package/dist/cameraView-C2X7klNb.js +0 -55
  113. package/dist/captureOverlay-tCb4R4WE.js +0 -592
  114. package/dist/checkbox-B5X-mfqq.js +0 -137
  115. package/dist/chevronDown-DSHaPKbi.js +0 -23
  116. package/dist/closeIcon-9Hc97omv.js +0 -28
  117. package/dist/countries-DfLkrF0x.js +0 -616
  118. package/dist/dateInputComposed-C7PCzh-U.js +0 -173
  119. package/dist/documentCapture-C0mO-RGE.js +0 -692
  120. package/dist/dropdownComposed-BpinYlrx.js +0 -367
  121. package/dist/ekybModule-Dr6LJUg-.js +0 -357
  122. package/dist/ekycModule-C3mswduI.js +0 -291
  123. package/dist/errorContent-Cb8nmQAE.js +0 -44
  124. package/dist/errorIcon-DEARBrGx.js +0 -26
  125. package/dist/faceMatch-DbDp7D3d.js +0 -237
  126. package/dist/fileIcon-CCSvS10T.js +0 -52
  127. package/dist/flip-animation-COR596wy.js +0 -29
  128. package/dist/flipAnimation-BqV462TA.js +0 -2059
  129. package/dist/formField-CP6wDdfA.js +0 -106
  130. package/dist/front-horizontal-hint-lRLKd7vY.js +0 -7
  131. package/dist/front-vertical-hint-qQoJXRE3.js +0 -7
  132. package/dist/frontdevicelottie-KhKxT5n9.js +0 -29
  133. package/dist/glaredevicelottie-DLuIStvb.js +0 -29
  134. package/dist/id-laser-h-BBV3r3rz.js +0 -29
  135. package/dist/id-laser-v-BTHJaSfx.js +0 -29
  136. package/dist/id-tutorial-B-F5Q28m.js +0 -29
  137. package/dist/incodeModule-C4XIllao.js +0 -96
  138. package/dist/inputComposed-fUbAGrDy.js +0 -103
  139. package/dist/instance-BWYzq8dk.js +0 -2163
  140. package/dist/loadingIcon-DmuPXh70.js +0 -195
  141. package/dist/mandatoryConsent-5xPI0cor.js +0 -94
  142. package/dist/manualCaptureButton-BvFmTyJe.js +0 -372
  143. package/dist/numberedStep-DwUB__mh.js +0 -5
  144. package/dist/otpInput-BFXhqFRT.js +0 -156
  145. package/dist/page-SrUl0qtN.js +0 -69
  146. package/dist/passport-horizontal-hint-BCtpMp1Y.js +0 -5
  147. package/dist/passport-tutorial-CaYBFTqt.js +0 -29
  148. package/dist/passport-vertical-hint-GaLnzqHP.js +0 -5
  149. package/dist/permissions-DT4Fz9MR.js +0 -709
  150. package/dist/phoneInput-CGr8TxOO.js +0 -158
  151. package/dist/phoneInputComposed-Cm9O2Jba.js +0 -206
  152. package/dist/processing-szVOCQwZ.js +0 -19
  153. package/dist/richText-cspvNz2a.js +0 -1807
  154. package/dist/selfieTutorial-Dm_p0ke9.js +0 -29
  155. package/dist/spinner-DygONskw.js +0 -60
  156. package/dist/successIcon-Bjsdc4lF.js +0 -26
  157. package/dist/tutorial-Cdz1025D.js +0 -473
  158. package/dist/types/ekyb/styles.d.ts +0 -1
  159. package/dist/types/ekyc/styles.d.ts +0 -1
  160. package/dist/typography-BDACYR5i.js +0 -14
  161. package/dist/uiConfig-Dnt-2YWB.js +0 -23
  162. package/dist/useMediaQuery-lJdQBmC2.js +0 -18
  163. package/dist/vendor-preact-BoMmvSgn.js +0 -694
  164. package/dist/warningIcon-DQq_MrOB.js +0 -26
@@ -0,0 +1,2248 @@
1
+ import { n as e } from "./i18n-DZOHbK9q.js";
2
+ import { S as t, _ as n, a as r, c as i, d as a, h as o, l as s, o as c, p as l, v as u } from "./vendor-preact-D6SntenC.js";
3
+ import "./uiConfig-CwpQ-IM6.js";
4
+ import { n as d } from "./loadingIcon-BDMR5L6z.js";
5
+ import { t as f } from "./spacer-DCljE53A.js";
6
+ import { t as p } from "./button-DrtZRYJX.js";
7
+ import { t as m } from "./page-M9yWRw73.js";
8
+ import { t as h } from "./typography-BtyuWjzC.js";
9
+ import "./typography-BQrJwR60.js";
10
+ import { t as g } from "./spinner-BK2pIUzB.js";
11
+ import "./spinner-DjG-sUzI.js";
12
+ import "./processing-yJ5QEgaC.js";
13
+ import { i as _, p as v, r as y, s as b, t as x, u as S } from "./icons-BHbofCgJ.js";
14
+ import { a as C, i as w, o as T } from "./tutorial-C2kSUHWe.js";
15
+ import { t as E } from "./successIcon-AHrfmJvv.js";
16
+ import "./formField-BBfAFfVZ.js";
17
+ import "./inputComposed-rPAh6ptN.js";
18
+ import "./otpInput-DRZiayDi.js";
19
+ import "./checkbox-kZerHUek.js";
20
+ import "./countries-y2ydYDhN.js";
21
+ import "./phoneInputComposed-CXTXBQ0B.js";
22
+ import "./dateInputComposed-B36DI9FJ.js";
23
+ import "@incodetech/core/id";
24
+ //#region src/shared/overlay/overlay.tsx
25
+ var D = ({ children: e, "aria-labelledby": t, class: n }) => /* @__PURE__ */ u("div", {
26
+ class: `IncodeOverlay ${n ?? ""}`,
27
+ role: "dialog",
28
+ "aria-modal": "true",
29
+ "aria-labelledby": t,
30
+ children: /* @__PURE__ */ u("div", {
31
+ class: "IncodeOverlayContainer",
32
+ children: /* @__PURE__ */ u("div", {
33
+ class: "IncodeOverlayBody",
34
+ children: e
35
+ })
36
+ })
37
+ }), O = ({ progress: e, label: n, className: r }) => /* @__PURE__ */ u("div", {
38
+ class: d("IncodeProgressBarContainer", r),
39
+ children: [/* @__PURE__ */ u("div", {
40
+ class: "IncodeProgressBar",
41
+ role: "progressbar",
42
+ "aria-valuenow": e,
43
+ "aria-valuemin": 0,
44
+ "aria-valuemax": 100,
45
+ "aria-label": n,
46
+ children: /* @__PURE__ */ u("div", {
47
+ class: "IncodeProgressBarFill",
48
+ style: { width: `${e}%` }
49
+ })
50
+ }), n ? /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(f, { size: 24 }), /* @__PURE__ */ u("p", {
51
+ class: "IncodeProgressBarLabel",
52
+ children: n
53
+ })] }) : null]
54
+ }), k = r((e, t) => {
55
+ let { class: n, rows: r = 4, ...i } = e;
56
+ return /* @__PURE__ */ u("textarea", {
57
+ ...i,
58
+ ref: t,
59
+ rows: r,
60
+ class: d("IncodeTextArea", n)
61
+ });
62
+ }), A = r(({ id: e, label: t, "aria-label": n, error: r, showErrorIcon: i, helper: a, showHelperIcon: o, required: s, rows: c = 4, class: l, ...f }, p) => {
63
+ let m = `${e}-helper`, h = `${e}-error`, g = [a ? m : null, r ? h : null].filter(Boolean).join(" ");
64
+ return /* @__PURE__ */ u("div", {
65
+ class: d("IncodeTextAreaComposed", l),
66
+ children: [
67
+ t && /* @__PURE__ */ u("label", {
68
+ class: "IncodeTextAreaComposedLabel",
69
+ htmlFor: e,
70
+ "data-testid": `${e}-label`,
71
+ children: [t, s && /* @__PURE__ */ u("span", {
72
+ class: "IncodeTextAreaComposedRequired",
73
+ children: " *"
74
+ })]
75
+ }),
76
+ /* @__PURE__ */ u("div", {
77
+ class: "IncodeTextAreaComposedWrapper",
78
+ children: /* @__PURE__ */ u(k, {
79
+ id: e,
80
+ rows: c,
81
+ ...f,
82
+ ref: p,
83
+ required: s,
84
+ ...!t && n ? { "aria-label": n } : {},
85
+ "aria-describedby": g || void 0,
86
+ "aria-required": s ? "true" : void 0,
87
+ "aria-invalid": r ? "true" : void 0
88
+ })
89
+ }),
90
+ r && /* @__PURE__ */ u("div", {
91
+ class: "IncodeTextAreaComposedErrorWrapper",
92
+ "data-testid": `${e}-error-wrapper`,
93
+ children: [i && /* @__PURE__ */ u("div", {
94
+ class: "IncodeTextAreaComposedIconWrapper",
95
+ children: /* @__PURE__ */ u(v, { size: 17 })
96
+ }), /* @__PURE__ */ u("p", {
97
+ id: h,
98
+ class: "IncodeTextAreaComposedError",
99
+ children: r
100
+ })]
101
+ }),
102
+ a && !r && /* @__PURE__ */ u("div", {
103
+ class: "IncodeTextAreaComposedHelperWrapper",
104
+ "data-testid": `${e}-helper-wrapper`,
105
+ children: [o && /* @__PURE__ */ u("div", {
106
+ class: "IncodeTextAreaComposedIconWrapper",
107
+ children: /* @__PURE__ */ u(E, { size: 17 })
108
+ }), /* @__PURE__ */ u("p", {
109
+ id: m,
110
+ class: "IncodeTextAreaComposedHelper",
111
+ children: a
112
+ })]
113
+ })
114
+ ]
115
+ });
116
+ });
117
+ A.displayName = "TextAreaComposed";
118
+ //#endregion
119
+ //#region src/shared/card/verificationOption/verificationOptionCard.tsx
120
+ function j({ children: e }) {
121
+ return /* @__PURE__ */ u("div", {
122
+ class: "IncodeVerificationOptionCardList",
123
+ children: e
124
+ });
125
+ }
126
+ function M({ icon: e, title: t, testId: n, onClick: r, tag: i }) {
127
+ return /* @__PURE__ */ u("button", {
128
+ type: "button",
129
+ class: "IncodeVerificationOptionCard",
130
+ onClick: r,
131
+ "data-testid": n,
132
+ "aria-labelledby": `${n}-label`,
133
+ children: [/* @__PURE__ */ u("span", {
134
+ class: "IncodeVerificationOptionCardIcon",
135
+ "aria-hidden": "true",
136
+ "data-testid": `${n}-icon`,
137
+ children: /* @__PURE__ */ u(e, {})
138
+ }), /* @__PURE__ */ u("span", {
139
+ class: "IncodeVerificationOptionCardContent",
140
+ children: [/* @__PURE__ */ u("span", {
141
+ id: `${n}-label`,
142
+ class: "IncodeVerificationOptionCardTitleTagContainer",
143
+ children: [/* @__PURE__ */ u("span", {
144
+ class: "IncodeVerificationOptionCardTitle",
145
+ children: t
146
+ }), i && /* @__PURE__ */ u(ee, { label: i })]
147
+ }), /* @__PURE__ */ u("span", {
148
+ class: "IncodeVerificationOptionCardArrow",
149
+ "data-testid": "chevron-right-icon",
150
+ children: /* @__PURE__ */ u(b, {
151
+ size: 24,
152
+ variant: "m"
153
+ })
154
+ })]
155
+ })]
156
+ });
157
+ }
158
+ function ee({ label: e }) {
159
+ return /* @__PURE__ */ u("div", {
160
+ class: "IncodeVerificationOptionCardTag",
161
+ children: [/* @__PURE__ */ u(x, {}), /* @__PURE__ */ u("span", { children: e })]
162
+ });
163
+ }
164
+ //#endregion
165
+ //#region src/shared/cameraOverlay/cameraFrame.tsx
166
+ var N = r(({ variant: e, aspectRatio: t, orientation: n = "horizontal", frameState: r = "idle", className: i, children: a }, o) => {
167
+ let s = `IncodeCameraFrame${r.charAt(0).toUpperCase()}${r.slice(1)}`;
168
+ return /* @__PURE__ */ u("div", {
169
+ ref: o,
170
+ class: d("IncodeCameraFrame", e === "fill" && "IncodeCameraFrameFill", e === "locked" && "IncodeCameraFrameLocked", e === "locked" && n === "horizontal" && "IncodeCameraFrameHorizontal", e === "locked" && n === "vertical" && "IncodeCameraFrameVertical", s, i),
171
+ style: t ? { aspectRatio: t } : void 0,
172
+ "aria-hidden": !0,
173
+ children: a
174
+ });
175
+ }), P = ({ children: e, className: t }) => /* @__PURE__ */ u("div", {
176
+ class: d("IncodeCameraOverlay", t),
177
+ children: e
178
+ }), F = ({ title: e, subtitle: t, visible: r = !0, className: i, titleId: a }) => {
179
+ let o = s(null);
180
+ return n(() => {
181
+ o.current?.focus();
182
+ }, []), /* @__PURE__ */ u("div", {
183
+ class: d("IncodeCameraOverlayHeader", !r && "IncodeCameraOverlayHeaderHidden", i),
184
+ children: [/* @__PURE__ */ u(h, {
185
+ ref: o,
186
+ id: a,
187
+ className: "IncodeCameraOverlayHeaderTitle",
188
+ tabIndex: -1,
189
+ children: e
190
+ }), /* @__PURE__ */ u("p", {
191
+ class: "IncodeCameraOverlayHeaderSubtitle",
192
+ children: t
193
+ })]
194
+ });
195
+ }, I = ({ stream: e, children: t, videoRef: r, className: i, ...a }) => {
196
+ let o = s(null), c = (e) => {
197
+ o.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
198
+ };
199
+ return n(() => {
200
+ o.current && e && (o.current.srcObject = e, o.current.play().catch(() => {}));
201
+ }, [e]), /* @__PURE__ */ u("div", {
202
+ class: d("IncodeCameraView", i),
203
+ ...a,
204
+ children: [/* @__PURE__ */ u("div", {
205
+ class: "IncodeCameraViewVideo",
206
+ children: /* @__PURE__ */ u("video", {
207
+ ref: c,
208
+ autoplay: !0,
209
+ playsInline: !0,
210
+ muted: !0,
211
+ "aria-hidden": "true",
212
+ class: "IncodeCameraViewVideoElement"
213
+ })
214
+ }), t]
215
+ });
216
+ }, L = ({ onOpenHelp: t, onCapture: n, isManualCapture: r, captureAriaLabel: i, captureAriaDescribedBy: a, helpAriaLabel: o, helpButtonRef: s, captureButtonRef: c, encryptionLabel: l, children: d }) => {
217
+ let { t: f } = e();
218
+ return /* @__PURE__ */ u("div", {
219
+ class: "IncodeCaptureFooter",
220
+ children: [
221
+ /* @__PURE__ */ u("div", {
222
+ class: "IncodeCaptureFooterEncryption",
223
+ children: [/* @__PURE__ */ u(y, { className: "IncodeCaptureFooterEncryptionIcon" }), /* @__PURE__ */ u("span", { children: l ?? f("v2.capture.label") })]
224
+ }),
225
+ r && n ? /* @__PURE__ */ u("div", {
226
+ class: "IncodeCaptureFooterCaptureSection",
227
+ children: [d, /* @__PURE__ */ u("button", {
228
+ ref: c,
229
+ type: "button",
230
+ class: "IncodeCaptureFooterCaptureButton",
231
+ onClick: n,
232
+ "aria-label": i ?? f("manualCapture.ariaLabel"),
233
+ "aria-describedby": a,
234
+ "data-testid": "capture-button",
235
+ children: /* @__PURE__ */ u(S, {})
236
+ })]
237
+ }) : null,
238
+ /* @__PURE__ */ u("div", {
239
+ class: "IncodeCaptureFooterHelp",
240
+ children: /* @__PURE__ */ u(p, {
241
+ ref: s,
242
+ variant: "link",
243
+ onClick: t,
244
+ "aria-label": o ?? f("idv2.needHelp.open"),
245
+ class: "IncodeCaptureFooterHelpButton",
246
+ children: /* @__PURE__ */ u(_, {})
247
+ })
248
+ })
249
+ ]
250
+ });
251
+ };
252
+ //#endregion
253
+ //#region src/shared/manualCapture/manualCapture.tsx
254
+ function R(e) {
255
+ if (e.readyState < 2 || e.videoWidth === 0 || e.videoHeight === 0) return null;
256
+ let t = document.createElement("canvas");
257
+ t.width = e.videoWidth, t.height = e.videoHeight;
258
+ let n = t.getContext("2d");
259
+ return n ? (n.drawImage(e, 0, 0), t.toDataURL("image/jpeg", .92).split(",")[1] ?? null) : null;
260
+ }
261
+ var z = ({ stream: e, onCapture: t, disabled: r }) => {
262
+ let i = s(null);
263
+ n(() => {
264
+ i.current && e && (i.current.srcObject = e, i.current.play().catch(() => {}));
265
+ }, [e]);
266
+ let a = o(() => {
267
+ let e = i.current;
268
+ if (!e || r) return;
269
+ let n = R(e);
270
+ n && t(n);
271
+ }, [t, r]);
272
+ return /* @__PURE__ */ u("div", {
273
+ class: "IncodeManualCapture",
274
+ children: [/* @__PURE__ */ u("div", {
275
+ class: "IncodeManualCaptureVideoContainer",
276
+ children: /* @__PURE__ */ u("video", {
277
+ ref: i,
278
+ autoplay: !0,
279
+ playsInline: !0,
280
+ muted: !0,
281
+ class: "IncodeManualCaptureVideo",
282
+ "aria-label": "Camera stream for document capture"
283
+ })
284
+ }), /* @__PURE__ */ u("div", {
285
+ class: "IncodeManualCaptureButtonContainer",
286
+ children: /* @__PURE__ */ u(p, {
287
+ variant: "primary",
288
+ size: "L",
289
+ onClick: a,
290
+ disabled: r,
291
+ class: "IncodeManualCaptureButton",
292
+ "aria-label": "Capture document",
293
+ children: "Capture"
294
+ })
295
+ })]
296
+ });
297
+ }, B = ({ className: e }) => /* @__PURE__ */ u("svg", {
298
+ width: "24",
299
+ height: "24",
300
+ viewBox: "0 0 24 24",
301
+ fill: "none",
302
+ xmlns: "http://www.w3.org/2000/svg",
303
+ class: e,
304
+ "aria-hidden": "true",
305
+ children: [
306
+ /* @__PURE__ */ u("path", {
307
+ d: "M12.2597 4.15625C14.3285 4.1835 16.3243 4.916 17.9199 6.23242C18.2394 6.49605 18.2851 6.96957 18.0214 7.28906C17.7578 7.60828 17.2852 7.65315 16.9658 7.38965C15.6357 6.29217 13.9729 5.68098 12.249 5.65625C10.5346 5.67942 8.878 6.28369 7.5527 7.37207C6.03992 8.62375 4.84504 10.2126 4.06246 12.0107C4.83423 13.8004 6.01967 15.3822 7.52242 16.626C7.84151 16.8901 7.88613 17.3635 7.62203 17.6826C7.35793 18.0017 6.88449 18.0463 6.56539 17.7822C4.79235 16.3147 3.41234 14.427 2.5527 12.29C2.48019 12.1096 2.48144 11.9077 2.55465 11.7275C3.42639 9.58276 4.81515 7.68881 6.5986 6.21387L6.60055 6.21289C8.19264 4.90541 10.1832 4.18132 12.2412 4.15625H12.2597Z",
308
+ fill: "currentColor"
309
+ }),
310
+ /* @__PURE__ */ u("path", {
311
+ d: "M19.3963 3.80561C19.6892 3.51272 20.165 3.51271 20.4579 3.80561C20.7504 4.09843 20.7504 4.57333 20.4579 4.86615L5.10728 20.2158C4.81438 20.5087 4.33962 20.5087 4.04673 20.2158C3.75401 19.9229 3.7539 19.4481 4.04673 19.1552L19.3963 3.80561Z",
312
+ fill: "currentColor"
313
+ }),
314
+ /* @__PURE__ */ u("path", {
315
+ d: "M12.4287 8.18359C13.377 8.22855 14.2762 8.62583 14.9502 9.2998C15.2429 9.59271 15.243 10.0675 14.9502 10.3604C14.6574 10.653 14.1825 10.653 13.8897 10.3604C13.4528 9.92345 12.8603 9.6783 12.2422 9.67969H12.2412C10.9575 9.68196 9.91866 10.725 9.92092 12.0088V12.0127C9.91873 12.6266 10.1629 13.2142 10.5987 13.6455C10.893 13.9369 10.8949 14.4117 10.6035 14.7061C10.3122 15.0003 9.83736 15.0032 9.54299 14.7119C8.82092 13.9973 8.41718 13.0228 8.42092 12.0068C8.41946 9.89669 10.1276 8.18357 12.2383 8.17969L12.4287 8.18359Z",
316
+ fill: "currentColor"
317
+ }),
318
+ /* @__PURE__ */ u("path", {
319
+ d: "M19.0536 8.34264C19.3864 8.09617 19.8559 8.16611 20.1024 8.49889C20.8393 9.49403 21.4571 10.5723 21.9413 11.7128C22.0214 11.9015 22.0206 12.1153 21.9393 12.3036C19.9504 16.911 16.3507 19.8602 12.2499 19.8602C11.3317 19.8602 10.421 19.7108 9.55163 19.4217C9.15858 19.2911 8.94538 18.8665 9.07605 18.4735C9.20672 18.0805 9.63127 17.8683 10.0243 17.9989C10.7428 18.2378 11.4942 18.3602 12.2499 18.3602C15.4814 18.3602 18.5736 16.0795 20.4296 12.0047C20.0129 11.0822 19.5004 10.2058 18.8973 9.39147C18.6509 9.05863 18.7208 8.58917 19.0536 8.34264Z",
320
+ fill: "currentColor"
321
+ }),
322
+ /* @__PURE__ */ u("path", {
323
+ d: "M14.5349 12.4195C14.6094 12.0122 14.9996 11.7418 15.407 11.816C15.8145 11.8902 16.0848 12.2815 16.0105 12.689C15.7256 14.2521 14.5032 15.4787 12.9392 15.7662C12.5318 15.841 12.1411 15.571 12.0662 15.1636C11.9914 14.7563 12.2605 14.3655 12.6677 14.2906C13.6177 14.116 14.3617 13.3702 14.5349 12.4195Z",
324
+ fill: "currentColor"
325
+ })
326
+ ]
327
+ }), te = ({ className: e }) => /* @__PURE__ */ u("svg", {
328
+ width: "24",
329
+ height: "24",
330
+ viewBox: "0 0 24 24",
331
+ fill: "none",
332
+ xmlns: "http://www.w3.org/2000/svg",
333
+ class: e,
334
+ "aria-hidden": "true",
335
+ children: [
336
+ /* @__PURE__ */ u("path", {
337
+ d: "M2.25 15.1279V9.51172C2.25 7.88342 2.76123 6.43316 3.74023 5.38281C4.72472 4.32662 6.12676 3.73535 7.78223 3.73535H13.2705L13.3477 3.73926C13.7258 3.7777 14.0205 4.09705 14.0205 4.48535C14.0205 4.87365 13.7258 5.193 13.3477 5.23145L13.2705 5.23535H7.78223C6.49854 5.23535 5.50964 5.68477 4.83789 6.40527C4.16068 7.13181 3.75 8.19485 3.75 9.51172V15.1279C3.75003 16.4457 4.1591 17.5083 4.83496 18.2344C5.5052 18.9542 6.49361 19.4043 7.78223 19.4043H16.2158C17.5051 19.4043 18.4945 18.9544 19.165 18.2344C19.8412 17.5083 20.25 16.4456 20.25 15.1279V12.458C20.25 12.0438 20.5858 11.708 21 11.708C21.4142 11.708 21.75 12.0438 21.75 12.458V15.1279C21.75 16.7554 21.2412 18.2061 20.2627 19.2568C19.2785 20.3135 17.8755 20.9043 16.2158 20.9043H7.78223C6.12294 20.9043 4.72013 20.3136 3.73633 19.2568C2.7582 18.2061 2.25003 16.7553 2.25 15.1279Z",
338
+ fill: "currentColor"
339
+ }),
340
+ /* @__PURE__ */ u("path", {
341
+ d: "M14.2705 14.4121C14.6846 14.4123 15.0205 14.748 15.0205 15.1621C15.0205 15.5762 14.6846 15.912 14.2705 15.9121H7.04102C6.62682 15.9121 6.29105 15.5763 6.29102 15.1621C6.29102 14.7479 6.6268 14.4121 7.04102 14.4121H14.2705ZM8.96094 10.6523C9.37494 10.6526 9.71094 10.9883 9.71094 11.4023C9.71094 11.8164 9.37494 12.1521 8.96094 12.1523H7.04102C6.6268 12.1523 6.29102 11.8166 6.29102 11.4023C6.29102 10.9881 6.6268 10.6523 7.04102 10.6523H8.96094Z",
342
+ fill: "currentColor"
343
+ }),
344
+ /* @__PURE__ */ u("path", {
345
+ d: "M18.4043 3.0957C18.7183 3.0957 18.9986 3.29142 19.1074 3.58594L19.209 3.85938C19.5141 4.68491 20.1638 5.33534 20.9873 5.64062L21.2607 5.74219C21.5548 5.85125 21.75 6.13168 21.75 6.44531C21.75 6.75893 21.5548 7.03941 21.2607 7.14844L20.9873 7.25C20.215 7.5363 19.5953 8.1258 19.2695 8.87891L19.209 9.03125L19.1074 9.30469C18.9986 9.59909 18.7182 9.79492 18.4043 9.79492C18.0904 9.79492 17.81 9.59909 17.7012 9.30469L17.5996 9.03125C17.2945 8.20566 16.6448 7.55532 15.8213 7.25L15.5479 7.14844C15.2538 7.03941 15.0586 6.75893 15.0586 6.44531C15.0586 6.13168 15.2538 5.85125 15.5479 5.74219L15.8213 5.64062C16.6448 5.33534 17.2945 4.68491 17.5996 3.85938L17.7012 3.58594L17.749 3.48047C17.8799 3.24552 18.1294 3.0957 18.4043 3.0957ZM18.4043 5.49414C18.1366 5.85711 17.8158 6.17742 17.4531 6.44531C17.8156 6.71307 18.1367 7.03278 18.4043 7.39551C18.6718 7.03299 18.9922 6.71298 19.3545 6.44531C18.992 6.17751 18.6719 5.8569 18.4043 5.49414Z",
346
+ fill: "currentColor"
347
+ }),
348
+ /* @__PURE__ */ u("path", {
349
+ d: "M13.9019 8.29492C14.232 8.29495 14.5236 8.51122 14.6196 8.82715C14.7187 9.15288 14.9733 9.4071 15.2974 9.50586C15.6128 9.60214 15.8286 9.89376 15.8286 10.2236C15.8285 10.5534 15.6127 10.8441 15.2974 10.9404C14.973 11.0393 14.7187 11.2942 14.6196 11.6201C14.5236 11.936 14.232 12.1513 13.9019 12.1514C13.5717 12.1514 13.2801 11.936 13.1841 11.6201C13.0851 11.2943 12.8307 11.0393 12.5063 10.9404C12.1909 10.8442 11.9752 10.5534 11.9751 10.2236C11.9751 9.89369 12.1908 9.60208 12.5063 9.50586C12.8305 9.40708 13.085 9.15282 13.1841 8.82715C13.2801 8.5112 13.5716 8.29492 13.9019 8.29492Z",
350
+ fill: "currentColor"
351
+ })
352
+ ]
353
+ }), ne = ({ className: e }) => /* @__PURE__ */ u("svg", {
354
+ width: "24",
355
+ height: "24",
356
+ viewBox: "0 0 24 24",
357
+ fill: "none",
358
+ xmlns: "http://www.w3.org/2000/svg",
359
+ class: e,
360
+ "aria-hidden": "true",
361
+ children: [
362
+ /* @__PURE__ */ u("path", {
363
+ fillRule: "evenodd",
364
+ clipRule: "evenodd",
365
+ d: "M3.51987 5.07032C4.36282 4.16615 5.5605 3.66406 6.96486 3.66406H17.0351C18.4424 3.66406 19.6405 4.16586 20.483 5.07066C21.3199 5.96941 21.75 7.20487 21.75 8.58033V11.5041C21.75 11.9183 21.4142 12.2541 21 12.2541C20.5858 12.2541 20.25 11.9183 20.25 11.5041V8.58033C20.25 7.5146 19.9198 6.66693 19.3852 6.09284C18.8563 5.52481 18.0719 5.16406 17.0351 5.16406H6.96486C5.93193 5.16406 5.14718 5.52452 4.61702 6.09318C4.08142 6.66769 3.75 7.51548 3.75 8.58033V15.1683C3.75 16.2346 4.08027 17.0822 4.61474 17.6561C5.1436 18.224 5.92794 18.5846 6.96486 18.5846H11.1224C11.5366 18.5846 11.8724 18.9204 11.8724 19.3346C11.8724 19.7488 11.5366 20.0846 11.1224 20.0846H6.96486C5.55768 20.0846 4.35959 19.5831 3.51704 18.6784C2.68011 17.7797 2.25 16.5442 2.25 15.1683V8.58033C2.25 7.20399 2.68237 5.96865 3.51987 5.07032Z",
366
+ fill: "currentColor"
367
+ }),
368
+ /* @__PURE__ */ u("path", {
369
+ fillRule: "evenodd",
370
+ clipRule: "evenodd",
371
+ d: "M2.25 9.71191C2.25 9.2977 2.58579 8.96191 3 8.96191H21C21.4142 8.96191 21.75 9.2977 21.75 9.71191C21.75 10.1261 21.4142 10.4619 21 10.4619H3C2.58579 10.4619 2.25 10.1261 2.25 9.71191Z",
372
+ fill: "currentColor"
373
+ }),
374
+ /* @__PURE__ */ u("path", {
375
+ fillRule: "evenodd",
376
+ clipRule: "evenodd",
377
+ d: "M18.4359 14.3971C17.5875 13.5487 16.2128 13.5487 15.3644 14.3971C14.516 15.2455 14.516 16.6202 15.3644 17.4686C16.2128 18.317 17.5875 18.317 18.4359 17.4686C19.2843 16.6202 19.2843 15.2455 18.4359 14.3971ZM14.3037 13.3364C15.7379 11.9022 18.0624 11.9022 19.4966 13.3364C20.9308 14.7706 20.9308 17.0951 19.4966 18.5293C18.0624 19.9635 15.7379 19.9635 14.3037 18.5293C12.8695 17.0951 12.8695 14.7706 14.3037 13.3364Z",
378
+ fill: "currentColor"
379
+ }),
380
+ /* @__PURE__ */ u("path", {
381
+ fillRule: "evenodd",
382
+ clipRule: "evenodd",
383
+ d: "M18.436 17.4707C18.7289 17.1778 19.2038 17.1778 19.4967 17.4707L21.0797 19.0538C21.3726 19.3467 21.3726 19.8215 21.0797 20.1144C20.7868 20.4073 20.3119 20.4073 20.019 20.1144L18.436 18.5314C18.1431 18.2385 18.1431 17.7636 18.436 17.4707Z",
384
+ fill: "currentColor"
385
+ })
386
+ ]
387
+ }), re = ({ className: e }) => /* @__PURE__ */ u("svg", {
388
+ width: "64",
389
+ height: "64",
390
+ viewBox: "0 0 64 64",
391
+ fill: "none",
392
+ xmlns: "http://www.w3.org/2000/svg",
393
+ class: e,
394
+ "aria-hidden": "true",
395
+ children: [/* @__PURE__ */ u("circle", {
396
+ cx: "32",
397
+ cy: "32",
398
+ r: "32",
399
+ fill: "#14151A"
400
+ }), /* @__PURE__ */ u("path", {
401
+ d: "M32 41C33.1045 41 34 41.8955 34 43C34 44.1045 33.1045 45 32 45C30.8954 45 30 44.1045 30 43C30 41.8954 30.8954 41 32 41ZM32 18.5C36.6906 18.5001 40.1669 22.0578 40.167 26.5605C40.167 28.8363 39.239 30.7175 37.7119 32.0381C36.5502 33.0426 35.086 33.6855 33.5 33.9863V38H30.5V31.2568L31.9072 31.1699C33.5141 31.0696 34.8469 30.5494 35.75 29.7686C36.6245 29.0121 37.167 27.9561 37.167 26.5605C37.1669 23.7203 35.0394 21.5001 32 21.5C28.9065 21.5001 26.7253 23.7825 26.1406 26.8418L23.1934 26.2793C23.9755 22.1855 27.1118 18.5001 32 18.5Z",
402
+ fill: "white"
403
+ })]
404
+ }), ie = ({ open: t, onClose: n, onTakeManually: r, portalContainer: i }) => {
405
+ let { t: a } = e(), s = o((e) => {
406
+ e?.focus();
407
+ }, []), c = () => {
408
+ r(), n();
409
+ };
410
+ return /* @__PURE__ */ u(T.Root, {
411
+ open: t,
412
+ onOpenChange: (e) => {
413
+ e || n();
414
+ },
415
+ class: "IncodeCommonIssuesFullScreen",
416
+ hasBackdrop: !1,
417
+ portalContainer: i ?? void 0,
418
+ manageInitialFocus: !1,
419
+ children: /* @__PURE__ */ u(T.Content, {
420
+ class: "IncodeCommonIssuesContent",
421
+ children: [
422
+ /* @__PURE__ */ u(T.Close, { "aria-label": a("commonIssues.close") }),
423
+ /* @__PURE__ */ u(T.Icon, {
424
+ class: "IncodeCommonIssuesQuestionIcon",
425
+ children: /* @__PURE__ */ u(re, {})
426
+ }),
427
+ /* @__PURE__ */ u(T.TitleSection, { children: /* @__PURE__ */ u(h, {
428
+ id: "incode-modal-title",
429
+ ref: s,
430
+ className: "IncodeCommonIssuesTitle",
431
+ tabIndex: -1,
432
+ children: a("commonIssues.commonIssues")
433
+ }) }),
434
+ /* @__PURE__ */ u("div", {
435
+ class: "IncodeCommonIssuesCards",
436
+ children: [
437
+ /* @__PURE__ */ u("div", {
438
+ class: "IncodeCommonIssuesCard",
439
+ children: [/* @__PURE__ */ u("div", {
440
+ class: "IncodeCommonIssuesCardIcon",
441
+ "aria-hidden": "true",
442
+ children: /* @__PURE__ */ u(te, {})
443
+ }), /* @__PURE__ */ u("div", {
444
+ class: "IncodeCommonIssuesCardText",
445
+ children: [/* @__PURE__ */ u("h3", {
446
+ class: "IncodeCommonIssuesCardTitle",
447
+ children: a("commonIssues.glarePresent")
448
+ }), /* @__PURE__ */ u("p", {
449
+ class: "IncodeCommonIssuesCardBody",
450
+ children: a("commonIssues.glarePresentDescription")
451
+ })]
452
+ })]
453
+ }),
454
+ /* @__PURE__ */ u("div", {
455
+ class: "IncodeCommonIssuesCard",
456
+ children: [/* @__PURE__ */ u("div", {
457
+ class: "IncodeCommonIssuesCardIcon",
458
+ "aria-hidden": "true",
459
+ children: /* @__PURE__ */ u(B, {})
460
+ }), /* @__PURE__ */ u("div", {
461
+ class: "IncodeCommonIssuesCardText",
462
+ children: [/* @__PURE__ */ u("h3", {
463
+ class: "IncodeCommonIssuesCardTitle",
464
+ children: a("commonIssues.blurPresent")
465
+ }), /* @__PURE__ */ u("p", {
466
+ class: "IncodeCommonIssuesCardBody",
467
+ children: a("commonIssues.blurPresentDescription")
468
+ })]
469
+ })]
470
+ }),
471
+ /* @__PURE__ */ u("div", {
472
+ class: "IncodeCommonIssuesCard",
473
+ children: [/* @__PURE__ */ u("div", {
474
+ class: "IncodeCommonIssuesCardIcon",
475
+ "aria-hidden": "true",
476
+ children: /* @__PURE__ */ u(ne, {})
477
+ }), /* @__PURE__ */ u("div", {
478
+ class: "IncodeCommonIssuesCardText",
479
+ children: [/* @__PURE__ */ u("h3", {
480
+ class: "IncodeCommonIssuesCardTitle",
481
+ children: a("commonIssues.notReadable")
482
+ }), /* @__PURE__ */ u("p", {
483
+ class: "IncodeCommonIssuesCardBody",
484
+ children: a("commonIssues.notReadableDescription")
485
+ })]
486
+ })]
487
+ })
488
+ ]
489
+ }),
490
+ /* @__PURE__ */ u(T.Actions, {
491
+ class: "IncodeCommonIssuesButtons",
492
+ children: [/* @__PURE__ */ u(p, {
493
+ variant: "link",
494
+ onClick: c,
495
+ class: "IncodeCommonIssuesTakeManually",
496
+ children: a("commonIssues.takeManually")
497
+ }), /* @__PURE__ */ u(p, {
498
+ onClick: n,
499
+ class: "IncodeCommonIssuesTryAgain",
500
+ children: a("commonIssues.tryAgain")
501
+ })]
502
+ })
503
+ ]
504
+ })
505
+ });
506
+ }, ae = ({ orientation: e, mode: t, state: n, children: r, className: i }) => {
507
+ let a = e !== "vertical" || t === "passport", o = t === "passport", s = `IncodeCaptureFrame${n.charAt(0).toUpperCase() + n.slice(1)}`;
508
+ return /* @__PURE__ */ u("div", {
509
+ class: d("IncodeCaptureFrame", a ? "IncodeCaptureFrameHorizontal" : "IncodeCaptureFrameVertical", s, o && "IncodeCaptureFramePassport", i),
510
+ "aria-hidden": "true",
511
+ role: "presentation",
512
+ children: r
513
+ });
514
+ }, V = ({ imageUrl: t, orientation: n, mode: r, borderState: i, topContent: a, bottomContent: o, overlayContent: s }) => {
515
+ let { t: c } = e();
516
+ return /* @__PURE__ */ u(m, {
517
+ hideHeader: !0,
518
+ hideFooterBranding: !0,
519
+ children: /* @__PURE__ */ u("div", {
520
+ class: "IncodeIdProcessingLayout",
521
+ children: /* @__PURE__ */ u("div", {
522
+ class: "IncodeIdProcessingLayoutContent",
523
+ children: [
524
+ a && /* @__PURE__ */ u("div", {
525
+ class: "IncodeIdProcessingTopArea",
526
+ children: a
527
+ }),
528
+ /* @__PURE__ */ u(ae, {
529
+ orientation: n,
530
+ mode: r === "id" ? "front" : r,
531
+ state: i,
532
+ children: [/* @__PURE__ */ u("img", {
533
+ src: t,
534
+ alt: "",
535
+ "aria-hidden": "true",
536
+ class: "IncodeIdProcessingImage"
537
+ }), s && /* @__PURE__ */ u("div", {
538
+ class: "IncodeIdProcessingOverlay",
539
+ "aria-hidden": "true",
540
+ children: s
541
+ })]
542
+ }),
543
+ /* @__PURE__ */ u("div", {
544
+ class: "IncodeIdProcessingBottomArea",
545
+ children: [/* @__PURE__ */ u("div", {
546
+ class: "IncodeCaptureEncryptionLabel",
547
+ children: [/* @__PURE__ */ u(y, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: c("v2.capture.label") })]
548
+ }), o]
549
+ })
550
+ ]
551
+ })
552
+ })
553
+ });
554
+ }, H = ({ imageUrl: t, progress: r, orientation: i, mode: a }) => {
555
+ let { t: o } = e(), c = s(null), d = i !== "vertical" || a === "passport", [f, p] = l(null);
556
+ return n(() => {
557
+ c.current?.focus();
558
+ }, []), n(() => {
559
+ d ? import("./id-laser-h-BWyU3VgL.js").then((e) => {
560
+ p(e.default);
561
+ }) : import("./id-laser-v-JiWXUlv0.js").then((e) => {
562
+ p(e.default);
563
+ });
564
+ }, [d]), /* @__PURE__ */ u(V, {
565
+ imageUrl: t,
566
+ orientation: i,
567
+ mode: a,
568
+ borderState: "analyzing",
569
+ topContent: /* @__PURE__ */ u("div", {
570
+ class: "IncodeAnalyzingContent",
571
+ children: [/* @__PURE__ */ u(O, { progress: r }), /* @__PURE__ */ u(h, {
572
+ ref: c,
573
+ id: "analyzing-title",
574
+ className: "IncodeAnalyzingTitle",
575
+ tabIndex: -1,
576
+ children: o("idv2.capture.processing.analyzing")
577
+ })]
578
+ }),
579
+ overlayContent: f ? /* @__PURE__ */ u(C, {
580
+ animationData: f,
581
+ loop: !0,
582
+ className: "IncodeAnalyzingLottie"
583
+ }) : null
584
+ });
585
+ }, U = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
586
+ class: e,
587
+ width: "32",
588
+ height: "32",
589
+ viewBox: "0 0 32 32",
590
+ fill: "none",
591
+ xmlns: "http://www.w3.org/2000/svg",
592
+ "aria-hidden": "true",
593
+ ...t,
594
+ children: /* @__PURE__ */ u("path", {
595
+ d: "M16 0C24.8363 0.00012782 32 7.1636 32 16C31.9999 24.8363 24.8363 31.9999 16 32C7.16362 32 7.37067e-05 24.8364 0 16C0 7.16352 7.16357 0 16 0ZM22.3486 11.2314C21.8838 10.7668 21.1503 10.736 20.6494 11.1387L20.6406 11.1455L20.5537 11.2236L13.7139 18.0635L11.4521 15.8008C10.9543 15.3032 10.1473 15.3033 9.64941 15.8008C9.18435 16.2658 9.15345 17.0008 9.55664 17.502L9.56348 17.5098L9.6416 17.5977L12.8125 20.7686C13.2775 21.2335 14.0117 21.2644 14.5127 20.8613L14.5205 20.8545L14.6084 20.7764L22.3486 13.0352C22.8467 12.5371 22.8467 11.7295 22.3486 11.2314Z",
596
+ fill: "#189F60"
597
+ })
598
+ }), W = ({ className: e, ...t }) => /* @__PURE__ */ u("svg", {
599
+ class: e,
600
+ width: "33",
601
+ height: "32",
602
+ viewBox: "0 0 33 32",
603
+ fill: "none",
604
+ xmlns: "http://www.w3.org/2000/svg",
605
+ "aria-hidden": "true",
606
+ ...t,
607
+ children: /* @__PURE__ */ u("path", {
608
+ d: "M16.5 0C25.3219 0 32.5 7.17642 32.5 16C32.5 24.8219 25.3219 32 16.5 32C7.67811 32 0.5 24.8219 0.5 16C0.5 7.17642 7.67811 0 16.5 0ZM13.6553 11.3701C13.1618 10.8767 12.3636 10.8767 11.8701 11.3701C11.3767 11.8636 11.3767 12.6618 11.8701 13.1553L14.9053 16.1924L11.8721 19.2256C11.3803 19.7191 11.3803 20.5173 11.8721 21.0107C12.3656 21.504 13.1658 21.5041 13.6592 21.0107L16.6924 17.9775L19.7334 21.0205C19.981 21.2664 20.3029 21.3916 20.6279 21.3916C20.9513 21.3916 21.2746 21.2664 21.5205 21.0205C22.014 20.527 22.014 19.7269 21.5205 19.2334L18.4775 16.1924L21.5107 13.1572C22.0041 12.6638 22.004 11.8639 21.5107 11.3721C21.0173 10.8786 20.2191 10.8786 19.7256 11.3721L16.6904 14.4053L13.6553 11.3701Z",
609
+ fill: "#E71111"
610
+ })
611
+ }), G = ({ variant: r, imageUrl: i, orientation: a, mode: o, title: c, subtitle: l, buttonText: d, onButtonClick: m, attemptsRemaining: g }) => {
612
+ let { t: _ } = e(), v = s(null);
613
+ return n(() => {
614
+ v.current?.focus();
615
+ }, []), /* @__PURE__ */ u(V, {
616
+ imageUrl: i,
617
+ orientation: a,
618
+ mode: o,
619
+ borderState: r,
620
+ topContent: /* @__PURE__ */ u("div", {
621
+ class: "IncodeIdProcessingResultContent",
622
+ role: "status",
623
+ children: [
624
+ u(r === "success" ? U : W, { className: "IncodeIdProcessingResultIcon" }),
625
+ /* @__PURE__ */ u(f, { size: 16 }),
626
+ c && /* @__PURE__ */ u(h, {
627
+ ref: v,
628
+ className: "IncodeIdProcessingResultTitle",
629
+ tabIndex: -1,
630
+ children: c
631
+ }),
632
+ l && /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(f, { size: 12 }), /* @__PURE__ */ u("p", {
633
+ class: "IncodeIdProcessingResultSubtitle",
634
+ children: l
635
+ })] })
636
+ ]
637
+ }),
638
+ bottomContent: /* @__PURE__ */ u("div", {
639
+ class: "IncodeIdProcessingResultButtonContainer",
640
+ children: [g !== void 0 && g > 0 && /* @__PURE__ */ u("p", {
641
+ class: "IncodeIdProcessingResultAttempts",
642
+ children: _("v2.idError.attemptsLeft", { count: g })
643
+ }), /* @__PURE__ */ u(p, {
644
+ onClick: m,
645
+ "data-testid": "retry-button",
646
+ children: d
647
+ })]
648
+ })
649
+ });
650
+ }, K = ({ manager: t, state: n }) => {
651
+ let { t: r } = e();
652
+ if (!n.previewImageUrl) return null;
653
+ let i = n.currentMode === "passport" ? "passport" : "id";
654
+ return /* @__PURE__ */ u(G, {
655
+ variant: "success",
656
+ imageUrl: n.previewImageUrl,
657
+ orientation: n.orientation,
658
+ mode: i,
659
+ title: r("v2.idSuccess.title"),
660
+ subtitle: n.needsBackCapture ? r("v2.idSuccess.subtitle") : n.needsFrontCapture ? r("idv2.capture.processing.successBackSubtitleScanFront") : r("v2.idSuccess.subtitleBack"),
661
+ buttonText: n.needsBackCapture ? r("idv2.capture.processing.scanBack") : n.needsFrontCapture ? r("idv2.capture.processing.scanFront") : r("idv2.capturePreview.continue"),
662
+ onButtonClick: () => t.nextStep()
663
+ });
664
+ }, q = ({ manager: t, state: n, ...r }) => {
665
+ let { t: i } = e();
666
+ if (n.status === "error") return /* @__PURE__ */ u("div", {
667
+ class: "IncodeIdError",
668
+ role: "alert",
669
+ children: [/* @__PURE__ */ u("div", {
670
+ class: "IncodeIdErrorMessage",
671
+ children: n.error
672
+ }), /* @__PURE__ */ u(p, {
673
+ onClick: () => t.reset(),
674
+ "data-testid": "retry-button",
675
+ children: i("idv2.capturePreview.retry")
676
+ })]
677
+ });
678
+ let a = n.currentMode === "passport" ? "passport" : "id";
679
+ return n.previewImageUrl ? /* @__PURE__ */ u(G, {
680
+ variant: "error",
681
+ imageUrl: n.previewImageUrl,
682
+ orientation: n.orientation,
683
+ mode: a,
684
+ title: n.uploadErrorMessage,
685
+ subtitle: n.uploadErrorDescription,
686
+ buttonText: n.canRetry ? i("idv2.capturePreview.tryAgain") : i("idv2.capturePreview.continue"),
687
+ onButtonClick: () => t.continueFromError(),
688
+ attemptsRemaining: n.attemptsRemaining
689
+ }) : null;
690
+ }, J = ({ manager: t }) => {
691
+ let { t: r } = e(), i = s(null);
692
+ return n(() => {
693
+ i.current?.focus();
694
+ }, []), /* @__PURE__ */ u(m, {
695
+ hideHeader: !0,
696
+ hideFooterBranding: !0,
697
+ className: "IncodeIdExpiredPage",
698
+ children: [/* @__PURE__ */ u("div", {
699
+ class: "IncodeIdExpiredContent",
700
+ role: "alert",
701
+ children: [
702
+ /* @__PURE__ */ u(W, { className: "IncodeIdExpiredIcon" }),
703
+ /* @__PURE__ */ u(h, {
704
+ ref: i,
705
+ tabIndex: -1,
706
+ className: "IncodeIdExpiredTitle",
707
+ children: r("idv2.capture.notifications.expiredId")
708
+ }),
709
+ /* @__PURE__ */ u(f, { size: 12 }),
710
+ /* @__PURE__ */ u("p", {
711
+ class: "IncodeIdExpiredSubtitle",
712
+ children: r("idv2.capture.notifications.useDifferent")
713
+ }),
714
+ /* @__PURE__ */ u(f, { size: 80 })
715
+ ]
716
+ }), /* @__PURE__ */ u("div", {
717
+ class: "IncodeIdExpiredButtonContainer",
718
+ children: /* @__PURE__ */ u(p, {
719
+ variant: "primary",
720
+ onClick: () => {
721
+ t.retryCapture();
722
+ },
723
+ children: r("idv2.unacceptedId.tryAgain")
724
+ })
725
+ })]
726
+ });
727
+ }, Y = /* @__PURE__ */ new Map(), X = !1, Z = {
728
+ blur: () => import("./blurdevicelottie-9WvZCZ6C.js"),
729
+ glare: () => import("./glaredevicelottie-BfI84cPw.js"),
730
+ align: () => import("./aligndevicelottie-C9xl1spu.js"),
731
+ front: () => import("./frontdevicelottie-DadDp6be.js"),
732
+ back: () => import("./backdevicelottie-DBB1YCtW.js")
733
+ };
734
+ function Q(e) {
735
+ X || (X = !0, Promise.all([
736
+ Z.blur(),
737
+ Z.glare(),
738
+ Z.align(),
739
+ Z.front(),
740
+ Z.back()
741
+ ]).then(([t, n, r, i, a]) => {
742
+ Y.set("blur", t.default), Y.set("glare", n.default), Y.set("align", r.default), Y.set("front", i.default), Y.set("back", a.default), e?.();
743
+ }).catch(() => {}));
744
+ }
745
+ function oe() {
746
+ Q();
747
+ }
748
+ function se() {
749
+ n(() => {
750
+ oe();
751
+ }, []);
752
+ }
753
+ function ce(t, r) {
754
+ let { t: i } = e(), [, a] = l(0);
755
+ if (n(() => {
756
+ Q(() => a((e) => e + 1));
757
+ }, []), t === "blur") return {
758
+ title: i("idv2.capture.notifications.blur.title"),
759
+ description: i("idv2.capture.notifications.blur.description"),
760
+ animationData: Y.get("blur") ?? null
761
+ };
762
+ if (t === "glare") return {
763
+ title: i("idv2.capture.notifications.glare.title"),
764
+ description: i("idv2.capture.notifications.glare.description"),
765
+ animationData: Y.get("glare") ?? null
766
+ };
767
+ if (t === "farAway") return {
768
+ title: i("idv2.capture.notifications.notAligned.title"),
769
+ description: i("idv2.capture.notifications.notAligned.description"),
770
+ animationData: Y.get("align") ?? null
771
+ };
772
+ if (t === "wrongSide") {
773
+ let e = r === "back";
774
+ return {
775
+ title: i(e ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
776
+ description: i(e ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
777
+ animationData: Y.get(e ? "back" : "front") ?? null
778
+ };
779
+ }
780
+ return null;
781
+ }
782
+ //#endregion
783
+ //#region src/modules/id/capture/captureNotification.tsx
784
+ var le = ({ detectionStatus: r, mode: i, isCapturing: a }) => {
785
+ let { t: c } = e(), l = ce(r, i), p = s(null), m = s({
786
+ message: "",
787
+ at: 0
788
+ }), h = s(r), g = s(!1), _ = s(), v = s(), y = r === "detecting" || r === "idNotDetected" || r === "manualCapture", b = r === "manualCapture", x = r === "wrongSide", S = r === "farAway", w = r === "glare", T = r === "blur", E = o((e) => {
789
+ let t = Date.now(), n = m.current;
790
+ if (e === n.message && t - n.at < 200) return;
791
+ m.current = {
792
+ message: e,
793
+ at: t
794
+ };
795
+ let r = p.current;
796
+ r && (clearTimeout(_.current), r.textContent = "", v.current = setTimeout(() => {
797
+ r.textContent = e, _.current = setTimeout(() => {
798
+ r.textContent = "";
799
+ }, 3e3);
800
+ }, 50));
801
+ }, []), D = o(() => c(i === "passport" ? "idv2.capture.fillFramePassport" : i === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [i, c]);
802
+ return n(() => {
803
+ if (b) {
804
+ g.current = !1;
805
+ return;
806
+ }
807
+ if (g.current || !y) return;
808
+ let e = setTimeout(() => {
809
+ g.current = !0, E(D());
810
+ }, 500);
811
+ return () => clearTimeout(e);
812
+ }, [
813
+ y,
814
+ b,
815
+ E,
816
+ D
817
+ ]), n(() => {
818
+ let e = h.current;
819
+ h.current = r, e !== "manualCapture" && b && E(c("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
820
+ }, [
821
+ E,
822
+ r,
823
+ b,
824
+ c
825
+ ]), n(() => {
826
+ if (!a) {
827
+ if (x) {
828
+ let e = i === "front" || i === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
829
+ E(`${c(`${e}.title`)}. ${c(`${e}.description`)}`);
830
+ return;
831
+ }
832
+ if (S) {
833
+ E(`${c("idv2.capture.notifications.notAligned.title")}.`);
834
+ return;
835
+ }
836
+ if (w) {
837
+ E(`${c("idv2.capture.notifications.glare.title")}.`);
838
+ return;
839
+ }
840
+ if (T) {
841
+ E(`${c("idv2.capture.notifications.blur.title")}.`);
842
+ return;
843
+ }
844
+ y && g.current && E(D());
845
+ }
846
+ }, [
847
+ E,
848
+ T,
849
+ a,
850
+ S,
851
+ w,
852
+ y,
853
+ x,
854
+ i,
855
+ c,
856
+ D
857
+ ]), n(() => () => {
858
+ clearTimeout(v.current), clearTimeout(_.current);
859
+ }, []), /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u("div", {
860
+ ref: p,
861
+ class: "IncodeSrOnly",
862
+ "aria-live": "assertive",
863
+ "aria-atomic": "true"
864
+ }), l ? /* @__PURE__ */ u("div", {
865
+ class: d("IncodeIdCaptureNotification"),
866
+ "aria-hidden": "true",
867
+ children: /* @__PURE__ */ u("div", {
868
+ class: "IncodeIdCaptureNotificationContent",
869
+ children: [
870
+ /* @__PURE__ */ u("div", {
871
+ class: d("IncodeIdCaptureNotificationText"),
872
+ children: [/* @__PURE__ */ u("div", {
873
+ class: "IncodeIdCaptureNotificationTitle",
874
+ children: l.title
875
+ }), l.description && /* @__PURE__ */ u("div", {
876
+ class: "IncodeIdCaptureNotificationDescription",
877
+ children: l.description
878
+ })]
879
+ }),
880
+ /* @__PURE__ */ u(f, {
881
+ size: 16,
882
+ direction: "horizontal"
883
+ }),
884
+ l.animationData && /* @__PURE__ */ u("div", {
885
+ class: "IncodeIdCaptureNotificationAnimation",
886
+ children: /* @__PURE__ */ u(C, {
887
+ animationData: l.animationData,
888
+ loop: !0
889
+ })
890
+ })
891
+ ]
892
+ })
893
+ }) : null] });
894
+ }, ue = i(() => import("./front-horizontal-hint-aGAhadA2.js")), de = i(() => import("./front-vertical-hint-DZz1VeNp.js")), fe = i(() => import("./back-horizontal-hint-Be3dUGk6.js")), pe = i(() => import("./back-vertical-hint-Bz_rnhd-.js")), me = i(() => import("./passport-horizontal-hint-CFsGs7Dp.js")), he = i(() => import("./passport-vertical-hint-BnCpKWeN.js")), ge = {
895
+ "front-horizontal": 348,
896
+ "back-horizontal": 348,
897
+ "passport-horizontal": 342
898
+ }, _e = {
899
+ "front-vertical": 446,
900
+ "back-vertical": 446,
901
+ "passport-vertical": 342
902
+ };
903
+ function ve(e, t, n, r) {
904
+ let i = `${e}-${t}`, a = ge[i];
905
+ if (a) return n / a;
906
+ let o = _e[i];
907
+ return o ? r / o : 1;
908
+ }
909
+ var ye = ({ mode: e, orientation: t }) => {
910
+ let r = s(null), [i, a] = l(1);
911
+ n(() => {
912
+ let n = r.current;
913
+ if (!n) return;
914
+ let i = () => {
915
+ a(ve(e, t, n.clientWidth, n.clientHeight));
916
+ };
917
+ i();
918
+ let o = new ResizeObserver(i);
919
+ return o.observe(n), () => o.disconnect();
920
+ }, [e, t]);
921
+ let o = () => e === "front" ? u(t === "horizontal" ? ue : de, {}) : e === "back" ? u(t === "horizontal" ? fe : pe, {}) : e === "passport" ? u(t === "horizontal" ? me : he, {}) : null;
922
+ return /* @__PURE__ */ u("div", {
923
+ ref: r,
924
+ class: "IncodeIdHint",
925
+ "aria-hidden": "true",
926
+ role: "presentation",
927
+ children: /* @__PURE__ */ u("div", {
928
+ class: "IncodeIdHintAnimated",
929
+ children: /* @__PURE__ */ u(c, {
930
+ fallback: null,
931
+ children: /* @__PURE__ */ u("div", {
932
+ class: "IncodeIdHintSvg",
933
+ style: { transform: `scale(${i})` },
934
+ children: o()
935
+ })
936
+ })
937
+ })
938
+ });
939
+ }, be = r(({ mode: t, orientation: r, detectionStatus: i, counterValue: o, isCapturing: s, showManualCapture: c, onCapture: l, onOpenHelp: f, helpButtonRef: p, captureButtonRef: m }, h) => {
940
+ let { t: g } = e();
941
+ se(), n(() => {
942
+ c && m && m.current?.focus();
943
+ }, [c, m]);
944
+ let _ = () => s || i === "capturing" ? "capturing" : i === "blur" || i === "glare" || i === "wrongSide" || i === "farAway" ? "error" : "idle", v = a(() => {
945
+ if (s || i === "capturing") return {
946
+ title: g("idv2.capture.takingPhoto"),
947
+ subtitle: g("idv2.capture.dontMove")
948
+ };
949
+ if (i === "detecting" || i === "idNotDetected" || i === "manualCapture") {
950
+ let e = i === "manualCapture";
951
+ return t === "passport" ? {
952
+ title: g("idv2.capture.fillFramePassport"),
953
+ subtitle: e ? "" : g("idv2.capture.v2.autoCapture")
954
+ } : t === "back" ? {
955
+ title: g("idv2.capture.v2.fillFrameBack"),
956
+ subtitle: e ? "" : g("idv2.capture.v2.autoCapture")
957
+ } : {
958
+ title: g("idv2.capture.v2.fillFrameFront"),
959
+ subtitle: e ? "" : g("idv2.capture.v2.autoCapture")
960
+ };
961
+ }
962
+ return null;
963
+ }, [
964
+ s,
965
+ i,
966
+ t,
967
+ g
968
+ ]), y = _(), b = t === "passport", x = r !== "vertical" || b, S = x ? "horizontal" : "vertical";
969
+ return /* @__PURE__ */ u(P, {
970
+ className: d("IncodeCaptureOverlayId", !x && "IncodeCaptureOverlayVertical"),
971
+ children: [
972
+ /* @__PURE__ */ u("div", {
973
+ class: "IncodeCaptureTopSection",
974
+ children: [/* @__PURE__ */ u(le, {
975
+ detectionStatus: i,
976
+ mode: t,
977
+ isCapturing: s
978
+ }), /* @__PURE__ */ u(F, {
979
+ title: v?.title ?? "",
980
+ subtitle: v?.subtitle,
981
+ visible: v !== null,
982
+ titleId: "id-capture-heading"
983
+ })]
984
+ }),
985
+ /* @__PURE__ */ u(N, {
986
+ ref: h,
987
+ variant: "locked",
988
+ orientation: S,
989
+ frameState: y,
990
+ className: d(b && "IncodeCaptureFramePassport"),
991
+ children: [s && o > 0 && /* @__PURE__ */ u("div", {
992
+ class: "IncodeCaptureCounter",
993
+ children: o
994
+ }), i === "idNotDetected" && /* @__PURE__ */ u(ye, {
995
+ mode: t,
996
+ orientation: r ?? "horizontal"
997
+ })]
998
+ }),
999
+ /* @__PURE__ */ u("div", {
1000
+ class: "IncodeSrOnly",
1001
+ "aria-live": "polite",
1002
+ "aria-atomic": "true",
1003
+ children: s && o > 0 ? o : ""
1004
+ }),
1005
+ /* @__PURE__ */ u(L, {
1006
+ onOpenHelp: f,
1007
+ onCapture: l,
1008
+ isManualCapture: c,
1009
+ helpButtonRef: p,
1010
+ captureButtonRef: m,
1011
+ captureAriaDescribedBy: c ? "manual-capture-tooltip" : void 0,
1012
+ children: c ? /* @__PURE__ */ u("div", {
1013
+ class: "IncodeIdManualCaptureTooltipContainer",
1014
+ children: /* @__PURE__ */ u("div", {
1015
+ id: "manual-capture-tooltip",
1016
+ role: "tooltip",
1017
+ class: "IncodeIdManualCaptureTooltip",
1018
+ children: /* @__PURE__ */ u("ol", {
1019
+ class: "IncodeIdManualCaptureTooltipList",
1020
+ children: [/* @__PURE__ */ u("li", { children: g("idv2.commonIssues.firstStep") }), /* @__PURE__ */ u("li", { children: g("idv2.commonIssues.secondStep") })]
1021
+ })
1022
+ })
1023
+ }) : null
1024
+ })
1025
+ ]
1026
+ });
1027
+ }), $ = ({ manager: t, state: n }) => {
1028
+ let { t: r } = e();
1029
+ if (n.captureStatus === "initializing") return /* @__PURE__ */ u(m, {
1030
+ hideHeader: !0,
1031
+ hideFooterBranding: !0,
1032
+ className: "IncodeIdCapturePage",
1033
+ children: /* @__PURE__ */ u(g, {
1034
+ size: "large",
1035
+ title: `${r("webcam.loading")}...`
1036
+ })
1037
+ });
1038
+ if (n.captureStatus === "uploading" && n.previewImageUrl) {
1039
+ let e = n.currentMode === "passport" ? "passport" : "id";
1040
+ return /* @__PURE__ */ u(H, {
1041
+ imageUrl: n.previewImageUrl,
1042
+ progress: n.uploadProgress ?? 0,
1043
+ orientation: n.orientation,
1044
+ mode: e
1045
+ });
1046
+ }
1047
+ return n.captureStatus === "success" && n.previewImageUrl ? /* @__PURE__ */ u(K, {
1048
+ manager: t,
1049
+ state: n
1050
+ }) : n.captureStatus === "uploadError" && n.previewImageUrl ? /* @__PURE__ */ u(q, {
1051
+ manager: t,
1052
+ state: n
1053
+ }) : /* @__PURE__ */ u(xe, {
1054
+ manager: t,
1055
+ state: n
1056
+ });
1057
+ }, xe = ({ manager: e, state: t }) => {
1058
+ let r = s(null), i = s(null), a = s(null), o = s(null), c = s(null), [d, f] = l(!1), [p, h] = l(!1);
1059
+ n(() => {
1060
+ let e = r.current;
1061
+ if (!e || !t.stream) {
1062
+ h(!1);
1063
+ return;
1064
+ }
1065
+ h(!1);
1066
+ let n = () => h(!0);
1067
+ return e.addEventListener("playing", n), e.srcObject = t.stream, e.play().catch(() => {}), () => e.removeEventListener("playing", n);
1068
+ }, [t.stream]), n(() => {
1069
+ let t = () => {
1070
+ let t = i.current;
1071
+ if (!t) return;
1072
+ let n = t.getBoundingClientRect();
1073
+ e.updateDetectionArea({
1074
+ x: n.left,
1075
+ y: n.top,
1076
+ width: n.width,
1077
+ height: n.height
1078
+ });
1079
+ };
1080
+ return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
1081
+ }, [
1082
+ e,
1083
+ t.orientation,
1084
+ p
1085
+ ]);
1086
+ let g = t.captureStatus === "capturing" || t.detectionStatus === "capturing", _ = t.detectionStatus, v = _ === "manualCapture" || t.showCaptureButtonInAuto && t.captureStatus === "detecting" && _ !== "capturing", y = () => {
1087
+ f(!0);
1088
+ }, b = () => {
1089
+ f(!1), requestAnimationFrame(() => {
1090
+ o.current ? o.current.focus() : a.current?.focus();
1091
+ });
1092
+ }, x = () => {
1093
+ f(!1), e.switchToManualCapture();
1094
+ }, S = () => {
1095
+ e.capture();
1096
+ };
1097
+ return /* @__PURE__ */ u(m, {
1098
+ hideHeader: !0,
1099
+ hideFooterBranding: !0,
1100
+ className: "IncodeIdCapturePage",
1101
+ children: [
1102
+ /* @__PURE__ */ u(I, {
1103
+ stream: t.stream,
1104
+ "aria-hidden": d || void 0,
1105
+ children: /* @__PURE__ */ u(be, {
1106
+ ref: i,
1107
+ mode: t.currentMode,
1108
+ orientation: t.orientation,
1109
+ detectionStatus: t.detectionStatus,
1110
+ counterValue: t.counterValue,
1111
+ isCapturing: g,
1112
+ showManualCapture: v,
1113
+ onCapture: S,
1114
+ onOpenHelp: y,
1115
+ helpButtonRef: a,
1116
+ captureButtonRef: o
1117
+ })
1118
+ }),
1119
+ /* @__PURE__ */ u("div", { ref: c }),
1120
+ /* @__PURE__ */ u(ie, {
1121
+ open: d,
1122
+ onClose: b,
1123
+ onTakeManually: x,
1124
+ portalContainer: c.current
1125
+ })
1126
+ ]
1127
+ });
1128
+ }, Se = ({ manager: t, state: r }) => {
1129
+ let { t: i } = e(), [a, o] = l(!1), [s, c] = l(null), f = r.selectedDocumentType === "passport", p = r.currentMode === "back";
1130
+ if (n(() => {
1131
+ f ? import("./passport-tutorial-z0LN7Hsp.js").then((e) => {
1132
+ c(e.default);
1133
+ }) : p ? import("./back-tutorial-BNTyW-1N.js").then((e) => {
1134
+ c(e.default);
1135
+ }) : import("./id-tutorial-Cc9xg5_J.js").then((e) => {
1136
+ c(e.default);
1137
+ });
1138
+ }, [f, p]), !s) return null;
1139
+ let m = i(f ? "idv2.capture.passport.title" : p ? "idv2.backTutorial.title" : "idv2.tutorial.v2.title"), h = i(f ? "idv2.capture.passport.subtitle" : p ? "idv2.backTutorial.subtitle" : "idv2.tutorial.subtitle"), g = i(p ? "idv2.backTutorial.disclaimer" : "idv2.tutorial.v2.autocapture");
1140
+ return /* @__PURE__ */ u(w, {
1141
+ animationData: s,
1142
+ title: m,
1143
+ subtitle: h,
1144
+ onContinue: () => {
1145
+ o(!0), t.nextStep();
1146
+ },
1147
+ buttonText: i("idv2.tutorial.startScan"),
1148
+ disclaimerText: g,
1149
+ isLoading: a,
1150
+ className: d("IncodeIdTutorial", f ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId")
1151
+ });
1152
+ }, Ce = {
1153
+ digitalIdUpload: {
1154
+ type: "digitalIdUpload",
1155
+ icon: () => /* @__PURE__ */ u("svg", {
1156
+ width: "61",
1157
+ height: "61",
1158
+ viewBox: "0 0 61 61",
1159
+ fill: "none",
1160
+ xmlns: "http://www.w3.org/2000/svg",
1161
+ "aria-hidden": "true",
1162
+ focusable: "false",
1163
+ class: "IncodeDigitalIdIcon",
1164
+ children: [
1165
+ /* @__PURE__ */ u("title", { children: "Digital ID Icon" }),
1166
+ /* @__PURE__ */ u("g", {
1167
+ clipPath: "url(#clip0_24620_2022)",
1168
+ children: [
1169
+ /* @__PURE__ */ u("g", {
1170
+ clipPath: "url(#clip1_24620_2022)",
1171
+ children: [
1172
+ /* @__PURE__ */ u("path", {
1173
+ d: "M15.792 9.26169C15.792 8.51041 16.401 7.90137 17.1523 7.90137L44.0187 7.90137C44.77 7.90137 45.379 8.51041 45.379 9.26169L45.379 50.4115C45.379 51.1628 44.77 51.7718 44.0187 51.7718L17.1523 51.7718C16.401 51.7718 15.792 51.1628 15.792 50.4115L15.792 9.26169Z",
1174
+ fill: "white"
1175
+ }),
1176
+ /* @__PURE__ */ u("rect", {
1177
+ x: "31.0889",
1178
+ y: "13.8564",
1179
+ width: "12.9231",
1180
+ height: "15.8138",
1181
+ rx: "1.36032",
1182
+ fill: "#EAF0F6"
1183
+ }),
1184
+ /* @__PURE__ */ u("path", {
1185
+ fillRule: "evenodd",
1186
+ clipRule: "evenodd",
1187
+ d: "M36.0471 19.967C36.0471 20.1823 35.8722 20.3577 35.6564 20.3577H34.2571C34.0418 20.3577 33.8664 20.1823 33.8664 19.967V18.5677C33.8664 18.3519 34.0418 18.177 34.2571 18.177H35.6564C35.8722 18.177 36.0471 18.3519 36.0471 18.5677V19.967ZM35.6564 17.2588H34.2571C33.5354 17.2588 32.9482 17.846 32.9482 18.5677V19.967C32.9482 20.6887 33.5354 21.2759 34.2571 21.2759H35.6564C36.3781 21.2759 36.9653 20.6887 36.9653 19.967V18.5677C36.9653 17.846 36.3781 17.2588 35.6564 17.2588Z",
1188
+ class: "IncodeDigitalIdIconFill"
1189
+ }),
1190
+ /* @__PURE__ */ u("path", {
1191
+ fillRule: "evenodd",
1192
+ clipRule: "evenodd",
1193
+ d: "M34.9571 18.8086C34.7037 18.8086 34.498 19.017 34.498 19.2704C34.498 19.5239 34.7037 19.7295 34.9571 19.7295C35.2106 19.7295 35.4162 19.5239 35.4162 19.2704V19.2649C35.4162 19.0115 35.2106 18.8086 34.9571 18.8086Z",
1194
+ class: "IncodeDigitalIdIconFill"
1195
+ }),
1196
+ /* @__PURE__ */ u("path", {
1197
+ fillRule: "evenodd",
1198
+ clipRule: "evenodd",
1199
+ d: "M34.9571 23.9736C34.7037 23.9736 34.498 24.1821 34.498 24.4355C34.498 24.6889 34.7037 24.8946 34.9571 24.8946C35.2106 24.8946 35.4162 24.6889 35.4162 24.4355V24.43C35.4162 24.1766 35.2106 23.9736 34.9571 23.9736Z",
1200
+ class: "IncodeDigitalIdIconFill"
1201
+ }),
1202
+ /* @__PURE__ */ u("path", {
1203
+ fillRule: "evenodd",
1204
+ clipRule: "evenodd",
1205
+ d: "M36.0471 25.132C36.0471 25.3473 35.8722 25.5227 35.6564 25.5227H34.2571C34.0418 25.5227 33.8664 25.3473 33.8664 25.132V23.7327C33.8664 23.5169 34.0418 23.342 34.2571 23.342H35.6564C35.8722 23.342 36.0471 23.5169 36.0471 23.7327V25.132ZM35.6564 22.4238H34.2571C33.5354 22.4238 32.9482 23.011 32.9482 23.7327V25.132C32.9482 25.8537 33.5354 26.4409 34.2571 26.4409H35.6564C36.3781 26.4409 36.9653 25.8537 36.9653 25.132V23.7327C36.9653 23.011 36.3781 22.4238 35.6564 22.4238Z",
1206
+ class: "IncodeDigitalIdIconFill"
1207
+ }),
1208
+ /* @__PURE__ */ u("path", {
1209
+ fillRule: "evenodd",
1210
+ clipRule: "evenodd",
1211
+ d: "M41.2239 25.132C41.2239 25.3473 41.049 25.5227 40.8332 25.5227H39.4339C39.2186 25.5227 39.0432 25.3473 39.0432 25.132V23.7327C39.0432 23.5169 39.2186 23.342 39.4339 23.342H40.8332C41.049 23.342 41.2239 23.5169 41.2239 23.7327V25.132ZM40.8332 22.4238H39.4339C38.7122 22.4238 38.125 23.011 38.125 23.7327V25.132C38.125 25.8537 38.7122 26.4409 39.4339 26.4409H40.8332C41.5549 26.4409 42.1421 25.8537 42.1421 25.132V23.7327C42.1421 23.011 41.5549 22.4238 40.8332 22.4238Z",
1212
+ class: "IncodeDigitalIdIconFill"
1213
+ }),
1214
+ /* @__PURE__ */ u("path", {
1215
+ fillRule: "evenodd",
1216
+ clipRule: "evenodd",
1217
+ d: "M40.1183 23.9658C39.8649 23.9658 39.6592 24.1715 39.6592 24.4249V24.43C39.6592 24.6834 39.8649 24.8863 40.1183 24.8863C40.3717 24.8863 40.5774 24.6783 40.5774 24.4249C40.5774 24.1715 40.3717 23.9658 40.1183 23.9658Z",
1218
+ class: "IncodeDigitalIdIconFill"
1219
+ }),
1220
+ /* @__PURE__ */ u("path", {
1221
+ fillRule: "evenodd",
1222
+ clipRule: "evenodd",
1223
+ d: "M38.5841 18.1797C38.8375 18.1797 39.0432 17.9741 39.0432 17.7206V17.7151C39.0432 17.4617 38.8375 17.2588 38.5841 17.2588C38.3307 17.2588 38.125 17.4672 38.125 17.7206C38.125 17.9741 38.3307 18.1797 38.5841 18.1797Z",
1224
+ class: "IncodeDigitalIdIconFill"
1225
+ }),
1226
+ /* @__PURE__ */ u("path", {
1227
+ fillRule: "evenodd",
1228
+ clipRule: "evenodd",
1229
+ d: "M40.9929 17.2588H40.1183C39.8644 17.2588 39.6592 17.4645 39.6592 17.7179C39.6592 17.9713 39.8644 18.177 40.1183 18.177H40.9929C41.1118 18.177 41.2086 18.2738 41.2086 18.3932V19.2673C41.2086 19.5207 41.4138 19.7264 41.6677 19.7264C41.9211 19.7264 42.1268 19.5207 42.1268 19.2673V18.3932C42.1268 17.7675 41.6181 17.2588 40.9929 17.2588Z",
1230
+ class: "IncodeDigitalIdIconFill"
1231
+ }),
1232
+ /* @__PURE__ */ u("path", {
1233
+ fillRule: "evenodd",
1234
+ clipRule: "evenodd",
1235
+ d: "M41.6677 20.3545H40.1183C39.8649 20.3545 39.6592 20.5602 39.6592 20.8136C39.6592 21.067 39.8649 21.2727 40.1183 21.2727H41.6677C41.9211 21.2727 42.1268 21.067 42.1268 20.8136C42.1268 20.5602 41.9211 20.3545 41.6677 20.3545Z",
1236
+ class: "IncodeDigitalIdIconFill"
1237
+ }),
1238
+ /* @__PURE__ */ u("path", {
1239
+ fillRule: "evenodd",
1240
+ clipRule: "evenodd",
1241
+ d: "M38.5841 21.2762C38.8375 21.2762 39.0432 21.0705 39.0432 20.8171V19.9426C39.0432 19.8237 39.1401 19.7268 39.2594 19.7268H40.1335C40.387 19.7268 40.5926 19.5211 40.5926 19.2677C40.5926 19.0143 40.387 18.8086 40.1335 18.8086H39.2594C38.6337 18.8086 38.125 19.3173 38.125 19.9426V20.8171C38.125 21.0705 38.3307 21.2762 38.5841 21.2762Z",
1242
+ class: "IncodeDigitalIdIconFill"
1243
+ }),
1244
+ /* @__PURE__ */ u("rect", {
1245
+ x: "18.0088",
1246
+ y: "32.5596",
1247
+ width: "10.3725",
1248
+ height: "2.04049",
1249
+ rx: "0.680162",
1250
+ fill: "#EBECEF"
1251
+ }),
1252
+ /* @__PURE__ */ u("rect", {
1253
+ x: "15.792",
1254
+ y: "10.2881",
1255
+ width: "29.587",
1256
+ height: "2.04049",
1257
+ fill: "#EBECEF"
1258
+ }),
1259
+ /* @__PURE__ */ u("rect", {
1260
+ x: "18.0088",
1261
+ y: "36.1318",
1262
+ width: "10.3725",
1263
+ height: "2.04049",
1264
+ rx: "0.680162",
1265
+ fill: "#EBECEF"
1266
+ }),
1267
+ /* @__PURE__ */ u("rect", {
1268
+ x: "18.0088",
1269
+ y: "39.7002",
1270
+ width: "13.7733",
1271
+ height: "2.04049",
1272
+ rx: "0.680162",
1273
+ fill: "#EBECEF"
1274
+ })
1275
+ ]
1276
+ }),
1277
+ /* @__PURE__ */ u("path", {
1278
+ d: "M44.0186 7.40527C45.0437 7.40527 45.875 8.23653 45.875 9.26172L45.875 50.4111C45.875 51.4363 45.0437 52.2676 44.0186 52.2676L17.1523 52.2676C16.1272 52.2676 15.2959 51.4363 15.2959 50.4111L15.2959 9.26172C15.2959 8.23653 16.1272 7.40527 17.1523 7.40527L44.0186 7.40527Z",
1279
+ stroke: "#EBECEF",
1280
+ "stroke-width": "0.991903"
1281
+ }),
1282
+ /* @__PURE__ */ u("g", {
1283
+ clipPath: "url(#clip2_24620_2022)",
1284
+ children: [
1285
+ /* @__PURE__ */ u("rect", {
1286
+ x: "17.1406",
1287
+ y: "13.9385",
1288
+ width: "12.9231",
1289
+ height: "15.7324",
1290
+ rx: "0.936455",
1291
+ class: "IncodeDigitalIdIconFill"
1292
+ }),
1293
+ /* @__PURE__ */ u("path", {
1294
+ d: "M21.8309 24.4387V24.4627C21.8243 24.9696 21.3976 25.3508 20.5508 25.6062C21.5712 26.3475 22.5916 26.9405 23.612 26.9405C24.6323 26.9405 25.6528 26.3475 26.6732 25.6062C25.8321 25.3505 25.4054 24.9687 25.393 24.461C25.393 24.2683 25.3937 22.3909 25.3946 22.1982C25.4554 22.2068 25.4502 22.2013 25.3946 22.1859C25.3963 21.551 25.399 22.382 25.4028 21.5145C25.4066 20.6469 21.772 19.8708 21.8253 22.2529C21.8261 22.4958 21.8275 24.1637 21.8309 24.4387Z",
1295
+ fill: "url(#paint0_linear_24620_2022)"
1296
+ }),
1297
+ /* @__PURE__ */ u("path", {
1298
+ d: "M30.0636 27.3311C30.0636 27.7906 30.0636 28.306 30.0636 28.736C30.0636 29.2532 29.6443 29.6722 29.1272 29.6722H18.0771C17.5599 29.6722 17.1406 29.2532 17.1406 28.736C17.1406 28.3274 17.1406 27.8355 17.1406 27.3678C17.7416 26.2926 21.2377 25.2953 21.2377 25.2953C21.5621 25.8813 22.5143 26.4159 23.489 26.4398C24.5467 26.4657 25.6309 25.931 25.9681 25.2949C25.9681 25.2949 29.4626 26.2556 30.0636 27.3311Z",
1299
+ fill: "#CECECE"
1300
+ }),
1301
+ /* @__PURE__ */ u("path", {
1302
+ d: "M21.79 23.277C23.2839 23.1218 24.6905 23.7686 24.6905 23.7686C24.6905 23.7686 24.4117 25.2333 21.79 24.8076V23.277Z",
1303
+ fill: "#CDCDCD"
1304
+ }),
1305
+ /* @__PURE__ */ u("path", {
1306
+ d: "M20.5573 20.2079C20.7564 19.8756 21.0049 20.1041 21.1042 20.2599L21.243 21.7372C21.2381 21.8658 21.1611 21.9474 20.9602 21.9729C20.7091 22.0046 20.5432 21.3207 20.4853 21.0654C20.4275 20.8101 20.3083 20.6232 20.5573 20.2079Z",
1307
+ fill: "url(#paint1_linear_24620_2022)"
1308
+ }),
1309
+ /* @__PURE__ */ u("path", {
1310
+ d: "M26.5706 20.2909C26.3745 19.9567 26.1239 20.1829 26.0231 20.3377L25.8704 21.8136C25.874 21.9422 25.9503 22.0246 26.1509 22.0519C26.4017 22.0861 26.5741 21.4038 26.6344 21.149C26.6946 20.8943 26.8156 20.7085 26.5706 20.2909Z",
1311
+ fill: "url(#paint2_linear_24620_2022)"
1312
+ }),
1313
+ /* @__PURE__ */ u("path", {
1314
+ d: "M26.3682 20.5538C26.3682 22.6903 24.8215 24.4222 23.6143 24.4222C22.2939 24.4222 20.8604 22.6903 20.8604 20.5538C20.8604 18.6502 21.0123 16.6162 23.6143 16.6162C26.2163 16.6162 26.3682 18.6062 26.3682 20.5538Z",
1315
+ fill: "#FAFAFA"
1316
+ })
1317
+ ]
1318
+ })
1319
+ ]
1320
+ }),
1321
+ /* @__PURE__ */ u("defs", { children: [
1322
+ /* @__PURE__ */ u("linearGradient", {
1323
+ id: "paint0_linear_24620_2022",
1324
+ x1: "23.3405",
1325
+ y1: "22.3978",
1326
+ x2: "23.3405",
1327
+ y2: "25.346",
1328
+ gradientUnits: "userSpaceOnUse",
1329
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
1330
+ offset: "1",
1331
+ stopColor: "white"
1332
+ })]
1333
+ }),
1334
+ /* @__PURE__ */ u("linearGradient", {
1335
+ id: "paint1_linear_24620_2022",
1336
+ x1: "21.0945",
1337
+ y1: "20.9548",
1338
+ x2: "20.6152",
1339
+ y2: "21.0435",
1340
+ gradientUnits: "userSpaceOnUse",
1341
+ children: [
1342
+ /* @__PURE__ */ u("stop", {
1343
+ offset: "0.171875",
1344
+ stopColor: "#BDBDBD"
1345
+ }),
1346
+ /* @__PURE__ */ u("stop", {
1347
+ offset: "0.640625",
1348
+ stopColor: "#E1E1E1"
1349
+ }),
1350
+ /* @__PURE__ */ u("stop", {
1351
+ offset: "1",
1352
+ stopColor: "#DDDDDD"
1353
+ })
1354
+ ]
1355
+ }),
1356
+ /* @__PURE__ */ u("linearGradient", {
1357
+ id: "paint2_linear_24620_2022",
1358
+ x1: "26.0263",
1359
+ y1: "21.0327",
1360
+ x2: "26.5047",
1361
+ y2: "21.1259",
1362
+ gradientUnits: "userSpaceOnUse",
1363
+ children: [
1364
+ /* @__PURE__ */ u("stop", {
1365
+ offset: "0.0416667",
1366
+ stopColor: "#B5B5B5"
1367
+ }),
1368
+ /* @__PURE__ */ u("stop", {
1369
+ offset: "0.362488",
1370
+ stopColor: "#E2E2E2"
1371
+ }),
1372
+ /* @__PURE__ */ u("stop", {
1373
+ offset: "1",
1374
+ stopColor: "white"
1375
+ })
1376
+ ]
1377
+ }),
1378
+ /* @__PURE__ */ u("clipPath", {
1379
+ id: "clip0_24620_2022",
1380
+ children: /* @__PURE__ */ u("rect", {
1381
+ width: "60",
1382
+ height: "60",
1383
+ fill: "white",
1384
+ transform: "translate(0.5 0.5)"
1385
+ })
1386
+ }),
1387
+ /* @__PURE__ */ u("clipPath", {
1388
+ id: "clip1_24620_2022",
1389
+ children: /* @__PURE__ */ u("path", {
1390
+ d: "M15.792 9.26169C15.792 8.51041 16.401 7.90137 17.1523 7.90137L44.0187 7.90137C44.77 7.90137 45.379 8.51041 45.379 9.26169L45.379 50.4115C45.379 51.1628 44.77 51.7718 44.0187 51.7718L17.1523 51.7718C16.401 51.7718 15.792 51.1628 15.792 50.4115L15.792 9.26169Z",
1391
+ fill: "white"
1392
+ })
1393
+ }),
1394
+ /* @__PURE__ */ u("clipPath", {
1395
+ id: "clip2_24620_2022",
1396
+ children: /* @__PURE__ */ u("rect", {
1397
+ x: "17.1406",
1398
+ y: "13.9385",
1399
+ width: "12.9231",
1400
+ height: "15.7324",
1401
+ rx: "0.680162",
1402
+ fill: "white"
1403
+ })
1404
+ })
1405
+ ] })
1406
+ ]
1407
+ }),
1408
+ title: "idv2.chooser.digitalIdUploadButtonTitle",
1409
+ testId: "verification-option-digitalIdUpload",
1410
+ weight: 1
1411
+ },
1412
+ id: {
1413
+ type: "id",
1414
+ icon: () => /* @__PURE__ */ u("svg", {
1415
+ width: "119",
1416
+ height: "86",
1417
+ viewBox: "0 0 119 86",
1418
+ fill: "none",
1419
+ xmlns: "http://www.w3.org/2000/svg",
1420
+ class: "IncodeIdCardIcon",
1421
+ "aria-hidden": "true",
1422
+ children: [
1423
+ /* @__PURE__ */ u("title", { children: "ID Card" }),
1424
+ /* @__PURE__ */ u("rect", {
1425
+ x: "21.9619",
1426
+ y: "21.5",
1427
+ width: "75",
1428
+ height: "43",
1429
+ rx: "2",
1430
+ fill: "white"
1431
+ }),
1432
+ /* @__PURE__ */ u("rect", {
1433
+ x: "27.9619",
1434
+ y: "28.5",
1435
+ width: "75",
1436
+ height: "43",
1437
+ rx: "5",
1438
+ fill: "#C9C9C9",
1439
+ fillOpacity: "0.15"
1440
+ }),
1441
+ /* @__PURE__ */ u("path", {
1442
+ d: "M20.4619 23C20.4619 21.3431 21.8051 20 23.4619 20H95.4615C97.1184 20 98.4615 21.3431 98.4615 23V63C98.4615 64.6569 97.1184 66 95.4615 66H23.4619C21.8051 66 20.4619 64.6569 20.4619 63V23Z",
1443
+ fill: "#C9C9C9",
1444
+ fillOpacity: "0.8"
1445
+ }),
1446
+ /* @__PURE__ */ u("path", {
1447
+ d: "M21.8955 23.4292C21.8955 22.3246 22.7909 21.4292 23.8955 21.4292L94.6455 21.4292C95.7501 21.4292 96.6455 22.3246 96.6455 23.4292V62.2859C96.6455 63.3904 95.7501 64.2859 94.6455 64.2859H23.8955C22.7909 64.2859 21.8955 63.3904 21.8955 62.2859L21.8955 23.4292Z",
1448
+ fill: "white"
1449
+ }),
1450
+ /* @__PURE__ */ u("path", {
1451
+ fillRule: "evenodd",
1452
+ clipRule: "evenodd",
1453
+ d: "M25.8823 32.3917C25.8825 31.8415 26.3287 31.3955 26.879 31.3955L91.6618 31.3955C92.2123 31.3955 92.6585 31.8417 92.6585 32.3922C92.6585 32.9426 92.2123 33.3888 91.6618 33.3888L26.879 33.3888C26.3283 33.3888 25.882 32.9423 25.8823 32.3917Z",
1454
+ fill: "#C9C9C9",
1455
+ fillOpacity: "0.5"
1456
+ }),
1457
+ /* @__PURE__ */ u("path", {
1458
+ fillRule: "evenodd",
1459
+ clipRule: "evenodd",
1460
+ d: "M67.7418 37.376H49.8018V40.366H67.7418V37.376ZM67.7418 43.356H49.8018V46.346H67.7418V43.356ZM49.8018 49.336H73.7218V52.326H49.8018V49.336ZM57.7751 55.316H49.8018V58.306H57.7751V55.316Z",
1461
+ fill: "#C9C9C9",
1462
+ fillOpacity: "0.5"
1463
+ }),
1464
+ /* @__PURE__ */ u("rect", {
1465
+ x: "25.8818",
1466
+ y: "24.4189",
1467
+ width: "30.8967",
1468
+ height: "3.98667",
1469
+ rx: "1",
1470
+ fill: "#C9C9C9",
1471
+ fillOpacity: "0.5"
1472
+ }),
1473
+ /* @__PURE__ */ u("rect", {
1474
+ x: "86.2949",
1475
+ y: "24.4907",
1476
+ width: "5.98",
1477
+ height: "3.93138",
1478
+ fill: "#EAF0F6"
1479
+ }),
1480
+ /* @__PURE__ */ u("rect", {
1481
+ x: "25.9619",
1482
+ y: "35.5",
1483
+ width: "21",
1484
+ height: "24",
1485
+ rx: "2",
1486
+ class: "IncodeIdCardIconFill"
1487
+ }),
1488
+ /* @__PURE__ */ u("path", {
1489
+ d: "M33.1299 52.4194C33.1197 53.1963 31.7713 53.4449 30.8652 54.3192C32.4418 55.4552 34.7203 56.2194 36.2968 56.2194C38.1314 56.2194 40.2521 55.4552 41.8286 54.3192C40.9225 53.4449 39.4915 53.1976 39.4724 52.4194C39.4724 52.1241 39.4734 49.2469 39.4748 48.9516C39.4748 43.9789 32.9404 41.0204 33.1213 49.0328C33.1247 50.1617 33.1299 51.2906 33.1299 52.4194Z",
1490
+ fill: "url(#paint0_linear_id)"
1491
+ }),
1492
+ /* @__PURE__ */ u("path", {
1493
+ fillRule: "evenodd",
1494
+ clipRule: "evenodd",
1495
+ d: "M46.8878 58.0411C46.6518 58.8827 45.8789 59.4998 44.9619 59.4998H27.9619C26.8573 59.4998 25.9619 58.6044 25.9619 57.4998V55.9798C27.7245 54.5329 32.1686 53.3223 32.1686 53.3223C32.1686 54.3609 34.749 55.9866 36.3086 56.0133C38.4831 56.0133 40.4486 54.3615 40.4486 53.3223C40.4486 53.3223 45.3648 54.9117 46.3136 56.6256C46.5256 57.0086 46.7176 57.5035 46.8878 58.0411Z",
1496
+ fill: "#CECECE"
1497
+ }),
1498
+ /* @__PURE__ */ u("path", {
1499
+ d: "M41.9208 45.2935C42.0455 44.8283 41.7694 44.3501 41.3042 44.2254L41.2126 44.2009C40.7848 44.0863 40.3389 44.3105 40.176 44.7224L39.4794 46.4827C39.272 47.0069 39.609 47.5872 40.1671 47.6669L40.4782 47.7113C40.915 47.7737 41.3296 47.4999 41.4438 47.0737L41.9208 45.2935Z",
1500
+ fill: "url(#paint1_linear_id)"
1501
+ }),
1502
+ /* @__PURE__ */ u("path", {
1503
+ d: "M31.0031 45.294C30.8784 44.8288 31.1545 44.3506 31.6197 44.2259C32.085 44.1013 32.5632 44.3774 32.6878 44.8426L33.1392 46.5274C33.2639 46.9926 32.9878 47.4708 32.5226 47.5955C32.0573 47.7201 31.5791 47.444 31.4545 46.9788L31.0031 45.294Z",
1504
+ fill: "url(#paint2_linear_id)"
1505
+ }),
1506
+ /* @__PURE__ */ u("path", {
1507
+ d: "M41.2581 45.0854C41.2581 48.9044 38.5641 52.0004 36.4616 52.0004C34.1619 52.0004 31.665 48.9044 31.665 45.0854C31.665 41.6827 31.9296 38.0469 36.4616 38.0469C40.9935 38.0469 41.2581 41.6041 41.2581 45.0854Z",
1508
+ fill: "url(#paint3_linear_id)"
1509
+ }),
1510
+ /* @__PURE__ */ u("defs", { children: [
1511
+ /* @__PURE__ */ u("linearGradient", {
1512
+ id: "paint0_linear_id",
1513
+ x1: "35.8774",
1514
+ y1: "49.2574",
1515
+ x2: "35.8774",
1516
+ y2: "53.7757",
1517
+ gradientUnits: "userSpaceOnUse",
1518
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
1519
+ offset: "1",
1520
+ stopColor: "white"
1521
+ })]
1522
+ }),
1523
+ /* @__PURE__ */ u("linearGradient", {
1524
+ id: "paint1_linear_id",
1525
+ x1: "39.9447",
1526
+ y1: "46.8213",
1527
+ x2: "41.2507",
1528
+ y2: "46.8737",
1529
+ gradientUnits: "userSpaceOnUse",
1530
+ children: [/* @__PURE__ */ u("stop", {
1531
+ offset: "0.0416667",
1532
+ stopColor: "#B5B5B5"
1533
+ }), /* @__PURE__ */ u("stop", {
1534
+ offset: "1",
1535
+ stopColor: "white"
1536
+ })]
1537
+ }),
1538
+ /* @__PURE__ */ u("linearGradient", {
1539
+ id: "paint2_linear_id",
1540
+ x1: "32.0377",
1541
+ y1: "46.8216",
1542
+ x2: "30.7317",
1543
+ y2: "46.874",
1544
+ gradientUnits: "userSpaceOnUse",
1545
+ children: [/* @__PURE__ */ u("stop", {
1546
+ offset: "0.0416667",
1547
+ stopColor: "#B5B5B5"
1548
+ }), /* @__PURE__ */ u("stop", {
1549
+ offset: "1",
1550
+ stopColor: "white"
1551
+ })]
1552
+ }),
1553
+ /* @__PURE__ */ u("linearGradient", {
1554
+ id: "paint3_linear_id",
1555
+ x1: "31.7839",
1556
+ y1: "45.028",
1557
+ x2: "38.5592",
1558
+ y2: "45.0529",
1559
+ gradientUnits: "userSpaceOnUse",
1560
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
1561
+ offset: "1",
1562
+ stopColor: "white"
1563
+ })]
1564
+ })
1565
+ ] })
1566
+ ]
1567
+ }),
1568
+ title: "idv2.chooser.idButtonTitle",
1569
+ testId: "verification-option-id",
1570
+ weight: 2
1571
+ },
1572
+ passport: {
1573
+ type: "passport",
1574
+ icon: () => /* @__PURE__ */ u("svg", {
1575
+ width: "118",
1576
+ height: "86",
1577
+ viewBox: "0 0 118 86",
1578
+ fill: "none",
1579
+ xmlns: "http://www.w3.org/2000/svg",
1580
+ class: "IncodePassportIcon",
1581
+ "aria-hidden": "true",
1582
+ children: [
1583
+ /* @__PURE__ */ u("title", { children: "Passport" }),
1584
+ /* @__PURE__ */ u("g", {
1585
+ "clip-path": "url(#clip0_25823_31181)",
1586
+ children: [
1587
+ /* @__PURE__ */ u("rect", {
1588
+ x: "29.5381",
1589
+ y: "11",
1590
+ width: "67",
1591
+ height: "75",
1592
+ rx: "5",
1593
+ fill: "#C9C9C9",
1594
+ "fill-opacity": "0.15"
1595
+ }),
1596
+ /* @__PURE__ */ u("rect", {
1597
+ x: "26.8977",
1598
+ y: "5.66234",
1599
+ width: "64.3575",
1600
+ height: "74.3225",
1601
+ rx: "4.21024",
1602
+ stroke: "#C9C9C9",
1603
+ "stroke-opacity": "0.8",
1604
+ "stroke-width": "1.24563"
1605
+ }),
1606
+ /* @__PURE__ */ u("path", {
1607
+ d: "M27.4343 42.2949L90.6311 42.2949V76.3413C90.6311 77.9982 89.2879 79.3413 87.6311 79.3413L30.4343 79.3413C28.7775 79.3413 27.4343 77.9982 27.4343 76.3413L27.4343 42.2949Z",
1608
+ fill: "white"
1609
+ }),
1610
+ /* @__PURE__ */ u("path", {
1611
+ d: "M55.6033 66.4102C55.7667 66.4102 55.8991 66.5427 55.8992 66.7061V68.1143C55.8991 68.2777 55.7667 68.4101 55.6033 68.4102H47.1951C47.0317 68.4101 46.8992 68.2777 46.8992 68.1143L46.8992 66.7061C46.8992 66.5427 47.0317 66.4102 47.1951 66.4102H55.6033ZM72.6033 62.4102C72.7667 62.4102 72.8991 62.5427 72.8992 62.7061V64.1143C72.8991 64.2777 72.7667 64.4101 72.6033 64.4102H47.1951C47.0317 64.4101 46.8992 64.2777 46.8992 64.1143V62.7061C46.8992 62.5427 47.0317 62.4102 47.1951 62.4102L72.6033 62.4102ZM65.6033 58.4102C65.7667 58.4102 65.8991 58.5427 65.8992 58.7061V60.1143C65.8991 60.2777 65.7667 60.4101 65.6033 60.4102L47.1951 60.4102C47.0317 60.4101 46.8992 60.2777 46.8992 60.1143V58.7061C46.8992 58.5427 47.0317 58.4102 47.1951 58.4102L65.6033 58.4102ZM65.6033 54.4102C65.7667 54.4102 65.8991 54.5427 65.8992 54.7061V56.1143C65.8991 56.2777 65.7667 56.4101 65.6033 56.4102L47.1951 56.4102C47.0317 56.4101 46.8992 56.2777 46.8992 56.1143V54.7061C46.8992 54.5427 47.0317 54.4102 47.1951 54.4102L65.6033 54.4102Z",
1612
+ fill: "#E9E9EB"
1613
+ }),
1614
+ /* @__PURE__ */ u("rect", {
1615
+ x: "80.4148",
1616
+ y: "66.9609",
1617
+ width: "6.44508",
1618
+ height: "1.95402",
1619
+ rx: "0.295996",
1620
+ fill: "#E9E9EB"
1621
+ }),
1622
+ /* @__PURE__ */ u("rect", {
1623
+ x: "80.4148",
1624
+ y: "62.7734",
1625
+ width: "6.44508",
1626
+ height: "1.95402",
1627
+ rx: "0.295996",
1628
+ fill: "#E9E9EB"
1629
+ }),
1630
+ /* @__PURE__ */ u("rect", {
1631
+ x: "80.4148",
1632
+ y: "58.5859",
1633
+ width: "6.44508",
1634
+ height: "1.95402",
1635
+ rx: "0.295996",
1636
+ fill: "#E9E9EB"
1637
+ }),
1638
+ /* @__PURE__ */ u("path", {
1639
+ d: "M27.4343 71.7148L90.6311 71.7148L90.6311 76.342C90.6311 77.9989 89.2879 79.342 87.6311 79.342L30.4343 79.342C28.7775 79.342 27.4343 77.9989 27.4343 76.342L27.4343 71.7148Z",
1640
+ fill: "#F4F4F5"
1641
+ }),
1642
+ /* @__PURE__ */ u("rect", {
1643
+ x: "31.8992",
1644
+ y: "46.4102",
1645
+ width: "26",
1646
+ height: "3",
1647
+ rx: "0.295996",
1648
+ fill: "#C9C9C9",
1649
+ "fill-opacity": "0.5"
1650
+ }),
1651
+ /* @__PURE__ */ u("rect", {
1652
+ x: "81.8992",
1653
+ y: "46.4102",
1654
+ width: "5",
1655
+ height: "4",
1656
+ rx: "0.295996",
1657
+ fill: "#EAF0F6"
1658
+ }),
1659
+ /* @__PURE__ */ u("rect", {
1660
+ x: "30.8992",
1661
+ y: "73.4102",
1662
+ width: "56",
1663
+ height: "2",
1664
+ rx: "0.295996",
1665
+ fill: "#C9C9C9",
1666
+ "fill-opacity": "0.5"
1667
+ }),
1668
+ /* @__PURE__ */ u("rect", {
1669
+ x: "30.8992",
1670
+ y: "76.4102",
1671
+ width: "56",
1672
+ height: "2",
1673
+ rx: "0.295996",
1674
+ fill: "#C9C9C9",
1675
+ "fill-opacity": "0.5"
1676
+ }),
1677
+ /* @__PURE__ */ u("g", {
1678
+ "clip-path": "url(#clip1_25823_31181)",
1679
+ children: /* @__PURE__ */ u("g", {
1680
+ "clip-path": "url(#clip2_25823_31181)",
1681
+ children: [
1682
+ /* @__PURE__ */ u("rect", {
1683
+ x: "31.2175",
1684
+ y: "52.8086",
1685
+ width: "14.1292",
1686
+ height: "16.9552",
1687
+ class: "IncodePassportIconFill"
1688
+ }),
1689
+ /* @__PURE__ */ u("path", {
1690
+ d: "M45.6017 67.2893C46.2508 68.4508 46.6245 71.1294 46.6245 71.1294L30.2605 71.1294C30.2605 71.1294 30.6343 68.4505 31.2832 67.2893C31.9322 66.1282 35.8873 65.0512 35.8873 65.0512C36.2376 65.6841 37.2659 66.2614 38.3185 66.2872C39.4607 66.3151 40.6316 65.7377 40.9957 65.0508C40.9957 65.0508 44.9526 66.1279 45.6017 67.2893Z",
1691
+ fill: "white"
1692
+ }),
1693
+ /* @__PURE__ */ u("path", {
1694
+ d: "M36.5209 64.13L36.5209 64.1559C36.5137 64.7033 36.0529 65.115 35.1384 65.3908C36.2404 66.1913 37.3424 66.8317 38.4443 66.8317C39.5462 66.8317 40.6482 66.1913 41.7501 65.3908C40.8419 65.1147 40.381 64.7024 40.3677 64.1541C40.3677 63.9459 40.3684 61.9185 40.3694 61.7104C40.4351 61.7196 40.4295 61.7138 40.3694 61.6971C40.3712 61.0115 40.3741 61.9089 40.3782 60.972C40.3823 60.0351 36.4572 59.1969 36.5149 61.7695C36.5156 62.0318 36.5172 63.833 36.5209 64.13Z",
1695
+ fill: "url(#paint0_linear_25823_31181)"
1696
+ }),
1697
+ /* @__PURE__ */ u("path", {
1698
+ d: "M36.4685 62.8717C38.0818 62.7041 39.6008 63.4026 39.6008 63.4026C39.6008 63.4026 39.2997 64.9843 36.4685 64.5246L36.4685 62.8717Z",
1699
+ fill: "#CDCDCD"
1700
+ }),
1701
+ /* @__PURE__ */ u("path", {
1702
+ d: "M45.6017 67.2893C46.2508 68.4508 46.6245 71.1294 46.6245 71.1294L30.2605 71.1294C30.2605 71.1294 30.6343 68.4505 31.2832 67.2893C31.9322 66.1282 35.8873 65.0512 35.8873 65.0512C35.8873 65.7551 37.2516 66.7701 38.3185 66.7881C39.8061 66.7881 40.9957 65.7551 40.9957 65.0508C40.9957 65.0508 44.9526 66.1279 45.6017 67.2893Z",
1703
+ fill: "#CECECE"
1704
+ }),
1705
+ /* @__PURE__ */ u("path", {
1706
+ d: "M35.1459 59.5609C35.3611 59.2021 35.6294 59.4488 35.7366 59.6171L35.8865 61.2125C35.8812 61.3513 35.7981 61.4395 35.5811 61.467C35.3099 61.5013 35.1308 60.7627 35.0683 60.487C35.0058 60.2113 34.8771 60.0094 35.1459 59.5609Z",
1707
+ fill: "url(#paint1_linear_25823_31181)"
1708
+ }),
1709
+ /* @__PURE__ */ u("path", {
1710
+ d: "M41.6385 59.6545C41.4268 59.2936 41.1562 59.5378 41.0473 59.705L40.8824 61.299C40.8863 61.4378 40.9687 61.5268 41.1854 61.5563C41.4562 61.5932 41.6423 60.8564 41.7074 60.5813C41.7725 60.3062 41.9031 60.1055 41.6385 59.6545Z",
1711
+ fill: "url(#paint2_linear_25823_31181)"
1712
+ }),
1713
+ /* @__PURE__ */ u("path", {
1714
+ d: "M41.4251 59.9339C41.4251 62.2412 39.7548 64.1116 38.4511 64.1116C37.0252 64.1116 35.4771 62.2412 35.4771 59.9339C35.4771 57.8782 35.6411 55.6816 38.4511 55.6816C41.261 55.6816 41.4251 57.8307 41.4251 59.9339Z",
1715
+ fill: "url(#paint3_linear_25823_31181)"
1716
+ })
1717
+ ]
1718
+ })
1719
+ }),
1720
+ /* @__PURE__ */ u("mask", {
1721
+ id: "path-23-inside-1_25823_31181",
1722
+ fill: "white",
1723
+ children: /* @__PURE__ */ u("path", { d: "M87.6289 6.28516C89.2858 6.28516 90.6289 7.6283 90.6289 9.28516L90.6289 42.8236L27.517 42.8236L27.517 9.28516C27.517 7.6283 28.8602 6.28516 30.517 6.28516L87.6289 6.28516Z" })
1724
+ }),
1725
+ /* @__PURE__ */ u("path", {
1726
+ d: "M87.6289 6.28516C89.2858 6.28516 90.6289 7.6283 90.6289 9.28516L90.6289 42.8236L27.517 42.8236L27.517 9.28516C27.517 7.6283 28.8602 6.28516 30.517 6.28516L87.6289 6.28516Z",
1727
+ fill: "#F4F4F5"
1728
+ }),
1729
+ /* @__PURE__ */ u("path", {
1730
+ d: "M90.6289 6.28516L90.6289 42.8236L90.6289 6.28516ZM27.517 42.8236L27.517 6.28516L27.517 42.8236ZM27.517 6.28516L90.6289 6.28516L27.517 6.28516ZM90.6289 44.0362L27.517 44.0362V41.6111L90.6289 41.6111V44.0362Z",
1731
+ fill: "#C9C9C9",
1732
+ "fill-opacity": "0.8",
1733
+ mask: "url(#path-23-inside-1_25823_31181)"
1734
+ })
1735
+ ]
1736
+ }),
1737
+ /* @__PURE__ */ u("defs", { children: [
1738
+ /* @__PURE__ */ u("linearGradient", {
1739
+ id: "paint0_linear_25823_31181",
1740
+ x1: "38.1511",
1741
+ y1: "61.9259",
1742
+ x2: "38.1511",
1743
+ y2: "65.1098",
1744
+ gradientUnits: "userSpaceOnUse",
1745
+ children: [/* @__PURE__ */ u("stop", { "stop-color": "#B1B1B1" }), /* @__PURE__ */ u("stop", {
1746
+ offset: "1",
1747
+ "stop-color": "white"
1748
+ })]
1749
+ }),
1750
+ /* @__PURE__ */ u("linearGradient", {
1751
+ id: "paint1_linear_25823_31181",
1752
+ x1: "35.7261",
1753
+ y1: "60.3676",
1754
+ x2: "35.2086",
1755
+ y2: "60.4633",
1756
+ gradientUnits: "userSpaceOnUse",
1757
+ children: [
1758
+ /* @__PURE__ */ u("stop", {
1759
+ offset: "0.171875",
1760
+ "stop-color": "#BDBDBD"
1761
+ }),
1762
+ /* @__PURE__ */ u("stop", {
1763
+ offset: "0.640625",
1764
+ "stop-color": "#E1E1E1"
1765
+ }),
1766
+ /* @__PURE__ */ u("stop", {
1767
+ offset: "1",
1768
+ "stop-color": "#DDDDDD"
1769
+ })
1770
+ ]
1771
+ }),
1772
+ /* @__PURE__ */ u("linearGradient", {
1773
+ id: "paint2_linear_25823_31181",
1774
+ x1: "41.0508",
1775
+ y1: "60.4556",
1776
+ x2: "41.5674",
1777
+ y2: "60.5562",
1778
+ gradientUnits: "userSpaceOnUse",
1779
+ children: [
1780
+ /* @__PURE__ */ u("stop", {
1781
+ offset: "0.0416667",
1782
+ "stop-color": "#B5B5B5"
1783
+ }),
1784
+ /* @__PURE__ */ u("stop", {
1785
+ offset: "0.362488",
1786
+ "stop-color": "#E2E2E2"
1787
+ }),
1788
+ /* @__PURE__ */ u("stop", {
1789
+ offset: "1",
1790
+ "stop-color": "white"
1791
+ })
1792
+ ]
1793
+ }),
1794
+ /* @__PURE__ */ u("linearGradient", {
1795
+ id: "paint3_linear_25823_31181",
1796
+ x1: "35.8426",
1797
+ y1: "59.8572",
1798
+ x2: "40.0436",
1799
+ y2: "59.8731",
1800
+ gradientUnits: "userSpaceOnUse",
1801
+ children: [/* @__PURE__ */ u("stop", { "stop-color": "#E0E0E0" }), /* @__PURE__ */ u("stop", {
1802
+ offset: "1",
1803
+ "stop-color": "white"
1804
+ })]
1805
+ }),
1806
+ /* @__PURE__ */ u("clipPath", {
1807
+ id: "clip0_25823_31181",
1808
+ children: /* @__PURE__ */ u("rect", {
1809
+ width: "118",
1810
+ height: "86",
1811
+ fill: "white"
1812
+ })
1813
+ }),
1814
+ /* @__PURE__ */ u("clipPath", {
1815
+ id: "clip1_25823_31181",
1816
+ children: /* @__PURE__ */ u("rect", {
1817
+ x: "31.2625",
1818
+ y: "52.7891",
1819
+ width: "14.0499",
1820
+ height: "17.0253",
1821
+ rx: "2",
1822
+ fill: "white"
1823
+ })
1824
+ }),
1825
+ /* @__PURE__ */ u("clipPath", {
1826
+ id: "clip2_25823_31181",
1827
+ children: /* @__PURE__ */ u("rect", {
1828
+ width: "18.0004",
1829
+ height: "18.0005",
1830
+ fill: "white",
1831
+ transform: "translate(29.4441 52.7891)"
1832
+ })
1833
+ })
1834
+ ] })
1835
+ ]
1836
+ }),
1837
+ title: "idv2.chooser.passportButtonTitle",
1838
+ testId: "verification-option-passport",
1839
+ weight: 3
1840
+ },
1841
+ digitalId: {
1842
+ icon: () => /* @__PURE__ */ u("svg", {
1843
+ width: "60",
1844
+ height: "60",
1845
+ viewBox: "0 0 60 60",
1846
+ fill: "none",
1847
+ xmlns: "http://www.w3.org/2000/svg",
1848
+ "aria-hidden": "true",
1849
+ focusable: "false",
1850
+ class: "IncodeDeviceWalletsIcon",
1851
+ children: [
1852
+ /* @__PURE__ */ u("title", { children: "Mobile Driver License icon" }),
1853
+ /* @__PURE__ */ u("g", {
1854
+ clipPath: "url(#clip0_26265_2591)",
1855
+ children: /* @__PURE__ */ u("g", {
1856
+ clipPath: "url(#clip1_26265_2591)",
1857
+ children: /* @__PURE__ */ u("g", {
1858
+ clipPath: "url(#clip2_26265_2591)",
1859
+ children: [
1860
+ /* @__PURE__ */ u("rect", {
1861
+ x: "24.1111",
1862
+ y: "10.0779",
1863
+ width: "20.52",
1864
+ height: "42.066",
1865
+ rx: "2.565",
1866
+ fill: "#C9C9C9",
1867
+ fillOpacity: "0.15"
1868
+ }),
1869
+ /* @__PURE__ */ u("rect", {
1870
+ x: "18.3396",
1871
+ y: "49.7073",
1872
+ width: "41.8095",
1873
+ height: "23.3415",
1874
+ rx: "2.69325",
1875
+ transform: "rotate(-90 18.3396 49.7073)",
1876
+ fill: "#F7F7F7",
1877
+ stroke: "#D4D4D4",
1878
+ strokeWidth: "0.769499"
1879
+ }),
1880
+ /* @__PURE__ */ u("path", {
1881
+ d: "M20.0591 13.217C20.0591 12.367 20.7481 11.678 21.5981 11.678L38.4211 11.678C39.2711 11.678 39.9601 12.367 39.9601 13.217V21.7093C39.9601 22.5593 39.2711 23.2483 38.4211 23.2483L21.5981 23.2483C20.7481 23.2483 20.0591 22.5593 20.0591 21.7093V13.217Z",
1882
+ fill: "#C9C9C9",
1883
+ fillOpacity: "0.8"
1884
+ }),
1885
+ /* @__PURE__ */ u("path", {
1886
+ d: "M20.5217 13.1669C20.5217 12.6002 20.9811 12.1409 21.5477 12.1409L38.4711 12.1409C39.0378 12.1409 39.4971 12.6002 39.4971 13.1669V21.7596C39.4971 22.3263 39.0378 22.7856 38.4711 22.7856L21.5477 22.7856C20.9811 22.7856 20.5217 22.3263 20.5217 21.7596L20.5217 13.1669Z",
1887
+ fill: "white"
1888
+ }),
1889
+ /* @__PURE__ */ u("path", {
1890
+ d: "M30.2441 19.7498C30.3821 19.7498 30.4939 19.8619 30.4941 19.9998V20.2996C30.494 20.4375 30.3821 20.5496 30.2441 20.5496H28.6133C28.4753 20.5495 28.3634 20.4375 28.3633 20.2996V19.9998C28.3635 19.8619 28.4753 19.7498 28.6133 19.7498H30.2441ZM34.5059 18.1521C34.6438 18.1521 34.7556 18.2642 34.7559 18.4021V18.7019C34.7558 18.8399 34.6439 18.9519 34.5059 18.9519H28.6133C28.4753 18.9519 28.3634 18.8399 28.3633 18.7019V18.4021C28.3635 18.2642 28.4754 18.1521 28.6133 18.1521H34.5059ZM32.9082 16.5544C33.0462 16.5546 33.1582 16.6664 33.1582 16.8044V17.1033C33.1582 17.2413 33.0462 17.3532 32.9082 17.3533H28.6133C28.4752 17.3533 28.3633 17.2413 28.3633 17.1033V16.8044C28.3633 16.6664 28.4752 16.5544 28.6133 16.5544H32.9082ZM32.9082 14.9558C33.0462 14.9559 33.1582 15.0678 33.1582 15.2058V15.5046C33.1582 15.6427 33.0462 15.7546 32.9082 15.7546L28.6133 15.7546C28.4752 15.7546 28.3633 15.6427 28.3633 15.5046V15.2058C28.3633 15.0677 28.4752 14.9558 28.6133 14.9558L32.9082 14.9558Z",
1891
+ fill: "#C9C9C9",
1892
+ fillOpacity: "0.5"
1893
+ }),
1894
+ /* @__PURE__ */ u("rect", {
1895
+ x: "21.9907",
1896
+ y: "14.4548",
1897
+ width: "5.61267",
1898
+ height: "6.41448",
1899
+ rx: "0.592504",
1900
+ class: "IncodeDeviceWalletsIconFill"
1901
+ }),
1902
+ /* @__PURE__ */ u("path", {
1903
+ d: "M23.9066 18.9767C23.9038 19.1843 23.5434 19.2508 23.3013 19.4844C23.7226 19.7881 24.3316 19.9923 24.753 19.9923C25.2433 19.9923 25.8101 19.7881 26.2314 19.4844C25.9893 19.2508 25.6068 19.1847 25.6017 18.9767C25.6017 18.8978 25.602 18.1288 25.6023 18.0498C25.6023 16.7208 23.8559 15.9301 23.9043 18.0716C23.9052 18.3733 23.9066 18.675 23.9066 18.9767Z",
1904
+ fill: "url(#paint0_linear_26265_2591)"
1905
+ }),
1906
+ /* @__PURE__ */ u("path", {
1907
+ d: "M25.8618 19.218C25.8813 19.2243 27.1775 19.6462 27.4292 20.1008C27.4826 20.1973 27.5292 20.3211 27.5728 20.4553C27.4966 20.6945 27.2756 20.8683 27.0112 20.8684H22.5835C22.2564 20.8684 21.9909 20.6037 21.9907 20.2766V19.928C22.4623 19.5415 23.6489 19.218 23.6489 19.218C23.6489 19.4956 24.3385 19.9296 24.7554 19.9368C25.3364 19.9366 25.8618 19.4957 25.8618 19.218Z",
1908
+ fill: "#CECECE"
1909
+ }),
1910
+ /* @__PURE__ */ u("path", {
1911
+ d: "M23.9065 18.142C24.5301 18.0755 25.1173 18.5857 25.1173 18.5857C25.1173 18.5857 25.0009 19.2133 23.9065 19.0309V18.142Z",
1912
+ fill: "#CDCDCD"
1913
+ }),
1914
+ /* @__PURE__ */ u("path", {
1915
+ d: "M26.2514 17.0855C26.2866 16.954 26.2086 16.8188 26.0771 16.7836C25.9562 16.7512 25.8302 16.8146 25.7841 16.931L25.6142 17.3606C25.5527 17.5159 25.6525 17.6878 25.8179 17.7114L25.8471 17.7156C25.9765 17.7341 26.0993 17.653 26.1332 17.5267L26.2514 17.0855Z",
1916
+ fill: "url(#paint1_linear_26265_2591)"
1917
+ }),
1918
+ /* @__PURE__ */ u("path", {
1919
+ d: "M23.3374 17.0726C23.3041 16.9482 23.3779 16.8204 23.5022 16.7871C23.6266 16.7538 23.7544 16.8276 23.7877 16.9519L23.9084 17.4022C23.9417 17.5265 23.8679 17.6543 23.7435 17.6877C23.6192 17.721 23.4914 17.6472 23.4581 17.5228L23.3374 17.0726Z",
1920
+ fill: "url(#paint2_linear_26265_2591)"
1921
+ }),
1922
+ /* @__PURE__ */ u("path", {
1923
+ d: "M26.0796 17.0174C26.0796 18.0381 25.3595 18.8656 24.7976 18.8656C24.183 18.8656 23.5156 18.0381 23.5156 17.0174C23.5156 16.108 23.5863 15.1362 24.7976 15.1362C26.0088 15.1362 26.0796 16.087 26.0796 17.0174Z",
1924
+ fill: "url(#paint3_linear_26265_2591)"
1925
+ }),
1926
+ /* @__PURE__ */ u("rect", {
1927
+ x: "22.0591",
1928
+ y: "43.936",
1929
+ width: "15.903",
1930
+ height: "3.078",
1931
+ rx: "0.512999",
1932
+ fill: "#E4E4E4"
1933
+ })
1934
+ ]
1935
+ })
1936
+ })
1937
+ }),
1938
+ /* @__PURE__ */ u("defs", { children: [
1939
+ /* @__PURE__ */ u("linearGradient", {
1940
+ id: "paint0_linear_26265_2591",
1941
+ x1: "24.6409",
1942
+ y1: "18.1316",
1943
+ x2: "24.6409",
1944
+ y2: "19.3392",
1945
+ gradientUnits: "userSpaceOnUse",
1946
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
1947
+ offset: "1",
1948
+ stopColor: "white"
1949
+ })]
1950
+ }),
1951
+ /* @__PURE__ */ u("linearGradient", {
1952
+ id: "paint1_linear_26265_2591",
1953
+ x1: "25.7267",
1954
+ y1: "17.4809",
1955
+ x2: "26.0758",
1956
+ y2: "17.4949",
1957
+ gradientUnits: "userSpaceOnUse",
1958
+ children: [/* @__PURE__ */ u("stop", {
1959
+ offset: "0.0416667",
1960
+ stopColor: "#B5B5B5"
1961
+ }), /* @__PURE__ */ u("stop", {
1962
+ offset: "1",
1963
+ stopColor: "white"
1964
+ })]
1965
+ }),
1966
+ /* @__PURE__ */ u("linearGradient", {
1967
+ id: "paint2_linear_26265_2591",
1968
+ x1: "23.614",
1969
+ y1: "17.4808",
1970
+ x2: "23.2649",
1971
+ y2: "17.4948",
1972
+ gradientUnits: "userSpaceOnUse",
1973
+ children: [/* @__PURE__ */ u("stop", {
1974
+ offset: "0.0416667",
1975
+ stopColor: "#B5B5B5"
1976
+ }), /* @__PURE__ */ u("stop", {
1977
+ offset: "1",
1978
+ stopColor: "white"
1979
+ })]
1980
+ }),
1981
+ /* @__PURE__ */ u("linearGradient", {
1982
+ id: "paint3_linear_26265_2591",
1983
+ x1: "23.5474",
1984
+ y1: "17.0021",
1985
+ x2: "25.3582",
1986
+ y2: "17.0087",
1987
+ gradientUnits: "userSpaceOnUse",
1988
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
1989
+ offset: "1",
1990
+ stopColor: "white"
1991
+ })]
1992
+ }),
1993
+ /* @__PURE__ */ u("clipPath", {
1994
+ id: "clip0_26265_2591",
1995
+ children: /* @__PURE__ */ u("rect", {
1996
+ width: "60",
1997
+ height: "60",
1998
+ fill: "white"
1999
+ })
2000
+ }),
2001
+ /* @__PURE__ */ u("clipPath", {
2002
+ id: "clip1_26265_2591",
2003
+ children: /* @__PURE__ */ u("rect", {
2004
+ width: "60",
2005
+ height: "60",
2006
+ fill: "white",
2007
+ transform: "translate(0.5 0.5)"
2008
+ })
2009
+ }),
2010
+ /* @__PURE__ */ u("clipPath", {
2011
+ id: "clip2_26265_2591",
2012
+ children: /* @__PURE__ */ u("rect", {
2013
+ width: "60.5339",
2014
+ height: "45.144",
2015
+ fill: "white",
2016
+ transform: "translate(0 7)"
2017
+ })
2018
+ })
2019
+ ] })
2020
+ ]
2021
+ }),
2022
+ title: "idv2.chooser.digitalIdButtonTitle",
2023
+ testId: "verification-option-digitalId",
2024
+ type: "digitalId",
2025
+ weight: 4
2026
+ },
2027
+ manualIdUpload: {
2028
+ type: "manualIdUpload",
2029
+ icon: () => /* @__PURE__ */ u("svg", {
2030
+ width: "60",
2031
+ height: "60",
2032
+ viewBox: "0 0 60 60",
2033
+ fill: "none",
2034
+ xmlns: "http://www.w3.org/2000/svg",
2035
+ "aria-hidden": "true",
2036
+ focusable: "false",
2037
+ class: "IncodeUploadIdIcon",
2038
+ children: [
2039
+ /* @__PURE__ */ u("title", { children: "Upload document" }),
2040
+ /* @__PURE__ */ u("rect", {
2041
+ x: "5.51713",
2042
+ y: "15.51",
2043
+ width: "50.4685",
2044
+ height: "28.9353",
2045
+ rx: "1.34583",
2046
+ fill: "white"
2047
+ }),
2048
+ /* @__PURE__ */ u("path", {
2049
+ d: "M4.5 16.5187C4.5 15.4038 5.40382 14.5 6.51874 14.5L54.9682 14.5C56.0831 14.5 56.987 15.4038 56.987 16.5187L56.987 43.4353C56.987 44.5502 56.0831 45.454 54.9682 45.454L6.51874 45.454C5.40382 45.454 4.5 44.5502 4.5 43.4353L4.5 16.5187Z",
2050
+ stroke: "#D2D2D2",
2051
+ strokeLinecap: "round",
2052
+ strokeDasharray: "3 3"
2053
+ }),
2054
+ /* @__PURE__ */ u("path", {
2055
+ d: "M5.47253 16.8082C5.47253 16.065 6.07508 15.4624 6.81836 15.4624L54.427 15.4624C55.1703 15.4624 55.7728 16.0649 55.7728 16.8082L55.7728 42.9554C55.7728 43.6987 55.1703 44.3012 54.427 44.3012L6.81836 44.3012C6.07508 44.3012 5.47253 43.6987 5.47253 42.9554L5.47253 16.8082Z",
2056
+ fill: "white"
2057
+ }),
2058
+ /* @__PURE__ */ u("path", {
2059
+ d: "M46.1211 34.9621C45.8699 34.6688 45.5027 34.5 45.1165 34.5C44.7302 34.5 44.3631 34.6688 44.1118 34.9621L38.8186 41.1375C38.343 41.6923 38.4072 42.5277 38.9621 43.0033C39.517 43.479 40.3524 43.4147 40.828 42.8598L43.7932 39.4005V50.1767C43.7932 50.9075 44.3857 51.5 45.1165 51.5C45.8473 51.5 46.4398 50.9075 46.4398 50.1767V39.4005L49.405 42.8598C49.8805 43.4147 50.7159 43.479 51.2708 43.0033C51.8257 42.5277 51.8899 41.6923 51.4143 41.1375L46.1211 34.9621Z",
2060
+ class: "IncodeUploadIdIconFill",
2061
+ stroke: "white",
2062
+ strokeWidth: "0.953729"
2063
+ }),
2064
+ /* @__PURE__ */ u("path", {
2065
+ fillRule: "evenodd",
2066
+ clipRule: "evenodd",
2067
+ d: "M8.14731 22.8371C8.14748 22.4668 8.44769 22.1667 8.81798 22.1667L52.4112 22.1667C52.7816 22.1667 53.0819 22.467 53.0819 22.8374C53.0819 23.2078 52.7816 23.5081 52.4112 23.5081L8.81798 23.5081C8.44746 23.5081 8.14714 23.2076 8.14731 22.8371Z",
2068
+ fill: "#C9C9C9",
2069
+ fillOpacity: "0.5"
2070
+ }),
2071
+ /* @__PURE__ */ u("path", {
2072
+ d: "M29.6077 40.2766H24.2425V38.2639H29.6077V40.2766ZM35.2425 36.5002H24.2425L24.2425 34.5002H35.2425V36.5002ZM39.2425 32.5002H24.2425V30.5002L39.2425 30.5002V32.5002ZM44.2425 28.5002L24.2425 28.5002V26.5002L44.2425 26.5002V28.5002Z",
2073
+ fill: "#C9C9C9",
2074
+ fillOpacity: "0.5"
2075
+ }),
2076
+ /* @__PURE__ */ u("rect", {
2077
+ x: "8.147",
2078
+ y: "17.4744",
2079
+ width: "20.7908",
2080
+ height: "2.68268",
2081
+ rx: "0.672913",
2082
+ fill: "#C9C9C9",
2083
+ fillOpacity: "0.5"
2084
+ }),
2085
+ /* @__PURE__ */ u("rect", {
2086
+ x: "48.803",
2087
+ y: "17.5209",
2088
+ width: "4.02402",
2089
+ height: "2.64548",
2090
+ fill: "#EAF0F6"
2091
+ }),
2092
+ /* @__PURE__ */ u("rect", {
2093
+ x: "8.20379",
2094
+ y: "24.9293",
2095
+ width: "14.1312",
2096
+ height: "16.1499",
2097
+ rx: "1.34583",
2098
+ class: "IncodeUploadIdIconFill"
2099
+ }),
2100
+ /* @__PURE__ */ u("path", {
2101
+ d: "M13.0303 36.3159C13.0234 36.8387 12.116 37.006 11.5063 37.5943C12.5672 38.3587 14.1004 38.8729 15.1613 38.8729C16.3958 38.8729 17.8228 38.3587 18.8837 37.5943C18.274 37.006 17.311 36.8395 17.2982 36.3159C17.2982 36.1172 17.2989 34.1811 17.2998 33.9823C17.2998 30.6362 12.9027 28.6453 13.0245 34.037C13.0268 34.7966 13.0303 35.5563 13.0303 36.3159Z",
2102
+ fill: "url(#paint0_linear_2170_3031)"
2103
+ }),
2104
+ /* @__PURE__ */ u("path", {
2105
+ d: "M17.9489 36.922C17.9489 36.922 21.2577 37.9913 21.8962 39.1447C22.0394 39.4033 22.1671 39.7385 22.2819 40.1017C22.1216 40.6657 21.6044 41.0792 20.9889 41.0792H9.54949C8.80627 41.0792 8.2038 40.4767 8.20379 39.7335V38.7072C9.39205 37.7347 12.3776 36.922 12.3776 36.922C12.3777 37.6209 14.1143 38.7146 15.1637 38.7325C16.6268 38.7323 17.9488 37.6213 17.9489 36.922Z",
2106
+ fill: "#CECECE"
2107
+ }),
2108
+ /* @__PURE__ */ u("path", {
2109
+ d: "M13.0259 34.2139C14.5961 34.0465 16.0744 35.3312 16.0744 35.3312C16.0744 35.3312 15.7813 36.9113 13.0259 36.4521V34.2139Z",
2110
+ fill: "#CDCDCD"
2111
+ }),
2112
+ /* @__PURE__ */ u("path", {
2113
+ d: "M18.9402 31.5218C19.0241 31.2087 18.8383 30.8869 18.5252 30.8031L18.4636 30.7865C18.1757 30.7094 17.8757 30.8603 17.7661 31.1375L17.2974 32.322C17.1578 32.6748 17.3845 33.0653 17.7601 33.1189L17.9694 33.1488C18.2634 33.1907 18.5424 33.0065 18.6192 32.7197L18.9402 31.5218Z",
2114
+ fill: "url(#paint1_linear_2170_3031)"
2115
+ }),
2116
+ /* @__PURE__ */ u("path", {
2117
+ d: "M11.5934 31.5218C11.5095 31.2087 11.6953 30.887 12.0084 30.8031C12.3214 30.7192 12.6432 30.905 12.7271 31.218L13.0309 32.3517C13.1148 32.6648 12.929 32.9866 12.6159 33.0705C12.3028 33.1543 11.9811 32.9686 11.8972 32.6555L11.5934 31.5218Z",
2118
+ fill: "url(#paint2_linear_2170_3031)"
2119
+ }),
2120
+ /* @__PURE__ */ u("path", {
2121
+ d: "M18.4924 31.3797C18.4924 33.9496 16.6796 36.0329 15.2648 36.0329C13.7173 36.0329 12.0371 33.9496 12.0371 31.3797C12.0371 29.09 12.2152 26.6434 15.2648 26.6434C18.3144 26.6434 18.4924 29.0371 18.4924 31.3797Z",
2122
+ fill: "url(#paint3_linear_2170_3031)"
2123
+ }),
2124
+ /* @__PURE__ */ u("defs", { children: [
2125
+ /* @__PURE__ */ u("linearGradient", {
2126
+ id: "paint0_linear_2170_3031",
2127
+ x1: "14.8791",
2128
+ y1: "34.1881",
2129
+ x2: "14.8791",
2130
+ y2: "37.2285",
2131
+ gradientUnits: "userSpaceOnUse",
2132
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
2133
+ offset: "1",
2134
+ stopColor: "white"
2135
+ })]
2136
+ }),
2137
+ /* @__PURE__ */ u("linearGradient", {
2138
+ id: "paint1_linear_2170_3031",
2139
+ x1: "17.6105",
2140
+ y1: "32.5499",
2141
+ x2: "18.4893",
2142
+ y2: "32.5851",
2143
+ gradientUnits: "userSpaceOnUse",
2144
+ children: [/* @__PURE__ */ u("stop", {
2145
+ offset: "0.0416667",
2146
+ stopColor: "#B5B5B5"
2147
+ }), /* @__PURE__ */ u("stop", {
2148
+ offset: "1",
2149
+ stopColor: "white"
2150
+ })]
2151
+ }),
2152
+ /* @__PURE__ */ u("linearGradient", {
2153
+ id: "paint2_linear_2170_3031",
2154
+ x1: "12.2896",
2155
+ y1: "32.5497",
2156
+ x2: "11.4108",
2157
+ y2: "32.585",
2158
+ gradientUnits: "userSpaceOnUse",
2159
+ children: [/* @__PURE__ */ u("stop", {
2160
+ offset: "0.0416667",
2161
+ stopColor: "#B5B5B5"
2162
+ }), /* @__PURE__ */ u("stop", {
2163
+ offset: "1",
2164
+ stopColor: "white"
2165
+ })]
2166
+ }),
2167
+ /* @__PURE__ */ u("linearGradient", {
2168
+ id: "paint3_linear_2170_3031",
2169
+ x1: "12.1171",
2170
+ y1: "31.3411",
2171
+ x2: "16.6763",
2172
+ y2: "31.3579",
2173
+ gradientUnits: "userSpaceOnUse",
2174
+ children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
2175
+ offset: "1",
2176
+ stopColor: "white"
2177
+ })]
2178
+ })
2179
+ ] })
2180
+ ]
2181
+ }),
2182
+ title: "idv2.chooser.manualUploadButtonTitle",
2183
+ testId: "verification-option-manualIdUpload",
2184
+ weight: 5
2185
+ }
2186
+ };
2187
+ //#endregion
2188
+ //#region src/modules/id/chooser/chooser.helpers.ts
2189
+ function we(e) {
2190
+ return e.reduce((e, t) => {
2191
+ let n = Ce[t];
2192
+ return n && e.push(n), e;
2193
+ }, []).sort((e, t) => e.weight - t.weight);
2194
+ }
2195
+ //#endregion
2196
+ //#region src/modules/id/chooser/chooser.tsx
2197
+ var Te = ({ manager: t, state: n }) => {
2198
+ let { t: r } = e(), i = a(() => we(n.availableDocumentTypes), [n.availableDocumentTypes]), o = (e) => {
2199
+ t.selectDocument(e);
2200
+ };
2201
+ return /* @__PURE__ */ u(m, {
2202
+ title: r("idv2.chooser.chooseHowToVerifyTitle"),
2203
+ "data-testid": "document-chooser-page",
2204
+ className: "IncodeChooserPage",
2205
+ children: /* @__PURE__ */ u("div", {
2206
+ class: "IncodeChooserContainer",
2207
+ children: /* @__PURE__ */ u(j, { children: i.map((e) => /* @__PURE__ */ u(M, {
2208
+ icon: e.icon,
2209
+ title: r(e.title),
2210
+ testId: e.testId,
2211
+ tag: e.tag ? r(e.tag) : void 0,
2212
+ onClick: () => o(e.type)
2213
+ }, e.type)) })
2214
+ })
2215
+ });
2216
+ }, Ee = ({ manager: t, direction: r }) => {
2217
+ let [i, a] = l(null), [s, c] = l(!1), { t: d } = e();
2218
+ n(() => {
2219
+ import("./flip-animation-DOJzdXB-.js").then((e) => {
2220
+ a(e.default);
2221
+ });
2222
+ }, []);
2223
+ let p = o(async () => {
2224
+ await new Promise((e) => setTimeout(e, 1e3)), r === "toBack" ? t.continueToBack() : t.continueToFront(), c(!0);
2225
+ }, [r, t]);
2226
+ return s ? /* @__PURE__ */ u(g, {
2227
+ size: "large",
2228
+ title: `${d("webcam.loading")}...`
2229
+ }) : i ? /* @__PURE__ */ u("div", {
2230
+ class: "IncodeFlipAnimation",
2231
+ children: [
2232
+ /* @__PURE__ */ u(h, {
2233
+ role: "status",
2234
+ className: "IncodeFlipAnimationTitle",
2235
+ children: d(r === "toBack" ? "idv2.flipAnimation.title" : "idv2.flipAnimation.titleToFront")
2236
+ }),
2237
+ /* @__PURE__ */ u(f, { size: 32 }),
2238
+ /* @__PURE__ */ u(C, {
2239
+ animationData: i,
2240
+ loop: !1,
2241
+ reverse: r === "toFront",
2242
+ onComplete: p
2243
+ })
2244
+ ]
2245
+ }) : null;
2246
+ };
2247
+ //#endregion
2248
+ export { O as _, J as a, L as c, P as d, N as f, k as g, A as h, $ as i, I as l, j as m, Te as n, q as o, M as p, Se as r, z as s, Ee as t, F as u, D as v };