@sekyro/react 0.1.0-rc.5 → 0.1.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +122 -0
  2. package/LICENSE +25 -16
  3. package/README.md +64 -20
  4. package/dist/chunk-3MBJZSJL.js +2 -0
  5. package/dist/chunk-4INDRENU.js +2 -0
  6. package/dist/chunk-4RUZQW5T.js +2 -0
  7. package/dist/chunk-5SVCGLYS.js +2 -0
  8. package/dist/chunk-63NUMQST.js +2 -0
  9. package/dist/chunk-65JA6YKG.js +2 -0
  10. package/dist/chunk-ADMDZLPM.js +2 -0
  11. package/dist/chunk-AMOZXMUP.js +2 -0
  12. package/dist/chunk-B43EDVOK.js +2 -0
  13. package/dist/chunk-BENNJ4GV.js +2 -0
  14. package/dist/chunk-P2LX7BBE.js +2 -0
  15. package/dist/chunk-Q232JYNO.js +2 -0
  16. package/dist/chunk-QZAPVO6F.js +2 -0
  17. package/dist/chunk-YUNPD6ZB.js +2 -0
  18. package/dist/document-capture-view-PT732PJ2.js +2 -0
  19. package/dist/eid-view-RFSXIECL.js +2 -0
  20. package/dist/email-otp-view-3WZH74UT.js +2 -0
  21. package/dist/flow-views-N6KYXL4N.js +2 -0
  22. package/dist/fonts/Cairo-OFL.txt +93 -0
  23. package/dist/fonts/Geist-OFL.txt +93 -0
  24. package/dist/fonts/Inter-OFL.txt +93 -0
  25. package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
  26. package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
  27. package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
  28. package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
  29. package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
  30. package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
  31. package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
  32. package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.cts +5 -437
  35. package/dist/index.d.ts +5 -437
  36. package/dist/index.js +1 -1
  37. package/dist/portrait-capture-view-HYOEOAF4.js +2 -0
  38. package/dist/theme-BpOuzcWh.d.cts +456 -0
  39. package/dist/theme-BpOuzcWh.d.ts +456 -0
  40. package/dist/verification/index.cjs +2 -0
  41. package/dist/verification/index.d.cts +528 -0
  42. package/dist/verification/index.d.ts +528 -0
  43. package/dist/verification/index.js +2 -0
  44. package/dist/verification.css +561 -0
  45. package/package.json +20 -6
  46. package/sbom.cdx.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,127 @@
1
1
  # @sekyro/react
2
2
 
3
+ ## 0.1.0-rc.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 1639f8a: Sekyro flows: one choice screen for every choice of the flow plan (`plan.choice`).
8
+
9
+ - `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).
10
+ - The section progress follows `plan.sections` (`done | current | upcoming`); `section.screening` copy added.
11
+ - The identity summary is the `summary_confirm` step (no API change).
12
+ - 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.
13
+ - Flow-view chunk budget 10 240 → 10 752 B gzip (the generic choice copy, then the in-lane switch views).
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [8dbdcf3]
18
+ - @sekyro/web@0.1.0-rc.9
19
+
20
+ ## 0.1.0-rc.6
21
+
22
+ ### Minor Changes
23
+
24
+ - ff0dcc7: Flow model 2026-10-23 (web lane):
25
+
26
+ - `<SekyroVerification>`: one-line implicit consent ("By continuing, you agree to the terms." with a terms link — no photo/video wording), one progress segment per section, the phone-or-email choice (+ "Use another option" under the OTP), the identity summary (portrait from memory as a blob URL, revoked on unmount; masked values left to right inside RTL; confirm / retake), the eID "then a quick live photo" hint (method screen and eID screen), the ICAO tips variant and ICAO coaching for the one-capture live photo, the portrait-only retake notice, and a QR handoff for `mobile_required` when `handoffUrl` is set. The new views and their ar/fr/en copy load on demand (one lazy chunk).
27
+ - `<SekyroFlow>`: the page shell — in-app browser prompt (WhatsApp, Instagram, Facebook, TikTok, … → open in the browser / copy link / continue anyway) and the desktop-to-phone QR of `hostedUrl` (a built-in QR encoder, no new runtime dependency). `isInAppBrowser()` is exported.
28
+ - `<LivenessCapture>`: `tipsSummary` (the spoken summary of custom tips, device voice) and `coach` (host coaching that replaces the guidance line while the camera runs).
29
+ - Step copy: new optional keys (`consent.short`, `consent.termsLink`, `section.*`, `contact.*`, `summary.*`, `capture.tipsIcao.*`, `portrait.retakeOnly`, `portrait.keepCamera`, `handoff.*`, `inApp.*`, `eid.continueHint*`, `session.progressLabel`).
30
+ - e240081: National eID screens (SDK spec §3.2; Houwiyeti in Mauritania) in `@sekyro/react/verification`: the method screen now offers "Verify with Houwiyeti" (generic "Verify with your national eID" without provider details) when the session does, and `<SekyroVerification>` runs the new `<EidStep>` — NNI entry (never asked on an NNI-bound session, which starts by itself once), the 6-digit code from the provider's app with its expiry countdown, resend after the server's spacing and up to its limit, and every `eid_*` verdict with "Verify with my camera instead" where the session allows the camera path. The view and its ar/fr/en copy load lazily (like the email OTP view), so apps without a national eID never download them. `StepStrings` gains the `method.national_eid*` keys and optional `eid.*` / `reasons.eid_*` keys (host overrides win). The 0.1 `<LivenessCapture>` drop-in is unchanged (it never offers the eID).
31
+ - 46905f2: National eID sign-in (SDK spec §3.2; Houwiyeti in Mauritania) in the headless web runner: the `eid_auth` check type, the `national_eid` identity method with `methodChoice.nationalEid`, the `HostedStepView.eid` view and the `eid_*` reasons, and an `eid` plan-runner step whose handle offers `start(identifier?)`, `verify(code)`, `resend()` and `useCamera()`. `@sekyro/react` has no eID screen yet: its method screen leaves `national_eid` out and `<SekyroVerification>` shows the "unsupported" notice when the eID is the only path.
32
+
33
+ **Migration (TypeScript):** these exported unions gained members — `CheckType` (`eid_auth`), `IdentityMethod` (`national_eid`), `CheckReason` (the `eid_*` reasons), `VerificationStep` (a new `kind: "eid"` step). Code that switches over them exhaustively must add an `eid` branch. An invalid eID number rejects with the existing `InvalidInputError("nni", …)`. Nothing changes at runtime until a profile turns the national eID on.
34
+ - 7a3f935: Phone OTP channel choice and the email OTP step.
35
+
36
+ - `@sekyro/web`: the phone OTP step lists the channels the person can choose from (`PhoneOtpSnapshot.channels`, WhatsApp first; `[]` on a session created before channel choice). With more than one, `send({ channel })` needs the person's choice — it is never picked for them — and a channel the step doesn't offer is refused locally with the new `OtpInputError` (`channel`, `required` / `unavailable`). `resendAvailableAt` now follows the server's resend time when the session reports one. New `email_otp` step (`EmailOtpStepHandle`: `send({ email })`, `verify(code)`; a malformed address rejects with `OtpInputError("email", "format")`), shown before the identity-method choice like the phone step. New types: `HostedEmailOtpView`, `EmailOtpInput`, `EmailOtpReason`, the `email_otp` check type and the reasons `otp_channel_unavailable`, `otp_destination_not_allowed`, `otp_destination_unknown`, `otp_rate_limited`, `email_invalid`, `email_disposable`.
37
+ - `@sekyro/react`: `PhoneOtpStep` shows one "Send code by …" button per offered channel (WhatsApp first) and a "Resend by …" button per channel after the server's resend time; sessions without channels keep the single "Send code" button. New `EmailOtpStep` (rendered by `SekyroVerification` for the `email_otp` step); its view and ar/fr/en copy load on demand, so apps without an email check don't download them. New copy keys `otp.chooseChannel`, `otp.sendBy`, `otp.resendBy`, the new `otp.reason_*` keys and `emailOtp.*` (overridable through `strings`).
38
+ - `@sekyro/node`: profile `phone.channels` / `phone.destinations`, `email` (`ProfileEmail`: `emailSource`, `disposable`), `attempts.email`, the `input.email` session anchor and the `email_otp` check type.
39
+ - 0c59c9a: `@sekyro/react/verification`: `<DocumentCapture>` — pick the issuing country (searchable, only the countries your eKYC profile accepts), then the document type, then scan identity cards, residence permits or passports with the rear camera: the photo is taken by itself, a flip animation asks for the other face, and the progress line shows Front · Back. The camera view loads only when a document step is shown.
40
+ - ac69110: `@sekyro/react/verification`: `<PhoneOtpStep>`, `<MethodChoice>` and `<NniEntry>` — the phone OTP, "How do you want to verify?" and national-number steps of the hosted page, accessible in Arabic, French and English.
41
+ - 7a77b9d: `@sekyro/react/verification`: `<SekyroVerification verification={…} locale="fr" />` renders the whole eKYC profile — phone OTP, method choice, national number, document for any country, liveness and face match, and every result screen (policy stops, cooldown, "needs a phone app", no attempts left) — in your theme over the session's branding, with `slots` for header, footer and result and an `onLivenessCaptured` hook that fires before the upload. `<VerificationResultScreen>` is available on its own.
42
+ - d93f378: New entry `@sekyro/react/verification` (with `@sekyro/react/verification.css`) for the profile v2 steps: the ar/fr/en step copy (`enSteps`, `frSteps`, `arSteps`, `resolveSekyroStrings`) and `useVerificationStep(verification)`. The main `@sekyro/react` entry, its strings, theme and stylesheet are unchanged.
43
+ - c9edead: `<SekyroVerification>` matches the native SDKs on the remaining screens. Consent stays flow model v3's one line (no consent screen). The face capture (liveness and the ICAO live photo, whose tips the Sekyro face intro lists) is the Lumière face camera, edge to edge: the oval cut from the ink, a ring of ticks that turns green with the capture while the aqua light runs round it, the instruction above the oval. New optional `onClose(event)` prop: when given, the header ends with a close button (`{ reason: "cancelled" }`) and the result page with "Back to {org}" (`{ reason: "finished", result }`); `VerificationResultScreen` takes an optional `onClose` for the same action. The SDK's fonts (Inter, Inter Display for titles, Cairo for Arabic) ship as woff2 assets beside `verification.css` (`font-display: swap`, `unicode-range`). Also: resending a code is a quiet text action with its countdown; the document intro offers "Change document" when the country has other documents and "Change country" only with several countries; the ID card's landscape glyph; white turn cue; one 2 px read line; the lock and the capture checks in the camera's own green; the reference is one tabular caption line with a copy glyph. In `@sekyro/web`, a card's face is classified on the card itself (an MRZ band in its lower half), so the photo side is no longer filed as the verso. The 0.1 surface (`DEFAULT_THEME`, `styles.css`) is unchanged.
44
+ - c9edead: `<SekyroVerification>` takes the Sekyro identity the Android and iOS SDKs share: the partner's logo (or initials) and name
45
+ over "identity verification", the section progress (flow model v3) drawn as thin bars, the Sekyro brand as the default
46
+ theme (partner branding and the runtime theme still win), six-box one-time code fields, document cards with an icon
47
+ and a subtitle, the camera stages in the Sekyro navy, and a "Verified by Sekyro AI" footer (`slots.footer` replaces it,
48
+ `footer: null` hides it). New `colorScheme` prop: `light` (default), `dark` or `system`; in dark a partner's brand is
49
+ kept only while it stands out from the dark canvas.
50
+ The 0.1 surface (`DEFAULT_THEME`, `styles.css`, `<LivenessCapture>` and the other 0.1 components) is unchanged.
51
+
52
+ **Visible to existing `<SekyroVerification>` integrations.** Without a `theme` prop or session branding the flow now
53
+ draws in the Sekyro brand (it used `DEFAULT_THEME` before) and ends with a "Verified by Sekyro AI" line. To keep your
54
+ current look, pass your colours (`theme={{ colors: … }}`, or set them as the app's branding) and `slots={{ footer: null }}`.
55
+ `verification.css` now loads the SDK's fonts (`./fonts/*.woff2`): your bundler must emit them as assets (esbuild needs
56
+ `loader: { ".woff2": "file" }`; Vite, webpack 5 and Next.js do it by default) and your CSP `font-src` must allow them.
57
+ - fce1604: Web live MRZ (on-device, server-controlled, additive):
58
+
59
+ - `@sekyro/web`: `DocumentCaptureOptions.liveMrz` (`mode`, `assetBaseUrl`, `workerUrl`) and the text-free `mrz` event (`searching` / `reading` / `valid` / `mismatch` / `fallback`, with a format, a coaching hint or a reason — never MRZ text). On a face with an MRZ, the session's `capture.document.liveMrz` tuning lets the on-device reader (the OCR engine in a Web Worker, now with a 494 KB MRZ-only recognizer) take the photo once every hard check digit validates twice in a row; card fronts get a text-layout lock (`capture.document.frontLock`). Every failure is today's capture. `doc_ocr` submissions carry the optional, text-free `deviceRead` hint (`DocOcrInput.deviceRead`, `DocDeviceRead`) when the still confirmation is ready. New static file `core/ocr/worker.bundle.js` (a self-contained OCR worker for static hosting).
60
+ - `@sekyro/react`: `SekyroVerification`'s `documentLiveMrz` and `DocumentCapture`'s `liveMrz` pass the options through; the document view shows the reader's states (ar/fr/en), a band strip and the 2 s "this looks like a passport/card" line.
61
+
62
+ ### Patch Changes
63
+
64
+ - 626104f: Document capture resolution: the scanner asks the opened back camera for up to 4K, takes the full-sensor `ImageCapture` photo where the browser has one (else the native video frame), crops the still to the document (card + 15 % margins, or the passport page estimated from the MRZ band) and encodes the crop at a 2560 / 2240 / 1920 px long edge (1.6 MB / 1.2 MB / 700 KB budgets). A passport MRZ goes from ~630 px to ≥ 1300 px wide where the camera delivers the pixels. `@sekyro/react`'s document stage switches to a 4:3 layout when the phone is held sideways.
65
+
66
+ Focus: the scanner ranks the back cameras after permission and opens the main wide lens (lowest-index Android back camera with continuous AF; iOS "Back Camera"), remembered per browser, falling back to `facingMode`. It applies continuous autofocus where offered, refocuses (single-shot at the document) before the photo, zooms in (≤ 2×) when the camera reports a minimum focus distance beyond the document's fill distance (1.5× on a ≥ 4K track with no focus info), refuses an out-of-focus auto-captured still (`focus_far` coaching, `dcv2.focus_far`), and adds `DocumentCaptureHandle.focusAt(x, y)` for tap-to-focus (wired into `@sekyro/react`'s stage). All feature-detected; no-ops where unsupported.
67
+ - 83c7664: `<SekyroVerification>` sets its titles of 22 px and more (page titles, the result, the camera guidance, the phone and code fields) in Geist, the brand's display face on the website and dashboard, instead of Inter Display. `verification.css` loads `fonts/SekyroGeist-SemiBold.woff2` and `fonts/SekyroGeist-Bold.woff2` (OFL, `fonts/Geist-OFL.txt`); the two Inter Display files are gone, so the fonts beside `verification.css` shrink from about 249 KB to 215 KB. Body text stays Inter, Arabic stays Cairo, and a partner font from the dashboard still replaces the titles' face too. The native SDKs (and the React Native and Flutter wrappers, which render them) ship the same change.
68
+ - 9db49b8: Adds the `nationality_unreadable` document reason: the MRZ nationality (no check digit covers it) could not be read as a country code, nor recovered from a re-read or the printed nationality — retryable with a clearer photo, not billed, and never replaced by the issuing state. `@sekyro/web`: in `DocReason` and the retryable set (the same document side is re-read). `@sekyro/react`: `reasons.nationality_unreadable` copy in ar/fr/en.
69
+ - 9acafe1: NFC chip check (M-nfc). New check type `nfc_chip` (read by the native SDKs only), its reasons (`NfcChipReason`: retryable `chip_read_failed`, `chip_access_denied`, `chip_parse_failed`; final `chip_not_present`, `nfc_unavailable`, `chip_document_mismatch`, `chip_integrity_failed`, `registry_mismatch`, `document_nni_mismatch`, `platform_unsupported`), the error codes `method_not_offered` and `nfc_outcome_not_accepted` (`KNOWN_CODES`), the identity method `document_chip`, the session failure reason `platform_unsupported` and the optional `HostedStepView.nfc` hints (`NfcStepView`). Web behaviour is unchanged: the server skips the chip for web clients or stops the session with `platform_unsupported`; `@sekyro/react`'s method screen never renders the `document_chip` option.
70
+ - 4dd2b68: ICAO `id_document` portrait capture on the web (SDK spec §5.4, M1b): `createPortraitCapture` (strict ICAO gate on the MediaPipe Face Landmarker, lazy-loaded engine, server `capture.icao` tuning), a `portrait` plan-runner step that submits `portrait_icao` and then `face_match` with the portrait, the `portrait_required` hand-over reason, and `<PortraitCapture>` in `@sekyro/react/verification`.
71
+ - 8425e95: Face-match probe binding (SDK spec §4.10): the server matches the face_match probe against face crops of the scored liveness clip. New retryable, billed `face_match` reason `probe_not_from_liveness` (the face image isn't the person in the liveness clip). `@sekyro/web`: in `FaceMatchReason` and the retryable set (the runner re-captures). `@sekyro/react`: ar/fr/en retry copy "Keep your face in the frame the whole time, then try again"; bundle budget 24 → 25 KiB. `@sekyro/node`: `ProbeBindingReason`. No capture or upload change on any platform.
72
+ - e0da6e6: `<SekyroVerification>`: `slots.headerEnd` adds a node (a language menu) at the inline end of the partner header, before the close button; and `livenessProps.slots.stageOverlay` now draws over the full-screen face camera.
73
+ - b758c1e: `<SekyroVerification>`: a step the web cannot run because it reads the document's chip (`unsupported` / `platform_unsupported`) now says "This verification needs a phone app" and names the organisation's app ("{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue."), instead of "Update required". New `StepStrings` keys: `needsApp.title`, `needsApp.description`, `needsApp.descriptionNoOrg`.
74
+ - c9edead: `<SekyroVerification>` takes the premium redesign of the native SDKs, so the flow looks and behaves the same on the web: the flow-* type scale; one heading per page with its actions pinned in the thumb zone; the old page leaves before the new one rises in; a thin section progress whose current section is partly filled; white fields with a hairline and a 2px focus ring; the phone number after a fixed 🇲🇷 +222 segment, sendable only once valid; full-width code boxes (digit pop, caret, a shake on a wrong code) that send the code on its last digit; one tap on a country or a document chooses it; the camera intros' line marks; the Lumière document camera edge to edge (brackets that follow the card, steadied like the native ScanPresenter; the lock trace; the aqua read line; a light blur with the photo sharp in the slot while it is read and "you can put it down"; the turn cue under the slot; the captured faces in the tray); the face intro; the outcome mark drawn in light with a tap-to-copy reference. The 0.1 surface (`DEFAULT_THEME`, `styles.css`) is unchanged.
75
+ - 58c18a4: The `@sekyro/web` peer range is now `^0.1.0-rc.8 || ^0.2.0-rc.0` (was `^0.1.0-rc.7 || ^0.2.0-rc.0`): `@sekyro/react/verification` needs the step runner, `DocumentCapture` (`warmDocumentCapture`), `isValidNni` and `acceptedIssuers`, first released in `@sekyro/web` 0.1.0-rc.8. Upgrade `@sekyro/web` to 0.1.0-rc.8 or later together with this release; the main `@sekyro/react` entry is otherwise unchanged.
76
+ - f316221: The `@sekyro/web` peer range is widened to `^0.1.0-rc.7 || ^0.2.0-rc.0`. The next `@sekyro/web` release candidate (0.1.0-rc.8, with the step runner and DocumentCapture) is already inside the old range; the wider range only keeps a later 0.2 line installable next to this package. Nothing in `@sekyro/react` changes.
77
+ - 8425e95: Returning-user sessions (profile v2 step 5): `HostedSessionView.returning` and the optional `Verification.returning()` tell the host the session only confirms a known person (liveness + face match against their stored photo); `<LivenessCapture>` opens with "Confirm it's you" (ar/fr/en) unless the host renders its own header.
78
+ - 45f639f: Licence: the SDKs are now under the Sekyro AI SDK License of Ibtikar Technologies, Inc. (https://sekyro.ai/en/legal/sdk-license, also in French and Arabic). `package.json#license` is `SEE LICENSE IN LICENSE`, and each package's `LICENSE` summarises the licence and links to it. `@sekyro/web` now also ships `THIRD-PARTY-NOTICES.txt` with the MIT notice of the bundled scanic document detector and the MIT/NCSA notice of the Emscripten glue in its OCR worker.
79
+ - bc29977: Selfie ICAO policy: on a session whose selfie is checked with the `selfie` ICAO profile, the one-capture live photo shows the ICAO tips without the background tip, under the standard tips title (it is not an ID photo), and speaks those tips. ID-document sessions are unchanged.
80
+ - Updated dependencies [b81288e]
81
+ - Updated dependencies [d0c4f27]
82
+ - Updated dependencies [3438e10]
83
+ - Updated dependencies [e82324a]
84
+ - Updated dependencies [c9edead]
85
+ - Updated dependencies [f0ba853]
86
+ - Updated dependencies [626104f]
87
+ - Updated dependencies [0f19e99]
88
+ - Updated dependencies [76174c8]
89
+ - Updated dependencies [67a6be3]
90
+ - Updated dependencies [c9edead]
91
+ - Updated dependencies [650d70d]
92
+ - Updated dependencies [6571361]
93
+ - Updated dependencies [ff0dcc7]
94
+ - Updated dependencies [68b5df5]
95
+ - Updated dependencies [4c1aa5b]
96
+ - Updated dependencies [273d2ce]
97
+ - Updated dependencies [46905f2]
98
+ - Updated dependencies [9db49b8]
99
+ - Updated dependencies [6420611]
100
+ - Updated dependencies [9acafe1]
101
+ - Updated dependencies [2055ae5]
102
+ - Updated dependencies [9e27401]
103
+ - Updated dependencies [7a3f935]
104
+ - Updated dependencies [723039c]
105
+ - Updated dependencies [4dd2b68]
106
+ - Updated dependencies [471d833]
107
+ - Updated dependencies [8425e95]
108
+ - Updated dependencies [c9edead]
109
+ - Updated dependencies [8425e95]
110
+ - Updated dependencies [a3689e4]
111
+ - Updated dependencies [45f639f]
112
+ - Updated dependencies [c9edead]
113
+ - Updated dependencies [bc29977]
114
+ - Updated dependencies [4e6bfb8]
115
+ - Updated dependencies [69638fa]
116
+ - Updated dependencies [5eec558]
117
+ - Updated dependencies [fce1604]
118
+ - Updated dependencies [bdcd56e]
119
+ - Updated dependencies [426e180]
120
+ - Updated dependencies [2f9e980]
121
+ - Updated dependencies [b4c8465]
122
+ - Updated dependencies [225aeea]
123
+ - @sekyro/web@0.1.0-rc.8
124
+
3
125
  ## 0.1.0-rc.5
4
126
 
5
127
  ### Minor Changes
package/LICENSE CHANGED
@@ -1,20 +1,29 @@
1
- Sekyro AI SDK — Proprietary License
1
+ Sekyro AI SDK License (proprietary)
2
2
 
3
- Copyright (c) 2026 Ibtikar Technologies. All rights reserved.
3
+ Copyright (c) 2026 Ibtikar Technologies, Inc. All rights reserved.
4
4
 
5
- This software (the "SDK") is proprietary to Ibtikar Technologies. Use is
6
- permitted only under a Sekyro AI customer agreement with Ibtikar Technologies, and
7
- only to integrate the customer's own applications with the Sekyro AI
8
- identity-verification service. For that purpose you may install the SDK
9
- from the public npm registry and run it unmodified.
5
+ This SDK is proprietary software of Ibtikar Technologies, Inc., licensed
6
+ only under the Sekyro AI SDK License:
7
+ https://sekyro.ai/en/legal/sdk-license
8
+ (in French: https://sekyro.ai/fr/legal/sdk-license,
9
+ in Arabic: https://sekyro.ai/ar/legal/sdk-license).
10
10
 
11
- No other right or license, express or implied, is granted. You may not
12
- modify, reverse-engineer, redistribute, sublicense, resell or create
13
- derivative works of the SDK, nor remove or alter this notice. The source
14
- code is published for transparency (build provenance, security review); its
15
- publication grants no additional rights.
11
+ In short, and subject to the full license:
16
12
 
17
- THE SDK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED. TO THE EXTENT PERMITTED BY LAW, IBTIKAR TECHNOLOGIES SHALL NOT BE
19
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE
20
- SDK, EXCEPT AS PROVIDED IN THE APPLICABLE CUSTOMER AGREEMENT.
13
+ - You may use the SDK only with a Sekyro AI account, a customer agreement
14
+ with Ibtikar Technologies, Inc. and valid API keys, to integrate the
15
+ Sekyro AI services into your own applications. You may distribute it to
16
+ your end users only as embedded in those applications.
17
+ - You may not use it with another identity verification provider, modify it
18
+ beyond the configuration and theming it exposes, reverse engineer,
19
+ decompile or disassemble it (except where the law expressly allows it),
20
+ circumvent its security, attestation, license checks or usage metering,
21
+ or distribute or sublicense it on its own.
22
+ - Open-source components keep their own licenses. See the third-party
23
+ notices shipped with this SDK.
24
+ - The SDK is provided "as is", without warranty, except as your customer
25
+ agreement provides. The license is governed by the laws of the State of
26
+ Delaware, USA. If this license and your customer agreement conflict,
27
+ the customer agreement prevails.
28
+
29
+ Questions: contact@sekyro.ai
package/README.md CHANGED
@@ -1,22 +1,31 @@
1
1
  # @sekyro/react
2
2
 
3
- React component for [Sekyro AI](https://sekyro.ai) liveness capture: the hosted page's
4
- capture UI (`<LivenessCapture />`), extracted onto the public `@sekyro/web` API with
5
- no private design-system or framework dependency. Themeable through CSS variables,
6
- ar / fr / en built in, RTL-safe (logical CSS only), WCAG AAA defaults.
3
+ React components for [Sekyro AI](https://sekyro.ai) identity verification, built on the
4
+ public `@sekyro/web` API with no private design-system or framework dependency:
7
5
 
8
- > Status: `0.1.0-rc.0`, still `private` — the public npm release is wired in a later
9
- > task (Changesets + Trusted Publishing). Sekyro AI's own hosted page dogfoods it via a
10
- > `file:` link.
6
+ - `@sekyro/react`: `<LivenessCapture />`, the hosted page's liveness capture UI;
7
+ - `@sekyro/react/verification`: `<SekyroVerification />`, which renders every step of the
8
+ session's Sekyro flow (codes, choices, national number, document, identity summary,
9
+ liveness and face match, ICAO portrait, national eID, result), and the single step
10
+ components.
11
+
12
+ Themeable through CSS variables, ar / fr / en built in, RTL-safe (logical CSS only),
13
+ WCAG AAA defaults. Sekyro AI's own hosted page uses the same components.
11
14
 
12
15
  ## Install
13
16
 
14
17
  ```sh
15
- npm install @sekyro/react @sekyro/web react react-dom
18
+ npm install @sekyro/react@next @sekyro/web@next react react-dom
16
19
  ```
17
20
 
18
- Peer dependencies: `react >=18.2`, `react-dom >=18.2`, `@sekyro/web ^0.1.0-rc.0`.
19
- No other runtime dependencies.
21
+ Peer dependencies: `react >=18.2`, `react-dom >=18.2`, `@sekyro/web ^0.1.0-rc.9 || ^0.2.0-rc.0`.
22
+ No other runtime dependencies. Use of the SDK is governed by the
23
+ [Sekyro AI SDK License](https://sekyro.ai/legal/sdk-license) (summarised in `LICENSE`)
24
+ and your Sekyro AI customer agreement.
25
+
26
+ The full guide (sessions and flows, the whole flow with `<SekyroVerification>`, CSP,
27
+ model assets, reason codes) is the
28
+ [web SDK guide](https://docs.sekyro.ai/en/web/embedded-sdk).
20
29
 
21
30
  ## Usage
22
31
 
@@ -44,7 +53,7 @@ const verification = createVerification({ clientToken, locale: "ar" });
44
53
  retry coaching and the remaining attempts; with `createVerification({ rearm: 'manual' })`
45
54
  the component instead offers a focused "Start a new attempt" button.
46
55
  - The still freezes the stage the instant recording stops (the handle's `frozen`
47
- event) — before the clip finalizes; the "camera off" pill only appears once the
56
+ event), before the clip finalizes; the "camera off" pill only appears once the
48
57
  tracks are actually stopped (`captured`). A LOW device profile (`profile` event)
49
58
  drops the decorative animations.
50
59
  - **Capture-only mode** (no `verification`): `createLivenessCapture()`; the component
@@ -60,9 +69,9 @@ const verification = createVerification({ clientToken, locale: "ar" });
60
69
  | `dir?` | `"ltr" \| "rtl"` | Defaults to `rtl` for `ar`. |
61
70
  | `strings?` | `Partial<Strings>` | Per-key overrides on top of the built-ins. |
62
71
  | `slots?` | `{ header, footer, intro(start, context), stageOverlay(videoRef), voicePrompt(hint, text, key, voice), errorPanel(err, retry) }` | `intro` replaces the built-in pre-capture screen (see below); `stageOverlay` renders inside the stage box above the ring (overlays, debug HUDs); `voicePrompt` replaces the built-in voice chip in the stage's start corner; `errorPanel` replaces the camera-error notice. |
63
- | `autoStart?` | `boolean \| "when-permitted"` | Skip the pre-capture screen and start once the detector preload is ready — at most once per mount. `true` arms it (flip it when your own preconditions are met); `"when-permitted"` arms it only when the camera permission is already `granted` (until the permission probe answers, the screen shows its loader). |
72
+ | `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
73
  | `notice?` | `ReactNode \| { tone, text }` | Host message above the pre-capture screen (busy service, previous failure). Pre-capture only. |
65
- | `startDisabled?` / `startLabel?` | `boolean` / `ReactNode` | Disable the built-in Start and relabel it (e.g. a cooldown: "Retry in 12 s"). It gates only the pre-capture Start — not the error Retry, "record again" or the retake button. |
74
+ | `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
75
  | `tips?` | `false \| (BuiltInTipId \| IntroTip)[]` | Tips card; default `DEFAULT_TIPS`; `false` hides it. |
67
76
  | `defaultFacing?` | `"user" \| "environment"` | Camera the attempt opens with (default front). |
68
77
  | `voice?` | `false \| VoiceOptions` | Voice guidance; on by default. `false` = no speech, no switch, no chip. |
@@ -86,7 +95,7 @@ is ready at once.
86
95
 
87
96
  `slots.intro(start, context)` replaces the whole screen. `context` is
88
97
  `{ assets: "loading" | "ready" | "failed", retryAssets, permission, facing,
89
- setFacing, canChooseFacing, voice }`; call `start` from your click handler — it
98
+ setFacing, canChooseFacing, voice }`; call `start` from your click handler: it
90
99
  opens `context.facing` and unlocks audio inside the gesture (iOS). The `notice`
91
100
  still renders above your intro.
92
101
 
@@ -103,21 +112,21 @@ still renders above your intro.
103
112
 
104
113
  ### Voice guidance
105
114
 
106
- During capture the component speaks the displayed (debounced) guidance — the
107
- `fcv3.*` gate hints — through one `<audio>` element, falling back to the
115
+ During capture the component speaks the displayed (debounced) guidance (the
116
+ `fcv3.*` gate hints) through one `<audio>` element, falling back to the
108
117
  device voice (`speechSynthesis`). A stage chip (`aria-pressed`) and the intro
109
118
  switch toggle it; the viewer's choice persists in `localStorage`.
110
119
 
111
120
  | `VoiceOptions` | Default | Notes |
112
121
  |---|---|---|
113
122
  | `defaultEnabled?` | `true` | Used when the viewer has no stored preference. |
114
- | `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 } }` (e.g. 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. |
123
+ | `clips?` | verification mode: Sekyro AI clips from the session (add `https://assets.sekyro.ai` to `media-src`); capture-only: none | `VoiceClipSource`: a resolver `(key, locale) => url \| null` **or** a map `{ [locale]: { [voiceKey]: url } }` (for example delivered by your backend; pass a new object to change it). Yours always wins over the Sekyro AI clips. A missing URL or a throwing resolver = no clip → device voice. |
115
124
  | `speechFallback?` | `true` | `false`, or the locales where the device voice may speak. A device with no voice for the language stays silent rather than read Arabic in a French voice. |
116
125
  | `storageKey?` | `"sekyro.voiceGuidance"` | `null` = do not persist. |
117
126
 
118
127
  **Sekyro AI clips.** In verification mode the component speaks the recorded
119
128
  ar/fr clip set that arrives with the session (`verification.voiceClips()`),
120
- served from `https://assets.sekyro.ai` — a page with a Content-Security-Policy
129
+ served from `https://assets.sekyro.ai`: a page with a Content-Security-Policy
121
130
  must allow that origin in `media-src`. Until the set arrives, when the session
122
131
  has none, or when it cannot be fetched, the device voice speaks. The package
123
132
  ships no audio. `VOICE_KEYS` lists the nine `fcv3.*` guidance keys plus
@@ -147,7 +156,7 @@ when `slots.voicePrompt` is set and `voice` is undefined (pass `voice={{}}` to k
147
156
  the built-in voice and silence it).
148
157
 
149
158
  **CSP.** Clips and the unlock use `media-src 'self' blob:` (the silent unlock WAV
150
- is a `blob:` URL — no `data:` needed); add your clip host if `clips` points off-origin.
159
+ is a `blob:` URL, no `data:` needed); add your clip host if `clips` points off-origin.
151
160
 
152
161
  ### Theme
153
162
 
@@ -163,7 +172,7 @@ Contrast rules the component relies on (checked for the default theme in
163
172
  - `fg` on `surface` / `bg`, `brandFg` on `brand`: text → 7:1 (AAA);
164
173
  - `surface` on `fg`: the stage scrim is `fg` and the guidance line is `surface`, so the
165
174
  on-camera text inherits the same ratio;
166
- - `fgMuted` on `surface`: secondary text only (security note, checking hint) — AA
175
+ - `fgMuted` on `surface`: secondary text only (security note, checking hint): AA
167
176
  (4.5:1) is the floor, AAA recommended;
168
177
  - `brand`, `ring`, `danger`, `warning`, `success` on `surface`: non-text UI → 3:1.
169
178
 
@@ -184,6 +193,41 @@ Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
184
193
  - Inline SVG icons only; no emoji; logical CSS properties only (`scripts/check-css.mjs`
185
194
  fails the build on any physical `left`/`right`).
186
195
 
196
+ ## Entries: `@sekyro/react` and `@sekyro/react/verification`
197
+
198
+ The main entry is the liveness component above. The flow steps
199
+ (`<SekyroVerification>`, `<SekyroFlow>`, `<PhoneOtpStep>`, `<EmailOtpStep>`,
200
+ `<MethodChoice>`, `<EidStep>`, `<NniEntry>`, `<DocumentCapture>`, `<PortraitCapture>`,
201
+ `<VerificationResultScreen>`) live on a second entry, `@sekyro/react/verification`, with
202
+ its own stylesheet (`import "@sekyro/react/verification.css"` next to `styles.css`). It
203
+ needs `@sekyro/web` 0.1.0-rc.8 or later (the step runner). The server decides the steps
204
+ from the session's flow; the component renders whichever step comes next.
205
+
206
+ `verification.css` loads the SDK's fonts (subset Inter, Geist and Cairo,
207
+ woff2, OFL) from `fonts/` beside it: your bundler emits them as assets (allow
208
+ them in your CSP `font-src`); they load only for the text that needs them and
209
+ never block it (`font-display: swap`). A partner font from the dashboard
210
+ branding or `theme.fontFamily` still wins.
211
+
212
+ Pass `onClose` to `<SekyroVerification>` to take the person back to your page:
213
+ the header then ends with a close button (`{ reason: "cancelled" }`) and the
214
+ result page with "Back to {org}" (`{ reason: "finished", result }`). Consent is
215
+ the one line over the first step; the runner records it on the person's first
216
+ action.
217
+
218
+ **Use the ESM build (`import`).** In ESM both entries import one shared copy of
219
+ the common code (theme, strings, `<LivenessCapture>`), and the document camera
220
+ view is a separate chunk loaded only when a document step shows. The CJS build
221
+ (`require`) has no code splitting: each entry is a self-contained bundle with
222
+ its **own copy** of the shared modules, so nothing module-level is shared
223
+ between `@sekyro/react` and `@sekyro/react/verification` (for example, a
224
+ `SekyroThemeProvider` or `<LivenessCapture>` imported from one entry is a
225
+ different component from the one the other entry renders), the camera view is
226
+ inlined, and the code is downloaded twice if you import both. The theme itself
227
+ is plain CSS variables on `.sekyro-root`, so a provider from either entry still
228
+ themes both, but every bundler partners use (Next, Vite, webpack 5, esbuild)
229
+ resolves the ESM build by default, so keep it that way.
230
+
187
231
  ## Scripts
188
232
 
189
233
  `npm test` (CSS lint + vitest: behaviour, jest-axe per state × ar/fr, contrast, RTL
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as C}from"./chunk-Q232JYNO.js";import{e as S,f as I}from"./chunk-63NUMQST.js";import{a as m}from"./chunk-4RUZQW5T.js";import{useLayoutEffect as L,useRef as P,useState as z}from"react";import{jsx as s,jsxs as y}from"react/jsx-runtime";var x=72;function F(n,r){let t=n*.72,o=t*1.32;return{cx:n/2,cy:(r-o)/2.1+o/2,a:t/2,b:o/2}}m(F,"faceOval");function H({cx:n,cy:r,a:t,b:o}){return Array.from({length:x},(M,f)=>{let p=-Math.PI/2+f/x*2*Math.PI,c=Math.cos(p),d=Math.sin(p),h=n+t*c,k=r+o*d,v=Math.hypot(o*c,t*d),u=o*c/v,a=t*d/v,l=m(e=>Math.round(e*10)/10,"r");return`M${l(h+u*16)} ${l(k+a*16)}L${l(h+u*28)} ${l(k+a*28)}`})}m(H,"ticks");function E({video:n,instruction:r,note:t,busy:o,progress:M,still:f,overlay:p,onClose:c,closeLabel:d,live:h=!0,children:k,testId:v}){S(h);let u=P(null),[a,l]=z({w:0,h:0});L(()=>{let b=u.current;if(b===null)return;let R=m(()=>l({w:b.clientWidth,h:b.clientHeight}),"measure");if(R(),typeof ResizeObserver>"u")return;let O=new ResizeObserver(R);return O.observe(b),()=>O.disconnect()},[]);let e=F(a.w,a.h),$=a.w>0?H(e):[],N=Math.round(Math.min(1,Math.max(0,M))*x),w=e.cy-e.b,i=Math.max(e.a,e.b)+40,g=70*Math.PI/180;return s("section",{className:"sekyro-lm sekyro-fc","aria-label":r,"data-testid":v,children:y("div",{ref:u,className:"sekyro-lm-stage",children:[n,f?s("img",{className:"sekyro-lm-video sekyro-fc-still",src:f,alt:""}):null,p,a.w>0?y("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${a.w} ${a.h}`,"aria-hidden":"true",focusable:"false",children:[y("defs",{children:[y("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:e.cx-i*Math.sin(g),y1:e.cy,x2:e.cx,y2:e.cy,children:[s("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),s("stop",{offset:"1",className:"sekyro-fc-fade"})]}),s("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a.w,height:a.h,children:s("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${e.cx}px ${e.cy}px`},d:`M${e.cx} ${e.cy}L${e.cx-i*Math.sin(g)} ${e.cy-i*Math.cos(g)}A${i} ${i} 0 0 1 ${e.cx} ${e.cy-i}Z`,fill:"url(#sekyro-fc-fade)"})})]}),s("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${a.w}V${a.h}H0Z M${e.cx-e.a} ${e.cy}a${e.a} ${e.b} 0 1 0 ${2*e.a} 0a${e.a} ${e.b} 0 1 0 ${-2*e.a} 0Z`}),s("ellipse",{className:"sekyro-fc-rim",cx:e.cx,cy:e.cy,rx:e.a,ry:e.b}),s("path",{className:"sekyro-fc-ticks",d:$.join("")}),N>0?s("path",{className:"sekyro-fc-ticks is-done",d:$.slice(0,N).join("")}):null,N<x?s("path",{className:"sekyro-fc-ticks is-light",d:$.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,s("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:w-80},children:s("div",{role:"status","aria-live":"polite",children:s(I,{swapKey:r,className:"sekyro-lm-line",children:r})})}),t?y("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:w+2*e.b+48},children:[o?s("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,s("span",{children:t})]}):null,y("div",{className:"sekyro-lm-controls",children:[s("div",{className:"sekyro-lm-bar",children:c!==void 0?s("button",{type:"button",className:"sekyro-glass","aria-label":d,onClick:c,children:s(C,{name:"close"})}):null}),k]})]})})}m(E,"FaceCamera");export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as t}from"./chunk-4RUZQW5T.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};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var p=Object.defineProperty;var r=(e,t)=>p(e,"name",{value:t,configurable:!0});import{forwardRef as l}from"react";import{jsx as d}from"react/jsx-runtime";var y=l(r(function({kind:t="primary",full:a=!1,className:n,type:o,...s},c){let i=["sekyro-btn",`sekyro-btn--${t}`];return a&&i.push("sekyro-btn--full"),n!==void 0&&i.push(n),d("button",{ref:c,type:o??"button",className:i.join(" "),...s})},"Button"));var u={"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","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 the NNI","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.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 national 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.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 m={"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":"أمسك الهاتف بثبات","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.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.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك — قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز — ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه — تحقق من اتصالك ثم أعد المحاولة"};var h={"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","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 le NNI","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.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 (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.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 L(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";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}r(L,"hintStringKey");function N(e){return`fcv2.err.${e}`}r(N,"captureErrorStringKey");function S(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(u,t)?t:null}}}r(S,"reasonStringKey");function q(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 i=Math.max(1,Math.ceil(o/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(i,"minute")}}let s=n.toDateString()===a.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...s?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(n)}}r(q,"retryAfterTime");function R(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(R,"attemptsRemainingText");import{useCallback as g}from"react";function D(){return g(e=>{e?.focus()},[])}r(D,"useFocusOnMount");import{jsx as f}from"react/jsx-runtime";function O({tone:e,role:t,children:a,testId:n}){return f("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":n,children:a})}r(O,"Notice");export{r as a,y as b,u as c,m as d,h as e,L as f,N as g,S as h,q as i,R as j,O as k,D as l};