@sekyro/react 0.1.0-rc.15 → 0.1.0-rc.17
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 +57 -0
- package/dist/chunk-25KWDPLY.js +2 -0
- package/dist/chunk-55NNQK5P.js +2 -0
- package/dist/chunk-6I7GU4FS.js +2 -0
- package/dist/chunk-7MMT5M4E.js +2 -0
- package/dist/chunk-A6UYUVEG.js +2 -0
- package/dist/chunk-DY5WQVPE.js +2 -0
- package/dist/chunk-GUTF3SPK.js +2 -0
- package/dist/chunk-JT7YHK7F.js +2 -0
- package/dist/chunk-LPGHMDD4.js +2 -0
- package/dist/chunk-NV7HZJM4.js +2 -0
- package/dist/chunk-T3PAN4NN.js +2 -0
- package/dist/chunk-XTQARDSJ.js +2 -0
- package/dist/chunk-YVNQ3UUH.js +2 -0
- package/dist/{chunk-TLHEN5T3.js → chunk-Z7US4CLZ.js} +1 -1
- package/dist/document-capture-view-WDGHEAUI.js +2 -0
- package/dist/eid-view-HQLNWM6A.js +2 -0
- package/dist/email-otp-view-LCIDGNZT.js +2 -0
- package/dist/flow-views-K3HXMKPU.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-YQA44XTY.js +2 -0
- package/dist/overlay-es-6KRUPYG4.js +2 -0
- package/dist/overlay-pt-QEAE4TDI.js +2 -0
- package/dist/portrait-capture-view-I7I6FJQO.js +2 -0
- package/dist/portrait-review-view-A5HGZ7ZN.js +2 -0
- package/dist/{theme-qTwMxyZM.d.ts → theme-DuvMUYA9.d.cts} +8 -2
- package/dist/{theme-qTwMxyZM.d.cts → theme-DuvMUYA9.d.ts} +8 -2
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +79 -4
- package/dist/verification/index.d.ts +79 -4
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +210 -70
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-6EP4O2CE.js +0 -2
- package/dist/chunk-AIBCIUYT.js +0 -2
- package/dist/chunk-EZ5TVL6P.js +0 -2
- package/dist/chunk-H2KIOYQU.js +0 -2
- package/dist/chunk-IJE64ZEN.js +0 -2
- package/dist/chunk-JCCXPYU4.js +0 -2
- package/dist/chunk-PYAJMHZH.js +0 -2
- package/dist/chunk-TS3UFW5B.js +0 -2
- package/dist/chunk-UFAOAYQY.js +0 -2
- package/dist/chunk-VKSX4KC3.js +0 -2
- package/dist/chunk-YY76AMUA.js +0 -2
- package/dist/chunk-Z43XZ75N.js +0 -2
- package/dist/document-capture-view-6NADWNPQ.js +0 -2
- package/dist/eid-view-BKKVB5QT.js +0 -2
- package/dist/email-otp-view-56JMHX3M.js +0 -2
- package/dist/flow-views-7FMODRP7.js +0 -2
- package/dist/overlay-de-PSIG4NLI.js +0 -2
- package/dist/overlay-es-36OOIBXG.js +0 -2
- package/dist/overlay-pt-NWIPFF4D.js +0 -2
- package/dist/portrait-capture-view-JYTBBXFU.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# @sekyro/react
|
|
2
2
|
|
|
3
|
+
## 0.1.0-rc.17
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1005d9e: The document step can take a photo of the document picked from the device. Where the photo comes from is a setting of the step: the hosted session view gains `documents` (`HostedDocumentsView`: `source` `camera`, `upload` or `choice` (`PhotoSource`), `sourcePick` once the person chose under `choice` (`PhotoSourcePick`: `camera` or `upload`), and `uploadOffered`, true when an upload is accepted now). Absent means the camera with no upload offered. Under `camera` no upload is ever offered, even when the step's camera cannot open: the step's source is final. `DocumentSnapshot.photo` (`PhotoSourceState`: `source`, `pick` and `uploadOffered`) tells the UI what to show.
|
|
8
|
+
|
|
9
|
+
`DocumentStepHandle.uploadDocument(file)` sends the picked photo for the face the step asks for and submits `doc_ocr` with `source: "upload"` (new on `DocOcrInput`; a camera photo sends `source: "camera"` when the view has a `documents` block). A JPEG or PNG within 5 MB is sent as picked; a HEIC photo is converted to JPEG on the device where the browser can decode it, and a larger photo is scaled down. It rejects with `RangeError("upload_not_offered")` while `photo.uploadOffered` is false and with `TypeError("unsupported_file")` for any other file. The photo is presigned as a declared upload (`source: "upload"` on the media request, no capture proof). `HostedClient.presign` takes `{ source: "upload" }`, and a repeated `reportCaptureIssue` now resolves when the first send settles.
|
|
10
|
+
|
|
11
|
+
`@sekyro/react` follows the step's source: the camera screen (with "Upload a photo instead" only under `choice` while an upload is offered, never under `camera`), the upload screen at once, or a "Take a photo" / "Upload a photo" choice unless the person already chose for the step.
|
|
12
|
+
- c17645e: The portrait step: an ICAO photo of its own, from the camera or a photo picked from the device, which the server may adjust and the person accepts. The hosted session view's `portrait` gains `source` (`PhotoSource`: `camera`, `upload` or `choice`), `sourcePick` (`PhotoSourcePick`), `uploadOffered`, `fixes`, `fixReview`, `output` (`PortraitOutputFormat`) and `pendingFix` (`HostedPortraitPendingFix`: the original and adjusted photo URLs, the fixes applied and when the URLs expire). `PortraitSnapshot` gains `photo` (`PhotoSourceState`), `pendingFix` and the `review` phase. `CaptureIssueReport.check` gains `portrait`: `@sekyro/react` reports a portrait camera that cannot open as a diagnostic. A step under `camera` never offers an upload, even then.
|
|
13
|
+
|
|
14
|
+
`PortraitStepHandle.uploadPortrait(file)` sends a photo picked from the device (converted on the device like a document upload, presigned as a declared upload without a capture proof) and submits `portrait_icao` with `source: "upload"`; it rejects with `RangeError("upload_not_offered")` while `photo.uploadOffered` is false and with `TypeError("unsupported_file")` for any other file. `PortraitStepHandle.confirmFix(accept)` answers an adjusted photo in the `review` phase (`portrait_icao` with `{ fixReview: { accept } }`, `PortraitFixReviewInput`). A camera photo now sends `source: "camera"` and `capture: { mode }` (new on `PortraitIcaoInput`). `PortraitIcaoReason` gains `portrait_recaptured`, `portrait_morph_suspected`, `portrait_reference_mismatch`, `portrait_declined_fix` and `portrait_fix_review`, and `PortraitFix` names the fixes the server applies.
|
|
15
|
+
|
|
16
|
+
`@sekyro/react` asks "Take a photo" or "Upload a photo" under `choice` unless the person already chose (the upload screen at once under `upload`), shows the adjusted photo next to the original with the fixes in words, "Use this photo" and another photo, and words the new reasons in every language.
|
|
17
|
+
|
|
18
|
+
The face match after an accepted portrait sends no image key: the server compares the liveness capture with the reference, not the portrait.
|
|
19
|
+
- b7e6423: `VerificationResult` no longer carries `personId` or `subjectId` (and `HostedSessionView` no longer has `subjectId`): the hosted session view can be read by anyone holding the link, so it never names the person. Identify the person on your server with the result token's `sub` after you verify the token (the API's `personId` is `per_<sub>`), or with the webhook.
|
|
20
|
+
- 437509b: `<SekyroFlow>` no longer takes over the browser's back button by default: `backNavigation` now defaults to `"none"`, as on `<SekyroVerification>`, so the flow never adds an entry to your page's history. Pass `backNavigation="history"` when the flow owns the page and the browser's back should walk the flow (one screen back, or "Leave verification?" once something was sent). With `"history"`, a back press that leaves the flow now leaves it: your `onClose`, else one more step back in the browser.
|
|
21
|
+
|
|
22
|
+
The phone and email code steps keep the number or address on screen until a new code arrives, so a send the server refused changes neither what is shown nor where Resend goes. Countdowns never run past the server's window on a device whose clock is late.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 1f93754: The device header says when the page runs inside an app's browser (`inApp`), so the dashboard can show how often that happens on an integration. `isInAppBrowser()` is also exported from `@sekyro/web/client`.
|
|
27
|
+
- 6c0141f: `SessionFailureReason` gains `blocked_by_org`: one of the organization's blocks stopped the session. The result screen shows one line asking the person to contact the organization, in every locale. Nothing returns it until blocks are available to the organization.
|
|
28
|
+
- 5994d5d: Retries the service paces are spread out and wait longer when asked. When the service is busy (503 `server_busy` or `request_timeout`), the hosted client waits the `Retry-After` the service sends (2 seconds without one) up to 20 seconds, previously 3, before its one retry. When the model service is unavailable (503 `inference_unavailable`), a submission waits the `Retry-After` (10 seconds without one) up to 20 seconds, previously 30, before each of its three retries. Every such wait is spread by ±25 % (at least 0.5 seconds) so clients do not all come back at the same moment, and the `busy` event's `retryAfterSeconds` is the wait actually taken, so it can have a fraction.
|
|
29
|
+
- 0b01cee: The web SDK sends a device fingerprint for fraud prevention: browser, hardware and camera traits from the ThumbmarkJS library, each hashed in the browser, and the phone model and operating system version on Chromium browsers. It adds the `@thumbmarkjs/thumbmarkjs` dependency, loaded on demand, with no network request of its own. Name device fingerprinting in your privacy notice; see "Device fingerprinting" in the web SDK guide.
|
|
30
|
+
- Updated dependencies [1005d9e]
|
|
31
|
+
- Updated dependencies [6a53392]
|
|
32
|
+
- Updated dependencies [1f93754]
|
|
33
|
+
- Updated dependencies [c17645e]
|
|
34
|
+
- Updated dependencies [6c0141f]
|
|
35
|
+
- Updated dependencies [b7e6423]
|
|
36
|
+
- Updated dependencies [5994d5d]
|
|
37
|
+
- Updated dependencies [0b01cee]
|
|
38
|
+
- Updated dependencies [5c5f7e3]
|
|
39
|
+
- @sekyro/web@0.1.0-rc.20
|
|
40
|
+
|
|
41
|
+
## 0.1.0-rc.16
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- 5c480f8: Age check (selfie) copy. A document step reached because the selfie could not settle the person's age carries `ageStepUp: true`, and `<SekyroVerification>` shows "We could not confirm your age from the selfie. Continue with an ID document." on the first document screen the person sees, in all six locales. A session stopped with `underage_estimated` ends on "This service is for people who have reached its minimum age." in all six locales, instead of the generic rejection. New string keys: `doc.ageStepUp` and `reasons.underage_estimated`.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 61f92b1: Capture failures leave a diagnostic trace. A capture error now carries an optional `detail`: the step that was running (`phase`), the thrown error's `name` (never its message) and the engine's own kind before the public collapse (`engineKind`). A camera that Android Chrome reports as `AbortError` (held by a call or another app) is now `inuse`, and a `SecurityError` is `permission`. `Verification.reportCaptureIssue()` records a shown capture failure on the session (`POST /hosted/capture-issue`); it never changes the session, never bills and never counts as an attempt. `<LivenessCapture>` and the document step of `<SekyroVerification>` report the errors they show.
|
|
50
|
+
|
|
51
|
+
The result screen explains an owner check refused because the same person already earned the starting credit (`failureReason: "starter_credit_claimed"`, hosted owner checks only), in every SDK language.
|
|
52
|
+
- 4555bac: A flow can let the person choose how the face video is filmed. When the session's capture mode is `choice`, the person picks once, before the first camera step, between filming themselves and having an agent film them; the pick holds for the whole session, including the portrait camera. `@sekyro/web`: `Verification.chooseCaptureMode(mode)` records the pick, `captureChoice` reads it, `captureMode()` returns `"choice"` until a pick and the pick after, and the pick is sent with the capture (`input.capture.mode`). `CaptureMode` gains `"choice"` and the new `ResolvedCaptureMode` is `"self" | "assisted"`. The portrait still is encoded at the camera's full size. `@sekyro/react`: `<LivenessCapture>` and `<PortraitCapture>` show the new `CaptureModePicker` when the session is `choice` and nobody has picked yet, in every SDK language.
|
|
53
|
+
- 64ca525: `es`, `pt` and `de` now translate every screen, the identity screens (document, ID number, registry, chip, eID, summary) and the shared errors and reasons included; before, they covered the Human copy and showed English elsewhere. The copy still loads on demand, only for those locales. React Native: without a `locale`, the flow follows a device language of `es`, `pt` or `de` too.
|
|
54
|
+
- Updated dependencies [5c480f8]
|
|
55
|
+
- Updated dependencies [61f92b1]
|
|
56
|
+
- Updated dependencies [4555bac]
|
|
57
|
+
- Updated dependencies [c8ec50f]
|
|
58
|
+
- @sekyro/web@0.1.0-rc.19
|
|
59
|
+
|
|
3
60
|
## 0.1.0-rc.15
|
|
4
61
|
|
|
5
62
|
### Minor Changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as r}from"./chunk-2KED7D2Q.js";import{forwardRef as g}from"react";import{jsx as h}from"react/jsx-runtime";var z=g(r(function({kind:t="primary",full:n=!1,className:a,type:o,...s},c){let i=["sekyro-btn",`sekyro-btn--${t}`];return n&&i.push("sekyro-btn--full"),a!==void 0&&i.push(a),h("button",{ref:c,type:o??"button",className:i.join(" "),...s})},"Button"));var d={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds. Keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work. A few adjustments will help:","capture.retryCoaching.light":"Find good lighting, with the light on your face and not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected. Connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera. Close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS). Reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format. Open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable. Try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face. Hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot. Light your face","fcv3.too_bright":"Too much light. Move out of direct light","fcv3.hold_still":"Perfect, hold still","fcv3.steady_camera":"Hold the phone steady","fcv3.hold_upright":"Hold the phone upright","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm your number","reasons.result_from_cache":"The registry check was confirmed from a recent copy of the registry","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against. The requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry. A reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.id_number_invalid":"The ID number is not valid","reasons.registry_record_not_found":"No record was found in the registry for this ID number","reasons.document_id_number_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided, so your verification went to human review","reasons.capture_back_camera":"Use the front camera. Hold the phone in front of your face and try again","reasons.capture_not_upright":"Hold your phone upright, not sideways, and try again","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","hints.appearance":"Let's try again: face a light source and hold still.","hints.motion":"Hold still and keep the phone steady, then try again.","hints.lighting":"Face a window or a lamp so your face is well lit, then try again.","hints.framing":"Move closer so your face fills the frame, then try again.","reasons.subject_revoked":"The identity on file for this check is no longer available. The requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"Keep your face in the frame the whole time, then try again.","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my Mauritanian national ID number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not confirm this browser session is genuine. Reload the page and try again","errors.network_error":"We could not reach the verification service. Check your internet connection and try again","errors.session_expired":"This verification session has expired. Ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number. Ask the requester for a new link","errors.id_number_unbound":"This link was created without your ID number. Ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source and avoid strong light behind you","capture.tips.uncover":"Uncover your face: no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face: no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera. Choose Allow","capture.permission.denied":"Camera access is blocked. Allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.assisted.title":"Capture the person's face","capture.assisted.lead":"Point the back camera at the person's face and hold the phone upright. The voice guidance speaks to the person being filmed.","capture.assisted.stage":"Point the camera at the person's face","capture.modePicker.legend":"Who is taking the video?","capture.modePicker.self":"Me","capture.modePicker.assisted":"Someone is helping me","capture.modePicker.help":"Choose Someone is helping me when another person holds the phone and films you.","capture.modePicker.continue":"Continue","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection. This can take a moment on a slow connection","capture.ready":"Ready. Start when you are","fcv2.err.models":"The face-detection models could not be loaded. Check your connection and try again"};var f={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ. أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة. بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة، بحيث يكون الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا. وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا. أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS). افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة. افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة. أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك. أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة. أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا. تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز، لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","fcv3.hold_upright":"أمسك الهاتف بشكل عمودي","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد رقمك","reasons.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها. على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني. سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.id_number_invalid":"رقم الهوية غير صالح","reasons.registry_record_not_found":"لم يُعثر على أي سجل لرقم الهوية هذا في السجل","reasons.document_id_number_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد، لذا أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","hints.appearance":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","hints.motion":"ابقَ ثابتًا وأمسك الهاتف بثبات، ثم حاول مجددًا.","hints.lighting":"اجعل وجهك مقابل نافذة أو مصباح حتى يكون مضاءً جيدًا، ثم حاول مجددًا.","hints.framing":"اقترب أكثر حتى يملأ وجهك الإطار، ثم حاول مجددًا.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة. على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"أبقِ وجهك داخل الإطار طوال الوقت، ثم حاول مجددًا.","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال الرقم الوطني للتعريف الموريتاني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر التأكد من سلامة جلسة المتصفح. أعد تحميل الصفحة وحاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق. تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه. اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف. اطلب رابطًا جديدًا من الجهة الطالبة","errors.id_number_unbound":"أُنشئ هذا الرابط دون رقم هويتك. اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك وتجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك: بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك: بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا. اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور. اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.assisted.title":"صوّر وجه الشخص","capture.assisted.lead":"وجّه الكاميرا الخلفية نحو وجه الشخص وأمسك الهاتف بشكل عمودي. الإرشادات الصوتية تخاطب الشخص الذي تصوّره.","capture.assisted.stage":"وجّه الكاميرا نحو وجه الشخص","capture.modePicker.legend":"من يصوّر الفيديو؟","capture.modePicker.self":"أنا","capture.modePicker.assisted":"شخص يساعدني","capture.modePicker.help":"اختر شخص يساعدني عندما يحمل شخص آخر الهاتف ويصوّرك.","capture.modePicker.continue":"متابعة","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك. قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز. ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه. تحقق من اتصالك ثم أعد المحاولة"};var _={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes. Gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti. Quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé, avec la lumière sur le visage et non derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée. Branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application. Fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS). Rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible. Ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible. Réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage. Tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux. Éclairez votre visage","fcv3.too_bright":"Trop de lumière. Évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait, ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","fcv3.hold_upright":"Tenez le téléphone à la verticale","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer votre numéro","reasons.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie. C'est au demandeur de le résoudre : reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil. Un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.id_number_invalid":"Le numéro d'identité n'est pas valide","reasons.registry_record_not_found":"Aucun dossier n'a été trouvé dans le registre pour ce numéro d'identité","reasons.document_id_number_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement, votre vérification part donc en revue humaine","reasons.capture_back_camera":"Utilisez la caméra avant. Tenez le téléphone devant votre visage et réessayez","reasons.capture_not_upright":"Tenez votre téléphone à la verticale, pas à l'horizontale, et réessayez","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Réessayons : placez-vous face à une source de lumière et restez immobile.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","hints.appearance":"Réessayons : placez-vous face à une source de lumière et restez immobile.","hints.motion":"Restez immobile et tenez le téléphone bien stable, puis réessayez.","hints.lighting":"Placez-vous face à une fenêtre ou une lampe pour que votre visage soit bien éclairé, puis réessayez.","hints.framing":"Rapprochez-vous pour que votre visage remplisse le cadre, puis réessayez.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible. Le demandeur doit lancer une vérification complète : réessayer n'y changera rien","reasons.probe_not_from_liveness":"Gardez votre visage dans le cadre tout du long, puis réessayez.","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national d'identification mauritanien (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu confirmer l'authenticité de cette session de navigateur. Rechargez la page et réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification. Vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré. Demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification. Demandez un nouveau lien à l'organisme demandeur","errors.id_number_unbound":"Ce lien a été créé sans votre numéro d'identité. Demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière et évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage : ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage : ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra. Choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué. Autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.assisted.title":"Filmez le visage de la personne","capture.assisted.lead":"Pointez la caméra arrière vers le visage de la personne et tenez le téléphone à la verticale. Le guidage vocal s'adresse à la personne filmée.","capture.assisted.stage":"Pointez la caméra vers le visage de la personne","capture.modePicker.legend":"Qui filme ?","capture.modePicker.self":"Moi","capture.modePicker.assisted":"Quelqu'un m'aide","capture.modePicker.help":"Choisissez Quelqu'un m'aide quand une autre personne tient le téléphone et vous filme.","capture.modePicker.continue":"Continuer","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil. Cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt. Commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage. Vérifiez votre connexion puis réessayez"};var u={},l=r(e=>e==="es"||e==="pt"||e==="de","isOverlayLocale");function P(e){return l(e)?"en":e}r(P,"baseLocale");function N(e){return l(e)?u[e]:void 0}r(N,"overlayOf");function v(e){return l(e)&&u[e]===void 0}r(v,"overlayPending");function q(e){return v(e)?(e==="es"?import("./overlay-es-6KRUPYG4.js"):e==="pt"?import("./overlay-pt-QEAE4TDI.js"):import("./overlay-de-YQA44XTY.js")).then(n=>{u[e]=n.overlay},()=>{u[e]={}}):Promise.resolve()}r(q,"loadSekyroLocale");var p=Object.freeze({"reasons.id_number_invalid":"reasons.nni_invalid","reasons.registry_record_not_found":"reasons.nni_not_found","reasons.document_id_number_mismatch":"reasons.document_nni_mismatch","errors.id_number_unbound":"errors.nni_unbound","population.reason_id_number_invalid":"population.reason_nni_invalid","population.reason_registry_record_not_found":"population.reason_nni_not_found","population.reason_registry_record_not_found_or_document":"population.reason_nni_not_found_or_document","summary.id_number":"summary.nni"}),y=new Map(Object.entries(p).filter(([e])=>e.startsWith("reasons.")).map(([e,t])=>[t.slice(8),e.slice(8)]));function m(e){return y.get(e)??e}r(m,"genericReason");function O(e,t){let n=e,a=t;for(let[o,s]of Object.entries(p)){let c=a[o],i=a[s];typeof c!="string"&&typeof i=="string"?n[o]=i:typeof i!="string"&&typeof c=="string"&&(n[s]=c)}}r(O,"aliasRenamedKeys");function E(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";case"upright":return"fcv3.hold_upright";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}r(E,"hintStringKey");function j(e){let t=`hints.${e}`;return Object.hasOwn(d,t)?t:null}r(j,"retakeHintStringKey");function V(e){return`fcv2.err.${e}`}r(V,"captureErrorStringKey");function B(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":case"id_number_unbound":return"errors.id_number_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${m(e)}`;return Object.hasOwn(d,t)?t:null}}}r(B,"reasonStringKey");function F(e,t,n=new Date){if(t===void 0)return null;let a=new Date(t),o=a.getTime()-n.getTime();if(!Number.isFinite(o)||o<=0)return null;if(o<36e5){let i=Math.max(1,Math.ceil(o/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(i,"minute")}}let s=a.toDateString()===n.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...s?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(a)}}r(F,"retryAfterTime");function U(e,t,n){let a=new Intl.PluralRules(t).select(n);return((a==="other"?void 0:e[`capture.attemptsRemaining.${a}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(n))}r(U,"attemptsRemainingText");import{useCallback as b}from"react";function J(){return b(e=>{e?.focus()},[])}r(J,"useFocusOnMount");import{jsx as w}from"react/jsx-runtime";function ee({tone:e,role:t,children:n,testId:a}){return w("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":a,children:n})}r(ee,"Notice");export{z as a,d as b,m as c,O as d,f as e,_ as f,P as g,N as h,v as i,q as j,E as k,j as l,V as m,B as n,F as o,U as p,ee as q,J as r};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var e={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق بهويتك الرقمية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل رمز الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز. اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك. اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات. تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا. أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"};var n={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter your eID code","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired. Get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect. Check it and enter it again","reasons.eid_code_expired":"Your code has expired. Get a new code to continue","reasons.eid_locked":"Too many incorrect codes. eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now. Try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes. Enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"};var d={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Votre code {provider}","eid.codeTitleGeneric":"Saisissez votre code eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré. Demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré. Demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects. La connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment. Réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"};export{e as a,n as b,d as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{d as I}from"./chunk-A6UYUVEG.js";import{a as S}from"./chunk-25KWDPLY.js";import{a as n}from"./chunk-2KED7D2Q.js";import{jsx as y,jsxs as R}from"react/jsx-runtime";var P=Array.from({length:56},(t,e)=>{let s=e/56*2*Math.PI-Math.PI/2,o=Math.cos(s),a=Math.sin(s);return{id:`tick-${e}`,frac:e/55,x1:150+108*o,y1:150+108*a,x2:150+138*o,y2:150+138*a,style:{transitionDelay:`${e*6}ms`}}});function T(t,e,s,o){return s?"var(--sekyro-color-success)":t?o?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":e<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":e<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}n(T,"tickColor");var A="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";function x({progress:t,phase:e,draining:s=!1}){let o=Math.min(1,Math.max(0,t)),a=Math.round(o*56),c=e==="checking",f=e==="recording",u=e==="frozen",l=c||u,_=c||f||u,d=e==="locked"||_,p=s&&!d;return R("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":e,"data-filled":a,"data-recording":f?"":void 0,"data-draining":p?"":void 0,children:[y("path",{fillRule:"evenodd",d:A,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),R("g",{className:e==="locked"?"sekyro-capture-settle":void 0,children:[y("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:P.map((i,C)=>y("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:T(C<a,i.frac,d,p),strokeWidth:3,strokeLinecap:"round",style:i.style,className:"sekyro-arc__tick"},i.id))}),y("g",{className:e==="seeking"?"sekyro-capture-breathe":void 0,children:y("circle",{cx:150,cy:150,r:100,fill:"none",stroke:d?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:d?3.5:2.5,className:_?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}n(x,"CaptureArc");import{jsx as r,jsxs as k}from"react/jsx-runtime";function B({videoRef:t,guidanceText:e,guidanceHint:s,guidanceKey:o,progress:a,phase:c,draining:f=!1,stillUrl:u,showChecking:l,onSwitchCamera:_,canSwitchCamera:d,operatorText:p=null,voicePrompt:i,overlay:C,reduceMotion:E=!1}){let m=I(),b=c==="checking",g=b||c==="frozen",h=g&&l?m("capture.checking"):e,v=i?.(s,h,o);return k("div",{className:E?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[r("video",{ref:t,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),u!==null&&g?r("img",{src:u,alt:m("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,r(x,{progress:a,phase:c,draining:f}),C?.(t),v!=null&&!g?r("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:v}):null,d?r(S,{kind:"chip",onClick:_,"aria-label":m("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:r(G,{})}):null,b&&l?k("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[r(U,{}),m("capture.cameraOff")]}):null,k("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[r("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:h},h),g&&l?r("span",{className:"sekyro-stage__guidance-hint",children:m("capture.checkingHint")}):p!==null&&!g?r("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:p}):null]})]})}n(B,"CaptureStage");function G(){return k("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[r("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),r("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),r("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}n(G,"FlipCameraIcon");function U(){return k("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[r("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),r("path",{d:"M3 3l18 18"})]})}n(U,"CameraOffIcon");import{hasMultipleCameras as H,subscribeCameraPermission as $}from"@sekyro/web";import{useEffect as N,useState as M}from"react";function J(){let[t,e]=M({state:"unknown",settled:!1}),[s,o]=M({canChoose:!1,settled:!1});return N(()=>$(a=>e({state:a,settled:!0})),[]),N(()=>{let a=!0;return H().then(c=>{a&&o({canChoose:c,settled:!0})},()=>{a&&o({canChoose:!1,settled:!0})}),()=>{a=!1}},[]),{permission:t.state,permissionSettled:t.settled,canChooseFacing:s.canChoose,facingSettled:s.settled}}n(J,"useCameraStatus");import{screenRampColourValue as D}from"@sekyro/web";import{jsx as V}from"react/jsx-runtime";function te({colour:t}){return t===null?null:V("div",{"aria-hidden":"true","data-testid":"sekyro-screen-ramp","data-colour":t,style:{position:"fixed",inset:0,pointerEvents:"none",backgroundColor:D(t)}})}n(te,"ScreenRampLayer");export{B as a,G as b,J as c,te as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as u}from"./chunk-2KED7D2Q.js";import{createContext as s}from"react";var p=s(null);function a(t,n,r){let e=n.detail;return{check:t,kind:n.kind,...e?.name!==void 0?{name:e.name}:{},...e?.phase!==void 0?{phase:e.phase}:{},...e?.engineKind!==void 0?{engineKind:e.engineKind}:{},attempt:Math.max(0,Math.min(1e3,r))}}u(a,"captureIssueOf");function o(t,n){if(t!==void 0)try{t(n)}catch{}}u(o,"sendCaptureIssue");export{p as a,a as b,o as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{b as i,d as u,e as f,f as y,g,h as S,i as l,j as p}from"./chunk-25KWDPLY.js";import{a as s}from"./chunk-2KED7D2Q.js";import{createContext as m,useContext as x,useEffect as L,useState as v}from"react";var d={ar:f,fr:y,en:i};function T(e,t){let n=S(e),r=n===void 0?d[g(e)]:{...d.en,...n};if(t===void 0)return r;let o={...r};for(let a of Object.keys(t)){let c=t[a];typeof c=="string"&&(o[a]=c)}return u(o,t),o}s(T,"resolveStrings");function w(e){let[,t]=v(0),n=l(e);return L(()=>{if(!n)return;let r=!0;return p(e).then(()=>r&&t(o=>o+1)),()=>{r=!1}},[e,n]),!n}s(w,"useLocaleReady");var k=m(e=>i[e]??""),C=k.Provider;function I(){return x(k)}s(I,"useStrings");export{T as a,w as b,C as c,I as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as an,c as ln,d as un}from"./chunk-6I7GU4FS.js";import{b as cn,c as Ze}from"./chunk-7MMT5M4E.js";import{a as rn,b as on,c as sn,d as O}from"./chunk-A6UYUVEG.js";import{a as B,k as Qt,l as Jt,m as Xt,n as en,o as tn,p as nn,q as $,r as We}from"./chunk-25KWDPLY.js";import{a as r}from"./chunk-2KED7D2Q.js";import{useEffect as dn,useId as kr,useRef as Cr,useState as br}from"react";import{jsx as Z,jsxs as Qe}from"react/jsx-runtime";var Sr=220;function Je({title:e,description:t,options:s,busy:n,error:o,focus:c,testId:a,look:p="cards",marked:g,onChoose:d}){let M=kr(),N=We(),[b,l]=br(null),v=Cr(null);dn(()=>{o!==null&&l(null)},[o]),dn(()=>()=>{v.current!==null&&clearTimeout(v.current)},[]);let k=r(u=>{n||b!==null||(l(u),v.current=setTimeout(()=>{v.current=null,l(null),d(u)},Sr))},"choose");return Qe("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":M,"data-testid":a,children:[Qe("div",{className:p==="cards"?"sekyro-heading":"sekyro-stack sekyro-stack--1",children:[Z("h2",{id:M,ref:c?N:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?Z("p",{className:"sekyro-text-muted",children:t}):null]}),o!==null?Z($,{tone:"danger",children:Z("span",{children:o})}):null,p==="buttons"?Z("div",{className:"sekyro-stack sekyro-stack--3",children:s.map((u,w)=>Z(B,{kind:w===0?"primary":"ghost",full:!0,disabled:n,"aria-busy":n||void 0,onClick:()=>d(u.id),children:u.label},u.id))}):Z("div",{className:"sekyro-choices",children:s.map(u=>Qe("button",{type:"button",className:"sekyro-card","aria-pressed":(b??g)===u.id,"aria-busy":n||void 0,disabled:n||b!==null&&b!==u.id,onClick:()=>k(u.id),children:[u.glyph!==void 0?Z("span",{className:"sekyro-card__tile",children:u.glyph}):null,Qe("span",{className:"sekyro-card__body",children:[Z("span",{className:"sekyro-card__title",children:u.label}),u.sub!==void 0?Z("span",{className:"sekyro-card__sub",children:u.sub}):null]}),Z("span",{className:"sekyro-radio","aria-hidden":"true"})]},u.id))})]})}r(Je,"ChoiceScreen");import{useId as Vr}from"react";import{Fragment as Rr,jsx as L,jsxs as J}from"react/jsx-runtime";function X({className:e,children:t}){return L("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})}r(X,"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 pn(e){return J(X,{...e,children:[L("circle",{cx:"12",cy:"12",r:"4"}),L("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"})]})}r(pn,"SunIcon");function fn(e){return J(X,{...e,children:[L("circle",{cx:"12",cy:"12",r:"9"}),L("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}r(fn,"FaceUncoveredIcon");function mn(e){return J(X,{...e,children:[L("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),L("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),L("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}r(mn,"PhoneEyeLevelIcon");function yn(e){return J(X,{...e,children:[L("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"}),L("circle",{cx:"12",cy:"12",r:"2.8"})]})}r(yn,"LookStraightIcon");function gn(e){return J(X,{...e,children:[L("path",{d:yt}),L("path",{d:"M9 13l2 2 4-4"})]})}r(gn,"CameraCheckIcon");function hn(e){return J(X,{...e,children:[L("path",{d:yt}),L("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"})]})}r(hn,"CameraAskIcon");function vn(e){return J(X,{...e,children:[L("path",{d:yt}),L("path",{d:"M3 3l18 18"})]})}r(vn,"CameraBlockedIcon");function be({off:e,className:t}){return J(X,{className:t,children:[L("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?L("path",{d:"M4 4l16 16"}):J(Rr,{children:[L("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),L("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}r(be,"SpeakerIcon");function kn(e){return L(X,{...e,children:L("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}r(kn,"CheckIcon");function Cn(e){return J(X,{className:e.className??"sekyro-spinner",children:[L("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),L("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}r(Cn,"SpinnerIcon");import{jsx as le,jsxs as bn}from"react/jsx-runtime";var Xe=["light","uncover","eyeLevel","straight"],Mr={light:{key:"capture.tips.light",icon:r(()=>le(pn,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:r(()=>le(fn,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:r(()=>le(mn,{}),"icon")},straight:{key:"capture.tips.straight",icon:r(()=>le(yn,{}),"icon")}};function Sn({tips:e}){let t=O(),s=Vr();return e.length===0?null:bn("section",{className:"sekyro-tips","aria-labelledby":s,"data-testid":"sekyro-tips",children:[le("p",{className:"sekyro-tips__title",id:s,children:t("capture.tips.title")}),le("ul",{className:"sekyro-tips__list",children:e.map(n=>{let o=typeof n=="string"?Mr[n]:void 0,c=typeof n=="string"?n:n.id,a=o!==void 0?o.icon():typeof n=="string"?void 0:n.icon,p=o!==void 0?t(o.key):typeof n=="string"?n:n.text;return bn("li",{className:"sekyro-tips__item",children:[a!=null?le("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:a}):null,le("span",{children:p})]},c)})})]})}r(Sn,"TipList");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","capture.tips.summary"];function fe(e){return e!==null&&et.includes(e)}r(fe,"isVoiceKey");import{useCallback as te,useEffect as me,useLayoutEffect as Ir,useMemo as xr,useRef as Re,useState as Te}from"react";var Lr=r((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");function Se(e,t,s){let n;try{if(typeof e=="function")n=e(t,s);else{let o=e[s];n=o!=null&&Lr(o,t)?o[t]:null}}catch{return null}return typeof n=="string"&&n!==""?n:null}r(Se,"resolveClip");var wr="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",Mn={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};function ee(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}r(ee,"synth");function Nr(){return ee()!==null&&typeof SpeechSynthesisUtterance=="function"}r(Nr,"speechAvailable");function Rn(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}r(Rn,"baseLang");function Ln(e,t){let s=r(o=>o.replace(/_/g,"-").toLowerCase(),"norm"),n=Rn(t);return e.find(o=>s(o.lang)===s(t))??e.find(o=>Rn(o.lang)===n)}r(Ln,"pickVoice");function wn(e){if(!Nr())return!1;let t=[];try{t=ee()?.getVoices()??[]}catch{return!0}return t.length===0||Ln(t,e)!==void 0}r(wn,"speechUsable");function Nn(e){let t=ee();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}r(Nn,"subscribeVoices");function Ae(e){try{let t=typeof location<"u"?location.href:"http://localhost/",s=new URL(e,t);return`clip:${s.origin}${s.pathname}`}catch{return`clip:${e}`}}r(Ae,"clipIdentity");function Vn(e){e.pause(),e.removeAttribute("src"),e.load()}r(Vn,"release");function In(){let e=null,t=null,s=0,n=null,o=[],c=new Map,a=r(()=>{o=ee()?.getVoices()??[]},"loadVoices"),p=!1,g=r(()=>{let l=ee();p||l===null||(p=!0,a(),l.addEventListener?.("voiceschanged",a))},"bindVoices"),d=r(()=>(e??(e=new Audio),e),"element"),M=r((l,v,k)=>{let u=ee();if(u!==null&&l!==""&&typeof SpeechSynthesisUtterance=="function"){g();let w=Ln(o,v);if(o.length===0||w!==void 0){u.cancel();let h=new SpeechSynthesisUtterance(l);h.lang=v,w!==void 0&&(h.voice=w),h.rate=.95,k!==void 0&&(h.onend=h.onerror=k),u.speak(h);return}}k?.()},"speak"),N=r(()=>{s+=1,n=null,e!==null&&(e.pause(),e.currentTime=0),ee()?.cancel()},"stop"),b=r(l=>{for(let v of l){let k=Ae(v);if(c.has(k))continue;let u=new Audio;u.preload="auto",u.src=v,c.set(k,u)}},"warmClips");return{say(l){let v=l.url!==null?Ae(l.url):`tts:${l.lang}:${l.text}`;if(v===n)return;n=v,s+=1;let k=s,u=l.onEnd,w=u!==void 0?()=>{k===s&&u()}:void 0;if(ee()?.cancel(),l.url!==null){let h=d();h.pause(),h.muted=!1,h.src=l.url,h.currentTime=0,h.onended=w??null,h.play()?.catch(R=>{k===s&&R?.name!=="AbortError"&&(l.speech?M(l.text,l.lang,w):w?.())});return}l.speech?M(l.text,l.lang,w):w?.()},unlock({lang:l,speech:v,prefetch:k}){let u=d();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let R=Uint8Array.from(atob(wr),P=>P.charCodeAt(0));t=URL.createObjectURL(new Blob([R],{type:"audio/wav"}))}let w=u.paused===!1&&t!==null&&u.src!==t;t!==null&&!w&&(u.muted=!0,u.onended=null,u.src=t,u.play()?.catch(()=>{}));let h=ee();if(v&&h!==null&&typeof SpeechSynthesisUtterance=="function"){g();let R=new SpeechSynthesisUtterance(" ");R.volume=0,R.lang=l,h.speak(R)}b(k??[])},prefetch:b,stop:N,dispose(){N(),p&&ee()?.removeEventListener?.("voiceschanged",a),p=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&Vn(e),e=null;for(let l of c.values())Vn(l);c.clear()}}}r(In,"createVoicePlayer");var xn="sekyro.voiceGuidance";function _n(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}}r(_n,"readVoicePreference");function En(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}r(En,"writeVoicePreference");var Oe="capture.tips.summary",_r=typeof window<"u"?Ir:me,Er=Object.freeze({});function gt(e,t){let s=new Set,n=[];for(let o of et){let c=o===Oe?null:Se(e,o,t);c===null||s.has(Ae(c))||(s.add(Ae(c)),n.push(c))}return n}r(gt,"resolvedClipUrls");function ht({locale:e,defaultClips:t,options:s}){let n=s===!1,o=n?{}:s??{},c=o.storageKey===void 0?xn:o.storageKey,[a,p]=Te(o.defaultEnabled??!0),g=Re(a),[d,M]=Te(!1),[N,b]=Te("none"),[l,v]=Te(!1),k=Re(!1),[u,w]=Te(0),h=Re(null),R=te(()=>(h.current??(h.current=In()),h.current),[]),P=Mn[e],K=o.speechFallback,m=K===void 0||K===!0?!0:K===!1?!1:K.includes(e),q=o.clips??t??Er,F=Re(!1),j=Re(q);_r(()=>{j.current=q,g.current=a}),me(()=>{if(n||c===null)return;let C=_n(c);C!==null&&(g.current=C,p(C))},[n,c]),me(()=>{if(!(n||!m))return Nn(()=>w(C=>C+1))},[n,m]);let i=o.clips;me(()=>{if(n)return;let C=m&&wn(P);M(gt(q,e).length>0||C),b(i!==void 0&&Se(i,Oe,e)!==null?"partner":Se(q,Oe,e)!==null||C?"default":"none")},[n,q,i,e,m,P,u]),me(()=>{if(n||!a||!F.current)return;let C=gt(q,e);C.length>0&&R().prefetch(C)},[n,a,q,e,R]),me(()=>()=>{h.current?.dispose(),h.current=null,F.current=!1},[]);let A=te(C=>{n||(F.current=!0,R().unlock({lang:P,speech:m,...C?{prefetch:gt(j.current,e)}:{}}))},[n,R,P,m,e]),I=te(()=>A(g.current),[A]),x=te(()=>{k.current=!1,v(!1)},[]),_=te(()=>{x(),h.current?.stop()},[x]),se=te(()=>{k.current&&_()},[_]),ue=te((C,W)=>{if(n)return;if(k.current){_();return}let H=R();H.stop(),k.current=!0,v(!0);let ne=W?.clip===!1?null:Se(j.current,Oe,e);H.say({url:ne,text:C,lang:P,speech:m,onEnd:x})},[n,_,R,e,P,m,x]),T=te(C=>{n||(C?A(!0):_(),c!==null&&En(c,C),g.current=C,p(C))},[n,A,_,c]),E=te(()=>T(!g.current),[T]),de=te((C,W)=>{if(n||!a)return;k.current&&x();let H=Se(j.current,C,e);R().say({url:H,text:W,lang:P,speech:m})},[n,a,e,R,P,m,x]);return xr(()=>({supported:!n&&d,enabled:!n&&a,setEnabled:T,toggle:E,unlock:I,speakKey:de,stop:_,summary:n?"none":N,summaryPlaying:l,toggleSummary:ue,stopSummary:se}),[n,d,a,T,E,I,de,_,N,l,ue,se])}r(ht,"useVoiceGuidance");function vt(e,t,s,n){let{speakKey:o,stop:c,enabled:a}=e,p=Re(!1);me(()=>{if(!n||!a){p.current&&c(),p.current=!1;return}p.current=!0,fe(t)&&t!==Oe&&s!==""&&o(t,s)},[n,a,t,s,o,c])}r(vt,"useSpeakGuidance");import{isValidElement as lo,useCallback as it,useContext as uo,useEffect as oe,useMemo as we,useRef as he,useState as cr}from"react";import{useEffect as Pr,useRef as Ar}from"react";import{jsx as Ve,jsxs as kt}from"react/jsx-runtime";function Pn({showCoaching:e,attemptsText:t,showRetake:s,onRetake:n}){let o=O(),c=Ar(null);return Pr(()=>{s&&c.current?.focus()},[s]),!e&&!s?null:kt("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?kt("div",{className:"sekyro-stack sekyro-stack--1",children:[Ve("p",{className:"sekyro-text-body",children:o("capture.retryCoaching.title")}),kt("ul",{className:"sekyro-coaching",children:[Ve("li",{children:o("capture.retryCoaching.light")}),Ve("li",{children:o("capture.retryCoaching.eyeLevel")}),Ve("li",{children:o("capture.retryCoaching.head")})]}),t!==null?Ve("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:t}):null]}):null,s?Ve(B,{ref:c,className:"sekyro-btn--start",onClick:n,children:o("capture.recordAgain")}):null]})}r(Pn,"CapturedPanel");function tt(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}r(tt,"isDevBuild");import{createContext as An}from"react";var Tn=An(null),On=An(null);import{useContext as Tr,useId as Or,useState as Kr}from"react";import{jsx as ye,jsxs as nt}from"react/jsx-runtime";var Kn=["self","assisted"];function Fn({onChoose:e,legend:t,help:s}){let n=O(),o=Or(),c=`${o}-help`,[a,p]=Kr("self"),g=Tr(On);return g!==null?ye(Je,{title:t??n("capture.modePicker.legend"),description:s??n("capture.modePicker.help"),options:Kn.map(d=>({id:d,label:n(`capture.modePicker.${d}`),...g[d]!==void 0?{glyph:g[d]}:{}})),busy:!1,error:null,focus:!0,testId:"sekyro-capture-mode",onChoose:d=>e(d)}):nt("form",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-capture-mode",onSubmit:d=>{d.preventDefault(),e(a)},children:[nt("fieldset",{className:"sekyro-segmented","aria-describedby":c,children:[ye("legend",{className:"sekyro-segmented__legend",children:t??n("capture.modePicker.legend")}),ye("div",{className:"sekyro-segmented__options",children:Kn.map(d=>nt("label",{className:"sekyro-segmented__option",children:[ye("input",{type:"radio",className:"sekyro-segmented__input",name:o,value:d,checked:a===d,onChange:()=>p(d)}),nt("span",{className:"sekyro-segmented__face",children:[ye("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),n(`capture.modePicker.${d}`)]})]},d))})]}),ye("p",{id:c,className:"sekyro-text-muted",children:s??n("capture.modePicker.help")}),ye(B,{type:"submit",full:!0,children:n("capture.modePicker.continue")})]})}r(Fn,"CaptureModePicker");import{useCallback as qn,useEffect as Dn,useRef as Me}from"react";import{useId as Fr}from"react";import{jsx as rt,jsxs as Ct}from"react/jsx-runtime";var Br=["user","environment"];function Bn({value:e,onChange:t}){let s=O(),n=Fr();return Ct("fieldset",{className:"sekyro-segmented","data-testid":"sekyro-facing",children:[rt("legend",{className:"sekyro-segmented__legend",children:s("capture.cameraLabel")}),rt("div",{className:"sekyro-segmented__options",children:Br.map(o=>Ct("label",{className:"sekyro-segmented__option",children:[rt("input",{type:"radio",className:"sekyro-segmented__input",name:n,value:o,checked:e===o,onChange:()=>t(o)}),Ct("span",{className:"sekyro-segmented__face",children:[rt("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),s(`capture.facing.${o}`)]})]},o))})]})}r(Bn,"FacingPicker");import{useEffect as Hr,useState as Ur}from"react";import{jsx as Ke,jsxs as Gr}from"react/jsx-runtime";function Hn({state:e}){let t=O(),[s,n]=Ur(!1);Hr(()=>{e!=="unknown"&&n(!0)},[e]);let o=e==="granted"?Ke(gn,{}):e==="denied"?Ke(vn,{}):Ke(hn,{});return Gr("div",{role:s?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[Ke("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:o}),Ke("span",{children:t(`capture.permission.${e}`)})]})}r(Hn,"PermissionRow");import{jsx as ot,jsxs as Un}from"react/jsx-runtime";function Gn({voice:e}){let t=O();if(!e.supported)return null;let s=e.enabled;return Un("button",{type:"button",role:"switch","aria-checked":s,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[Un("span",{className:"sekyro-switch__label",children:[ot(be,{off:!s}),t("capture.voiceGuidance")]}),ot("span",{className:"sekyro-switch__track","aria-hidden":"true",children:ot("span",{className:"sekyro-switch__thumb",children:s?ot(kn,{className:"sekyro-switch__check"}):null})})]})}r(Gn,"VoiceSwitch");import{Fragment as Dr,jsx as G,jsxs as Le}from"react/jsx-runtime";function jn({assets:e,onRetryAssets:t,permission:s,captureMode:n="self",canChooseFacing:o,facing:c,onFacingChange:a,voice:p,tips:g,summary:d,startLabel:M,startDisabled:N,onStart:b}){let l=O(),v=Me(d?.stop);v.current=d?.stop,Dn(()=>()=>v.current?.(),[]);let k=Me(null),u=Me(null),w=Me(null),h=Me(e),R=Me(!1);Dn(()=>{let i=h.current;if(h.current=e,i===e)return;let A=R.current;e!=="loading"&&(R.current=!1),qr(k.current)&&(e==="failed"?w.current?.focus():A&&u.current?.focus())},[e]);let P=qn(()=>{R.current=!0,t()},[t]),K=e==="loading",m=K||N,q=qn(()=>{m||(v.current?.(),b())},[m,b]),F;e==="failed"?F=Le($,{tone:"danger",testId:"sekyro-assets-error",children:[G("p",{className:"sekyro-text-body",children:l("fcv2.err.models")}),G(B,{kind:"ghost",ref:w,className:"sekyro-btn--start",onClick:P,"data-testid":"sekyro-assets-retry",children:l("common.retry")})]}):F=Le("div",{className:"sekyro-stack sekyro-stack--1",children:[G(B,{ref:u,full:!0,"data-testid":"sekyro-start","aria-disabled":m?"true":void 0,"aria-busy":K?"true":void 0,onClick:q,children:K?Le(Dr,{children:[G(Cn,{}),l("capture.preparing.title")]}):M??l("capture.start")}),K?G("p",{className:"sekyro-text-muted",children:l("capture.preparing.hint")}):null]});let j=n==="assisted";return Le("div",{ref:k,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[j?Le("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[G("h2",{className:"sekyro-text-body",children:l("capture.assisted.title")}),G("p",{className:"sekyro-text-muted",children:l("capture.assisted.lead")})]}):null,g!==!1?G(Sn,{tips:g}):null,d!==void 0?Le(B,{kind:"ghost",className:"sekyro-btn--start",onClick:d.toggle,"data-testid":"sekyro-tips-listen",children:[G(be,{off:!1}),l(d.playing?"capture.tips.stop":"capture.tips.listen")]}):null,G(Hn,{state:s}),j&&o?G(Bn,{value:c,onChange:a}):null,G(Gn,{voice:p}),G("p",{className:"sekyro-text-muted",children:l("capture.securityNote")}),F,G("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?l("capture.preparing.title"):e==="ready"?l("capture.ready"):""})]})}r(jn,"PreCaptureScreen");function qr(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}r(qr,"focusIsOurs");import{useCallback as jr,useEffect as bt,useState as St}from"react";function $n(e){return Yn(e,"mobileRequired")}r($n,"useMobileRequired");function zn(e){return Yn(e,"returning").required}r(zn,"useReturning");function Yn(e,t){let[s,n]=St({required:!1,settled:e===void 0});return bt(()=>{let o=e?.[t];if(e===void 0||typeof o!="function"){n({required:!1,settled:!0});return}let c=!0;return n({required:!1,settled:!1}),Promise.resolve().then(()=>o.call(e)).then(a=>{c&&n({required:a===!0,settled:!0})},()=>{c&&n({required:!1,settled:!0})}),()=>{c=!1}},[e,t]),s}r(Yn,"useFlag");function Zn(e){let t=r(()=>e?.captureChoice??null,"initialChoice"),[s,n]=St(()=>({session:"self",choice:t(),settled:e===void 0}));bt(()=>{let a=e?.captureMode,p=e?.captureChoice??null;if(e===void 0||typeof a!="function"){n({session:"self",choice:p,settled:!0});return}let g=!0;return n({session:"self",choice:p,settled:!1}),Promise.resolve().then(()=>a.call(e)).then(d=>{let M=e.captureChoice??null;g&&n({session:M!==null&&d===M?"choice":d==="assisted"||d==="choice"?d:"self",choice:M,settled:!0})},()=>{g&&n({session:"self",choice:null,settled:!0})}),()=>{g=!1}},[e]);let o=jr(a=>{e?.chooseCaptureMode?.(a),n(p=>({...p,choice:a}))},[e]);return{mode:s.session==="choice"?s.choice??"self":s.session==="assisted"?"assisted":"self",session:s.session,choice:s.choice,settled:s.settled,choose:o}}r(Zn,"useCaptureMode");function Wn(e){let[t,s]=St(!1);return bt(()=>{if(s(!1),e===void 0)return;let n=e.on("busy",()=>s(!0)),o=e.on("result",()=>s(!1));return()=>{n(),o()}},[e]),t}r(Wn,"useBusy");import{getLivenessAssetsStatus as $r,preloadLivenessAssets as zr,subscribeLivenessAssets as Yr}from"@sekyro/web";import{useCallback as Rt,useEffect as Qn,useRef as Jn,useState as Zr,useSyncExternalStore as Wr}from"react";var Qr=r(()=>"idle","serverSnapshot");function Xn(e){return zr(e!==void 0?{assetBaseUrl:e}:{})}r(Xn,"preload");function er(e,t=!0){let s=Wr(Rt(N=>Yr(N,e),[e]),()=>$r(e),Qr),[n,o]=Zr(null),c=Jn(!1),a=Rt(()=>{Xn(e).then(N=>{c.current&&N==="idle"&&o({base:e})})},[e]);Qn(()=>(c.current=!0,a(),()=>{c.current=!1}),[a]);let p=Jn(null);Qn(()=>{if(s!=="idle"){p.current={base:e};return}!t||p.current===null||p.current.base!==e||(p.current=null,a())},[s,e,a,t]);let g=Rt(()=>{Xn(e)},[e]);return{gate:n!==null&&n.base===e&&s==="idle"||s==="ready"?"ready":s==="failed"?"failed":"loading",retry:g}}r(er,"useLivenessAssets");import{createLivenessCapture as Jr}from"@sekyro/web";import{useCallback as Vt,useEffect as Xr,useRef as ge,useState as z}from"react";var tr={progress:0,hint:null,faceDetected:!1};function nr(e){let{videoRef:t,assetBaseUrl:s}=e,o=ge(e.verification).current,c=ge(!1);e.verification!==o&&!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 a=ge(null),[p,g]=z("idle"),[d,M]=z(tr),[N,b]=z(!1),[l,v]=z(!1),[k,u]=z(null),[w,h]=z(!1),[R,P]=z(null),[K,m]=z(null),[q,F]=z(null),[j,i]=z(null),[A,I]=z(null),x=ge(null),_=ge("idle"),se=ge(-1),[ue,T]=z(0),E=ge(e);E.current=e,Xr(()=>{let H=t.current;if(H===null)return;let ne={video:H,...s!==void 0?{assetBaseUrl:s}:{}},S=o!==void 0?o.liveness(ne):Jr(ne);a.current=S;let Fe=r(()=>I(S.facingMode??null),"readFacing");Fe();let Ie=[S.on("state",f=>{f==="starting"?(_.current!=="starting"&&(se.current+=1,T(Math.max(0,se.current))),m(null),F(null),M(tr),v(!1),b(!1),u(null),P(null),x.current=null):f==="gating"&&_.current==="recording"&&(v(!1),b(!1),u(null),x.current=null),_.current=f,Fe(),g(f),E.current.onStateChange?.(f)}),S.on("gate",f=>{let ie=x.current;x.current=f.progress,b(ie!==null&&f.progress<ie-.001&&f.progress>0&&f.progress<1),f.progress>=1&&v(!0),M(f)}),S.on("frozen",({previewDataUrl:f})=>u(f)),S.on("profile",({animations:f})=>h(f==="reduced")),S.on("ramp",({colour:f})=>P(f)),S.on("captured",f=>{m(f),i(null),E.current.onCaptured?.(f)}),S.on("error",f=>{F(f);let ie=o?.reportCaptureIssue;ie!==void 0&&Ze(Be=>ie.call(o,Be),cn("liveness",f,Math.max(0,se.current))),E.current.onError?.(f)}),o?.on("result",f=>{i(f),E.current.onResult?.(f)})];return()=>{for(let f of Ie)f?.();a.current=null,S.destroy()}},[o,t,s]);let de=Vt(H=>{a.current?.start(H)},[]),C=Vt(()=>{a.current?.retry()},[]),W=Vt(()=>{let H=a.current,ne=H?.switchCamera()===!0;return ne&&(I(H?.facingMode??null),v(!1),b(!1),u(null),x.current=null),ne},[]);return{state:p,gate:d,draining:N,gateLocked:l,frozenPreview:k,reduceMotion:w,rampColour:R,artifacts:K,error:q,result:j,facingMode:A,start:de,retry:C,switchCamera:W,attempt:ue}}r(nr,"useLivenessHandle");import{useCallback as eo,useEffect as to,useState as st}from"react";var no=new Set(["national_number"]);function rr(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(s=>no.has(s));return t.length>0?{...e,options:t}:null}r(rr,"pending");function or(e){let[t,s]=st(null),[n,o]=st(e===void 0),[c,a]=st(!1),[p,g]=st(!1);to(()=>{if(s(null),e===void 0){o(!0);return}let b=!0,l=e.methodChoice;typeof l=="function"?(o(!1),Promise.resolve().then(()=>l.call(e)).then(k=>{b&&s(rr(k))},()=>{}).finally(()=>{b&&o(!0)})):o(!0);let v=e.on("method",k=>s(rr(k)));return()=>{b=!1,v()}},[e]);let d=eo(async b=>{if(e===void 0)return!1;a(!0),g(!1);try{return await e.selectMethod(b),s(null),!0}catch{return g(!0),!1}finally{a(!1)}},[e]),M=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:M==="national_number"&&!p?M:null,settled:n,busy:c,failed:p,select:d}}r(or,"useMethodChoice");import{useEffect as ro,useMemo as oo,useState as so}from"react";var io=["ar","fr","en"];function ao(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}}r(ao,"isClipUrl");function co(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let s={};for(let n of io){let o=t[n];if(!(typeof o!="object"||o===null))for(let[c,a]of Object.entries(o))!fe(c)||!ao(a)||((s[n]??(s[n]={}))[c]=a)}return Object.keys(s).length>0?s:null}r(co,"toVoiceClipMap");function sr(e){let[t,s]=so(null);ro(()=>{if(s(null),e===void 0)return;let o=!0,c=r(p=>{if(!o)return;let g=typeof p=="object"&&p!==null&&typeof p.setId=="string"?p:null;s(d=>d?.setId===g?.setId?d:g)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(c,()=>c(null))}catch{c(null)}let a=e.on("view",p=>c(p.voice));return()=>{o=!1,a()}},[e]);let n=oo(()=>t!==null?co(t):null,[t]);return e===void 0?null:n}r(sr,"useServerVoiceClips");import{jsx as ir}from"react/jsx-runtime";function ar({voice:e}){let t=O();return ir(B,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:ir(be,{off:!e.enabled,className:"sekyro-icon"})})}r(ar,"VoiceChip");import{Fragment as lr,jsx as V,jsxs as Ne}from"react/jsx-runtime";var po=800;function fo(e){return e===void 0||e!==!1&&e.length===Xe.length&&Xe.every(t=>e.includes(t))}r(fo,"isDefaultTips");function mo(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}r(mo,"carriesActivation");function yo(e){return typeof e=="object"&&e!==null&&!lo(e)&&"tone"in e&&"text"in e}r(yo,"isNoticeObject");var go=new Set(["nni_unbound","id_number_unbound","method_required","mobile_required","portrait_required"]);function ho(e){return e==="starting"||e==="gating"||e==="recording"}r(ho,"isCapturing");function vo(e){return e==="captured"||e==="uploading"||e==="checking"}r(vo,"isPostCapture");function Ui({verification:e,locale:t,dir:s,strings:n,slots:o,autoStart:c=!1,notice:a,startDisabled:p=!1,startLabel:g,tips:d,tipsSummary:M,coach:N,voice:b,onGuidance:l,onCaptured:v,onResult:k,onError:u,onStateChange:w,assetBaseUrl:h,className:R}){let P=on(t),K=we(()=>rn(t,n),[t,n,P]),m=we(()=>y=>K[y]??"",[K]),q=s??(t==="ar"?"rtl":"ltr"),F=he(null),j=uo(Tn),i=nr({verification:e,videoRef:F,assetBaseUrl:h,onCaptured:v,onResult:k,onError:u,onStateChange:w}),A=er(h,i.state==="idle"&&i.error===null),I=or(e),x=I.choice!==null,_=$n(e),se=zn(e),ue=Wn(e),T=ln(),E=Zn(e),de=E.settled&&E.session==="choice"&&E.choice===null,C=E.mode==="assisted",W=C&&T.canChooseFacing,H=b!==!1&&b?.clips===void 0,ne=sr(H?e:void 0),S=ht({locale:t,defaultClips:ne,options:b}),[Fe,Ie]=cr(null),f=C?Fe??(T.canChooseFacing?"environment":"user"):"user",ie=E.settled&&!de&&(!C||T.facingSettled),Be=he(null),He=he(!1),Mt=he(S.unlock);Mt.current=S.unlock,oe(()=>{let y=Be.current;if(y===null)return;let Q=["pointerup","touchend","click","keydown"],ce=r(()=>{for(let Pe of Q)y.removeEventListener(Pe,Ce,!0)},"disarm");function Ce(Pe){if(He.current){ce();return}mo(Pe)&&(He.current=!0,ce(),Mt.current())}r(Ce,"onGesture");for(let Pe of Q)y.addEventListener(Pe,Ce,{capture:!0,passive:!0});return ce},[]);let Lt=it(()=>{He.current||(He.current=!0,S.unlock()),i.start({facing:f})},[S.unlock,i.start,f]),wt=it(()=>i.start({facing:f}),[i.start,f]),Ue=he(!1),ve=i.state==="idle"&&i.error===null,Nt=!x&&!_.required&&(c===!0||c==="when-permitted"&&T.permission==="granted"),It=Nt&&I.settled&&_.settled&&ie,ur=c==="when-permitted"&&!T.permissionSettled&&!Ue.current,xt=Nt&&ve&&!Ue.current,at=(ur||xt||!ie)&&A.gate==="ready"?"loading":A.gate;oe(()=>{!It||!ve||A.gate!=="ready"||Ue.current||(Ue.current=!0,wt())},[It,ve,A.gate,wt]);let _t=de&&ve&&!x&&!_.required,dr=!_t&&ve&&!x&&!_.required&&!(xt&&A.gate==="ready"),Et=it(()=>{i.switchCamera()&&Ie(f==="user"?"environment":"user")},[i.switchCamera,f]),Pt=i.state!=="idle"&&i.facingMode!==null?i.facingMode:f;oe(()=>{let y=F.current?.style;Pt==="user"?y?.removeProperty("transform"):y&&(y.transform="none")},[Pt]);let Ge=we(()=>i.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(i.artifacts.keyframe):null,[i.artifacts]);oe(()=>{if(Ge!==null)return()=>URL.revokeObjectURL(Ge)},[Ge]);let At=i.frozenPreview??Ge,ke=e!==void 0,U=ho(i.state),ae=vo(i.state),qe=U||ae,Y=i.result,Tt=i.state==="done"&&Y!==null,Ot=i.state==="recording"&&i.frozenPreview!==null,ct=j!==null,xe=ae||Ot,Kt=ae?"checking":Ot?"frozen":i.state==="recording"?"recording":i.gateLocked||i.gate.progress>=1?"locked":i.gate.faceDetected?"aligning":"seeking",De=U?i.gate.hint:null,je=i.state==="starting"?"capture.preparing.title":De===null?null:De==="center"&&!i.gate.faceDetected?"fcv3.no_face":Qt(De),[pr,Ft]=cr(null);oe(()=>{if(je!=="fcv3.no_face"){Ft(je);return}if(!U)return;let y=setTimeout(()=>Ft(je),po);return()=>clearTimeout(y)},[je,U]);let lt=U&&typeof N=="string"&&N!=="",Bt=C&&U?m("capture.assisted.stage"):null,pe=U&&!lt?pr:null,ut=lt?N:pe===null?"":m(pe);vt(S,pe,ut,U);let Ht=he(l);Ht.current=l,oe(()=>{if(fe(pe))try{Ht.current?.(pe)}catch(y){console.error("[@sekyro/react] onGuidance threw:",y)}},[pe]);let _e=we(()=>({supported:S.supported,enabled:S.enabled,setEnabled:S.setEnabled,toggle:S.toggle}),[S.supported,S.enabled,S.setEnabled,S.toggle]),dt=o?.voicePrompt,Ut=dt!==void 0,Gt=b===void 0,qt=he(!1);oe(()=>{!Ut||!Gt||qt.current||!tt()||(qt.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,Gt]);let fr=dt!==void 0?(y,Q,ce)=>dt(y,Q,ce,_e):S.supported?()=>V(ar,{voice:_e}):void 0,{summary:pt,summaryPlaying:Dt,toggleSummary:jt,stopSummary:$t}=S,$e=M!==void 0&&M!=="",zt=$e?M:m("capture.tips.summary"),Yt=$e?pt!=="none":pt==="partner"||pt==="default"&&fo(d),mr=we(()=>Yt?{playing:Dt,toggle:r(()=>jt(zt,{clip:!$e}),"toggle"),stop:$t}:void 0,[Yt,Dt,jt,zt,$t,$e]),yr=we(()=>({assets:at,retryAssets:A.retry,permission:T.permission,permissionSettled:T.permissionSettled,captureMode:E.mode,facing:f,setFacing:Ie,canChooseFacing:W,voice:_e}),[at,A.retry,T.permission,T.permissionSettled,E.mode,W,f,_e]),gr=yo(a)?V($,{tone:a.tone,testId:"sekyro-host-notice",children:V("span",{children:a.text})}):a??null,re=Y!==null&&Y.status==="retry"?Y:null,D=Tt&&Y.status==="unavailable"&&!x&&Y.reason!=="portrait_required"?Y:null,Ee=Tt&&(Y.status==="approved"||Y.status==="rejected"||Y.status==="review")?Y:null,ze=r((y,Q)=>{if(y===void 0)return null;if(y==="device_cooldown"){let Ce=tn(t,Q);if(Ce!==null)return m(Ce.key).replace("{time}",Ce.time)}let ce=en(y);return ce===null?null:m(ce)},"reasonText"),ft=r(y=>{let Q=y.retakeHint===void 0?null:Jt(y.retakeHint);return Q===null?ze(y.reason):m(Q)},"retryText"),hr=D!==null&&D.reason!==void 0&&D.reason!=="nni_unbound"&&D.reason!=="id_number_unbound"&&D.reason!=="method_required"&&D.reason!=="mobile_required"&&!(D.reason==="no_recorder"&&i.artifacts?.degraded==="NO_RECORDER"),Ye=D?.reason,Zt=i.attempt;oe(()=>{D===null||Ye===void 0||e?.reportCaptureIssue===void 0||go.has(Ye)||Ze(y=>e.reportCaptureIssue?.(y),{check:"liveness",kind:"unavailable",phase:"upload",engineKind:Ye,attempt:Math.min(1e3,Zt)})},[D,Ye,Zt,e]);let Wt=We(),vr=x&&I.auto===null&&!U&&!ae&&i.error===null,mt=it(async y=>{await I.select(y)&&i.state==="done"&&i.retry()},[I.select,i.state,i.retry]);return oe(()=>{I.auto!==null&&!I.busy&&!U&&!ae&&mt(I.auto)},[I.auto,I.busy,U,ae,mt]),V(sn,{value:m,children:Ne("div",{ref:Be,className:R===void 0?"sekyro-capture":`sekyro-capture ${R}`,dir:q,lang:t,"data-testid":"sekyro-liveness-capture","data-state":i.state,children:[o?.header,re!==null&&ft(re)!==null&&!(ct&&qe)?V($,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:V("span",{children:ft(re)})}):null,ue&&ae&&!ct?V($,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:V("span",{children:m("capture.busy")})}):null,_.required&&ve?V($,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:V("span",{children:m("reasons.mobile_required")})}):null,i.error!==null?o?.errorPanel!==void 0?o.errorPanel(i.error,i.retry):Ne($,{tone:"danger",testId:"sekyro-error-notice",children:[V("span",{children:m(Xt(i.error.kind))}),i.error.retryable?V(B,{ref:Wt,kind:"ghost",className:"sekyro-btn--start",onClick:i.retry,children:m("common.retry")}):null]}):null,D!==null?Ne($,{tone:"danger",testId:"sekyro-unavailable-notice",children:[V("span",{children:ze(D.reason)??m(D.reason===void 0?"errors.session_expired":"errors.network_error")}),hr?V(B,{ref:Wt,kind:"ghost",className:"sekyro-btn--start",onClick:i.retry,children:m("capture.recordAgain")}):null]}):null,Ee!==null&&ze(Ee.reason)!==null?V($,{tone:Ee.status==="rejected"?"danger":"info",testId:"sekyro-result-notice",children:V("span",{children:ze(Ee.reason,Ee.retryAfter)})}):null,V("div",{className:qe?void 0:"sekyro-hidden","data-capture-live":qe?"":void 0,children:ct?j({videoRef:F,guidance:xe&&ke?m("capture.checking"):ut,coached:lt&&!(xe&&ke),note:xe?ke?m(ue?"capture.busy":"capture.checkingHint"):null:re!==null?ft(re):Bt,settled:xe&&ke,progress:i.gate.progress,phase:Kt,still:xe?At:null,live:qe,switchCamera:U&&i.state!=="recording"&&W&&Et,ramp:i.rampColour===null?null:{colour:i.rampColour}}):V(an,{videoRef:F,guidanceText:ut,guidanceHint:De,guidanceKey:pe,progress:i.gate.progress,phase:Kt,draining:i.draining,stillUrl:At,showChecking:ke,onSwitchCamera:Et,canSwitchCamera:C&&U&&i.state!=="recording",operatorText:Bt,voicePrompt:fr,overlay:y=>Ne(lr,{children:[o?.stageOverlay?.(y),V(un,{colour:i.rampColour})]}),reduceMotion:i.reduceMotion})}),vr&&I.choice!==null?V(Je,{title:m("method.title"),description:m("method.description"),options:I.choice.options.map(y=>({id:y,label:m(`method.${y}`)})),busy:I.busy,error:I.failed?m("errors.network_error"):null,focus:i.state==="done",testId:"sekyro-method",look:"buttons",onChoose:y=>{mt(y)}}):null,_t?V(Fn,{onChoose:E.choose}):null,dr?Ne(lr,{children:[se&&o?.header===void 0&&o?.intro===void 0?Ne("div",{className:"sekyro-stack sekyro-stack--1",children:[V("h2",{className:"sekyro-text-body",children:m("returning.title")}),V("p",{className:"sekyro-text-muted",children:m("returning.description")})]}):null,gr,o?.intro!==void 0?o.intro(Lt,yr):V(jn,{assets:at,onRetryAssets:A.retry,permission:T.permission,captureMode:E.mode,canChooseFacing:W,facing:f,onFacingChange:Ie,voice:_e,tips:d??Xe,summary:mr,startLabel:g,startDisabled:p,onStart:Lt})]}):null,V(Pn,{showCoaching:re!==null,attemptsText:re?.attemptsRemaining!==void 0?nn(K,t,re.attemptsRemaining):null,showRetake:re!==null&&!U&&!ae||!ke&&i.state==="captured",onRetake:i.retry}),o?.footer]})})}r(Ui,"LivenessCapture");export{tt as a,Tn as b,On as c,Je as d,Fn as e,Bn as f,Xe as g,Zn as h,et as i,po as j,Ui as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as u}from"./chunk-2KED7D2Q.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as d,useRef as g,useState as p}from"react";import{jsx as c,jsxs as w}from"react/jsx-runtime";function I(t,e,n){let[o,a]=p(!1),r=g(n);return r.current=n,d(()=>{t&&(a(!0),r.current())},[t,e]),[o,()=>a(!1)]}u(I,"useWrongCode");function S({id:t,value:e,onChange:n,length:o=6,describedBy:a,invalid:r}){let[b,l]=p(!1),[f,k]=p(0);d(()=>{r&&k(s=>s+1)},[r]);let m=g(null);d(()=>{let s=setTimeout(()=>m.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(s)},[]);let y=e.length<o?e.length:-1;return w("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[c("div",{className:`sekyro-otp-row${f>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:o},(s,i)=>c("span",{className:`sekyro-otp-box${i<e.length?" is-filled":""}${b&&i===y?" is-current":""}${r?" is-invalid":""}`,children:e[i]!==void 0?c("span",{className:"sekyro-otp-digit",children:e[i]},e[i]):null},i))},f),c("input",{ref:m,id:t,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":a,"aria-invalid":r||void 0,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:s=>n(h(s.target.value).replace(/\D/g,"").slice(0,o))})]})}u(S,"CodeInput");import{useEffect as N,useState as C}from"react";function B(t){let[e,n]=C(()=>Date.now());return N(()=>{if(!t)return;let o=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(o)},[t]),e}u(B,"useNow");export{I as a,S as b,B as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as N}from"./chunk-VRDPGOXM.js";import{g as _}from"./chunk-XTQARDSJ.js";import{a as l,b as f,d as y}from"./chunk-NV7HZJM4.js";import{a as h,r as I}from"./chunk-25KWDPLY.js";import{a}from"./chunk-2KED7D2Q.js";import{useState as v}from"react";var L={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};function B(t,n){switch(t.service){case"document":return n.t("method.document_photo");case"population_registry":return n.t("method.national_number");case"national_eid":{let s=t.nationalEid?.providerName;return s?n.t("method.national_eid",{provider:s}):n.t("method.national_eidGeneric")}default:return null}}a(B,"identityLabel");function $(t,n){let[s,o]=v(!1),[i,p]=v(null);return{busy:s,error:i,run:a(u=>{o(!0),p(null),u().then(()=>o(!1),r=>{o(!1),p(t.t(N(r,t.strings))),n?.(r)})},"run")}}a($,"useChoiceAction");import{useId as b}from"react";import{Fragment as w,jsx as e,jsxs as c}from"react/jsx-runtime";function S(){let t=`sekyro-face-light-${b().replace(/[^A-Za-z0-9_-]/g,"")}`;return c("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[e("defs",{children:e("mask",{id:t,children:e("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),e("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),e("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),e("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),e("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${t})`})]})}a(S,"FaceMark");var x={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};function P({start:t,context:n,tips:s,tipsTitle:o,extra:i,human:p=!1,returning:d=!1,notice:u}){let{t:r}=_();return c("section",{className:"sekyro-step",children:[e(S,{}),n.captureMode==="assisted"?e(f,{title:r("capture.assisted.heading"),lead:r("capture.assisted.lead")}):d?e(f,{title:r("returning.heading"),lead:r("returning.description")}):e(f,{title:r(p?"native.face.humanIntroTitle":"native.face.introTitle"),lead:r(p?"native.face.humanIntroLead":"native.face.introLead")}),o!==void 0?e("p",{className:"sekyro-section-label",children:o}):null,e("ul",{className:"sekyro-tiprows",children:s!==void 0?s.map(m=>c("li",{children:[e(l,{name:x[m.id]??"face"}),m.text]},m.id)):c(w,{children:[c("li",{children:[e(l,{name:"light"}),r("capture.tips.light")]}),c("li",{children:[e(l,{name:"jGlasses"}),r("capture.tips.uncover")]}),c("li",{children:[e(l,{name:"smartphone"}),r("capture.tips.eyeLevel")]})]})}),i,u??null,u!==void 0?null:n.assets==="failed"?e(h,{kind:"secondary",full:!0,onClick:n.retryAssets,children:r("common.retry")}):null,u!==void 0?null:e(y,{children:c(h,{full:!0,disabled:n.assets!=="ready","aria-busy":n.assets==="loading"||void 0,onClick:t,children:[e(l,{name:"camera"}),r("capture.start")]})})]})}a(P,"FaceIntro");import{isInAppBrowser as A}from"@sekyro/web/client";function K(t){return A(t)}a(K,"isInAppBrowser");function V(t,n){let s=n??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(!/Android/i.test(s))return null;let o;try{o=new URL(t)}catch{return null}if(o.protocol!=="https:"&&o.protocol!=="http:")return null;let i=o.protocol.slice(0,-1);return`intent://${o.host}${o.pathname}${o.search}#Intent;scheme=${i};action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(t)};end`}a(V,"androidBrowserIntent");import{jsx as k,jsxs as g}from"react/jsx-runtime";function Q({tone:t,icon:n,busy:s,title:o,titleId:i,children:p,actions:d,live:u,testId:r}){let m=I();return g("section",{className:"sekyro-step sekyro-status",...i!==void 0?{"aria-labelledby":i}:{},...u?{role:"status","aria-live":"polite"}:{},"data-testid":r,children:[g("div",{className:"sekyro-status__body",children:[k("span",{className:`sekyro-tile sekyro-tile--${t}${s?" is-busy":""}`,"aria-hidden":"true",children:k(l,{name:n})}),g("div",{className:"sekyro-heading sekyro-status__text",children:[k("h2",{id:i,ref:m,tabIndex:-1,className:"sekyro-text-body",children:o}),p]})]}),d!=null&&d!==!1?k(y,{children:d}):null]})}a(Q,"StatusPage");export{L as a,B as b,$ as c,P as d,K as e,V as f,Q as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{d as C}from"./chunk-6I7GU4FS.js";import{a as I,j as L,k as P}from"./chunk-NV7HZJM4.js";import{a as u}from"./chunk-2KED7D2Q.js";import{useLayoutEffect as F,useRef as H,useState as U}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";var $=72;function A(l,r){let t=l*.72,o=t*1.32;return{cx:l/2,cy:(r-o)/2.1+o/2,a:t/2,b:o/2}}u(A,"faceOval");function B({cx:l,cy:r,a:t,b:o}){return Array.from({length:$},(w,d)=>{let f=-Math.PI/2+d/$*2*Math.PI,i=Math.cos(f),m=Math.sin(f),p=l+t*i,h=r+o*m,k=Math.hypot(o*i,t*m),v=o*i/k,b=t*m/k,n=u(a=>Math.round(a*10)/10,"r");return`M${n(p+v*16)} ${n(h+b*16)}L${n(p+v*28)} ${n(h+b*28)}`})}u(B,"ticks");function K({video:l,instruction:r,note:t,busy:o,progress:w,still:d,overlay:f,ramp:i,onClose:m,closeLabel:p,end:h,live:k=!0,children:v,testId:b}){L(k);let n=H(null),[a,z]=U({w:0,h:0});F(()=>{let x=n.current;if(x===null)return;let S=u(()=>z({w:x.clientWidth,h:x.clientHeight}),"measure");if(S(),typeof ResizeObserver>"u")return;let O=new ResizeObserver(S);return O.observe(x),()=>O.disconnect()},[]);let e=A(a.w,a.h),N=a.w>0?B(e):[],g=Math.round(Math.min(1,Math.max(0,w))*$),R=e.cy-e.b,y=Math.max(e.a,e.b)+40,M=70*Math.PI/180;return s("section",{className:"sekyro-lm sekyro-fc","aria-label":r,"data-testid":b,"data-ramp":i?"":void 0,children:c("div",{ref:n,className:"sekyro-lm-stage",children:[l,d?s("img",{className:"sekyro-lm-video sekyro-fc-still",src:d,alt:""}):null,f,a.w>0?c("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${a.w} ${a.h}`,"aria-hidden":"true",focusable:"false",children:[c("defs",{children:[c("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:e.cx-y*Math.sin(M),y1:e.cy,x2:e.cx,y2:e.cy,children:[s("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),s("stop",{offset:"1",className:"sekyro-fc-fade"})]}),s("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a.w,height:a.h,children:s("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${e.cx}px ${e.cy}px`},d:`M${e.cx} ${e.cy}L${e.cx-y*Math.sin(M)} ${e.cy-y*Math.cos(M)}A${y} ${y} 0 0 1 ${e.cx} ${e.cy-y}Z`,fill:"url(#sekyro-fc-fade)"})})]}),s("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${a.w}V${a.h}H0Z M${e.cx-e.a} ${e.cy}a${e.a} ${e.b} 0 1 0 ${2*e.a} 0a${e.a} ${e.b} 0 1 0 ${-2*e.a} 0Z`}),s("ellipse",{className:"sekyro-fc-rim",cx:e.cx,cy:e.cy,rx:e.a,ry:e.b}),s("path",{className:"sekyro-fc-ticks",d:N.join("")}),g>0?s("path",{className:"sekyro-fc-ticks is-done",d:N.slice(0,g).join("")}):null,g<$?s("path",{className:"sekyro-fc-ticks is-light",d:N.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,s(C,{colour:i??null}),s("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:R-80},children:s("div",{role:"status","aria-live":"polite",children:s(P,{swapKey:r,className:"sekyro-lm-line",children:r})})}),t?c("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:R+2*e.b+48},children:[o?s("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,s("span",{children:t})]}):null,c("div",{className:"sekyro-lm-controls",children:[c("div",{className:"sekyro-lm-bar",children:[m!==void 0?s("button",{type:"button",className:"sekyro-glass","aria-label":p,onClick:m,children:s(I,{name:"close"})}):null,h]}),v]})]})})}u(K,"FaceCamera");export{K as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{p,q as k,r as h}from"./chunk-25KWDPLY.js";import{a as t}from"./chunk-2KED7D2Q.js";var M={success:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M8.5 12.5L10.5 14.5L15.5 9.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',pending:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M12 8V12L14.5 14.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',info:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M12 17V11" stroke="currentColor" stroke-linecap="round"/><path d="M12 8H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',timer:'<path d="M3 13A9 9 0 1 0 21 13A9 9 0 1 0 3 13Z" stroke="currentColor"/><path d="M12 9V13L14.5 15.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.5 4.5L7.5 2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.5 4.5L16.5 2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',closeCircle:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M14.5 9.5L9.5 14.5M9.5 9.5L14.5 14.5" stroke="currentColor" stroke-linecap="round"/>',sms:'<path d="M14.6 19.21C14.26 19.41 14.05 19.76 13.63 20.47L13.09 21.39C12.6 22.2 11.4 22.2 10.91 21.39L10.37 20.47C9.95 19.76 9.74 19.41 9.4 19.21C9.07 19.01 8.64 19.01 7.79 18.99C6.53 18.97 5.75 18.89 5.09 18.62C3.86 18.11 2.89 17.14 2.38 15.91C2 14.99 2 13.83 2 11.5V10.5C2 7.23 2 5.59 2.74 4.39C3.15 3.71 3.71 3.15 4.39 2.74C5.59 2 7.23 2 10.5 2H13.5C16.77 2 18.41 2 19.61 2.74C20.29 3.15 20.85 3.71 21.26 4.39C22 5.59 22 7.23 22 10.5V11.5C22 13.83 22 14.99 21.62 15.91C21.11 17.14 20.14 18.11 18.91 18.62C18.25 18.89 17.47 18.97 16.21 18.99C15.36 19.01 14.93 19.01 14.6 19.21Z" stroke="currentColor" stroke-linecap="round"/>',whatsapp:'<path d="M17.47 14.38c-0.3-0.15-1.76-0.87-2.03-0.97c-0.27-0.1-0.47-0.15-0.670.15c-0.20.3-0.770.97-0.94 1.16c-0.170.2-0.350.22-0.640.07c-0.3-0.15-1.25-0.46-2.39-1.48c-0.88-0.79-1.48-1.76-1.65-2.06c-0.17-0.3-0.02-0.460.13-0.61c0.13-0.130.3-0.350.45-0.52s0.2-0.30.3-0.5c0.1-0.20.05-0.37-0.03-0.52s-0.67-1.61-0.92-2.21c-0.24-0.58-0.49-0.5-0.67-0.51a13 13 0 0 0-0.57-0.01c-0.2 0-0.520.07-0.790.37c-0.270.3-1.04 1.02-1.04 2.48c0 1.46 1.06 2.88 1.21 3.07s2.1 3.2 5.08 4.49c0.710.31 1.260.49 1.690.63c0.710.23 1.360.2 1.870.12c0.57-0.09 1.76-0.72 2.01-1.41s0.25-1.290.17-1.41c-0.07-0.12-0.27-0.2-0.57-0.35m-5.42 7.4h0a9.87 9.87 0 0 1-5.03-1.38l-0.36-0.21l-3.740.98l1-3.65l-0.23-0.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88c2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 0.16 5.330.16 11.89c0 2.10.55 4.14 1.59 5.95L0.06 24l6.3-1.65a11.9 11.9 0 0 0 5.68 1.45h0.01c6.55 0 11.89-5.33 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41" fill="currentColor"/>',back:'<path d="M15 5L9 12L15 19" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',warning:'<path d="M5.31 10.76C8.23 5.59 9.69 3 12 3C14.31 3 15.77 5.59 18.69 10.76L19.05 11.41C21.48 15.71 22.69 17.86 21.59 19.43C20.5 21 17.79 21 12.36 21H11.64C6.21 21 3.5 21 2.41 19.43C1.31 17.86 2.52 15.71 4.95 11.41L5.31 10.76Z" stroke="currentColor"/><path d="M12 8V13" stroke="currentColor" stroke-linecap="round"/><path d="M12 16H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',external:'<path d="M9 15L15 9M15 13.5V9H10.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/>'};var l={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'};import{jsx as S}from"react/jsx-runtime";function m({name:o,className:r}){return S("svg",{className:`sekyro-glyph${r?` ${r}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:o in l?l[o]:M[o]}})}t(m,"Icon");import{createContext as c,useContext as d,useEffect as C,useId as x,useLayoutEffect as H,useRef as f,useState as g}from"react";import{jsx as a,jsxs as L}from"react/jsx-runtime";function $({id:o,title:r,lead:e}){let n=h();return L("div",{className:"sekyro-heading",children:[a("h2",{id:o,ref:n,tabIndex:-1,className:"sekyro-text-body",children:r}),e!==void 0?a("p",{className:"sekyro-text-muted",children:e}):null]})}t($,"StepHeading");var A=c(null),Z=typeof window>"u"?C:H;function B({children:o}){let r=d(A),e=x(),n=r?.claim;return Z(()=>n?.(e),[n,e]),L("div",{className:"sekyro-actions",children:[o,r!==null&&r.owner===e?r.node:null]})}t(B,"StepActions");var V=c(()=>{});function G(o){let r=d(V),e=f(o);e.current=o;let n=o!==null;C(()=>{if(n)return r(()=>e.current?.()),()=>r(null)},[n,r])}t(G,"useFlowBack");var P=c(void 0),q=c(void 0),v=c(()=>{});function z(o){let r=d(v);C(()=>(r(o),()=>r(!1)),[o,r])}t(z,"useImmersive");var I=100;function w({swapKey:o,className:r,children:e}){let[n,N]=g({key:o,node:e}),i=f(e);i.current=e;let s=n.key!==o;return C(()=>{if(!s)return;let y=setTimeout(()=>N({key:o,node:i.current}),I);return()=>clearTimeout(y)},[s,o]),a("div",{className:`${r}${s?" is-leaving":""}`,"aria-hidden":s||void 0,children:s?n.node:e},n.key)}t(w,"Swap");var D=t(({pageKey:o,children:r})=>a(w,{swapKey:o,className:"sekyro-page",children:r}),"PageSwap");import{jsx as u,jsxs as _}from"react/jsx-runtime";var O={info:"info",warning:"warning",danger:"warning"};function e1({tone:o,children:r}){return _(k,{tone:o,children:[u("span",{className:"sekyro-notice__icon","aria-hidden":"true",children:u(m,{name:O[o]})}),u("div",{className:"sekyro-notice__body",children:r})]})}t(e1,"StepNotice");function t1(o,r,e){return e?o.t("common.noAttemptsLeft"):p(o.strings,o.locale,r)}t(t1,"attemptsLine");export{m as a,$ as b,A as c,B as d,V as e,G as f,P as g,q as h,v as i,z as j,w as k,D as l,e1 as m,t1 as n};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as r,b as n,d as c}from"./chunk-NV7HZJM4.js";import{a as o}from"./chunk-25KWDPLY.js";import{a}from"./chunk-2KED7D2Q.js";import{jsx as e,jsxs as i}from"react/jsx-runtime";function h({title:s,lead:d,cameraLabel:l,uploadLabel:p,notice:m,testId:t,onCamera:u,onUpload:f}){return i("section",{className:"sekyro-step","data-testid":t,children:[e(n,{title:s,lead:d}),m,i(c,{children:[i(o,{full:!0,onClick:u,"data-testid":`${t}-camera`,children:[e(r,{name:"camera"}),l]}),e(o,{full:!0,kind:"ghost",onClick:f,"data-testid":`${t}-upload`,children:p})]})]})}a(h,"PhotoSourceView");export{h as a};
|