@sekyro/react 0.1.0-rc.6 → 0.1.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +36 -24
- package/dist/chunk-5SVCGLYS.js +2 -0
- package/dist/chunk-B43EDVOK.js +2 -0
- package/dist/chunk-QZAPVO6F.js +2 -0
- package/dist/{document-capture-view-SKFDM4AQ.js → document-capture-view-PT732PJ2.js} +1 -1
- package/dist/{eid-view-WIK6KUTY.js → eid-view-RFSXIECL.js} +1 -1
- package/dist/{email-otp-view-TYSBCGUY.js → email-otp-view-3WZH74UT.js} +1 -1
- package/dist/flow-views-N6KYXL4N.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +4 -0
- package/dist/verification/index.d.ts +4 -0
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +1 -0
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-BJJZ4MO5.js +0 -2
- package/dist/chunk-BRA6F56P.js +0 -2
- package/dist/chunk-JAUZKPQO.js +0 -2
- package/dist/flow-views-PCBR5GYS.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var Po=Object.defineProperty;var Sa=Object.getOwnPropertyDescriptor;var _a=Object.getOwnPropertyNames;var Ca=Object.prototype.hasOwnProperty;var s=(e,t)=>Po(e,"name",{value:t,configurable:!0});var _=(e,t)=>()=>(e&&(t=e(e=0)),t);var qt=(e,t)=>{for(var o in t)Po(e,o,{get:t[o],enumerable:!0})},wa=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _a(t))!Ca.call(e,n)&&n!==o&&Po(e,n,{get:()=>t[n],enumerable:!(r=Sa(t,n))||r.enumerable});return e};var Na=e=>wa(Po({},"__esModule",{value:!0}),e);var Mo,Tr=_(()=>{"use strict";Mo={"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":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"+222 36 00 00 00","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":"طلبت رموزًا كثيرة — انتظر قليلًا ثم أعد المحاولة","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"3501234567","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا — لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية — تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا — تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا — أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك — ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين — صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة — أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة — التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة — الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار — سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","dcv2.sensing":"جارٍ البحث عن الوثيقة — ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا — أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار — أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا — ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة — الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة — أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا — أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك — الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز — أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة — أملها قليلًا","dcv2.hold_still":"ممتاز — لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه — اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ — وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت — يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط — لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","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":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","handoff.copied":"تم نسخ الرابط — افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد، مثل +222 36 00 00 00","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.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","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 Ao,zr=_(()=>{"use strict";Ao={"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 national identification number (NNI).","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your NNI is checked against the civil registry. 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.","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":"+222 36 00 00 00","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the verification code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired — resend a new one","otp.reason_otp_mismatch":"That code was incorrect — check it and enter it again","otp.reason_otp_expired":"That code has expired — resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code — try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available — choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country — enter another number","otp.reason_otp_destination_unknown":"We couldn't recognise 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","session.steps.population.title":"Enter your national ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"National ID (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"3501234567","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable — your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry — check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI — check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number — confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Which document will you use?","doc.pickDescription":"Choose the identity document you have with you — you will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved — now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document — retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo — take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document — camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame — it captures by itself. For a sharper photo, turn your phone sideways","dcv2.sensing":"Looking for the document — fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little — keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame — keep the edges visible","dcv2.wrong_shape":"That doesn't look right — lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document — too much angle","dcv2.too_dark":"Find a brighter spot — light the document","dcv2.too_bright":"Too much light — tilt the document away from the glare","dcv2.blurry":"Hold your phone steady — the image is blurry","dcv2.focus_far":"Too close to focus — move the phone a little farther","dcv2.glare":"Light is reflecting off the document — tilt it slightly","dcv2.hold_still":"Perfect — hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured — flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Your checks are being processed","session.processing.description":"This usually takes a few seconds — the result will appear here","handoff.title":"Continue on your phone","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done — you can close this page","session.result.review.title":"Your verification is under review","session.result.review.description":"The result will be sent to the organization that gave you this link — you don't need to do anything else.","session.result.rejected.title":"Your identity could not be verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"This verification session has expired","session.result.expired.description":"Request a new link from the organization that sent it, then start again","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","result.referenceLabel":"Reference code","common.loading":"Loading your verification session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect — hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photo with your identity document…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo — camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","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","handoff.copied":"Link copied — open it on your phone","needsApp.title":"This verification needs a phone app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","population.recheck.title":"Check your national number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code, for example +222 36 00 00 00","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Which country issued your document?","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.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.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 Vo,Pr=_(()=>{"use strict";Vo={"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 votre numéro national d'identification (NNI).","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre NNI est vérifié auprès du registre d'état civil. 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.","otp.sendTitle":"Vérifiez votre numéro de téléphone","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"+222 36 00 00 00","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code de vérification","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré — renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect — vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré — renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code — réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible — choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays — saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro — vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés — patientez un instant, puis réessayez","session.steps.population.title":"Saisissez votre numéro national d'identification","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"3501234567","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible — votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil — vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide — vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification — confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Vérification auprès du registre civil","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Quel document allez-vous utiliser ?","doc.pickDescription":"Choisissez la pièce d'identité en votre possession — vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée — photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document — reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo — prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document — l'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre — la capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","dcv2.sensing":"Recherche du document — placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu — gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre — gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct — posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document — trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux — éclairez le document","dcv2.too_bright":"Trop de lumière — inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile — l'image est floue","dcv2.focus_far":"Trop près pour la mise au point — éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document — inclinez-le légèrement","dcv2.hold_still":"Parfait — ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée — retournez le document","dcv2.captured":"Capturé","session.processing.title":"Vos vérifications sont en cours de traitement","session.processing.description":"Cela prend généralement quelques secondes — le résultat s'affichera ici","handoff.title":"Continuez sur votre téléphone","session.result.approved.title":"Votre identité est vérifiée","session.result.approved.description":"C'est terminé — vous pouvez fermer cette page","session.result.review.title":"Votre vérification est en cours d'examen","session.result.review.description":"Le résultat sera transmis à l'organisation qui vous a envoyé ce lien — vous n'avez rien d'autre à faire.","session.result.rejected.title":"Votre identité n'a pas pu être vérifiée","session.result.rejected.description":"Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur","session.result.expired.title":"Cette session de vérification a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui l'a envoyé, puis recommencez","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","result.referenceLabel":"Code de référence","common.loading":"Chargement de votre session de vérification","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo d’identité","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait — ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification de votre photo…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison de votre photo avec votre pièce d'identité…","portrait.reviewTitle":"Nous allons vérifier votre photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité — l'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","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","handoff.copied":"Lien copié — ouvrez-le sur votre téléphone","needsApp.title":"Cette vérification nécessite une application mobile","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","population.recheck.title":"Vérifiez votre numéro national","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays, par exemple +222 36 00 00 00","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Quel pays a délivré votre document ?","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions maintenant votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.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}"}});var _o,xn=_(()=>{"use strict";_o={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds — keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work — a few adjustments will help:","capture.retryCoaching.light":"Find good lighting — light on your face, not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected — connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera — close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS) — reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format — open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable — try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face — hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot — light your face","fcv3.too_bright":"Too much light — move out of direct light","fcv3.hold_still":"Perfect — hold still","fcv3.steady_camera":"Hold the phone steady","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm the NNI","reasons.result_from_cache":"The registry check was confirmed from a recent copy of the registry","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against — the requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry — a reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided — your verification went to human review","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","reasons.subject_revoked":"The identity on file for this check is no longer available — the requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"Keep your face in the frame the whole time, then try again.","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my national number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not confirm this browser session is genuine — reload the page and try again","errors.network_error":"We could not reach the verification service — check your internet connection and try again","errors.session_expired":"This verification session has expired — ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number — ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source — avoid strong light behind you","capture.tips.uncover":"Uncover your face — no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face — no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera — choose Allow","capture.permission.denied":"Camera access is blocked — allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection — this can take a moment on a slow connection","capture.ready":"Ready — start when you are","fcv2.err.models":"The face-detection models could not be loaded — check your connection and try again"}});var Mr,In=_(()=>{"use strict";Mr={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ — أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة — بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة — الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا — وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا — أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS) — افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة — افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة — أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك — أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة — أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا — تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز — لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد الرقم الوطني","reasons.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها — على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني — سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد — أُحيل تحققك إلى مراجعة بشرية","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة — على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"أبقِ وجهك داخل الإطار طوال الوقت، ثم حاول مجددًا.","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال رقمي الوطني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر التأكد من سلامة جلسة المتصفح — أعد تحميل الصفحة وحاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق — تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه — اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف — اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك — تجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك — بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك — بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا — اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور — اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك — قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز — ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه — تحقق من اتصالك ثم أعد المحاولة"}});var Ar,Rn=_(()=>{"use strict";Ar={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes — gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti — quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé — lumière sur le visage, pas derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée — branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application — fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS) — rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible — ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible — réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage — tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux — éclairez votre visage","fcv3.too_bright":"Trop de lumière — évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait — ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer le NNI","reasons.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie — c'est au demandeur de le résoudre, reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil — un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement — votre vérification part en revue humaine","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Réessayons : placez-vous face à une source de lumière et restez immobile.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible — le demandeur doit lancer une vérification complète, réessayer n'y changera rien","reasons.probe_not_from_liveness":"Gardez votre visage dans le cadre tout du long, puis réessayez.","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu confirmer l'authenticité de cette session de navigateur — rechargez la page et réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification — vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré — demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification — demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière — évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage — ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage — ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra — choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué — autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil — cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt — commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage — vérifiez votre connexion puis réessayez"}});function Ln(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}function Tn(e){return`fcv2.err.${e}`}function Gt(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":return"errors.nni_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${e}`;return Object.hasOwn(_o,t)?t:null}}}function Eo(e,t,o=new Date){if(t===void 0)return null;let r=new Date(t),n=r.getTime()-o.getTime();if(!Number.isFinite(n)||n<=0)return null;if(n<36e5){let c=Math.max(1,Math.ceil(n/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(c,"minute")}}let i=r.toDateString()===o.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...i?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(r)}}function Oo(e,t,o){let r=new Intl.PluralRules(t).select(o);return((r==="other"?void 0:e[`capture.attemptsRemaining.${r}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(o))}var Wt=_(()=>{"use strict";xn();In();Rn();s(Ln,"hintStringKey");s(Tn,"captureErrorStringKey");s(Gt,"reasonStringKey");s(Eo,"retryAfterTime");s(Oo,"attemptsRemainingText")});function Ho(e,t){let o=xa[e];if(t===void 0)return o;let r={...o};for(let n of Object.keys(t)){let i=t[n];typeof i=="string"&&(r[n]=i)}return r}function ve(){return(0,Do.useContext)(zn)}var Do,xa,zn,Fo,Te=_(()=>{"use strict";Do=require("react");Wt();xa={ar:Mr,fr:Ar,en:_o};s(Ho,"resolveStrings");zn=(0,Do.createContext)(e=>_o[e]??""),Fo=zn.Provider;s(ve,"useStrings")});function ze(e,t){return t===void 0?e:e.replace(/\{(\w+)\}/g,(o,r)=>Object.hasOwn(t,r)?String(t[r]):o)}function Vr(e,t){let o={...Ho(e),...Ia[e]};if(t!==void 0)for(let r of Object.keys(t)){let n=t[r];typeof n=="string"&&(o[r]=n)}return o}function Mn(e,t){let o=Vr(e,t);return{locale:e,strings:o,t:s((r,n)=>ze(o[r]??"",n),"t")}}function Yt({locale:e,strings:t,children:o}){let r=(0,Rt.useMemo)(()=>Mn(e,t),[e,t]);return(0,An.jsx)(Pn.Provider,{value:r,children:o})}function ne(e,t){let o=(0,Rt.useContext)(Pn);return(0,Rt.useMemo)(()=>o!==null&&e===void 0&&t===void 0?o:Mn(e??o?.locale??"en",t),[o,e,t])}var Rt,An,Ia,Pn,be=_(()=>{"use strict";Rt=require("react");Tr();zr();Pr();Te();An=require("react/jsx-runtime"),Ia={en:Ao,fr:Vo,ar:Mo};s(ze,"formatTemplate");s(Vr,"resolveSekyroStrings");Pn=(0,Rt.createContext)(null);s(Mn,"build");s(Yt,"StepI18nProvider");s(ne,"useStepI18n")});var Vn,En,R,ae=_(()=>{"use strict";Vn=require("react"),En=require("react/jsx-runtime"),R=(0,Vn.forwardRef)(s(function({kind:t="primary",full:o=!1,className:r,type:n,...i},a){let c=["sekyro-btn",`sekyro-btn--${t}`];return o&&c.push("sekyro-btn--full"),r!==void 0&&c.push(r),(0,En.jsx)("button",{ref:a,type:n??"button",className:c.join(" "),...i})},"Button"))});function $o({id:e,value:t,onChange:o,length:r=6,describedBy:n,invalid:i}){let[a,c]=(0,gt.useState)(!1),[l,m]=(0,gt.useState)(0);(0,gt.useEffect)(()=>{i&&m(f=>f+1)},[i]);let d=(0,gt.useRef)(null);(0,gt.useEffect)(()=>{let f=setTimeout(()=>d.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(f)},[]);let h=t.length<r?t.length:-1;return(0,Lt.jsxs)("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[(0,Lt.jsx)("div",{className:`sekyro-otp-row${l>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:r},(f,u)=>(0,Lt.jsx)("span",{className:`sekyro-otp-box${u<t.length?" is-filled":""}${a&&u===h?" is-current":""}${i?" is-invalid":""}`,children:t[u]!==void 0?(0,Lt.jsx)("span",{className:"sekyro-otp-digit",children:t[u]},t[u]):null},u))},l),(0,Lt.jsx)("input",{ref:d,id:e,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:t,"aria-describedby":n,"aria-invalid":i||void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),onChange:f=>o((0,On.normalizeNni)(f.target.value).replace(/\D/g,"").slice(0,r))})]})}var On,gt,Lt,Er=_(()=>{"use strict";On=require("@sekyro/web"),gt=require("react"),Lt=require("react/jsx-runtime");s($o,"CodeInput")});function Ee(e,t){if(e instanceof jt.InvalidInputError)return e.field==="phone"?"otp.phoneInvalid":e.field==="code"?"otp.codeInvalid":e.kind==="check_digit"?"population.reason_nni_invalid":"population.invalid";if(e instanceof jt.OtpInputError&&e.field==="channel")return"otp.reason_otp_channel_unavailable";if(e instanceof jt.HostedApiError){let o=`errors.${e.code}`;if(Object.hasOwn(t,o))return o}return"errors.network_error"}var jt,Tt=_(()=>{"use strict";jt=require("@sekyro/web");s(Ee,"errorKey")});function ye(){return(0,Dn.useCallback)(e=>{e?.focus()},[])}var Dn,ct=_(()=>{"use strict";Dn=require("react");s(ye,"useFocusOnMount")});function Ie({id:e,title:t,lead:o}){let r=ye();return(0,vt.jsxs)("div",{className:"sekyro-heading",children:[(0,vt.jsx)("h2",{id:e,ref:r,tabIndex:-1,className:"sekyro-text-body",children:t}),o!==void 0?(0,vt.jsx)("p",{className:"sekyro-text-muted",children:o}):null]})}function xe({children:e}){return(0,vt.jsx)("div",{className:"sekyro-actions",children:e})}function Ko(e){let t=(0,Oe.useContext)(Or);(0,Oe.useEffect)(()=>(t(e),()=>t(!1)),[e,t])}function wo({swapKey:e,className:t,children:o}){let[r,n]=(0,Oe.useState)({key:e,node:o}),i=(0,Oe.useRef)(o);i.current=o;let a=r.key!==e;return(0,Oe.useEffect)(()=>{if(!a)return;let c=setTimeout(()=>n({key:e,node:i.current}),Ra);return()=>clearTimeout(c)},[a,e]),(0,vt.jsx)("div",{className:`${t}${a?" is-leaving":""}`,"aria-hidden":a||void 0,children:a?r.node:o},r.key)}var Oe,vt,Zt,Or,Ra,Hn,Xe=_(()=>{"use strict";Oe=require("react");ct();vt=require("react/jsx-runtime");s(Ie,"StepHeading");s(xe,"StepActions");Zt=(0,Oe.createContext)(void 0),Or=(0,Oe.createContext)(()=>{});s(Ko,"useImmersive");Ra=100;s(wo,"Swap");Hn=s(({pageKey:e,children:t})=>(0,vt.jsx)(wo,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap")});function Se({tone:e,role:t,children:o,testId:r}){return(0,Fn.jsx)("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":r,children:o})}var Fn,Qt=_(()=>{"use strict";Fn=require("react/jsx-runtime");s(Se,"Notice")});function D({tone:e,children:t}){return(0,Bn.jsx)(Se,{tone:e,children:t})}function Be(e,t,o){return o?e.t("common.noAttemptsLeft"):Oo(e.strings,e.locale,t)}var Bn,Pe=_(()=>{"use strict";Qt();Wt();Bn=require("react/jsx-runtime");s(D,"StepNotice");s(Be,"attemptsLine")});function Xt(e){let[t,o]=(0,Uo.useState)(()=>Date.now());return(0,Uo.useEffect)(()=>{if(!e)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[e]),t}var Uo,qo=_(()=>{"use strict";Uo=require("react");s(Xt,"useNow")});var Un,qn=_(()=>{"use strict";Un={"emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"name@example.com","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا، مثل name@example.com","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":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا"}});var Gn,Wn=_(()=>{"use strict";Gn={"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":"name@example.com","emailOtp.emailInvalid":"Enter a valid email address, for example name@example.com","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the verification 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"}});var Yn,jn=_(()=>{"use strict";Yn={"emailOtp.sendTitle":"Vérifiez votre adresse 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":"nom@exemple.com","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide, par exemple nom@exemple.com","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code de vérification","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"}});var Xn={};qt(Xn,{EmailOtpView:()=>Oa});function Oa({step:e,i18n:t,className:o,defaultEmail:r="",onError:n}){let i=s((A,H)=>ze(t.strings[A]??Aa[t.locale][A],H),"t"),[a,c]=(0,Pt.useState)(r),[l,m]=(0,Pt.useState)(""),[d,h]=(0,Pt.useState)(!1),[f,u]=(0,Pt.useState)(null),p=e.phase==="verify",y=Xt(p),v=(0,Pt.useId)(),L=s(async A=>{h(!0),u(null);try{await A()}catch(H){u(H instanceof Qn.OtpInputError&&H.field==="email"?i("emailOtp.emailInvalid"):t.t(Ee(H,t.strings))),n?.(H)}finally{h(!1)}},"run"),S=s(A=>{L(()=>e.send(e.needsEmail&&(!A||a!==r)?{email:a}:{}))},"send"),C=s(A=>{L(()=>e.verify(A))},"submitCode"),k=s(A=>{A.preventDefault(),p?C(l):S(!1)},"onSubmit"),I=Zn(e.codeExpiresAt,y),x=Zn(e.resendAvailableAt,y),z=p&&e.codeExpiresAt!==void 0&&I===0,[B,$]=i("emailOtp.sentTo").split("{email}"),b=e.reason==="otp_mismatch"?(0,Y.jsxs)(D,{tone:"danger",children:[(0,Y.jsx)("span",{children:i("emailOtp.reason_otp_mismatch")}),(0,Y.jsx)("span",{children:Be(t,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Ea.has(e.reason)?(0,Y.jsx)(D,{tone:"warning",children:(0,Y.jsx)("span",{children:i(`emailOtp.reason_${e.reason}`)})}):null;return(0,Y.jsxs)("form",{className:`sekyro-step sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":v,onSubmit:k,noValidate:!0,children:[(0,Y.jsx)(Ie,{id:v,title:i(p?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:p?(0,Y.jsxs)(Y.Fragment,{children:[B,(0,Y.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),$]}):i("emailOtp.sendDescription")}),b,f!==null?(0,Y.jsx)(D,{tone:"danger",children:(0,Y.jsx)("span",{children:f})}):null,p?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"sekyro-field",children:[(0,Y.jsx)("label",{className:"sekyro-label",htmlFor:`${v}-code`,children:i("emailOtp.codeLabel")}),(0,Y.jsx)($o,{id:`${v}-code`,value:l,invalid:e.reason==="otp_mismatch",onChange:A=>{m(A),A.length===6&&l.length!==6&&!d&&!e.attemptsExhausted&&C(A)}}),(0,Y.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${z?" is-danger":""}`,"aria-hidden":!z||void 0,children:z?i("emailOtp.expired"):i("emailOtp.expiresIn",{time:Va(I)})})]}),(0,Y.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:z?i("emailOtp.expired"):""}),(0,Y.jsxs)(xe,{children:[(0,Y.jsx)(R,{type:"submit",full:!0,disabled:d||l.length!==6,"aria-busy":d||void 0,children:i("emailOtp.verify")}),(0,Y.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:d||x>0,onClick:()=>S(!0),children:x>0?i("emailOtp.resendIn",{seconds:x}):i("emailOtp.resend")})]})]}):(0,Y.jsxs)(Y.Fragment,{children:[e.needsEmail?(0,Y.jsxs)("div",{className:"sekyro-field",children:[(0,Y.jsx)("label",{className:"sekyro-label",htmlFor:`${v}-email`,children:i("emailOtp.emailLabel")}),(0,Y.jsx)("input",{id:`${v}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:i("emailOtp.emailPlaceholder"),value:a,"aria-describedby":`${v}-email-help`,onChange:A=>c(A.target.value)}),(0,Y.jsx)("span",{id:`${v}-email-help`,className:"sekyro-help",children:i("emailOtp.emailHelper")})]}):(0,Y.jsx)("p",{className:"sekyro-text-muted",children:i("emailOtp.prefilledNotice")}),(0,Y.jsx)(xe,{children:(0,Y.jsx)(R,{type:"submit",full:!0,disabled:d,"aria-busy":d||void 0,children:i("emailOtp.send")})})]})]})}var Qn,Pt,Y,Aa,Zn,Va,Ea,Jn=_(()=>{"use strict";Qn=require("@sekyro/web"),Pt=require("react");ae();qn();Wn();jn();Tt();Xe();be();Pe();Er();qo();Y=require("react/jsx-runtime"),Aa={en:Gn,fr:Yn,ar:Un},Zn=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),Va=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Ea=new Set(["otp_expired","otp_send_failed","otp_rate_limited","email_invalid","email_disposable"]);s(Oa,"EmailOtpView")});var Yo,Hr=_(()=>{"use strict";Yo={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق عبر هويتك الرقمية الوطنية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل الرمز من تطبيق الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز — اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح — تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك — اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات — تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا — أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى — أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"}});var jo,Fr=_(()=>{"use strict";jo={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your national eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter the code from your eID app","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired — get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect — check it and enter it again","reasons.eid_code_expired":"Your code has expired — get a new code to continue","reasons.eid_locked":"Too many incorrect codes — eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now — try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes — enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"}});var Zo,Br=_(()=>{"use strict";Zo={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID national","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré — demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect — vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré — demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects — la connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment — réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code — saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"}});var oi={};qt(oi,{EidView:()=>Ba});function Ba({step:e,i18n:t,className:o,onError:r}){let n=t.strings,i=s((V,w)=>ze(n[V]??ei[t.locale][V]??"",w),"t"),a=s((V,w)=>{let X=new Intl.PluralRules(t.locale).select(w),M=`${V}.${X}`,Ce=n[M]??ei[t.locale][M]??i(`${V}.other`);return ze(Ce,{count:new Intl.NumberFormat(t.locale).format(w)})},"plural"),c=s(V=>e.providerName?i(`eid.${V}`,{provider:e.providerName}):i(`eid.${V}Generic`),"named"),[l,m]=(0,Re.useState)(""),[d,h]=(0,Re.useState)(""),[f,u]=(0,Re.useState)(!1),[p,y]=(0,Re.useState)(null),v=e.phase==="code",L=Xt(v),S=(0,Re.useId)(),C=ye(),k=s(async V=>{u(!0),y(null);try{await V()}catch(w){y(Ee(w,t.strings)),r?.(w)}finally{u(!1)}},"run"),I=(0,Re.useRef)(!1);(0,Re.useEffect)(()=>{!e.identifierBound||v||e.reason!==void 0||I.current||(I.current=!0,k(()=>e.start()))},[e.identifierBound,v,e.reason]),(0,Re.useEffect)(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&h("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let x=(0,Re.useRef)(v);(0,Re.useEffect)(()=>{v&&!x.current&&document.getElementById(`${S}-code`)?.focus(),x.current=v},[v,S]);let z=e.reason==="eid_locked",B=ti(e.codeExpiresAt,L),$=v&&e.codeExpiresAt!==void 0&&B===0,b=ti(e.resendAvailableAt,L),A=e.resendsRemaining===0||e.reason==="eid_resend_limit",H=s(V=>{if(V.preventDefault(),v){d.length===$r&&!z&&k(()=>e.verify(d));return}if(e.identifierBound){k(()=>e.start());return}let w=(0,Jt.normalizeNni)(l);if(e.country==="MR"){if(!/^\d{10}$/.test(w))return y("population.invalid");if(!(0,Jt.isValidNni)(w))return y("population.reason_nni_invalid")}k(()=>e.start(w))},"onSubmit"),re=e.reason?.startsWith("eid_")?e.reason:void 0,Z=(0,q.jsxs)(q.Fragment,{children:[re!==void 0?(0,q.jsxs)(D,{tone:Ha.has(re)?"danger":"warning",children:[(0,q.jsx)("span",{children:i(`reasons.${re}`)}),re==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?(0,q.jsx)("span",{children:a("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?(0,q.jsx)(R,{kind:"ghost",disabled:f,onClick:()=>{k(()=>e.useCamera())},children:i("eid.useCamera")}):null]}):null,p!==null?(0,q.jsx)(D,{tone:"danger",children:(0,q.jsx)("span",{children:t.t(p)})}):null]}),[_e,P]=v?[c("codeTitle"),c("codeHelp")]:[c("identifierTitle"),c(e.identifierBound?"boundDescription":"identifierDescription")];return(0,q.jsxs)("form",{className:`sekyro-stack sekyro-stack--4 sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":S,onSubmit:H,noValidate:!0,"data-testid":"sekyro-eid",children:[(0,q.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,q.jsx)("h2",{id:S,ref:C,tabIndex:-1,className:"sekyro-text-body",children:_e}),(0,q.jsx)("p",{className:"sekyro-text-muted",children:P}),e.afterPass==="continue"?(0,q.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?i("eid.continueHint",{provider:e.providerName}):i("eid.continueHintGeneric")}):null]}),Z,v?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"sekyro-field",children:[(0,q.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-code`,children:i("eid.codeLabel")}),(0,q.jsx)("input",{id:`${S}-code`,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:d,disabled:z,onChange:V=>{y(null),h((0,Jt.normalizeNni)(V.target.value).replace(/\D/g,"").slice(0,$r))}})]}),(0,q.jsxs)("div",{className:"sekyro-row",children:[e.codeExpiresAt!==void 0?(0,q.jsx)("span",{className:"sekyro-text-muted",children:$?i("eid.expired"):i("eid.expiresIn",{time:Fa(B)})}):null,A?(0,q.jsx)("span",{className:"sekyro-text-muted",children:i("eid.noResendsLeft")}):(0,q.jsx)(R,{kind:"ghost",disabled:f||b>0||z,onClick:()=>{k(()=>e.resend())},children:b>0?i("eid.resendIn",{seconds:b}):i("eid.resend")})]}),!A&&e.resendsRemaining!==void 0?(0,q.jsx)("p",{className:"sekyro-text-muted",children:a("eid.resendsRemaining",e.resendsRemaining)}):null,(0,q.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:$?i("eid.expired"):""}),(0,q.jsx)(R,{type:"submit",full:!0,disabled:f||d.length!==$r||z,"aria-busy":f||void 0,children:i("eid.verify")})]}):(0,q.jsxs)(q.Fragment,{children:[e.identifierBound?null:(0,q.jsxs)("div",{className:"sekyro-field",children:[(0,q.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-nni`,children:t.t("population.label")}),(0,q.jsx)("input",{id:`${S}-nni`,className:"sekyro-input sekyro-mono",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:t.t("population.placeholder"),value:l,"aria-describedby":`${S}-nni-help`,"aria-invalid":p==="population.invalid"||p==="population.reason_nni_invalid"||void 0,onChange:V=>{y(null),m((0,Jt.normalizeNni)(V.target.value).replace(/\D/g,"").slice(0,10))}}),(0,q.jsx)("span",{id:`${S}-nni-help`,className:"sekyro-help",children:t.t("population.helper")})]}),(0,q.jsx)(R,{type:"submit",full:!0,disabled:f,"aria-busy":f||void 0,children:i("eid.start")})]})]})}var Jt,Re,q,ei,$r,Ha,ti,Fa,ri=_(()=>{"use strict";Jt=require("@sekyro/web"),Re=require("react");ae();Hr();Fr();Br();ct();Tt();be();Pe();qo();q=require("react/jsx-runtime"),ei={en:jo,fr:Zo,ar:Yo},$r=6,Ha=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),ti=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),Fa=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");s(Ba,"EidView")});function Xo({choice:e,busy:t,failed:o,focus:r,eidLabel:n,onSelect:i}){let a=ve(),c=(0,ni.useId)(),l=ye(),m=e.options.filter(d=>d!=="document_chip"&&(d!=="national_eid"||n!==void 0));return(0,et.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":c,"data-testid":"sekyro-method",children:[(0,et.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,et.jsx)("h2",{id:c,className:"sekyro-text-body",children:a("method.title")}),(0,et.jsx)("p",{className:"sekyro-text-muted",children:a("method.description")})]}),o?(0,et.jsx)(Se,{tone:"danger",children:(0,et.jsx)("span",{children:a("errors.network_error")})}):null,(0,et.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:m.map((d,h)=>(0,et.jsx)(R,{ref:h===0&&r?l:void 0,kind:h===0?"primary":"ghost",full:!0,disabled:t,"aria-busy":t||void 0,onClick:()=>i(d),children:d==="national_eid"?n:a(`method.${d}`)},d))})]})}var ni,et,Kr=_(()=>{"use strict";ni=require("react");ae();Qt();ct();Te();et=require("react/jsx-runtime");s(Xo,"MethodScreen")});function Ua(e,t,o,r){return o?"var(--sekyro-color-success)":e?r?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":t<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":t<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}function ii({progress:e,phase:t,draining:o=!1}){let r=Math.min(1,Math.max(0,e)),n=Math.round(r*56),i=t==="checking",a=t==="recording",c=t==="frozen",l=i||c,m=i||a||c,d=t==="locked"||m,h=o&&!d;return(0,dt.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":t,"data-filled":n,"data-recording":a?"":void 0,"data-draining":h?"":void 0,children:[(0,dt.jsx)("path",{fillRule:"evenodd",d:qa,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),(0,dt.jsxs)("g",{className:t==="locked"?"sekyro-capture-settle":void 0,children:[(0,dt.jsx)("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:Ka.map((f,u)=>(0,dt.jsx)("line",{x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,stroke:Ua(u<n,f.frac,d,h),strokeWidth:3,strokeLinecap:"round",style:f.style,className:"sekyro-arc__tick"},f.id))}),(0,dt.jsx)("g",{className:t==="seeking"?"sekyro-capture-breathe":void 0,children:(0,dt.jsx)("circle",{cx:150,cy:150,r:100,fill:"none",stroke:d?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:d?3.5:2.5,className:m?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}var dt,Ka,qa,si=_(()=>{"use strict";dt=require("react/jsx-runtime"),Ka=Array.from({length:56},(e,t)=>{let o=t/56*2*Math.PI-Math.PI/2,r=Math.cos(o),n=Math.sin(o);return{id:`tick-${t}`,frac:t/55,x1:150+108*r,y1:150+108*n,x2:150+138*r,y2:150+138*n,style:{transitionDelay:`${t*6}ms`}}});s(Ua,"tickColor");qa="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";s(ii,"CaptureArc")});function ai({videoRef:e,guidanceText:t,guidanceHint:o,guidanceKey:r,progress:n,phase:i,draining:a=!1,stillUrl:c,showChecking:l,onSwitchCamera:m,canSwitchCamera:d,voicePrompt:h,overlay:f,reduceMotion:u=!1}){let p=ve(),y=i==="checking",L=y||i==="frozen",S=L&&l?p("capture.checking"):t,C=h?.(o,S,r);return(0,de.jsxs)("div",{className:u?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[(0,de.jsx)("video",{ref:e,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),c!==null&&L?(0,de.jsx)("img",{src:c,alt:p("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,(0,de.jsx)(ii,{progress:n,phase:i,draining:a}),f?.(e),C!=null&&!L?(0,de.jsx)("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:C}):null,d?(0,de.jsx)(R,{kind:"chip",onClick:m,"aria-label":p("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:(0,de.jsx)(Ga,{})}):null,y&&l?(0,de.jsxs)("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[(0,de.jsx)(Wa,{}),p("capture.cameraOff")]}):null,(0,de.jsxs)("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[(0,de.jsx)("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:S},S),L&&l?(0,de.jsx)("span",{className:"sekyro-stage__guidance-hint",children:p("capture.checkingHint")}):null]})]})}function Ga(){return(0,de.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[(0,de.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,de.jsx)("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),(0,de.jsx)("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}function Wa(){return(0,de.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[(0,de.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,de.jsx)("path",{d:"M3 3l18 18"})]})}var de,ci=_(()=>{"use strict";ae();si();Te();de=require("react/jsx-runtime");s(ai,"CaptureStage");s(Ga,"FlipCameraIcon");s(Wa,"CameraOffIcon")});function li({showCoaching:e,attemptsText:t,showRetake:o,onRetake:r}){let n=ve(),i=(0,Jo.useRef)(null);return(0,Jo.useEffect)(()=>{o&&i.current?.focus()},[o]),!e&&!o?null:(0,Ke.jsxs)("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?(0,Ke.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,Ke.jsx)("p",{className:"sekyro-text-body",children:n("capture.retryCoaching.title")}),(0,Ke.jsxs)("ul",{className:"sekyro-coaching",children:[(0,Ke.jsx)("li",{children:n("capture.retryCoaching.light")}),(0,Ke.jsx)("li",{children:n("capture.retryCoaching.eyeLevel")}),(0,Ke.jsx)("li",{children:n("capture.retryCoaching.head")})]}),t!==null?(0,Ke.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:t}):null]}):null,o?(0,Ke.jsx)(R,{ref:i,className:"sekyro-btn--start",onClick:r,children:n("capture.recordAgain")}):null]})}var Jo,Ke,ui=_(()=>{"use strict";Jo=require("react");ae();Te();Ke=require("react/jsx-runtime");s(li,"CapturedPanel")});function er(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}var Ur=_(()=>{"use strict";s(er,"isDevBuild")});var di,tr,qr=_(()=>{"use strict";di=require("react"),tr=(0,di.createContext)(null)});function mi({value:e,onChange:t}){let o=ve(),r=(0,pi.useId)();return(0,pt.jsxs)("fieldset",{className:"sekyro-segmented","data-testid":"sekyro-facing",children:[(0,pt.jsx)("legend",{className:"sekyro-segmented__legend",children:o("capture.cameraLabel")}),(0,pt.jsx)("div",{className:"sekyro-segmented__options",children:Ya.map(n=>(0,pt.jsxs)("label",{className:"sekyro-segmented__option",children:[(0,pt.jsx)("input",{type:"radio",className:"sekyro-segmented__input",name:r,value:n,checked:e===n,onChange:()=>t(n)}),(0,pt.jsxs)("span",{className:"sekyro-segmented__face",children:[(0,pt.jsx)("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),o(`capture.facing.${n}`)]})]},n))})]})}var pi,pt,Ya,fi=_(()=>{"use strict";pi=require("react");Te();pt=require("react/jsx-runtime"),Ya=["user","environment"];s(mi,"FacingPicker")});function tt({className:e,children:t}){return(0,F.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}function yi(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,F.jsx)("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}function hi(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,F.jsx)("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}function gi(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),(0,F.jsx)("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),(0,F.jsx)("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}function vi(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),(0,F.jsx)("circle",{cx:"12",cy:"12",r:"2.8"})]})}function ki(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("path",{d:Gr}),(0,F.jsx)("path",{d:"M9 13l2 2 4-4"})]})}function bi(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("path",{d:Gr}),(0,F.jsx)("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}function Si(e){return(0,F.jsxs)(tt,{...e,children:[(0,F.jsx)("path",{d:Gr}),(0,F.jsx)("path",{d:"M3 3l18 18"})]})}function eo({off:e,className:t}){return(0,F.jsxs)(tt,{...t!==void 0?{className:t}:{},children:[(0,F.jsx)("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?(0,F.jsx)("path",{d:"M4 4l16 16"}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),(0,F.jsx)("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}function _i(e){return(0,F.jsx)(tt,{...e,children:(0,F.jsx)("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}function Ci(e){return(0,F.jsxs)(tt,{className:e.className??"sekyro-spinner",children:[(0,F.jsx)("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),(0,F.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}var F,Gr,to=_(()=>{"use strict";F=require("react/jsx-runtime");s(tt,"Svg");Gr="M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z";s(yi,"SunIcon");s(hi,"FaceUncoveredIcon");s(gi,"PhoneEyeLevelIcon");s(vi,"LookStraightIcon");s(ki,"CameraCheckIcon");s(bi,"CameraAskIcon");s(Si,"CameraBlockedIcon");s(eo,"SpeakerIcon");s(_i,"CheckIcon");s(Ci,"SpinnerIcon")});function wi({state:e}){let t=ve(),[o,r]=(0,or.useState)(!1);(0,or.useEffect)(()=>{e!=="unknown"&&r(!0)},[e]);let n=e==="granted"?(0,St.jsx)(ki,{}):e==="denied"?(0,St.jsx)(Si,{}):(0,St.jsx)(bi,{});return(0,St.jsxs)("div",{role:o?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[(0,St.jsx)("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:n}),(0,St.jsx)("span",{children:t(`capture.permission.${e}`)})]})}var or,St,Ni=_(()=>{"use strict";or=require("react");Te();to();St=require("react/jsx-runtime");s(wi,"PermissionRow")});function Ii({tips:e}){let t=ve(),o=(0,xi.useId)();return e.length===0?null:(0,De.jsxs)("section",{className:"sekyro-tips","aria-labelledby":o,"data-testid":"sekyro-tips",children:[(0,De.jsx)("p",{className:"sekyro-tips__title",id:o,children:t("capture.tips.title")}),(0,De.jsx)("ul",{className:"sekyro-tips__list",children:e.map(r=>{let n=typeof r=="string"?ja[r]:void 0,i=typeof r=="string"?r:r.id,a=n!==void 0?n.icon():typeof r=="string"?void 0:r.icon,c=n!==void 0?t(n.key):typeof r=="string"?r:r.text;return(0,De.jsxs)("li",{className:"sekyro-tips__item",children:[a!=null?(0,De.jsx)("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:a}):null,(0,De.jsx)("span",{children:c})]},i)})})]})}var xi,De,rr,ja,Wr=_(()=>{"use strict";xi=require("react");Te();to();De=require("react/jsx-runtime"),rr=["light","uncover","eyeLevel","straight"],ja={light:{key:"capture.tips.light",icon:s(()=>(0,De.jsx)(yi,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:s(()=>(0,De.jsx)(hi,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:s(()=>(0,De.jsx)(gi,{}),"icon")},straight:{key:"capture.tips.straight",icon:s(()=>(0,De.jsx)(vi,{}),"icon")}};s(Ii,"TipList")});function Ri({voice:e}){let t=ve();if(!e.supported)return null;let o=e.enabled;return(0,_t.jsxs)("button",{type:"button",role:"switch","aria-checked":o,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[(0,_t.jsxs)("span",{className:"sekyro-switch__label",children:[(0,_t.jsx)(eo,{off:!o}),t("capture.voiceGuidance")]}),(0,_t.jsx)("span",{className:"sekyro-switch__track","aria-hidden":"true",children:(0,_t.jsx)("span",{className:"sekyro-switch__thumb",children:o?(0,_t.jsx)(_i,{className:"sekyro-switch__check"}):null})})]})}var _t,Li=_(()=>{"use strict";Te();to();_t=require("react/jsx-runtime");s(Ri,"VoiceSwitch")});function Ti({assets:e,onRetryAssets:t,permission:o,canChooseFacing:r,facing:n,onFacingChange:i,voice:a,tips:c,summary:l,startLabel:m,startDisabled:d,onStart:h}){let f=ve(),u=(0,Me.useRef)(l?.stop);u.current=l?.stop,(0,Me.useEffect)(()=>()=>u.current?.(),[]);let p=(0,Me.useRef)(null),y=(0,Me.useRef)(null),v=(0,Me.useRef)(null),L=(0,Me.useRef)(e),S=(0,Me.useRef)(!1);(0,Me.useEffect)(()=>{let B=L.current;if(L.current=e,B===e)return;let $=S.current;e!=="loading"&&(S.current=!1),Za(p.current)&&(e==="failed"?v.current?.focus():$&&y.current?.focus())},[e]);let C=(0,Me.useCallback)(()=>{S.current=!0,t()},[t]),k=e==="loading",I=k||d,x=(0,Me.useCallback)(()=>{I||(u.current?.(),h())},[I,h]),z;return e==="failed"?z=(0,pe.jsxs)(Se,{tone:"danger",testId:"sekyro-assets-error",children:[(0,pe.jsx)("p",{className:"sekyro-text-body",children:f("fcv2.err.models")}),(0,pe.jsx)(R,{kind:"ghost",ref:v,className:"sekyro-btn--start",onClick:C,"data-testid":"sekyro-assets-retry",children:f("common.retry")})]}):z=(0,pe.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,pe.jsx)(R,{ref:y,full:!0,"data-testid":"sekyro-start","aria-disabled":I?"true":void 0,"aria-busy":k?"true":void 0,onClick:x,children:k?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Ci,{}),f("capture.preparing.title")]}):m??f("capture.start")}),k?(0,pe.jsx)("p",{className:"sekyro-text-muted",children:f("capture.preparing.hint")}):null]}),(0,pe.jsxs)("div",{ref:p,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[c!==!1?(0,pe.jsx)(Ii,{tips:c}):null,l!==void 0?(0,pe.jsxs)(R,{kind:"ghost",className:"sekyro-btn--start",onClick:l.toggle,"data-testid":"sekyro-tips-listen",children:[(0,pe.jsx)(eo,{off:!1}),f(l.playing?"capture.tips.stop":"capture.tips.listen")]}):null,(0,pe.jsx)(wi,{state:o}),r?(0,pe.jsx)(mi,{value:n,onChange:i}):null,(0,pe.jsx)(Ri,{voice:a}),(0,pe.jsx)("p",{className:"sekyro-text-muted",children:f("capture.securityNote")}),z,(0,pe.jsx)("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?f("capture.preparing.title"):e==="ready"?f("capture.ready"):""})]})}function Za(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}var Me,pe,zi=_(()=>{"use strict";Me=require("react");ae();Qt();Te();fi();to();Ni();Wr();Li();pe=require("react/jsx-runtime");s(Ti,"PreCaptureScreen");s(Za,"focusIsOurs")});function Pi(){let[e,t]=(0,oo.useState)({state:"unknown",settled:!1}),[o,r]=(0,oo.useState)(!1);return(0,oo.useEffect)(()=>(0,nr.subscribeCameraPermission)(n=>t({state:n,settled:!0})),[]),(0,oo.useEffect)(()=>{let n=!0;return(0,nr.hasMultipleCameras)().then(i=>{n&&r(i)}),()=>{n=!1}},[]),{permission:e.state,permissionSettled:e.settled,canChooseFacing:o}}var nr,oo,Mi=_(()=>{"use strict";nr=require("@sekyro/web"),oo=require("react");s(Pi,"useCameraStatus")});function Ai(e){return Ei(e,"mobileRequired")}function Vi(e){return Ei(e,"returning").required}function Ei(e,t){let[o,r]=(0,ro.useState)({required:!1,settled:e===void 0});return(0,ro.useEffect)(()=>{let n=e?.[t];if(e===void 0||typeof n!="function"){r({required:!1,settled:!0});return}let i=!0;return r({required:!1,settled:!1}),Promise.resolve().then(()=>n.call(e)).then(a=>{i&&r({required:a===!0,settled:!0})},()=>{i&&r({required:!1,settled:!0})}),()=>{i=!1}},[e,t]),o}function Oi(e){let[t,o]=(0,ro.useState)(!1);return(0,ro.useEffect)(()=>{if(o(!1),e===void 0)return;let r=e.on("busy",()=>o(!0)),n=e.on("result",()=>o(!1));return()=>{r(),n()}},[e]),t}var ro,Di=_(()=>{"use strict";ro=require("react");s(Ai,"useMobileRequired");s(Vi,"useReturning");s(Ei,"useFlag");s(Oi,"useBusy")});function Hi(e){return(0,no.preloadLivenessAssets)(e!==void 0?{assetBaseUrl:e}:{})}function Fi(e,t=!0){let o=(0,Le.useSyncExternalStore)((0,Le.useCallback)(h=>(0,no.subscribeLivenessAssets)(h,e),[e]),()=>(0,no.getLivenessAssetsStatus)(e),Qa),[r,n]=(0,Le.useState)(null),i=(0,Le.useRef)(!1),a=(0,Le.useCallback)(()=>{Hi(e).then(h=>{i.current&&h==="idle"&&n({base:e})})},[e]);(0,Le.useEffect)(()=>(i.current=!0,a(),()=>{i.current=!1}),[a]);let c=(0,Le.useRef)(null);(0,Le.useEffect)(()=>{if(o!=="idle"){c.current={base:e};return}!t||c.current===null||c.current.base!==e||(c.current=null,a())},[o,e,a,t]);let l=(0,Le.useCallback)(()=>{Hi(e)},[e]);return{gate:r!==null&&r.base===e&&o==="idle"||o==="ready"?"ready":o==="failed"?"failed":"loading",retry:l}}var no,Le,Qa,Bi=_(()=>{"use strict";no=require("@sekyro/web"),Le=require("react"),Qa=s(()=>"idle","serverSnapshot");s(Hi,"preload");s(Fi,"useLivenessAssets")});function Ui(e){let{videoRef:t,assetBaseUrl:o}=e,n=(0,ce.useRef)(e.verification).current,i=(0,ce.useRef)(!1);e.verification!==n&&!i.current&&er()&&(i.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let a=(0,ce.useRef)(null),[c,l]=(0,ce.useState)("idle"),[m,d]=(0,ce.useState)($i),[h,f]=(0,ce.useState)(!1),[u,p]=(0,ce.useState)(!1),[y,v]=(0,ce.useState)(null),[L,S]=(0,ce.useState)(!1),[C,k]=(0,ce.useState)(null),[I,x]=(0,ce.useState)(null),[z,B]=(0,ce.useState)(null),$=(0,ce.useRef)(null),b=(0,ce.useRef)(e);b.current=e,(0,ce.useEffect)(()=>{let Z=t.current;if(Z===null)return;let _e={video:Z,...o!==void 0?{assetBaseUrl:o}:{}},P=n!==void 0?n.liveness(_e):(0,Ki.createLivenessCapture)(_e);a.current=P;let V=[P.on("state",w=>{w==="starting"&&(k(null),x(null),d($i),p(!1),f(!1),v(null),$.current=null),l(w),b.current.onStateChange?.(w)}),P.on("gate",w=>{let X=$.current;$.current=w.progress,f(X!==null&&w.progress<X-.001&&w.progress>0&&w.progress<1),w.progress>=1&&p(!0),d(w)}),P.on("frozen",({previewDataUrl:w})=>v(w)),P.on("profile",({animations:w})=>S(w==="reduced")),P.on("captured",w=>{k(w),B(null),b.current.onCaptured?.(w)}),P.on("error",w=>{x(w),b.current.onError?.(w)}),n?.on("result",w=>{B(w),b.current.onResult?.(w)})];return()=>{for(let w of V)w?.();a.current=null,P.destroy()}},[n,t,o]);let A=(0,ce.useCallback)(Z=>{a.current?.start(Z)},[]),H=(0,ce.useCallback)(()=>{a.current?.retry()},[]),re=(0,ce.useCallback)(()=>{p(!1),f(!1),v(null),$.current=null,a.current?.switchCamera()},[]);return{state:c,gate:m,draining:h,gateLocked:u,frozenPreview:y,reduceMotion:L,artifacts:C,error:I,result:z,start:A,retry:H,switchCamera:re}}var Ki,ce,$i,qi=_(()=>{"use strict";Ki=require("@sekyro/web"),ce=require("react");Ur();$i={progress:0,hint:null,faceDetected:!1};s(Ui,"useLivenessHandle")});function Gi(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(o=>Xa.has(o));return t.length>0?{...e,options:t}:null}function Wi(e){let[t,o]=(0,mt.useState)(null),[r,n]=(0,mt.useState)(e===void 0),[i,a]=(0,mt.useState)(!1),[c,l]=(0,mt.useState)(!1);(0,mt.useEffect)(()=>{if(o(null),e===void 0){n(!0);return}let f=!0,u=e.methodChoice;typeof u=="function"?(n(!1),Promise.resolve().then(()=>u.call(e)).then(y=>{f&&o(Gi(y))},()=>{}).finally(()=>{f&&n(!0)})):n(!0);let p=e.on("method",y=>o(Gi(y)));return()=>{f=!1,p()}},[e]);let m=(0,mt.useCallback)(async f=>{if(e===void 0)return!1;a(!0),l(!1);try{return await e.selectMethod(f),o(null),!0}catch{return l(!0),!1}finally{a(!1)}},[e]),d=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:d==="national_number"&&!c?d:null,settled:r,busy:i,failed:c,select:m}}var mt,Xa,Yi=_(()=>{"use strict";mt=require("react"),Xa=new Set(["national_number"]);s(Gi,"pending");s(Wi,"useMethodChoice")});function Mt(e){return e!==null&&ir.includes(e)}var ir,sr=_(()=>{"use strict";ir=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","capture.tips.summary"];s(Mt,"isVoiceKey")});function ec(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}function tc(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let o={};for(let r of Ja){let n=t[r];if(!(typeof n!="object"||n===null))for(let[i,a]of Object.entries(n))!Mt(i)||!ec(a)||((o[r]??(o[r]={}))[i]=a)}return Object.keys(o).length>0?o:null}function ji(e){let[t,o]=(0,io.useState)(null);(0,io.useEffect)(()=>{if(o(null),e===void 0)return;let n=!0,i=s(c=>{if(!n)return;let l=typeof c=="object"&&c!==null&&typeof c.setId=="string"?c:null;o(m=>m?.setId===l?.setId?m:l)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(i,()=>i(null))}catch{i(null)}let a=e.on("view",c=>i(c.voice));return()=>{n=!1,a()}},[e]);let r=(0,io.useMemo)(()=>t!==null?tc(t):null,[t]);return e===void 0?null:r}var io,Ja,Zi=_(()=>{"use strict";io=require("react");sr();Ja=["ar","fr","en"];s(ec,"isClipUrl");s(tc,"toVoiceClipMap");s(ji,"useServerVoiceClips")});function Qi({voice:e}){let t=ve();return(0,Yr.jsx)(R,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:(0,Yr.jsx)(eo,{off:!e.enabled,className:"sekyro-icon"})})}var Yr,Xi=_(()=>{"use strict";ae();to();Te();Yr=require("react/jsx-runtime");s(Qi,"VoiceChip")});function so(e,t,o){let r;try{if(typeof e=="function")r=e(t,o);else{let n=e[o];r=n!=null&&oc(n,t)?n[t]:null}}catch{return null}return typeof r=="string"&&r!==""?r:null}var oc,Ji=_(()=>{"use strict";oc=s((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");s(so,"resolveClip")});function ot(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}function nc(){return ot()!==null&&typeof SpeechSynthesisUtterance=="function"}function es(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}function rs(e,t){let o=s(n=>n.replace(/_/g,"-").toLowerCase(),"norm"),r=es(t);return e.find(n=>o(n.lang)===o(t))??e.find(n=>es(n.lang)===r)}function ns(e){if(!nc())return!1;let t=[];try{t=ot()?.getVoices()??[]}catch{return!0}return t.length===0||rs(t,e)!==void 0}function is(e){let t=ot();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}function No(e){try{let t=typeof location<"u"?location.href:"http://localhost/",o=new URL(e,t);return`clip:${o.origin}${o.pathname}`}catch{return`clip:${e}`}}function ts(e){e.pause(),e.removeAttribute("src"),e.load()}function ss(){let e=null,t=null,o=0,r=null,n=[],i=new Map,a=s(()=>{n=ot()?.getVoices()??[]},"loadVoices"),c=!1,l=s(()=>{let u=ot();c||u===null||(c=!0,a(),u.addEventListener?.("voiceschanged",a))},"bindVoices"),m=s(()=>(e??(e=new Audio),e),"element"),d=s((u,p,y)=>{let v=ot();if(v!==null&&u!==""&&typeof SpeechSynthesisUtterance=="function"){l();let L=rs(n,p);if(n.length===0||L!==void 0){v.cancel();let S=new SpeechSynthesisUtterance(u);S.lang=p,L!==void 0&&(S.voice=L),S.rate=.95,y!==void 0&&(S.onend=S.onerror=y),v.speak(S);return}}y?.()},"speak"),h=s(()=>{o+=1,r=null,e!==null&&(e.pause(),e.currentTime=0),ot()?.cancel()},"stop"),f=s(u=>{for(let p of u){let y=No(p);if(i.has(y))continue;let v=new Audio;v.preload="auto",v.src=p,i.set(y,v)}},"warmClips");return{say(u){let p=u.url!==null?No(u.url):`tts:${u.lang}:${u.text}`;if(p===r)return;r=p,o+=1;let y=o,v=u.onEnd,L=v!==void 0?()=>{y===o&&v()}:void 0;if(ot()?.cancel(),u.url!==null){let S=m();S.pause(),S.muted=!1,S.src=u.url,S.currentTime=0,S.onended=L??null,S.play()?.catch(C=>{y===o&&C?.name!=="AbortError"&&(u.speech?d(u.text,u.lang,L):L?.())});return}u.speech?d(u.text,u.lang,L):L?.()},unlock({lang:u,speech:p,prefetch:y}){let v=m();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let C=Uint8Array.from(atob(rc),k=>k.charCodeAt(0));t=URL.createObjectURL(new Blob([C],{type:"audio/wav"}))}let L=v.paused===!1&&t!==null&&v.src!==t;t!==null&&!L&&(v.muted=!0,v.onended=null,v.src=t,v.play()?.catch(()=>{}));let S=ot();if(p&&S!==null&&typeof SpeechSynthesisUtterance=="function"){l();let C=new SpeechSynthesisUtterance(" ");C.volume=0,C.lang=u,S.speak(C)}f(y??[])},prefetch:f,stop:h,dispose(){h(),c&&ot()?.removeEventListener?.("voiceschanged",a),c=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&ts(e),e=null;for(let u of i.values())ts(u);i.clear()}}}var rc,os,as=_(()=>{"use strict";rc="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",os={ar:"ar-SA",fr:"fr-FR",en:"en-US"};s(ot,"synth");s(nc,"speechAvailable");s(es,"baseLang");s(rs,"pickVoice");s(ns,"speechUsable");s(is,"subscribeVoices");s(No,"clipIdentity");s(ts,"release");s(ss,"createVoicePlayer")});function ls(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}function us(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}var cs,ds=_(()=>{"use strict";cs="sekyro.voiceGuidance";s(ls,"readVoicePreference");s(us,"writeVoicePreference")});function jr(e,t){let o=new Set,r=[];for(let n of ir){let i=n===xo?null:so(e,n,t);i===null||o.has(No(i))||(o.add(No(i)),r.push(i))}return r}function Zr({locale:e,defaultClips:t,options:o}){let r=o===!1,n=r?{}:o??{},i=n.storageKey===void 0?cs:n.storageKey,[a,c]=(0,U.useState)(n.defaultEnabled??!0),l=(0,U.useRef)(a),[m,d]=(0,U.useState)(!1),[h,f]=(0,U.useState)("none"),[u,p]=(0,U.useState)(!1),y=(0,U.useRef)(!1),[v,L]=(0,U.useState)(0),S=(0,U.useRef)(null),C=(0,U.useCallback)(()=>(S.current??(S.current=ss()),S.current),[]),k=os[e],I=n.speechFallback,x=I===void 0||I===!0?!0:I===!1?!1:I.includes(e),z=n.clips??t??sc,B=(0,U.useRef)(!1),$=(0,U.useRef)(z);ic(()=>{$.current=z,l.current=a}),(0,U.useEffect)(()=>{if(r||i===null)return;let M=ls(i);M!==null&&(l.current=M,c(M))},[r,i]),(0,U.useEffect)(()=>{if(!(r||!x))return is(()=>L(M=>M+1))},[r,x]);let b=n.clips;(0,U.useEffect)(()=>{if(r)return;let M=x&&ns(k);d(jr(z,e).length>0||M),f(b!==void 0&&so(b,xo,e)!==null?"partner":so(z,xo,e)!==null||M?"default":"none")},[r,z,b,e,x,k,v]),(0,U.useEffect)(()=>{if(r||!a||!B.current)return;let M=jr(z,e);M.length>0&&C().prefetch(M)},[r,a,z,e,C]),(0,U.useEffect)(()=>()=>{S.current?.dispose(),S.current=null,B.current=!1},[]);let A=(0,U.useCallback)(M=>{r||(B.current=!0,C().unlock({lang:k,speech:x,...M?{prefetch:jr($.current,e)}:{}}))},[r,C,k,x,e]),H=(0,U.useCallback)(()=>A(l.current),[A]),re=(0,U.useCallback)(()=>{y.current=!1,p(!1)},[]),Z=(0,U.useCallback)(()=>{re(),S.current?.stop()},[re]),_e=(0,U.useCallback)(()=>{y.current&&Z()},[Z]),P=(0,U.useCallback)((M,Ce)=>{if(r)return;if(y.current){Z();return}let Ye=C();Ye.stop(),y.current=!0,p(!0);let Nt=Ce?.clip===!1?null:so($.current,xo,e);Ye.say({url:Nt,text:M,lang:k,speech:x,onEnd:re})},[r,Z,C,e,k,x,re]),V=(0,U.useCallback)(M=>{r||(M?A(!0):Z(),i!==null&&us(i,M),l.current=M,c(M))},[r,A,Z,i]),w=(0,U.useCallback)(()=>V(!l.current),[V]),X=(0,U.useCallback)((M,Ce)=>{if(r||!a)return;y.current&&re();let Ye=so($.current,M,e);C().say({url:Ye,text:Ce,lang:k,speech:x})},[r,a,e,C,k,x,re]);return(0,U.useMemo)(()=>({supported:!r&&m,enabled:!r&&a,setEnabled:V,toggle:w,unlock:H,speakKey:X,stop:Z,summary:r?"none":h,summaryPlaying:u,toggleSummary:P,stopSummary:_e}),[r,m,a,V,w,H,X,Z,h,u,P,_e])}function Qr(e,t,o,r){let{speakKey:n,stop:i,enabled:a}=e,c=(0,U.useRef)(!1);(0,U.useEffect)(()=>{if(!r||!a){c.current&&i(),c.current=!1;return}c.current=!0,Mt(t)&&t!==xo&&o!==""&&n(t,o)},[r,a,t,o,n,i])}var U,xo,ic,sc,ps=_(()=>{"use strict";U=require("react");Ji();sr();as();ds();xo="capture.tips.summary",ic=typeof window<"u"?U.useLayoutEffect:U.useEffect,sc=Object.freeze({});s(jr,"resolvedClipUrls");s(Zr,"useVoiceGuidance");s(Qr,"useSpeakGuidance")});var ms=_(()=>{"use strict";sr();ps()});function cc(e){return e===void 0||e!==!1&&e.length===rr.length&&rr.every(t=>e.includes(t))}function lc(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}function uc(e){return typeof e=="object"&&e!==null&&!(0,G.isValidElement)(e)&&"tone"in e&&"text"in e}function dc(e){return e==="starting"||e==="gating"||e==="recording"}function pc(e){return e==="captured"||e==="uploading"||e==="checking"}function ar({verification:e,locale:t,dir:o,strings:r,slots:n,autoStart:i=!1,notice:a,startDisabled:c=!1,startLabel:l,tips:m,tipsSummary:d,coach:h,defaultFacing:f,voice:u,onGuidance:p,onCaptured:y,onResult:v,onError:L,onStateChange:S,assetBaseUrl:C,className:k}){let I=(0,G.useMemo)(()=>Ho(t,r),[t,r]),x=(0,G.useMemo)(()=>ue=>I[ue]??"",[I]),z=o??(t==="ar"?"rtl":"ltr"),B=(0,G.useRef)(null),$=(0,G.useContext)(tr),b=Ui({verification:e,videoRef:B,assetBaseUrl:C,onCaptured:y,onResult:v,onError:L,onStateChange:S}),A=Fi(C,b.state==="idle"&&b.error===null),H=Wi(e),re=H.choice!==null,Z=Ai(e),_e=Vi(e),P=Oi(e),V=Pi(),w=u!==!1&&u?.clips===void 0,X=ji(w?e:void 0),M=Zr({locale:t,defaultClips:X,options:u}),[Ce,Ye]=(0,G.useState)(f??"user"),Nt=(0,G.useRef)(null),yt=(0,G.useRef)(!1),To=(0,G.useRef)(M.unlock);To.current=M.unlock,(0,G.useEffect)(()=>{let ue=Nt.current;if(ue===null)return;let It=["pointerup","touchend","click","keydown"],ht=s(()=>{for(let So of It)ue.removeEventListener(So,Ut,!0)},"disarm");function Ut(So){if(yt.current){ht();return}lc(So)&&(yt.current=!0,ht(),To.current())}s(Ut,"onGesture");for(let So of It)ue.addEventListener(So,Ut,{capture:!0,passive:!0});return ht},[]);let yo=(0,G.useCallback)(()=>{yt.current||(yt.current=!0,M.unlock()),b.start({facing:Ce})},[M.unlock,b.start,Ce]),ho=(0,G.useCallback)(()=>b.start({facing:Ce}),[b.start,Ce]),Ot=(0,G.useRef)(!1),rt=b.state==="idle"&&b.error===null,nt=!re&&!Z.required&&(i===!0||i==="when-permitted"&&V.permission==="granted"),we=nt&&H.settled&&Z.settled,Dt=i==="when-permitted"&&!V.permissionSettled&&!Ot.current,Ht=nt&&rt&&!Ot.current,Ft=(Dt||Ht)&&A.gate==="ready"?"loading":A.gate;(0,G.useEffect)(()=>{!we||!rt||A.gate!=="ready"||Ot.current||(Ot.current=!0,ho())},[we,rt,A.gate,ho]);let Cr=rt&&!re&&!Z.required&&!(Ht&&A.gate==="ready"),wr=(0,G.useCallback)(()=>{Ye(ue=>ue==="user"?"environment":"user"),b.switchCamera()},[b.switchCamera]),Bt=(0,G.useMemo)(()=>b.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(b.artifacts.keyframe):null,[b.artifacts]);(0,G.useEffect)(()=>{if(Bt!==null)return()=>URL.revokeObjectURL(Bt)},[Bt]);let go=b.frozenPreview??Bt,je=e!==void 0,E=dc(b.state),K=pc(b.state),W=E||K,me=b.result,Ne=b.state==="done"&&me!==null,Ze=b.state==="recording"&&b.frozenPreview!==null,vo=$!==null,J=K||Ze,Qe=K?"checking":Ze?"frozen":b.state==="recording"?"recording":b.gateLocked||b.gate.progress>=1?"locked":b.gate.faceDetected?"aligning":"seeking",$t=E?b.gate.hint:null,Ve=b.state==="starting"?"capture.preparing.title":$t===null?null:$t==="center"&&!b.gate.faceDetected?"fcv3.no_face":Ln($t),[it,fn]=(0,G.useState)(null);(0,G.useEffect)(()=>{if(Ve!=="fcv3.no_face"){fn(Ve);return}if(!E)return;let ue=setTimeout(()=>fn(Ve),ac);return()=>clearTimeout(ue)},[Ve,E]);let Nr=E&&typeof h=="string"&&h!=="",xt=E&&!Nr?it:null,xr=Nr?h:xt===null?"":x(xt);Qr(M,xt,xr,E);let yn=(0,G.useRef)(p);yn.current=p,(0,G.useEffect)(()=>{if(Mt(xt))try{yn.current?.(xt)}catch(ue){console.error("[@sekyro/react] onGuidance threw:",ue)}},[xt]);let ko=(0,G.useMemo)(()=>({supported:M.supported,enabled:M.enabled,setEnabled:M.setEnabled,toggle:M.toggle}),[M.supported,M.enabled,M.setEnabled,M.toggle]),Ir=n?.voicePrompt,hn=Ir!==void 0,gn=u===void 0,vn=(0,G.useRef)(!1);(0,G.useEffect)(()=>{!hn||!gn||vn.current||!er()||(vn.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[hn,gn]);let ha=Ir!==void 0?(ue,It,ht)=>Ir(ue,It,ht,ko):M.supported?()=>(0,j.jsx)(Qi,{voice:ko}):void 0,{summary:Rr,summaryPlaying:kn,toggleSummary:bn,stopSummary:Sn}=M,zo=d!==void 0&&d!=="",_n=zo?d:x("capture.tips.summary"),Cn=zo?Rr!=="none":Rr==="partner"||Rr==="default"&&cc(m),wn=(0,G.useMemo)(()=>Cn?{playing:kn,toggle:s(()=>bn(_n,{clip:!zo}),"toggle"),stop:Sn}:void 0,[Cn,kn,bn,_n,Sn,zo]),ga=(0,G.useMemo)(()=>({assets:Ft,retryAssets:A.retry,permission:V.permission,facing:Ce,setFacing:Ye,canChooseFacing:V.canChooseFacing,voice:ko}),[Ft,A.retry,V.permission,V.canChooseFacing,Ce,ko]),va=uc(a)?(0,j.jsx)(Se,{tone:a.tone,testId:"sekyro-host-notice",children:(0,j.jsx)("span",{children:a.text})}):a??null,st=me!==null&&me.status==="retry"?me:null,at=Ne&&me.status==="unavailable"&&!re&&me.reason!=="portrait_required"?me:null,bo=Ne&&(me.status==="approved"||me.status==="rejected"||me.status==="review")?me:null,Kt=s((ue,It)=>{if(ue===void 0)return null;if(ue==="device_cooldown"){let Ut=Eo(t,It);if(Ut!==null)return x(Ut.key).replace("{time}",Ut.time)}let ht=Gt(ue);return ht===null?null:x(ht)},"reasonText"),ka=at!==null&&at.reason!==void 0&&at.reason!=="nni_unbound"&&at.reason!=="method_required"&&at.reason!=="mobile_required"&&!(at.reason==="no_recorder"&&b.artifacts?.degraded==="NO_RECORDER"),Nn=ye(),ba=re&&H.auto===null&&!E&&!K&&b.error===null,Lr=(0,G.useCallback)(async ue=>{await H.select(ue)&&b.state==="done"&&b.retry()},[H.select,b.state,b.retry]);return(0,G.useEffect)(()=>{H.auto!==null&&!H.busy&&!E&&!K&&Lr(H.auto)},[H.auto,H.busy,E,K,Lr]),(0,j.jsx)(Fo,{value:x,children:(0,j.jsxs)("div",{ref:Nt,className:k===void 0?"sekyro-capture":`sekyro-capture ${k}`,dir:z,lang:t,"data-testid":"sekyro-liveness-capture","data-state":b.state,children:[n?.header,st!==null&&Kt(st.reason)!==null&&!(vo&&W)?(0,j.jsx)(Se,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:(0,j.jsx)("span",{children:Kt(st.reason)})}):null,P&&K&&!vo?(0,j.jsx)(Se,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:(0,j.jsx)("span",{children:x("capture.busy")})}):null,Z.required&&rt?(0,j.jsx)(Se,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:(0,j.jsx)("span",{children:x("reasons.mobile_required")})}):null,b.error!==null?n?.errorPanel!==void 0?n.errorPanel(b.error,b.retry):(0,j.jsxs)(Se,{tone:"danger",testId:"sekyro-error-notice",children:[(0,j.jsx)("span",{children:x(Tn(b.error.kind))}),b.error.retryable?(0,j.jsx)(R,{ref:Nn,kind:"ghost",className:"sekyro-btn--start",onClick:b.retry,children:x("common.retry")}):null]}):null,at!==null?(0,j.jsxs)(Se,{tone:"danger",testId:"sekyro-unavailable-notice",children:[(0,j.jsx)("span",{children:Kt(at.reason)??x(at.reason===void 0?"errors.session_expired":"errors.network_error")}),ka?(0,j.jsx)(R,{ref:Nn,kind:"ghost",className:"sekyro-btn--start",onClick:b.retry,children:x("capture.recordAgain")}):null]}):null,bo!==null&&Kt(bo.reason)!==null?(0,j.jsx)(Se,{tone:bo.status==="rejected"?"danger":"info",testId:"sekyro-result-notice",children:(0,j.jsx)("span",{children:Kt(bo.reason,bo.retryAfter)})}):null,(0,j.jsx)("div",{className:W?void 0:"sekyro-hidden","data-capture-live":W?"":void 0,children:vo?$({videoRef:B,guidance:J&&je?x("capture.checking"):xr,coached:Nr&&!(J&&je),note:J?je?x(P?"capture.busy":"capture.checkingHint"):null:st!==null?Kt(st.reason):null,settled:J&&je,progress:b.gate.progress,phase:Qe,still:J?go:null,live:W}):(0,j.jsx)(ai,{videoRef:B,guidanceText:xr,guidanceHint:$t,guidanceKey:xt,progress:b.gate.progress,phase:Qe,draining:b.draining,stillUrl:go,showChecking:je,onSwitchCamera:wr,canSwitchCamera:E&&b.state!=="recording",voicePrompt:ha,overlay:n?.stageOverlay,reduceMotion:b.reduceMotion})}),ba&&H.choice!==null?(0,j.jsx)(Xo,{choice:H.choice,busy:H.busy,failed:H.failed,focus:b.state==="done",onSelect:ue=>{Lr(ue)}}):null,Cr?(0,j.jsxs)(j.Fragment,{children:[_e&&n?.header===void 0?(0,j.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,j.jsx)("h2",{className:"sekyro-text-body",children:x("returning.title")}),(0,j.jsx)("p",{className:"sekyro-text-muted",children:x("returning.description")})]}):null,va,n?.intro!==void 0?n.intro(yo,ga):(0,j.jsx)(Ti,{assets:Ft,onRetryAssets:A.retry,permission:V.permission,canChooseFacing:V.canChooseFacing,facing:Ce,onFacingChange:Ye,voice:ko,tips:m??rr,...wn!==void 0?{summary:wn}:{},...l!==void 0?{startLabel:l}:{},startDisabled:c,onStart:yo})]}):null,(0,j.jsx)(li,{showCoaching:st!==null,attemptsText:st?.attemptsRemaining!==void 0?Oo(I,t,st.attemptsRemaining):null,showRetake:st!==null&&!E&&!K||!je&&b.state==="captured",onRetake:b.retry}),n?.footer]})})}var G,j,ac,Xr=_(()=>{"use strict";G=require("react");ae();ci();ui();Ur();qr();zi();Wr();Kr();Qt();Wt();Mi();Di();ct();Bi();qi();Yi();Zi();Te();Xi();ms();j=require("react/jsx-runtime"),ac=800;s(cc,"isDefaultTips");s(lc,"carriesActivation");s(uc,"isNoticeObject");s(dc,"isCapturing");s(pc,"isPostCapture");s(ar,"LivenessCapture")});var fs,ys=_(()=>{"use strict";fs={"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.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":"المتابعة هنا على أي حال"}});var hs,gs=_(()=>{"use strict";hs={"contact.title":"How do you want to get 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":"National number (NNI)","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 this page 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"}});var vs,ks=_(()=>{"use strict";vs={"contact.title":"Comment voulez-vous recevoir 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 (NNI)","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 cette page dans votre 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"}});var bs,Ss=_(()=>{"use strict";bs={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'}});function fe({name:e,className:t}){return(0,_s.jsx)("svg",{className:`sekyro-glyph${t?` ${t}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:bs[e]}})}var _s,At=_(()=>{"use strict";Ss();_s=require("react/jsx-runtime");s(fe,"Icon")});function mc(){let e=`sekyro-face-light-${(0,Cs.useId)().replace(/[^A-Za-z0-9_-]/g,"")}`;return(0,Q.jsxs)("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[(0,Q.jsx)("defs",{children:(0,Q.jsx)("mask",{id:e,children:(0,Q.jsx)("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),(0,Q.jsx)("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),(0,Q.jsx)("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),(0,Q.jsx)("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),(0,Q.jsx)("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${e})`})]})}function cr({start:e,context:t,tips:o,tipsTitle:r}){let{t:n}=ne();return(0,Q.jsxs)("section",{className:"sekyro-step",children:[(0,Q.jsx)(mc,{}),(0,Q.jsx)(Ie,{title:n("native.face.introTitle"),lead:n("native.face.introLead")}),r!==void 0?(0,Q.jsx)("p",{className:"sekyro-section-label",children:r}):null,(0,Q.jsx)("ul",{className:"sekyro-tiprows",children:o!==void 0?o.map(i=>(0,Q.jsxs)("li",{children:[(0,Q.jsx)(fe,{name:fc[i.id]??"face"}),i.text]},i.id)):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("li",{children:[(0,Q.jsx)(fe,{name:"light"}),n("capture.tips.light")]}),(0,Q.jsxs)("li",{children:[(0,Q.jsx)(fe,{name:"jGlasses"}),n("capture.tips.uncover")]}),(0,Q.jsxs)("li",{children:[(0,Q.jsx)(fe,{name:"smartphone"}),n("capture.tips.eyeLevel")]})]})}),t.assets==="failed"?(0,Q.jsx)(R,{kind:"ghost",onClick:t.retryAssets,children:n("common.refresh")}):null,(0,Q.jsx)(xe,{children:(0,Q.jsxs)(R,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:e,children:[(0,Q.jsx)(fe,{name:"camera"}),n("capture.start")]})})]})}var Cs,Q,fc,Jr=_(()=>{"use strict";Cs=require("react");ae();At();Xe();be();Q=require("react/jsx-runtime");s(mc,"FaceMark");fc={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};s(cr,"FaceIntro")});function tn(e,t){let o=0;for(let r=7;r>=0;r-=1)o=o<<1^(o>>>7)*285,o^=(t>>>r&1)*e;return o&255}function hc(e){let t=new Array(e).fill(0);t[e-1]=1;let o=1;for(let r=0;r<e;r+=1){for(let n=0;n<e;n+=1)t[n]=tn(t[n],o),n+1<e&&(t[n]=t[n]^t[n+1]);o=tn(o,2)}return t}function gc(e,t){let o=t.map(()=>0);for(let r of e){let n=r^o.shift();o.push(0),t.forEach((i,a)=>{o[a]=o[a]^tn(i,n)})}return o}function vc(e,t){let o=[],r=s((u,p)=>{for(let y=p-1;y>=0;y-=1)o.push(u>>>y&1)},"put");r(4,4),r(e.length,t<10?8:16);for(let u of e)r(u,8);let n=en(t)*8;r(0,Math.min(4,n-o.length)),r(0,(8-o.length%8)%8);let i=[];for(let u=0;u<o.length;u+=8)i.push(o.slice(u,u+8).reduce((p,y)=>p<<1|y,0));for(let u=236;i.length<en(t);u^=253)i.push(u);let[a,c]=rn[t-1],l=hc(a),m=[],d=0;for(let[u,p]of c)for(let y=0;y<u;y+=1){let v=i.slice(d,d+p);d+=p,m.push({data:v,ec:gc(v,l)})}let h=[],f=Math.max(...m.map(u=>u.data.length));for(let u=0;u<f;u+=1)for(let p of m)u<p.data.length&&h.push(p.data[u]);for(let u=0;u<a;u+=1)for(let p of m)h.push(p.ec[u]);return h}function kc(e){if(e===1)return[];let t=Math.floor(e/7)+2,o=Math.ceil((e*4+4)/(t*2-2))*2,r=[6];for(let n=e*4+10;r.length<t;n-=o)r.splice(1,0,n);return r}function Sc(e,t){let o=e.size;for(let i=0;i<o;i+=1)e.set(6,i,i%2===0),e.set(i,6,i%2===0);for(let[i,a]of[[3,3],[3,o-4],[o-4,3]])for(let c=-4;c<=4;c+=1)for(let l=-4;l<=4;l+=1){let m=i+c,d=a+l;if(m<0||m>=o||d<0||d>=o)continue;let h=Math.max(Math.abs(c),Math.abs(l));e.set(m,d,h!==2&&h!==4)}let r=kc(t),n=r.length-1;if(r.forEach((i,a)=>r.forEach((c,l)=>{if(!(a===0&&l===0||a===0&&l===n||a===n&&l===0))for(let m=-2;m<=2;m+=1)for(let d=-2;d<=2;d+=1)e.set(i+m,c+d,Math.max(Math.abs(m),Math.abs(d))!==1)})),Ns(e,0),t>=7){let i=t;for(let c=0;c<12;c+=1)i=i<<1^(i>>>11)*7973;let a=t<<12|i;for(let c=0;c<18;c+=1){let l=(a>>>c&1)===1,m=o-11+c%3,d=Math.floor(c/3);e.set(m,d,l),e.set(d,m,l)}}}function Ns(e,t){let o=e.size,r=yc<<3|t,n=r;for(let c=0;c<10;c+=1)n=n<<1^(n>>>9)*1335;let i=(r<<10|n)^21522,a=s(c=>(i>>>c&1)===1,"bit");for(let c=0;c<=5;c+=1)e.set(c,8,a(c));e.set(7,8,a(6)),e.set(8,8,a(7)),e.set(8,7,a(8));for(let c=9;c<15;c+=1)e.set(8,14-c,a(c));for(let c=0;c<8;c+=1)e.set(8,o-1-c,a(c));for(let c=8;c<15;c+=1)e.set(o-15+c,8,a(c));e.set(o-8,8,!0)}function _c(e,t){let o=e.size,r=0;for(let n=o-1;n>=1;n-=2){n===6&&(n=5);for(let i=0;i<o;i+=1)for(let a=0;a<2;a+=1){let c=n-a,m=(n+1&2)===0?o-1-i:i;e.fixed[m*o+c]!==!0&&(r<t.length*8&&(e.dark[m*o+c]=(t[r>>>3]>>>7-(r&7)&1)===1),r+=1)}}}function Cc(e,t){let o=bc[t];for(let r=0;r<e.size;r+=1)for(let n=0;n<e.size;n+=1)e.fixed[r*e.size+n]!==!0&&o(r,n)&&(e.dark[r*e.size+n]=!e.dark[r*e.size+n])}function wc(e){let t=e.size,o=0,r=s(i=>{let a=1;for(let c=1;c<=t;c+=1)c<t&&i(c)===i(c-1)?a+=1:(a>=5&&(o+=3+(a-5)),a=1);for(let c=0;c+10<t;c+=1){let l=[!0,!1,!0,!0,!0,!1,!0];if(!(l.every((f,u)=>i(c+u)===f)||l.every((f,u)=>i(c+4+u)===f)))continue;let d=[0,1,2,3].every(f=>!i(c+f))&&l.every((f,u)=>i(c+4+u)===f),h=l.every((f,u)=>i(c+u)===f)&&[7,8,9,10].every(f=>!i(c+f));d&&(o+=40),h&&(o+=40)}},"line");for(let i=0;i<t;i+=1)r(a=>e.get(i,a));for(let i=0;i<t;i+=1)r(a=>e.get(a,i));for(let i=0;i+1<t;i+=1)for(let a=0;a+1<t;a+=1){let c=e.get(i,a);c===e.get(i,a+1)&&c===e.get(i+1,a)&&c===e.get(i+1,a+1)&&(o+=3)}let n=e.dark.filter(Boolean).length;return o+=Math.floor(Math.abs(n*20-t*t*10)/(t*t))*10,o}function xs(e,t={}){let o=new TextEncoder().encode(e),r=1;for(;r<=ws&&!(4+(r<10?8:16)+o.length*8<=en(r)*8);r+=1);if(r>ws)throw new RangeError("text too long for a QR code");let n=vc(o,r),i=s(l=>{let m=new on(r*4+17);return Sc(m,r),_c(m,n),Cc(m,l),Ns(m,l),m},"build"),a=null;if(t.mask!==void 0)a=i(t.mask);else{let l=Number.POSITIVE_INFINITY;for(let m=0;m<8;m+=1){let d=i(m),h=wc(d);h<l&&(l=h,a=d)}}let c=a;return{size:c.size,get:s((l,m)=>c.get(l,m),"get")}}function Is(e,t=4){let o=[];for(let r=0;r<e.size;r+=1)for(let n=0;n<e.size;n+=1)e.get(r,n)&&o.push(`M${n+t} ${r+t}h1v1h-1z`);return{size:e.size+t*2,d:o.join("")}}var rn,ws,yc,en,bc,nn,on,Rs=_(()=>{"use strict";rn=[[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]]]],ws=rn.length,yc=0,en=s(e=>(rn[e-1]?.[1]??[]).reduce((t,[o,r])=>t+o*r,0),"dataCapacity");s(tn,"gfMul");s(hc,"rsDivisor");s(gc,"rsRemainder");s(vc,"codewords");s(kc,"alignmentPositions");bc=[(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],nn=class nn{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,o,r){this.dark[t*this.size+o]=r,this.fixed[t*this.size+o]=!0}get(t,o){return this.dark[t*this.size+o]===!0}};s(nn,"Grid");on=nn;s(Sc,"drawFunctionPatterns");s(Ns,"drawFormat");s(_c,"placeData");s(Cc,"applyMask");s(wc,"penalty");s(xs,"encodeQr");s(Is,"qrPath")});var Ts={};qt(Ts,{ContactChoiceView:()=>Ic,ContactSwitch:()=>Rc,EidContinueHint:()=>Vc,HandoffView:()=>Oc,IdentitySummaryView:()=>zc,InAppBrowserPrompt:()=>Dc,LivePhotoLiveness:()=>Mc,PortraitRetakeNotice:()=>Ac});function Ct(e){let t=e.strings;return(o,r)=>ze(t[o]??Nc[e.locale][o]??"",r)}function sn(e,t){let[o,r]=(0,le.useState)(!1),[n,i]=(0,le.useState)(null);return{busy:o,error:n,run:s(c=>{r(!0),i(null),c().then(()=>r(!1),l=>{r(!1),i(e.t(Ee(l,e.strings))),t?.(l)})},"run")}}function Ic({step:e,i18n:t,onError:o}){let r=Ct(t),n=(0,le.useId)(),i=ye(),{busy:a,error:c,run:l}=sn(t,o),m=s(d=>r(d==="phone"?"contact.phone":"contact.email"),"label");return(0,T.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":n,"data-testid":"sekyro-contact-choice",children:[(0,T.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,T.jsx)("h2",{id:n,ref:i,tabIndex:-1,className:"sekyro-text-body",children:r("contact.title")}),(0,T.jsx)("p",{className:"sekyro-text-muted",children:r("contact.description")})]}),c!==null?(0,T.jsx)(D,{tone:"danger",children:(0,T.jsx)("span",{children:c})}):null,e.options.length===0?(0,T.jsx)(D,{tone:"danger",children:(0,T.jsx)("span",{children:t.t("errors.network_error")})}):null,(0,T.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:e.options.map((d,h)=>(0,T.jsx)(R,{kind:h===0?"primary":"ghost",full:!0,disabled:a,"aria-busy":a||void 0,onClick:()=>l(()=>e.select(d)),children:m(d)},d))})]})}function Rc({step:e,i18n:t,onError:o}){let r=Ct(t),{busy:n,error:i,run:a}=sn(t,o);return e.canSwitch?(0,T.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[i!==null?(0,T.jsx)(D,{tone:"danger",children:(0,T.jsx)("span",{children:i})}):null,(0,T.jsx)(R,{kind:"ghost",disabled:n,"aria-busy":n||void 0,onClick:()=>a(()=>e.switchTo()),"data-testid":"sekyro-contact-switch",children:r("contact.switch")})]}):null}function Tc(e){let[t,o]=(0,le.useState)(null);return(0,le.useEffect)(()=>{if(!e.portraitAvailable)return;let r=!0,n=null;return e.portrait().then(i=>{!r||i===null||!i.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(n=URL.createObjectURL(i),o(n))}),()=>{r=!1,n!==null&&URL.revokeObjectURL(n)}},[e.portraitAvailable]),t}function zc({step:e,i18n:t,onError:o}){let r=Ct(t),n=(0,le.useId)(),i=ye(),a=Tc(e),{busy:c,error:l,run:m}=sn(t,o),d=e.context.orgName,h=["registry","document","chip"].find(p=>p===e.source),f=e.summaryKind==="partial",u=s(p=>t.strings[`doc.type.${p}`]??p,"documentLabel");return(0,T.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":n,"data-testid":"sekyro-identity-summary",children:[(0,T.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,T.jsx)("h2",{id:n,ref:i,tabIndex:-1,className:"sekyro-text-body",children:r("summary.title")}),(0,T.jsx)("p",{className:"sekyro-text-muted",children:r("summary.description")}),h!==void 0?(0,T.jsx)("p",{className:"sekyro-text-muted",children:r(`summary.source.${h}`)}):null]}),(0,T.jsxs)("div",{className:"sekyro-summary",children:[a!==null?(0,T.jsx)("img",{className:"sekyro-summary__portrait",src:a,alt:r("summary.portraitAlt")}):null,(0,T.jsx)("dl",{className:"sekyro-summary__list",children:Lc.map(([p,y,v])=>{let L=e[p];return L===void 0?null:(0,T.jsxs)("div",{className:"sekyro-summary__row",children:[(0,T.jsx)("dt",{className:"sekyro-text-muted",children:r(p==="fullName"&&f?"summary.name":y)}),(0,T.jsx)("dd",{children:v?(0,T.jsx)("bdi",{dir:"ltr",children:L}):p==="documentType"?u(L):L})]},p)})})]}),l!==null?(0,T.jsx)(D,{tone:"danger",children:(0,T.jsx)("span",{children:l})}):null,(0,T.jsxs)("div",{className:"sekyro-stack sekyro-stack--3",children:[(0,T.jsx)(R,{full:!0,disabled:c,"aria-busy":c||void 0,onClick:()=>m(()=>e.confirm()),children:r("summary.confirm")}),e.retakeAvailable?(0,T.jsx)(R,{kind:"ghost",full:!0,disabled:c,onClick:()=>m(()=>e.retake()),children:r(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):(0,T.jsx)("p",{className:"sekyro-text-muted",children:r("summary.noRetake",{org:d})})]})]})}function Mc({step:e,i18n:t,livenessProps:o,sekyroIntro:r}){let n=Ct(t),[i,a]=(0,le.useState)(null);(0,le.useEffect)(()=>e.onLivePhoto(p=>{let y=p.update?.coach;a(p.holding||y===void 0?null:t.t(`portrait.coach.${y}`))}),[e,t]);let c=e.instructions==="icao",l=e.icao?.profile==="selfie",m=(0,le.useMemo)(()=>c?Pc.filter(p=>!l||p!=="background").map(p=>({id:p,text:n(`capture.tipsIcao.${p}`)})):void 0,[c,l,t]),d=(0,le.useMemo)(()=>c&&!l?{...o.strings,"capture.tips.title":n("capture.tipsIcao.title")}:o.strings,[c,l,o.strings,t]),h=l?void 0:n("capture.tipsIcao.title"),f=(0,le.useMemo)(()=>r===!0&&m!==void 0?{...o.slots,intro:s((p,y)=>(0,T.jsx)(cr,{start:p,context:y,tips:m,...h!==void 0?{tipsTitle:h}:{}}),"intro")}:o.slots,[r,m,h,o.slots,t]),u=l?`${(m??[]).map(p=>p.text).join(". ")}.`:n("capture.tipsIcao.summary");return(0,T.jsx)(ar,{...o,...f!==void 0?{slots:f}:{},...d!==void 0?{strings:d}:{},...m!==void 0?{tips:m,tipsSummary:u}:{},coach:i})}function Ac({i18n:e}){let t=Ct(e);return(0,T.jsxs)(D,{tone:"info",children:[(0,T.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,T.jsx)("span",{children:t("portrait.keepCamera")})]})}function Vc({i18n:e,provider:t}){let o=e.strings,r=s(n=>o[n]??xc[e.locale][n]??"","pick");return(0,T.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?ze(r("eid.continueHint"),{provider:t}):r("eid.continueHintGeneric")})}async function Ec(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function Ls({url:e,i18n:t,label:o}){let r=Ct(t),[n,i]=(0,le.useState)("idle"),a=o.startsWith("inApp.")?"inApp":"handoff";return(0,T.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,T.jsx)(R,{kind:"ghost",onClick:()=>{Ec(e).then(c=>i(c?"copied":"failed"))},children:r(o)}),(0,T.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:n==="idle"?"":r(`${a}.${n==="copied"?"copied":"copyFailed"}`)})]})}function Oc({url:e,i18n:t,refresh:o,footer:r}){let n=Ct(t),i=(0,le.useId)(),a=(0,le.useMemo)(()=>{try{return Is(xs(e))}catch{return null}},[e]),c=(0,le.useRef)(o);c.current=o;let l=ye();return(0,le.useEffect)(()=>{let m=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&c.current?.().catch(()=>{})},5e3);return()=>clearInterval(m)},[]),(0,T.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":i,"data-testid":"sekyro-handoff",children:[(0,T.jsx)("h2",{id:i,ref:l,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),(0,T.jsx)("p",{className:"sekyro-text-muted",children:n("handoff.description")}),a!==null?(0,T.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${a.size} ${a.size}`,role:"img","aria-label":n("handoff.qrAlt"),shapeRendering:"crispEdges",children:[(0,T.jsx)("rect",{width:a.size,height:a.size,className:"sekyro-qr__bg"}),(0,T.jsx)("path",{d:a.d,className:"sekyro-qr__fg"})]}):null,(0,T.jsx)(Ls,{url:e,i18n:t,label:"handoff.copyLink"}),(0,T.jsx)("p",{className:"sekyro-text-muted",children:n("handoff.waiting")}),r??null]})}function Dc({url:e,i18n:t,onContinue:o}){let r=Ct(t),n=(0,le.useId)(),i=ye();return(0,T.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":n,"data-testid":"sekyro-in-app",children:[(0,T.jsx)("h2",{id:n,ref:i,tabIndex:-1,className:"sekyro-text-body",children:r("inApp.title")}),(0,T.jsx)("p",{className:"sekyro-text-muted",children:r("inApp.description")}),(0,T.jsx)(Ls,{url:e,i18n:t,label:"inApp.copyLink"}),(0,T.jsx)(R,{kind:"ghost",onClick:o,children:r("inApp.continueAnyway")})]})}var le,T,Nc,xc,Lc,Pc,zs=_(()=>{"use strict";le=require("react");ae();Xr();Hr();Fr();Br();ys();gs();ks();ct();Tt();Jr();Rs();be();Pe();T=require("react/jsx-runtime"),Nc={en:hs,fr:vs,ar:fs},xc={en:jo,fr:Zo,ar:Yo};s(Ct,"flowT");s(sn,"useAction");s(Ic,"ContactChoiceView");s(Rc,"ContactSwitch");Lc=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["nniMasked","summary.nni",!0],["expiryDate","summary.expiryDate",!0]];s(Tc,"usePortraitUrl");s(zc,"IdentitySummaryView");Pc=["glasses","headwear","expression","faceCamera","background","lighting","hair"];s(Mc,"LivePhotoLiveness");s(Ac,"PortraitRetakeNotice");s(Vc,"EidContinueHint");s(Ec,"copy");s(Ls,"CopyLink");s(Oc,"HandoffView");s(Dc,"InAppBrowserPrompt")});var As,Vs=_(()=>{"use strict";As={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 Es,Os=_(()=>{"use strict";Es={"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 Ds,Hs=_(()=>{"use strict";Ds={"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 Fs,Bs=_(()=>{"use strict";Fs={"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 $s,Ks=_(()=>{"use strict";$s={"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 Us,qs=_(()=>{"use strict";Us={"native.doc.introTitle":"We'll 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 Gs,Ws=_(()=>{"use strict";Gs={"native.doc.introTitle":"Nous allons photographier 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 Kc,an,dr,Ys=_(()=>{"use strict";Kc=["locking","capturing"],an=class an{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(t,o){return this.presentHint(t,o),this.presentLock(t,o),this.presentCard(t,o),this.shutterSince=t.manualShutter?this.shutterSince??o:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&o-this.shutterSince>=1e3},this.shown}presentHint(t,o){let r=t.phase==="framing"&&!(t.hint==="blurry"&&t.card===null)?t.hint:null;if(t.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(r!==this.candidate&&(this.candidate=r,this.candidateSince=o),r===this.shown.hint)return;let n=o-this.candidateSince>=(r===null?0:350),i=this.shown.hint===null||o-this.hintShownAt>=1200;n&&i&&(this.shown={...this.shown,hint:r},this.hintShownAt=o)}presentLock(t,o){if(Kc.includes(t.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(t.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(t,o){let r=t.card;if(r===null||t.phase!=="framing"){if(t.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 n=this.shown.card;if(n===null){this.shown={...this.shown,card:{...r}};return}let i=.35;this.shown={...this.shown,card:{fill:n.fill+(r.fill-n.fill)*i,offsetX:n.offsetX+(r.offsetX-n.offsetX)*i,offsetY:n.offsetY+(r.offsetY-n.offsetY)*i}}}};s(an,"ScanPresenter");dr=an});var ta={};qt(ta,{DocumentCaptureView:()=>Gc,LOCK_TRACE_MS:()=>js,guideRect:()=>cn,mrzInstruction:()=>Xs,slotOf:()=>ea});function Qs({name:e}){return(0,g.jsx)("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:As[e]}})}function Xs(e,t){return e===null||e.state==="fallback"||e.state==="mismatch"?null:e.state==="searching"?t?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":e.state==="valid"?"dcv3.mrz.valid":e.coach!==void 0?`dcv3.mrz.${e.coach}`:"dcv3.mrz.reading"}function Js(e){return e.reason==="unreadable"?"doc.reason_unreadable":e.reason!==void 0&&e.reason!=="side_missing"?Gt(e.reason):null}function Gc({step:e,i18n:t,liveMrz:o,...r}){let[n,i]=(0,oe.useState)(!1);return n?(0,g.jsx)(Xc,{step:e,i18n:t,...o!==void 0?{liveMrz:o}:{},onClose:()=>i(!1)}):(0,g.jsx)(jc,{step:e,i18n:t,onOpen:()=>i(!0),...r})}function Wc({passport:e}){let o=Math.round(228/(e?1.42:1.586));return(0,g.jsxs)("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${o+24}`,"aria-hidden":"true",focusable:"false",children:[(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"sekyro-card-clip",children:(0,g.jsx)("rect",{width:228,height:o,rx:"12.5"})})}),(0,g.jsx)("rect",{className:"sekyro-mark__card",width:228,height:o,rx:"12.5"}),(0,g.jsx)("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:o*.52,rx:"6"}),[0,1,2].map(r=>(0,g.jsx)("rect",{className:"sekyro-mark__text",x:"88",y:23+r*o*.12,width:100-r*20,height:"6",rx:"3"},r)),[0,1].map(r=>(0,g.jsx)("rect",{className:"sekyro-mark__text",x:"17",y:o*.74+r*9,width:194,height:"4",rx:"2"},r)),(0,g.jsx)("g",{clipPath:"url(#sekyro-card-clip)",children:(0,g.jsx)("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:(0,g.jsx)("rect",{x:"-1",width:"2",height:o,className:"sekyro-mark__beam"})})}),(0,g.jsx)("path",{className:"sekyro-mark__brackets",d:Yc(-10,-10,248,o+20,16,30)})]})}function Yc(e,t,o,r,n,i){let a=Math.min(n,i*.6);return[[e,t,1,1],[e+o,t,-1,1],[e,t+r,1,-1],[e+o,t+r,-1,-1]].map(([l,m,d,h])=>`M${l} ${m+h*i}V${m+h*a}Q${l} ${m} ${l+d*a} ${m}H${l+d*i}`).join("")}function jc({step:e,i18n:t,onOpen:o,onChangeCountry:r,onChangeDocument:n}){let i=Zs(t),a=e.documentType==="passport",c=Js(e);return(0,g.jsxs)("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[(0,g.jsx)(Wc,{passport:a}),(0,g.jsx)(Ie,{title:i("native.doc.introTitle"),lead:i("native.doc.introLead")}),c!==null?(0,g.jsxs)(D,{tone:"warning",children:[(0,g.jsx)("span",{children:t.t(c)}),(0,g.jsx)("span",{children:Be(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,(0,g.jsxs)("ul",{className:"sekyro-tiprows",children:[(0,g.jsxs)("li",{children:[(0,g.jsx)(fe,{name:a?"passport":"card"}),i("native.doc.tip.flat")]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(fe,{name:"light"}),i("native.doc.tip.glare")]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(Qs,{name:"image"}),i("native.doc.tip.frame")]})]}),n!==void 0||r!==void 0?(0,g.jsxs)("div",{className:"sekyro-links",children:[n!==void 0?(0,g.jsx)("button",{type:"button",className:"sekyro-link",onClick:n,children:i("native.doc.changeDocument")}):null,r!==void 0?(0,g.jsx)("button",{type:"button",className:"sekyro-link",onClick:r,children:t.t("native.doc.changeCountry")}):null]}):null,(0,g.jsx)(xe,{children:(0,g.jsxs)(R,{full:!0,onClick:o,children:[(0,g.jsx)(fe,{name:"camera"}),i("native.doc.openCamera")]})})]})}function cn(e,t,o){let r=e*.88,n=r/o;return{x:(e-r)/2,y:t*.42-n/2,w:r,h:n}}function Xc({step:e,i18n:t,liveMrz:o,onClose:r}){let n=Zs(t),i=(0,oe.useRef)(null),a=(0,oe.useRef)(null),c=(0,oe.useRef)(null),[l,m]=(0,oe.useState)("idle"),[d,h]=(0,oe.useState)(null),[f,u]=(0,oe.useState)(null),[p,y]=(0,oe.useState)({w:0,h:0}),[v,L]=(0,oe.useState)({hint:null,locking:!1,card:null,manualShutter:!1}),[S,C]=(0,oe.useState)({}),[k,I]=(0,oe.useState)(null),[x,z]=(0,oe.useState)(null),[B,$]=(0,oe.useState)(0),[b,A]=(0,oe.useState)(null),[H,re]=(0,oe.useState)(null),Z=e.documentType==="passport",_e=Z?1.42:1.586;Ko(!0),(0,oe.useLayoutEffect)(()=>{let E=i.current;if(E===null)return;let K=s(()=>y({w:E.clientWidth,h:E.clientHeight}),"measure");if(K(),typeof ResizeObserver>"u")return;let W=new ResizeObserver(K);return W.observe(E),()=>W.disconnect()},[]);let P=cn(p.w,p.h,_e);(0,oe.useEffect)(()=>{p.w===0||p.h===0||c.current?.setGuide?.({viewAspect:p.w/p.h,rect:{x:P.x/p.w,y:P.y/p.h,width:P.w/p.w,height:P.h/p.h}})},[p.w,p.h,P.x,P.y,P.w,P.h]),(0,oe.useEffect)(()=>{let E=a.current;if(E===null)return;let K=e.capture({video:E,...o!==void 0?{liveMrz:o}:{}});c.current=K;let W=i.current;if(W!==null&&W.clientWidth>0&&W.clientHeight>0){let J=cn(W.clientWidth,W.clientHeight,_e);K.setGuide?.({viewAspect:W.clientWidth/W.clientHeight,rect:{x:J.x/W.clientWidth,y:J.y/W.clientHeight,width:J.w/W.clientWidth,height:J.h/W.clientHeight}})}let me=new dr,Ne={scan:null,feedback:null,gate:null},Ze=s(J=>{Ne={...Ne,...J};let Qe=Ne.gate?.guide,$t={phase:Ne.scan?.phase??"framing",hint:Ne.feedback?.reticle==="coaching"?Ne.feedback.key:null,card:Qe?.detected?{fill:Qe.fill,offsetX:Qe.offsetX,offsetY:Qe.offsetY}:null,manualShutter:Ne.scan?.manualShutter??!1},Ve=me.present($t,performance.now());L(it=>it.hint===Ve.hint&&it.locking===Ve.locking&&it.manualShutter===Ve.manualShutter&&it.card?.fill===Ve.card?.fill&&it.card?.offsetX===Ve.card?.offsetX&&it.card?.offsetY===Ve.card?.offsetY?it:Ve)},"present"),vo=[K.on("state",m),K.on("feedback",J=>Ze({feedback:J})),K.on("gate",J=>Ze({gate:J})),K.on("scan",J=>{h(J),Ze({scan:J})}),K.on("captured",J=>{C(Qe=>({...Qe,[ea(J.side,Z,Qe)]:J.previewDataUrl})),I(J.previewDataUrl),z(el(E))}),K.on("error",u),K.on("mrz",J=>{J.state==="mismatch"?re(J.format??null):A(J)})];return K.start().catch(()=>{}),()=>{for(let J of vo)J();K.destroy(),c.current=null}},[e.issuer,e.documentType]);let V=d?.phase??"framing",w=V==="reading"||V==="result",X=V==="flipCue"||V==="reaskRecto",M=v.locking,Ce=d?.captured.length??0;(0,oe.useEffect)(()=>{M&&$(E=>E+1)},[M]),(0,oe.useEffect)(()=>{Ce>0&&$(E=>E+1)},[Ce]);let Ye=d?.expected??null;(0,oe.useEffect)(()=>{A(null)},[Ye]),(0,oe.useEffect)(()=>{if(H===null)return;let E=setTimeout(()=>re(null),2e3);return()=>clearTimeout(E)},[H]);let Nt=X||w?null:Xs(b,Z),yt=H!==null?H==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":Nt,To=yt===null?null:t.strings[yt]??qc[t.locale][yt],yo=Js(e),ho=v.hint===null?null:Zc[v.hint]??`dcv2.${v.hint}`,Ot=ho??(V==="flipCue"?d?.notice==="same_face"?"doc.sameFace":"doc.flip":V==="reaskRecto"?"doc.reaskRecto":w?"native.scan.reading":V==="locking"||V==="capturing"||M?"native.scan.holdStill":d?.notice==="reread"?"doc.reread":d?.notice==="technical"?"native.scan.retry":d?.notice==="blurry"?"native.scan.blurry":yo??(Z?"doc.showPage":"doc.showSide")),rt=To??n(Ot),nt=v.card,we=P;if(!M&&nt!==null&&nt.fill>=.45&&nt.fill<=1.25&&!Qc()){let E=P.w*nt.fill,K=E/_e,W=P.x+P.w/2+P.w*Math.max(-.25,Math.min(.25,nt.offsetX)),me=P.y+P.h/2+P.h*Math.max(-.25,Math.min(.25,nt.offsetY));we={x:W-E/2,y:me-K/2,w:E,h:K}}let Dt=P.w*.045,Ht=28,Ft=Math.min(Dt,Ht*.6),Cr=[[we.x,we.y,1,1],[we.x+we.w,we.y,-1,1],[we.x,we.y+we.h,1,-1],[we.x+we.w,we.y+we.h,-1,-1]],wr=M?"is-locked":v.hint!==null?"is-coaching":"",Bt=Z?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],go=P.y+P.h+48,je={insetInlineStart:P.x,insetBlockStart:P.y,inlineSize:P.w,blockSize:P.h,borderRadius:Dt};return(0,g.jsx)("section",{className:"sekyro-lm","aria-label":rt,"data-testid":"sekyro-document",children:(0,g.jsxs)("div",{ref:i,className:`sekyro-lm-stage${w?" is-reading":""}${X?" is-flip":""}`,style:{"--sekyro-guide-w":`${P.w}px`},children:[(0,g.jsx)("video",{ref:a,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:E=>{let K=E.currentTarget,W=K.getBoundingClientRect(),me=Math.max(W.width/(K.videoWidth||1),W.height/(K.videoHeight||1)),Ne=K.videoWidth*me,Ze=K.videoHeight*me;Ne>0&&Ze>0&&c.current?.focusAt((E.clientX-W.left+(Ne-W.width)/2)/Ne,(E.clientY-W.top+(Ze-W.height)/2)/Ze)}}),p.w>0?(0,g.jsxs)(g.Fragment,{children:[w&&x!==null?(0,g.jsx)("img",{className:"sekyro-lm-scene",src:x,alt:""}):null,w&&k!==null?(0,g.jsx)("img",{className:"sekyro-lm-frozen",src:k,alt:"",style:je}):null,(0,g.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${p.w} ${p.h}`,"aria-hidden":"true",focusable:"false",children:[(0,g.jsxs)("defs",{children:[(0,g.jsxs)("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,g.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),(0,g.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),(0,g.jsxs)("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,g.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),(0,g.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),(0,g.jsx)("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${p.w}V${p.h}H0Z${Jc(P,Dt)}`}),(0,g.jsx)("rect",{width:p.w,height:Math.max(0,P.y),fill:"url(#sekyro-lm-top)"}),(0,g.jsx)("rect",{y:P.y+P.h,width:p.w,height:Math.max(0,p.h-P.y-P.h),fill:"url(#sekyro-lm-bottom)"}),(0,g.jsx)("g",{className:`sekyro-lm-brackets ${wr}`,children:Cr.map(([E,K,W,me],Ne)=>(0,g.jsx)("path",{style:{transform:`translate(${E}px, ${K}px) scale(${W}, ${me})`},d:`M0 ${Ht}V${Ft}Q0 0 ${Ft} 0H${Ht}`},Ne))}),M?(0,g.jsx)("rect",{className:"sekyro-lm-trace",x:P.x,y:P.y,width:P.w,height:P.h,rx:Dt,pathLength:"1",style:{animationDuration:`${js}ms`}}):null]}),(0,g.jsx)("div",{className:"sekyro-lm-slot",style:je,"aria-hidden":"true",children:w?(0,g.jsx)("span",{className:"sekyro-lm-read is-repeating"}):B>0?(0,g.jsx)("span",{className:"sekyro-lm-read"},B):null})]}):null,Nt!==null?(0,g.jsx)("div",{className:"sekyro-lm-slot",style:je,"aria-hidden":"true",children:(0,g.jsx)("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${Z?" is-page":""}${b?.state==="valid"?" is-valid":""}`})}):null,(0,g.jsxs)("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:P.y-64},children:[(0,g.jsx)("div",{role:"status","aria-live":"polite",children:(0,g.jsx)(wo,{swapKey:rt,className:"sekyro-lm-line",children:rt})}),yo!==null&&V==="framing"&&ho===null?(0,g.jsx)("p",{className:"sekyro-lm-attempts",children:Be(t,e.attemptsRemaining,e.attemptsExhausted)}):null]}),w?(0,g.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:go-12},children:[(0,g.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),n("native.scan.putDown")]}):X?(0,g.jsx)("div",{className:`sekyro-lm-under sekyro-lm-flip${V==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:go-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:(0,g.jsxs)("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(_e)},children:[(0,g.jsx)("span",{className:"sekyro-lm-flip-front"}),(0,g.jsx)("span",{className:"sekyro-lm-flip-back"})]})}):null,(0,g.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,g.jsxs)("div",{className:"sekyro-lm-bar",children:[(0,g.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":t.t("native.close"),onClick:r,children:(0,g.jsx)(fe,{name:"close"})}),d?.torchAvailable?(0,g.jsx)("button",{type:"button",className:`sekyro-glass${d.torch?" is-on":""}`,"aria-label":t.t("doc.torchOn"),"aria-pressed":d.torch,onClick:()=>c.current?.setTorch(!d.torch),children:(0,g.jsx)(Qs,{name:"flashlight"})}):null]}),f!==null?(0,g.jsxs)("div",{className:"sekyro-lm-error",role:"alert",children:[(0,g.jsx)("p",{children:t.t("doc.cameraBlocked")}),(0,g.jsx)("p",{children:t.t("doc.cameraBlockedHint")}),(0,g.jsx)(R,{onClick:()=>{u(null),c.current?.retry()},children:t.t("doc.retryCamera")})]}):null,v.manualShutter?(0,g.jsx)("button",{type:"button",className:"sekyro-shutter","aria-label":t.t("doc.shutter"),onClick:()=>c.current?.shutter()}):null,(0,g.jsx)("ol",{className:"sekyro-lm-tray",children:Bt.map(({side:E,label:K})=>{let W=d?.captured.includes(E)??!1;return(0,g.jsxs)("li",{className:W?"is-done":void 0,"aria-current":!W&&(Z||d?.expected===E)?"step":void 0,children:[W?(0,g.jsxs)("span",{className:"sekyro-lm-thumb",children:[S[E]!==void 0?(0,g.jsx)("img",{src:S[E],alt:""}):null,(0,g.jsx)("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:(0,g.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,n(K)]},E)})})]}),l==="uploading"||l==="checking"?(0,g.jsx)("span",{className:"sekyro-visually-hidden",role:"status",children:t.t("doc.uploading")}):null]})})}function ea(e,t,o){return t?"single":e==="recto"||e==="verso"?e:o.recto===void 0?"recto":"verso"}function Jc({x:e,y:t,w:o,h:r},n){return`M${e+n} ${t}H${e+o-n}Q${e+o} ${t} ${e+o} ${t+n}V${t+r-n}Q${e+o} ${t+r} ${e+o-n} ${t+r}H${e+n}Q${e} ${t+r} ${e} ${t+r-n}V${t+n}Q${e} ${t} ${e+n} ${t}Z`}function el(e){let t=Math.round(e.videoWidth/4),o=Math.round(e.videoHeight/4);if(t===0||o===0||typeof document>"u")return null;try{let r=document.createElement("canvas");r.width=t,r.height=o;let n=r.getContext("2d");return n===null?null:(n.drawImage(e,0,0,t,o),r.toDataURL("image/jpeg",.7))}catch{return null}}var oe,g,Uc,js,Zs,qc,Zc,Qc,oa=_(()=>{"use strict";oe=require("react");ae();Vs();Wt();Os();Hs();Bs();Ks();qs();Ws();At();Xe();Ys();be();Pe();g=require("react/jsx-runtime"),Uc={en:Us,fr:Gs,ar:$s},js=450,Zs=s(e=>t=>ze(e.strings[t]??Uc[e.locale][t]??""),"useScanCopy");s(Qs,"ScanGlyph");qc={en:Ds,fr:Fs,ar:Es};s(Xs,"mrzInstruction");s(Js,"reasonOf");s(Gc,"DocumentCaptureView");s(Wc,"ScanMark");s(Yc,"brackets");s(jc,"DocumentIntro");s(cn,"guideRect");Zc={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"},Qc=s(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");s(Xc,"LumiereScan");s(ea,"slotOf");s(Jc,"roundedRect");s(el,"sceneSnapshot")});function ol(e,t){let o=e*.72,r=o*1.32;return{cx:e/2,cy:(t-r)/2.1+r/2,a:o/2,b:r/2}}function rl({cx:e,cy:t,a:o,b:r}){return Array.from({length:mr},(n,i)=>{let a=-Math.PI/2+i/mr*2*Math.PI,c=Math.cos(a),l=Math.sin(a),m=e+o*c,d=t+r*l,h=Math.hypot(r*c,o*l),f=r*c/h,u=o*l/h,p=s(y=>Math.round(y*10)/10,"r");return`M${p(m+f*16)} ${p(d+u*16)}L${p(m+f*28)} ${p(d+u*28)}`})}function fr({video:e,instruction:t,note:o,busy:r,progress:n,still:i,overlay:a,onClose:c,closeLabel:l,live:m=!0,children:d,testId:h}){Ko(m);let f=(0,mo.useRef)(null),[u,p]=(0,mo.useState)({w:0,h:0});(0,mo.useLayoutEffect)(()=>{let I=f.current;if(I===null)return;let x=s(()=>p({w:I.clientWidth,h:I.clientHeight}),"measure");if(x(),typeof ResizeObserver>"u")return;let z=new ResizeObserver(x);return z.observe(I),()=>z.disconnect()},[]);let y=ol(u.w,u.h),v=u.w>0?rl(y):[],L=Math.round(Math.min(1,Math.max(0,n))*mr),S=y.cy-y.b,C=Math.max(y.a,y.b)+40,k=70*Math.PI/180;return(0,te.jsx)("section",{className:"sekyro-lm sekyro-fc","aria-label":t,"data-testid":h,children:(0,te.jsxs)("div",{ref:f,className:"sekyro-lm-stage",children:[e,i?(0,te.jsx)("img",{className:"sekyro-lm-video sekyro-fc-still",src:i,alt:""}):null,a,u.w>0?(0,te.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${u.w} ${u.h}`,"aria-hidden":"true",focusable:"false",children:[(0,te.jsxs)("defs",{children:[(0,te.jsxs)("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:y.cx-C*Math.sin(k),y1:y.cy,x2:y.cx,y2:y.cy,children:[(0,te.jsx)("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),(0,te.jsx)("stop",{offset:"1",className:"sekyro-fc-fade"})]}),(0,te.jsx)("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:u.w,height:u.h,children:(0,te.jsx)("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${y.cx}px ${y.cy}px`},d:`M${y.cx} ${y.cy}L${y.cx-C*Math.sin(k)} ${y.cy-C*Math.cos(k)}A${C} ${C} 0 0 1 ${y.cx} ${y.cy-C}Z`,fill:"url(#sekyro-fc-fade)"})})]}),(0,te.jsx)("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${u.w}V${u.h}H0Z M${y.cx-y.a} ${y.cy}a${y.a} ${y.b} 0 1 0 ${2*y.a} 0a${y.a} ${y.b} 0 1 0 ${-2*y.a} 0Z`}),(0,te.jsx)("ellipse",{className:"sekyro-fc-rim",cx:y.cx,cy:y.cy,rx:y.a,ry:y.b}),(0,te.jsx)("path",{className:"sekyro-fc-ticks",d:v.join("")}),L>0?(0,te.jsx)("path",{className:"sekyro-fc-ticks is-done",d:v.slice(0,L).join("")}):null,L<mr?(0,te.jsx)("path",{className:"sekyro-fc-ticks is-light",d:v.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,(0,te.jsx)("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:S-80},children:(0,te.jsx)("div",{role:"status","aria-live":"polite",children:(0,te.jsx)(wo,{swapKey:t,className:"sekyro-lm-line",children:t})})}),o?(0,te.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:S+2*y.b+48},children:[r?(0,te.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,(0,te.jsx)("span",{children:o})]}):null,(0,te.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,te.jsx)("div",{className:"sekyro-lm-bar",children:c!==void 0?(0,te.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":l,onClick:c,children:(0,te.jsx)(fe,{name:"close"})}):null}),d]})]})})}var mo,te,mr,ln=_(()=>{"use strict";mo=require("react");At();Xe();te=require("react/jsx-runtime"),mr=72;s(ol,"faceOval");s(rl,"ticks");s(fr,"FaceCamera")});var ra={};qt(ra,{PortraitCaptureView:()=>nl});function nl({step:e,i18n:t,assetBaseUrl:o}){let{t:r}=t,n=(0,We.useRef)(null),i=(0,We.useRef)(null),[a,c]=(0,We.useState)("idle"),[l,m]=(0,We.useState)(null),[d,h]=(0,We.useState)(null),f=ye(),u=(0,We.useContext)(Zt);(0,We.useEffect)(()=>{let B=n.current;if(B===null)return;let $=e.capture({video:B,...o!==void 0?{assetBaseUrl:o}:{}});i.current=$;let b=[$.on("state",c),$.on("gate",m),$.on("error",h)];return $.start().catch(()=>{}),()=>{for(let A of b)A();$.destroy(),i.current=null}},[]);let p=a==="uploading"||a==="checking",y=a==="done",v=y&&e.reason!==void 0&&!e.uploadFailed,L=a==="starting"||a==="idle"?"portrait.starting":a==="captured"?"portrait.taken":a==="uploading"?"portrait.uploading":a==="checking"?"portrait.checking":`portrait.coach.${l?.coach??"no_face"}`,S=(e.report??[]).filter(B=>!B.pass),C=e.reason!==void 0?`reasons.${e.reason}`:null,k=s(()=>{h(null),i.current?.retry()},"retake"),I=s(B=>{let $=l?.criteria.find(b=>b.criterion===B);return $!==void 0&&($.held||$.waived)},"met"),x=l?.ready||a==="captured"||p?1:un.filter(I).length/un.length,z=C!==null&&(a==="gating"||v);return(0,se.jsxs)(fr,{testId:"sekyro-portrait",video:(0,se.jsx)("video",{ref:n,className:"sekyro-lm-video sekyro-fc-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true"}),instruction:r(L),progress:x,closeLabel:r("native.close"),...u!==void 0?{onClose:u}:{},children:[(0,se.jsx)("h2",{ref:f,tabIndex:-1,className:"sekyro-visually-hidden",children:r(e.reason!==void 0?"portrait.retryTitle":"session.steps.portrait.title")}),z||d!==null||y&&(e.uploadFailed||!e.attemptsExhausted)?(0,se.jsxs)("div",{className:"sekyro-fc-panel",children:[z?(0,se.jsxs)(D,{tone:"warning",children:[(0,se.jsx)("span",{children:t.strings[C]!==void 0?r(C):r("portrait.retryTitle")}),S.length>0?(0,se.jsxs)("span",{children:[r("portrait.reportTitle"),": ",S.map(B=>r(`portrait.report.${B.criterion}`)).join(", ")]}):null,(0,se.jsx)("span",{children:Be(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,d!==null?(0,se.jsxs)(D,{tone:"danger",children:[(0,se.jsx)("span",{children:r("portrait.cameraBlocked")}),(0,se.jsx)("span",{children:r("portrait.cameraBlockedHint")}),(0,se.jsx)(R,{kind:"ghost",onClick:k,children:r("portrait.retryCamera")})]}):null,e.uploadFailed&&y?(0,se.jsx)(D,{tone:"danger",children:(0,se.jsx)("span",{children:r("portrait.uploadFailed")})}):null,y&&!e.attemptsExhausted?(0,se.jsx)(R,{full:!0,onClick:k,disabled:p,children:r("portrait.retake")}):null]}):null,(0,se.jsx)("ul",{className:"sekyro-fc-checks","aria-label":r("portrait.checksLabel"),children:un.map(B=>(0,se.jsxs)("li",{className:I(B)?"is-met":void 0,children:[(0,se.jsx)("span",{className:"sekyro-fc-mark","aria-hidden":"true",children:(0,se.jsx)("svg",{viewBox:"0 0 18 18",children:(0,se.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})}),(0,se.jsx)("span",{children:r(`portrait.criteria.${B}`)}),(0,se.jsx)("span",{className:"sekyro-visually-hidden",children:r(I(B)?"portrait.met":"portrait.notMet")})]},B))})]})}var We,se,un,na=_(()=>{"use strict";We=require("react");ae();ct();ln();Xe();Pe();se=require("react/jsx-runtime"),un=["pose","eyes","mouth","lighting","background","resolution"];s(nl,"PortraitCaptureView")});var Rl={};qt(Rl,{DocumentCapture:()=>pr,EidStep:()=>Qo,EmailOtpStep:()=>Wo,MethodChoice:()=>lr,NniEntry:()=>ur,PhoneOtpStep:()=>Go,PortraitCapture:()=>yr,SekyroFlow:()=>ya,SekyroVerification:()=>Sr,StepI18nProvider:()=>Yt,VerificationResultScreen:()=>br,arSteps:()=>Mo,enSteps:()=>Ao,formatTemplate:()=>ze,frSteps:()=>Vo,isInAppBrowser:()=>_r,resolveSekyroStrings:()=>Vr,useStepI18n:()=>ne,useVerificationStep:()=>Bo});module.exports=Na(Rl);Tr();zr();Pr();be();var Co=require("react");function Bo(e){let[t,o]=(0,Co.useState)(()=>e?.currentStep?.()??null),[r,n]=(0,Co.useState)(null);return(0,Co.useEffect)(()=>{if(e===void 0)return;if(typeof e.run!="function"){n(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let i=!0,a=e.on("step",c=>{i&&o(c)});return e.run().then(c=>{i&&o(l=>l??c)},c=>{i&&n(c)}),()=>{i=!1,a()}},[e]),{step:t,error:r}}s(Bo,"useVerificationStep");var $e=require("react");ae();Er();Tt();Xe();be();Pe();qo();var O=require("react/jsx-runtime"),$n=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),La=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Ta=["whatsapp","sms"],za=new Set(["otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited"]),zt="+222";function Pa(e){let t=e.replace(/[\s-]/g,""),o=t.startsWith("+")?t.slice(1):t;return/^\d{8,15}$/.test(o)?`+${o}`:null}s(Pa,"normalizedPhone");function Ma({id:e,label:t,value:o,onChange:r,placeholder:n}){let i=o.startsWith("+")&&!o.startsWith(zt),a=i?o:o.slice(o.startsWith(zt)?zt.length:0).trim(),c=(0,$e.useRef)(null);return(0,$e.useEffect)(()=>{let l=setTimeout(()=>c.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(l)},[]),(0,O.jsxs)("div",{className:"sekyro-field",children:[(0,O.jsx)("label",{className:"sekyro-label",htmlFor:e,children:t}),(0,O.jsxs)("div",{className:"sekyro-phone",dir:"ltr",children:[i?null:(0,O.jsxs)("span",{className:"sekyro-phone__dial",id:`${e}-dial`,children:[(0,O.jsx)("span",{className:"sekyro-phone__flag","aria-hidden":"true",children:"🇲🇷"}),zt]}),(0,O.jsx)("input",{ref:c,id:e,className:"sekyro-phone__input",type:"tel",dir:"ltr",inputMode:"tel",autoComplete:"tel",...i?{}:{"aria-describedby":`${e}-dial`},placeholder:n,value:a,onChange:l=>{let m=l.target.value.replace(/[^\d +]/g,"");r(m.startsWith("+")?m:zt+m.replace(/\D/g,""))}})]})]})}s(Ma,"PhoneField");function Go({step:e,locale:t,strings:o,className:r,defaultPhone:n=zt,onError:i}){let a=ne(t,o),{t:c}=a,[l,m]=(0,$e.useState)(n),[d,h]=(0,$e.useState)(""),[f,u]=(0,$e.useState)(!1),[p,y]=(0,$e.useState)(null),v=e.phase==="verify",L=Xt(v),S=(0,$e.useId)(),C=s(async w=>{u(!0),y(null);try{await w()}catch(X){y(Ee(X,a.strings)),i?.(X)}finally{u(!1)}},"run"),k=Ta.filter(w=>(e.channels??[]).includes(w)),I=Pa(l),x=!e.needsPhone||I!==null,z=s((w,X=!1)=>{C(()=>e.send({...e.needsPhone&&(!X||l!==n)?{phone:I??l}:{},...w!==void 0?{channel:w}:{}}))},"send"),B=s(w=>{C(()=>e.verify(w))},"submitCode"),$=s(w=>{w.preventDefault(),v?B(d):k.length<=1&&x&&z(k[0])},"onSubmit"),b=$n(e.codeExpiresAt,L),A=$n(e.resendAvailableAt,L),H=v&&e.codeExpiresAt!==void 0&&b===0,re=s(w=>c(w==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),[Z,_e]=c("otp.sentTo",{channel:re(e.channel)}).split("{number}"),P=e.reason==="otp_mismatch"?(0,O.jsxs)(D,{tone:"danger",children:[(0,O.jsx)("span",{children:c("otp.reason_otp_mismatch")}),(0,O.jsx)("span",{children:Be(a,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&za.has(e.reason)?(0,O.jsx)(D,{tone:"warning",children:(0,O.jsx)("span",{children:c(`otp.reason_${e.reason}`)})}):null,V=(0,O.jsxs)(O.Fragment,{children:[P,p!==null?(0,O.jsx)(D,{tone:"danger",children:(0,O.jsx)("span",{children:c(p)})}):null]});if(v){let w=k.length===0;return(0,O.jsxs)("form",{className:`sekyro-step sekyro-otp${r?` ${r}`:""}`,"aria-labelledby":S,onSubmit:$,noValidate:!0,children:[(0,O.jsx)(Ie,{id:S,title:c("otp.verifyTitle"),lead:(0,O.jsxs)(O.Fragment,{children:[Z,(0,O.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),_e]})}),V,(0,O.jsxs)("div",{className:"sekyro-field",children:[(0,O.jsx)("label",{className:"sekyro-label",htmlFor:`${S}-code`,children:c("otp.codeLabel")}),(0,O.jsx)($o,{id:`${S}-code`,value:d,invalid:e.reason==="otp_mismatch",onChange:X=>{h(X),X.length===6&&d.length!==6&&!f&&!e.attemptsExhausted&&B(X)}}),(0,O.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${H?" is-danger":""}`,"aria-hidden":!H||void 0,children:H?c("otp.expired"):c("otp.expiresIn",{time:La(b)})})]}),(0,O.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:H?c("otp.expired"):""}),(0,O.jsxs)(xe,{children:[(0,O.jsx)(R,{type:"submit",full:!0,disabled:f||d.length!==6||e.attemptsExhausted,"aria-busy":f||void 0,children:c("otp.verify")}),w?(0,O.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:f||A>0,onClick:()=>z(void 0,!0),children:A>0?c("otp.resendIn",{seconds:A}):c("otp.resend")}):A>0?(0,O.jsx)("p",{className:"sekyro-resend is-waiting",children:c("otp.resendIn",{seconds:A})}):(0,O.jsx)("div",{className:"sekyro-resend-row",children:k.map(X=>(0,O.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:f,onClick:()=>z(X,!0),children:c("otp.resendBy",{channel:re(X)})},X))})]})]})}return(0,O.jsxs)("form",{className:`sekyro-step sekyro-otp${r?` ${r}`:""}`,"aria-labelledby":S,onSubmit:$,noValidate:!0,children:[(0,O.jsx)(Ie,{id:S,title:c("otp.sendTitle"),lead:c("otp.sendDescription")}),V,e.needsPhone?(0,O.jsx)(Ma,{id:`${S}-phone`,label:c("otp.phoneLabel"),value:l,onChange:m,placeholder:c("otp.phonePlaceholder").replace(zt,"").trim()}):(0,O.jsx)("p",{className:"sekyro-text-muted",children:c("otp.prefilledNotice")}),(0,O.jsx)(xe,{children:k.length>0?(0,O.jsxs)("div",{className:"sekyro-actions__group",role:"group","aria-label":c("otp.chooseChannel"),children:[(0,O.jsx)("p",{className:"sekyro-label","aria-hidden":"true",children:c("otp.chooseChannel")}),k.map((w,X)=>(0,O.jsx)(R,{kind:X===0?"primary":"ghost",full:!0,disabled:f||!x,"aria-busy":X===0&&f||void 0,onClick:()=>z(w),children:c("otp.sendBy",{channel:re(w)})},w))]}):(0,O.jsx)(R,{type:"submit",full:!0,disabled:f||!x,"aria-busy":f||void 0,children:c("otp.send")})})]})}s(Go,"PhoneOtpStep");var kt=require("react");ae();var Kn=require("react");var Dr=class Dr extends Kn.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};s(Dr,"LoadBoundary");var Je=Dr;be();Pe();var lt=require("react/jsx-runtime"),Da={load:s(()=>Promise.resolve().then(()=>(Jn(),Xn)),"load")};function Wo({locale:e,strings:t,...o}){let r=ne(e,t),[n,i]=(0,kt.useState)(0),a=(0,kt.useMemo)(()=>(0,kt.lazy)(()=>Da.load().then(l=>({default:l.EmailOtpView}))),[n]),c=(0,lt.jsxs)(D,{tone:"danger",children:[(0,lt.jsx)("span",{children:r.t("errors.network_error")}),(0,lt.jsx)(R,{kind:"ghost",onClick:()=>i(l=>l+1),children:r.t("common.retry")})]});return(0,lt.jsx)(Je,{fallback:c,children:(0,lt.jsx)(kt.Suspense,{fallback:(0,lt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:r.t("common.loading")}),children:(0,lt.jsx)(a,{...o,i18n:r})})},n)}s(Wo,"EmailOtpStep");var bt=require("react");ae();be();Pe();var ut=require("react/jsx-runtime"),$a={load:s(()=>Promise.resolve().then(()=>(ri(),oi)),"load")};function Qo({locale:e,strings:t,...o}){let r=ne(e,t),[n,i]=(0,bt.useState)(0),a=(0,bt.useMemo)(()=>(0,bt.lazy)(()=>$a.load().then(l=>({default:l.EidView}))),[n]),c=(0,ut.jsxs)(D,{tone:"danger",children:[(0,ut.jsx)("span",{children:r.t("errors.network_error")}),(0,ut.jsx)(R,{kind:"ghost",onClick:()=>i(l=>l+1),children:r.t("common.retry")})]});return(0,ut.jsx)(Je,{fallback:c,children:(0,ut.jsx)(bt.Suspense,{fallback:(0,ut.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:r.t("common.loading")}),children:(0,ut.jsx)(a,{...o,i18n:r})})},n)}s(Qo,"EidStep");var co=require("react");Kr();Te();var wt=require("react");ae();Pe();var ft=require("react/jsx-runtime"),Hc={load:s(()=>Promise.resolve().then(()=>(zs(),Ts)),"load")};function Ue({view:e,i18n:t,quiet:o,...r}){let[n,i]=(0,wt.useState)(0),a=(0,wt.useMemo)(()=>(0,wt.lazy)(()=>Hc.load().then(l=>({default:l[e]}))),[e,n]),c=(0,ft.jsxs)(D,{tone:"danger",children:[(0,ft.jsx)("span",{children:t.t("errors.network_error")}),(0,ft.jsx)(R,{kind:"ghost",onClick:()=>i(l=>l+1),children:t.t("common.retry")})]});return(0,ft.jsx)(Je,{fallback:c,children:(0,ft.jsx)(wt.Suspense,{fallback:o===!0?null:(0,ft.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:t.t("common.loading")}),children:(0,ft.jsx)(a,{...r,i18n:t})})},n)}s(Ue,"Flow");be();var ao=require("react/jsx-runtime");function lr({step:e,locale:t,strings:o,className:r,onError:n}){let i=ne(t,o),[a,c]=(0,co.useState)(!1),[l,m]=(0,co.useState)(!1),d=(0,co.useMemo)(()=>e.options.filter(p=>p!=="document_chip"),[e.options]),h=e.nationalEid?.providerName,f=h?i.t("method.national_eid",{provider:h}):i.t("method.national_eidGeneric"),u=(0,co.useMemo)(()=>p=>i.strings[p]??"",[i]);return(0,ao.jsxs)("div",{className:r,children:[(0,ao.jsx)(Fo,{value:u,children:(0,ao.jsx)(Xo,{choice:{available:!0,selected:null,options:d},busy:a,failed:l,focus:!0,eidLabel:f,onSelect:p=>{c(!0),m(!1),e.select(p).then(()=>c(!1),y=>{c(!1),m(!0),n?.(y)})}})}),e.nationalEid?.afterPass==="continue"&&d.includes("national_eid")?(0,ao.jsx)(Ue,{view:"EidContinueHint",i18n:i,provider:h,quiet:!0}):null]})}s(lr,"MethodChoice");var Io=require("@sekyro/web"),lo=require("react");ae();Tt();Xe();be();Pe();var ee=require("react/jsx-runtime");function ur({step:e,locale:t,strings:o,className:r,onError:n}){let i=ne(t,o),{t:a}=i,[c,l]=(0,lo.useState)(""),[m,d]=(0,lo.useState)(!1),[h,f]=(0,lo.useState)(null),u=(0,lo.useId)(),p=e.attemptsExhausted,y=s(async x=>{d(!0),f(null);try{await x()}catch(z){f(Ee(z,i.strings)),n?.(z)}finally{d(!1)}},"run"),v=s(x=>{if(x.preventDefault(),e.source!=="typed"){y(()=>e.confirm());return}let z=(0,Io.normalizeNni)(c);if(!/^\d{10}$/.test(z))return f("population.invalid");if(!(0,Io.isValidNni)(z))return f("population.reason_nni_invalid");y(()=>e.submitNni(z))},"onSubmit"),L=Be(i,e.attemptsRemaining,p),S=(0,ee.jsxs)(ee.Fragment,{children:[e.reason==="registry_unavailable"?(0,ee.jsxs)(D,{tone:"warning",children:[(0,ee.jsx)("span",{children:a("population.reason_registry_unavailable")}),(0,ee.jsx)("span",{children:L})]}):null,e.reason==="nni_not_found"&&e.canUseDocument?(0,ee.jsxs)(D,{tone:"warning",children:[(0,ee.jsx)("span",{children:a("population.reason_nni_not_found_or_document")}),(0,ee.jsx)("span",{children:L}),(0,ee.jsx)(R,{kind:"ghost",disabled:m,onClick:()=>{y(()=>e.useDocument())},children:a("population.useDocument")})]}):null,e.reason==="nni_not_found"&&!e.canUseDocument||e.reason==="nni_invalid"?(0,ee.jsxs)(D,{tone:"danger",children:[(0,ee.jsx)("span",{children:a(e.reason==="nni_not_found"?"population.reason_nni_not_found":"population.reason_nni_invalid")}),(0,ee.jsx)("span",{children:L})]}):null,p&&e.reason===void 0?(0,ee.jsx)(D,{tone:"danger",children:(0,ee.jsx)("span",{children:L})}):null,h!==null?(0,ee.jsx)(D,{tone:"danger",children:(0,ee.jsx)("span",{children:a(h)})}):null]}),[C,k,I]=e.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:e.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:e.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return(0,ee.jsxs)("form",{className:`sekyro-step${r?` ${r}`:""}`,"aria-labelledby":u,onSubmit:v,noValidate:!0,children:[(0,ee.jsx)(Ie,{id:u,title:a(C),lead:a(k)}),S,e.source==="typed"?(0,ee.jsxs)("div",{className:"sekyro-field",children:[(0,ee.jsx)("label",{className:"sekyro-label",htmlFor:`${u}-nni`,children:a("population.label")}),(0,ee.jsx)("input",{id:`${u}-nni`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:a("population.placeholder"),value:c,"aria-describedby":`${u}-nni-help`,"aria-invalid":h==="population.invalid"||h==="population.reason_nni_invalid"||void 0,onChange:x=>{f(null),l((0,Io.normalizeNni)(x.target.value).replace(/\D/g,"").slice(0,10))}}),(0,ee.jsx)("span",{id:`${u}-nni-help`,className:"sekyro-help",children:a("population.helper")})]}):null,(0,ee.jsx)(xe,{children:p?null:(0,ee.jsx)(R,{type:"submit",full:!0,disabled:m,"aria-busy":m||void 0,children:a(I)})})]})}s(ur,"NniEntry");var po=require("@sekyro/web"),Ge=require("react");ae();var uo=require("@sekyro/web"),He=require("react");At();Xe();var ie=require("react/jsx-runtime"),Ps=s(e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),"fold"),Fc=s(e=>String.fromCodePoint(...Array.from(e.toUpperCase(),t=>127397+t.charCodeAt(0))),"flag"),Bc=220;function $c(e,t){let o=null;try{o=new Intl.DisplayNames([e],{type:"region"})}catch{}let r=t.map(i=>({code:i,name:o?.of(i)??i})),n=new Intl.Collator(e);return r.sort((i,a)=>i.code==="MR"?-1:a.code==="MR"?1:n.compare(i.name,a.name))}s($c,"countryNames");function Ms({step:e,i18n:t,issuer:o,onPicked:r}){let{t:n,locale:i}=t,a=(0,He.useMemo)(()=>(0,uo.acceptedIssuers)(e.documents),[e.documents]),c=(0,He.useMemo)(()=>$c(i,a),[i,a]),l=a.length===1?a[0]:null,[m,d]=(0,He.useState)(o??l),[h,f]=(0,He.useState)(""),[u,p]=(0,He.useState)(null),y=(0,He.useId)(),v=l===null?[]:(0,uo.acceptedTypesFor)(e.documents,l),L=l!==null&&v.length===1?v[0]:null;(0,He.useEffect)(()=>{l!==null&&L!==null&&e.selectDocument(l,L)},[l,L]);let S=s((I,x)=>{e.selectDocument(I,x),r?.()},"pick"),C=s(I=>{let x=(0,uo.acceptedTypesFor)(e.documents,I);x.length===1?S(I,x[0]):d(I)},"chooseIssuer");if((0,He.useEffect)(()=>{if(u===null||m===null)return;let I=setTimeout(()=>S(m,u),Bc);return()=>clearTimeout(I)},[u]),L!==null)return null;if(m===null){let I=Ps(h.trim()),x=I===""?c:c.filter(z=>Ps(z.name).includes(I)||z.code.toLowerCase()===I);return(0,ie.jsxs)("section",{className:"sekyro-step",children:[(0,ie.jsx)(Ie,{title:n("doc.countryTitle"),lead:n("doc.pickDescription")}),(0,ie.jsxs)("div",{className:"sekyro-field",children:[(0,ie.jsx)("label",{className:"sekyro-label",htmlFor:y,children:n("doc.countryLabel")}),(0,ie.jsx)("input",{id:y,type:"search",className:"sekyro-input",placeholder:n("doc.countrySearch"),value:h,onChange:z=>f(z.target.value)})]}),x.length===0?(0,ie.jsx)("p",{className:"sekyro-text-muted",children:n("doc.noCountryMatch")}):(0,ie.jsx)("ul",{className:"sekyro-rows",children:x.map(z=>(0,ie.jsx)("li",{children:(0,ie.jsxs)("button",{type:"button",className:"sekyro-row-btn",onClick:()=>C(z.code),children:[(0,ie.jsx)("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:Fc(z.code)}),z.name]})},z.code))}),(0,ie.jsx)(xe,{children:null})]})}let k=(0,uo.acceptedTypesFor)(e.documents,m);return(0,ie.jsxs)("section",{className:"sekyro-step",children:[(0,ie.jsx)(Ie,{title:n("doc.pickTitle"),lead:n("native.doc.holdIt")}),(0,ie.jsx)("div",{className:"sekyro-choices",children:k.map(I=>(0,ie.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":u===I,disabled:u!==null&&u!==I,onClick:()=>p(I),children:[(0,ie.jsx)(fe,{name:I==="passport"?"passport":"card"}),(0,ie.jsxs)("span",{className:"sekyro-card__body",children:[(0,ie.jsx)("span",{className:"sekyro-card__title",children:n(`doc.type.${I}`)}),(0,ie.jsx)("span",{className:"sekyro-card__sub",children:n(`doc.sub.${I}`)})]}),(0,ie.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},I))}),a.length>1?(0,ie.jsx)("button",{type:"button",className:"sekyro-link",onClick:()=>{d(null),p(null)},children:n("native.doc.changeCountry")}):null,(0,ie.jsx)(xe,{children:null})]})}s(Ms,"DocumentPicker");be();Pe();var qe=require("react/jsx-runtime"),tl={load:s(()=>Promise.resolve().then(()=>(oa(),ta)),"load")};function pr({step:e,locale:t,strings:o,className:r,liveMrz:n}){let i=ne(t,o),[a,c]=(0,Ge.useState)(0),[l,m]=(0,Ge.useState)(null),d=(0,po.acceptedIssuers)(e.documents).length>1,h=e.issuer!==null&&(0,po.acceptedTypesFor)(e.documents,e.issuer).length>1,f=(0,Ge.useMemo)(()=>(0,Ge.lazy)(()=>tl.load().then(p=>({default:p.DocumentCaptureView}))),[a]);(0,Ge.useEffect)(()=>{(0,po.warmDocumentCapture)()},[]);let u=(0,qe.jsxs)(D,{tone:"danger",children:[(0,qe.jsx)("span",{children:i.t("errors.network_error")}),(0,qe.jsx)(R,{kind:"ghost",onClick:()=>c(p=>p+1),children:i.t("doc.retryCamera")})]});return(0,qe.jsx)("div",{className:r,children:e.documentType===null||e.issuer===null||l!==null?(0,qe.jsx)(Ms,{step:e,i18n:i,...l==="document"&&e.issuer!==null?{issuer:e.issuer}:{},onPicked:()=>m(null)}):(0,qe.jsx)(Je,{fallback:u,children:(0,qe.jsx)(Ge.Suspense,{fallback:(0,qe.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:i.t("common.loading")}),children:(0,qe.jsx)(f,{step:e,i18n:i,...n!==void 0?{liveMrz:n}:{},...d?{onChangeCountry:s(()=>m("country"),"onChangeCountry")}:{},...h?{onChangeDocument:s(()=>m("document"),"onChangeDocument")}:{}})})},a)})}s(pr,"DocumentCapture");var ia=require("@sekyro/web"),Fe=require("react");ae();ct();be();Pe();var he=require("react/jsx-runtime"),il={load:s(()=>Promise.resolve().then(()=>(na(),ra)),"load")},pn=class pn extends Fe.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};s(pn,"LoadBoundary");var dn=pn;function sl({step:e,i18n:t}){let{t:o}=t,r=ye();return(0,he.jsxs)("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[(0,he.jsx)("h2",{ref:r,tabIndex:-1,className:"sekyro-text-body",children:o(e.review?"portrait.reviewTitle":"session.steps.portrait.title")}),e.review?(0,he.jsx)("p",{className:"sekyro-text-muted",children:o("portrait.reviewDescription")}):null,e.uploadFailed?(0,he.jsxs)(D,{tone:"danger",children:[(0,he.jsx)("span",{children:o("portrait.uploadFailed")}),(0,he.jsx)(R,{kind:"ghost",onClick:()=>{e.resubmit()},children:o("portrait.sendAgain")})]}):(0,he.jsx)("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:o("portrait.matching")})]})}s(sl,"MatchPhase");function yr({step:e,locale:t,strings:o,className:r,assetBaseUrl:n}){let i=ne(t,o),[a,c]=(0,Fe.useState)(0),l=(0,Fe.useMemo)(()=>(0,Fe.lazy)(()=>il.load().then(d=>({default:d.PortraitCaptureView}))),[a]);if((0,Fe.useEffect)(()=>{e.phase==="capture"&&(0,ia.warmPortraitCapture)()},[e.phase]),e.phase==="match")return(0,he.jsx)("div",{className:r,children:(0,he.jsx)(sl,{step:e,i18n:i})});let m=(0,he.jsxs)(D,{tone:"danger",children:[(0,he.jsx)("span",{children:i.t("errors.network_error")}),(0,he.jsx)(R,{kind:"ghost",onClick:()=>c(d=>d+1),children:i.t("portrait.retryCamera")})]});return(0,he.jsx)("div",{className:r,children:(0,he.jsx)(dn,{fallback:m,children:(0,he.jsx)(Fe.Suspense,{fallback:(0,he.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:i.t("common.loading")}),children:(0,he.jsx)(l,{step:e,i18n:i,...n!==void 0?{assetBaseUrl:n}:{}})})},a)})}s(yr,"PortraitCapture");var ke=require("react");ae();var Ae={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'};Xr();qr();Qt();var sa=require("react/jsx-runtime"),Ro={colors:{brand:"#1e40af",brandFg:"#ffffff",fg:"#111827",fgMuted:"#4b5563",bg:"#f8fafc",surface:"#ffffff",ring:"#1e40af",danger:"#b91c1c",success:"#15803d",warning:"#a16207"},radius:"12px",fontFamily:'system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif'},mn={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 al(e={}){let t={};for(let o of Object.keys(mn))t[mn[o]]=e.colors?.[o]??Ro.colors[o];return t["--sekyro-radius"]=e.radius??Ro.radius,t["--sekyro-font"]=e.fontFamily??Ro.fontFamily,t}s(al,"themeToCssVars");var cl=/^#[0-9a-f]{6}$/i,ll={none:"0px",sm:"4px",md:"8px",lg:"12px",full:"9999px"},ul={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function hr(e){let t={};if(!e)return t;let o={};for(let[i,a]of Object.entries(e.colors??{}))i in mn&&i!=="ring"&&cl.test(a??"")&&(o[i]=a);o.brand&&(o.ring=o.brand),Object.keys(o).length&&(t.colors=o);let r=ll[e.radius];r&&(t.radius=r);let n=ul[e.fontFamily];return n!==void 0&&(t.fontFamily=n?`${n}, ${Ro.fontFamily}`:Ro.fontFamily),t}s(hr,"brandingToTheme");function gr(...e){let t={};for(let o of e)o?.colors&&(t.colors={...t.colors,...o.colors}),o?.radius&&(t.radius=o.radius),o?.fontFamily&&(t.fontFamily=o.fontFamily);return t}s(gr,"mergeThemes");function vr({theme:e,children:t,className:o}){let r=al(e);return(0,sa.jsx)("div",{className:o===void 0?"sekyro-root":`sekyro-root ${o}`,style:r,children:t})}s(vr,"SekyroThemeProvider");var kr=require("react");var Vt=require("react/jsx-runtime"),dl=["intro","data","processing","sharing","retention"];function aa({i18n:e}){let{t}=e,[o,r]=(0,kr.useState)(!1),n=(0,kr.useId)(),[i,a=""]=t("consent.short").split("{terms}");return(0,Vt.jsxs)("section",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-consent",children:[(0,Vt.jsxs)("p",{className:"sekyro-text-muted",children:[i,(0,Vt.jsx)("button",{type:"button",className:"sekyro-link","aria-expanded":o,"aria-controls":n,onClick:()=>r(c=>!c),children:t("consent.termsLink")}),a]}),(0,Vt.jsx)("div",{id:n,hidden:!o,className:"sekyro-stack sekyro-stack--1 sekyro-text-muted","data-testid":"sekyro-consent-terms",children:dl.map(c=>(0,Vt.jsx)("p",{children:t(`consent.terms.${c}`)},c))})]})}s(aa,"ConsentNotice");Tt();ln();Jr();At();function ca(e){let t=e.trim().split(/\s+/).filter(r=>r!=="");return(t.length>=2?[t[0],t[1]].map(r=>Array.from(r??"")[0]??""):Array.from(t[0]??"").slice(0,2)).join("").toUpperCase()}s(ca,"initials");Xe();var ua=require("react");var da=s(e=>({colors:{...e?Ae.dark:Ae.light},radius:Ae.radiusLg,fontFamily:Ae.font}),"brandTheme"),dy=da(!1);function pa(e,t,o){let r=hr(e);if(o&&r.colors!==void 0){let{brand:n,brandFg:i}=r.colors;n!==void 0&&yl(n,Ae.dark.bg)>=3?r.colors={brand:n,ring:n,...i!==void 0?{brandFg:i}:{}}:delete r.colors}return gr(da(o),r,t)}s(pa,"verificationTheme");function ma(e){let t=(0,ua.useSyncExternalStore)(fl,ml,()=>!1);return e==="dark"||e==="system"&&t}s(ma,"useDarkScheme");var pl="(prefers-color-scheme: dark)",fa=s(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(pl):null,"media"),ml=s(()=>fa()?.matches??!1,"prefersDark");function fl(e){let t=fa();return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}s(fl,"subscribe");function yl(e,t){let[o,r]=[la(e),la(t)];return(Math.max(o,r)+.05)/(Math.min(o,r)+.05)}s(yl,"contrast");function la(e){let t=[1,3,5].map(o=>{let r=Number.parseInt(e.slice(o,o+2),16)/255;return r<=.03928?r/12.92:((r+.055)/1.055)**2.4});return .2126*(t[0]??0)+.7152*(t[1]??0)+.0722*(t[2]??0)}s(la,"luminance");be();var fo=require("react");Wt();ct();ae();At();be();var ge=require("react/jsx-runtime"),hl=new Set(["document_nni_mismatch","name_mismatch","birth_date_mismatch"]),gl={approved:"M6.5 12.5l3.6 3.6 7.4-8.2",review:"M12 7v5l3.2 2",expired:"M8 5h8M8 19h8M9 5c0 4 6 5 6 7s-6 3-6 7M15 5c0 4-6 5-6 7s6 3 6 7",rejected:"M8 8l8 8M16 8l-8 8"};function vl({outcome:e}){return(0,ge.jsxs)("svg",{className:`sekyro-outcome sekyro-outcome--${e}`,viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[(0,ge.jsx)("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"57",pathLength:"1"}),(0,ge.jsx)("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),(0,ge.jsx)("path",{className:"sekyro-outcome__glyph",d:gl[e],pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]})}s(vl,"OutcomeMark");function kl({label:e,id:t,copied:o}){let[r,n]=(0,fo.useState)(!1);return(0,fo.useEffect)(()=>{if(!r)return;let i=setTimeout(()=>n(!1),1600);return()=>clearTimeout(i)},[r]),(0,ge.jsxs)("button",{type:"button",className:`sekyro-reference${r?" is-copied":""}`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>n(!0),()=>{})},children:[(0,ge.jsx)("span",{"aria-live":"polite",children:r?o:e}),(0,ge.jsx)("bdi",{dir:"ltr",children:t}),(0,ge.jsx)(fe,{name:"copy"})]})}s(kl,"ReferenceLine");function br({step:e,locale:t,strings:o,className:r,onClose:n}){let i=ne(t,o),{t:a}=i,c=(0,fo.useId)(),l=ye(),m=e.context.orgName,d=e.display==="approved"?"approved":e.display==="review"?"review":e.display==="expired"?"expired":"rejected",h;switch(e.display){case"policy_stop":{let f=e.failureReason??"";if(hl.has(f))h=a("session.result.detailsMismatch",{org:m});else if(f==="device_velocity_exceeded")h=a("session.result.deviceVelocity",{org:m});else{let u=Gt(f);h=u!==null?a(u,{org:m}):a("session.result.rejected.description")}break}case"cooldown":{let f=Eo(i.locale,e.retryAfter);h=f!==null?a(f.key,{time:f.time}):a("reasons.device_cooldown");break}case"platform_unsupported":h=a("result.platform_unsupported");break;case"attempts_exhausted":h=a("common.noAttemptsLeft");break;default:h=m!==""?a(`native.result.${d}`,{org:m}):a(`session.result.${d}.description`)}return(0,ge.jsxs)("section",{className:`sekyro-result${r?` ${r}`:""}`,"aria-labelledby":c,"data-testid":"sekyro-result",children:[(0,ge.jsxs)("div",{className:"sekyro-result__body",children:[(0,ge.jsx)(vl,{outcome:e.display==="cooldown"?"review":d}),(0,ge.jsxs)("div",{className:"sekyro-heading",children:[(0,ge.jsx)("h2",{id:c,ref:l,tabIndex:-1,className:"sekyro-text-body",children:a(`session.result.${d}.title`)}),(0,ge.jsx)("p",{className:"sekyro-text-muted",children:h})]}),(0,ge.jsx)(kl,{label:a("result.referenceLabel"),id:e.context.sessionId,copied:a("native.result.copied")})]}),n!==void 0?(0,ge.jsx)("div",{className:"sekyro-actions",children:(0,ge.jsx)(R,{full:!0,onClick:n,children:m!==""?a("native.result.back",{org:m}):a("native.close")})}):null]})}s(br,"VerificationResultScreen");var N=require("react/jsx-runtime");function bl(e,t){let o=t?Ae.dark:Ae.light,r=t?Ae.roles.dark:Ae.roles.light,n=e.colors??{},i={},a=n.fg===o.fg&&n.surface===o.surface;return n.brand===o.brand&&n.surface===o.surface&&(i["--sekyro-color-brand-soft"]=r.brandSoft),a&&(i["--sekyro-color-line"]=r.line,i["--sekyro-color-line-subtle"]=r.lineSubtle,i["--sekyro-color-line-strong"]=r.lineStrong,i["--sekyro-color-sunken"]=r.sunken),n.fgMuted===o.fgMuted&&n.surface===o.surface&&(i["--sekyro-color-fg-subtle"]=r.fgSubtle),e.fontFamily===Ae.font&&(i["--sekyro-font-display"]=Ae.fontDisplay),i}s(bl,"flowRoles");function Sr(e){let{verification:t,locale:o,strings:r,onStep:n,onResult:i}=e,{step:a,error:c}=Bo(t);(0,ke.useEffect)(()=>{a!==null&&n?.(a)},[a,n]),(0,ke.useEffect)(()=>i===void 0?void 0:t.on("result",i),[t,i]);let l=ma(e.colorScheme??"light"),m=pa(a?.context.branding,e.theme,l),[d,h]=(0,ke.useState)(!1),f=`sekyro-verification${l?" sekyro-verification--dark":""}${d?" is-immersive":""}${e.className!==void 0?` ${e.className}`:""}`,u=(0,ke.useRef)(e.onClose);u.current=e.onClose;let p=(0,ke.useRef)(a);p.current=a;let y=(0,ke.useCallback)(()=>{let v=p.current;u.current?.(v?.kind==="result"?{reason:"finished",result:v.result}:{reason:"cancelled"})},[]);return(0,N.jsx)(vr,{theme:m,className:f,children:(0,N.jsx)(Yt,{locale:o,...r!==void 0?{strings:r}:{},children:(0,N.jsx)("div",{dir:e.dir??(o==="ar"?"rtl":"ltr"),lang:o,className:"sekyro-flow",style:bl(m,l),children:(0,N.jsx)(Or.Provider,{value:h,children:(0,N.jsx)(Zt.Provider,{value:e.onClose!==void 0?y:void 0,children:(0,N.jsx)(Sl,{...e,step:a,error:c,immersive:d})})})})})})}s(Sr,"SekyroVerification");function Sl(e){let{step:t,error:o,slots:r,immersive:n}=e,i=ne(),{t:a}=i,[c,l]=(0,ke.useState)(!1),[m,d]=(0,ke.useState)(0),h=(0,ke.useCallback)((k,I)=>(0,N.jsx)(cr,{start:k,context:I}),[]),f=(0,ke.useRef)(""),u=e.livenessProps?.slots?.stageOverlay,p=(0,ke.useCallback)(k=>(k.guidance!==""&&!k.coached&&(f.current=k.guidance),(0,N.jsx)(fr,{testId:"sekyro-capture-stage",video:(0,N.jsx)("video",{ref:k.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:k.guidance!==""?k.guidance:f.current,note:k.note,busy:k.settled,progress:k.phase==="seeking"||k.phase==="aligning"?k.progress:1,still:k.still,live:k.live,closeLabel:a("native.close"),overlay:u?.(k.videoRef),...k.settled?{}:{onClose:s(()=>d(I=>I+1),"onClose")}})),[a,u]),y=(0,ke.useId)();if(o!==null)return(0,N.jsx)(Se,{tone:"danger",children:(0,N.jsx)("span",{children:a(Ee(o,i.strings))})});if(t===null)return(0,N.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a("common.loading")});let{context:v}=t,L=s(k=>{l(!0),k().finally(()=>l(!1))},"refresh"),S=r?.header??(0,N.jsx)(Cl,{context:v,headerId:y,end:r?.headerEnd}),C;switch(t.kind){case"phone_otp":C=(0,N.jsx)(Go,{step:t});break;case"email_otp":C=(0,N.jsx)(Wo,{step:t});break;case"method":C=(0,N.jsx)(lr,{step:t});break;case"registry":C=(0,N.jsx)(ur,{step:t});break;case"document":C=(0,N.jsx)(pr,{step:t,...e.documentLiveMrz!==void 0?{liveMrz:e.documentLiveMrz}:{}});break;case"liveness":{let k=e.livenessProps?.slots?.intro,I={...e.livenessProps??{},slots:{...e.livenessProps?.slots,intro:k??h},...m>0?{autoStart:!1}:{},verification:e.verification,locale:e.locale,...e.dir!==void 0?{dir:e.dir}:{},strings:i.strings,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{},...e.voice!==void 0?{voice:e.voice}:{},...e.onLivenessCaptured!==void 0?{onCaptured:e.onLivenessCaptured}:{}};C=(0,N.jsx)(tr.Provider,{value:p,children:t.instructions==="icao"||t.livePhoto?.icao===!0?(0,N.jsx)(Ue,{view:"LivePhotoLiveness",i18n:i,step:t,livenessProps:I,sekyroIntro:k===void 0},m):(0,N.jsx)(ar,{...I},m)});break}case"portrait":C=(0,N.jsxs)(N.Fragment,{children:[t.retakeOnly?(0,N.jsx)(Ue,{view:"PortraitRetakeNotice",i18n:i,quiet:!0}):null,(0,N.jsx)(yr,{step:t,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{}})]});break;case"contact_choice":C=(0,N.jsx)(Ue,{view:"ContactChoiceView",i18n:i,step:t});break;case"identity_summary":C=(0,N.jsx)(Ue,{view:"IdentitySummaryView",i18n:i,step:t});break;case"mobile_required":C=e.handoffUrl!==void 0?(0,N.jsx)(Ue,{view:"HandoffView",i18n:i,url:e.handoffUrl,refresh:t.refresh}):(0,N.jsxs)(Se,{tone:"info",children:[(0,N.jsx)("strong",{children:a("handoff.title")}),(0,N.jsx)("span",{children:a("reasons.mobile_required")}),(0,N.jsx)(R,{kind:"ghost",disabled:c,onClick:()=>L(t.refresh),children:a("common.refresh")})]});break;case"processing":C=(0,N.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",role:"status","aria-live":"polite",children:[(0,N.jsx)("h2",{className:"sekyro-text-body",children:a("session.processing.title")}),(0,N.jsx)("p",{className:"sekyro-text-muted",children:a("session.processing.description")}),t.stalled?(0,N.jsx)(R,{kind:"ghost",disabled:c,onClick:()=>L(t.refresh),children:a("common.refresh")}):null]});break;case"eid":C=(0,N.jsx)(Qo,{step:t});break;case"unsupported":{let k=t.reason==="platform_unsupported";C=(0,N.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",children:[(0,N.jsx)("h2",{className:"sekyro-text-body",children:a(k?"needsApp.title":"unsupported.title")}),(0,N.jsx)("p",{children:k?v.orgName!==""?a("needsApp.description",{org:v.orgName}):a("needsApp.descriptionNoOrg"):a("unsupported.description",{org:v.orgName})})]});break}case"result":C=r?.result?.(t)??(0,N.jsx)(_l,{step:t});break;default:{let k=t;C=null}}return(0,N.jsxs)(N.Fragment,{children:[n?null:S,!n&&t.kind!=="result"&&v.sections.length>1?(0,N.jsx)(wl,{sections:v.sections,current:t.section,i18n:i}):null,!n&&!v.consentRecorded&&t.kind!=="result"?(0,N.jsx)(aa,{i18n:i}):null,(0,N.jsx)(Hn,{pageKey:t.key,children:C}),!n&&(t.kind==="phone_otp"||t.kind==="email_otp")&&t.canSwitch?(0,N.jsx)(Ue,{view:"ContactSwitch",i18n:i,step:t,quiet:!0},t.key):null,n?null:r?.footer!==void 0?r.footer:(0,N.jsxs)("p",{className:"sekyro-footer",children:[(0,N.jsx)(fe,{name:"lock"}),a("shell.verifiedBy")]})]})}s(Sl,"Body");function _l({step:e}){return(0,N.jsx)(Zt.Consumer,{children:t=>(0,N.jsx)(br,{step:e,...t!==void 0?{onClose:t}:{}})})}s(_l,"ResultPage");function Cl({context:e,headerId:t,end:o}){let{t:r}=ne(),[n,i]=(0,ke.useState)(!1),a=n?void 0:e.branding?.logoUrl,c=e.orgName!==""?e.orgName:r(e.returning?"returning.title":"session.title");return(0,N.jsxs)("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":t,children:[(0,N.jsxs)("div",{className:"sekyro-org",children:[(0,N.jsx)("span",{className:"sekyro-org__tile","aria-hidden":"true",children:a!==void 0?(0,N.jsx)("img",{className:"sekyro-org__logo",src:a,alt:"",onError:()=>i(!0)}):ca(e.orgName)}),(0,N.jsxs)("div",{className:"sekyro-org__text",children:[(0,N.jsx)("h1",{id:t,className:"sekyro-org__name",children:c}),(0,N.jsx)("p",{className:"sekyro-org__sub",children:r("shell.subtitle")})]}),o!=null?(0,N.jsx)("div",{className:"sekyro-org__end",children:o}):null,(0,N.jsx)(Zt.Consumer,{children:l=>l!==void 0?(0,N.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":r("native.close"),onClick:l,children:(0,N.jsx)(fe,{name:"close"})}):null})]}),e.returning?(0,N.jsx)("p",{className:"sekyro-text-muted",children:r("returning.description")}):null]})}s(Cl,"OrgHeader");function wl({sections:e,current:t,i18n:o}){let r=t===null?-1:e.indexOf(t);return(0,N.jsx)("ol",{className:"sekyro-progress__bars","aria-label":o.t("session.progressLabel"),children:e.map((n,i)=>(0,N.jsx)("li",{className:`sekyro-progress__bar${i<r?" is-done":i===r?" is-current":""}`,...i===r?{"aria-current":"step"}:{},children:(0,N.jsx)("span",{className:"sekyro-visually-hidden",children:o.strings[`section.${n}`]??n})},n))})}s(wl,"SectionProgress");var Lo=require("react");var Nl=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function _r(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));return Nl.test(t)}s(_r,"isInAppBrowser");be();var Et=require("react/jsx-runtime");function xl(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}s(xl,"pageUrl");function ya({hostedUrl:e,inAppBrowser:t,...o}){let[r,n]=(0,Lo.useState)(t===!0);(0,Lo.useEffect)(()=>{t===void 0&&_r()&&n(!0)},[t]);let[i,a]=(0,Lo.useState)(!1),c=o.handoffUrl??e??xl();return r&&!i?(0,Et.jsx)(vr,{theme:gr(hr(void 0),o.theme),...o.className!==void 0?{className:o.className}:{},children:(0,Et.jsx)(Yt,{locale:o.locale,...o.strings!==void 0?{strings:o.strings}:{},children:(0,Et.jsx)("div",{dir:o.dir??(o.locale==="ar"?"rtl":"ltr"),lang:o.locale,className:"sekyro-stack sekyro-stack--4",children:(0,Et.jsx)(Il,{url:c,onContinue:()=>a(!0)})})})}):(0,Et.jsx)(Sr,{...o,...c!==""?{handoffUrl:c}:{}})}s(ya,"SekyroFlow");function Il({url:e,onContinue:t}){let o=ne();return(0,Et.jsx)(Ue,{view:"InAppBrowserPrompt",i18n:o,url:e,onContinue:t})}s(Il,"Prompt");
|
|
2
|
+
"use strict";var Vo=Object.defineProperty;var La=Object.getOwnPropertyDescriptor;var Ra=Object.getOwnPropertyNames;var Ta=Object.prototype.hasOwnProperty;var s=(e,t)=>Vo(e,"name",{value:t,configurable:!0});var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var Yt=(e,t)=>{for(var o in t)Vo(e,o,{get:t[o],enumerable:!0})},Pa=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ra(t))!Ta.call(e,n)&&n!==o&&Vo(e,n,{get:()=>t[n],enumerable:!(r=La(t,n))||r.enumerable});return e};var za=e=>Pa(Vo({},"__esModule",{value:!0}),e);var Eo,Ar=w(()=>{"use strict";Eo={"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":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"+222 36 00 00 00","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":"طلبت رموزًا كثيرة — انتظر قليلًا ثم أعد المحاولة","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"3501234567","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا — لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية — تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا — تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا — أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك — ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين — صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة — أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة — التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة — الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار — سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","dcv2.sensing":"جارٍ البحث عن الوثيقة — ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا — أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار — أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا — ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة — الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة — أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا — أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك — الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز — أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة — أملها قليلًا","dcv2.hold_still":"ممتاز — لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه — اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ — وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت — يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط — لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","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":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط — افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد، مثل +222 36 00 00 00","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.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","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 Oo,Mr=w(()=>{"use strict";Oo={"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 national identification number (NNI).","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your NNI is checked against the civil registry. 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.","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":"+222 36 00 00 00","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the verification code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired — resend a new one","otp.reason_otp_mismatch":"That code was incorrect — check it and enter it again","otp.reason_otp_expired":"That code has expired — resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code — try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available — choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country — enter another number","otp.reason_otp_destination_unknown":"We couldn't recognise 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","session.steps.population.title":"Enter your national ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"National ID (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"3501234567","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable — your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry — check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI — check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number — confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Which document will you use?","doc.pickDescription":"Choose the identity document you have with you — you will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved — now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document — retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo — take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document — camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame — it captures by itself. For a sharper photo, turn your phone sideways","dcv2.sensing":"Looking for the document — fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little — keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame — keep the edges visible","dcv2.wrong_shape":"That doesn't look right — lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document — too much angle","dcv2.too_dark":"Find a brighter spot — light the document","dcv2.too_bright":"Too much light — tilt the document away from the glare","dcv2.blurry":"Hold your phone steady — the image is blurry","dcv2.focus_far":"Too close to focus — move the phone a little farther","dcv2.glare":"Light is reflecting off the document — tilt it slightly","dcv2.hold_still":"Perfect — hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured — flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Your checks are being processed","session.processing.description":"This usually takes a few seconds — the result will appear here","handoff.title":"Continue on your phone","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done — you can close this page","session.result.review.title":"Your verification is under review","session.result.review.description":"The result will be sent to the organization that gave you this link — you don't need to do anything else.","session.result.rejected.title":"Your identity could not be verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"This verification session has expired","session.result.expired.description":"Request a new link from the organization that sent it, then start again","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","result.referenceLabel":"Reference code","common.loading":"Loading your verification session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect — hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photo with your identity document…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo — camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied — open it on your phone","needsApp.title":"This verification needs a phone app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","population.recheck.title":"Check your national number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code, for example +222 36 00 00 00","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Which country issued your document?","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.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.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 Do,Vr=w(()=>{"use strict";Do={"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 votre numéro national d'identification (NNI).","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre NNI est vérifié auprès du registre d'état civil. 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.","otp.sendTitle":"Vérifiez votre numéro de téléphone","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"+222 36 00 00 00","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code de vérification","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré — renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect — vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré — renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code — réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible — choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays — saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro — vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés — patientez un instant, puis réessayez","session.steps.population.title":"Saisissez votre numéro national d'identification","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"3501234567","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible — votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil — vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide — vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification — confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Vérification auprès du registre civil","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Quel document allez-vous utiliser ?","doc.pickDescription":"Choisissez la pièce d'identité en votre possession — vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée — photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document — reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo — prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document — l'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre — la capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","dcv2.sensing":"Recherche du document — placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu — gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre — gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct — posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document — trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux — éclairez le document","dcv2.too_bright":"Trop de lumière — inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile — l'image est floue","dcv2.focus_far":"Trop près pour la mise au point — éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document — inclinez-le légèrement","dcv2.hold_still":"Parfait — ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée — retournez le document","dcv2.captured":"Capturé","session.processing.title":"Vos vérifications sont en cours de traitement","session.processing.description":"Cela prend généralement quelques secondes — le résultat s'affichera ici","handoff.title":"Continuez sur votre téléphone","session.result.approved.title":"Votre identité est vérifiée","session.result.approved.description":"C'est terminé — vous pouvez fermer cette page","session.result.review.title":"Votre vérification est en cours d'examen","session.result.review.description":"Le résultat sera transmis à l'organisation qui vous a envoyé ce lien — vous n'avez rien d'autre à faire.","session.result.rejected.title":"Votre identité n'a pas pu être vérifiée","session.result.rejected.description":"Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur","session.result.expired.title":"Cette session de vérification a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui l'a envoyé, puis recommencez","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","result.referenceLabel":"Code de référence","common.loading":"Chargement de votre session de vérification","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo d’identité","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait — ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification de votre photo…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison de votre photo avec votre pièce d'identité…","portrait.reviewTitle":"Nous allons vérifier votre photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité — l'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié — ouvrez-le sur votre téléphone","needsApp.title":"Cette vérification nécessite une application mobile","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","population.recheck.title":"Vérifiez votre numéro national","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays, par exemple +222 36 00 00 00","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Quel pays a délivré votre document ?","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions maintenant votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.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}"}});var wo,Rn=w(()=>{"use strict";wo={"capture.start":"Start camera","capture.recordAgain":"Start a new attempt","capture.switchCamera":"Switch camera","capture.preparing.title":"Preparing secure capture…","capture.checking":"We're checking your identity…","capture.checkingHint":"This usually takes a few seconds — keep this page open","capture.securityNote":"Your images are encrypted and used only for this verification","capture.cameraOff":"Camera off","capture.previewAlt":"Preview of the captured image of your face","capture.retryCoaching.title":"That attempt didn't work — a few adjustments will help:","capture.retryCoaching.light":"Find good lighting — light on your face, not behind you","capture.retryCoaching.eyeLevel":"Hold your phone at eye level","capture.retryCoaching.head":"Look straight at the camera and keep your head upright","capture.attemptsRemaining.one":"{count} attempt remaining","capture.attemptsRemaining.other":"{count} attempts remaining","common.retry":"Try again","fcv2.err.permission":"Allow camera access in your browser settings (the camera icon in the address bar), then try again","fcv2.err.notfound":"No camera detected — connect or enable a camera, then try again","fcv2.err.inuse":"Another app is using the camera — close it, then try again","fcv2.err.insecure":"The camera needs a secure connection (HTTPS) — reopen this page over HTTPS","fcv2.err.unsupported":"Your browser cannot capture in a supported format — open this page in a recent browser such as Chrome or Safari","fcv2.err.generic":"The camera is unavailable — try again, or contact support if it keeps failing","fcv3.no_face":"We can't see your face — hold the phone in front of you","fcv3.come_closer":"Bring the phone a little closer","fcv3.move_back":"Move the phone a little farther away","fcv3.center_face":"Center your face in the circle","fcv3.straighten":"Hold your head straight","fcv3.more_light":"Find a brighter spot — light your face","fcv3.too_bright":"Too much light — move out of direct light","fcv3.hold_still":"Perfect — hold still","fcv3.steady_camera":"Hold the phone steady","reasons.no_face":"No face could be detected during the check","reasons.media_unreadable":"The submitted capture could not be read","reasons.clip_too_short":"The capture was too short","reasons.spoof_detected":"The liveness check could not confirm a live person in front of the camera","reasons.review_band":"The automatic check was not conclusive, so it was sent to human review","reasons.nni_not_found":"The national identification number was not found in the civil registry","reasons.nni_invalid":"The national identification number is not a valid 10-digit NNI","reasons.registry_unavailable":"The civil registry could not be reached to confirm the NNI","reasons.result_from_cache":"The registry check was confirmed from a recent copy of the registry","reasons.no_face_source":"No face could be detected in the selfie photo","reasons.no_face_reference":"No reference photo was available to compare your selfie against — the requester needs to resolve this, so retaking your selfie will not help","reasons.low_quality_reference":"The reference photo on file was not clear enough to compare against","reasons.below_threshold":"The selfie did not match the photo on the identity document closely enough","reasons.side_missing":"One side of the identity document was not submitted","reasons.mrz_checksum_failed":"The machine-readable zone of the document could not be validated","reasons.unreadable":"The document photo was not clear enough to read","reasons.expired_document":"The identity document has expired","reasons.authenticity_review":"The document was sent to human review to confirm its authenticity","reasons.registry_mismatch":"The document's details did not match the civil registry — a reviewer will check","reasons.document_nni_mismatch":"This document belongs to a different person than the one this verification was created for","reasons.otp_mismatch":"The verification code did not match the one we sent","reasons.otp_expired":"The verification code expired before it was entered","reasons.otp_send_failed":"We could not send a verification code to your phone","reasons.uncalibrated_capture_channel":"Desktop/webcam captures are not yet auto-decided — your verification went to human review","reasons.location_not_allowed":"Verification isn't available in your region.","reasons.anonymizer_blocked":"Turn off your VPN or proxy, then open the link again.","reasons.nationality_not_allowed":"This service can't verify this document. Contact the organization for other options.","reasons.document_type_not_accepted":"This type of document isn't accepted. Choose another document.","reasons.underage":"You don't meet the minimum age for this service.","reasons.age_unverifiable":"We couldn't read your date of birth. Take a clearer photo of your document.","reasons.nationality_unreadable":"We couldn't read your nationality. Take a clearer photo of your document.","reasons.name_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.birth_date_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.nationality_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.document_number_mismatch":"The details don't match the information the organization has. Contact the organization.","reasons.liveness_inconclusive":"Let's try again: face a light source and hold still.","reasons.match_inconclusive":"We couldn't confirm it's you. Try again in good light, without glasses.","reasons.subject_revoked":"The identity on file for this check is no longer available — the requester needs to run a full verification, so retrying will not help","reasons.probe_not_from_liveness":"Keep your face in the frame the whole time, then try again.","reasons.document_authenticity":"Use the original card, not a photo or a copy, and avoid reflections.","reasons.mobile_required":"Continue on your phone to take the selfie.","reasons.capture_tampered":"We couldn't verify this capture. Use your phone's built-in camera, without screen recording or camera apps.","reasons.device_velocity_exceeded":"This device can't be used for another verification right now. Contact the organization.","reasons.device_cooldown":"Too many attempts. Try again later.","cooldown.retryIn":"Too many attempts. Try again {time}.","cooldown.retryAt":"Too many attempts. Try again after {time}.","capture.busy":"Our service is busy. Trying again…","errors.inference_unavailable":"Try again in a moment.","method.title":"How do you want to verify?","method.description":"Choose one option to continue","returning.title":"Confirm it's you","returning.description":"You verified your identity before. One short face capture confirms it's still you.","method.national_number":"Enter my national number (NNI)","method.document_photo":"Photo of my document","errors.method_required":"Choose how you want to verify, then continue","errors.attestation_invalid":"We could not confirm this browser session is genuine — reload the page and try again","errors.network_error":"We could not reach the verification service — check your internet connection and try again","errors.session_expired":"This verification session has expired — ask the organisation that sent you here for a new link","errors.nni_unbound":"This link was created without your national ID number — ask the requester for a new link","capture.tips.title":"For a successful check:","capture.tips.light":"Face a light source — avoid strong light behind you","capture.tips.uncover":"Uncover your face — no glasses, mask or hand in front of it","capture.tips.eyeLevel":"Hold your phone at eye level","capture.tips.straight":"Look straight at the camera and keep still","capture.tips.summary":"Stand in a well-lit area. Uncover your face — no glasses, no mask. Once the camera starts, hold your phone at eye level, look straight at the camera and keep still.","capture.tips.listen":"Listen to the instructions","capture.tips.stop":"Stop","capture.permission.granted":"Camera access allowed","capture.permission.prompt":"Your browser will ask to use the camera — choose Allow","capture.permission.denied":"Camera access is blocked — allow it in your browser settings (the camera icon in the address bar), then reload this page","capture.permission.unknown":"We'll ask to use your camera when you start","capture.cameraLabel":"Camera","capture.facing.user":"Front camera","capture.facing.environment":"Back camera","capture.voiceGuidance":"Voice guidance","capture.preparing.hint":"Setting up on-device face detection — this can take a moment on a slow connection","capture.ready":"Ready — start when you are","fcv2.err.models":"The face-detection models could not be loaded — check your connection and try again"}});var Er,Tn=w(()=>{"use strict";Er={"capture.start":"تشغيل الكاميرا","capture.recordAgain":"ابدأ محاولة جديدة","capture.switchCamera":"تبديل الكاميرا","capture.preparing.title":"جارٍ تجهيز الالتقاط الآمن…","capture.checking":"نتحقق من هويتك…","capture.checkingHint":"يستغرق هذا عادةً بضع ثوانٍ — أبقِ هذه الصفحة مفتوحة","capture.securityNote":"تُشفَّر لقطاتك وتُستخدم فقط لهذا التحقق","capture.cameraOff":"الكاميرا مطفأة","capture.previewAlt":"معاينة الصورة الملتقطة لوجهك","capture.retryCoaching.title":"لم تنجح هذه المحاولة — بعض التعديلات ستساعد:","capture.retryCoaching.light":"اختر مكانًا جيد الإضاءة — الضوء على وجهك لا خلفك","capture.retryCoaching.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.retryCoaching.head":"انظر مباشرة إلى الكاميرا وأبقِ رأسك مستقيمًا","capture.attemptsRemaining.zero":"لم تتبقَّ أي محاولة","capture.attemptsRemaining.one":"تبقّت محاولة واحدة","capture.attemptsRemaining.two":"تبقّت محاولتان","capture.attemptsRemaining.few":"تبقّت {count} محاولات","capture.attemptsRemaining.many":"تبقّت {count} محاولة","capture.attemptsRemaining.other":"تبقّت {count} محاولة","common.retry":"أعد المحاولة","fcv2.err.permission":"اسمح بالوصول إلى الكاميرا من إعدادات المتصفح (أيقونة الكاميرا في شريط العنوان) ثم أعد المحاولة","fcv2.err.notfound":"لم يتم العثور على كاميرا — وصِّل كاميرا أو فعِّلها ثم أعد المحاولة","fcv2.err.inuse":"تطبيق آخر يستخدم الكاميرا — أغلقه ثم أعد المحاولة","fcv2.err.insecure":"تتطلب الكاميرا اتصالًا آمنًا (HTTPS) — افتح هذه الصفحة عبر HTTPS","fcv2.err.unsupported":"متصفحك لا يستطيع الالتقاط بصيغة مدعومة — افتح هذه الصفحة في متصفح حديث مثل كروم أو سفاري","fcv2.err.generic":"الكاميرا غير متاحة — أعد المحاولة، وتواصل مع الدعم إذا استمرت المشكلة","fcv3.no_face":"لا نرى وجهك — أمسك الهاتف أمامك","fcv3.come_closer":"قرّب الهاتف قليلًا","fcv3.move_back":"أبعد الهاتف قليلًا","fcv3.center_face":"ضع وجهك في منتصف الدائرة","fcv3.straighten":"أبقِ رأسك مستقيمًا","fcv3.more_light":"انتقل إلى مكان أكثر إضاءة — أضئ وجهك","fcv3.too_bright":"الإضاءة قوية جدًا — تجنّب الضوء المباشر على وجهك","fcv3.hold_still":"ممتاز — لا تتحرك","fcv3.steady_camera":"أمسك الهاتف بثبات","reasons.no_face":"تعذّر اكتشاف أي وجه أثناء التحقق","reasons.media_unreadable":"تعذّرت قراءة اللقطة المُرسلة","reasons.clip_too_short":"كانت اللقطة أقصر من اللازم","reasons.spoof_detected":"لم يتمكن فحص الحضور الحي من تأكيد وجود شخص حقيقي أمام الكاميرا","reasons.review_band":"لم يكن الفحص التلقائي حاسمًا، لذا أُحيل إلى مراجعة بشرية","reasons.nni_not_found":"لم يُعثر على الرقم الوطني في سجل الحالة المدنية","reasons.nni_invalid":"الرقم الوطني ليس رقمًا صالحًا مكوّنًا من 10 أرقام","reasons.registry_unavailable":"تعذّر الوصول إلى سجل الحالة المدنية لتأكيد الرقم الوطني","reasons.result_from_cache":"أُكِّد فحص السجل استنادًا إلى نسخة حديثة من السجل","reasons.no_face_source":"تعذّر اكتشاف وجه في الصورة الذاتية","reasons.no_face_reference":"لم تتوفّر صورة مرجعية لمقارنة صورتك الذاتية بها — على الجهة الطالبة معالجة ذلك، وإعادة التقاط صورتك الذاتية لن تُجدي","reasons.low_quality_reference":"الصورة المرجعية المحفوظة لم تكن واضحة بما يكفي للمقارنة","reasons.below_threshold":"الصورة الذاتية لم تطابق صورة وثيقة الهوية بدرجة كافية","reasons.side_missing":"أحد وجهي وثيقة الهوية لم يُرسل","reasons.mrz_checksum_failed":"تعذّر التحقق من منطقة القراءة الآلية في الوثيقة","reasons.unreadable":"صورة الوثيقة لم تكن واضحة بما يكفي للقراءة","reasons.expired_document":"انتهت صلاحية وثيقة الهوية","reasons.authenticity_review":"أُحيلت الوثيقة إلى مراجعة بشرية للتأكد من صحتها","reasons.registry_mismatch":"بيانات الوثيقة لا تطابق السجل المدني — سيتحقق منها مراجع","reasons.document_nni_mismatch":"هذه الوثيقة تخص شخصًا آخر غير الشخص الذي أُنشئ له هذا التحقق","reasons.otp_mismatch":"رمز التحقّق لا يطابق الرمز الذي أرسلناه","reasons.otp_expired":"انتهت صلاحية رمز التحقّق قبل إدخاله","reasons.otp_send_failed":"تعذّر إرسال رمز التحقّق إلى هاتفك","reasons.uncalibrated_capture_channel":"جودة الكاميرا المكتبية غير معايَرة بعد — أُحيل تحققك إلى مراجعة بشرية","reasons.location_not_allowed":"التحقق غير متاح في منطقتك.","reasons.anonymizer_blocked":"أوقف تشغيل VPN أو الوكيل ثم افتح الرابط مجددًا.","reasons.nationality_not_allowed":"لا يمكن لهذه الخدمة التحقق من هذه الوثيقة. تواصل مع الجهة لمعرفة الخيارات الأخرى.","reasons.document_type_not_accepted":"هذا النوع من الوثائق غير مقبول. اختر وثيقة أخرى.","reasons.underage":"لا تستوفي الحد الأدنى للسن لهذه الخدمة.","reasons.age_unverifiable":"تعذّرت قراءة تاريخ ميلادك. التقط صورة أوضح لوثيقتك.","reasons.nationality_unreadable":"تعذّرت قراءة جنسيتك. التقط صورة أوضح لوثيقتك.","reasons.name_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.birth_date_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.nationality_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.document_number_mismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى الجهة. تواصل مع الجهة.","reasons.liveness_inconclusive":"لنحاول مجددًا: اجعل وجهك مقابل مصدر ضوء وابقَ ثابتًا.","reasons.match_inconclusive":"لم نتمكّن من التأكد من أنك أنت. حاول مجددًا في إضاءة جيدة ومن دون نظارات.","reasons.subject_revoked":"لم تعد الهوية المحفوظة لهذا التحقق متاحة — على الجهة الطالبة إجراء تحقق كامل، وإعادة المحاولة لن تُجدي","reasons.probe_not_from_liveness":"أبقِ وجهك داخل الإطار طوال الوقت، ثم حاول مجددًا.","reasons.document_authenticity":"استخدم البطاقة الأصلية، لا صورة لها ولا نسخة منها، وتجنّب الانعكاسات.","reasons.mobile_required":"تابع على هاتفك لالتقاط صورة لوجهك.","reasons.capture_tampered":"تعذّر التحقق من هذا الالتقاط. استخدم الكاميرا المدمجة في هاتفك، دون تسجيل الشاشة أو تطبيقات الكاميرا.","reasons.device_velocity_exceeded":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع الجهة.","reasons.device_cooldown":"محاولات كثيرة. حاول مجددًا لاحقًا.","cooldown.retryIn":"محاولات كثيرة. حاول مجددًا {time}.","cooldown.retryAt":"محاولات كثيرة. حاول مجددًا بعد {time}.","capture.busy":"خدمتنا مشغولة حاليًا. نعيد المحاولة…","errors.inference_unavailable":"حاول مجددًا بعد لحظات.","method.title":"كيف تريد التحقق من هويتك؟","method.description":"اختر إحدى الطريقتين للمتابعة","returning.title":"أكّد أنك أنت","returning.description":"سبق أن تحقّقت من هويتك. التقاط قصير لوجهك يكفي لتأكيد أنك أنت.","method.national_number":"إدخال رقمي الوطني (NNI)","method.document_photo":"تصوير وثيقتي","errors.method_required":"اختر طريقة التحقق، ثم تابع","errors.attestation_invalid":"تعذّر التأكد من سلامة جلسة المتصفح — أعد تحميل الصفحة وحاول مجددًا","errors.network_error":"تعذّر الوصول إلى خدمة التحقق — تحقق من اتصالك بالإنترنت وأعد المحاولة","errors.session_expired":"انتهت صلاحية جلسة التحقق هذه — اطلب رابطًا جديدًا من الجهة التي أرسلتك إلى هنا","errors.nni_unbound":"أُنشئ هذا الرابط دون رقمك الوطني للتعريف — اطلب رابطًا جديدًا من الجهة الطالبة","capture.tips.title":"لتحقق ناجح:","capture.tips.light":"اجعل الضوء أمام وجهك — تجنّب الإضاءة القوية خلفك","capture.tips.uncover":"اكشف وجهك — بلا نظارات أو كمامة أو يد أمامه","capture.tips.eyeLevel":"أمسك هاتفك بمستوى العينين","capture.tips.straight":"انظر مباشرة إلى الكاميرا وابقَ ثابتًا","capture.tips.summary":"اختر مكانًا جيد الإضاءة. اكشف وجهك — بلا نظارات أو كمامة. بعد تشغيل الكاميرا، أمسك هاتفك بمستوى العينين، وانظر مباشرة إلى الكاميرا وابقَ ثابتًا.","capture.tips.listen":"استمع إلى التعليمات","capture.tips.stop":"إيقاف","capture.permission.granted":"تم السماح بالوصول إلى الكاميرا","capture.permission.prompt":"سيطلب متصفحك استخدام الكاميرا — اختر «السماح»","capture.permission.denied":"الوصول إلى الكاميرا محظور — اسمح به من إعدادات المتصفح (رمز الكاميرا في شريط العنوان)، ثم أعد تحميل الصفحة","capture.permission.unknown":"سنطلب استخدام الكاميرا عند البدء","capture.cameraLabel":"الكاميرا","capture.facing.user":"الكاميرا الأمامية","capture.facing.environment":"الكاميرا الخلفية","capture.voiceGuidance":"الإرشاد الصوتي","capture.preparing.hint":"يجري إعداد كشف الوجه على جهازك — قد يستغرق ذلك لحظة على اتصال بطيء","capture.ready":"جاهز — ابدأ عندما تكون مستعدًا","fcv2.err.models":"تعذّر تحميل نماذج التعرف على الوجه — تحقق من اتصالك ثم أعد المحاولة"}});var Or,Pn=w(()=>{"use strict";Or={"capture.start":"Démarrer la caméra","capture.recordAgain":"Commencer une nouvelle tentative","capture.switchCamera":"Changer de caméra","capture.preparing.title":"Préparation de la capture sécurisée…","capture.checking":"Nous vérifions votre identité…","capture.checkingHint":"Cela prend généralement quelques secondes — gardez cette page ouverte","capture.securityNote":"Vos images sont chiffrées et utilisées uniquement pour cette vérification","capture.cameraOff":"Caméra éteinte","capture.previewAlt":"Aperçu de l’image capturée de votre visage","capture.retryCoaching.title":"Cette tentative n'a pas abouti — quelques ajustements vous aideront :","capture.retryCoaching.light":"Placez-vous dans un endroit bien éclairé — lumière sur le visage, pas derrière vous","capture.retryCoaching.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.retryCoaching.head":"Regardez droit vers la caméra, la tête bien droite","capture.attemptsRemaining.one":"{count} tentative restante","capture.attemptsRemaining.other":"{count} tentatives restantes","common.retry":"Réessayer","fcv2.err.permission":"Autorisez la caméra dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis réessayez","fcv2.err.notfound":"Aucune caméra détectée — branchez ou activez une caméra, puis réessayez","fcv2.err.inuse":"La caméra est utilisée par une autre application — fermez-la, puis réessayez","fcv2.err.insecure":"La caméra nécessite une connexion sécurisée (HTTPS) — rouvrez cette page en HTTPS","fcv2.err.unsupported":"Votre navigateur ne prend pas en charge un format de capture compatible — ouvrez cette page dans un navigateur récent comme Chrome ou Safari","fcv2.err.generic":"Caméra indisponible — réessayez, ou contactez le support si le problème persiste","fcv3.no_face":"Nous ne voyons pas votre visage — tenez le téléphone devant vous","fcv3.come_closer":"Rapprochez un peu le téléphone","fcv3.move_back":"Éloignez un peu le téléphone","fcv3.center_face":"Centrez votre visage dans le cercle","fcv3.straighten":"Tenez la tête droite","fcv3.more_light":"Cherchez un endroit plus lumineux — éclairez votre visage","fcv3.too_bright":"Trop de lumière — évitez la lumière directe sur le visage","fcv3.hold_still":"Parfait — ne bougez plus","fcv3.steady_camera":"Tenez le téléphone stable","reasons.no_face":"Aucun visage n’a pu être détecté pendant la vérification","reasons.media_unreadable":"La capture envoyée n’a pas pu être lue","reasons.clip_too_short":"La capture était trop courte","reasons.spoof_detected":"Le contrôle de présence n'a pas pu confirmer la présence d'une personne réelle devant la caméra","reasons.review_band":"Le contrôle automatique n'a pas été concluant, il a donc été transmis à un examen humain","reasons.nni_not_found":"Le numéro national d'identification n'a pas été trouvé dans le registre d'état civil","reasons.nni_invalid":"Le numéro national d'identification n'est pas un NNI valide à 10 chiffres","reasons.registry_unavailable":"Le registre d'état civil n'a pas pu être joint pour confirmer le NNI","reasons.result_from_cache":"Le contrôle du registre a été confirmé à partir d'une copie récente du registre","reasons.no_face_source":"Aucun visage n'a pu être détecté sur la photo selfie","reasons.no_face_reference":"Aucune photo de référence n'était disponible pour comparer votre selfie — c'est au demandeur de le résoudre, reprendre votre selfie n'y changera rien","reasons.low_quality_reference":"La photo de référence enregistrée n'était pas assez nette pour la comparaison","reasons.below_threshold":"Le selfie ne correspondait pas suffisamment à la photo de la pièce d'identité","reasons.side_missing":"Un côté de la pièce d'identité n'a pas été envoyé","reasons.mrz_checksum_failed":"La zone de lecture automatique du document n'a pas pu être validée","reasons.unreadable":"La photo du document n'était pas assez nette pour être lue","reasons.expired_document":"La pièce d'identité a expiré","reasons.authenticity_review":"Le document a été transmis à un examen humain pour confirmer son authenticité","reasons.registry_mismatch":"Les informations du document ne correspondent pas au registre civil — un examinateur va vérifier","reasons.document_nni_mismatch":"Ce document appartient à une autre personne que celle pour qui cette vérification a été créée","reasons.otp_mismatch":"Le code de vérification ne correspond pas à celui que nous avons envoyé","reasons.otp_expired":"Le code de vérification a expiré avant d'être saisi","reasons.otp_send_failed":"Nous n'avons pas pu envoyer de code de vérification à votre téléphone","reasons.uncalibrated_capture_channel":"Les captures webcam ne sont pas encore décidées automatiquement — votre vérification part en revue humaine","reasons.location_not_allowed":"La vérification n'est pas disponible dans votre région.","reasons.anonymizer_blocked":"Désactivez votre VPN ou proxy, puis rouvrez le lien.","reasons.nationality_not_allowed":"Ce service ne peut pas vérifier ce document. Contactez l'organisation pour d'autres options.","reasons.document_type_not_accepted":"Ce type de document n'est pas accepté. Choisissez un autre document.","reasons.underage":"Vous n'avez pas l'âge minimum requis pour ce service.","reasons.age_unverifiable":"Nous n'avons pas pu lire votre date de naissance. Prenez une photo plus nette de votre document.","reasons.nationality_unreadable":"Nous n'avons pas pu lire votre nationalité. Prenez une photo plus nette de votre document.","reasons.name_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.birth_date_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.nationality_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.document_number_mismatch":"Ces informations ne correspondent pas à celles dont dispose l'organisation. Contactez l'organisation.","reasons.liveness_inconclusive":"Réessayons : placez-vous face à une source de lumière et restez immobile.","reasons.match_inconclusive":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Réessayez dans un endroit bien éclairé, sans lunettes.","reasons.subject_revoked":"L'identité enregistrée pour cette vérification n'est plus disponible — le demandeur doit lancer une vérification complète, réessayer n'y changera rien","reasons.probe_not_from_liveness":"Gardez votre visage dans le cadre tout du long, puis réessayez.","reasons.document_authenticity":"Utilisez la carte originale, pas une photo ni une copie, et évitez les reflets.","reasons.mobile_required":"Continuez sur votre téléphone pour prendre le selfie.","reasons.capture_tampered":"Nous n'avons pas pu vérifier cette capture. Utilisez l'appareil photo intégré de votre téléphone, sans enregistrement d'écran ni application de caméra.","reasons.device_velocity_exceeded":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez l'organisation.","reasons.device_cooldown":"Trop de tentatives. Réessayez plus tard.","cooldown.retryIn":"Trop de tentatives. Réessayez {time}.","cooldown.retryAt":"Trop de tentatives. Réessayez à partir de {time}.","capture.busy":"Notre service est très sollicité. Nouvel essai en cours…","errors.inference_unavailable":"Réessayez dans un instant.","method.title":"Comment souhaitez-vous vérifier votre identité ?","method.description":"Choisissez une option pour continuer","returning.title":"Confirmez qu'il s'agit bien de vous","returning.description":"Vous avez déjà vérifié votre identité. Une courte capture du visage confirme qu'il s'agit toujours de vous.","method.national_number":"Saisir mon numéro national (NNI)","method.document_photo":"Photographier mon document","errors.method_required":"Choisissez comment vérifier votre identité, puis continuez","errors.attestation_invalid":"Nous n'avons pas pu confirmer l'authenticité de cette session de navigateur — rechargez la page et réessayez","errors.network_error":"Nous n'avons pas pu joindre le service de vérification — vérifiez votre connexion internet et réessayez","errors.session_expired":"Cette session de vérification a expiré — demandez un nouveau lien à l'organisme qui vous a envoyé ici","errors.nni_unbound":"Ce lien a été créé sans votre numéro national d'identification — demandez un nouveau lien à l'organisme demandeur","capture.tips.title":"Pour une vérification réussie :","capture.tips.light":"Placez-vous face à la lumière — évitez une forte lumière derrière vous","capture.tips.uncover":"Dégagez votre visage — ni lunettes, ni masque, ni main devant","capture.tips.eyeLevel":"Tenez votre téléphone à hauteur des yeux","capture.tips.straight":"Regardez droit vers la caméra et restez immobile","capture.tips.summary":"Placez-vous dans une zone bien éclairée. Dégagez votre visage — ni lunettes, ni masque. Une fois la caméra démarrée, tenez votre téléphone à hauteur des yeux, regardez droit vers la caméra et restez immobile.","capture.tips.listen":"Écouter les instructions","capture.tips.stop":"Arrêter","capture.permission.granted":"Accès à la caméra autorisé","capture.permission.prompt":"Votre navigateur va demander l’accès à la caméra — choisissez « Autoriser »","capture.permission.denied":"L’accès à la caméra est bloqué — autorisez-le dans les réglages du navigateur (icône caméra dans la barre d’adresse), puis rechargez la page","capture.permission.unknown":"Nous demanderons l’accès à la caméra au démarrage","capture.cameraLabel":"Caméra","capture.facing.user":"Caméra avant","capture.facing.environment":"Caméra arrière","capture.voiceGuidance":"Guidage vocal","capture.preparing.hint":"Mise en place de la détection du visage sur l’appareil — cela peut prendre un instant sur une connexion lente","capture.ready":"Prêt — commencez quand vous voulez","fcv2.err.models":"Impossible de charger les modèles de détection du visage — vérifiez votre connexion puis réessayez"}});function zn(e){switch(e){case"center":return"fcv3.center_face";case"closer":return"fcv3.come_closer";case"farther":return"fcv3.move_back";case"light":return"fcv3.more_light";case"still":case"hold":return"fcv3.hold_still";default:{let t=e;throw new Error(`hintStringKey: unhandled hint ${t}`)}}}function An(e){return`fcv2.err.${e}`}function jt(e){switch(e){case"no_recorder":return"fcv2.err.unsupported";case"attestation":return"errors.attestation_invalid";case"network":return"errors.network_error";case"nni_unbound":return"errors.nni_unbound";case"method_required":return"errors.method_required";case"inference_unavailable":return"errors.inference_unavailable";default:{let t=`reasons.${e}`;return Object.hasOwn(wo,t)?t:null}}}function Ho(e,t,o=new Date){if(t===void 0)return null;let r=new Date(t),n=r.getTime()-o.getTime();if(!Number.isFinite(n)||n<=0)return null;if(n<36e5){let c=Math.max(1,Math.ceil(n/6e4));return{key:"cooldown.retryIn",time:new Intl.RelativeTimeFormat(e,{numeric:"always"}).format(c,"minute")}}let i=r.toDateString()===o.toDateString();return{key:"cooldown.retryAt",time:new Intl.DateTimeFormat(e,{...i?{}:{day:"numeric",month:"long"},hour:"2-digit",minute:"2-digit"}).format(r)}}function Fo(e,t,o){let r=new Intl.PluralRules(t).select(o);return((r==="other"?void 0:e[`capture.attemptsRemaining.${r}`])??e["capture.attemptsRemaining.other"]).replace("{count}",new Intl.NumberFormat(t).format(o))}var Zt=w(()=>{"use strict";Rn();Tn();Pn();s(zn,"hintStringKey");s(An,"captureErrorStringKey");s(jt,"reasonStringKey");s(Ho,"retryAfterTime");s(Fo,"attemptsRemainingText")});function $o(e,t){let o=Aa[e];if(t===void 0)return o;let r={...o};for(let n of Object.keys(t)){let i=t[n];typeof i=="string"&&(r[n]=i)}return r}function Ne(){return(0,Bo.useContext)(Mn)}var Bo,Aa,Mn,Vn,$e=w(()=>{"use strict";Bo=require("react");Zt();Aa={ar:Er,fr:Or,en:wo};s($o,"resolveStrings");Mn=(0,Bo.createContext)(e=>wo[e]??""),Vn=Mn.Provider;s(Ne,"useStrings")});function Pe(e,t){return t===void 0?e:e.replace(/\{(\w+)\}/g,(o,r)=>Object.hasOwn(t,r)?String(t[r]):o)}function Dr(e,t){let o={...$o(e),...Ma[e]};if(t!==void 0)for(let r of Object.keys(t)){let n=t[r];typeof n=="string"&&(o[r]=n)}return o}function On(e,t){let o=Dr(e,t);return{locale:e,strings:o,t:s((r,n)=>Pe(o[r]??"",n),"t")}}function Qt({locale:e,strings:t,children:o}){let r=(0,Tt.useMemo)(()=>On(e,t),[e,t]);return(0,Dn.jsx)(En.Provider,{value:r,children:o})}function ne(e,t){let o=(0,Tt.useContext)(En);return(0,Tt.useMemo)(()=>o!==null&&e===void 0&&t===void 0?o:On(e??o?.locale??"en",t),[o,e,t])}var Tt,Dn,Ma,En,ke=w(()=>{"use strict";Tt=require("react");Ar();Mr();Vr();$e();Dn=require("react/jsx-runtime"),Ma={en:Oo,fr:Do,ar:Eo};s(Pe,"formatTemplate");s(Dr,"resolveSekyroStrings");En=(0,Tt.createContext)(null);s(On,"build");s(Qt,"StepI18nProvider");s(ne,"useStepI18n")});var Hn,Fn,L,le=w(()=>{"use strict";Hn=require("react"),Fn=require("react/jsx-runtime"),L=(0,Hn.forwardRef)(s(function({kind:t="primary",full:o=!1,className:r,type:n,...i},a){let c=["sekyro-btn",`sekyro-btn--${t}`];return o&&c.push("sekyro-btn--full"),r!==void 0&&c.push(r),(0,Fn.jsx)("button",{ref:a,type:n??"button",className:c.join(" "),...i})},"Button"))});function Uo({id:e,value:t,onChange:o,length:r=6,describedBy:n,invalid:i}){let[a,c]=(0,bt.useState)(!1),[l,p]=(0,bt.useState)(0);(0,bt.useEffect)(()=>{i&&p(m=>m+1)},[i]);let f=(0,bt.useRef)(null);(0,bt.useEffect)(()=>{let m=setTimeout(()=>f.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(m)},[]);let g=t.length<r?t.length:-1;return(0,Pt.jsxs)("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[(0,Pt.jsx)("div",{className:`sekyro-otp-row${l>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:r},(m,u)=>(0,Pt.jsx)("span",{className:`sekyro-otp-box${u<t.length?" is-filled":""}${a&&u===g?" is-current":""}${i?" is-invalid":""}`,children:t[u]!==void 0?(0,Pt.jsx)("span",{className:"sekyro-otp-digit",children:t[u]},t[u]):null},u))},l),(0,Pt.jsx)("input",{ref:f,id:e,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:t,"aria-describedby":n,"aria-invalid":i||void 0,onFocus:()=>c(!0),onBlur:()=>c(!1),onChange:m=>o((0,Bn.normalizeNni)(m.target.value).replace(/\D/g,"").slice(0,r))})]})}var Bn,bt,Pt,Hr=w(()=>{"use strict";Bn=require("@sekyro/web"),bt=require("react"),Pt=require("react/jsx-runtime");s(Uo,"CodeInput")});function Oe(e,t){if(e instanceof Xt.InvalidInputError)return e.field==="phone"?"otp.phoneInvalid":e.field==="code"?"otp.codeInvalid":e.kind==="check_digit"?"population.reason_nni_invalid":"population.invalid";if(e instanceof Xt.OtpInputError&&e.field==="channel")return"otp.reason_otp_channel_unavailable";if(e instanceof Xt.HostedApiError){let o=`errors.${e.code}`;if(Object.hasOwn(t,o))return o}return"errors.network_error"}var Xt,zt=w(()=>{"use strict";Xt=require("@sekyro/web");s(Oe,"errorKey")});function ve(){return(0,$n.useCallback)(e=>{e?.focus()},[])}var $n,lt=w(()=>{"use strict";$n=require("react");s(ve,"useFocusOnMount")});function Le({id:e,title:t,lead:o}){let r=ve();return(0,St.jsxs)("div",{className:"sekyro-heading",children:[(0,St.jsx)("h2",{id:e,ref:r,tabIndex:-1,className:"sekyro-text-body",children:t}),o!==void 0?(0,St.jsx)("p",{className:"sekyro-text-muted",children:o}):null]})}function Ie({children:e}){return(0,St.jsx)("div",{className:"sekyro-actions",children:e})}function Go(e){let t=(0,De.useContext)(Fr);(0,De.useEffect)(()=>(t(e),()=>t(!1)),[e,t])}function xo({swapKey:e,className:t,children:o}){let[r,n]=(0,De.useState)({key:e,node:o}),i=(0,De.useRef)(o);i.current=o;let a=r.key!==e;return(0,De.useEffect)(()=>{if(!a)return;let c=setTimeout(()=>n({key:e,node:i.current}),Va);return()=>clearTimeout(c)},[a,e]),(0,St.jsx)("div",{className:`${t}${a?" is-leaving":""}`,"aria-hidden":a||void 0,children:a?r.node:o},r.key)}var De,St,Jt,Fr,Va,Kn,Je=w(()=>{"use strict";De=require("react");lt();St=require("react/jsx-runtime");s(Le,"StepHeading");s(Ie,"StepActions");Jt=(0,De.createContext)(void 0),Fr=(0,De.createContext)(()=>{});s(Go,"useImmersive");Va=100;s(xo,"Swap");Kn=s(({pageKey:e,children:t})=>(0,St.jsx)(xo,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap")});function be({tone:e,role:t,children:o,testId:r}){return(0,Un.jsx)("div",{role:t??(e==="info"?"status":"alert"),className:`sekyro-notice sekyro-notice--${e}`,"data-testid":r,children:o})}var Un,eo=w(()=>{"use strict";Un=require("react/jsx-runtime");s(be,"Notice")});function F({tone:e,children:t}){return(0,Gn.jsx)(be,{tone:e,children:t})}function Ke(e,t,o){return o?e.t("common.noAttemptsLeft"):Fo(e.strings,e.locale,t)}var Gn,ze=w(()=>{"use strict";eo();Zt();Gn=require("react/jsx-runtime");s(F,"StepNotice");s(Ke,"attemptsLine")});function to(e){let[t,o]=(0,qo.useState)(()=>Date.now());return(0,qo.useEffect)(()=>{if(!e)return;let r=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(r)},[e]),t}var qo,Wo=w(()=>{"use strict";qo=require("react");s(to,"useNow")});var Yn,jn=w(()=>{"use strict";Yn={"emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"name@example.com","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا، مثل name@example.com","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":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا"}});var Zn,Qn=w(()=>{"use strict";Zn={"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":"name@example.com","emailOtp.emailInvalid":"Enter a valid email address, for example name@example.com","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the verification 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"}});var Xn,Jn=w(()=>{"use strict";Xn={"emailOtp.sendTitle":"Vérifiez votre adresse 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":"nom@exemple.com","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide, par exemple nom@exemple.com","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code de vérification","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"}});var oi={};Yt(oi,{EmailOtpView:()=>Ua});function Ua({step:e,i18n:t,className:o,defaultEmail:r="",onError:n}){let i=s((M,H)=>Pe(t.strings[M]??Ba[t.locale][M],H),"t"),[a,c]=(0,Mt.useState)(r),[l,p]=(0,Mt.useState)(""),[f,g]=(0,Mt.useState)(!1),[m,u]=(0,Mt.useState)(null),d=e.phase==="verify",h=to(d),y=(0,Mt.useId)(),I=s(async M=>{g(!0),u(null);try{await M()}catch(H){u(H instanceof ti.OtpInputError&&H.field==="email"?i("emailOtp.emailInvalid"):t.t(Oe(H,t.strings))),n?.(H)}finally{g(!1)}},"run"),b=s(M=>{I(()=>e.send(e.needsEmail&&(!M||a!==r)?{email:a}:{}))},"send"),R=s(M=>{I(()=>e.verify(M))},"submitCode"),P=s(M=>{M.preventDefault(),d?R(l):b(!1)},"onSubmit"),S=ei(e.codeExpiresAt,h),C=ei(e.resendAvailableAt,h),k=d&&e.codeExpiresAt!==void 0&&S===0,[E,$]=i("emailOtp.sentTo").split("{email}"),_=e.reason==="otp_mismatch"?(0,Y.jsxs)(F,{tone:"danger",children:[(0,Y.jsx)("span",{children:i("emailOtp.reason_otp_mismatch")}),(0,Y.jsx)("span",{children:Ke(t,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Ka.has(e.reason)?(0,Y.jsx)(F,{tone:"warning",children:(0,Y.jsx)("span",{children:i(`emailOtp.reason_${e.reason}`)})}):null;return(0,Y.jsxs)("form",{className:`sekyro-step sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":y,onSubmit:P,noValidate:!0,children:[(0,Y.jsx)(Le,{id:y,title:i(d?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:d?(0,Y.jsxs)(Y.Fragment,{children:[E,(0,Y.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),$]}):i("emailOtp.sendDescription")}),_,m!==null?(0,Y.jsx)(F,{tone:"danger",children:(0,Y.jsx)("span",{children:m})}):null,d?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"sekyro-field",children:[(0,Y.jsx)("label",{className:"sekyro-label",htmlFor:`${y}-code`,children:i("emailOtp.codeLabel")}),(0,Y.jsx)(Uo,{id:`${y}-code`,value:l,invalid:e.reason==="otp_mismatch",onChange:M=>{p(M),M.length===6&&l.length!==6&&!f&&!e.attemptsExhausted&&R(M)}}),(0,Y.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${k?" is-danger":""}`,"aria-hidden":!k||void 0,children:k?i("emailOtp.expired"):i("emailOtp.expiresIn",{time:$a(S)})})]}),(0,Y.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:k?i("emailOtp.expired"):""}),(0,Y.jsxs)(Ie,{children:[(0,Y.jsx)(L,{type:"submit",full:!0,disabled:f||l.length!==6,"aria-busy":f||void 0,children:i("emailOtp.verify")}),(0,Y.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:f||C>0,onClick:()=>b(!0),children:C>0?i("emailOtp.resendIn",{seconds:C}):i("emailOtp.resend")})]})]}):(0,Y.jsxs)(Y.Fragment,{children:[e.needsEmail?(0,Y.jsxs)("div",{className:"sekyro-field",children:[(0,Y.jsx)("label",{className:"sekyro-label",htmlFor:`${y}-email`,children:i("emailOtp.emailLabel")}),(0,Y.jsx)("input",{id:`${y}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:i("emailOtp.emailPlaceholder"),value:a,"aria-describedby":`${y}-email-help`,onChange:M=>c(M.target.value)}),(0,Y.jsx)("span",{id:`${y}-email-help`,className:"sekyro-help",children:i("emailOtp.emailHelper")})]}):(0,Y.jsx)("p",{className:"sekyro-text-muted",children:i("emailOtp.prefilledNotice")}),(0,Y.jsx)(Ie,{children:(0,Y.jsx)(L,{type:"submit",full:!0,disabled:f,"aria-busy":f||void 0,children:i("emailOtp.send")})})]})]})}var ti,Mt,Y,Ba,ei,$a,Ka,ri=w(()=>{"use strict";ti=require("@sekyro/web"),Mt=require("react");le();jn();Qn();Jn();zt();Je();ke();ze();Hr();Wo();Y=require("react/jsx-runtime"),Ba={en:Zn,fr:Xn,ar:Yn},ei=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),$a=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Ka=new Set(["otp_expired","otp_send_failed","otp_rate_limited","email_invalid","email_disposable"]);s(Ua,"EmailOtpView")});var Zo,$r=w(()=>{"use strict";Zo={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق عبر هويتك الرقمية الوطنية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل الرمز من تطبيق الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز — اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح — تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك — اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات — تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا — أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى — أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"}});var Qo,Kr=w(()=>{"use strict";Qo={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your national eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter the code from your eID app","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired — get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect — check it and enter it again","reasons.eid_code_expired":"Your code has expired — get a new code to continue","reasons.eid_locked":"Too many incorrect codes — eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now — try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes — enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"}});var Xo,Ur=w(()=>{"use strict";Xo={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID national","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré — demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect — vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré — demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects — la connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment — réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code — saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"}});var si={};Yt(si,{EidView:()=>Ya});function Ya({step:e,i18n:t,className:o,onError:r}){let n=t.strings,i=s((V,x)=>Pe(n[V]??ni[t.locale][V]??"",x),"t"),a=s((V,x)=>{let X=new Intl.PluralRules(t.locale).select(x),A=`${V}.${X}`,_e=n[A]??ni[t.locale][A]??i(`${V}.other`);return Pe(_e,{count:new Intl.NumberFormat(t.locale).format(x)})},"plural"),c=s(V=>e.providerName?i(`eid.${V}`,{provider:e.providerName}):i(`eid.${V}Generic`),"named"),[l,p]=(0,Re.useState)(""),[f,g]=(0,Re.useState)(""),[m,u]=(0,Re.useState)(!1),[d,h]=(0,Re.useState)(null),y=e.phase==="code",I=to(y),b=(0,Re.useId)(),R=ve(),P=s(async V=>{u(!0),h(null);try{await V()}catch(x){h(Oe(x,t.strings)),r?.(x)}finally{u(!1)}},"run"),S=(0,Re.useRef)(!1);(0,Re.useEffect)(()=>{!e.identifierBound||y||e.reason!==void 0||S.current||(S.current=!0,P(()=>e.start()))},[e.identifierBound,y,e.reason]),(0,Re.useEffect)(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&g("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let C=(0,Re.useRef)(y);(0,Re.useEffect)(()=>{y&&!C.current&&document.getElementById(`${b}-code`)?.focus(),C.current=y},[y,b]);let k=e.reason==="eid_locked",E=ii(e.codeExpiresAt,I),$=y&&e.codeExpiresAt!==void 0&&E===0,_=ii(e.resendAvailableAt,I),M=e.resendsRemaining===0||e.reason==="eid_resend_limit",H=s(V=>{if(V.preventDefault(),y){f.length===Gr&&!k&&P(()=>e.verify(f));return}if(e.identifierBound){P(()=>e.start());return}let x=(0,oo.normalizeNni)(l);if(e.country==="MR"){if(!/^\d{10}$/.test(x))return h("population.invalid");if(!(0,oo.isValidNni)(x))return h("population.reason_nni_invalid")}P(()=>e.start(x))},"onSubmit"),re=e.reason?.startsWith("eid_")?e.reason:void 0,Z=(0,G.jsxs)(G.Fragment,{children:[re!==void 0?(0,G.jsxs)(F,{tone:qa.has(re)?"danger":"warning",children:[(0,G.jsx)("span",{children:i(`reasons.${re}`)}),re==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?(0,G.jsx)("span",{children:a("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?(0,G.jsx)(L,{kind:"ghost",disabled:m,onClick:()=>{P(()=>e.useCamera())},children:i("eid.useCamera")}):null]}):null,d!==null?(0,G.jsx)(F,{tone:"danger",children:(0,G.jsx)("span",{children:t.t(d)})}):null]}),[Se,T]=y?[c("codeTitle"),c("codeHelp")]:[c("identifierTitle"),c(e.identifierBound?"boundDescription":"identifierDescription")];return(0,G.jsxs)("form",{className:`sekyro-stack sekyro-stack--4 sekyro-otp${o?` ${o}`:""}`,"aria-labelledby":b,onSubmit:H,noValidate:!0,"data-testid":"sekyro-eid",children:[(0,G.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,G.jsx)("h2",{id:b,ref:R,tabIndex:-1,className:"sekyro-text-body",children:Se}),(0,G.jsx)("p",{className:"sekyro-text-muted",children:T}),e.afterPass==="continue"?(0,G.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?i("eid.continueHint",{provider:e.providerName}):i("eid.continueHintGeneric")}):null]}),Z,y?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)("div",{className:"sekyro-field",children:[(0,G.jsx)("label",{className:"sekyro-label",htmlFor:`${b}-code`,children:i("eid.codeLabel")}),(0,G.jsx)("input",{id:`${b}-code`,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:f,disabled:k,onChange:V=>{h(null),g((0,oo.normalizeNni)(V.target.value).replace(/\D/g,"").slice(0,Gr))}})]}),(0,G.jsxs)("div",{className:"sekyro-row",children:[e.codeExpiresAt!==void 0?(0,G.jsx)("span",{className:"sekyro-text-muted",children:$?i("eid.expired"):i("eid.expiresIn",{time:Wa(E)})}):null,M?(0,G.jsx)("span",{className:"sekyro-text-muted",children:i("eid.noResendsLeft")}):(0,G.jsx)(L,{kind:"ghost",disabled:m||_>0||k,onClick:()=>{P(()=>e.resend())},children:_>0?i("eid.resendIn",{seconds:_}):i("eid.resend")})]}),!M&&e.resendsRemaining!==void 0?(0,G.jsx)("p",{className:"sekyro-text-muted",children:a("eid.resendsRemaining",e.resendsRemaining)}):null,(0,G.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:$?i("eid.expired"):""}),(0,G.jsx)(L,{type:"submit",full:!0,disabled:m||f.length!==Gr||k,"aria-busy":m||void 0,children:i("eid.verify")})]}):(0,G.jsxs)(G.Fragment,{children:[e.identifierBound?null:(0,G.jsxs)("div",{className:"sekyro-field",children:[(0,G.jsx)("label",{className:"sekyro-label",htmlFor:`${b}-nni`,children:t.t("population.label")}),(0,G.jsx)("input",{id:`${b}-nni`,className:"sekyro-input sekyro-mono",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:t.t("population.placeholder"),value:l,"aria-describedby":`${b}-nni-help`,"aria-invalid":d==="population.invalid"||d==="population.reason_nni_invalid"||void 0,onChange:V=>{h(null),p((0,oo.normalizeNni)(V.target.value).replace(/\D/g,"").slice(0,10))}}),(0,G.jsx)("span",{id:`${b}-nni-help`,className:"sekyro-help",children:t.t("population.helper")})]}),(0,G.jsx)(L,{type:"submit",full:!0,disabled:m,"aria-busy":m||void 0,children:i("eid.start")})]})]})}var oo,Re,G,ni,Gr,qa,ii,Wa,ai=w(()=>{"use strict";oo=require("@sekyro/web"),Re=require("react");le();$r();Kr();Ur();lt();zt();ke();ze();Wo();G=require("react/jsx-runtime"),ni={en:Qo,fr:Xo,ar:Zo},Gr=6,qa=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),ii=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),Wa=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");s(Ya,"EidView")});function Vt({title:e,description:t,options:o,busy:r,error:n,focus:i,testId:a,look:c="cards",marked:l,onChoose:p}){let f=(0,pt.useId)(),g=ve(),[m,u]=(0,pt.useState)(null),d=(0,pt.useRef)(null);(0,pt.useEffect)(()=>{n!==null&&u(null)},[n]),(0,pt.useEffect)(()=>()=>{d.current!==null&&clearTimeout(d.current)},[]);let h=s(y=>{r||m!==null||(u(y),d.current=setTimeout(()=>{d.current=null,u(null),p(y)},Za))},"choose");return(0,xe.jsxs)("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":f,"data-testid":a,children:[(0,xe.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,xe.jsx)("h2",{id:f,ref:i?g:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?(0,xe.jsx)("p",{className:"sekyro-text-muted",children:t}):null]}),n!==null?(0,xe.jsx)(be,{tone:"danger",children:(0,xe.jsx)("span",{children:n})}):null,c==="buttons"?(0,xe.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:o.map((y,I)=>(0,xe.jsx)(L,{kind:I===0?"primary":"ghost",full:!0,disabled:r,"aria-busy":r||void 0,onClick:()=>p(y.id),children:y.label},y.id))}):(0,xe.jsx)("div",{className:"sekyro-choices",children:o.map(y=>(0,xe.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":(m??l)===y.id,"aria-busy":r||void 0,disabled:r||m!==null&&m!==y.id,onClick:()=>h(y.id),children:[y.glyph,(0,xe.jsxs)("span",{className:"sekyro-card__body",children:[(0,xe.jsx)("span",{className:"sekyro-card__title",children:y.label}),y.sub!==void 0?(0,xe.jsx)("span",{className:"sekyro-card__sub",children:y.sub}):null]}),(0,xe.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},y.id))})]})}var pt,xe,Za,er=w(()=>{"use strict";pt=require("react");le();eo();lt();xe=require("react/jsx-runtime"),Za=220;s(Vt,"ChoiceScreen")});function Io(e,t){switch(e.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let o=e.nationalEid?.providerName;return o?t.t("method.national_eid",{provider:o}):t.t("method.national_eidGeneric")}default:return null}}function Et(e,t){let[o,r]=(0,qr.useState)(!1),[n,i]=(0,qr.useState)(null);return{busy:o,error:n,run:s(c=>{r(!0),i(null),c().then(()=>r(!1),l=>{r(!1),i(e.t(Oe(l,e.strings))),t?.(l)})},"run")}}var qr,tr,Wr=w(()=>{"use strict";qr=require("react");zt();tr={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};s(Io,"identityLabel");s(Et,"useChoiceAction")});function Xa(e,t,o,r){return o?"var(--sekyro-color-success)":e?r?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":t<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":t<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}function ci({progress:e,phase:t,draining:o=!1}){let r=Math.min(1,Math.max(0,e)),n=Math.round(r*56),i=t==="checking",a=t==="recording",c=t==="frozen",l=i||c,p=i||a||c,f=t==="locked"||p,g=o&&!f;return(0,mt.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":t,"data-filled":n,"data-recording":a?"":void 0,"data-draining":g?"":void 0,children:[(0,mt.jsx)("path",{fillRule:"evenodd",d:Ja,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),(0,mt.jsxs)("g",{className:t==="locked"?"sekyro-capture-settle":void 0,children:[(0,mt.jsx)("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:Qa.map((m,u)=>(0,mt.jsx)("line",{x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,stroke:Xa(u<n,m.frac,f,g),strokeWidth:3,strokeLinecap:"round",style:m.style,className:"sekyro-arc__tick"},m.id))}),(0,mt.jsx)("g",{className:t==="seeking"?"sekyro-capture-breathe":void 0,children:(0,mt.jsx)("circle",{cx:150,cy:150,r:100,fill:"none",stroke:f?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:f?3.5:2.5,className:p?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}var mt,Qa,Ja,li=w(()=>{"use strict";mt=require("react/jsx-runtime"),Qa=Array.from({length:56},(e,t)=>{let o=t/56*2*Math.PI-Math.PI/2,r=Math.cos(o),n=Math.sin(o);return{id:`tick-${t}`,frac:t/55,x1:150+108*r,y1:150+108*n,x2:150+138*r,y2:150+138*n,style:{transitionDelay:`${t*6}ms`}}});s(Xa,"tickColor");Ja="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";s(ci,"CaptureArc")});function ui({videoRef:e,guidanceText:t,guidanceHint:o,guidanceKey:r,progress:n,phase:i,draining:a=!1,stillUrl:c,showChecking:l,onSwitchCamera:p,canSwitchCamera:f,voicePrompt:g,overlay:m,reduceMotion:u=!1}){let d=Ne(),h=i==="checking",I=h||i==="frozen",b=I&&l?d("capture.checking"):t,R=g?.(o,b,r);return(0,de.jsxs)("div",{className:u?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[(0,de.jsx)("video",{ref:e,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),c!==null&&I?(0,de.jsx)("img",{src:c,alt:d("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,(0,de.jsx)(ci,{progress:n,phase:i,draining:a}),m?.(e),R!=null&&!I?(0,de.jsx)("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:R}):null,f?(0,de.jsx)(L,{kind:"chip",onClick:p,"aria-label":d("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:(0,de.jsx)(ec,{})}):null,h&&l?(0,de.jsxs)("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[(0,de.jsx)(tc,{}),d("capture.cameraOff")]}):null,(0,de.jsxs)("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[(0,de.jsx)("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:b},b),I&&l?(0,de.jsx)("span",{className:"sekyro-stage__guidance-hint",children:d("capture.checkingHint")}):null]})]})}function ec(){return(0,de.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[(0,de.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,de.jsx)("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),(0,de.jsx)("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}function tc(){return(0,de.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[(0,de.jsx)("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),(0,de.jsx)("path",{d:"M3 3l18 18"})]})}var de,di=w(()=>{"use strict";le();li();$e();de=require("react/jsx-runtime");s(ui,"CaptureStage");s(ec,"FlipCameraIcon");s(tc,"CameraOffIcon")});function pi({showCoaching:e,attemptsText:t,showRetake:o,onRetake:r}){let n=Ne(),i=(0,or.useRef)(null);return(0,or.useEffect)(()=>{o&&i.current?.focus()},[o]),!e&&!o?null:(0,Ge.jsxs)("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?(0,Ge.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,Ge.jsx)("p",{className:"sekyro-text-body",children:n("capture.retryCoaching.title")}),(0,Ge.jsxs)("ul",{className:"sekyro-coaching",children:[(0,Ge.jsx)("li",{children:n("capture.retryCoaching.light")}),(0,Ge.jsx)("li",{children:n("capture.retryCoaching.eyeLevel")}),(0,Ge.jsx)("li",{children:n("capture.retryCoaching.head")})]}),t!==null?(0,Ge.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:t}):null]}):null,o?(0,Ge.jsx)(L,{ref:i,className:"sekyro-btn--start",onClick:r,children:n("capture.recordAgain")}):null]})}var or,Ge,mi=w(()=>{"use strict";or=require("react");le();$e();Ge=require("react/jsx-runtime");s(pi,"CapturedPanel")});function rr(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}var Yr=w(()=>{"use strict";s(rr,"isDevBuild")});var fi,nr,jr=w(()=>{"use strict";fi=require("react"),nr=(0,fi.createContext)(null)});function yi({value:e,onChange:t}){let o=Ne(),r=(0,hi.useId)();return(0,ft.jsxs)("fieldset",{className:"sekyro-segmented","data-testid":"sekyro-facing",children:[(0,ft.jsx)("legend",{className:"sekyro-segmented__legend",children:o("capture.cameraLabel")}),(0,ft.jsx)("div",{className:"sekyro-segmented__options",children:oc.map(n=>(0,ft.jsxs)("label",{className:"sekyro-segmented__option",children:[(0,ft.jsx)("input",{type:"radio",className:"sekyro-segmented__input",name:r,value:n,checked:e===n,onChange:()=>t(n)}),(0,ft.jsxs)("span",{className:"sekyro-segmented__face",children:[(0,ft.jsx)("span",{className:"sekyro-segmented__dot","aria-hidden":"true"}),o(`capture.facing.${n}`)]})]},n))})]})}var hi,ft,oc,gi=w(()=>{"use strict";hi=require("react");$e();ft=require("react/jsx-runtime"),oc=["user","environment"];s(yi,"FacingPicker")});function tt({className:e,children:t}){return(0,B.jsx)("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}function vi(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,B.jsx)("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}function ki(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,B.jsx)("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}function bi(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),(0,B.jsx)("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),(0,B.jsx)("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}function Si(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),(0,B.jsx)("circle",{cx:"12",cy:"12",r:"2.8"})]})}function _i(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("path",{d:Zr}),(0,B.jsx)("path",{d:"M9 13l2 2 4-4"})]})}function Ci(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("path",{d:Zr}),(0,B.jsx)("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}function wi(e){return(0,B.jsxs)(tt,{...e,children:[(0,B.jsx)("path",{d:Zr}),(0,B.jsx)("path",{d:"M3 3l18 18"})]})}function ro({off:e,className:t}){return(0,B.jsxs)(tt,{...t!==void 0?{className:t}:{},children:[(0,B.jsx)("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?(0,B.jsx)("path",{d:"M4 4l16 16"}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),(0,B.jsx)("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}function Ni(e){return(0,B.jsx)(tt,{...e,children:(0,B.jsx)("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}function xi(e){return(0,B.jsxs)(tt,{className:e.className??"sekyro-spinner",children:[(0,B.jsx)("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),(0,B.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}var B,Zr,no=w(()=>{"use strict";B=require("react/jsx-runtime");s(tt,"Svg");Zr="M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z";s(vi,"SunIcon");s(ki,"FaceUncoveredIcon");s(bi,"PhoneEyeLevelIcon");s(Si,"LookStraightIcon");s(_i,"CameraCheckIcon");s(Ci,"CameraAskIcon");s(wi,"CameraBlockedIcon");s(ro,"SpeakerIcon");s(Ni,"CheckIcon");s(xi,"SpinnerIcon")});function Ii({state:e}){let t=Ne(),[o,r]=(0,ir.useState)(!1);(0,ir.useEffect)(()=>{e!=="unknown"&&r(!0)},[e]);let n=e==="granted"?(0,wt.jsx)(_i,{}):e==="denied"?(0,wt.jsx)(wi,{}):(0,wt.jsx)(Ci,{});return(0,wt.jsxs)("div",{role:o?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[(0,wt.jsx)("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:n}),(0,wt.jsx)("span",{children:t(`capture.permission.${e}`)})]})}var ir,wt,Li=w(()=>{"use strict";ir=require("react");$e();no();wt=require("react/jsx-runtime");s(Ii,"PermissionRow")});function Ti({tips:e}){let t=Ne(),o=(0,Ri.useId)();return e.length===0?null:(0,He.jsxs)("section",{className:"sekyro-tips","aria-labelledby":o,"data-testid":"sekyro-tips",children:[(0,He.jsx)("p",{className:"sekyro-tips__title",id:o,children:t("capture.tips.title")}),(0,He.jsx)("ul",{className:"sekyro-tips__list",children:e.map(r=>{let n=typeof r=="string"?rc[r]:void 0,i=typeof r=="string"?r:r.id,a=n!==void 0?n.icon():typeof r=="string"?void 0:r.icon,c=n!==void 0?t(n.key):typeof r=="string"?r:r.text;return(0,He.jsxs)("li",{className:"sekyro-tips__item",children:[a!=null?(0,He.jsx)("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:a}):null,(0,He.jsx)("span",{children:c})]},i)})})]})}var Ri,He,sr,rc,Qr=w(()=>{"use strict";Ri=require("react");$e();no();He=require("react/jsx-runtime"),sr=["light","uncover","eyeLevel","straight"],rc={light:{key:"capture.tips.light",icon:s(()=>(0,He.jsx)(vi,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:s(()=>(0,He.jsx)(ki,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:s(()=>(0,He.jsx)(bi,{}),"icon")},straight:{key:"capture.tips.straight",icon:s(()=>(0,He.jsx)(Si,{}),"icon")}};s(Ti,"TipList")});function Pi({voice:e}){let t=Ne();if(!e.supported)return null;let o=e.enabled;return(0,Nt.jsxs)("button",{type:"button",role:"switch","aria-checked":o,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[(0,Nt.jsxs)("span",{className:"sekyro-switch__label",children:[(0,Nt.jsx)(ro,{off:!o}),t("capture.voiceGuidance")]}),(0,Nt.jsx)("span",{className:"sekyro-switch__track","aria-hidden":"true",children:(0,Nt.jsx)("span",{className:"sekyro-switch__thumb",children:o?(0,Nt.jsx)(Ni,{className:"sekyro-switch__check"}):null})})]})}var Nt,zi=w(()=>{"use strict";$e();no();Nt=require("react/jsx-runtime");s(Pi,"VoiceSwitch")});function Ai({assets:e,onRetryAssets:t,permission:o,canChooseFacing:r,facing:n,onFacingChange:i,voice:a,tips:c,summary:l,startLabel:p,startDisabled:f,onStart:g}){let m=Ne(),u=(0,Ae.useRef)(l?.stop);u.current=l?.stop,(0,Ae.useEffect)(()=>()=>u.current?.(),[]);let d=(0,Ae.useRef)(null),h=(0,Ae.useRef)(null),y=(0,Ae.useRef)(null),I=(0,Ae.useRef)(e),b=(0,Ae.useRef)(!1);(0,Ae.useEffect)(()=>{let E=I.current;if(I.current=e,E===e)return;let $=b.current;e!=="loading"&&(b.current=!1),nc(d.current)&&(e==="failed"?y.current?.focus():$&&h.current?.focus())},[e]);let R=(0,Ae.useCallback)(()=>{b.current=!0,t()},[t]),P=e==="loading",S=P||f,C=(0,Ae.useCallback)(()=>{S||(u.current?.(),g())},[S,g]),k;return e==="failed"?k=(0,pe.jsxs)(be,{tone:"danger",testId:"sekyro-assets-error",children:[(0,pe.jsx)("p",{className:"sekyro-text-body",children:m("fcv2.err.models")}),(0,pe.jsx)(L,{kind:"ghost",ref:y,className:"sekyro-btn--start",onClick:R,"data-testid":"sekyro-assets-retry",children:m("common.retry")})]}):k=(0,pe.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,pe.jsx)(L,{ref:h,full:!0,"data-testid":"sekyro-start","aria-disabled":S?"true":void 0,"aria-busy":P?"true":void 0,onClick:C,children:P?(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(xi,{}),m("capture.preparing.title")]}):p??m("capture.start")}),P?(0,pe.jsx)("p",{className:"sekyro-text-muted",children:m("capture.preparing.hint")}):null]}),(0,pe.jsxs)("div",{ref:d,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[c!==!1?(0,pe.jsx)(Ti,{tips:c}):null,l!==void 0?(0,pe.jsxs)(L,{kind:"ghost",className:"sekyro-btn--start",onClick:l.toggle,"data-testid":"sekyro-tips-listen",children:[(0,pe.jsx)(ro,{off:!1}),m(l.playing?"capture.tips.stop":"capture.tips.listen")]}):null,(0,pe.jsx)(Ii,{state:o}),r?(0,pe.jsx)(yi,{value:n,onChange:i}):null,(0,pe.jsx)(Pi,{voice:a}),(0,pe.jsx)("p",{className:"sekyro-text-muted",children:m("capture.securityNote")}),k,(0,pe.jsx)("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?m("capture.preparing.title"):e==="ready"?m("capture.ready"):""})]})}function nc(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}var Ae,pe,Mi=w(()=>{"use strict";Ae=require("react");le();eo();$e();gi();no();Li();Qr();zi();pe=require("react/jsx-runtime");s(Ai,"PreCaptureScreen");s(nc,"focusIsOurs")});function Vi(){let[e,t]=(0,io.useState)({state:"unknown",settled:!1}),[o,r]=(0,io.useState)(!1);return(0,io.useEffect)(()=>(0,ar.subscribeCameraPermission)(n=>t({state:n,settled:!0})),[]),(0,io.useEffect)(()=>{let n=!0;return(0,ar.hasMultipleCameras)().then(i=>{n&&r(i)}),()=>{n=!1}},[]),{permission:e.state,permissionSettled:e.settled,canChooseFacing:o}}var ar,io,Ei=w(()=>{"use strict";ar=require("@sekyro/web"),io=require("react");s(Vi,"useCameraStatus")});function Oi(e){return Hi(e,"mobileRequired")}function Di(e){return Hi(e,"returning").required}function Hi(e,t){let[o,r]=(0,so.useState)({required:!1,settled:e===void 0});return(0,so.useEffect)(()=>{let n=e?.[t];if(e===void 0||typeof n!="function"){r({required:!1,settled:!0});return}let i=!0;return r({required:!1,settled:!1}),Promise.resolve().then(()=>n.call(e)).then(a=>{i&&r({required:a===!0,settled:!0})},()=>{i&&r({required:!1,settled:!0})}),()=>{i=!1}},[e,t]),o}function Fi(e){let[t,o]=(0,so.useState)(!1);return(0,so.useEffect)(()=>{if(o(!1),e===void 0)return;let r=e.on("busy",()=>o(!0)),n=e.on("result",()=>o(!1));return()=>{r(),n()}},[e]),t}var so,Bi=w(()=>{"use strict";so=require("react");s(Oi,"useMobileRequired");s(Di,"useReturning");s(Hi,"useFlag");s(Fi,"useBusy")});function $i(e){return(0,ao.preloadLivenessAssets)(e!==void 0?{assetBaseUrl:e}:{})}function Ki(e,t=!0){let o=(0,Te.useSyncExternalStore)((0,Te.useCallback)(g=>(0,ao.subscribeLivenessAssets)(g,e),[e]),()=>(0,ao.getLivenessAssetsStatus)(e),ic),[r,n]=(0,Te.useState)(null),i=(0,Te.useRef)(!1),a=(0,Te.useCallback)(()=>{$i(e).then(g=>{i.current&&g==="idle"&&n({base:e})})},[e]);(0,Te.useEffect)(()=>(i.current=!0,a(),()=>{i.current=!1}),[a]);let c=(0,Te.useRef)(null);(0,Te.useEffect)(()=>{if(o!=="idle"){c.current={base:e};return}!t||c.current===null||c.current.base!==e||(c.current=null,a())},[o,e,a,t]);let l=(0,Te.useCallback)(()=>{$i(e)},[e]);return{gate:r!==null&&r.base===e&&o==="idle"||o==="ready"?"ready":o==="failed"?"failed":"loading",retry:l}}var ao,Te,ic,Ui=w(()=>{"use strict";ao=require("@sekyro/web"),Te=require("react"),ic=s(()=>"idle","serverSnapshot");s($i,"preload");s(Ki,"useLivenessAssets")});function Wi(e){let{videoRef:t,assetBaseUrl:o}=e,n=(0,ue.useRef)(e.verification).current,i=(0,ue.useRef)(!1);e.verification!==n&&!i.current&&rr()&&(i.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let a=(0,ue.useRef)(null),[c,l]=(0,ue.useState)("idle"),[p,f]=(0,ue.useState)(Gi),[g,m]=(0,ue.useState)(!1),[u,d]=(0,ue.useState)(!1),[h,y]=(0,ue.useState)(null),[I,b]=(0,ue.useState)(!1),[R,P]=(0,ue.useState)(null),[S,C]=(0,ue.useState)(null),[k,E]=(0,ue.useState)(null),$=(0,ue.useRef)(null),_=(0,ue.useRef)(e);_.current=e,(0,ue.useEffect)(()=>{let Z=t.current;if(Z===null)return;let Se={video:Z,...o!==void 0?{assetBaseUrl:o}:{}},T=n!==void 0?n.liveness(Se):(0,qi.createLivenessCapture)(Se);a.current=T;let V=[T.on("state",x=>{x==="starting"&&(P(null),C(null),f(Gi),d(!1),m(!1),y(null),$.current=null),l(x),_.current.onStateChange?.(x)}),T.on("gate",x=>{let X=$.current;$.current=x.progress,m(X!==null&&x.progress<X-.001&&x.progress>0&&x.progress<1),x.progress>=1&&d(!0),f(x)}),T.on("frozen",({previewDataUrl:x})=>y(x)),T.on("profile",({animations:x})=>b(x==="reduced")),T.on("captured",x=>{P(x),E(null),_.current.onCaptured?.(x)}),T.on("error",x=>{C(x),_.current.onError?.(x)}),n?.on("result",x=>{E(x),_.current.onResult?.(x)})];return()=>{for(let x of V)x?.();a.current=null,T.destroy()}},[n,t,o]);let M=(0,ue.useCallback)(Z=>{a.current?.start(Z)},[]),H=(0,ue.useCallback)(()=>{a.current?.retry()},[]),re=(0,ue.useCallback)(()=>{d(!1),m(!1),y(null),$.current=null,a.current?.switchCamera()},[]);return{state:c,gate:p,draining:g,gateLocked:u,frozenPreview:h,reduceMotion:I,artifacts:R,error:S,result:k,start:M,retry:H,switchCamera:re}}var qi,ue,Gi,Yi=w(()=>{"use strict";qi=require("@sekyro/web"),ue=require("react");Yr();Gi={progress:0,hint:null,faceDetected:!1};s(Wi,"useLivenessHandle")});function ji(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(o=>sc.has(o));return t.length>0?{...e,options:t}:null}function Zi(e){let[t,o]=(0,ht.useState)(null),[r,n]=(0,ht.useState)(e===void 0),[i,a]=(0,ht.useState)(!1),[c,l]=(0,ht.useState)(!1);(0,ht.useEffect)(()=>{if(o(null),e===void 0){n(!0);return}let m=!0,u=e.methodChoice;typeof u=="function"?(n(!1),Promise.resolve().then(()=>u.call(e)).then(h=>{m&&o(ji(h))},()=>{}).finally(()=>{m&&n(!0)})):n(!0);let d=e.on("method",h=>o(ji(h)));return()=>{m=!1,d()}},[e]);let p=(0,ht.useCallback)(async m=>{if(e===void 0)return!1;a(!0),l(!1);try{return await e.selectMethod(m),o(null),!0}catch{return l(!0),!1}finally{a(!1)}},[e]),f=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:f==="national_number"&&!c?f:null,settled:r,busy:i,failed:c,select:p}}var ht,sc,Qi=w(()=>{"use strict";ht=require("react"),sc=new Set(["national_number"]);s(ji,"pending");s(Zi,"useMethodChoice")});function Ot(e){return e!==null&&cr.includes(e)}var cr,lr=w(()=>{"use strict";cr=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","capture.tips.summary"];s(Ot,"isVoiceKey")});function cc(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}function lc(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let o={};for(let r of ac){let n=t[r];if(!(typeof n!="object"||n===null))for(let[i,a]of Object.entries(n))!Ot(i)||!cc(a)||((o[r]??(o[r]={}))[i]=a)}return Object.keys(o).length>0?o:null}function Xi(e){let[t,o]=(0,co.useState)(null);(0,co.useEffect)(()=>{if(o(null),e===void 0)return;let n=!0,i=s(c=>{if(!n)return;let l=typeof c=="object"&&c!==null&&typeof c.setId=="string"?c:null;o(p=>p?.setId===l?.setId?p:l)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(i,()=>i(null))}catch{i(null)}let a=e.on("view",c=>i(c.voice));return()=>{n=!1,a()}},[e]);let r=(0,co.useMemo)(()=>t!==null?lc(t):null,[t]);return e===void 0?null:r}var co,ac,Ji=w(()=>{"use strict";co=require("react");lr();ac=["ar","fr","en"];s(cc,"isClipUrl");s(lc,"toVoiceClipMap");s(Xi,"useServerVoiceClips")});function es({voice:e}){let t=Ne();return(0,Xr.jsx)(L,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:(0,Xr.jsx)(ro,{off:!e.enabled,className:"sekyro-icon"})})}var Xr,ts=w(()=>{"use strict";le();no();$e();Xr=require("react/jsx-runtime");s(es,"VoiceChip")});function lo(e,t,o){let r;try{if(typeof e=="function")r=e(t,o);else{let n=e[o];r=n!=null&&uc(n,t)?n[t]:null}}catch{return null}return typeof r=="string"&&r!==""?r:null}var uc,os=w(()=>{"use strict";uc=s((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");s(lo,"resolveClip")});function ot(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}function pc(){return ot()!==null&&typeof SpeechSynthesisUtterance=="function"}function rs(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}function ss(e,t){let o=s(n=>n.replace(/_/g,"-").toLowerCase(),"norm"),r=rs(t);return e.find(n=>o(n.lang)===o(t))??e.find(n=>rs(n.lang)===r)}function as(e){if(!pc())return!1;let t=[];try{t=ot()?.getVoices()??[]}catch{return!0}return t.length===0||ss(t,e)!==void 0}function cs(e){let t=ot();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}function Lo(e){try{let t=typeof location<"u"?location.href:"http://localhost/",o=new URL(e,t);return`clip:${o.origin}${o.pathname}`}catch{return`clip:${e}`}}function ns(e){e.pause(),e.removeAttribute("src"),e.load()}function ls(){let e=null,t=null,o=0,r=null,n=[],i=new Map,a=s(()=>{n=ot()?.getVoices()??[]},"loadVoices"),c=!1,l=s(()=>{let u=ot();c||u===null||(c=!0,a(),u.addEventListener?.("voiceschanged",a))},"bindVoices"),p=s(()=>(e??(e=new Audio),e),"element"),f=s((u,d,h)=>{let y=ot();if(y!==null&&u!==""&&typeof SpeechSynthesisUtterance=="function"){l();let I=ss(n,d);if(n.length===0||I!==void 0){y.cancel();let b=new SpeechSynthesisUtterance(u);b.lang=d,I!==void 0&&(b.voice=I),b.rate=.95,h!==void 0&&(b.onend=b.onerror=h),y.speak(b);return}}h?.()},"speak"),g=s(()=>{o+=1,r=null,e!==null&&(e.pause(),e.currentTime=0),ot()?.cancel()},"stop"),m=s(u=>{for(let d of u){let h=Lo(d);if(i.has(h))continue;let y=new Audio;y.preload="auto",y.src=d,i.set(h,y)}},"warmClips");return{say(u){let d=u.url!==null?Lo(u.url):`tts:${u.lang}:${u.text}`;if(d===r)return;r=d,o+=1;let h=o,y=u.onEnd,I=y!==void 0?()=>{h===o&&y()}:void 0;if(ot()?.cancel(),u.url!==null){let b=p();b.pause(),b.muted=!1,b.src=u.url,b.currentTime=0,b.onended=I??null,b.play()?.catch(R=>{h===o&&R?.name!=="AbortError"&&(u.speech?f(u.text,u.lang,I):I?.())});return}u.speech?f(u.text,u.lang,I):I?.()},unlock({lang:u,speech:d,prefetch:h}){let y=p();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let R=Uint8Array.from(atob(dc),P=>P.charCodeAt(0));t=URL.createObjectURL(new Blob([R],{type:"audio/wav"}))}let I=y.paused===!1&&t!==null&&y.src!==t;t!==null&&!I&&(y.muted=!0,y.onended=null,y.src=t,y.play()?.catch(()=>{}));let b=ot();if(d&&b!==null&&typeof SpeechSynthesisUtterance=="function"){l();let R=new SpeechSynthesisUtterance(" ");R.volume=0,R.lang=u,b.speak(R)}m(h??[])},prefetch:m,stop:g,dispose(){g(),c&&ot()?.removeEventListener?.("voiceschanged",a),c=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&ns(e),e=null;for(let u of i.values())ns(u);i.clear()}}}var dc,is,us=w(()=>{"use strict";dc="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",is={ar:"ar-SA",fr:"fr-FR",en:"en-US"};s(ot,"synth");s(pc,"speechAvailable");s(rs,"baseLang");s(ss,"pickVoice");s(as,"speechUsable");s(cs,"subscribeVoices");s(Lo,"clipIdentity");s(ns,"release");s(ls,"createVoicePlayer")});function ps(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}function ms(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}var ds,fs=w(()=>{"use strict";ds="sekyro.voiceGuidance";s(ps,"readVoicePreference");s(ms,"writeVoicePreference")});function Jr(e,t){let o=new Set,r=[];for(let n of cr){let i=n===Ro?null:lo(e,n,t);i===null||o.has(Lo(i))||(o.add(Lo(i)),r.push(i))}return r}function en({locale:e,defaultClips:t,options:o}){let r=o===!1,n=r?{}:o??{},i=n.storageKey===void 0?ds:n.storageKey,[a,c]=(0,U.useState)(n.defaultEnabled??!0),l=(0,U.useRef)(a),[p,f]=(0,U.useState)(!1),[g,m]=(0,U.useState)("none"),[u,d]=(0,U.useState)(!1),h=(0,U.useRef)(!1),[y,I]=(0,U.useState)(0),b=(0,U.useRef)(null),R=(0,U.useCallback)(()=>(b.current??(b.current=ls()),b.current),[]),P=is[e],S=n.speechFallback,C=S===void 0||S===!0?!0:S===!1?!1:S.includes(e),k=n.clips??t??fc,E=(0,U.useRef)(!1),$=(0,U.useRef)(k);mc(()=>{$.current=k,l.current=a}),(0,U.useEffect)(()=>{if(r||i===null)return;let A=ps(i);A!==null&&(l.current=A,c(A))},[r,i]),(0,U.useEffect)(()=>{if(!(r||!C))return cs(()=>I(A=>A+1))},[r,C]);let _=n.clips;(0,U.useEffect)(()=>{if(r)return;let A=C&&as(P);f(Jr(k,e).length>0||A),m(_!==void 0&&lo(_,Ro,e)!==null?"partner":lo(k,Ro,e)!==null||A?"default":"none")},[r,k,_,e,C,P,y]),(0,U.useEffect)(()=>{if(r||!a||!E.current)return;let A=Jr(k,e);A.length>0&&R().prefetch(A)},[r,a,k,e,R]),(0,U.useEffect)(()=>()=>{b.current?.dispose(),b.current=null,E.current=!1},[]);let M=(0,U.useCallback)(A=>{r||(E.current=!0,R().unlock({lang:P,speech:C,...A?{prefetch:Jr($.current,e)}:{}}))},[r,R,P,C,e]),H=(0,U.useCallback)(()=>M(l.current),[M]),re=(0,U.useCallback)(()=>{h.current=!1,d(!1)},[]),Z=(0,U.useCallback)(()=>{re(),b.current?.stop()},[re]),Se=(0,U.useCallback)(()=>{h.current&&Z()},[Z]),T=(0,U.useCallback)((A,_e)=>{if(r)return;if(h.current){Z();return}let je=R();je.stop(),h.current=!0,d(!0);let It=_e?.clip===!1?null:lo($.current,Ro,e);je.say({url:It,text:A,lang:P,speech:C,onEnd:re})},[r,Z,R,e,P,C,re]),V=(0,U.useCallback)(A=>{r||(A?M(!0):Z(),i!==null&&ms(i,A),l.current=A,c(A))},[r,M,Z,i]),x=(0,U.useCallback)(()=>V(!l.current),[V]),X=(0,U.useCallback)((A,_e)=>{if(r||!a)return;h.current&&re();let je=lo($.current,A,e);R().say({url:je,text:_e,lang:P,speech:C})},[r,a,e,R,P,C,re]);return(0,U.useMemo)(()=>({supported:!r&&p,enabled:!r&&a,setEnabled:V,toggle:x,unlock:H,speakKey:X,stop:Z,summary:r?"none":g,summaryPlaying:u,toggleSummary:T,stopSummary:Se}),[r,p,a,V,x,H,X,Z,g,u,T,Se])}function tn(e,t,o,r){let{speakKey:n,stop:i,enabled:a}=e,c=(0,U.useRef)(!1);(0,U.useEffect)(()=>{if(!r||!a){c.current&&i(),c.current=!1;return}c.current=!0,Ot(t)&&t!==Ro&&o!==""&&n(t,o)},[r,a,t,o,n,i])}var U,Ro,mc,fc,hs=w(()=>{"use strict";U=require("react");os();lr();us();fs();Ro="capture.tips.summary",mc=typeof window<"u"?U.useLayoutEffect:U.useEffect,fc=Object.freeze({});s(Jr,"resolvedClipUrls");s(en,"useVoiceGuidance");s(tn,"useSpeakGuidance")});var ys=w(()=>{"use strict";lr();hs()});function yc(e){return e===void 0||e!==!1&&e.length===sr.length&&sr.every(t=>e.includes(t))}function gc(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}function vc(e){return typeof e=="object"&&e!==null&&!(0,q.isValidElement)(e)&&"tone"in e&&"text"in e}function kc(e){return e==="starting"||e==="gating"||e==="recording"}function bc(e){return e==="captured"||e==="uploading"||e==="checking"}function ur({verification:e,locale:t,dir:o,strings:r,slots:n,autoStart:i=!1,notice:a,startDisabled:c=!1,startLabel:l,tips:p,tipsSummary:f,coach:g,defaultFacing:m,voice:u,onGuidance:d,onCaptured:h,onResult:y,onError:I,onStateChange:b,assetBaseUrl:R,className:P}){let S=(0,q.useMemo)(()=>$o(t,r),[t,r]),C=(0,q.useMemo)(()=>ie=>S[ie]??"",[S]),k=o??(t==="ar"?"rtl":"ltr"),E=(0,q.useRef)(null),$=(0,q.useContext)(nr),_=Wi({verification:e,videoRef:E,assetBaseUrl:R,onCaptured:h,onResult:y,onError:I,onStateChange:b}),M=Ki(R,_.state==="idle"&&_.error===null),H=Zi(e),re=H.choice!==null,Z=Oi(e),Se=Di(e),T=Fi(e),V=Vi(),x=u!==!1&&u?.clips===void 0,X=Xi(x?e:void 0),A=en({locale:t,defaultClips:X,options:u}),[_e,je]=(0,q.useState)(m??"user"),It=(0,q.useRef)(null),vt=(0,q.useRef)(!1),Ao=(0,q.useRef)(A.unlock);Ao.current=A.unlock,(0,q.useEffect)(()=>{let ie=It.current;if(ie===null)return;let Rt=["pointerup","touchend","click","keydown"],kt=s(()=>{for(let Co of Rt)ie.removeEventListener(Co,Wt,!0)},"disarm");function Wt(Co){if(vt.current){kt();return}gc(Co)&&(vt.current=!0,kt(),Ao.current())}s(Wt,"onGesture");for(let Co of Rt)ie.addEventListener(Co,Wt,{capture:!0,passive:!0});return kt},[]);let go=(0,q.useCallback)(()=>{vt.current||(vt.current=!0,A.unlock()),_.start({facing:_e})},[A.unlock,_.start,_e]),vo=(0,q.useCallback)(()=>_.start({facing:_e}),[_.start,_e]),Ft=(0,q.useRef)(!1),nt=_.state==="idle"&&_.error===null,it=!re&&!Z.required&&(i===!0||i==="when-permitted"&&V.permission==="granted"),Ce=it&&H.settled&&Z.settled,Bt=i==="when-permitted"&&!V.permissionSettled&&!Ft.current,$t=it&&nt&&!Ft.current,Kt=(Bt||$t)&&M.gate==="ready"?"loading":M.gate;(0,q.useEffect)(()=>{!Ce||!nt||M.gate!=="ready"||Ft.current||(Ft.current=!0,vo())},[Ce,nt,M.gate,vo]);let xr=nt&&!re&&!Z.required&&!($t&&M.gate==="ready"),Ir=(0,q.useCallback)(()=>{je(ie=>ie==="user"?"environment":"user"),_.switchCamera()},[_.switchCamera]),Ut=(0,q.useMemo)(()=>_.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(_.artifacts.keyframe):null,[_.artifacts]);(0,q.useEffect)(()=>{if(Ut!==null)return()=>URL.revokeObjectURL(Ut)},[Ut]);let ko=_.frozenPreview??Ut,Ze=e!==void 0,O=kc(_.state),K=bc(_.state),W=O||K,me=_.result,we=_.state==="done"&&me!==null,Qe=_.state==="recording"&&_.frozenPreview!==null,bo=$!==null,J=K||Qe,Xe=K?"checking":Qe?"frozen":_.state==="recording"?"recording":_.gateLocked||_.gate.progress>=1?"locked":_.gate.faceDetected?"aligning":"seeking",Gt=O?_.gate.hint:null,Ee=_.state==="starting"?"capture.preparing.title":Gt===null?null:Gt==="center"&&!_.gate.faceDetected?"fcv3.no_face":zn(Gt),[st,gn]=(0,q.useState)(null);(0,q.useEffect)(()=>{if(Ee!=="fcv3.no_face"){gn(Ee);return}if(!O)return;let ie=setTimeout(()=>gn(Ee),hc);return()=>clearTimeout(ie)},[Ee,O]);let Lr=O&&typeof g=="string"&&g!=="",Lt=O&&!Lr?st:null,Rr=Lr?g:Lt===null?"":C(Lt);tn(A,Lt,Rr,O);let vn=(0,q.useRef)(d);vn.current=d,(0,q.useEffect)(()=>{if(Ot(Lt))try{vn.current?.(Lt)}catch(ie){console.error("[@sekyro/react] onGuidance threw:",ie)}},[Lt]);let So=(0,q.useMemo)(()=>({supported:A.supported,enabled:A.enabled,setEnabled:A.setEnabled,toggle:A.toggle}),[A.supported,A.enabled,A.setEnabled,A.toggle]),Tr=n?.voicePrompt,kn=Tr!==void 0,bn=u===void 0,Sn=(0,q.useRef)(!1);(0,q.useEffect)(()=>{!kn||!bn||Sn.current||!rr()||(Sn.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[kn,bn]);let Ca=Tr!==void 0?(ie,Rt,kt)=>Tr(ie,Rt,kt,So):A.supported?()=>(0,j.jsx)(es,{voice:So}):void 0,{summary:Pr,summaryPlaying:_n,toggleSummary:Cn,stopSummary:wn}=A,Mo=f!==void 0&&f!=="",Nn=Mo?f:C("capture.tips.summary"),xn=Mo?Pr!=="none":Pr==="partner"||Pr==="default"&&yc(p),In=(0,q.useMemo)(()=>xn?{playing:_n,toggle:s(()=>Cn(Nn,{clip:!Mo}),"toggle"),stop:wn}:void 0,[xn,_n,Cn,Nn,wn,Mo]),wa=(0,q.useMemo)(()=>({assets:Kt,retryAssets:M.retry,permission:V.permission,facing:_e,setFacing:je,canChooseFacing:V.canChooseFacing,voice:So}),[Kt,M.retry,V.permission,V.canChooseFacing,_e,So]),Na=vc(a)?(0,j.jsx)(be,{tone:a.tone,testId:"sekyro-host-notice",children:(0,j.jsx)("span",{children:a.text})}):a??null,at=me!==null&&me.status==="retry"?me:null,ct=we&&me.status==="unavailable"&&!re&&me.reason!=="portrait_required"?me:null,_o=we&&(me.status==="approved"||me.status==="rejected"||me.status==="review")?me:null,qt=s((ie,Rt)=>{if(ie===void 0)return null;if(ie==="device_cooldown"){let Wt=Ho(t,Rt);if(Wt!==null)return C(Wt.key).replace("{time}",Wt.time)}let kt=jt(ie);return kt===null?null:C(kt)},"reasonText"),xa=ct!==null&&ct.reason!==void 0&&ct.reason!=="nni_unbound"&&ct.reason!=="method_required"&&ct.reason!=="mobile_required"&&!(ct.reason==="no_recorder"&&_.artifacts?.degraded==="NO_RECORDER"),Ln=ve(),Ia=re&&H.auto===null&&!O&&!K&&_.error===null,zr=(0,q.useCallback)(async ie=>{await H.select(ie)&&_.state==="done"&&_.retry()},[H.select,_.state,_.retry]);return(0,q.useEffect)(()=>{H.auto!==null&&!H.busy&&!O&&!K&&zr(H.auto)},[H.auto,H.busy,O,K,zr]),(0,j.jsx)(Vn,{value:C,children:(0,j.jsxs)("div",{ref:It,className:P===void 0?"sekyro-capture":`sekyro-capture ${P}`,dir:k,lang:t,"data-testid":"sekyro-liveness-capture","data-state":_.state,children:[n?.header,at!==null&&qt(at.reason)!==null&&!(bo&&W)?(0,j.jsx)(be,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:(0,j.jsx)("span",{children:qt(at.reason)})}):null,T&&K&&!bo?(0,j.jsx)(be,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:(0,j.jsx)("span",{children:C("capture.busy")})}):null,Z.required&&nt?(0,j.jsx)(be,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:(0,j.jsx)("span",{children:C("reasons.mobile_required")})}):null,_.error!==null?n?.errorPanel!==void 0?n.errorPanel(_.error,_.retry):(0,j.jsxs)(be,{tone:"danger",testId:"sekyro-error-notice",children:[(0,j.jsx)("span",{children:C(An(_.error.kind))}),_.error.retryable?(0,j.jsx)(L,{ref:Ln,kind:"ghost",className:"sekyro-btn--start",onClick:_.retry,children:C("common.retry")}):null]}):null,ct!==null?(0,j.jsxs)(be,{tone:"danger",testId:"sekyro-unavailable-notice",children:[(0,j.jsx)("span",{children:qt(ct.reason)??C(ct.reason===void 0?"errors.session_expired":"errors.network_error")}),xa?(0,j.jsx)(L,{ref:Ln,kind:"ghost",className:"sekyro-btn--start",onClick:_.retry,children:C("capture.recordAgain")}):null]}):null,_o!==null&&qt(_o.reason)!==null?(0,j.jsx)(be,{tone:_o.status==="rejected"?"danger":"info",testId:"sekyro-result-notice",children:(0,j.jsx)("span",{children:qt(_o.reason,_o.retryAfter)})}):null,(0,j.jsx)("div",{className:W?void 0:"sekyro-hidden","data-capture-live":W?"":void 0,children:bo?$({videoRef:E,guidance:J&&Ze?C("capture.checking"):Rr,coached:Lr&&!(J&&Ze),note:J?Ze?C(T?"capture.busy":"capture.checkingHint"):null:at!==null?qt(at.reason):null,settled:J&&Ze,progress:_.gate.progress,phase:Xe,still:J?ko:null,live:W}):(0,j.jsx)(ui,{videoRef:E,guidanceText:Rr,guidanceHint:Gt,guidanceKey:Lt,progress:_.gate.progress,phase:Xe,draining:_.draining,stillUrl:ko,showChecking:Ze,onSwitchCamera:Ir,canSwitchCamera:O&&_.state!=="recording",voicePrompt:Ca,overlay:n?.stageOverlay,reduceMotion:_.reduceMotion})}),Ia&&H.choice!==null?(0,j.jsx)(Vt,{title:C("method.title"),description:C("method.description"),options:H.choice.options.map(ie=>({id:ie,label:C(`method.${ie}`)})),busy:H.busy,error:H.failed?C("errors.network_error"):null,focus:_.state==="done",testId:"sekyro-method",look:"buttons",onChoose:ie=>{zr(ie)}}):null,xr?(0,j.jsxs)(j.Fragment,{children:[Se&&n?.header===void 0?(0,j.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,j.jsx)("h2",{className:"sekyro-text-body",children:C("returning.title")}),(0,j.jsx)("p",{className:"sekyro-text-muted",children:C("returning.description")})]}):null,Na,n?.intro!==void 0?n.intro(go,wa):(0,j.jsx)(Ai,{assets:Kt,onRetryAssets:M.retry,permission:V.permission,canChooseFacing:V.canChooseFacing,facing:_e,onFacingChange:je,voice:So,tips:p??sr,...In!==void 0?{summary:In}:{},...l!==void 0?{startLabel:l}:{},startDisabled:c,onStart:go})]}):null,(0,j.jsx)(pi,{showCoaching:at!==null,attemptsText:at?.attemptsRemaining!==void 0?Fo(S,t,at.attemptsRemaining):null,showRetake:at!==null&&!O&&!K||!Ze&&_.state==="captured",onRetake:_.retry}),n?.footer]})})}var q,j,hc,on=w(()=>{"use strict";q=require("react");le();di();mi();Yr();jr();Mi();Qr();er();eo();Zt();Ei();Bi();lt();Ui();Yi();Qi();Ji();$e();ts();ys();j=require("react/jsx-runtime"),hc=800;s(yc,"isDefaultTips");s(gc,"carriesActivation");s(vc,"isNoticeObject");s(kc,"isCapturing");s(bc,"isPostCapture");s(ur,"LivenessCapture")});var gs,vs=w(()=>{"use strict";gs={"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.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":"المتابعة هنا على أي حال"}});var ks,bs=w(()=>{"use strict";ks={"choice.title":"How do you want to continue?","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"How do you want to get 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":"National number (NNI)","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 this page 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"}});var Ss,_s=w(()=>{"use strict";Ss={"choice.title":"Comment voulez-vous continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Comment voulez-vous recevoir 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 (NNI)","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 cette page dans votre 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"}});var Cs,ws=w(()=>{"use strict";Cs={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'}});function se({name:e,className:t}){return(0,Ns.jsx)("svg",{className:`sekyro-glyph${t?` ${t}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:Cs[e]}})}var Ns,yt=w(()=>{"use strict";ws();Ns=require("react/jsx-runtime");s(se,"Icon")});function Sc(){let e=`sekyro-face-light-${(0,xs.useId)().replace(/[^A-Za-z0-9_-]/g,"")}`;return(0,Q.jsxs)("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[(0,Q.jsx)("defs",{children:(0,Q.jsx)("mask",{id:e,children:(0,Q.jsx)("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),(0,Q.jsx)("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),(0,Q.jsx)("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),(0,Q.jsx)("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),(0,Q.jsx)("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${e})`})]})}function dr({start:e,context:t,tips:o,tipsTitle:r}){let{t:n}=ne();return(0,Q.jsxs)("section",{className:"sekyro-step",children:[(0,Q.jsx)(Sc,{}),(0,Q.jsx)(Le,{title:n("native.face.introTitle"),lead:n("native.face.introLead")}),r!==void 0?(0,Q.jsx)("p",{className:"sekyro-section-label",children:r}):null,(0,Q.jsx)("ul",{className:"sekyro-tiprows",children:o!==void 0?o.map(i=>(0,Q.jsxs)("li",{children:[(0,Q.jsx)(se,{name:_c[i.id]??"face"}),i.text]},i.id)):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("li",{children:[(0,Q.jsx)(se,{name:"light"}),n("capture.tips.light")]}),(0,Q.jsxs)("li",{children:[(0,Q.jsx)(se,{name:"jGlasses"}),n("capture.tips.uncover")]}),(0,Q.jsxs)("li",{children:[(0,Q.jsx)(se,{name:"smartphone"}),n("capture.tips.eyeLevel")]})]})}),t.assets==="failed"?(0,Q.jsx)(L,{kind:"ghost",onClick:t.retryAssets,children:n("common.refresh")}):null,(0,Q.jsx)(Ie,{children:(0,Q.jsxs)(L,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:e,children:[(0,Q.jsx)(se,{name:"camera"}),n("capture.start")]})})]})}var xs,Q,_c,rn=w(()=>{"use strict";xs=require("react");le();yt();Je();ke();Q=require("react/jsx-runtime");s(Sc,"FaceMark");_c={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};s(dr,"FaceIntro")});function sn(e,t){let o=0;for(let r=7;r>=0;r-=1)o=o<<1^(o>>>7)*285,o^=(t>>>r&1)*e;return o&255}function wc(e){let t=new Array(e).fill(0);t[e-1]=1;let o=1;for(let r=0;r<e;r+=1){for(let n=0;n<e;n+=1)t[n]=sn(t[n],o),n+1<e&&(t[n]=t[n]^t[n+1]);o=sn(o,2)}return t}function Nc(e,t){let o=t.map(()=>0);for(let r of e){let n=r^o.shift();o.push(0),t.forEach((i,a)=>{o[a]=o[a]^sn(i,n)})}return o}function xc(e,t){let o=[],r=s((u,d)=>{for(let h=d-1;h>=0;h-=1)o.push(u>>>h&1)},"put");r(4,4),r(e.length,t<10?8:16);for(let u of e)r(u,8);let n=nn(t)*8;r(0,Math.min(4,n-o.length)),r(0,(8-o.length%8)%8);let i=[];for(let u=0;u<o.length;u+=8)i.push(o.slice(u,u+8).reduce((d,h)=>d<<1|h,0));for(let u=236;i.length<nn(t);u^=253)i.push(u);let[a,c]=cn[t-1],l=wc(a),p=[],f=0;for(let[u,d]of c)for(let h=0;h<u;h+=1){let y=i.slice(f,f+d);f+=d,p.push({data:y,ec:Nc(y,l)})}let g=[],m=Math.max(...p.map(u=>u.data.length));for(let u=0;u<m;u+=1)for(let d of p)u<d.data.length&&g.push(d.data[u]);for(let u=0;u<a;u+=1)for(let d of p)g.push(d.ec[u]);return g}function Ic(e){if(e===1)return[];let t=Math.floor(e/7)+2,o=Math.ceil((e*4+4)/(t*2-2))*2,r=[6];for(let n=e*4+10;r.length<t;n-=o)r.splice(1,0,n);return r}function Rc(e,t){let o=e.size;for(let i=0;i<o;i+=1)e.set(6,i,i%2===0),e.set(i,6,i%2===0);for(let[i,a]of[[3,3],[3,o-4],[o-4,3]])for(let c=-4;c<=4;c+=1)for(let l=-4;l<=4;l+=1){let p=i+c,f=a+l;if(p<0||p>=o||f<0||f>=o)continue;let g=Math.max(Math.abs(c),Math.abs(l));e.set(p,f,g!==2&&g!==4)}let r=Ic(t),n=r.length-1;if(r.forEach((i,a)=>r.forEach((c,l)=>{if(!(a===0&&l===0||a===0&&l===n||a===n&&l===0))for(let p=-2;p<=2;p+=1)for(let f=-2;f<=2;f+=1)e.set(i+p,c+f,Math.max(Math.abs(p),Math.abs(f))!==1)})),Ls(e,0),t>=7){let i=t;for(let c=0;c<12;c+=1)i=i<<1^(i>>>11)*7973;let a=t<<12|i;for(let c=0;c<18;c+=1){let l=(a>>>c&1)===1,p=o-11+c%3,f=Math.floor(c/3);e.set(p,f,l),e.set(f,p,l)}}}function Ls(e,t){let o=e.size,r=Cc<<3|t,n=r;for(let c=0;c<10;c+=1)n=n<<1^(n>>>9)*1335;let i=(r<<10|n)^21522,a=s(c=>(i>>>c&1)===1,"bit");for(let c=0;c<=5;c+=1)e.set(c,8,a(c));e.set(7,8,a(6)),e.set(8,8,a(7)),e.set(8,7,a(8));for(let c=9;c<15;c+=1)e.set(8,14-c,a(c));for(let c=0;c<8;c+=1)e.set(8,o-1-c,a(c));for(let c=8;c<15;c+=1)e.set(o-15+c,8,a(c));e.set(o-8,8,!0)}function Tc(e,t){let o=e.size,r=0;for(let n=o-1;n>=1;n-=2){n===6&&(n=5);for(let i=0;i<o;i+=1)for(let a=0;a<2;a+=1){let c=n-a,p=(n+1&2)===0?o-1-i:i;e.fixed[p*o+c]!==!0&&(r<t.length*8&&(e.dark[p*o+c]=(t[r>>>3]>>>7-(r&7)&1)===1),r+=1)}}}function Pc(e,t){let o=Lc[t];for(let r=0;r<e.size;r+=1)for(let n=0;n<e.size;n+=1)e.fixed[r*e.size+n]!==!0&&o(r,n)&&(e.dark[r*e.size+n]=!e.dark[r*e.size+n])}function zc(e){let t=e.size,o=0,r=s(i=>{let a=1;for(let c=1;c<=t;c+=1)c<t&&i(c)===i(c-1)?a+=1:(a>=5&&(o+=3+(a-5)),a=1);for(let c=0;c+10<t;c+=1){let l=[!0,!1,!0,!0,!0,!1,!0];if(!(l.every((m,u)=>i(c+u)===m)||l.every((m,u)=>i(c+4+u)===m)))continue;let f=[0,1,2,3].every(m=>!i(c+m))&&l.every((m,u)=>i(c+4+u)===m),g=l.every((m,u)=>i(c+u)===m)&&[7,8,9,10].every(m=>!i(c+m));f&&(o+=40),g&&(o+=40)}},"line");for(let i=0;i<t;i+=1)r(a=>e.get(i,a));for(let i=0;i<t;i+=1)r(a=>e.get(a,i));for(let i=0;i+1<t;i+=1)for(let a=0;a+1<t;a+=1){let c=e.get(i,a);c===e.get(i,a+1)&&c===e.get(i+1,a)&&c===e.get(i+1,a+1)&&(o+=3)}let n=e.dark.filter(Boolean).length;return o+=Math.floor(Math.abs(n*20-t*t*10)/(t*t))*10,o}function Rs(e,t={}){let o=new TextEncoder().encode(e),r=1;for(;r<=Is&&!(4+(r<10?8:16)+o.length*8<=nn(r)*8);r+=1);if(r>Is)throw new RangeError("text too long for a QR code");let n=xc(o,r),i=s(l=>{let p=new an(r*4+17);return Rc(p,r),Tc(p,n),Pc(p,l),Ls(p,l),p},"build"),a=null;if(t.mask!==void 0)a=i(t.mask);else{let l=Number.POSITIVE_INFINITY;for(let p=0;p<8;p+=1){let f=i(p),g=zc(f);g<l&&(l=g,a=f)}}let c=a;return{size:c.size,get:s((l,p)=>c.get(l,p),"get")}}function Ts(e,t=4){let o=[];for(let r=0;r<e.size;r+=1)for(let n=0;n<e.size;n+=1)e.get(r,n)&&o.push(`M${n+t} ${r+t}h1v1h-1z`);return{size:e.size+t*2,d:o.join("")}}var cn,Is,Cc,nn,Lc,ln,an,Ps=w(()=>{"use strict";cn=[[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]]]],Is=cn.length,Cc=0,nn=s(e=>(cn[e-1]?.[1]??[]).reduce((t,[o,r])=>t+o*r,0),"dataCapacity");s(sn,"gfMul");s(wc,"rsDivisor");s(Nc,"rsRemainder");s(xc,"codewords");s(Ic,"alignmentPositions");Lc=[(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],ln=class ln{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,o,r){this.dark[t*this.size+o]=r,this.fixed[t*this.size+o]=!0}get(t,o){return this.dark[t*this.size+o]===!0}};s(ln,"Grid");an=ln;s(Rc,"drawFunctionPatterns");s(Ls,"drawFormat");s(Tc,"placeData");s(Pc,"applyMask");s(zc,"penalty");s(Rs,"encodeQr");s(Ts,"qrPath")});var Es={};Yt(Es,{ContactChoiceView:()=>Mc,EidContinueHint:()=>Uc,GenericChoiceView:()=>Vc,HandoffView:()=>qc,IdentitySummaryView:()=>Fc,InAppBrowserPrompt:()=>Wc,LaneChoiceView:()=>Oc,LaneSwitch:()=>Ec,LivePhotoLiveness:()=>$c,PortraitRetakeNotice:()=>Kc});function rt(e){let t=e.strings;return(o,r)=>Pe(t[o]??Ac[e.locale][o]??"",r)}function As(e,t){let o=rt(t);return e.flatMap(r=>{let n=r.service==="phone_otp"?o("contact.phone"):r.service==="email_otp"?o("contact.email"):Io(r,t),i=tr[r.service];return n===null?[]:[{id:r.id,label:n,...i!==void 0?{glyph:(0,z.jsx)(se,{name:i})}:{}}]})}function Ms({step:e,i18n:t,onError:o}){let r=rt(t),{busy:n,error:i,run:a}=Et(t,o),c=e.kind==="contact_choice";return(0,z.jsx)(Vt,{title:r(c?"contact.title":"choice.title"),description:r(c?"contact.description":"choice.description"),options:As(e.choice.options,t),busy:n,error:i,focus:!0,testId:c?"sekyro-contact-choice":"sekyro-choice",onChoose:l=>a(()=>e.choose(l))})}function Ec({step:e,i18n:t,onError:o,onOpen:r}){let n=rt(t),{busy:i,error:a,run:c}=Et(t,o),l=e,p=e.context.switchable,f=p===void 0?[]:p.options.filter(y=>y.id!==p.current),g=l.kind==="registry"&&l.reason==="nni_not_found"&&l.canUseDocument||l.kind==="eid"&&l.reason?.startsWith("eid_")&&l.canUseCamera,m=f.length===1?f[0]:void 0,u=m!==void 0&&(m.service==="phone_otp"||m.service==="email_otp"),d=u&&l.canSwitch&&l.switchTo!==void 0?()=>l.switchTo.call(e):l.chooseOption===void 0||m===void 0?void 0:()=>l.chooseOption.call(e,m.id);if(f.length===0||g||m!==void 0&&(d===void 0||h()===null)||m===void 0&&l.chooseOption===void 0)return null;function h(){return m===void 0?n("choice.switch"):m.service==="phone_otp"||m.service==="email_otp"?n("contact.switch"):l.kind==="registry"&&m.service==="document"?t.t("population.useDocument"):l.kind==="eid"?t.strings["eid.useCamera"]??zs[t.locale]["eid.useCamera"]:Io(m,t)}return s(h,"labelOf"),(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[a!==null?(0,z.jsx)(F,{tone:"danger",children:(0,z.jsx)("span",{children:a})}):null,(0,z.jsx)(L,{kind:"ghost",disabled:i,"aria-busy":i||void 0,onClick:()=>d===void 0?r():c(d),"data-testid":u?"sekyro-contact-switch":"sekyro-lane-switch",children:h()})]})}function Oc({step:e,i18n:t,onError:o,onClose:r}){let n=rt(t),{busy:i,error:a,run:c}=Et(t,o),l=e.context.switchable,p=e.chooseOption;return l===void 0||p===void 0?null:(0,z.jsx)(Vt,{title:n("choice.title"),description:n("choice.description"),options:As(l.options,t),...l.current!==null?{marked:l.current}:{},busy:i,error:a,focus:!0,testId:"sekyro-lane-choice",onChoose:f=>f===l.current?r():c(()=>p.call(e,f))})}function Hc(e){let[t,o]=(0,fe.useState)(null);return(0,fe.useEffect)(()=>{if(!e.portraitAvailable)return;let r=!0,n=null;return e.portrait().then(i=>{!r||i===null||!i.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(n=URL.createObjectURL(i),o(n))}),()=>{r=!1,n!==null&&URL.revokeObjectURL(n)}},[e.portraitAvailable]),t}function Fc({step:e,i18n:t,onError:o}){let r=rt(t),n=(0,fe.useId)(),i=ve(),a=Hc(e),{busy:c,error:l,run:p}=Et(t,o),f=e.context.orgName,g=["registry","document","chip"].find(d=>d===e.source),m=e.summaryKind==="partial",u=s(d=>t.strings[`doc.type.${d}`]??d,"documentLabel");return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":n,"data-testid":"sekyro-identity-summary",children:[(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,z.jsx)("h2",{id:n,ref:i,tabIndex:-1,className:"sekyro-text-body",children:r("summary.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("summary.description")}),g!==void 0?(0,z.jsx)("p",{className:"sekyro-text-muted",children:r(`summary.source.${g}`)}):null]}),(0,z.jsxs)("div",{className:"sekyro-summary",children:[a!==null?(0,z.jsx)("img",{className:"sekyro-summary__portrait",src:a,alt:r("summary.portraitAlt")}):null,(0,z.jsx)("dl",{className:"sekyro-summary__list",children:Dc.map(([d,h,y])=>{let I=e[d];return I===void 0?null:(0,z.jsxs)("div",{className:"sekyro-summary__row",children:[(0,z.jsx)("dt",{className:"sekyro-text-muted",children:r(d==="fullName"&&m?"summary.name":h)}),(0,z.jsx)("dd",{children:y?(0,z.jsx)("bdi",{dir:"ltr",children:I}):d==="documentType"?u(I):I})]},d)})})]}),l!==null?(0,z.jsx)(F,{tone:"danger",children:(0,z.jsx)("span",{children:l})}):null,(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--3",children:[(0,z.jsx)(L,{full:!0,disabled:c,"aria-busy":c||void 0,onClick:()=>p(()=>e.confirm()),children:r("summary.confirm")}),e.retakeAvailable?(0,z.jsx)(L,{kind:"ghost",full:!0,disabled:c,onClick:()=>p(()=>e.retake()),children:r(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("summary.noRetake",{org:f})})]})]})}function $c({step:e,i18n:t,livenessProps:o,sekyroIntro:r}){let n=rt(t),[i,a]=(0,fe.useState)(null);(0,fe.useEffect)(()=>e.onLivePhoto(d=>{let h=d.update?.coach;a(d.holding||h===void 0?null:t.t(`portrait.coach.${h}`))}),[e,t]);let c=e.instructions==="icao",l=e.icao?.profile==="selfie",p=(0,fe.useMemo)(()=>c?Bc.filter(d=>!l||d!=="background").map(d=>({id:d,text:n(`capture.tipsIcao.${d}`)})):void 0,[c,l,t]),f=(0,fe.useMemo)(()=>c&&!l?{...o.strings,"capture.tips.title":n("capture.tipsIcao.title")}:o.strings,[c,l,o.strings,t]),g=l?void 0:n("capture.tipsIcao.title"),m=(0,fe.useMemo)(()=>r===!0&&p!==void 0?{...o.slots,intro:s((d,h)=>(0,z.jsx)(dr,{start:d,context:h,tips:p,...g!==void 0?{tipsTitle:g}:{}}),"intro")}:o.slots,[r,p,g,o.slots,t]),u=l?`${(p??[]).map(d=>d.text).join(". ")}.`:n("capture.tipsIcao.summary");return(0,z.jsx)(ur,{...o,...m!==void 0?{slots:m}:{},...f!==void 0?{strings:f}:{},...p!==void 0?{tips:p,tipsSummary:u}:{},coach:i})}function Kc({i18n:e}){let t=rt(e);return(0,z.jsxs)(F,{tone:"info",children:[(0,z.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,z.jsx)("span",{children:t("portrait.keepCamera")})]})}function Uc({i18n:e,provider:t}){let o=e.strings,r=s(n=>o[n]??zs[e.locale][n]??"","pick");return(0,z.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?Pe(r("eid.continueHint"),{provider:t}):r("eid.continueHintGeneric")})}async function Gc(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function Vs({url:e,i18n:t,label:o}){let r=rt(t),[n,i]=(0,fe.useState)("idle"),a=o.startsWith("inApp.")?"inApp":"handoff";return(0,z.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,z.jsx)(L,{kind:"ghost",onClick:()=>{Gc(e).then(c=>i(c?"copied":"failed"))},children:r(o)}),(0,z.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:n==="idle"?"":r(`${a}.${n==="copied"?"copied":"copyFailed"}`)})]})}function qc({url:e,i18n:t,refresh:o,footer:r}){let n=rt(t),i=(0,fe.useId)(),a=(0,fe.useMemo)(()=>{try{return Ts(Rs(e))}catch{return null}},[e]),c=(0,fe.useRef)(o);c.current=o;let l=ve();return(0,fe.useEffect)(()=>{let p=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&c.current?.().catch(()=>{})},5e3);return()=>clearInterval(p)},[]),(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":i,"data-testid":"sekyro-handoff",children:[(0,z.jsx)("h2",{id:i,ref:l,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:n("handoff.description")}),a!==null?(0,z.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${a.size} ${a.size}`,role:"img","aria-label":n("handoff.qrAlt"),shapeRendering:"crispEdges",children:[(0,z.jsx)("rect",{width:a.size,height:a.size,className:"sekyro-qr__bg"}),(0,z.jsx)("path",{d:a.d,className:"sekyro-qr__fg"})]}):null,(0,z.jsx)(Vs,{url:e,i18n:t,label:"handoff.copyLink"}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:n("handoff.waiting")}),r??null]})}function Wc({url:e,i18n:t,onContinue:o}){let r=rt(t),n=(0,fe.useId)(),i=ve();return(0,z.jsxs)("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":n,"data-testid":"sekyro-in-app",children:[(0,z.jsx)("h2",{id:n,ref:i,tabIndex:-1,className:"sekyro-text-body",children:r("inApp.title")}),(0,z.jsx)("p",{className:"sekyro-text-muted",children:r("inApp.description")}),(0,z.jsx)(Vs,{url:e,i18n:t,label:"inApp.copyLink"}),(0,z.jsx)(L,{kind:"ghost",onClick:o,children:r("inApp.continueAnyway")})]})}var fe,z,Ac,zs,Mc,Vc,Dc,Bc,Os=w(()=>{"use strict";fe=require("react");le();er();on();$r();Kr();Ur();vs();bs();_s();lt();rn();yt();Wr();Ps();ke();ze();z=require("react/jsx-runtime"),Ac={en:ks,fr:Ss,ar:gs},zs={en:Qo,fr:Xo,ar:Zo};s(rt,"flowT");s(As,"labelled");s(Ms,"PlanChoiceView");Mc=Ms,Vc=Ms;s(Ec,"LaneSwitch");s(Oc,"LaneChoiceView");Dc=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["nniMasked","summary.nni",!0],["expiryDate","summary.expiryDate",!0]];s(Hc,"usePortraitUrl");s(Fc,"IdentitySummaryView");Bc=["glasses","headwear","expression","faceCamera","background","lighting","hair"];s($c,"LivePhotoLiveness");s(Kc,"PortraitRetakeNotice");s(Uc,"EidContinueHint");s(Gc,"copy");s(Vs,"CopyLink");s(qc,"HandoffView");s(Wc,"InAppBrowserPrompt")});var Bs,$s=w(()=>{"use strict";Bs={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 Ks,Us=w(()=>{"use strict";Ks={"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 Gs,qs=w(()=>{"use strict";Gs={"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 Ws,Ys=w(()=>{"use strict";Ws={"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 js,Zs=w(()=>{"use strict";js={"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 Qs,Xs=w(()=>{"use strict";Qs={"native.doc.introTitle":"We'll 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 Js,ea=w(()=>{"use strict";Js={"native.doc.introTitle":"Nous allons photographier 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 Xc,un,fr,ta=w(()=>{"use strict";Xc=["locking","capturing"],un=class un{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(t,o){return this.presentHint(t,o),this.presentLock(t,o),this.presentCard(t,o),this.shutterSince=t.manualShutter?this.shutterSince??o:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&o-this.shutterSince>=1e3},this.shown}presentHint(t,o){let r=t.phase==="framing"&&!(t.hint==="blurry"&&t.card===null)?t.hint:null;if(t.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(r!==this.candidate&&(this.candidate=r,this.candidateSince=o),r===this.shown.hint)return;let n=o-this.candidateSince>=(r===null?0:350),i=this.shown.hint===null||o-this.hintShownAt>=1200;n&&i&&(this.shown={...this.shown,hint:r},this.hintShownAt=o)}presentLock(t,o){if(Xc.includes(t.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(t.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(t,o){let r=t.card;if(r===null||t.phase!=="framing"){if(t.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 n=this.shown.card;if(n===null){this.shown={...this.shown,card:{...r}};return}let i=.35;this.shown={...this.shown,card:{fill:n.fill+(r.fill-n.fill)*i,offsetX:n.offsetX+(r.offsetX-n.offsetX)*i,offsetY:n.offsetY+(r.offsetY-n.offsetY)*i}}}};s(un,"ScanPresenter");fr=un});var ca={};Yt(ca,{DocumentCaptureView:()=>tl,LOCK_TRACE_MS:()=>oa,guideRect:()=>dn,mrzInstruction:()=>ia,slotOf:()=>aa});function na({name:e}){return(0,v.jsx)("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:Bs[e]}})}function ia(e,t){return e===null||e.state==="fallback"||e.state==="mismatch"?null:e.state==="searching"?t?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":e.state==="valid"?"dcv3.mrz.valid":e.coach!==void 0?`dcv3.mrz.${e.coach}`:"dcv3.mrz.reading"}function sa(e){return e.reason==="unreadable"?"doc.reason_unreadable":e.reason!==void 0&&e.reason!=="side_missing"?jt(e.reason):null}function tl({step:e,i18n:t,liveMrz:o,...r}){let[n,i]=(0,oe.useState)(!1);return n?(0,v.jsx)(al,{step:e,i18n:t,...o!==void 0?{liveMrz:o}:{},onClose:()=>i(!1)}):(0,v.jsx)(nl,{step:e,i18n:t,onOpen:()=>i(!0),...r})}function ol({passport:e}){let o=Math.round(228/(e?1.42:1.586));return(0,v.jsxs)("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${o+24}`,"aria-hidden":"true",focusable:"false",children:[(0,v.jsx)("defs",{children:(0,v.jsx)("clipPath",{id:"sekyro-card-clip",children:(0,v.jsx)("rect",{width:228,height:o,rx:"12.5"})})}),(0,v.jsx)("rect",{className:"sekyro-mark__card",width:228,height:o,rx:"12.5"}),(0,v.jsx)("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:o*.52,rx:"6"}),[0,1,2].map(r=>(0,v.jsx)("rect",{className:"sekyro-mark__text",x:"88",y:23+r*o*.12,width:100-r*20,height:"6",rx:"3"},r)),[0,1].map(r=>(0,v.jsx)("rect",{className:"sekyro-mark__text",x:"17",y:o*.74+r*9,width:194,height:"4",rx:"2"},r)),(0,v.jsx)("g",{clipPath:"url(#sekyro-card-clip)",children:(0,v.jsx)("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:(0,v.jsx)("rect",{x:"-1",width:"2",height:o,className:"sekyro-mark__beam"})})}),(0,v.jsx)("path",{className:"sekyro-mark__brackets",d:rl(-10,-10,248,o+20,16,30)})]})}function rl(e,t,o,r,n,i){let a=Math.min(n,i*.6);return[[e,t,1,1],[e+o,t,-1,1],[e,t+r,1,-1],[e+o,t+r,-1,-1]].map(([l,p,f,g])=>`M${l} ${p+g*i}V${p+g*a}Q${l} ${p} ${l+f*a} ${p}H${l+f*i}`).join("")}function nl({step:e,i18n:t,onOpen:o,onChangeCountry:r,onChangeDocument:n}){let i=ra(t),a=e.documentType==="passport",c=sa(e);return(0,v.jsxs)("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[(0,v.jsx)(ol,{passport:a}),(0,v.jsx)(Le,{title:i("native.doc.introTitle"),lead:i("native.doc.introLead")}),c!==null?(0,v.jsxs)(F,{tone:"warning",children:[(0,v.jsx)("span",{children:t.t(c)}),(0,v.jsx)("span",{children:Ke(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,(0,v.jsxs)("ul",{className:"sekyro-tiprows",children:[(0,v.jsxs)("li",{children:[(0,v.jsx)(se,{name:a?"passport":"card"}),i("native.doc.tip.flat")]}),(0,v.jsxs)("li",{children:[(0,v.jsx)(se,{name:"light"}),i("native.doc.tip.glare")]}),(0,v.jsxs)("li",{children:[(0,v.jsx)(na,{name:"image"}),i("native.doc.tip.frame")]})]}),n!==void 0||r!==void 0?(0,v.jsxs)("div",{className:"sekyro-links",children:[n!==void 0?(0,v.jsx)("button",{type:"button",className:"sekyro-link",onClick:n,children:i("native.doc.changeDocument")}):null,r!==void 0?(0,v.jsx)("button",{type:"button",className:"sekyro-link",onClick:r,children:t.t("native.doc.changeCountry")}):null]}):null,(0,v.jsx)(Ie,{children:(0,v.jsxs)(L,{full:!0,onClick:o,children:[(0,v.jsx)(se,{name:"camera"}),i("native.doc.openCamera")]})})]})}function dn(e,t,o){let r=e*.88,n=r/o;return{x:(e-r)/2,y:t*.42-n/2,w:r,h:n}}function al({step:e,i18n:t,liveMrz:o,onClose:r}){let n=ra(t),i=(0,oe.useRef)(null),a=(0,oe.useRef)(null),c=(0,oe.useRef)(null),[l,p]=(0,oe.useState)("idle"),[f,g]=(0,oe.useState)(null),[m,u]=(0,oe.useState)(null),[d,h]=(0,oe.useState)({w:0,h:0}),[y,I]=(0,oe.useState)({hint:null,locking:!1,card:null,manualShutter:!1}),[b,R]=(0,oe.useState)({}),[P,S]=(0,oe.useState)(null),[C,k]=(0,oe.useState)(null),[E,$]=(0,oe.useState)(0),[_,M]=(0,oe.useState)(null),[H,re]=(0,oe.useState)(null),Z=e.documentType==="passport",Se=Z?1.42:1.586;Go(!0),(0,oe.useLayoutEffect)(()=>{let O=i.current;if(O===null)return;let K=s(()=>h({w:O.clientWidth,h:O.clientHeight}),"measure");if(K(),typeof ResizeObserver>"u")return;let W=new ResizeObserver(K);return W.observe(O),()=>W.disconnect()},[]);let T=dn(d.w,d.h,Se);(0,oe.useEffect)(()=>{d.w===0||d.h===0||c.current?.setGuide?.({viewAspect:d.w/d.h,rect:{x:T.x/d.w,y:T.y/d.h,width:T.w/d.w,height:T.h/d.h}})},[d.w,d.h,T.x,T.y,T.w,T.h]),(0,oe.useEffect)(()=>{let O=a.current;if(O===null)return;let K=e.capture({video:O,...o!==void 0?{liveMrz:o}:{}});c.current=K;let W=i.current;if(W!==null&&W.clientWidth>0&&W.clientHeight>0){let J=dn(W.clientWidth,W.clientHeight,Se);K.setGuide?.({viewAspect:W.clientWidth/W.clientHeight,rect:{x:J.x/W.clientWidth,y:J.y/W.clientHeight,width:J.w/W.clientWidth,height:J.h/W.clientHeight}})}let me=new fr,we={scan:null,feedback:null,gate:null},Qe=s(J=>{we={...we,...J};let Xe=we.gate?.guide,Gt={phase:we.scan?.phase??"framing",hint:we.feedback?.reticle==="coaching"?we.feedback.key:null,card:Xe?.detected?{fill:Xe.fill,offsetX:Xe.offsetX,offsetY:Xe.offsetY}:null,manualShutter:we.scan?.manualShutter??!1},Ee=me.present(Gt,performance.now());I(st=>st.hint===Ee.hint&&st.locking===Ee.locking&&st.manualShutter===Ee.manualShutter&&st.card?.fill===Ee.card?.fill&&st.card?.offsetX===Ee.card?.offsetX&&st.card?.offsetY===Ee.card?.offsetY?st:Ee)},"present"),bo=[K.on("state",p),K.on("feedback",J=>Qe({feedback:J})),K.on("gate",J=>Qe({gate:J})),K.on("scan",J=>{g(J),Qe({scan:J})}),K.on("captured",J=>{R(Xe=>({...Xe,[aa(J.side,Z,Xe)]:J.previewDataUrl})),S(J.previewDataUrl),k(ll(O))}),K.on("error",u),K.on("mrz",J=>{J.state==="mismatch"?re(J.format??null):M(J)})];return K.start().catch(()=>{}),()=>{for(let J of bo)J();K.destroy(),c.current=null}},[e.issuer,e.documentType]);let V=f?.phase??"framing",x=V==="reading"||V==="result",X=V==="flipCue"||V==="reaskRecto",A=y.locking,_e=f?.captured.length??0;(0,oe.useEffect)(()=>{A&&$(O=>O+1)},[A]),(0,oe.useEffect)(()=>{_e>0&&$(O=>O+1)},[_e]);let je=f?.expected??null;(0,oe.useEffect)(()=>{M(null)},[je]),(0,oe.useEffect)(()=>{if(H===null)return;let O=setTimeout(()=>re(null),2e3);return()=>clearTimeout(O)},[H]);let It=X||x?null:ia(_,Z),vt=H!==null?H==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":It,Ao=vt===null?null:t.strings[vt]??el[t.locale][vt],go=sa(e),vo=y.hint===null?null:il[y.hint]??`dcv2.${y.hint}`,Ft=vo??(V==="flipCue"?f?.notice==="same_face"?"doc.sameFace":"doc.flip":V==="reaskRecto"?"doc.reaskRecto":x?"native.scan.reading":V==="locking"||V==="capturing"||A?"native.scan.holdStill":f?.notice==="reread"?"doc.reread":f?.notice==="technical"?"native.scan.retry":f?.notice==="blurry"?"native.scan.blurry":go??(Z?"doc.showPage":"doc.showSide")),nt=Ao??n(Ft),it=y.card,Ce=T;if(!A&&it!==null&&it.fill>=.45&&it.fill<=1.25&&!sl()){let O=T.w*it.fill,K=O/Se,W=T.x+T.w/2+T.w*Math.max(-.25,Math.min(.25,it.offsetX)),me=T.y+T.h/2+T.h*Math.max(-.25,Math.min(.25,it.offsetY));Ce={x:W-O/2,y:me-K/2,w:O,h:K}}let Bt=T.w*.045,$t=28,Kt=Math.min(Bt,$t*.6),xr=[[Ce.x,Ce.y,1,1],[Ce.x+Ce.w,Ce.y,-1,1],[Ce.x,Ce.y+Ce.h,1,-1],[Ce.x+Ce.w,Ce.y+Ce.h,-1,-1]],Ir=A?"is-locked":y.hint!==null?"is-coaching":"",Ut=Z?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],ko=T.y+T.h+48,Ze={insetInlineStart:T.x,insetBlockStart:T.y,inlineSize:T.w,blockSize:T.h,borderRadius:Bt};return(0,v.jsx)("section",{className:"sekyro-lm","aria-label":nt,"data-testid":"sekyro-document",children:(0,v.jsxs)("div",{ref:i,className:`sekyro-lm-stage${x?" is-reading":""}${X?" is-flip":""}`,style:{"--sekyro-guide-w":`${T.w}px`},children:[(0,v.jsx)("video",{ref:a,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:O=>{let K=O.currentTarget,W=K.getBoundingClientRect(),me=Math.max(W.width/(K.videoWidth||1),W.height/(K.videoHeight||1)),we=K.videoWidth*me,Qe=K.videoHeight*me;we>0&&Qe>0&&c.current?.focusAt((O.clientX-W.left+(we-W.width)/2)/we,(O.clientY-W.top+(Qe-W.height)/2)/Qe)}}),d.w>0?(0,v.jsxs)(v.Fragment,{children:[x&&C!==null?(0,v.jsx)("img",{className:"sekyro-lm-scene",src:C,alt:""}):null,x&&P!==null?(0,v.jsx)("img",{className:"sekyro-lm-frozen",src:P,alt:"",style:Ze}):null,(0,v.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${d.w} ${d.h}`,"aria-hidden":"true",focusable:"false",children:[(0,v.jsxs)("defs",{children:[(0,v.jsxs)("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,v.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),(0,v.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),(0,v.jsxs)("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,v.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),(0,v.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),(0,v.jsx)("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${d.w}V${d.h}H0Z${cl(T,Bt)}`}),(0,v.jsx)("rect",{width:d.w,height:Math.max(0,T.y),fill:"url(#sekyro-lm-top)"}),(0,v.jsx)("rect",{y:T.y+T.h,width:d.w,height:Math.max(0,d.h-T.y-T.h),fill:"url(#sekyro-lm-bottom)"}),(0,v.jsx)("g",{className:`sekyro-lm-brackets ${Ir}`,children:xr.map(([O,K,W,me],we)=>(0,v.jsx)("path",{style:{transform:`translate(${O}px, ${K}px) scale(${W}, ${me})`},d:`M0 ${$t}V${Kt}Q0 0 ${Kt} 0H${$t}`},we))}),A?(0,v.jsx)("rect",{className:"sekyro-lm-trace",x:T.x,y:T.y,width:T.w,height:T.h,rx:Bt,pathLength:"1",style:{animationDuration:`${oa}ms`}}):null]}),(0,v.jsx)("div",{className:"sekyro-lm-slot",style:Ze,"aria-hidden":"true",children:x?(0,v.jsx)("span",{className:"sekyro-lm-read is-repeating"}):E>0?(0,v.jsx)("span",{className:"sekyro-lm-read"},E):null})]}):null,It!==null?(0,v.jsx)("div",{className:"sekyro-lm-slot",style:Ze,"aria-hidden":"true",children:(0,v.jsx)("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${Z?" is-page":""}${_?.state==="valid"?" is-valid":""}`})}):null,(0,v.jsxs)("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:T.y-64},children:[(0,v.jsx)("div",{role:"status","aria-live":"polite",children:(0,v.jsx)(xo,{swapKey:nt,className:"sekyro-lm-line",children:nt})}),go!==null&&V==="framing"&&vo===null?(0,v.jsx)("p",{className:"sekyro-lm-attempts",children:Ke(t,e.attemptsRemaining,e.attemptsExhausted)}):null]}),x?(0,v.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:ko-12},children:[(0,v.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),n("native.scan.putDown")]}):X?(0,v.jsx)("div",{className:`sekyro-lm-under sekyro-lm-flip${V==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:ko-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:(0,v.jsxs)("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(Se)},children:[(0,v.jsx)("span",{className:"sekyro-lm-flip-front"}),(0,v.jsx)("span",{className:"sekyro-lm-flip-back"})]})}):null,(0,v.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,v.jsxs)("div",{className:"sekyro-lm-bar",children:[(0,v.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":t.t("native.close"),onClick:r,children:(0,v.jsx)(se,{name:"close"})}),f?.torchAvailable?(0,v.jsx)("button",{type:"button",className:`sekyro-glass${f.torch?" is-on":""}`,"aria-label":t.t("doc.torchOn"),"aria-pressed":f.torch,onClick:()=>c.current?.setTorch(!f.torch),children:(0,v.jsx)(na,{name:"flashlight"})}):null]}),m!==null?(0,v.jsxs)("div",{className:"sekyro-lm-error",role:"alert",children:[(0,v.jsx)("p",{children:t.t("doc.cameraBlocked")}),(0,v.jsx)("p",{children:t.t("doc.cameraBlockedHint")}),(0,v.jsx)(L,{onClick:()=>{u(null),c.current?.retry()},children:t.t("doc.retryCamera")})]}):null,y.manualShutter?(0,v.jsx)("button",{type:"button",className:"sekyro-shutter","aria-label":t.t("doc.shutter"),onClick:()=>c.current?.shutter()}):null,(0,v.jsx)("ol",{className:"sekyro-lm-tray",children:Ut.map(({side:O,label:K})=>{let W=f?.captured.includes(O)??!1;return(0,v.jsxs)("li",{className:W?"is-done":void 0,"aria-current":!W&&(Z||f?.expected===O)?"step":void 0,children:[W?(0,v.jsxs)("span",{className:"sekyro-lm-thumb",children:[b[O]!==void 0?(0,v.jsx)("img",{src:b[O],alt:""}):null,(0,v.jsx)("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:(0,v.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,n(K)]},O)})})]}),l==="uploading"||l==="checking"?(0,v.jsx)("span",{className:"sekyro-visually-hidden",role:"status",children:t.t("doc.uploading")}):null]})})}function aa(e,t,o){return t?"single":e==="recto"||e==="verso"?e:o.recto===void 0?"recto":"verso"}function cl({x:e,y:t,w:o,h:r},n){return`M${e+n} ${t}H${e+o-n}Q${e+o} ${t} ${e+o} ${t+n}V${t+r-n}Q${e+o} ${t+r} ${e+o-n} ${t+r}H${e+n}Q${e} ${t+r} ${e} ${t+r-n}V${t+n}Q${e} ${t} ${e+n} ${t}Z`}function ll(e){let t=Math.round(e.videoWidth/4),o=Math.round(e.videoHeight/4);if(t===0||o===0||typeof document>"u")return null;try{let r=document.createElement("canvas");r.width=t,r.height=o;let n=r.getContext("2d");return n===null?null:(n.drawImage(e,0,0,t,o),r.toDataURL("image/jpeg",.7))}catch{return null}}var oe,v,Jc,oa,ra,el,il,sl,la=w(()=>{"use strict";oe=require("react");le();$s();Zt();Us();qs();Ys();Zs();Xs();ea();yt();Je();ta();ke();ze();v=require("react/jsx-runtime"),Jc={en:Qs,fr:Js,ar:js},oa=450,ra=s(e=>t=>Pe(e.strings[t]??Jc[e.locale][t]??""),"useScanCopy");s(na,"ScanGlyph");el={en:Gs,fr:Ws,ar:Ks};s(ia,"mrzInstruction");s(sa,"reasonOf");s(tl,"DocumentCaptureView");s(ol,"ScanMark");s(rl,"brackets");s(nl,"DocumentIntro");s(dn,"guideRect");il={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"},sl=s(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");s(al,"LumiereScan");s(aa,"slotOf");s(cl,"roundedRect");s(ll,"sceneSnapshot")});function dl(e,t){let o=e*.72,r=o*1.32;return{cx:e/2,cy:(t-r)/2.1+r/2,a:o/2,b:r/2}}function pl({cx:e,cy:t,a:o,b:r}){return Array.from({length:yr},(n,i)=>{let a=-Math.PI/2+i/yr*2*Math.PI,c=Math.cos(a),l=Math.sin(a),p=e+o*c,f=t+r*l,g=Math.hypot(r*c,o*l),m=r*c/g,u=o*l/g,d=s(h=>Math.round(h*10)/10,"r");return`M${d(p+m*16)} ${d(f+u*16)}L${d(p+m*28)} ${d(f+u*28)}`})}function gr({video:e,instruction:t,note:o,busy:r,progress:n,still:i,overlay:a,onClose:c,closeLabel:l,live:p=!0,children:f,testId:g}){Go(p);let m=(0,ho.useRef)(null),[u,d]=(0,ho.useState)({w:0,h:0});(0,ho.useLayoutEffect)(()=>{let S=m.current;if(S===null)return;let C=s(()=>d({w:S.clientWidth,h:S.clientHeight}),"measure");if(C(),typeof ResizeObserver>"u")return;let k=new ResizeObserver(C);return k.observe(S),()=>k.disconnect()},[]);let h=dl(u.w,u.h),y=u.w>0?pl(h):[],I=Math.round(Math.min(1,Math.max(0,n))*yr),b=h.cy-h.b,R=Math.max(h.a,h.b)+40,P=70*Math.PI/180;return(0,te.jsx)("section",{className:"sekyro-lm sekyro-fc","aria-label":t,"data-testid":g,children:(0,te.jsxs)("div",{ref:m,className:"sekyro-lm-stage",children:[e,i?(0,te.jsx)("img",{className:"sekyro-lm-video sekyro-fc-still",src:i,alt:""}):null,a,u.w>0?(0,te.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${u.w} ${u.h}`,"aria-hidden":"true",focusable:"false",children:[(0,te.jsxs)("defs",{children:[(0,te.jsxs)("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:h.cx-R*Math.sin(P),y1:h.cy,x2:h.cx,y2:h.cy,children:[(0,te.jsx)("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),(0,te.jsx)("stop",{offset:"1",className:"sekyro-fc-fade"})]}),(0,te.jsx)("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:u.w,height:u.h,children:(0,te.jsx)("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${h.cx}px ${h.cy}px`},d:`M${h.cx} ${h.cy}L${h.cx-R*Math.sin(P)} ${h.cy-R*Math.cos(P)}A${R} ${R} 0 0 1 ${h.cx} ${h.cy-R}Z`,fill:"url(#sekyro-fc-fade)"})})]}),(0,te.jsx)("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${u.w}V${u.h}H0Z M${h.cx-h.a} ${h.cy}a${h.a} ${h.b} 0 1 0 ${2*h.a} 0a${h.a} ${h.b} 0 1 0 ${-2*h.a} 0Z`}),(0,te.jsx)("ellipse",{className:"sekyro-fc-rim",cx:h.cx,cy:h.cy,rx:h.a,ry:h.b}),(0,te.jsx)("path",{className:"sekyro-fc-ticks",d:y.join("")}),I>0?(0,te.jsx)("path",{className:"sekyro-fc-ticks is-done",d:y.slice(0,I).join("")}):null,I<yr?(0,te.jsx)("path",{className:"sekyro-fc-ticks is-light",d:y.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,(0,te.jsx)("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:b-80},children:(0,te.jsx)("div",{role:"status","aria-live":"polite",children:(0,te.jsx)(xo,{swapKey:t,className:"sekyro-lm-line",children:t})})}),o?(0,te.jsxs)("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:b+2*h.b+48},children:[r?(0,te.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,(0,te.jsx)("span",{children:o})]}):null,(0,te.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,te.jsx)("div",{className:"sekyro-lm-bar",children:c!==void 0?(0,te.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":l,onClick:c,children:(0,te.jsx)(se,{name:"close"})}):null}),f]})]})})}var ho,te,yr,pn=w(()=>{"use strict";ho=require("react");yt();Je();te=require("react/jsx-runtime"),yr=72;s(dl,"faceOval");s(pl,"ticks");s(gr,"FaceCamera")});var ua={};Yt(ua,{PortraitCaptureView:()=>ml});function ml({step:e,i18n:t,assetBaseUrl:o}){let{t:r}=t,n=(0,Ye.useRef)(null),i=(0,Ye.useRef)(null),[a,c]=(0,Ye.useState)("idle"),[l,p]=(0,Ye.useState)(null),[f,g]=(0,Ye.useState)(null),m=ve(),u=(0,Ye.useContext)(Jt);(0,Ye.useEffect)(()=>{let E=n.current;if(E===null)return;let $=e.capture({video:E,...o!==void 0?{assetBaseUrl:o}:{}});i.current=$;let _=[$.on("state",c),$.on("gate",p),$.on("error",g)];return $.start().catch(()=>{}),()=>{for(let M of _)M();$.destroy(),i.current=null}},[]);let d=a==="uploading"||a==="checking",h=a==="done",y=h&&e.reason!==void 0&&!e.uploadFailed,I=a==="starting"||a==="idle"?"portrait.starting":a==="captured"?"portrait.taken":a==="uploading"?"portrait.uploading":a==="checking"?"portrait.checking":`portrait.coach.${l?.coach??"no_face"}`,b=(e.report??[]).filter(E=>!E.pass),R=e.reason!==void 0?`reasons.${e.reason}`:null,P=s(()=>{g(null),i.current?.retry()},"retake"),S=s(E=>{let $=l?.criteria.find(_=>_.criterion===E);return $!==void 0&&($.held||$.waived)},"met"),C=l?.ready||a==="captured"||d?1:mn.filter(S).length/mn.length,k=R!==null&&(a==="gating"||y);return(0,ce.jsxs)(gr,{testId:"sekyro-portrait",video:(0,ce.jsx)("video",{ref:n,className:"sekyro-lm-video sekyro-fc-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true"}),instruction:r(I),progress:C,closeLabel:r("native.close"),...u!==void 0?{onClose:u}:{},children:[(0,ce.jsx)("h2",{ref:m,tabIndex:-1,className:"sekyro-visually-hidden",children:r(e.reason!==void 0?"portrait.retryTitle":"session.steps.portrait.title")}),k||f!==null||h&&(e.uploadFailed||!e.attemptsExhausted)?(0,ce.jsxs)("div",{className:"sekyro-fc-panel",children:[k?(0,ce.jsxs)(F,{tone:"warning",children:[(0,ce.jsx)("span",{children:t.strings[R]!==void 0?r(R):r("portrait.retryTitle")}),b.length>0?(0,ce.jsxs)("span",{children:[r("portrait.reportTitle"),": ",b.map(E=>r(`portrait.report.${E.criterion}`)).join(", ")]}):null,(0,ce.jsx)("span",{children:Ke(t,e.attemptsRemaining,e.attemptsExhausted)})]}):null,f!==null?(0,ce.jsxs)(F,{tone:"danger",children:[(0,ce.jsx)("span",{children:r("portrait.cameraBlocked")}),(0,ce.jsx)("span",{children:r("portrait.cameraBlockedHint")}),(0,ce.jsx)(L,{kind:"ghost",onClick:P,children:r("portrait.retryCamera")})]}):null,e.uploadFailed&&h?(0,ce.jsx)(F,{tone:"danger",children:(0,ce.jsx)("span",{children:r("portrait.uploadFailed")})}):null,h&&!e.attemptsExhausted?(0,ce.jsx)(L,{full:!0,onClick:P,disabled:d,children:r("portrait.retake")}):null]}):null,(0,ce.jsx)("ul",{className:"sekyro-fc-checks","aria-label":r("portrait.checksLabel"),children:mn.map(E=>(0,ce.jsxs)("li",{className:S(E)?"is-met":void 0,children:[(0,ce.jsx)("span",{className:"sekyro-fc-mark","aria-hidden":"true",children:(0,ce.jsx)("svg",{viewBox:"0 0 18 18",children:(0,ce.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})}),(0,ce.jsx)("span",{children:r(`portrait.criteria.${E}`)}),(0,ce.jsx)("span",{className:"sekyro-visually-hidden",children:r(S(E)?"portrait.met":"portrait.notMet")})]},E))})]})}var Ye,ce,mn,da=w(()=>{"use strict";Ye=require("react");le();lt();pn();Je();ze();ce=require("react/jsx-runtime"),mn=["pose","eyes","mouth","lighting","background","resolution"];s(ml,"PortraitCaptureView")});var Ol={};Yt(Ol,{DocumentCapture:()=>hr,EidStep:()=>Jo,EmailOtpStep:()=>jo,MethodChoice:()=>pr,NniEntry:()=>mr,PhoneOtpStep:()=>Yo,PortraitCapture:()=>vr,SekyroFlow:()=>_a,SekyroVerification:()=>wr,StepI18nProvider:()=>Qt,VerificationResultScreen:()=>Cr,arSteps:()=>Eo,enSteps:()=>Oo,formatTemplate:()=>Pe,frSteps:()=>Do,isInAppBrowser:()=>Nr,resolveSekyroStrings:()=>Dr,useStepI18n:()=>ne,useVerificationStep:()=>Ko});module.exports=za(Ol);Ar();Mr();Vr();ke();var No=require("react");function Ko(e){let[t,o]=(0,No.useState)(()=>e?.currentStep?.()??null),[r,n]=(0,No.useState)(null);return(0,No.useEffect)(()=>{if(e===void 0)return;if(typeof e.run!="function"){n(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let i=!0,a=e.on("step",c=>{i&&o(c)});return e.run().then(c=>{i&&o(l=>l??c)},c=>{i&&n(c)}),()=>{i=!1,a()}},[e]),{step:t,error:r}}s(Ko,"useVerificationStep");var Ue=require("react");le();Hr();zt();Je();ke();ze();Wo();var D=require("react/jsx-runtime"),qn=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),Ea=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Oa=["whatsapp","sms"],Da=new Set(["otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited"]),At="+222";function Ha(e){let t=e.replace(/[\s-]/g,""),o=t.startsWith("+")?t.slice(1):t;return/^\d{8,15}$/.test(o)?`+${o}`:null}s(Ha,"normalizedPhone");function Fa({id:e,label:t,value:o,onChange:r,placeholder:n}){let i=o.startsWith("+")&&!o.startsWith(At),a=i?o:o.slice(o.startsWith(At)?At.length:0).trim(),c=(0,Ue.useRef)(null);return(0,Ue.useEffect)(()=>{let l=setTimeout(()=>c.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(l)},[]),(0,D.jsxs)("div",{className:"sekyro-field",children:[(0,D.jsx)("label",{className:"sekyro-label",htmlFor:e,children:t}),(0,D.jsxs)("div",{className:"sekyro-phone",dir:"ltr",children:[i?null:(0,D.jsxs)("span",{className:"sekyro-phone__dial",id:`${e}-dial`,children:[(0,D.jsx)("span",{className:"sekyro-phone__flag","aria-hidden":"true",children:"🇲🇷"}),At]}),(0,D.jsx)("input",{ref:c,id:e,className:"sekyro-phone__input",type:"tel",dir:"ltr",inputMode:"tel",autoComplete:"tel",...i?{}:{"aria-describedby":`${e}-dial`},placeholder:n,value:a,onChange:l=>{let p=l.target.value.replace(/[^\d +]/g,"");r(p.startsWith("+")?p:At+p.replace(/\D/g,""))}})]})]})}s(Fa,"PhoneField");function Yo({step:e,locale:t,strings:o,className:r,defaultPhone:n=At,onError:i}){let a=ne(t,o),{t:c}=a,[l,p]=(0,Ue.useState)(n),[f,g]=(0,Ue.useState)(""),[m,u]=(0,Ue.useState)(!1),[d,h]=(0,Ue.useState)(null),y=e.phase==="verify",I=to(y),b=(0,Ue.useId)(),R=s(async x=>{u(!0),h(null);try{await x()}catch(X){h(Oe(X,a.strings)),i?.(X)}finally{u(!1)}},"run"),P=Oa.filter(x=>(e.channels??[]).includes(x)),S=Ha(l),C=!e.needsPhone||S!==null,k=s((x,X=!1)=>{R(()=>e.send({...e.needsPhone&&(!X||l!==n)?{phone:S??l}:{},...x!==void 0?{channel:x}:{}}))},"send"),E=s(x=>{R(()=>e.verify(x))},"submitCode"),$=s(x=>{x.preventDefault(),y?E(f):P.length<=1&&C&&k(P[0])},"onSubmit"),_=qn(e.codeExpiresAt,I),M=qn(e.resendAvailableAt,I),H=y&&e.codeExpiresAt!==void 0&&_===0,re=s(x=>c(x==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),[Z,Se]=c("otp.sentTo",{channel:re(e.channel)}).split("{number}"),T=e.reason==="otp_mismatch"?(0,D.jsxs)(F,{tone:"danger",children:[(0,D.jsx)("span",{children:c("otp.reason_otp_mismatch")}),(0,D.jsx)("span",{children:Ke(a,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Da.has(e.reason)?(0,D.jsx)(F,{tone:"warning",children:(0,D.jsx)("span",{children:c(`otp.reason_${e.reason}`)})}):null,V=(0,D.jsxs)(D.Fragment,{children:[T,d!==null?(0,D.jsx)(F,{tone:"danger",children:(0,D.jsx)("span",{children:c(d)})}):null]});if(y){let x=P.length===0;return(0,D.jsxs)("form",{className:`sekyro-step sekyro-otp${r?` ${r}`:""}`,"aria-labelledby":b,onSubmit:$,noValidate:!0,children:[(0,D.jsx)(Le,{id:b,title:c("otp.verifyTitle"),lead:(0,D.jsxs)(D.Fragment,{children:[Z,(0,D.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),Se]})}),V,(0,D.jsxs)("div",{className:"sekyro-field",children:[(0,D.jsx)("label",{className:"sekyro-label",htmlFor:`${b}-code`,children:c("otp.codeLabel")}),(0,D.jsx)(Uo,{id:`${b}-code`,value:f,invalid:e.reason==="otp_mismatch",onChange:X=>{g(X),X.length===6&&f.length!==6&&!m&&!e.attemptsExhausted&&E(X)}}),(0,D.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${H?" is-danger":""}`,"aria-hidden":!H||void 0,children:H?c("otp.expired"):c("otp.expiresIn",{time:Ea(_)})})]}),(0,D.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:H?c("otp.expired"):""}),(0,D.jsxs)(Ie,{children:[(0,D.jsx)(L,{type:"submit",full:!0,disabled:m||f.length!==6||e.attemptsExhausted,"aria-busy":m||void 0,children:c("otp.verify")}),x?(0,D.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:m||M>0,onClick:()=>k(void 0,!0),children:M>0?c("otp.resendIn",{seconds:M}):c("otp.resend")}):M>0?(0,D.jsx)("p",{className:"sekyro-resend is-waiting",children:c("otp.resendIn",{seconds:M})}):(0,D.jsx)("div",{className:"sekyro-resend-row",children:P.map(X=>(0,D.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:m,onClick:()=>k(X,!0),children:c("otp.resendBy",{channel:re(X)})},X))})]})]})}return(0,D.jsxs)("form",{className:`sekyro-step sekyro-otp${r?` ${r}`:""}`,"aria-labelledby":b,onSubmit:$,noValidate:!0,children:[(0,D.jsx)(Le,{id:b,title:c("otp.sendTitle"),lead:c("otp.sendDescription")}),V,e.needsPhone?(0,D.jsx)(Fa,{id:`${b}-phone`,label:c("otp.phoneLabel"),value:l,onChange:p,placeholder:c("otp.phonePlaceholder").replace(At,"").trim()}):(0,D.jsx)("p",{className:"sekyro-text-muted",children:c("otp.prefilledNotice")}),(0,D.jsx)(Ie,{children:P.length>0?(0,D.jsxs)("div",{className:"sekyro-actions__group",role:"group","aria-label":c("otp.chooseChannel"),children:[(0,D.jsx)("p",{className:"sekyro-label","aria-hidden":"true",children:c("otp.chooseChannel")}),P.map((x,X)=>(0,D.jsx)(L,{kind:X===0?"primary":"ghost",full:!0,disabled:m||!C,"aria-busy":X===0&&m||void 0,onClick:()=>k(x),children:c("otp.sendBy",{channel:re(x)})},x))]}):(0,D.jsx)(L,{type:"submit",full:!0,disabled:m||!C,"aria-busy":m||void 0,children:c("otp.send")})})]})}s(Yo,"PhoneOtpStep");var _t=require("react");le();var Wn=require("react");var Br=class Br extends Wn.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};s(Br,"LoadBoundary");var et=Br;ke();ze();var ut=require("react/jsx-runtime"),Ga={load:s(()=>Promise.resolve().then(()=>(ri(),oi)),"load")};function jo({locale:e,strings:t,...o}){let r=ne(e,t),[n,i]=(0,_t.useState)(0),a=(0,_t.useMemo)(()=>(0,_t.lazy)(()=>Ga.load().then(l=>({default:l.EmailOtpView}))),[n]),c=(0,ut.jsxs)(F,{tone:"danger",children:[(0,ut.jsx)("span",{children:r.t("errors.network_error")}),(0,ut.jsx)(L,{kind:"ghost",onClick:()=>i(l=>l+1),children:r.t("common.retry")})]});return(0,ut.jsx)(et,{fallback:c,children:(0,ut.jsx)(_t.Suspense,{fallback:(0,ut.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:r.t("common.loading")}),children:(0,ut.jsx)(a,{...o,i18n:r})})},n)}s(jo,"EmailOtpStep");var Ct=require("react");le();ke();ze();var dt=require("react/jsx-runtime"),ja={load:s(()=>Promise.resolve().then(()=>(ai(),si)),"load")};function Jo({locale:e,strings:t,...o}){let r=ne(e,t),[n,i]=(0,Ct.useState)(0),a=(0,Ct.useMemo)(()=>(0,Ct.lazy)(()=>ja.load().then(l=>({default:l.EidView}))),[n]),c=(0,dt.jsxs)(F,{tone:"danger",children:[(0,dt.jsx)("span",{children:r.t("errors.network_error")}),(0,dt.jsx)(L,{kind:"ghost",onClick:()=>i(l=>l+1),children:r.t("common.retry")})]});return(0,dt.jsx)(et,{fallback:c,children:(0,dt.jsx)(Ct.Suspense,{fallback:(0,dt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:r.t("common.loading")}),children:(0,dt.jsx)(a,{...o,i18n:r})})},n)}s(Jo,"EidStep");var Ds=require("react");er();Wr();var xt=require("react");le();ze();var gt=require("react/jsx-runtime"),Yc={load:s(()=>Promise.resolve().then(()=>(Os(),Es)),"load")};function Me({view:e,i18n:t,quiet:o,...r}){let[n,i]=(0,xt.useState)(0),a=(0,xt.useMemo)(()=>(0,xt.lazy)(()=>Yc.load().then(l=>({default:l[e]}))),[e,n]),c=(0,gt.jsxs)(F,{tone:"danger",children:[(0,gt.jsx)("span",{children:t.t("errors.network_error")}),(0,gt.jsx)(L,{kind:"ghost",onClick:()=>i(l=>l+1),children:t.t("common.retry")})]});return(0,gt.jsx)(et,{fallback:c,children:(0,gt.jsx)(xt.Suspense,{fallback:o===!0?null:(0,gt.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:t.t("common.loading")}),children:(0,gt.jsx)(a,{...r,i18n:t})})},n)}s(Me,"Flow");yt();ke();var uo=require("react/jsx-runtime");function pr({step:e,locale:t,strings:o,className:r,onError:n}){let i=ne(t,o),{busy:a,error:c,run:l}=Et(i,n),p=(0,Ds.useMemo)(()=>e.choice.options.flatMap(g=>{let m=Io(g,i),u=tr[g.service];return m===null?[]:[{id:g.id,label:m,...u!==void 0?{glyph:(0,uo.jsx)(se,{name:u})}:{}}]}),[e.choice.options,i]),f=e.choice.options.find(g=>g.service==="national_eid");return(0,uo.jsxs)("div",{className:r,children:[(0,uo.jsx)(Vt,{title:i.t("method.title"),description:i.t("method.description"),options:p,busy:a,error:c,focus:!0,testId:"sekyro-method",onChoose:g=>l(()=>e.choose(g))}),f?.nationalEid?.afterPass==="continue"?(0,uo.jsx)(Me,{view:"EidContinueHint",i18n:i,provider:f.nationalEid.providerName,quiet:!0}):null]})}s(pr,"MethodChoice");var To=require("@sekyro/web"),po=require("react");le();zt();Je();ke();ze();var ee=require("react/jsx-runtime");function mr({step:e,locale:t,strings:o,className:r,onError:n}){let i=ne(t,o),{t:a}=i,[c,l]=(0,po.useState)(""),[p,f]=(0,po.useState)(!1),[g,m]=(0,po.useState)(null),u=(0,po.useId)(),d=e.attemptsExhausted,h=s(async C=>{f(!0),m(null);try{await C()}catch(k){m(Oe(k,i.strings)),n?.(k)}finally{f(!1)}},"run"),y=s(C=>{if(C.preventDefault(),e.source!=="typed"){h(()=>e.confirm());return}let k=(0,To.normalizeNni)(c);if(!/^\d{10}$/.test(k))return m("population.invalid");if(!(0,To.isValidNni)(k))return m("population.reason_nni_invalid");h(()=>e.submitNni(k))},"onSubmit"),I=Ke(i,e.attemptsRemaining,d),b=(0,ee.jsxs)(ee.Fragment,{children:[e.reason==="registry_unavailable"?(0,ee.jsxs)(F,{tone:"warning",children:[(0,ee.jsx)("span",{children:a("population.reason_registry_unavailable")}),(0,ee.jsx)("span",{children:I})]}):null,e.reason==="nni_not_found"&&e.canUseDocument?(0,ee.jsxs)(F,{tone:"warning",children:[(0,ee.jsx)("span",{children:a("population.reason_nni_not_found_or_document")}),(0,ee.jsx)("span",{children:I}),(0,ee.jsx)(L,{kind:"ghost",disabled:p,onClick:()=>{h(()=>e.useDocument())},children:a("population.useDocument")})]}):null,e.reason==="nni_not_found"&&!e.canUseDocument||e.reason==="nni_invalid"?(0,ee.jsxs)(F,{tone:"danger",children:[(0,ee.jsx)("span",{children:a(e.reason==="nni_not_found"?"population.reason_nni_not_found":"population.reason_nni_invalid")}),(0,ee.jsx)("span",{children:I})]}):null,d&&e.reason===void 0?(0,ee.jsx)(F,{tone:"danger",children:(0,ee.jsx)("span",{children:I})}):null,g!==null?(0,ee.jsx)(F,{tone:"danger",children:(0,ee.jsx)("span",{children:a(g)})}):null]}),[R,P,S]=e.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:e.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:e.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return(0,ee.jsxs)("form",{className:`sekyro-step${r?` ${r}`:""}`,"aria-labelledby":u,onSubmit:y,noValidate:!0,children:[(0,ee.jsx)(Le,{id:u,title:a(R),lead:a(P)}),b,e.source==="typed"?(0,ee.jsxs)("div",{className:"sekyro-field",children:[(0,ee.jsx)("label",{className:"sekyro-label",htmlFor:`${u}-nni`,children:a("population.label")}),(0,ee.jsx)("input",{id:`${u}-nni`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:a("population.placeholder"),value:c,"aria-describedby":`${u}-nni-help`,"aria-invalid":g==="population.invalid"||g==="population.reason_nni_invalid"||void 0,onChange:C=>{m(null),l((0,To.normalizeNni)(C.target.value).replace(/\D/g,"").slice(0,10))}}),(0,ee.jsx)("span",{id:`${u}-nni-help`,className:"sekyro-help",children:a("population.helper")})]}):null,(0,ee.jsx)(Ie,{children:d?null:(0,ee.jsx)(L,{type:"submit",full:!0,disabled:p,"aria-busy":p||void 0,children:a(S)})})]})}s(mr,"NniEntry");var fo=require("@sekyro/web"),We=require("react");le();var mo=require("@sekyro/web"),Fe=require("react");yt();Je();var ae=require("react/jsx-runtime"),Hs=s(e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),"fold"),jc=s(e=>String.fromCodePoint(...Array.from(e.toUpperCase(),t=>127397+t.charCodeAt(0))),"flag"),Zc=220;function Qc(e,t){let o=null;try{o=new Intl.DisplayNames([e],{type:"region"})}catch{}let r=t.map(i=>({code:i,name:o?.of(i)??i})),n=new Intl.Collator(e);return r.sort((i,a)=>i.code==="MR"?-1:a.code==="MR"?1:n.compare(i.name,a.name))}s(Qc,"countryNames");function Fs({step:e,i18n:t,issuer:o,onPicked:r}){let{t:n,locale:i}=t,a=(0,Fe.useMemo)(()=>(0,mo.acceptedIssuers)(e.documents),[e.documents]),c=(0,Fe.useMemo)(()=>Qc(i,a),[i,a]),l=a.length===1?a[0]:null,[p,f]=(0,Fe.useState)(o??l),[g,m]=(0,Fe.useState)(""),[u,d]=(0,Fe.useState)(null),h=(0,Fe.useId)(),y=l===null?[]:(0,mo.acceptedTypesFor)(e.documents,l),I=l!==null&&y.length===1?y[0]:null;(0,Fe.useEffect)(()=>{l!==null&&I!==null&&e.selectDocument(l,I)},[l,I]);let b=s((S,C)=>{e.selectDocument(S,C),r?.()},"pick"),R=s(S=>{let C=(0,mo.acceptedTypesFor)(e.documents,S);C.length===1?b(S,C[0]):f(S)},"chooseIssuer");if((0,Fe.useEffect)(()=>{if(u===null||p===null)return;let S=setTimeout(()=>b(p,u),Zc);return()=>clearTimeout(S)},[u]),I!==null)return null;if(p===null){let S=Hs(g.trim()),C=S===""?c:c.filter(k=>Hs(k.name).includes(S)||k.code.toLowerCase()===S);return(0,ae.jsxs)("section",{className:"sekyro-step",children:[(0,ae.jsx)(Le,{title:n("doc.countryTitle"),lead:n("doc.pickDescription")}),(0,ae.jsxs)("div",{className:"sekyro-field",children:[(0,ae.jsx)("label",{className:"sekyro-label",htmlFor:h,children:n("doc.countryLabel")}),(0,ae.jsx)("input",{id:h,type:"search",className:"sekyro-input",placeholder:n("doc.countrySearch"),value:g,onChange:k=>m(k.target.value)})]}),C.length===0?(0,ae.jsx)("p",{className:"sekyro-text-muted",children:n("doc.noCountryMatch")}):(0,ae.jsx)("ul",{className:"sekyro-rows",children:C.map(k=>(0,ae.jsx)("li",{children:(0,ae.jsxs)("button",{type:"button",className:"sekyro-row-btn",onClick:()=>R(k.code),children:[(0,ae.jsx)("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:jc(k.code)}),k.name]})},k.code))}),(0,ae.jsx)(Ie,{children:null})]})}let P=(0,mo.acceptedTypesFor)(e.documents,p);return(0,ae.jsxs)("section",{className:"sekyro-step",children:[(0,ae.jsx)(Le,{title:n("doc.pickTitle"),lead:n("native.doc.holdIt")}),(0,ae.jsx)("div",{className:"sekyro-choices",children:P.map(S=>(0,ae.jsxs)("button",{type:"button",className:"sekyro-card","aria-pressed":u===S,disabled:u!==null&&u!==S,onClick:()=>d(S),children:[(0,ae.jsx)(se,{name:S==="passport"?"passport":"card"}),(0,ae.jsxs)("span",{className:"sekyro-card__body",children:[(0,ae.jsx)("span",{className:"sekyro-card__title",children:n(`doc.type.${S}`)}),(0,ae.jsx)("span",{className:"sekyro-card__sub",children:n(`doc.sub.${S}`)})]}),(0,ae.jsx)("span",{className:"sekyro-radio","aria-hidden":"true"})]},S))}),a.length>1?(0,ae.jsx)("button",{type:"button",className:"sekyro-link",onClick:()=>{f(null),d(null)},children:n("native.doc.changeCountry")}):null,(0,ae.jsx)(Ie,{children:null})]})}s(Fs,"DocumentPicker");ke();ze();var qe=require("react/jsx-runtime"),ul={load:s(()=>Promise.resolve().then(()=>(la(),ca)),"load")};function hr({step:e,locale:t,strings:o,className:r,liveMrz:n}){let i=ne(t,o),[a,c]=(0,We.useState)(0),[l,p]=(0,We.useState)(null),f=(0,fo.acceptedIssuers)(e.documents).length>1,g=e.issuer!==null&&(0,fo.acceptedTypesFor)(e.documents,e.issuer).length>1,m=(0,We.useMemo)(()=>(0,We.lazy)(()=>ul.load().then(d=>({default:d.DocumentCaptureView}))),[a]);(0,We.useEffect)(()=>{(0,fo.warmDocumentCapture)()},[]);let u=(0,qe.jsxs)(F,{tone:"danger",children:[(0,qe.jsx)("span",{children:i.t("errors.network_error")}),(0,qe.jsx)(L,{kind:"ghost",onClick:()=>c(d=>d+1),children:i.t("doc.retryCamera")})]});return(0,qe.jsx)("div",{className:r,children:e.documentType===null||e.issuer===null||l!==null?(0,qe.jsx)(Fs,{step:e,i18n:i,...l==="document"&&e.issuer!==null?{issuer:e.issuer}:{},onPicked:()=>p(null)}):(0,qe.jsx)(et,{fallback:u,children:(0,qe.jsx)(We.Suspense,{fallback:(0,qe.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:i.t("common.loading")}),children:(0,qe.jsx)(m,{step:e,i18n:i,...n!==void 0?{liveMrz:n}:{},...f?{onChangeCountry:s(()=>p("country"),"onChangeCountry")}:{},...g?{onChangeDocument:s(()=>p("document"),"onChangeDocument")}:{}})})},a)})}s(hr,"DocumentCapture");var pa=require("@sekyro/web"),Be=require("react");le();lt();ke();ze();var he=require("react/jsx-runtime"),fl={load:s(()=>Promise.resolve().then(()=>(da(),ua)),"load")},hn=class hn extends Be.Component{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};s(hn,"LoadBoundary");var fn=hn;function hl({step:e,i18n:t}){let{t:o}=t,r=ve();return(0,he.jsxs)("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[(0,he.jsx)("h2",{ref:r,tabIndex:-1,className:"sekyro-text-body",children:o(e.review?"portrait.reviewTitle":"session.steps.portrait.title")}),e.review?(0,he.jsx)("p",{className:"sekyro-text-muted",children:o("portrait.reviewDescription")}):null,e.uploadFailed?(0,he.jsxs)(F,{tone:"danger",children:[(0,he.jsx)("span",{children:o("portrait.uploadFailed")}),(0,he.jsx)(L,{kind:"ghost",onClick:()=>{e.resubmit()},children:o("portrait.sendAgain")})]}):(0,he.jsx)("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:o("portrait.matching")})]})}s(hl,"MatchPhase");function vr({step:e,locale:t,strings:o,className:r,assetBaseUrl:n}){let i=ne(t,o),[a,c]=(0,Be.useState)(0),l=(0,Be.useMemo)(()=>(0,Be.lazy)(()=>fl.load().then(f=>({default:f.PortraitCaptureView}))),[a]);if((0,Be.useEffect)(()=>{e.phase==="capture"&&(0,pa.warmPortraitCapture)()},[e.phase]),e.phase==="match")return(0,he.jsx)("div",{className:r,children:(0,he.jsx)(hl,{step:e,i18n:i})});let p=(0,he.jsxs)(F,{tone:"danger",children:[(0,he.jsx)("span",{children:i.t("errors.network_error")}),(0,he.jsx)(L,{kind:"ghost",onClick:()=>c(f=>f+1),children:i.t("portrait.retryCamera")})]});return(0,he.jsx)("div",{className:r,children:(0,he.jsx)(fn,{fallback:p,children:(0,he.jsx)(Be.Suspense,{fallback:(0,he.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:i.t("common.loading")}),children:(0,he.jsx)(l,{step:e,i18n:i,...n!==void 0?{assetBaseUrl:n}:{}})})},a)})}s(vr,"PortraitCapture");var ge=require("react");le();var Ve={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'};on();jr();eo();var ma=require("react/jsx-runtime"),Po={colors:{brand:"#1e40af",brandFg:"#ffffff",fg:"#111827",fgMuted:"#4b5563",bg:"#f8fafc",surface:"#ffffff",ring:"#1e40af",danger:"#b91c1c",success:"#15803d",warning:"#a16207"},radius:"12px",fontFamily:'system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif'},yn={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 yl(e={}){let t={};for(let o of Object.keys(yn))t[yn[o]]=e.colors?.[o]??Po.colors[o];return t["--sekyro-radius"]=e.radius??Po.radius,t["--sekyro-font"]=e.fontFamily??Po.fontFamily,t}s(yl,"themeToCssVars");var gl=/^#[0-9a-f]{6}$/i,vl={none:"0px",sm:"4px",md:"8px",lg:"12px",full:"9999px"},kl={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function kr(e){let t={};if(!e)return t;let o={};for(let[i,a]of Object.entries(e.colors??{}))i in yn&&i!=="ring"&&gl.test(a??"")&&(o[i]=a);o.brand&&(o.ring=o.brand),Object.keys(o).length&&(t.colors=o);let r=vl[e.radius];r&&(t.radius=r);let n=kl[e.fontFamily];return n!==void 0&&(t.fontFamily=n?`${n}, ${Po.fontFamily}`:Po.fontFamily),t}s(kr,"brandingToTheme");function br(...e){let t={};for(let o of e)o?.colors&&(t.colors={...t.colors,...o.colors}),o?.radius&&(t.radius=o.radius),o?.fontFamily&&(t.fontFamily=o.fontFamily);return t}s(br,"mergeThemes");function Sr({theme:e,children:t,className:o}){let r=yl(e);return(0,ma.jsx)("div",{className:o===void 0?"sekyro-root":`sekyro-root ${o}`,style:r,children:t})}s(Sr,"SekyroThemeProvider");var _r=require("react");var Dt=require("react/jsx-runtime"),bl=["intro","data","processing","sharing","retention"];function fa({i18n:e}){let{t}=e,[o,r]=(0,_r.useState)(!1),n=(0,_r.useId)(),[i,a=""]=t("consent.short").split("{terms}");return(0,Dt.jsxs)("section",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-consent",children:[(0,Dt.jsxs)("p",{className:"sekyro-text-muted",children:[i,(0,Dt.jsx)("button",{type:"button",className:"sekyro-link","aria-expanded":o,"aria-controls":n,onClick:()=>r(c=>!c),children:t("consent.termsLink")}),a]}),(0,Dt.jsx)("div",{id:n,hidden:!o,className:"sekyro-stack sekyro-stack--1 sekyro-text-muted","data-testid":"sekyro-consent-terms",children:bl.map(c=>(0,Dt.jsx)("p",{children:t(`consent.terms.${c}`)},c))})]})}s(fa,"ConsentNotice");zt();pn();rn();yt();function ha(e){let t=e.trim().split(/\s+/).filter(r=>r!=="");return(t.length>=2?[t[0],t[1]].map(r=>Array.from(r??"")[0]??""):Array.from(t[0]??"").slice(0,2)).join("").toUpperCase()}s(ha,"initials");Je();var ga=require("react");var va=s(e=>({colors:{...e?Ve.dark:Ve.light},radius:Ve.radiusLg,fontFamily:Ve.font}),"brandTheme"),Nh=va(!1);function ka(e,t,o){let r=kr(e);if(o&&r.colors!==void 0){let{brand:n,brandFg:i}=r.colors;n!==void 0&&wl(n,Ve.dark.bg)>=3?r.colors={brand:n,ring:n,...i!==void 0?{brandFg:i}:{}}:delete r.colors}return br(va(o),r,t)}s(ka,"verificationTheme");function ba(e){let t=(0,ga.useSyncExternalStore)(Cl,_l,()=>!1);return e==="dark"||e==="system"&&t}s(ba,"useDarkScheme");var Sl="(prefers-color-scheme: dark)",Sa=s(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(Sl):null,"media"),_l=s(()=>Sa()?.matches??!1,"prefersDark");function Cl(e){let t=Sa();return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}s(Cl,"subscribe");function wl(e,t){let[o,r]=[ya(e),ya(t)];return(Math.max(o,r)+.05)/(Math.min(o,r)+.05)}s(wl,"contrast");function ya(e){let t=[1,3,5].map(o=>{let r=Number.parseInt(e.slice(o,o+2),16)/255;return r<=.03928?r/12.92:((r+.055)/1.055)**2.4});return .2126*(t[0]??0)+.7152*(t[1]??0)+.0722*(t[2]??0)}s(ya,"luminance");ke();var yo=require("react");Zt();lt();le();yt();ke();var ye=require("react/jsx-runtime"),Nl=new Set(["document_nni_mismatch","name_mismatch","birth_date_mismatch"]),xl={approved:"M6.5 12.5l3.6 3.6 7.4-8.2",review:"M12 7v5l3.2 2",expired:"M8 5h8M8 19h8M9 5c0 4 6 5 6 7s-6 3-6 7M15 5c0 4-6 5-6 7s6 3 6 7",rejected:"M8 8l8 8M16 8l-8 8"};function Il({outcome:e}){return(0,ye.jsxs)("svg",{className:`sekyro-outcome sekyro-outcome--${e}`,viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[(0,ye.jsx)("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"57",pathLength:"1"}),(0,ye.jsx)("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),(0,ye.jsx)("path",{className:"sekyro-outcome__glyph",d:xl[e],pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]})}s(Il,"OutcomeMark");function Ll({label:e,id:t,copied:o}){let[r,n]=(0,yo.useState)(!1);return(0,yo.useEffect)(()=>{if(!r)return;let i=setTimeout(()=>n(!1),1600);return()=>clearTimeout(i)},[r]),(0,ye.jsxs)("button",{type:"button",className:`sekyro-reference${r?" is-copied":""}`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>n(!0),()=>{})},children:[(0,ye.jsx)("span",{"aria-live":"polite",children:r?o:e}),(0,ye.jsx)("bdi",{dir:"ltr",children:t}),(0,ye.jsx)(se,{name:"copy"})]})}s(Ll,"ReferenceLine");function Cr({step:e,locale:t,strings:o,className:r,onClose:n}){let i=ne(t,o),{t:a}=i,c=(0,yo.useId)(),l=ve(),p=e.context.orgName,f=e.display==="approved"?"approved":e.display==="review"?"review":e.display==="expired"?"expired":"rejected",g;switch(e.display){case"policy_stop":{let m=e.failureReason??"";if(Nl.has(m))g=a("session.result.detailsMismatch",{org:p});else if(m==="device_velocity_exceeded")g=a("session.result.deviceVelocity",{org:p});else{let u=jt(m);g=u!==null?a(u,{org:p}):a("session.result.rejected.description")}break}case"cooldown":{let m=Ho(i.locale,e.retryAfter);g=m!==null?a(m.key,{time:m.time}):a("reasons.device_cooldown");break}case"platform_unsupported":g=a("result.platform_unsupported");break;case"attempts_exhausted":g=a("common.noAttemptsLeft");break;default:g=p!==""?a(`native.result.${f}`,{org:p}):a(`session.result.${f}.description`)}return(0,ye.jsxs)("section",{className:`sekyro-result${r?` ${r}`:""}`,"aria-labelledby":c,"data-testid":"sekyro-result",children:[(0,ye.jsxs)("div",{className:"sekyro-result__body",children:[(0,ye.jsx)(Il,{outcome:e.display==="cooldown"?"review":f}),(0,ye.jsxs)("div",{className:"sekyro-heading",children:[(0,ye.jsx)("h2",{id:c,ref:l,tabIndex:-1,className:"sekyro-text-body",children:a(`session.result.${f}.title`)}),(0,ye.jsx)("p",{className:"sekyro-text-muted",children:g})]}),(0,ye.jsx)(Ll,{label:a("result.referenceLabel"),id:e.context.sessionId,copied:a("native.result.copied")})]}),n!==void 0?(0,ye.jsx)("div",{className:"sekyro-actions",children:(0,ye.jsx)(L,{full:!0,onClick:n,children:p!==""?a("native.result.back",{org:p}):a("native.close")})}):null]})}s(Cr,"VerificationResultScreen");var N=require("react/jsx-runtime");function Rl(e,t){let o=t?Ve.dark:Ve.light,r=t?Ve.roles.dark:Ve.roles.light,n=e.colors??{},i={},a=n.fg===o.fg&&n.surface===o.surface;return n.brand===o.brand&&n.surface===o.surface&&(i["--sekyro-color-brand-soft"]=r.brandSoft),a&&(i["--sekyro-color-line"]=r.line,i["--sekyro-color-line-subtle"]=r.lineSubtle,i["--sekyro-color-line-strong"]=r.lineStrong,i["--sekyro-color-sunken"]=r.sunken),n.fgMuted===o.fgMuted&&n.surface===o.surface&&(i["--sekyro-color-fg-subtle"]=r.fgSubtle),e.fontFamily===Ve.font&&(i["--sekyro-font-display"]=Ve.fontDisplay),i}s(Rl,"flowRoles");function wr(e){let{verification:t,locale:o,strings:r,onStep:n,onResult:i}=e,{step:a,error:c}=Ko(t);(0,ge.useEffect)(()=>{a!==null&&n?.(a)},[a,n]),(0,ge.useEffect)(()=>i===void 0?void 0:t.on("result",i),[t,i]);let l=ba(e.colorScheme??"light"),p=ka(a?.context.branding,e.theme,l),[f,g]=(0,ge.useState)(!1),m=`sekyro-verification${l?" sekyro-verification--dark":""}${f?" is-immersive":""}${e.className!==void 0?` ${e.className}`:""}`,u=(0,ge.useRef)(e.onClose);u.current=e.onClose;let d=(0,ge.useRef)(a);d.current=a;let h=(0,ge.useCallback)(()=>{let y=d.current;u.current?.(y?.kind==="result"?{reason:"finished",result:y.result}:{reason:"cancelled"})},[]);return(0,N.jsx)(Sr,{theme:p,className:m,children:(0,N.jsx)(Qt,{locale:o,...r!==void 0?{strings:r}:{},children:(0,N.jsx)("div",{dir:e.dir??(o==="ar"?"rtl":"ltr"),lang:o,className:"sekyro-flow",style:Rl(p,l),children:(0,N.jsx)(Fr.Provider,{value:g,children:(0,N.jsx)(Jt.Provider,{value:e.onClose!==void 0?h:void 0,children:(0,N.jsx)(Tl,{...e,step:a,error:c,immersive:f})})})})})})}s(wr,"SekyroVerification");function Tl(e){let{step:t,error:o,slots:r,immersive:n}=e,i=ne(),{t:a}=i,[c,l]=(0,ge.useState)(!1),[p,f]=(0,ge.useState)(0),[g,m]=(0,ge.useState)(null),u=(0,ge.useCallback)((k,E)=>(0,N.jsx)(dr,{start:k,context:E}),[]),d=(0,ge.useRef)(""),h=e.livenessProps?.slots?.stageOverlay,y=(0,ge.useCallback)(k=>(k.guidance!==""&&!k.coached&&(d.current=k.guidance),(0,N.jsx)(gr,{testId:"sekyro-capture-stage",video:(0,N.jsx)("video",{ref:k.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:k.guidance!==""?k.guidance:d.current,note:k.note,busy:k.settled,progress:k.phase==="seeking"||k.phase==="aligning"?k.progress:1,still:k.still,live:k.live,closeLabel:a("native.close"),overlay:h?.(k.videoRef),...k.settled?{}:{onClose:s(()=>f(E=>E+1),"onClose")}})),[a,h]),I=(0,ge.useId)();if(o!==null)return(0,N.jsx)(be,{tone:"danger",children:(0,N.jsx)("span",{children:a(Oe(o,i.strings))})});if(t===null)return(0,N.jsx)("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:a("common.loading")});let{context:b}=t,R=s(k=>{l(!0),k().finally(()=>l(!1))},"refresh"),P=r?.header??(0,N.jsx)(zl,{context:b,headerId:I,end:r?.headerEnd}),S,C=g===t.key&&t.context.switchable!==void 0;if(C)S=(0,N.jsx)(Me,{view:"LaneChoiceView",i18n:i,step:t,onClose:()=>m(null)});else switch(t.kind){case"phone_otp":S=(0,N.jsx)(Yo,{step:t});break;case"email_otp":S=(0,N.jsx)(jo,{step:t});break;case"method":S=(0,N.jsx)(pr,{step:t});break;case"registry":S=(0,N.jsx)(mr,{step:t});break;case"document":S=(0,N.jsx)(hr,{step:t,...e.documentLiveMrz!==void 0?{liveMrz:e.documentLiveMrz}:{}});break;case"liveness":{let k=e.livenessProps?.slots?.intro,E={...e.livenessProps??{},slots:{...e.livenessProps?.slots,intro:k??u},...p>0?{autoStart:!1}:{},verification:e.verification,locale:e.locale,...e.dir!==void 0?{dir:e.dir}:{},strings:i.strings,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{},...e.voice!==void 0?{voice:e.voice}:{},...e.onLivenessCaptured!==void 0?{onCaptured:e.onLivenessCaptured}:{}};S=(0,N.jsx)(nr.Provider,{value:y,children:t.instructions==="icao"||t.livePhoto?.icao===!0?(0,N.jsx)(Me,{view:"LivePhotoLiveness",i18n:i,step:t,livenessProps:E,sekyroIntro:k===void 0},p):(0,N.jsx)(ur,{...E},p)});break}case"portrait":S=(0,N.jsxs)(N.Fragment,{children:[t.retakeOnly?(0,N.jsx)(Me,{view:"PortraitRetakeNotice",i18n:i,quiet:!0}):null,(0,N.jsx)(vr,{step:t,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{}})]});break;case"contact_choice":S=(0,N.jsx)(Me,{view:"ContactChoiceView",i18n:i,step:t});break;case"choice":S=(0,N.jsx)(Me,{view:"GenericChoiceView",i18n:i,step:t});break;case"identity_summary":S=(0,N.jsx)(Me,{view:"IdentitySummaryView",i18n:i,step:t});break;case"mobile_required":S=e.handoffUrl!==void 0?(0,N.jsx)(Me,{view:"HandoffView",i18n:i,url:e.handoffUrl,refresh:t.refresh}):(0,N.jsxs)(be,{tone:"info",children:[(0,N.jsx)("strong",{children:a("handoff.title")}),(0,N.jsx)("span",{children:a("reasons.mobile_required")}),(0,N.jsx)(L,{kind:"ghost",disabled:c,onClick:()=>R(t.refresh),children:a("common.refresh")})]});break;case"processing":S=(0,N.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",role:"status","aria-live":"polite",children:[(0,N.jsx)("h2",{className:"sekyro-text-body",children:a("session.processing.title")}),(0,N.jsx)("p",{className:"sekyro-text-muted",children:a("session.processing.description")}),t.stalled?(0,N.jsx)(L,{kind:"ghost",disabled:c,onClick:()=>R(t.refresh),children:a("common.refresh")}):null]});break;case"eid":S=(0,N.jsx)(Jo,{step:t});break;case"unsupported":{let k=t.reason==="platform_unsupported";S=(0,N.jsxs)("section",{className:"sekyro-stack sekyro-stack--1",children:[(0,N.jsx)("h2",{className:"sekyro-text-body",children:a(k?"needsApp.title":"unsupported.title")}),(0,N.jsx)("p",{children:k?b.orgName!==""?a("needsApp.description",{org:b.orgName}):a("needsApp.descriptionNoOrg"):a("unsupported.description",{org:b.orgName})})]});break}case"result":S=r?.result?.(t)??(0,N.jsx)(Pl,{step:t});break;default:{let k=t;S=null}}return(0,N.jsxs)(N.Fragment,{children:[n?null:P,!n&&t.kind!=="result"&&b.sections.length>1?(0,N.jsx)(Al,{context:b,current:t.section,i18n:i}):null,!n&&!b.consentRecorded&&t.kind!=="result"?(0,N.jsx)(fa,{i18n:i}):null,(0,N.jsx)(Kn,{pageKey:t.key,children:S}),!n&&!C&&t.kind!=="result"&&t.context.switchable!==void 0?(0,N.jsx)(Me,{view:"LaneSwitch",i18n:i,step:t,onOpen:()=>m(t.key),quiet:!0},t.key):null,n?null:r?.footer!==void 0?r.footer:(0,N.jsxs)("p",{className:"sekyro-footer",children:[(0,N.jsx)(se,{name:"lock"}),a("shell.verifiedBy")]})]})}s(Tl,"Body");function Pl({step:e}){return(0,N.jsx)(Jt.Consumer,{children:t=>(0,N.jsx)(Cr,{step:e,...t!==void 0?{onClose:t}:{}})})}s(Pl,"ResultPage");function zl({context:e,headerId:t,end:o}){let{t:r}=ne(),[n,i]=(0,ge.useState)(!1),a=n?void 0:e.branding?.logoUrl,c=e.orgName!==""?e.orgName:r(e.returning?"returning.title":"session.title");return(0,N.jsxs)("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":t,children:[(0,N.jsxs)("div",{className:"sekyro-org",children:[(0,N.jsx)("span",{className:"sekyro-org__tile","aria-hidden":"true",children:a!==void 0?(0,N.jsx)("img",{className:"sekyro-org__logo",src:a,alt:"",onError:()=>i(!0)}):ha(e.orgName)}),(0,N.jsxs)("div",{className:"sekyro-org__text",children:[(0,N.jsx)("h1",{id:t,className:"sekyro-org__name",children:c}),(0,N.jsx)("p",{className:"sekyro-org__sub",children:r("shell.subtitle")})]}),o!=null?(0,N.jsx)("div",{className:"sekyro-org__end",children:o}):null,(0,N.jsx)(Jt.Consumer,{children:l=>l!==void 0?(0,N.jsx)("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":r("native.close"),onClick:l,children:(0,N.jsx)(se,{name:"close"})}):null})]}),e.returning?(0,N.jsx)("p",{className:"sekyro-text-muted",children:r("returning.description")}):null]})}s(zl,"OrgHeader");function Al({context:e,current:t,i18n:o}){let r=t===null?-1:e.sections.indexOf(t),n=e.progress,i=n!==void 0&&n.length===e.sections.length?n:e.sections.map((a,c)=>({id:a,state:c<r?"done":c===r?"current":"upcoming"}));return(0,N.jsx)("ol",{className:"sekyro-progress__bars","aria-label":o.t("session.progressLabel"),children:i.map(({id:a,state:c})=>(0,N.jsx)("li",{className:`sekyro-progress__bar${c==="done"?" is-done":c==="current"?" is-current":""}`,...c==="current"?{"aria-current":"step"}:{},children:(0,N.jsx)("span",{className:"sekyro-visually-hidden",children:o.strings[`section.${a}`]??a})},a))})}s(Al,"SectionProgress");var zo=require("react");var Ml=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function Nr(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));return Ml.test(t)}s(Nr,"isInAppBrowser");ke();var Ht=require("react/jsx-runtime");function Vl(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}s(Vl,"pageUrl");function _a({hostedUrl:e,inAppBrowser:t,...o}){let[r,n]=(0,zo.useState)(t===!0);(0,zo.useEffect)(()=>{t===void 0&&Nr()&&n(!0)},[t]);let[i,a]=(0,zo.useState)(!1),c=o.handoffUrl??e??Vl();return r&&!i?(0,Ht.jsx)(Sr,{theme:br(kr(void 0),o.theme),...o.className!==void 0?{className:o.className}:{},children:(0,Ht.jsx)(Qt,{locale:o.locale,...o.strings!==void 0?{strings:o.strings}:{},children:(0,Ht.jsx)("div",{dir:o.dir??(o.locale==="ar"?"rtl":"ltr"),lang:o.locale,className:"sekyro-stack sekyro-stack--4",children:(0,Ht.jsx)(El,{url:c,onContinue:()=>a(!0)})})})}):(0,Ht.jsx)(wr,{...o,...c!==""?{handoffUrl:c}:{}})}s(_a,"SekyroFlow");function El({url:e,onContinue:t}){let o=ne();return(0,Ht.jsx)(Me,{view:"InAppBrowserPrompt",i18n:o,url:e,onContinue:t})}s(El,"Prompt");
|