@sekyro/react 0.1.0-rc.3 → 0.1.0-rc.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +570 -0
- package/LICENSE +25 -16
- package/README.md +189 -39
- package/dist/chunk-23GZ62S2.js +2 -0
- package/dist/chunk-2KED7D2Q.js +2 -0
- package/dist/chunk-55NNQK5P.js +2 -0
- package/dist/chunk-5EPFSWU5.js +2 -0
- package/dist/chunk-5WLMXBCT.js +2 -0
- package/dist/chunk-7MMT5M4E.js +2 -0
- package/dist/chunk-FE6AS435.js +2 -0
- package/dist/chunk-FJ3AON46.js +2 -0
- package/dist/chunk-GUTF3SPK.js +2 -0
- package/dist/chunk-KJT5NUFX.js +2 -0
- package/dist/chunk-KK5O6LP4.js +2 -0
- package/dist/chunk-OXGWLJ5D.js +2 -0
- package/dist/chunk-QL2NK7GA.js +2 -0
- package/dist/chunk-TCSAUR2Y.js +2 -0
- package/dist/chunk-U4KOMPUR.js +2 -0
- package/dist/chunk-VRDPGOXM.js +2 -0
- package/dist/chunk-VXMOKB43.js +2 -0
- package/dist/chunk-XQFVLRIY.js +2 -0
- package/dist/chunk-ZARKJW2C.js +2 -0
- package/dist/chunk-ZOE5QUGI.js +2 -0
- package/dist/document-capture-view-2NFKF44N.js +2 -0
- package/dist/eid-view-UGYVZ5NM.js +2 -0
- package/dist/email-otp-view-ENQVRS66.js +2 -0
- package/dist/flow-views-HNJPDQ63.js +2 -0
- package/dist/fonts/Cairo-OFL.txt +93 -0
- package/dist/fonts/Geist-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
- package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
- package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
- package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
- package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
- package/dist/form-view-6ERKUFVD.js +2 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +7 -380
- package/dist/index.d.ts +7 -380
- package/dist/index.js +1 -2
- package/dist/overlay-de-2DL4MNC7.js +2 -0
- package/dist/overlay-es-FMHWRKQW.js +2 -0
- package/dist/overlay-pt-OGIELLCM.js +2 -0
- package/dist/portrait-capture-view-ARRN3JW6.js +2 -0
- package/dist/portrait-review-view-JF6TYNBU.js +2 -0
- package/dist/proof-of-address-view-46Q6F7H5.js +2 -0
- package/dist/styles.css +35 -11
- package/dist/theme-DbHOQCyE.d.cts +547 -0
- package/dist/theme-DbHOQCyE.d.ts +547 -0
- package/dist/verification/index.cjs +2 -0
- package/dist/verification/index.d.cts +871 -0
- package/dist/verification/index.d.ts +871 -0
- package/dist/verification/index.js +2 -0
- package/dist/verification.css +848 -0
- package/package.json +27 -16
- package/sbom.cdx.json +153 -0
- package/assets/audio/v1/README.md +0 -60
- package/assets/audio/v1/manifest.json +0 -7
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
Sekyro SDK
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
4
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
19
|
-
|
|
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
|
-
(`
|
|
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)
|
|
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
|
|
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
|
|
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`),
|
|
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,
|
|
89
|
-
|
|
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,24 +126,32 @@ still renders above your intro.
|
|
|
103
126
|
|
|
104
127
|
### Voice guidance
|
|
105
128
|
|
|
106
|
-
During capture the component speaks the displayed (debounced) guidance
|
|
107
|
-
`fcv3.*` gate hints
|
|
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?` |
|
|
115
|
-
| `clipBaseUrl?` | `${assetBaseUrl ?? "/models-v3"}/audio/v1` | Where the bundled clip set is served. |
|
|
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. |
|
|
116
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. |
|
|
117
139
|
| `storageKey?` | `"sekyro.voiceGuidance"` | `null` = do not persist. |
|
|
118
140
|
|
|
119
|
-
**
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
141
|
+
**Sekyro AI clips.** In verification mode the component speaks the recorded
|
|
142
|
+
ar/fr clip set that arrives with the session (`verification.voiceClips()`),
|
|
143
|
+
served from `https://assets.sekyro.ai`: a page with a Content-Security-Policy
|
|
144
|
+
must allow that origin in `media-src`. Until the set arrives, when the session
|
|
145
|
+
has none, or when it cannot be fetched, the device voice speaks. The package
|
|
146
|
+
ships no audio. `VOICE_KEYS` lists the eleven `fcv3.*` guidance keys,
|
|
147
|
+
`capture.tips.summary` and `capture.lookAtColours`.
|
|
148
|
+
|
|
149
|
+
**"Listen to the instructions".** The pre-capture screen has a button under
|
|
150
|
+
the tips that plays the spoken summary `capture.tips.summary`. It never
|
|
151
|
+
auto-plays, a second tap stops it, and Start stops it too. It shows only with
|
|
152
|
+
the built-in tips, unless your `voice.clips` has a `capture.tips.summary` clip
|
|
153
|
+
for the locale. It never shows with `voice={false}`, and the voice switch
|
|
154
|
+
does not hide it.
|
|
124
155
|
|
|
125
156
|
**iOS.** Audio unlocks inside a user gesture: the Start tap, or the voice
|
|
126
157
|
switch/chip turned on. With `autoStart` there is no Start tap, so audio stays
|
|
@@ -139,7 +170,7 @@ when `slots.voicePrompt` is set and `voice` is undefined (pass `voice={{}}` to k
|
|
|
139
170
|
the built-in voice and silence it).
|
|
140
171
|
|
|
141
172
|
**CSP.** Clips and the unlock use `media-src 'self' blob:` (the silent unlock WAV
|
|
142
|
-
is a `blob:` URL
|
|
173
|
+
is a `blob:` URL, no `data:` needed); add your clip host if `clips` points off-origin.
|
|
143
174
|
|
|
144
175
|
### Theme
|
|
145
176
|
|
|
@@ -149,13 +180,16 @@ is a `blob:` URL — no `data:` needed); add your clip host if `clips` points of
|
|
|
149
180
|
defaults apply (`DEFAULT_THEME`). You can also set the variables yourself on any
|
|
150
181
|
ancestor.
|
|
151
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
|
+
|
|
152
186
|
Contrast rules the component relies on (checked for the default theme in
|
|
153
187
|
`test/contrast.test.ts`):
|
|
154
188
|
|
|
155
189
|
- `fg` on `surface` / `bg`, `brandFg` on `brand`: text → 7:1 (AAA);
|
|
156
190
|
- `surface` on `fg`: the stage scrim is `fg` and the guidance line is `surface`, so the
|
|
157
191
|
on-camera text inherits the same ratio;
|
|
158
|
-
- `fgMuted` on `surface`: secondary text only (security note, checking hint)
|
|
192
|
+
- `fgMuted` on `surface`: secondary text only (security note, checking hint): AA
|
|
159
193
|
(4.5:1) is the floor, AAA recommended;
|
|
160
194
|
- `brand`, `ring`, `danger`, `warning`, `success` on `surface`: non-text UI → 3:1.
|
|
161
195
|
|
|
@@ -163,8 +197,25 @@ Contrast rules the component relies on (checked for the default theme in
|
|
|
163
197
|
|
|
164
198
|
Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
|
|
165
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`).
|
|
166
204
|
`hintStringKey(hint)` maps a `GateHint` code to its guidance key;
|
|
167
|
-
`reasonStringKey(
|
|
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.
|
|
168
219
|
|
|
169
220
|
### Accessibility
|
|
170
221
|
|
|
@@ -176,9 +227,108 @@ Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
|
|
|
176
227
|
- Inline SVG icons only; no emoji; logical CSS properties only (`scripts/check-css.mjs`
|
|
177
228
|
fails the build on any physical `left`/`right`).
|
|
178
229
|
|
|
179
|
-
##
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
+
import{b as i,d as u,e as f,f as y,g,h as S,i as l,j as p}from"./chunk-5EPFSWU5.js";import{a as s}from"./chunk-2KED7D2Q.js";import{createContext as m,useContext as x,useEffect as L,useState as v}from"react";var d={ar:f,fr:y,en:i};function T(e,t){let n=S(e),r=n===void 0?d[g(e)]:{...d.en,...n};if(t===void 0)return r;let o={...r};for(let a of Object.keys(t)){let c=t[a];typeof c=="string"&&(o[a]=c)}return u(o,t),o}s(T,"resolveStrings");function w(e){let[,t]=v(0),n=l(e);return L(()=>{if(!n)return;let r=!0;return p(e).then(()=>r&&t(o=>o+1)),()=>{r=!1}},[e,n]),!n}s(w,"useLocaleReady");var k=m(e=>i[e]??""),C=k.Provider;function I(){return x(k)}s(I,"useStrings");export{T as a,w as b,C as c,I as d};
|
|
@@ -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{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":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","hints.appearance":"Let's try again: face a light source and hold still.","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.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.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":"Réessayons : placez-vous face à une source de lumière et restez immobile.","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":"Réessayons : placez-vous face à une source de lumière et restez immobile.","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.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-FMHWRKQW.js"):e==="pt"?import("./overlay-pt-OGIELLCM.js"):import("./overlay-de-2DL4MNC7.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 G(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(G,"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,G as q,re as r,X as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as y}from"./chunk-ZOE5QUGI.js";import{p as w}from"./chunk-QL2NK7GA.js";import{a as d}from"./chunk-5EPFSWU5.js";import{a as t}from"./chunk-2KED7D2Q.js";import{createContext as C,useContext as R,useState as v}from"react";import{lazy as S,Suspense as b,useMemo as x,useState as g}from"react";import{Component as N}from"react";var c=class c extends N{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};t(c,"LoadBoundary");var p=c;import{jsx as r,jsxs as V}from"react/jsx-runtime";var h={load:t(()=>import("./flow-views-HNJPDQ63.js"),"load")};function k({view:n,i18n:e,quiet:o,...a}){let[i,f]=g(0),s=x(()=>S(()=>h.load().then(m=>({default:m[n]}))),[n,i]),u=V(w,{tone:"danger",children:[r("span",{children:e.t("errors.network_error")}),r(d,{kind:"secondary",onClick:()=>f(m=>m+1),children:e.t("common.retry")})]});return r(p,{fallback:u,children:r(b,{fallback:o===!0?null:r("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:e.t("common.loading")}),children:r(s,{...a,i18n:e})})},i)}t(k,"Flow");import{Fragment as F,jsx as l,jsxs as B}from"react/jsx-runtime";var P=C(void 0);function K({i18n:n,lead:e,refresh:o,actions:a}){let i=R(P),[f,s]=v(!1);if(i!==void 0)return l(k,{view:"HandoffView",i18n:n,url:i,lead:e,...o!==void 0?{refresh:o}:{},footer:a});let u=t(()=>{o!==void 0&&(s(!0),o().catch(()=>{}).finally(()=>s(!1)))},"again");return l(y,{tone:"brand",icon:"smartphone",title:n.t("handoff.title"),testId:"sekyro-phone-handoff",actions:B(F,{children:[a,o!==void 0?l(d,{kind:"secondary",full:!0,disabled:f,onClick:u,children:n.t("common.refresh")}):null]}),children:l("p",{children:e})})}t(K,"PhoneHandoff");export{p as a,k as b,P as c,K as d};
|
|
@@ -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};
|