@sekyro/react 0.1.0-rc.16 → 0.1.0-rc.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/{chunk-IUQTOOBI.js → chunk-25KWDPLY.js} +1 -1
  3. package/dist/chunk-55NNQK5P.js +2 -0
  4. package/dist/chunk-6I7GU4FS.js +2 -0
  5. package/dist/chunk-A6UYUVEG.js +2 -0
  6. package/dist/chunk-DY5WQVPE.js +2 -0
  7. package/dist/chunk-GUTF3SPK.js +2 -0
  8. package/dist/chunk-JT7YHK7F.js +2 -0
  9. package/dist/chunk-LPGHMDD4.js +2 -0
  10. package/dist/chunk-NV7HZJM4.js +2 -0
  11. package/dist/chunk-T3PAN4NN.js +2 -0
  12. package/dist/chunk-XTQARDSJ.js +2 -0
  13. package/dist/chunk-YVNQ3UUH.js +2 -0
  14. package/dist/{chunk-IT66PZDO.js → chunk-Z7US4CLZ.js} +1 -1
  15. package/dist/document-capture-view-WDGHEAUI.js +2 -0
  16. package/dist/eid-view-HQLNWM6A.js +2 -0
  17. package/dist/email-otp-view-LCIDGNZT.js +2 -0
  18. package/dist/flow-views-K3HXMKPU.js +2 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/overlay-de-YQA44XTY.js +2 -0
  22. package/dist/overlay-es-6KRUPYG4.js +2 -0
  23. package/dist/overlay-pt-QEAE4TDI.js +2 -0
  24. package/dist/portrait-capture-view-I7I6FJQO.js +2 -0
  25. package/dist/portrait-review-view-A5HGZ7ZN.js +2 -0
  26. package/dist/verification/index.cjs +1 -1
  27. package/dist/verification/index.d.cts +66 -2
  28. package/dist/verification/index.d.ts +66 -2
  29. package/dist/verification/index.js +1 -1
  30. package/dist/verification.css +210 -70
  31. package/package.json +2 -2
  32. package/sbom.cdx.json +4 -4
  33. package/dist/chunk-5TOBG5R2.js +0 -2
  34. package/dist/chunk-EZ5TVL6P.js +0 -2
  35. package/dist/chunk-FNBG3472.js +0 -2
  36. package/dist/chunk-GGTRTUW3.js +0 -2
  37. package/dist/chunk-H2KIOYQU.js +0 -2
  38. package/dist/chunk-KHBM3P4C.js +0 -2
  39. package/dist/chunk-NXVTUTKS.js +0 -2
  40. package/dist/chunk-OUG465K6.js +0 -2
  41. package/dist/chunk-PYAJMHZH.js +0 -2
  42. package/dist/chunk-XDPCJAYO.js +0 -2
  43. package/dist/chunk-YY76AMUA.js +0 -2
  44. package/dist/document-capture-view-PUGWMQAP.js +0 -2
  45. package/dist/eid-view-IMKKBPQV.js +0 -2
  46. package/dist/email-otp-view-YLMRRLC3.js +0 -2
  47. package/dist/flow-views-HFQJ45NS.js +0 -2
  48. package/dist/overlay-de-ZICWH4MW.js +0 -2
  49. package/dist/overlay-es-2ETCIRV4.js +0 -2
  50. package/dist/overlay-pt-2DX57E2U.js +0 -2
  51. package/dist/portrait-capture-view-M5OLPMMO.js +0 -2
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as d,b as u}from"./chunk-A6UYUVEG.js";import{d as s,g as c,h as p}from"./chunk-25KWDPLY.js";import{a as i}from"./chunk-2KED7D2Q.js";var l={"session.title":"تحقّق من هويتك","session.requestedBy":"تطلب {orgName} منك التحقق من هويتك","returning.requestedBy":"تطلب {orgName} منك تأكيد أنك أنت","consent.notice":"بإكمال عملية التحقق من الهوية، فإنك توافق على معالجة بياناتك الشخصية والبيومترية للتحقق من هويتك.","consent.details":"التفاصيل","consent.terms.intro":"تتحقق Sekyro AI من هويتك نيابةً عن الجهة التي أرسلت إليك هذا الرابط. قبل البدء، اطّلع على كيفية استخدام بياناتك.","consent.terms.data":"أثناء التحقق، تجمع Sekyro AI صور وثيقة هويتك، ومقطع فيديو ذاتيًا قصيرًا، وصورة ذاتية، ورقم وثيقة هويتك.","consent.terms.processing":"تُستخدم هذه البيانات للتحقق من هويتك فقط: يُقارَن وجهك بالصورة الموجودة على وثيقتك، ويُطابَق رقمك مع سجلات الجهة المُصدِرة متى أمكن ذلك. وقد يفحص بعض الخطوات مراجع بشري مخوَّل.","consent.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.modePicker.legendPhoto":"من يلتقط الصورة؟","capture.modePicker.helpPhoto":"اختر شخص يساعدني عندما يحمل شخص آخر الهاتف ويلتقط صورتك.","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":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","otp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.phonePlaceholderGeneric":"أدخل رقم هاتفك بدون رمز البلد","otp.countryLabel":"البلد","otp.phoneLengthError":"تحقق من الرقم: يجب أن يكون عدد أرقامه {digits}.","otp.or":"أو","otp.otherCountry":"بلد آخر","otp.reason_otp_number_invalid":"لا يبدو هذا الرقم كاملاً لبلده. تحقق منه ثم أعد المحاولة.","otp.reason_otp_number_not_mobile":"أدخل رقم هاتف محمول. لا يمكن إرسال الرموز إلى خط أرضي.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","population.reason_id_number_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.reason_registry_record_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_registry_record_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","doc.ageStepUp":"لم نتمكّن من التأكد من عمرك من الصورة الذاتية. تابع باستخدام وثيقة هوية.","reasons.underage_estimated":"هذه الخدمة مخصّصة لمن بلغوا الحد الأدنى للسن المطلوب.","reasons.starter_credit_claimed":"سبق أن منح تحققك رصيدًا ابتدائيًا لمؤسسة أخرى. يُمنح هذا الرصيد مرة واحدة لكل شخص.","reasons.blocked_by_org":"لا يمكن متابعة هذا التحقق. تواصل مع الجهة التي أرسلت لك هذا الرابط.","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","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 للمتابعة.","consent.termsTitle":"كيف تُستخدم بياناتك","leave.title":"مغادرة التحقق؟","leave.body":"إذا غادرت الآن، فلن يكتمل التحقق.","leave.confirm":"مغادرة","leave.stay":"البقاء","otp.changeNumber":"تغيير الرقم","otp.backToCode":"العودة إلى الرمز","otp.reason_otp_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","reasons.otp_resend_limit":"تم بلوغ الحد الأقصى لرموز التحقق في هذه الجلسة","common.back":"رجوع","capture.assisted.heading":"صوّر وجه الشخص","returning.heading":"أكّد أنك أنت","capture.checkingTitle":"جارٍ التحقق من هويتك…","method.heading":"كيف تريد التحقق من هويتك؟","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 h={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","capture.modePicker.legendPhoto":"Who is taking the photo?","capture.modePicker.helpPhoto":"Choose Someone is helping me when another person holds the phone and takes your photo.","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","otp.reason_payment_method_required":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_spend_cap_reached":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_insufficient_balance":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.phonePlaceholderGeneric":"Type your phone number without the prefix","otp.countryLabel":"Country","otp.phoneLengthError":"Check the number: it should have {digits} digits.","otp.or":"or","otp.otherCountry":"Another country","otp.reason_otp_number_invalid":"This number does not look complete for its country. Check it and try again.","otp.reason_otp_number_not_mobile":"Enter a mobile number. Codes cannot reach a landline.","session.steps.population.title":"Enter your ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","population.reason_id_number_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.reason_registry_record_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_registry_record_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Choose your document","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","doc.ageStepUp":"We could not confirm your age from the selfie. Continue with an ID document.","reasons.underage_estimated":"This service is for people who have reached its minimum age.","reasons.starter_credit_claimed":"Your verification already earned a starting credit for another organization. It is given once per person.","reasons.blocked_by_org":"This verification can't continue. Contact the organization that sent you this link.","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Processing your checks","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","session.processing.age_estimation.title":"Checking your age","session.processing.age_estimation.description":"This takes a few seconds","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done. You can close this page","session.result.review.title":"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":"Identity not verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"Session 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 session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photos…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This step needs the app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","consent.termsTitle":"How your data is used","leave.title":"Leave verification?","leave.body":"If you leave now, your verification will not be finished.","leave.confirm":"Leave","leave.stay":"Stay","otp.changeNumber":"Change number","otp.backToCode":"Back to code","otp.reason_otp_resend_limit":"You can't get more codes. Enter the last code you received","reasons.otp_resend_limit":"The maximum number of verification codes for this session was reached","common.back":"Back","capture.assisted.heading":"Film the person's face","returning.heading":"Confirm it's you","capture.checkingTitle":"Checking your identity…","method.heading":"How do you want to verify?","population.recheck.title":"Check your ID number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Choose the issuing country","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you're human","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.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 m={"session.title":"Vérifiez votre identité","session.requestedBy":"{orgName} vous demande de vérifier votre identité","returning.requestedBy":"{orgName} vous demande de confirmer qu'il s'agit bien de vous","consent.notice":"En poursuivant la vérification d'identité, vous consentez au traitement de vos données personnelles et biométriques afin de vérifier votre identité.","consent.details":"En savoir plus","consent.terms.intro":"Sekyro AI vérifie votre identité pour le compte de l'organisme qui vous a envoyé ce lien. Avant de commencer, consultez la façon dont vos données sont utilisées.","consent.terms.data":"Pendant la vérification, Sekyro AI recueille les photos de votre pièce d'identité, une courte vidéo selfie, une photo selfie et le numéro de votre pièce d'identité.","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre numéro est vérifié auprès des registres de l'autorité émettrice lorsque c'est possible. Certaines étapes peuvent être examinées par un examinateur humain habilité.","consent.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.modePicker.legendPhoto":"Qui prend la photo ?","capture.modePicker.helpPhoto":"Choisissez Quelqu'un m'aide quand une autre personne tient le téléphone et vous prend en photo.","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","otp.reason_payment_method_required":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_spend_cap_reached":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_insufficient_balance":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.phonePlaceholderGeneric":"Saisissez votre numéro sans l'indicatif","otp.countryLabel":"Pays","otp.phoneLengthError":"Vérifiez le numéro : il doit comporter {digits} chiffres.","otp.or":"ou","otp.otherCountry":"Autre pays","otp.reason_otp_number_invalid":"Ce numéro ne semble pas complet pour son pays. Vérifiez-le et réessayez.","otp.reason_otp_number_not_mobile":"Saisissez un numéro de mobile. Les codes ne peuvent pas atteindre une ligne fixe.","session.steps.population.title":"Saisissez votre numéro","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Consultation du registre","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","population.reason_id_number_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.reason_registry_record_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_registry_record_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Choisissez votre document","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","doc.ageStepUp":"Nous n'avons pas pu confirmer votre âge à partir du selfie. Continuez avec une pièce d'identité.","reasons.underage_estimated":"Ce service est réservé aux personnes qui ont atteint l'âge minimum requis.","reasons.starter_credit_claimed":"Votre vérification a déjà donné un crédit de départ à une autre organisation. Il n’est accordé qu’une fois par personne.","reasons.blocked_by_org":"Cette vérification ne peut pas continuer. Contactez l'organisation qui vous a envoyé ce lien.","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Traitement en cours","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur mobile","session.processing.age_estimation.title":"Vérification de votre âge","session.processing.age_estimation.description":"Cela prend quelques secondes","session.result.approved.title":"Identité vérifiée","session.result.approved.description":"C'est terminé. Vous pouvez fermer cette page","session.result.review.title":"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":"Identité non 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":"Session expirée","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…","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification en cours…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison des photos…","portrait.reviewTitle":"Vérification de la photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Il faut l'application","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","consent.termsTitle":"Utilisation de vos données","leave.title":"Quitter la vérification ?","leave.body":"Si vous quittez maintenant, votre vérification ne sera pas terminée.","leave.confirm":"Quitter","leave.stay":"Rester","otp.changeNumber":"Changer de numéro","otp.backToCode":"Retour au code","otp.reason_otp_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","reasons.otp_resend_limit":"Le nombre maximal de codes de vérification pour cette session a été atteint","common.back":"Retour","capture.assisted.heading":"Filmez la personne","returning.heading":"Confirmez que c'est vous","capture.checkingTitle":"Vérification en cours…","method.heading":"Choisissez une méthode","population.recheck.title":"Vérifiez votre numéro","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Choisissez le pays","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez votre présence","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.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 y,useContext as _,useMemo as v}from"react";import{jsx as C}from"react/jsx-runtime";var b={en:h,fr:m,ar:l};function k(o,e){return e===void 0?o:o.replace(/\{(\w+)\}/g,(t,r)=>Object.hasOwn(e,r)?String(e[r]):t)}i(k,"formatTemplate");function z(o,e){let t=c(o),r={...d(t),...b[t],...p(o)};if(e!==void 0){for(let n of Object.keys(e)){let a=e[n];typeof a=="string"&&(r[n]=a)}s(r,e)}return r}i(z,"resolveSekyroStrings");var g=y(null);function f(o,e){let t=z(o,e);return{locale:o,strings:t,t:i((r,n)=>k(t[r]??"",n),"t")}}i(f,"build");function q({locale:o,strings:e,children:t}){let r=u(o),n=v(()=>f(o,e),[o,e,r]);return r?C(g.Provider,{value:n,children:t}):null}i(q,"StepI18nProvider");function D(o,e){let t=_(g);return v(()=>t!==null&&o===void 0&&e===void 0?t:f(o??t?.locale??"en",e),[t,o,e])}i(D,"useStepI18n");export{l as a,h as b,m as c,k as d,z as e,q as f,D as g};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as I}from"./chunk-T3PAN4NN.js";import{a as U,b as S,d as k,m as y,n as C}from"./chunk-NV7HZJM4.js";import{a as m}from"./chunk-25KWDPLY.js";import{a as s}from"./chunk-2KED7D2Q.js";import{useRef as R,useState as P}from"react";var b={"portrait.source.title":"كيف تريد إضافة صورتك الشخصية؟","portrait.source.description":"التقط صورة جديدة بالكاميرا، أو ارفع صورة حديثة من هذا الجهاز.","portrait.source.camera":"التقاط صورة","portrait.source.upload":"رفع صورة","portrait.source.uploadInstead":"رفع صورة بدلًا من ذلك","portrait.upload.title":"ارفع صورتك الشخصية","portrait.upload.hint":"صورة حديثة لوجهك، تنظر فيها مباشرة إلى الكاميرا، أمام جدار فاتح وبلون واحد.","portrait.upload.choose":"اختيار صورة","portrait.upload.unsupported":"اختر صورة بصيغة JPEG أو PNG أو HEIC.","portrait.upload.failed":"تعذّر إرسال هذه الصورة. حاول مرة أخرى.","portrait.review.title":"تحقّق من صورتك المعدّلة","portrait.review.description":"عدّلنا صورتك لتطابق قواعد صور الهوية. لم نغيّر وجهك.","portrait.review.original":"صورتك","portrait.review.fixed":"الصورة المعدّلة","portrait.review.fixesTitle":"ما الذي غيّرناه","portrait.review.accept":"استخدام هذه الصورة","portrait.review.retake":"إعادة الالتقاط","portrait.review.uploadAnother":"رفع صورة أخرى","portrait.fixes.crop":"قُصّت","portrait.fixes.scale":"غُيّر حجمها","portrait.fixes.straighten":"عُدّل ميلها","portrait.fixes.background":"استُبدلت الخلفية","portrait.fixes.exposure":"عُدّل السطوع","portrait.fixes.white_balance":"وُزنت الألوان","reasons.portrait_recaptured":"تبدو هذه صورة لشاشة أو لصورة مطبوعة. التقط صورة جديدة للشخص.","reasons.portrait_morph_suspected":"لا يمكن استخدام هذه الصورة. التقط صورة جديدة للشخص.","reasons.portrait_reference_mismatch":"لا تطابق الصورة المرجع. التقط صورة جديدة للشخص.","reasons.portrait_declined_fix":"التقط صورة أخرى أو ارفعها."};var g={"portrait.source.title":"How do you want to add your ID photo?","portrait.source.description":"Take a new photo with the camera, or upload a recent photo from this device.","portrait.source.camera":"Take a photo","portrait.source.upload":"Upload a photo","portrait.source.uploadInstead":"Upload a photo instead","portrait.upload.title":"Upload your ID photo","portrait.upload.hint":"A recent photo of your face, looking straight at the camera, in front of a plain, light wall.","portrait.upload.choose":"Choose a photo","portrait.upload.unsupported":"Choose a JPEG, PNG or HEIC photo.","portrait.upload.failed":"We could not send this photo. Try again.","portrait.review.title":"Check your adjusted photo","portrait.review.description":"We adjusted your photo to meet the ID photo rules. Your face was not changed.","portrait.review.original":"Your photo","portrait.review.fixed":"Adjusted photo","portrait.review.fixesTitle":"What we changed","portrait.review.accept":"Use this photo","portrait.review.retake":"Take another","portrait.review.uploadAnother":"Upload another","portrait.fixes.crop":"Cropped","portrait.fixes.scale":"Resized","portrait.fixes.straighten":"Straightened","portrait.fixes.background":"Background replaced","portrait.fixes.exposure":"Brightness adjusted","portrait.fixes.white_balance":"Colours balanced","reasons.portrait_recaptured":"This looks like a photo of a screen or a print. Take a new photo of the person.","reasons.portrait_morph_suspected":"This photo cannot be used. Take a new photo of the person.","reasons.portrait_reference_mismatch":"The photo does not match the reference. Take a new photo of the person.","reasons.portrait_declined_fix":"Take or upload another photo."};var N={"portrait.source.title":"Comment voulez-vous ajouter votre photo d'identité ?","portrait.source.description":"Prenez une nouvelle photo avec la caméra, ou importez une photo récente depuis cet appareil.","portrait.source.camera":"Prendre une photo","portrait.source.upload":"Importer une photo","portrait.source.uploadInstead":"Importer une photo à la place","portrait.upload.title":"Importez votre photo d'identité","portrait.upload.hint":"Une photo récente de votre visage, de face, devant un mur clair et uni.","portrait.upload.choose":"Choisir une photo","portrait.upload.unsupported":"Choisissez une photo JPEG, PNG ou HEIC.","portrait.upload.failed":"Nous n'avons pas pu envoyer cette photo. Réessayez.","portrait.review.title":"Vérifiez votre photo ajustée","portrait.review.description":"Nous avons ajusté votre photo pour qu'elle respecte les règles des photos d'identité. Votre visage n'a pas été modifié.","portrait.review.original":"Votre photo","portrait.review.fixed":"Photo ajustée","portrait.review.fixesTitle":"Ce que nous avons modifié","portrait.review.accept":"Utiliser cette photo","portrait.review.retake":"Reprendre","portrait.review.uploadAnother":"Importer une autre","portrait.fixes.crop":"Recadrée","portrait.fixes.scale":"Redimensionnée","portrait.fixes.straighten":"Redressée","portrait.fixes.background":"Fond remplacé","portrait.fixes.exposure":"Luminosité ajustée","portrait.fixes.white_balance":"Couleurs équilibrées","reasons.portrait_recaptured":"Cela ressemble à la photo d'un écran ou d'un tirage. Prenez une nouvelle photo de la personne.","reasons.portrait_morph_suspected":"Cette photo ne peut pas être utilisée. Prenez une nouvelle photo de la personne.","reasons.portrait_reference_mismatch":"La photo ne correspond pas à la référence. Prenez une nouvelle photo de la personne.","reasons.portrait_declined_fix":"Prenez ou importez une autre photo."};import{jsx as t,jsxs as n}from"react/jsx-runtime";var E={en:g,fr:N,ar:b,es:g,pt:g,de:g},z="image/jpeg,image/png,image/heic,image/heif";function x(r){let o=r.strings,i=E[r.locale];return e=>o[e]??i[e]??""}s(x,"portraitCopy");function T({step:r,i18n:o}){if(r.reason===void 0||r.reason==="portrait_fix_review")return null;let i=x(o)(`reasons.${r.reason}`)||o.t("portrait.retryTitle");return n(y,{tone:"warning",children:[t("span",{children:i}),t("span",{children:C(o,r.attemptsRemaining,r.attemptsExhausted)})]})}s(T,"ReasonNotice");function H({step:r,i18n:o,onCamera:i,onUpload:e}){let a=x(o);return t(I,{testId:"sekyro-portrait-source",title:a("portrait.source.title"),lead:a("portrait.source.description"),cameraLabel:a("portrait.source.camera"),uploadLabel:a("portrait.source.upload"),notice:t(T,{step:r,i18n:o}),onCamera:i,onUpload:e})}s(H,"PortraitSourceView");function V({step:r,i18n:o,onCamera:i}){let e=x(o),a=R(null),[p,f]=P("idle"),u=p==="sending",l=r.photo?.uploadOffered===!0,v=s(async c=>{let w=c.currentTarget.files?.[0];if(c.currentTarget.value="",w!==void 0){f("sending");try{await r.uploadPortrait(w),f("idle")}catch(h){f(h instanceof TypeError&&h.message==="unsupported_file"?"unsupported":"failed")}}},"onFile");return n("section",{className:"sekyro-step","data-testid":"sekyro-portrait-upload-screen",children:[t(S,{title:e("portrait.upload.title"),lead:e("portrait.upload.hint")}),p==="idle"||p==="sending"?t(T,{step:r,i18n:o}):null,p==="unsupported"||p==="failed"?t(y,{tone:"warning",children:t("span",{children:e(p==="unsupported"?"portrait.upload.unsupported":"portrait.upload.failed")})}):null,u?t("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:o.t("portrait.uploading")}):null,t("input",{ref:a,type:"file",accept:z,hidden:!0,"data-testid":"sekyro-portrait-upload","aria-label":e("portrait.upload.title"),onChange:c=>{v(c)}}),n(k,{children:[t(m,{full:!0,onClick:()=>a.current?.click(),disabled:u||!l||r.attemptsExhausted,children:e("portrait.upload.choose")}),i!==void 0?n(m,{full:!0,kind:"ghost",onClick:i,disabled:u,children:[t(U,{name:"camera"}),e("portrait.source.camera")]}):null]})]})}s(V,"PortraitUploadView");function A({step:r,i18n:o,onDeclined:i}){let e=x(o),[a,p]=P(!1),[f,u]=P(!1),l=r.pendingFix;if(l==null)return null;let v=s(async d=>{p(!0),u(!1);try{await r.confirmFix(d),d||i?.()}catch{u(!0)}finally{p(!1)}},"answer"),c=r.photo?.source==="upload"?e("portrait.review.uploadAnother"):e("portrait.review.retake"),w=s(d=>e(`portrait.fixes.${d}`)||d,"fixName"),h=e("portrait.review.original"),_=e("portrait.review.fixed");return n("section",{className:"sekyro-step","data-testid":"sekyro-portrait-review",children:[t(S,{title:e("portrait.review.title"),lead:e("portrait.review.description")}),n("div",{className:"sekyro-portrait-pair",children:[n("figure",{className:"sekyro-portrait-pair__item",children:[t("img",{src:l.originalUrl,alt:h}),t("figcaption",{className:"sekyro-text-muted",children:h})]}),n("figure",{className:"sekyro-portrait-pair__item",children:[t("img",{src:l.fixedUrl,alt:_}),t("figcaption",{className:"sekyro-text-muted",children:_})]})]}),l.fixes.length>0?n("div",{className:"sekyro-stack sekyro-stack--1",children:[t("p",{className:"sekyro-text-body",children:e("portrait.review.fixesTitle")}),t("ul",{className:"sekyro-portrait-fixes","data-testid":"sekyro-portrait-fixes",children:l.fixes.map(d=>t("li",{children:w(d)},d))})]}):null,f?t(y,{tone:"danger",children:t("span",{children:o.t("errors.network_error")})}):null,n(k,{children:[t(m,{full:!0,onClick:()=>{v(!0)},disabled:a,"data-testid":"sekyro-portrait-accept",children:e("portrait.review.accept")}),t(m,{full:!0,kind:"ghost",onClick:()=>{v(!1)},disabled:a,"data-testid":"sekyro-portrait-decline",children:c})]})]})}s(A,"PortraitReviewView");function O({screen:r,step:o,i18n:i,onCamera:e,onUpload:a,onDeclined:p}){return r==="review"?t(A,{step:o,i18n:i,onDeclined:p}):r==="upload"?t(V,{step:o,i18n:i,...e!==void 0?{onCamera:e}:{}}):t(H,{step:o,i18n:i,onCamera:e??a,onUpload:a})}s(O,"PortraitScreens");export{x as a,H as b,V as c,A as d,O as e};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{a as g}from"./chunk-5TOBG5R2.js";import{a as s}from"./chunk-2KED7D2Q.js";var c={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};import{jsx as y}from"react/jsx-runtime";var t={colors:{...c.light},radius:c.radiusLg,fontFamily:c.font},l={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function S(o={}){let e={};for(let r of Object.keys(l))e[l[r]]=o.colors?.[r]??t.colors[r];return e["--sekyro-radius"]=o.radius??t.radius,e["--sekyro-font"]=o.fontFamily??t.fontFamily,e}s(S,"themeToCssVars");var m=/^#[0-9a-f]{6}$/i,k=["brand","brandFg","bg","surface","fg","fgMuted"],b=["danger","success","warning"],u=!1;function p(o){let e=o?.colors;if(o===void 0||e===void 0||!b.some(i=>i in e))return o;!u&&g()&&(u=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:r,success:a,warning:f,...n}=e;return{...o,colors:n}}s(p,"stripDeprecatedStatusColors");var T={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},h={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function F(o){let e={};if(!o)return e;let r={},a=o.colors??{};for(let i of k){let d=a[i];d!==void 0&&m.test(d)&&(r[i]=d)}r.brand&&(r.ring=r.brand),Object.keys(r).length&&(e.colors=r);let f=T[o.radius];f&&(e.radius=f);let n=h[o.fontFamily];return n!==void 0&&(e.fontFamily=n?`${n}, ${t.fontFamily}`:t.fontFamily),e}s(F,"brandingToTheme");function I(...o){let e={};for(let r of o)r?.colors&&(e.colors={...e.colors,...r.colors}),r?.radius&&(e.radius=r.radius),r?.fontFamily&&(e.fontFamily=r.fontFamily);return e}s(I,"mergeThemes");function C({theme:o,children:e,className:r}){return y(R,{theme:p(o),...r!==void 0?{className:r}:{},children:e})}s(C,"SekyroThemeProvider");function R({theme:o,children:e,className:r}){let a=S(o);return y("div",{className:r===void 0?"sekyro-root":`sekyro-root ${r}`,style:a,children:e})}s(R,"SekyroThemeRoot");export{c as a,t as b,S as c,p as d,F as e,I as f,C as g,R as h};
2
+ import{a as g}from"./chunk-DY5WQVPE.js";import{a as s}from"./chunk-2KED7D2Q.js";var c={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};import{jsx as y}from"react/jsx-runtime";var t={colors:{...c.light},radius:c.radiusLg,fontFamily:c.font},l={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function S(o={}){let e={};for(let r of Object.keys(l))e[l[r]]=o.colors?.[r]??t.colors[r];return e["--sekyro-radius"]=o.radius??t.radius,e["--sekyro-font"]=o.fontFamily??t.fontFamily,e}s(S,"themeToCssVars");var m=/^#[0-9a-f]{6}$/i,k=["brand","brandFg","bg","surface","fg","fgMuted"],b=["danger","success","warning"],u=!1;function p(o){let e=o?.colors;if(o===void 0||e===void 0||!b.some(i=>i in e))return o;!u&&g()&&(u=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));let{danger:r,success:a,warning:f,...n}=e;return{...o,colors:n}}s(p,"stripDeprecatedStatusColors");var T={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},h={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function F(o){let e={};if(!o)return e;let r={},a=o.colors??{};for(let i of k){let d=a[i];d!==void 0&&m.test(d)&&(r[i]=d)}r.brand&&(r.ring=r.brand),Object.keys(r).length&&(e.colors=r);let f=T[o.radius];f&&(e.radius=f);let n=h[o.fontFamily];return n!==void 0&&(e.fontFamily=n?`${n}, ${t.fontFamily}`:t.fontFamily),e}s(F,"brandingToTheme");function I(...o){let e={};for(let r of o)r?.colors&&(e.colors={...e.colors,...r.colors}),r?.radius&&(e.radius=r.radius),r?.fontFamily&&(e.fontFamily=r.fontFamily);return e}s(I,"mergeThemes");function C({theme:o,children:e,className:r}){return y(R,{theme:p(o),...r!==void 0?{className:r}:{},children:e})}s(C,"SekyroThemeProvider");function R({theme:o,children:e,className:r}){let a=S(o);return y("div",{className:r===void 0?"sekyro-root":`sekyro-root ${r}`,style:a,children:e})}s(R,"SekyroThemeRoot");export{c as a,t as b,S as c,p as d,F as e,I as f,C as g,R as h};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as Ae}from"./chunk-T3PAN4NN.js";import{a as $e,b as Ue,c as Re}from"./chunk-7MMT5M4E.js";import{d as Ee}from"./chunk-XTQARDSJ.js";import{a as V,b as le,d as de,j as Ie,k as Pe,m as ue,n as pe}from"./chunk-NV7HZJM4.js";import"./chunk-A6UYUVEG.js";import{a as K,m as He,n as _e}from"./chunk-25KWDPLY.js";import{a as d}from"./chunk-2KED7D2Q.js";import{useContext as ct,useEffect as B,useLayoutEffect as lt,useRef as Y,useState as b}from"react";var Oe={image:'<path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/><path d="M14 8A2 2 0 1 0 18 8A2 2 0 1 0 14 8Z" stroke="currentColor"/><path d="M2 12.5L3.75 10.97C4.66 10.17 6.04 10.22 6.89 11.07L11.18 15.36C11.87 16.05 12.95 16.14 13.75 15.58L14.04 15.37C15.19 14.57 16.74 14.66 17.78 15.6L21 18.5" stroke="currentColor" stroke-linecap="round"/>',flashlight:'<path d="M9 11.66V19C9 19.93 9 20.4 9.15 20.77C9.36 21.26 9.74 21.64 10.23 21.85C10.6 22 11.07 22 12 22C12.93 22 13.4 22 13.77 21.85C14.26 21.64 14.64 21.26 14.85 20.77C15 20.4 15 19.93 15 19V11.66C15 10.84 15 10.43 15.15 10.06C15.3 9.7 15.59 9.41 16.17 8.83L16.17 8.83L19.41 5.59C19.7 5.3 19.85 5.15 19.92 4.97C20 4.78 20 4.58 20 4.17V4C20 3.06 20 2.59 19.71 2.29C19.41 2 18.94 2 18 2H6C5.06 2 4.59 2 4.29 2.29C4 2.59 4 3.06 4 4V4.17C4 4.58 4 4.78 4.08 4.97C4.15 5.15 4.3 5.3 4.59 5.59L7.83 8.83C8.41 9.41 8.7 9.7 8.85 10.06C9 10.43 9 10.84 9 11.66Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 10H9" stroke="currentColor" stroke-linecap="round"/><path d="M12 13V15" stroke="currentColor" stroke-linecap="round"/><path d="M4.5 5H19.5" stroke="currentColor" stroke-linecap="round"/>'};var Ke={"dcv3.mrz.searching":"ضع صفحة جواز السفر كاملة داخل الإطار","dcv3.mrz.showMrzSide":"اعرض الوجه الذي يحتوي على سطرين أو ثلاثة أسطر من الحروف","dcv3.mrz.reading":"جارٍ قراءة الوثيقة… ثبّتها","dcv3.mrz.moveCloser":"اقترب حتى تملأ أسطر الحروف الإطار","dcv3.mrz.turnSideways":"أدر هاتفك أفقيًا لقراءة أسطر الحروف","dcv3.mrz.glare":"أمِل الوثيقة لإزالة الانعكاس","dcv3.mrz.holdStill":"لا تتحرك","dcv3.mrz.valid":"تمت قراءة الوثيقة. جارٍ التقاط الصورة","dcv3.mrz.looksLikePassport":"يبدو أن هذا جواز سفر","dcv3.mrz.looksLikeCard":"يبدو أن هذه بطاقة تعريف أو بطاقة إقامة"};var W={"dcv3.mrz.searching":"Fit the whole passport page in the frame","dcv3.mrz.showMrzSide":"Show the side with the two or three lines of characters","dcv3.mrz.reading":"Reading the document… hold it steady","dcv3.mrz.moveCloser":"Move closer so the lines of characters fill the frame","dcv3.mrz.turnSideways":"Turn your phone sideways to read the lines of characters","dcv3.mrz.glare":"Tilt the document to remove the reflection","dcv3.mrz.holdStill":"Hold still","dcv3.mrz.valid":"Document read. Taking the photo","dcv3.mrz.looksLikePassport":"This looks like a passport","dcv3.mrz.looksLikeCard":"This looks like an identity card or residence permit"};var Ve={"dcv3.mrz.searching":"Cadrez toute la page du passeport","dcv3.mrz.showMrzSide":"Montrez la face avec les deux ou trois lignes de caractères","dcv3.mrz.reading":"Lecture du document… tenez-le immobile","dcv3.mrz.moveCloser":"Rapprochez-vous pour que les lignes de caractères remplissent le cadre","dcv3.mrz.turnSideways":"Tournez votre téléphone à l’horizontale pour lire les lignes de caractères","dcv3.mrz.glare":"Inclinez le document pour supprimer le reflet","dcv3.mrz.holdStill":"Ne bougez plus","dcv3.mrz.valid":"Document lu. Prise de la photo","dcv3.mrz.looksLikePassport":"Ceci ressemble à un passeport","dcv3.mrz.looksLikeCard":"Ceci ressemble à une carte d’identité ou un titre de séjour"};var Be={"doc.uploadInstead":"رفع صورة بدلًا من ذلك","doc.uploadTitle":"ارفع صورة لوثيقتك","doc.uploadHint":"صورة واضحة للوثيقة كاملة، ملتقطة بكاميرا.","doc.uploadUnsupported":"اختر صورة للوثيقة بصيغة JPEG أو PNG أو HEIC.","doc.uploadFailed":"تعذّر إرسال هذه الصورة. أعد المحاولة.","doc.source.title":"كيف تريد إضافة وثيقتك؟","doc.source.description":"التقط صورة بالكاميرا، أو ارفع صورة للوثيقة من هذا الجهاز.","doc.source.camera":"التقاط صورة","doc.source.upload":"رفع صورة"};var j={"doc.uploadInstead":"Upload a photo instead","doc.uploadTitle":"Upload a photo of your document","doc.uploadHint":"A clear photo of the whole document, taken with a camera.","doc.uploadUnsupported":"Choose a JPEG, PNG or HEIC photo of the document.","doc.uploadFailed":"We could not send this photo. Try again.","doc.source.title":"How do you want to add your document?","doc.source.description":"Take a photo with the camera, or upload a photo of the document from this device.","doc.source.camera":"Take a photo","doc.source.upload":"Upload a photo"};var Ye={"doc.uploadInstead":"Téléverser une photo à la place","doc.uploadTitle":"Téléversez une photo de votre document","doc.uploadHint":"Une photo nette du document entier, prise avec un appareil photo.","doc.uploadUnsupported":"Choisissez une photo JPEG, PNG ou HEIC du document.","doc.uploadFailed":"Nous n'avons pas pu envoyer cette photo. Réessayez.","doc.source.title":"Comment voulez-vous ajouter votre document ?","doc.source.description":"Prenez une photo avec la caméra, ou importez une photo du document depuis cet appareil.","doc.source.camera":"Prendre une photo","doc.source.upload":"Importer une photo"};var Ge={"native.doc.introTitle":"سنلتقط صورة لوثيقتك","native.doc.introLead":"ستُفتح كاميرا هاتفك، وتُلتقط الصورة تلقائيًا بمجرد أن تكون الوثيقة داخل الإطار.","native.doc.tip.flat":"ضع الوثيقة مسطحة على سطح داكن.","native.doc.tip.glare":"تجنّب انعكاسات المصابيح أو الشمس.","native.doc.tip.frame":"أبقِ الوثيقة كاملة داخل الإطار.","native.doc.openCamera":"افتح الكاميرا","native.doc.changeDocument":"تغيير الوثيقة","native.scan.closer":"اقترب قليلًا","native.scan.farther":"ابتعد قليلًا","native.scan.glare":"أمِل البطاقة قليلًا","native.scan.dark":"الإضاءة ضعيفة. شغّل المصباح.","native.scan.blurry":"الصورة غير واضحة. ثبّت الهاتف.","native.scan.holdStill":"لا تتحرك","native.scan.reading":"جارٍ التحقق من وثيقتك…","native.scan.putDown":"يمكنك وضع وثيقتك جانبًا.","native.scan.retry":"لنحاول مرة أخرى"};var Q={"native.doc.introTitle":"Photograph your document","native.doc.introLead":"Your phone's camera will open. The photo is taken by itself as soon as the document is well framed.","native.doc.tip.flat":"Lay the document flat on a dark surface.","native.doc.tip.glare":"Avoid glare from lamps or sunlight.","native.doc.tip.frame":"Keep the whole document in the frame.","native.doc.openCamera":"Open the camera","native.doc.changeDocument":"Change document","native.scan.closer":"Move a little closer","native.scan.farther":"Move back a little","native.scan.glare":"Tilt the card a little","native.scan.dark":"Too dark. Turn on the light.","native.scan.blurry":"Blurry image. Hold the phone still.","native.scan.holdStill":"Hold still","native.scan.reading":"Checking your document…","native.scan.putDown":"You can put your document down.","native.scan.retry":"Let's try that again"};var Fe={"native.doc.introTitle":"Photographiez votre pièce","native.doc.introLead":"La caméra de votre téléphone va s'ouvrir. La photo est prise automatiquement dès que la pièce est bien cadrée.","native.doc.tip.flat":"Posez la pièce à plat, sur une surface sombre.","native.doc.tip.glare":"Évitez les reflets de lampe ou de soleil.","native.doc.tip.frame":"Gardez toute la pièce dans le cadre.","native.doc.openCamera":"Ouvrir la caméra","native.doc.changeDocument":"Changer de document","native.scan.closer":"Approchez un peu","native.scan.farther":"Reculez un peu","native.scan.glare":"Inclinez un peu la carte","native.scan.dark":"Trop sombre. Allumez la lampe.","native.scan.blurry":"Image floue. Tenez le téléphone immobile.","native.scan.holdStill":"Ne bougez plus","native.scan.reading":"Vérification de votre document…","native.scan.putDown":"Vous pouvez poser votre pièce.","native.scan.retry":"Réessayons"};var it=["locking","capturing"],me=class me{constructor(){this.shown={hint:null,locking:!1,card:null,manualShutter:!1};this.candidate=null;this.candidateSince=0;this.hintShownAt=0;this.lockLostAt=null;this.detectedSince=null;this.lostSince=null;this.shutterSince=null}present(e,o){return this.presentHint(e,o),this.presentLock(e,o),this.presentCard(e,o),this.shutterSince=e.manualShutter?this.shutterSince??o:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&o-this.shutterSince>=1e3},this.shown}presentHint(e,o){let a=e.phase==="framing"&&!(e.hint==="blurry"&&e.card===null)?e.hint:null;if(e.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(a!==this.candidate&&(this.candidate=a,this.candidateSince=o),a===this.shown.hint)return;let r=o-this.candidateSince>=(a===null?0:350),g=this.shown.hint===null||o-this.hintShownAt>=1200;r&&g&&(this.shown={...this.shown,hint:a},this.hintShownAt=o)}presentLock(e,o){if(it.includes(e.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(e.phase!=="framing"){this.shown={...this.shown,locking:!1},this.lockLostAt=null;return}this.lockLostAt??(this.lockLostAt=o),o-this.lockLostAt>=300&&(this.shown={...this.shown,locking:!1},this.lockLostAt=null)}}presentCard(e,o){let a=e.card;if(a===null||e.phase!=="framing"){if(e.phase!=="framing"){this.shown={...this.shown,card:null},this.detectedSince=null,this.lostSince=null;return}this.detectedSince=null,this.lostSince??(this.lostSince=o),o-this.lostSince>=300&&(this.shown={...this.shown,card:null});return}if(this.lostSince=null,this.detectedSince??(this.detectedSince=o),o-this.detectedSince<250)return;let r=this.shown.card;if(r===null){this.shown={...this.shown,card:{...a}};return}let g=.35;this.shown={...this.shown,card:{fill:r.fill+(a.fill-r.fill)*g,offsetX:r.offsetX+(a.offsetX-r.offsetX)*g,offsetY:r.offsetY+(a.offsetY-r.offsetY)*g}}}};d(me,"ScanPresenter");var ne=me;import{Fragment as he,jsx as n,jsxs as i}from"react/jsx-runtime";var dt={en:Q,fr:Fe,ar:Ge,es:Q,pt:Q,de:Q},ut=450,fe=d(t=>e=>Ee(t.strings[e]??dt[t.locale][e]??""),"useScanCopy");function oe({name:t}){return n("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:Oe[t]}})}d(oe,"ScanGlyph");var pt={en:W,fr:Ve,ar:Ke,es:W,pt:W,de:W},mt={en:j,fr:Ye,ar:Be,es:j,pt:j,de:j},ht="image/jpeg,image/png,image/heic,image/heif";function G(t){let e=t.strings,o=d(a=>e[a]??mt[t.locale][a],"text");return{t:d(a=>o(a)??"","t")}}d(G,"uploadCopy");function ft(t,e){return t===null||t.state==="fallback"||t.state==="mismatch"?null:t.state==="searching"?e?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":t.state==="valid"?"dcv3.mrz.valid":t.coach!==void 0?`dcv3.mrz.${t.coach}`:"dcv3.mrz.reading"}d(ft,"mrzInstruction");function ge(t){return t.reason==="unreadable"?"doc.reason_unreadable":t.reason!==void 0&&t.reason!=="side_missing"?_e(t.reason):null}d(ge,"reasonOf");function on({step:t,i18n:e,liveMrz:o,ageLead:a,...r}){let[g,S]=b(!1),D=Y(-1),[h,f]=b("idle"),v=Y(null),k=typeof t.uploadDocument=="function",N=k?t.photo?.source??"camera":"camera",E=k&&N!=="camera"&&t.photo?.uploadOffered===!0,[y,F]=b(null),I=N==="upload"?"upload":N==="choice"?y??t.photo?.pick??"source":"camera",M=h==="sending"?void 0:()=>v.current?.click(),m=d(async P=>{let X=P.currentTarget.files?.[0];if(P.currentTarget.value="",X!==void 0){S(!1),f("sending");try{await t.uploadDocument(X),f("idle")}catch(q){f(q instanceof TypeError&&q.message==="unsupported_file"?"unsupported":"failed")}}},"onFile"),Z=E?n("input",{ref:v,type:"file",accept:ht,hidden:!0,"data-testid":"sekyro-doc-upload","aria-label":G(e).t("doc.uploadTitle"),onChange:P=>{m(P)}}):null,L=G(e);return I==="source"?n(Ae,{testId:"sekyro-doc-source",title:L.t("doc.source.title"),lead:L.t("doc.source.description"),cameraLabel:L.t("doc.source.camera"),uploadLabel:L.t("doc.source.upload"),notice:n(Se,{step:t,i18n:e}),onCamera:()=>F("camera"),onUpload:()=>F("upload")}):I==="upload"?i(he,{children:[n(vt,{step:t,i18n:e,ageLead:a===!0,upload:h,offered:E,onPick:()=>v.current?.click(),...N==="choice"?{onCamera:d(()=>F("camera"),"onCamera")}:{},...r}),Z]}):i(he,{children:[g?n(bt,{step:t,i18n:e,attempts:D,...o!==void 0?{liveMrz:o}:{},...E&&M!==void 0?{onUpload:M}:{},onClose:()=>S(!1)}):n(St,{step:t,i18n:e,ageLead:a===!0,onOpen:()=>S(!0),upload:h,...E&&M!==void 0?{onUpload:M}:{},...r}),Z]})}d(on,"DocumentCaptureView");function We({passport:t}){let o=Math.round(228/(t?1.42:1.586));return i("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${o+24}`,"aria-hidden":"true",focusable:"false",children:[n("defs",{children:n("clipPath",{id:"sekyro-card-clip",children:n("rect",{width:228,height:o,rx:"12.5"})})}),n("rect",{className:"sekyro-mark__card",width:228,height:o,rx:"12.5"}),n("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:o*.52,rx:"6"}),[0,1,2].map(a=>n("rect",{className:"sekyro-mark__text",x:"88",y:23+a*o*.12,width:100-a*20,height:"6",rx:"3"},a)),[0,1].map(a=>n("rect",{className:"sekyro-mark__text",x:"17",y:o*.74+a*9,width:194,height:"4",rx:"2"},a)),n("g",{clipPath:"url(#sekyro-card-clip)",children:n("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:n("rect",{x:"-1",width:"2",height:o,className:"sekyro-mark__beam"})})}),n("path",{className:"sekyro-mark__brackets",d:gt(-10,-10,248,o+20,16,30)})]})}d(We,"ScanMark");function gt(t,e,o,a,r,g){let S=Math.min(r,g*.6);return[[t,e,1,1],[t+o,e,-1,1],[t,e+a,1,-1],[t+o,e+a,-1,-1]].map(([h,f,v,k])=>`M${h} ${f+k*g}V${f+k*S}Q${h} ${f} ${h+v*S} ${f}H${h+v*g}`).join("")}d(gt,"brackets");function St({step:t,i18n:e,ageLead:o,onOpen:a,onChangeCountry:r,onChangeDocument:g,upload:S,onUpload:D}){let h=fe(e),f=G(e),v=t.documentType==="passport",k=ge(t),N=S==="sending";return i("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[n(We,{passport:v}),n(le,{title:h("native.doc.introTitle"),lead:o?e.t("doc.ageStepUp"):h("native.doc.introLead")}),n(Se,{step:t,i18n:e}),i("ul",{className:"sekyro-tiprows",children:[i("li",{children:[n(V,{name:v?"passport":"card"}),h("native.doc.tip.flat")]}),i("li",{children:[n(V,{name:"light"}),h("native.doc.tip.glare")]}),i("li",{children:[n(oe,{name:"image"}),h("native.doc.tip.frame")]})]}),n(je,{i18n:e,...g!==void 0?{onChangeDocument:g}:{},...r!==void 0?{onChangeCountry:r}:{}}),n(Qe,{i18n:e,upload:S}),N?n("p",{className:"sekyro-text-muted",role:"status",children:e.t("doc.uploading")}):D!==void 0?n("p",{className:"sekyro-text-muted",children:f.t("doc.uploadHint")}):null,i(de,{children:[i(K,{full:!0,onClick:a,disabled:N,children:[n(V,{name:"camera"}),h("native.doc.openCamera")]}),D!==void 0?i(K,{full:!0,kind:"ghost",onClick:D,children:[n(oe,{name:"image"}),f.t("doc.uploadInstead")]}):null]})]})}d(St,"DocumentIntro");function Se({step:t,i18n:e}){let o=ge(t);return o===null?null:i(ue,{tone:"warning",children:[n("span",{children:e.t(o)}),n("span",{children:pe(e,t.attemptsRemaining,t.attemptsExhausted)})]})}d(Se,"ReasonNotice");function je({i18n:t,onChangeCountry:e,onChangeDocument:o}){let a=fe(t);return o===void 0&&e===void 0?null:i("div",{className:"sekyro-links",children:[o!==void 0?n("button",{type:"button",className:"sekyro-link",onClick:o,children:a("native.doc.changeDocument")}):null,e!==void 0?n("button",{type:"button",className:"sekyro-link",onClick:e,children:t.t("native.doc.changeCountry")}):null]})}d(je,"ChangeLinks");function Qe({i18n:t,upload:e}){return e!=="unsupported"&&e!=="failed"?null:n(ue,{tone:"warning",children:n("span",{children:G(t).t(e==="unsupported"?"doc.uploadUnsupported":"doc.uploadFailed")})})}d(Qe,"UploadNotice");function vt({step:t,i18n:e,ageLead:o,upload:a,offered:r,onPick:g,onCamera:S,onChangeCountry:D,onChangeDocument:h}){let f=G(e),v=a==="sending";return i("section",{className:"sekyro-step","data-testid":"sekyro-doc-upload-screen",children:[n(We,{passport:t.documentType==="passport"}),n(le,{title:f.t("doc.uploadTitle"),lead:o?e.t("doc.ageStepUp"):f.t("doc.uploadHint")}),o?n("p",{className:"sekyro-text-muted",children:f.t("doc.uploadHint")}):null,n(Se,{step:t,i18n:e}),n(je,{i18n:e,...h!==void 0?{onChangeDocument:h}:{},...D!==void 0?{onChangeCountry:D}:{}}),n(Qe,{i18n:e,upload:a}),v?n("p",{className:"sekyro-text-muted",role:"status",children:e.t("doc.uploading")}):null,i(de,{children:[i(K,{full:!0,onClick:g,disabled:v||!r||t.attemptsExhausted,children:[n(oe,{name:"image"}),f.t("doc.source.upload")]}),S!==void 0?i(K,{full:!0,kind:"ghost",onClick:S,disabled:v,children:[n(V,{name:"camera"}),f.t("doc.source.camera")]}):null]})]})}d(vt,"DocumentUploadScreen");function Xe(t,e,o){let a=t*.88,r=a/o;return{x:(t-a)/2,y:e*.42-r/2,w:a,h:r}}d(Xe,"guideRect");var yt={too_far:"native.scan.closer",too_close:"native.scan.farther",focus_far:"native.scan.farther",glare:"native.scan.glare",too_bright:"native.scan.glare",too_dark:"native.scan.dark",blurry:"native.scan.blurry"},kt=d(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");function bt({step:t,i18n:e,liveMrz:o,onClose:a,attempts:r,onUpload:g}){let S=fe(e),D=ct($e),h=Y(D);h.current=D;let f=Y(null),v=Y(null),k=Y(null),[N,E]=b("idle"),[y,F]=b(null),[I,M]=b(null),[m,Z]=b({w:0,h:0}),[L,P]=b({hint:null,locking:!1,card:null,manualShutter:!1}),[X,q]=b({}),[ve,Ze]=b(null),[ye,qe]=b(null),[ke,be]=b(0),[we,Ce]=b(null),[J,De]=b(null),H=t.documentType==="passport",ee=H?1.42:1.586;Ie(!0),lt(()=>{let c=f.current;if(c===null)return;let u=d(()=>Z({w:c.clientWidth,h:c.clientHeight}),"measure");if(u(),typeof ResizeObserver>"u")return;let l=new ResizeObserver(u);return l.observe(c),()=>l.disconnect()},[]);let s=Xe(m.w,m.h,ee);B(()=>{m.w===0||m.h===0||k.current?.setGuide?.({viewAspect:m.w/m.h,rect:{x:s.x/m.w,y:s.y/m.h,width:s.w/m.w,height:s.h/m.h}})},[m.w,m.h,s.x,s.y,s.w,s.h]),B(()=>{let c=v.current;if(c===null)return;let u=t.capture({video:c,...o!==void 0?{liveMrz:o}:{}});k.current=u;let l=f.current;if(l!==null&&l.clientWidth>0&&l.clientHeight>0){let p=Xe(l.clientWidth,l.clientHeight,ee);u.setGuide?.({viewAspect:l.clientWidth/l.clientHeight,rect:{x:p.x/l.clientWidth,y:p.y/l.clientHeight,width:p.w/l.clientWidth,height:p.h/l.clientHeight}})}let T=new ne,C={scan:null,feedback:null,gate:null},$=d(p=>{C={...C,...p};let x=C.gate?.guide,st={phase:C.scan?.phase??"framing",hint:C.feedback?.reticle==="coaching"?C.feedback.key:null,card:x?.detected?{fill:x.fill,offsetX:x.offsetX,offsetY:x.offsetY}:null,manualShutter:C.scan?.manualShutter??!1},U=T.present(st,performance.now());P(R=>R.hint===U.hint&&R.locking===U.locking&&R.manualShutter===U.manualShutter&&R.card?.fill===U.card?.fill&&R.card?.offsetX===U.card?.offsetX&&R.card?.offsetY===U.card?.offsetY?R:U)},"present"),rt=[u.on("state",E),u.on("feedback",p=>$({feedback:p})),u.on("gate",p=>$({gate:p})),u.on("scan",p=>{F(p),$({scan:p})}),u.on("captured",p=>{q(x=>({...x,[wt(p.side,H,x)]:p.previewDataUrl})),Ze(p.previewDataUrl),qe(Dt(c))}),u.on("error",p=>{M(p);let x=h.current;x!==null&&Re(x,Ue("document",p,Math.max(0,r.current)))}),u.on("mrz",p=>{p.state==="mismatch"?De(p.format??null):Ce(p)})];return r.current+=1,u.start().catch(()=>{}),()=>{for(let p of rt)p();u.destroy(),k.current=null}},[t.issuer,t.documentType]);let z=y?.phase??"framing",_=z==="reading"||z==="result",ae=z==="flipCue"||z==="reaskRecto",A=L.locking,Le=y?.captured.length??0;B(()=>{A&&be(c=>c+1)},[A]),B(()=>{Le>0&&be(c=>c+1)},[Le]);let Je=y?.expected??null;B(()=>{Ce(null)},[Je]),B(()=>{if(J===null)return;let c=setTimeout(()=>De(null),2e3);return()=>clearTimeout(c)},[J]);let Ne=ae||_?null:ft(we,H),re=J!==null?J==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":Ne,et=re===null?null:e.strings[re]??pt[e.locale][re],ze=ge(t),xe=L.hint===null?null:yt[L.hint]??`dcv2.${L.hint}`,tt=xe??(z==="flipCue"?y?.notice==="same_face"?"doc.sameFace":"doc.flip":z==="reaskRecto"?"doc.reaskRecto":_?"native.scan.reading":z==="locking"||z==="capturing"||A?"native.scan.holdStill":y?.notice==="reread"?"doc.reread":y?.notice==="technical"?"native.scan.retry":y?.notice==="blurry"?"native.scan.blurry":ze??(H?"doc.showPage":"doc.showSide")),se=et??S(tt),O=L.card,w=s;if(!A&&O!==null&&O.fill>=.45&&O.fill<=1.25&&!kt()){let c=s.w*O.fill,u=c/ee,l=s.x+s.w/2+s.w*Math.max(-.25,Math.min(.25,O.offsetX)),T=s.y+s.h/2+s.h*Math.max(-.25,Math.min(.25,O.offsetY));w={x:l-c/2,y:T-u/2,w:c,h:u}}let te=s.w*.045,ie=28,Te=Math.min(te,ie*.6),nt=[[w.x,w.y,1,1],[w.x+w.w,w.y,-1,1],[w.x,w.y+w.h,1,-1],[w.x+w.w,w.y+w.h,-1,-1]],ot=A?"is-locked":L.hint!==null?"is-coaching":"",at=H?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],Me=s.y+s.h+48,ce={insetInlineStart:s.x,insetBlockStart:s.y,inlineSize:s.w,blockSize:s.h,borderRadius:te};return n("section",{className:"sekyro-lm","aria-label":se,"data-testid":"sekyro-document",children:i("div",{ref:f,className:`sekyro-lm-stage${_?" is-reading":""}${ae?" is-flip":""}`,style:{"--sekyro-guide-w":`${s.w}px`},children:[n("video",{ref:v,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:c=>{let u=c.currentTarget,l=u.getBoundingClientRect(),T=Math.max(l.width/(u.videoWidth||1),l.height/(u.videoHeight||1)),C=u.videoWidth*T,$=u.videoHeight*T;C>0&&$>0&&k.current?.focusAt((c.clientX-l.left+(C-l.width)/2)/C,(c.clientY-l.top+($-l.height)/2)/$)}}),m.w>0?i(he,{children:[_&&ye!==null?n("img",{className:"sekyro-lm-scene",src:ye,alt:""}):null,_&&ve!==null?n("img",{className:"sekyro-lm-frozen",src:ve,alt:"",style:ce}):null,i("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${m.w} ${m.h}`,"aria-hidden":"true",focusable:"false",children:[i("defs",{children:[i("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[n("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),n("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),i("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[n("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),n("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),n("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${m.w}V${m.h}H0Z${Ct(s,te)}`}),n("rect",{width:m.w,height:Math.max(0,s.y),fill:"url(#sekyro-lm-top)"}),n("rect",{y:s.y+s.h,width:m.w,height:Math.max(0,m.h-s.y-s.h),fill:"url(#sekyro-lm-bottom)"}),n("g",{className:`sekyro-lm-brackets ${ot}`,children:nt.map(([c,u,l,T],C)=>n("path",{style:{transform:`translate(${c}px, ${u}px) scale(${l}, ${T})`},d:`M0 ${ie}V${Te}Q0 0 ${Te} 0H${ie}`},C))}),A?n("rect",{className:"sekyro-lm-trace",x:s.x,y:s.y,width:s.w,height:s.h,rx:te,pathLength:"1",style:{animationDuration:`${ut}ms`}}):null]}),n("div",{className:"sekyro-lm-slot",style:ce,"aria-hidden":"true",children:_?n("span",{className:"sekyro-lm-read is-repeating"}):ke>0?n("span",{className:"sekyro-lm-read"},ke):null})]}):null,Ne!==null?n("div",{className:"sekyro-lm-slot",style:ce,"aria-hidden":"true",children:n("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${H?" is-page":""}${we?.state==="valid"?" is-valid":""}`})}):null,i("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:s.y-64},children:[n("div",{role:"status","aria-live":"polite",children:n(Pe,{swapKey:se,className:"sekyro-lm-line",children:se})}),ze!==null&&z==="framing"&&xe===null?n("p",{className:"sekyro-lm-attempts",children:pe(e,t.attemptsRemaining,t.attemptsExhausted)}):null]}),_?i("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:Me-12},children:[n("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),S("native.scan.putDown")]}):ae?n("div",{className:`sekyro-lm-under sekyro-lm-flip${z==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:Me-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:i("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(ee)},children:[n("span",{className:"sekyro-lm-flip-front"}),n("span",{className:"sekyro-lm-flip-back"})]})}):null,i("div",{className:"sekyro-lm-controls",children:[i("div",{className:"sekyro-lm-bar",children:[n("button",{type:"button",className:"sekyro-glass","aria-label":e.t("native.close"),onClick:a,children:n(V,{name:"close"})}),y?.torchAvailable?n("button",{type:"button",className:`sekyro-glass${y.torch?" is-on":""}`,"aria-label":e.t("doc.torchOn"),"aria-pressed":y.torch,onClick:()=>k.current?.setTorch(!y.torch),children:n(oe,{name:"flashlight"})}):null]}),I!==null?i("div",{className:"sekyro-lm-error",role:"alert",children:[n("p",{children:e.t("doc.cameraBlocked")}),n("p",{children:e.t(I.kind==="permission"?"doc.cameraBlockedHint":He(I.kind))}),n(K,{onClick:()=>{M(null),r.current+=1,k.current?.retry()},children:e.t("doc.retryCamera")})]}):null,L.manualShutter?n("button",{type:"button",className:"sekyro-shutter","aria-label":e.t("doc.shutter"),onClick:()=>k.current?.shutter()}):null,n("ol",{className:"sekyro-lm-tray",children:at.map(({side:c,label:u})=>{let l=y?.captured.includes(c)??!1;return i("li",{className:l?"is-done":void 0,"aria-current":!l&&(H||y?.expected===c)?"step":void 0,children:[l?i("span",{className:"sekyro-lm-thumb",children:[X[c]!==void 0?n("img",{src:X[c],alt:""}):null,n("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:n("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,S(u)]},c)})}),g!==void 0?n("button",{type:"button",className:"sekyro-lm-upload",onClick:g,children:G(e).t("doc.uploadInstead")}):null]}),N==="uploading"||N==="checking"?n("span",{className:"sekyro-visually-hidden",role:"status",children:N==="uploading"?e.t("doc.uploading"):S("native.scan.reading")}):null]})})}d(bt,"LumiereScan");function wt(t,e,o){return e?"single":t==="recto"||t==="verso"?t:o.recto===void 0?"recto":"verso"}d(wt,"slotOf");function Ct({x:t,y:e,w:o,h:a},r){return`M${t+r} ${e}H${t+o-r}Q${t+o} ${e} ${t+o} ${e+r}V${e+a-r}Q${t+o} ${e+a} ${t+o-r} ${e+a}H${t+r}Q${t} ${e+a} ${t} ${e+a-r}V${e+r}Q${t} ${e} ${t+r} ${e}Z`}d(Ct,"roundedRect");function Dt(t){let e=Math.round(t.videoWidth/4),o=Math.round(t.videoHeight/4);if(e===0||o===0||typeof document>"u")return null;try{let a=document.createElement("canvas");a.width=e,a.height=o;let r=a.getContext("2d");return r===null?null:(r.drawImage(t,0,0,e,o),a.toDataURL("image/jpeg",.7))}catch{return null}}d(Dt,"sceneSnapshot");export{on as DocumentCaptureView,ut as LOCK_TRACE_MS,ht as UPLOAD_ACCEPT,Xe as guideRect,ft as mrzInstruction,wt as slotOf};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as O,b as K,c as W}from"./chunk-GUTF3SPK.js";import{a as z,b as y,c as Y}from"./chunk-55NNQK5P.js";import{a as U}from"./chunk-VRDPGOXM.js";import{d as $}from"./chunk-XTQARDSJ.js";import{d as A,m as R}from"./chunk-NV7HZJM4.js";import"./chunk-A6UYUVEG.js";import{a as N,r as L}from"./chunk-25KWDPLY.js";import{a}from"./chunk-2KED7D2Q.js";import{isValidNni as le,normalizeNni as q}from"@sekyro/web";import{useEffect as w,useId as ce,useRef as J,useState as S}from"react";import{Fragment as C,jsx as n,jsxs as l}from"react/jsx-runtime";var Q={en:y,fr:Y,ar:z,es:y,pt:y,de:y},x=6,ue=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),X=a((e,t)=>{if(e===void 0)return 0;let p=Date.parse(e)-t;return Number.isFinite(p)?Math.max(0,Math.ceil(p/1e3)):0},"secondsUntil"),me=a(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");function Ae({step:e,i18n:t,className:p,onError:Z}){let B=t.strings,o=a((i,s)=>$(B[i]??Q[t.locale][i]??"",s),"t"),P=a((i,s)=>{let se=new Intl.PluralRules(t.locale).select(s),G=`${i}.${se}`,ae=B[G]??Q[t.locale][G]??o(`${i}.other`);return $(ae,{count:new Intl.NumberFormat(t.locale).format(s)})},"plural"),v=a(i=>e.providerName?o(`eid.${i}`,{provider:e.providerName}):o(`eid.${i}Generic`),"named"),[I,j]=S(""),[f,h]=S(""),[c,D]=S(!1),[g,u]=S(null),r=e.phase==="code",F=W(r),d=ce(),ee=L(),[ne,ie]=O(e.reason==="eid_code_invalid",e.codeAttemptsRemaining??0,()=>h("")),m=a(async i=>{D(!0),u(null);try{await i()}catch(s){u(U(s,t.strings)),Z?.(s)}finally{D(!1)}},"run"),M=J(!1);w(()=>{!e.identifierBound||r||e.reason!==void 0||M.current||(M.current=!0,m(()=>e.start()))},[e.identifierBound,r,e.reason]),w(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&h("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let T=J(r);w(()=>{r&&!T.current&&document.getElementById(`${d}-code`)?.focus(),T.current=r},[r,d]);let b=e.reason==="eid_locked",H=X(e.codeExpiresAt,F),E=r&&e.codeExpiresAt!==void 0&&H===0,_=X(e.resendAvailableAt,F),V=e.resendsRemaining===0||e.reason==="eid_resend_limit",oe=a(i=>{if(i.preventDefault(),r){f.length===x&&!b&&m(()=>e.verify(f));return}if(e.identifierBound){m(()=>e.start());return}let s=q(I);if(e.country==="MR"){if(!/^\d{10}$/.test(s))return u("population.invalid");if(!le(s))return u("population.reason_nni_invalid")}m(()=>e.start(s))},"onSubmit"),k=e.reason?.startsWith("eid_")?e.reason:void 0,te=l(C,{children:[k!==void 0?l(R,{tone:ue.has(k)?"danger":"warning",children:[n("span",{children:o(`reasons.${k}`)}),k==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?n("span",{children:P("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?n(N,{kind:"secondary",disabled:c,onClick:()=>{m(()=>e.useCamera())},children:o("eid.useCamera")}):null]}):null,g!==null?n(R,{tone:"danger",children:n("span",{children:t.t(g)})}):null]}),[re,de]=r?[v("codeTitle"),v("codeHelp")]:[v("identifierTitle"),v(e.identifierBound?"boundDescription":"identifierDescription")];return l("form",{className:`sekyro-step sekyro-otp${p?` ${p}`:""}`,"aria-labelledby":d,onSubmit:oe,noValidate:!0,"data-testid":"sekyro-eid",children:[l("div",{className:"sekyro-heading",children:[n("h2",{id:d,ref:ee,tabIndex:-1,className:"sekyro-text-body",children:re}),n("p",{className:"sekyro-text-muted",children:de}),e.afterPass==="continue"?n("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?o("eid.continueHint",{provider:e.providerName}):o("eid.continueHintGeneric")}):null]}),te,r?l(C,{children:[l("div",{className:"sekyro-field",children:[n("label",{className:"sekyro-label",htmlFor:`${d}-code`,children:o("eid.codeLabel")}),b?n("input",{id:`${d}-code`,className:"sekyro-input sekyro-input--number",dir:"ltr",value:f,disabled:!0,readOnly:!0}):n(K,{id:`${d}-code`,value:f,length:x,invalid:ne,onChange:i=>{u(null),i!==""&&ie(),h(i)}}),e.codeExpiresAt!==void 0?n("span",{className:`sekyro-help sekyro-otp-expiry${E?" is-danger":""}`,children:E?o("eid.expired"):o("eid.expiresIn",{time:me(H)})}):null]}),n("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:E?o("eid.expired"):""}),l(A,{children:[n(N,{type:"submit",full:!0,disabled:c||f.length!==x||b,"aria-busy":c||void 0,children:o("eid.verify")}),n("div",{className:"sekyro-resend-row",children:V?n("p",{className:"sekyro-resend is-waiting",children:o("eid.noResendsLeft")}):n("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:c||_>0||b,onClick:()=>{m(()=>e.resend())},children:_>0?o("eid.resendIn",{seconds:_}):o("eid.resend")})}),!V&&e.resendsRemaining!==void 0?n("p",{className:"sekyro-help sekyro-center",children:P("eid.resendsRemaining",e.resendsRemaining)}):null]})]}):l(C,{children:[e.identifierBound?null:l("div",{className:"sekyro-field",children:[n("label",{className:"sekyro-label",htmlFor:`${d}-nni`,children:t.t("population.label")}),n("input",{id:`${d}-nni`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:t.t("population.placeholder"),value:I,"aria-describedby":`${d}-nni-help`,"aria-invalid":g==="population.invalid"||g==="population.reason_nni_invalid"||void 0,onChange:i=>{u(null),j(q(i.target.value).replace(/\D/g,"").slice(0,10))}}),n("span",{id:`${d}-nni-help`,className:"sekyro-help",children:t.t("population.helper")})]}),n(A,{children:n(N,{type:"submit",full:!0,disabled:c,"aria-busy":c||void 0,children:o("eid.start")})})]})]})}a(Ae,"EidView");export{Ae as EidView};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as B,b as F,c as G}from"./chunk-GUTF3SPK.js";import{a as q}from"./chunk-VRDPGOXM.js";import{d as M}from"./chunk-XTQARDSJ.js";import{b as U,d as N,f as Y,m as b,n as K}from"./chunk-NV7HZJM4.js";import"./chunk-A6UYUVEG.js";import{a as k}from"./chunk-25KWDPLY.js";import{a as n}from"./chunk-2KED7D2Q.js";import{OtpInputError as me}from"@sekyro/web";import{useEffect as pe,useId as de,useRef as ce,useState as d}from"react";var j={"emailOtp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إلى بريدك الإلكتروني اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"عنوان بريدك الإلكتروني","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا","emailOtp.send":"أرسل لي رمزًا عبر البريد الإلكتروني","emailOtp.verifyTitle":"أدخل الرمز","emailOtp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى بريدك الإلكتروني لإتمام التحقّق من عنوانك","emailOtp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {email}","emailOtp.codeLabel":"رمز التحقّق","emailOtp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الوارد في الرسالة","emailOtp.verify":"تحقّق من الرمز","emailOtp.resend":"إعادة إرسال الرمز","emailOtp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","emailOtp.expiresIn":"ينتهي الرمز خلال {time}","emailOtp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","emailOtp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","emailOtp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","emailOtp.reason_otp_send_failed":"تعذّر إرسال الرسالة. أعد المحاولة بعد قليل","emailOtp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","emailOtp.reason_email_invalid":"لا يمكننا الإرسال إلى هذا العنوان. تحقّق منه أو أدخل عنوانًا آخر","emailOtp.reason_email_disposable":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا","emailOtp.changeEmail":"تغيير البريد الإلكتروني","emailOtp.backToCode":"العودة إلى الرمز","emailOtp.reason_otp_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك"};var O={"emailOtp.reason_otp_daily_cap_reached":"We can't email you a code today. Choose another way to verify if one is offered, or try again later.","emailOtp.sendTitle":"Verify your email address","emailOtp.sendDescription":"We'll email you a one-time code to confirm this address is yours","emailOtp.prefilledNotice":"We'll send a verification code to your registered email address.","emailOtp.emailLabel":"Email address","emailOtp.emailHelper":"We'll send a one-time code to this address","emailOtp.emailPlaceholder":"Your email address","emailOtp.emailInvalid":"Enter a valid email address","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the code","emailOtp.verifyDescription":"Type the 6-digit code we emailed you to finish verifying your address","emailOtp.sentTo":"We sent a 6-digit code to {email}","emailOtp.codeLabel":"Verification code","emailOtp.codeHelper":"Enter the 6-digit code from the email","emailOtp.verify":"Verify code","emailOtp.resend":"Resend code","emailOtp.resendIn":"Resend code in {seconds}s","emailOtp.expiresIn":"Code expires in {time}","emailOtp.expired":"That code has expired. Resend a new one","emailOtp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","emailOtp.reason_otp_expired":"That code has expired. Resend a new code to continue","emailOtp.reason_otp_send_failed":"We couldn't send the email. Try again in a moment","emailOtp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","emailOtp.reason_email_invalid":"We can't send to this address. Check it or enter another one","emailOtp.reason_email_disposable":"Use a permanent email address, not a temporary one","emailOtp.changeEmail":"Change email","emailOtp.backToCode":"Back to code","emailOtp.reason_otp_resend_limit":"You can't get more codes. Enter the last code you received"};var J={"emailOtp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code par e-mail aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","emailOtp.sendTitle":"Vérifiez votre e-mail","emailOtp.sendDescription":"Nous vous enverrons par e-mail un code à usage unique pour confirmer que cette adresse vous appartient","emailOtp.prefilledNotice":"Nous enverrons un code de vérification à votre adresse e-mail enregistrée.","emailOtp.emailLabel":"Adresse e-mail","emailOtp.emailHelper":"Nous enverrons un code à usage unique à cette adresse","emailOtp.emailPlaceholder":"Votre adresse e-mail","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code","emailOtp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé par e-mail pour finaliser la vérification de votre adresse","emailOtp.sentTo":"Nous avons envoyé un code à 6 chiffres à {email}","emailOtp.codeLabel":"Code de vérification","emailOtp.codeHelper":"Saisissez le code à 6 chiffres reçu par e-mail","emailOtp.verify":"Vérifier le code","emailOtp.resend":"Renvoyer le code","emailOtp.resendIn":"Renvoyer le code dans {seconds} s","emailOtp.expiresIn":"Le code expire dans {time}","emailOtp.expired":"Ce code a expiré. Renvoyez-en un nouveau","emailOtp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","emailOtp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","emailOtp.reason_otp_send_failed":"Nous n'avons pas pu envoyer l'e-mail. Réessayez dans un instant","emailOtp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","emailOtp.reason_email_invalid":"Nous ne pouvons pas envoyer à cette adresse. Vérifiez-la ou saisissez-en une autre","emailOtp.reason_email_disposable":"Utilisez une adresse e-mail permanente, pas une adresse temporaire","emailOtp.changeEmail":"Changer d'adresse e-mail","emailOtp.backToCode":"Retour au code","emailOtp.reason_otp_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu"};import{Fragment as x,jsx as a,jsxs as o}from"react/jsx-runtime";var ue={en:O,fr:J,ar:j,es:O,pt:O,de:O},Q=n((e,m,f)=>{if(e===void 0)return 0;let y=Date.parse(e)-m;return Number.isFinite(y)?Math.min(f,Math.max(0,Math.ceil(y/1e3))):0},"secondsUntil"),Oe=600,fe=60,ye=n(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),X=new Set(["otp_expired","otp_send_failed","otp_rate_limited","otp_resend_limit","email_invalid","email_disposable","otp_daily_cap_reached"]);function Re({step:e,i18n:m,className:f,defaultEmail:y="",onError:Z}){let i=n((t,s)=>M(m.strings[t]??ue[m.locale][t],s),"t"),[C,ee]=d(y),[_,T]=d(""),[l,z]=d(!1),[w,I]=d(null),[g,c]=d(!1),[R,ae]=d(null),u=ce(null),v=e.phase==="verify",p=v&&!g,V=G(v),r=de(),[ie,te]=B(e.reason==="otp_mismatch",e.attemptsRemaining,()=>T("")),A=v?e.codeExpiresAt??"sent":null;pe(()=>{A!==null&&(c(!1),u.current!==null&&!X.has(e.reason??"")&&ae(u.current),u.current=null)},[A]);let D=n(async t=>{z(!0),I(null);try{await t()}catch(s){I(s instanceof me&&s.field==="email"?i("emailOtp.emailInvalid"):m.t(q(s,m.strings))),Z?.(s)}finally{z(!1)}},"run"),L=n(t=>{let s=e.needsEmail?t?R:C.trim():null;u.current=s,D(async()=>{try{await e.send(s!==null?{email:s}:{})}catch(re){throw u.current=null,re}})},"send"),$=n(t=>{D(()=>e.verify(t))},"submitCode"),se=n(t=>{t.preventDefault(),p?$(_):L(!1)},"onSubmit"),S=Q(e.codeExpiresAt,V,Oe),E=Q(e.resendAvailableAt,V,fe),h=p&&e.codeExpiresAt!==void 0&&S===0,P=e.needsEmail&&!e.attemptsExhausted,W=v&&(e.codeExpiresAt===void 0||S>0),H=p&&P?()=>c(!0):g&&W?()=>c(!1):null;Y(H===null?null:l?()=>{}:H);let[oe,le]=i("emailOtp.sentTo").split("{email}"),ne=e.reason==="otp_mismatch"?o(b,{tone:"danger",children:[a("span",{children:i("emailOtp.reason_otp_mismatch")}),a("span",{children:K(m,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&X.has(e.reason)?a(b,{tone:"warning",children:a("span",{children:i(`emailOtp.reason_${e.reason}`)})}):null;return o("form",{className:`sekyro-step sekyro-otp${f?` ${f}`:""}`,"aria-labelledby":r,onSubmit:se,noValidate:!0,children:[a(U,{id:r,title:i(p?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:p?o(x,{children:[oe,a("bdi",{dir:"ltr",className:"sekyro-mono",children:R??e.sentToMasked}),le]}):i("emailOtp.sendDescription")}),ne,w!==null?a(b,{tone:"danger",children:a("span",{children:w})}):null,p?o(x,{children:[o("div",{className:"sekyro-field",children:[a("label",{className:"sekyro-label",htmlFor:`${r}-code`,children:i("emailOtp.codeLabel")}),a(F,{id:`${r}-code`,value:_,invalid:ie,onChange:t=>{t!==""&&te(),T(t),t.length===6&&_.length!==6&&!l&&!e.attemptsExhausted&&$(t)}}),a("span",{className:`sekyro-help sekyro-otp-expiry${h?" is-danger":""}`,"aria-hidden":!h||void 0,children:h?i("emailOtp.expired"):i("emailOtp.expiresIn",{time:ye(S)})})]}),a("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:h?i("emailOtp.expired"):""}),o(N,{children:[a(k,{type:"submit",full:!0,disabled:l||_.length!==6,"aria-busy":l||void 0,children:i("emailOtp.verify")}),o("div",{className:"sekyro-resend-row",children:[a("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:l||E>0,onClick:()=>L(!0),children:E>0?i("emailOtp.resendIn",{seconds:E}):i("emailOtp.resend")}),P?a("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:l,onClick:()=>c(!0),"data-testid":"sekyro-otp-change",children:i("emailOtp.changeEmail")}):null]})]})]}):o(x,{children:[e.needsEmail?o("div",{className:"sekyro-field",children:[a("label",{className:"sekyro-label",htmlFor:`${r}-email`,children:i("emailOtp.emailLabel")}),a("input",{id:`${r}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:i("emailOtp.emailPlaceholder"),value:C,"aria-describedby":`${r}-email-help`,onChange:t=>ee(t.target.value)}),a("span",{id:`${r}-email-help`,className:"sekyro-help",children:i("emailOtp.emailHelper")})]}):a("p",{className:"sekyro-text-muted",children:i("emailOtp.prefilledNotice")}),o(N,{children:[a(k,{type:"submit",full:!0,disabled:l,"aria-busy":l||void 0,children:i("emailOtp.send")}),g&&W?a("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:l,onClick:()=>c(!1),"data-testid":"sekyro-otp-back-to-code",children:i("emailOtp.backToCode")}):null]})]})]})}n(Re,"EmailOtpView");export{Re as EmailOtpView};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{a as G,b as T,c as N,d as Q,f as W,g as D}from"./chunk-JT7YHK7F.js";import{d as P,k as K}from"./chunk-DY5WQVPE.js";import"./chunk-6I7GU4FS.js";import"./chunk-7MMT5M4E.js";import{a as Y,b as x,c as $}from"./chunk-55NNQK5P.js";import"./chunk-VRDPGOXM.js";import{d as M}from"./chunk-XTQARDSJ.js";import{a as R,d as L,m as I}from"./chunk-NV7HZJM4.js";import"./chunk-A6UYUVEG.js";import{a as w,r as z}from"./chunk-25KWDPLY.js";import{a as m}from"./chunk-2KED7D2Q.js";import{HostedApiError as ge}from"@sekyro/web";import{detectIsMobile as oe}from"@sekyro/web/core";import{useEffect as E,useId as _,useMemo as v,useRef as ke,useState as F}from"react";var j={"consent.human.terms.intro":"تؤكد Sekyro AI أن شخصًا حقيقيًا يُجري هذه الخطوة، نيابةً عن الجهة التي طلبتها.","consent.human.terms.data":"تلتقط Sekyro AI تسجيلًا قصيرًا لوجهك.","consent.human.terms.processing":"يُفحص هذا التسجيل للتأكد من أنك شخص حقيقي وحاضر، وقد يُقارَن بالوجوه التي سبق التحقق منها لدى هذه الجهة.","consent.human.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.human.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون وإعدادات الجهة. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.noCamera.title":"تتطلب هذه الخطوة كاميرا","capture.noCamera.body":"اسمح بالوصول إلى الكاميرا وحاول مرة أخرى، أو تابع على هاتف مزوّد بكاميرا.","capture.noCamera.continue":"المتابعة بدون كاميرا","capture.noCamera.deniedTitle":"اسمح بالوصول إلى الكاميرا","capture.noCamera.deniedBody":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","choice.title":"كيف تريد المتابعة؟","choice.description":"اختر خيارًا واحدًا.","choice.switch":"استخدم خيارًا آخر","contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف الموريتاني (NNI)","summary.id_number":"رقم الهوية","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة. تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة. يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك: دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي. الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط. الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال","inApp.openBrowser":"افتح في المتصفح"};var A={"consent.human.terms.intro":"Sekyro AI confirms that a real person is completing this step, on behalf of the organization that asked for it.","consent.human.terms.data":"Sekyro AI collects a short capture of your face.","consent.human.terms.processing":"The capture is checked to confirm that you are a real person who is present. It may be compared with faces already verified for this organization.","consent.human.terms.sharing":"The organization that requested this verification learns its outcome.","consent.human.terms.retention":"Your data is stored encrypted and kept only as long as the law and the organization's settings require. To exercise your data-protection rights, contact the organization that requested this verification.","capture.noCamera.title":"This step needs a camera","capture.noCamera.body":"Allow camera access and try again, or continue on a phone with a camera.","capture.noCamera.continue":"Continue without a camera","capture.noCamera.deniedTitle":"Allow camera access","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","choice.title":"Choose how to continue","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"Where to send your code","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"Mauritanian national ID number (NNI)","summary.id_number":"ID number","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again. Contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps. A religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face: no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed. Only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link. Copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open in your browser","inApp.description":"The camera doesn't work well inside this app. Open the link in Chrome or Safari to continue.","inApp.copyLink":"Copy link","inApp.copied":"Link copied. Paste it in your browser","inApp.copyFailed":"We couldn't copy the link. Copy this page's address instead","inApp.continueAnyway":"Continue here anyway","inApp.openBrowser":"Open in browser"};var Z={"consent.human.terms.intro":"Sekyro AI confirme qu'une personne réelle effectue cette étape, pour le compte de l'organisme qui l'a demandée.","consent.human.terms.data":"Sekyro AI recueille une courte capture de votre visage.","consent.human.terms.processing":"La capture est analysée pour confirmer que vous êtes une personne réelle et présente. Elle peut être comparée aux visages déjà vérifiés pour cet organisme.","consent.human.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.human.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi et les paramètres de l'organisme. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.noCamera.title":"Une caméra est nécessaire","capture.noCamera.body":"Autorisez l'accès à la caméra et réessayez, ou continuez sur un téléphone équipé d'une caméra.","capture.noCamera.continue":"Continuer sans caméra","capture.noCamera.deniedTitle":"Autorisez la caméra","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","choice.title":"Comment continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Où envoyer votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification mauritanien (NNI)","summary.id_number":"Numéro d'identité","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer. Contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette. Un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme : sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée. Seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien. Copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez dans le navigateur","inApp.description":"La caméra fonctionne mal dans cette application. Ouvrez le lien dans Chrome ou Safari pour continuer.","inApp.copyLink":"Copier le lien","inApp.copied":"Lien copié. Collez-le dans votre navigateur","inApp.copyFailed":"Impossible de copier le lien. Copiez plutôt l'adresse de cette page","inApp.continueAnyway":"Continuer ici quand même","inApp.openBrowser":"Ouvrir dans le navigateur"};var q=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]],[30,[[1,50],[4,51]]],[22,[[6,36],[2,37]]],[22,[[8,37],[1,38]]],[24,[[4,40],[5,41]]],[24,[[5,41],[5,42]]],[28,[[7,45],[3,46]]],[28,[[10,46],[1,47]]],[26,[[9,43],[4,44]]],[26,[[3,44],[11,45]]],[26,[[3,41],[13,42]]]],X=q.length,ce=0,O=m(e=>(q[e-1]?.[1]??[]).reduce((t,[n,o])=>t+n*o,0),"dataCapacity");function V(e,t){let n=0;for(let o=7;o>=0;o-=1)n=n<<1^(n>>>7)*285,n^=(t>>>o&1)*e;return n&255}m(V,"gfMul");function ue(e){let t=new Array(e).fill(0);t[e-1]=1;let n=1;for(let o=0;o<e;o+=1){for(let i=0;i<e;i+=1)t[i]=V(t[i],n),i+1<e&&(t[i]=t[i]^t[i+1]);n=V(n,2)}return t}m(ue,"rsDivisor");function le(e,t){let n=t.map(()=>0);for(let o of e){let i=o^n.shift();n.push(0),t.forEach((a,s)=>{n[s]=n[s]^V(a,i)})}return n}m(le,"rsRemainder");function me(e,t){let n=[],o=m((p,d)=>{for(let b=d-1;b>=0;b-=1)n.push(p>>>b&1)},"put");o(4,4),o(e.length,t<10?8:16);for(let p of e)o(p,8);let i=O(t)*8;o(0,Math.min(4,i-n.length)),o(0,(8-n.length%8)%8);let a=[];for(let p=0;p<n.length;p+=8)a.push(n.slice(p,p+8).reduce((d,b)=>d<<1|b,0));for(let p=236;a.length<O(t);p^=253)a.push(p);let[s,r]=q[t-1],c=ue(s),u=[],f=0;for(let[p,d]of r)for(let b=0;b<p;b+=1){let C=a.slice(f,f+d);f+=d,u.push({data:C,ec:le(C,c)})}let h=[],y=Math.max(...u.map(p=>p.data.length));for(let p=0;p<y;p+=1)for(let d of u)p<d.data.length&&h.push(d.data[p]);for(let p=0;p<s;p+=1)for(let d of u)h.push(d.ec[p]);return h}m(me,"codewords");function pe(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.ceil((e*4+4)/(t*2-2))*2,o=[6];for(let i=e*4+10;o.length<t;i-=n)o.splice(1,0,i);return o}m(pe,"alignmentPositions");var de=[(e,t)=>(e+t)%2===0,e=>e%2===0,(e,t)=>t%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0],U=class U{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,n,o){this.dark[t*this.size+n]=o,this.fixed[t*this.size+n]=!0}get(t,n){return this.dark[t*this.size+n]===!0}};m(U,"Grid");var B=U;function fe(e,t){let n=e.size;for(let a=0;a<n;a+=1)e.set(6,a,a%2===0),e.set(a,6,a%2===0);for(let[a,s]of[[3,3],[3,n-4],[n-4,3]])for(let r=-4;r<=4;r+=1)for(let c=-4;c<=4;c+=1){let u=a+r,f=s+c;if(u<0||u>=n||f<0||f>=n)continue;let h=Math.max(Math.abs(r),Math.abs(c));e.set(u,f,h!==2&&h!==4)}let o=pe(t),i=o.length-1;if(o.forEach((a,s)=>o.forEach((r,c)=>{if(!(s===0&&c===0||s===0&&c===i||s===i&&c===0))for(let u=-2;u<=2;u+=1)for(let f=-2;f<=2;f+=1)e.set(a+u,r+f,Math.max(Math.abs(u),Math.abs(f))!==1)})),J(e,0),t>=7){let a=t;for(let r=0;r<12;r+=1)a=a<<1^(a>>>11)*7973;let s=t<<12|a;for(let r=0;r<18;r+=1){let c=(s>>>r&1)===1,u=n-11+r%3,f=Math.floor(r/3);e.set(u,f,c),e.set(f,u,c)}}}m(fe,"drawFunctionPatterns");function J(e,t){let n=e.size,o=ce<<3|t,i=o;for(let r=0;r<10;r+=1)i=i<<1^(i>>>9)*1335;let a=(o<<10|i)^21522,s=m(r=>(a>>>r&1)===1,"bit");for(let r=0;r<=5;r+=1)e.set(r,8,s(r));e.set(7,8,s(6)),e.set(8,8,s(7)),e.set(8,7,s(8));for(let r=9;r<15;r+=1)e.set(8,14-r,s(r));for(let r=0;r<8;r+=1)e.set(8,n-1-r,s(r));for(let r=8;r<15;r+=1)e.set(n-15+r,8,s(r));e.set(n-8,8,!0)}m(J,"drawFormat");function ye(e,t){let n=e.size,o=0;for(let i=n-1;i>=1;i-=2){i===6&&(i=5);for(let a=0;a<n;a+=1)for(let s=0;s<2;s+=1){let r=i-s,u=(i+1&2)===0?n-1-a:a;e.fixed[u*n+r]!==!0&&(o<t.length*8&&(e.dark[u*n+r]=(t[o>>>3]>>>7-(o&7)&1)===1),o+=1)}}}m(ye,"placeData");function he(e,t){let n=de[t];for(let o=0;o<e.size;o+=1)for(let i=0;i<e.size;i+=1)e.fixed[o*e.size+i]!==!0&&n(o,i)&&(e.dark[o*e.size+i]=!e.dark[o*e.size+i])}m(he,"applyMask");function be(e){let t=e.size,n=0,o=m(a=>{let s=1;for(let r=1;r<=t;r+=1)r<t&&a(r)===a(r-1)?s+=1:(s>=5&&(n+=3+(s-5)),s=1);for(let r=0;r+10<t;r+=1){let c=[!0,!1,!0,!0,!0,!1,!0];if(!(c.every((y,p)=>a(r+p)===y)||c.every((y,p)=>a(r+4+p)===y)))continue;let f=[0,1,2,3].every(y=>!a(r+y))&&c.every((y,p)=>a(r+4+p)===y),h=c.every((y,p)=>a(r+p)===y)&&[7,8,9,10].every(y=>!a(r+y));f&&(n+=40),h&&(n+=40)}},"line");for(let a=0;a<t;a+=1)o(s=>e.get(a,s));for(let a=0;a<t;a+=1)o(s=>e.get(s,a));for(let a=0;a+1<t;a+=1)for(let s=0;s+1<t;s+=1){let r=e.get(a,s);r===e.get(a,s+1)&&r===e.get(a+1,s)&&r===e.get(a+1,s+1)&&(n+=3)}let i=e.dark.filter(Boolean).length;return n+=Math.floor(Math.abs(i*20-t*t*10)/(t*t))*10,n}m(be,"penalty");function ee(e,t={}){let n=new TextEncoder().encode(e),o=1;for(;o<=X&&!(4+(o<10?8:16)+n.length*8<=O(o)*8);o+=1);if(o>X)throw new RangeError("text too long for a QR code");let i=me(n,o),a=m(c=>{let u=new B(o*4+17);return fe(u,o),ye(u,i),he(u,c),J(u,c),u},"build"),s=null;if(t.mask!==void 0)s=a(t.mask);else{let c=Number.POSITIVE_INFINITY;for(let u=0;u<8;u+=1){let f=a(u),h=be(f);h<c&&(c=h,s=f)}}let r=s;return{size:r.size,get:m((c,u)=>r.get(c,u),"get")}}m(ee,"encodeQr");function te(e,t=4){let n=[];for(let o=0;o<e.size;o+=1)for(let i=0;i<e.size;i+=1)e.get(o,i)&&n.push(`M${i+t} ${o+t}h1v1h-1z`);return{size:e.size+t*2,d:n.join("")}}m(te,"qrPath");import{Fragment as H,jsx as l,jsxs as g}from"react/jsx-runtime";var we={en:A,fr:Z,ar:j,es:A,pt:A,de:A},ne={en:x,fr:$,ar:Y,es:x,pt:x,de:x};function k(e){let t=e.strings;return(n,o)=>M(t[n]??we[e.locale][n]??"",o)}m(k,"flowT");function re(e,t){let n=k(t);return e.flatMap(o=>{let i=o.service==="phone_otp"?n("contact.phone"):o.service==="email_otp"?n("contact.email"):T(o,t),a=G[o.service];return i===null?[]:[{id:o.id,label:i,...a!==void 0?{glyph:l(R,{name:a})}:{}}]})}m(re,"labelled");function ae({step:e,i18n:t,onError:n}){let o=k(t),{busy:i,error:a,run:s}=N(t,n),r=e.kind==="contact_choice";return l(P,{title:o(r?"contact.title":"choice.title"),description:o(r?"contact.description":"choice.description"),options:re(e.choice.options,t),busy:i,error:a,focus:!0,testId:r?"sekyro-contact-choice":"sekyro-choice",onChoose:c=>s(()=>e.choose(c))})}m(ae,"PlanChoiceView");var tt=ae,ot=ae;function nt({step:e,i18n:t,onError:n,onOpen:o}){let i=k(t),{busy:a,error:s,run:r}=N(t,n),c=e,u=e.context.switchable,f=u===void 0?[]:u.options.filter(C=>C.id!==u.current),h=c.kind==="registry"&&(c.reason==="nni_not_found"||c.reason==="registry_record_not_found")&&c.canUseDocument||c.kind==="eid"&&c.reason?.startsWith("eid_")&&c.canUseCamera,y=f.length===1?f[0]:void 0,p=y!==void 0&&(y.service==="phone_otp"||y.service==="email_otp"),d=p&&c.canSwitch&&c.switchTo!==void 0?()=>c.switchTo.call(e):c.chooseOption===void 0||y===void 0?void 0:()=>c.chooseOption.call(e,y.id);if(f.length===0||h||y!==void 0&&(d===void 0||b()===null)||y===void 0&&c.chooseOption===void 0)return null;function b(){return y===void 0?i("choice.switch"):y.service==="phone_otp"||y.service==="email_otp"?i("contact.switch"):c.kind==="registry"&&y.service==="document"?t.t("population.useDocument"):c.kind==="eid"?t.strings["eid.useCamera"]??ne[t.locale]["eid.useCamera"]:T(y,t)}return m(b,"labelOf"),g("div",{className:"sekyro-stack sekyro-stack--1",children:[s!==null?l(I,{tone:"danger",children:l("span",{children:s})}):null,l(w,{kind:"secondary",disabled:a,"aria-busy":a||void 0,onClick:()=>d===void 0?o():r(d),"data-testid":p?"sekyro-contact-switch":"sekyro-lane-switch",children:b()})]})}m(nt,"LaneSwitch");function rt({step:e,i18n:t,onError:n,onClose:o}){let i=k(t),{busy:a,error:s,run:r}=N(t,n),c=e.context.switchable,u=e.chooseOption;return c===void 0||u===void 0?null:l(P,{title:i("choice.title"),description:i("choice.description"),options:re(c.options,t),...c.current!==null?{marked:c.current}:{},busy:a,error:s,focus:!0,testId:"sekyro-lane-choice",onChoose:f=>f===c.current?o():r(()=>u.call(e,f))})}m(rt,"LaneChoiceView");var ve=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["idNumberMasked","summary.id_number",!0],["expiryDate","summary.expiryDate",!0]];function Ce(e){let[t,n]=F(null);return E(()=>{if(!e.portraitAvailable)return;let o=!0,i=null;return e.portrait().then(a=>{!o||a===null||!a.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(i=URL.createObjectURL(a),n(i))}),()=>{o=!1,i!==null&&URL.revokeObjectURL(i)}},[e.portraitAvailable]),t}m(Ce,"usePortraitUrl");var Se=m(e=>/^\d{4}-\d{2}-\d{2}$/.test(e),"isoDate");function Ie(e,t){try{return new Intl.DateTimeFormat(t==="ar"?"ar-u-nu-latn":t,{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`))}catch{return e}}m(Ie,"formatDate");function at({step:e,i18n:t,onError:n}){let o=k(t),i=_(),a=z(),s=Ce(e),{busy:r,error:c,run:u}=N(t,n),f=e.context.orgName,h=["registry","document","chip"].find(d=>d===e.source),y=e.summaryKind==="partial",p=m(d=>t.strings[`doc.type.${d}`]??d,"documentLabel");return g("section",{className:"sekyro-step","aria-labelledby":i,"data-testid":"sekyro-identity-summary",children:[g("div",{className:"sekyro-heading",children:[l("h2",{id:i,ref:a,tabIndex:-1,className:"sekyro-text-body",children:o("summary.title")}),l("p",{className:"sekyro-text-muted",children:o("summary.description")})]}),h!==void 0?l("p",{className:"sekyro-summary__source",children:o(`summary.source.${h}`)}):null,g("div",{className:"sekyro-summary",children:[s!==null?l("img",{className:"sekyro-summary__portrait",src:s,alt:o("summary.portraitAlt")}):null,l("dl",{className:"sekyro-summary__list",children:ve.map(([d,b,C])=>{let S=d==="idNumberMasked"?e.idNumberMasked??e.nniMasked:e[d];return S===void 0?null:g("div",{className:"sekyro-summary__row",children:[l("dt",{className:"sekyro-text-muted",children:o(d==="fullName"&&y?"summary.name":b)}),l("dd",{children:Se(S)?Ie(S,t.locale):C?l("bdi",{dir:"ltr",children:S}):d==="documentType"?p(S):S})]},d)})})]}),c!==null?l(I,{tone:"danger",children:l("span",{children:c})}):null,e.retakeAvailable?null:l("p",{className:"sekyro-text-muted",children:o("summary.noRetake",{org:f})}),g(L,{children:[l(w,{full:!0,disabled:r,"aria-busy":r||void 0,onClick:()=>u(()=>e.confirm()),children:o("summary.confirm")}),e.retakeAvailable?l(w,{kind:"secondary",full:!0,disabled:r,onClick:()=>u(()=>e.retake()),children:o(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):null]})]})}m(at,"IdentitySummaryView");var xe=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function it({step:e,i18n:t,livenessProps:n,sekyroIntro:o}){let i=k(t),[a,s]=F(null);E(()=>e.onLivePhoto(d=>{let b=d.update?.coach;s(d.holding||b===void 0?null:t.t(`portrait.coach.${b}`))}),[e,t]);let r=e.instructions==="icao",c=e.icao?.profile==="selfie",u=v(()=>r?xe.filter(d=>!c||d!=="background").map(d=>({id:d,text:i(`capture.tipsIcao.${d}`)})):void 0,[r,c,t]),f=v(()=>r&&!c?{...n.strings,"capture.tips.title":i("capture.tipsIcao.title")}:n.strings,[r,c,n.strings,t]),h=c?void 0:i("capture.tipsIcao.title"),y=v(()=>o===!0&&u!==void 0?{...n.slots,intro:m((d,b)=>l(Q,{start:d,context:b,tips:u,...h!==void 0?{tipsTitle:h}:{}}),"intro")}:n.slots,[o,u,h,n.slots,t]),p=c?`${(u??[]).map(d=>d.text).join(". ")}.`:i("capture.tipsIcao.summary");return l(K,{...n,...y!==void 0?{slots:y}:{},...f!==void 0?{strings:f}:{},...u!==void 0?{tips:u,tipsSummary:p}:{},coach:a})}m(it,"LivePhotoLiveness");function st({i18n:e}){let t=k(e);return g(I,{tone:"info",children:[l("strong",{children:t("portrait.retakeOnly")}),l("span",{children:t("portrait.keepCamera")})]})}m(st,"PortraitRetakeNotice");function ct({i18n:e,provider:t}){let n=e.strings,o=m(i=>n[i]??ne[e.locale][i]??"","pick");return l("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?M(o("eid.continueHint"),{provider:t}):o("eid.continueHintGeneric")})}m(ct,"EidContinueHint");async function Ne(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}m(Ne,"copy");function ie({url:e,i18n:t,label:n,primary:o}){let i=k(t),[a,s]=F("idle"),r=n.startsWith("inApp.")?"inApp":"handoff";return g("div",{className:"sekyro-stack sekyro-stack--1",children:[l(w,{kind:o?"primary":"secondary",full:!0,onClick:()=>{Ne(e).then(c=>s(c?"copied":"failed"))},children:i(n)}),l("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:a==="idle"?"":i(`${r}.${a==="copied"?"copied":"copyFailed"}`)})]})}m(ie,"CopyLink");function se({url:e,i18n:t,refresh:n,footer:o}){let i=k(t),a=_(),s=v(()=>{try{return te(ee(e))}catch{return null}},[e]),r=ke(n);r.current=n;let c=z();return E(()=>{let u=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&r.current?.().catch(()=>{})},5e3);return()=>clearInterval(u)},[]),g("section",{className:"sekyro-step sekyro-handoff","aria-labelledby":a,"data-testid":"sekyro-handoff",children:[g("div",{className:"sekyro-heading",children:[l("h2",{id:a,ref:c,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),l("p",{className:"sekyro-text-muted",children:i("handoff.description")})]}),s!==null?g("svg",{className:"sekyro-qr",viewBox:`0 0 ${s.size} ${s.size}`,role:"img","aria-label":i("handoff.qrAlt"),shapeRendering:"crispEdges",children:[l("rect",{width:s.size,height:s.size,className:"sekyro-qr__bg"}),l("path",{d:s.d,className:"sekyro-qr__fg"})]}):null,g("p",{className:"sekyro-handoff__waiting",role:"status",children:[l("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),i("handoff.waiting")]}),g(L,{children:[l(ie,{url:e,i18n:t,label:"handoff.copyLink"}),o??null]})]})}m(se,"HandoffView");var Ae=["intro","data","processing","sharing","retention"];function ut({i18n:e}){let t=k(e);return l(H,{children:Ae.map(n=>l("p",{children:t(`consent.human.terms.${n}`)},n))})}m(ut,"HumanConsentTerms");function lt({url:e,i18n:t}){return v(()=>!oe(),[])?l(se,{url:e,i18n:t}):null}m(lt,"DesktopHandoffView");function mt({i18n:e,cause:t,onRetry:n,onContinue:o,handoffUrl:i}){let a=k(e),s=_(),r=z(),[c,u]=F("idle"),f=v(()=>i!==void 0&&!oe(),[i]),h=t==="denied",y=m(()=>{o!==void 0&&(u("busy"),o(t).then(()=>u("idle"),b=>u(b instanceof ge&&b.code==="check_out_of_order"?"idle":"failed")))},"end"),p=g(H,{children:[l(w,{full:!0,kind:h||o===void 0?"primary":"secondary",onClick:n,children:e.t("common.retry")}),o!==void 0?l(w,{full:!0,kind:h?"secondary":"primary",disabled:c==="busy","aria-busy":c==="busy"||void 0,onClick:y,children:a("capture.noCamera.continue")}):null]}),d=c==="failed"?l(I,{tone:"danger",children:l("span",{children:e.t("errors.network_error")})}):null;return f&&i!==void 0?g("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":s,"data-testid":"sekyro-no-camera","data-cause":t,children:[l(se,{url:i,i18n:e}),l("h2",{id:s,ref:r,tabIndex:-1,className:"sekyro-text-body",children:a(h?"capture.noCamera.deniedTitle":"capture.noCamera.title")}),l("p",{className:"sekyro-text-muted",children:a(h?"capture.noCamera.deniedBody":"capture.noCamera.body")}),d,l("div",{className:"sekyro-stack sekyro-stack--3",children:p})]}):g(D,{tone:h?"warning":"neutral",icon:"camera",titleId:s,title:a(h?"capture.noCamera.deniedTitle":"capture.noCamera.title"),testId:"sekyro-no-camera",actions:p,children:[l("p",{children:a(h?"capture.noCamera.deniedBody":"capture.noCamera.body")}),d]})}m(mt,"NoCameraView");function pt({url:e,i18n:t,onContinue:n}){let o=k(t),i=_(),a=v(()=>W(e),[e]);return l(D,{tone:"brand",icon:"external",titleId:i,title:o("inApp.title"),testId:"sekyro-in-app",actions:g(H,{children:[a!==null?g("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:a,"data-testid":"sekyro-open-browser",children:[l(R,{name:"external"}),o("inApp.openBrowser")]}):null,l(ie,{url:e,i18n:t,label:"inApp.copyLink",primary:a===null}),l(w,{kind:"ghost",full:!0,onClick:n,children:o("inApp.continueAnyway")})]}),children:l("p",{children:o("inApp.description")})})}m(pt,"InAppBrowserPrompt");export{tt as ContactChoiceView,lt as DesktopHandoffView,ct as EidContinueHint,ot as GenericChoiceView,se as HandoffView,ut as HumanConsentTerms,at as IdentitySummaryView,pt as InAppBrowserPrompt,rt as LaneChoiceView,nt as LaneSwitch,it as LivePhotoLiveness,mt as NoCameraView,st as PortraitRetakeNotice};