@sekyro/react 0.1.0-rc.4 → 0.1.0-rc.41

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 (61) hide show
  1. package/CHANGELOG.md +636 -0
  2. package/LICENSE +25 -16
  3. package/README.md +179 -37
  4. package/dist/chunk-2KED7D2Q.js +2 -0
  5. package/dist/chunk-2SVN4T5I.js +2 -0
  6. package/dist/chunk-55NNQK5P.js +2 -0
  7. package/dist/chunk-5JJT6XTG.js +2 -0
  8. package/dist/chunk-7MMT5M4E.js +2 -0
  9. package/dist/chunk-A7C3KQ7K.js +2 -0
  10. package/dist/chunk-B26PUCMP.js +2 -0
  11. package/dist/chunk-FE6AS435.js +2 -0
  12. package/dist/chunk-GUTF3SPK.js +2 -0
  13. package/dist/chunk-HJDSATKF.js +2 -0
  14. package/dist/chunk-MDXA7C7O.js +2 -0
  15. package/dist/chunk-NZKIRHZR.js +2 -0
  16. package/dist/chunk-OLU5EOHP.js +2 -0
  17. package/dist/chunk-P7QMLT56.js +2 -0
  18. package/dist/chunk-Q7TAM5DA.js +2 -0
  19. package/dist/chunk-SRQXICOI.js +2 -0
  20. package/dist/chunk-TLYACCNO.js +2 -0
  21. package/dist/chunk-V3BQZTXH.js +2 -0
  22. package/dist/chunk-WIHBHY2K.js +2 -0
  23. package/dist/chunk-ZARKJW2C.js +2 -0
  24. package/dist/document-capture-view-ZQONDCSM.js +2 -0
  25. package/dist/eid-view-FEJHQBSB.js +2 -0
  26. package/dist/email-otp-view-4EY5CKR5.js +2 -0
  27. package/dist/flow-views-JC2DWBW3.js +2 -0
  28. package/dist/fonts/Cairo-OFL.txt +93 -0
  29. package/dist/fonts/Geist-OFL.txt +93 -0
  30. package/dist/fonts/Inter-OFL.txt +93 -0
  31. package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
  32. package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
  33. package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
  34. package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
  35. package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
  36. package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
  37. package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
  38. package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
  39. package/dist/form-view-GPITA6X5.js +2 -0
  40. package/dist/index.cjs +1 -2
  41. package/dist/index.d.cts +7 -382
  42. package/dist/index.d.ts +7 -382
  43. package/dist/index.js +1 -2
  44. package/dist/overlay-de-7NCDPEIN.js +2 -0
  45. package/dist/overlay-es-6MGCPCFO.js +2 -0
  46. package/dist/overlay-pt-VTK6XJDH.js +2 -0
  47. package/dist/portrait-capture-view-Q6XYTGE7.js +2 -0
  48. package/dist/portrait-review-view-KZVKR6XN.js +2 -0
  49. package/dist/proof-of-address-view-YYZTILHQ.js +2 -0
  50. package/dist/styles.css +35 -11
  51. package/dist/theme-BhxSZSbp.d.cts +548 -0
  52. package/dist/theme-BhxSZSbp.d.ts +548 -0
  53. package/dist/verification/index.cjs +2 -0
  54. package/dist/verification/index.d.cts +895 -0
  55. package/dist/verification/index.d.ts +895 -0
  56. package/dist/verification/index.js +2 -0
  57. package/dist/verification.css +868 -0
  58. package/package.json +26 -13
  59. package/sbom.cdx.json +153 -0
  60. package/dist/index.cjs.map +0 -1
  61. package/dist/index.js.map +0 -1
package/LICENSE CHANGED
@@ -1,20 +1,29 @@
1
- Sekyro SDK — Proprietary License
1
+ Sekyro AI SDK License (proprietary)
2
2
 
3
- Copyright (c) 2026 Ibtikar Technologies. All rights reserved.
3
+ Copyright (c) 2026 Ibtikar Technologies, Inc. All rights reserved.
4
4
 
5
- This software (the "SDK") is proprietary to Ibtikar Technologies. Use is
6
- permitted only under a Sekyro customer agreement with Ibtikar Technologies, and
7
- only to integrate the customer's own applications with the Sekyro
8
- identity-verification service. For that purpose you may install the SDK
9
- from the public npm registry and run it unmodified.
5
+ This SDK is proprietary software of Ibtikar Technologies, Inc., licensed
6
+ only under the Sekyro AI SDK License:
7
+ https://sekyro.ai/en/legal/sdk-license
8
+ (in French: https://sekyro.ai/fr/legal/sdk-license,
9
+ in Arabic: https://sekyro.ai/ar/legal/sdk-license).
10
10
 
11
- No other right or license, express or implied, is granted. You may not
12
- modify, reverse-engineer, redistribute, sublicense, resell or create
13
- derivative works of the SDK, nor remove or alter this notice. The source
14
- code is published for transparency (build provenance, security review); its
15
- publication grants no additional rights.
11
+ In short, and subject to the full license:
16
12
 
17
- THE SDK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED. TO THE EXTENT PERMITTED BY LAW, IBTIKAR TECHNOLOGIES SHALL NOT BE
19
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE
20
- SDK, EXCEPT AS PROVIDED IN THE APPLICABLE CUSTOMER AGREEMENT.
13
+ - You may use the SDK only with a Sekyro AI account, a customer agreement
14
+ with Ibtikar Technologies, Inc. and valid API keys, to integrate the
15
+ Sekyro AI services into your own applications. You may distribute it to
16
+ your end users only as embedded in those applications.
17
+ - You may not use it with another identity verification provider, modify it
18
+ beyond the configuration and theming it exposes, reverse engineer,
19
+ decompile or disassemble it (except where the law expressly allows it),
20
+ circumvent its security, attestation, license checks or usage metering,
21
+ or distribute or sublicense it on its own.
22
+ - Open-source components keep their own licenses. See the third-party
23
+ notices shipped with this SDK.
24
+ - The SDK is provided "as is", without warranty, except as your customer
25
+ agreement provides. The license is governed by the laws of the State of
26
+ Delaware, USA. If this license and your customer agreement conflict,
27
+ the customer agreement prevails.
28
+
29
+ Questions: contact@sekyro.ai
package/README.md CHANGED
@@ -1,22 +1,36 @@
1
1
  # @sekyro/react
2
2
 
3
- React component for [Sekyro](https://sekyro.ai) liveness capture: the hosted page's
4
- capture UI (`<LivenessCapture />`), extracted onto the public `@sekyro/web` API with
5
- no private design-system or framework dependency. Themeable through CSS variables,
6
- ar / fr / en built in, RTL-safe (logical CSS only), WCAG AAA defaults.
3
+ React components for [Sekyro AI](https://sekyro.ai) identity verification, built on the
4
+ public `@sekyro/web` API with no private design-system or framework dependency:
7
5
 
8
- > Status: `0.1.0-rc.0`, still `private` — the public npm release is wired in a later
9
- > task (Changesets + Trusted Publishing). Sekyro's own hosted page dogfoods it via a
10
- > `file:` link.
6
+ - `@sekyro/react`: `<LivenessCapture />`, the hosted page's liveness capture UI;
7
+ - `@sekyro/react/verification`: `<SekyroVerification />`, which renders every step of the
8
+ session's Sekyro flow (codes, choices, national number, document, identity summary,
9
+ liveness and face match, ICAO portrait, national eID, result), and the single step
10
+ components.
11
+
12
+ Themeable through CSS variables, six languages built in (ar, fr, en, es, pt, de), RTL-safe (logical CSS only),
13
+ WCAG AAA defaults. Sekyro AI's own hosted page uses the same components.
11
14
 
12
15
  ## Install
13
16
 
14
17
  ```sh
15
- npm install @sekyro/react @sekyro/web react react-dom
18
+ npm install @sekyro/react@next @sekyro/web@next react react-dom
16
19
  ```
17
20
 
18
- Peer dependencies: `react >=18.2`, `react-dom >=18.2`, `@sekyro/web ^0.1.0-rc.0`.
19
- No other runtime dependencies.
21
+ Peer dependencies: `react >=18.2`, `react-dom >=18.2`, and `@sekyro/web` at the release this
22
+ package was built with or later, up to the next minor rc line (`npm view @sekyro/react@next peerDependencies`
23
+ shows the exact range).
24
+ No other runtime dependencies. Use of the SDK is governed by the
25
+ [Sekyro AI SDK License](https://sekyro.ai/legal/sdk-license) (summarised in `LICENSE`)
26
+ and your Sekyro AI customer agreement.
27
+
28
+ Samples: [`react-vite`](https://github.com/IBTIKAR-Technologies/sekyro-examples/tree/main/react-vite) (`<SekyroVerification>` in a Vite app) and
29
+ [`nextjs-app-router`](https://github.com/IBTIKAR-Technologies/sekyro-examples/tree/main/nextjs-app-router) (the App Router pieces below).
30
+
31
+ The full guide (sessions and flows, the whole flow with `<SekyroVerification>`, CSP,
32
+ model assets, reason codes) is the
33
+ [web SDK guide](https://docs.sekyro.ai/en/web/embedded-sdk).
20
34
 
21
35
  ## Usage
22
36
 
@@ -39,12 +53,13 @@ const verification = createVerification({ clientToken, locale: "ar" });
39
53
  - **Verification mode** (`verification` set): the handle comes from
40
54
  `verification.liveness()`; after `captured` the SDK uploads, attests and submits the
41
55
  `liveness` + `face_match` checks and the verdict arrives via `onResult`
42
- (`approved | rejected | review | retry | unavailable`). On `retry` the SDK re-arms
56
+ (`verified | not_verified | review | retry | unavailable`; a `not_verified` result says why
57
+ in `reason` and the detail in `reasonCode`). On `retry` the SDK re-arms
43
58
  the camera by itself (`rearm: 'auto'`) while the component shows the reason, the
44
59
  retry coaching and the remaining attempts; with `createVerification({ rearm: 'manual' })`
45
60
  the component instead offers a focused "Start a new attempt" button.
46
61
  - The still freezes the stage the instant recording stops (the handle's `frozen`
47
- event) — before the clip finalizes; the "camera off" pill only appears once the
62
+ event), before the clip finalizes; the "camera off" pill only appears once the
48
63
  tracks are actually stopped (`captured`). A LOW device profile (`profile` event)
49
64
  drops the decorative animations.
50
65
  - **Capture-only mode** (no `verification`): `createLivenessCapture()`; the component
@@ -56,15 +71,14 @@ const verification = createVerification({ clientToken, locale: "ar" });
56
71
  | Prop | Type | Notes |
57
72
  |---|---|---|
58
73
  | `verification?` | `Verification` | From `createVerification()`. Absent → capture-only. |
59
- | `locale` | `"ar" \| "fr" \| "en"` | Built-in dictionary. |
74
+ | `locale` | `"ar" \| "fr" \| "en" \| "es" \| "pt" \| "de"` | Built-in dictionary; all six cover every screen. `es`, `pt` and `de` load on demand. |
60
75
  | `dir?` | `"ltr" \| "rtl"` | Defaults to `rtl` for `ar`. |
61
76
  | `strings?` | `Partial<Strings>` | Per-key overrides on top of the built-ins. |
62
77
  | `slots?` | `{ header, footer, intro(start, context), stageOverlay(videoRef), voicePrompt(hint, text, key, voice), errorPanel(err, retry) }` | `intro` replaces the built-in pre-capture screen (see below); `stageOverlay` renders inside the stage box above the ring (overlays, debug HUDs); `voicePrompt` replaces the built-in voice chip in the stage's start corner; `errorPanel` replaces the camera-error notice. |
63
- | `autoStart?` | `boolean \| "when-permitted"` | Skip the pre-capture screen and start once the detector preload is ready — at most once per mount. `true` arms it (flip it when your own preconditions are met); `"when-permitted"` arms it only when the camera permission is already `granted` (until the permission probe answers, the screen shows its loader). |
78
+ | `autoStart?` | `boolean \| "when-permitted"` | Skip the pre-capture screen and start once the detector preload is ready, at most once per mount. `true` arms it (flip it when your own preconditions are met); `"when-permitted"` arms it only when the camera permission is already `granted` (until the permission probe answers, the screen shows its loader). |
64
79
  | `notice?` | `ReactNode \| { tone, text }` | Host message above the pre-capture screen (busy service, previous failure). Pre-capture only. |
65
- | `startDisabled?` / `startLabel?` | `boolean` / `ReactNode` | Disable the built-in Start and relabel it (e.g. a cooldown: "Retry in 12 s"). It gates only the pre-capture Start — not the error Retry, "record again" or the retake button. |
80
+ | `startDisabled?` / `startLabel?` | `boolean` / `ReactNode` | Disable the built-in Start and relabel it (e.g. a cooldown: "Retry in 12 s"). It gates only the pre-capture Start, not the error Retry, "record again" or the retake button. |
66
81
  | `tips?` | `false \| (BuiltInTipId \| IntroTip)[]` | Tips card; default `DEFAULT_TIPS`; `false` hides it. |
67
- | `defaultFacing?` | `"user" \| "environment"` | Camera the attempt opens with (default front). |
68
82
  | `voice?` | `false \| VoiceOptions` | Voice guidance; on by default. `false` = no speech, no switch, no chip. |
69
83
  | `onGuidance?` | `(key) => void` | Telemetry: once per change of the displayed `fcv3.*` guidance key. |
70
84
  | `onStateChange?` | `(state) => void` | Every capture-state transition, for host chrome (hide a description while the stage is live, telemetry). |
@@ -77,19 +91,28 @@ const verification = createVerification({ clientToken, locale: "ar" });
77
91
 
78
92
  While the capture is idle the component renders a built-in "get ready" screen:
79
93
  a tips card, the camera-permission row (`granted` / `prompt` / `denied` with the
80
- fix / `unknown`), a front/back choice on devices with both cameras, the voice
81
- switch, the security note and **one** Start control gated on the detector preload
94
+ fix / `unknown`), the voice switch, the security note and **one** Start control gated on the detector preload
82
95
  (`preloadLivenessAssets` from `@sekyro/web`, kicked on mount): a busy Start while
83
96
  the models download, Start when ready, a danger notice + Retry if the download
84
97
  failed. Without a camera API (SSR, old browsers) the preload is skipped and Start
85
98
  is ready at once.
86
99
 
87
100
  `slots.intro(start, context)` replaces the whole screen. `context` is
88
- `{ assets: "loading" | "ready" | "failed", retryAssets, permission, facing,
89
- setFacing, canChooseFacing, voice }`; call `start` from your click handler — it
90
- opens `context.facing` and unlocks audio inside the gesture (iOS). The `notice`
101
+ `{ assets: "loading" | "ready" | "failed", retryAssets, permission, captureMode,
102
+ facing, voice }`; call `start` from your click handler:
103
+ it opens `context.facing` and unlocks audio inside the gesture (iOS). The `notice`
91
104
  still renders above your intro.
92
105
 
106
+ ### Who films the face (capture mode)
107
+
108
+ The session's flow decides it (`HostedSessionView.capture.mode`); no prop can
109
+ change it. A **self** capture (the default, and every capture-only mount) uses the
110
+ front camera only. An **assisted** capture (an agent films the person) uses the back
111
+ camera only, with an unmirrored preview, and shows the agent's copy
112
+ (`capture.assisted.*`); neither offers a front/back choice or flip. The voice
113
+ guidance still speaks to the person filmed. On a phone, a capture held sideways
114
+ waits with `fcv3.hold_upright` until the phone is upright.
115
+
93
116
  ```tsx
94
117
  <LivenessCapture
95
118
  verification={verification}
@@ -103,25 +126,25 @@ still renders above your intro.
103
126
 
104
127
  ### Voice guidance
105
128
 
106
- During capture the component speaks the displayed (debounced) guidance — the
107
- `fcv3.*` gate hints — through one `<audio>` element, falling back to the
129
+ During capture the component speaks the displayed (debounced) guidance (the
130
+ `fcv3.*` gate hints) through one `<audio>` element, falling back to the
108
131
  device voice (`speechSynthesis`). A stage chip (`aria-pressed`) and the intro
109
132
  switch toggle it; the viewer's choice persists in `localStorage`.
110
133
 
111
134
  | `VoiceOptions` | Default | Notes |
112
135
  |---|---|---|
113
136
  | `defaultEnabled?` | `true` | Used when the viewer has no stored preference. |
114
- | `clips?` | verification mode: Sekyro clips from the session (add `https://assets.sekyro.ai` to `media-src`); capture-only: none | `VoiceClipSource`: a resolver `(key, locale) => url \| null` **or** a map `{ [locale]: { [voiceKey]: url } }` (e.g. delivered by your backend — pass a new object to change it). Yours always wins over the Sekyro clips. A missing URL or a throwing resolver = no clip → device voice. |
137
+ | `clips?` | verification mode: Sekyro AI clips from the session (add `https://assets.sekyro.ai` to `media-src`); capture-only: none | `VoiceClipSource`: a resolver `(key, locale) => url \| null` **or** a map `{ [locale]: { [voiceKey]: url } }` (for example delivered by your backend; pass a new object to change it). Yours always wins over the Sekyro AI clips. A missing URL or a throwing resolver = no clip → device voice. |
115
138
  | `speechFallback?` | `true` | `false`, or the locales where the device voice may speak. A device with no voice for the language stays silent rather than read Arabic in a French voice. |
116
139
  | `storageKey?` | `"sekyro.voiceGuidance"` | `null` = do not persist. |
117
140
 
118
- **Sekyro clips.** In verification mode the component speaks the recorded
141
+ **Sekyro AI clips.** In verification mode the component speaks the recorded
119
142
  ar/fr clip set that arrives with the session (`verification.voiceClips()`),
120
- served from `https://assets.sekyro.ai` — a page with a Content-Security-Policy
143
+ served from `https://assets.sekyro.ai`: a page with a Content-Security-Policy
121
144
  must allow that origin in `media-src`. Until the set arrives, when the session
122
145
  has none, or when it cannot be fetched, the device voice speaks. The package
123
- ships no audio. `VOICE_KEYS` lists the nine `fcv3.*` guidance keys plus
124
- `capture.tips.summary`.
146
+ ships no audio. `VOICE_KEYS` lists the eleven `fcv3.*` guidance keys,
147
+ `capture.tips.summary` and `capture.lookAtColours`.
125
148
 
126
149
  **"Listen to the instructions".** The pre-capture screen has a button under
127
150
  the tips that plays the spoken summary `capture.tips.summary`. It never
@@ -147,7 +170,7 @@ when `slots.voicePrompt` is set and `voice` is undefined (pass `voice={{}}` to k
147
170
  the built-in voice and silence it).
148
171
 
149
172
  **CSP.** Clips and the unlock use `media-src 'self' blob:` (the silent unlock WAV
150
- is a `blob:` URL — no `data:` needed); add your clip host if `clips` points off-origin.
173
+ is a `blob:` URL, no `data:` needed); add your clip host if `clips` points off-origin.
151
174
 
152
175
  ### Theme
153
176
 
@@ -157,13 +180,16 @@ is a `blob:` URL — no `data:` needed); add your clip host if `clips` points of
157
180
  defaults apply (`DEFAULT_THEME`). You can also set the variables yourself on any
158
181
  ancestor.
159
182
 
183
+ Status colours are standard and not part of the theme: the component picks the
184
+ Sekyro status set that stays readable on your page colours.
185
+
160
186
  Contrast rules the component relies on (checked for the default theme in
161
187
  `test/contrast.test.ts`):
162
188
 
163
189
  - `fg` on `surface` / `bg`, `brandFg` on `brand`: text → 7:1 (AAA);
164
190
  - `surface` on `fg`: the stage scrim is `fg` and the guidance line is `surface`, so the
165
191
  on-camera text inherits the same ratio;
166
- - `fgMuted` on `surface`: secondary text only (security note, checking hint) — AA
192
+ - `fgMuted` on `surface`: secondary text only (security note, checking hint): AA
167
193
  (4.5:1) is the floor, AAA recommended;
168
194
  - `brand`, `ring`, `danger`, `warning`, `success` on `surface`: non-text UI → 3:1.
169
195
 
@@ -171,8 +197,25 @@ Contrast rules the component relies on (checked for the default theme in
171
197
 
172
198
  Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
173
199
  `reasons.*`, `errors.attestation_invalid`, `errors.network_error`, `common.retry`).
200
+ A result with `reasonCode: 'attestation'` shows `errors.attestation_invalid`; its
201
+ `attestationError` (from `@sekyro/web`) tells a security check frame your page blocked
202
+ (`challenge_frame_blocked`: allow `frame-src https://verify.sekyro.ai` in your
203
+ Content-Security-Policy) from a token the server refused (no `attestationError`).
174
204
  `hintStringKey(hint)` maps a `GateHint` code to its guidance key;
175
- `reasonStringKey(reason)` maps a result reason to its copy key.
205
+ `reasonStringKey(reasonCode)` maps a result's `reasonCode` to its copy key.
206
+
207
+ The result page has one screen per end state, each with its own title and explanation
208
+ (`session.result.<screen>.*`, the line naming your organization from `native.result.<screen>`):
209
+ `verified`, `review`, `rejected`, `inconclusive` (no verdict could be reached), `unavailable`
210
+ (the check could not run), `expired` (the person left, nobody opened the link, you cancelled
211
+ it, or a newer session took it over), `policy` (a flow rule stopped it, with the rule's own
212
+ line), `cooldown` (this device may try again later) and, for a step only the phone apps can
213
+ run, `platform_unsupported`.
214
+
215
+ In the Sandbox, the result screen of a session that ran on test data because no enrolled
216
+ tester ran it adds a short notice: `sandbox.simulatedTitle`, with `sandbox.simulatedNoTesters`
217
+ or `sandbox.simulatedGate` for the reason. `onResult` receives the same fact as
218
+ `result.sandbox` (`{ simulated: true, reason }`). Neither appears in Live.
176
219
 
177
220
  ### Accessibility
178
221
 
@@ -184,9 +227,108 @@ Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
184
227
  - Inline SVG icons only; no emoji; logical CSS properties only (`scripts/check-css.mjs`
185
228
  fails the build on any physical `left`/`right`).
186
229
 
187
- ## Scripts
188
-
189
- `npm test` (CSS lint + vitest: behaviour, jest-axe per state × ar/fr, contrast, RTL
190
- snapshot) · `npm run typecheck` · `npm run build` (tsup ESM + CJS + d.ts +
191
- `dist/styles.css`) · `npm run api:check` (api-extractor against
192
- `etc/sekyro-react.api.md`).
230
+ ## Entries: `@sekyro/react` and `@sekyro/react/verification`
231
+
232
+ The main entry is the liveness component above. The flow steps
233
+ (`<SekyroVerification>`, `<SekyroFlow>`, `<PhoneOtpStep>`, `<EmailOtpStep>`,
234
+ `<MethodChoice>`, `<EidStep>`, `<IdNumberEntry>`, `<DocumentCapture>`, `<PortraitCapture>`,
235
+ `<ProofOfAddress>`, `<VerificationResultScreen>`) live on a second entry, `@sekyro/react/verification`, with
236
+ its own stylesheet (`import "@sekyro/react/verification.css"` next to `styles.css`). It
237
+ needs `@sekyro/web` 0.1.0-rc.27 or later (see the peer range above). The server decides the steps
238
+ from the session's flow; the component renders whichever step comes next.
239
+
240
+ The phone step follows the rules the server sends per country: it groups digits as they are typed, stops at the
241
+ country's longest length, enables Send only on a valid length and says so inline otherwise. A full number typed or
242
+ pasted lands on its country, and an open flow offers "Another country". The value sent is always the number in E.164.
243
+
244
+ The proof of address step (`<ProofOfAddress>`, rendered by `<SekyroVerification>` for a `poa` step) lists the
245
+ documents the server accepts for the person's country ("Accepted for France", or "Accepted documents" when no
246
+ country is known), each with how recent it must be, with the country named in the person's language. It then
247
+ follows the step's source: a file picker that takes 1 to 3 photos or one PDF, a page camera that takes one photo per
248
+ page, or the choice between the two. On a desktop the camera continues on a phone and the file upload stays on the
249
+ desktop. After a failed attempt it says what to do next above the list, and when the document is in another person's
250
+ name it asks for that person's signed letter. Its screens and copy load on demand. The driver's license shows in the
251
+ document picker when the flow accepts it, without the live MRZ hint.
252
+
253
+ `verification.css` loads the SDK's fonts (subset Inter, Geist and Cairo,
254
+ woff2, OFL) from `fonts/` beside it: your bundler emits them as assets (allow
255
+ them in your CSP `font-src`); they load only for the text that needs them and
256
+ never block it (`font-display: swap`). A partner font from the dashboard
257
+ branding or `theme.fontFamily` still wins.
258
+
259
+ Pass `onClose` to `<SekyroVerification>` to take the person back to your page:
260
+ the header then ends with a close button (`{ reason: "cancelled" }`) and the
261
+ result page with the Continue button (`{ reason: "finished", result }`). Consent is
262
+ the one line over the first step; the runner records it on the person's first
263
+ action.
264
+
265
+ **Use the ESM build (`import`).** In ESM both entries import one shared copy of
266
+ the common code (theme, strings, `<LivenessCapture>`), and the document camera
267
+ view is a separate chunk loaded only when a document step shows. The CJS build
268
+ (`require`) has no code splitting: each entry is a self-contained bundle with
269
+ its **own copy** of the shared modules, so nothing module-level is shared
270
+ between `@sekyro/react` and `@sekyro/react/verification` (for example, a
271
+ `SekyroThemeProvider` or `<LivenessCapture>` imported from one entry is a
272
+ different component from the one the other entry renders), the camera view is
273
+ inlined, and the code is downloaded twice if you import both. The theme itself
274
+ is plain CSS variables on `.sekyro-root`, so a provider from either entry still
275
+ themes both, but every bundler partners use (Next, Vite, webpack 5, esbuild)
276
+ resolves the ESM build by default, so keep it that way.
277
+
278
+ ## Next.js App Router
279
+
280
+ Every file of the package starts with `"use client"`, and both entries import and render on the
281
+ server without touching browser APIs, so a Server Component tree can render
282
+ `<SekyroVerification>` and `<LivenessCapture>`; they run as client components. Three pieces:
283
+
284
+ 1. **Create the session on the server**, in a Server Action or a route handler, with
285
+ [`@sekyro/node`](https://www.npmjs.com/package/@sekyro/node). The API key stays on the server; the page
286
+ receives only the client token.
287
+
288
+ ```ts
289
+ // app/verify/actions.ts
290
+ "use server";
291
+ import { Sekyro } from "@sekyro/node";
292
+
293
+ const sekyro = new Sekyro({ apiKey: process.env.SEKYRO_API_KEY! });
294
+
295
+ export async function startVerification(userId: string, attemptId: string): Promise<string> {
296
+ const session = await sekyro.sessions.create(
297
+ // externalRef: your own stable user id. resumeOpen: a reload or a second click gets the open session back.
298
+ { person: { externalRef: userId }, resumeOpen: true },
299
+ // A new key for each click; the same key when you retry this request after a network error.
300
+ { idempotencyKey: `verify:${userId}:${attemptId}` },
301
+ );
302
+ return session.clientToken;
303
+ }
304
+ ```
305
+
306
+ 2. **Render the flow in a client component.** Create the verification in an effect, so it exists
307
+ only in the browser:
308
+
309
+ ```tsx
310
+ // app/verify/verify-flow.tsx
311
+ "use client";
312
+ import { useEffect, useState } from "react";
313
+ import { createVerification, type Verification } from "@sekyro/web";
314
+ import { SekyroVerification } from "@sekyro/react/verification";
315
+
316
+ export function VerifyFlow({ clientToken }: { clientToken: string }) {
317
+ const [verification, setVerification] = useState<Verification | null>(null);
318
+ useEffect(() => {
319
+ const v = createVerification({ clientToken, locale: "fr", rearm: "manual" });
320
+ setVerification(v);
321
+ return () => v.destroy();
322
+ }, [clientToken]);
323
+ if (verification === null) return null;
324
+ return <SekyroVerification verification={verification} locale="fr" assetBaseUrl="/models-v3" />;
325
+ }
326
+ ```
327
+
328
+ Import the two stylesheets once, from `app/layout.tsx`:
329
+ `import "@sekyro/react/styles.css"; import "@sekyro/react/verification.css";`. Serve the
330
+ detector assets from `public/models-v3` (or pass your own `assetBaseUrl`).
331
+
332
+ 3. **Receive the webhook in a route handler** on the Node runtime (`export const runtime = "nodejs"`):
333
+ read the raw body with `request.text()`, then `verifyWebhook(rawBody, signatureFromHeaders(request.headers), secret)`
334
+ from `@sekyro/node`.
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:!0});export{d as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{d as I}from"./chunk-TLYACCNO.js";import{a as S}from"./chunk-MDXA7C7O.js";import{a}from"./chunk-2KED7D2Q.js";import{useId as V}from"react";import{jsx as k,jsxs as E}from"react/jsx-runtime";var A=Array.from({length:56},(r,e)=>{let s=e/56*2*Math.PI-Math.PI/2,t=Math.cos(s),i=Math.sin(s);return{id:`tick-${e}`,frac:e/55,x1:150+108*t,y1:150+108*i,x2:150+138*t,y2:150+138*i,style:{transitionDelay:`${e*6}ms`}}});function T(r,e,s,t){return s?"var(--sekyro-color-success)":r?t?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":e<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":e<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}a(T,"tickColor");var w="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";function x({progress:r,phase:e,draining:s=!1}){let t=Math.min(1,Math.max(0,r)),i=Math.round(t*56),n=e==="checking",l=e==="recording",c=e==="frozen",u=n||c,p=n||l||c,y=e==="locked"||p,f=s&&!y;return E("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":e,"data-filled":i,"data-recording":l?"":void 0,"data-draining":f?"":void 0,children:[k("path",{fillRule:"evenodd",d:w,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":u?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),E("g",{className:e==="locked"?"sekyro-capture-settle":void 0,children:[k("g",{className:u?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:A.map((d,_)=>k("line",{x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,stroke:T(_<i,d.frac,y,f),strokeWidth:3,strokeLinecap:"round",style:d.style,className:"sekyro-arc__tick"},d.id))}),k("g",{className:e==="seeking"?"sekyro-capture-breathe":void 0,children:k("circle",{cx:150,cy:150,r:100,fill:"none",stroke:y?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:y?3.5:2.5,className:p?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}a(x,"CaptureArc");import{Fragment as M,jsx as o,jsxs as m}from"react/jsx-runtime";function ne({videoRef:r,guidanceText:e,guidanceHint:s,guidanceKey:t,progress:i,phase:n,draining:l=!1,stillUrl:c,showChecking:u,operatorText:p=null,voicePrompt:y,overlay:f,reduceMotion:d=!1,modeSwitch:_=null}){let h=I(),b=n==="checking",g=b||n==="frozen",v=g&&u?h("capture.checking"):e,C=y?.(s,v,t);return m("div",{className:d?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[o("video",{ref:r,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),c!==null&&g?o("img",{src:c,alt:h("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,o(x,{progress:i,phase:n,draining:l}),f?.(r),C!=null&&!g?o("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:C}):null,_!==null&&!g?o(H,{view:_,className:"sekyro-stage__corner-end sekyro-stage__mode-switch",kind:"chip"}):null,b&&u?m("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[o(G,{}),h("capture.cameraOff")]}):null,m("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[o("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:v},v),g&&u?o("span",{className:"sekyro-stage__guidance-hint",children:h("capture.checkingHint")}):p!==null&&!g?o("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:p}):null]})]})}a(ne,"CaptureStage");function H({view:r,className:e,kind:s}){let t=V(),i=m(M,{children:[o(D,{}),o("span",{children:r.label})]}),n={onClick:r.onSwitch,"aria-describedby":t,"data-testid":"sekyro-capture-mode-switch","data-mode":r.to};return m(M,{children:[s==="chip"?o(S,{kind:"chip",className:e,...n,children:i}):o("button",{type:"button",className:e,...n,children:i}),o("span",{id:t,className:"sekyro-visually-hidden",children:r.description})]})}a(H,"ModeSwitchChip");function D(){return m("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[o("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),o("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),o("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}a(D,"FlipCameraIcon");function G(){return m("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[o("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),o("path",{d:"M3 3l18 18"})]})}a(G,"CameraOffIcon");import{screenRampColourValue as P}from"@sekyro/web";import{useEffect as U,useLayoutEffect as $,useRef as L}from"react";import{createPortal as K}from"react-dom";import{Fragment as X,jsx as N,jsxs as Z}from"react/jsx-runtime";var W=typeof window>"u"?U:$,R="data-sekyro-ramp",O=[["background-color","transparent"],["background-image","none"]];function z(r){let e=[],s=r.ownerDocument;for(let n=r;n!==null&&n!==s.documentElement;n=n.parentElement){if(!(n instanceof HTMLElement)&&!(n instanceof SVGElement))continue;let l=n.style;for(let[c,u]of O){let p=l.getPropertyValue(c),y=l.getPropertyPriority(c);l.setProperty(c,u,"important"),e.push(()=>{p===""?l.removeProperty(c):l.setProperty(c,p,y)})}}let t=s.documentElement,i=t.hasAttribute(R);return t.setAttribute(R,""),i||e.push(()=>t.removeAttribute(R)),()=>{for(let n of e.reverse())n()}}a(z,"clearAncestorBackdrops");function B(r){return{position:"fixed",inset:0,minWidth:"100vw",minHeight:"100lvh",margin:0,padding:0,border:0,zIndex:-1,pointerEvents:"none",backgroundColor:P(r)}}a(B,"washStyle");function Y(r){return{position:"absolute",inset:0,pointerEvents:"none",backgroundColor:P(r)}}a(Y,"coverStyle");function de({colour:r}){let e=L(null),s=r!==null;return W(()=>{let t=e.current?.parentElement;if(!(!s||t===null||t===void 0))return z(t)},[s]),r===null||typeof document>"u"?null:Z(X,{children:[N("div",{ref:e,"aria-hidden":"true","data-testid":"sekyro-screen-ramp-cover","data-colour":r,style:Y(r)}),K(N("div",{"aria-hidden":"true","data-testid":"sekyro-screen-ramp","data-colour":r,style:B(r)}),document.body)]})}a(de,"ScreenRampLayer");export{ne as a,H as b,de as c};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var e={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق بهويتك الرقمية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل رمز الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز. اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك. اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات. تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا. أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"};var n={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter your eID code","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired. Get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect. Check it and enter it again","reasons.eid_code_expired":"Your code has expired. Get a new code to continue","reasons.eid_locked":"Too many incorrect codes. eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now. Try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes. Enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"};var d={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Votre code {provider}","eid.codeTitleGeneric":"Saisissez votre code eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré. Demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré. Demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects. La connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment. Réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"};export{e as a,n as b,d as c};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{c as g}from"./chunk-SRQXICOI.js";import{a as s}from"./chunk-2KED7D2Q.js";var c={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Geist Fallback", "Sekyro Geist Fallback Roboto", "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};import{jsx as y}from"react/jsx-runtime";var t={colors:{...c.light},radius:c.radiusLg,fontFamily:c.font},l={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function S(r={}){let e={};for(let o of Object.keys(l))e[l[o]]=r.colors?.[o]??t.colors[o];return e["--sekyro-radius"]=r.radius??t.radius,e["--sekyro-font"]=r.fontFamily??t.fontFamily,e}s(S,"themeToCssVars");var k=/^#[0-9a-f]{6}$/i,m=["brand","brandFg","bg","surface","fg","fgMuted"],b=["danger","success","warning"],u=!1;function p(r){let e=r?.colors;if(r===void 0||e===void 0||!b.some(i=>i in e))return r;!u&&g()&&(u=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:o,success:a,warning:f,...n}=e;return{...r,colors:n}}s(p,"stripDeprecatedStatusColors");var T={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},h={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function x(r){let e={};if(!r)return e;let o={},a=r.colors??{};for(let i of m){let d=a[i];d!==void 0&&k.test(d)&&(o[i]=d)}o.brand&&(o.ring=o.brand),Object.keys(o).length&&(e.colors=o);let f=T[r.radius];f&&(e.radius=f);let n=h[r.fontFamily];return n!==void 0&&(e.fontFamily=n?`${n}, ${t.fontFamily}`:t.fontFamily),e}s(x,"brandingToTheme");function I(...r){let e={};for(let o of r)o?.colors&&(e.colors={...e.colors,...o.colors}),o?.radius&&(e.radius=o.radius),o?.fontFamily&&(e.fontFamily=o.fontFamily);return e}s(I,"mergeThemes");function C({theme:r,children:e,className:o}){return y(R,{theme:p(r),...o!==void 0?{className:o}:{},children:e})}s(C,"SekyroThemeProvider");function R({theme:r,children:e,className:o}){let a=S(r);return y("div",{className:o===void 0?"sekyro-root":`sekyro-root ${o}`,style:a,children:e})}s(R,"SekyroThemeRoot");export{c as a,t as b,S as c,p as d,x as e,I as f,C as g,R as h};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as u}from"./chunk-2KED7D2Q.js";import{createContext as s}from"react";var p=s(null);function a(t,n,r){let e=n.detail;return{check:t,kind:n.kind,...e?.name!==void 0?{name:e.name}:{},...e?.phase!==void 0?{phase:e.phase}:{},...e?.engineKind!==void 0?{engineKind:e.engineKind}:{},attempt:Math.max(0,Math.min(1e3,r))}}u(a,"captureIssueOf");function o(t,n){if(t!==void 0)try{t(n)}catch{}}u(o,"sendCaptureIssue");export{p as a,a as b,o as c};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as i}from"./chunk-2KED7D2Q.js";import{HostedApiError as o,InvalidInputError as r,OtpInputError as a}from"@sekyro/web";function d(n,t){if(n instanceof r)return n.field==="phone"?"otp.phoneInvalid":n.field==="code"?"otp.codeInvalid":n.kind==="check_digit"?"population.reason_id_number_invalid":"population.invalid";if(n instanceof a&&n.field==="channel")return"otp.reason_otp_channel_unavailable";if(n instanceof o){if(n.code==="attestation_invalid"&&n.details?.browserCheck==="clock_wrong")return"errors.device_clock";let e=`errors.${n.code}`;if(Object.hasOwn(t,e))return e}return"errors.network_error"}i(d,"errorKey");export{d as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{c as P}from"./chunk-2SVN4T5I.js";import{a as C,k as L,o as z}from"./chunk-OLU5EOHP.js";import{a as d}from"./chunk-2KED7D2Q.js";import{useLayoutEffect as H,useRef as U,useState as A}from"react";import{jsx as s,jsxs as o}from"react/jsx-runtime";var N=72;function B(c,r){let n=c*.72,a=n*1.32;return{cx:c/2,cy:(r-a)/2.1+a/2,a:n/2,b:a/2}}d(B,"faceOval");function E({cx:c,cy:r,a:n,b:a}){return Array.from({length:N},(R,$)=>{let u=-Math.PI/2+$/N*2*Math.PI,y=Math.cos(u),l=Math.sin(u),f=c+n*y,p=r+a*l,h=Math.hypot(a*y,n*l),k=a*y/h,v=n*l/h,i=d(b=>Math.round(b*10)/10,"r");return`M${i(f+k*16)} ${i(p+v*16)}L${i(f+k*28)} ${i(p+v*28)}`})}d(E,"ticks");function T({video:c,instruction:r,note:n,status:a,busy:R,progress:$,still:u,overlay:y,ramp:l,onClose:f,closeLabel:p,end:h,live:k=!0,children:v,testId:i}){L(k);let b=U(null),[t,F]=A({w:0,h:0});H(()=>{let x=b.current;if(x===null)return;let O=d(()=>F({w:x.clientWidth,h:x.clientHeight}),"measure");if(O(),typeof ResizeObserver>"u")return;let I=new ResizeObserver(O);return I.observe(x),()=>I.disconnect()},[]);let e=B(t.w,t.h),g=t.w>0?E(e):[],M=Math.round(Math.min(1,Math.max(0,$))*N),S=e.cy-e.b,m=Math.max(e.a,e.b)+40,w=70*Math.PI/180;return s("section",{className:"sekyro-lm sekyro-fc","aria-label":r,"data-testid":i,"data-ramp":l?"":void 0,children:o("div",{ref:b,className:"sekyro-lm-stage",children:[c,u?s("img",{className:"sekyro-lm-video sekyro-fc-still",src:u,alt:""}):null,y,s(P,{colour:l??null}),t.w>0?o("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${t.w} ${t.h}`,"aria-hidden":"true",focusable:"false",children:[o("defs",{children:[o("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:e.cx-m*Math.sin(w),y1:e.cy,x2:e.cx,y2:e.cy,children:[s("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),s("stop",{offset:"1",className:"sekyro-fc-fade"})]}),s("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:t.w,height:t.h,children:s("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${e.cx}px ${e.cy}px`},d:`M${e.cx} ${e.cy}L${e.cx-m*Math.sin(w)} ${e.cy-m*Math.cos(w)}A${m} ${m} 0 0 1 ${e.cx} ${e.cy-m}Z`,fill:"url(#sekyro-fc-fade)"})})]}),s("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${t.w}V${t.h}H0Z M${e.cx-e.a} ${e.cy}a${e.a} ${e.b} 0 1 0 ${2*e.a} 0a${e.a} ${e.b} 0 1 0 ${-2*e.a} 0Z`}),s("ellipse",{className:"sekyro-fc-rim",cx:e.cx,cy:e.cy,rx:e.a,ry:e.b}),s("path",{className:"sekyro-fc-ticks",d:g.join("")}),M>0?s("path",{className:"sekyro-fc-ticks is-done",d:g.slice(0,M).join("")}):null,M<N?s("path",{className:"sekyro-fc-ticks is-light",d:g.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,s("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:S-80},children:s("div",{role:"status","aria-live":"polite",children:s(z,{swapKey:r,className:"sekyro-lm-line",children:r})})}),a!==void 0?s("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-camera-status",children:a??""}):null,n?o("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:S+2*e.b+48},children:[R?s("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,s("span",{children:n})]}):null,o("div",{className:"sekyro-lm-controls",children:[o("div",{className:"sekyro-lm-bar",children:[f!==void 0?s("button",{type:"button",className:"sekyro-glass","aria-label":p,onClick:f,children:s(C,{name:"close"})}):null,h]}),v]})]})})}d(T,"FaceCamera");export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as e}from"./chunk-2KED7D2Q.js";function i(n,r){try{let t=new Intl.DisplayNames([r],{type:"region",fallback:"code"}).of(n);return t!==void 0&&t!==""?t:n}catch{return n}}e(i,"regionName");export{i as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as u}from"./chunk-2KED7D2Q.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as d,useRef as g,useState as p}from"react";import{jsx as c,jsxs as w}from"react/jsx-runtime";function I(t,e,n){let[o,a]=p(!1),r=g(n);return r.current=n,d(()=>{t&&(a(!0),r.current())},[t,e]),[o,()=>a(!1)]}u(I,"useWrongCode");function S({id:t,value:e,onChange:n,length:o=6,describedBy:a,invalid:r}){let[b,l]=p(!1),[f,k]=p(0);d(()=>{r&&k(s=>s+1)},[r]);let m=g(null);d(()=>{let s=setTimeout(()=>m.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(s)},[]);let y=e.length<o?e.length:-1;return w("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[c("div",{className:`sekyro-otp-row${f>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:o},(s,i)=>c("span",{className:`sekyro-otp-box${i<e.length?" is-filled":""}${b&&i===y?" is-current":""}${r?" is-invalid":""}`,children:e[i]!==void 0?c("span",{className:"sekyro-otp-digit",children:e[i]},e[i]):null},i))},f),c("input",{ref:m,id:t,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":a,"aria-invalid":r||void 0,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:s=>n(h(s.target.value).replace(/\D/g,"").slice(0,o))})]})}u(S,"CodeInput");import{useEffect as N,useState as C}from"react";function B(t){let[e,n]=C(()=>Date.now());return N(()=>{if(!t)return;let o=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(o)},[t]),e}u(B,"useNow");export{I as a,S as b,B as c};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as n,b as r,d as c}from"./chunk-OLU5EOHP.js";import{a as t}from"./chunk-MDXA7C7O.js";import{a as i}from"./chunk-2KED7D2Q.js";import{jsx as e,jsxs as a}from"react/jsx-runtime";function k({title:s,lead:l,cameraLabel:p,uploadLabel:d,notice:m,testId:o,onCamera:u,onUpload:f,onPhone:g=!1}){return a("section",{className:"sekyro-step","data-testid":o,children:[e(r,{title:s,lead:l}),m,a(c,{children:[a(t,{full:!0,onClick:u,"data-testid":`${o}-camera`,children:[e(n,{name:g?"smartphone":"camera"}),p]}),e(t,{full:!0,kind:"ghost",onClick:f,"data-testid":`${o}-upload`,children:d})]})]})}i(k,"PhotoSourceView");export{k as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as r}from"./chunk-2KED7D2Q.js";import{forwardRef as h}from"react";import{jsx as g}from"react/jsx-runtime";var C=h(r(function({kind:t="primary",full:n=!1,className:a,type:o,...s},c){let i=["sekyro-btn",`sekyro-btn--${t}`];return n&&i.push("sekyro-btn--full"),a!==void 0&&i.push(a),g("button",{ref:c,type:o??"button",className:i.join(" "),...s})},"Button"));var p={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds. Keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work. A few adjustments will help:","capture.retryCoaching.light":"Find good lighting, with the light on your face and not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.retryTips.title":"Before you film again:","capture.retryOneFace.alone":"Make sure nobody is next to or behind the person being verified","capture.retryOneFace.screens":"Keep photos and screens that show a face out of view","capture.retryFrontCamera.screenSide":"The front camera is the one on the screen side, so you can see yourself","capture.retryBackCamera.backSide":"The back camera is the one on the side without the screen","capture.retryBackCamera.circle":"Hold the phone upright in front of the person, with their face in the circle","capture.retryUpright.vertical":"Hold the phone straight up and down, with the camera at the top","capture.retryUpright.untilEnd":"Keep it that way until the recording ends","capture.retryRecording.cameraOn":"Keep the camera on until the recording finishes","capture.retryRecording.stay":"Stay on this screen. Don't switch apps or lock your phone","capture.retryRecording.network":"Use a stable internet connection","capture.retryDevice.screenRecording":"Stop any screen recording or screen sharing","capture.retryDevice.phone":"Use the app on a phone, not on an emulator","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected. Connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera. Close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS). Reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format. Open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable. Try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face. Hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot. Light your face","fcv3.too_bright":"Too much light. Move out of direct light","fcv3.hold_still":"Perfect, hold still","fcv3.steady_camera":"Hold the phone steady","fcv3.hold_upright":"Hold the phone upright","fcv3.one_face":"Only one person should be in the frame","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm your number","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against. The requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry. A reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.id_number_invalid":"The ID number is not valid","reasons.registry_record_not_found":"No record was found in the registry for this ID number","reasons.document_id_number_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided, so your verification went to human review","reasons.capture_back_camera":"Use the front camera. Hold the phone in front of your face and try again","reasons.capture_not_upright":"Hold your phone upright, not sideways, and try again","reasons.capture_front_camera":"Use the back camera. Point it at the person's face and try again","reasons.multiple_faces":"Someone else appeared in the video. Film again with only one person in the frame","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"We couldn't confirm it's you this time. Hold still and let's try once more.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","hints.appearance":"We couldn't confirm it's you this time. Hold still and let's try once more.","hints.motion":"Hold still and keep the phone steady, then try again.","hints.lighting":"Face a window or a lamp so your face is well lit, then try again.","hints.framing":"Move closer so your face fills the frame, then try again.","reasons.subject_revoked":"The identity on file for this check is no longer available. The requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"The same person needs to be on camera from start to finish. Record the video again","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my Mauritanian national ID number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not complete the security check. Check your connection and try again","errors.device_clock":"Set your phone's date and time to automatic, then try again","errors.network_error":"We could not reach the verification service. Check your internet connection and try again","errors.session_expired":"This verification session has expired. Ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number. Ask the requester for a new link","errors.id_number_unbound":"This link was created without your ID number. Ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source and avoid strong light behind you","capture.tips.uncover":"Uncover your face: no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face: no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera. Choose Allow","capture.permission.denied":"Camera access is blocked. Allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.assisted.title":"Capture the person's face","capture.assisted.lead":"Point the back camera at the person's face and hold the phone upright. The voice guidance speaks to the person being filmed.","capture.assisted.stage":"Point the camera at the person's face","capture.modeSwitch.toAssisted":"Someone is helping me","capture.modeSwitch.toSelf":"I film myself","capture.modeSwitch.toAssistedLabel":"Switch to assisted capture: another person holds the phone and films you","capture.modeSwitch.toSelfLabel":"Switch to self capture: you film yourself with the front camera","capture.modeSwitch.restarted":"Camera switched. Start again when you are ready","capture.lookAtColours":"Look at the colours","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection. This can take a moment on a slow connection","capture.ready":"Ready. Start when you are","fcv2.err.models":"The face-detection models could not be loaded. Check your connection and try again","fcv2.err.backcamera":"The back camera could not be opened, and assisted capture needs it. Try again, or continue on another phone"};var f={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ. أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة. بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة، بحيث يكون الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.retryTips.title":"قبل التصوير مرة أخرى:","capture.retryOneFace.alone":"تأكد من عدم وجود أي شخص بجانب الشخص الذي يتم التحقق منه أو خلفه","capture.retryOneFace.screens":"أبعد عن الإطار الصور والشاشات التي يظهر فيها وجه","capture.retryFrontCamera.screenSide":"الكاميرا الأمامية هي التي في جهة الشاشة، حيث ترى نفسك","capture.retryBackCamera.backSide":"الكاميرا الخلفية هي التي في الجهة المقابلة للشاشة","capture.retryBackCamera.circle":"أمسك الهاتف بشكل عمودي أمام الشخص، مع إبقاء وجهه داخل الدائرة","capture.retryUpright.vertical":"أمسك الهاتف بشكل عمودي، والكاميرا في الأعلى","capture.retryUpright.untilEnd":"أبقِه كذلك حتى ينتهي التسجيل","capture.retryRecording.cameraOn":"أبقِ الكاميرا تعمل حتى ينتهي التسجيل","capture.retryRecording.stay":"ابقَ في هذه الشاشة. لا تنتقل إلى تطبيق آخر ولا تقفل هاتفك","capture.retryRecording.network":"استخدم اتصال إنترنت مستقرًا","capture.retryDevice.screenRecording":"أوقف أي تسجيل للشاشة أو مشاركة لها","capture.retryDevice.phone":"استخدم التطبيق على هاتف، لا على محاكي","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا. وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا. أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS). افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة. افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة. أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك. أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة. أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا. تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز، لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","fcv3.hold_upright":"أمسك الهاتف بشكل عمودي","fcv3.one_face":"يجب أن يظهر شخص واحد فقط في الإطار","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد رقمك","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها. على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني. سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.id_number_invalid":"رقم الهوية غير صالح","reasons.registry_record_not_found":"لم يُعثر على أي سجل لرقم الهوية هذا في السجل","reasons.document_id_number_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد، لذا أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","reasons.capture_front_camera":"استخدم الكاميرا الخلفية. وجّهها نحو وجه الشخص وحاول مرة أخرى","reasons.multiple_faces":"ظهر شخص آخر في الفيديو. صوّر مرة أخرى مع وجود شخص واحد فقط في الإطار","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لم نتمكن من التأكد من أنك أنت هذه المرة. ابقَ ثابتًا ولنحاول مرة أخرى.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","hints.appearance":"لم نتمكن من التأكد من أنك أنت هذه المرة. ابقَ ثابتًا ولنحاول مرة أخرى.","hints.motion":"ابقَ ثابتًا وأمسك الهاتف بثبات، ثم حاول مجددًا.","hints.lighting":"اجعل وجهك مقابل نافذة أو مصباح حتى يكون مضاءً جيدًا، ثم حاول مجددًا.","hints.framing":"اقترب أكثر حتى يملأ وجهك الإطار، ثم حاول مجددًا.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة. على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"يجب أن يظهر الشخص نفسه أمام الكاميرا من البداية إلى النهاية. سجّل الفيديو مرة أخرى","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال الرقم الوطني للتعريف الموريتاني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر إكمال فحص الأمان. تحقّق من اتصالك وحاول مجددًا","errors.device_clock":"اضبط تاريخ ووقت هاتفك على الوضع التلقائي، ثم حاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق. تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه. اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف. اطلب رابطًا جديدًا من الجهة الطالبة","errors.id_number_unbound":"أُنشئ هذا الرابط دون رقم هويتك. اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك وتجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك: بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك: بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا. اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور. اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.assisted.title":"صوّر وجه الشخص","capture.assisted.lead":"وجّه الكاميرا الخلفية نحو وجه الشخص وأمسك الهاتف بشكل عمودي. الإرشادات الصوتية تخاطب الشخص الذي تصوّره.","capture.assisted.stage":"وجّه الكاميرا نحو وجه الشخص","capture.modeSwitch.toAssisted":"شخص يساعدني","capture.modeSwitch.toSelf":"أصوّر نفسي","capture.modeSwitch.toAssistedLabel":"التبديل إلى التصوير بمساعدة شخص آخر يحمل الهاتف ويصوّرك","capture.modeSwitch.toSelfLabel":"التبديل إلى التصوير الذاتي بالكاميرا الأمامية","capture.modeSwitch.restarted":"تم تبديل الكاميرا. ابدأ من جديد عندما تكون جاهزًا","capture.lookAtColours":"انظر إلى الألوان","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك. قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز. ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه. تحقق من اتصالك ثم أعد المحاولة","fcv2.err.backcamera":"تعذّر فتح الكاميرا الخلفية، والالتقاط المساعَد يحتاج إليها. أعد المحاولة أو تابع على هاتف آخر"};var v={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes. Gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti. Quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé, avec la lumière sur le visage et non derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.retryTips.title":"Avant de filmer à nouveau :","capture.retryOneFace.alone":"Assurez-vous que personne ne se trouve à côté ou derrière la personne vérifiée","capture.retryOneFace.screens":"Gardez hors du cadre les photos et les écrans qui montrent un visage","capture.retryFrontCamera.screenSide":"La caméra avant est celle du côté de l'écran : vous vous voyez à l'écran","capture.retryBackCamera.backSide":"La caméra arrière est celle du côté opposé à l'écran","capture.retryBackCamera.circle":"Tenez le téléphone droit face à la personne, son visage dans le cercle","capture.retryUpright.vertical":"Tenez le téléphone bien droit, la caméra en haut","capture.retryUpright.untilEnd":"Gardez-le ainsi jusqu'à la fin de l'enregistrement","capture.retryRecording.cameraOn":"Laissez la caméra allumée jusqu'à la fin de l'enregistrement","capture.retryRecording.stay":"Restez sur cet écran. Ne changez pas d'application et ne verrouillez pas votre téléphone","capture.retryRecording.network":"Utilisez une connexion internet stable","capture.retryDevice.screenRecording":"Arrêtez tout enregistrement ou partage d'écran","capture.retryDevice.phone":"Utilisez l'application sur un téléphone, pas sur un émulateur","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée. Branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application. Fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS). Rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible. Ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible. Réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage. Tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux. Éclairez votre visage","fcv3.too_bright":"Trop de lumière. Évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait, ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","fcv3.hold_upright":"Tenez le téléphone à la verticale","fcv3.one_face":"Une seule personne doit être dans le cadre","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer votre numéro","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie. C'est au demandeur de le résoudre : reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil. Un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.id_number_invalid":"Le numéro d'identité n'est pas valide","reasons.registry_record_not_found":"Aucun dossier n'a été trouvé dans le registre pour ce numéro d'identité","reasons.document_id_number_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement, votre vérification part donc en revue humaine","reasons.capture_back_camera":"Utilisez la caméra avant. Tenez le téléphone devant votre visage et réessayez","reasons.capture_not_upright":"Tenez votre téléphone à la verticale, pas à l'horizontale, et réessayez","reasons.capture_front_camera":"Utilisez la caméra arrière. Dirigez-la vers le visage de la personne et réessayez","reasons.multiple_faces":"Une autre personne est apparue dans la vidéo. Filmez à nouveau avec une seule personne dans le cadre","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Nous n'avons pas pu confirmer que c'est bien vous cette fois. Restez immobile et réessayons.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","hints.appearance":"Nous n'avons pas pu confirmer que c'est bien vous cette fois. Restez immobile et réessayons.","hints.motion":"Restez immobile et tenez le téléphone bien stable, puis réessayez.","hints.lighting":"Placez-vous face à une fenêtre ou une lampe pour que votre visage soit bien éclairé, puis réessayez.","hints.framing":"Rapprochez-vous pour que votre visage remplisse le cadre, puis réessayez.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible. Le demandeur doit lancer une vérification complète : réessayer n'y changera rien","reasons.probe_not_from_liveness":"La même personne doit être devant la caméra du début à la fin. Enregistrez à nouveau la vidéo","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national d'identification mauritanien (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu terminer le contrôle de sécurité. Vérifiez votre connexion et réessayez","errors.device_clock":"Réglez la date et l'heure de votre téléphone sur automatique, puis réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification. Vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré. Demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification. Demandez un nouveau lien à l'organisme demandeur","errors.id_number_unbound":"Ce lien a été créé sans votre numéro d'identité. Demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière et évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage : ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage : ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra. Choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué. Autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.assisted.title":"Filmez le visage de la personne","capture.assisted.lead":"Pointez la caméra arrière vers le visage de la personne et tenez le téléphone à la verticale. Le guidage vocal s'adresse à la personne filmée.","capture.assisted.stage":"Pointez la caméra vers le visage de la personne","capture.modeSwitch.toAssisted":"Quelqu'un m'aide","capture.modeSwitch.toSelf":"Je me filme","capture.modeSwitch.toAssistedLabel":"Passer à la capture assistée : une autre personne tient le téléphone et vous filme","capture.modeSwitch.toSelfLabel":"Passer à la capture seule : vous vous filmez avec la caméra avant","capture.modeSwitch.restarted":"Caméra changée. Recommencez quand vous le souhaitez","capture.lookAtColours":"Regardez les couleurs","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil. Cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt. Commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage. Vérifiez votre connexion puis réessayez","fcv2.err.backcamera":"La caméra arrière n'a pas pu s'ouvrir, et la capture assistée en a besoin. Réessayez ou continuez sur un autre téléphone"};var u={},l=r(e=>e==="es"||e==="pt"||e==="de","isOverlayLocale");function q(e){return l(e)?"en":e}r(q,"baseLocale");function N(e){return l(e)?u[e]:void 0}r(N,"overlayOf");function _(e){return l(e)&&u[e]===void 0}r(_,"overlayPending");function O(e){return _(e)?(e==="es"?import("./overlay-es-6MGCPCFO.js"):e==="pt"?import("./overlay-pt-VTK6XJDH.js"):import("./overlay-de-7NCDPEIN.js")).then(n=>{u[e]=n.overlay},()=>{u[e]={}}):Promise.resolve()}r(O,"loadSekyroLocale");var d=Object.freeze({"reasons.id_number_invalid":"reasons.nni_invalid","reasons.registry_record_not_found":"reasons.nni_not_found","reasons.document_id_number_mismatch":"reasons.document_nni_mismatch","errors.id_number_unbound":"errors.nni_unbound","population.reason_id_number_invalid":"population.reason_nni_invalid","population.reason_registry_record_not_found":"population.reason_nni_not_found","population.reason_registry_record_not_found_or_document":"population.reason_nni_not_found_or_document","summary.id_number":"summary.nni"}),y=new Map(Object.entries(d).filter(([e])=>e.startsWith("reasons.")).map(([e,t])=>[t.slice(8),e.slice(8)]));function m(e){return y.get(e)??e}r(m,"genericReason");function D(e,t){let n=e,a=t;for(let[o,s]of Object.entries(d)){let c=a[o],i=a[s];typeof c!="string"&&typeof i=="string"?n[o]=i:typeof i!="string"&&typeof c=="string"&&(n[s]=c)}}r(D,"aliasRenamedKeys");function E(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";case"upright":return"fcv3.hold_upright";case"one_face":return"fcv3.one_face";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}r(E,"hintStringKey");function B(e){let t=`hints.${e}`;return Object.hasOwn(p,t)?t:null}r(B,"retakeHintStringKey");function b(e){return`fcv2.err.${e}`}r(b,"captureErrorStringKey");function M(e){return e.detail?.engineKind==="backcamera"?"fcv2.err.backcamera":b(e.kind)}r(M,"captureErrorCopyKey");function j(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":case"id_number_unbound":return"errors.id_number_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${m(e)}`;return Object.hasOwn(p,t)?t:null}}}r(j,"reasonStringKey");function V(e,t,n=new Date){if(t===void 0)return null;let a=new Date(t),o=a.getTime()-n.getTime();if(!Number.isFinite(o)||o<=0)return null;if(o<36e5){let i=Math.max(1,Math.ceil(o/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(i,"minute")}}let s=a.toDateString()===n.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...s?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(a)}}r(V,"retryAfterTime");function W(e,t,n){let a=new Intl.PluralRules(t).select(n);return((a==="other"?void 0:e[`capture.attemptsRemaining.${a}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(n))}r(W,"attemptsRemainingText");import{useCallback as w}from"react";function X(){return w(e=>{e?.focus()},[])}r(X,"useFocusOnMount");import{jsx as k}from"react/jsx-runtime";function re({tone:e,role:t,children:n,testId:a}){return k("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":a,children:n})}r(re,"Notice");export{C as a,p as b,m as c,D as d,f as e,v as f,q as g,N as h,_ as i,O as j,E as k,B as l,b as m,M as n,j as o,V as p,W as q,re as r,X as s};