@sekyro/react 0.1.0-rc.6 → 0.1.0-rc.8
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 +43 -0
- package/README.md +52 -29
- package/dist/{chunk-Q232JYNO.js → chunk-2CJEADGY.js} +1 -1
- package/dist/{chunk-63NUMQST.js → chunk-2PGJ7P7E.js} +1 -1
- package/dist/chunk-36RC3M4K.js +2 -0
- package/dist/{chunk-AMOZXMUP.js → chunk-4ENKV24I.js} +1 -1
- package/dist/{chunk-4INDRENU.js → chunk-5JPJXBN6.js} +1 -1
- package/dist/{chunk-ADMDZLPM.js → chunk-COU4Y3DB.js} +1 -1
- package/dist/chunk-H2KIOYQU.js +2 -0
- package/dist/{chunk-BENNJ4GV.js → chunk-LZU57LVO.js} +1 -1
- package/dist/chunk-OSS4NHIS.js +2 -0
- package/dist/chunk-PXRIFHY2.js +2 -0
- package/dist/{chunk-P2LX7BBE.js → chunk-R2D6V2R6.js} +1 -1
- package/dist/chunk-Y4PPDNQR.js +2 -0
- package/dist/chunk-ZTN4YV7S.js +2 -0
- package/dist/chunk-ZVSRJKQE.js +2 -0
- package/dist/document-capture-view-IAVBLXBO.js +2 -0
- package/dist/eid-view-FK54R7ER.js +2 -0
- package/dist/email-otp-view-ZVXSJMN5.js +2 -0
- package/dist/flow-views-5VR7NLTE.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/portrait-capture-view-FYUOQWF7.js +2 -0
- package/dist/{theme-BpOuzcWh.d.ts → theme-7Jj6eSH6.d.cts} +25 -8
- package/dist/{theme-BpOuzcWh.d.cts → theme-7Jj6eSH6.d.ts} +25 -8
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +8 -1
- package/dist/verification/index.d.ts +8 -1
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +3 -0
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-3MBJZSJL.js +0 -2
- package/dist/chunk-4RUZQW5T.js +0 -2
- package/dist/chunk-65JA6YKG.js +0 -2
- package/dist/chunk-BJJZ4MO5.js +0 -2
- package/dist/chunk-BRA6F56P.js +0 -2
- package/dist/chunk-JAUZKPQO.js +0 -2
- package/dist/chunk-YUNPD6ZB.js +0 -2
- package/dist/document-capture-view-SKFDM4AQ.js +0 -2
- package/dist/eid-view-WIK6KUTY.js +0 -2
- package/dist/email-otp-view-TYSBCGUY.js +0 -2
- package/dist/flow-views-PCBR5GYS.js +0 -2
- package/dist/portrait-capture-view-HYOEOAF4.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @sekyro/react
|
|
2
2
|
|
|
3
|
+
## 0.1.0-rc.8
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 97fe8cf: Assisted capture follow-ups.
|
|
8
|
+
|
|
9
|
+
- `<LivenessCapture>` in an assisted session opens the back camera by default only on a device with a front/back choice, else the front one (`IntroContext.facing`). While the stage runs, the preview mirror follows the camera the live stream reports, not the one requested.
|
|
10
|
+
- Start stays a loader (`IntroContext.assets` is `"loading"`) and the auto-start waits until the camera to open is known: the session's capture mode and, in an assisted session, whether the device has a front/back choice.
|
|
11
|
+
- The ICAO portrait camera follows the session too: in an assisted session it shows the back camera unmirrored and a front/back switch (on a device with both, until the photo is taken); a self session keeps the mirrored front camera.
|
|
12
|
+
- b8af08c: Breaking (pre-1.0): the session's flow decides who films the face, and no prop can widen it. `allowCameraSwitch` (`<SekyroVerification>`) and `defaultFacing` (`<LivenessCapture>`, `livenessProps`) are removed.
|
|
13
|
+
|
|
14
|
+
- Self capture (the default, and every capture-only `<LivenessCapture>`): the front camera only, no front/back picker, no switch on the stage.
|
|
15
|
+
- Assisted capture (an agent films the person, set in the flow): the back camera by default with an unmirrored preview, the front/back picker on a device with both cameras, the switch until the clip records, and copy for the agent (`capture.assisted.title`, `capture.assisted.lead`, `capture.assisted.stage`). The voice guidance still speaks to the person filmed.
|
|
16
|
+
- `IntroContext` gains `captureMode`; `canChooseFacing` is `false` in a self capture.
|
|
17
|
+
- New copy in ar/fr/en: `fcv3.hold_upright` (the phone is held sideways; also a voice key) and the retake reasons `reasons.capture_back_camera` and `reasons.capture_not_upright`. `hintStringKey("upright")` maps to `fcv3.hold_upright`.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- b092ac3: The back camera is no longer mirrored. On the front camera (the default) the face preview and the keyframe stay mirrored like a selfie, exactly as before. When a capture runs on the back camera (`start({ facing: "environment" })` or the in-capture switch), the engine's keyframe and `previewDataUrl` are drawn as the camera sees them, and `<LivenessCapture>` / `<SekyroVerification>` show the back camera's preview unmirrored (an inline `transform: none` on the `<video>`). The liveness clip is unchanged: it was never mirrored.
|
|
22
|
+
- eabd027: Consent and registry copy no longer says "NNI" to everyone: the consent screen names "your identity document number", checked against the issuing authority's records when available, and `reasons.registry_unavailable` says "your number". The Mauritanian registry steps (`population.label`, `method.national_number`, `summary.nni`) say "Mauritanian national ID number (NNI)". Keys are unchanged; only the en, fr and ar values of these strings changed.
|
|
23
|
+
- Updated dependencies [a3cd61c]
|
|
24
|
+
- Updated dependencies [7ce5ab1]
|
|
25
|
+
- Updated dependencies [b092ac3]
|
|
26
|
+
- Updated dependencies [857ec58]
|
|
27
|
+
- @sekyro/web@0.1.0-rc.10
|
|
28
|
+
|
|
29
|
+
## 0.1.0-rc.7
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- 1639f8a: Sekyro flows: one choice screen for every choice of the flow plan (`plan.choice`).
|
|
34
|
+
|
|
35
|
+
- `ChoiceScreen` (DESIGN.md Choice Cards: line glyph, label, radio; one tap picks and moves on after 220 ms) replaces the method screen and the contact choice: `<MethodChoice>` (identity method, `method.*` copy), the contact choice (`contact.*`) and the new generic choice step (`choice.*`, ar/fr/en) all render it, options in the server's order, labelled by their service (`nfc` and unknown services are never shown on the web). The 0.1 `<LivenessCapture>` method step uses the same component with its 0.1 buttons look (styles.css unchanged).
|
|
36
|
+
- The section progress follows `plan.sections` (`done | current | upcoming`); `section.screening` copy added.
|
|
37
|
+
- The identity summary is the `summary_confirm` step (no API change).
|
|
38
|
+
- In-lane switch on every step screen while the session's choice is open (C4 rule §5 item 6): one other option → a direct quiet action labelled by it (phone ⇄ email, « Use my document instead », the eID camera action, or the target's method label); two or more → « Use another option » (`choice.switch`, ar/fr/en), which re-opens the ChoiceScreen with the current option marked.
|
|
39
|
+
- Flow-view chunk budget 10 240 → 10 752 B gzip (the generic choice copy, then the in-lane switch views).
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [8dbdcf3]
|
|
44
|
+
- @sekyro/web@0.1.0-rc.9
|
|
45
|
+
|
|
3
46
|
## 0.1.0-rc.6
|
|
4
47
|
|
|
5
48
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
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
|
-
|
|
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, ar / fr / en built in, RTL-safe (logical CSS only),
|
|
13
|
+
WCAG AAA defaults. Sekyro AI's own hosted page uses the same components.
|
|
9
14
|
|
|
10
15
|
## Install
|
|
11
16
|
|
|
12
17
|
```sh
|
|
13
|
-
npm install @sekyro/react @sekyro/web react react-dom
|
|
18
|
+
npm install @sekyro/react@next @sekyro/web@next react react-dom
|
|
14
19
|
```
|
|
15
20
|
|
|
16
|
-
Peer dependencies: `react >=18.2`, `react-dom >=18.2`, `@sekyro/web
|
|
17
|
-
|
|
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
|
+
The full guide (sessions and flows, the whole flow with `<SekyroVerification>`, CSP,
|
|
29
|
+
model assets, reason codes) is the
|
|
30
|
+
[web SDK guide](https://docs.sekyro.ai/en/web/embedded-sdk).
|
|
18
31
|
|
|
19
32
|
## Usage
|
|
20
33
|
|
|
@@ -42,7 +55,7 @@ const verification = createVerification({ clientToken, locale: "ar" });
|
|
|
42
55
|
retry coaching and the remaining attempts; with `createVerification({ rearm: 'manual' })`
|
|
43
56
|
the component instead offers a focused "Start a new attempt" button.
|
|
44
57
|
- The still freezes the stage the instant recording stops (the handle's `frozen`
|
|
45
|
-
event)
|
|
58
|
+
event), before the clip finalizes; the "camera off" pill only appears once the
|
|
46
59
|
tracks are actually stopped (`captured`). A LOW device profile (`profile` event)
|
|
47
60
|
drops the decorative animations.
|
|
48
61
|
- **Capture-only mode** (no `verification`): `createLivenessCapture()`; the component
|
|
@@ -58,11 +71,10 @@ const verification = createVerification({ clientToken, locale: "ar" });
|
|
|
58
71
|
| `dir?` | `"ltr" \| "rtl"` | Defaults to `rtl` for `ar`. |
|
|
59
72
|
| `strings?` | `Partial<Strings>` | Per-key overrides on top of the built-ins. |
|
|
60
73
|
| `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. |
|
|
61
|
-
| `autoStart?` | `boolean \| "when-permitted"` | Skip the pre-capture screen and start once the detector preload is ready
|
|
74
|
+
| `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). |
|
|
62
75
|
| `notice?` | `ReactNode \| { tone, text }` | Host message above the pre-capture screen (busy service, previous failure). Pre-capture only. |
|
|
63
|
-
| `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
|
|
76
|
+
| `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. |
|
|
64
77
|
| `tips?` | `false \| (BuiltInTipId \| IntroTip)[]` | Tips card; default `DEFAULT_TIPS`; `false` hides it. |
|
|
65
|
-
| `defaultFacing?` | `"user" \| "environment"` | Camera the attempt opens with (default front). |
|
|
66
78
|
| `voice?` | `false \| VoiceOptions` | Voice guidance; on by default. `false` = no speech, no switch, no chip. |
|
|
67
79
|
| `onGuidance?` | `(key) => void` | Telemetry: once per change of the displayed `fcv3.*` guidance key. |
|
|
68
80
|
| `onStateChange?` | `(state) => void` | Every capture-state transition, for host chrome (hide a description while the stage is live, telemetry). |
|
|
@@ -75,19 +87,29 @@ const verification = createVerification({ clientToken, locale: "ar" });
|
|
|
75
87
|
|
|
76
88
|
While the capture is idle the component renders a built-in "get ready" screen:
|
|
77
89
|
a tips card, the camera-permission row (`granted` / `prompt` / `denied` with the
|
|
78
|
-
fix / `unknown`),
|
|
79
|
-
switch, the security note and **one** Start control gated on the detector preload
|
|
90
|
+
fix / `unknown`), the voice switch, the security note and **one** Start control gated on the detector preload
|
|
80
91
|
(`preloadLivenessAssets` from `@sekyro/web`, kicked on mount): a busy Start while
|
|
81
92
|
the models download, Start when ready, a danger notice + Retry if the download
|
|
82
93
|
failed. Without a camera API (SSR, old browsers) the preload is skipped and Start
|
|
83
94
|
is ready at once.
|
|
84
95
|
|
|
85
96
|
`slots.intro(start, context)` replaces the whole screen. `context` is
|
|
86
|
-
`{ assets: "loading" | "ready" | "failed", retryAssets, permission,
|
|
87
|
-
setFacing, canChooseFacing, voice }`; call `start` from your click handler
|
|
88
|
-
opens `context.facing` and unlocks audio inside the gesture (iOS). The `notice`
|
|
97
|
+
`{ assets: "loading" | "ready" | "failed", retryAssets, permission, captureMode,
|
|
98
|
+
facing, setFacing, canChooseFacing, voice }`; call `start` from your click handler:
|
|
99
|
+
it opens `context.facing` and unlocks audio inside the gesture (iOS). The `notice`
|
|
89
100
|
still renders above your intro.
|
|
90
101
|
|
|
102
|
+
### Who films the face (capture mode)
|
|
103
|
+
|
|
104
|
+
The session's flow decides it (`HostedSessionView.capture.mode`); no prop can
|
|
105
|
+
change it. A **self** capture (the default, and every capture-only mount) uses the
|
|
106
|
+
front camera only: no front/back choice, no switch on the stage. An **assisted**
|
|
107
|
+
capture (an agent films the person) opens the back camera with an unmirrored
|
|
108
|
+
preview (the front one on a device without a front/back choice), offers the front/back choice on a device with both cameras and the switch
|
|
109
|
+
until the clip records, and shows the agent's copy (`capture.assisted.*`); the voice
|
|
110
|
+
guidance still speaks to the person filmed. On a phone, a capture held sideways
|
|
111
|
+
waits with `fcv3.hold_upright` until the phone is upright.
|
|
112
|
+
|
|
91
113
|
```tsx
|
|
92
114
|
<LivenessCapture
|
|
93
115
|
verification={verification}
|
|
@@ -101,21 +123,21 @@ still renders above your intro.
|
|
|
101
123
|
|
|
102
124
|
### Voice guidance
|
|
103
125
|
|
|
104
|
-
During capture the component speaks the displayed (debounced) guidance
|
|
105
|
-
`fcv3.*` gate hints
|
|
126
|
+
During capture the component speaks the displayed (debounced) guidance (the
|
|
127
|
+
`fcv3.*` gate hints) through one `<audio>` element, falling back to the
|
|
106
128
|
device voice (`speechSynthesis`). A stage chip (`aria-pressed`) and the intro
|
|
107
129
|
switch toggle it; the viewer's choice persists in `localStorage`.
|
|
108
130
|
|
|
109
131
|
| `VoiceOptions` | Default | Notes |
|
|
110
132
|
|---|---|---|
|
|
111
133
|
| `defaultEnabled?` | `true` | Used when the viewer has no stored preference. |
|
|
112
|
-
| `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 } }` (
|
|
134
|
+
| `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. |
|
|
113
135
|
| `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. |
|
|
114
136
|
| `storageKey?` | `"sekyro.voiceGuidance"` | `null` = do not persist. |
|
|
115
137
|
|
|
116
138
|
**Sekyro AI clips.** In verification mode the component speaks the recorded
|
|
117
139
|
ar/fr clip set that arrives with the session (`verification.voiceClips()`),
|
|
118
|
-
served from `https://assets.sekyro.ai
|
|
140
|
+
served from `https://assets.sekyro.ai`: a page with a Content-Security-Policy
|
|
119
141
|
must allow that origin in `media-src`. Until the set arrives, when the session
|
|
120
142
|
has none, or when it cannot be fetched, the device voice speaks. The package
|
|
121
143
|
ships no audio. `VOICE_KEYS` lists the nine `fcv3.*` guidance keys plus
|
|
@@ -145,7 +167,7 @@ when `slots.voicePrompt` is set and `voice` is undefined (pass `voice={{}}` to k
|
|
|
145
167
|
the built-in voice and silence it).
|
|
146
168
|
|
|
147
169
|
**CSP.** Clips and the unlock use `media-src 'self' blob:` (the silent unlock WAV
|
|
148
|
-
is a `blob:` URL
|
|
170
|
+
is a `blob:` URL, no `data:` needed); add your clip host if `clips` points off-origin.
|
|
149
171
|
|
|
150
172
|
### Theme
|
|
151
173
|
|
|
@@ -161,7 +183,7 @@ Contrast rules the component relies on (checked for the default theme in
|
|
|
161
183
|
- `fg` on `surface` / `bg`, `brandFg` on `brand`: text → 7:1 (AAA);
|
|
162
184
|
- `surface` on `fg`: the stage scrim is `fg` and the guidance line is `surface`, so the
|
|
163
185
|
on-camera text inherits the same ratio;
|
|
164
|
-
- `fgMuted` on `surface`: secondary text only (security note, checking hint)
|
|
186
|
+
- `fgMuted` on `surface`: secondary text only (security note, checking hint): AA
|
|
165
187
|
(4.5:1) is the floor, AAA recommended;
|
|
166
188
|
- `brand`, `ring`, `danger`, `warning`, `success` on `surface`: non-text UI → 3:1.
|
|
167
189
|
|
|
@@ -184,12 +206,13 @@ Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
|
|
|
184
206
|
|
|
185
207
|
## Entries: `@sekyro/react` and `@sekyro/react/verification`
|
|
186
208
|
|
|
187
|
-
The main entry is the
|
|
188
|
-
(`<SekyroVerification>`, `<
|
|
189
|
-
`<
|
|
190
|
-
`@sekyro/react/verification`, with
|
|
191
|
-
(`import "@sekyro/react/verification.css"` next to `styles.css`). It
|
|
192
|
-
`@sekyro/web` 0.1.0-rc.8 or later (the
|
|
209
|
+
The main entry is the liveness component above. The flow steps
|
|
210
|
+
(`<SekyroVerification>`, `<SekyroFlow>`, `<PhoneOtpStep>`, `<EmailOtpStep>`,
|
|
211
|
+
`<MethodChoice>`, `<EidStep>`, `<NniEntry>`, `<DocumentCapture>`, `<PortraitCapture>`,
|
|
212
|
+
`<VerificationResultScreen>`) live on a second entry, `@sekyro/react/verification`, with
|
|
213
|
+
its own stylesheet (`import "@sekyro/react/verification.css"` next to `styles.css`). It
|
|
214
|
+
needs `@sekyro/web` 0.1.0-rc.8 or later (the step runner). The server decides the steps
|
|
215
|
+
from the session's flow; the component renders whichever step comes next.
|
|
193
216
|
|
|
194
217
|
`verification.css` loads the SDK's fonts (subset Inter, Geist and Cairo,
|
|
195
218
|
woff2, OFL) from `fonts/` beside it: your bundler emits them as assets (allow
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as o}from"./chunk-
|
|
2
|
+
import{a as o}from"./chunk-PXRIFHY2.js";var e={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'};import{jsx as C}from"react/jsx-runtime";function a({name:t,className:r}){return C("svg",{className:`sekyro-glyph${r?` ${r}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:e[t]}})}o(a,"Icon");export{a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as n,
|
|
2
|
+
import{a as n,o as c}from"./chunk-PXRIFHY2.js";import{createContext as d,useContext as m,useEffect as u,useRef as f,useState as x}from"react";import{jsx as i,jsxs as N}from"react/jsx-runtime";function h({id:e,title:t,lead:o}){let s=c();return N("div",{className:"sekyro-heading",children:[i("h2",{id:e,ref:s,tabIndex:-1,className:"sekyro-text-body",children:t}),o!==void 0?i("p",{className:"sekyro-text-muted",children:o}):null]})}n(h,"StepHeading");function R({children:e}){return i("div",{className:"sekyro-actions",children:e})}n(R,"StepActions");var w=d(void 0),v=d(()=>{});function C(e){let t=m(v);u(()=>(t(e),()=>t(!1)),[e,t])}n(C,"useImmersive");var g=100;function y({swapKey:e,className:t,children:o}){let[s,l]=x({key:e,node:o}),a=f(o);a.current=o;let r=s.key!==e;return u(()=>{if(!r)return;let p=setTimeout(()=>l({key:e,node:a.current}),g);return()=>clearTimeout(p)},[r,e]),i("div",{className:`${t}${r?" is-leaving":""}`,"aria-hidden":r||void 0,children:r?s.node:o},s.key)}n(y,"Swap");var b=n(({pageKey:e,children:t})=>i(y,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap");export{h as a,R as b,w as c,v as d,C as e,y as f,b as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as i,b as I,m as S}from"./chunk-PXRIFHY2.js";import{jsx as y,jsxs as R}from"react/jsx-runtime";var P=Array.from({length:56},(o,e)=>{let a=e/56*2*Math.PI-Math.PI/2,s=Math.cos(a),t=Math.sin(a);return{id:`tick-${e}`,frac:e/55,x1:150+108*s,y1:150+108*t,x2:150+138*s,y2:150+138*t,style:{transitionDelay:`${e*6}ms`}}});function T(o,e,a,s){return a?"var(--sekyro-color-success)":o?s?"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)"}i(T,"tickColor");var A="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:o,phase:e,draining:a=!1}){let s=Math.min(1,Math.max(0,o)),t=Math.round(s*56),c=e==="checking",f=e==="recording",u=e==="frozen",l=c||u,_=c||f||u,d=e==="locked"||_,p=a&&!d;return R("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":t,"data-recording":f?"":void 0,"data-draining":p?"":void 0,children:[y("path",{fillRule:"evenodd",d:A,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),R("g",{className:e==="locked"?"sekyro-capture-settle":void 0,children:[y("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:P.map((n,C)=>y("line",{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:T(C<t,n.frac,d,p),strokeWidth:3,strokeLinecap:"round",style:n.style,className:"sekyro-arc__tick"},n.id))}),y("g",{className:e==="seeking"?"sekyro-capture-breathe":void 0,children:y("circle",{cx:150,cy:150,r:100,fill:"none",stroke:d?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:d?3.5:2.5,className:_?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}i(x,"CaptureArc");import{jsx as r,jsxs as k}from"react/jsx-runtime";function Y({videoRef:o,guidanceText:e,guidanceHint:a,guidanceKey:s,progress:t,phase:c,draining:f=!1,stillUrl:u,showChecking:l,onSwitchCamera:_,canSwitchCamera:d,operatorText:p=null,voicePrompt:n,overlay:C,reduceMotion:E=!1}){let g=S(),b=c==="checking",m=b||c==="frozen",h=m&&l?g("capture.checking"):e,v=n?.(a,h,s);return k("div",{className:E?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[r("video",{ref:o,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),u!==null&&m?r("img",{src:u,alt:g("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,r(x,{progress:t,phase:c,draining:f}),C?.(o),v!=null&&!m?r("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:v}):null,d?r(I,{kind:"chip",onClick:_,"aria-label":g("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:r(G,{})}):null,b&&l?k("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[r(U,{}),g("capture.cameraOff")]}):null,k("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[r("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:h},h),m&&l?r("span",{className:"sekyro-stage__guidance-hint",children:g("capture.checkingHint")}):p!==null&&!m?r("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:p}):null]})]})}i(Y,"CaptureStage");function G(){return k("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[r("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"}),r("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),r("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}i(G,"FlipCameraIcon");function U(){return k("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:[r("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"}),r("path",{d:"M3 3l18 18"})]})}i(U,"CameraOffIcon");import{hasMultipleCameras as H,subscribeCameraPermission as $}from"@sekyro/web";import{useEffect as N,useState as M}from"react";function j(){let[o,e]=M({state:"unknown",settled:!1}),[a,s]=M({canChoose:!1,settled:!1});return N(()=>$(t=>e({state:t,settled:!0})),[]),N(()=>{let t=!0;return H().then(c=>{t&&s({canChoose:c,settled:!0})},()=>{t&&s({canChoose:!1,settled:!0})}),()=>{t=!1}},[]),{permission:o.state,permissionSettled:o.settled,canChooseFacing:a.canChoose,facingSettled:a.settled}}i(j,"useCameraStatus");export{Y as a,G as b,j as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as u}from"./chunk-
|
|
2
|
+
import{a as u}from"./chunk-PXRIFHY2.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as c,useRef as b,useState as p}from"react";import{jsx as r,jsxs as N}from"react/jsx-runtime";function I({id:l,value:e,onChange:m,length:n=6,describedBy:f,invalid:o}){let[g,i]=p(!1),[a,k]=p(0);c(()=>{o&&k(t=>t+1)},[o]);let d=b(null);c(()=>{let t=setTimeout(()=>d.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(t)},[]);let y=e.length<n?e.length:-1;return N("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[r("div",{className:`sekyro-otp-row${a>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:n},(t,s)=>r("span",{className:`sekyro-otp-box${s<e.length?" is-filled":""}${g&&s===y?" is-current":""}${o?" is-invalid":""}`,children:e[s]!==void 0?r("span",{className:"sekyro-otp-digit",children:e[s]},e[s]):null},s))},a),r("input",{ref:d,id:l,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":f,"aria-invalid":o||void 0,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:t=>m(h(t.target.value).replace(/\D/g,"").slice(0,n))})]})}u(I,"CodeInput");export{I as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as t}from"./chunk-
|
|
2
|
+
import{a as t}from"./chunk-PXRIFHY2.js";import{useEffect as u,useState as s}from"react";function f(e){let[n,o]=s(()=>Date.now());return u(()=>{if(!e)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[e]),n}t(f,"useNow");export{f as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as s}from"./chunk-
|
|
2
|
+
import{a as s}from"./chunk-PXRIFHY2.js";import{jsx as m}from"react/jsx-runtime";var n={colors:{brand:"#1e40af",brandFg:"#ffffff",fg:"#111827",fgMuted:"#4b5563",bg:"#f8fafc",surface:"#ffffff",ring:"#1e40af",danger:"#b91c1c",success:"#15803d",warning:"#a16207"},radius:"12px",fontFamily:'system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif'},f={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 y(e={}){let r={};for(let o of Object.keys(f))r[f[o]]=e.colors?.[o]??n.colors[o];return r["--sekyro-radius"]=e.radius??n.radius,r["--sekyro-font"]=e.fontFamily??n.fontFamily,r}s(y,"themeToCssVars");var l=/^#[0-9a-f]{6}$/i,d={none:"0px",sm:"4px",md:"8px",lg:"12px",full:"9999px"},g={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function k(e){let r={};if(!e)return r;let o={};for(let[a,c]of Object.entries(e.colors??{}))a in f&&a!=="ring"&&l.test(c??"")&&(o[a]=c);o.brand&&(o.ring=o.brand),Object.keys(o).length&&(r.colors=o);let t=d[e.radius];t&&(r.radius=t);let i=g[e.fontFamily];return i!==void 0&&(r.fontFamily=i?`${i}, ${n.fontFamily}`:n.fontFamily),r}s(k,"brandingToTheme");function u(...e){let r={};for(let o of e)o?.colors&&(r.colors={...r.colors,...o.colors}),o?.radius&&(r.radius=o.radius),o?.fontFamily&&(r.fontFamily=o.fontFamily);return r}s(u,"mergeThemes");function S({theme:e,children:r,className:o}){let t=y(e);return m("div",{className:o===void 0?"sekyro-root":`sekyro-root ${o}`,style:t,children:r})}s(S,"SekyroThemeProvider");export{n as a,y as b,k as c,u as d,S as e};
|
|
@@ -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 national 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 the code from your eID app","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 national","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":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application 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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as o,j as n,
|
|
2
|
+
import{a as o,j as n,n as r}from"./chunk-PXRIFHY2.js";import{jsx as i}from"react/jsx-runtime";function a({tone:t,children:e}){return i(r,{tone:t,children:e})}o(a,"StepNotice");function f(t,e,p){return p?t.t("common.noAttemptsLeft"):n(t.strings,t.locale,e)}o(f,"attemptsLine");export{a,f as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as f}from"./chunk-R2D6V2R6.js";import{g as y}from"./chunk-Y4PPDNQR.js";import{a as l}from"./chunk-2CJEADGY.js";import{a as d,b as k}from"./chunk-2PGJ7P7E.js";import{a as n,b as p}from"./chunk-PXRIFHY2.js";import{useState as h}from"react";var C={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};function b(o,t){switch(o.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let a=o.nationalEid?.providerName;return a?t.t("method.national_eid",{provider:a}):t.t("method.national_eidGeneric")}default:return null}}n(b,"identityLabel");function L(o,t){let[a,i]=h(!1),[m,r]=h(null);return{busy:a,error:m,run:n(g=>{i(!0),r(null),g().then(()=>i(!1),u=>{i(!1),r(o.t(f(u,o.strings))),t?.(u)})},"run")}}n(L,"useChoiceAction");import{useId as _}from"react";import{Fragment as N,jsx as e,jsxs as s}from"react/jsx-runtime";function I(){let o=`sekyro-face-light-${_().replace(/[^A-Za-z0-9_-]/g,"")}`;return s("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[e("defs",{children:e("mask",{id:o,children:e("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),e("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),e("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),e("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),e("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${o})`})]})}n(I,"FaceMark");var v={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};function E({start:o,context:t,tips:a,tipsTitle:i,extra:m}){let{t:r}=y();return s("section",{className:"sekyro-step",children:[e(I,{}),t.captureMode==="assisted"?e(d,{title:r("capture.assisted.title"),lead:r("capture.assisted.lead")}):e(d,{title:r("native.face.introTitle"),lead:r("native.face.introLead")}),i!==void 0?e("p",{className:"sekyro-section-label",children:i}):null,e("ul",{className:"sekyro-tiprows",children:a!==void 0?a.map(c=>s("li",{children:[e(l,{name:v[c.id]??"face"}),c.text]},c.id)):s(N,{children:[s("li",{children:[e(l,{name:"light"}),r("capture.tips.light")]}),s("li",{children:[e(l,{name:"jGlasses"}),r("capture.tips.uncover")]}),s("li",{children:[e(l,{name:"smartphone"}),r("capture.tips.eyeLevel")]})]})}),m,t.assets==="failed"?e(p,{kind:"ghost",onClick:t.retryAssets,children:r("common.refresh")}):null,e(k,{children:s(p,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:o,children:[e(l,{name:"camera"}),r("capture.start")]})})]})}n(E,"FaceIntro");export{C as a,b,L as c,E as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var m=Object.defineProperty;var r=(e,t)=>m(e,"name",{value:t,configurable:!0});import{forwardRef as g}from"react";import{jsx as h}from"react/jsx-runtime";var k=g(r(function({kind:t="primary",full:a=!1,className:n,type:o,...i},l){let s=["sekyro-btn",`sekyro-btn--${t}`];return a&&s.push("sekyro-btn--full"),n!==void 0&&s.push(n),h("button",{ref:l,type:o??"button",className:s.join(" "),...i})},"Button"));var c={"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 — light on your face, 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.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","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.result_from_cache":"The registry check was confirmed from a recent copy of the registry","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.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 — 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.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.","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":"Keep your face in the frame the whole time, then try 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 confirm this browser session is genuine — reload the page 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","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source — 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.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"};var u={"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.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":"أمسك الهاتف بشكل عمودي","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.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","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.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد — أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","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":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","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":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف — اطلب رابطًا جديدًا من الجهة الطالبة","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.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك — قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز — ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه — تحقق من اتصالك ثم أعد المحاولة"};var p={"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é — lumière sur le visage, pas 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.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","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.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","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.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 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.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.","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":"Gardez votre visage dans le cadre tout du long, puis réessayez.","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 confirmer l'authenticité de cette session de navigateur — rechargez la page 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","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière — é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.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"};function q(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";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}r(q,"hintStringKey");function P(e){return`fcv2.err.${e}`}r(P,"captureErrorStringKey");function A(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":return"errors.nni_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${e}`;return Object.hasOwn(c,t)?t:null}}}r(A,"reasonStringKey");function H(e,t,a=new Date){if(t===void 0)return null;let n=new Date(t),o=n.getTime()-a.getTime();if(!Number.isFinite(o)||o<=0)return null;if(o<36e5){let s=Math.max(1,Math.ceil(o/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(s,"minute")}}let i=n.toDateString()===a.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...i?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(n)}}r(H,"retryAfterTime");function I(e,t,a){let n=new Intl.PluralRules(t).select(a);return((n==="other"?void 0:e[`capture.attemptsRemaining.${n}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(a))}r(I,"attemptsRemainingText");import{createContext as f,useContext as v}from"react";var _={ar:u,fr:p,en:c};function j(e,t){let a=_[e];if(t===void 0)return a;let n={...a};for(let o of Object.keys(t)){let i=t[o];typeof i=="string"&&(n[o]=i)}return n}r(j,"resolveStrings");var d=f(e=>c[e]??""),F=d.Provider;function V(){return v(d)}r(V,"useStrings");import{useCallback as y}from"react";function $(){return y(e=>{e?.focus()},[])}r($,"useFocusOnMount");import{jsx as b}from"react/jsx-runtime";function Q({tone:e,role:t,children:a,testId:n}){return b("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":n,children:a})}r(Q,"Notice");export{r as a,k as b,c,u as d,p as e,q as f,P as g,A as h,H as i,I as j,j as k,F as l,V as m,Q as n,$ as o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as i}from"./chunk-
|
|
2
|
+
import{a as i}from"./chunk-PXRIFHY2.js";import{HostedApiError as o,InvalidInputError as r,OtpInputError as a}from"@sekyro/web";function f(n,t){if(n instanceof r)return n.field==="phone"?"otp.phoneInvalid":n.field==="code"?"otp.codeInvalid":n.kind==="check_digit"?"population.reason_nni_invalid":"population.invalid";if(n instanceof a&&n.field==="channel")return"otp.reason_otp_channel_unavailable";if(n instanceof o){let e=`errors.${n.code}`;if(Object.hasOwn(t,e))return e}return"errors.network_error"}i(f,"errorKey");export{f as a};
|