@sekyro/react 0.1.0-rc.8 → 0.1.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/chunk-2KED7D2Q.js +2 -0
  3. package/dist/chunk-4CUPBFVB.js +2 -0
  4. package/dist/chunk-4U5FQY26.js +2 -0
  5. package/dist/chunk-64PTFYXL.js +2 -0
  6. package/dist/chunk-7C3GZLJB.js +2 -0
  7. package/dist/{chunk-4ENKV24I.js → chunk-EZ5TVL6P.js} +1 -1
  8. package/dist/{chunk-2CJEADGY.js → chunk-PYAJMHZH.js} +1 -1
  9. package/dist/{chunk-R2D6V2R6.js → chunk-RFCYXRRC.js} +1 -1
  10. package/dist/chunk-RPQZH66I.js +2 -0
  11. package/dist/chunk-VRS7WSIK.js +2 -0
  12. package/dist/chunk-WJW3SNXQ.js +2 -0
  13. package/dist/chunk-XZEX5KTU.js +2 -0
  14. package/dist/{chunk-5JPJXBN6.js → chunk-YY76AMUA.js} +1 -1
  15. package/dist/chunk-ZCAZDOMD.js +2 -0
  16. package/dist/document-capture-view-2XBWIX6K.js +2 -0
  17. package/dist/eid-view-4T7Y2NJC.js +2 -0
  18. package/dist/email-otp-view-76T5QW7H.js +2 -0
  19. package/dist/flow-views-LEW6T5UR.js +2 -0
  20. package/dist/index.cjs +1 -1
  21. package/dist/index.d.cts +7 -4
  22. package/dist/index.d.ts +7 -4
  23. package/dist/index.js +1 -1
  24. package/dist/overlay-de-WAVGHULU.js +2 -0
  25. package/dist/overlay-es-CHRGVULE.js +2 -0
  26. package/dist/overlay-pt-2QQ7WMTF.js +2 -0
  27. package/dist/portrait-capture-view-GORALODC.js +2 -0
  28. package/dist/styles.css +12 -11
  29. package/dist/{theme-7Jj6eSH6.d.cts → theme-DiGLpM-i.d.cts} +26 -7
  30. package/dist/{theme-7Jj6eSH6.d.ts → theme-DiGLpM-i.d.ts} +26 -7
  31. package/dist/verification/index.cjs +1 -1
  32. package/dist/verification/index.d.cts +31 -4
  33. package/dist/verification/index.d.ts +31 -4
  34. package/dist/verification/index.js +1 -1
  35. package/dist/verification.css +14 -0
  36. package/package.json +2 -2
  37. package/sbom.cdx.json +4 -4
  38. package/dist/chunk-2PGJ7P7E.js +0 -2
  39. package/dist/chunk-36RC3M4K.js +0 -2
  40. package/dist/chunk-COU4Y3DB.js +0 -2
  41. package/dist/chunk-LZU57LVO.js +0 -2
  42. package/dist/chunk-OSS4NHIS.js +0 -2
  43. package/dist/chunk-PXRIFHY2.js +0 -2
  44. package/dist/chunk-Y4PPDNQR.js +0 -2
  45. package/dist/chunk-ZTN4YV7S.js +0 -2
  46. package/dist/chunk-ZVSRJKQE.js +0 -2
  47. package/dist/document-capture-view-IAVBLXBO.js +0 -2
  48. package/dist/eid-view-FK54R7ER.js +0 -2
  49. package/dist/email-otp-view-ZVXSJMN5.js +0 -2
  50. package/dist/flow-views-5VR7NLTE.js +0 -2
  51. package/dist/portrait-capture-view-FYUOQWF7.js +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @sekyro/react
2
2
 
3
+ ## 0.1.0-rc.9
4
+
5
+ ### Minor Changes
6
+
7
+ - a3247a3: Screen ramp and capture provenance (liveness v7). When the session's capture tuning carries `capture.liveness.screenRamp` (a server-issued challenge: three pastel colours and their onsets), `@sekyro/web` paints them through the new `ramp` event of the liveness capture handle while the clip records, stamps each change on the clip's own timeline (the recorder's start, corrected by the video element's frame clock when the browser reports one) and sends what it rendered as `input.capture.screenRamp: {nonce, rendered: [{tMs, colour}]}`. `@sekyro/react` paints the layer in both stages (the face camera of `SekyroVerification` and the 0.1 stage) and hands it to a custom stage renderer as `ramp` on the stage view; a host on `@sekyro/web` alone subscribes to `ramp` and paints a fixed full-viewport element with `screenRampColourValue(colour)`, or leaves the event unbound (then no ramp is reported). Hosts that want ramp verification bind the `ramp` event: `provenance.rampPainter` tells the backend whether a painter was bound, so an unbound host is a client without the ramp rather than one missing it. No ramp in an assisted capture or without a challenge. Every liveness submit now also carries `input.capture.provenance` (the video track's settings with the device id hashed, whether `getCapabilities` exists, the camera label's class against a small list of virtual-camera products, `requestVideoFrameCallback` statistics over the recording, and whether the capture prototypes are still native code): signals only, no media, no raw identifiers. New types: `ScreenRampChallenge`, `ScreenRampColour`, `ScreenRampReport`, `CaptureProvenance`, `HostedLivenessCaptureTuning`. The native SDKs decode the challenge in this release and render it in the following one.
8
+
9
+ ### Patch Changes
10
+
11
+ - 032585b: Liveness retakes: `VerificationResult.retakeHint` and `StepAttempts.retakeHint` (`appearance | motion | lighting | framing`) carry the backend's retake hint; `@sekyro/react` shows the matching `hints.*` copy in place of the reason's generic text. A parked step whose attempts did not grow (a voided capture) is always a `retry`, and `capture_back_camera` / `capture_not_upright` are retryable.
12
+ - 4bdc14c: `DEFAULT_THEME` and the `styles.css` defaults now use the Sekyro AI brand: the same colours, font and 16px control radius as `<SekyroVerification>` and the native SDKs. Dashboard branding radius steps map to 0, 6, 10, 16 and 9999px, matching iOS and Android. Pass your own theme to keep the previous look.
13
+ - Updated dependencies [a3247a3]
14
+ - Updated dependencies [032585b]
15
+ - Updated dependencies [f13b832]
16
+ - Updated dependencies [90dde69]
17
+ - @sekyro/web@0.1.0-rc.11
18
+
3
19
  ## 0.1.0-rc.8
4
20
 
5
21
  ### Minor Changes
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:!0});export{d as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{e as s,f as c,n as p,o as d}from"./chunk-64PTFYXL.js";import{a as i}from"./chunk-2KED7D2Q.js";var u={"session.title":"تحقّق من هويتك","session.requestedBy":"تطلب {orgName} منك التحقق من هويتك","returning.requestedBy":"تطلب {orgName} منك تأكيد أنك أنت","consent.notice":"بإكمال عملية التحقق من الهوية، فإنك توافق على معالجة بياناتك الشخصية والبيومترية للتحقق من هويتك.","consent.details":"التفاصيل","consent.terms.intro":"تتحقق Sekyro AI من هويتك نيابةً عن الجهة التي أرسلت إليك هذا الرابط. قبل البدء، اطّلع على كيفية استخدام بياناتك.","consent.terms.data":"أثناء التحقق، تجمع Sekyro AI صور وثيقة هويتك، ومقطع فيديو ذاتيًا قصيرًا، وصورة ذاتية، ورقم وثيقة هويتك.","consent.terms.processing":"تُستخدم هذه البيانات للتحقق من هويتك فقط: يُقارَن وجهك بالصورة الموجودة على وثيقتك، ويُطابَق رقمك مع سجلات الجهة المُصدِرة متى أمكن ذلك. وقد يفحص بعض الخطوات مراجع بشري مخوَّل.","consent.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","reasons.camera_unavailable":"يتطلب هذا التحقق كاميرا. عُد إلى {org} للمتابعة بطريقة أخرى.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"8 أرقام","otp.send":"إرسال الرمز","otp.channelSms":"رسالة نصية","otp.channelWhatsapp":"واتساب","otp.verifyTitle":"أدخل رمز التحقّق","otp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك لإتمام التحقّق من رقمك","otp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {number} عبر {channel}","otp.codeLabel":"رمز التحقّق","otp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك","otp.verify":"تحقّق من الرمز","otp.resend":"إعادة إرسال الرمز","otp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","otp.expiresIn":"ينتهي الرمز خلال {time}","otp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","otp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","otp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","otp.reason_otp_send_failed":"تعذّر إرسال الرمز. أعد المحاولة بعد قليل","otp.chooseChannel":"كيف تريد أن تتلقّى رمزك؟","otp.sendBy":"إرسال الرمز عبر {channel}","otp.resendBy":"إعادة الإرسال عبر {channel}","otp.reason_otp_channel_unavailable":"هذه الوسيلة غير متاحة. اختر طريقة أخرى لتلقّي رمزك","otp.reason_otp_destination_not_allowed":"لا يمكننا إرسال الرموز إلى أرقام هذا البلد. أدخل رقمًا آخر","otp.reason_otp_destination_unknown":"تعذّر التعرّف على هذا الرقم. تحقّق منه وأعد إدخاله مع رمز البلد","otp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","otp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط. لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة صورتك بوثيقة هويتك…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.codeInvalid":"أدخل الرمز المكوّن من 6 أرقام","doc.countryTitle":"ما البلد الذي أصدر وثيقتك؟","doc.countryLabel":"بلد الإصدار","doc.countrySearch":"ابحث عن بلد","doc.noCountryMatch":"لا يوجد بلد يطابق بحثك","doc.type.carte_identite":"بطاقة الهوية","doc.type.residence_permit":"بطاقة الإقامة","doc.type.passport":"جواز السفر","doc.showSide":"اعرض أحد وجهي البطاقة","doc.showPage":"اعرض صفحة الصورة","doc.flip":"اقلب البطاقة","doc.sameFace":"الوجه نفسه · اقلب البطاقة","doc.reaskRecto":"اعرض الوجه الأمامي مرة أخرى","doc.reread":"تعذّرت قراءة هذا الوجه · ثبّت البطاقة في إضاءة جيدة","doc.photoTaken":"تم التقاط الصورة","doc.frontCaptured":"تم التقاط الوجه الأمامي","doc.backCaptured":"تم التقاط الوجه الخلفي","doc.pageCaptured":"تم التقاط الصفحة","doc.progressFront":"الأمام","doc.progressBack":"الخلف","doc.progressPage":"صفحة الصورة","doc.shutter":"التقط الصورة","doc.torchOn":"شغّل الضوء","doc.torchOff":"أطفئ الضوء","result.platform_unsupported":"يتطلب هذا التحقق تطبيقًا على الهاتف.","unsupported.title":"يلزم التحديث","unsupported.description":"تتطلب هذه الخطوة إصدارًا أحدث من هذه الصفحة. تواصل مع {org}.","shell.subtitle":"التحقق من الهوية","shell.subtitleHuman":"التحقق البشري","shell.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","native.face.humanIntroTitle":"أكّد أنك شخص حقيقي","native.face.humanIntroLead":"لقطة قصيرة واحدة: انظر إلى الشاشة فقط.","native.doc.holdIt":"احتفظ بوثيقتك في متناول يدك.","native.doc.changeCountry":"تغيير البلد","native.result.approved":"اكتمل التحقق. يمكنك العودة إلى {org}.","native.result.review":"ستُرسل النتيجة إلى {org}. لا يلزمك فعل أي شيء آخر.","native.result.rejected":"تواصل مع {org} إذا كنت تعتقد أن هذا خطأ.","native.result.expired":"ابدأ من جديد من {org} للحصول على جلسة جديدة.","native.result.copied":"تم النسخ","native.result.back":"العودة إلى {org}"};var l={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the verification code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","session.steps.population.title":"Enter your national ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Which document will you use?","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Your checks are being processed","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done. You can close this page","session.result.review.title":"Your verification is under review","session.result.review.description":"The result will be sent to the organization that gave you this link. You don't need to do anything else.","session.result.rejected.title":"Your identity could not be verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"This verification session has expired","session.result.expired.description":"Request a new link from the organization that sent it, then start again","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","session.result.deviceStop":"We couldn't continue on this device. Try again on another device or browser.","result.referenceLabel":"Reference code","common.loading":"Loading your verification session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photo with your identity document…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This verification needs a phone app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","population.recheck.title":"Check your national number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Which country issued your document?","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you are a real person","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.approved":"Your verification is complete. You can go back to {org}.","native.result.review":"The result will be sent to {org}. There's nothing else you need to do.","native.result.rejected":"Contact {org} if you think this is a mistake.","native.result.expired":"Start again from {org} to get a new session.","native.result.copied":"Copied","native.result.back":"Back to {org}"};var h={"session.title":"Vérifiez votre identité","session.requestedBy":"{orgName} vous demande de vérifier votre identité","returning.requestedBy":"{orgName} vous demande de confirmer qu'il s'agit bien de vous","consent.notice":"En poursuivant la vérification d'identité, vous consentez au traitement de vos données personnelles et biométriques afin de vérifier votre identité.","consent.details":"En savoir plus","consent.terms.intro":"Sekyro AI vérifie votre identité pour le compte de l'organisme qui vous a envoyé ce lien. Avant de commencer, consultez la façon dont vos données sont utilisées.","consent.terms.data":"Pendant la vérification, Sekyro AI recueille les photos de votre pièce d'identité, une courte vidéo selfie, une photo selfie et le numéro de votre pièce d'identité.","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre numéro est vérifié auprès des registres de l'autorité émettrice lorsque c'est possible. Certaines étapes peuvent être examinées par un examinateur humain habilité.","consent.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro de téléphone","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code de vérification","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","session.steps.population.title":"Saisissez votre numéro national d'identification","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Vérification auprès du registre civil","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Quel document allez-vous utiliser ?","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Vos vérifications sont en cours de traitement","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur votre téléphone","session.result.approved.title":"Votre identité est vérifiée","session.result.approved.description":"C'est terminé. Vous pouvez fermer cette page","session.result.review.title":"Votre vérification est en cours d'examen","session.result.review.description":"Le résultat sera transmis à l'organisation qui vous a envoyé ce lien. Vous n'avez rien d'autre à faire.","session.result.rejected.title":"Votre identité n'a pas pu être vérifiée","session.result.rejected.description":"Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur","session.result.expired.title":"Cette session de vérification a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui l'a envoyé, puis recommencez","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","session.result.deviceStop":"Impossible de continuer sur cet appareil. Réessayez sur un autre appareil ou navigateur.","result.referenceLabel":"Code de référence","common.loading":"Chargement de votre session de vérification","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo d’identité","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification de votre photo…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison de votre photo avec votre pièce d'identité…","portrait.reviewTitle":"Nous allons vérifier votre photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Cette vérification nécessite une application mobile","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","population.recheck.title":"Vérifiez votre numéro national","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Quel pays a délivré votre document ?","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions maintenant votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez que vous êtes une personne réelle","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.approved":"Votre vérification est terminée. Vous pouvez retourner à {org}.","native.result.review":"Le résultat sera transmis à {org}. Vous n'avez rien d'autre à faire.","native.result.rejected":"Contactez {org} si vous pensez qu'il s'agit d'une erreur.","native.result.expired":"Recommencez depuis {org} pour obtenir une nouvelle session.","native.result.copied":"Copiée","native.result.back":"Revenir à {org}"};import{createContext as f,useContext as y,useMemo as m}from"react";import{jsx as z}from"react/jsx-runtime";var _={en:l,fr:h,ar:u};function b(e,t){return t===void 0?e:e.replace(/\{(\w+)\}/g,(o,r)=>Object.hasOwn(t,r)?String(t[r]):o)}i(b,"formatTemplate");function k(e,t){let o=s(e),r={...p(o),..._[o],...c(e)};if(t!==void 0)for(let n of Object.keys(t)){let a=t[n];typeof a=="string"&&(r[n]=a)}return r}i(k,"resolveSekyroStrings");var v=f(null);function g(e,t){let o=k(e,t);return{locale:e,strings:o,t:i((r,n)=>b(o[r]??"",n),"t")}}i(g,"build");function R({locale:e,strings:t,children:o}){let r=d(e),n=m(()=>g(e,t),[e,t,r]);return r?z(v.Provider,{value:n,children:o}):null}i(R,"StepI18nProvider");function V(e,t){let o=y(v);return m(()=>o!==null&&e===void 0&&t===void 0?o:g(e??o?.locale??"en",t),[o,e,t])}i(V,"useStepI18n");export{u as a,l as b,h as c,b as d,k as e,R as f,V as g};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as S,q as I}from"./chunk-64PTFYXL.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 r}from"./chunk-2KED7D2Q.js";import{forwardRef as b}from"react";import{jsx as w}from"react/jsx-runtime";var R=b(r(function({kind:t="primary",full:n=!1,className:a,type:o,...i},c){let u=["sekyro-btn",`sekyro-btn--${t}`];return n&&u.push("sekyro-btn--full"),a!==void 0&&u.push(a),w("button",{ref:c,type:o??"button",className:u.join(" "),...i})},"Button"));var s={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds — keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work — a few adjustments will help:","capture.retryCoaching.light":"Find good lighting — light on your face, not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected — connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera — close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS) — reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format — open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable — try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face — hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot — light your face","fcv3.too_bright":"Too much light — move out of direct light","fcv3.hold_still":"Perfect — hold still","fcv3.steady_camera":"Hold the phone steady","fcv3.hold_upright":"Hold the phone upright","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm your number","reasons.result_from_cache":"The registry check was confirmed from a recent copy of the registry","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against — the requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry — a reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided — your verification went to human review","reasons.capture_back_camera":"Use the front camera. Hold the phone in front of your face and try again","reasons.capture_not_upright":"Hold your phone upright, not sideways, and try again","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","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","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source — avoid strong light behind you","capture.tips.uncover":"Uncover your face — no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face — no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera — choose Allow","capture.permission.denied":"Camera access is blocked — allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.assisted.title":"Capture the person's face","capture.assisted.lead":"Point the back camera at the person's face and hold the phone upright. The voice guidance speaks to the person being filmed.","capture.assisted.stage":"Point the camera at the person's face","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection — this can take a moment on a slow connection","capture.ready":"Ready — start when you are","fcv2.err.models":"The face-detection models could not be loaded — check your connection and try again"};var p={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ — أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة — بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة — الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا — وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا — أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS) — افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة — افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة — أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك — أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة — أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا — تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز — لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","fcv3.hold_upright":"أمسك الهاتف بشكل عمودي","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد رقمك","reasons.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها — على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني — سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد — أُحيل تحققك إلى مراجعة بشرية","reasons.capture_back_camera":"استخدم الكاميرا الأمامية. أمسك الهاتف أمام وجهك وحاول مرة أخرى","reasons.capture_not_upright":"أمسك هاتفك بشكل عمودي وليس أفقيًا، ثم حاول مرة أخرى","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","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":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف — اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك — تجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك — بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك — بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا — اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور — اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.assisted.title":"صوّر وجه الشخص","capture.assisted.lead":"وجّه الكاميرا الخلفية نحو وجه الشخص وأمسك الهاتف بشكل عمودي. الإرشادات الصوتية تخاطب الشخص الذي تصوّره.","capture.assisted.stage":"وجّه الكاميرا نحو وجه الشخص","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك — قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز — ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه — تحقق من اتصالك ثم أعد المحاولة"};var d={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes — gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti — quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé — lumière sur le visage, pas derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée — branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application — fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS) — rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible — ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible — réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage — tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux — éclairez votre visage","fcv3.too_bright":"Trop de lumière — évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait — ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","fcv3.hold_upright":"Tenez le téléphone à la verticale","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer votre numéro","reasons.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie — c'est au demandeur de le résoudre, reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil — un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement — votre vérification part en revue humaine","reasons.capture_back_camera":"Utilisez la caméra avant. Tenez le téléphone devant votre visage et réessayez","reasons.capture_not_upright":"Tenez votre téléphone à la verticale, pas à l'horizontale, et réessayez","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Réessayons : placez-vous face à une source de lumière et restez immobile.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","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","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière — évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage — ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage — ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra — choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué — autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.assisted.title":"Filmez le visage de la personne","capture.assisted.lead":"Pointez la caméra arrière vers le visage de la personne et tenez le téléphone à la verticale. Le guidage vocal s'adresse à la personne filmée.","capture.assisted.stage":"Pointez la caméra vers le visage de la personne","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil — cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt — commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage — vérifiez votre connexion puis réessayez"};var l={},m=r(e=>e==="es"||e==="pt"||e==="de","isOverlayLocale");function h(e){return m(e)?"en":e}r(h,"baseLocale");function f(e){return m(e)?l[e]:void 0}r(f,"overlayOf");function g(e){return m(e)&&l[e]===void 0}r(g,"overlayPending");function v(e){return g(e)?(e==="es"?import("./overlay-es-CHRGVULE.js"):e==="pt"?import("./overlay-pt-2QQ7WMTF.js"):import("./overlay-de-WAVGHULU.js")).then(n=>{l[e]=n.overlay},()=>{l[e]={}}):Promise.resolve()}r(v,"loadSekyroLocale");function B(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(B,"hintStringKey");function M(e){let t=`hints.${e}`;return Object.hasOwn(s,t)?t:null}r(M,"retakeHintStringKey");function j(e){return`fcv2.err.${e}`}r(j,"captureErrorStringKey");function F(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":return"errors.nni_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${e}`;return Object.hasOwn(s,t)?t:null}}}r(F,"reasonStringKey");function U(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 u=Math.max(1,Math.ceil(o/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(u,"minute")}}let i=a.toDateString()===n.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...i?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(a)}}r(U,"retryAfterTime");function E(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(E,"attemptsRemainingText");import{createContext as z,useContext as k,useEffect as T,useState as C}from"react";var y={ar:p,fr:d,en:s};function X(e,t){let n=f(e),a=n===void 0?y[h(e)]:{...y.en,...n};if(t===void 0)return a;let o={...a};for(let i of Object.keys(t)){let c=t[i];typeof c=="string"&&(o[i]=c)}return o}r(X,"resolveStrings");function Z(e){let[,t]=C(0),n=g(e);return T(()=>{if(!n)return;let a=!0;return v(e).then(()=>a&&t(o=>o+1)),()=>{a=!1}},[e,n]),!n}r(Z,"useLocaleReady");var _=z(e=>s[e]??""),ee=_.Provider;function te(){return k(_)}r(te,"useStrings");import{useCallback as L}from"react";function oe(){return L(e=>{e?.focus()},[])}r(oe,"useFocusOnMount");import{jsx as S}from"react/jsx-runtime";function ce({tone:e,role:t,children:n,testId:a}){return S("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":a,children:n})}r(ce,"Notice");export{R as a,s as b,p as c,d,h as e,f,v as g,B as h,M as i,j,F as k,U as l,E as m,X as n,Z as o,ee as p,te as q,ce as r,oe as s};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as c}from"./chunk-PYAJMHZH.js";import{a as f,b as h}from"./chunk-WJW3SNXQ.js";import{a as k}from"./chunk-RFCYXRRC.js";import{g as y}from"./chunk-4CUPBFVB.js";import{a as u}from"./chunk-64PTFYXL.js";import{a as s}from"./chunk-2KED7D2Q.js";import{useState as g}from"react";var C={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};function b(o,t){switch(o.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let n=o.nationalEid?.providerName;return n?t.t("method.national_eid",{provider:n}):t.t("method.national_eidGeneric")}default:return null}}s(b,"identityLabel");function L(o,t){let[n,i]=g(!1),[d,m]=g(null);return{busy:n,error:d,run:s(r=>{i(!0),m(null),r().then(()=>i(!1),l=>{i(!1),m(o.t(k(l,o.strings))),t?.(l)})},"run")}}s(L,"useChoiceAction");import{useId as _}from"react";import{Fragment as N,jsx as e,jsxs as a}from"react/jsx-runtime";function I(){let o=`sekyro-face-light-${_().replace(/[^A-Za-z0-9_-]/g,"")}`;return a("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[e("defs",{children:e("mask",{id:o,children:e("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),e("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),e("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),e("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),e("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${o})`})]})}s(I,"FaceMark");var v={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};function T({start:o,context:t,tips:n,tipsTitle:i,extra:d,human:m=!1,notice:p}){let{t:r}=y();return a("section",{className:"sekyro-step",children:[e(I,{}),t.captureMode==="assisted"?e(f,{title:r("capture.assisted.title"),lead:r("capture.assisted.lead")}):e(f,{title:r(m?"native.face.humanIntroTitle":"native.face.introTitle"),lead:r(m?"native.face.humanIntroLead":"native.face.introLead")}),i!==void 0?e("p",{className:"sekyro-section-label",children:i}):null,e("ul",{className:"sekyro-tiprows",children:n!==void 0?n.map(l=>a("li",{children:[e(c,{name:v[l.id]??"face"}),l.text]},l.id)):a(N,{children:[a("li",{children:[e(c,{name:"light"}),r("capture.tips.light")]}),a("li",{children:[e(c,{name:"jGlasses"}),r("capture.tips.uncover")]}),a("li",{children:[e(c,{name:"smartphone"}),r("capture.tips.eyeLevel")]})]})}),d,p??null,p!==void 0?null:t.assets==="failed"?e(u,{kind:"ghost",onClick:t.retryAssets,children:r("common.refresh")}):null,p!==void 0?null:e(h,{children:a(u,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:o,children:[e(c,{name:"camera"}),r("capture.start")]})})]})}s(T,"FaceIntro");export{C as a,b,L as c,T as d};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{a as u}from"./chunk-PXRIFHY2.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as c,useRef as b,useState as p}from"react";import{jsx as r,jsxs as N}from"react/jsx-runtime";function I({id:l,value:e,onChange:m,length:n=6,describedBy:f,invalid:o}){let[g,i]=p(!1),[a,k]=p(0);c(()=>{o&&k(t=>t+1)},[o]);let d=b(null);c(()=>{let t=setTimeout(()=>d.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(t)},[]);let y=e.length<n?e.length:-1;return N("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[r("div",{className:`sekyro-otp-row${a>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:n},(t,s)=>r("span",{className:`sekyro-otp-box${s<e.length?" is-filled":""}${g&&s===y?" is-current":""}${o?" is-invalid":""}`,children:e[s]!==void 0?r("span",{className:"sekyro-otp-digit",children:e[s]},e[s]):null},s))},a),r("input",{ref:d,id:l,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":f,"aria-invalid":o||void 0,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:t=>m(h(t.target.value).replace(/\D/g,"").slice(0,n))})]})}u(I,"CodeInput");export{I as a};
2
+ import{a as u}from"./chunk-2KED7D2Q.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as c,useRef as b,useState as p}from"react";import{jsx as r,jsxs as N}from"react/jsx-runtime";function I({id:l,value:e,onChange:m,length:n=6,describedBy:f,invalid:o}){let[g,i]=p(!1),[a,k]=p(0);c(()=>{o&&k(t=>t+1)},[o]);let d=b(null);c(()=>{let t=setTimeout(()=>d.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(t)},[]);let y=e.length<n?e.length:-1;return N("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[r("div",{className:`sekyro-otp-row${a>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:n},(t,s)=>r("span",{className:`sekyro-otp-box${s<e.length?" is-filled":""}${g&&s===y?" is-current":""}${o?" is-invalid":""}`,children:e[s]!==void 0?r("span",{className:"sekyro-otp-digit",children:e[s]},e[s]):null},s))},a),r("input",{ref:d,id:l,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":f,"aria-invalid":o||void 0,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:t=>m(h(t.target.value).replace(/\D/g,"").slice(0,n))})]})}u(I,"CodeInput");export{I as a};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{a as o}from"./chunk-PXRIFHY2.js";var e={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'};import{jsx as C}from"react/jsx-runtime";function a({name:t,className:r}){return C("svg",{className:`sekyro-glyph${r?` ${r}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:e[t]}})}o(a,"Icon");export{a};
2
+ import{a as o}from"./chunk-2KED7D2Q.js";var e={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'};import{jsx as C}from"react/jsx-runtime";function a({name:t,className:r}){return C("svg",{className:`sekyro-glyph${r?` ${r}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:e[t]}})}o(a,"Icon");export{a};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{a as i}from"./chunk-PXRIFHY2.js";import{HostedApiError as o,InvalidInputError as r,OtpInputError as a}from"@sekyro/web";function f(n,t){if(n instanceof r)return n.field==="phone"?"otp.phoneInvalid":n.field==="code"?"otp.codeInvalid":n.kind==="check_digit"?"population.reason_nni_invalid":"population.invalid";if(n instanceof a&&n.field==="channel")return"otp.reason_otp_channel_unavailable";if(n instanceof o){let e=`errors.${n.code}`;if(Object.hasOwn(t,e))return e}return"errors.network_error"}i(f,"errorKey");export{f as a};
2
+ import{a as i}from"./chunk-2KED7D2Q.js";import{HostedApiError as o,InvalidInputError as r,OtpInputError as a}from"@sekyro/web";function f(n,t){if(n instanceof r)return n.field==="phone"?"otp.phoneInvalid":n.field==="code"?"otp.codeInvalid":n.kind==="check_digit"?"population.reason_nni_invalid":"population.invalid";if(n instanceof a&&n.field==="channel")return"otp.reason_otp_channel_unavailable";if(n instanceof o){let e=`errors.${n.code}`;if(Object.hasOwn(t,e))return e}return"errors.network_error"}i(f,"errorKey");export{f as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{m as n,r}from"./chunk-64PTFYXL.js";import{a as o}from"./chunk-2KED7D2Q.js";import{jsx as i}from"react/jsx-runtime";function a({tone:t,children:e}){return i(r,{tone:t,children:e})}o(a,"StepNotice");function f(t,e,p){return p?t.t("common.noAttemptsLeft"):n(t.strings,t.locale,e)}o(f,"attemptsLine");export{a,f as b};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as P}from"./chunk-PYAJMHZH.js";import{d as C}from"./chunk-4U5FQY26.js";import{e as I,f as L}from"./chunk-WJW3SNXQ.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}){I(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(L,{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(P,{name:"close"})}):null,h]}),v]})]})})}u(K,"FaceCamera");export{K as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{s as c}from"./chunk-64PTFYXL.js";import{a as n}from"./chunk-2KED7D2Q.js";import{createContext as d,useContext as m,useEffect as u,useRef as f,useState as x}from"react";import{jsx as i,jsxs as N}from"react/jsx-runtime";function h({id:e,title:t,lead:o}){let s=c();return N("div",{className:"sekyro-heading",children:[i("h2",{id:e,ref:s,tabIndex:-1,className:"sekyro-text-body",children:t}),o!==void 0?i("p",{className:"sekyro-text-muted",children:o}):null]})}n(h,"StepHeading");function R({children:e}){return i("div",{className:"sekyro-actions",children:e})}n(R,"StepActions");var w=d(void 0),v=d(()=>{});function C(e){let t=m(v);u(()=>(t(e),()=>t(!1)),[e,t])}n(C,"useImmersive");var g=100;function y({swapKey:e,className:t,children:o}){let[s,l]=x({key:e,node:o}),a=f(o);a.current=o;let r=s.key!==e;return u(()=>{if(!r)return;let p=setTimeout(()=>l({key:e,node:a.current}),g);return()=>clearTimeout(p)},[r,e]),i("div",{className:`${t}${r?" is-leaving":""}`,"aria-hidden":r||void 0,children:r?s.node:o},s.key)}n(y,"Swap");var b=n(({pageKey:e,children:t})=>i(y,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap");export{h as a,R as b,w as c,v as d,C as e,y as f,b as g};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as Jt,c as Xt,d as en}from"./chunk-4U5FQY26.js";import{a as D,h as Dt,i as qt,j as jt,k as $t,l as zt,m as Yt,n as Zt,o as Wt,p as Qt,q as U,r as j,s as qe}from"./chunk-64PTFYXL.js";import{a as n}from"./chunk-2KED7D2Q.js";import{useId as cr}from"react";import{Fragment as ar,jsx as V,jsxs as J}from"react/jsx-runtime";function X({className:e,children:t}){return V("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}n(X,"Svg");var at="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 tn(e){return J(X,{...e,children:[V("circle",{cx:"12",cy:"12",r:"4"}),V("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}n(tn,"SunIcon");function nn(e){return J(X,{...e,children:[V("circle",{cx:"12",cy:"12",r:"9"}),V("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}n(nn,"FaceUncoveredIcon");function rn(e){return J(X,{...e,children:[V("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),V("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),V("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}n(rn,"PhoneEyeLevelIcon");function on(e){return J(X,{...e,children:[V("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"}),V("circle",{cx:"12",cy:"12",r:"2.8"})]})}n(on,"LookStraightIcon");function sn(e){return J(X,{...e,children:[V("path",{d:at}),V("path",{d:"M9 13l2 2 4-4"})]})}n(sn,"CameraCheckIcon");function an(e){return J(X,{...e,children:[V("path",{d:at}),V("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}n(an,"CameraAskIcon");function cn(e){return J(X,{...e,children:[V("path",{d:at}),V("path",{d:"M3 3l18 18"})]})}n(cn,"CameraBlockedIcon");function ve({off:e,className:t}){return J(X,{className:t,children:[V("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?V("path",{d:"M4 4l16 16"}):J(ar,{children:[V("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),V("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}n(ve,"SpeakerIcon");function ln(e){return V(X,{...e,children:V("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}n(ln,"CheckIcon");function un(e){return J(X,{className:e.className??"sekyro-spinner",children:[V("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),V("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}n(un,"SpinnerIcon");import{jsx as ce,jsxs as dn}from"react/jsx-runtime";var je=["light","uncover","eyeLevel","straight"],lr={light:{key:"capture.tips.light",icon:n(()=>ce(tn,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:n(()=>ce(nn,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:n(()=>ce(rn,{}),"icon")},straight:{key:"capture.tips.straight",icon:n(()=>ce(on,{}),"icon")}};function pn({tips:e}){let t=U(),s=cr();return e.length===0?null:dn("section",{className:"sekyro-tips","aria-labelledby":s,"data-testid":"sekyro-tips",children:[ce("p",{className:"sekyro-tips__title",id:s,children:t("capture.tips.title")}),ce("ul",{className:"sekyro-tips__list",children:e.map(o=>{let r=typeof o=="string"?lr[o]:void 0,a=typeof o=="string"?o:o.id,l=r!==void 0?r.icon():typeof o=="string"?void 0:o.icon,p=r!==void 0?t(r.key):typeof o=="string"?o:o.text;return dn("li",{className:"sekyro-tips__item",children:[l!=null?ce("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:l}):null,ce("span",{children:p})]},a)})})]})}n(pn,"TipList");import{useEffect as fn,useId as ur,useRef as dr,useState as pr}from"react";import{jsx as ee,jsxs as $e}from"react/jsx-runtime";var fr=220;function mn({title:e,description:t,options:s,busy:o,error:r,focus:a,testId:l,look:p="cards",marked:C,onChoose:b}){let w=ur(),M=qe(),[k,c]=pr(null),g=dr(null);fn(()=>{r!==null&&c(null)},[r]),fn(()=>()=>{g.current!==null&&clearTimeout(g.current)},[]);let v=n(u=>{o||k!==null||(c(u),g.current=setTimeout(()=>{g.current=null,c(null),b(u)},fr))},"choose");return $e("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":w,"data-testid":l,children:[$e("div",{className:"sekyro-stack sekyro-stack--1",children:[ee("h2",{id:w,ref:a?M:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?ee("p",{className:"sekyro-text-muted",children:t}):null]}),r!==null?ee(j,{tone:"danger",children:ee("span",{children:r})}):null,p==="buttons"?ee("div",{className:"sekyro-stack sekyro-stack--3",children:s.map((u,L)=>ee(D,{kind:L===0?"primary":"ghost",full:!0,disabled:o,"aria-busy":o||void 0,onClick:()=>b(u.id),children:u.label},u.id))}):ee("div",{className:"sekyro-choices",children:s.map(u=>$e("button",{type:"button",className:"sekyro-card","aria-pressed":(k??C)===u.id,"aria-busy":o||void 0,disabled:o||k!==null&&k!==u.id,onClick:()=>v(u.id),children:[u.glyph,$e("span",{className:"sekyro-card__body",children:[ee("span",{className:"sekyro-card__title",children:u.label}),u.sub!==void 0?ee("span",{className:"sekyro-card__sub",children:u.sub}):null]}),ee("span",{className:"sekyro-radio","aria-hidden":"true"})]},u.id))})]})}n(mn,"ChoiceScreen");var ze=["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 pe(e){return e!==null&&ze.includes(e)}n(pe,"isVoiceKey");import{useCallback as ne,useEffect as fe,useLayoutEffect as hr,useMemo as vr,useRef as Ce,useState as _e}from"react";var mr=n((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");function ke(e,t,s){let o;try{if(typeof e=="function")o=e(t,s);else{let r=e[s];o=r!=null&&mr(r,t)?r[t]:null}}catch{return null}return typeof o=="string"&&o!==""?o:null}n(ke,"resolveClip");var yr="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",hn={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};function te(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}n(te,"synth");function gr(){return te()!==null&&typeof SpeechSynthesisUtterance=="function"}n(gr,"speechAvailable");function yn(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}n(yn,"baseLang");function vn(e,t){let s=n(r=>r.replace(/_/g,"-").toLowerCase(),"norm"),o=yn(t);return e.find(r=>s(r.lang)===s(t))??e.find(r=>yn(r.lang)===o)}n(vn,"pickVoice");function kn(e){if(!gr())return!1;let t=[];try{t=te()?.getVoices()??[]}catch{return!0}return t.length===0||vn(t,e)!==void 0}n(kn,"speechUsable");function Cn(e){let t=te();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}n(Cn,"subscribeVoices");function Pe(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}`}}n(Pe,"clipIdentity");function gn(e){e.pause(),e.removeAttribute("src"),e.load()}n(gn,"release");function bn(){let e=null,t=null,s=0,o=null,r=[],a=new Map,l=n(()=>{r=te()?.getVoices()??[]},"loadVoices"),p=!1,C=n(()=>{let c=te();p||c===null||(p=!0,l(),c.addEventListener?.("voiceschanged",l))},"bindVoices"),b=n(()=>(e??(e=new Audio),e),"element"),w=n((c,g,v)=>{let u=te();if(u!==null&&c!==""&&typeof SpeechSynthesisUtterance=="function"){C();let L=vn(r,g);if(r.length===0||L!==void 0){u.cancel();let m=new SpeechSynthesisUtterance(c);m.lang=g,L!==void 0&&(m.voice=L),m.rate=.95,v!==void 0&&(m.onend=m.onerror=v),u.speak(m);return}}v?.()},"speak"),M=n(()=>{s+=1,o=null,e!==null&&(e.pause(),e.currentTime=0),te()?.cancel()},"stop"),k=n(c=>{for(let g of c){let v=Pe(g);if(a.has(v))continue;let u=new Audio;u.preload="auto",u.src=g,a.set(v,u)}},"warmClips");return{say(c){let g=c.url!==null?Pe(c.url):`tts:${c.lang}:${c.text}`;if(g===o)return;o=g,s+=1;let v=s,u=c.onEnd,L=u!==void 0?()=>{v===s&&u()}:void 0;if(te()?.cancel(),c.url!==null){let m=b();m.pause(),m.muted=!1,m.src=c.url,m.currentTime=0,m.onended=L??null,m.play()?.catch(S=>{v===s&&S?.name!=="AbortError"&&(c.speech?w(c.text,c.lang,L):L?.())});return}c.speech?w(c.text,c.lang,L):L?.()},unlock({lang:c,speech:g,prefetch:v}){let u=b();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let S=Uint8Array.from(atob(yr),N=>N.charCodeAt(0));t=URL.createObjectURL(new Blob([S],{type:"audio/wav"}))}let L=u.paused===!1&&t!==null&&u.src!==t;t!==null&&!L&&(u.muted=!0,u.onended=null,u.src=t,u.play()?.catch(()=>{}));let m=te();if(g&&m!==null&&typeof SpeechSynthesisUtterance=="function"){C();let S=new SpeechSynthesisUtterance(" ");S.volume=0,S.lang=c,m.speak(S)}k(v??[])},prefetch:k,stop:M,dispose(){M(),p&&te()?.removeEventListener?.("voiceschanged",l),p=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&gn(e),e=null;for(let c of a.values())gn(c);a.clear()}}}n(bn,"createVoicePlayer");var Sn="sekyro.voiceGuidance";function Vn(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}n(Vn,"readVoicePreference");function Rn(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}n(Rn,"writeVoicePreference");var Ae="capture.tips.summary",kr=typeof window<"u"?hr:fe,Cr=Object.freeze({});function ct(e,t){let s=new Set,o=[];for(let r of ze){let a=r===Ae?null:ke(e,r,t);a===null||s.has(Pe(a))||(s.add(Pe(a)),o.push(a))}return o}n(ct,"resolvedClipUrls");function lt({locale:e,defaultClips:t,options:s}){let o=s===!1,r=o?{}:s??{},a=r.storageKey===void 0?Sn:r.storageKey,[l,p]=_e(r.defaultEnabled??!0),C=Ce(l),[b,w]=_e(!1),[M,k]=_e("none"),[c,g]=_e(!1),v=Ce(!1),[u,L]=_e(0),m=Ce(null),S=ne(()=>(m.current??(m.current=bn()),m.current),[]),N=hn[e],O=r.speechFallback,d=O===void 0||O===!0?!0:O===!1?!1:O.includes(e),G=r.clips??t??Cr,F=Ce(!1),q=Ce(G);kr(()=>{q.current=G,C.current=l}),fe(()=>{if(o||a===null)return;let f=Vn(a);f!==null&&(C.current=f,p(f))},[o,a]),fe(()=>{if(!(o||!d))return Cn(()=>L(f=>f+1))},[o,d]);let i=r.clips;fe(()=>{if(o)return;let f=d&&kn(N);w(ct(G,e).length>0||f),k(i!==void 0&&ke(i,Ae,e)!==null?"partner":ke(G,Ae,e)!==null||f?"default":"none")},[o,G,i,e,d,N,u]),fe(()=>{if(o||!l||!F.current)return;let f=ct(G,e);f.length>0&&S().prefetch(f)},[o,l,G,e,S]),fe(()=>()=>{m.current?.dispose(),m.current=null,F.current=!1},[]);let E=ne(f=>{o||(F.current=!0,S().unlock({lang:N,speech:d,...f?{prefetch:ct(q.current,e)}:{}}))},[o,S,N,d,e]),I=ne(()=>E(C.current),[E]),P=ne(()=>{v.current=!1,g(!1)},[]),A=ne(()=>{P(),m.current?.stop()},[P]),Y=ne(()=>{v.current&&A()},[A]),ue=ne((f,K)=>{if(o)return;if(v.current){A();return}let re=S();re.stop(),v.current=!0,g(!0);let x=K?.clip===!1?null:ke(q.current,Ae,e);re.say({url:x,text:f,lang:N,speech:d,onEnd:P})},[o,A,S,e,N,d,P]),_=ne(f=>{o||(f?E(!0):A(),a!==null&&Rn(a,f),C.current=f,p(f))},[o,E,A,a]),Z=ne(()=>_(!C.current),[_]),T=ne((f,K)=>{if(o||!l)return;v.current&&P();let re=ke(q.current,f,e);S().say({url:re,text:K,lang:N,speech:d})},[o,l,e,S,N,d,P]);return vr(()=>({supported:!o&&b,enabled:!o&&l,setEnabled:_,toggle:Z,unlock:I,speakKey:T,stop:A,summary:o?"none":M,summaryPlaying:c,toggleSummary:ue,stopSummary:Y}),[o,b,l,_,Z,I,T,A,M,c,ue,Y])}n(lt,"useVoiceGuidance");function ut(e,t,s,o){let{speakKey:r,stop:a,enabled:l}=e,p=Ce(!1);fe(()=>{if(!o||!l){p.current&&a(),p.current=!1;return}p.current=!0,pe(t)&&t!==Ae&&s!==""&&r(t,s)},[o,l,t,s,r,a])}n(ut,"useSpeakGuidance");import{isValidElement as Yr,useCallback as Je,useContext as Zr,useEffect as le,useMemo as Le,useRef as me,useState as Wn}from"react";import{useEffect as br,useRef as Sr}from"react";import{jsx as be,jsxs as dt}from"react/jsx-runtime";function Ln({showCoaching:e,attemptsText:t,showRetake:s,onRetake:o}){let r=U(),a=Sr(null);return br(()=>{s&&a.current?.focus()},[s]),!e&&!s?null:dt("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?dt("div",{className:"sekyro-stack sekyro-stack--1",children:[be("p",{className:"sekyro-text-body",children:r("capture.retryCoaching.title")}),dt("ul",{className:"sekyro-coaching",children:[be("li",{children:r("capture.retryCoaching.light")}),be("li",{children:r("capture.retryCoaching.eyeLevel")}),be("li",{children:r("capture.retryCoaching.head")})]}),t!==null?be("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:t}):null]}):null,s?be(D,{ref:a,className:"sekyro-btn--start",onClick:o,children:r("capture.recordAgain")}):null]})}n(Ln,"CapturedPanel");function Ye(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}n(Ye,"isDevBuild");import{createContext as Vr}from"react";var wn=Vr(null);import{useCallback as En,useEffect as Pn,useRef as Se}from"react";import{useId as Rr}from"react";import{jsx as Ze,jsxs as pt}from"react/jsx-runtime";var Lr=["user","environment"];function Mn({value:e,onChange:t}){let s=U(),o=Rr();return pt("fieldset",{className:"sekyro-segmented","data-testid":"sekyro-facing",children:[Ze("legend",{className:"sekyro-segmented__legend",children:s("capture.cameraLabel")}),Ze("div",{className:"sekyro-segmented__options",children:Lr.map(r=>pt("label",{className:"sekyro-segmented__option",children:[Ze("input",{type:"radio",className:"sekyro-segmented__input",name:o,value:r,checked:e===r,onChange:()=>t(r)}),pt("span",{className:"sekyro-segmented__face",children:[Ze("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),s(`capture.facing.${r}`)]})]},r))})]})}n(Mn,"FacingPicker");import{useEffect as wr,useState as Mr}from"react";import{jsx as Te,jsxs as Ir}from"react/jsx-runtime";function In({state:e}){let t=U(),[s,o]=Mr(!1);wr(()=>{e!=="unknown"&&o(!0)},[e]);let r=e==="granted"?Te(sn,{}):e==="denied"?Te(cn,{}):Te(an,{});return Ir("div",{role:s?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[Te("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:r}),Te("span",{children:t(`capture.permission.${e}`)})]})}n(In,"PermissionRow");import{jsx as We,jsxs as xn}from"react/jsx-runtime";function Nn({voice:e}){let t=U();if(!e.supported)return null;let s=e.enabled;return xn("button",{type:"button",role:"switch","aria-checked":s,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[xn("span",{className:"sekyro-switch__label",children:[We(ve,{off:!s}),t("capture.voiceGuidance")]}),We("span",{className:"sekyro-switch__track","aria-hidden":"true",children:We("span",{className:"sekyro-switch__thumb",children:s?We(ln,{className:"sekyro-switch__check"}):null})})]})}n(Nn,"VoiceSwitch");import{Fragment as Nr,jsx as B,jsxs as Ve}from"react/jsx-runtime";function _n({assets:e,onRetryAssets:t,permission:s,captureMode:o="self",canChooseFacing:r,facing:a,onFacingChange:l,voice:p,tips:C,summary:b,startLabel:w,startDisabled:M,onStart:k}){let c=U(),g=Se(b?.stop);g.current=b?.stop,Pn(()=>()=>g.current?.(),[]);let v=Se(null),u=Se(null),L=Se(null),m=Se(e),S=Se(!1);Pn(()=>{let i=m.current;if(m.current=e,i===e)return;let E=S.current;e!=="loading"&&(S.current=!1),xr(v.current)&&(e==="failed"?L.current?.focus():E&&u.current?.focus())},[e]);let N=En(()=>{S.current=!0,t()},[t]),O=e==="loading",d=O||M,G=En(()=>{d||(g.current?.(),k())},[d,k]),F;e==="failed"?F=Ve(j,{tone:"danger",testId:"sekyro-assets-error",children:[B("p",{className:"sekyro-text-body",children:c("fcv2.err.models")}),B(D,{kind:"ghost",ref:L,className:"sekyro-btn--start",onClick:N,"data-testid":"sekyro-assets-retry",children:c("common.retry")})]}):F=Ve("div",{className:"sekyro-stack sekyro-stack--1",children:[B(D,{ref:u,full:!0,"data-testid":"sekyro-start","aria-disabled":d?"true":void 0,"aria-busy":O?"true":void 0,onClick:G,children:O?Ve(Nr,{children:[B(un,{}),c("capture.preparing.title")]}):w??c("capture.start")}),O?B("p",{className:"sekyro-text-muted",children:c("capture.preparing.hint")}):null]});let q=o==="assisted";return Ve("div",{ref:v,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[q?Ve("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[B("h2",{className:"sekyro-text-body",children:c("capture.assisted.title")}),B("p",{className:"sekyro-text-muted",children:c("capture.assisted.lead")})]}):null,C!==!1?B(pn,{tips:C}):null,b!==void 0?Ve(D,{kind:"ghost",className:"sekyro-btn--start",onClick:b.toggle,"data-testid":"sekyro-tips-listen",children:[B(ve,{off:!1}),c(b.playing?"capture.tips.stop":"capture.tips.listen")]}):null,B(In,{state:s}),q&&r?B(Mn,{value:a,onChange:l}):null,B(Nn,{voice:p}),B("p",{className:"sekyro-text-muted",children:c("capture.securityNote")}),F,B("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?c("capture.preparing.title"):e==="ready"?c("capture.ready"):""})]})}n(_n,"PreCaptureScreen");function xr(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}n(xr,"focusIsOurs");import{useEffect as ft,useState as mt}from"react";function An(e){return Kn(e,"mobileRequired")}n(An,"useMobileRequired");function Tn(e){return Kn(e,"returning").required}n(Tn,"useReturning");function Kn(e,t){let[s,o]=mt({required:!1,settled:e===void 0});return ft(()=>{let r=e?.[t];if(e===void 0||typeof r!="function"){o({required:!1,settled:!0});return}let a=!0;return o({required:!1,settled:!1}),Promise.resolve().then(()=>r.call(e)).then(l=>{a&&o({required:l===!0,settled:!0})},()=>{a&&o({required:!1,settled:!0})}),()=>{a=!1}},[e,t]),s}n(Kn,"useFlag");function On(e){let[t,s]=mt({mode:"self",settled:e===void 0});return ft(()=>{let o=e?.captureMode;if(e===void 0||typeof o!="function"){s({mode:"self",settled:!0});return}let r=!0;return s({mode:"self",settled:!1}),Promise.resolve().then(()=>o.call(e)).then(a=>{r&&s({mode:a==="assisted"?"assisted":"self",settled:!0})},()=>{r&&s({mode:"self",settled:!0})}),()=>{r=!1}},[e]),t}n(On,"useCaptureMode");function Fn(e){let[t,s]=mt(!1);return ft(()=>{if(s(!1),e===void 0)return;let o=e.on("busy",()=>s(!0)),r=e.on("result",()=>s(!1));return()=>{o(),r()}},[e]),t}n(Fn,"useBusy");import{getLivenessAssetsStatus as Er,preloadLivenessAssets as Pr,subscribeLivenessAssets as _r}from"@sekyro/web";import{useCallback as yt,useEffect as Hn,useRef as Un,useState as Ar,useSyncExternalStore as Tr}from"react";var Kr=n(()=>"idle","serverSnapshot");function Bn(e){return Pr(e!==void 0?{assetBaseUrl:e}:{})}n(Bn,"preload");function Gn(e,t=!0){let s=Tr(yt(M=>_r(M,e),[e]),()=>Er(e),Kr),[o,r]=Ar(null),a=Un(!1),l=yt(()=>{Bn(e).then(M=>{a.current&&M==="idle"&&r({base:e})})},[e]);Hn(()=>(a.current=!0,l(),()=>{a.current=!1}),[l]);let p=Un(null);Hn(()=>{if(s!=="idle"){p.current={base:e};return}!t||p.current===null||p.current.base!==e||(p.current=null,l())},[s,e,l,t]);let C=yt(()=>{Bn(e)},[e]);return{gate:o!==null&&o.base===e&&s==="idle"||s==="ready"?"ready":s==="failed"?"failed":"loading",retry:C}}n(Gn,"useLivenessAssets");import{createLivenessCapture as Or}from"@sekyro/web";import{useCallback as gt,useEffect as Fr,useRef as Re,useState as z}from"react";var Dn={progress:0,hint:null,faceDetected:!1};function qn(e){let{videoRef:t,assetBaseUrl:s}=e,r=Re(e.verification).current,a=Re(!1);e.verification!==r&&!a.current&&Ye()&&(a.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 l=Re(null),[p,C]=z("idle"),[b,w]=z(Dn),[M,k]=z(!1),[c,g]=z(!1),[v,u]=z(null),[L,m]=z(!1),[S,N]=z(null),[O,d]=z(null),[G,F]=z(null),[q,i]=z(null),[E,I]=z(null),P=Re(null),A=Re("idle"),Y=Re(e);Y.current=e,Fr(()=>{let T=t.current;if(T===null)return;let f={video:T,...s!==void 0?{assetBaseUrl:s}:{}},K=r!==void 0?r.liveness(f):Or(f);l.current=K;let re=n(()=>I(K.facingMode??null),"readFacing");re();let x=[K.on("state",h=>{h==="starting"?(d(null),F(null),w(Dn),g(!1),k(!1),u(null),N(null),P.current=null):h==="gating"&&A.current==="recording"&&(g(!1),k(!1),u(null),P.current=null),A.current=h,re(),C(h),Y.current.onStateChange?.(h)}),K.on("gate",h=>{let ye=P.current;P.current=h.progress,k(ye!==null&&h.progress<ye-.001&&h.progress>0&&h.progress<1),h.progress>=1&&g(!0),w(h)}),K.on("frozen",({previewDataUrl:h})=>u(h)),K.on("profile",({animations:h})=>m(h==="reduced")),K.on("ramp",({colour:h})=>N(h)),K.on("captured",h=>{d(h),i(null),Y.current.onCaptured?.(h)}),K.on("error",h=>{F(h),Y.current.onError?.(h)}),r?.on("result",h=>{i(h),Y.current.onResult?.(h)})];return()=>{for(let h of x)h?.();l.current=null,K.destroy()}},[r,t,s]);let ue=gt(T=>{l.current?.start(T)},[]),_=gt(()=>{l.current?.retry()},[]),Z=gt(()=>{let T=l.current,f=T?.switchCamera()===!0;return f&&(I(T?.facingMode??null),g(!1),k(!1),u(null),P.current=null),f},[]);return{state:p,gate:b,draining:M,gateLocked:c,frozenPreview:v,reduceMotion:L,rampColour:S,artifacts:O,error:G,result:q,facingMode:E,start:ue,retry:_,switchCamera:Z}}n(qn,"useLivenessHandle");import{useCallback as Hr,useEffect as Ur,useState as Qe}from"react";var Br=new Set(["national_number"]);function jn(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(s=>Br.has(s));return t.length>0?{...e,options:t}:null}n(jn,"pending");function $n(e){let[t,s]=Qe(null),[o,r]=Qe(e===void 0),[a,l]=Qe(!1),[p,C]=Qe(!1);Ur(()=>{if(s(null),e===void 0){r(!0);return}let k=!0,c=e.methodChoice;typeof c=="function"?(r(!1),Promise.resolve().then(()=>c.call(e)).then(v=>{k&&s(jn(v))},()=>{}).finally(()=>{k&&r(!0)})):r(!0);let g=e.on("method",v=>s(jn(v)));return()=>{k=!1,g()}},[e]);let b=Hr(async k=>{if(e===void 0)return!1;l(!0),C(!1);try{return await e.selectMethod(k),s(null),!0}catch{return C(!0),!1}finally{l(!1)}},[e]),w=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:w==="national_number"&&!p?w:null,settled:o,busy:a,failed:p,select:b}}n($n,"useMethodChoice");import{useEffect as Gr,useMemo as Dr,useState as qr}from"react";var jr=["ar","fr","en"];function $r(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}n($r,"isClipUrl");function zr(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let s={};for(let o of jr){let r=t[o];if(!(typeof r!="object"||r===null))for(let[a,l]of Object.entries(r))!pe(a)||!$r(l)||((s[o]??(s[o]={}))[a]=l)}return Object.keys(s).length>0?s:null}n(zr,"toVoiceClipMap");function zn(e){let[t,s]=qr(null);Gr(()=>{if(s(null),e===void 0)return;let r=!0,a=n(p=>{if(!r)return;let C=typeof p=="object"&&p!==null&&typeof p.setId=="string"?p:null;s(b=>b?.setId===C?.setId?b:C)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(a,()=>a(null))}catch{a(null)}let l=e.on("view",p=>a(p.voice));return()=>{r=!1,l()}},[e]);let o=Dr(()=>t!==null?zr(t):null,[t]);return e===void 0?null:o}n(zn,"useServerVoiceClips");import{jsx as Yn}from"react/jsx-runtime";function Zn({voice:e}){let t=U();return Yn(D,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:Yn(ve,{off:!e.enabled,className:"sekyro-icon"})})}n(Zn,"VoiceChip");import{Fragment as Qn,jsx as R,jsxs as we}from"react/jsx-runtime";var Wr=800;function Qr(e){return e===void 0||e!==!1&&e.length===je.length&&je.every(t=>e.includes(t))}n(Qr,"isDefaultTips");function Jr(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}n(Jr,"carriesActivation");function Xr(e){return typeof e=="object"&&e!==null&&!Yr(e)&&"tone"in e&&"text"in e}n(Xr,"isNoticeObject");function eo(e){return e==="starting"||e==="gating"||e==="recording"}n(eo,"isCapturing");function to(e){return e==="captured"||e==="uploading"||e==="checking"}n(to,"isPostCapture");function mi({verification:e,locale:t,dir:s,strings:o,slots:r,autoStart:a=!1,notice:l,startDisabled:p=!1,startLabel:C,tips:b,tipsSummary:w,coach:M,voice:k,onGuidance:c,onCaptured:g,onResult:v,onError:u,onStateChange:L,assetBaseUrl:m,className:S}){let N=Wt(t),O=Le(()=>Zt(t,o),[t,o,N]),d=Le(()=>y=>O[y]??"",[O]),G=s??(t==="ar"?"rtl":"ltr"),F=me(null),q=Zr(wn),i=qn({verification:e,videoRef:F,assetBaseUrl:m,onCaptured:g,onResult:v,onError:u,onStateChange:L}),E=Gn(m,i.state==="idle"&&i.error===null),I=$n(e),P=I.choice!==null,A=An(e),Y=Tn(e),ue=Fn(e),_=Xt(),Z=On(e),T=Z.mode==="assisted",f=T&&_.canChooseFacing,K=k!==!1&&k?.clips===void 0,re=zn(K?e:void 0),x=lt({locale:t,defaultClips:re,options:k}),[h,ye]=Wn(null),W=T?h??(_.canChooseFacing?"environment":"user"):"user",ht=Z.settled&&(!T||_.facingSettled),vt=me(null),Ke=me(!1),kt=me(x.unlock);kt.current=x.unlock,le(()=>{let y=vt.current;if(y===null)return;let Q=["pointerup","touchend","click","keydown"],ae=n(()=>{for(let Ee of Q)y.removeEventListener(Ee,he,!0)},"disarm");function he(Ee){if(Ke.current){ae();return}Jr(Ee)&&(Ke.current=!0,ae(),kt.current())}n(he,"onGesture");for(let Ee of Q)y.addEventListener(Ee,he,{capture:!0,passive:!0});return ae},[]);let Ct=Je(()=>{Ke.current||(Ke.current=!0,x.unlock()),i.start({facing:W})},[x.unlock,i.start,W]),bt=Je(()=>i.start({facing:W}),[i.start,W]),Oe=me(!1),Me=i.state==="idle"&&i.error===null,St=!P&&!A.required&&(a===!0||a==="when-permitted"&&_.permission==="granted"),Vt=St&&I.settled&&A.settled&&ht,Jn=a==="when-permitted"&&!_.permissionSettled&&!Oe.current,Rt=St&&Me&&!Oe.current,Xe=(Jn||Rt||!ht)&&E.gate==="ready"?"loading":E.gate;le(()=>{!Vt||!Me||E.gate!=="ready"||Oe.current||(Oe.current=!0,bt())},[Vt,Me,E.gate,bt]);let Xn=Me&&!P&&!A.required&&!(Rt&&E.gate==="ready"),Lt=Je(()=>{i.switchCamera()&&ye(W==="user"?"environment":"user")},[i.switchCamera,W]),wt=i.state!=="idle"&&i.facingMode!==null?i.facingMode:W;le(()=>{let y=F.current?.style;wt==="user"?y?.removeProperty("transform"):y&&(y.transform="none")},[wt]);let Fe=Le(()=>i.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(i.artifacts.keyframe):null,[i.artifacts]);le(()=>{if(Fe!==null)return()=>URL.revokeObjectURL(Fe)},[Fe]);let Mt=i.frozenPreview??Fe,ge=e!==void 0,H=eo(i.state),ie=to(i.state),He=H||ie,$=i.result,It=i.state==="done"&&$!==null,xt=i.state==="recording"&&i.frozenPreview!==null,et=q!==null,Ie=ie||xt,Nt=ie?"checking":xt?"frozen":i.state==="recording"?"recording":i.gateLocked||i.gate.progress>=1?"locked":i.gate.faceDetected?"aligning":"seeking",Ue=H?i.gate.hint:null,Be=i.state==="starting"?"capture.preparing.title":Ue===null?null:Ue==="center"&&!i.gate.faceDetected?"fcv3.no_face":Dt(Ue),[er,Et]=Wn(null);le(()=>{if(Be!=="fcv3.no_face"){Et(Be);return}if(!H)return;let y=setTimeout(()=>Et(Be),Wr);return()=>clearTimeout(y)},[Be,H]);let tt=H&&typeof M=="string"&&M!=="",Pt=T&&H?d("capture.assisted.stage"):null,de=H&&!tt?er:null,nt=tt?M:de===null?"":d(de);ut(x,de,nt,H);let _t=me(c);_t.current=c,le(()=>{if(pe(de))try{_t.current?.(de)}catch(y){console.error("[@sekyro/react] onGuidance threw:",y)}},[de]);let xe=Le(()=>({supported:x.supported,enabled:x.enabled,setEnabled:x.setEnabled,toggle:x.toggle}),[x.supported,x.enabled,x.setEnabled,x.toggle]),rt=r?.voicePrompt,At=rt!==void 0,Tt=k===void 0,Kt=me(!1);le(()=>{!At||!Tt||Kt.current||!Ye()||(Kt.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."))},[At,Tt]);let tr=rt!==void 0?(y,Q,ae)=>rt(y,Q,ae,xe):x.supported?()=>R(Zn,{voice:xe}):void 0,{summary:ot,summaryPlaying:Ot,toggleSummary:Ft,stopSummary:Ht}=x,Ge=w!==void 0&&w!=="",Ut=Ge?w:d("capture.tips.summary"),Bt=Ge?ot!=="none":ot==="partner"||ot==="default"&&Qr(b),nr=Le(()=>Bt?{playing:Ot,toggle:n(()=>Ft(Ut,{clip:!Ge}),"toggle"),stop:Ht}:void 0,[Bt,Ot,Ft,Ut,Ht,Ge]),rr=Le(()=>({assets:Xe,retryAssets:E.retry,permission:_.permission,permissionSettled:_.permissionSettled,captureMode:Z.mode,facing:W,setFacing:ye,canChooseFacing:f,voice:xe}),[Xe,E.retry,_.permission,_.permissionSettled,Z.mode,f,W,xe]),or=Xr(l)?R(j,{tone:l.tone,testId:"sekyro-host-notice",children:R("span",{children:l.text})}):l??null,oe=$!==null&&$.status==="retry"?$:null,se=It&&$.status==="unavailable"&&!P&&$.reason!=="portrait_required"?$:null,Ne=It&&($.status==="approved"||$.status==="rejected"||$.status==="review")?$:null,De=n((y,Q)=>{if(y===void 0)return null;if(y==="device_cooldown"){let he=zt(t,Q);if(he!==null)return d(he.key).replace("{time}",he.time)}let ae=$t(y);return ae===null?null:d(ae)},"reasonText"),st=n(y=>{let Q=y.retakeHint===void 0?null:qt(y.retakeHint);return Q===null?De(y.reason):d(Q)},"retryText"),sr=se!==null&&se.reason!==void 0&&se.reason!=="nni_unbound"&&se.reason!=="method_required"&&se.reason!=="mobile_required"&&!(se.reason==="no_recorder"&&i.artifacts?.degraded==="NO_RECORDER"),Gt=qe(),ir=P&&I.auto===null&&!H&&!ie&&i.error===null,it=Je(async y=>{await I.select(y)&&i.state==="done"&&i.retry()},[I.select,i.state,i.retry]);return le(()=>{I.auto!==null&&!I.busy&&!H&&!ie&&it(I.auto)},[I.auto,I.busy,H,ie,it]),R(Qt,{value:d,children:we("div",{ref:vt,className:S===void 0?"sekyro-capture":`sekyro-capture ${S}`,dir:G,lang:t,"data-testid":"sekyro-liveness-capture","data-state":i.state,children:[r?.header,oe!==null&&st(oe)!==null&&!(et&&He)?R(j,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:R("span",{children:st(oe)})}):null,ue&&ie&&!et?R(j,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:R("span",{children:d("capture.busy")})}):null,A.required&&Me?R(j,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:R("span",{children:d("reasons.mobile_required")})}):null,i.error!==null?r?.errorPanel!==void 0?r.errorPanel(i.error,i.retry):we(j,{tone:"danger",testId:"sekyro-error-notice",children:[R("span",{children:d(jt(i.error.kind))}),i.error.retryable?R(D,{ref:Gt,kind:"ghost",className:"sekyro-btn--start",onClick:i.retry,children:d("common.retry")}):null]}):null,se!==null?we(j,{tone:"danger",testId:"sekyro-unavailable-notice",children:[R("span",{children:De(se.reason)??d(se.reason===void 0?"errors.session_expired":"errors.network_error")}),sr?R(D,{ref:Gt,kind:"ghost",className:"sekyro-btn--start",onClick:i.retry,children:d("capture.recordAgain")}):null]}):null,Ne!==null&&De(Ne.reason)!==null?R(j,{tone:Ne.status==="rejected"?"danger":"info",testId:"sekyro-result-notice",children:R("span",{children:De(Ne.reason,Ne.retryAfter)})}):null,R("div",{className:He?void 0:"sekyro-hidden","data-capture-live":He?"":void 0,children:et?q({videoRef:F,guidance:Ie&&ge?d("capture.checking"):nt,coached:tt&&!(Ie&&ge),note:Ie?ge?d(ue?"capture.busy":"capture.checkingHint"):null:oe!==null?st(oe):Pt,settled:Ie&&ge,progress:i.gate.progress,phase:Nt,still:Ie?Mt:null,live:He,switchCamera:H&&i.state!=="recording"&&f&&Lt,ramp:i.rampColour===null?null:{colour:i.rampColour}}):R(Jt,{videoRef:F,guidanceText:nt,guidanceHint:Ue,guidanceKey:de,progress:i.gate.progress,phase:Nt,draining:i.draining,stillUrl:Mt,showChecking:ge,onSwitchCamera:Lt,canSwitchCamera:T&&H&&i.state!=="recording",operatorText:Pt,voicePrompt:tr,overlay:y=>we(Qn,{children:[r?.stageOverlay?.(y),R(en,{colour:i.rampColour})]}),reduceMotion:i.reduceMotion})}),ir&&I.choice!==null?R(mn,{title:d("method.title"),description:d("method.description"),options:I.choice.options.map(y=>({id:y,label:d(`method.${y}`)})),busy:I.busy,error:I.failed?d("errors.network_error"):null,focus:i.state==="done",testId:"sekyro-method",look:"buttons",onChoose:y=>{it(y)}}):null,Xn?we(Qn,{children:[Y&&r?.header===void 0?we("div",{className:"sekyro-stack sekyro-stack--1",children:[R("h2",{className:"sekyro-text-body",children:d("returning.title")}),R("p",{className:"sekyro-text-muted",children:d("returning.description")})]}):null,or,r?.intro!==void 0?r.intro(Ct,rr):R(_n,{assets:Xe,onRetryAssets:E.retry,permission:_.permission,captureMode:Z.mode,canChooseFacing:f,facing:W,onFacingChange:ye,voice:xe,tips:b??je,summary:nr,startLabel:C,startDisabled:p,onStart:Ct})]}):null,R(Ln,{showCoaching:oe!==null,attemptsText:oe?.attemptsRemaining!==void 0?Yt(O,t,oe.attemptsRemaining):null,showRetake:oe!==null&&!H&&!ie||!ge&&i.state==="captured",onRetake:i.retry}),r?.footer]})})}n(mi,"LivenessCapture");export{wn as a,Mn as b,je as c,mn as d,ze as e,Wr as f,mi as g};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{a as t}from"./chunk-PXRIFHY2.js";import{useEffect as u,useState as s}from"react";function f(e){let[n,o]=s(()=>Date.now());return u(()=>{if(!e)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[e]),n}t(f,"useNow");export{f as a};
2
+ import{a as t}from"./chunk-2KED7D2Q.js";import{useEffect as u,useState as s}from"react";function f(e){let[n,o]=s(()=>Date.now());return u(()=>{if(!e)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[e]),n}t(f,"useNow");export{f as a};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as s}from"./chunk-2KED7D2Q.js";var a={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};import{jsx as k}from"react/jsx-runtime";var n={colors:{...a.light},radius:a.radiusLg,fontFamily:a.font},c={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function y(r={}){let o={};for(let e of Object.keys(c))o[c[e]]=r.colors?.[e]??n.colors[e];return o["--sekyro-radius"]=r.radius??n.radius,o["--sekyro-font"]=r.fontFamily??n.fontFamily,o}s(y,"themeToCssVars");var g=/^#[0-9a-f]{6}$/i,l={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},u={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function b(r){let o={};if(!r)return o;let e={};for(let[f,d]of Object.entries(r.colors??{}))f in c&&f!=="ring"&&g.test(d??"")&&(e[f]=d);e.brand&&(e.ring=e.brand),Object.keys(e).length&&(o.colors=e);let t=l[r.radius];t&&(o.radius=t);let i=u[r.fontFamily];return i!==void 0&&(o.fontFamily=i?`${i}, ${n.fontFamily}`:n.fontFamily),o}s(b,"brandingToTheme");function p(...r){let o={};for(let e of r)e?.colors&&(o.colors={...o.colors,...e.colors}),e?.radius&&(o.radius=e.radius),e?.fontFamily&&(o.fontFamily=e.fontFamily);return o}s(p,"mergeThemes");function h({theme:r,children:o,className:e}){let t=y(r);return k("div",{className:e===void 0?"sekyro-root":`sekyro-root ${e}`,style:t,children:o})}s(h,"SekyroThemeProvider");export{a,n as b,y as c,b as d,p as e,h as f};