@sekyro/react 0.1.0-rc.2 → 0.1.0-rc.20
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 +469 -0
- package/LICENSE +25 -16
- package/README.md +221 -16
- package/dist/chunk-2KED7D2Q.js +2 -0
- package/dist/chunk-4X65DTPB.js +2 -0
- package/dist/chunk-55NNQK5P.js +2 -0
- package/dist/chunk-6QYD5HOU.js +2 -0
- package/dist/chunk-7MMT5M4E.js +2 -0
- package/dist/chunk-A4ZCLFYN.js +2 -0
- package/dist/chunk-AYFSJOAV.js +2 -0
- package/dist/chunk-B4OAK5EF.js +2 -0
- package/dist/chunk-EDIXRMTS.js +2 -0
- package/dist/chunk-FQDXB2B2.js +2 -0
- package/dist/chunk-GUTF3SPK.js +2 -0
- package/dist/chunk-HRNF3WQA.js +2 -0
- package/dist/chunk-IAZ5UH2B.js +2 -0
- package/dist/chunk-RKO3RGGA.js +2 -0
- package/dist/chunk-RO2EITOC.js +2 -0
- package/dist/chunk-VIJSKEOY.js +2 -0
- package/dist/chunk-VRDPGOXM.js +2 -0
- package/dist/chunk-WL77LOB3.js +2 -0
- package/dist/document-capture-view-GLJFNXMU.js +2 -0
- package/dist/eid-view-UDHNSVSK.js +2 -0
- package/dist/email-otp-view-E64VQ4LK.js +2 -0
- package/dist/flow-views-WOIS3NTS.js +2 -0
- package/dist/fonts/Cairo-OFL.txt +93 -0
- package/dist/fonts/Geist-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
- package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
- package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
- package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
- package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
- package/dist/index.cjs +2 -901
- package/dist/index.d.cts +7 -233
- package/dist/index.d.ts +7 -233
- package/dist/index.js +2 -880
- package/dist/overlay-de-5KYN4JFO.js +2 -0
- package/dist/overlay-es-6CAERCCN.js +2 -0
- package/dist/overlay-pt-UBGXJ3C3.js +2 -0
- package/dist/portrait-capture-view-OF6YACVY.js +2 -0
- package/dist/portrait-review-view-YPIJQTA7.js +2 -0
- package/dist/styles.css +310 -12
- package/dist/theme-YmIQ6Ux1.d.cts +542 -0
- package/dist/theme-YmIQ6Ux1.d.ts +542 -0
- package/dist/verification/index.cjs +2 -0
- package/dist/verification/index.d.cts +689 -0
- package/dist/verification/index.d.ts +689 -0
- package/dist/verification/index.js +2 -0
- package/dist/verification.css +757 -0
- package/package.json +28 -13
- package/sbom.cdx.json +153 -0
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as d,b as u}from"./chunk-IAZ5UH2B.js";import{d as s,g as c,h as p}from"./chunk-6QYD5HOU.js";import{a as i}from"./chunk-2KED7D2Q.js";var l={"session.title":"تحقّق من هويتك","session.requestedBy":"تطلب {orgName} منك التحقق من هويتك","returning.requestedBy":"تطلب {orgName} منك تأكيد أنك أنت","consent.notice":"بإكمال عملية التحقق من الهوية، فإنك توافق على معالجة بياناتك الشخصية والبيومترية للتحقق من هويتك.","consent.details":"التفاصيل","consent.terms.intro":"تتحقق Sekyro AI من هويتك نيابةً عن الجهة التي أرسلت إليك هذا الرابط. قبل البدء، اطّلع على كيفية استخدام بياناتك.","consent.terms.data":"أثناء التحقق، تجمع Sekyro AI صور وثيقة هويتك، ومقطع فيديو ذاتيًا قصيرًا، وصورة ذاتية، ورقم وثيقة هويتك.","consent.terms.processing":"تُستخدم هذه البيانات للتحقق من هويتك فقط: يُقارَن وجهك بالصورة الموجودة على وثيقتك، ويُطابَق رقمك مع سجلات الجهة المُصدِرة متى أمكن ذلك. وقد يفحص بعض الخطوات مراجع بشري مخوَّل.","consent.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.modeSwitch.toSelfPhoto":"ألتقط الصورة بنفسي","capture.modeSwitch.toAssistedLabelPhoto":"التبديل إلى التصوير بمساعدة شخص آخر يحمل الهاتف ويلتقط صورتك","capture.modeSwitch.toSelfLabelPhoto":"التبديل إلى التصوير الذاتي والتقاط صورتك بالكاميرا الأمامية","reasons.camera_unavailable":"يتطلب هذا التحقق كاميرا. عُد إلى {org} للمتابعة بطريقة أخرى.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"8 أرقام","otp.send":"إرسال الرمز","otp.channelSms":"رسالة نصية","otp.channelWhatsapp":"واتساب","otp.verifyTitle":"أدخل الرمز","otp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك لإتمام التحقّق من رقمك","otp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {number} عبر {channel}","otp.codeLabel":"رمز التحقّق","otp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك","otp.verify":"تحقّق من الرمز","otp.resend":"إعادة إرسال الرمز","otp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","otp.expiresIn":"ينتهي الرمز خلال {time}","otp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","otp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","otp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","otp.reason_otp_send_failed":"تعذّر إرسال الرمز. أعد المحاولة بعد قليل","otp.chooseChannel":"كيف تريد أن تتلقّى رمزك؟","otp.sendBy":"إرسال الرمز عبر {channel}","otp.resendBy":"إعادة الإرسال عبر {channel}","otp.sending":"جارٍ إرسال الرمز عبر {channel}","otp.reason_otp_channel_unavailable":"هذه الوسيلة غير متاحة. اختر طريقة أخرى لتلقّي رمزك","otp.reason_otp_destination_not_allowed":"لا يمكننا إرسال الرموز إلى أرقام هذا البلد. أدخل رقمًا آخر","otp.reason_otp_destination_unknown":"تعذّر التعرّف على هذا الرقم. تحقّق منه وأعد إدخاله مع رمز البلد","otp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","otp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","otp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.phonePlaceholderGeneric":"أدخل رقم هاتفك بدون رمز البلد","otp.countryLabel":"البلد","otp.phoneLengthError":"تحقق من الرقم: يجب أن يكون عدد أرقامه {digits}.","otp.or":"أو","otp.otherCountry":"بلد آخر","otp.reason_otp_number_invalid":"لا يبدو هذا الرقم كاملاً لبلده. تحقق منه ثم أعد المحاولة.","otp.reason_otp_number_not_mobile":"أدخل رقم هاتف محمول. لا يمكن إرسال الرموز إلى خط أرضي.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","population.reason_id_number_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.reason_registry_record_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_registry_record_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","doc.ageStepUp":"لم نتمكّن من التأكد من عمرك من الصورة الذاتية. تابع باستخدام وثيقة هوية.","reasons.underage_estimated":"هذه الخدمة مخصّصة لمن بلغوا الحد الأدنى للسن المطلوب.","reasons.starter_credit_claimed":"سبق أن منح تحققك رصيدًا ابتدائيًا لمؤسسة أخرى. يُمنح هذا الرصيد مرة واحدة لكل شخص.","reasons.blocked_by_org":"لا يمكن متابعة هذا التحقق. تواصل مع الجهة التي أرسلت لك هذا الرابط.","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","handoff.lead.document":"التقط صورة وثيقتك بهاتفك","handoff.lead.portrait":"التقط صورتك الشخصية بهاتفك","capture.source.phone":"المتابعة على هاتفي","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيراجع شخص عملية التحقق الخاصة بك. ستتواصل معك الجهة التي أرسلت إليك هذا الرابط.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"لم تؤكد عمليات التحقق هويتك. تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن هذا خطأ.","session.result.expired.title":"انتهت صلاحية هذا الرابط","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلت إليك هذا الرابط.","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.verified.title":"تم التحقق من هويتك","session.result.verified.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.inconclusive.title":"تعذّر علينا تأكيد هويتك هذه المرة","session.result.inconclusive.description":"لم تكن الصور واضحة بما يكفي لاتخاذ قرار. اطلب رابطًا جديدًا من الجهة التي أرسلت إليك هذا الرابط، وحاول في إضاءة جيدة مع إمساك الهاتف بشكل مستقيم.","session.result.unavailable.title":"لم تكن خدمة التحقق متاحة","session.result.unavailable.description":"كانت خدمتنا غير متاحة عند محاولتك. اطلب رابطًا جديدًا من الجهة التي أرسلت إليك هذا الرابط.","session.result.policy.title":"توقّف التحقق","session.result.policy.description":"لا يمكن للجهة التي أرسلت إليك هذا الرابط التحقق منك بهذه الوثيقة أو من هذا الموقع.","session.result.cooldown.title":"حاول لاحقًا","session.result.cooldown.description":"يحتاج هذا الجهاز إلى استراحة قصيرة قبل عملية تحقق أخرى.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","capture.retrySamePerson.message":"يجب أن يظهر الشخص نفسه أمام الكاميرا من البداية إلى النهاية. سجّل الفيديو مرة أخرى","capture.retryMatch.message":"لم نتمكّن من التأكد من أنك أنت. سجّل الفيديو مرة أخرى في إضاءة جيدة ومن دون نظارات","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة الصور…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"تتطلب هذه الخطوة التطبيق","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","consent.termsTitle":"كيف تُستخدم بياناتك","leave.title":"مغادرة التحقق؟","leave.body":"إذا غادرت الآن، فلن يكتمل التحقق.","leave.confirm":"مغادرة","leave.stay":"البقاء","otp.changeNumber":"تغيير الرقم","otp.backToCode":"العودة إلى الرمز","otp.reason_otp_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","reasons.otp_resend_limit":"تم بلوغ الحد الأقصى لرموز التحقق في هذه الجلسة","common.back":"رجوع","capture.assisted.heading":"صوّر وجه الشخص","returning.heading":"أكّد أنك أنت","capture.checkingTitle":"جارٍ التحقق من هويتك…","method.heading":"كيف تريد التحقق من هويتك؟","sandbox.otpHint":"جلسة اختبار: لم يُرسَل أي شيء. أدخل الرمز {code}.","sandbox.skipCapture":"التخطي باستخدام بيانات الاختبار","app.sandboxBadge":"جلسة اختبار","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.codeInvalid":"أدخل الرمز المكوّن من 6 أرقام","doc.countryTitle":"اختر البلد المُصدِر","doc.countryLabel":"بلد الإصدار","doc.countrySearch":"ابحث عن بلد","doc.noCountryMatch":"لا يوجد بلد يطابق بحثك","doc.type.carte_identite":"بطاقة الهوية","doc.type.residence_permit":"بطاقة الإقامة","doc.type.passport":"جواز السفر","doc.showSide":"اعرض أحد وجهي البطاقة","doc.showPage":"اعرض صفحة الصورة","doc.flip":"اقلب البطاقة","doc.sameFace":"الوجه نفسه · اقلب البطاقة","doc.reaskRecto":"اعرض الوجه الأمامي مرة أخرى","doc.reread":"تعذّرت قراءة هذا الوجه · ثبّت البطاقة في إضاءة جيدة","doc.photoTaken":"تم التقاط الصورة","doc.frontCaptured":"تم التقاط الوجه الأمامي","doc.backCaptured":"تم التقاط الوجه الخلفي","doc.pageCaptured":"تم التقاط الصفحة","doc.progressFront":"الأمام","doc.progressBack":"الخلف","doc.progressPage":"صفحة الصورة","doc.shutter":"التقط الصورة","doc.torchOn":"شغّل الضوء","doc.torchOff":"أطفئ الضوء","result.platform_unsupported":"يتطلب هذا التحقق تطبيقًا على الهاتف.","unsupported.title":"يلزم التحديث","unsupported.description":"تتطلب هذه الخطوة إصدارًا أحدث من هذه الصفحة. تواصل مع {org}.","shell.subtitle":"التحقق من الهوية","shell.subtitleHuman":"التحقق البشري","shell.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","native.face.humanIntroTitle":"أكّد أنك شخص حقيقي","native.face.humanIntroLead":"لقطة قصيرة واحدة: انظر إلى الشاشة فقط.","native.doc.holdIt":"احتفظ بوثيقتك في متناول يدك.","native.doc.changeCountry":"تغيير البلد","native.result.review":"سيراجع شخص عملية التحقق الخاصة بك. ستتواصل معك {org}.","native.result.rejected":"لم تؤكد عمليات التحقق هويتك. تواصل مع {org} إذا كنت تعتقد أن هذا خطأ.","native.result.expired":"اطلب رابطًا جديدًا من {org}.","native.result.copied":"تم النسخ","native.result.back":"العودة إلى {org}","native.result.verified":"اكتمل التحقق. يمكنك العودة إلى {org}.","native.result.inconclusive":"لم تكن الصور واضحة بما يكفي لاتخاذ قرار. اطلب رابطًا جديدًا من {org}، وحاول في إضاءة جيدة مع إمساك الهاتف بشكل مستقيم.","native.result.unavailable":"كانت خدمتنا غير متاحة عند محاولتك. اطلب رابطًا جديدًا من {org}.","native.result.policy":"لا يمكن التحقق منك لدى {org} بهذه الوثيقة أو من هذا الموقع."};var h={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","capture.modeSwitch.toSelfPhoto":"I take the photo myself","capture.modeSwitch.toAssistedLabelPhoto":"Switch to assisted capture: another person holds the phone and takes your photo","capture.modeSwitch.toSelfLabelPhoto":"Switch to self capture: you take your own photo with the front camera","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.sending":"Sending your code by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","otp.reason_payment_method_required":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_spend_cap_reached":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.reason_insufficient_balance":"This verification method is not available right now. Choose another way to verify if one is offered.","otp.phonePlaceholderGeneric":"Type your phone number without the prefix","otp.countryLabel":"Country","otp.phoneLengthError":"Check the number: it should have {digits} digits.","otp.or":"or","otp.otherCountry":"Another country","otp.reason_otp_number_invalid":"This number does not look complete for its country. Check it and try again.","otp.reason_otp_number_not_mobile":"Enter a mobile number. Codes cannot reach a landline.","session.steps.population.title":"Enter your ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","population.reason_id_number_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.reason_registry_record_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_registry_record_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","session.steps.doc.titleRecto":"Photograph the front of your ID document","session.steps.doc.titleVerso":"Photograph the back of your ID document","session.steps.doc.description":"Use good lighting and keep the whole card inside the frame","doc.pickTitle":"Choose your document","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","doc.ageStepUp":"We could not confirm your age from the selfie. Continue with an ID document.","reasons.underage_estimated":"This service is for people who have reached its minimum age.","reasons.starter_credit_claimed":"Your verification already earned a starting credit for another organization. It is given once per person.","reasons.blocked_by_org":"This verification can't continue. Contact the organization that sent you this link.","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Processing your checks","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","handoff.lead.document":"Take the photo of your document with your phone","handoff.lead.portrait":"Take your ID photo with your phone","capture.source.phone":"Continue on my phone","session.processing.age_estimation.title":"Checking your age","session.processing.age_estimation.description":"This takes a few seconds","session.result.review.title":"Under review","session.result.review.description":"A person will check your verification. You will hear from the organization that gave you this link.","session.result.rejected.title":"Identity not verified","session.result.rejected.description":"The checks did not confirm your identity. Contact the organization that sent you this link if you think this is wrong.","session.result.expired.title":"This link has expired","session.result.expired.description":"Ask the organization that sent you this link for a new one.","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","session.result.verified.title":"Your identity is verified","session.result.verified.description":"You are done. You can close this page","session.result.inconclusive.title":"We could not confirm your identity this time","session.result.inconclusive.description":"The captures were not clear enough to decide. Ask the organization that sent you this link for a new one and try in good light, holding the phone upright.","session.result.unavailable.title":"Verification was not available","session.result.unavailable.description":"Our service was unavailable when you tried. Ask the organization that sent you this link for a new one.","session.result.policy.title":"Verification stopped","session.result.policy.description":"The organization that sent you this link cannot verify you with this document or from this location.","session.result.cooldown.title":"Try again later","session.result.cooldown.description":"This device needs a short pause before another verification.","session.result.deviceStop":"We couldn't continue on this device. Try again on another device or browser.","result.referenceLabel":"Reference code","capture.retrySamePerson.message":"The same person needs to be on camera from start to finish. Record the video again","capture.retryMatch.message":"We couldn't confirm it's you. Record the video again in good light, without glasses","common.loading":"Loading your session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photos…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This step needs the app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","consent.termsTitle":"How your data is used","leave.title":"Leave verification?","leave.body":"If you leave now, your verification will not be finished.","leave.confirm":"Leave","leave.stay":"Stay","otp.changeNumber":"Change number","otp.backToCode":"Back to code","otp.reason_otp_resend_limit":"You can't get more codes. Enter the last code you received","reasons.otp_resend_limit":"The maximum number of verification codes for this session was reached","common.back":"Back","capture.assisted.heading":"Film the person's face","returning.heading":"Confirm it's you","capture.checkingTitle":"Checking your identity…","method.heading":"How do you want to verify?","sandbox.otpHint":"Test session: nothing was sent. Enter the code {code}.","sandbox.skipCapture":"Skip with test data","app.sandboxBadge":"Test session","population.recheck.title":"Check your ID number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Choose the issuing country","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you're human","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.review":"A person will check your verification. You will hear from {org}.","native.result.rejected":"The checks did not confirm your identity. Contact {org} if you think this is wrong.","native.result.expired":"Ask {org} for a new link.","native.result.copied":"Copied","native.result.back":"Back to {org}","native.result.verified":"Your verification is complete. You can go back to {org}.","native.result.inconclusive":"The captures were not clear enough to decide. Ask {org} for a new link and try in good light, holding the phone upright.","native.result.unavailable":"Our service was unavailable when you tried. Ask {org} for a new link.","native.result.policy":"{org} cannot verify you with this document or from this location."};var m={"session.title":"Vérifiez votre identité","session.requestedBy":"{orgName} vous demande de vérifier votre identité","returning.requestedBy":"{orgName} vous demande de confirmer qu'il s'agit bien de vous","consent.notice":"En poursuivant la vérification d'identité, vous consentez au traitement de vos données personnelles et biométriques afin de vérifier votre identité.","consent.details":"En savoir plus","consent.terms.intro":"Sekyro AI vérifie votre identité pour le compte de l'organisme qui vous a envoyé ce lien. Avant de commencer, consultez la façon dont vos données sont utilisées.","consent.terms.data":"Pendant la vérification, Sekyro AI recueille les photos de votre pièce d'identité, une courte vidéo selfie, une photo selfie et le numéro de votre pièce d'identité.","consent.terms.processing":"Ces données servent uniquement à vérifier votre identité : votre visage est comparé à la photo de votre document et votre numéro est vérifié auprès des registres de l'autorité émettrice lorsque c'est possible. Certaines étapes peuvent être examinées par un examinateur humain habilité.","consent.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.modeSwitch.toSelfPhoto":"Je prends la photo moi-même","capture.modeSwitch.toAssistedLabelPhoto":"Passer à la capture assistée : une autre personne tient le téléphone et vous prend en photo","capture.modeSwitch.toSelfLabelPhoto":"Passer à la capture seule : vous prenez votre photo avec la caméra avant","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.sending":"Envoi du code par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","otp.reason_payment_method_required":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_spend_cap_reached":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.reason_insufficient_balance":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","otp.phonePlaceholderGeneric":"Saisissez votre numéro sans l'indicatif","otp.countryLabel":"Pays","otp.phoneLengthError":"Vérifiez le numéro : il doit comporter {digits} chiffres.","otp.or":"ou","otp.otherCountry":"Autre pays","otp.reason_otp_number_invalid":"Ce numéro ne semble pas complet pour son pays. Vérifiez-le et réessayez.","otp.reason_otp_number_not_mobile":"Saisissez un numéro de mobile. Les codes ne peuvent pas atteindre une ligne fixe.","session.steps.population.title":"Saisissez votre numéro","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Consultation du registre","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","population.reason_id_number_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.reason_registry_record_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_registry_record_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","session.steps.doc.titleRecto":"Photographiez le recto de votre pièce d'identité","session.steps.doc.titleVerso":"Photographiez le verso de votre pièce d'identité","session.steps.doc.description":"Utilisez un bon éclairage et gardez la carte entière dans le cadre","doc.pickTitle":"Choisissez votre document","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","doc.ageStepUp":"Nous n'avons pas pu confirmer votre âge à partir du selfie. Continuez avec une pièce d'identité.","reasons.underage_estimated":"Ce service est réservé aux personnes qui ont atteint l'âge minimum requis.","reasons.starter_credit_claimed":"Votre vérification a déjà donné un crédit de départ à une autre organisation. Il n’est accordé qu’une fois par personne.","reasons.blocked_by_org":"Cette vérification ne peut pas continuer. Contactez l'organisation qui vous a envoyé ce lien.","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Traitement en cours","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur mobile","handoff.lead.document":"Prenez la photo de votre document avec votre téléphone","handoff.lead.portrait":"Prenez votre photo d'identité avec votre téléphone","capture.source.phone":"Continuer sur mon téléphone","session.processing.age_estimation.title":"Vérification de votre âge","session.processing.age_estimation.description":"Cela prend quelques secondes","session.result.review.title":"En cours d'examen","session.result.review.description":"Une personne va examiner votre vérification. L'organisme qui vous a donné ce lien vous tiendra informé.","session.result.rejected.title":"Identité non vérifiée","session.result.rejected.description":"Les contrôles n'ont pas confirmé votre identité. Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur.","session.result.expired.title":"Ce lien a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui vous a envoyé celui-ci.","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","session.result.verified.title":"Identité vérifiée","session.result.verified.description":"C'est terminé. Vous pouvez fermer cette page","session.result.inconclusive.title":"Nous n'avons pas pu confirmer votre identité cette fois","session.result.inconclusive.description":"Les captures n'étaient pas assez nettes pour décider. Demandez un nouveau lien à l'organisme qui vous a envoyé celui-ci et réessayez dans un endroit bien éclairé, en tenant le téléphone droit.","session.result.unavailable.title":"La vérification n'était pas disponible","session.result.unavailable.description":"Notre service était indisponible au moment de votre essai. Demandez un nouveau lien à l'organisme qui vous a envoyé celui-ci.","session.result.policy.title":"Vérification interrompue","session.result.policy.description":"L'organisme qui vous a envoyé ce lien ne peut pas vous vérifier avec ce document ou depuis cet endroit.","session.result.cooldown.title":"Réessayez plus tard","session.result.cooldown.description":"Cet appareil a besoin d'une courte pause avant une nouvelle vérification.","session.result.deviceStop":"Impossible de continuer sur cet appareil. Réessayez sur un autre appareil ou navigateur.","result.referenceLabel":"Code de référence","capture.retrySamePerson.message":"La même personne doit être devant la caméra du début à la fin. Enregistrez à nouveau la vidéo","capture.retryMatch.message":"Nous n'avons pas pu confirmer qu'il s'agit bien de vous. Enregistrez à nouveau la vidéo dans un endroit bien éclairé, sans lunettes","common.loading":"Chargement…","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification en cours…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison des photos…","portrait.reviewTitle":"Vérification de la photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Il faut l'application","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","consent.termsTitle":"Utilisation de vos données","leave.title":"Quitter la vérification ?","leave.body":"Si vous quittez maintenant, votre vérification ne sera pas terminée.","leave.confirm":"Quitter","leave.stay":"Rester","otp.changeNumber":"Changer de numéro","otp.backToCode":"Retour au code","otp.reason_otp_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","reasons.otp_resend_limit":"Le nombre maximal de codes de vérification pour cette session a été atteint","common.back":"Retour","capture.assisted.heading":"Filmez la personne","returning.heading":"Confirmez que c'est vous","capture.checkingTitle":"Vérification en cours…","method.heading":"Choisissez une méthode","sandbox.otpHint":"Session de test : rien n'a été envoyé. Saisissez le code {code}.","sandbox.skipCapture":"Passer avec des données de test","app.sandboxBadge":"Mode test","population.recheck.title":"Vérifiez votre numéro","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Choisissez le pays","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez votre présence","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.review":"Une personne va examiner votre vérification. {org} vous tiendra informé.","native.result.rejected":"Les contrôles n'ont pas confirmé votre identité. Contactez {org} si vous pensez qu'il s'agit d'une erreur.","native.result.expired":"Demandez un nouveau lien à {org}.","native.result.copied":"Copiée","native.result.back":"Revenir à {org}","native.result.verified":"Votre vérification est terminée. Vous pouvez retourner à {org}.","native.result.inconclusive":"Les captures n'étaient pas assez nettes pour décider. Demandez un nouveau lien à {org} et réessayez dans un endroit bien éclairé, en tenant le téléphone droit.","native.result.unavailable":"Notre service était indisponible au moment de votre essai. Demandez un nouveau lien à {org}.","native.result.policy":"{org} ne peut pas vous vérifier avec ce document ou depuis cet endroit."};import{createContext as y,useContext as _,useMemo as v}from"react";import{jsx as C}from"react/jsx-runtime";var b={en:h,fr:m,ar:l};function k(o,e){return e===void 0?o:o.replace(/\{(\w+)\}/g,(t,r)=>Object.hasOwn(e,r)?String(e[r]):t)}i(k,"formatTemplate");function z(o,e){let t=c(o),r={...d(t),...b[t],...p(o)};if(e!==void 0){for(let n of Object.keys(e)){let a=e[n];typeof a=="string"&&(r[n]=a)}s(r,e)}return r}i(z,"resolveSekyroStrings");var g=y(null);function f(o,e){let t=z(o,e);return{locale:o,strings:t,t:i((r,n)=>k(t[r]??"",n),"t")}}i(f,"build");function q({locale:o,strings:e,children:t}){let r=u(o),n=v(()=>f(o,e),[o,e,r]);return r?C(g.Provider,{value:n,children:t}):null}i(q,"StepI18nProvider");function A(o,e){let t=_(g);return v(()=>t!==null&&o===void 0&&e===void 0?t:f(o??t?.locale??"en",e),[t,o,e])}i(A,"useStepI18n");export{l as a,h as b,m as c,k as d,z as e,q as f,A as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{d as I}from"./chunk-IAZ5UH2B.js";import{a as S}from"./chunk-6QYD5HOU.js";import{a}from"./chunk-2KED7D2Q.js";import{useId as V}from"react";import{jsx as k,jsxs as E}from"react/jsx-runtime";var A=Array.from({length:56},(r,e)=>{let s=e/56*2*Math.PI-Math.PI/2,t=Math.cos(s),i=Math.sin(s);return{id:`tick-${e}`,frac:e/55,x1:150+108*t,y1:150+108*i,x2:150+138*t,y2:150+138*i,style:{transitionDelay:`${e*6}ms`}}});function T(r,e,s,t){return s?"var(--sekyro-color-success)":r?t?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":e<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":e<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}a(T,"tickColor");var w="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";function x({progress:r,phase:e,draining:s=!1}){let t=Math.min(1,Math.max(0,r)),i=Math.round(t*56),n=e==="checking",l=e==="recording",c=e==="frozen",u=n||c,p=n||l||c,y=e==="locked"||p,f=s&&!y;return E("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":e,"data-filled":i,"data-recording":l?"":void 0,"data-draining":f?"":void 0,children:[k("path",{fillRule:"evenodd",d:w,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":u?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),E("g",{className:e==="locked"?"sekyro-capture-settle":void 0,children:[k("g",{className:u?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:A.map((d,_)=>k("line",{x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,stroke:T(_<i,d.frac,y,f),strokeWidth:3,strokeLinecap:"round",style:d.style,className:"sekyro-arc__tick"},d.id))}),k("g",{className:e==="seeking"?"sekyro-capture-breathe":void 0,children:k("circle",{cx:150,cy:150,r:100,fill:"none",stroke:y?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:y?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"})})]})]})}a(x,"CaptureArc");import{Fragment as M,jsx as o,jsxs as m}from"react/jsx-runtime";function ne({videoRef:r,guidanceText:e,guidanceHint:s,guidanceKey:t,progress:i,phase:n,draining:l=!1,stillUrl:c,showChecking:u,operatorText:p=null,voicePrompt:y,overlay:f,reduceMotion:d=!1,modeSwitch:_=null}){let h=I(),b=n==="checking",g=b||n==="frozen",v=g&&u?h("capture.checking"):e,C=y?.(s,v,t);return m("div",{className:d?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[o("video",{ref:r,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),c!==null&&g?o("img",{src:c,alt:h("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,o(x,{progress:i,phase:n,draining:l}),f?.(r),C!=null&&!g?o("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:C}):null,_!==null&&!g?o(H,{view:_,className:"sekyro-stage__corner-end sekyro-stage__mode-switch",kind:"chip"}):null,b&&u?m("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[o(G,{}),h("capture.cameraOff")]}):null,m("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[o("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:v},v),g&&u?o("span",{className:"sekyro-stage__guidance-hint",children:h("capture.checkingHint")}):p!==null&&!g?o("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:p}):null]})]})}a(ne,"CaptureStage");function H({view:r,className:e,kind:s}){let t=V(),i=m(M,{children:[o(D,{}),o("span",{children:r.label})]}),n={onClick:r.onSwitch,"aria-describedby":t,"data-testid":"sekyro-capture-mode-switch","data-mode":r.to};return m(M,{children:[s==="chip"?o(S,{kind:"chip",className:e,...n,children:i}):o("button",{type:"button",className:e,...n,children:i}),o("span",{id:t,className:"sekyro-visually-hidden",children:r.description})]})}a(H,"ModeSwitchChip");function D(){return m("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[o("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"}),o("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),o("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}a(D,"FlipCameraIcon");function G(){return m("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:[o("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"}),o("path",{d:"M3 3l18 18"})]})}a(G,"CameraOffIcon");import{screenRampColourValue as P}from"@sekyro/web";import{useEffect as U,useLayoutEffect as $,useRef as L}from"react";import{createPortal as K}from"react-dom";import{Fragment as X,jsx as N,jsxs as Z}from"react/jsx-runtime";var W=typeof window>"u"?U:$,R="data-sekyro-ramp",O=[["background-color","transparent"],["background-image","none"]];function z(r){let e=[],s=r.ownerDocument;for(let n=r;n!==null&&n!==s.documentElement;n=n.parentElement){if(!(n instanceof HTMLElement)&&!(n instanceof SVGElement))continue;let l=n.style;for(let[c,u]of O){let p=l.getPropertyValue(c),y=l.getPropertyPriority(c);l.setProperty(c,u,"important"),e.push(()=>{p===""?l.removeProperty(c):l.setProperty(c,p,y)})}}let t=s.documentElement,i=t.hasAttribute(R);return t.setAttribute(R,""),i||e.push(()=>t.removeAttribute(R)),()=>{for(let n of e.reverse())n()}}a(z,"clearAncestorBackdrops");function B(r){return{position:"fixed",inset:0,minWidth:"100vw",minHeight:"100lvh",margin:0,padding:0,border:0,zIndex:-1,pointerEvents:"none",backgroundColor:P(r)}}a(B,"washStyle");function Y(r){return{position:"absolute",inset:0,pointerEvents:"none",backgroundColor:P(r)}}a(Y,"coverStyle");function de({colour:r}){let e=L(null),s=r!==null;return W(()=>{let t=e.current?.parentElement;if(!(!s||t===null||t===void 0))return z(t)},[s]),r===null||typeof document>"u"?null:Z(X,{children:[N("div",{ref:e,"aria-hidden":"true","data-testid":"sekyro-screen-ramp-cover","data-colour":r,style:Y(r)}),K(N("div",{"aria-hidden":"true","data-testid":"sekyro-screen-ramp","data-colour":r,style:B(r)}),document.body)]})}a(de,"ScreenRampLayer");export{ne as a,H as b,de as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as b}from"./chunk-WL77LOB3.js";import{d as I}from"./chunk-HRNF3WQA.js";import{a as _,b as P,d as S,p as x,q as C}from"./chunk-RO2EITOC.js";import{a as f}from"./chunk-6QYD5HOU.js";import{a as s}from"./chunk-2KED7D2Q.js";import{useRef as E,useState as k}from"react";var N={"portrait.source.title":"كيف تريد إضافة صورتك الشخصية؟","portrait.source.description":"التقط صورة جديدة بالكاميرا، أو ارفع صورة حديثة من هذا الجهاز.","portrait.source.camera":"التقاط صورة","portrait.source.upload":"رفع صورة","portrait.source.uploadInstead":"رفع صورة بدلًا من ذلك","portrait.upload.title":"ارفع صورتك الشخصية","portrait.upload.hint":"صورة حديثة لوجهك، تنظر فيها مباشرة إلى الكاميرا، أمام جدار فاتح وبلون واحد.","portrait.upload.choose":"اختيار صورة","portrait.upload.unsupported":"اختر صورة بصيغة JPEG أو PNG أو HEIC.","portrait.upload.failed":"تعذّر إرسال هذه الصورة. حاول مرة أخرى.","portrait.review.title":"تحقّق من صورتك المعدّلة","portrait.review.description":"عدّلنا صورتك لتطابق قواعد صور الهوية. لم نغيّر وجهك.","portrait.review.original":"صورتك","portrait.review.fixed":"الصورة المعدّلة","portrait.review.fixesTitle":"ما الذي غيّرناه","portrait.review.accept":"استخدام هذه الصورة","portrait.review.retake":"إعادة الالتقاط","portrait.review.uploadAnother":"رفع صورة أخرى","portrait.fixes.crop":"قُصّت","portrait.fixes.scale":"غُيّر حجمها","portrait.fixes.straighten":"عُدّل ميلها","portrait.fixes.background":"استُبدلت الخلفية","portrait.fixes.exposure":"عُدّل السطوع","portrait.fixes.white_balance":"وُزنت الألوان","reasons.portrait_morph_suspected":"لا يمكن استخدام هذه الصورة. التقط صورة جديدة للشخص.","reasons.portrait_reference_mismatch":"لا تطابق الصورة المرجع. التقط صورة جديدة للشخص.","reasons.portrait_declined_fix":"التقط صورة أخرى أو ارفعها."};var g={"portrait.source.title":"How do you want to add your ID photo?","portrait.source.description":"Take a new photo with the camera, or upload a recent photo from this device.","portrait.source.camera":"Take a photo","portrait.source.upload":"Upload a photo","portrait.source.uploadInstead":"Upload a photo instead","portrait.upload.title":"Upload your ID photo","portrait.upload.hint":"A recent photo of your face, looking straight at the camera, in front of a plain, light wall.","portrait.upload.choose":"Choose a photo","portrait.upload.unsupported":"Choose a JPEG, PNG or HEIC photo.","portrait.upload.failed":"We could not send this photo. Try again.","portrait.review.title":"Check your adjusted photo","portrait.review.description":"We adjusted your photo to meet the ID photo rules. Your face was not changed.","portrait.review.original":"Your photo","portrait.review.fixed":"Adjusted photo","portrait.review.fixesTitle":"What we changed","portrait.review.accept":"Use this photo","portrait.review.retake":"Take another","portrait.review.uploadAnother":"Upload another","portrait.fixes.crop":"Cropped","portrait.fixes.scale":"Resized","portrait.fixes.straighten":"Straightened","portrait.fixes.background":"Background replaced","portrait.fixes.exposure":"Brightness adjusted","portrait.fixes.white_balance":"Colours balanced","reasons.portrait_morph_suspected":"This photo cannot be used. Take a new photo of the person.","reasons.portrait_reference_mismatch":"The photo does not match the reference. Take a new photo of the person.","reasons.portrait_declined_fix":"Take or upload another photo."};var T={"portrait.source.title":"Comment voulez-vous ajouter votre photo d'identité ?","portrait.source.description":"Prenez une nouvelle photo avec la caméra, ou importez une photo récente depuis cet appareil.","portrait.source.camera":"Prendre une photo","portrait.source.upload":"Importer une photo","portrait.source.uploadInstead":"Importer une photo à la place","portrait.upload.title":"Importez votre photo d'identité","portrait.upload.hint":"Une photo récente de votre visage, de face, devant un mur clair et uni.","portrait.upload.choose":"Choisir une photo","portrait.upload.unsupported":"Choisissez une photo JPEG, PNG ou HEIC.","portrait.upload.failed":"Nous n'avons pas pu envoyer cette photo. Réessayez.","portrait.review.title":"Vérifiez votre photo ajustée","portrait.review.description":"Nous avons ajusté votre photo pour qu'elle respecte les règles des photos d'identité. Votre visage n'a pas été modifié.","portrait.review.original":"Votre photo","portrait.review.fixed":"Photo ajustée","portrait.review.fixesTitle":"Ce que nous avons modifié","portrait.review.accept":"Utiliser cette photo","portrait.review.retake":"Reprendre","portrait.review.uploadAnother":"Importer une autre","portrait.fixes.crop":"Recadrée","portrait.fixes.scale":"Redimensionnée","portrait.fixes.straighten":"Redressée","portrait.fixes.background":"Fond remplacé","portrait.fixes.exposure":"Luminosité ajustée","portrait.fixes.white_balance":"Couleurs équilibrées","reasons.portrait_morph_suspected":"Cette photo ne peut pas être utilisée. Prenez une nouvelle photo de la personne.","reasons.portrait_reference_mismatch":"La photo ne correspond pas à la référence. Prenez une nouvelle photo de la personne.","reasons.portrait_declined_fix":"Prenez ou importez une autre photo."};import{jsx as t,jsxs as n}from"react/jsx-runtime";var H={en:g,fr:T,ar:N,es:g,pt:g,de:g},V="image/jpeg,image/png,image/heic,image/heif";function v(r){let o=r.strings,i=H[r.locale];return e=>o[e]??i[e]??""}s(v,"portraitCopy");function R({step:r,i18n:o}){if(r.reason===void 0||r.reason==="portrait_fix_review")return null;let i=v(o)(`reasons.${r.reason}`)||o.t("portrait.retryTitle");return n(x,{tone:"warning",children:[t("span",{children:i}),t("span",{children:C(o,r.attemptsRemaining,r.attemptsExhausted)})]})}s(R,"ReasonNotice");function z({step:r,i18n:o,onCamera:i,onUpload:e}){let a=v(o),p=r.photo?.cameraOnPhone===!0;return t(b,{testId:"sekyro-portrait-source",title:a("portrait.source.title"),lead:a("portrait.source.description"),cameraLabel:p?o.t("capture.source.phone"):a("portrait.source.camera"),onPhone:p,uploadLabel:a("portrait.source.upload"),notice:t(R,{step:r,i18n:o}),onCamera:i,onUpload:e})}s(z,"PortraitSourceView");function A({step:r,i18n:o,onCamera:i}){let e=v(o),a=E(null),[p,h]=k("idle"),u=p==="sending",l=r.photo?.uploadOffered===!0,w=s(async c=>{let y=c.currentTarget.files?.[0];if(c.currentTarget.value="",y!==void 0){h("sending");try{await r.uploadPortrait(y),h("idle")}catch(m){h(m instanceof TypeError&&m.message==="unsupported_file"?"unsupported":"failed")}}},"onFile");return n("section",{className:"sekyro-step","data-testid":"sekyro-portrait-upload-screen",children:[t(P,{title:e("portrait.upload.title"),lead:e("portrait.upload.hint")}),p==="idle"||p==="sending"?t(R,{step:r,i18n:o}):null,p==="unsupported"||p==="failed"?t(x,{tone:"warning",children:t("span",{children:e(p==="unsupported"?"portrait.upload.unsupported":"portrait.upload.failed")})}):null,u?t("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:o.t("portrait.uploading")}):null,t("input",{ref:a,type:"file",accept:V,hidden:!0,"data-testid":"sekyro-portrait-upload","aria-label":e("portrait.upload.title"),onChange:c=>{w(c)}}),n(S,{children:[t(f,{full:!0,onClick:()=>a.current?.click(),disabled:u||!l||r.attemptsExhausted,children:e("portrait.upload.choose")}),i!==void 0?n(f,{full:!0,kind:"ghost",onClick:i,disabled:u,children:[t(_,{name:"camera"}),e("portrait.source.camera")]}):null]})]})}s(A,"PortraitUploadView");function j({step:r,i18n:o,onDeclined:i}){let e=v(o),[a,p]=k(!1),[h,u]=k(!1),l=r.pendingFix;if(l==null)return null;let w=s(async d=>{p(!0),u(!1);try{await r.confirmFix(d),d||i?.()}catch{u(!0)}finally{p(!1)}},"answer"),c=r.photo?.source==="upload"?e("portrait.review.uploadAnother"):e("portrait.review.retake"),y=s(d=>e(`portrait.fixes.${d}`)||d,"fixName"),m=e("portrait.review.original"),U=e("portrait.review.fixed");return n("section",{className:"sekyro-step","data-testid":"sekyro-portrait-review",children:[t(P,{title:e("portrait.review.title"),lead:e("portrait.review.description")}),n("div",{className:"sekyro-portrait-pair",children:[n("figure",{className:"sekyro-portrait-pair__item",children:[t("img",{src:l.originalUrl,alt:m}),t("figcaption",{className:"sekyro-text-muted",children:m})]}),n("figure",{className:"sekyro-portrait-pair__item",children:[t("img",{src:l.fixedUrl,alt:U}),t("figcaption",{className:"sekyro-text-muted",children:U})]})]}),l.fixes.length>0?n("div",{className:"sekyro-stack sekyro-stack--1",children:[t("p",{className:"sekyro-text-body",children:e("portrait.review.fixesTitle")}),t("ul",{className:"sekyro-portrait-fixes","data-testid":"sekyro-portrait-fixes",children:l.fixes.map(d=>t("li",{children:y(d)},d))})]}):null,h?t(x,{tone:"danger",children:t("span",{children:o.t("errors.network_error")})}):null,n(S,{children:[t(f,{full:!0,onClick:()=>{w(!0)},disabled:a,"data-testid":"sekyro-portrait-accept",children:e("portrait.review.accept")}),t(f,{full:!0,kind:"ghost",onClick:()=>{w(!1)},disabled:a,"data-testid":"sekyro-portrait-decline",children:c})]})]})}s(j,"PortraitReviewView");function Q({screen:r,step:o,i18n:i,onCamera:e,onUpload:a,onDeclined:p}){return r==="phone"?t(I,{i18n:i,lead:i.t("handoff.lead.portrait"),refresh:o.refresh,actions:t(f,{kind:"ghost",full:!0,onClick:a,children:v(i)("portrait.source.upload")})}):r==="review"?t(j,{step:o,i18n:i,onDeclined:p}):r==="upload"?t(A,{step:o,i18n:i,...e!==void 0?{onCamera:e}:{}}):t(z,{step:o,i18n:i,onCamera:e??a,onUpload:a})}s(Q,"PortraitScreens");export{v as a,z as b,A as c,j as d,Q as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as u}from"./chunk-2KED7D2Q.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as d,useRef as g,useState as p}from"react";import{jsx as c,jsxs as w}from"react/jsx-runtime";function I(t,e,n){let[o,a]=p(!1),r=g(n);return r.current=n,d(()=>{t&&(a(!0),r.current())},[t,e]),[o,()=>a(!1)]}u(I,"useWrongCode");function S({id:t,value:e,onChange:n,length:o=6,describedBy:a,invalid:r}){let[b,l]=p(!1),[f,k]=p(0);d(()=>{r&&k(s=>s+1)},[r]);let m=g(null);d(()=>{let s=setTimeout(()=>m.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(s)},[]);let y=e.length<o?e.length:-1;return w("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[c("div",{className:`sekyro-otp-row${f>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:o},(s,i)=>c("span",{className:`sekyro-otp-box${i<e.length?" is-filled":""}${b&&i===y?" is-current":""}${r?" is-invalid":""}`,children:e[i]!==void 0?c("span",{className:"sekyro-otp-digit",children:e[i]},e[i]):null},i))},f),c("input",{ref:m,id:t,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":a,"aria-invalid":r||void 0,onFocus:()=>l(!0),onBlur:()=>l(!1),onChange:s=>n(h(s.target.value).replace(/\D/g,"").slice(0,o))})]})}u(S,"CodeInput");import{useEffect as N,useState as C}from"react";function B(t){let[e,n]=C(()=>Date.now());return N(()=>{if(!t)return;let o=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(o)},[t]),e}u(B,"useNow");export{I as a,S as b,B as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as y}from"./chunk-RKO3RGGA.js";import{p as w}from"./chunk-RO2EITOC.js";import{a as d}from"./chunk-6QYD5HOU.js";import{a as t}from"./chunk-2KED7D2Q.js";import{createContext as C,useContext as R,useState as v}from"react";import{lazy as S,Suspense as b,useMemo as x,useState as g}from"react";import{Component as N}from"react";var c=class c extends N{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};t(c,"LoadBoundary");var p=c;import{jsx as r,jsxs as V}from"react/jsx-runtime";var h={load:t(()=>import("./flow-views-WOIS3NTS.js"),"load")};function k({view:n,i18n:e,quiet:o,...a}){let[i,f]=g(0),s=x(()=>S(()=>h.load().then(m=>({default:m[n]}))),[n,i]),u=V(w,{tone:"danger",children:[r("span",{children:e.t("errors.network_error")}),r(d,{kind:"secondary",onClick:()=>f(m=>m+1),children:e.t("common.retry")})]});return r(p,{fallback:u,children:r(b,{fallback:o===!0?null:r("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:e.t("common.loading")}),children:r(s,{...a,i18n:e})})},i)}t(k,"Flow");import{Fragment as F,jsx as l,jsxs as B}from"react/jsx-runtime";var P=C(void 0);function K({i18n:n,lead:e,refresh:o,actions:a}){let i=R(P),[f,s]=v(!1);if(i!==void 0)return l(k,{view:"HandoffView",i18n:n,url:i,lead:e,...o!==void 0?{refresh:o}:{},footer:a});let u=t(()=>{o!==void 0&&(s(!0),o().catch(()=>{}).finally(()=>s(!1)))},"again");return l(y,{tone:"brand",icon:"smartphone",title:n.t("handoff.title"),testId:"sekyro-phone-handoff",actions:B(F,{children:[a,o!==void 0?l(d,{kind:"secondary",full:!0,disabled:f,onClick:u,children:n.t("common.refresh")}):null]}),children:l("p",{children:e})})}t(K,"PhoneHandoff");export{p as a,k as b,P as c,K as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{b as i,d as u,e as f,f as y,g,h as S,i as l,j as p}from"./chunk-6QYD5HOU.js";import{a as s}from"./chunk-2KED7D2Q.js";import{createContext as m,useContext as x,useEffect as L,useState as v}from"react";var d={ar:f,fr:y,en:i};function T(e,t){let n=S(e),r=n===void 0?d[g(e)]:{...d.en,...n};if(t===void 0)return r;let o={...r};for(let a of Object.keys(t)){let c=t[a];typeof c=="string"&&(o[a]=c)}return u(o,t),o}s(T,"resolveStrings");function w(e){let[,t]=v(0),n=l(e);return L(()=>{if(!n)return;let r=!0;return p(e).then(()=>r&&t(o=>o+1)),()=>{r=!1}},[e,n]),!n}s(w,"useLocaleReady");var k=m(e=>i[e]??""),C=k.Provider;function I(){return x(k)}s(I,"useStrings");export{T as a,w as b,C as c,I as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as r,d as i}from"./chunk-RO2EITOC.js";import{s as n}from"./chunk-6QYD5HOU.js";import{a}from"./chunk-2KED7D2Q.js";import{jsx as t,jsxs as s}from"react/jsx-runtime";function g({tone:c,icon:l,busy:d,title:u,titleId:o,children:m,actions:e,live:y,testId:p}){let f=n();return s("section",{className:"sekyro-step sekyro-status",...o!==void 0?{"aria-labelledby":o}:{},...y?{role:"status","aria-live":"polite"}:{},"data-testid":p,children:[s("div",{className:"sekyro-status__body",children:[t("span",{className:`sekyro-tile sekyro-tile--${c}${d?" is-busy":""}`,"aria-hidden":"true",children:t(r,{name:l})}),s("div",{className:"sekyro-heading sekyro-status__text",children:[t("h2",{id:o,ref:f,tabIndex:-1,className:"sekyro-text-body",children:u}),m]})]}),e!=null&&e!==!1?t(i,{children:e}):null]})}a(g,"StatusPage");export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{q as k,r as h,s as M}from"./chunk-6QYD5HOU.js";import{a as t}from"./chunk-2KED7D2Q.js";var m={success:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M8.5 12.5L10.5 14.5L15.5 9.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',pending:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M12 8V12L14.5 14.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',info:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M12 17V11" stroke="currentColor" stroke-linecap="round"/><path d="M12 8H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',timer:'<path d="M3 13A9 9 0 1 0 21 13A9 9 0 1 0 3 13Z" stroke="currentColor"/><path d="M12 9V13L14.5 15.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.5 4.5L7.5 2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.5 4.5L16.5 2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',closeCircle:'<path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M14.5 9.5L9.5 14.5M9.5 9.5L14.5 14.5" stroke="currentColor" stroke-linecap="round"/>',sms:'<path d="M14.6 19.21C14.26 19.41 14.05 19.76 13.63 20.47L13.09 21.39C12.6 22.2 11.4 22.2 10.91 21.39L10.37 20.47C9.95 19.76 9.74 19.41 9.4 19.21C9.07 19.01 8.64 19.01 7.79 18.99C6.53 18.97 5.75 18.89 5.09 18.62C3.86 18.11 2.89 17.14 2.38 15.91C2 14.99 2 13.83 2 11.5V10.5C2 7.23 2 5.59 2.74 4.39C3.15 3.71 3.71 3.15 4.39 2.74C5.59 2 7.23 2 10.5 2H13.5C16.77 2 18.41 2 19.61 2.74C20.29 3.15 20.85 3.71 21.26 4.39C22 5.59 22 7.23 22 10.5V11.5C22 13.83 22 14.99 21.62 15.91C21.11 17.14 20.14 18.11 18.91 18.62C18.25 18.89 17.47 18.97 16.21 18.99C15.36 19.01 14.93 19.01 14.6 19.21Z" stroke="currentColor" stroke-linecap="round"/>',whatsapp:'<path d="M17.47 14.38c-0.3-0.15-1.76-0.87-2.03-0.97c-0.27-0.1-0.47-0.15-0.670.15c-0.20.3-0.770.97-0.94 1.16c-0.170.2-0.350.22-0.640.07c-0.3-0.15-1.25-0.46-2.39-1.48c-0.88-0.79-1.48-1.76-1.65-2.06c-0.17-0.3-0.02-0.460.13-0.61c0.13-0.130.3-0.350.45-0.52s0.2-0.30.3-0.5c0.1-0.20.05-0.37-0.03-0.52s-0.67-1.61-0.92-2.21c-0.24-0.58-0.49-0.5-0.67-0.51a13 13 0 0 0-0.57-0.01c-0.2 0-0.520.07-0.790.37c-0.270.3-1.04 1.02-1.04 2.48c0 1.46 1.06 2.88 1.21 3.07s2.1 3.2 5.08 4.49c0.710.31 1.260.49 1.690.63c0.710.23 1.360.2 1.870.12c0.57-0.09 1.76-0.72 2.01-1.41s0.25-1.290.17-1.41c-0.07-0.12-0.27-0.2-0.57-0.35m-5.42 7.4h0a9.87 9.87 0 0 1-5.03-1.38l-0.36-0.21l-3.740.98l1-3.65l-0.23-0.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88c2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 0.16 5.330.16 11.89c0 2.10.55 4.14 1.59 5.95L0.06 24l6.3-1.65a11.9 11.9 0 0 0 5.68 1.45h0.01c6.55 0 11.89-5.33 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41" fill="currentColor"/>',back:'<path d="M15 5L9 12L15 19" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',warning:'<path d="M5.31 10.76C8.23 5.59 9.69 3 12 3C14.31 3 15.77 5.59 18.69 10.76L19.05 11.41C21.48 15.71 22.69 17.86 21.59 19.43C20.5 21 17.79 21 12.36 21H11.64C6.21 21 3.5 21 2.41 19.43C1.31 17.86 2.52 15.71 4.95 11.41L5.31 10.76Z" stroke="currentColor"/><path d="M12 8V13" stroke="currentColor" stroke-linecap="round"/><path d="M12 16H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',external:'<path d="M9 15L15 9M15 13.5V9H10.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/>'};var d={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'};import{jsx as S}from"react/jsx-runtime";function f({name:r,className:o}){return S("svg",{className:`sekyro-glyph${o?` ${o}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:r in d?d[r]:m[r]}})}t(f,"Icon");import{createContext as a,useContext as l,useEffect as C,useId as x,useLayoutEffect as g,useRef as L,useState as H}from"react";import{jsx as s,jsxs as u}from"react/jsx-runtime";function B({id:r,title:o,lead:e}){let n=M();return u("div",{className:"sekyro-heading",children:[s("h2",{id:r,ref:n,tabIndex:-1,className:"sekyro-text-body",children:o}),e!==void 0?s("p",{className:"sekyro-text-muted",children:e}):null]})}t(B,"StepHeading");var A=a(null),v=typeof window>"u"?C:g;function G({children:r}){let o=l(A),e=x(),n=o?.claim;return v(()=>n?.(e),[n,e]),u("div",{className:"sekyro-actions",children:[r,o!==null&&o.owner===e?o.node:null]})}t(G,"StepActions");var Z=a(()=>{});function P(r){let o=l(Z),e=L(r);e.current=r;let n=r!==null;C(()=>{if(n)return o(()=>e.current?.()),()=>o(null)},[n,o])}t(P,"useFlowBack");var q=a(void 0),z=a(void 0),V=a(()=>{});function D(r){let o=l(V);C(()=>(o(r),()=>o(!1)),[r,o])}t(D,"useImmersive");var b=a(null);function J({onStop:r}){let o=l(b);return o===null?null:s("button",{type:"button",className:"sekyro-lm-upload",disabled:o.busy,"aria-busy":o.busy||void 0,"data-testid":"sekyro-skip-capture",onClick:()=>{r?.(),o.run()},children:o.label})}t(J,"CameraSkip");function Q({template:r,code:o}){let[e,n]=r.split("{code}");return u("span",{"data-testid":"sekyro-test-code-line",children:[e,s("bdi",{dir:"ltr",className:"sekyro-mono sekyro-test-code",children:o}),n]})}t(Q,"TestCodeLine");var I=100;function w({swapKey:r,className:o,children:e}){let[n,y]=H({key:r,node:e}),p=L(e);p.current=e;let c=n.key!==r;return C(()=>{if(!c)return;let N=setTimeout(()=>y({key:r,node:p.current}),I);return()=>clearTimeout(N)},[c,r]),s("div",{className:`${o}${c?" is-leaving":""}`,"aria-hidden":c||void 0,children:c?n.node:e},n.key)}t(w,"Swap");var U=t(({pageKey:r,children:o})=>s(w,{swapKey:r,className:"sekyro-page",children:o}),"PageSwap");import{jsx as i,jsxs as _}from"react/jsx-runtime";var O={info:"info",warning:"warning",danger:"warning"};function s1({tone:r,children:o}){return _(h,{tone:r,children:[i("span",{className:"sekyro-notice__icon","aria-hidden":"true",children:i(f,{name:O[r]})}),i("div",{className:"sekyro-notice__body",children:o})]})}t(s1,"StepNotice");function a1(r,o,e){return e?r.t("common.noAttemptsLeft"):k(r.strings,r.locale,o)}t(a1,"attemptsLine");export{f as a,B as b,A as c,G as d,Z as e,P as f,q as g,z as h,V as i,D as j,b as k,J as l,Q as m,w as n,U as o,s1 as p,a1 as q};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as on,c as an}from"./chunk-EDIXRMTS.js";import{b as sn,c as We}from"./chunk-7MMT5M4E.js";import{a as tn,b as nn,c as rn,d as z}from"./chunk-IAZ5UH2B.js";import{a as F,k as Zt,l as Wt,n as Qt,o as Jt,p as Xt,q as en,r as q,s as Qe}from"./chunk-6QYD5HOU.js";import{a as n}from"./chunk-2KED7D2Q.js";import{useId as vr}from"react";import{Fragment as hr,jsx as M,jsxs as ee}from"react/jsx-runtime";function te({className:e,children:t}){return M("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:e??"sekyro-icon sekyro-icon--sm",children:t})}n(te,"Svg");var yt="M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z";function cn(e){return ee(te,{...e,children:[M("circle",{cx:"12",cy:"12",r:"4"}),M("path",{d:"M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"})]})}n(cn,"SunIcon");function ln(e){return ee(te,{...e,children:[M("circle",{cx:"12",cy:"12",r:"9"}),M("path",{d:"M9 10h.01M15 10h.01M8.8 14.6a4.2 4.2 0 0 0 6.4 0"})]})}n(ln,"FaceUncoveredIcon");function un(e){return ee(te,{...e,children:[M("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"2"}),M("path",{d:"M10.5 18.5h3M2.5 9.5h2.5M19 9.5h2.5"}),M("circle",{cx:"12",cy:"9.5",r:"1.6"})]})}n(un,"PhoneEyeLevelIcon");function dn(e){return ee(te,{...e,children:[M("path",{d:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z"}),M("circle",{cx:"12",cy:"12",r:"2.8"})]})}n(dn,"LookStraightIcon");function pn(e){return ee(te,{...e,children:[M("path",{d:yt}),M("path",{d:"M9 13l2 2 4-4"})]})}n(pn,"CameraCheckIcon");function fn(e){return ee(te,{...e,children:[M("path",{d:yt}),M("path",{d:"M10.2 11.2a1.9 1.9 0 1 1 2.6 1.8c-.5.2-.8.6-.8 1.1v.3M12 16.4h.01"})]})}n(fn,"CameraAskIcon");function mn(e){return ee(te,{...e,children:[M("path",{d:yt}),M("path",{d:"M3 3l18 18"})]})}n(mn,"CameraBlockedIcon");function Ve({off:e,className:t}){return ee(te,{className:t,children:[M("path",{d:"M4.5 9.5v5H8l4 3.5v-12L8 9.5H4.5Z"}),e?M("path",{d:"M4 4l16 16"}):ee(hr,{children:[M("path",{d:"M15.5 9.7a3.6 3.6 0 0 1 0 4.6"}),M("path",{d:"M18 7.6a6.6 6.6 0 0 1 0 8.8"})]})]})}n(Ve,"SpeakerIcon");function yn(e){return M(te,{...e,children:M("path",{d:"M5 12.5l4.5 4.5L19 7.5"})})}n(yn,"CheckIcon");function gn(e){return ee(te,{className:e.className??"sekyro-spinner",children:[M("circle",{cx:"12",cy:"12",r:"9",opacity:"0.25"}),M("path",{d:"M21 12a9 9 0 0 0-9-9"})]})}n(gn,"SpinnerIcon");import{jsx as pe,jsxs as hn}from"react/jsx-runtime";var Je=["light","uncover","eyeLevel","straight"],Cr={light:{key:"capture.tips.light",icon:n(()=>pe(cn,{}),"icon")},uncover:{key:"capture.tips.uncover",icon:n(()=>pe(ln,{}),"icon")},eyeLevel:{key:"capture.tips.eyeLevel",icon:n(()=>pe(un,{}),"icon")},straight:{key:"capture.tips.straight",icon:n(()=>pe(dn,{}),"icon")}};function vn({tips:e}){let t=z(),o=vr();return e.length===0?null:hn("section",{className:"sekyro-tips","aria-labelledby":o,"data-testid":"sekyro-tips",children:[pe("p",{className:"sekyro-tips__title",id:o,children:t("capture.tips.title")}),pe("ul",{className:"sekyro-tips__list",children:e.map(r=>{let s=typeof r=="string"?Cr[r]:void 0,c=typeof r=="string"?r:r.id,i=s!==void 0?s.icon():typeof r=="string"?void 0:r.icon,u=s!==void 0?t(s.key):typeof r=="string"?r:r.text;return hn("li",{className:"sekyro-tips__item",children:[i!=null?pe("span",{className:"sekyro-tips__icon","aria-hidden":"true",children:i}):null,pe("span",{children:u})]},c)})})]})}n(vn,"TipList");import{useEffect as Cn,useId as kr,useRef as br,useState as Sr}from"react";import{jsx as W,jsxs as Xe}from"react/jsx-runtime";var Rr=220;function kn({title:e,description:t,options:o,busy:r,error:s,focus:c,testId:i,look:u="cards",marked:k,onChoose:b}){let y=kr(),w=Qe(),[S,d]=Sr(null),C=br(null);Cn(()=>{s!==null&&d(null)},[s]),Cn(()=>()=>{C.current!==null&&clearTimeout(C.current)},[]);let v=n(l=>{r||S!==null||(d(l),C.current=setTimeout(()=>{C.current=null,d(null),b(l)},Rr))},"choose");return Xe("section",{className:"sekyro-stack sekyro-stack--4 sekyro-choice","aria-labelledby":y,"data-testid":i,children:[Xe("div",{className:u==="cards"?"sekyro-heading":"sekyro-stack sekyro-stack--1",children:[W("h2",{id:y,ref:c?w:void 0,tabIndex:-1,className:"sekyro-text-body",children:e}),t!==void 0&&t!==""?W("p",{className:"sekyro-text-muted",children:t}):null]}),s!==null?W(q,{tone:"danger",children:W("span",{children:s})}):null,u==="buttons"?W("div",{className:"sekyro-stack sekyro-stack--3",children:o.map((l,L)=>W(F,{kind:L===0?"primary":"ghost",full:!0,disabled:r,"aria-busy":r||void 0,onClick:()=>b(l.id),children:l.label},l.id))}):W("div",{className:"sekyro-choices",children:o.map(l=>Xe("button",{type:"button",className:"sekyro-card","aria-pressed":(S??k)===l.id,"aria-busy":r||void 0,disabled:r||S!==null&&S!==l.id,onClick:()=>v(l.id),children:[l.glyph!==void 0?W("span",{className:"sekyro-card__tile",children:l.glyph}):null,Xe("span",{className:"sekyro-card__body",children:[W("span",{className:"sekyro-card__title",children:l.label}),l.sub!==void 0?W("span",{className:"sekyro-card__sub",children:l.sub}):null]}),W("span",{className:"sekyro-radio","aria-hidden":"true"})]},l.id))})]})}n(kn,"ChoiceScreen");var et=["fcv3.no_face","fcv3.come_closer","fcv3.move_back","fcv3.center_face","fcv3.straighten","fcv3.more_light","fcv3.too_bright","fcv3.hold_still","fcv3.steady_camera","fcv3.hold_upright","fcv3.one_face","capture.tips.summary"];function he(e){return e!==null&&et.includes(e)}n(he,"isVoiceKey");import{useCallback as re,useEffect as ve,useLayoutEffect as Lr,useMemo as _r,useRef as we,useState as Oe}from"react";var Vr=n((e,t)=>Object.prototype.hasOwnProperty.call(e,t),"own");function Me(e,t,o){let r;try{if(typeof e=="function")r=e(t,o);else{let s=e[o];r=s!=null&&Vr(s,t)?s[t]:null}}catch{return null}return typeof r=="string"&&r!==""?r:null}n(Me,"resolveClip");var Mr="UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YQAAAAA=",Rn={ar:"ar-SA",fr:"fr-FR",en:"en-US",es:"es-ES",pt:"pt-BR",de:"de-DE"};function ne(){return typeof window<"u"&&"speechSynthesis"in window?window.speechSynthesis:null}n(ne,"synth");function wr(){return ne()!==null&&typeof SpeechSynthesisUtterance=="function"}n(wr,"speechAvailable");function bn(e){return(e.split(/[-_]/)[0]??e).toLowerCase()}n(bn,"baseLang");function Vn(e,t){let o=n(s=>s.replace(/_/g,"-").toLowerCase(),"norm"),r=bn(t);return e.find(s=>o(s.lang)===o(t))??e.find(s=>bn(s.lang)===r)}n(Vn,"pickVoice");function Mn(e){if(!wr())return!1;let t=[];try{t=ne()?.getVoices()??[]}catch{return!0}return t.length===0||Vn(t,e)!==void 0}n(Mn,"speechUsable");function wn(e){let t=ne();return t===null||typeof t.addEventListener!="function"?()=>{}:(t.addEventListener("voiceschanged",e),()=>t.removeEventListener?.("voiceschanged",e))}n(wn,"subscribeVoices");function Ke(e){try{let t=typeof location<"u"?location.href:"http://localhost/",o=new URL(e,t);return`clip:${o.origin}${o.pathname}`}catch{return`clip:${e}`}}n(Ke,"clipIdentity");function Sn(e){e.pause(),e.removeAttribute("src"),e.load()}n(Sn,"release");function Ln(){let e=null,t=null,o=0,r=null,s=[],c=new Map,i=n(()=>{s=ne()?.getVoices()??[]},"loadVoices"),u=!1,k=n(()=>{let d=ne();u||d===null||(u=!0,i(),d.addEventListener?.("voiceschanged",i))},"bindVoices"),b=n(()=>(e??(e=new Audio),e),"element"),y=n((d,C,v)=>{let l=ne();if(l!==null&&d!==""&&typeof SpeechSynthesisUtterance=="function"){k();let L=Vn(s,C);if(s.length===0||L!==void 0){l.cancel();let g=new SpeechSynthesisUtterance(d);g.lang=C,L!==void 0&&(g.voice=L),g.rate=.95,v!==void 0&&(g.onend=g.onerror=v),l.speak(g);return}}v?.()},"speak"),w=n(()=>{o+=1,r=null,e!==null&&(e.pause(),e.currentTime=0),ne()?.cancel()},"stop"),S=n(d=>{for(let C of d){let v=Ke(C);if(c.has(v))continue;let l=new Audio;l.preload="auto",l.src=C,c.set(v,l)}},"warmClips");return{say(d){let C=d.url!==null?Ke(d.url):`tts:${d.lang}:${d.text}`;if(C===r)return;r=C,o+=1;let v=o,l=d.onEnd,L=l!==void 0?()=>{v===o&&l()}:void 0;if(ne()?.cancel(),d.url!==null){let g=b();g.pause(),g.muted=!1,g.src=d.url,g.currentTime=0,g.onended=L??null,g.play()?.catch(V=>{v===o&&V?.name!=="AbortError"&&(d.speech?y(d.text,d.lang,L):L?.())});return}d.speech?y(d.text,d.lang,L):L?.()},unlock({lang:d,speech:C,prefetch:v}){let l=b();if(t===null&&typeof Blob=="function"&&typeof URL.createObjectURL=="function"){let V=Uint8Array.from(atob(Mr),E=>E.charCodeAt(0));t=URL.createObjectURL(new Blob([V],{type:"audio/wav"}))}let L=l.paused===!1&&t!==null&&l.src!==t;t!==null&&!L&&(l.muted=!0,l.onended=null,l.src=t,l.play()?.catch(()=>{}));let g=ne();if(C&&g!==null&&typeof SpeechSynthesisUtterance=="function"){k();let V=new SpeechSynthesisUtterance(" ");V.volume=0,V.lang=d,g.speak(V)}S(v??[])},prefetch:S,stop:w,dispose(){w(),u&&ne()?.removeEventListener?.("voiceschanged",i),u=!1,t!==null&&URL.revokeObjectURL(t),t=null,e!==null&&Sn(e),e=null;for(let d of c.values())Sn(d);c.clear()}}}n(Ln,"createVoicePlayer");var _n="sekyro.voiceGuidance";function xn(e){try{if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t==="1"?!0:t==="0"?!1:null}catch{return null}}n(xn,"readVoicePreference");function In(e,t){try{if(typeof window>"u")return;window.localStorage.setItem(e,t?"1":"0")}catch{}}n(In,"writeVoicePreference");var Ue="capture.tips.summary",xr=typeof window<"u"?Lr:ve,Ir=Object.freeze({});function gt(e,t){let o=new Set,r=[];for(let s of et){let c=s===Ue?null:Me(e,s,t);c===null||o.has(Ke(c))||(o.add(Ke(c)),r.push(c))}return r}n(gt,"resolvedClipUrls");function ht({locale:e,defaultClips:t,options:o}){let r=o===!1,s=r?{}:o??{},c=s.storageKey===void 0?_n:s.storageKey,[i,u]=Oe(s.defaultEnabled??!0),k=we(i),[b,y]=Oe(!1),[w,S]=Oe("none"),[d,C]=Oe(!1),v=we(!1),[l,L]=Oe(0),g=we(null),V=re(()=>(g.current??(g.current=Ln()),g.current),[]),E=Rn[e],T=s.speechFallback,p=T===void 0||T===!0?!0:T===!1?!1:T.includes(e),U=s.clips??t??Ir,H=we(!1),se=we(U);xr(()=>{se.current=U,k.current=i}),ve(()=>{if(r||c===null)return;let h=xn(c);h!==null&&(k.current=h,u(h))},[r,c]),ve(()=>{if(!(r||!p))return wn(()=>L(h=>h+1))},[r,p]);let a=s.clips;ve(()=>{if(r)return;let h=p&&Mn(E);y(gt(U,e).length>0||h),S(a!==void 0&&Me(a,Ue,e)!==null?"partner":Me(U,Ue,e)!==null||h?"default":"none")},[r,U,a,e,p,E,l]),ve(()=>{if(r||!i||!H.current)return;let h=gt(U,e);h.length>0&&V().prefetch(h)},[r,i,U,e,V]),ve(()=>()=>{g.current?.dispose(),g.current=null,H.current=!1},[]);let A=re(h=>{r||(H.current=!0,V().unlock({lang:E,speech:p,...h?{prefetch:gt(se.current,e)}:{}}))},[r,V,E,p,e]),_=re(()=>A(k.current),[A]),B=re(()=>{v.current=!1,C(!1)},[]),N=re(()=>{B(),g.current?.stop()},[B]),ie=re(()=>{v.current&&N()},[N]),ae=re((h,me)=>{if(r)return;if(v.current){N();return}let ce=V();ce.stop(),v.current=!0,C(!0);let x=me?.clip===!1?null:Me(se.current,Ue,e);ce.say({url:x,text:h,lang:E,speech:p,onEnd:B})},[r,N,V,e,E,p,B]),P=re(h=>{r||(h?A(!0):N(),c!==null&&In(c,h),k.current=h,u(h))},[r,A,N,c]),K=re(()=>P(!k.current),[P]),fe=re((h,me)=>{if(r||!i)return;v.current&&B();let ce=Me(se.current,h,e);V().say({url:ce,text:me,lang:E,speech:p})},[r,i,e,V,E,p,B]);return _r(()=>({supported:!r&&b,enabled:!r&&i,setEnabled:P,toggle:K,unlock:_,speakKey:fe,stop:N,summary:r?"none":w,summaryPlaying:d,toggleSummary:ae,stopSummary:ie}),[r,b,i,P,K,_,fe,N,w,d,ae,ie])}n(ht,"useVoiceGuidance");function vt(e,t,o,r){let{speakKey:s,stop:c,enabled:i}=e,u=we(!1);ve(()=>{if(!r||!i){u.current&&c(),u.current=!1;return}u.current=!0,he(t)&&t!==Ue&&o!==""&&s(t,o)},[r,i,t,o,s,c])}n(vt,"useSpeakGuidance");import{isValidElement as io,useCallback as st,useContext as ao,useEffect as oe,useMemo as xe,useRef as ke,useState as sr}from"react";import{useEffect as Er,useRef as Nr}from"react";import{jsx as He,jsxs as Nn}from"react/jsx-runtime";function Pn(e){switch(e){case"multiple_faces":return"one_face";case"capture_back_camera":return"front_camera";case"capture_front_camera":return"back_camera";case"capture_not_upright":return"upright";case"media_unreadable":case"clip_too_short":return"recording";case"device_integrity_failed":return"device";default:return"face"}}n(Pn,"retryCoachingOf");var En={face:{title:"capture.retryCoaching.title",tips:["capture.retryCoaching.light","capture.retryCoaching.eyeLevel","capture.retryCoaching.head"]},one_face:{title:"capture.retryTips.title",tips:["capture.retryOneFace.alone","capture.retryOneFace.screens"]},front_camera:{title:"capture.retryTips.title",tips:["capture.retryFrontCamera.screenSide"]},back_camera:{title:"capture.retryTips.title",tips:["capture.retryBackCamera.backSide","capture.retryBackCamera.circle"]},upright:{title:"capture.retryTips.title",tips:["capture.retryUpright.vertical","capture.retryUpright.untilEnd"]},recording:{title:"capture.retryTips.title",tips:["capture.retryRecording.cameraOn","capture.retryRecording.stay","capture.retryRecording.network"]},device:{title:"capture.retryTips.title",tips:["capture.retryDevice.screenRecording","capture.retryDevice.phone"]}};function An({showCoaching:e,coaching:t="face",attemptsText:o,showRetake:r,onRetake:s}){let c=z(),i=Nr(null);return Er(()=>{r&&i.current?.focus()},[r]),!e&&!r?null:Nn("div",{className:"sekyro-stack sekyro-stack--3","data-testid":"sekyro-captured-panel",children:[e?Nn("div",{className:"sekyro-stack sekyro-stack--1",children:[He("p",{className:"sekyro-text-body",children:c(En[t].title)}),He("ul",{className:"sekyro-coaching",children:En[t].tips.map(u=>He("li",{children:c(u)},u))}),o!==null?He("p",{className:"sekyro-text-muted","data-testid":"sekyro-attempts-remaining",children:o}):null]}):null,r?He(F,{ref:i,className:"sekyro-btn--start",onClick:s,children:c("capture.recordAgain")}):null]})}n(An,"CapturedPanel");function tt(){try{return process.env.NODE_ENV!=="production"}catch{return!1}}n(tt,"isDevBuild");import{createContext as Pr}from"react";var Tn=Pr(null);import{useCallback as Hn,useEffect as Bn,useRef as Le}from"react";import{useEffect as Ar,useState as Tr}from"react";import{jsx as Be,jsxs as Kr}from"react/jsx-runtime";function Kn({state:e}){let t=z(),[o,r]=Tr(!1);Ar(()=>{e!=="unknown"&&r(!0)},[e]);let s=e==="granted"?Be(pn,{}):e==="denied"?Be(mn,{}):Be(fn,{});return Kr("div",{role:o?"status":void 0,className:`sekyro-permission sekyro-permission--${e}`,"data-testid":"sekyro-permission","data-state":e,children:[Be("span",{className:"sekyro-permission__icon","aria-hidden":"true",children:s}),Be("span",{children:t(`capture.permission.${e}`)})]})}n(Kn,"PermissionRow");import{jsx as nt,jsxs as On}from"react/jsx-runtime";function Un({voice:e}){let t=z();if(!e.supported)return null;let o=e.enabled;return On("button",{type:"button",role:"switch","aria-checked":o,className:"sekyro-switch","data-testid":"sekyro-voice-switch",onClick:()=>e.toggle(),children:[On("span",{className:"sekyro-switch__label",children:[nt(Ve,{off:!o}),t("capture.voiceGuidance")]}),nt("span",{className:"sekyro-switch__track","aria-hidden":"true",children:nt("span",{className:"sekyro-switch__thumb",children:o?nt(yn,{className:"sekyro-switch__check"}):null})})]})}n(Un,"VoiceSwitch");import{Fragment as Ur,jsx as D,jsxs as _e}from"react/jsx-runtime";function Gn({assets:e,onRetryAssets:t,permission:o,captureMode:r="self",voice:s,tips:c,summary:i,startLabel:u,startDisabled:k,onStart:b}){let y=z(),w=Le(i?.stop);w.current=i?.stop,Bn(()=>()=>w.current?.(),[]);let S=Le(null),d=Le(null),C=Le(null),v=Le(e),l=Le(!1);Bn(()=>{let U=v.current;if(v.current=e,U===e)return;let H=l.current;e!=="loading"&&(l.current=!1),Or(S.current)&&(e==="failed"?C.current?.focus():H&&d.current?.focus())},[e]);let L=Hn(()=>{l.current=!0,t()},[t]),g=e==="loading",V=g||k,E=Hn(()=>{V||(w.current?.(),b())},[V,b]),T;return e==="failed"?T=_e(q,{tone:"danger",testId:"sekyro-assets-error",children:[D("p",{className:"sekyro-text-body",children:y("fcv2.err.models")}),D(F,{kind:"ghost",ref:C,className:"sekyro-btn--start",onClick:L,"data-testid":"sekyro-assets-retry",children:y("common.retry")})]}):T=_e("div",{className:"sekyro-stack sekyro-stack--1",children:[D(F,{ref:d,full:!0,"data-testid":"sekyro-start","aria-disabled":V?"true":void 0,"aria-busy":g?"true":void 0,onClick:E,children:g?_e(Ur,{children:[D(gn,{}),y("capture.preparing.title")]}):u??y("capture.start")}),g?D("p",{className:"sekyro-text-muted",children:y("capture.preparing.hint")}):null]}),_e("div",{ref:S,className:"sekyro-stack sekyro-stack--4","data-testid":"sekyro-intro","data-assets":e,children:[r==="assisted"?_e("div",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-assisted-intro",children:[D("h2",{className:"sekyro-text-body",children:y("capture.assisted.title")}),D("p",{className:"sekyro-text-muted",children:y("capture.assisted.lead")})]}):null,c!==!1?D(vn,{tips:c}):null,i!==void 0?_e(F,{kind:"ghost",className:"sekyro-btn--start",onClick:i.toggle,"data-testid":"sekyro-tips-listen",children:[D(Ve,{off:!1}),y(i.playing?"capture.tips.stop":"capture.tips.listen")]}):null,D(Kn,{state:o}),D(Un,{voice:s}),D("p",{className:"sekyro-text-muted",children:y("capture.securityNote")}),T,D("p",{role:"status",className:"sekyro-visually-hidden","data-testid":"sekyro-intro-status",children:e==="loading"?y("capture.preparing.title"):e==="ready"?y("capture.ready"):""})]})}n(Gn,"PreCaptureScreen");function Or(e){if(typeof document>"u")return!1;let t=document.activeElement;return t===null||t===document.body||e!==null&&e.contains(t)}n(Or,"focusIsOurs");import{subscribeCameraPermission as Hr}from"@sekyro/web";import{useEffect as Br,useState as Gr}from"react";function Fn(){let[e,t]=Gr({state:"unknown",settled:!1});return Br(()=>Hr(o=>t({state:o,settled:!0})),[]),{permission:e.state,permissionSettled:e.settled}}n(Fn,"useCameraStatus");import{useCallback as Fr,useEffect as Ct,useState as kt}from"react";function qn(e){return jn(e,"mobileRequired")}n(qn,"useMobileRequired");function Dn(e){return jn(e,"returning").required}n(Dn,"useReturning");function jn(e,t){let[o,r]=kt({required:!1,settled:e===void 0});return Ct(()=>{let s=e?.[t];if(e===void 0||typeof s!="function"){r({required:!1,settled:!0});return}let c=!0;return r({required:!1,settled:!1}),Promise.resolve().then(()=>s.call(e)).then(i=>{c&&r({required:i===!0,settled:!0})},()=>{c&&r({required:!1,settled:!0})}),()=>{c=!1}},[e,t]),o}n(jn,"useFlag");function $n(e){let t=n(()=>e?.captureChoice??null,"initialChoice"),[o,r]=kt(()=>({session:"self",choice:t(),settled:e===void 0}));Ct(()=>{let i=e?.captureMode,u=e?.captureChoice??null;if(e===void 0||typeof i!="function"){r({session:"self",choice:u,settled:!0});return}let k=!0;return r({session:"self",choice:u,settled:!1}),Promise.resolve().then(()=>i.call(e)).then(b=>{let y=e.captureChoice??null;k&&r({session:y!==null&&b===y?"choice":b==="assisted"||b==="choice"?b:"self",choice:y,settled:!0})},()=>{k&&r({session:"self",choice:null,settled:!0})}),()=>{k=!1}},[e]);let s=Fr(i=>{e?.chooseCaptureMode?.(i),r(u=>({...u,choice:i}))},[e]);return{mode:o.session==="choice"?o.choice??"self":o.session==="assisted"?"assisted":"self",session:o.session,choice:o.choice,settled:o.settled,choose:s}}n($n,"useCaptureMode");function zn(e){let[t,o]=kt(!1);return Ct(()=>{if(o(!1),e===void 0)return;let r=e.on("busy",()=>o(!0)),s=e.on("result",()=>o(!1));return()=>{r(),s()}},[e]),t}n(zn,"useBusy");import{getLivenessAssetsStatus as qr,preloadLivenessAssets as Dr,subscribeLivenessAssets as jr}from"@sekyro/web";import{useCallback as bt,useEffect as Yn,useRef as Zn,useState as $r,useSyncExternalStore as zr}from"react";var Yr=n(()=>"idle","serverSnapshot");function Wn(e){return Dr(e!==void 0?{assetBaseUrl:e}:{})}n(Wn,"preload");function Qn(e,t=!0){let o=zr(bt(w=>jr(w,e),[e]),()=>qr(e),Yr),[r,s]=$r(null),c=Zn(!1),i=bt(()=>{Wn(e).then(w=>{c.current&&w==="idle"&&s({base:e})})},[e]);Yn(()=>(c.current=!0,i(),()=>{c.current=!1}),[i]);let u=Zn(null);Yn(()=>{if(o!=="idle"){u.current={base:e};return}!t||u.current===null||u.current.base!==e||(u.current=null,i())},[o,e,i,t]);let k=bt(()=>{Wn(e)},[e]);return{gate:r!==null&&r.base===e&&o==="idle"||o==="ready"?"ready":o==="failed"?"failed":"loading",retry:k}}n(Qn,"useLivenessAssets");import{createLivenessCapture as Zr}from"@sekyro/web";import{useCallback as rt,useEffect as Wr,useRef as Ce,useState as j}from"react";var Jn={progress:0,hint:null,faceDetected:!1};function Xn(e){let{videoRef:t,assetBaseUrl:o}=e,s=Ce(e.verification).current,c=Ce(!1);e.verification!==s&&!c.current&&tt()&&(c.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: the `verification` prop changed identity after mount. The first instance stays bound (the camera is not rebuilt); create the verification once (useMemo / useState / outside render) instead of on every render."));let i=Ce(null),[u,k]=j("idle"),[b,y]=j(Jn),[w,S]=j(!1),[d,C]=j(!1),[v,l]=j(null),[L,g]=j(!1),[V,E]=j(null),[T,p]=j(null),[U,H]=j(null),[se,a]=j(null),[A,_]=j(null),[B,N]=j(!1),ie=Ce(null),ae=Ce("idle"),P=Ce(-1),[K,fe]=j(0),h=Ce(e);h.current=e,Wr(()=>{let Y=t.current;if(Y===null)return;let Q={video:Y,...o!==void 0?{assetBaseUrl:o}:{}},I=s!==void 0?s.liveness(Q):Zr(Q);i.current=I;let Ne=n(()=>_(I.facingMode??null),"readFacing");Ne();let Ge=[I.on("state",m=>{m==="mode_switch"?N(!0):m!=="starting"&&m!=="gating"&&N(!1),m==="starting"?(ae.current!=="starting"&&(P.current+=1,fe(Math.max(0,P.current))),p(null),H(null),y(Jn),C(!1),S(!1),l(null),E(null),ie.current=null):m==="gating"&&ae.current==="recording"&&(C(!1),S(!1),l(null),ie.current=null),ae.current=m,Ne(),k(m),h.current.onStateChange?.(m)}),I.on("gate",m=>{let J=ie.current;ie.current=m.progress,S(J!==null&&m.progress<J-.001&&m.progress>0&&m.progress<1),m.progress>=1&&C(!0),y(m)}),I.on("frozen",({previewDataUrl:m})=>l(m)),I.on("profile",({animations:m})=>g(m==="reduced")),I.on("ramp",({colour:m})=>E(m)),I.on("captured",m=>{p(m),a(null),h.current.onCaptured?.(m)}),I.on("error",m=>{H(m);let J=s?.reportCaptureIssue;J!==void 0&&We(ye=>J.call(s,ye),sn("liveness",m,Math.max(0,P.current))),h.current.onError?.(m)}),s?.on("result",m=>{a(m),h.current.onResult?.(m)})];return()=>{for(let m of Ge)m?.();i.current=null,I.destroy()}},[s,t,o]);let me=rt(()=>{i.current?.start()},[]),ce=rt(()=>{i.current?.retry()},[]),x=rt(async()=>{let Y=i.current;return Y===null||typeof Y.canSwitchCaptureMode!="function"?!1:await Y.canSwitchCaptureMode().catch(()=>!1)===!0},[]),Ee=rt(async Y=>{let Q=i.current;if(Q===null||typeof Q.setCaptureMode!="function")return!1;let I=await Q.setCaptureMode(Y).catch(()=>!1)===!0;return I&&_(Q.facingMode??null),I},[]);return{state:u,gate:b,draining:w,gateLocked:d,frozenPreview:v,reduceMotion:L,rampColour:V,artifacts:T,error:U,result:se,facingMode:A,start:me,retry:ce,canSwitchCaptureMode:x,setCaptureMode:Ee,modeRestarted:B,attempt:K}}n(Xn,"useLivenessHandle");import{useCallback as Qr,useEffect as Jr,useState as ot}from"react";var Xr=new Set(["national_number"]);function er(e){if(e==null||!e.available||e.selected!==null)return null;let t=e.options.filter(o=>Xr.has(o));return t.length>0?{...e,options:t}:null}n(er,"pending");function tr(e){let[t,o]=ot(null),[r,s]=ot(e===void 0),[c,i]=ot(!1),[u,k]=ot(!1);Jr(()=>{if(o(null),e===void 0){s(!0);return}let S=!0,d=e.methodChoice;typeof d=="function"?(s(!1),Promise.resolve().then(()=>d.call(e)).then(v=>{S&&o(er(v))},()=>{}).finally(()=>{S&&s(!0)})):s(!0);let C=e.on("method",v=>o(er(v)));return()=>{S=!1,C()}},[e]);let b=Qr(async S=>{if(e===void 0)return!1;i(!0),k(!1);try{return await e.selectMethod(S),o(null),!0}catch{return k(!0),!1}finally{i(!1)}},[e]),y=t!==null&&t.options.length===1?t.options[0]:null;return{choice:t,auto:y==="national_number"&&!u?y:null,settled:r,busy:c,failed:u,select:b}}n(tr,"useMethodChoice");import{useEffect as eo,useMemo as to,useState as no}from"react";var ro=["ar","fr","en"];function oo(e){if(typeof e!="string")return!1;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"&&/^(localhost|127\.0\.0\.1)$/.test(t.hostname)}catch{return!1}}n(oo,"isClipUrl");function so(e){let t=e.clips;if(typeof t!="object"||t===null)return null;let o={};for(let r of ro){let s=t[r];if(!(typeof s!="object"||s===null))for(let[c,i]of Object.entries(s))!he(c)||!oo(i)||((o[r]??(o[r]={}))[c]=i)}return Object.keys(o).length>0?o:null}n(so,"toVoiceClipMap");function nr(e){let[t,o]=no(null);eo(()=>{if(o(null),e===void 0)return;let s=!0,c=n(u=>{if(!s)return;let k=typeof u=="object"&&u!==null&&typeof u.setId=="string"?u:null;o(b=>b?.setId===k?.setId?b:k)},"take");try{typeof e.voiceClips=="function"&&Promise.resolve(e.voiceClips()).then(c,()=>c(null))}catch{c(null)}let i=e.on("view",u=>c(u.voice));return()=>{s=!1,i()}},[e]);let r=to(()=>t!==null?so(t):null,[t]);return e===void 0?null:r}n(nr,"useServerVoiceClips");import{jsx as rr}from"react/jsx-runtime";function or({voice:e}){let t=z();return rr(F,{kind:"chip","aria-pressed":e.enabled,"aria-label":t("capture.voiceGuidance"),"data-testid":"sekyro-voice-toggle",onClick:()=>e.toggle(),children:rr(Ve,{off:!e.enabled,className:"sekyro-icon"})})}n(or,"VoiceChip");import{Fragment as ir,jsx as R,jsxs as Ie}from"react/jsx-runtime";var co=new Set(["abandoned","not_opened","cancelled","superseded"]),lo=800;function uo(e){return e===void 0||e!==!1&&e.length===Je.length&&Je.every(t=>e.includes(t))}n(uo,"isDefaultTips");function po(e){if(e.type==="keydown"&&e.key==="Escape")return!1;let t=globalThis.navigator?.userActivation;return t===void 0?!(e.type==="pointerup"&&e.pointerType==="touch"):t.isActive}n(po,"carriesActivation");function fo(e){return typeof e=="object"&&e!==null&&!io(e)&&"tone"in e&&"text"in e}n(fo,"isNoticeObject");var mo=new Set(["nni_unbound","id_number_unbound","method_required","mobile_required","portrait_required"]);function yo(e){return e==="starting"||e==="gating"||e==="recording"||e==="mode_switch"}n(yo,"isCapturing");function go(e){return e==="captured"||e==="uploading"||e==="checking"}n(go,"isPostCapture");function _i({verification:e,locale:t,dir:o,strings:r,slots:s,autoStart:c=!1,notice:i,startDisabled:u=!1,startLabel:k,tips:b,tipsSummary:y,coach:w,voice:S,onGuidance:d,onCaptured:C,onResult:v,onError:l,onStateChange:L,assetBaseUrl:g,className:V}){let E=nn(t),T=xe(()=>tn(t,r),[t,r,E]),p=xe(()=>f=>T[f]??"",[T]),U=o??(t==="ar"?"rtl":"ltr"),H=ke(null),se=ao(Tn),a=Xn({verification:e,videoRef:H,assetBaseUrl:g,onCaptured:C,onResult:v,onError:l,onStateChange:L}),A=Qn(g,a.state==="idle"&&a.error===null),_=tr(e),B=_.choice!==null,N=qn(e),ie=Dn(e),ae=zn(e),P=Fn(),K=$n(e),fe=K.session==="choice",h=K.mode==="assisted",me=S!==!1&&S?.clips===void 0,ce=nr(me?e:void 0),x=ht({locale:t,defaultClips:ce,options:S}),Ee=h?"environment":"user",Y=K.settled,Q=ke(null),I=ke(!1),Ne=ke(x.unlock);Ne.current=x.unlock,oe(()=>{let f=Q.current;if(f===null)return;let $=["pointerup","touchend","click","keydown"],de=n(()=>{for(let Te of $)f.removeEventListener(Te,Re,!0)},"disarm");function Re(Te){if(I.current){de();return}po(Te)&&(I.current=!0,de(),Ne.current())}n(Re,"onGesture");for(let Te of $)f.addEventListener(Te,Re,{capture:!0,passive:!0});return de},[]);let Ge=st(()=>{I.current||(I.current=!0,x.unlock()),a.start()},[x.unlock,a.start]),m=st(()=>a.start(),[a.start]),J=ke(!1),ye=a.state==="idle"&&a.error===null,St=!B&&!N.required&&(c===!0||c==="when-permitted"&&P.permission==="granted"),Rt=St&&_.settled&&N.settled&&Y,ar=c==="when-permitted"&&!P.permissionSettled&&!J.current,Vt=St&&ye&&!J.current,it=(ar||Vt||!Y)&&A.gate==="ready"?"loading":A.gate;oe(()=>{!Rt||!ye||A.gate!=="ready"||J.current||(J.current=!0,m())},[Rt,ye,A.gate,m]);let cr=ye&&!B&&!N.required&&!(Vt&&A.gate==="ready"),[Mt,wt]=sr(!1),{canSwitchCaptureMode:Lt,setCaptureMode:_t}=a;oe(()=>{if(!K.settled||!fe){wt(!1);return}let f=!0;return Lt().then($=>{f&&wt($)}),()=>{f=!1}},[K.settled,fe,Lt]);let{choose:xt}=K,be=h?"self":"assisted",lr=st(async()=>{await _t(be)&&xt(be)},[_t,xt,be]),It=a.state!=="idle"&&a.facingMode!==null?a.facingMode:Ee;oe(()=>{let f=H.current?.style;It==="user"?f?.removeProperty("transform"):f&&(f.transform="none")},[It]);let Fe=xe(()=>a.artifacts!==null&&typeof URL.createObjectURL=="function"?URL.createObjectURL(a.artifacts.keyframe):null,[a.artifacts]);oe(()=>{if(Fe!==null)return()=>URL.revokeObjectURL(Fe)},[Fe]);let Et=a.frozenPreview??Fe,Se=e!==void 0,O=yo(a.state),le=go(a.state),qe=O||le,Z=a.result,Nt=a.state==="done"&&Z!==null,at=a.state==="recording"&&a.frozenPreview!==null,De=se!==null,Pt=Mt&&O&&!at?{to:be,label:p(be==="assisted"?"capture.modeSwitch.toAssisted":"capture.modeSwitch.toSelf"),description:p(be==="assisted"?"capture.modeSwitch.toAssistedLabel":"capture.modeSwitch.toSelfLabel"),onSwitch:n(()=>{lr()},"onSwitch")}:null,je=a.modeRestarted&&O?p("capture.modeSwitch.restarted"):null,Pe=le||at,At=le?"checking":at?"frozen":a.state==="recording"?"recording":a.gateLocked||a.gate.progress>=1?"locked":a.gate.faceDetected?"aligning":"seeking",$e=O?a.gate.hint:null,ze=a.state==="starting"?"capture.preparing.title":$e===null?null:$e==="center"&&!a.gate.faceDetected?"fcv3.no_face":Zt($e),[ur,Tt]=sr(null);oe(()=>{if(ze!=="fcv3.no_face"){Tt(ze);return}if(!O)return;let f=setTimeout(()=>Tt(ze),lo);return()=>clearTimeout(f)},[ze,O]);let ct=O&&typeof w=="string"&&w!=="",Kt=h&&O?p("capture.assisted.stage"):null,ge=O&&!ct?ur:null,lt=ct?w:ge===null?"":p(ge);vt(x,ge,lt,O);let Ot=ke(d);Ot.current=d,oe(()=>{if(he(ge))try{Ot.current?.(ge)}catch(f){console.error("[@sekyro/react] onGuidance threw:",f)}},[ge]);let Ae=xe(()=>({supported:x.supported,enabled:x.enabled,setEnabled:x.setEnabled,toggle:x.toggle}),[x.supported,x.enabled,x.setEnabled,x.toggle]),ut=s?.voicePrompt,Ut=ut!==void 0,Ht=S===void 0,Bt=ke(!1);oe(()=>{!Ut||!Ht||Bt.current||!tt()||(Bt.current=!0,console.warn("[@sekyro/react] <LivenessCapture>: `slots.voicePrompt` is set and `voice` is undefined, so the component speaks the guidance itself. If your slot plays audio, pass voice={false} or the person hears every hint twice; pass voice={{}} to keep the built-in voice and silence this warning."))},[Ut,Ht]);let dr=ut!==void 0?(f,$,de)=>ut(f,$,de,Ae):x.supported?()=>R(or,{voice:Ae}):void 0,{summary:dt,summaryPlaying:Gt,toggleSummary:Ft,stopSummary:qt}=x,Ye=y!==void 0&&y!=="",Dt=Ye?y:p("capture.tips.summary"),jt=Ye?dt!=="none":dt==="partner"||dt==="default"&&uo(b),pr=xe(()=>jt?{playing:Gt,toggle:n(()=>Ft(Dt,{clip:!Ye}),"toggle"),stop:qt}:void 0,[jt,Gt,Ft,Dt,qt,Ye]),fr=xe(()=>({assets:it,retryAssets:A.retry,permission:P.permission,permissionSettled:P.permissionSettled,captureMode:K.mode,facing:Ee,voice:Ae}),[it,A.retry,P.permission,P.permissionSettled,K.mode,Ee,Ae]),mr=fo(i)?R(q,{tone:i.tone,testId:"sekyro-host-notice",children:R("span",{children:i.text})}):i??null,X=Z!==null&&Z.status==="retry"?Z:null,G=Nt&&Z.status==="unavailable"&&!B&&Z.reasonCode!=="portrait_required"?Z:null,ue=Nt&&(Z.status==="verified"||Z.status==="not_verified"||Z.status==="review")?Z:null,pt=n((f,$)=>{if(f===void 0)return null;if(f==="device_cooldown"){let Re=Xt(t,$);if(Re!==null)return p(Re.key).replace("{time}",Re.time)}let de=Jt(f);return de===null?null:p(de)},"reasonText"),ft=n(f=>{let $=f.retakeHint===void 0?null:Wt(f.retakeHint);return $===null?pt(f.reasonCode):p($)},"retryText"),$t=ue===null?null:pt(ue.reasonCode,ue.retryAfter)??(ue.status==="not_verified"&&ue.reason!==void 0&&co.has(ue.reason)?p("errors.session_expired"):null),yr=G!==null&&G.reasonCode!==void 0&&G.reasonCode!=="nni_unbound"&&G.reasonCode!=="id_number_unbound"&&G.reasonCode!=="method_required"&&G.reasonCode!=="mobile_required"&&!(G.reasonCode==="no_recorder"&&a.artifacts?.degraded==="NO_RECORDER"),Ze=G?.reasonCode,zt=a.attempt;oe(()=>{G===null||Ze===void 0||e?.reportCaptureIssue===void 0||mo.has(Ze)||We(f=>e.reportCaptureIssue?.(f),{check:"liveness",kind:"unavailable",phase:"upload",engineKind:Ze,attempt:Math.min(1e3,zt)})},[G,Ze,zt,e]);let Yt=Qe(),gr=B&&_.auto===null&&!O&&!le&&a.error===null,mt=st(async f=>{await _.select(f)&&a.state==="done"&&a.retry()},[_.select,a.state,a.retry]);return oe(()=>{_.auto!==null&&!_.busy&&!O&&!le&&mt(_.auto)},[_.auto,_.busy,O,le,mt]),R(rn,{value:p,children:Ie("div",{ref:Q,className:V===void 0?"sekyro-capture":`sekyro-capture ${V}`,dir:U,lang:t,"data-testid":"sekyro-liveness-capture","data-state":a.state,children:[s?.header,X!==null&&ft(X)!==null&&!(De&&qe)?R(q,{tone:"warning",role:"status",testId:"sekyro-retry-notice",children:R("span",{children:ft(X)})}):null,je!==null&&!De?R(q,{tone:"info",role:"status",testId:"sekyro-mode-switch-status",children:R("span",{children:je})}):null,ae&&le&&!De?R(q,{tone:"info",role:"status",testId:"sekyro-busy-notice",children:R("span",{children:p("capture.busy")})}):null,N.required&&ye?R(q,{tone:"info",role:"status",testId:"sekyro-mobile-required",children:R("span",{children:p("reasons.mobile_required")})}):null,a.error!==null?s?.errorPanel!==void 0?s.errorPanel(a.error,a.retry):Ie(q,{tone:"danger",testId:"sekyro-error-notice",children:[R("span",{children:p(Qt(a.error))}),a.error.retryable?R(F,{ref:Yt,kind:"ghost",className:"sekyro-btn--start",onClick:a.retry,children:p("common.retry")}):null]}):null,G!==null?Ie(q,{tone:"danger",testId:"sekyro-unavailable-notice",children:[R("span",{children:pt(G.reasonCode)??p(G.reasonCode===void 0?"errors.session_expired":"errors.network_error")}),yr?R(F,{ref:Yt,kind:"ghost",className:"sekyro-btn--start",onClick:a.retry,children:p("capture.recordAgain")}):null]}):null,$t!==null&&ue!==null?R(q,{tone:ue.status==="not_verified"?"danger":"info",testId:"sekyro-result-notice",children:R("span",{children:$t})}):null,R("div",{className:qe?void 0:"sekyro-hidden","data-capture-live":qe?"":void 0,children:De?se({videoRef:H,guidance:Pe&&Se?p("capture.checking"):lt,coached:ct&&!(Pe&&Se),note:Pe?Se?p(ae?"capture.busy":"capture.checkingHint"):null:je??(X!==null?ft(X):Kt),settled:Pe&&Se,progress:a.gate.progress,phase:At,still:Pe?Et:null,live:qe,modeSwitch:Pt,...Mt?{status:je}:{},ramp:a.rampColour===null?null:{colour:a.rampColour}}):R(on,{videoRef:H,guidanceText:lt,guidanceHint:$e,guidanceKey:ge,progress:a.gate.progress,phase:At,draining:a.draining,stillUrl:Et,showChecking:Se,operatorText:Kt,voicePrompt:dr,overlay:f=>Ie(ir,{children:[s?.stageOverlay?.(f),R(an,{colour:a.rampColour})]}),reduceMotion:a.reduceMotion,modeSwitch:Pt})}),gr&&_.choice!==null?R(kn,{title:p("method.title"),description:p("method.description"),options:_.choice.options.map(f=>({id:f,label:p(`method.${f}`)})),busy:_.busy,error:_.failed?p("errors.network_error"):null,focus:a.state==="done",testId:"sekyro-method",look:"buttons",onChoose:f=>{mt(f)}}):null,cr?Ie(ir,{children:[ie&&s?.header===void 0&&s?.intro===void 0?Ie("div",{className:"sekyro-stack sekyro-stack--1",children:[R("h2",{className:"sekyro-text-body",children:p("returning.title")}),R("p",{className:"sekyro-text-muted",children:p("returning.description")})]}):null,mr,s?.intro!==void 0?s.intro(Ge,fr):R(Gn,{assets:it,onRetryAssets:A.retry,permission:P.permission,captureMode:K.mode,voice:Ae,tips:b??Je,summary:pr,startLabel:k,startDisabled:u,onStart:Ge})]}):null,R(An,{showCoaching:X!==null,coaching:Pn(X?.reasonCode),attemptsText:X?.attemptsRemaining!==void 0?en(T,t,X.attemptsRemaining):null,showRetake:X!==null&&!O&&!le||!Se&&a.state==="captured",onRetake:a.retry}),s?.footer]})})}n(_i,"LivenessCapture");export{Pn as a,En as b,tt as c,Tn as d,Je as e,kn as f,$n as g,et as h,lo as i,_i as j};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as i}from"./chunk-2KED7D2Q.js";import{HostedApiError as o,InvalidInputError as r,OtpInputError as a}from"@sekyro/web";function d(n,t){if(n instanceof r)return n.field==="phone"?"otp.phoneInvalid":n.field==="code"?"otp.codeInvalid":n.kind==="check_digit"?"population.reason_id_number_invalid":"population.invalid";if(n instanceof a&&n.field==="channel")return"otp.reason_otp_channel_unavailable";if(n instanceof o){let e=`errors.${n.code}`;if(Object.hasOwn(t,e))return e}return"errors.network_error"}i(d,"errorKey");export{d as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as n,b as r,d as c}from"./chunk-RO2EITOC.js";import{a as t}from"./chunk-6QYD5HOU.js";import{a as i}from"./chunk-2KED7D2Q.js";import{jsx as e,jsxs as a}from"react/jsx-runtime";function k({title:s,lead:l,cameraLabel:p,uploadLabel:d,notice:m,testId:o,onCamera:u,onUpload:f,onPhone:g=!1}){return a("section",{className:"sekyro-step","data-testid":o,children:[e(r,{title:s,lead:l}),m,a(c,{children:[a(t,{full:!0,onClick:u,"data-testid":`${o}-camera`,children:[e(n,{name:g?"smartphone":"camera"}),p]}),e(t,{full:!0,kind:"ghost",onClick:f,"data-testid":`${o}-upload`,children:d})]})]})}i(k,"PhotoSourceView");export{k as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as Ve}from"./chunk-WL77LOB3.js";import{d as Ke}from"./chunk-HRNF3WQA.js";import"./chunk-RKO3RGGA.js";import{a as $e,b as Re,c as Ue}from"./chunk-7MMT5M4E.js";import{d as Ee}from"./chunk-B4OAK5EF.js";import{a as B,b as ue,d as pe,j as Ie,k as Pe,l as Oe,n as Ae,p as me,q as he}from"./chunk-RO2EITOC.js";import"./chunk-IAZ5UH2B.js";import{a as O,m as _e,o as He}from"./chunk-6QYD5HOU.js";import{a as d}from"./chunk-2KED7D2Q.js";import{useContext as Ze,useEffect as G,useLayoutEffect as pt,useRef as Y,useState as b}from"react";var Be={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 Ge={"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 j={"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 Ye={"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 Fe={"doc.uploadInstead":"رفع صورة بدلًا من ذلك","doc.uploadTitle":"ارفع صورة لوثيقتك","doc.uploadHint":"صورة واضحة للوثيقة كاملة، ملتقطة بكاميرا.","doc.uploadUnsupported":"اختر صورة للوثيقة بصيغة JPEG أو PNG أو HEIC.","doc.uploadFailed":"تعذّر إرسال هذه الصورة. أعد المحاولة.","doc.source.title":"كيف تريد إضافة وثيقتك؟","doc.source.description":"التقط صورة بالكاميرا، أو ارفع صورة للوثيقة من هذا الجهاز.","doc.source.camera":"التقاط صورة","doc.source.upload":"رفع صورة"};var Q={"doc.uploadInstead":"Upload a photo instead","doc.uploadTitle":"Upload a photo of your document","doc.uploadHint":"A clear photo of the whole document, taken with a camera.","doc.uploadUnsupported":"Choose a JPEG, PNG or HEIC photo of the document.","doc.uploadFailed":"We could not send this photo. Try again.","doc.source.title":"How do you want to add your document?","doc.source.description":"Take a photo with the camera, or upload a photo of the document from this device.","doc.source.camera":"Take a photo","doc.source.upload":"Upload a photo"};var We={"doc.uploadInstead":"Téléverser une photo à la place","doc.uploadTitle":"Téléversez une photo de votre document","doc.uploadHint":"Une photo nette du document entier, prise avec un appareil photo.","doc.uploadUnsupported":"Choisissez une photo JPEG, PNG ou HEIC du document.","doc.uploadFailed":"Nous n'avons pas pu envoyer cette photo. Réessayez.","doc.source.title":"Comment voulez-vous ajouter votre document ?","doc.source.description":"Prenez une photo avec la caméra, ou importez une photo du document depuis cet appareil.","doc.source.camera":"Prendre une photo","doc.source.upload":"Importer une photo"};var Xe={"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 Z={"native.doc.introTitle":"Photograph your document","native.doc.introLead":"Your phone's camera will open. The photo is taken by itself as soon as the document is well framed.","native.doc.tip.flat":"Lay the document flat on a dark surface.","native.doc.tip.glare":"Avoid glare from lamps or sunlight.","native.doc.tip.frame":"Keep the whole document in the frame.","native.doc.openCamera":"Open the camera","native.doc.changeDocument":"Change document","native.scan.closer":"Move a little closer","native.scan.farther":"Move back a little","native.scan.glare":"Tilt the card a little","native.scan.dark":"Too dark. Turn on the light.","native.scan.blurry":"Blurry image. Hold the phone still.","native.scan.holdStill":"Hold still","native.scan.reading":"Checking your document…","native.scan.putDown":"You can put your document down.","native.scan.retry":"Let's try that again"};var je={"native.doc.introTitle":"Photographiez votre pièce","native.doc.introLead":"La caméra de votre téléphone va s'ouvrir. La photo est prise automatiquement dès que la pièce est bien cadrée.","native.doc.tip.flat":"Posez la pièce à plat, sur une surface sombre.","native.doc.tip.glare":"Évitez les reflets de lampe ou de soleil.","native.doc.tip.frame":"Gardez toute la pièce dans le cadre.","native.doc.openCamera":"Ouvrir la caméra","native.doc.changeDocument":"Changer de document","native.scan.closer":"Approchez un peu","native.scan.farther":"Reculez un peu","native.scan.glare":"Inclinez un peu la carte","native.scan.dark":"Trop sombre. Allumez la lampe.","native.scan.blurry":"Image floue. Tenez le téléphone immobile.","native.scan.holdStill":"Ne bougez plus","native.scan.reading":"Vérification de votre document…","native.scan.putDown":"Vous pouvez poser votre pièce.","native.scan.retry":"Réessayons"};var ut=["locking","capturing"],fe=class fe{constructor(){this.shown={hint:null,locking:!1,card:null,manualShutter:!1};this.candidate=null;this.candidateSince=0;this.hintShownAt=0;this.lockLostAt=null;this.detectedSince=null;this.lostSince=null;this.shutterSince=null}present(e,o){return this.presentHint(e,o),this.presentLock(e,o),this.presentCard(e,o),this.shutterSince=e.manualShutter?this.shutterSince??o:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&o-this.shutterSince>=1e3},this.shown}presentHint(e,o){let a=e.phase==="framing"&&!(e.hint==="blurry"&&e.card===null)?e.hint:null;if(e.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(a!==this.candidate&&(this.candidate=a,this.candidateSince=o),a===this.shown.hint)return;let r=o-this.candidateSince>=(a===null?0:350),g=this.shown.hint===null||o-this.hintShownAt>=1200;r&&g&&(this.shown={...this.shown,hint:a},this.hintShownAt=o)}presentLock(e,o){if(ut.includes(e.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(e.phase!=="framing"){this.shown={...this.shown,locking:!1},this.lockLostAt=null;return}this.lockLostAt??(this.lockLostAt=o),o-this.lockLostAt>=300&&(this.shown={...this.shown,locking:!1},this.lockLostAt=null)}}presentCard(e,o){let a=e.card;if(a===null||e.phase!=="framing"){if(e.phase!=="framing"){this.shown={...this.shown,card:null},this.detectedSince=null,this.lostSince=null;return}this.detectedSince=null,this.lostSince??(this.lostSince=o),o-this.lostSince>=300&&(this.shown={...this.shown,card:null});return}if(this.lostSince=null,this.detectedSince??(this.detectedSince=o),o-this.detectedSince<250)return;let r=this.shown.card;if(r===null){this.shown={...this.shown,card:{...a}};return}let g=.35;this.shown={...this.shown,card:{fill:r.fill+(a.fill-r.fill)*g,offsetX:r.offsetX+(a.offsetX-r.offsetX)*g,offsetY:r.offsetY+(a.offsetY-r.offsetY)*g}}}};d(fe,"ScanPresenter");var oe=fe;import{Fragment as ge,jsx as n,jsxs as i}from"react/jsx-runtime";var mt={en:Z,fr:je,ar:Xe,es:Z,pt:Z,de:Z},ht=450,Se=d(t=>e=>Ee(t.strings[e]??mt[t.locale][e]??""),"useScanCopy");function ae({name:t}){return n("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:Be[t]}})}d(ae,"ScanGlyph");var ft={en:j,fr:Ye,ar:Ge,es:j,pt:j,de:j},gt={en:Q,fr:We,ar:Fe,es:Q,pt:Q,de:Q},St="image/jpeg,image/png,image/heic,image/heif";function F(t){let e=t.strings,o=d(a=>e[a]??gt[t.locale][a],"text");return{t:d(a=>o(a)??"","t")}}d(F,"uploadCopy");function vt(t,e){return t===null||t.state==="fallback"||t.state==="mismatch"?null:t.state==="searching"?e?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":t.state==="valid"?"dcv3.mrz.valid":t.coach!==void 0?`dcv3.mrz.${t.coach}`:"dcv3.mrz.reading"}d(vt,"mrzInstruction");function ve(t){return t.reason==="unreadable"?"doc.reason_unreadable":t.reason==="tester_document_mismatch"?"reasons.tester_document_mismatch":t.reason!==void 0&&t.reason!=="side_missing"?He(t.reason):null}d(ve,"reasonOf");var yt=new Set(["document_type_not_accepted","tester_document_mismatch"]);function ln({step:t,i18n:e,liveMrz:o,ageLead:a,...r}){let[g,S]=b(!1),L=Y(-1),[h,f]=b("idle"),v=Y(null),k=typeof t.uploadDocument=="function",w=k?t.photo?.source??"camera":"camera",T=k&&w!=="camera"&&t.photo?.uploadOffered===!0,[y,A]=b(null),_=w==="upload"?"upload":w==="choice"?y??t.photo?.pick??"source":"camera",H=h==="sending"?void 0:()=>v.current?.click(),m=d(async $=>{let J=$.currentTarget.files?.[0];if($.currentTarget.value="",J!==void 0){S(!1),f("sending");try{await t.uploadDocument(J),f("idle")}catch(X){f(X instanceof TypeError&&X.message==="unsupported_file"?"unsupported":"failed")}}},"onFile"),q=T?n("input",{ref:v,type:"file",accept:St,hidden:!0,"data-testid":"sekyro-doc-upload","aria-label":F(e).t("doc.uploadTitle"),onChange:$=>{m($)}}):null,C=F(e),W=t.photo?.cameraOnPhone===!0;return _==="camera"&&W?n(Ke,{i18n:e,lead:e.t("handoff.lead.document"),refresh:t.refresh,actions:n(O,{kind:"ghost",full:!0,onClick:()=>A("upload"),children:C.t("doc.source.upload")})}):_==="source"?n(Ve,{testId:"sekyro-doc-source",title:C.t("doc.source.title"),lead:C.t("doc.source.description"),cameraLabel:W?e.t("capture.source.phone"):C.t("doc.source.camera"),onPhone:W,uploadLabel:C.t("doc.source.upload"),notice:n(ye,{step:t,i18n:e}),onCamera:()=>A("camera"),onUpload:()=>A("upload")}):_==="upload"?i(ge,{children:[n(wt,{step:t,i18n:e,ageLead:a===!0,upload:h,offered:T,onPick:()=>v.current?.click(),...w==="choice"?{onCamera:d(()=>A("camera"),"onCamera")}:{},...r}),q]}):i(ge,{children:[g?n(Nt,{step:t,i18n:e,attempts:L,...o!==void 0?{liveMrz:o}:{},...T&&H!==void 0?{onUpload:H}:{},onClose:()=>S(!1)}):n(bt,{step:t,i18n:e,ageLead:a===!0,onOpen:()=>S(!0),upload:h,...T&&H!==void 0?{onUpload:H}:{},...r}),q]})}d(ln,"DocumentCaptureView");function qe({passport:t}){let o=Math.round(228/(t?1.42:1.586));return i("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${o+24}`,"aria-hidden":"true",focusable:"false",children:[n("defs",{children:n("clipPath",{id:"sekyro-card-clip",children:n("rect",{width:228,height:o,rx:"12.5"})})}),n("rect",{className:"sekyro-mark__card",width:228,height:o,rx:"12.5"}),n("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:o*.52,rx:"6"}),[0,1,2].map(a=>n("rect",{className:"sekyro-mark__text",x:"88",y:23+a*o*.12,width:100-a*20,height:"6",rx:"3"},a)),[0,1].map(a=>n("rect",{className:"sekyro-mark__text",x:"17",y:o*.74+a*9,width:194,height:"4",rx:"2"},a)),n("g",{clipPath:"url(#sekyro-card-clip)",children:n("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:n("rect",{x:"-1",width:"2",height:o,className:"sekyro-mark__beam"})})}),n("path",{className:"sekyro-mark__brackets",d:kt(-10,-10,248,o+20,16,30)})]})}d(qe,"ScanMark");function kt(t,e,o,a,r,g){let S=Math.min(r,g*.6);return[[t,e,1,1],[t+o,e,-1,1],[t,e+a,1,-1],[t+o,e+a,-1,-1]].map(([h,f,v,k])=>`M${h} ${f+k*g}V${f+k*S}Q${h} ${f} ${h+v*S} ${f}H${h+v*g}`).join("")}d(kt,"brackets");function bt({step:t,i18n:e,ageLead:o,onOpen:a,onChangeCountry:r,onChangeDocument:g,upload:S,onUpload:L}){let h=Se(e),f=F(e),v=t.documentType==="passport",k=ve(t),w=S==="sending",T=Ze(Pe)?.busy===!0;return i("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[n(qe,{passport:v}),n(ue,{title:h("native.doc.introTitle"),lead:o?e.t("doc.ageStepUp"):h("native.doc.introLead")}),n(ye,{step:t,i18n:e}),t.reason!==void 0&&yt.has(t.reason)?null:i("ul",{className:"sekyro-tiprows",children:[i("li",{children:[n(B,{name:v?"passport":"card"}),h("native.doc.tip.flat")]}),i("li",{children:[n(B,{name:"light"}),h("native.doc.tip.glare")]}),i("li",{children:[n(ae,{name:"image"}),h("native.doc.tip.frame")]})]}),n(Je,{i18n:e,...g!==void 0?{onChangeDocument:g}:{},...r!==void 0?{onChangeCountry:r}:{}}),n(et,{i18n:e,upload:S}),w?n("p",{className:"sekyro-text-muted",role:"status",children:e.t("doc.uploading")}):L!==void 0?n("p",{className:"sekyro-text-muted",children:f.t("doc.uploadHint")}):null,i(pe,{children:[i(O,{full:!0,onClick:a,disabled:w||T,children:[n(B,{name:"camera"}),h("native.doc.openCamera")]}),L!==void 0?i(O,{full:!0,kind:"ghost",onClick:L,children:[n(ae,{name:"image"}),f.t("doc.uploadInstead")]}):null]})]})}d(bt,"DocumentIntro");function ye({step:t,i18n:e}){let o=ve(t);return o===null?null:i(me,{tone:"warning",children:[n("span",{children:e.t(o)}),n("span",{children:he(e,t.attemptsRemaining,t.attemptsExhausted)})]})}d(ye,"ReasonNotice");function Je({i18n:t,onChangeCountry:e,onChangeDocument:o}){let a=Se(t);return o===void 0&&e===void 0?null:i("div",{className:"sekyro-links",children:[o!==void 0?n("button",{type:"button",className:"sekyro-link",onClick:o,children:a("native.doc.changeDocument")}):null,e!==void 0?n("button",{type:"button",className:"sekyro-link",onClick:e,children:t.t("native.doc.changeCountry")}):null]})}d(Je,"ChangeLinks");function et({i18n:t,upload:e}){return e!=="unsupported"&&e!=="failed"?null:n(me,{tone:"warning",children:n("span",{children:F(t).t(e==="unsupported"?"doc.uploadUnsupported":"doc.uploadFailed")})})}d(et,"UploadNotice");function wt({step:t,i18n:e,ageLead:o,upload:a,offered:r,onPick:g,onCamera:S,onChangeCountry:L,onChangeDocument:h}){let f=F(e),v=a==="sending";return i("section",{className:"sekyro-step","data-testid":"sekyro-doc-upload-screen",children:[n(qe,{passport:t.documentType==="passport"}),n(ue,{title:f.t("doc.uploadTitle"),lead:o?e.t("doc.ageStepUp"):f.t("doc.uploadHint")}),o?n("p",{className:"sekyro-text-muted",children:f.t("doc.uploadHint")}):null,n(ye,{step:t,i18n:e}),n(Je,{i18n:e,...h!==void 0?{onChangeDocument:h}:{},...L!==void 0?{onChangeCountry:L}:{}}),n(et,{i18n:e,upload:a}),v?n("p",{className:"sekyro-text-muted",role:"status",children:e.t("doc.uploading")}):null,i(pe,{children:[i(O,{full:!0,onClick:g,disabled:v||!r||t.attemptsExhausted,children:[n(ae,{name:"image"}),f.t("doc.source.upload")]}),S!==void 0?i(O,{full:!0,kind:"ghost",onClick:S,disabled:v,children:[n(B,{name:"camera"}),f.t("doc.source.camera")]}):null]})]})}d(wt,"DocumentUploadScreen");function Qe(t,e,o){let a=t*.88,r=a/o;return{x:(t-a)/2,y:e*.42-r/2,w:a,h:r}}d(Qe,"guideRect");var Ct={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"},Dt=d(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");function Nt({step:t,i18n:e,liveMrz:o,onClose:a,attempts:r,onUpload:g}){let S=Se(e),L=Ze($e),h=Y(L);h.current=L;let f=Y(null),v=Y(null),k=Y(null),[w,T]=b("idle"),[y,A]=b(null),[_,H]=b(null),[m,q]=b({w:0,h:0}),[C,W]=b({hint:null,locking:!1,card:null,manualShutter:!1}),[$,J]=b({}),[X,tt]=b(null),[ke,nt]=b(null),[be,we]=b(0),[Ce,De]=b(null),[ee,Ne]=b(null),R=t.documentType==="passport",te=R?1.42:1.586;Ie(!0),pt(()=>{let c=f.current;if(c===null)return;let u=d(()=>q({w:c.clientWidth,h:c.clientHeight}),"measure");if(u(),typeof ResizeObserver>"u")return;let l=new ResizeObserver(u);return l.observe(c),()=>l.disconnect()},[]);let s=Qe(m.w,m.h,te);G(()=>{m.w===0||m.h===0||k.current?.setGuide?.({viewAspect:m.w/m.h,rect:{x:s.x/m.w,y:s.y/m.h,width:s.w/m.w,height:s.h/m.h}})},[m.w,m.h,s.x,s.y,s.w,s.h]),G(()=>{let c=v.current;if(c===null)return;let u=t.capture({video:c,...o!==void 0?{liveMrz:o}:{}});k.current=u;let l=f.current;if(l!==null&&l.clientWidth>0&&l.clientHeight>0){let p=Qe(l.clientWidth,l.clientHeight,te);u.setGuide?.({viewAspect:l.clientWidth/l.clientHeight,rect:{x:p.x/l.clientWidth,y:p.y/l.clientHeight,width:p.w/l.clientWidth,height:p.h/l.clientHeight}})}let M=new oe,N={scan:null,feedback:null,gate:null},E=d(p=>{N={...N,...p};let x=N.gate?.guide,dt={phase:N.scan?.phase??"framing",hint:N.feedback?.reticle==="coaching"?N.feedback.key:null,card:x?.detected?{fill:x.fill,offsetX:x.offsetX,offsetY:x.offsetY}:null,manualShutter:N.scan?.manualShutter??!1},I=M.present(dt,performance.now());W(P=>P.hint===I.hint&&P.locking===I.locking&&P.manualShutter===I.manualShutter&&P.card?.fill===I.card?.fill&&P.card?.offsetX===I.card?.offsetX&&P.card?.offsetY===I.card?.offsetY?P:I)},"present"),lt=[u.on("state",T),u.on("feedback",p=>E({feedback:p})),u.on("gate",p=>E({gate:p})),u.on("scan",p=>{A(p),E({scan:p})}),u.on("captured",p=>{J(x=>({...x,[Lt(p.side,R,x)]:p.previewDataUrl})),tt(p.previewDataUrl),nt(xt(c))}),u.on("error",p=>{H(p);let x=h.current;x!==null&&Ue(x,Re("document",p,Math.max(0,r.current)))}),u.on("mrz",p=>{p.state==="mismatch"?Ne(p.format??null):De(p)})];return r.current+=1,u.start().catch(()=>{}),()=>{for(let p of lt)p();u.destroy(),k.current=null}},[t.issuer,t.documentType]);let z=y?.phase??"framing",U=z==="reading"||z==="result",re=z==="flipCue"||z==="reaskRecto",K=C.locking,Le=y?.captured.length??0;G(()=>{K&&we(c=>c+1)},[K]),G(()=>{Le>0&&we(c=>c+1)},[Le]);let ot=y?.expected??null;G(()=>{De(null)},[ot]),G(()=>{if(ee===null)return;let c=setTimeout(()=>Ne(null),2e3);return()=>clearTimeout(c)},[ee]);let ze=re||U?null:vt(Ce,R),se=ee!==null?ee==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":ze,at=se===null?null:e.strings[se]??ft[e.locale][se],ie=ve(t),xe=C.hint===null?null:Ct[C.hint]??`dcv2.${C.hint}`,rt=xe??(z==="flipCue"?y?.notice==="same_face"?"doc.sameFace":"doc.flip":z==="reaskRecto"?"doc.reaskRecto":U?"native.scan.reading":z==="locking"||z==="capturing"||K?"native.scan.holdStill":y?.notice==="reread"?ie??"doc.reread":y?.notice==="technical"?"native.scan.retry":y?.notice==="blurry"?"native.scan.blurry":ie??(R?"doc.showPage":"doc.showSide")),ce=at??S(rt),V=C.card,D=s;if(!K&&V!==null&&V.fill>=.45&&V.fill<=1.25&&!Dt()){let c=s.w*V.fill,u=c/te,l=s.x+s.w/2+s.w*Math.max(-.25,Math.min(.25,V.offsetX)),M=s.y+s.h/2+s.h*Math.max(-.25,Math.min(.25,V.offsetY));D={x:l-c/2,y:M-u/2,w:c,h:u}}let ne=s.w*.045,le=28,Te=Math.min(ne,le*.6),st=[[D.x,D.y,1,1],[D.x+D.w,D.y,-1,1],[D.x,D.y+D.h,1,-1],[D.x+D.w,D.y+D.h,-1,-1]],it=K?"is-locked":C.hint!==null?"is-coaching":"",ct=R?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],Me=s.y+s.h+48,de={insetInlineStart:s.x,insetBlockStart:s.y,inlineSize:s.w,blockSize:s.h,borderRadius:ne};return n("section",{className:"sekyro-lm","aria-label":ce,"data-testid":"sekyro-document",children:i("div",{ref:f,className:`sekyro-lm-stage${U?" is-reading":""}${re?" is-flip":""}`,style:{"--sekyro-guide-w":`${s.w}px`},children:[n("video",{ref:v,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:c=>{let u=c.currentTarget,l=u.getBoundingClientRect(),M=Math.max(l.width/(u.videoWidth||1),l.height/(u.videoHeight||1)),N=u.videoWidth*M,E=u.videoHeight*M;N>0&&E>0&&k.current?.focusAt((c.clientX-l.left+(N-l.width)/2)/N,(c.clientY-l.top+(E-l.height)/2)/E)}}),m.w>0?i(ge,{children:[U&&ke!==null?n("img",{className:"sekyro-lm-scene",src:ke,alt:""}):null,U&&X!==null?n("img",{className:"sekyro-lm-frozen",src:X,alt:"",style:de}):null,i("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${m.w} ${m.h}`,"aria-hidden":"true",focusable:"false",children:[i("defs",{children:[i("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[n("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),n("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),i("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[n("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),n("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),n("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${m.w}V${m.h}H0Z${zt(s,ne)}`}),n("rect",{width:m.w,height:Math.max(0,s.y),fill:"url(#sekyro-lm-top)"}),n("rect",{y:s.y+s.h,width:m.w,height:Math.max(0,m.h-s.y-s.h),fill:"url(#sekyro-lm-bottom)"}),n("g",{className:`sekyro-lm-brackets ${it}`,children:st.map(([c,u,l,M],N)=>n("path",{style:{transform:`translate(${c}px, ${u}px) scale(${l}, ${M})`},d:`M0 ${le}V${Te}Q0 0 ${Te} 0H${le}`},N))}),K?n("rect",{className:"sekyro-lm-trace",x:s.x,y:s.y,width:s.w,height:s.h,rx:ne,pathLength:"1",style:{animationDuration:`${ht}ms`}}):null]}),n("div",{className:"sekyro-lm-slot",style:de,"aria-hidden":"true",children:U?n("span",{className:"sekyro-lm-read is-repeating"}):be>0?n("span",{className:"sekyro-lm-read"},be):null})]}):null,ze!==null?n("div",{className:"sekyro-lm-slot",style:de,"aria-hidden":"true",children:n("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${R?" is-page":""}${Ce?.state==="valid"?" is-valid":""}`})}):null,i("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:s.y-64},children:[n("div",{role:"status","aria-live":"polite",children:n(Ae,{swapKey:ce,className:"sekyro-lm-line",children:ce})}),ie!==null&&z==="framing"&&xe===null?n("p",{className:"sekyro-lm-attempts",children:he(e,t.attemptsRemaining,t.attemptsExhausted)}):null]}),U?i("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:Me-12},children:[n("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),S("native.scan.putDown")]}):re?n("div",{className:`sekyro-lm-under sekyro-lm-flip${z==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:Me-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:i("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(te)},children:[n("span",{className:"sekyro-lm-flip-front"}),n("span",{className:"sekyro-lm-flip-back"})]})}):null,i("div",{className:"sekyro-lm-controls",children:[i("div",{className:"sekyro-lm-bar",children:[n("button",{type:"button",className:"sekyro-glass","aria-label":e.t("native.close"),onClick:a,children:n(B,{name:"close"})}),y?.torchAvailable?n("button",{type:"button",className:`sekyro-glass${y.torch?" is-on":""}`,"aria-label":e.t("doc.torchOn"),"aria-pressed":y.torch,onClick:()=>k.current?.setTorch(!y.torch),children:n(ae,{name:"flashlight"})}):null]}),_!==null?i("div",{className:"sekyro-lm-error",role:"alert",children:[n("p",{children:e.t("doc.cameraBlocked")}),n("p",{children:e.t(_.kind==="permission"?"doc.cameraBlockedHint":_e(_.kind))}),n(O,{onClick:()=>{H(null),r.current+=1,k.current?.retry()},children:e.t("doc.retryCamera")})]}):null,C.manualShutter?n("button",{type:"button",className:"sekyro-shutter","aria-label":e.t("doc.shutter"),onClick:()=>k.current?.shutter()}):null,n("ol",{className:"sekyro-lm-tray",children:ct.map(({side:c,label:u})=>{let l=y?.captured.includes(c)??!1;return i("li",{className:l?"is-done":void 0,"aria-current":!l&&(R||y?.expected===c)?"step":void 0,children:[l?i("span",{className:"sekyro-lm-thumb",children:[$[c]!==void 0?n("img",{src:$[c],alt:""}):null,n("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:n("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,S(u)]},c)})}),g!==void 0?n("button",{type:"button",className:"sekyro-lm-upload",onClick:g,children:F(e).t("doc.uploadInstead")}):null,w==="uploading"||w==="checking"?null:n(Oe,{onStop:a})]}),w==="uploading"||w==="checking"?n("span",{className:"sekyro-visually-hidden",role:"status",children:w==="uploading"?e.t("doc.uploading"):S("native.scan.reading")}):null]})})}d(Nt,"LumiereScan");function Lt(t,e,o){return e?"single":t==="recto"||t==="verso"?t:o.recto===void 0?"recto":"verso"}d(Lt,"slotOf");function zt({x:t,y:e,w:o,h:a},r){return`M${t+r} ${e}H${t+o-r}Q${t+o} ${e} ${t+o} ${e+r}V${e+a-r}Q${t+o} ${e+a} ${t+o-r} ${e+a}H${t+r}Q${t} ${e+a} ${t} ${e+a-r}V${e+r}Q${t} ${e} ${t+r} ${e}Z`}d(zt,"roundedRect");function xt(t){let e=Math.round(t.videoWidth/4),o=Math.round(t.videoHeight/4);if(e===0||o===0||typeof document>"u")return null;try{let a=document.createElement("canvas");a.width=e,a.height=o;let r=a.getContext("2d");return r===null?null:(r.drawImage(t,0,0,e,o),a.toDataURL("image/jpeg",.7))}catch{return null}}d(xt,"sceneSnapshot");export{ln as DocumentCaptureView,ht as LOCK_TRACE_MS,St as UPLOAD_ACCEPT,Qe as guideRect,vt as mrzInstruction,Lt as slotOf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as O,b as K,c as z}from"./chunk-GUTF3SPK.js";import{a as Y,b as y,c as q}from"./chunk-55NNQK5P.js";import{a as U}from"./chunk-VRDPGOXM.js";import{d as $}from"./chunk-B4OAK5EF.js";import{d as x,m as W,p as A}from"./chunk-RO2EITOC.js";import"./chunk-IAZ5UH2B.js";import{a as N,s as G}from"./chunk-6QYD5HOU.js";import{a}from"./chunk-2KED7D2Q.js";import{isValidNni as ce,normalizeNni as J}from"@sekyro/web";import{useEffect as R,useId as ue,useRef as Q,useState as S}from"react";import{Fragment as w,jsx as n,jsxs as l}from"react/jsx-runtime";var X={en:y,fr:q,ar:Y,es:y,pt:y,de:y},C=6,me=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),Z=a((e,t)=>{if(e===void 0)return 0;let p=Date.parse(e)-t;return Number.isFinite(p)?Math.max(0,Math.ceil(p/1e3)):0},"secondsUntil"),pe=a(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");function Ae({step:e,i18n:t,className:p,onError:j}){let B=t.strings,o=a((i,s)=>$(B[i]??X[t.locale][i]??"",s),"t"),P=a((i,s)=>{let ae=new Intl.PluralRules(t.locale).select(s),V=`${i}.${ae}`,le=B[V]??X[t.locale][V]??o(`${i}.other`);return $(le,{count:new Intl.NumberFormat(t.locale).format(s)})},"plural"),v=a(i=>e.providerName?o(`eid.${i}`,{provider:e.providerName}):o(`eid.${i}Generic`),"named"),[I,ee]=S(""),[f,h]=S(""),[c,D]=S(!1),[g,u]=S(null),r=e.phase==="code",F=z(r),d=ue(),ne=G(),[ie,oe]=O(e.reason==="eid_code_invalid",e.codeAttemptsRemaining??0,()=>h("")),m=a(async i=>{D(!0),u(null);try{await i()}catch(s){u(U(s,t.strings)),j?.(s)}finally{D(!1)}},"run"),T=Q(!1);R(()=>{!e.identifierBound||r||e.reason!==void 0||T.current||(T.current=!0,m(()=>e.start()))},[e.identifierBound,r,e.reason]),R(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&h("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let H=Q(r);R(()=>{r&&!H.current&&document.getElementById(`${d}-code`)?.focus(),H.current=r},[r,d]);let b=e.reason==="eid_locked",M=Z(e.codeExpiresAt,F),E=r&&e.codeExpiresAt!==void 0&&M===0,_=Z(e.resendAvailableAt,F),L=e.resendsRemaining===0||e.reason==="eid_resend_limit",te=a(i=>{if(i.preventDefault(),r){f.length===C&&!b&&m(()=>e.verify(f));return}if(e.identifierBound){m(()=>e.start());return}let s=J(I);if(e.country==="MR"){if(!/^\d{10}$/.test(s))return u("population.invalid");if(!ce(s))return u("population.reason_nni_invalid")}m(()=>e.start(s))},"onSubmit"),k=e.reason?.startsWith("eid_")?e.reason:void 0,re=l(w,{children:[k!==void 0?l(A,{tone:me.has(k)?"danger":"warning",children:[n("span",{children:o(`reasons.${k}`)}),k==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?n("span",{children:P("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?n(N,{kind:"secondary",disabled:c,onClick:()=>{m(()=>e.useCamera())},children:o("eid.useCamera")}):null]}):null,g!==null?n(A,{tone:"danger",children:n("span",{children:t.t(g)})}):null]}),[de,se]=r?[v("codeTitle"),v("codeHelp")]:[v("identifierTitle"),v(e.identifierBound?"boundDescription":"identifierDescription")];return l("form",{className:`sekyro-step sekyro-otp${p?` ${p}`:""}`,"aria-labelledby":d,onSubmit:te,noValidate:!0,"data-testid":"sekyro-eid",children:[l("div",{className:"sekyro-heading",children:[n("h2",{id:d,ref:ne,tabIndex:-1,className:"sekyro-text-body",children:de}),n("p",{className:"sekyro-text-muted",children:r&&e.context.simulation!==void 0?n(W,{template:t.t("sandbox.otpHint"),code:e.context.simulation.otpCode}):se}),e.afterPass==="continue"?n("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?o("eid.continueHint",{provider:e.providerName}):o("eid.continueHintGeneric")}):null]}),re,r?l(w,{children:[l("div",{className:"sekyro-field",children:[n("label",{className:"sekyro-label",htmlFor:`${d}-code`,children:o("eid.codeLabel")}),b?n("input",{id:`${d}-code`,className:"sekyro-input sekyro-input--number",dir:"ltr",value:f,disabled:!0,readOnly:!0}):n(K,{id:`${d}-code`,value:f,length:C,invalid:ie,onChange:i=>{u(null),i!==""&&oe(),h(i)}}),e.codeExpiresAt!==void 0?n("span",{className:`sekyro-help sekyro-otp-expiry${E?" is-danger":""}`,children:E?o("eid.expired"):o("eid.expiresIn",{time:pe(M)})}):null]}),n("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:E?o("eid.expired"):""}),l(x,{children:[n(N,{type:"submit",full:!0,disabled:c||f.length!==C||b,"aria-busy":c||void 0,children:o("eid.verify")}),n("div",{className:"sekyro-resend-row",children:L?n("p",{className:"sekyro-resend is-waiting",children:o("eid.noResendsLeft")}):n("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:c||_>0||b,onClick:()=>{m(()=>e.resend())},children:_>0?o("eid.resendIn",{seconds:_}):o("eid.resend")})}),!L&&e.resendsRemaining!==void 0?n("p",{className:"sekyro-help sekyro-center",children:P("eid.resendsRemaining",e.resendsRemaining)}):null]})]}):l(w,{children:[e.identifierBound?null:l("div",{className:"sekyro-field",children:[n("label",{className:"sekyro-label",htmlFor:`${d}-nni`,children:t.t("population.label")}),n("input",{id:`${d}-nni`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:t.t("population.placeholder"),value:I,"aria-describedby":`${d}-nni-help`,"aria-invalid":g==="population.invalid"||g==="population.reason_nni_invalid"||void 0,onChange:i=>{u(null),ee(J(i.target.value).replace(/\D/g,"").slice(0,10))}}),n("span",{id:`${d}-nni-help`,className:"sekyro-help",children:t.t("population.helper")})]}),n(x,{children:n(N,{type:"submit",full:!0,disabled:c,"aria-busy":c||void 0,children:o("eid.start")})})]})]})}a(Ae,"EidView");export{Ae as EidView};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as F,b as q,c as J}from"./chunk-GUTF3SPK.js";import{a as U}from"./chunk-VRDPGOXM.js";import{d as B}from"./chunk-B4OAK5EF.js";import{b as Y,d as N,f as K,m as G,p as b,q as j}from"./chunk-RO2EITOC.js";import"./chunk-IAZ5UH2B.js";import{a as k}from"./chunk-6QYD5HOU.js";import{a as l}from"./chunk-2KED7D2Q.js";import{OtpInputError as pe}from"@sekyro/web";import{useEffect as ce,useId as ue,useRef as Oe,useState as p}from"react";var Q={"emailOtp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إلى بريدك الإلكتروني اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"عنوان بريدك الإلكتروني","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا","emailOtp.send":"أرسل لي رمزًا عبر البريد الإلكتروني","emailOtp.verifyTitle":"أدخل الرمز","emailOtp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى بريدك الإلكتروني لإتمام التحقّق من عنوانك","emailOtp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {email}","emailOtp.codeLabel":"رمز التحقّق","emailOtp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الوارد في الرسالة","emailOtp.verify":"تحقّق من الرمز","emailOtp.resend":"إعادة إرسال الرمز","emailOtp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","emailOtp.expiresIn":"ينتهي الرمز خلال {time}","emailOtp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","emailOtp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","emailOtp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","emailOtp.reason_otp_send_failed":"تعذّر إرسال الرسالة. أعد المحاولة بعد قليل","emailOtp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","emailOtp.reason_email_invalid":"لا يمكننا الإرسال إلى هذا العنوان. تحقّق منه أو أدخل عنوانًا آخر","emailOtp.reason_email_disposable":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا","emailOtp.changeEmail":"تغيير البريد الإلكتروني","emailOtp.backToCode":"العودة إلى الرمز","emailOtp.reason_otp_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك"};var O={"emailOtp.reason_otp_daily_cap_reached":"We can't email you a code today. Choose another way to verify if one is offered, or try again later.","emailOtp.sendTitle":"Verify your email address","emailOtp.sendDescription":"We'll email you a one-time code to confirm this address is yours","emailOtp.prefilledNotice":"We'll send a verification code to your registered email address.","emailOtp.emailLabel":"Email address","emailOtp.emailHelper":"We'll send a one-time code to this address","emailOtp.emailPlaceholder":"Your email address","emailOtp.emailInvalid":"Enter a valid email address","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the code","emailOtp.verifyDescription":"Type the 6-digit code we emailed you to finish verifying your address","emailOtp.sentTo":"We sent a 6-digit code to {email}","emailOtp.codeLabel":"Verification code","emailOtp.codeHelper":"Enter the 6-digit code from the email","emailOtp.verify":"Verify code","emailOtp.resend":"Resend code","emailOtp.resendIn":"Resend code in {seconds}s","emailOtp.expiresIn":"Code expires in {time}","emailOtp.expired":"That code has expired. Resend a new one","emailOtp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","emailOtp.reason_otp_expired":"That code has expired. Resend a new code to continue","emailOtp.reason_otp_send_failed":"We couldn't send the email. Try again in a moment","emailOtp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","emailOtp.reason_email_invalid":"We can't send to this address. Check it or enter another one","emailOtp.reason_email_disposable":"Use a permanent email address, not a temporary one","emailOtp.changeEmail":"Change email","emailOtp.backToCode":"Back to code","emailOtp.reason_otp_resend_limit":"You can't get more codes. Enter the last code you received"};var X={"emailOtp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code par e-mail aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","emailOtp.sendTitle":"Vérifiez votre e-mail","emailOtp.sendDescription":"Nous vous enverrons par e-mail un code à usage unique pour confirmer que cette adresse vous appartient","emailOtp.prefilledNotice":"Nous enverrons un code de vérification à votre adresse e-mail enregistrée.","emailOtp.emailLabel":"Adresse e-mail","emailOtp.emailHelper":"Nous enverrons un code à usage unique à cette adresse","emailOtp.emailPlaceholder":"Votre adresse e-mail","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code","emailOtp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé par e-mail pour finaliser la vérification de votre adresse","emailOtp.sentTo":"Nous avons envoyé un code à 6 chiffres à {email}","emailOtp.codeLabel":"Code de vérification","emailOtp.codeHelper":"Saisissez le code à 6 chiffres reçu par e-mail","emailOtp.verify":"Vérifier le code","emailOtp.resend":"Renvoyer le code","emailOtp.resendIn":"Renvoyer le code dans {seconds} s","emailOtp.expiresIn":"Le code expire dans {time}","emailOtp.expired":"Ce code a expiré. Renvoyez-en un nouveau","emailOtp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","emailOtp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","emailOtp.reason_otp_send_failed":"Nous n'avons pas pu envoyer l'e-mail. Réessayez dans un instant","emailOtp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","emailOtp.reason_email_invalid":"Nous ne pouvons pas envoyer à cette adresse. Vérifiez-la ou saisissez-en une autre","emailOtp.reason_email_disposable":"Utilisez une adresse e-mail permanente, pas une adresse temporaire","emailOtp.changeEmail":"Changer d'adresse e-mail","emailOtp.backToCode":"Retour au code","emailOtp.reason_otp_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu"};import{Fragment as C,jsx as a,jsxs as o}from"react/jsx-runtime";var fe={en:O,fr:X,ar:Q,es:O,pt:O,de:O},Z=l((e,r,f)=>{if(e===void 0)return 0;let y=Date.parse(e)-r;return Number.isFinite(y)?Math.min(f,Math.max(0,Math.ceil(y/1e3))):0},"secondsUntil"),ye=600,_e=60,ve=l(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),ee=new Set(["otp_expired","otp_send_failed","otp_rate_limited","otp_resend_limit","email_invalid","email_disposable","otp_daily_cap_reached"]);function Ae({step:e,i18n:r,className:f,defaultEmail:y="",onError:ae}){let i=l((t,s)=>B(r.strings[t]??fe[r.locale][t],s),"t"),[x,ie]=p(y),[_,T]=p(""),[n,z]=p(!1),[w,I]=p(null),[g,c]=p(!1),[R,te]=p(null),u=Oe(null),v=e.phase==="verify",d=v&&!g,V=J(v),m=ue(),[se,oe]=F(e.reason==="otp_mismatch",e.attemptsRemaining,()=>T("")),A=v?e.codeExpiresAt??"sent":null;ce(()=>{A!==null&&(c(!1),u.current!==null&&!ee.has(e.reason??"")&&te(u.current),u.current=null)},[A]);let L=l(async t=>{z(!0),I(null);try{await t()}catch(s){I(s instanceof pe&&s.field==="email"?i("emailOtp.emailInvalid"):r.t(U(s,r.strings))),ae?.(s)}finally{z(!1)}},"run"),D=l(t=>{let s=e.needsEmail?t?R:x.trim():null;u.current=s,L(async()=>{try{await e.send(s!==null?{email:s}:{})}catch(de){throw u.current=null,de}})},"send"),$=l(t=>{L(()=>e.verify(t))},"submitCode"),ne=l(t=>{t.preventDefault(),d?$(_):D(!1)},"onSubmit"),S=Z(e.codeExpiresAt,V,ye),E=Z(e.resendAvailableAt,V,_e),h=d&&e.codeExpiresAt!==void 0&&S===0,P=e.needsEmail&&!e.attemptsExhausted,W=v&&(e.codeExpiresAt===void 0||S>0),H=d&&P?()=>c(!0):g&&W?()=>c(!1):null;K(H===null?null:n?()=>{}:H);let[le,re]=i("emailOtp.sentTo").split("{email}"),M=e.context.simulation?.otpCode,me=e.reason==="otp_mismatch"?o(b,{tone:"danger",children:[a("span",{children:i("emailOtp.reason_otp_mismatch")}),a("span",{children:j(r,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&ee.has(e.reason)?a(b,{tone:"warning",children:a("span",{children:i(`emailOtp.reason_${e.reason}`)})}):null;return o("form",{className:`sekyro-step sekyro-otp${f?` ${f}`:""}`,"aria-labelledby":m,onSubmit:ne,noValidate:!0,children:[a(Y,{id:m,title:i(d?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:d&&M!==void 0?a(G,{template:r.t("sandbox.otpHint"),code:M}):d?o(C,{children:[le,a("bdi",{dir:"ltr",className:"sekyro-mono",children:R??e.sentToMasked}),re]}):i("emailOtp.sendDescription")}),me,w!==null?a(b,{tone:"danger",children:a("span",{children:w})}):null,d?o(C,{children:[o("div",{className:"sekyro-field",children:[a("label",{className:"sekyro-label",htmlFor:`${m}-code`,children:i("emailOtp.codeLabel")}),a(q,{id:`${m}-code`,value:_,invalid:se,onChange:t=>{t!==""&&oe(),T(t),t.length===6&&_.length!==6&&!n&&!e.attemptsExhausted&&$(t)}}),a("span",{className:`sekyro-help sekyro-otp-expiry${h?" is-danger":""}`,"aria-hidden":!h||void 0,children:h?i("emailOtp.expired"):i("emailOtp.expiresIn",{time:ve(S)})})]}),a("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:h?i("emailOtp.expired"):""}),o(N,{children:[a(k,{type:"submit",full:!0,disabled:n||_.length!==6,"aria-busy":n||void 0,children:i("emailOtp.verify")}),o("div",{className:"sekyro-resend-row",children:[a("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:n||E>0,onClick:()=>D(!0),children:E>0?i("emailOtp.resendIn",{seconds:E}):i("emailOtp.resend")}),P?a("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:n,onClick:()=>c(!0),"data-testid":"sekyro-otp-change",children:i("emailOtp.changeEmail")}):null]})]})]}):o(C,{children:[e.needsEmail?o("div",{className:"sekyro-field",children:[a("label",{className:"sekyro-label",htmlFor:`${m}-email`,children:i("emailOtp.emailLabel")}),a("input",{id:`${m}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:i("emailOtp.emailPlaceholder"),value:x,"aria-describedby":`${m}-email-help`,onChange:t=>ie(t.target.value)}),a("span",{id:`${m}-email-help`,className:"sekyro-help",children:i("emailOtp.emailHelper")})]}):a("p",{className:"sekyro-text-muted",children:i("emailOtp.prefilledNotice")}),o(N,{children:[a(k,{type:"submit",full:!0,disabled:n,"aria-busy":n||void 0,children:i("emailOtp.send")}),g&&W?a("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:n,onClick:()=>c(!1),"data-testid":"sekyro-otp-back-to-code",children:i("emailOtp.backToCode")}):null]})]})]})}l(Ae,"EmailOtpView");export{Ae as EmailOtpView};
|