@sekyro/react 0.1.0-rc.18 → 0.1.0-rc.19
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 +59 -0
- package/README.md +15 -7
- package/dist/chunk-64KUMWHB.js +2 -0
- package/dist/chunk-7Z4LVT2A.js +2 -0
- package/dist/chunk-DIE7UVV7.js +2 -0
- package/dist/chunk-E7PG3JL4.js +2 -0
- package/dist/chunk-HVH6GGI4.js +2 -0
- package/dist/chunk-MM5EYC7B.js +2 -0
- package/dist/chunk-MX5SNIDY.js +2 -0
- package/dist/{chunk-ZZIBCKKC.js → chunk-OFPS67YV.js} +1 -1
- package/dist/chunk-ONYT4GJ4.js +2 -0
- package/dist/chunk-PESMIB3E.js +2 -0
- package/dist/{chunk-VBIVDLBE.js → chunk-TLMGY7AK.js} +1 -1
- package/dist/{chunk-T7C7Q4AN.js → chunk-TWZZGFO5.js} +1 -1
- package/dist/chunk-YZ5ZR6UR.js +2 -0
- package/dist/document-capture-view-DMRIMB3Z.js +2 -0
- package/dist/{eid-view-VYUU65A3.js → eid-view-DZBYRACA.js} +1 -1
- package/dist/{email-otp-view-DUHRTUGD.js → email-otp-view-GW2VEEPW.js} +1 -1
- package/dist/flow-views-T3Y6QDXH.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/overlay-de-C7OXK65Q.js +2 -0
- package/dist/overlay-es-WGFBBRYI.js +2 -0
- package/dist/overlay-pt-EJEA6RF7.js +2 -0
- package/dist/portrait-capture-view-TL5ZZNZF.js +2 -0
- package/dist/portrait-review-view-W7DDLF64.js +2 -0
- package/dist/styles.css +23 -0
- package/dist/{theme-DuvMUYA9.d.ts → theme-YmIQ6Ux1.d.cts} +36 -15
- package/dist/{theme-DuvMUYA9.d.cts → theme-YmIQ6Ux1.d.ts} +36 -15
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +27 -10
- package/dist/verification/index.d.ts +27 -10
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +11 -0
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-3GCHNE7R.js +0 -2
- package/dist/chunk-3H6KQ6BP.js +0 -2
- package/dist/chunk-455FWUKU.js +0 -2
- package/dist/chunk-AGIBFSCL.js +0 -2
- package/dist/chunk-IAJAM4I6.js +0 -2
- package/dist/chunk-JTDARDD6.js +0 -2
- package/dist/chunk-W3GLUWQ5.js +0 -2
- package/dist/chunk-ZFGI5LKP.js +0 -2
- package/dist/document-capture-view-ZNZQMJBX.js +0 -2
- package/dist/flow-views-VJPCIWEJ.js +0 -2
- package/dist/overlay-de-TSLNGALH.js +0 -2
- package/dist/overlay-es-44JQULK7.js +0 -2
- package/dist/overlay-pt-D5TKF7PI.js +0 -2
- package/dist/portrait-capture-view-XUWOHJTS.js +0 -2
- package/dist/portrait-review-view-SJXQZTAK.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @sekyro/react
|
|
2
2
|
|
|
3
|
+
## 0.1.0-rc.19
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ad0d148: Assisted capture uses the back camera only, on the liveness and the portrait cameras, as self capture uses the front camera only. `switchCamera()` on `LivenessCaptureHandle` and `PortraitCaptureHandle` does nothing and returns `false`, and a `facing` option or `start({ facing })` asking for the other camera is ignored; both log one console warning per handle. Under capture mode `choice` the person still switches the mode (`setCaptureMode`), and the camera follows it. `CapturedPortrait.facingMode` reports the camera the photo was taken with, and the portrait submission sends it as `input.capture.facingMode`. New reason `capture_front_camera` on `LivenessReason` and `PortraitIcaoReason`: an assisted capture reported on the front camera is refused before scoring, retryable, not billed and not counted as an attempt (in `RETRYABLE_REASONS`).
|
|
8
|
+
|
|
9
|
+
`@sekyro/react`: the front/back camera choice before an assisted capture and the flip button on the liveness and portrait cameras are gone. `IntroContext` no longer has `setFacing` or `canChooseFacing`; `IntroContext.facing` is the capture mode's camera. The new `reasons.capture_front_camera` string comes in every language.
|
|
10
|
+
- ad0d148: Under capture mode `choice` the person switches between filming themselves and being filmed on the camera view. `LivenessCaptureHandle.canSwitchCaptureMode()` says whether the switch is offered (a device with a front and a back camera), and `LivenessCaptureHandle.setCaptureMode(mode)` switches: the pick is recorded for the session (`Verification.chooseCaptureMode`), a running take restarts in the new mode (the recording is dropped, never submitted, and `CaptureState` passes through `mode_switch`), and the camera reopens on the front camera for `self` and the back one for `assisted`. The mode sets the camera.
|
|
11
|
+
|
|
12
|
+
`@sekyro/react`: `<LivenessCapture>` no longer asks who films before the liveness camera opens. Under `choice` the stage shows a chip in its end corner ("Someone is helping me", then "I film myself") that switches the mode and restarts the take with a "Camera switched" status line; a one-camera device does not show it. The new `capture.modeSwitch.*` strings come in every language. The portrait step keeps its who-takes-the-photo question.
|
|
13
|
+
- ad0d148: Every camera step hands off to a phone on a desktop browser, in every decision mode. `deriveStep` turns a `doc_ocr` or `portrait_icao` step that `requiresMobile` with the camera as its source into the `mobile_required` step (`MobileRequiredSnapshot.checkType` gains `doc_ocr` and `portrait_icao`); a `choice` photo step stays on the desktop with `photo.cameraOnPhone: true`, its upload offered and `refresh()` on the document and portrait handles. `Verification.mobileRequired()` covers every camera step. Under capture mode `choice`, `HostedCaptureTuning.pick` is the session's latest mode and the cameras open in it (`Verification.captureChoice` reports it). `detectFormFactor()` reads Windows and ChromeOS touch devices as desktops; iPadOS stays a tablet; a browser whose client hints (`navigator.userAgentData`) say `mobile` or an Android, iOS or iPadOS platform is never a desktop, so an Android phone in "desktop site" mode (a Windows user agent) is not handed off. The reason `uncalibrated_capture_channel` is gone from `LivenessReason`; `@sekyro/react` keeps its `reasons.uncalibrated_capture_channel` wording and `Strings` entry, frozen in the 0.1 dictionaries, though no reason resolves to it.
|
|
14
|
+
|
|
15
|
+
`@sekyro/react`: `<SekyroVerification>` shows the QR of `handoffUrl` at a camera document or portrait step, with a line that says what the phone is for; a `choice` photo step offers "Continue on my phone" and "Upload a photo", and never opens the webcam. Each of these hand-overs, and the liveness hand-over, uses the styled QR code with the Sekyro AI mark in the centre at error correction level H, like the QR codes in the dashboard. The code no longer shows your branding logo, with or without one in your session branding; the rest of the page keeps your branding. The code stays navy on a white tile, in dark mode and under your branding colours.
|
|
16
|
+
- 0804d05: Only one person may be in the liveness video. The capture gate reads the faces its detector already finds (no new model): while another face has at least a quarter of the person's face area, the gate waits (progress drains, the clip never starts) with the new hint `one_face` on `GateHint` and resumes once one face remains. Smaller faces further back never block. The native `FaceDetector` tier now asks for up to four faces and takes the largest as the person. New reason `multiple_faces` on `LivenessReason`: the server saw a second person in the clip and asks for a new one; retryable, not billed and not counted as an attempt for up to 5 retakes per step (in `RETRYABLE_REASONS`).
|
|
17
|
+
|
|
18
|
+
`@sekyro/react`: new strings `fcv3.one_face` (the guidance line, also spoken by the device voice) and `reasons.multiple_faces` (the retake line) in every language; `hintStringKey("one_face")` and `VOICE_KEYS` include it.
|
|
19
|
+
- ad0d148: The portrait step switches the capture mode on its camera too, under capture mode `choice`. `PortraitCaptureHandle.canSwitchCaptureMode()` and `PortraitCaptureHandle.setCaptureMode(mode)` work as on the liveness handle: the pick is recorded for the session, the camera reopens in the new mode (front for `self`, back for `assisted`) with the gate from zero, and `PortraitCaptureState` passes through `mode_switch`. Before the photo is taken only.
|
|
20
|
+
|
|
21
|
+
`@sekyro/react`: the portrait camera opens on the person's pick (`self` before one) with the switch chip in its end corner ("Someone is helping me", then "I take the photo myself") and a "Camera switched" line; a one-camera device does not show it. The who-takes-the-photo question is gone, and with it `CaptureModePicker` and the `capture.modePicker.*` strings; the new `capture.modeSwitch.*Photo` strings come in every language.
|
|
22
|
+
- b426395: Retake screens teach the fix for their own reason. After a liveness retake for a reason that is not about the face or the light, the retry panel shows "Before you film again:" and the reason's tips instead of the lighting coaching: the front camera (`capture_back_camera`), the back camera and where to hold it (`capture_front_camera`), the phone upright (`capture_not_upright`), letting the recording finish (`media_unreadable`, `clip_too_short`) and the device (`device_integrity_failed`). `no_face`, `liveness_inconclusive` and the face match retries keep the face and light tips. The document intro leaves out the photo tips when the document itself is the wrong one (`document_type_not_accepted`, `tester_document_mismatch`), and the Sandbox tester reasons (`tester_document_mismatch` on the document step, `tester_phone_mismatch` on the phone step) now show their line.
|
|
23
|
+
|
|
24
|
+
New strings in every language: `capture.retryTips.title` (replaces `capture.retryOneFace.title`, same words), `capture.retryFrontCamera.*`, `capture.retryBackCamera.*`, `capture.retryUpright.*`, `capture.retryRecording.*` and `capture.retryDevice.*`.
|
|
25
|
+
- 2beba0c: `PopulationReason` no longer has `result_from_cache`: a passed registry step carries no reason. `@sekyro/react` drops its wording (`reasons.result_from_cache`) in every language.
|
|
26
|
+
|
|
27
|
+
An object literal that overrides `reasons.result_from_cache` (for example the strings passed to `resolveStrings` or a custom dictionary typed with the package's strings type) must drop that key, or TypeScript reports an unknown property.
|
|
28
|
+
- 5329680: Screen ramp v2 (the liveness colour flash): the layer paints the four saturated ramp colours and, in the dark-gap arm, black, full screen at full value with no scrim over it. The text bands keep 4.5:1 over every colour and over black.
|
|
29
|
+
- 81b8e9a: The result page follows the session outcome model: one screen per end state, each with its own title and explanation in all six languages. `verified`, `review`, `rejected`, `inconclusive` (no verdict could be reached: the captures were not clear enough), `unavailable` (the service could not run the check), `expired` (the person left, nobody opened the link, the organization cancelled it or a newer session took it over), `policy` (a flow rule stopped it, with the rule's own line), `cooldown` (this device may try again later) and `platform_unsupported`. The review, rejected and expired explanations are reworded. A rejection on the details the organization holds names the organization.
|
|
30
|
+
|
|
31
|
+
`<LivenessCapture>` reads `VerificationResult.reasonCode` for its lines and coaching and shows "the session expired" for a `not_verified` link that is over. The `session.result.approved.*` and `native.result.approved` strings are replaced by `session.result.verified.*` and `native.result.verified` (same words), next to the new `session.result.{inconclusive,unavailable,policy,cooldown}.*` and `native.result.{inconclusive,unavailable,policy}`.
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 37a6305: Assisted capture asks for the back camera exactly (`facingMode: { exact: "environment" }`), then a back lens by `deviceId`, then the browser's own pick, on the liveness and the portrait cameras. When only the front camera opens, nothing is recorded or uploaded: under capture mode `choice` the take continues as a self capture on the front camera (the pick is recorded and the stage shows the mode switch), otherwise the capture fails with `kind: "notfound"` and `detail.engineKind: "backcamera"`. Before this, a browser could answer the back-camera request with the front camera, and the server refused the uploaded clip with `capture_front_camera`.
|
|
36
|
+
|
|
37
|
+
`@sekyro/react`: the camera error notice shows the new `fcv2.err.backcamera` string for that failure, in every language.
|
|
38
|
+
- f8eae5a: The document step returns to the camera when the server asks for a retake of a passport page (`doc_ocr` `input_required` with `unreadable` or any other retryable reason). Before, the one-face read was settled as accepted and the camera stayed on the read screen with no way forward; a card whose two faces were both in but still asked for again did the same. Both now re-read the face that was sent. `@sekyro/react`: the retake line over the camera shows the server's reason, as the native SDKs do; a re-read the device asks for by itself keeps the re-read line.
|
|
39
|
+
- b4f1b19: Phone code step: when the person taps WhatsApp or SMS, only the tapped button shows the loading spinner and `aria-busy`. The other channel button is disabled without a spinner until the send settles, and both are enabled again after a refused send. A polite status line tells screen readers which channel the code is being sent by, with the new `otp.sending` string in every language.
|
|
40
|
+
- 5299fd3: ICAO portrait retake: the panel after a failed photo says the reason once. "What to fix" lists only the failing criteria the reason does not name, and the live checklist is left out until the gate runs again. While the gate runs, the checklist flags the criteria the server failed, and an occlusion failure gets its own row (the gate does not measure occlusion).
|
|
41
|
+
- eb2c03a: After a face-match probe mismatch (`probe_not_from_liveness`) the server reopens the liveness step, and the face retake now says what to do: "The same person needs to be on camera from start to finish. Record the video again" (new string `capture.retrySamePerson.message` in every language). The 0.1 `reasons.probe_not_from_liveness` wording is unchanged.
|
|
42
|
+
- 50c4b68: The liveness screen ramp now covers the whole screen, edge to edge. Before, the colour wash was a fixed layer inside the camera stage. The page's rise animation leaves a transform on the capture's container, and a transformed ancestor makes `position: fixed` relative to that box, so the wash stopped at the flow's 24 px gutters and the sides stayed dark. The wash is now portalled into `document.body`, fixed at inset 0 and at least the large viewport, and sits under the page. While it shows, the stage and every box up to `<body>` are transparent (inline, restored when the ramp clears), and a cover in the same colour fills the stage over the camera preview, so the colour covers the whole screen, the face oval included, as on iOS and Android. The scrim steps aside, and the ring, the instruction band and the controls stay above the colour. The colours stay the fixed palette values, which partner branding does not change. The text bands keep 4.5:1. Hosts should set `viewport-fit=cover` in their viewport meta, so the colour also reaches under the notch and the home indicator.
|
|
43
|
+
- Updated dependencies [37a6305]
|
|
44
|
+
- Updated dependencies [ad0d148]
|
|
45
|
+
- Updated dependencies [960f295]
|
|
46
|
+
- Updated dependencies [ab329bc]
|
|
47
|
+
- Updated dependencies [ad0d148]
|
|
48
|
+
- Updated dependencies [ad0d148]
|
|
49
|
+
- Updated dependencies [f8eae5a]
|
|
50
|
+
- Updated dependencies [704e58a]
|
|
51
|
+
- Updated dependencies [59b610b]
|
|
52
|
+
- Updated dependencies [0804d05]
|
|
53
|
+
- Updated dependencies [ad0d148]
|
|
54
|
+
- Updated dependencies [f4840d7]
|
|
55
|
+
- Updated dependencies [2beba0c]
|
|
56
|
+
- Updated dependencies [5329680]
|
|
57
|
+
- Updated dependencies [c5b46c4]
|
|
58
|
+
- Updated dependencies [745caf9]
|
|
59
|
+
- Updated dependencies [1d7ee00]
|
|
60
|
+
- @sekyro/web@0.1.0-rc.22
|
|
61
|
+
|
|
3
62
|
## 0.1.0-rc.18
|
|
4
63
|
|
|
5
64
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -50,7 +50,8 @@ const verification = createVerification({ clientToken, locale: "ar" });
|
|
|
50
50
|
- **Verification mode** (`verification` set): the handle comes from
|
|
51
51
|
`verification.liveness()`; after `captured` the SDK uploads, attests and submits the
|
|
52
52
|
`liveness` + `face_match` checks and the verdict arrives via `onResult`
|
|
53
|
-
(`
|
|
53
|
+
(`verified | not_verified | review | retry | unavailable`; a `not_verified` result says why
|
|
54
|
+
in `reason` and the detail in `reasonCode`). On `retry` the SDK re-arms
|
|
54
55
|
the camera by itself (`rearm: 'auto'`) while the component shows the reason, the
|
|
55
56
|
retry coaching and the remaining attempts; with `createVerification({ rearm: 'manual' })`
|
|
56
57
|
the component instead offers a focused "Start a new attempt" button.
|
|
@@ -95,7 +96,7 @@ is ready at once.
|
|
|
95
96
|
|
|
96
97
|
`slots.intro(start, context)` replaces the whole screen. `context` is
|
|
97
98
|
`{ assets: "loading" | "ready" | "failed", retryAssets, permission, captureMode,
|
|
98
|
-
facing,
|
|
99
|
+
facing, voice }`; call `start` from your click handler:
|
|
99
100
|
it opens `context.facing` and unlocks audio inside the gesture (iOS). The `notice`
|
|
100
101
|
still renders above your intro.
|
|
101
102
|
|
|
@@ -103,10 +104,9 @@ still renders above your intro.
|
|
|
103
104
|
|
|
104
105
|
The session's flow decides it (`HostedSessionView.capture.mode`); no prop can
|
|
105
106
|
change it. A **self** capture (the default, and every capture-only mount) uses the
|
|
106
|
-
front camera only
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
until the clip records, and shows the agent's copy (`capture.assisted.*`); the voice
|
|
107
|
+
front camera only. An **assisted** capture (an agent films the person) uses the back
|
|
108
|
+
camera only, with an unmirrored preview, and shows the agent's copy
|
|
109
|
+
(`capture.assisted.*`); neither offers a front/back choice or flip. The voice
|
|
110
110
|
guidance still speaks to the person filmed. On a phone, a capture held sideways
|
|
111
111
|
waits with `fcv3.hold_upright` until the phone is upright.
|
|
112
112
|
|
|
@@ -195,7 +195,15 @@ Contrast rules the component relies on (checked for the default theme in
|
|
|
195
195
|
Keys follow the hosted message catalog (`capture.*`, `fcv2.err.*`, `fcv3.*`,
|
|
196
196
|
`reasons.*`, `errors.attestation_invalid`, `errors.network_error`, `common.retry`).
|
|
197
197
|
`hintStringKey(hint)` maps a `GateHint` code to its guidance key;
|
|
198
|
-
`reasonStringKey(
|
|
198
|
+
`reasonStringKey(reasonCode)` maps a result's `reasonCode` to its copy key.
|
|
199
|
+
|
|
200
|
+
The result page has one screen per end state, each with its own title and explanation
|
|
201
|
+
(`session.result.<screen>.*`, the line naming your organization from `native.result.<screen>`):
|
|
202
|
+
`verified`, `review`, `rejected`, `inconclusive` (no verdict could be reached), `unavailable`
|
|
203
|
+
(the check could not run), `expired` (the person left, nobody opened the link, you cancelled
|
|
204
|
+
it, or a newer session took it over), `policy` (a flow rule stopped it, with the rule's own
|
|
205
|
+
line), `cooldown` (this device may try again later) and, for a step only the phone apps can
|
|
206
|
+
run, `platform_unsupported`.
|
|
199
207
|
|
|
200
208
|
### Accessibility
|
|
201
209
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as v,b as I}from"./chunk-MM5EYC7B.js";import{a as x}from"./chunk-VRDPGOXM.js";import{g as S}from"./chunk-E7PG3JL4.js";import{a as p,b as y,d as N,k as C,p as b,q as w}from"./chunk-TWZZGFO5.js";import{a as k,l as _,o as R}from"./chunk-ONYT4GJ4.js";import{a as i}from"./chunk-2KED7D2Q.js";import{useState as A}from"react";var P={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};function U(e,r){switch(e.service){case"document":return r.t("method.document_photo");case"population_registry":return r.t("method.national_number");case"national_eid":{let a=e.nationalEid?.providerName;return a?r.t("method.national_eid",{provider:a}):r.t("method.national_eidGeneric")}default:return null}}i(U,"identityLabel");function Y(e,r){let[a,n]=A(!1),[l,m]=A(null);return{busy:a,error:l,run:i(u=>{n(!0),m(null),u().then(()=>n(!1),f=>{n(!1),m(e.t(x(f,e.strings))),r?.(f)})},"run")}}i(Y,"useChoiceAction");import{useContext as H,useId as L}from"react";import{Fragment as T,jsx as t,jsxs as s}from"react/jsx-runtime";function B(){let e=`sekyro-face-light-${L().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:[t("defs",{children:t("mask",{id:e,children:t("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),t("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),t("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),t("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),t("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${e})`})]})}i(B,"FaceMark");var O={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};function ee(e){if(!(e?.kind!=="liveness"||e.reason===void 0))return{reason:e.reason,...e.retakeHint!==void 0?{retakeHint:e.retakeHint}:{},attemptsRemaining:e.attemptsRemaining??0,attemptsExhausted:e.attemptsExhausted===!0}}i(ee,"faceIntroRetryOf");var F={"capture.retryFrontCamera.screenSide":"camera","capture.retryBackCamera.backSide":"camera","capture.retryUpright.vertical":"smartphone","capture.retryUpright.untilEnd":"smartphone","capture.retryRecording.cameraOn":"camera","capture.retryRecording.stay":"smartphone","capture.retryRecording.network":"smartphone","capture.retryDevice.screenRecording":"smartphone","capture.retryDevice.phone":"smartphone"};function te({start:e,context:r,tips:a,tipsTitle:n,human:l=!1,returning:m=!1,notice:d,retry:u}){let f=S(),{t:o}=f,g=u===void 0?"face":v(u.reason),h=g==="face"?null:I[g].tips,E=H(C)?.busy===!0;return s("section",{className:"sekyro-step",children:[t(B,{}),r.captureMode==="assisted"?t(y,{title:o("capture.assisted.heading"),lead:o("capture.assisted.lead")}):m?t(y,{title:o("returning.heading"),lead:o("returning.description")}):t(y,{title:o(l?"native.face.humanIntroTitle":"native.face.introTitle"),lead:o(l?"native.face.humanIntroLead":"native.face.introLead")}),u!==void 0?t(K,{retry:u,title:I[g].title}):null,n!==void 0&&h===null?t("p",{className:"sekyro-section-label",children:n}):null,t("ul",{className:"sekyro-tiprows",children:h!==null?h.map(c=>s("li",{children:[t(p,{name:F[c]??"face"}),o(c)]},c)):a!==void 0?a.map(c=>s("li",{children:[t(p,{name:O[c.id]??"face"}),c.text]},c.id)):s(T,{children:[s("li",{children:[t(p,{name:"light"}),o("capture.tips.light")]}),s("li",{children:[t(p,{name:"jGlasses"}),o("capture.tips.uncover")]}),s("li",{children:[t(p,{name:"smartphone"}),o("capture.tips.eyeLevel")]})]})}),d??null,d!==void 0?null:r.assets==="failed"?t(k,{kind:"secondary",full:!0,onClick:r.retryAssets,children:o("common.retry")}):null,d!==void 0?null:t(N,{children:s(k,{full:!0,disabled:r.assets!=="ready"||E,"aria-busy":r.assets==="loading"||void 0,onClick:e,children:[t(p,{name:"camera"}),o("capture.start")]})})]})}i(te,"FaceIntro");function K({retry:e,title:r}){let a=S(),n=e.retakeHint===void 0?null:_(e.retakeHint),l=e.reason==="probe_not_from_liveness"?"capture.retrySamePerson.message":R(e.reason);return s(b,{tone:"warning",children:[n!==null?t("span",{children:a.t(n)}):l!==null?t("span",{children:a.t(l)}):null,n===null?t("span",{children:a.t(r)}):null,t("span",{children:w(a,e.attemptsRemaining,e.attemptsExhausted)})]})}i(K,"RetryNotice");import{isInAppBrowser as $}from"@sekyro/web/client";function ie(e){return $(e)}i(ie,"isInAppBrowser");function se(e,r){let a=r??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(!/Android/i.test(a))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="https:"&&n.protocol!=="http:")return null;let l=n.protocol.slice(0,-1);return`intent://${n.host}${n.pathname}${n.search}#Intent;scheme=${l};action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(e)};end`}i(se,"androidBrowserIntent");export{P as a,U as b,Y as c,ee as d,te as e,ie as f,se as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as r,d as i}from"./chunk-TWZZGFO5.js";import{s as n}from"./chunk-ONYT4GJ4.js";import{a}from"./chunk-2KED7D2Q.js";import{jsx as t,jsxs as s}from"react/jsx-runtime";function g({tone:c,icon:l,busy:d,title:u,titleId:o,children:m,actions:e,live:y,testId:p}){let f=n();return s("section",{className:"sekyro-step sekyro-status",...o!==void 0?{"aria-labelledby":o}:{},...y?{role:"status","aria-live":"polite"}:{},"data-testid":p,children:[s("div",{className:"sekyro-status__body",children:[t("span",{className:`sekyro-tile sekyro-tile--${c}${d?" is-busy":""}`,"aria-hidden":"true",children:t(r,{name:l})}),s("div",{className:"sekyro-heading sekyro-status__text",children:[t("h2",{id:o,ref:f,tabIndex:-1,className:"sekyro-text-body",children:u}),m]})]}),e!=null&&e!==!1?t(i,{children:e}):null]})}a(g,"StatusPage");export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as n,b as r,d as c}from"./chunk-TWZZGFO5.js";import{a as t}from"./chunk-ONYT4GJ4.js";import{a as i}from"./chunk-2KED7D2Q.js";import{jsx as e,jsxs as a}from"react/jsx-runtime";function k({title:s,lead:l,cameraLabel:p,uploadLabel:d,notice:m,testId:o,onCamera:u,onUpload:f,onPhone:g=!1}){return a("section",{className:"sekyro-step","data-testid":o,children:[e(r,{title:s,lead:l}),m,a(c,{children:[a(t,{full:!0,onClick:u,"data-testid":`${o}-camera`,children:[e(n,{name:g?"smartphone":"camera"}),p]}),e(t,{full:!0,kind:"ghost",onClick:f,"data-testid":`${o}-upload`,children:d})]})]})}i(k,"PhotoSourceView");export{k as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as d,b as u}from"./chunk-TLMGY7AK.js";import{d as s,g as c,h as p}from"./chunk-ONYT4GJ4.js";import{a as i}from"./chunk-2KED7D2Q.js";var l={"session.title":"تحقّق من هويتك","session.requestedBy":"تطلب {orgName} منك التحقق من هويتك","returning.requestedBy":"تطلب {orgName} منك تأكيد أنك أنت","consent.notice":"بإكمال عملية التحقق من الهوية، فإنك توافق على معالجة بياناتك الشخصية والبيومترية للتحقق من هويتك.","consent.details":"التفاصيل","consent.terms.intro":"تتحقق Sekyro AI من هويتك نيابةً عن الجهة التي أرسلت إليك هذا الرابط. قبل البدء، اطّلع على كيفية استخدام بياناتك.","consent.terms.data":"أثناء التحقق، تجمع Sekyro AI صور وثيقة هويتك، ومقطع فيديو ذاتيًا قصيرًا، وصورة ذاتية، ورقم وثيقة هويتك.","consent.terms.processing":"تُستخدم هذه البيانات للتحقق من هويتك فقط: يُقارَن وجهك بالصورة الموجودة على وثيقتك، ويُطابَق رقمك مع سجلات الجهة المُصدِرة متى أمكن ذلك. وقد يفحص بعض الخطوات مراجع بشري مخوَّل.","consent.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.modeSwitch.toSelfPhoto":"ألتقط الصورة بنفسي","capture.modeSwitch.toAssistedLabelPhoto":"التبديل إلى التصوير بمساعدة شخص آخر يحمل الهاتف ويلتقط صورتك","capture.modeSwitch.toSelfLabelPhoto":"التبديل إلى التصوير الذاتي والتقاط صورتك بالكاميرا الأمامية","reasons.camera_unavailable":"يتطلب هذا التحقق كاميرا. عُد إلى {org} للمتابعة بطريقة أخرى.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"8 أرقام","otp.send":"إرسال الرمز","otp.channelSms":"رسالة نصية","otp.channelWhatsapp":"واتساب","otp.verifyTitle":"أدخل الرمز","otp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك لإتمام التحقّق من رقمك","otp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {number} عبر {channel}","otp.codeLabel":"رمز التحقّق","otp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك","otp.verify":"تحقّق من الرمز","otp.resend":"إعادة إرسال الرمز","otp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","otp.expiresIn":"ينتهي الرمز خلال {time}","otp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","otp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","otp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","otp.reason_otp_send_failed":"تعذّر إرسال الرمز. أعد المحاولة بعد قليل","otp.chooseChannel":"كيف تريد أن تتلقّى رمزك؟","otp.sendBy":"إرسال الرمز عبر {channel}","otp.resendBy":"إعادة الإرسال عبر {channel}","otp.sending":"جارٍ إرسال الرمز عبر {channel}","otp.reason_otp_channel_unavailable":"هذه الوسيلة غير متاحة. اختر طريقة أخرى لتلقّي رمزك","otp.reason_otp_destination_not_allowed":"لا يمكننا إرسال الرموز إلى أرقام هذا البلد. أدخل رقمًا آخر","otp.reason_otp_destination_unknown":"تعذّر التعرّف على هذا الرقم. تحقّق منه وأعد إدخاله مع رمز البلد","otp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","otp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","otp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.phonePlaceholderGeneric":"أدخل رقم هاتفك بدون رمز البلد","otp.countryLabel":"البلد","otp.phoneLengthError":"تحقق من الرقم: يجب أن يكون عدد أرقامه {digits}.","otp.or":"أو","otp.otherCountry":"بلد آخر","otp.reason_otp_number_invalid":"لا يبدو هذا الرقم كاملاً لبلده. تحقق منه ثم أعد المحاولة.","otp.reason_otp_number_not_mobile":"أدخل رقم هاتف محمول. لا يمكن إرسال الرموز إلى خط أرضي.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","population.reason_id_number_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.reason_registry_record_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_registry_record_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","doc.ageStepUp":"لم نتمكّن من التأكد من عمرك من الصورة الذاتية. تابع باستخدام وثيقة هوية.","reasons.underage_estimated":"هذه الخدمة مخصّصة لمن بلغوا الحد الأدنى للسن المطلوب.","reasons.starter_credit_claimed":"سبق أن منح تحققك رصيدًا ابتدائيًا لمؤسسة أخرى. يُمنح هذا الرصيد مرة واحدة لكل شخص.","reasons.blocked_by_org":"لا يمكن متابعة هذا التحقق. تواصل مع الجهة التي أرسلت لك هذا الرابط.","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","handoff.lead.document":"التقط صورة وثيقتك بهاتفك","handoff.lead.portrait":"التقط صورتك الشخصية بهاتفك","capture.source.phone":"المتابعة على هاتفي","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيراجع شخص عملية التحقق الخاصة بك. ستتواصل معك الجهة التي أرسلت إليك هذا الرابط.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"لم تؤكد عمليات التحقق هويتك. تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن هذا خطأ.","session.result.expired.title":"انتهت صلاحية هذا الرابط","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلت إليك هذا الرابط.","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.verified.title":"تم التحقق من هويتك","session.result.verified.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.inconclusive.title":"تعذّر علينا تأكيد هويتك هذه المرة","session.result.inconclusive.description":"لم تكن الصور واضحة بما يكفي لاتخاذ قرار. اطلب رابطًا جديدًا من الجهة التي أرسلت إليك هذا الرابط، وحاول في إضاءة جيدة مع إمساك الهاتف بشكل مستقيم.","session.result.unavailable.title":"لم تكن خدمة التحقق متاحة","session.result.unavailable.description":"كانت خدمتنا غير متاحة عند محاولتك. اطلب رابطًا جديدًا من الجهة التي أرسلت إليك هذا الرابط.","session.result.policy.title":"توقّف التحقق","session.result.policy.description":"لا يمكن للجهة التي أرسلت إليك هذا الرابط التحقق منك بهذه الوثيقة أو من هذا الموقع.","session.result.cooldown.title":"حاول لاحقًا","session.result.cooldown.description":"يحتاج هذا الجهاز إلى استراحة قصيرة قبل عملية تحقق أخرى.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","capture.retrySamePerson.message":"يجب أن يظهر الشخص نفسه أمام الكاميرا من البداية إلى النهاية. سجّل الفيديو مرة أخرى","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة الصور…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"تتطلب هذه الخطوة التطبيق","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","consent.termsTitle":"كيف تُستخدم بياناتك","leave.title":"مغادرة التحقق؟","leave.body":"إذا غادرت الآن، فلن يكتمل التحقق.","leave.confirm":"مغادرة","leave.stay":"البقاء","otp.changeNumber":"تغيير الرقم","otp.backToCode":"العودة إلى الرمز","otp.reason_otp_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","reasons.otp_resend_limit":"تم بلوغ الحد الأقصى لرموز التحقق في هذه الجلسة","common.back":"رجوع","capture.assisted.heading":"صوّر وجه الشخص","returning.heading":"أكّد أنك أنت","capture.checkingTitle":"جارٍ التحقق من هويتك…","method.heading":"كيف تريد التحقق من هويتك؟","sandbox.otpHint":"جلسة اختبار: لم يُرسَل أي شيء. أدخل الرمز {code}.","sandbox.skipCapture":"التخطي باستخدام بيانات الاختبار","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.codeInvalid":"أدخل الرمز المكوّن من 6 أرقام","doc.countryTitle":"اختر البلد المُصدِر","doc.countryLabel":"بلد الإصدار","doc.countrySearch":"ابحث عن بلد","doc.noCountryMatch":"لا يوجد بلد يطابق بحثك","doc.type.carte_identite":"بطاقة الهوية","doc.type.residence_permit":"بطاقة الإقامة","doc.type.passport":"جواز السفر","doc.showSide":"اعرض أحد وجهي البطاقة","doc.showPage":"اعرض صفحة الصورة","doc.flip":"اقلب البطاقة","doc.sameFace":"الوجه نفسه · اقلب البطاقة","doc.reaskRecto":"اعرض الوجه الأمامي مرة أخرى","doc.reread":"تعذّرت قراءة هذا الوجه · ثبّت البطاقة في إضاءة جيدة","doc.photoTaken":"تم التقاط الصورة","doc.frontCaptured":"تم التقاط الوجه الأمامي","doc.backCaptured":"تم التقاط الوجه الخلفي","doc.pageCaptured":"تم التقاط الصفحة","doc.progressFront":"الأمام","doc.progressBack":"الخلف","doc.progressPage":"صفحة الصورة","doc.shutter":"التقط الصورة","doc.torchOn":"شغّل الضوء","doc.torchOff":"أطفئ الضوء","result.platform_unsupported":"يتطلب هذا التحقق تطبيقًا على الهاتف.","unsupported.title":"يلزم التحديث","unsupported.description":"تتطلب هذه الخطوة إصدارًا أحدث من هذه الصفحة. تواصل مع {org}.","shell.subtitle":"التحقق من الهوية","shell.subtitleHuman":"التحقق البشري","shell.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","native.face.humanIntroTitle":"أكّد أنك شخص حقيقي","native.face.humanIntroLead":"لقطة قصيرة واحدة: انظر إلى الشاشة فقط.","native.doc.holdIt":"احتفظ بوثيقتك في متناول يدك.","native.doc.changeCountry":"تغيير البلد","native.result.review":"سيراجع شخص عملية التحقق الخاصة بك. ستتواصل معك {org}.","native.result.rejected":"لم تؤكد عمليات التحقق هويتك. تواصل مع {org} إذا كنت تعتقد أن هذا خطأ.","native.result.expired":"اطلب رابطًا جديدًا من {org}.","native.result.copied":"تم النسخ","native.result.back":"العودة إلى {org}","native.result.verified":"اكتمل التحقق. يمكنك العودة إلى {org}.","native.result.inconclusive":"لم تكن الصور واضحة بما يكفي لاتخاذ قرار. اطلب رابطًا جديدًا من {org}، وحاول في إضاءة جيدة مع إمساك الهاتف بشكل مستقيم.","native.result.unavailable":"كانت خدمتنا غير متاحة عند محاولتك. اطلب رابطًا جديدًا من {org}.","native.result.policy":"لا يمكن التحقق منك لدى {org} بهذه الوثيقة أو من هذا الموقع."};var h={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","capture.modeSwitch.toSelfPhoto":"I take the photo myself","capture.modeSwitch.toAssistedLabelPhoto":"Switch to assisted capture: another person holds the phone and takes your photo","capture.modeSwitch.toSelfLabelPhoto":"Switch to self capture: you take your own photo with the front camera","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.sending":"Sending your code by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","otp.reason_payment_method_required":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_spend_cap_reached":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_insufficient_balance":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.phonePlaceholderGeneric":"Type your phone number without the prefix","otp.countryLabel":"Country","otp.phoneLengthError":"Check the number: it should have {digits} digits.","otp.or":"or","otp.otherCountry":"Another country","otp.reason_otp_number_invalid":"This number does not look complete for its country. Check it and try again.","otp.reason_otp_number_not_mobile":"Enter a mobile number. Codes cannot reach a landline.","session.steps.population.title":"Enter your ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","population.reason_id_number_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.reason_registry_record_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_registry_record_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Choose your document","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","doc.ageStepUp":"We could not confirm your age from the selfie. Continue with an ID document.","reasons.underage_estimated":"This service is for people who have reached its minimum age.","reasons.starter_credit_claimed":"Your verification already earned a starting credit for another organization. It is given once per person.","reasons.blocked_by_org":"This verification can't continue. Contact the organization that sent you this link.","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Processing your checks","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","handoff.lead.document":"Take the photo of your document with your phone","handoff.lead.portrait":"Take your ID photo with your phone","capture.source.phone":"Continue on my phone","session.processing.age_estimation.title":"Checking your age","session.processing.age_estimation.description":"This takes a few seconds","session.result.review.title":"Under review","session.result.review.description":"A person will check your verification. You will hear from the organization that gave you this link.","session.result.rejected.title":"Identity not verified","session.result.rejected.description":"The checks did not confirm your identity. Contact the organization that sent you this link if you think this is wrong.","session.result.expired.title":"This link has expired","session.result.expired.description":"Ask the organization that sent you this link for a new one.","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","session.result.verified.title":"Your identity is verified","session.result.verified.description":"You are done. You can close this page","session.result.inconclusive.title":"We could not confirm your identity this time","session.result.inconclusive.description":"The captures were not clear enough to decide. Ask the organization that sent you this link for a new one and try in good light, holding the phone upright.","session.result.unavailable.title":"Verification was not available","session.result.unavailable.description":"Our service was unavailable when you tried. Ask the organization that sent you this link for a new one.","session.result.policy.title":"Verification stopped","session.result.policy.description":"The organization that sent you this link cannot verify you with this document or from this location.","session.result.cooldown.title":"Try again later","session.result.cooldown.description":"This device needs a short pause before another verification.","session.result.deviceStop":"We couldn't continue on this device. Try again on another device or browser.","result.referenceLabel":"Reference code","capture.retrySamePerson.message":"The same person needs to be on camera from start to finish. Record the video again","common.loading":"Loading your session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photos…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This step needs the app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","consent.termsTitle":"How your data is used","leave.title":"Leave verification?","leave.body":"If you leave now, your verification will not be finished.","leave.confirm":"Leave","leave.stay":"Stay","otp.changeNumber":"Change number","otp.backToCode":"Back to code","otp.reason_otp_resend_limit":"You can't get more codes. Enter the last code you received","reasons.otp_resend_limit":"The maximum number of verification codes for this session was reached","common.back":"Back","capture.assisted.heading":"Film the person's face","returning.heading":"Confirm it's you","capture.checkingTitle":"Checking your identity…","method.heading":"How do you want to verify?","sandbox.otpHint":"Test session: nothing was sent. Enter the code {code}.","sandbox.skipCapture":"Skip with test data","population.recheck.title":"Check your ID number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Choose the issuing country","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you're human","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.review":"A person will check your verification. You will hear from {org}.","native.result.rejected":"The checks did not confirm your identity. Contact {org} if you think this is wrong.","native.result.expired":"Ask {org} for a new link.","native.result.copied":"Copied","native.result.back":"Back to {org}","native.result.verified":"Your verification is complete. You can go back to {org}.","native.result.inconclusive":"The captures were not clear enough to decide. Ask {org} for a new link and try in good light, holding the phone upright.","native.result.unavailable":"Our service was unavailable when you tried. Ask {org} for a new link.","native.result.policy":"{org} cannot verify you with this document or from this location."};var m={"session.title":"Vérifiez votre identité","session.requestedBy":"{orgName} vous demande de vérifier votre identité","returning.requestedBy":"{orgName} vous demande de confirmer qu'il s'agit bien de vous","consent.notice":"En poursuivant la vérification d'identité, vous consentez au traitement de vos données personnelles et biométriques afin de vérifier votre identité.","consent.details":"En savoir plus","consent.terms.intro":"Sekyro AI vérifie votre identité pour le compte de l'organisme qui vous a envoyé ce lien. Avant de commencer, consultez la façon dont vos données sont utilisées.","consent.terms.data":"Pendant la vérification, Sekyro AI recueille les photos de votre pièce d'identité, une courte vidéo selfie, une photo selfie et le numéro de votre pièce d'identité.","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre numéro est vérifié auprès des registres de l'autorité émettrice lorsque c'est possible. Certaines étapes peuvent être examinées par un examinateur humain habilité.","consent.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.modeSwitch.toSelfPhoto":"Je prends la photo moi-même","capture.modeSwitch.toAssistedLabelPhoto":"Passer à la capture assistée : une autre personne tient le téléphone et vous prend en photo","capture.modeSwitch.toSelfLabelPhoto":"Passer à la capture seule : vous prenez votre photo avec la caméra avant","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.sending":"Envoi du code par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","otp.reason_payment_method_required":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_spend_cap_reached":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_insufficient_balance":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.phonePlaceholderGeneric":"Saisissez votre numéro sans l'indicatif","otp.countryLabel":"Pays","otp.phoneLengthError":"Vérifiez le numéro : il doit comporter {digits} chiffres.","otp.or":"ou","otp.otherCountry":"Autre pays","otp.reason_otp_number_invalid":"Ce numéro ne semble pas complet pour son pays. Vérifiez-le et réessayez.","otp.reason_otp_number_not_mobile":"Saisissez un numéro de mobile. Les codes ne peuvent pas atteindre une ligne fixe.","session.steps.population.title":"Saisissez votre numéro","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Consultation du registre","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","population.reason_id_number_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.reason_registry_record_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_registry_record_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Choisissez votre document","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","doc.ageStepUp":"Nous n'avons pas pu confirmer votre âge à partir du selfie. Continuez avec une pièce d'identité.","reasons.underage_estimated":"Ce service est réservé aux personnes qui ont atteint l'âge minimum requis.","reasons.starter_credit_claimed":"Votre vérification a déjà donné un crédit de départ à une autre organisation. Il n’est accordé qu’une fois par personne.","reasons.blocked_by_org":"Cette vérification ne peut pas continuer. Contactez l'organisation qui vous a envoyé ce lien.","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Traitement en cours","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur mobile","handoff.lead.document":"Prenez la photo de votre document avec votre téléphone","handoff.lead.portrait":"Prenez votre photo d'identité avec votre téléphone","capture.source.phone":"Continuer sur mon téléphone","session.processing.age_estimation.title":"Vérification de votre âge","session.processing.age_estimation.description":"Cela prend quelques secondes","session.result.review.title":"En cours d'examen","session.result.review.description":"Une personne va examiner votre vérification. L'organisme qui vous a donné ce lien vous tiendra informé.","session.result.rejected.title":"Identité non vérifiée","session.result.rejected.description":"Les contrôles n'ont pas confirmé votre identité. Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur.","session.result.expired.title":"Ce lien a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui vous a envoyé celui-ci.","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","session.result.verified.title":"Identité vérifiée","session.result.verified.description":"C'est terminé. Vous pouvez fermer cette page","session.result.inconclusive.title":"Nous n'avons pas pu confirmer votre identité cette fois","session.result.inconclusive.description":"Les captures n'étaient pas assez nettes pour décider. Demandez un nouveau lien à l'organisme qui vous a envoyé celui-ci et réessayez dans un endroit bien éclairé, en tenant le téléphone droit.","session.result.unavailable.title":"La vérification n'était pas disponible","session.result.unavailable.description":"Notre service était indisponible au moment de votre essai. Demandez un nouveau lien à l'organisme qui vous a envoyé celui-ci.","session.result.policy.title":"Vérification interrompue","session.result.policy.description":"L'organisme qui vous a envoyé ce lien ne peut pas vous vérifier avec ce document ou depuis cet endroit.","session.result.cooldown.title":"Réessayez plus tard","session.result.cooldown.description":"Cet appareil a besoin d'une courte pause avant une nouvelle vérification.","session.result.deviceStop":"Impossible de continuer sur cet appareil. Réessayez sur un autre appareil ou navigateur.","result.referenceLabel":"Code de référence","capture.retrySamePerson.message":"La même personne doit être devant la caméra du début à la fin. Enregistrez à nouveau la vidéo","common.loading":"Chargement…","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification en cours…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison des photos…","portrait.reviewTitle":"Vérification de la photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Il faut l'application","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","consent.termsTitle":"Utilisation de vos données","leave.title":"Quitter la vérification ?","leave.body":"Si vous quittez maintenant, votre vérification ne sera pas terminée.","leave.confirm":"Quitter","leave.stay":"Rester","otp.changeNumber":"Changer de numéro","otp.backToCode":"Retour au code","otp.reason_otp_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","reasons.otp_resend_limit":"Le nombre maximal de codes de vérification pour cette session a été atteint","common.back":"Retour","capture.assisted.heading":"Filmez la personne","returning.heading":"Confirmez que c'est vous","capture.checkingTitle":"Vérification en cours…","method.heading":"Choisissez une méthode","sandbox.otpHint":"Session de test : rien n'a été envoyé. Saisissez le code {code}.","sandbox.skipCapture":"Passer avec des données de test","population.recheck.title":"Vérifiez votre numéro","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Choisissez le pays","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez votre présence","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.review":"Une personne va examiner votre vérification. {org} vous tiendra informé.","native.result.rejected":"Les contrôles n'ont pas confirmé votre identité. Contactez {org} si vous pensez qu'il s'agit d'une erreur.","native.result.expired":"Demandez un nouveau lien à {org}.","native.result.copied":"Copiée","native.result.back":"Revenir à {org}","native.result.verified":"Votre vérification est terminée. Vous pouvez retourner à {org}.","native.result.inconclusive":"Les captures n'étaient pas assez nettes pour décider. Demandez un nouveau lien à {org} et réessayez dans un endroit bien éclairé, en tenant le téléphone droit.","native.result.unavailable":"Notre service était indisponible au moment de votre essai. Demandez un nouveau lien à {org}.","native.result.policy":"{org} ne peut pas vous vérifier avec ce document ou depuis cet endroit."};import{createContext as y,useContext as _,useMemo as v}from"react";import{jsx as C}from"react/jsx-runtime";var b={en:h,fr:m,ar:l};function k(o,e){return e===void 0?o:o.replace(/\{(\w+)\}/g,(t,r)=>Object.hasOwn(e,r)?String(e[r]):t)}i(k,"formatTemplate");function z(o,e){let t=c(o),r={...d(t),...b[t],...p(o)};if(e!==void 0){for(let n of Object.keys(e)){let a=e[n];typeof a=="string"&&(r[n]=a)}s(r,e)}return r}i(z,"resolveSekyroStrings");var g=y(null);function f(o,e){let t=z(o,e);return{locale:o,strings:t,t:i((r,n)=>k(t[r]??"",n),"t")}}i(f,"build");function q({locale:o,strings:e,children:t}){let r=u(o),n=v(()=>f(o,e),[o,e,r]);return r?C(g.Provider,{value:n,children:t}):null}i(q,"StepI18nProvider");function A(o,e){let t=_(g);return v(()=>t!==null&&o===void 0&&e===void 0?t:f(o??t?.locale??"en",e),[t,o,e])}i(A,"useStepI18n");export{l as a,h as b,m as c,k as d,z as e,q as f,A as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as b}from"./chunk-DIE7UVV7.js";import{d as I}from"./chunk-MX5SNIDY.js";import{a as _,b as P,d as S,p as x,q as C}from"./chunk-TWZZGFO5.js";import{a as f}from"./chunk-ONYT4GJ4.js";import{a as s}from"./chunk-2KED7D2Q.js";import{useRef as E,useState as k}from"react";var N={"portrait.source.title":"كيف تريد إضافة صورتك الشخصية؟","portrait.source.description":"التقط صورة جديدة بالكاميرا، أو ارفع صورة حديثة من هذا الجهاز.","portrait.source.camera":"التقاط صورة","portrait.source.upload":"رفع صورة","portrait.source.uploadInstead":"رفع صورة بدلًا من ذلك","portrait.upload.title":"ارفع صورتك الشخصية","portrait.upload.hint":"صورة حديثة لوجهك، تنظر فيها مباشرة إلى الكاميرا، أمام جدار فاتح وبلون واحد.","portrait.upload.choose":"اختيار صورة","portrait.upload.unsupported":"اختر صورة بصيغة JPEG أو PNG أو HEIC.","portrait.upload.failed":"تعذّر إرسال هذه الصورة. حاول مرة أخرى.","portrait.review.title":"تحقّق من صورتك المعدّلة","portrait.review.description":"عدّلنا صورتك لتطابق قواعد صور الهوية. لم نغيّر وجهك.","portrait.review.original":"صورتك","portrait.review.fixed":"الصورة المعدّلة","portrait.review.fixesTitle":"ما الذي غيّرناه","portrait.review.accept":"استخدام هذه الصورة","portrait.review.retake":"إعادة الالتقاط","portrait.review.uploadAnother":"رفع صورة أخرى","portrait.fixes.crop":"قُصّت","portrait.fixes.scale":"غُيّر حجمها","portrait.fixes.straighten":"عُدّل ميلها","portrait.fixes.background":"استُبدلت الخلفية","portrait.fixes.exposure":"عُدّل السطوع","portrait.fixes.white_balance":"وُزنت الألوان","reasons.portrait_morph_suspected":"لا يمكن استخدام هذه الصورة. التقط صورة جديدة للشخص.","reasons.portrait_reference_mismatch":"لا تطابق الصورة المرجع. التقط صورة جديدة للشخص.","reasons.portrait_declined_fix":"التقط صورة أخرى أو ارفعها."};var g={"portrait.source.title":"How do you want to add your ID photo?","portrait.source.description":"Take a new photo with the camera, or upload a recent photo from this device.","portrait.source.camera":"Take a photo","portrait.source.upload":"Upload a photo","portrait.source.uploadInstead":"Upload a photo instead","portrait.upload.title":"Upload your ID photo","portrait.upload.hint":"A recent photo of your face, looking straight at the camera, in front of a plain, light wall.","portrait.upload.choose":"Choose a photo","portrait.upload.unsupported":"Choose a JPEG, PNG or HEIC photo.","portrait.upload.failed":"We could not send this photo. Try again.","portrait.review.title":"Check your adjusted photo","portrait.review.description":"We adjusted your photo to meet the ID photo rules. Your face was not changed.","portrait.review.original":"Your photo","portrait.review.fixed":"Adjusted photo","portrait.review.fixesTitle":"What we changed","portrait.review.accept":"Use this photo","portrait.review.retake":"Take another","portrait.review.uploadAnother":"Upload another","portrait.fixes.crop":"Cropped","portrait.fixes.scale":"Resized","portrait.fixes.straighten":"Straightened","portrait.fixes.background":"Background replaced","portrait.fixes.exposure":"Brightness adjusted","portrait.fixes.white_balance":"Colours balanced","reasons.portrait_morph_suspected":"This photo cannot be used. Take a new photo of the person.","reasons.portrait_reference_mismatch":"The photo does not match the reference. Take a new photo of the person.","reasons.portrait_declined_fix":"Take or upload another photo."};var T={"portrait.source.title":"Comment voulez-vous ajouter votre photo d'identité ?","portrait.source.description":"Prenez une nouvelle photo avec la caméra, ou importez une photo récente depuis cet appareil.","portrait.source.camera":"Prendre une photo","portrait.source.upload":"Importer une photo","portrait.source.uploadInstead":"Importer une photo à la place","portrait.upload.title":"Importez votre photo d'identité","portrait.upload.hint":"Une photo récente de votre visage, de face, devant un mur clair et uni.","portrait.upload.choose":"Choisir une photo","portrait.upload.unsupported":"Choisissez une photo JPEG, PNG ou HEIC.","portrait.upload.failed":"Nous n'avons pas pu envoyer cette photo. Réessayez.","portrait.review.title":"Vérifiez votre photo ajustée","portrait.review.description":"Nous avons ajusté votre photo pour qu'elle respecte les règles des photos d'identité. Votre visage n'a pas été modifié.","portrait.review.original":"Votre photo","portrait.review.fixed":"Photo ajustée","portrait.review.fixesTitle":"Ce que nous avons modifié","portrait.review.accept":"Utiliser cette photo","portrait.review.retake":"Reprendre","portrait.review.uploadAnother":"Importer une autre","portrait.fixes.crop":"Recadrée","portrait.fixes.scale":"Redimensionnée","portrait.fixes.straighten":"Redressée","portrait.fixes.background":"Fond remplacé","portrait.fixes.exposure":"Luminosité ajustée","portrait.fixes.white_balance":"Couleurs équilibrées","reasons.portrait_morph_suspected":"Cette photo ne peut pas être utilisée. Prenez une nouvelle photo de la personne.","reasons.portrait_reference_mismatch":"La photo ne correspond pas à la référence. Prenez une nouvelle photo de la personne.","reasons.portrait_declined_fix":"Prenez ou importez une autre photo."};import{jsx as t,jsxs as n}from"react/jsx-runtime";var H={en:g,fr:T,ar:N,es:g,pt:g,de:g},V="image/jpeg,image/png,image/heic,image/heif";function v(r){let o=r.strings,i=H[r.locale];return e=>o[e]??i[e]??""}s(v,"portraitCopy");function R({step:r,i18n:o}){if(r.reason===void 0||r.reason==="portrait_fix_review")return null;let i=v(o)(`reasons.${r.reason}`)||o.t("portrait.retryTitle");return n(x,{tone:"warning",children:[t("span",{children:i}),t("span",{children:C(o,r.attemptsRemaining,r.attemptsExhausted)})]})}s(R,"ReasonNotice");function z({step:r,i18n:o,onCamera:i,onUpload:e}){let a=v(o),p=r.photo?.cameraOnPhone===!0;return t(b,{testId:"sekyro-portrait-source",title:a("portrait.source.title"),lead:a("portrait.source.description"),cameraLabel:p?o.t("capture.source.phone"):a("portrait.source.camera"),onPhone:p,uploadLabel:a("portrait.source.upload"),notice:t(R,{step:r,i18n:o}),onCamera:i,onUpload:e})}s(z,"PortraitSourceView");function A({step:r,i18n:o,onCamera:i}){let e=v(o),a=E(null),[p,h]=k("idle"),u=p==="sending",l=r.photo?.uploadOffered===!0,w=s(async c=>{let y=c.currentTarget.files?.[0];if(c.currentTarget.value="",y!==void 0){h("sending");try{await r.uploadPortrait(y),h("idle")}catch(m){h(m instanceof TypeError&&m.message==="unsupported_file"?"unsupported":"failed")}}},"onFile");return n("section",{className:"sekyro-step","data-testid":"sekyro-portrait-upload-screen",children:[t(P,{title:e("portrait.upload.title"),lead:e("portrait.upload.hint")}),p==="idle"||p==="sending"?t(R,{step:r,i18n:o}):null,p==="unsupported"||p==="failed"?t(x,{tone:"warning",children:t("span",{children:e(p==="unsupported"?"portrait.upload.unsupported":"portrait.upload.failed")})}):null,u?t("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:o.t("portrait.uploading")}):null,t("input",{ref:a,type:"file",accept:V,hidden:!0,"data-testid":"sekyro-portrait-upload","aria-label":e("portrait.upload.title"),onChange:c=>{w(c)}}),n(S,{children:[t(f,{full:!0,onClick:()=>a.current?.click(),disabled:u||!l||r.attemptsExhausted,children:e("portrait.upload.choose")}),i!==void 0?n(f,{full:!0,kind:"ghost",onClick:i,disabled:u,children:[t(_,{name:"camera"}),e("portrait.source.camera")]}):null]})]})}s(A,"PortraitUploadView");function j({step:r,i18n:o,onDeclined:i}){let e=v(o),[a,p]=k(!1),[h,u]=k(!1),l=r.pendingFix;if(l==null)return null;let w=s(async d=>{p(!0),u(!1);try{await r.confirmFix(d),d||i?.()}catch{u(!0)}finally{p(!1)}},"answer"),c=r.photo?.source==="upload"?e("portrait.review.uploadAnother"):e("portrait.review.retake"),y=s(d=>e(`portrait.fixes.${d}`)||d,"fixName"),m=e("portrait.review.original"),U=e("portrait.review.fixed");return n("section",{className:"sekyro-step","data-testid":"sekyro-portrait-review",children:[t(P,{title:e("portrait.review.title"),lead:e("portrait.review.description")}),n("div",{className:"sekyro-portrait-pair",children:[n("figure",{className:"sekyro-portrait-pair__item",children:[t("img",{src:l.originalUrl,alt:m}),t("figcaption",{className:"sekyro-text-muted",children:m})]}),n("figure",{className:"sekyro-portrait-pair__item",children:[t("img",{src:l.fixedUrl,alt:U}),t("figcaption",{className:"sekyro-text-muted",children:U})]})]}),l.fixes.length>0?n("div",{className:"sekyro-stack sekyro-stack--1",children:[t("p",{className:"sekyro-text-body",children:e("portrait.review.fixesTitle")}),t("ul",{className:"sekyro-portrait-fixes","data-testid":"sekyro-portrait-fixes",children:l.fixes.map(d=>t("li",{children:y(d)},d))})]}):null,h?t(x,{tone:"danger",children:t("span",{children:o.t("errors.network_error")})}):null,n(S,{children:[t(f,{full:!0,onClick:()=>{w(!0)},disabled:a,"data-testid":"sekyro-portrait-accept",children:e("portrait.review.accept")}),t(f,{full:!0,kind:"ghost",onClick:()=>{w(!1)},disabled:a,"data-testid":"sekyro-portrait-decline",children:c})]})]})}s(j,"PortraitReviewView");function Q({screen:r,step:o,i18n:i,onCamera:e,onUpload:a,onDeclined:p}){return r==="phone"?t(I,{i18n:i,lead:i.t("handoff.lead.portrait"),refresh:o.refresh,actions:t(f,{kind:"ghost",full:!0,onClick:a,children:v(i)("portrait.source.upload")})}):r==="review"?t(j,{step:o,i18n:i,onDeclined:p}):r==="upload"?t(A,{step:o,i18n:i,...e!==void 0?{onCamera:e}:{}}):t(z,{step:o,i18n:i,onCamera:e??a,onUpload:a})}s(Q,"PortraitScreens");export{v as a,z as b,A as c,j as d,Q as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as on,c as an}from"./chunk-YZ5ZR6UR.js";import{b as sn,c as We}from"./chunk-7MMT5M4E.js";import{a as tn,b as nn,c as rn,d as z}from"./chunk-TLMGY7AK.js";import{a as F,k as Zt,l as Wt,n as Qt,o as Jt,p as Xt,q as en,r as q,s as Qe}from"./chunk-ONYT4GJ4.js";import{a as n}from"./chunk-2KED7D2Q.js";import{useId as vr}from"react";import{Fragment as hr,jsx as M,jsxs as ee}from"react/jsx-runtime";function te({className:e,children:t}){return M("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}n(te,"Svg");var yt="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";function cn(e){return ee(te,{...e,children:[M("circle",{cx:"12",cy:"12",r:"4"}),M("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}n(cn,"SunIcon");function ln(e){return ee(te,{...e,children:[M("circle",{cx:"12",cy:"12",r:"9"}),M("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}n(ln,"FaceUncoveredIcon");function un(e){return ee(te,{...e,children:[M("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),M("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),M("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}n(un,"PhoneEyeLevelIcon");function dn(e){return ee(te,{...e,children:[M("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),M("circle",{cx:"12",cy:"12",r:"2.8"})]})}n(dn,"LookStraightIcon");function pn(e){return ee(te,{...e,children:[M("path",{d:yt}),M("path",{d:"M9 13l2 2 4-4"})]})}n(pn,"CameraCheckIcon");function fn(e){return ee(te,{...e,children:[M("path",{d:yt}),M("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}n(fn,"CameraAskIcon");function mn(e){return ee(te,{...e,children:[M("path",{d:yt}),M("path",{d:"M3 3l18 18"})]})}n(mn,"CameraBlockedIcon");function Ve({off:e,className:t}){return ee(te,{className:t,children:[M("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?M("path",{d:"M4 4l16 16"}):ee(hr,{children:[M("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),M("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}n(Ve,"SpeakerIcon");function yn(e){return M(te,{...e,children:M("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}n(yn,"CheckIcon");function gn(e){return ee(te,{className:e.className??"sekyro-spinner",children:[M("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),M("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}n(gn,"SpinnerIcon");import{jsx as pe,jsxs as hn}from"react/jsx-runtime";var Je=["light","uncover","eyeLevel","straight"],Cr={light:{key:"capture.tips.light",icon:n(()=>pe(cn,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:n(()=>pe(ln,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:n(()=>pe(un,{}),"icon")},straight:{key:"capture.tips.straight",icon:n(()=>pe(dn,{}),"icon")}};function vn({tips:e}){let t=z(),o=vr();return e.length===0?null:hn("section",{className:"sekyro-tips","aria-labelledby":o,"data-testid":"sekyro-tips",children:[pe("p",{className:"sekyro-tips__title",id:o,children:t("capture.tips.title")}),pe("ul",{className:"sekyro-tips__list",children:e.map(r=>{let s=typeof r=="string"?Cr[r]:void 0,c=typeof r=="string"?r:r.id,i=s!==void 0?s.icon():typeof r=="string"?void 0:r.icon,u=s!==void 0?t(s.key):typeof r=="string"?r:r.text;return hn("li",{className:"sekyro-tips__item",children:[i!=null?pe("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:i}):null,pe("span",{children:u})]},c)})})]})}n(vn,"TipList");import{useEffect as Cn,useId as kr,useRef as br,useState as Sr}from"react";import{jsx as W,jsxs as Xe}from"react/jsx-runtime";var Rr=220;function kn({title:e,description:t,options:o,busy:r,error:s,focus:c,testId:i,look:u="cards",marked:k,onChoose:b}){let y=kr(),w=Qe(),[S,d]=Sr(null),C=br(null);Cn(()=>{s!==null&&d(null)},[s]),Cn(()=>()=>{C.current!==null&&clearTimeout(C.current)},[]);let v=n(l=>{r||S!==null||(d(l),C.current=setTimeout(()=>{C.current=null,d(null),b(l)},Rr))},"choose");return Xe("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":y,"data-testid":i,children:[Xe("div",{className:u==="cards"?"sekyro-heading":"sekyro-stack sekyro-stack--1",children:[W("h2",{id:y,ref:c?w:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?W("p",{className:"sekyro-text-muted",children:t}):null]}),s!==null?W(q,{tone:"danger",children:W("span",{children:s})}):null,u==="buttons"?W("div",{className:"sekyro-stack sekyro-stack--3",children:o.map((l,L)=>W(F,{kind:L===0?"primary":"ghost",full:!0,disabled:r,"aria-busy":r||void 0,onClick:()=>b(l.id),children:l.label},l.id))}):W("div",{className:"sekyro-choices",children:o.map(l=>Xe("button",{type:"button",className:"sekyro-card","aria-pressed":(S??k)===l.id,"aria-busy":r||void 0,disabled:r||S!==null&&S!==l.id,onClick:()=>v(l.id),children:[l.glyph!==void 0?W("span",{className:"sekyro-card__tile",children:l.glyph}):null,Xe("span",{className:"sekyro-card__body",children:[W("span",{className:"sekyro-card__title",children:l.label}),l.sub!==void 0?W("span",{className:"sekyro-card__sub",children:l.sub}):null]}),W("span",{className:"sekyro-radio","aria-hidden":"true"})]},l.id))})]})}n(kn,"ChoiceScreen");var et=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","fcv3.hold_upright","fcv3.one_face","capture.tips.summary"];function he(e){return e!==null&&et.includes(e)}n(he,"isVoiceKey");import{useCallback as re,useEffect as ve,useLayoutEffect as Lr,useMemo as _r,useRef as we,useState as Oe}from"react";var Vr=n((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");function Me(e,t,o){let r;try{if(typeof e=="function")r=e(t,o);else{let s=e[o];r=s!=null&&Vr(s,t)?s[t]:null}}catch{return null}return typeof r=="string"&&r!==""?r:null}n(Me,"resolveClip");var Mr="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",Rn={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};function ne(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}n(ne,"synth");function wr(){return ne()!==null&&typeof SpeechSynthesisUtterance=="function"}n(wr,"speechAvailable");function bn(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}n(bn,"baseLang");function Vn(e,t){let o=n(s=>s.replace(/_/g,"-").toLowerCase(),"norm"),r=bn(t);return e.find(s=>o(s.lang)===o(t))??e.find(s=>bn(s.lang)===r)}n(Vn,"pickVoice");function Mn(e){if(!wr())return!1;let t=[];try{t=ne()?.getVoices()??[]}catch{return!0}return t.length===0||Vn(t,e)!==void 0}n(Mn,"speechUsable");function wn(e){let t=ne();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}n(wn,"subscribeVoices");function Ke(e){try{let t=typeof location<"u"?location.href:"http://localhost/",o=new URL(e,t);return`clip:${o.origin}${o.pathname}`}catch{return`clip:${e}`}}n(Ke,"clipIdentity");function Sn(e){e.pause(),e.removeAttribute("src"),e.load()}n(Sn,"release");function Ln(){let e=null,t=null,o=0,r=null,s=[],c=new Map,i=n(()=>{s=ne()?.getVoices()??[]},"loadVoices"),u=!1,k=n(()=>{let d=ne();u||d===null||(u=!0,i(),d.addEventListener?.("voiceschanged",i))},"bindVoices"),b=n(()=>(e??(e=new Audio),e),"element"),y=n((d,C,v)=>{let l=ne();if(l!==null&&d!==""&&typeof SpeechSynthesisUtterance=="function"){k();let L=Vn(s,C);if(s.length===0||L!==void 0){l.cancel();let g=new SpeechSynthesisUtterance(d);g.lang=C,L!==void 0&&(g.voice=L),g.rate=.95,v!==void 0&&(g.onend=g.onerror=v),l.speak(g);return}}v?.()},"speak"),w=n(()=>{o+=1,r=null,e!==null&&(e.pause(),e.currentTime=0),ne()?.cancel()},"stop"),S=n(d=>{for(let C of d){let v=Ke(C);if(c.has(v))continue;let l=new Audio;l.preload="auto",l.src=C,c.set(v,l)}},"warmClips");return{say(d){let C=d.url!==null?Ke(d.url):`tts:${d.lang}:${d.text}`;if(C===r)return;r=C,o+=1;let v=o,l=d.onEnd,L=l!==void 0?()=>{v===o&&l()}:void 0;if(ne()?.cancel(),d.url!==null){let g=b();g.pause(),g.muted=!1,g.src=d.url,g.currentTime=0,g.onended=L??null,g.play()?.catch(V=>{v===o&&V?.name!=="AbortError"&&(d.speech?y(d.text,d.lang,L):L?.())});return}d.speech?y(d.text,d.lang,L):L?.()},unlock({lang:d,speech:C,prefetch:v}){let l=b();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let V=Uint8Array.from(atob(Mr),E=>E.charCodeAt(0));t=URL.createObjectURL(new Blob([V],{type:"audio/wav"}))}let L=l.paused===!1&&t!==null&&l.src!==t;t!==null&&!L&&(l.muted=!0,l.onended=null,l.src=t,l.play()?.catch(()=>{}));let g=ne();if(C&&g!==null&&typeof SpeechSynthesisUtterance=="function"){k();let V=new SpeechSynthesisUtterance(" ");V.volume=0,V.lang=d,g.speak(V)}S(v??[])},prefetch:S,stop:w,dispose(){w(),u&&ne()?.removeEventListener?.("voiceschanged",i),u=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&Sn(e),e=null;for(let d of c.values())Sn(d);c.clear()}}}n(Ln,"createVoicePlayer");var _n="sekyro.voiceGuidance";function xn(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}n(xn,"readVoicePreference");function In(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}n(In,"writeVoicePreference");var Ue="capture.tips.summary",xr=typeof window<"u"?Lr:ve,Ir=Object.freeze({});function gt(e,t){let o=new Set,r=[];for(let s of et){let c=s===Ue?null:Me(e,s,t);c===null||o.has(Ke(c))||(o.add(Ke(c)),r.push(c))}return r}n(gt,"resolvedClipUrls");function ht({locale:e,defaultClips:t,options:o}){let r=o===!1,s=r?{}:o??{},c=s.storageKey===void 0?_n:s.storageKey,[i,u]=Oe(s.defaultEnabled??!0),k=we(i),[b,y]=Oe(!1),[w,S]=Oe("none"),[d,C]=Oe(!1),v=we(!1),[l,L]=Oe(0),g=we(null),V=re(()=>(g.current??(g.current=Ln()),g.current),[]),E=Rn[e],T=s.speechFallback,p=T===void 0||T===!0?!0:T===!1?!1:T.includes(e),U=s.clips??t??Ir,H=we(!1),se=we(U);xr(()=>{se.current=U,k.current=i}),ve(()=>{if(r||c===null)return;let h=xn(c);h!==null&&(k.current=h,u(h))},[r,c]),ve(()=>{if(!(r||!p))return wn(()=>L(h=>h+1))},[r,p]);let a=s.clips;ve(()=>{if(r)return;let h=p&&Mn(E);y(gt(U,e).length>0||h),S(a!==void 0&&Me(a,Ue,e)!==null?"partner":Me(U,Ue,e)!==null||h?"default":"none")},[r,U,a,e,p,E,l]),ve(()=>{if(r||!i||!H.current)return;let h=gt(U,e);h.length>0&&V().prefetch(h)},[r,i,U,e,V]),ve(()=>()=>{g.current?.dispose(),g.current=null,H.current=!1},[]);let A=re(h=>{r||(H.current=!0,V().unlock({lang:E,speech:p,...h?{prefetch:gt(se.current,e)}:{}}))},[r,V,E,p,e]),_=re(()=>A(k.current),[A]),B=re(()=>{v.current=!1,C(!1)},[]),N=re(()=>{B(),g.current?.stop()},[B]),ie=re(()=>{v.current&&N()},[N]),ae=re((h,me)=>{if(r)return;if(v.current){N();return}let ce=V();ce.stop(),v.current=!0,C(!0);let x=me?.clip===!1?null:Me(se.current,Ue,e);ce.say({url:x,text:h,lang:E,speech:p,onEnd:B})},[r,N,V,e,E,p,B]),P=re(h=>{r||(h?A(!0):N(),c!==null&&In(c,h),k.current=h,u(h))},[r,A,N,c]),K=re(()=>P(!k.current),[P]),fe=re((h,me)=>{if(r||!i)return;v.current&&B();let ce=Me(se.current,h,e);V().say({url:ce,text:me,lang:E,speech:p})},[r,i,e,V,E,p,B]);return _r(()=>({supported:!r&&b,enabled:!r&&i,setEnabled:P,toggle:K,unlock:_,speakKey:fe,stop:N,summary:r?"none":w,summaryPlaying:d,toggleSummary:ae,stopSummary:ie}),[r,b,i,P,K,_,fe,N,w,d,ae,ie])}n(ht,"useVoiceGuidance");function vt(e,t,o,r){let{speakKey:s,stop:c,enabled:i}=e,u=we(!1);ve(()=>{if(!r||!i){u.current&&c(),u.current=!1;return}u.current=!0,he(t)&&t!==Ue&&o!==""&&s(t,o)},[r,i,t,o,s,c])}n(vt,"useSpeakGuidance");import{isValidElement as io,useCallback as st,useContext as ao,useEffect as oe,useMemo as xe,useRef as ke,useState as sr}from"react";import{useEffect as Er,useRef as Nr}from"react";import{jsx as He,jsxs as Nn}from"react/jsx-runtime";function Pn(e){switch(e){case"multiple_faces":return"one_face";case"capture_back_camera":return"front_camera";case"capture_front_camera":return"back_camera";case"capture_not_upright":return"upright";case"media_unreadable":case"clip_too_short":return"recording";case"device_integrity_failed":return"device";default:return"face"}}n(Pn,"retryCoachingOf");var En={face:{title:"capture.retryCoaching.title",tips:["capture.retryCoaching.light","capture.retryCoaching.eyeLevel","capture.retryCoaching.head"]},one_face:{title:"capture.retryTips.title",tips:["capture.retryOneFace.alone","capture.retryOneFace.screens"]},front_camera:{title:"capture.retryTips.title",tips:["capture.retryFrontCamera.screenSide"]},back_camera:{title:"capture.retryTips.title",tips:["capture.retryBackCamera.backSide","capture.retryBackCamera.circle"]},upright:{title:"capture.retryTips.title",tips:["capture.retryUpright.vertical","capture.retryUpright.untilEnd"]},recording:{title:"capture.retryTips.title",tips:["capture.retryRecording.cameraOn","capture.retryRecording.stay","capture.retryRecording.network"]},device:{title:"capture.retryTips.title",tips:["capture.retryDevice.screenRecording","capture.retryDevice.phone"]}};function An({showCoaching:e,coaching:t="face",attemptsText:o,showRetake:r,onRetake:s}){let c=z(),i=Nr(null);return Er(()=>{r&&i.current?.focus()},[r]),!e&&!r?null:Nn("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?Nn("div",{className:"sekyro-stack sekyro-stack--1",children:[He("p",{className:"sekyro-text-body",children:c(En[t].title)}),He("ul",{className:"sekyro-coaching",children:En[t].tips.map(u=>He("li",{children:c(u)},u))}),o!==null?He("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:o}):null]}):null,r?He(F,{ref:i,className:"sekyro-btn--start",onClick:s,children:c("capture.recordAgain")}):null]})}n(An,"CapturedPanel");function tt(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}n(tt,"isDevBuild");import{createContext as Pr}from"react";var Tn=Pr(null);import{useCallback as Hn,useEffect as Bn,useRef as Le}from"react";import{useEffect as Ar,useState as Tr}from"react";import{jsx as Be,jsxs as Kr}from"react/jsx-runtime";function Kn({state:e}){let t=z(),[o,r]=Tr(!1);Ar(()=>{e!=="unknown"&&r(!0)},[e]);let s=e==="granted"?Be(pn,{}):e==="denied"?Be(mn,{}):Be(fn,{});return Kr("div",{role:o?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[Be("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:s}),Be("span",{children:t(`capture.permission.${e}`)})]})}n(Kn,"PermissionRow");import{jsx as nt,jsxs as On}from"react/jsx-runtime";function Un({voice:e}){let t=z();if(!e.supported)return null;let o=e.enabled;return On("button",{type:"button",role:"switch","aria-checked":o,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[On("span",{className:"sekyro-switch__label",children:[nt(Ve,{off:!o}),t("capture.voiceGuidance")]}),nt("span",{className:"sekyro-switch__track","aria-hidden":"true",children:nt("span",{className:"sekyro-switch__thumb",children:o?nt(yn,{className:"sekyro-switch__check"}):null})})]})}n(Un,"VoiceSwitch");import{Fragment as Ur,jsx as D,jsxs as _e}from"react/jsx-runtime";function Gn({assets:e,onRetryAssets:t,permission:o,captureMode:r="self",voice:s,tips:c,summary:i,startLabel:u,startDisabled:k,onStart:b}){let y=z(),w=Le(i?.stop);w.current=i?.stop,Bn(()=>()=>w.current?.(),[]);let S=Le(null),d=Le(null),C=Le(null),v=Le(e),l=Le(!1);Bn(()=>{let U=v.current;if(v.current=e,U===e)return;let H=l.current;e!=="loading"&&(l.current=!1),Or(S.current)&&(e==="failed"?C.current?.focus():H&&d.current?.focus())},[e]);let L=Hn(()=>{l.current=!0,t()},[t]),g=e==="loading",V=g||k,E=Hn(()=>{V||(w.current?.(),b())},[V,b]),T;return e==="failed"?T=_e(q,{tone:"danger",testId:"sekyro-assets-error",children:[D("p",{className:"sekyro-text-body",children:y("fcv2.err.models")}),D(F,{kind:"ghost",ref:C,className:"sekyro-btn--start",onClick:L,"data-testid":"sekyro-assets-retry",children:y("common.retry")})]}):T=_e("div",{className:"sekyro-stack sekyro-stack--1",children:[D(F,{ref:d,full:!0,"data-testid":"sekyro-start","aria-disabled":V?"true":void 0,"aria-busy":g?"true":void 0,onClick:E,children:g?_e(Ur,{children:[D(gn,{}),y("capture.preparing.title")]}):u??y("capture.start")}),g?D("p",{className:"sekyro-text-muted",children:y("capture.preparing.hint")}):null]}),_e("div",{ref:S,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[r==="assisted"?_e("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[D("h2",{className:"sekyro-text-body",children:y("capture.assisted.title")}),D("p",{className:"sekyro-text-muted",children:y("capture.assisted.lead")})]}):null,c!==!1?D(vn,{tips:c}):null,i!==void 0?_e(F,{kind:"ghost",className:"sekyro-btn--start",onClick:i.toggle,"data-testid":"sekyro-tips-listen",children:[D(Ve,{off:!1}),y(i.playing?"capture.tips.stop":"capture.tips.listen")]}):null,D(Kn,{state:o}),D(Un,{voice:s}),D("p",{className:"sekyro-text-muted",children:y("capture.securityNote")}),T,D("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?y("capture.preparing.title"):e==="ready"?y("capture.ready"):""})]})}n(Gn,"PreCaptureScreen");function Or(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}n(Or,"focusIsOurs");import{subscribeCameraPermission as Hr}from"@sekyro/web";import{useEffect as Br,useState as Gr}from"react";function Fn(){let[e,t]=Gr({state:"unknown",settled:!1});return Br(()=>Hr(o=>t({state:o,settled:!0})),[]),{permission:e.state,permissionSettled:e.settled}}n(Fn,"useCameraStatus");import{useCallback as Fr,useEffect as Ct,useState as kt}from"react";function qn(e){return jn(e,"mobileRequired")}n(qn,"useMobileRequired");function Dn(e){return jn(e,"returning").required}n(Dn,"useReturning");function jn(e,t){let[o,r]=kt({required:!1,settled:e===void 0});return Ct(()=>{let s=e?.[t];if(e===void 0||typeof s!="function"){r({required:!1,settled:!0});return}let c=!0;return r({required:!1,settled:!1}),Promise.resolve().then(()=>s.call(e)).then(i=>{c&&r({required:i===!0,settled:!0})},()=>{c&&r({required:!1,settled:!0})}),()=>{c=!1}},[e,t]),o}n(jn,"useFlag");function $n(e){let t=n(()=>e?.captureChoice??null,"initialChoice"),[o,r]=kt(()=>({session:"self",choice:t(),settled:e===void 0}));Ct(()=>{let i=e?.captureMode,u=e?.captureChoice??null;if(e===void 0||typeof i!="function"){r({session:"self",choice:u,settled:!0});return}let k=!0;return r({session:"self",choice:u,settled:!1}),Promise.resolve().then(()=>i.call(e)).then(b=>{let y=e.captureChoice??null;k&&r({session:y!==null&&b===y?"choice":b==="assisted"||b==="choice"?b:"self",choice:y,settled:!0})},()=>{k&&r({session:"self",choice:null,settled:!0})}),()=>{k=!1}},[e]);let s=Fr(i=>{e?.chooseCaptureMode?.(i),r(u=>({...u,choice:i}))},[e]);return{mode:o.session==="choice"?o.choice??"self":o.session==="assisted"?"assisted":"self",session:o.session,choice:o.choice,settled:o.settled,choose:s}}n($n,"useCaptureMode");function zn(e){let[t,o]=kt(!1);return Ct(()=>{if(o(!1),e===void 0)return;let r=e.on("busy",()=>o(!0)),s=e.on("result",()=>o(!1));return()=>{r(),s()}},[e]),t}n(zn,"useBusy");import{getLivenessAssetsStatus as qr,preloadLivenessAssets as Dr,subscribeLivenessAssets as jr}from"@sekyro/web";import{useCallback as bt,useEffect as Yn,useRef as Zn,useState as $r,useSyncExternalStore as zr}from"react";var Yr=n(()=>"idle","serverSnapshot");function Wn(e){return Dr(e!==void 0?{assetBaseUrl:e}:{})}n(Wn,"preload");function Qn(e,t=!0){let o=zr(bt(w=>jr(w,e),[e]),()=>qr(e),Yr),[r,s]=$r(null),c=Zn(!1),i=bt(()=>{Wn(e).then(w=>{c.current&&w==="idle"&&s({base:e})})},[e]);Yn(()=>(c.current=!0,i(),()=>{c.current=!1}),[i]);let u=Zn(null);Yn(()=>{if(o!=="idle"){u.current={base:e};return}!t||u.current===null||u.current.base!==e||(u.current=null,i())},[o,e,i,t]);let k=bt(()=>{Wn(e)},[e]);return{gate:r!==null&&r.base===e&&o==="idle"||o==="ready"?"ready":o==="failed"?"failed":"loading",retry:k}}n(Qn,"useLivenessAssets");import{createLivenessCapture as Zr}from"@sekyro/web";import{useCallback as rt,useEffect as Wr,useRef as Ce,useState as j}from"react";var Jn={progress:0,hint:null,faceDetected:!1};function Xn(e){let{videoRef:t,assetBaseUrl:o}=e,s=Ce(e.verification).current,c=Ce(!1);e.verification!==s&&!c.current&&tt()&&(c.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let i=Ce(null),[u,k]=j("idle"),[b,y]=j(Jn),[w,S]=j(!1),[d,C]=j(!1),[v,l]=j(null),[L,g]=j(!1),[V,E]=j(null),[T,p]=j(null),[U,H]=j(null),[se,a]=j(null),[A,_]=j(null),[B,N]=j(!1),ie=Ce(null),ae=Ce("idle"),P=Ce(-1),[K,fe]=j(0),h=Ce(e);h.current=e,Wr(()=>{let Y=t.current;if(Y===null)return;let Q={video:Y,...o!==void 0?{assetBaseUrl:o}:{}},I=s!==void 0?s.liveness(Q):Zr(Q);i.current=I;let Ne=n(()=>_(I.facingMode??null),"readFacing");Ne();let Ge=[I.on("state",m=>{m==="mode_switch"?N(!0):m!=="starting"&&m!=="gating"&&N(!1),m==="starting"?(ae.current!=="starting"&&(P.current+=1,fe(Math.max(0,P.current))),p(null),H(null),y(Jn),C(!1),S(!1),l(null),E(null),ie.current=null):m==="gating"&&ae.current==="recording"&&(C(!1),S(!1),l(null),ie.current=null),ae.current=m,Ne(),k(m),h.current.onStateChange?.(m)}),I.on("gate",m=>{let J=ie.current;ie.current=m.progress,S(J!==null&&m.progress<J-.001&&m.progress>0&&m.progress<1),m.progress>=1&&C(!0),y(m)}),I.on("frozen",({previewDataUrl:m})=>l(m)),I.on("profile",({animations:m})=>g(m==="reduced")),I.on("ramp",({colour:m})=>E(m)),I.on("captured",m=>{p(m),a(null),h.current.onCaptured?.(m)}),I.on("error",m=>{H(m);let J=s?.reportCaptureIssue;J!==void 0&&We(ye=>J.call(s,ye),sn("liveness",m,Math.max(0,P.current))),h.current.onError?.(m)}),s?.on("result",m=>{a(m),h.current.onResult?.(m)})];return()=>{for(let m of Ge)m?.();i.current=null,I.destroy()}},[s,t,o]);let me=rt(()=>{i.current?.start()},[]),ce=rt(()=>{i.current?.retry()},[]),x=rt(async()=>{let Y=i.current;return Y===null||typeof Y.canSwitchCaptureMode!="function"?!1:await Y.canSwitchCaptureMode().catch(()=>!1)===!0},[]),Ee=rt(async Y=>{let Q=i.current;if(Q===null||typeof Q.setCaptureMode!="function")return!1;let I=await Q.setCaptureMode(Y).catch(()=>!1)===!0;return I&&_(Q.facingMode??null),I},[]);return{state:u,gate:b,draining:w,gateLocked:d,frozenPreview:v,reduceMotion:L,rampColour:V,artifacts:T,error:U,result:se,facingMode:A,start:me,retry:ce,canSwitchCaptureMode:x,setCaptureMode:Ee,modeRestarted:B,attempt:K}}n(Xn,"useLivenessHandle");import{useCallback as Qr,useEffect as Jr,useState as ot}from"react";var Xr=new Set(["national_number"]);function er(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(o=>Xr.has(o));return t.length>0?{...e,options:t}:null}n(er,"pending");function tr(e){let[t,o]=ot(null),[r,s]=ot(e===void 0),[c,i]=ot(!1),[u,k]=ot(!1);Jr(()=>{if(o(null),e===void 0){s(!0);return}let S=!0,d=e.methodChoice;typeof d=="function"?(s(!1),Promise.resolve().then(()=>d.call(e)).then(v=>{S&&o(er(v))},()=>{}).finally(()=>{S&&s(!0)})):s(!0);let C=e.on("method",v=>o(er(v)));return()=>{S=!1,C()}},[e]);let b=Qr(async S=>{if(e===void 0)return!1;i(!0),k(!1);try{return await e.selectMethod(S),o(null),!0}catch{return k(!0),!1}finally{i(!1)}},[e]),y=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:y==="national_number"&&!u?y:null,settled:r,busy:c,failed:u,select:b}}n(tr,"useMethodChoice");import{useEffect as eo,useMemo as to,useState as no}from"react";var ro=["ar","fr","en"];function oo(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}n(oo,"isClipUrl");function so(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let o={};for(let r of ro){let s=t[r];if(!(typeof s!="object"||s===null))for(let[c,i]of Object.entries(s))!he(c)||!oo(i)||((o[r]??(o[r]={}))[c]=i)}return Object.keys(o).length>0?o:null}n(so,"toVoiceClipMap");function nr(e){let[t,o]=no(null);eo(()=>{if(o(null),e===void 0)return;let s=!0,c=n(u=>{if(!s)return;let k=typeof u=="object"&&u!==null&&typeof u.setId=="string"?u:null;o(b=>b?.setId===k?.setId?b:k)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(c,()=>c(null))}catch{c(null)}let i=e.on("view",u=>c(u.voice));return()=>{s=!1,i()}},[e]);let r=to(()=>t!==null?so(t):null,[t]);return e===void 0?null:r}n(nr,"useServerVoiceClips");import{jsx as rr}from"react/jsx-runtime";function or({voice:e}){let t=z();return rr(F,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:rr(Ve,{off:!e.enabled,className:"sekyro-icon"})})}n(or,"VoiceChip");import{Fragment as ir,jsx as R,jsxs as Ie}from"react/jsx-runtime";var co=new Set(["abandoned","not_opened","cancelled","superseded"]),lo=800;function uo(e){return e===void 0||e!==!1&&e.length===Je.length&&Je.every(t=>e.includes(t))}n(uo,"isDefaultTips");function po(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}n(po,"carriesActivation");function fo(e){return typeof e=="object"&&e!==null&&!io(e)&&"tone"in e&&"text"in e}n(fo,"isNoticeObject");var mo=new Set(["nni_unbound","id_number_unbound","method_required","mobile_required","portrait_required"]);function yo(e){return e==="starting"||e==="gating"||e==="recording"||e==="mode_switch"}n(yo,"isCapturing");function go(e){return e==="captured"||e==="uploading"||e==="checking"}n(go,"isPostCapture");function _i({verification:e,locale:t,dir:o,strings:r,slots:s,autoStart:c=!1,notice:i,startDisabled:u=!1,startLabel:k,tips:b,tipsSummary:y,coach:w,voice:S,onGuidance:d,onCaptured:C,onResult:v,onError:l,onStateChange:L,assetBaseUrl:g,className:V}){let E=nn(t),T=xe(()=>tn(t,r),[t,r,E]),p=xe(()=>f=>T[f]??"",[T]),U=o??(t==="ar"?"rtl":"ltr"),H=ke(null),se=ao(Tn),a=Xn({verification:e,videoRef:H,assetBaseUrl:g,onCaptured:C,onResult:v,onError:l,onStateChange:L}),A=Qn(g,a.state==="idle"&&a.error===null),_=tr(e),B=_.choice!==null,N=qn(e),ie=Dn(e),ae=zn(e),P=Fn(),K=$n(e),fe=K.session==="choice",h=K.mode==="assisted",me=S!==!1&&S?.clips===void 0,ce=nr(me?e:void 0),x=ht({locale:t,defaultClips:ce,options:S}),Ee=h?"environment":"user",Y=K.settled,Q=ke(null),I=ke(!1),Ne=ke(x.unlock);Ne.current=x.unlock,oe(()=>{let f=Q.current;if(f===null)return;let $=["pointerup","touchend","click","keydown"],de=n(()=>{for(let Te of $)f.removeEventListener(Te,Re,!0)},"disarm");function Re(Te){if(I.current){de();return}po(Te)&&(I.current=!0,de(),Ne.current())}n(Re,"onGesture");for(let Te of $)f.addEventListener(Te,Re,{capture:!0,passive:!0});return de},[]);let Ge=st(()=>{I.current||(I.current=!0,x.unlock()),a.start()},[x.unlock,a.start]),m=st(()=>a.start(),[a.start]),J=ke(!1),ye=a.state==="idle"&&a.error===null,St=!B&&!N.required&&(c===!0||c==="when-permitted"&&P.permission==="granted"),Rt=St&&_.settled&&N.settled&&Y,ar=c==="when-permitted"&&!P.permissionSettled&&!J.current,Vt=St&&ye&&!J.current,it=(ar||Vt||!Y)&&A.gate==="ready"?"loading":A.gate;oe(()=>{!Rt||!ye||A.gate!=="ready"||J.current||(J.current=!0,m())},[Rt,ye,A.gate,m]);let cr=ye&&!B&&!N.required&&!(Vt&&A.gate==="ready"),[Mt,wt]=sr(!1),{canSwitchCaptureMode:Lt,setCaptureMode:_t}=a;oe(()=>{if(!K.settled||!fe){wt(!1);return}let f=!0;return Lt().then($=>{f&&wt($)}),()=>{f=!1}},[K.settled,fe,Lt]);let{choose:xt}=K,be=h?"self":"assisted",lr=st(async()=>{await _t(be)&&xt(be)},[_t,xt,be]),It=a.state!=="idle"&&a.facingMode!==null?a.facingMode:Ee;oe(()=>{let f=H.current?.style;It==="user"?f?.removeProperty("transform"):f&&(f.transform="none")},[It]);let Fe=xe(()=>a.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(a.artifacts.keyframe):null,[a.artifacts]);oe(()=>{if(Fe!==null)return()=>URL.revokeObjectURL(Fe)},[Fe]);let Et=a.frozenPreview??Fe,Se=e!==void 0,O=yo(a.state),le=go(a.state),qe=O||le,Z=a.result,Nt=a.state==="done"&&Z!==null,at=a.state==="recording"&&a.frozenPreview!==null,De=se!==null,Pt=Mt&&O&&!at?{to:be,label:p(be==="assisted"?"capture.modeSwitch.toAssisted":"capture.modeSwitch.toSelf"),description:p(be==="assisted"?"capture.modeSwitch.toAssistedLabel":"capture.modeSwitch.toSelfLabel"),onSwitch:n(()=>{lr()},"onSwitch")}:null,je=a.modeRestarted&&O?p("capture.modeSwitch.restarted"):null,Pe=le||at,At=le?"checking":at?"frozen":a.state==="recording"?"recording":a.gateLocked||a.gate.progress>=1?"locked":a.gate.faceDetected?"aligning":"seeking",$e=O?a.gate.hint:null,ze=a.state==="starting"?"capture.preparing.title":$e===null?null:$e==="center"&&!a.gate.faceDetected?"fcv3.no_face":Zt($e),[ur,Tt]=sr(null);oe(()=>{if(ze!=="fcv3.no_face"){Tt(ze);return}if(!O)return;let f=setTimeout(()=>Tt(ze),lo);return()=>clearTimeout(f)},[ze,O]);let ct=O&&typeof w=="string"&&w!=="",Kt=h&&O?p("capture.assisted.stage"):null,ge=O&&!ct?ur:null,lt=ct?w:ge===null?"":p(ge);vt(x,ge,lt,O);let Ot=ke(d);Ot.current=d,oe(()=>{if(he(ge))try{Ot.current?.(ge)}catch(f){console.error("[@sekyro/react] onGuidance threw:",f)}},[ge]);let Ae=xe(()=>({supported:x.supported,enabled:x.enabled,setEnabled:x.setEnabled,toggle:x.toggle}),[x.supported,x.enabled,x.setEnabled,x.toggle]),ut=s?.voicePrompt,Ut=ut!==void 0,Ht=S===void 0,Bt=ke(!1);oe(()=>{!Ut||!Ht||Bt.current||!tt()||(Bt.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[Ut,Ht]);let dr=ut!==void 0?(f,$,de)=>ut(f,$,de,Ae):x.supported?()=>R(or,{voice:Ae}):void 0,{summary:dt,summaryPlaying:Gt,toggleSummary:Ft,stopSummary:qt}=x,Ye=y!==void 0&&y!=="",Dt=Ye?y:p("capture.tips.summary"),jt=Ye?dt!=="none":dt==="partner"||dt==="default"&&uo(b),pr=xe(()=>jt?{playing:Gt,toggle:n(()=>Ft(Dt,{clip:!Ye}),"toggle"),stop:qt}:void 0,[jt,Gt,Ft,Dt,qt,Ye]),fr=xe(()=>({assets:it,retryAssets:A.retry,permission:P.permission,permissionSettled:P.permissionSettled,captureMode:K.mode,facing:Ee,voice:Ae}),[it,A.retry,P.permission,P.permissionSettled,K.mode,Ee,Ae]),mr=fo(i)?R(q,{tone:i.tone,testId:"sekyro-host-notice",children:R("span",{children:i.text})}):i??null,X=Z!==null&&Z.status==="retry"?Z:null,G=Nt&&Z.status==="unavailable"&&!B&&Z.reasonCode!=="portrait_required"?Z:null,ue=Nt&&(Z.status==="verified"||Z.status==="not_verified"||Z.status==="review")?Z:null,pt=n((f,$)=>{if(f===void 0)return null;if(f==="device_cooldown"){let Re=Xt(t,$);if(Re!==null)return p(Re.key).replace("{time}",Re.time)}let de=Jt(f);return de===null?null:p(de)},"reasonText"),ft=n(f=>{let $=f.retakeHint===void 0?null:Wt(f.retakeHint);return $===null?pt(f.reasonCode):p($)},"retryText"),$t=ue===null?null:pt(ue.reasonCode,ue.retryAfter)??(ue.status==="not_verified"&&ue.reason!==void 0&&co.has(ue.reason)?p("errors.session_expired"):null),yr=G!==null&&G.reasonCode!==void 0&&G.reasonCode!=="nni_unbound"&&G.reasonCode!=="id_number_unbound"&&G.reasonCode!=="method_required"&&G.reasonCode!=="mobile_required"&&!(G.reasonCode==="no_recorder"&&a.artifacts?.degraded==="NO_RECORDER"),Ze=G?.reasonCode,zt=a.attempt;oe(()=>{G===null||Ze===void 0||e?.reportCaptureIssue===void 0||mo.has(Ze)||We(f=>e.reportCaptureIssue?.(f),{check:"liveness",kind:"unavailable",phase:"upload",engineKind:Ze,attempt:Math.min(1e3,zt)})},[G,Ze,zt,e]);let Yt=Qe(),gr=B&&_.auto===null&&!O&&!le&&a.error===null,mt=st(async f=>{await _.select(f)&&a.state==="done"&&a.retry()},[_.select,a.state,a.retry]);return oe(()=>{_.auto!==null&&!_.busy&&!O&&!le&&mt(_.auto)},[_.auto,_.busy,O,le,mt]),R(rn,{value:p,children:Ie("div",{ref:Q,className:V===void 0?"sekyro-capture":`sekyro-capture ${V}`,dir:U,lang:t,"data-testid":"sekyro-liveness-capture","data-state":a.state,children:[s?.header,X!==null&&ft(X)!==null&&!(De&&qe)?R(q,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:R("span",{children:ft(X)})}):null,je!==null&&!De?R(q,{tone:"info",role:"status",testId:"sekyro-mode-switch-status",children:R("span",{children:je})}):null,ae&&le&&!De?R(q,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:R("span",{children:p("capture.busy")})}):null,N.required&&ye?R(q,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:R("span",{children:p("reasons.mobile_required")})}):null,a.error!==null?s?.errorPanel!==void 0?s.errorPanel(a.error,a.retry):Ie(q,{tone:"danger",testId:"sekyro-error-notice",children:[R("span",{children:p(Qt(a.error))}),a.error.retryable?R(F,{ref:Yt,kind:"ghost",className:"sekyro-btn--start",onClick:a.retry,children:p("common.retry")}):null]}):null,G!==null?Ie(q,{tone:"danger",testId:"sekyro-unavailable-notice",children:[R("span",{children:pt(G.reasonCode)??p(G.reasonCode===void 0?"errors.session_expired":"errors.network_error")}),yr?R(F,{ref:Yt,kind:"ghost",className:"sekyro-btn--start",onClick:a.retry,children:p("capture.recordAgain")}):null]}):null,$t!==null&&ue!==null?R(q,{tone:ue.status==="not_verified"?"danger":"info",testId:"sekyro-result-notice",children:R("span",{children:$t})}):null,R("div",{className:qe?void 0:"sekyro-hidden","data-capture-live":qe?"":void 0,children:De?se({videoRef:H,guidance:Pe&&Se?p("capture.checking"):lt,coached:ct&&!(Pe&&Se),note:Pe?Se?p(ae?"capture.busy":"capture.checkingHint"):null:je??(X!==null?ft(X):Kt),settled:Pe&&Se,progress:a.gate.progress,phase:At,still:Pe?Et:null,live:qe,modeSwitch:Pt,...Mt?{status:je}:{},ramp:a.rampColour===null?null:{colour:a.rampColour}}):R(on,{videoRef:H,guidanceText:lt,guidanceHint:$e,guidanceKey:ge,progress:a.gate.progress,phase:At,draining:a.draining,stillUrl:Et,showChecking:Se,operatorText:Kt,voicePrompt:dr,overlay:f=>Ie(ir,{children:[s?.stageOverlay?.(f),R(an,{colour:a.rampColour})]}),reduceMotion:a.reduceMotion,modeSwitch:Pt})}),gr&&_.choice!==null?R(kn,{title:p("method.title"),description:p("method.description"),options:_.choice.options.map(f=>({id:f,label:p(`method.${f}`)})),busy:_.busy,error:_.failed?p("errors.network_error"):null,focus:a.state==="done",testId:"sekyro-method",look:"buttons",onChoose:f=>{mt(f)}}):null,cr?Ie(ir,{children:[ie&&s?.header===void 0&&s?.intro===void 0?Ie("div",{className:"sekyro-stack sekyro-stack--1",children:[R("h2",{className:"sekyro-text-body",children:p("returning.title")}),R("p",{className:"sekyro-text-muted",children:p("returning.description")})]}):null,mr,s?.intro!==void 0?s.intro(Ge,fr):R(Gn,{assets:it,onRetryAssets:A.retry,permission:P.permission,captureMode:K.mode,voice:Ae,tips:b??Je,summary:pr,startLabel:k,startDisabled:u,onStart:Ge})]}):null,R(An,{showCoaching:X!==null,coaching:Pn(X?.reasonCode),attemptsText:X?.attemptsRemaining!==void 0?en(T,t,X.attemptsRemaining):null,showRetake:X!==null&&!O&&!le||!Se&&a.state==="captured",onRetake:a.retry}),s?.footer]})})}n(_i,"LivenessCapture");export{Pn as a,En as b,tt as c,Tn as d,Je as e,kn as f,$n as g,et as h,lo as i,_i as j};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as y}from"./chunk-7Z4LVT2A.js";import{p as w}from"./chunk-TWZZGFO5.js";import{a as d}from"./chunk-ONYT4GJ4.js";import{a as t}from"./chunk-2KED7D2Q.js";import{createContext as C,useContext as R,useState as v}from"react";import{lazy as S,Suspense as b,useMemo as x,useState as g}from"react";import{Component as N}from"react";var c=class c extends N{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};t(c,"LoadBoundary");var p=c;import{jsx as r,jsxs as V}from"react/jsx-runtime";var h={load:t(()=>import("./flow-views-T3Y6QDXH.js"),"load")};function k({view:n,i18n:e,quiet:o,...a}){let[i,f]=g(0),s=x(()=>S(()=>h.load().then(m=>({default:m[n]}))),[n,i]),u=V(w,{tone:"danger",children:[r("span",{children:e.t("errors.network_error")}),r(d,{kind:"secondary",onClick:()=>f(m=>m+1),children:e.t("common.retry")})]});return r(p,{fallback:u,children:r(b,{fallback:o===!0?null:r("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:e.t("common.loading")}),children:r(s,{...a,i18n:e})})},i)}t(k,"Flow");import{Fragment as F,jsx as l,jsxs as B}from"react/jsx-runtime";var P=C(void 0);function K({i18n:n,lead:e,refresh:o,actions:a}){let i=R(P),[f,s]=v(!1);if(i!==void 0)return l(k,{view:"HandoffView",i18n:n,url:i,lead:e,...o!==void 0?{refresh:o}:{},footer:a});let u=t(()=>{o!==void 0&&(s(!0),o().catch(()=>{}).finally(()=>s(!1)))},"again");return l(y,{tone:"brand",icon:"smartphone",title:n.t("handoff.title"),testId:"sekyro-phone-handoff",actions:B(F,{children:[a,o!==void 0?l(d,{kind:"secondary",full:!0,disabled:f,onClick:u,children:n.t("common.refresh")}):null]}),children:l("p",{children:e})})}t(K,"PhoneHandoff");export{p as a,k as b,P as c,K as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{
|
|
2
|
+
import{c as g}from"./chunk-MM5EYC7B.js";import{a as s}from"./chunk-2KED7D2Q.js";var c={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};import{jsx as y}from"react/jsx-runtime";var t={colors:{...c.light},radius:c.radiusLg,fontFamily:c.font},l={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function S(o={}){let e={};for(let r of Object.keys(l))e[l[r]]=o.colors?.[r]??t.colors[r];return e["--sekyro-radius"]=o.radius??t.radius,e["--sekyro-font"]=o.fontFamily??t.fontFamily,e}s(S,"themeToCssVars");var m=/^#[0-9a-f]{6}$/i,k=["brand","brandFg","bg","surface","fg","fgMuted"],b=["danger","success","warning"],u=!1;function p(o){let e=o?.colors;if(o===void 0||e===void 0||!b.some(i=>i in e))return o;!u&&g()&&(u=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:r,success:a,warning:f,...n}=e;return{...o,colors:n}}s(p,"stripDeprecatedStatusColors");var T={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},h={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function F(o){let e={};if(!o)return e;let r={},a=o.colors??{};for(let i of k){let d=a[i];d!==void 0&&m.test(d)&&(r[i]=d)}r.brand&&(r.ring=r.brand),Object.keys(r).length&&(e.colors=r);let f=T[o.radius];f&&(e.radius=f);let n=h[o.fontFamily];return n!==void 0&&(e.fontFamily=n?`${n}, ${t.fontFamily}`:t.fontFamily),e}s(F,"brandingToTheme");function I(...o){let e={};for(let r of o)r?.colors&&(e.colors={...e.colors,...r.colors}),r?.radius&&(e.radius=r.radius),r?.fontFamily&&(e.fontFamily=r.fontFamily);return e}s(I,"mergeThemes");function C({theme:o,children:e,className:r}){return y(R,{theme:p(o),...r!==void 0?{className:r}:{},children:e})}s(C,"SekyroThemeProvider");function R({theme:o,children:e,className:r}){let a=S(o);return y("div",{className:r===void 0?"sekyro-root":`sekyro-root ${r}`,style:a,children:e})}s(R,"SekyroThemeRoot");export{c as a,t as b,S as c,p as d,F as e,I as f,C as g,R as h};
|