@sekyro/react 0.1.0-rc.16 → 0.1.0-rc.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/dist/{chunk-IUQTOOBI.js → chunk-25KWDPLY.js} +1 -1
- package/dist/chunk-55NNQK5P.js +2 -0
- package/dist/chunk-6I7GU4FS.js +2 -0
- package/dist/chunk-A6UYUVEG.js +2 -0
- package/dist/chunk-DY5WQVPE.js +2 -0
- package/dist/chunk-GUTF3SPK.js +2 -0
- package/dist/chunk-JT7YHK7F.js +2 -0
- package/dist/chunk-LPGHMDD4.js +2 -0
- package/dist/chunk-NV7HZJM4.js +2 -0
- package/dist/chunk-T3PAN4NN.js +2 -0
- package/dist/chunk-XTQARDSJ.js +2 -0
- package/dist/chunk-YVNQ3UUH.js +2 -0
- package/dist/{chunk-IT66PZDO.js → chunk-Z7US4CLZ.js} +1 -1
- package/dist/document-capture-view-WDGHEAUI.js +2 -0
- package/dist/eid-view-HQLNWM6A.js +2 -0
- package/dist/email-otp-view-LCIDGNZT.js +2 -0
- package/dist/flow-views-K3HXMKPU.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/overlay-de-YQA44XTY.js +2 -0
- package/dist/overlay-es-6KRUPYG4.js +2 -0
- package/dist/overlay-pt-QEAE4TDI.js +2 -0
- package/dist/portrait-capture-view-I7I6FJQO.js +2 -0
- package/dist/portrait-review-view-A5HGZ7ZN.js +2 -0
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +66 -2
- package/dist/verification/index.d.ts +66 -2
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +210 -70
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-5TOBG5R2.js +0 -2
- package/dist/chunk-EZ5TVL6P.js +0 -2
- package/dist/chunk-FNBG3472.js +0 -2
- package/dist/chunk-GGTRTUW3.js +0 -2
- package/dist/chunk-H2KIOYQU.js +0 -2
- package/dist/chunk-KHBM3P4C.js +0 -2
- package/dist/chunk-NXVTUTKS.js +0 -2
- package/dist/chunk-OUG465K6.js +0 -2
- package/dist/chunk-PYAJMHZH.js +0 -2
- package/dist/chunk-XDPCJAYO.js +0 -2
- package/dist/chunk-YY76AMUA.js +0 -2
- package/dist/document-capture-view-PUGWMQAP.js +0 -2
- package/dist/eid-view-IMKKBPQV.js +0 -2
- package/dist/email-otp-view-YLMRRLC3.js +0 -2
- package/dist/flow-views-HFQJ45NS.js +0 -2
- package/dist/overlay-de-ZICWH4MW.js +0 -2
- package/dist/overlay-es-2ETCIRV4.js +0 -2
- package/dist/overlay-pt-2DX57E2U.js +0 -2
- package/dist/portrait-capture-view-M5OLPMMO.js +0 -2
package/dist/chunk-EZ5TVL6P.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as u}from"./chunk-2KED7D2Q.js";import{normalizeNni as h}from"@sekyro/web";import{useEffect as c,useRef as b,useState as p}from"react";import{jsx as r,jsxs as N}from"react/jsx-runtime";function I({id:l,value:e,onChange:m,length:n=6,describedBy:f,invalid:o}){let[g,i]=p(!1),[a,k]=p(0);c(()=>{o&&k(t=>t+1)},[o]);let d=b(null);c(()=>{let t=setTimeout(()=>d.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(t)},[]);let y=e.length<n?e.length:-1;return N("div",{className:"sekyro-otp-boxes",dir:"ltr",children:[r("div",{className:`sekyro-otp-row${a>0?" is-shaking":""}`,"aria-hidden":"true",children:Array.from({length:n},(t,s)=>r("span",{className:`sekyro-otp-box${s<e.length?" is-filled":""}${g&&s===y?" is-current":""}${o?" is-invalid":""}`,children:e[s]!==void 0?r("span",{className:"sekyro-otp-digit",children:e[s]},e[s]):null},s))},a),r("input",{ref:d,id:l,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:e,"aria-describedby":f,"aria-invalid":o||void 0,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:t=>m(h(t.target.value).replace(/\D/g,"").slice(0,n))})]})}u(I,"CodeInput");export{I as a};
|
package/dist/chunk-FNBG3472.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as c}from"./chunk-PYAJMHZH.js";import{a as f,b as h}from"./chunk-NXVTUTKS.js";import{a as k}from"./chunk-VRDPGOXM.js";import{g as y}from"./chunk-GGTRTUW3.js";import{a as u}from"./chunk-IUQTOOBI.js";import{a as s}from"./chunk-2KED7D2Q.js";import{useState as g}from"react";var C={document:"card",population_registry:"id",national_eid:"smartphone",phone_otp:"phone",email_otp:"email"};function b(o,t){switch(o.service){case"document":return t.t("method.document_photo");case"population_registry":return t.t("method.national_number");case"national_eid":{let n=o.nationalEid?.providerName;return n?t.t("method.national_eid",{provider:n}):t.t("method.national_eidGeneric")}default:return null}}s(b,"identityLabel");function L(o,t){let[n,i]=g(!1),[d,m]=g(null);return{busy:n,error:d,run:s(r=>{i(!0),m(null),r().then(()=>i(!1),l=>{i(!1),m(o.t(k(l,o.strings))),t?.(l)})},"run")}}s(L,"useChoiceAction");import{useId as _}from"react";import{Fragment as N,jsx as e,jsxs as a}from"react/jsx-runtime";function I(){let o=`sekyro-face-light-${_().replace(/[^A-Za-z0-9_-]/g,"")}`;return a("svg",{className:"sekyro-mark sekyro-mark--face",viewBox:"0 0 168 206","aria-hidden":"true",focusable:"false",children:[e("defs",{children:e("mask",{id:o,children:e("ellipse",{className:"sekyro-mark__arc",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"1",fill:"none",stroke:"#fff",strokeWidth:"16"})})}),e("ellipse",{cx:"84",cy:"103",rx:"64",ry:"83",fill:"none",className:"sekyro-mark__line"}),e("path",{className:"sekyro-mark__face",d:"M68 64v10M100 64v10M84 66v25q0 2-6 1M60 108q24 18 48 0"}),e("ellipse",{className:"sekyro-mark__ticks",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56"}),e("ellipse",{className:"sekyro-mark__ticks sekyro-mark__ticks--light",cx:"84",cy:"103",rx:"76",ry:"95",pathLength:"56",mask:`url(#${o})`})]})}s(I,"FaceMark");var v={glasses:"jGlasses",lighting:"light",faceCamera:"camera"};function T({start:o,context:t,tips:n,tipsTitle:i,extra:d,human:m=!1,notice:p}){let{t:r}=y();return a("section",{className:"sekyro-step",children:[e(I,{}),t.captureMode==="assisted"?e(f,{title:r("capture.assisted.title"),lead:r("capture.assisted.lead")}):e(f,{title:r(m?"native.face.humanIntroTitle":"native.face.introTitle"),lead:r(m?"native.face.humanIntroLead":"native.face.introLead")}),i!==void 0?e("p",{className:"sekyro-section-label",children:i}):null,e("ul",{className:"sekyro-tiprows",children:n!==void 0?n.map(l=>a("li",{children:[e(c,{name:v[l.id]??"face"}),l.text]},l.id)):a(N,{children:[a("li",{children:[e(c,{name:"light"}),r("capture.tips.light")]}),a("li",{children:[e(c,{name:"jGlasses"}),r("capture.tips.uncover")]}),a("li",{children:[e(c,{name:"smartphone"}),r("capture.tips.eyeLevel")]})]})}),d,p??null,p!==void 0?null:t.assets==="failed"?e(u,{kind:"ghost",onClick:t.retryAssets,children:r("common.refresh")}):null,p!==void 0?null:e(h,{children:a(u,{full:!0,disabled:t.assets!=="ready","aria-busy":t.assets==="loading"||void 0,onClick:o,children:[e(c,{name:"camera"}),r("capture.start")]})})]})}s(T,"FaceIntro");export{C as a,b,L as c,T as d};
|
package/dist/chunk-GGTRTUW3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{d as s,g as c,h as p,p as d,q as u}from"./chunk-IUQTOOBI.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":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","reasons.camera_unavailable":"يتطلب هذا التحقق كاميرا. عُد إلى {org} للمتابعة بطريقة أخرى.","otp.sendTitle":"تحقّق من رقم هاتفك","otp.sendDescription":"سنرسل إليك رمزًا يُستخدم مرة واحدة لتأكيد أن هذا الرقم يخصّك","otp.prefilledNotice":"سنرسل رمز تحقّق إلى رقم هاتفك المسجّل.","otp.phoneLabel":"رقم الهاتف","otp.phoneHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا الرقم","otp.phonePlaceholder":"8 أرقام","otp.send":"إرسال الرمز","otp.channelSms":"رسالة نصية","otp.channelWhatsapp":"واتساب","otp.verifyTitle":"أدخل رمز التحقّق","otp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك لإتمام التحقّق من رقمك","otp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {number} عبر {channel}","otp.codeLabel":"رمز التحقّق","otp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إليك","otp.verify":"تحقّق من الرمز","otp.resend":"إعادة إرسال الرمز","otp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","otp.expiresIn":"ينتهي الرمز خلال {time}","otp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","otp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","otp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","otp.reason_otp_send_failed":"تعذّر إرسال الرمز. أعد المحاولة بعد قليل","otp.chooseChannel":"كيف تريد أن تتلقّى رمزك؟","otp.sendBy":"إرسال الرمز عبر {channel}","otp.resendBy":"إعادة الإرسال عبر {channel}","otp.reason_otp_channel_unavailable":"هذه الوسيلة غير متاحة. اختر طريقة أخرى لتلقّي رمزك","otp.reason_otp_destination_not_allowed":"لا يمكننا إرسال الرموز إلى أرقام هذا البلد. أدخل رقمًا آخر","otp.reason_otp_destination_unknown":"تعذّر التعرّف على هذا الرقم. تحقّق منه وأعد إدخاله مع رمز البلد","otp.reason_otp_rate_limited":"طلبت رموزًا كثيرة. انتظر قليلًا ثم أعد المحاولة","otp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إليك اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","otp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","otp.phonePlaceholderGeneric":"أدخل رقم هاتفك بدون رمز البلد","otp.countryLabel":"البلد","otp.phoneLengthError":"تحقق من الرقم: يجب أن يكون عدد أرقامه {digits}.","otp.or":"أو","otp.otherCountry":"بلد آخر","otp.reason_otp_number_invalid":"لا يبدو هذا الرقم كاملاً لبلده. تحقق منه ثم أعد المحاولة.","otp.reason_otp_number_not_mobile":"أدخل رقم هاتف محمول. لا يمكن إرسال الرموز إلى خط أرضي.","session.steps.population.title":"أدخل رقم تعريفك الوطني","session.steps.population.description":"يُطابَق رقمك الوطني المكوّن من 10 أرقام مع سجل الحالة المدنية","population.label":"الرقم الوطني للتعريف الموريتاني (NNI)","population.helper":"رقم التعريف الوطني المكوّن من 10 أرقام كما هو مطبوع على بطاقتك","population.placeholder":"10 أرقام","population.submit":"تحقّق من رقمي","population.invalid":"أدخل الأرقام العشرة للرقم الوطني كما هو مطبوع على بطاقة هويتك","population.reason_registry_unavailable":"سجل الحالة المدنية غير متاح مؤقتًا. لم يُتحقَّق من رقمك. أعد المحاولة بعد قليل","population.reason_nni_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_nni_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.bound.description":"قدّمت الجهة الطالبة رقمك الوطني للتعريف مسبقًا. أكّد للتحقق منه في سجل الحالة المدنية","population.bound.confirm":"تأكيد ومتابعة","population.reason_nni_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","population.useDocument":"استخدام وثيقتي بدلًا من ذلك","population.fromDocument.title":"التحقق في السجل المدني","population.fromDocument.description":"نتحقق من الرقم الوطني المقروء من وثيقتك في السجل المدني","population.fromDocument.continue":"متابعة","population.reason_id_number_invalid":"هذا الرقم ليس رقمًا وطنيًا صالحًا. تحقق من الأرقام العشرة المطبوعة على بطاقة هويتك","population.reason_registry_record_not_found":"لم يُعثر على هذا الرقم في سجل الحالة المدنية. تأكد من مطابقته تمامًا لبطاقتك","population.reason_registry_record_not_found_or_document":"لم نعثر على هذا الرقم. تأكّد منه، أو استخدم وثيقتك بدلًا منه.","session.steps.doc.titleRecto":"صوّر الوجه الأمامي لوثيقة هويتك","session.steps.doc.titleVerso":"صوّر الوجه الخلفي لوثيقة هويتك","session.steps.doc.description":"استخدم إضاءة جيدة وأبقِ البطاقة كاملة داخل الإطار","doc.pickTitle":"أي وثيقة ستستخدم؟","doc.pickDescription":"اختر وثيقة الهوية التي بحوزتك. ستمسحها بالكاميرا","doc.pickLabel":"نوع الوثيقة","doc.startScan":"بدء المسح","doc.titlePassport":"امسح صفحة بيانات جواز سفرك","doc.reason_side_missing":"حُفظ أحد الوجهين. صوّر الآن الوجه المتبقي من الوثيقة","doc.reason_unreadable":"تعذّرت قراءة الوثيقة. أعد التقاط الصورة بحيث تكون البطاقة كاملة وواضحة داخل الإطار","doc.process_failed":"تعذّرت معالجة هذه الصورة. التقط صورة جديدة وأعد المحاولة","doc.uploading":"جارٍ رفع وثيقتك…","doc.cameraBlocked":"نحتاج إلى الكاميرا لمسح الوثيقة. الوصول إلى الكاميرا محظور أو غير متاح","doc.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","doc.retryCamera":"إعادة تجربة الكاميرا","doc.holdUpright":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","doc.ageStepUp":"لم نتمكّن من التأكد من عمرك من الصورة الذاتية. تابع باستخدام وثيقة هوية.","reasons.underage_estimated":"هذه الخدمة مخصّصة لمن بلغوا الحد الأدنى للسن المطلوب.","reasons.starter_credit_claimed":"سبق أن منح تحققك رصيدًا ابتدائيًا لمؤسسة أخرى. يُمنح هذا الرصيد مرة واحدة لكل شخص.","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","session.processing.aml_screening.title":"التحقق من القوائم","session.processing.aml_screening.description":"نتحقق من الاسم في قوائم العقوبات والأشخاص المعرّضين سياسيًا. يستغرق ذلك بضع ثوانٍ","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط. لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة صورتك بوثيقة هويتك…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.codeInvalid":"أدخل الرمز المكوّن من 6 أرقام","doc.countryTitle":"ما البلد الذي أصدر وثيقتك؟","doc.countryLabel":"بلد الإصدار","doc.countrySearch":"ابحث عن بلد","doc.noCountryMatch":"لا يوجد بلد يطابق بحثك","doc.type.carte_identite":"بطاقة الهوية","doc.type.residence_permit":"بطاقة الإقامة","doc.type.passport":"جواز السفر","doc.showSide":"اعرض أحد وجهي البطاقة","doc.showPage":"اعرض صفحة الصورة","doc.flip":"اقلب البطاقة","doc.sameFace":"الوجه نفسه · اقلب البطاقة","doc.reaskRecto":"اعرض الوجه الأمامي مرة أخرى","doc.reread":"تعذّرت قراءة هذا الوجه · ثبّت البطاقة في إضاءة جيدة","doc.photoTaken":"تم التقاط الصورة","doc.frontCaptured":"تم التقاط الوجه الأمامي","doc.backCaptured":"تم التقاط الوجه الخلفي","doc.pageCaptured":"تم التقاط الصفحة","doc.progressFront":"الأمام","doc.progressBack":"الخلف","doc.progressPage":"صفحة الصورة","doc.shutter":"التقط الصورة","doc.torchOn":"شغّل الضوء","doc.torchOff":"أطفئ الضوء","result.platform_unsupported":"يتطلب هذا التحقق تطبيقًا على الهاتف.","unsupported.title":"يلزم التحديث","unsupported.description":"تتطلب هذه الخطوة إصدارًا أحدث من هذه الصفحة. تواصل مع {org}.","shell.subtitle":"التحقق من الهوية","shell.subtitleHuman":"التحقق البشري","shell.verifiedBy":"تم التحقق بواسطة Sekyro AI","doc.sub.carte_identite":"الوجه والظهر","doc.sub.residence_permit":"الوجه والظهر","doc.sub.passport":"الصفحة التي تحمل صورتك","native.close":"إغلاق","native.face.introTitle":"لنتحقق الآن من وجهك","native.face.introLead":"لقطة واحدة دون أي حركة خاصة: انظر إلى الشاشة فقط.","native.face.humanIntroTitle":"أكّد أنك شخص حقيقي","native.face.humanIntroLead":"لقطة قصيرة واحدة: انظر إلى الشاشة فقط.","native.doc.holdIt":"احتفظ بوثيقتك في متناول يدك.","native.doc.changeCountry":"تغيير البلد","native.result.approved":"اكتمل التحقق. يمكنك العودة إلى {org}.","native.result.review":"ستُرسل النتيجة إلى {org}. لا يلزمك فعل أي شيء آخر.","native.result.rejected":"تواصل مع {org} إذا كنت تعتقد أن هذا خطأ.","native.result.expired":"ابدأ من جديد من {org} للحصول على جلسة جديدة.","native.result.copied":"تم النسخ","native.result.back":"العودة إلى {org}"};var h={"session.title":"Verify your identity","session.requestedBy":"{orgName} asks you to verify your identity","returning.requestedBy":"{orgName} asks you to confirm it's you","consent.notice":"By completing this identity verification, you consent to the processing of your personal and biometric data to verify your identity.","consent.details":"Learn more","consent.terms.intro":"Sekyro AI verifies your identity on behalf of the organization that sent you this link. Before you start, review how your data is used.","consent.terms.data":"During verification, Sekyro AI collects photos of your identity document, a short selfie video, a selfie photo, and your identity document number.","consent.terms.processing":"This data is used only to verify your identity: your face is compared with the photo on your document, and your number is checked against the issuing authority's records when available. Some steps may be examined by an authorized human reviewer.","consent.terms.sharing":"The organization that requested this verification is informed of its outcome.","consent.terms.retention":"Your data is stored encrypted and kept only as long as the law requires. To exercise your data-protection rights, contact the organization that requested this verification.","reasons.camera_unavailable":"This verification needs a camera. Go back to {org} to continue another way.","otp.sendTitle":"Verify your phone number","otp.sendDescription":"We'll send you a one-time code to confirm this number is yours","otp.prefilledNotice":"We'll send a verification code to your registered phone number.","otp.phoneLabel":"Phone number","otp.phoneHelper":"We'll send a one-time code to this number","otp.phonePlaceholder":"8 digits","otp.send":"Send code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Enter the verification code","otp.verifyDescription":"Type the 6-digit code we sent you to finish verifying your number","otp.sentTo":"We sent a 6-digit code to {number} via {channel}","otp.codeLabel":"Verification code","otp.codeHelper":"Enter the 6-digit code we sent you","otp.verify":"Verify code","otp.resend":"Resend code","otp.resendIn":"Resend code in {seconds}s","otp.expiresIn":"Code expires in {time}","otp.expired":"That code has expired. Resend a new one","otp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","otp.reason_otp_expired":"That code has expired. Resend a new code to continue","otp.reason_otp_send_failed":"We couldn't send the code. Try again in a moment","otp.chooseChannel":"How should we send your code?","otp.sendBy":"Send code by {channel}","otp.resendBy":"Resend by {channel}","otp.reason_otp_channel_unavailable":"That channel isn't available. Choose another way to get your code","otp.reason_otp_destination_not_allowed":"We can't send codes to numbers from this country. Enter another number","otp.reason_otp_destination_unknown":"We couldn't recognize this number. Check it and enter it again with the country code","otp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","otp.reason_otp_daily_cap_reached":"We can't send you a code today. Choose another way to verify if one is offered, or try again later.","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 national ID number","session.steps.population.description":"Your 10-digit NNI is checked against the civil registry","population.label":"Mauritanian national ID number (NNI)","population.helper":"10-digit national identification number, exactly as printed on your ID","population.placeholder":"10 digits","population.submit":"Verify my number","population.invalid":"Enter the 10-digit NNI printed on your national ID","population.reason_registry_unavailable":"The civil registry is temporarily unreachable. Your number was not checked. Try again in a moment","population.reason_nni_not_found":"This number was not found in the civil registry. Check that it matches your ID exactly","population.reason_nni_invalid":"This is not a valid NNI. Check the 10 digits printed on your national ID","population.bound.description":"The requester already provided your national ID number. Confirm to check it against the civil registry","population.bound.confirm":"Confirm and continue","population.reason_nni_not_found_or_document":"We couldn't find this number. Check it, or use your document instead.","population.useDocument":"Use my document instead","population.fromDocument.title":"Checking the civil registry","population.fromDocument.description":"We're checking the national number from your document against the civil registry","population.fromDocument.continue":"Continue","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":"Which document will you use?","doc.pickDescription":"Choose the identity document you have with you. You will scan it with your camera","doc.pickLabel":"Document type","doc.startScan":"Start scanning","doc.titlePassport":"Scan your passport data page","doc.reason_side_missing":"One side is saved. Now photograph the remaining side of the document","doc.reason_unreadable":"We could not read the document. Retake the photo with the whole card sharp and inside the frame","doc.process_failed":"We could not process this photo. Take a new one and try again","doc.uploading":"Uploading your document…","doc.cameraBlocked":"We need your camera to scan the document. Camera access is blocked or unavailable","doc.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","doc.retryCamera":"Try the camera again","doc.holdUpright":"Fit the document inside the frame. It captures by itself. For a sharper photo, turn your phone sideways","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.","dcv2.sensing":"Looking for the document. Fit it inside the frame","dcv2.too_far":"Bring the document closer so it fills the frame","dcv2.too_close":"Move back a little. Keep the whole document in the frame","dcv2.edge_clipped":"Fit the whole document inside the frame. Keep the edges visible","dcv2.wrong_shape":"That doesn't look right. Lay the document flat, straight toward the camera","dcv2.tilted":"Hold the phone flat above the document. Too much angle","dcv2.too_dark":"Find a brighter spot. Light the document","dcv2.too_bright":"Too much light. Tilt the document away from the glare","dcv2.blurry":"Hold your phone steady. The image is blurry","dcv2.focus_far":"Too close to focus. Move the phone a little farther","dcv2.glare":"Light is reflecting off the document. Tilt it slightly","dcv2.hold_still":"Perfect. Hold still","dcv2.processing":"Capturing…","dcv2.side_captured":"Side captured. Flip the document to the back","dcv2.captured":"Captured","session.processing.title":"Your checks are being processed","session.processing.description":"This usually takes a few seconds. The result will appear here","handoff.title":"Continue on your phone","session.processing.age_estimation.title":"Checking your age","session.processing.age_estimation.description":"This takes a few seconds","session.processing.aml_screening.title":"Checking lists","session.processing.aml_screening.description":"We are checking the name against sanctions and PEP lists. This takes a few seconds","session.result.approved.title":"Your identity is verified","session.result.approved.description":"You are done. You can close this page","session.result.review.title":"Your verification is under review","session.result.review.description":"The result will be sent to the organization that gave you this link. You don't need to do anything else.","session.result.rejected.title":"Your identity could not be verified","session.result.rejected.description":"Contact the organization that sent you this link if you believe this is a mistake","session.result.expired.title":"This verification session has expired","session.result.expired.description":"Request a new link from the organization that sent it, then start again","session.result.detailsMismatch":"The details don't match the information {org} has. Contact {org}.","session.result.deviceVelocity":"This device can't be used for another verification right now. Contact {org}.","session.result.deviceStop":"We couldn't continue on this device. Try again on another device or browser.","result.referenceLabel":"Reference code","common.loading":"Loading your verification session","common.refresh":"Refresh status","common.noAttemptsLeft":"No attempts left","session.steps.portrait.title":"Take your ID photo","session.steps.portrait.description":"Look straight at the camera with a neutral expression, in front of a plain, light wall","portrait.coach.no_face":"Place your face inside the oval","portrait.coach.multiple_faces":"Make sure no one else is in the picture","portrait.coach.center":"Center your face in the oval","portrait.coach.too_close":"Move back a little","portrait.coach.pose":"Look straight at the camera","portrait.coach.eyes":"Open your eyes a little more","portrait.coach.mouth":"Close your mouth, neutral expression","portrait.coach.glare":"Tilt your glasses or remove them","portrait.coach.lighting":"Face a window or a lamp","portrait.coach.lighting_side":"Avoid light from one side","portrait.coach.background":"Stand in front of a plain, light wall","portrait.coach.resolution":"Come a little closer","portrait.coach.hold_still":"Hold still","portrait.coach.hold":"Perfect. Hold still","portrait.criteria.face":"Face in the oval","portrait.criteria.framing":"Centered","portrait.criteria.pose":"Looking straight","portrait.criteria.eyes":"Eyes open","portrait.criteria.mouth":"Neutral expression","portrait.criteria.glare":"No glare","portrait.criteria.lighting":"Even light","portrait.criteria.background":"Plain background","portrait.criteria.resolution":"Close enough","portrait.criteria.sharpness":"Steady","portrait.report.pose":"Head position","portrait.report.eyes":"Eyes","portrait.report.mouth":"Expression","portrait.report.occlusion":"Face uncovered","portrait.report.glare":"Glasses glare","portrait.report.lighting":"Lighting","portrait.report.background":"Background","portrait.report.resolution":"Distance","portrait.checksLabel":"Photo checks","portrait.met":"done","portrait.notMet":"not yet","portrait.starting":"Starting the camera…","portrait.taken":"Photo taken","portrait.uploading":"Sending your photo…","portrait.checking":"Checking your photo…","portrait.retryTitle":"Let's take your photo again","portrait.reportTitle":"What to fix","portrait.retake":"Take the photo again","portrait.uploadFailed":"We couldn't send your photo. Check your connection, then try again.","portrait.sendAgain":"Send the photo again","portrait.matching":"Comparing your photo with your identity document…","portrait.reviewTitle":"We'll review your photo","portrait.reviewDescription":"A member of our team will check your photo. You can continue.","portrait.cameraBlocked":"We need your camera to take your ID photo. Camera access is blocked or unavailable","portrait.cameraBlockedHint":"Allow camera access for this site in your browser settings, then try again","portrait.retryCamera":"Try the camera again","reasons.icao_pose":"Look straight at the camera","reasons.icao_eyes":"Open your eyes a little more","reasons.icao_mouth":"Close your mouth and keep a neutral expression","reasons.icao_occlusion":"Remove anything covering your face, and tilt or remove your glasses","reasons.icao_lighting":"Face a window or a lamp, and avoid light from one side","reasons.icao_background":"Stand in front of a plain, light wall","reasons.icao_resolution":"Come a little closer to the camera","reasons.portrait_not_from_liveness":"The photo must be of the same person who did the face check. Take it again yourself","reasons.tester_document_mismatch":"This document doesn't belong to the tester","reasons.tester_phone_mismatch":"Use the phone number the tester enrolled with","method.national_eid":"Verify with {provider}","method.national_eidGeneric":"Verify with your national eID","consent.short":"By continuing, you agree to the {terms}.","consent.termsLink":"terms","session.progressLabel":"Verification progress","section.contact":"Verify your contact","section.identity":"Verify your identity","section.live_photo":"Take a live photo","section.screening":"Additional checks","handoff.copied":"Link copied. Open it on your phone","needsApp.title":"This verification needs a phone app","needsApp.description":"{org} asks to read your document's chip. Open {org}'s app on a phone with NFC to continue.","needsApp.descriptionNoOrg":"This verification reads your document's chip. Open the app on a phone with NFC to continue.","population.recheck.title":"Check your national number","population.recheck.description":"Your face didn't match the record for this number. Check the number and enter it again.","otp.phoneInvalid":"Enter your phone number with the country code","otp.codeInvalid":"Enter the 6-digit code","doc.countryTitle":"Which country issued your document?","doc.countryLabel":"Issuing country","doc.countrySearch":"Search for a country","doc.noCountryMatch":"No country matches your search","doc.type.carte_identite":"Identity card","doc.type.residence_permit":"Residence permit","doc.type.passport":"Passport","doc.showSide":"Show one side of the card","doc.showPage":"Show the photo page","doc.flip":"Turn the card over","doc.sameFace":"Same side · turn the card over","doc.reaskRecto":"Show the front again","doc.reread":"We couldn't read this side · hold it steady in good light","doc.photoTaken":"Photo taken","doc.frontCaptured":"Front captured","doc.backCaptured":"Back captured","doc.pageCaptured":"Page captured","doc.progressFront":"Front","doc.progressBack":"Back","doc.progressPage":"Photo page","doc.shutter":"Take the photo","doc.torchOn":"Turn on the light","doc.torchOff":"Turn off the light","result.platform_unsupported":"This verification needs a phone app.","unsupported.title":"Update required","unsupported.description":"This step needs a newer version of this page. Contact {org}.","shell.subtitle":"Identity verification","shell.subtitleHuman":"Human verification","shell.verifiedBy":"Verified by Sekyro AI","doc.sub.carte_identite":"Front and back","doc.sub.residence_permit":"Front and back","doc.sub.passport":"The page with your photo","native.close":"Close","native.face.introTitle":"Now let's check your face","native.face.introLead":"One capture, no special movement: just look at the screen.","native.face.humanIntroTitle":"Confirm you are a real person","native.face.humanIntroLead":"One short capture: just look at the screen.","native.doc.holdIt":"Keep your document within reach.","native.doc.changeCountry":"Change country","native.result.approved":"Your verification is complete. You can go back to {org}.","native.result.review":"The result will be sent to {org}. There's nothing else you need to do.","native.result.rejected":"Contact {org} if you think this is a mistake.","native.result.expired":"Start again from {org} to get a new session.","native.result.copied":"Copied","native.result.back":"Back to {org}"};var 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.","reasons.camera_unavailable":"Cette vérification nécessite une caméra. Retournez sur {org} pour continuer autrement.","otp.sendTitle":"Vérifiez votre numéro de téléphone","otp.sendDescription":"Nous vous enverrons un code à usage unique pour confirmer que ce numéro vous appartient","otp.prefilledNotice":"Nous enverrons un code de vérification à votre numéro de téléphone enregistré.","otp.phoneLabel":"Numéro de téléphone","otp.phoneHelper":"Nous enverrons un code à usage unique à ce numéro","otp.phonePlaceholder":"8 chiffres","otp.send":"Envoyer le code","otp.channelSms":"SMS","otp.channelWhatsapp":"WhatsApp","otp.verifyTitle":"Saisissez le code de vérification","otp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé pour finaliser la vérification de votre numéro","otp.sentTo":"Nous avons envoyé un code à 6 chiffres au {number} par {channel}","otp.codeLabel":"Code de vérification","otp.codeHelper":"Saisissez le code à 6 chiffres que nous vous avons envoyé","otp.verify":"Vérifier le code","otp.resend":"Renvoyer le code","otp.resendIn":"Renvoyer le code dans {seconds} s","otp.expiresIn":"Le code expire dans {time}","otp.expired":"Ce code a expiré. Renvoyez-en un nouveau","otp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","otp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","otp.reason_otp_send_failed":"Nous n'avons pas pu envoyer le code. Réessayez dans un instant","otp.chooseChannel":"Comment souhaitez-vous recevoir votre code ?","otp.sendBy":"Envoyer le code par {channel}","otp.resendBy":"Renvoyer par {channel}","otp.reason_otp_channel_unavailable":"Ce moyen d'envoi n'est pas disponible. Choisissez une autre façon de recevoir votre code","otp.reason_otp_destination_not_allowed":"Nous ne pouvons pas envoyer de code aux numéros de ce pays. Saisissez un autre numéro","otp.reason_otp_destination_unknown":"Nous n'avons pas reconnu ce numéro. Vérifiez-le et saisissez-le à nouveau avec l'indicatif du pays","otp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","otp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","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 national d'identification","session.steps.population.description":"Votre NNI à 10 chiffres est vérifié auprès du registre d'état civil","population.label":"Numéro national d'identification mauritanien (NNI)","population.helper":"Numéro national d'identification à 10 chiffres, tel qu'imprimé sur votre pièce","population.placeholder":"10 chiffres","population.submit":"Vérifier mon numéro","population.invalid":"Saisissez les 10 chiffres du NNI imprimé sur votre pièce d'identité","population.reason_registry_unavailable":"Le registre d'état civil est temporairement inaccessible. Votre numéro n'a pas été vérifié. Réessayez dans un instant","population.reason_nni_not_found":"Ce numéro est introuvable dans le registre d'état civil. Vérifiez qu'il correspond exactement à votre pièce","population.reason_nni_invalid":"Ce numéro n'est pas un NNI valide. Vérifiez les 10 chiffres imprimés sur votre pièce d'identité","population.bound.description":"L'organisme demandeur a déjà fourni votre numéro national d'identification. Confirmez pour le vérifier auprès de l'état civil","population.bound.confirm":"Confirmer et continuer","population.reason_nni_not_found_or_document":"Nous n'avons pas trouvé ce numéro. Vérifiez-le, ou utilisez plutôt votre document.","population.useDocument":"Utiliser plutôt mon document","population.fromDocument.title":"Vérification auprès du registre civil","population.fromDocument.description":"Nous vérifions le numéro national lu sur votre document auprès du registre civil","population.fromDocument.continue":"Continuer","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":"Quel document allez-vous utiliser ?","doc.pickDescription":"Choisissez la pièce d'identité en votre possession. Vous la scannerez avec votre caméra","doc.pickLabel":"Type de document","doc.startScan":"Commencer le scan","doc.titlePassport":"Scannez la page de données de votre passeport","doc.reason_side_missing":"Une face est enregistrée. Photographiez maintenant l'autre face du document","doc.reason_unreadable":"Nous n'avons pas pu lire le document. Reprenez la photo avec la carte entière, nette et dans le cadre","doc.process_failed":"Nous n'avons pas pu traiter cette photo. Prenez-en une nouvelle et réessayez","doc.uploading":"Envoi de votre document…","doc.cameraBlocked":"Nous avons besoin de votre caméra pour scanner le document. L'accès est bloqué ou indisponible","doc.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","doc.retryCamera":"Réessayer la caméra","doc.holdUpright":"Placez le document dans le cadre. La capture est automatique. Pour une photo plus nette, tournez votre téléphone à l'horizontale","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.","dcv2.sensing":"Recherche du document. Placez-le dans le cadre","dcv2.too_far":"Rapprochez le document pour qu'il remplisse le cadre","dcv2.too_close":"Reculez un peu. Gardez tout le document dans le cadre","dcv2.edge_clipped":"Placez tout le document dans le cadre. Gardez les bords visibles","dcv2.wrong_shape":"Cela ne semble pas correct. Posez le document à plat, face à la caméra","dcv2.tilted":"Tenez le téléphone à plat au-dessus du document. Trop d'angle","dcv2.too_dark":"Trouvez un endroit plus lumineux. Éclairez le document","dcv2.too_bright":"Trop de lumière. Inclinez le document pour éviter les reflets","dcv2.blurry":"Tenez votre téléphone immobile. L'image est floue","dcv2.focus_far":"Trop près pour la mise au point. Éloignez un peu le téléphone","dcv2.glare":"La lumière se reflète sur le document. Inclinez-le légèrement","dcv2.hold_still":"Parfait. Ne bougez plus","dcv2.processing":"Capture…","dcv2.side_captured":"Face capturée. Retournez le document","dcv2.captured":"Capturé","session.processing.title":"Vos vérifications sont en cours de traitement","session.processing.description":"Cela prend généralement quelques secondes. Le résultat s'affichera ici","handoff.title":"Continuez sur votre téléphone","session.processing.age_estimation.title":"Vérification de votre âge","session.processing.age_estimation.description":"Cela prend quelques secondes","session.processing.aml_screening.title":"Vérification des listes","session.processing.aml_screening.description":"Nous vérifions le nom sur les listes de sanctions et de PPE. Cela prend quelques secondes","session.result.approved.title":"Votre identité est vérifiée","session.result.approved.description":"C'est terminé. Vous pouvez fermer cette page","session.result.review.title":"Votre vérification est en cours d'examen","session.result.review.description":"Le résultat sera transmis à l'organisation qui vous a envoyé ce lien. Vous n'avez rien d'autre à faire.","session.result.rejected.title":"Votre identité n'a pas pu être vérifiée","session.result.rejected.description":"Contactez l'organisme qui vous a envoyé ce lien si vous pensez qu'il s'agit d'une erreur","session.result.expired.title":"Cette session de vérification a expiré","session.result.expired.description":"Demandez un nouveau lien à l'organisme qui l'a envoyé, puis recommencez","session.result.detailsMismatch":"Ces informations ne correspondent pas à celles dont dispose {org}. Contactez {org}.","session.result.deviceVelocity":"Cet appareil ne peut pas servir à une autre vérification pour le moment. Contactez {org}.","session.result.deviceStop":"Impossible de continuer sur cet appareil. Réessayez sur un autre appareil ou navigateur.","result.referenceLabel":"Code de référence","common.loading":"Chargement de votre session de vérification","common.refresh":"Actualiser le statut","common.noAttemptsLeft":"Plus aucune tentative","session.steps.portrait.title":"Prenez votre photo d’identité","session.steps.portrait.description":"Regardez la caméra bien en face, l’expression neutre, devant un mur uni et clair","portrait.coach.no_face":"Placez votre visage dans l'ovale","portrait.coach.multiple_faces":"Assurez-vous d'être seul sur la photo","portrait.coach.center":"Centrez votre visage dans l'ovale","portrait.coach.too_close":"Reculez un peu","portrait.coach.pose":"Regardez droit vers la caméra","portrait.coach.eyes":"Ouvrez un peu plus les yeux","portrait.coach.mouth":"Fermez la bouche, expression neutre","portrait.coach.glare":"Inclinez vos lunettes ou retirez-les","portrait.coach.lighting":"Placez-vous face à une fenêtre ou une lampe","portrait.coach.lighting_side":"Évitez la lumière venant d'un seul côté","portrait.coach.background":"Placez-vous devant un mur uni et clair","portrait.coach.resolution":"Rapprochez-vous un peu","portrait.coach.hold_still":"Ne bougez plus","portrait.coach.hold":"Parfait. Ne bougez plus","portrait.criteria.face":"Visage dans l'ovale","portrait.criteria.framing":"Centré","portrait.criteria.pose":"Regard droit","portrait.criteria.eyes":"Yeux ouverts","portrait.criteria.mouth":"Expression neutre","portrait.criteria.glare":"Sans reflet","portrait.criteria.lighting":"Lumière uniforme","portrait.criteria.background":"Fond uni","portrait.criteria.resolution":"Assez proche","portrait.criteria.sharpness":"Stable","portrait.report.pose":"Position de la tête","portrait.report.eyes":"Yeux","portrait.report.mouth":"Expression","portrait.report.occlusion":"Visage dégagé","portrait.report.glare":"Reflets des lunettes","portrait.report.lighting":"Éclairage","portrait.report.background":"Arrière-plan","portrait.report.resolution":"Distance","portrait.checksLabel":"Contrôles de la photo","portrait.met":"validé","portrait.notMet":"pas encore","portrait.starting":"Démarrage de la caméra…","portrait.taken":"Photo prise","portrait.uploading":"Envoi de votre photo…","portrait.checking":"Vérification de votre photo…","portrait.retryTitle":"Reprenons votre photo","portrait.reportTitle":"À corriger","portrait.retake":"Reprendre la photo","portrait.uploadFailed":"Nous n'avons pas pu envoyer votre photo. Vérifiez votre connexion, puis réessayez.","portrait.sendAgain":"Renvoyer la photo","portrait.matching":"Comparaison de votre photo avec votre pièce d'identité…","portrait.reviewTitle":"Nous allons vérifier votre photo","portrait.reviewDescription":"Un membre de notre équipe vérifiera votre photo. Vous pouvez continuer.","portrait.cameraBlocked":"Nous avons besoin de votre caméra pour prendre votre photo d'identité. L'accès à la caméra est bloqué ou indisponible","portrait.cameraBlockedHint":"Autorisez l'accès à la caméra pour ce site dans les réglages du navigateur, puis réessayez","portrait.retryCamera":"Réessayer la caméra","reasons.icao_pose":"Regardez la caméra bien en face","reasons.icao_eyes":"Ouvrez un peu plus les yeux","reasons.icao_mouth":"Fermez la bouche et gardez une expression neutre","reasons.icao_occlusion":"Retirez ce qui couvre votre visage, et inclinez ou retirez vos lunettes","reasons.icao_lighting":"Placez-vous face à une fenêtre ou une lampe, sans lumière d’un seul côté","reasons.icao_background":"Placez-vous devant un mur uni et clair","reasons.icao_resolution":"Rapprochez-vous un peu de la caméra","reasons.portrait_not_from_liveness":"La photo doit être celle de la personne qui a fait le contrôle du visage. Reprenez-la vous-même","reasons.tester_document_mismatch":"Ce document n'appartient pas au testeur","reasons.tester_phone_mismatch":"Utilisez le numéro avec lequel le testeur s'est inscrit","method.national_eid":"Vérifier avec {provider}","method.national_eidGeneric":"Vérifier avec votre eID national","consent.short":"En continuant, vous acceptez les {terms}.","consent.termsLink":"conditions","session.progressLabel":"Progression de la vérification","section.contact":"Vérifiez votre contact","section.identity":"Vérifiez votre identité","section.live_photo":"Prenez une photo en direct","section.screening":"Contrôles complémentaires","handoff.copied":"Lien copié. Ouvrez-le sur votre téléphone","needsApp.title":"Cette vérification nécessite une application mobile","needsApp.description":"{org} demande de lire la puce de votre document. Ouvrez l'application de {org} sur un téléphone avec NFC pour continuer.","needsApp.descriptionNoOrg":"Cette vérification lit la puce de votre document. Ouvrez l'application sur un téléphone avec NFC pour continuer.","population.recheck.title":"Vérifiez votre numéro national","population.recheck.description":"Votre visage ne correspond pas au dossier de ce numéro. Vérifiez le numéro et saisissez-le à nouveau.","otp.phoneInvalid":"Saisissez votre numéro avec l'indicatif du pays","otp.codeInvalid":"Saisissez le code à 6 chiffres","doc.countryTitle":"Quel pays a délivré votre document ?","doc.countryLabel":"Pays de délivrance","doc.countrySearch":"Rechercher un pays","doc.noCountryMatch":"Aucun pays ne correspond à votre recherche","doc.type.carte_identite":"Carte d'identité","doc.type.residence_permit":"Titre de séjour","doc.type.passport":"Passeport","doc.showSide":"Montrez une face de la carte","doc.showPage":"Montrez la page avec la photo","doc.flip":"Retournez la carte","doc.sameFace":"Même face · retournez la carte","doc.reaskRecto":"Remontrez le recto","doc.reread":"Lecture impossible · tenez la carte stable, bien éclairée","doc.photoTaken":"Photo prise","doc.frontCaptured":"Recto capturé","doc.backCaptured":"Verso capturé","doc.pageCaptured":"Page capturée","doc.progressFront":"Recto","doc.progressBack":"Verso","doc.progressPage":"Page photo","doc.shutter":"Prendre la photo","doc.torchOn":"Allumer la lampe","doc.torchOff":"Éteindre la lampe","result.platform_unsupported":"Cette vérification nécessite une application mobile.","unsupported.title":"Mise à jour requise","unsupported.description":"Cette étape nécessite une version plus récente de cette page. Contactez {org}.","shell.subtitle":"Vérification d'identité","shell.subtitleHuman":"Vérification humaine","shell.verifiedBy":"Vérifié par Sekyro AI","doc.sub.carte_identite":"Recto et verso","doc.sub.residence_permit":"Recto et verso","doc.sub.passport":"La page avec votre photo","native.close":"Fermer","native.face.introTitle":"Vérifions maintenant votre visage","native.face.introLead":"Une seule prise, sans geste particulier : regardez simplement l'écran.","native.face.humanIntroTitle":"Confirmez que vous êtes une personne réelle","native.face.humanIntroLead":"Une courte prise : regardez simplement l'écran.","native.doc.holdIt":"Gardez votre document à portée de main.","native.doc.changeCountry":"Changer de pays","native.result.approved":"Votre vérification est terminée. Vous pouvez retourner à {org}.","native.result.review":"Le résultat sera transmis à {org}. Vous n'avez rien d'autre à faire.","native.result.rejected":"Contactez {org} si vous pensez qu'il s'agit d'une erreur.","native.result.expired":"Recommencez depuis {org} pour obtenir une nouvelle session.","native.result.copied":"Copiée","native.result.back":"Revenir à {org}"};import{createContext as y,useContext as _,useMemo as v}from"react";import{jsx as C}from"react/jsx-runtime";var b={en:h,fr:m,ar:l};function k(o,e){return e===void 0?o:o.replace(/\{(\w+)\}/g,(t,r)=>Object.hasOwn(e,r)?String(e[r]):t)}i(k,"formatTemplate");function z(o,e){let t=c(o),r={...d(t),...b[t],...p(o)};if(e!==void 0){for(let n of Object.keys(e)){let a=e[n];typeof a=="string"&&(r[n]=a)}s(r,e)}return r}i(z,"resolveSekyroStrings");var g=y(null);function f(o,e){let t=z(o,e);return{locale:o,strings:t,t:i((r,n)=>k(t[r]??"",n),"t")}}i(f,"build");function q({locale:o,strings:e,children:t}){let r=u(o),n=v(()=>f(o,e),[o,e,r]);return r?C(g.Provider,{value:n,children:t}):null}i(q,"StepI18nProvider");function D(o,e){let t=_(g);return v(()=>t!==null&&o===void 0&&e===void 0?t:f(o??t?.locale??"en",e),[t,o,e])}i(D,"useStepI18n");export{l as a,h as b,m as c,k as d,z as e,q as f,D as g};
|
package/dist/chunk-H2KIOYQU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
var e={"eid.identifierTitle":"التحقق عبر {provider}","eid.identifierTitleGeneric":"التحقق عبر هويتك الرقمية الوطنية","eid.identifierDescription":"أدخل رقمك الوطني. سيعرض لك تطبيق {provider} رمزًا.","eid.identifierDescriptionGeneric":"أدخل رقمك الوطني. سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.boundDescription":"سيعرض لك تطبيق {provider} رمزًا.","eid.boundDescriptionGeneric":"سيعرض لك تطبيق الهوية الرقمية رمزًا.","eid.start":"احصل على رمزي","eid.codeTitle":"أدخل رمز {provider}","eid.codeTitleGeneric":"أدخل الرمز من تطبيق الهوية الرقمية","eid.codeHelp":"افتح تطبيق {provider} لرؤية رمزك","eid.codeHelpGeneric":"افتح تطبيق الهوية الرقمية الوطنية لرؤية رمزك","eid.codeLabel":"الرمز","eid.verify":"تحقّق من الرمز","eid.resend":"احصل على رمز جديد","eid.resendIn":"رمز جديد خلال {seconds} ثانية","eid.noResendsLeft":"لم يعد بإمكانك طلب رمز جديد","eid.expiresIn":"ينتهي الرمز خلال {time}","eid.expired":"انتهت صلاحية الرمز. اطلب رمزًا جديدًا","eid.useCamera":"التحقق بالكاميرا بدلًا من ذلك","reasons.eid_identifier_invalid":"تحقّق من رقمك الوطني وأعد إدخاله","reasons.eid_code_invalid":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","reasons.eid_code_expired":"انتهت صلاحية رمزك. اطلب رمزًا جديدًا للمتابعة","reasons.eid_locked":"أُدخلت رموز غير صحيحة عدة مرات. تم قفل الدخول بالهوية الرقمية لهذا التحقق","reasons.eid_not_enrolled":"هذا الرقم الوطني غير مفعّل للدخول بالهوية الرقمية","reasons.eid_unavailable":"الدخول بالهوية الرقمية غير متاح حاليًا. أعد المحاولة بعد قليل","reasons.eid_resend_too_soon":"انتظر قليلًا قبل طلب رمز جديد","reasons.eid_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك","eid.continueHint":"بعد {provider}، ستلتقط صورة حية سريعة.","eid.continueHintGeneric":"بعد الهوية الرقمية الوطنية، ستلتقط صورة حية سريعة.","eid.resendsRemaining.zero":"لا يمكنك طلب رمز جديد","eid.resendsRemaining.one":"يمكنك طلب رمز جديد واحد","eid.resendsRemaining.two":"يمكنك طلب رمزين جديدين","eid.resendsRemaining.few":"يمكنك طلب {count} رموز جديدة","eid.resendsRemaining.many":"يمكنك طلب {count} رمزًا جديدًا","eid.resendsRemaining.other":"يمكنك طلب {count} رمز جديد","eid.codeAttemptsRemaining.zero":"لم تتبقَّ أي محاولة","eid.codeAttemptsRemaining.one":"تبقّت محاولة واحدة","eid.codeAttemptsRemaining.two":"تبقّت محاولتان","eid.codeAttemptsRemaining.few":"تبقّت {count} محاولات","eid.codeAttemptsRemaining.many":"تبقّت {count} محاولة","eid.codeAttemptsRemaining.other":"تبقّت {count} محاولة"};var n={"eid.identifierTitle":"Verify with {provider}","eid.identifierTitleGeneric":"Verify with your national eID","eid.identifierDescription":"Enter your national number. {provider} will show you a code in its app.","eid.identifierDescriptionGeneric":"Enter your national number. Your national eID app will show you a code.","eid.boundDescription":"{provider} will show you a code in its app.","eid.boundDescriptionGeneric":"Your national eID app will show you a code.","eid.start":"Get my code","eid.codeTitle":"Enter your {provider} code","eid.codeTitleGeneric":"Enter the code from your eID app","eid.codeHelp":"Open the {provider} app to see your code","eid.codeHelpGeneric":"Open your national eID app to see your code","eid.codeLabel":"Code","eid.verify":"Verify code","eid.resend":"Get a new code","eid.resendIn":"Get a new code in {seconds}s","eid.noResendsLeft":"You can't get more codes","eid.expiresIn":"Code expires in {time}","eid.expired":"This code has expired. Get a new code","eid.useCamera":"Verify with my camera instead","reasons.eid_identifier_invalid":"Check your national number and enter it again","reasons.eid_code_invalid":"That code is incorrect. Check it and enter it again","reasons.eid_code_expired":"Your code has expired. Get a new code to continue","reasons.eid_locked":"Too many incorrect codes. eID sign-in is locked for this verification","reasons.eid_not_enrolled":"This national number isn't set up for eID sign-in","reasons.eid_unavailable":"eID sign-in isn't available right now. Try again in a moment","reasons.eid_resend_too_soon":"Wait a moment before asking for a new code","reasons.eid_resend_limit":"You can't get more codes. Enter the last code you received","eid.continueHint":"After {provider}, you'll take a quick live photo.","eid.continueHintGeneric":"After your national eID, you'll take a quick live photo.","eid.resendsRemaining.one":"{count} new code left","eid.resendsRemaining.other":"{count} new codes left","eid.codeAttemptsRemaining.one":"{count} try left","eid.codeAttemptsRemaining.other":"{count} tries left"};var d={"eid.identifierTitle":"Vérifier avec {provider}","eid.identifierTitleGeneric":"Vérifier avec votre eID national","eid.identifierDescription":"Saisissez votre numéro national. {provider} vous affichera un code dans son application.","eid.identifierDescriptionGeneric":"Saisissez votre numéro national. Votre application eID vous affichera un code.","eid.boundDescription":"{provider} vous affichera un code dans son application.","eid.boundDescriptionGeneric":"Votre application eID vous affichera un code.","eid.start":"Recevoir mon code","eid.codeTitle":"Saisissez votre code {provider}","eid.codeTitleGeneric":"Saisissez le code de votre application eID","eid.codeHelp":"Ouvrez l'application {provider} pour voir votre code","eid.codeHelpGeneric":"Ouvrez votre application eID nationale pour voir votre code","eid.codeLabel":"Code","eid.verify":"Vérifier le code","eid.resend":"Recevoir un nouveau code","eid.resendIn":"Nouveau code dans {seconds} s","eid.noResendsLeft":"Vous ne pouvez plus demander de nouveau code","eid.expiresIn":"Le code expire dans {time}","eid.expired":"Ce code a expiré. Demandez un nouveau code","eid.useCamera":"Vérifier plutôt avec ma caméra","reasons.eid_identifier_invalid":"Vérifiez votre numéro national et saisissez-le à nouveau","reasons.eid_code_invalid":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","reasons.eid_code_expired":"Votre code a expiré. Demandez un nouveau code pour continuer","reasons.eid_locked":"Trop de codes incorrects. La connexion eID est bloquée pour cette vérification","reasons.eid_not_enrolled":"Ce numéro national n'est pas activé pour la connexion eID","reasons.eid_unavailable":"La connexion eID n'est pas disponible pour le moment. Réessayez dans un instant","reasons.eid_resend_too_soon":"Patientez un instant avant de demander un nouveau code","reasons.eid_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu","eid.continueHint":"Après {provider}, vous prendrez une photo rapide en direct.","eid.continueHintGeneric":"Après votre eID nationale, vous prendrez une photo rapide en direct.","eid.resendsRemaining.one":"{count} nouveau code possible","eid.resendsRemaining.other":"{count} nouveaux codes possibles","eid.codeAttemptsRemaining.one":"{count} essai restant","eid.codeAttemptsRemaining.other":"{count} essais restants"};export{e as a,n as b,d as c};
|
package/dist/chunk-KHBM3P4C.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as S,s as I}from"./chunk-IUQTOOBI.js";import{a as n}from"./chunk-2KED7D2Q.js";import{jsx as y,jsxs as R}from"react/jsx-runtime";var P=Array.from({length:56},(t,e)=>{let s=e/56*2*Math.PI-Math.PI/2,o=Math.cos(s),a=Math.sin(s);return{id:`tick-${e}`,frac:e/55,x1:150+108*o,y1:150+108*a,x2:150+138*o,y2:150+138*a,style:{transitionDelay:`${e*6}ms`}}});function T(t,e,s,o){return s?"var(--sekyro-color-success)":t?o?"color-mix(in srgb, var(--sekyro-color-warning) 75%, transparent)":e<.33?"color-mix(in srgb, var(--sekyro-color-brand) 55%, transparent)":e<.66?"color-mix(in srgb, var(--sekyro-color-brand) 80%, transparent)":"var(--sekyro-color-brand)":"color-mix(in srgb, var(--sekyro-color-surface) 32%, transparent)"}n(T,"tickColor");var A="M0 -50 H300 V350 H0 Z M50 150 a100,100 0 1 0 200,0 a100,100 0 1 0 -200,0 Z";function x({progress:t,phase:e,draining:s=!1}){let o=Math.min(1,Math.max(0,t)),a=Math.round(o*56),c=e==="checking",f=e==="recording",u=e==="frozen",l=c||u,_=c||f||u,d=e==="locked"||_,p=s&&!d;return R("svg",{"aria-hidden":"true",viewBox:"0 0 300 300",preserveAspectRatio:"xMidYMid meet",className:"sekyro-stage__arc","data-testid":"sekyro-capture-arc","data-phase":e,"data-filled":a,"data-recording":f?"":void 0,"data-draining":p?"":void 0,children:[y("path",{fillRule:"evenodd",d:A,fill:"color-mix(in srgb, var(--sekyro-color-fg) var(--sekyro-scrim, 96%), transparent)",style:{"--sekyro-scrim":l?"100%":"96%"},className:"sekyro-arc__scrim sekyro-capture-fade-in","data-testid":"sekyro-capture-scrim"}),R("g",{className:e==="locked"?"sekyro-capture-settle":void 0,children:[y("g",{className:l?"sekyro-arc__ring sekyro-arc__ring--dim":"sekyro-arc__ring",children:P.map((i,C)=>y("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:T(C<a,i.frac,d,p),strokeWidth:3,strokeLinecap:"round",style:i.style,className:"sekyro-arc__tick"},i.id))}),y("g",{className:e==="seeking"?"sekyro-capture-breathe":void 0,children:y("circle",{cx:150,cy:150,r:100,fill:"none",stroke:d?"var(--sekyro-color-success)":"var(--sekyro-color-surface)",strokeWidth:d?3.5:2.5,className:_?"sekyro-arc__guide sekyro-arc__guide--spin sekyro-capture-ring-spin":"sekyro-arc__guide sekyro-capture-fade-in","data-testid":"sekyro-capture-guide"})})]})]})}n(x,"CaptureArc");import{jsx as r,jsxs as k}from"react/jsx-runtime";function B({videoRef:t,guidanceText:e,guidanceHint:s,guidanceKey:o,progress:a,phase:c,draining:f=!1,stillUrl:u,showChecking:l,onSwitchCamera:_,canSwitchCamera:d,operatorText:p=null,voicePrompt:i,overlay:C,reduceMotion:E=!1}){let m=I(),b=c==="checking",g=b||c==="frozen",h=g&&l?m("capture.checking"):e,v=i?.(s,h,o);return k("div",{className:E?"sekyro-stage sekyro-capture-reduce":"sekyro-stage","data-testid":"sekyro-capture-stage",children:[r("video",{ref:t,playsInline:!0,muted:!0,className:"sekyro-stage__video","data-testid":"sekyro-capture-video"}),u!==null&&g?r("img",{src:u,alt:m("capture.previewAlt"),className:"sekyro-stage__still sekyro-capture-develop","data-testid":"sekyro-capture-still"}):null,r(x,{progress:a,phase:c,draining:f}),C?.(t),v!=null&&!g?r("div",{className:"sekyro-stage__corner-start","data-testid":"sekyro-voice-slot",children:v}):null,d?r(S,{kind:"chip",onClick:_,"aria-label":m("capture.switchCamera"),className:"sekyro-stage__corner-end","data-testid":"sekyro-switch-camera",children:r(G,{})}):null,b&&l?k("span",{className:"sekyro-stage__corner-end sekyro-stage__pill sekyro-capture-pill-in","data-testid":"sekyro-camera-off-pill",children:[r(U,{}),m("capture.cameraOff")]}):null,k("p",{"aria-live":"polite",className:"sekyro-stage__guidance","data-testid":"sekyro-capture-guidance",children:[r("span",{className:"sekyro-stage__guidance-text sekyro-capture-text-in",children:h},h),g&&l?r("span",{className:"sekyro-stage__guidance-hint",children:m("capture.checkingHint")}):p!==null&&!g?r("span",{className:"sekyro-stage__guidance-hint","data-testid":"sekyro-operator-line",children:p}):null]})]})}n(B,"CaptureStage");function G(){return k("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon",children:[r("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),r("path",{d:"M15.4 11.9a3.5 3.5 0 0 0-6.1-1.4M15.4 11.9h-2.1m2.1 0V9.8"}),r("path",{d:"M8.6 13.4a3.5 3.5 0 0 0 6.1 1.4M8.6 13.4h2.1m-2.1 0v2.1"})]})}n(G,"FlipCameraIcon");function U(){return k("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"sekyro-icon sekyro-icon--sm",children:[r("path",{d:"M4 7.5h2.2l1.4-1.9h8.8l1.4 1.9H20a1.6 1.6 0 0 1 1.6 1.6v8.3A1.6 1.6 0 0 1 20 19H4a1.6 1.6 0 0 1-1.6-1.6V9.1A1.6 1.6 0 0 1 4 7.5Z"}),r("path",{d:"M3 3l18 18"})]})}n(U,"CameraOffIcon");import{hasMultipleCameras as H,subscribeCameraPermission as $}from"@sekyro/web";import{useEffect as N,useState as M}from"react";function J(){let[t,e]=M({state:"unknown",settled:!1}),[s,o]=M({canChoose:!1,settled:!1});return N(()=>$(a=>e({state:a,settled:!0})),[]),N(()=>{let a=!0;return H().then(c=>{a&&o({canChoose:c,settled:!0})},()=>{a&&o({canChoose:!1,settled:!0})}),()=>{a=!1}},[]),{permission:t.state,permissionSettled:t.settled,canChooseFacing:s.canChoose,facingSettled:s.settled}}n(J,"useCameraStatus");import{screenRampColourValue as D}from"@sekyro/web";import{jsx as V}from"react/jsx-runtime";function te({colour:t}){return t===null?null:V("div",{"aria-hidden":"true","data-testid":"sekyro-screen-ramp","data-colour":t,style:{position:"fixed",inset:0,pointerEvents:"none",backgroundColor:D(t)}})}n(te,"ScreenRampLayer");export{B as a,G as b,J as c,te as d};
|
package/dist/chunk-NXVTUTKS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{u as c}from"./chunk-IUQTOOBI.js";import{a as n}from"./chunk-2KED7D2Q.js";import{createContext as d,useContext as m,useEffect as u,useRef as f,useState as x}from"react";import{jsx as i,jsxs as N}from"react/jsx-runtime";function h({id:e,title:t,lead:o}){let s=c();return N("div",{className:"sekyro-heading",children:[i("h2",{id:e,ref:s,tabIndex:-1,className:"sekyro-text-body",children:t}),o!==void 0?i("p",{className:"sekyro-text-muted",children:o}):null]})}n(h,"StepHeading");function R({children:e}){return i("div",{className:"sekyro-actions",children:e})}n(R,"StepActions");var w=d(void 0),v=d(()=>{});function C(e){let t=m(v);u(()=>(t(e),()=>t(!1)),[e,t])}n(C,"useImmersive");var g=100;function y({swapKey:e,className:t,children:o}){let[s,l]=x({key:e,node:o}),a=f(o);a.current=o;let r=s.key!==e;return u(()=>{if(!r)return;let p=setTimeout(()=>l({key:e,node:a.current}),g);return()=>clearTimeout(p)},[r,e]),i("div",{className:`${t}${r?" is-leaving":""}`,"aria-hidden":r||void 0,children:r?s.node:o},s.key)}n(y,"Swap");var b=n(({pageKey:e,children:t})=>i(y,{swapKey:e,className:"sekyro-page",children:t}),"PageSwap");export{h as a,R as b,w as c,v as d,C as e,y as f,b as g};
|
package/dist/chunk-OUG465K6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as P}from"./chunk-PYAJMHZH.js";import{d as C}from"./chunk-KHBM3P4C.js";import{e as I,f as L}from"./chunk-NXVTUTKS.js";import{a as u}from"./chunk-2KED7D2Q.js";import{useLayoutEffect as F,useRef as H,useState as U}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";var $=72;function A(l,r){let t=l*.72,o=t*1.32;return{cx:l/2,cy:(r-o)/2.1+o/2,a:t/2,b:o/2}}u(A,"faceOval");function B({cx:l,cy:r,a:t,b:o}){return Array.from({length:$},(w,d)=>{let f=-Math.PI/2+d/$*2*Math.PI,i=Math.cos(f),m=Math.sin(f),p=l+t*i,h=r+o*m,k=Math.hypot(o*i,t*m),v=o*i/k,b=t*m/k,n=u(a=>Math.round(a*10)/10,"r");return`M${n(p+v*16)} ${n(h+b*16)}L${n(p+v*28)} ${n(h+b*28)}`})}u(B,"ticks");function K({video:l,instruction:r,note:t,busy:o,progress:w,still:d,overlay:f,ramp:i,onClose:m,closeLabel:p,end:h,live:k=!0,children:v,testId:b}){I(k);let n=H(null),[a,z]=U({w:0,h:0});F(()=>{let x=n.current;if(x===null)return;let S=u(()=>z({w:x.clientWidth,h:x.clientHeight}),"measure");if(S(),typeof ResizeObserver>"u")return;let O=new ResizeObserver(S);return O.observe(x),()=>O.disconnect()},[]);let e=A(a.w,a.h),N=a.w>0?B(e):[],g=Math.round(Math.min(1,Math.max(0,w))*$),R=e.cy-e.b,y=Math.max(e.a,e.b)+40,M=70*Math.PI/180;return s("section",{className:"sekyro-lm sekyro-fc","aria-label":r,"data-testid":b,"data-ramp":i?"":void 0,children:c("div",{ref:n,className:"sekyro-lm-stage",children:[l,d?s("img",{className:"sekyro-lm-video sekyro-fc-still",src:d,alt:""}):null,f,a.w>0?c("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${a.w} ${a.h}`,"aria-hidden":"true",focusable:"false",children:[c("defs",{children:[c("linearGradient",{id:"sekyro-fc-fade",gradientUnits:"userSpaceOnUse",x1:e.cx-y*Math.sin(M),y1:e.cy,x2:e.cx,y2:e.cy,children:[s("stop",{offset:"0",className:"sekyro-fc-fade",stopOpacity:"0"}),s("stop",{offset:"1",className:"sekyro-fc-fade"})]}),s("mask",{id:"sekyro-fc-light",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a.w,height:a.h,children:s("path",{className:"sekyro-fc-sweep",style:{transformOrigin:`${e.cx}px ${e.cy}px`},d:`M${e.cx} ${e.cy}L${e.cx-y*Math.sin(M)} ${e.cy-y*Math.cos(M)}A${y} ${y} 0 0 1 ${e.cx} ${e.cy-y}Z`,fill:"url(#sekyro-fc-fade)"})})]}),s("path",{className:"sekyro-fc-scrim",fillRule:"evenodd",d:`M0 0H${a.w}V${a.h}H0Z M${e.cx-e.a} ${e.cy}a${e.a} ${e.b} 0 1 0 ${2*e.a} 0a${e.a} ${e.b} 0 1 0 ${-2*e.a} 0Z`}),s("ellipse",{className:"sekyro-fc-rim",cx:e.cx,cy:e.cy,rx:e.a,ry:e.b}),s("path",{className:"sekyro-fc-ticks",d:N.join("")}),g>0?s("path",{className:"sekyro-fc-ticks is-done",d:N.slice(0,g).join("")}):null,g<$?s("path",{className:"sekyro-fc-ticks is-light",d:N.join(""),mask:"url(#sekyro-fc-light)"}):null]}):null,s(C,{colour:i??null}),s("div",{className:"sekyro-lm-instruction sekyro-fc-instruction",style:{insetBlockStart:R-80},children:s("div",{role:"status","aria-live":"polite",children:s(L,{swapKey:r,className:"sekyro-lm-line",children:r})})}),t?c("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:R+2*e.b+48},children:[o?s("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}):null,s("span",{children:t})]}):null,c("div",{className:"sekyro-lm-controls",children:[c("div",{className:"sekyro-lm-bar",children:[m!==void 0?s("button",{type:"button",className:"sekyro-glass","aria-label":p,onClick:m,children:s(P,{name:"close"})}):null,h]}),v]})]})})}u(K,"FaceCamera");export{K as a};
|
package/dist/chunk-PYAJMHZH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as o}from"./chunk-2KED7D2Q.js";var e={id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',lock:'<path d="M2 16C2 13.17 2 11.76 2.88 10.88C3.76 10 5.17 10 8 10H16C18.83 10 20.24 10 21.12 10.88C22 11.76 22 13.17 22 16C22 18.83 22 20.24 21.12 21.12C20.24 22 18.83 22 16 22H8C5.17 22 3.76 22 2.88 21.12C2 20.24 2 18.83 2 16Z" stroke="currentColor"/><path d="M6 10V8C6 4.69 8.69 2 12 2C15.31 2 18 4.69 18 8V10" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',camera:'<path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M9.78 21H14.22C17.34 21 18.9 21 20.02 20.26C20.51 19.95 20.93 19.54 21.25 19.06C22 17.96 22 16.43 22 13.36C22 10.3 22 8.77 21.25 7.67C20.93 7.19 20.51 6.78 20.02 6.46C19.3 5.99 18.4 5.82 17.02 5.76C16.36 5.76 15.8 5.27 15.67 4.64C15.47 3.68 14.62 3 13.63 3H10.37C9.38 3 8.53 3.68 8.33 4.64C8.2 5.27 7.64 5.76 6.98 5.76C5.6 5.82 4.7 5.99 3.98 6.46C3.49 6.78 3.07 7.19 2.75 7.67C2 8.77 2 10.3 2 13.36C2 16.43 2 17.96 2.75 19.06C3.07 19.54 3.49 19.95 3.98 20.26C5.1 21 6.66 21 9.78 21Z" stroke="currentColor"/><path d="M19 10H18" stroke="currentColor" stroke-linecap="round"/>',light:'<path d="M6 12A6 6 0 1 0 18 12A6 6 0 1 0 6 12Z" stroke="currentColor"/><path d="M12 2V3" stroke="currentColor" stroke-linecap="round"/><path d="M12 21V22" stroke="currentColor" stroke-linecap="round"/><path d="M22 12L21 12" stroke="currentColor" stroke-linecap="round"/><path d="M3 12L2 12" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 4.93L18.68 5.32" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 18.68L4.93 19.07" stroke="currentColor" stroke-linecap="round"/><path d="M19.07 19.07L18.68 18.68" stroke="currentColor" stroke-linecap="round"/><path d="M5.32 5.32L4.93 4.93" stroke="currentColor" stroke-linecap="round"/>',jGlasses:'<path d="M14 16A4 4 0 1 0 22 16A4 4 0 1 0 14 16Z" stroke="currentColor"/><path d="M2 16A4 4 0 1 0 10 16A4 4 0 1 0 2 16Z" stroke="currentColor"/><path d="M14 16.21L13.34 15.98C12.47 15.67 11.53 15.67 10.66 15.98L10 16.21" stroke="currentColor" stroke-linecap="round"/><path d="M2 16L2.76 7.61C2.88 6.34 2.94 5.71 3.31 5.24C3.68 4.77 4.28 4.57 5.48 4.17L6 4" stroke="currentColor" stroke-linecap="round"/><path d="M22 16L21.24 7.61C21.12 6.34 21.06 5.71 20.69 5.24C20.32 4.77 19.72 4.57 18.52 4.17L18 4" stroke="currentColor" stroke-linecap="round"/>',smartphone:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',close:'<path d="M19.01 5L5.01 19" stroke="currentColor" stroke-linecap="round"/><path d="M19 19L5 5" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',face:'<path d="M9 16C9.85 16.63 10.88 17 12 17C13.12 17 14.15 16.63 15 16" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 10C3 6.08 6.08 3 10 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M2.2 14C3 17.92 6.08 21 10 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 10C21 6.08 17.92 3 14 2.2" stroke="currentColor" stroke-linecap="round"/><path d="M21.8 14C21 17.92 17.92 21 14 21.8" stroke="currentColor" stroke-linecap="round"/><path d="M15.5 10.5C15.5 11.05 15.28 11.5 15 11.5C14.72 11.5 14.5 11.05 14.5 10.5C14.5 9.95 14.72 9.5 15 9.5C15.28 9.5 15.5 9.95 15.5 10.5Z" stroke="currentColor"/><path d="M8.5 10.5A0.5 1 0 1 0 9.5 10.5A0.5 1 0 1 0 8.5 10.5Z" stroke="currentColor"/>',copy:'<path d="M6 11C6 8.17 6 6.76 6.88 5.88C7.76 5 9.17 5 12 5H15C17.83 5 19.24 5 20.12 5.88C21 6.76 21 8.17 21 11V16C21 18.83 21 20.24 20.12 21.12C19.24 22 17.83 22 15 22H12C9.17 22 7.76 22 6.88 21.12C6 20.24 6 18.83 6 16V11Z" stroke="currentColor"/><path d="M6 19C4.34 19 3 17.66 3 16V10C3 6.23 3 4.34 4.17 3.17C5.34 2 7.23 2 11 2H15C16.66 2 18 3.34 18 5" stroke="currentColor"/>'};import{jsx as C}from"react/jsx-runtime";function a({name:t,className:r}){return C("svg",{className:`sekyro-glyph${r?` ${r}`:""}`,viewBox:"0 0 24 24",fill:"none",stroke:"none",strokeWidth:1.5,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:e[t]}})}o(a,"Icon");export{a};
|
package/dist/chunk-XDPCJAYO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{o as n,t as r}from"./chunk-IUQTOOBI.js";import{a as o}from"./chunk-2KED7D2Q.js";import{jsx as i}from"react/jsx-runtime";function a({tone:t,children:e}){return i(r,{tone:t,children:e})}o(a,"StepNotice");function f(t,e,p){return p?t.t("common.noAttemptsLeft"):n(t.strings,t.locale,e)}o(f,"attemptsLine");export{a,f as b};
|
package/dist/chunk-YY76AMUA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as O}from"./chunk-PYAJMHZH.js";import{a as ge,b as Se,c as ye}from"./chunk-7MMT5M4E.js";import{a as we,b as be,e as Ce,f as Le}from"./chunk-NXVTUTKS.js";import{d as ke}from"./chunk-GGTRTUW3.js";import{a as ze,b as q}from"./chunk-XDPCJAYO.js";import{a as j,l as fe,m as ve}from"./chunk-IUQTOOBI.js";import{a as h}from"./chunk-2KED7D2Q.js";import{useContext as je,useEffect as E,useLayoutEffect as qe,useRef as P,useState as y}from"react";var De={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 Ne={"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 I={"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 Me={"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 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 K={"native.doc.introTitle":"We'll photograph your document","native.doc.introLead":"Your phone's camera will open. The photo is taken by itself as soon as the document is well framed.","native.doc.tip.flat":"Lay the document flat on a dark surface.","native.doc.tip.glare":"Avoid glare from lamps or sunlight.","native.doc.tip.frame":"Keep the whole document in the frame.","native.doc.openCamera":"Open the camera","native.doc.changeDocument":"Change document","native.scan.closer":"Move a little closer","native.scan.farther":"Move back a little","native.scan.glare":"Tilt the card a little","native.scan.dark":"Too dark. Turn on the light.","native.scan.blurry":"Blurry image. Hold the phone still.","native.scan.holdStill":"Hold still","native.scan.reading":"Checking your document…","native.scan.putDown":"You can put your document down.","native.scan.retry":"Let's try that again"};var $e={"native.doc.introTitle":"Nous allons photographier votre pièce","native.doc.introLead":"La caméra de votre téléphone va s'ouvrir. La photo est prise automatiquement dès que la pièce est bien cadrée.","native.doc.tip.flat":"Posez la pièce à plat, sur une surface sombre.","native.doc.tip.glare":"Évitez les reflets de lampe ou de soleil.","native.doc.tip.frame":"Gardez toute la pièce dans le cadre.","native.doc.openCamera":"Ouvrir la caméra","native.doc.changeDocument":"Changer de document","native.scan.closer":"Approchez un peu","native.scan.farther":"Reculez un peu","native.scan.glare":"Inclinez un peu la carte","native.scan.dark":"Trop sombre. Allumez la lampe.","native.scan.blurry":"Image floue. Tenez le téléphone immobile.","native.scan.holdStill":"Ne bougez plus","native.scan.reading":"Vérification de votre document…","native.scan.putDown":"Vous pouvez poser votre pièce.","native.scan.retry":"Réessayons"};var Ze=["locking","capturing"],J=class J{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,r){return this.presentHint(e,r),this.presentLock(e,r),this.presentCard(e,r),this.shutterSince=e.manualShutter?this.shutterSince??r:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&r-this.shutterSince>=1e3},this.shown}presentHint(e,r){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=r),a===this.shown.hint)return;let s=r-this.candidateSince>=(a===null?0:350),m=this.shown.hint===null||r-this.hintShownAt>=1200;s&&m&&(this.shown={...this.shown,hint:a},this.hintShownAt=r)}presentLock(e,r){if(Ze.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=r),r-this.lockLostAt>=300&&(this.shown={...this.shown,locking:!1},this.lockLostAt=null)}}presentCard(e,r){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=r),r-this.lostSince>=300&&(this.shown={...this.shown,card:null});return}if(this.lostSince=null,this.detectedSince??(this.detectedSince=r),r-this.detectedSince<250)return;let s=this.shown.card;if(s===null){this.shown={...this.shown,card:{...a}};return}let m=.35;this.shown={...this.shown,card:{fill:s.fill+(a.fill-s.fill)*m,offsetX:s.offsetX+(a.offsetX-s.offsetX)*m,offsetY:s.offsetY+(a.offsetY-s.offsetY)*m}}}};h(J,"ScanPresenter");var U=J;import{Fragment as mt,jsx as t,jsxs as d}from"react/jsx-runtime";var Je={en:K,fr:$e,ar:xe,es:K,pt:K,de:K},et=450,_e=h(n=>e=>ke(n.strings[e]??Je[n.locale][e]??""),"useScanCopy");function Re({name:n}){return t("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:De[n]}})}h(Re,"ScanGlyph");var tt={en:I,fr:Me,ar:Ne,es:I,pt:I,de:I};function nt(n,e){return n===null||n.state==="fallback"||n.state==="mismatch"?null:n.state==="searching"?e?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":n.state==="valid"?"dcv3.mrz.valid":n.coach!==void 0?`dcv3.mrz.${n.coach}`:"dcv3.mrz.reading"}h(nt,"mrzInstruction");function He(n){return n.reason==="unreadable"?"doc.reason_unreadable":n.reason!==void 0&&n.reason!=="side_missing"?ve(n.reason):null}h(He,"reasonOf");function It({step:n,i18n:e,liveMrz:r,ageLead:a,...s}){let[m,f]=y(!1),L=P(-1);return m?t(lt,{step:n,i18n:e,attempts:L,...r!==void 0?{liveMrz:r}:{},onClose:()=>f(!1)}):t(st,{step:n,i18n:e,ageLead:a===!0,onOpen:()=>f(!0),...s})}h(It,"DocumentCaptureView");function rt({passport:n}){let r=Math.round(228/(n?1.42:1.586));return d("svg",{className:"sekyro-mark sekyro-mark--card",viewBox:`-12 -12 252 ${r+24}`,"aria-hidden":"true",focusable:"false",children:[t("defs",{children:t("clipPath",{id:"sekyro-card-clip",children:t("rect",{width:228,height:r,rx:"12.5"})})}),t("rect",{className:"sekyro-mark__card",width:228,height:r,rx:"12.5"}),t("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:r*.52,rx:"6"}),[0,1,2].map(a=>t("rect",{className:"sekyro-mark__text",x:"88",y:23+a*r*.12,width:100-a*20,height:"6",rx:"3"},a)),[0,1].map(a=>t("rect",{className:"sekyro-mark__text",x:"17",y:r*.74+a*9,width:194,height:"4",rx:"2"},a)),t("g",{clipPath:"url(#sekyro-card-clip)",children:t("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:t("rect",{x:"-1",width:"2",height:r,className:"sekyro-mark__beam"})})}),t("path",{className:"sekyro-mark__brackets",d:at(-10,-10,248,r+20,16,30)})]})}h(rt,"ScanMark");function at(n,e,r,a,s,m){let f=Math.min(s,m*.6);return[[n,e,1,1],[n+r,e,-1,1],[n,e+a,1,-1],[n+r,e+a,-1,-1]].map(([k,D,w,R])=>`M${k} ${D+R*m}V${D+R*f}Q${k} ${D} ${k+w*f} ${D}H${k+w*m}`).join("")}h(at,"brackets");function st({step:n,i18n:e,ageLead:r,onOpen:a,onChangeCountry:s,onChangeDocument:m}){let f=_e(e),L=n.documentType==="passport",k=He(n);return d("section",{className:"sekyro-step","data-testid":"sekyro-document",children:[t(rt,{passport:L}),t(we,{title:f("native.doc.introTitle"),lead:r?e.t("doc.ageStepUp"):f("native.doc.introLead")}),k!==null?d(ze,{tone:"warning",children:[t("span",{children:e.t(k)}),t("span",{children:q(e,n.attemptsRemaining,n.attemptsExhausted)})]}):null,d("ul",{className:"sekyro-tiprows",children:[d("li",{children:[t(O,{name:L?"passport":"card"}),f("native.doc.tip.flat")]}),d("li",{children:[t(O,{name:"light"}),f("native.doc.tip.glare")]}),d("li",{children:[t(Re,{name:"image"}),f("native.doc.tip.frame")]})]}),m!==void 0||s!==void 0?d("div",{className:"sekyro-links",children:[m!==void 0?t("button",{type:"button",className:"sekyro-link",onClick:m,children:f("native.doc.changeDocument")}):null,s!==void 0?t("button",{type:"button",className:"sekyro-link",onClick:s,children:e.t("native.doc.changeCountry")}):null]}):null,t(be,{children:d(j,{full:!0,onClick:a,children:[t(O,{name:"camera"}),f("native.doc.openCamera")]})})]})}h(st,"DocumentIntro");function Te(n,e,r){let a=n*.88,s=a/r;return{x:(n-a)/2,y:e*.42-s/2,w:a,h:s}}h(Te,"guideRect");var ot={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"},it=h(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");function lt({step:n,i18n:e,liveMrz:r,onClose:a,attempts:s}){let m=_e(e),f=je(ge),L=P(f);L.current=f;let k=P(null),D=P(null),w=P(null),[R,Ae]=y("idle"),[v,Ee]=y(null),[F,ee]=y(null),[p,Oe]=y({w:0,h:0}),[N,Ie]=y({hint:null,locking:!1,card:null,manualShutter:!1}),[te,Ke]=y({}),[ne,Pe]=y(null),[re,Ve]=y(null),[ae,se]=y(0),[oe,ie]=y(null),[V,le]=y(null),M=n.documentType==="passport",Y=M?1.42:1.586;Ce(!0),qe(()=>{let i=k.current;if(i===null)return;let c=h(()=>Oe({w:i.clientWidth,h:i.clientHeight}),"measure");if(c(),typeof ResizeObserver>"u")return;let l=new ResizeObserver(c);return l.observe(i),()=>l.disconnect()},[]);let o=Te(p.w,p.h,Y);E(()=>{p.w===0||p.h===0||w.current?.setGuide?.({viewAspect:p.w/p.h,rect:{x:o.x/p.w,y:o.y/p.h,width:o.w/p.w,height:o.h/p.h}})},[p.w,p.h,o.x,o.y,o.w,o.h]),E(()=>{let i=D.current;if(i===null)return;let c=n.capture({video:i,...r!==void 0?{liveMrz:r}:{}});w.current=c;let l=k.current;if(l!==null&&l.clientWidth>0&&l.clientHeight>0){let u=Te(l.clientWidth,l.clientHeight,Y);c.setGuide?.({viewAspect:l.clientWidth/l.clientHeight,rect:{x:u.x/l.clientWidth,y:u.y/l.clientHeight,width:u.w/l.clientWidth,height:u.h/l.clientHeight}})}let z=new U,S={scan:null,feedback:null,gate:null},$=h(u=>{S={...S,...u};let C=S.gate?.guide,Qe={phase:S.scan?.phase??"framing",hint:S.feedback?.reticle==="coaching"?S.feedback.key:null,card:C?.detected?{fill:C.fill,offsetX:C.offsetX,offsetY:C.offsetY}:null,manualShutter:S.scan?.manualShutter??!1},T=z.present(Qe,performance.now());Ie(_=>_.hint===T.hint&&_.locking===T.locking&&_.manualShutter===T.manualShutter&&_.card?.fill===T.card?.fill&&_.card?.offsetX===T.card?.offsetX&&_.card?.offsetY===T.card?.offsetY?_:T)},"present"),We=[c.on("state",Ae),c.on("feedback",u=>$({feedback:u})),c.on("gate",u=>$({gate:u})),c.on("scan",u=>{Ee(u),$({scan:u})}),c.on("captured",u=>{Ke(C=>({...C,[ct(u.side,M,C)]:u.previewDataUrl})),Pe(u.previewDataUrl),Ve(dt(i))}),c.on("error",u=>{ee(u);let C=L.current;C!==null&&ye(C,Se("document",u,Math.max(0,s.current)))}),c.on("mrz",u=>{u.state==="mismatch"?le(u.format??null):ie(u)})];return s.current+=1,c.start().catch(()=>{}),()=>{for(let u of We)u();c.destroy(),w.current=null}},[n.issuer,n.documentType]);let b=v?.phase??"framing",x=b==="reading"||b==="result",G=b==="flipCue"||b==="reaskRecto",H=N.locking,ce=v?.captured.length??0;E(()=>{H&&se(i=>i+1)},[H]),E(()=>{ce>0&&se(i=>i+1)},[ce]);let Ye=v?.expected??null;E(()=>{ie(null)},[Ye]),E(()=>{if(V===null)return;let i=setTimeout(()=>le(null),2e3);return()=>clearTimeout(i)},[V]);let ue=G||x?null:nt(oe,M),X=V!==null?V==="TD3"?"dcv3.mrz.looksLikePassport":"dcv3.mrz.looksLikeCard":ue,Be=X===null?null:e.strings[X]??tt[e.locale][X],de=He(n),me=N.hint===null?null:ot[N.hint]??`dcv2.${N.hint}`,Ue=me??(b==="flipCue"?v?.notice==="same_face"?"doc.sameFace":"doc.flip":b==="reaskRecto"?"doc.reaskRecto":x?"native.scan.reading":b==="locking"||b==="capturing"||H?"native.scan.holdStill":v?.notice==="reread"?"doc.reread":v?.notice==="technical"?"native.scan.retry":v?.notice==="blurry"?"native.scan.blurry":de??(M?"doc.showPage":"doc.showSide")),W=Be??m(Ue),A=N.card,g=o;if(!H&&A!==null&&A.fill>=.45&&A.fill<=1.25&&!it()){let i=o.w*A.fill,c=i/Y,l=o.x+o.w/2+o.w*Math.max(-.25,Math.min(.25,A.offsetX)),z=o.y+o.h/2+o.h*Math.max(-.25,Math.min(.25,A.offsetY));g={x:l-i/2,y:z-c/2,w:i,h:c}}let B=o.w*.045,Q=28,pe=Math.min(B,Q*.6),Fe=[[g.x,g.y,1,1],[g.x+g.w,g.y,-1,1],[g.x,g.y+g.h,1,-1],[g.x+g.w,g.y+g.h,-1,-1]],Ge=H?"is-locked":N.hint!==null?"is-coaching":"",Xe=M?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],he=o.y+o.h+48,Z={insetInlineStart:o.x,insetBlockStart:o.y,inlineSize:o.w,blockSize:o.h,borderRadius:B};return t("section",{className:"sekyro-lm","aria-label":W,"data-testid":"sekyro-document",children:d("div",{ref:k,className:`sekyro-lm-stage${x?" is-reading":""}${G?" is-flip":""}`,style:{"--sekyro-guide-w":`${o.w}px`},children:[t("video",{ref:D,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:i=>{let c=i.currentTarget,l=c.getBoundingClientRect(),z=Math.max(l.width/(c.videoWidth||1),l.height/(c.videoHeight||1)),S=c.videoWidth*z,$=c.videoHeight*z;S>0&&$>0&&w.current?.focusAt((i.clientX-l.left+(S-l.width)/2)/S,(i.clientY-l.top+($-l.height)/2)/$)}}),p.w>0?d(mt,{children:[x&&re!==null?t("img",{className:"sekyro-lm-scene",src:re,alt:""}):null,x&&ne!==null?t("img",{className:"sekyro-lm-frozen",src:ne,alt:"",style:Z}):null,d("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${p.w} ${p.h}`,"aria-hidden":"true",focusable:"false",children:[d("defs",{children:[d("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[t("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),t("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),d("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[t("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),t("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),t("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${p.w}V${p.h}H0Z${ut(o,B)}`}),t("rect",{width:p.w,height:Math.max(0,o.y),fill:"url(#sekyro-lm-top)"}),t("rect",{y:o.y+o.h,width:p.w,height:Math.max(0,p.h-o.y-o.h),fill:"url(#sekyro-lm-bottom)"}),t("g",{className:`sekyro-lm-brackets ${Ge}`,children:Fe.map(([i,c,l,z],S)=>t("path",{style:{transform:`translate(${i}px, ${c}px) scale(${l}, ${z})`},d:`M0 ${Q}V${pe}Q0 0 ${pe} 0H${Q}`},S))}),H?t("rect",{className:"sekyro-lm-trace",x:o.x,y:o.y,width:o.w,height:o.h,rx:B,pathLength:"1",style:{animationDuration:`${et}ms`}}):null]}),t("div",{className:"sekyro-lm-slot",style:Z,"aria-hidden":"true",children:x?t("span",{className:"sekyro-lm-read is-repeating"}):ae>0?t("span",{className:"sekyro-lm-read"},ae):null})]}):null,ue!==null?t("div",{className:"sekyro-lm-slot",style:Z,"aria-hidden":"true",children:t("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${M?" is-page":""}${oe?.state==="valid"?" is-valid":""}`})}):null,d("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:o.y-64},children:[t("div",{role:"status","aria-live":"polite",children:t(Le,{swapKey:W,className:"sekyro-lm-line",children:W})}),de!==null&&b==="framing"&&me===null?t("p",{className:"sekyro-lm-attempts",children:q(e,n.attemptsRemaining,n.attemptsExhausted)}):null]}),x?d("p",{className:"sekyro-lm-under sekyro-lm-note",style:{insetBlockStart:he-12},children:[t("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),m("native.scan.putDown")]}):G?t("div",{className:`sekyro-lm-under sekyro-lm-flip${b==="reaskRecto"?" is-toFront":""}`,style:{insetBlockStart:he-20},"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:d("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(Y)},children:[t("span",{className:"sekyro-lm-flip-front"}),t("span",{className:"sekyro-lm-flip-back"})]})}):null,d("div",{className:"sekyro-lm-controls",children:[d("div",{className:"sekyro-lm-bar",children:[t("button",{type:"button",className:"sekyro-glass","aria-label":e.t("native.close"),onClick:a,children:t(O,{name:"close"})}),v?.torchAvailable?t("button",{type:"button",className:`sekyro-glass${v.torch?" is-on":""}`,"aria-label":e.t("doc.torchOn"),"aria-pressed":v.torch,onClick:()=>w.current?.setTorch(!v.torch),children:t(Re,{name:"flashlight"})}):null]}),F!==null?d("div",{className:"sekyro-lm-error",role:"alert",children:[t("p",{children:e.t("doc.cameraBlocked")}),t("p",{children:e.t(F.kind==="permission"?"doc.cameraBlockedHint":fe(F.kind))}),t(j,{onClick:()=>{ee(null),s.current+=1,w.current?.retry()},children:e.t("doc.retryCamera")})]}):null,N.manualShutter?t("button",{type:"button",className:"sekyro-shutter","aria-label":e.t("doc.shutter"),onClick:()=>w.current?.shutter()}):null,t("ol",{className:"sekyro-lm-tray",children:Xe.map(({side:i,label:c})=>{let l=v?.captured.includes(i)??!1;return d("li",{className:l?"is-done":void 0,"aria-current":!l&&(M||v?.expected===i)?"step":void 0,children:[l?d("span",{className:"sekyro-lm-thumb",children:[te[i]!==void 0?t("img",{src:te[i],alt:""}):null,t("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:t("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,m(c)]},i)})})]}),R==="uploading"||R==="checking"?t("span",{className:"sekyro-visually-hidden",role:"status",children:R==="uploading"?e.t("doc.uploading"):m("native.scan.reading")}):null]})})}h(lt,"LumiereScan");function ct(n,e,r){return e?"single":n==="recto"||n==="verso"?n:r.recto===void 0?"recto":"verso"}h(ct,"slotOf");function ut({x:n,y:e,w:r,h:a},s){return`M${n+s} ${e}H${n+r-s}Q${n+r} ${e} ${n+r} ${e+s}V${e+a-s}Q${n+r} ${e+a} ${n+r-s} ${e+a}H${n+s}Q${n} ${e+a} ${n} ${e+a-s}V${e+s}Q${n} ${e} ${n+s} ${e}Z`}h(ut,"roundedRect");function dt(n){let e=Math.round(n.videoWidth/4),r=Math.round(n.videoHeight/4);if(e===0||r===0||typeof document>"u")return null;try{let a=document.createElement("canvas");a.width=e,a.height=r;let s=a.getContext("2d");return s===null?null:(s.drawImage(n,0,0,e,r),a.toDataURL("image/jpeg",.7))}catch{return null}}h(dt,"sceneSnapshot");export{It as DocumentCaptureView,et as LOCK_TRACE_MS,Te as guideRect,nt as mrzInstruction,ct as slotOf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as O}from"./chunk-YY76AMUA.js";import{a as U,b as y,c as z}from"./chunk-H2KIOYQU.js";import{a as K}from"./chunk-VRDPGOXM.js";import{d as E}from"./chunk-GGTRTUW3.js";import{a as _}from"./chunk-XDPCJAYO.js";import{a as f,u as G}from"./chunk-IUQTOOBI.js";import{a}from"./chunk-2KED7D2Q.js";import{isValidNni as oe,normalizeNni as x}from"@sekyro/web";import{useEffect as $,useId as re,useRef as W,useState as S}from"react";import{Fragment as A,jsx as i,jsxs as l}from"react/jsx-runtime";var Y={en:y,fr:z,ar:U,es:y,pt:y,de:y},R=6,de=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),q=a((e,o)=>{if(e===void 0)return 0;let p=Date.parse(e)-o;return Number.isFinite(p)?Math.max(0,Math.ceil(p/1e3)):0},"secondsUntil"),se=a(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");function be({step:e,i18n:o,className:p,onError:J}){let B=o.strings,n=a((t,d)=>E(B[t]??Y[o.locale][t]??"",d),"t"),C=a((t,d)=>{let ne=new Intl.PluralRules(o.locale).select(d),V=`${t}.${ne}`,te=B[V]??Y[o.locale][V]??n(`${t}.other`);return E(te,{count:new Intl.NumberFormat(o.locale).format(d)})},"plural"),g=a(t=>e.providerName?n(`eid.${t}`,{provider:e.providerName}):n(`eid.${t}Generic`),"named"),[w,Q]=S(""),[v,I]=S(""),[c,P]=S(!1),[k,u]=S(null),r=e.phase==="code",D=O(r),s=re(),X=G(),m=a(async t=>{P(!0),u(null);try{await t()}catch(d){u(K(d,o.strings)),J?.(d)}finally{P(!1)}},"run"),F=W(!1);$(()=>{!e.identifierBound||r||e.reason!==void 0||F.current||(F.current=!0,m(()=>e.start()))},[e.identifierBound,r,e.reason]),$(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&I("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let M=W(r);$(()=>{r&&!M.current&&document.getElementById(`${s}-code`)?.focus(),M.current=r},[r,s]);let b=e.reason==="eid_locked",T=q(e.codeExpiresAt,D),H=r&&e.codeExpiresAt!==void 0&&T===0,h=q(e.resendAvailableAt,D),L=e.resendsRemaining===0||e.reason==="eid_resend_limit",Z=a(t=>{if(t.preventDefault(),r){v.length===R&&!b&&m(()=>e.verify(v));return}if(e.identifierBound){m(()=>e.start());return}let d=x(w);if(e.country==="MR"){if(!/^\d{10}$/.test(d))return u("population.invalid");if(!oe(d))return u("population.reason_nni_invalid")}m(()=>e.start(d))},"onSubmit"),N=e.reason?.startsWith("eid_")?e.reason:void 0,j=l(A,{children:[N!==void 0?l(_,{tone:de.has(N)?"danger":"warning",children:[i("span",{children:n(`reasons.${N}`)}),N==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?i("span",{children:C("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?i(f,{kind:"ghost",disabled:c,onClick:()=>{m(()=>e.useCamera())},children:n("eid.useCamera")}):null]}):null,k!==null?i(_,{tone:"danger",children:i("span",{children:o.t(k)})}):null]}),[ee,ie]=r?[g("codeTitle"),g("codeHelp")]:[g("identifierTitle"),g(e.identifierBound?"boundDescription":"identifierDescription")];return l("form",{className:`sekyro-stack sekyro-stack--4 sekyro-otp${p?` ${p}`:""}`,"aria-labelledby":s,onSubmit:Z,noValidate:!0,"data-testid":"sekyro-eid",children:[l("div",{className:"sekyro-stack sekyro-stack--1",children:[i("h2",{id:s,ref:X,tabIndex:-1,className:"sekyro-text-body",children:ee}),i("p",{className:"sekyro-text-muted",children:ie}),e.afterPass==="continue"?i("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?n("eid.continueHint",{provider:e.providerName}):n("eid.continueHintGeneric")}):null]}),j,r?l(A,{children:[l("div",{className:"sekyro-field",children:[i("label",{className:"sekyro-label",htmlFor:`${s}-code`,children:n("eid.codeLabel")}),i("input",{id:`${s}-code`,className:"sekyro-input sekyro-input--code",dir:"ltr",inputMode:"numeric",autoComplete:"one-time-code",value:v,disabled:b,onChange:t=>{u(null),I(x(t.target.value).replace(/\D/g,"").slice(0,R))}})]}),l("div",{className:"sekyro-row",children:[e.codeExpiresAt!==void 0?i("span",{className:"sekyro-text-muted",children:H?n("eid.expired"):n("eid.expiresIn",{time:se(T)})}):null,L?i("span",{className:"sekyro-text-muted",children:n("eid.noResendsLeft")}):i(f,{kind:"ghost",disabled:c||h>0||b,onClick:()=>{m(()=>e.resend())},children:h>0?n("eid.resendIn",{seconds:h}):n("eid.resend")})]}),!L&&e.resendsRemaining!==void 0?i("p",{className:"sekyro-text-muted",children:C("eid.resendsRemaining",e.resendsRemaining)}):null,i("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:H?n("eid.expired"):""}),i(f,{type:"submit",full:!0,disabled:c||v.length!==R||b,"aria-busy":c||void 0,children:n("eid.verify")})]}):l(A,{children:[e.identifierBound?null:l("div",{className:"sekyro-field",children:[i("label",{className:"sekyro-label",htmlFor:`${s}-nni`,children:o.t("population.label")}),i("input",{id:`${s}-nni`,className:"sekyro-input sekyro-mono",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:o.t("population.placeholder"),value:w,"aria-describedby":`${s}-nni-help`,"aria-invalid":k==="population.invalid"||k==="population.reason_nni_invalid"||void 0,onChange:t=>{u(null),Q(x(t.target.value).replace(/\D/g,"").slice(0,10))}}),i("span",{id:`${s}-nni-help`,className:"sekyro-help",children:o.t("population.helper")})]}),i(f,{type:"submit",full:!0,disabled:c,"aria-busy":c||void 0,children:n("eid.start")})]})]})}a(be,"EidView");export{be as EidView};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as R}from"./chunk-EZ5TVL6P.js";import{a as L}from"./chunk-YY76AMUA.js";import{a as $,b}from"./chunk-NXVTUTKS.js";import{a as V}from"./chunk-VRDPGOXM.js";import{d as w}from"./chunk-GGTRTUW3.js";import{a as O,b as A}from"./chunk-XDPCJAYO.js";import{a as h}from"./chunk-IUQTOOBI.js";import{a as s}from"./chunk-2KED7D2Q.js";import{OtpInputError as G}from"@sekyro/web";import{useId as K,useState as y}from"react";var P={"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":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا"};var c={"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 verification code","emailOtp.verifyDescription":"Type the 6-digit code we emailed you to finish verifying your address","emailOtp.sentTo":"We sent a 6-digit code to {email}","emailOtp.codeLabel":"Verification code","emailOtp.codeHelper":"Enter the 6-digit code from the email","emailOtp.verify":"Verify code","emailOtp.resend":"Resend code","emailOtp.resendIn":"Resend code in {seconds}s","emailOtp.expiresIn":"Code expires in {time}","emailOtp.expired":"That code has expired. Resend a new one","emailOtp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","emailOtp.reason_otp_expired":"That code has expired. Resend a new code to continue","emailOtp.reason_otp_send_failed":"We couldn't send the email. Try again in a moment","emailOtp.reason_otp_rate_limited":"Too many codes requested. Wait a moment, then try again","emailOtp.reason_email_invalid":"We can't send to this address. Check it or enter another one","emailOtp.reason_email_disposable":"Use a permanent email address, not a temporary one"};var D={"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 adresse e-mail","emailOtp.sendDescription":"Nous vous enverrons par e-mail un code à usage unique pour confirmer que cette adresse vous appartient","emailOtp.prefilledNotice":"Nous enverrons un code de vérification à votre adresse e-mail enregistrée.","emailOtp.emailLabel":"Adresse e-mail","emailOtp.emailHelper":"Nous enverrons un code à usage unique à cette adresse","emailOtp.emailPlaceholder":"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 de vérification","emailOtp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé par e-mail pour finaliser la vérification de votre adresse","emailOtp.sentTo":"Nous avons envoyé un code à 6 chiffres à {email}","emailOtp.codeLabel":"Code de vérification","emailOtp.codeHelper":"Saisissez le code à 6 chiffres reçu par e-mail","emailOtp.verify":"Vérifier le code","emailOtp.resend":"Renvoyer le code","emailOtp.resendIn":"Renvoyer le code dans {seconds} s","emailOtp.expiresIn":"Le code expire dans {time}","emailOtp.expired":"Ce code a expiré. Renvoyez-en un nouveau","emailOtp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","emailOtp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","emailOtp.reason_otp_send_failed":"Nous n'avons pas pu envoyer l'e-mail. Réessayez dans un instant","emailOtp.reason_otp_rate_limited":"Trop de codes demandés. Patientez un instant, puis réessayez","emailOtp.reason_email_invalid":"Nous ne pouvons pas envoyer à cette adresse. Vérifiez-la ou saisissez-en une autre","emailOtp.reason_email_disposable":"Utilisez une adresse e-mail permanente, pas une adresse temporaire"};import{Fragment as S,jsx as i,jsxs as l}from"react/jsx-runtime";var j={en:c,fr:D,ar:P,es:c,pt:c,de:c},W=s((e,r)=>{if(e===void 0)return 0;let d=Date.parse(e)-r;return Number.isFinite(d)?Math.max(0,Math.ceil(d/1e3)):0},"secondsUntil"),J=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),Q=new Set(["otp_expired","otp_send_failed","otp_rate_limited","email_invalid","email_disposable","otp_daily_cap_reached"]);function ue({step:e,i18n:r,className:d,defaultEmail:g="",onError:H}){let a=s((t,p)=>w(r.strings[t]??j[r.locale][t],p),"t"),[v,M]=y(g),[u,q]=y(""),[n,E]=y(!1),[N,x]=y(null),m=e.phase==="verify",k=L(m),o=K(),T=s(async t=>{E(!0),x(null);try{await t()}catch(p){x(p instanceof G&&p.field==="email"?a("emailOtp.emailInvalid"):r.t(V(p,r.strings))),H?.(p)}finally{E(!1)}},"run"),C=s(t=>{T(()=>e.send(e.needsEmail&&(!t||v!==g)?{email:v}:{}))},"send"),z=s(t=>{T(()=>e.verify(t))},"submitCode"),F=s(t=>{t.preventDefault(),m?z(u):C(!1)},"onSubmit"),I=W(e.codeExpiresAt,k),_=W(e.resendAvailableAt,k),f=m&&e.codeExpiresAt!==void 0&&I===0,[B,U]=a("emailOtp.sentTo").split("{email}"),Y=e.reason==="otp_mismatch"?l(O,{tone:"danger",children:[i("span",{children:a("emailOtp.reason_otp_mismatch")}),i("span",{children:A(r,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Q.has(e.reason)?i(O,{tone:"warning",children:i("span",{children:a(`emailOtp.reason_${e.reason}`)})}):null;return l("form",{className:`sekyro-step sekyro-otp${d?` ${d}`:""}`,"aria-labelledby":o,onSubmit:F,noValidate:!0,children:[i($,{id:o,title:a(m?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:m?l(S,{children:[B,i("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),U]}):a("emailOtp.sendDescription")}),Y,N!==null?i(O,{tone:"danger",children:i("span",{children:N})}):null,m?l(S,{children:[l("div",{className:"sekyro-field",children:[i("label",{className:"sekyro-label",htmlFor:`${o}-code`,children:a("emailOtp.codeLabel")}),i(R,{id:`${o}-code`,value:u,invalid:e.reason==="otp_mismatch",onChange:t=>{q(t),t.length===6&&u.length!==6&&!n&&!e.attemptsExhausted&&z(t)}}),i("span",{className:`sekyro-help sekyro-otp-expiry${f?" is-danger":""}`,"aria-hidden":!f||void 0,children:f?a("emailOtp.expired"):a("emailOtp.expiresIn",{time:J(I)})})]}),i("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:f?a("emailOtp.expired"):""}),l(b,{children:[i(h,{type:"submit",full:!0,disabled:n||u.length!==6,"aria-busy":n||void 0,children:a("emailOtp.verify")}),i("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:n||_>0,onClick:()=>C(!0),children:_>0?a("emailOtp.resendIn",{seconds:_}):a("emailOtp.resend")})]})]}):l(S,{children:[e.needsEmail?l("div",{className:"sekyro-field",children:[i("label",{className:"sekyro-label",htmlFor:`${o}-email`,children:a("emailOtp.emailLabel")}),i("input",{id:`${o}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:a("emailOtp.emailPlaceholder"),value:v,"aria-describedby":`${o}-email-help`,onChange:t=>M(t.target.value)}),i("span",{id:`${o}-email-help`,className:"sekyro-help",children:a("emailOtp.emailHelper")})]}):i("p",{className:"sekyro-text-muted",children:a("emailOtp.prefilledNotice")}),i(b,{children:i(h,{type:"submit",full:!0,disabled:n,"aria-busy":n||void 0,children:a("emailOtp.send")})})]})]})}s(ue,"EmailOtpView");export{ue as EmailOtpView};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as U,b as R,c as N,d as Y}from"./chunk-FNBG3472.js";import{a as K}from"./chunk-PYAJMHZH.js";import{f as M,j as B}from"./chunk-5TOBG5R2.js";import"./chunk-7MMT5M4E.js";import"./chunk-KHBM3P4C.js";import"./chunk-NXVTUTKS.js";import{a as E,b as I,c as H}from"./chunk-H2KIOYQU.js";import"./chunk-VRDPGOXM.js";import{d as P}from"./chunk-GGTRTUW3.js";import{a as x}from"./chunk-XDPCJAYO.js";import{a as w,u as S}from"./chunk-IUQTOOBI.js";import{a as m}from"./chunk-2KED7D2Q.js";import{HostedApiError as fe}from"@sekyro/web";import{detectIsMobile as J}from"@sekyro/web/core";import{useEffect as q,useId as F,useMemo as C,useRef as ye,useState as _}from"react";var $={"consent.human.terms.intro":"تؤكد Sekyro AI أن شخصًا حقيقيًا يُجري هذه الخطوة، نيابةً عن الجهة التي طلبتها.","consent.human.terms.data":"تلتقط Sekyro AI تسجيلًا قصيرًا لوجهك.","consent.human.terms.processing":"يُفحص هذا التسجيل للتأكد من أنك شخص حقيقي وحاضر، وقد يُقارَن بالوجوه التي سبق التحقق منها لدى هذه الجهة.","consent.human.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.human.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون وإعدادات الجهة. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.noCamera.title":"تتطلب هذه الخطوة كاميرا","capture.noCamera.body":"اسمح بالوصول إلى الكاميرا وحاول مرة أخرى، أو تابع على هاتف مزوّد بكاميرا.","capture.noCamera.continue":"المتابعة بدون كاميرا","capture.noCamera.deniedTitle":"اسمح بالوصول إلى الكاميرا للمتابعة","capture.noCamera.deniedBody":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","choice.title":"كيف تريد المتابعة؟","choice.description":"اختر خيارًا واحدًا.","choice.switch":"استخدم خيارًا آخر","contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف الموريتاني (NNI)","summary.id_number":"رقم الهوية","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة. تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة. يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك: دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي. الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح هذه الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط. الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال"};var A={"consent.human.terms.intro":"Sekyro AI confirms that a real person is completing this step, on behalf of the organization that asked for it.","consent.human.terms.data":"Sekyro AI collects a short capture of your face.","consent.human.terms.processing":"The capture is checked to confirm that you are a real person who is present. It may be compared with faces already verified for this organization.","consent.human.terms.sharing":"The organization that requested this verification learns its outcome.","consent.human.terms.retention":"Your data is stored encrypted and kept only as long as the law and the organization's settings require. To exercise your data-protection rights, contact the organization that requested this verification.","capture.noCamera.title":"This step needs a camera","capture.noCamera.body":"Allow camera access and try again, or continue on a phone with a camera.","capture.noCamera.continue":"Continue without a camera","capture.noCamera.deniedTitle":"Allow camera access to continue","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","choice.title":"How do you want to continue?","choice.description":"Choose one option.","choice.switch":"Use another option","contact.title":"How do you want to get your code?","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"Mauritanian national ID number (NNI)","summary.id_number":"ID number","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again. Contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps. A religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face: no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed. Only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link. Copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open this page in your browser","inApp.description":"The camera doesn't work well inside this app. Open the link in Chrome or Safari to continue.","inApp.copyLink":"Copy link","inApp.copied":"Link copied. Paste it in your browser","inApp.copyFailed":"We couldn't copy the link. Copy this page's address instead","inApp.continueAnyway":"Continue here anyway"};var G={"consent.human.terms.intro":"Sekyro AI confirme qu'une personne réelle effectue cette étape, pour le compte de l'organisme qui l'a demandée.","consent.human.terms.data":"Sekyro AI recueille une courte capture de votre visage.","consent.human.terms.processing":"La capture est analysée pour confirmer que vous êtes une personne réelle et présente. Elle peut être comparée aux visages déjà vérifiés pour cet organisme.","consent.human.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.human.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi et les paramètres de l'organisme. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.noCamera.title":"Cette étape nécessite une caméra","capture.noCamera.body":"Autorisez l'accès à la caméra et réessayez, ou continuez sur un téléphone équipé d'une caméra.","capture.noCamera.continue":"Continuer sans caméra","capture.noCamera.deniedTitle":"Autorisez l'accès à la caméra pour continuer","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","choice.title":"Comment voulez-vous continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","contact.title":"Comment voulez-vous recevoir votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification mauritanien (NNI)","summary.id_number":"Numéro d'identité","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer. Contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette. Un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme : sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée. Seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien. Copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez cette page dans votre navigateur","inApp.description":"La caméra fonctionne mal dans cette application. Ouvrez le lien dans Chrome ou Safari pour continuer.","inApp.copyLink":"Copier le lien","inApp.copied":"Lien copié. Collez-le dans votre navigateur","inApp.copyFailed":"Impossible de copier le lien. Copiez plutôt l'adresse de cette page","inApp.continueAnyway":"Continuer ici quand même"};var D=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]],[30,[[1,50],[4,51]]],[22,[[6,36],[2,37]]],[22,[[8,37],[1,38]]],[24,[[4,40],[5,41]]],[24,[[5,41],[5,42]]],[28,[[7,45],[3,46]]],[28,[[10,46],[1,47]]],[26,[[9,43],[4,44]]],[26,[[3,44],[11,45]]],[26,[[3,41],[13,42]]]],Q=D.length,re=0,L=m(e=>(D[e-1]?.[1]??[]).reduce((t,[n,o])=>t+n*o,0),"dataCapacity");function T(e,t){let n=0;for(let o=7;o>=0;o-=1)n=n<<1^(n>>>7)*285,n^=(t>>>o&1)*e;return n&255}m(T,"gfMul");function ae(e){let t=new Array(e).fill(0);t[e-1]=1;let n=1;for(let o=0;o<e;o+=1){for(let a=0;a<e;a+=1)t[a]=T(t[a],n),a+1<e&&(t[a]=t[a]^t[a+1]);n=T(n,2)}return t}m(ae,"rsDivisor");function ie(e,t){let n=t.map(()=>0);for(let o of e){let a=o^n.shift();n.push(0),t.forEach((i,s)=>{n[s]=n[s]^T(i,a)})}return n}m(ie,"rsRemainder");function se(e,t){let n=[],o=m((p,d)=>{for(let b=d-1;b>=0;b-=1)n.push(p>>>b&1)},"put");o(4,4),o(e.length,t<10?8:16);for(let p of e)o(p,8);let a=L(t)*8;o(0,Math.min(4,a-n.length)),o(0,(8-n.length%8)%8);let i=[];for(let p=0;p<n.length;p+=8)i.push(n.slice(p,p+8).reduce((d,b)=>d<<1|b,0));for(let p=236;i.length<L(t);p^=253)i.push(p);let[s,r]=D[t-1],c=ae(s),u=[],f=0;for(let[p,d]of r)for(let b=0;b<p;b+=1){let v=i.slice(f,f+d);f+=d,u.push({data:v,ec:ie(v,c)})}let h=[],y=Math.max(...u.map(p=>p.data.length));for(let p=0;p<y;p+=1)for(let d of u)p<d.data.length&&h.push(d.data[p]);for(let p=0;p<s;p+=1)for(let d of u)h.push(d.ec[p]);return h}m(se,"codewords");function ce(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.ceil((e*4+4)/(t*2-2))*2,o=[6];for(let a=e*4+10;o.length<t;a-=n)o.splice(1,0,a);return o}m(ce,"alignmentPositions");var ue=[(e,t)=>(e+t)%2===0,e=>e%2===0,(e,t)=>t%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0],O=class O{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,n,o){this.dark[t*this.size+n]=o,this.fixed[t*this.size+n]=!0}get(t,n){return this.dark[t*this.size+n]===!0}};m(O,"Grid");var V=O;function le(e,t){let n=e.size;for(let i=0;i<n;i+=1)e.set(6,i,i%2===0),e.set(i,6,i%2===0);for(let[i,s]of[[3,3],[3,n-4],[n-4,3]])for(let r=-4;r<=4;r+=1)for(let c=-4;c<=4;c+=1){let u=i+r,f=s+c;if(u<0||u>=n||f<0||f>=n)continue;let h=Math.max(Math.abs(r),Math.abs(c));e.set(u,f,h!==2&&h!==4)}let o=ce(t),a=o.length-1;if(o.forEach((i,s)=>o.forEach((r,c)=>{if(!(s===0&&c===0||s===0&&c===a||s===a&&c===0))for(let u=-2;u<=2;u+=1)for(let f=-2;f<=2;f+=1)e.set(i+u,r+f,Math.max(Math.abs(u),Math.abs(f))!==1)})),W(e,0),t>=7){let i=t;for(let r=0;r<12;r+=1)i=i<<1^(i>>>11)*7973;let s=t<<12|i;for(let r=0;r<18;r+=1){let c=(s>>>r&1)===1,u=n-11+r%3,f=Math.floor(r/3);e.set(u,f,c),e.set(f,u,c)}}}m(le,"drawFunctionPatterns");function W(e,t){let n=e.size,o=re<<3|t,a=o;for(let r=0;r<10;r+=1)a=a<<1^(a>>>9)*1335;let i=(o<<10|a)^21522,s=m(r=>(i>>>r&1)===1,"bit");for(let r=0;r<=5;r+=1)e.set(r,8,s(r));e.set(7,8,s(6)),e.set(8,8,s(7)),e.set(8,7,s(8));for(let r=9;r<15;r+=1)e.set(8,14-r,s(r));for(let r=0;r<8;r+=1)e.set(8,n-1-r,s(r));for(let r=8;r<15;r+=1)e.set(n-15+r,8,s(r));e.set(n-8,8,!0)}m(W,"drawFormat");function me(e,t){let n=e.size,o=0;for(let a=n-1;a>=1;a-=2){a===6&&(a=5);for(let i=0;i<n;i+=1)for(let s=0;s<2;s+=1){let r=a-s,u=(a+1&2)===0?n-1-i:i;e.fixed[u*n+r]!==!0&&(o<t.length*8&&(e.dark[u*n+r]=(t[o>>>3]>>>7-(o&7)&1)===1),o+=1)}}}m(me,"placeData");function pe(e,t){let n=ue[t];for(let o=0;o<e.size;o+=1)for(let a=0;a<e.size;a+=1)e.fixed[o*e.size+a]!==!0&&n(o,a)&&(e.dark[o*e.size+a]=!e.dark[o*e.size+a])}m(pe,"applyMask");function de(e){let t=e.size,n=0,o=m(i=>{let s=1;for(let r=1;r<=t;r+=1)r<t&&i(r)===i(r-1)?s+=1:(s>=5&&(n+=3+(s-5)),s=1);for(let r=0;r+10<t;r+=1){let c=[!0,!1,!0,!0,!0,!1,!0];if(!(c.every((y,p)=>i(r+p)===y)||c.every((y,p)=>i(r+4+p)===y)))continue;let f=[0,1,2,3].every(y=>!i(r+y))&&c.every((y,p)=>i(r+4+p)===y),h=c.every((y,p)=>i(r+p)===y)&&[7,8,9,10].every(y=>!i(r+y));f&&(n+=40),h&&(n+=40)}},"line");for(let i=0;i<t;i+=1)o(s=>e.get(i,s));for(let i=0;i<t;i+=1)o(s=>e.get(s,i));for(let i=0;i+1<t;i+=1)for(let s=0;s+1<t;s+=1){let r=e.get(i,s);r===e.get(i,s+1)&&r===e.get(i+1,s)&&r===e.get(i+1,s+1)&&(n+=3)}let a=e.dark.filter(Boolean).length;return n+=Math.floor(Math.abs(a*20-t*t*10)/(t*t))*10,n}m(de,"penalty");function j(e,t={}){let n=new TextEncoder().encode(e),o=1;for(;o<=Q&&!(4+(o<10?8:16)+n.length*8<=L(o)*8);o+=1);if(o>Q)throw new RangeError("text too long for a QR code");let a=se(n,o),i=m(c=>{let u=new V(o*4+17);return le(u,o),me(u,a),pe(u,c),W(u,c),u},"build"),s=null;if(t.mask!==void 0)s=i(t.mask);else{let c=Number.POSITIVE_INFINITY;for(let u=0;u<8;u+=1){let f=i(u),h=de(f);h<c&&(c=h,s=f)}}let r=s;return{size:r.size,get:m((c,u)=>r.get(c,u),"get")}}m(j,"encodeQr");function X(e,t=4){let n=[];for(let o=0;o<e.size;o+=1)for(let a=0;a<e.size;a+=1)e.get(o,a)&&n.push(`M${a+t} ${o+t}h1v1h-1z`);return{size:e.size+t*2,d:n.join("")}}m(X,"qrPath");import{Fragment as Ce,jsx as l,jsxs as k}from"react/jsx-runtime";var he={en:A,fr:G,ar:$,es:A,pt:A,de:A},Z={en:I,fr:H,ar:E,es:I,pt:I,de:I};function g(e){let t=e.strings;return(n,o)=>P(t[n]??he[e.locale][n]??"",o)}m(g,"flowT");function ee(e,t){let n=g(t);return e.flatMap(o=>{let a=o.service==="phone_otp"?n("contact.phone"):o.service==="email_otp"?n("contact.email"):R(o,t),i=U[o.service];return a===null?[]:[{id:o.id,label:a,...i!==void 0?{glyph:l(K,{name:i})}:{}}]})}m(ee,"labelled");function te({step:e,i18n:t,onError:n}){let o=g(t),{busy:a,error:i,run:s}=N(t,n),r=e.kind==="contact_choice";return l(M,{title:o(r?"contact.title":"choice.title"),description:o(r?"contact.description":"choice.description"),options:ee(e.choice.options,t),busy:a,error:i,focus:!0,testId:r?"sekyro-contact-choice":"sekyro-choice",onChoose:c=>s(()=>e.choose(c))})}m(te,"PlanChoiceView");var Ge=te,Qe=te;function We({step:e,i18n:t,onError:n,onOpen:o}){let a=g(t),{busy:i,error:s,run:r}=N(t,n),c=e,u=e.context.switchable,f=u===void 0?[]:u.options.filter(v=>v.id!==u.current),h=c.kind==="registry"&&(c.reason==="nni_not_found"||c.reason==="registry_record_not_found")&&c.canUseDocument||c.kind==="eid"&&c.reason?.startsWith("eid_")&&c.canUseCamera,y=f.length===1?f[0]:void 0,p=y!==void 0&&(y.service==="phone_otp"||y.service==="email_otp"),d=p&&c.canSwitch&&c.switchTo!==void 0?()=>c.switchTo.call(e):c.chooseOption===void 0||y===void 0?void 0:()=>c.chooseOption.call(e,y.id);if(f.length===0||h||y!==void 0&&(d===void 0||b()===null)||y===void 0&&c.chooseOption===void 0)return null;function b(){return y===void 0?a("choice.switch"):y.service==="phone_otp"||y.service==="email_otp"?a("contact.switch"):c.kind==="registry"&&y.service==="document"?t.t("population.useDocument"):c.kind==="eid"?t.strings["eid.useCamera"]??Z[t.locale]["eid.useCamera"]:R(y,t)}return m(b,"labelOf"),k("div",{className:"sekyro-stack sekyro-stack--1",children:[s!==null?l(x,{tone:"danger",children:l("span",{children:s})}):null,l(w,{kind:"ghost",disabled:i,"aria-busy":i||void 0,onClick:()=>d===void 0?o():r(d),"data-testid":p?"sekyro-contact-switch":"sekyro-lane-switch",children:b()})]})}m(We,"LaneSwitch");function je({step:e,i18n:t,onError:n,onClose:o}){let a=g(t),{busy:i,error:s,run:r}=N(t,n),c=e.context.switchable,u=e.chooseOption;return c===void 0||u===void 0?null:l(M,{title:a("choice.title"),description:a("choice.description"),options:ee(c.options,t),...c.current!==null?{marked:c.current}:{},busy:i,error:s,focus:!0,testId:"sekyro-lane-choice",onChoose:f=>f===c.current?o():r(()=>u.call(e,f))})}m(je,"LaneChoiceView");var be=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["idNumberMasked","summary.id_number",!0],["expiryDate","summary.expiryDate",!0]];function ke(e){let[t,n]=_(null);return q(()=>{if(!e.portraitAvailable)return;let o=!0,a=null;return e.portrait().then(i=>{!o||i===null||!i.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(a=URL.createObjectURL(i),n(a))}),()=>{o=!1,a!==null&&URL.revokeObjectURL(a)}},[e.portraitAvailable]),t}m(ke,"usePortraitUrl");function Xe({step:e,i18n:t,onError:n}){let o=g(t),a=F(),i=S(),s=ke(e),{busy:r,error:c,run:u}=N(t,n),f=e.context.orgName,h=["registry","document","chip"].find(d=>d===e.source),y=e.summaryKind==="partial",p=m(d=>t.strings[`doc.type.${d}`]??d,"documentLabel");return k("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":a,"data-testid":"sekyro-identity-summary",children:[k("div",{className:"sekyro-stack sekyro-stack--1",children:[l("h2",{id:a,ref:i,tabIndex:-1,className:"sekyro-text-body",children:o("summary.title")}),l("p",{className:"sekyro-text-muted",children:o("summary.description")}),h!==void 0?l("p",{className:"sekyro-text-muted",children:o(`summary.source.${h}`)}):null]}),k("div",{className:"sekyro-summary",children:[s!==null?l("img",{className:"sekyro-summary__portrait",src:s,alt:o("summary.portraitAlt")}):null,l("dl",{className:"sekyro-summary__list",children:be.map(([d,b,v])=>{let z=d==="idNumberMasked"?e.idNumberMasked??e.nniMasked:e[d];return z===void 0?null:k("div",{className:"sekyro-summary__row",children:[l("dt",{className:"sekyro-text-muted",children:o(d==="fullName"&&y?"summary.name":b)}),l("dd",{children:v?l("bdi",{dir:"ltr",children:z}):d==="documentType"?p(z):z})]},d)})})]}),c!==null?l(x,{tone:"danger",children:l("span",{children:c})}):null,k("div",{className:"sekyro-stack sekyro-stack--3",children:[l(w,{full:!0,disabled:r,"aria-busy":r||void 0,onClick:()=>u(()=>e.confirm()),children:o("summary.confirm")}),e.retakeAvailable?l(w,{kind:"ghost",full:!0,disabled:r,onClick:()=>u(()=>e.retake()),children:o(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):l("p",{className:"sekyro-text-muted",children:o("summary.noRetake",{org:f})})]})]})}m(Xe,"IdentitySummaryView");var ge=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function Je({step:e,i18n:t,livenessProps:n,sekyroIntro:o}){let a=g(t),[i,s]=_(null);q(()=>e.onLivePhoto(d=>{let b=d.update?.coach;s(d.holding||b===void 0?null:t.t(`portrait.coach.${b}`))}),[e,t]);let r=e.instructions==="icao",c=e.icao?.profile==="selfie",u=C(()=>r?ge.filter(d=>!c||d!=="background").map(d=>({id:d,text:a(`capture.tipsIcao.${d}`)})):void 0,[r,c,t]),f=C(()=>r&&!c?{...n.strings,"capture.tips.title":a("capture.tipsIcao.title")}:n.strings,[r,c,n.strings,t]),h=c?void 0:a("capture.tipsIcao.title"),y=C(()=>o===!0&&u!==void 0?{...n.slots,intro:m((d,b)=>l(Y,{start:d,context:b,tips:u,...h!==void 0?{tipsTitle:h}:{}}),"intro")}:n.slots,[o,u,h,n.slots,t]),p=c?`${(u??[]).map(d=>d.text).join(". ")}.`:a("capture.tipsIcao.summary");return l(B,{...n,...y!==void 0?{slots:y}:{},...f!==void 0?{strings:f}:{},...u!==void 0?{tips:u,tipsSummary:p}:{},coach:i})}m(Je,"LivePhotoLiveness");function Ze({i18n:e}){let t=g(e);return k(x,{tone:"info",children:[l("strong",{children:t("portrait.retakeOnly")}),l("span",{children:t("portrait.keepCamera")})]})}m(Ze,"PortraitRetakeNotice");function et({i18n:e,provider:t}){let n=e.strings,o=m(a=>n[a]??Z[e.locale][a]??"","pick");return l("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?P(o("eid.continueHint"),{provider:t}):o("eid.continueHintGeneric")})}m(et,"EidContinueHint");async function we(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}m(we,"copy");function oe({url:e,i18n:t,label:n}){let o=g(t),[a,i]=_("idle"),s=n.startsWith("inApp.")?"inApp":"handoff";return k("div",{className:"sekyro-stack sekyro-stack--1",children:[l(w,{kind:"ghost",onClick:()=>{we(e).then(r=>i(r?"copied":"failed"))},children:o(n)}),l("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:a==="idle"?"":o(`${s}.${a==="copied"?"copied":"copyFailed"}`)})]})}m(oe,"CopyLink");function ne({url:e,i18n:t,refresh:n,footer:o}){let a=g(t),i=F(),s=C(()=>{try{return X(j(e))}catch{return null}},[e]),r=ye(n);r.current=n;let c=S();return q(()=>{let u=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&r.current?.().catch(()=>{})},5e3);return()=>clearInterval(u)},[]),k("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":i,"data-testid":"sekyro-handoff",children:[l("h2",{id:i,ref:c,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),l("p",{className:"sekyro-text-muted",children:a("handoff.description")}),s!==null?k("svg",{className:"sekyro-qr",viewBox:`0 0 ${s.size} ${s.size}`,role:"img","aria-label":a("handoff.qrAlt"),shapeRendering:"crispEdges",children:[l("rect",{width:s.size,height:s.size,className:"sekyro-qr__bg"}),l("path",{d:s.d,className:"sekyro-qr__fg"})]}):null,l(oe,{url:e,i18n:t,label:"handoff.copyLink"}),l("p",{className:"sekyro-text-muted",children:a("handoff.waiting")}),o??null]})}m(ne,"HandoffView");var ve=["intro","data","processing","sharing","retention"];function tt({i18n:e}){let t=g(e);return l(Ce,{children:ve.map(n=>l("p",{children:t(`consent.human.terms.${n}`)},n))})}m(tt,"HumanConsentTerms");function ot({url:e,i18n:t}){return C(()=>!J(),[])?l(ne,{url:e,i18n:t}):null}m(ot,"DesktopHandoffView");function nt({i18n:e,cause:t,onRetry:n,onContinue:o,handoffUrl:a}){let i=g(e),s=F(),r=S(),[c,u]=_("idle"),f=C(()=>a!==void 0&&!J(),[a]),h=t==="denied",y=m(()=>{o!==void 0&&(u("busy"),o(t).then(()=>u("idle"),p=>u(p instanceof fe&&p.code==="check_out_of_order"?"idle":"failed")))},"end");return k("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":s,"data-testid":"sekyro-no-camera","data-cause":t,children:[f&&a!==void 0?l(ne,{url:a,i18n:e}):null,l("h2",{id:s,ref:r,tabIndex:-1,className:"sekyro-text-body",children:i(h?"capture.noCamera.deniedTitle":"capture.noCamera.title")}),l("p",{className:"sekyro-text-muted",children:i(h?"capture.noCamera.deniedBody":"capture.noCamera.body")}),c==="failed"?l(x,{tone:"danger",children:l("span",{children:e.t("errors.network_error")})}):null,l(w,{kind:h?"primary":"ghost",onClick:n,children:e.t("common.retry")}),o!==void 0?l(w,{kind:"ghost",disabled:c==="busy","aria-busy":c==="busy"||void 0,onClick:y,children:i("capture.noCamera.continue")}):null]})}m(nt,"NoCameraView");function rt({url:e,i18n:t,onContinue:n}){let o=g(t),a=F(),i=S();return k("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":a,"data-testid":"sekyro-in-app",children:[l("h2",{id:a,ref:i,tabIndex:-1,className:"sekyro-text-body",children:o("inApp.title")}),l("p",{className:"sekyro-text-muted",children:o("inApp.description")}),l(oe,{url:e,i18n:t,label:"inApp.copyLink"}),l(w,{kind:"ghost",onClick:n,children:o("inApp.continueAnyway")})]})}m(rt,"InAppBrowserPrompt");export{Ge as ContactChoiceView,ot as DesktopHandoffView,et as EidContinueHint,Qe as GenericChoiceView,ne as HandoffView,tt as HumanConsentTerms,Xe as IdentitySummaryView,rt as InAppBrowserPrompt,je as LaneChoiceView,We as LaneSwitch,Je as LivePhotoLiveness,nt as NoCameraView,Ze as PortraitRetakeNotice};
|