@sekyro/react 0.1.0-rc.12 → 0.1.0-rc.14
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 +19 -0
- package/README.md +9 -0
- package/dist/{chunk-PTPTDOWD.js → chunk-6EP4O2CE.js} +1 -1
- package/dist/{chunk-K7YYCJUR.js → chunk-AIBCIUYT.js} +1 -1
- package/dist/{chunk-34326C2I.js → chunk-IJE64ZEN.js} +1 -1
- package/dist/{chunk-LNZR3RXG.js → chunk-JCCXPYU4.js} +1 -1
- package/dist/chunk-TLHEN5T3.js +2 -0
- package/dist/{chunk-IDZNOWTO.js → chunk-TS3UFW5B.js} +1 -1
- package/dist/{chunk-ALUF2O22.js → chunk-UFAOAYQY.js} +1 -1
- package/dist/chunk-VKSX4KC3.js +2 -0
- package/dist/{chunk-4ZN7GIYK.js → chunk-Z43XZ75N.js} +1 -1
- package/dist/{document-capture-view-LR4OLZPG.js → document-capture-view-6NADWNPQ.js} +1 -1
- package/dist/{eid-view-OZETO2IS.js → eid-view-BKKVB5QT.js} +1 -1
- package/dist/{email-otp-view-2I346KUZ.js → email-otp-view-56JMHX3M.js} +1 -1
- package/dist/{flow-views-TEE63CMW.js → flow-views-7FMODRP7.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{overlay-de-UTUY4YEE.js → overlay-de-PSIG4NLI.js} +1 -1
- package/dist/{overlay-es-XQFAQT24.js → overlay-es-36OOIBXG.js} +1 -1
- package/dist/{overlay-pt-2YEUC3J2.js → overlay-pt-NWIPFF4D.js} +1 -1
- package/dist/{portrait-capture-view-TNKPPDYM.js → portrait-capture-view-JYTBBXFU.js} +1 -1
- package/dist/{theme-DqD8Nyoq.d.ts → theme-qTwMxyZM.d.cts} +23 -4
- package/dist/{theme-DqD8Nyoq.d.cts → theme-qTwMxyZM.d.ts} +23 -4
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +9 -4
- package/dist/verification/index.d.ts +9 -4
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +20 -7
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-WAVBS3GL.js +0 -2
- package/dist/chunk-ZCAZDOMD.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SekyroLocale, S as Strings, g as SekyroTheme, q as VoiceOptions, d as LivenessCaptureProps } from '../theme-
|
|
2
|
-
export { k as StringKey, A as retakeHintStringKey } from '../theme-
|
|
1
|
+
import { a as SekyroLocale, S as Strings, g as SekyroTheme, q as VoiceOptions, d as LivenessCaptureProps } from '../theme-qTwMxyZM.cjs';
|
|
2
|
+
export { k as StringKey, A as retakeHintStringKey } from '../theme-qTwMxyZM.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { Verification, VerificationStep, PhoneOtpStepHandle, EmailOtpStepHandle, EidStepHandle, MethodStepHandle, RegistryStepHandle, DocumentStepHandle, DocumentLiveMrzOptions, PortraitStepHandle, VerificationResult, ResultStepHandle, CapturedArtifacts } from '@sekyro/web';
|
|
@@ -50,6 +50,13 @@ interface StepStrings {
|
|
|
50
50
|
"otp.reason_payment_method_required": string;
|
|
51
51
|
"otp.reason_spend_cap_reached": string;
|
|
52
52
|
"otp.reason_insufficient_balance": string;
|
|
53
|
+
"otp.phonePlaceholderGeneric": string;
|
|
54
|
+
"otp.countryLabel": string;
|
|
55
|
+
"otp.phoneLengthError": string;
|
|
56
|
+
"otp.or": string;
|
|
57
|
+
"otp.otherCountry": string;
|
|
58
|
+
"otp.reason_otp_number_invalid": string;
|
|
59
|
+
"otp.reason_otp_number_not_mobile": string;
|
|
53
60
|
"session.steps.population.title": string;
|
|
54
61
|
"session.steps.population.description": string;
|
|
55
62
|
"population.label": string;
|
|
@@ -199,8 +206,6 @@ interface StepStrings {
|
|
|
199
206
|
"population.recheck.title": string;
|
|
200
207
|
"population.recheck.description": string;
|
|
201
208
|
"otp.phoneInvalid": string;
|
|
202
|
-
"otp.countryLabel": string;
|
|
203
|
-
"otp.phonePlaceholderGeneric": string;
|
|
204
209
|
"otp.codeInvalid": string;
|
|
205
210
|
"doc.countryTitle": string;
|
|
206
211
|
"doc.countryLabel": string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SekyroLocale, S as Strings, g as SekyroTheme, q as VoiceOptions, d as LivenessCaptureProps } from '../theme-
|
|
2
|
-
export { k as StringKey, A as retakeHintStringKey } from '../theme-
|
|
1
|
+
import { a as SekyroLocale, S as Strings, g as SekyroTheme, q as VoiceOptions, d as LivenessCaptureProps } from '../theme-qTwMxyZM.js';
|
|
2
|
+
export { k as StringKey, A as retakeHintStringKey } from '../theme-qTwMxyZM.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { Verification, VerificationStep, PhoneOtpStepHandle, EmailOtpStepHandle, EidStepHandle, MethodStepHandle, RegistryStepHandle, DocumentStepHandle, DocumentLiveMrzOptions, PortraitStepHandle, VerificationResult, ResultStepHandle, CapturedArtifacts } from '@sekyro/web';
|
|
@@ -50,6 +50,13 @@ interface StepStrings {
|
|
|
50
50
|
"otp.reason_payment_method_required": string;
|
|
51
51
|
"otp.reason_spend_cap_reached": string;
|
|
52
52
|
"otp.reason_insufficient_balance": string;
|
|
53
|
+
"otp.phonePlaceholderGeneric": string;
|
|
54
|
+
"otp.countryLabel": string;
|
|
55
|
+
"otp.phoneLengthError": string;
|
|
56
|
+
"otp.or": string;
|
|
57
|
+
"otp.otherCountry": string;
|
|
58
|
+
"otp.reason_otp_number_invalid": string;
|
|
59
|
+
"otp.reason_otp_number_not_mobile": string;
|
|
53
60
|
"session.steps.population.title": string;
|
|
54
61
|
"session.steps.population.description": string;
|
|
55
62
|
"population.label": string;
|
|
@@ -199,8 +206,6 @@ interface StepStrings {
|
|
|
199
206
|
"population.recheck.title": string;
|
|
200
207
|
"population.recheck.description": string;
|
|
201
208
|
"otp.phoneInvalid": string;
|
|
202
|
-
"otp.countryLabel": string;
|
|
203
|
-
"otp.phonePlaceholderGeneric": string;
|
|
204
209
|
"otp.codeInvalid": string;
|
|
205
210
|
"doc.countryTitle": string;
|
|
206
211
|
"doc.countryLabel": string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{a as dt}from"../chunk-4ZN7GIYK.js";import{a as F,d as ke,e as Se,f as be}from"../chunk-ZCAZDOMD.js";import{a as nt}from"../chunk-EZ5TVL6P.js";import{a as it}from"../chunk-YY76AMUA.js";import{a as at,b as lt,c as ct,d as pt}from"../chunk-IDZNOWTO.js";import{a as z}from"../chunk-PYAJMHZH.js";import{a as je,b as et,d as tt,g as ot}from"../chunk-ALUF2O22.js";import{b as Xe}from"../chunk-LNZR3RXG.js";import{a as q,b as J,c as ve,d as rt,g as st}from"../chunk-PTPTDOWD.js";import{a as oe}from"../chunk-VRDPGOXM.js";import{a as Wt,b as Yt,c as zt,d as Zt,e as qt,f as pe,g as P}from"../chunk-WAVBS3GL.js";import{a as _,b as Ce}from"../chunk-K7YYCJUR.js";import{a as C,c as Ze,i as $t,k as Gt,l as qe,m as Je,n as Qe,t as ge,u as te}from"../chunk-34326C2I.js";import{a as i}from"../chunk-2KED7D2Q.js";import{useEffect as Jt,useState as ut}from"react";function xe(e){let[t,o]=ut(()=>e?.currentStep?.()??null),[n,l]=ut(null);return Jt(()=>{if(e===void 0)return;if(typeof e.run!="function"){l(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let s=!0,r=e.on("step",a=>{s&&o(a)});return e.run().then(a=>{s&&o(c=>c??a)},a=>{s&&l(a)}),()=>{s=!1,r()}},[e]),{step:t,error:n}}i(xe,"useVerificationStep");import{useEffect as vt,useId as Xt,useMemo as Ct,useRef as Nt,useState as de}from"react";var Qt="AC247 AD376 AE971/0 AF93/0 AG1/1 AI1/1 AL355/0 AM374/0 AO244 AR54/0 AS1/1 AT43/0 AU61/0 AW297 AX358/0 AZ994/0 BA387/0 BB1/1 BD880/0 BE32/0 BF226 BG359/0 BH973 BI257 BJ229 BL590/0 BM1/1 BN673 BO591/0 BQ599 BR55/0 BS1/1 BT975 BW267 BY375/8 BZ501 CA1/1 CC61/0 CD243/0 CF236 CG242 CH41/0 CI225 CK682 CL56 CM237 CN86/0 CO57/0 CR506 CU53/0 CV238 CW599 CX61/0 CY357 CZ420 DE49/0 DJ253 DK45 DM1/1 DO1/1 DZ213/0 EC593/0 EE372 EG20/0 EH212/0 ER291/0 ES34 ET251/0 FI358/0 FJ679 FK500 FM691 FO298 FR33/0 GA241 GB44/0 GD1/1 GE995/0 GF594/0 GG44/0 GH233/0 GI350 GL299 GM220 GN224 GP590/0 GQ240 GR30 GT502 GU1/1 GW245 GY592 HK852 HN504 HR385/0 HT509 HU36/06 ID62/0 IE353/0 IL972/0 IM44/0 IN91/0 IO246 IQ964/0 IR98/0 IS354 IT39 JE44/0 JM1/1 JO962/0 JP81/0 KE254/0 KG996/0 KH855/0 KI686/0 KM269 KN1/1 KP850/0 KR82/0 KW965 KY1/1 KZ7/8 LA856/0 LB961/0 LC1/1 LI423/0 LK94/0 LR231/0 LS266 LT370/0 LU352 LV371 LY218/0 MA212/0 MC377/0 MD373/0 ME382/0 MF590/0 MG261/0 MH692/1 MK389/0 ML223 MM95/0 MN976/0 MO853 MP1/1 MQ596/0 MR222 MS1/1 MT356 MU230 MV960 MW265/0 MX52 MY60/0 MZ258 NA264/0 NC687 NE227 NF672 NG234/0 NI505 NL31/0 NO47 NP977/0 NR674 NU683 NZ64/0 OM968 PA507 PE51/0 PF689 PG675 PH63/0 PK92/0 PL48 PM508/0 PR1/1 PS970/0 PT351 PW680 PY595/0 QA974 RE262/0 RO40/0 RS381/0 RU7/8 RW250/0 SA966/0 SB677 SC248 SD249/0 SE46/0 SG65 SH290 SI386/0 SJ47 SK421/0 SL232/0 SM378 SN221 SO252/0 SR597 SS211/0 ST239 SV503 SX1/1 SY963/0 SZ268 TA290 TC1/1 TD235 TG228 TH66/0 TJ992 TK690 TL670 TM993/8 TN216 TO676 TR90/0 TT1/1 TV688 TW886/0 TZ255/0 UA380/0 UG256/0 US1/1 UY598/0 UZ998 VA39 VC1/1 VE58/0 VG1/1 VI1/1 VN84/0 VU678 WF681 WS685 XK383/0 YE967/0 YT262/0 ZA27/0 ZM260/0 ZW263/0",mt;function ft(e){return mt??(mt=new Map(Qt.split(" ").map(t=>{let[o,n]=t.slice(2).split("/");return[t.slice(0,2),[o,n]]}))),mt.get(e.toUpperCase())}i(ft,"entryOf");function yt(e){return ft(e)?.[0]}i(yt,"dialCodeOf");function ht(e){return ft(e)?.[1]}i(ht,"nationalPrefixOf");import{Fragment as bt,jsx as k,jsxs as U}from"react/jsx-runtime";var gt=i((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),jt=i(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),eo=["whatsapp","sms"],to=new Set(["otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited"]);function kt(e){let t=e.replace(/[\s-]/g,""),o=t.startsWith("+")?t.slice(1):t;return/^\d{8,15}$/.test(o)?`+${o}`:null}i(kt,"normalizedPhone");var oo=i(e=>String.fromCodePoint(...Array.from(e,t=>127397+t.charCodeAt(0))),"flagOf");function no(e){let t=[];for(let o of e.phoneCountries??["MR"]){let n=yt(o);n!==void 0&&!t.some(l=>l.code===o)&&t.push({code:o,dial:`+${n}`})}return t}i(no,"phoneCountriesOf");function ro(e,t){if(t===null||!e.startsWith(t.dial))return kt(e);let o=e.slice(t.dial.length).replace(/\D/g,""),n=ht(t.code);return n!==void 0&&o.startsWith(n)&&(o=o.slice(n.length)),kt(t.dial+o)}i(ro,"e164Of");function St(e,t){return t.filter(n=>e.startsWith(n.dial)).sort((n,l)=>l.dial.length-n.dial.length)[0]?.code??t[0]?.code??null}i(St,"countryFor");function so(e,t){let o=null;try{o=new Intl.DisplayNames([e],{type:"region"})}catch{}return new Map(t.map(n=>[n,o?.of(n)??n]))}i(so,"countryLabels");function io({id:e,label:t,value:o,onChange:n,placeholder:l,countries:s,country:r,onCountry:a,locale:c,countryLabel:u}){let f=s.find(g=>g.code===r)?.dial??null,m=f===null||o.startsWith("+")&&!o.startsWith(f),h=m?o:o.slice(o.startsWith(f)?f.length:0).trim(),y=Ct(()=>so(c,s.map(g=>g.code)),[c,s]),N=Nt(null);vt(()=>{let g=setTimeout(()=>N.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(g)},[]);let x=U("div",{className:"sekyro-phone",dir:"ltr",children:[m||r===null?null:U("span",{className:"sekyro-phone__dial",id:`${e}-dial`,children:[k("span",{className:"sekyro-phone__flag","aria-hidden":"true",children:oo(r)}),f]}),k("input",{ref:N,id:e,className:"sekyro-phone__input",type:"tel",dir:"ltr",inputMode:"tel",autoComplete:"tel",...m?{}:{"aria-describedby":`${e}-dial`},placeholder:f===null?"+":l,value:h,onChange:g=>{let v=g.target.value.replace(/[^\d +]/g,"");n(v.startsWith("+")||f===null?v:f+v.replace(/\D/g,""))}})]});return U("div",{className:"sekyro-field",children:[k("label",{className:"sekyro-label",htmlFor:e,children:t}),s.length>1?U("div",{className:"sekyro-phone-row",children:[k("select",{className:"sekyro-phone__country","aria-label":u,value:r??"",onChange:g=>{let v=s.find(L=>L.code===g.target.value);v!==void 0&&(a(v.code),n(m&&o.startsWith("+")?o:v.dial+h.replace(/\D/g,"")))},children:s.map(g=>k("option",{value:g.code,children:`${y.get(g.code)??g.code} (${g.dial})`},g.code))}),x]}):x]})}i(io,"PhoneField");function Ie({step:e,locale:t,strings:o,className:n,defaultPhone:l,onError:s}){let r=P(t,o),{t:a}=r,c=Ct(()=>no(e),[e.phoneCountries]),u=l??c[0]?.dial??"",[f,m]=de(()=>St(u,c)),h=c.map(S=>S.code).join(",");vt(()=>{if(f===null||!c.some(S=>S.code===f)){let S=St(u,c);m(S);let M=N.current,_e=c.find(ee=>ee.code===S)?.dial;_e!==void 0&&g(ee=>M!==null&&ee.startsWith(M.dial)?_e+ee.slice(M.dial.length):ee.startsWith("+")?ee:_e)}},[h,u]);let y=c.find(S=>S.code===f)??null,N=Nt(y);y!==null&&(N.current=y);let[x,g]=de(u),[v,L]=de(""),[T,Z]=de(!1),[b,B]=de(null),I=e.phase==="verify",G=it(I),A=Xt(),H=i(async S=>{Z(!0),B(null);try{await S()}catch(M){B(oe(M,r.strings)),s?.(M)}finally{Z(!1)}},"run"),Y=eo.filter(S=>(e.channels??[]).includes(S)),ye=c.length===0&&!x.trim().startsWith("+")?null:ro(x,y),w=!e.needsPhone||ye!==null,X=i((S,M=!1)=>{H(()=>e.send({...e.needsPhone&&(!M||x!==u)?{phone:ye??x}:{},...S!==void 0?{channel:S}:{}}))},"send"),d=i(S=>{H(()=>e.verify(S))},"submitCode"),E=i(S=>{S.preventDefault(),I?d(v):Y.length<=1&&w&&X(Y[0])},"onSubmit"),j=gt(e.codeExpiresAt,G),ce=gt(e.resendAvailableAt,G),he=I&&e.codeExpiresAt!==void 0&&j===0,we=i(S=>a(S==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),[Ht,Ut]=a("otp.sentTo",{channel:we(e.channel)}).split("{number}"),Kt=e.reason==="otp_mismatch"?U(_,{tone:"danger",children:[k("span",{children:a("otp.reason_otp_mismatch")}),k("span",{children:Ce(r,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&to.has(e.reason)?k(_,{tone:"warning",children:k("span",{children:a(`otp.reason_${e.reason}`)})}):null,ze=U(bt,{children:[Kt,b!==null?k(_,{tone:"danger",children:k("span",{children:a(b)})}):null]});if(I){let S=Y.length===0;return U("form",{className:`sekyro-step sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":A,onSubmit:E,noValidate:!0,children:[k(q,{id:A,title:a("otp.verifyTitle"),lead:U(bt,{children:[Ht,k("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),Ut]})}),ze,U("div",{className:"sekyro-field",children:[k("label",{className:"sekyro-label",htmlFor:`${A}-code`,children:a("otp.codeLabel")}),k(nt,{id:`${A}-code`,value:v,invalid:e.reason==="otp_mismatch",onChange:M=>{L(M),M.length===6&&v.length!==6&&!T&&!e.attemptsExhausted&&d(M)}}),k("span",{className:`sekyro-help sekyro-otp-expiry${he?" is-danger":""}`,"aria-hidden":!he||void 0,children:he?a("otp.expired"):a("otp.expiresIn",{time:jt(j)})})]}),k("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:he?a("otp.expired"):""}),U(J,{children:[k(C,{type:"submit",full:!0,disabled:T||v.length!==6||e.attemptsExhausted,"aria-busy":T||void 0,children:a("otp.verify")}),S?k("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:T||ce>0,onClick:()=>X(void 0,!0),children:ce>0?a("otp.resendIn",{seconds:ce}):a("otp.resend")}):ce>0?k("p",{className:"sekyro-resend is-waiting",children:a("otp.resendIn",{seconds:ce})}):k("div",{className:"sekyro-resend-row",children:Y.map(M=>k("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:T,onClick:()=>X(M,!0),children:a("otp.resendBy",{channel:we(M)})},M))})]})]})}return U("form",{className:`sekyro-step sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":A,onSubmit:E,noValidate:!0,children:[k(q,{id:A,title:a("otp.sendTitle"),lead:a("otp.sendDescription")}),ze,e.needsPhone?k(io,{id:`${A}-phone`,label:a("otp.phoneLabel"),value:x,onChange:g,placeholder:a(f==="MR"?"otp.phonePlaceholder":"otp.phonePlaceholderGeneric"),countries:c,country:f,onCountry:m,locale:r.locale,countryLabel:a("otp.countryLabel")}):k("p",{className:"sekyro-text-muted",children:a("otp.prefilledNotice")}),k(J,{children:Y.length>0?U("div",{className:"sekyro-actions__group",role:"group","aria-label":a("otp.chooseChannel"),children:[k("p",{className:"sekyro-label","aria-hidden":"true",children:a("otp.chooseChannel")}),Y.map((S,M)=>k(C,{kind:M===0?"primary":"ghost",full:!0,disabled:T||!w,"aria-busy":M===0&&T||void 0,onClick:()=>X(S),children:a("otp.sendBy",{channel:we(S)})},S))]}):k(C,{type:"submit",full:!0,disabled:T||!w,"aria-busy":T||void 0,children:a("otp.send")})})]})}i(Ie,"PhoneOtpStep");import{lazy as lo,Suspense as co,useMemo as po,useState as uo}from"react";import{Component as ao}from"react";var Ee=class Ee extends ao{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};i(Ee,"LoadBoundary");var W=Ee;import{jsx as ne,jsxs as fo}from"react/jsx-runtime";var mo={load:i(()=>import("../email-otp-view-2I346KUZ.js"),"load")};function Me({locale:e,strings:t,...o}){let n=P(e,t),[l,s]=uo(0),r=po(()=>lo(()=>mo.load().then(c=>({default:c.EmailOtpView}))),[l]),a=fo(_,{tone:"danger",children:[ne("span",{children:n.t("errors.network_error")}),ne(C,{kind:"ghost",onClick:()=>s(c=>c+1),children:n.t("common.retry")})]});return ne(W,{fallback:a,children:ne(co,{fallback:ne("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:n.t("common.loading")}),children:ne(r,{...o,i18n:n})})},l)}i(Me,"EmailOtpStep");import{lazy as yo,Suspense as ho,useMemo as go,useState as ko}from"react";import{jsx as re,jsxs as bo}from"react/jsx-runtime";var So={load:i(()=>import("../eid-view-OZETO2IS.js"),"load")};function Te({locale:e,strings:t,...o}){let n=P(e,t),[l,s]=ko(0),r=go(()=>yo(()=>So.load().then(c=>({default:c.EidView}))),[l]),a=bo(_,{tone:"danger",children:[re("span",{children:n.t("errors.network_error")}),re(C,{kind:"ghost",onClick:()=>s(c=>c+1),children:n.t("common.retry")})]});return re(W,{fallback:a,children:re(ho,{fallback:re("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:n.t("common.loading")}),children:re(r,{...o,i18n:n})})},l)}i(Te,"EidStep");import{useMemo as xo}from"react";import{lazy as vo,Suspense as Co,useMemo as No,useState as Po}from"react";import{jsx as se,jsxs as _o}from"react/jsx-runtime";var wo={load:i(()=>import("../flow-views-TEE63CMW.js"),"load")};function V({view:e,i18n:t,quiet:o,...n}){let[l,s]=Po(0),r=No(()=>vo(()=>wo.load().then(c=>({default:c[e]}))),[e,l]),a=_o(_,{tone:"danger",children:[se("span",{children:t.t("errors.network_error")}),se(C,{kind:"ghost",onClick:()=>s(c=>c+1),children:t.t("common.retry")})]});return se(W,{fallback:a,children:se(Co,{fallback:o===!0?null:se("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:t.t("common.loading")}),children:se(r,{...n,i18n:t})})},l)}i(V,"Flow");import{jsx as Le,jsxs as Io}from"react/jsx-runtime";function Ae({step:e,locale:t,strings:o,className:n,onError:l}){let s=P(t,o),{busy:r,error:a,run:c}=ct(s,l),u=xo(()=>e.choice.options.flatMap(m=>{let h=lt(m,s),y=at[m.service];return h===null?[]:[{id:m.id,label:h,glyph:y&&Le(z,{name:y})}]}),[e.choice.options,s]),f=e.choice.options.find(m=>m.service==="national_eid");return Io("div",{className:n,children:[Le(tt,{title:s.t("method.title"),description:s.t("method.description"),options:u,busy:r,error:a,focus:!0,testId:"sekyro-method",onChoose:m=>c(()=>e.choose(m))}),f?.nationalEid?.afterPass==="continue"?Le(V,{view:"EidContinueHint",i18n:s,provider:f.nationalEid.providerName,quiet:!0}):null]})}i(Ae,"MethodChoice");import{isValidNni as Eo,normalizeNni as Pt}from"@sekyro/web";import{useId as Mo,useState as Ve}from"react";import{Fragment as Vo,jsx as R,jsxs as ie}from"react/jsx-runtime";var To=new Set(["nni_not_found","registry_record_not_found"]),Lo=new Set(["nni_invalid","id_number_invalid"]);function Ne({step:e,locale:t,strings:o,className:n,onError:l}){let s=P(t,o),{t:r}=s,[a,c]=Ve(""),[u,f]=Ve(!1),[m,h]=Ve(null),y=Mo(),N=e.attemptsExhausted,x=i(async G=>{f(!0),h(null);try{await G()}catch(A){h(oe(A,s.strings)),l?.(A)}finally{f(!1)}},"run"),g=i(G=>{if(G.preventDefault(),e.source!=="typed"){x(()=>e.confirm());return}let A=Pt(a);if(!/^\d{10}$/.test(A))return h("population.invalid");if(!Eo(A))return h("population.reason_id_number_invalid");x(()=>typeof e.submitIdNumber=="function"?e.submitIdNumber(A):e.submitNni(A))},"onSubmit"),v=Ce(s,e.attemptsRemaining,N),L=e.reason!==void 0&&To.has(e.reason),T=e.reason!==void 0&&Lo.has(e.reason),Z=ie(Vo,{children:[e.reason==="registry_unavailable"?ie(_,{tone:"warning",children:[R("span",{children:r("population.reason_registry_unavailable")}),R("span",{children:v})]}):null,L&&e.canUseDocument?ie(_,{tone:"warning",children:[R("span",{children:r("population.reason_registry_record_not_found_or_document")}),R("span",{children:v}),R(C,{kind:"ghost",disabled:u,onClick:()=>{x(()=>e.useDocument())},children:r("population.useDocument")})]}):null,L&&!e.canUseDocument||T?ie(_,{tone:"danger",children:[R("span",{children:r(L?"population.reason_registry_record_not_found":"population.reason_id_number_invalid")}),R("span",{children:v})]}):null,N&&e.reason===void 0?R(_,{tone:"danger",children:R("span",{children:v})}):null,m!==null?R(_,{tone:"danger",children:R("span",{children:r(m)})}):null]}),[b,B,I]=e.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:e.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:e.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return ie("form",{className:`sekyro-step${n?` ${n}`:""}`,"aria-labelledby":y,onSubmit:g,noValidate:!0,children:[R(q,{id:y,title:r(b),lead:r(B)}),Z,e.source==="typed"?ie("div",{className:"sekyro-field",children:[R("label",{className:"sekyro-label",htmlFor:`${y}-id-number`,children:r("population.label")}),R("input",{id:`${y}-id-number`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:r("population.placeholder"),value:a,"aria-describedby":`${y}-id-number-help`,"aria-invalid":m==="population.invalid"||m==="population.reason_id_number_invalid"||void 0,onChange:G=>{h(null),c(Pt(G.target.value).replace(/\D/g,"").slice(0,10))}}),R("span",{id:`${y}-id-number-help`,className:"sekyro-help",children:r("population.helper")})]}):null,R(J,{children:N?null:R(C,{type:"submit",full:!0,disabled:u,"aria-busy":u||void 0,children:r(I)})})]})}i(Ne,"IdNumberEntry");function Ao(e){return Ne(e)}i(Ao,"NniEntry");import{acceptedIssuers as Ho,acceptedTypesFor as Uo,warmDocumentCapture as Ko}from"@sekyro/web";import{lazy as $o,Suspense as Go,useEffect as Wo,useMemo as Yo,useState as Et}from"react";import{acceptedIssuers as Ro,acceptedTypesFor as Re}from"@sekyro/web";import{useEffect as wt,useId as Oo,useMemo as _t,useState as Oe}from"react";import{jsx as O,jsxs as ae}from"react/jsx-runtime";var xt=i(e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),"fold"),Bo=i(e=>String.fromCodePoint(...Array.from(e.toUpperCase(),t=>127397+t.charCodeAt(0))),"flag"),Do=220;function Fo(e,t,o=[]){let n=null;try{n=new Intl.DisplayNames([e],{type:"region"})}catch{}let l=t.map(a=>({code:a,name:n?.of(a)??a})),s=new Intl.Collator(e),r=i(a=>{let c=o.indexOf(a);return c<0?o.length:c},"rank");return l.sort((a,c)=>r(a.code)-r(c.code)||s.compare(a.name,c.name))}i(Fo,"countryNames");function It({step:e,i18n:t,issuer:o,onPicked:n}){let{t:l,locale:s}=t,r=_t(()=>Ro(e.documents),[e.documents]),a=_t(()=>Fo(s,r,Object.keys(e.documents.byIssuer??{})),[s,r,e.documents]),c=r.length===1?r[0]:null,[u,f]=Oe(o??c),[m,h]=Oe(""),[y,N]=Oe(null),x=Oo(),g=c===null?[]:Re(e.documents,c),v=c!==null&&g.length===1?g[0]:null;wt(()=>{c!==null&&v!==null&&e.selectDocument(c,v)},[c,v]);let L=i((b,B)=>{e.selectDocument(b,B),n?.()},"pick"),T=i(b=>{let B=Re(e.documents,b);B.length===1?L(b,B[0]):f(b)},"chooseIssuer");if(wt(()=>{if(y===null||u===null)return;let b=setTimeout(()=>L(u,y),Do);return()=>clearTimeout(b)},[y]),v!==null)return null;if(u===null){let b=xt(m.trim()),B=b===""?a:a.filter(I=>xt(I.name).includes(b)||I.code.toLowerCase()===b);return ae("section",{className:"sekyro-step",children:[O(q,{title:l("doc.countryTitle"),lead:l("doc.pickDescription")}),ae("div",{className:"sekyro-field",children:[O("label",{className:"sekyro-label",htmlFor:x,children:l("doc.countryLabel")}),O("input",{id:x,type:"search",className:"sekyro-input",placeholder:l("doc.countrySearch"),value:m,onChange:I=>h(I.target.value)})]}),B.length===0?O("p",{className:"sekyro-text-muted",children:l("doc.noCountryMatch")}):O("ul",{className:"sekyro-rows",children:B.map(I=>O("li",{children:ae("button",{type:"button",className:"sekyro-row-btn",onClick:()=>T(I.code),children:[O("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:Bo(I.code)}),I.name]})},I.code))}),O(J,{children:null})]})}let Z=Re(e.documents,u);return ae("section",{className:"sekyro-step",children:[O(q,{title:l("doc.pickTitle"),lead:l("native.doc.holdIt")}),O("div",{className:"sekyro-choices",children:Z.map(b=>ae("button",{type:"button",className:"sekyro-card","aria-pressed":y===b,disabled:y!==null&&y!==b,onClick:()=>N(b),children:[O(z,{name:b==="passport"?"passport":"card"}),ae("span",{className:"sekyro-card__body",children:[O("span",{className:"sekyro-card__title",children:l(`doc.type.${b}`)}),O("span",{className:"sekyro-card__sub",children:l(`doc.sub.${b}`)})]}),O("span",{className:"sekyro-radio","aria-hidden":"true"})]},b))}),r.length>1?O("button",{type:"button",className:"sekyro-link",onClick:()=>{f(null),N(null)},children:l("native.doc.changeCountry")}):null,O(J,{children:null})]})}i(It,"DocumentPicker");import{jsx as Q,jsxs as Zo}from"react/jsx-runtime";var zo={load:i(()=>import("../document-capture-view-LR4OLZPG.js"),"load")};function Be({step:e,locale:t,strings:o,className:n,liveMrz:l}){let s=P(t,o),[r,a]=Et(0),[c,u]=Et(null),f=Ho(e.documents).length>1,m=e.issuer!==null&&Uo(e.documents,e.issuer).length>1,h=Yo(()=>$o(()=>zo.load().then(N=>({default:N.DocumentCaptureView}))),[r]);Wo(()=>{Ko()},[]);let y=Zo(_,{tone:"danger",children:[Q("span",{children:s.t("errors.network_error")}),Q(C,{kind:"ghost",onClick:()=>a(N=>N+1),children:s.t("doc.retryCamera")})]});return Q("div",{className:n,children:e.documentType===null||e.issuer===null||c!==null?Q(It,{step:e,i18n:s,...c==="document"&&e.issuer!==null?{issuer:e.issuer}:{},onPicked:()=>u(null)}):Q(W,{fallback:y,children:Q(Go,{fallback:Q("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:s.t("common.loading")}),children:Q(h,{step:e,i18n:s,liveMrz:l,...f?{onChangeCountry:i(()=>u("country"),"onChangeCountry")}:{},...m?{onChangeDocument:i(()=>u("document"),"onChangeDocument")}:{}})})},r)})}i(Be,"DocumentCapture");import{warmPortraitCapture as qo}from"@sekyro/web";import{Component as Jo,lazy as Qo,Suspense as Xo,useEffect as jo,useMemo as en,useState as tn}from"react";import{jsx as D,jsxs as Fe}from"react/jsx-runtime";var on={load:i(()=>import("../portrait-capture-view-TNKPPDYM.js"),"load")},Ue=class Ue extends Jo{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};i(Ue,"LoadBoundary");var De=Ue;function nn({step:e,i18n:t}){let{t:o}=t,n=te();return Fe("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[D("h2",{ref:n,tabIndex:-1,className:"sekyro-text-body",children:o(e.review?"portrait.reviewTitle":"session.steps.portrait.title")}),e.review?D("p",{className:"sekyro-text-muted",children:o("portrait.reviewDescription")}):null,e.uploadFailed?Fe(_,{tone:"danger",children:[D("span",{children:o("portrait.uploadFailed")}),D(C,{kind:"ghost",onClick:()=>{e.resubmit()},children:o("portrait.sendAgain")})]}):D("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:o("portrait.matching")})]})}i(nn,"MatchPhase");function He({step:e,locale:t,strings:o,className:n,assetBaseUrl:l}){let s=P(t,o),[r,a]=tn(0),c=en(()=>Qo(()=>on.load().then(f=>({default:f.PortraitCaptureView}))),[r]);if(jo(()=>{e.phase==="capture"&&qo()},[e.phase]),e.phase==="match")return D("div",{className:n,children:D(nn,{step:e,i18n:s})});let u=Fe(_,{tone:"danger",children:[D("span",{children:s.t("errors.network_error")}),D(C,{kind:"ghost",onClick:()=>a(f=>f+1),children:s.t("portrait.retryCamera")})]});return D("div",{className:n,children:D(De,{fallback:u,children:D(Xo,{fallback:D("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:s.t("common.loading")}),children:D(c,{step:e,i18n:s,...l!==void 0?{assetBaseUrl:l}:{}})})},r)})}i(He,"PortraitCapture");import{cameraUnavailableCauseOf as bn}from"@sekyro/web";import{useCallback as me,useEffect as Dt,useId as vn,useRef as Ge,useState as fe}from"react";import{useId as rn,useState as sn}from"react";import{jsx as Pe,jsxs as Mt}from"react/jsx-runtime";var an=["intro","data","processing","sharing","retention"];function Tt({i18n:e,purpose:t="identity"}){let{t:o}=e,[n,l]=sn(!1),s=rn(),[r,a=""]=o("consent.short").split("{terms}");return Mt("section",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-consent",children:[Mt("p",{className:"sekyro-text-muted",children:[r,Pe("button",{type:"button",className:"sekyro-link","aria-expanded":n,"aria-controls":s,onClick:()=>l(c=>!c),children:o("consent.termsLink")}),a]}),Pe("div",{id:s,hidden:!n,className:"sekyro-stack sekyro-stack--1 sekyro-text-muted","data-testid":"sekyro-consent-terms",children:t==="human"?Pe(V,{view:"HumanConsentTerms",i18n:e,quiet:!0}):an.map(c=>Pe("p",{children:o(`consent.terms.${c}`)},c))})]})}i(Tt,"ConsentNotice");function Lt(e){let t=e.trim().split(/\s+/).filter(n=>n!=="");return(t.length>=2?[t[0],t[1]].map(n=>Array.from(n??"")[0]??""):Array.from(t[0]??"").slice(0,2)).join("").toUpperCase()}i(Lt,"initials");import{useSyncExternalStore as ln}from"react";var Vt=i(e=>({colors:{...e?F.dark:F.light},radius:F.radiusLg,fontFamily:F.font}),"brandTheme"),_s=Vt(!1);function Rt(e,t,o){let n=ke(e);if(o&&n.colors!==void 0){let{brand:l,brandFg:s}=n.colors;l!==void 0&&un(l,F.dark.bg)>=3?n.colors={brand:l,ring:l,...s!==void 0?{brandFg:s}:{}}:delete n.colors}return Se(Vt(o),n,t)}i(Rt,"verificationTheme");function Ot(e){let t=ln(dn,pn,()=>!1);return e==="dark"||e==="system"&&t}i(Ot,"useDarkScheme");var cn="(prefers-color-scheme: dark)",Bt=i(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(cn):null,"media"),pn=i(()=>Bt()?.matches??!1,"prefersDark");function dn(e){let t=Bt();return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}i(dn,"subscribe");function un(e,t){let[o,n]=[At(e),At(t)];return(Math.max(o,n)+.05)/(Math.min(o,n)+.05)}i(un,"contrast");function At(e){let t=[1,3,5].map(o=>{let n=Number.parseInt(e.slice(o,o+2),16)/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4});return .2126*(t[0]??0)+.7152*(t[1]??0)+.0722*(t[2]??0)}i(At,"luminance");import{useEffect as mn,useId as fn,useState as yn}from"react";import{jsx as K,jsxs as ue}from"react/jsx-runtime";var hn=new Set(["document_id_number_mismatch","name_mismatch","birth_date_mismatch"]),gn={approved:"M6.5 12.5l3.6 3.6 7.4-8.2",review:"M12 7v5l3.2 2",expired:"M8 5h8M8 19h8M9 5c0 4 6 5 6 7s-6 3-6 7M15 5c0 4-6 5-6 7s6 3 6 7",rejected:"M8 8l8 8M16 8l-8 8"};function kn({outcome:e}){return ue("svg",{className:`sekyro-outcome sekyro-outcome--${e}`,viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[K("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"57",pathLength:"1"}),K("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),K("path",{className:"sekyro-outcome__glyph",d:gn[e],pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]})}i(kn,"OutcomeMark");function Sn({label:e,id:t,copied:o}){let[n,l]=yn(!1);return mn(()=>{if(!n)return;let s=setTimeout(()=>l(!1),1600);return()=>clearTimeout(s)},[n]),ue("button",{type:"button",className:`sekyro-reference${n?" is-copied":""}`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>l(!0),()=>{})},children:[K("span",{"aria-live":"polite",children:n?o:e}),K("bdi",{dir:"ltr",children:t}),K(z,{name:"copy"})]})}i(Sn,"ReferenceLine");function Ke({step:e,locale:t,strings:o,className:n,onClose:l}){let s=P(t,o),{t:r}=s,a=fn(),c=te(),u=e.context.orgName,f=e.display==="approved"?"approved":e.display==="review"?"review":e.display==="expired"?"expired":"rejected",m;switch(e.display){case"policy_stop":{let h=e.failureReason??"";if(hn.has(Ze(h)))m=r("session.result.detailsMismatch",{org:u});else if(h==="device_velocity_exceeded")m=r("session.result.deviceVelocity",{org:u});else if(h==="capture_tampered")m=r("session.result.deviceStop");else if(h==="camera_unavailable")m=r("reasons.camera_unavailable",{org:u});else{let y=Je(h);m=y!==null?r(y,{org:u}):r("session.result.rejected.description")}break}case"cooldown":{let h=Qe(s.locale,e.retryAfter);m=h!==null?r(h.key,{time:h.time}):r("reasons.device_cooldown");break}case"platform_unsupported":m=r("result.platform_unsupported");break;case"attempts_exhausted":m=r("common.noAttemptsLeft");break;default:m=u!==""?r(`native.result.${f}`,{org:u}):r(`session.result.${f}.description`)}return ue("section",{className:`sekyro-result${n?` ${n}`:""}`,"aria-labelledby":a,"data-testid":"sekyro-result",children:[ue("div",{className:"sekyro-result__body",children:[K(kn,{outcome:e.display==="cooldown"?"review":f}),ue("div",{className:"sekyro-heading",children:[K("h2",{id:a,ref:c,tabIndex:-1,className:"sekyro-text-body",children:r(`session.result.${f}.title`)}),K("p",{className:"sekyro-text-muted",children:m})]}),K(Sn,{label:r("result.referenceLabel"),id:e.context.sessionId,copied:r("native.result.copied")})]}),l!==void 0?K("div",{className:"sekyro-actions",children:K(C,{full:!0,onClick:l,children:u!==""?r("native.result.back",{org:u}):r("native.close")})}):null]})}i(Ke,"VerificationResultScreen");import{Fragment as $e,jsx as p,jsxs as $}from"react/jsx-runtime";function Cn(e,t){let o=t?F.dark:F.light,n=t?F.roles.dark:F.roles.light,l=e.colors??{},s={},r=l.fg===o.fg&&l.surface===o.surface;return l.brand===o.brand&&l.surface===o.surface&&(s["--sekyro-color-brand-soft"]=n.brandSoft),r&&(s["--sekyro-color-line"]=n.line,s["--sekyro-color-line-subtle"]=n.lineSubtle,s["--sekyro-color-line-strong"]=n.lineStrong,s["--sekyro-color-sunken"]=n.sunken),l.fgMuted===o.fgMuted&&l.surface===o.surface&&(s["--sekyro-color-fg-subtle"]=n.fgSubtle),e.fontFamily===F.font&&(s["--sekyro-font-display"]=F.fontDisplay),s}i(Cn,"flowRoles");function We(e){let{verification:t,locale:o,strings:n,onStep:l,onResult:s}=e,{step:r,error:a}=xe(t);Dt(()=>{r!==null&&l?.(r)},[r,l]),Dt(()=>s===void 0?void 0:t.on("result",s),[t,s]);let c=Ot(e.colorScheme??"light"),u=Rt(r?.context.branding,e.theme,c),[f,m]=fe(!1),h=`sekyro-verification${c?" sekyro-verification--dark":""}${f?" is-immersive":""}${e.className!==void 0?` ${e.className}`:""}`,y=Ge(e.onClose);y.current=e.onClose;let N=Ge(r);N.current=r;let x=me(()=>{let g=N.current;y.current?.(g?.kind==="result"?{reason:"finished",result:g.result}:{reason:"cancelled"})},[]);return p(be,{theme:u,className:h,children:p(pe,{locale:o,...n!==void 0?{strings:n}:{},children:p("div",{dir:e.dir??(o==="ar"?"rtl":"ltr"),lang:o,className:"sekyro-flow",style:Cn(u,c),children:p(rt.Provider,{value:m,children:p(ve.Provider,{value:e.onClose!==void 0?x:void 0,children:p(wn,{...e,step:r,error:a,immersive:f})})})})})})}i(We,"SekyroVerification");function Nn(e,t){if(t===void 0)return null;let o=e,n=o[`session.processing.${t}.title`],l=o[`session.processing.${t}.description`];return typeof n=="string"&&n!==""&&typeof l=="string"&&l!==""?{title:n,description:l}:null}i(Nn,"processingCopyOf");function Pn({error:e,retry:t}){let{t:o}=P(),n=te();return $(ge,{tone:"danger",testId:"sekyro-error-notice",children:[p("span",{children:o(qe(e.kind))}),e.retryable?p(C,{ref:n,kind:"ghost",className:"sekyro-btn--start",onClick:t,children:o("common.retry")}):null]})}i(Pn,"CameraErrorNotice");function wn(e){let{step:t,error:o,slots:n,immersive:l}=e,s=P(),{t:r}=s,[a,c]=fe(!1),[u,f]=fe(0),[m,h]=fe(null),y=t?.context.purpose??"identity",N=e.verification,x=y==="human"||t?.context.cameraUnavailableHandled===!0,g=N.reportCameraUnavailable!==void 0&&x?d=>N.reportCameraUnavailable?.(d)??Promise.resolve():void 0,v=t?.kind==="liveness"&&t.mode==="liveness"&&t.reason===void 0&&!t.attemptsExhausted,L=e.handoffUrl,T=me((d,E)=>g===void 0?void 0:p(V,{view:"NoCameraView",i18n:s,quiet:!0,cause:E,onRetry:d,...v?{onContinue:g}:{},...L!==void 0?{handoffUrl:L}:{}}),[s,N,x,v,L]),Z=me((d,E)=>p(pt,{start:d,context:E,human:y==="human",extra:E.canChooseFacing&&p(et,{value:E.facing,onChange:E.setFacing}),notice:E.permissionSettled&&E.permission==="denied"?T(d,"denied"):void 0}),[y,T]),b=me((d,E)=>{let j=bn(d.kind);return(j!==void 0?T(E,j):void 0)??$($e,{children:[p(Pn,{error:d,retry:E}),j!==void 0&&L!==void 0?p(V,{view:"DesktopHandoffView",i18n:s,quiet:!0,url:L}):null]})},[T,L,s]),B=Ge(""),I=e.livenessProps?.slots?.stageOverlay,G=me(d=>(d.guidance!==""&&!d.coached&&(B.current=d.guidance),p(dt,{testId:"sekyro-capture-stage",video:p("video",{ref:d.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:d.guidance!==""?d.guidance:B.current,note:d.note,busy:d.settled,progress:d.phase==="seeking"||d.phase==="aligning"?d.progress:1,still:d.still,live:d.live,closeLabel:r("native.close"),overlay:I?.(d.videoRef),ramp:d.ramp?.colour??null,...d.settled?{}:{onClose:i(()=>f(E=>E+1),"onClose")},end:d.switchCamera&&p("button",{type:"button",className:"sekyro-glass",onClick:d.switchCamera,"aria-label":r("capture.switchCamera"),children:p(Xe,{})})})),[r,I]),A=vn();if(o!==null)return p(ge,{tone:"danger",children:p("span",{children:r(oe(o,s.strings))})});if(t===null)return p("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:r("common.loading")});let{context:H}=t,Y=i(d=>{c(!0),d().finally(()=>c(!1))},"refresh"),ye=n?.header??p(xn,{context:H,headerId:A,end:n?.headerEnd}),w,X=m===t.key&&t.context.switchable!==void 0;if(X)w=p(V,{view:"LaneChoiceView",i18n:s,step:t,onClose:()=>h(null)});else switch(t.kind){case"phone_otp":w=p(Ie,{step:t});break;case"email_otp":w=p(Me,{step:t});break;case"method":w=p(Ae,{step:t});break;case"registry":w=p(Ne,{step:t});break;case"document":w=p(Be,{step:t,...e.documentLiveMrz!==void 0?{liveMrz:e.documentLiveMrz}:{}});break;case"liveness":{let d=e.livenessProps?.slots?.intro,E={...e.livenessProps??{},slots:{...e.livenessProps?.slots,intro:d??Z,...d===void 0&&e.livenessProps?.slots?.errorPanel===void 0?{errorPanel:b}:{}},...u>0?{autoStart:!1}:{},verification:e.verification,locale:e.locale,dir:e.dir,strings:s.strings,assetBaseUrl:e.assetBaseUrl,voice:e.voice,onCaptured:e.onLivenessCaptured};w=p(je.Provider,{value:G,children:t.instructions==="icao"||t.livePhoto?.icao===!0?p(V,{view:"LivePhotoLiveness",i18n:s,step:t,livenessProps:E,sekyroIntro:d===void 0},u):p(ot,{...E},u)});break}case"portrait":w=$($e,{children:[t.retakeOnly?p(V,{view:"PortraitRetakeNotice",i18n:s,quiet:!0}):null,p(He,{step:t,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{}})]});break;case"contact_choice":w=p(V,{view:"ContactChoiceView",i18n:s,step:t});break;case"choice":w=p(V,{view:"GenericChoiceView",i18n:s,step:t});break;case"identity_summary":w=p(V,{view:"IdentitySummaryView",i18n:s,step:t});break;case"mobile_required":w=e.handoffUrl!==void 0?p(V,{view:"HandoffView",i18n:s,url:e.handoffUrl,refresh:t.refresh}):$(ge,{tone:"info",children:[p("strong",{children:r("handoff.title")}),p("span",{children:r("reasons.mobile_required")}),p(C,{kind:"ghost",disabled:a,onClick:()=>Y(t.refresh),children:r("common.refresh")})]});break;case"processing":{let d=Nn(s.strings,t.service);w=$("section",{className:"sekyro-stack sekyro-stack--1",role:"status","aria-live":"polite",children:[p("h2",{className:"sekyro-text-body",children:d?.title??r("session.processing.title")}),p("p",{className:"sekyro-text-muted",children:d?.description??r("session.processing.description")}),t.stalled?p(C,{kind:"ghost",disabled:a,onClick:()=>Y(t.refresh),children:r("common.refresh")}):null]});break}case"eid":w=p(Te,{step:t});break;case"unsupported":{let d=t.reason==="platform_unsupported";w=$("section",{className:"sekyro-stack sekyro-stack--1",children:[p("h2",{className:"sekyro-text-body",children:r(d?"needsApp.title":"unsupported.title")}),p("p",{children:d?H.orgName!==""?r("needsApp.description",{org:H.orgName}):r("needsApp.descriptionNoOrg"):r("unsupported.description",{org:H.orgName})})]});break}case"result":w=n?.result?.(t)??p(_n,{step:t});break;default:{let d=t;w=null}}return $($e,{children:[l?null:ye,!l&&t.kind!=="result"&&H.sections.length>1?p(In,{context:H,current:t.section,i18n:s}):null,!l&&!H.consentRecorded&&t.kind!=="result"?p(Tt,{i18n:s,purpose:H.purpose}):null,p(st,{pageKey:t.key,children:w}),!l&&!X&&t.kind!=="result"&&t.context.switchable!==void 0?p(V,{view:"LaneSwitch",i18n:s,step:t,onOpen:()=>h(t.key),quiet:!0},t.key):null,l?null:n?.footer!==void 0?n.footer:H.branding?.hideAttribution===!0?null:$("a",{className:"sekyro-footer",href:"https://sekyro.ai",target:"_blank",rel:"noopener noreferrer",children:[p(z,{name:"lock"}),r("shell.verifiedBy")]})]})}i(wn,"Body");function _n({step:e}){return p(ve.Consumer,{children:t=>p(Ke,{step:e,...t!==void 0?{onClose:t}:{}})})}i(_n,"ResultPage");function xn({context:e,headerId:t,end:o}){let{t:n}=P(),[l,s]=fe(!1),r=l?void 0:e.branding?.logoUrl,a=e.orgName!==""?e.orgName:n(e.returning?"returning.title":"session.title");return $("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":t,children:[$("div",{className:"sekyro-org",children:[p("span",{className:"sekyro-org__tile","aria-hidden":"true",children:r!==void 0?p("img",{className:"sekyro-org__logo",src:r,alt:"",onError:()=>s(!0)}):Lt(e.orgName)}),$("div",{className:"sekyro-org__text",children:[p("h1",{id:t,className:"sekyro-org__name",children:a}),p("p",{className:"sekyro-org__sub",children:n(e.purpose==="human"?"shell.subtitleHuman":"shell.subtitle")})]}),o!=null?p("div",{className:"sekyro-org__end",children:o}):null,p(ve.Consumer,{children:c=>c!==void 0?p("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":n("native.close"),onClick:c,children:p(z,{name:"close"})}):null})]}),e.returning?p("p",{className:"sekyro-text-muted",children:n("returning.description")}):null]})}i(xn,"OrgHeader");function In({context:e,current:t,i18n:o}){let n=t===null?-1:e.sections.indexOf(t),l=e.progress,s=l!==void 0&&l.length===e.sections.length?l:e.sections.map((r,a)=>({id:r,state:a<n?"done":a===n?"current":"upcoming"}));return p("ol",{className:"sekyro-progress__bars","aria-label":o.t("session.progressLabel"),children:s.map(({id:r,state:a})=>p("li",{className:`sekyro-progress__bar${a==="done"?" is-done":a==="current"?" is-current":""}`,...a==="current"?{"aria-current":"step"}:{},children:p("span",{className:"sekyro-visually-hidden",children:o.strings[`section.${r}`]??r})},r))})}i(In,"SectionProgress");import{useEffect as Mn,useState as Ft}from"react";var En=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function Ye(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));return En.test(t)}i(Ye,"isInAppBrowser");import{jsx as le}from"react/jsx-runtime";function Tn(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}i(Tn,"pageUrl");function Ln({hostedUrl:e,inAppBrowser:t,...o}){let[n,l]=Ft(t===!0);Mn(()=>{t===void 0&&Ye()&&l(!0)},[t]);let[s,r]=Ft(!1),a=o.handoffUrl??e??Tn();return n&&!s?le(be,{theme:Se(ke(void 0),o.theme),...o.className!==void 0?{className:o.className}:{},children:le(pe,{locale:o.locale,...o.strings!==void 0?{strings:o.strings}:{},children:le("div",{dir:o.dir??(o.locale==="ar"?"rtl":"ltr"),lang:o.locale,className:"sekyro-stack sekyro-stack--4",children:le(An,{url:a,onContinue:()=>r(!0)})})})}):le(We,{...o,...a!==""?{handoffUrl:a}:{}})}i(Ln,"SekyroFlow");function An({url:e,onContinue:t}){let o=P();return le(V,{view:"InAppBrowserPrompt",i18n:o,url:e,onContinue:t})}i(An,"Prompt");export{Be as DocumentCapture,Te as EidStep,Me as EmailOtpStep,Ne as IdNumberEntry,Ae as MethodChoice,Ao as NniEntry,Ie as PhoneOtpStep,He as PortraitCapture,Ln as SekyroFlow,We as SekyroVerification,pe as StepI18nProvider,Ke as VerificationResultScreen,Wt as arSteps,Yt as enSteps,Zt as formatTemplate,zt as frSteps,Ye as isInAppBrowser,$t as loadSekyroLocale,qt as resolveSekyroStrings,Gt as retakeHintStringKey,P as useStepI18n,xe as useVerificationStep};
|
|
2
|
+
import{a as zt}from"../chunk-Z43XZ75N.js";import{a as L,d as Ot,e as Ce,f as Le,g as Vt,h as Dt}from"../chunk-TLHEN5T3.js";import{a as Bt}from"../chunk-EZ5TVL6P.js";import{a as $t}from"../chunk-YY76AMUA.js";import{a as Ut,b as Kt,c as Gt,d as Wt}from"../chunk-TS3UFW5B.js";import{a as q}from"../chunk-PYAJMHZH.js";import{b as Mt,c as Rt,e as At,h as Lt}from"../chunk-UFAOAYQY.js";import{b as Tt}from"../chunk-JCCXPYU4.js";import{a as oe,b as ne,c as Oe,d as Ft,g as Ht}from"../chunk-6EP4O2CE.js";import{a as ce}from"../chunk-VRDPGOXM.js";import{a as Oo,b as Vo,c as Do,d as Bo,e as Fo,f as Ne,g as x}from"../chunk-VKSX4KC3.js";import{a as I,b as Ve}from"../chunk-AIBCIUYT.js";import{a as N,c as _t,i as Ao,k as Lo,l as xt,m as It,n as Et,t as Ae,u as le}from"../chunk-IJE64ZEN.js";import{a as s}from"../chunk-2KED7D2Q.js";import{useEffect as Ho,useState as Yt}from"react";function Ge(e){let[t,o]=Yt(()=>e?.currentStep?.()??null),[n,a]=Yt(null);return Ho(()=>{if(e===void 0)return;if(typeof e.run!="function"){a(new Error("The step components need @sekyro/web 0.2 or later (Verification.run)."));return}let i=!0,r=e.on("step",l=>{i&&o(l)});return e.run().then(l=>{i&&o(c=>c??l)},l=>{i&&a(l)}),()=>{i=!1,r()}},[e]),{step:t,error:n}}s(Ge,"useVerificationStep");import{useEffect as eo,useId as Ko,useMemo as Go,useRef as to,useState as ie}from"react";var $o="AC247 AD376 AE971/0 AF93/0 AG1/1 AI1/1 AL355/0 AM374/0 AO244 AR54/0 AS1/1 AT43/0 AU61/0 AW297 AX358/0 AZ994/0 BA387/0 BB1/1 BD880/0 BE32/0 BF226 BG359/0 BH973 BI257 BJ229 BL590/0 BM1/1 BN673 BO591/0 BQ599 BR55/0 BS1/1 BT975 BW267 BY375/8 BZ501 CA1/1 CC61/0 CD243/0 CF236 CG242 CH41/0 CI225 CK682 CL56 CM237 CN86/0 CO57/0 CR506 CU53/0 CV238 CW599 CX61/0 CY357 CZ420 DE49/0 DJ253 DK45 DM1/1 DO1/1 DZ213/0 EC593/0 EE372 EG20/0 EH212/0 ER291/0 ES34 ET251/0 FI358/0 FJ679 FK500 FM691 FO298 FR33/0 GA241 GB44/0 GD1/1 GE995/0 GF594/0 GG44/0 GH233/0 GI350 GL299 GM220 GN224 GP590/0 GQ240 GR30 GT502 GU1/1 GW245 GY592 HK852 HN504 HR385/0 HT509 HU36/06 ID62/0 IE353/0 IL972/0 IM44/0 IN91/0 IO246 IQ964/0 IR98/0 IS354 IT39 JE44/0 JM1/1 JO962/0 JP81/0 KE254/0 KG996/0 KH855/0 KI686/0 KM269 KN1/1 KP850/0 KR82/0 KW965 KY1/1 KZ7/8 LA856/0 LB961/0 LC1/1 LI423/0 LK94/0 LR231/0 LS266 LT370/0 LU352 LV371 LY218/0 MA212/0 MC377/0 MD373/0 ME382/0 MF590/0 MG261/0 MH692/1 MK389/0 ML223 MM95/0 MN976/0 MO853 MP1/1 MQ596/0 MR222 MS1/1 MT356 MU230 MV960 MW265/0 MX52 MY60/0 MZ258 NA264/0 NC687 NE227 NF672 NG234/0 NI505 NL31/0 NO47 NP977/0 NR674 NU683 NZ64/0 OM968 PA507 PE51/0 PF689 PG675 PH63/0 PK92/0 PL48 PM508/0 PR1/1 PS970/0 PT351 PW680 PY595/0 QA974 RE262/0 RO40/0 RS381/0 RU7/8 RW250/0 SA966/0 SB677 SC248 SD249/0 SE46/0 SG65 SH290 SI386/0 SJ47 SK421/0 SL232/0 SM378 SN221 SO252/0 SR597 SS211/0 ST239 SV503 SX1/1 SY963/0 SZ268 TA290 TC1/1 TD235 TG228 TH66/0 TJ992 TK690 TL670 TM993/8 TN216 TO676 TR90/0 TT1/1 TV688 TW886/0 TZ255/0 UA380/0 UG256/0 US1/1 UY598/0 UZ998 VA39 VC1/1 VE58/0 VG1/1 VI1/1 VN84/0 VU678 WF681 WS685 XK383/0 YE967/0 YT262/0 ZA27/0 ZM260/0 ZW263/0",Zt;function qt(e){return Zt??(Zt=new Map($o.split(" ").map(t=>{let[o,n]=t.slice(2).split("/");return[t.slice(0,2),[o,n]]}))),Zt.get(e.toUpperCase())}s(qt,"entryOf");function Jt(e){return qt(e)?.[0]}s(Jt,"dialCodeOf");function Qt(e){return qt(e)?.[1]}s(Qt,"nationalPrefixOf");import{normalizeNni as Uo}from"@sekyro/web";function De(e){let t=Uo(e).replace(/\D/g,"");return/^\D*\+/.test(e)?`+${t}`:t.startsWith("00")?`+${t.slice(2)}`:t}s(De,"digitsOf");var We=s((e,t)=>(t.trunk!==void 0&&e.startsWith(t.trunk)?e.slice(t.trunk.length):e).slice(0,Math.max(...t.lengths)),"fitDigits");function ze(e,t){let o="",n=0;for(let a of t?.formats?.find(i=>new RegExp(`^(?:${i.leading})`).test(e))?.groups??[])n<e.length&&(o+=(n>0?" ":"")+e.slice(n,n+a)),n+=a;return o+e.slice(n)}s(ze,"groupDigits");function Xt(e,t){let o=0;for(let n=t;n>0&&o<e.length;o+=1)e[o]!==" "&&(n-=1);return o}s(Xt,"caretAfter");var Ye=s((e,t)=>t.find(o=>e.startsWith(o.dial)),"countryOfNumber"),jt=s((e,t)=>e.lengths.join(", ").replace(/, (\d+)$/,` ${t} $1`),"lengthsLabel");import{Fragment as io,jsx as g,jsxs as B}from"react/jsx-runtime";var oo=s((e,t)=>{if(e===void 0)return 0;let o=Date.parse(e)-t;return Number.isFinite(o)?Math.max(0,Math.ceil(o/1e3)):0},"secondsUntil"),Wo=s(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss"),zo=["whatsapp","sms"],Yo=new Set(["otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","otp_expired","otp_send_failed","otp_channel_unavailable","otp_destination_not_allowed","otp_destination_unknown","otp_rate_limited","otp_number_invalid","otp_number_not_mobile"]);function no(e){let t=De(e).replace("+","");return/^\d{8,15}$/.test(t)?`+${t}`:null}s(no,"normalizedPhone");var Zo=s(e=>String.fromCodePoint(...Array.from(e,t=>127397+t.charCodeAt(0))),"flagOf");function qo(e){let t=[];for(let o of e.phoneCountries??["MR"]){let n=e.phoneRules?.find(i=>i.code===o),a=n?.dial??Jt(o);a!==void 0&&!t.some(i=>i.code===o)&&t.push({code:o,dial:`+${a}`,...n!==void 0?{rule:n}:{}})}return t}s(qo,"phoneCountriesOf");function Jo(e,t){if(t===null||!e.startsWith(t.dial))return no(e);let o=e.slice(t.dial.length).replace(/\D/g,""),n=Qt(t.code);return n!==void 0&&o.startsWith(n)&&(o=o.slice(n.length)),no(t.dial+o)}s(Jo,"e164Of");var ro=s((e,t)=>(Ye(e,t)??t[0])?.code??null,"countryFor");function Qo(e){let t=null;try{t=new Intl.DisplayNames([e],{type:"region"})}catch{}return o=>`${t?.of(o.code)??o.code} (${o.dial})`}s(Qo,"countryLabels");var so="other";function Ze({step:e,locale:t,strings:o,className:n,defaultPhone:a,onError:i}){let r=x(t,o),{t:l}=r,c=Go(()=>qo(e),[e.phoneCountries,e.phoneRules]),f=a??c[0]?.dial??"",[k,y]=ie(()=>ro(f,c)),S=c.map(d=>d.code).join(",");eo(()=>{if(k===null||!c.some(d=>d.code===k)){let d=ro(f,c);y(d);let h=E.current,te=c.find(Y=>Y.code===d)?.dial;te!==void 0&&D(Y=>h!==null&&Y.startsWith(h.dial)?te+Y.slice(h.dial.length):Y.startsWith("+")?Y:te)}},[S,f]);let m=c.find(d=>d.code===k)??null,E=to(m);m!==null&&(E.current=m);let[P,D]=ie(f),[w,T]=ie(!1),[K,G]=ie(!1),[b,O]=ie(""),[C,W]=ie(!1),[F,H]=ie(null),J=e.phase==="verify",Ie=$t(J),v=Ko(),he=to(null);eo(()=>{let d=setTimeout(()=>he.current?.focus({preventScroll:!0}),350);return()=>clearTimeout(d)},[J]);let u=s(async d=>{W(!0),H(null);try{await d()}catch(h){H(ce(h,r.strings)),i?.(h)}finally{W(!1)}},"run"),_=zo.filter(d=>(e.channels??[]).includes(d)),Q=e.phoneInternational===!0,ge=w||m===null,X=ge||P.startsWith("+")&&!P.startsWith(m.dial),se=X?void 0:m.rule,yt=X?P:P.replace(m.dial,"").replace(/\D/g,""),j=se?We(yt,se):yt,ht=X&&!ge&&!Q&&e.phoneRules?.length&&!c.some(d=>d.dial.startsWith(P)),He=ht?null:se?se.lengths.includes(j.length)?m.dial+j:null:ge&&!P.startsWith("+")?null:Jo(P,w?null:m),Ee=!e.needsPhone||He!==null,Te=s((d,h=!1)=>{u(()=>e.send({...e.needsPhone&&(!h||P!==f)?{phone:He??P}:{},...d!==void 0?{channel:d}:{}}))},"send"),gt=s(d=>{u(()=>e.verify(d))},"submitCode"),St=s(d=>{d.preventDefault(),J?gt(b):_.length<=1&&Ee&&Te(_[0])},"onSubmit"),Eo=s(d=>{let h=d.target,te=d.nativeEvent.inputType,Y=Math.max(0,h.value.lastIndexOf("+")),ae=De(h.value.slice(Y)),ke=Ye(ae,c),be=De(h.value.slice(Y,h.selectionStart)).length,Ue=ae,Nt=ae;if(G(!1),!ke&&(ge||ae.startsWith("+")))Q&&T(!0);else{let ve=ke??m,Z=ke?ae.slice(ke.dial.length):ae;if(y(ve.code),T(!1),Z===j&&te?.startsWith("delete")&&(te.endsWith("Forward")||(be-=1),Z=Z.slice(0,be)+Z.slice(be+1)),ve.rule){let Ke=We(Z,ve.rule),wt=Z.length-Ke.length;be-=wt,Z=wt>0&&!ke&&j.length===Ke.length?j:Ke}Nt=ve.dial+Z,Ue=ze(Z,ve.rule)}D(Nt),h.value=Ue;let Pt=Xt(Ue,be);h.setSelectionRange(Pt,Pt)},"onNumber"),Me=ht?l("otp.reason_otp_destination_not_allowed"):K&&se?l("otp.phoneLengthError",{digits:jt(se,l("otp.or"))}):"",kt=c.length>1||Q,ee=`${v}-phone`,bt=oo(e.codeExpiresAt,Ie),Se=oo(e.resendAvailableAt,Ie),Re=J&&e.codeExpiresAt!==void 0&&bt===0,$e=s(d=>l(d==="whatsapp"?"otp.channelWhatsapp":"otp.channelSms"),"label"),[To,Mo]=l("otp.sentTo",{channel:$e(e.channel)}).split("{number}"),Ro=e.reason==="otp_mismatch"?B(I,{tone:"danger",children:[g("span",{children:l("otp.reason_otp_mismatch")}),g("span",{children:Ve(r,e.attemptsRemaining,e.attemptsExhausted)})]}):e.reason!==void 0&&Yo.has(e.reason)?g(I,{tone:"warning",children:g("span",{children:l(`otp.reason_${e.reason}`)})}):null,vt=B(io,{children:[Ro,F!==null?g(I,{tone:"danger",children:g("span",{children:l(F)})}):null]});if(J){let d=_.length===0;return B("form",{className:`sekyro-step sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":v,onSubmit:St,noValidate:!0,children:[g(oe,{id:v,title:l("otp.verifyTitle"),lead:B(io,{children:[To,g("bdi",{dir:"ltr",className:"sekyro-mono",children:e.sentToMasked}),Mo]})}),vt,B("div",{className:"sekyro-field",children:[g("label",{className:"sekyro-label",htmlFor:`${v}-code`,children:l("otp.codeLabel")}),g(Bt,{id:`${v}-code`,value:b,invalid:e.reason==="otp_mismatch",onChange:h=>{O(h),h.length===6&&b.length!==6&&!C&&!e.attemptsExhausted&>(h)}}),g("span",{className:`sekyro-help sekyro-otp-expiry${Re?" is-danger":""}`,"aria-hidden":!Re||void 0,children:Re?l("otp.expired"):l("otp.expiresIn",{time:Wo(bt)})})]}),g("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:Re?l("otp.expired"):""}),B(ne,{children:[g(N,{type:"submit",full:!0,disabled:C||b.length!==6||e.attemptsExhausted,"aria-busy":C||void 0,children:l("otp.verify")}),d?g("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:C||Se>0,onClick:()=>Te(void 0,!0),children:Se>0?l("otp.resendIn",{seconds:Se}):l("otp.resend")}):Se>0?g("p",{className:"sekyro-resend is-waiting",children:l("otp.resendIn",{seconds:Se})}):g("div",{className:"sekyro-resend-row",children:_.map(h=>g("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:C,onClick:()=>Te(h,!0),children:l("otp.resendBy",{channel:$e(h)})},h))})]})]})}let Ct=Qo(r.locale);return B("form",{className:`sekyro-step sekyro-otp${n?` ${n}`:""}`,"aria-labelledby":v,onSubmit:St,noValidate:!0,children:[g(oe,{id:v,title:l("otp.sendTitle"),lead:l("otp.sendDescription")}),vt,e.needsPhone?B("div",{className:"sekyro-field",children:[g("label",{className:"sekyro-label",htmlFor:ee,children:l("otp.phoneLabel")}),B("div",{className:"sekyro-phone",dir:"ltr",children:[m===null||X&&!w?null:B("div",{className:"sekyro-phone__lead",children:[kt?B("select",{className:"sekyro-phone__country",dir:r.locale==="ar"?"rtl":"ltr","aria-label":`${l("otp.countryLabel")}: ${w?l("otp.otherCountry"):Ct(m)}`,value:w?so:m.code,onChange:d=>{G(!1);let h=c.find(te=>te.code===d.target.value);T(h===void 0),h!==void 0&&y(h.code),D(h===void 0?"":h.dial+(X?"":j))},children:[c.map(d=>g("option",{value:d.code,children:Ct(d)},d.code)),Q?g("option",{value:so,children:l("otp.otherCountry")}):null]}):null,B("span",{className:"sekyro-phone__dial",id:`${ee}-dial`,"aria-hidden":kt||void 0,children:[g("span",{className:"sekyro-phone__flag","aria-hidden":"true",children:w?"🌐":Zo(m.code)}),w?null:m.dial]})]}),g("input",{ref:he,id:ee,className:"sekyro-phone__input",type:"tel",dir:"ltr",inputMode:"tel",autoComplete:"tel","aria-describedby":`${X?"":`${ee}-dial ${ee}-hint `}${Me?`${ee}-error`:""}`.trim()||void 0,"aria-invalid":!!Me||void 0,placeholder:ge?"+":void 0,value:X?P:ze(j,se),onChange:Eo,onKeyDown:d=>{d.key==="Enter"&&!Ee&&G(!0)},onBlur:d=>{d.relatedTarget?.tagName!=="SELECT"&&G(j!==""&&He===null)}})]}),X?null:g("span",{className:"sekyro-help",id:`${ee}-hint`,children:l("otp.phonePlaceholderGeneric")}),Me?g("span",{className:"sekyro-help is-danger",id:`${ee}-error`,role:"alert",children:Me}):null]}):g("p",{className:"sekyro-text-muted",children:l("otp.prefilledNotice")}),g(ne,{children:_.length>0?B("div",{className:"sekyro-actions__group",role:"group","aria-label":l("otp.chooseChannel"),children:[g("p",{className:"sekyro-label","aria-hidden":"true",children:l("otp.chooseChannel")}),_.map((d,h)=>g(N,{kind:h===0?"primary":"ghost",full:!0,disabled:C||!Ee,"aria-busy":h===0&&C||void 0,onClick:()=>Te(d),children:l("otp.sendBy",{channel:$e(d)})},d))]}):g(N,{type:"submit",full:!0,disabled:C||!Ee,"aria-busy":C||void 0,children:l("otp.send")})})]})}s(Ze,"PhoneOtpStep");import{lazy as jo,Suspense as en,useMemo as tn,useState as on}from"react";import{Component as Xo}from"react";var qe=class qe extends Xo{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};s(qe,"LoadBoundary");var z=qe;import{jsx as pe,jsxs as rn}from"react/jsx-runtime";var nn={load:s(()=>import("../email-otp-view-56JMHX3M.js"),"load")};function Je({locale:e,strings:t,...o}){let n=x(e,t),[a,i]=on(0),r=tn(()=>jo(()=>nn.load().then(c=>({default:c.EmailOtpView}))),[a]),l=rn(I,{tone:"danger",children:[pe("span",{children:n.t("errors.network_error")}),pe(N,{kind:"ghost",onClick:()=>i(c=>c+1),children:n.t("common.retry")})]});return pe(z,{fallback:l,children:pe(en,{fallback:pe("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:n.t("common.loading")}),children:pe(r,{...o,i18n:n})})},a)}s(Je,"EmailOtpStep");import{lazy as sn,Suspense as an,useMemo as ln,useState as cn}from"react";import{jsx as ue,jsxs as un}from"react/jsx-runtime";var pn={load:s(()=>import("../eid-view-BKKVB5QT.js"),"load")};function Qe({locale:e,strings:t,...o}){let n=x(e,t),[a,i]=cn(0),r=ln(()=>sn(()=>pn.load().then(c=>({default:c.EidView}))),[a]),l=un(I,{tone:"danger",children:[ue("span",{children:n.t("errors.network_error")}),ue(N,{kind:"ghost",onClick:()=>i(c=>c+1),children:n.t("common.retry")})]});return ue(z,{fallback:l,children:ue(an,{fallback:ue("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:n.t("common.loading")}),children:ue(r,{...o,i18n:n})})},a)}s(Qe,"EidStep");import{useMemo as Sn}from"react";import{lazy as dn,Suspense as mn,useMemo as fn,useState as yn}from"react";import{jsx as de,jsxs as gn}from"react/jsx-runtime";var hn={load:s(()=>import("../flow-views-7FMODRP7.js"),"load")};function M({view:e,i18n:t,quiet:o,...n}){let[a,i]=yn(0),r=fn(()=>dn(()=>hn.load().then(c=>({default:c[e]}))),[e,a]),l=gn(I,{tone:"danger",children:[de("span",{children:t.t("errors.network_error")}),de(N,{kind:"ghost",onClick:()=>i(c=>c+1),children:t.t("common.retry")})]});return de(z,{fallback:l,children:de(mn,{fallback:o===!0?null:de("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:t.t("common.loading")}),children:de(r,{...n,i18n:t})})},a)}s(M,"Flow");import{jsx as Xe,jsxs as kn}from"react/jsx-runtime";function je({step:e,locale:t,strings:o,className:n,onError:a}){let i=x(t,o),{busy:r,error:l,run:c}=Gt(i,a),f=Sn(()=>e.choice.options.flatMap(y=>{let S=Kt(y,i),m=Ut[y.service];return S===null?[]:[{id:y.id,label:S,glyph:m&&Xe(q,{name:m})}]}),[e.choice.options,i]),k=e.choice.options.find(y=>y.service==="national_eid");return kn("div",{className:n,children:[Xe(At,{title:i.t("method.title"),description:i.t("method.description"),options:f,busy:r,error:l,focus:!0,testId:"sekyro-method",onChoose:y=>c(()=>e.choose(y))}),k?.nationalEid?.afterPass==="continue"?Xe(M,{view:"EidContinueHint",i18n:i,provider:k.nationalEid.providerName,quiet:!0}):null]})}s(je,"MethodChoice");import{isValidNni as bn,normalizeNni as ao}from"@sekyro/web";import{useId as vn,useState as et}from"react";import{Fragment as wn,jsx as R,jsxs as me}from"react/jsx-runtime";var Cn=new Set(["nni_not_found","registry_record_not_found"]),Nn=new Set(["nni_invalid","id_number_invalid"]);function Be({step:e,locale:t,strings:o,className:n,onError:a}){let i=x(t,o),{t:r}=i,[l,c]=et(""),[f,k]=et(!1),[y,S]=et(null),m=vn(),E=e.attemptsExhausted,P=s(async W=>{k(!0),S(null);try{await W()}catch(F){S(ce(F,i.strings)),a?.(F)}finally{k(!1)}},"run"),D=s(W=>{if(W.preventDefault(),e.source!=="typed"){P(()=>e.confirm());return}let F=ao(l);if(!/^\d{10}$/.test(F))return S("population.invalid");if(!bn(F))return S("population.reason_id_number_invalid");P(()=>typeof e.submitIdNumber=="function"?e.submitIdNumber(F):e.submitNni(F))},"onSubmit"),w=Ve(i,e.attemptsRemaining,E),T=e.reason!==void 0&&Cn.has(e.reason),K=e.reason!==void 0&&Nn.has(e.reason),G=me(wn,{children:[e.reason==="registry_unavailable"?me(I,{tone:"warning",children:[R("span",{children:r("population.reason_registry_unavailable")}),R("span",{children:w})]}):null,T&&e.canUseDocument?me(I,{tone:"warning",children:[R("span",{children:r("population.reason_registry_record_not_found_or_document")}),R("span",{children:w}),R(N,{kind:"ghost",disabled:f,onClick:()=>{P(()=>e.useDocument())},children:r("population.useDocument")})]}):null,T&&!e.canUseDocument||K?me(I,{tone:"danger",children:[R("span",{children:r(T?"population.reason_registry_record_not_found":"population.reason_id_number_invalid")}),R("span",{children:w})]}):null,E&&e.reason===void 0?R(I,{tone:"danger",children:R("span",{children:w})}):null,y!==null?R(I,{tone:"danger",children:R("span",{children:r(y)})}):null]}),[b,O,C]=e.source==="document"?["population.fromDocument.title","population.fromDocument.description","population.fromDocument.continue"]:e.source==="bound"?["session.steps.population.title","population.bound.description","population.bound.confirm"]:e.recheck?["population.recheck.title","population.recheck.description","population.submit"]:["session.steps.population.title","session.steps.population.description","population.submit"];return me("form",{className:`sekyro-step${n?` ${n}`:""}`,"aria-labelledby":m,onSubmit:D,noValidate:!0,children:[R(oe,{id:m,title:r(b),lead:r(O)}),G,e.source==="typed"?me("div",{className:"sekyro-field",children:[R("label",{className:"sekyro-label",htmlFor:`${m}-id-number`,children:r("population.label")}),R("input",{id:`${m}-id-number`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:r("population.placeholder"),value:l,"aria-describedby":`${m}-id-number-help`,"aria-invalid":y==="population.invalid"||y==="population.reason_id_number_invalid"||void 0,onChange:W=>{S(null),c(ao(W.target.value).replace(/\D/g,"").slice(0,10))}}),R("span",{id:`${m}-id-number-help`,className:"sekyro-help",children:r("population.helper")})]}):null,R(ne,{children:E?null:R(N,{type:"submit",full:!0,disabled:f,"aria-busy":f||void 0,children:r(C)})})]})}s(Be,"IdNumberEntry");function Pn(e){return Be(e)}s(Pn,"NniEntry");import{acceptedIssuers as Mn,acceptedTypesFor as Rn,warmDocumentCapture as An}from"@sekyro/web";import{lazy as Ln,Suspense as On,useEffect as Vn,useMemo as Dn,useState as mo}from"react";import{acceptedIssuers as _n,acceptedTypesFor as tt}from"@sekyro/web";import{useEffect as lo,useId as xn,useMemo as co,useState as ot}from"react";import{jsx as A,jsxs as fe}from"react/jsx-runtime";var po=s(e=>e.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase(),"fold"),In=s(e=>String.fromCodePoint(...Array.from(e.toUpperCase(),t=>127397+t.charCodeAt(0))),"flag"),En=220;function Tn(e,t,o=[]){let n=null;try{n=new Intl.DisplayNames([e],{type:"region"})}catch{}let a=t.map(l=>({code:l,name:n?.of(l)??l})),i=new Intl.Collator(e),r=s(l=>{let c=o.indexOf(l);return c<0?o.length:c},"rank");return a.sort((l,c)=>r(l.code)-r(c.code)||i.compare(l.name,c.name))}s(Tn,"countryNames");function uo({step:e,i18n:t,issuer:o,onPicked:n}){let{t:a,locale:i}=t,r=co(()=>_n(e.documents),[e.documents]),l=co(()=>Tn(i,r,Object.keys(e.documents.byIssuer??{})),[i,r,e.documents]),c=r.length===1?r[0]:null,[f,k]=ot(o??c),[y,S]=ot(""),[m,E]=ot(null),P=xn(),D=c===null?[]:tt(e.documents,c),w=c!==null&&D.length===1?D[0]:null;lo(()=>{c!==null&&w!==null&&e.selectDocument(c,w)},[c,w]);let T=s((b,O)=>{e.selectDocument(b,O),n?.()},"pick"),K=s(b=>{let O=tt(e.documents,b);O.length===1?T(b,O[0]):k(b)},"chooseIssuer");if(lo(()=>{if(m===null||f===null)return;let b=setTimeout(()=>T(f,m),En);return()=>clearTimeout(b)},[m]),w!==null)return null;if(f===null){let b=po(y.trim()),O=b===""?l:l.filter(C=>po(C.name).includes(b)||C.code.toLowerCase()===b);return fe("section",{className:"sekyro-step",children:[A(oe,{title:a("doc.countryTitle"),lead:a("doc.pickDescription")}),fe("div",{className:"sekyro-field",children:[A("label",{className:"sekyro-label",htmlFor:P,children:a("doc.countryLabel")}),A("input",{id:P,type:"search",className:"sekyro-input",placeholder:a("doc.countrySearch"),value:y,onChange:C=>S(C.target.value)})]}),O.length===0?A("p",{className:"sekyro-text-muted",children:a("doc.noCountryMatch")}):A("ul",{className:"sekyro-rows",children:O.map(C=>A("li",{children:fe("button",{type:"button",className:"sekyro-row-btn",onClick:()=>K(C.code),children:[A("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:In(C.code)}),C.name]})},C.code))}),A(ne,{children:null})]})}let G=tt(e.documents,f);return fe("section",{className:"sekyro-step",children:[A(oe,{title:a("doc.pickTitle"),lead:a("native.doc.holdIt")}),A("div",{className:"sekyro-choices",children:G.map(b=>fe("button",{type:"button",className:"sekyro-card","aria-pressed":m===b,disabled:m!==null&&m!==b,onClick:()=>E(b),children:[A(q,{name:b==="passport"?"passport":"card"}),fe("span",{className:"sekyro-card__body",children:[A("span",{className:"sekyro-card__title",children:a(`doc.type.${b}`)}),A("span",{className:"sekyro-card__sub",children:a(`doc.sub.${b}`)})]}),A("span",{className:"sekyro-radio","aria-hidden":"true"})]},b))}),r.length>1?A("button",{type:"button",className:"sekyro-link",onClick:()=>{k(null),E(null)},children:a("native.doc.changeCountry")}):null,A(ne,{children:null})]})}s(uo,"DocumentPicker");import{jsx as re,jsxs as Fn}from"react/jsx-runtime";var Bn={load:s(()=>import("../document-capture-view-6NADWNPQ.js"),"load")};function nt({step:e,locale:t,strings:o,className:n,liveMrz:a}){let i=x(t,o),[r,l]=mo(0),[c,f]=mo(null),k=Mn(e.documents).length>1,y=e.issuer!==null&&Rn(e.documents,e.issuer).length>1,S=Dn(()=>Ln(()=>Bn.load().then(E=>({default:E.DocumentCaptureView}))),[r]);Vn(()=>{An()},[]);let m=Fn(I,{tone:"danger",children:[re("span",{children:i.t("errors.network_error")}),re(N,{kind:"ghost",onClick:()=>l(E=>E+1),children:i.t("doc.retryCamera")})]});return re("div",{className:n,children:e.documentType===null||e.issuer===null||c!==null?re(uo,{step:e,i18n:i,...c==="document"&&e.issuer!==null?{issuer:e.issuer}:{},onPicked:()=>f(null)}):re(z,{fallback:m,children:re(On,{fallback:re("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:i.t("common.loading")}),children:re(S,{step:e,i18n:i,liveMrz:a,...k?{onChangeCountry:s(()=>f("country"),"onChangeCountry")}:{},...y?{onChangeDocument:s(()=>f("document"),"onChangeDocument")}:{}})})},r)})}s(nt,"DocumentCapture");import{warmPortraitCapture as Hn}from"@sekyro/web";import{Component as $n,lazy as Un,Suspense as Kn,useEffect as Gn,useMemo as Wn,useState as zn}from"react";import{jsx as V,jsxs as st}from"react/jsx-runtime";var Yn={load:s(()=>import("../portrait-capture-view-JYTBBXFU.js"),"load")},at=class at extends $n{constructor(){super(...arguments);this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};s(at,"LoadBoundary");var rt=at;function Zn({step:e,i18n:t}){let{t:o}=t,n=le();return st("section",{className:"sekyro-stack sekyro-stack--2","data-testid":"sekyro-portrait-match",children:[V("h2",{ref:n,tabIndex:-1,className:"sekyro-text-body",children:o(e.review?"portrait.reviewTitle":"session.steps.portrait.title")}),e.review?V("p",{className:"sekyro-text-muted",children:o("portrait.reviewDescription")}):null,e.uploadFailed?st(I,{tone:"danger",children:[V("span",{children:o("portrait.uploadFailed")}),V(N,{kind:"ghost",onClick:()=>{e.resubmit()},children:o("portrait.sendAgain")})]}):V("p",{role:"status","aria-live":"polite","aria-busy":"true",className:"sekyro-text-muted",children:o("portrait.matching")})]})}s(Zn,"MatchPhase");function it({step:e,locale:t,strings:o,className:n,assetBaseUrl:a}){let i=x(t,o),[r,l]=zn(0),c=Wn(()=>Un(()=>Yn.load().then(k=>({default:k.PortraitCaptureView}))),[r]);if(Gn(()=>{e.phase==="capture"&&Hn()},[e.phase]),e.phase==="match")return V("div",{className:n,children:V(Zn,{step:e,i18n:i})});let f=st(I,{tone:"danger",children:[V("span",{children:i.t("errors.network_error")}),V(N,{kind:"ghost",onClick:()=>l(k=>k+1),children:i.t("portrait.retryCamera")})]});return V("div",{className:n,children:V(rt,{fallback:f,children:V(Kn,{fallback:V("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:i.t("common.loading")}),children:V(c,{step:e,i18n:i,...a!==void 0?{assetBaseUrl:a}:{}})})},r)})}s(it,"PortraitCapture");import{cameraUnavailableCauseOf as dr}from"@sekyro/web";import{useCallback as _e,useEffect as xo,useId as mr,useRef as dt,useState as xe}from"react";var Pe={light:{danger:{base:"#ca0f07",soft:"#ffdada",fg:"#ca0f07",on:"#ffffff"},success:{base:"#007a5e",soft:"#d5f0e8",fg:"#005341",on:"#ffffff"},warning:{base:"#ffab00",soft:"#fff7e6",fg:"#735003",on:"#191a1b"},info:{base:"#0563d4",soft:"#d3e5ff",fg:"#064da5",on:"#ffffff"}},dark:{danger:{base:"#ff7c7c",soft:"#9c1008",fg:"#ffbbbb",on:"#030303"},success:{base:"#00c897",soft:"#002c23",fg:"#53ffd4",on:"#030303"},warning:{base:"#ffbb2e",soft:"#463102",fg:"#ffd98a",on:"#030303"},info:{base:"#5da9ff",soft:"#063778",fg:"#acd0ff",on:"#030303"}}},qn=["danger","success","warning","info"];function lt(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}s(lt,"channel");function fo(e){let t=lt(parseInt(e.slice(1,3),16)),o=lt(parseInt(e.slice(3,5),16)),n=lt(parseInt(e.slice(5,7),16));return .2126*t+.7152*o+.0722*n}s(fo,"luminance");function Jn(e,t){let o=fo(e),n=fo(t),a=Math.max(o,n),i=Math.min(o,n);return(a+.05)/(i+.05)}s(Jn,"contrastRatio");function yo(e,t){return Math.min(...qn.map(o=>Jn(Pe[e][o].fg,t)))}s(yo,"worstAgainst");function ho(e,t,o){return Math.min(yo(e,t),yo(e,o))}s(ho,"worstStatusContrast");function go(e,t){return ho("light",e,t)>=ho("dark",e,t)?"light":"dark"}s(go,"statusSchemeFor");import{useId as Qn,useState as Xn}from"react";import{jsx as Fe,jsxs as So}from"react/jsx-runtime";var jn=["intro","data","processing","sharing","retention"];function ko({i18n:e,purpose:t="identity"}){let{t:o}=e,[n,a]=Xn(!1),i=Qn(),[r,l=""]=o("consent.short").split("{terms}");return So("section",{className:"sekyro-stack sekyro-stack--1","data-testid":"sekyro-consent",children:[So("p",{className:"sekyro-text-muted",children:[r,Fe("button",{type:"button",className:"sekyro-link","aria-expanded":n,"aria-controls":i,onClick:()=>a(c=>!c),children:o("consent.termsLink")}),l]}),Fe("div",{id:i,hidden:!n,className:"sekyro-stack sekyro-stack--1 sekyro-text-muted","data-testid":"sekyro-consent-terms",children:t==="human"?Fe(M,{view:"HumanConsentTerms",i18n:e,quiet:!0}):jn.map(c=>Fe("p",{children:o(`consent.terms.${c}`)},c))})]})}s(ko,"ConsentNotice");function bo(e){let t=e.trim().split(/\s+/).filter(n=>n!=="");return(t.length>=2?[t[0],t[1]].map(n=>Array.from(n??"")[0]??""):Array.from(t[0]??"").slice(0,2)).join("").toUpperCase()}s(bo,"initials");import{useSyncExternalStore as er}from"react";var No=s(e=>({colors:{...e?L.dark:L.light},radius:L.radiusLg,fontFamily:L.font}),"brandTheme"),Pi=No(!1),vo=/^#[0-9a-f]{6}$/i;function ct(e,t,o){if(t)return null;let n=Ce(e).colors,a=o?.colors?.bg??n?.bg,i=o?.colors?.surface??n?.surface;return a===void 0&&i===void 0||a!==void 0&&!vo.test(a)||i!==void 0&&!vo.test(i)?null:go(a??L.light.bg,i??L.light.surface)}s(ct,"partnerStatusScheme");function Po(e,t,o){let n=Ce(e);if(o&&n.colors!==void 0){let{brand:a,brandFg:i}=n.colors;a!==void 0&&rr(a,L.dark.bg)>=3?n.colors={brand:a,ring:a,...i!==void 0?{brandFg:i}:{}}:delete n.colors}if(ct(e,o,t)==="dark"){let a=Pe.dark;n.colors={...n.colors,danger:a.danger.base,success:a.success.base,warning:a.warning.fg}}return Le(No(o),n,Ot(t))}s(Po,"verificationTheme");function wo(e){let t=er(nr,or,()=>!1);return e==="dark"||e==="system"&&t}s(wo,"useDarkScheme");var tr="(prefers-color-scheme: dark)",_o=s(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(tr):null,"media"),or=s(()=>_o()?.matches??!1,"prefersDark");function nr(e){let t=_o();return t?.addEventListener("change",e),()=>t?.removeEventListener("change",e)}s(nr,"subscribe");function rr(e,t){let[o,n]=[Co(e),Co(t)];return(Math.max(o,n)+.05)/(Math.min(o,n)+.05)}s(rr,"contrast");function Co(e){let t=[1,3,5].map(o=>{let n=Number.parseInt(e.slice(o,o+2),16)/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4});return .2126*(t[0]??0)+.7152*(t[1]??0)+.0722*(t[2]??0)}s(Co,"luminance");import{useEffect as sr,useId as ir,useState as ar}from"react";import{jsx as $,jsxs as we}from"react/jsx-runtime";var lr=new Set(["document_id_number_mismatch","name_mismatch","birth_date_mismatch"]),cr={approved:"M6.5 12.5l3.6 3.6 7.4-8.2",review:"M12 7v5l3.2 2",expired:"M8 5h8M8 19h8M9 5c0 4 6 5 6 7s-6 3-6 7M15 5c0 4-6 5-6 7s6 3 6 7",rejected:"M8 8l8 8M16 8l-8 8"};function pr({outcome:e}){return we("svg",{className:`sekyro-outcome sekyro-outcome--${e}`,viewBox:"0 0 136 136","aria-hidden":"true",focusable:"false",children:[$("circle",{className:"sekyro-outcome__ring",cx:"68",cy:"68",r:"57",pathLength:"1"}),$("circle",{className:"sekyro-outcome__disc",cx:"68",cy:"68",r:"48"}),$("path",{className:"sekyro-outcome__glyph",d:cr[e],pathLength:"1",transform:"translate(39 39) scale(2.4167)"})]})}s(pr,"OutcomeMark");function ur({label:e,id:t,copied:o}){let[n,a]=ar(!1);return sr(()=>{if(!n)return;let i=setTimeout(()=>a(!1),1600);return()=>clearTimeout(i)},[n]),we("button",{type:"button",className:`sekyro-reference${n?" is-copied":""}`,onClick:()=>{navigator.clipboard?.writeText(t).then(()=>a(!0),()=>{})},children:[$("span",{"aria-live":"polite",children:n?o:e}),$("bdi",{dir:"ltr",children:t}),$(q,{name:"copy"})]})}s(ur,"ReferenceLine");function pt({step:e,locale:t,strings:o,className:n,onClose:a}){let i=x(t,o),{t:r}=i,l=ir(),c=le(),f=e.context.orgName,k=e.display==="approved"?"approved":e.display==="review"?"review":e.display==="expired"?"expired":"rejected",y;switch(e.display){case"policy_stop":{let S=e.failureReason??"";if(lr.has(_t(S)))y=r("session.result.detailsMismatch",{org:f});else if(S==="device_velocity_exceeded")y=r("session.result.deviceVelocity",{org:f});else if(S==="capture_tampered")y=r("session.result.deviceStop");else if(S==="camera_unavailable")y=r("reasons.camera_unavailable",{org:f});else{let m=It(S);y=m!==null?r(m,{org:f}):r("session.result.rejected.description")}break}case"cooldown":{let S=Et(i.locale,e.retryAfter);y=S!==null?r(S.key,{time:S.time}):r("reasons.device_cooldown");break}case"platform_unsupported":y=r("result.platform_unsupported");break;case"attempts_exhausted":y=r("common.noAttemptsLeft");break;default:y=f!==""?r(`native.result.${k}`,{org:f}):r(`session.result.${k}.description`)}return we("section",{className:`sekyro-result${n?` ${n}`:""}`,"aria-labelledby":l,"data-testid":"sekyro-result",children:[we("div",{className:"sekyro-result__body",children:[$(pr,{outcome:e.display==="cooldown"?"review":k}),we("div",{className:"sekyro-heading",children:[$("h2",{id:l,ref:c,tabIndex:-1,className:"sekyro-text-body",children:r(`session.result.${k}.title`)}),$("p",{className:"sekyro-text-muted",children:y})]}),$(ur,{label:r("result.referenceLabel"),id:e.context.sessionId,copied:r("native.result.copied")})]}),a!==void 0?$("div",{className:"sekyro-actions",children:$(N,{full:!0,onClick:a,children:f!==""?r("native.result.back",{org:f}):r("native.close")})}):null]})}s(pt,"VerificationResultScreen");import{Fragment as ut,jsx as p,jsxs as U}from"react/jsx-runtime";function fr(e,t,o){let n=t?L.dark:L.light,a=t?L.roles.dark:L.roles.light,i=e.colors??{},r={},l=i.fg===n.fg&&i.surface===n.surface;if(i.brand===n.brand&&i.surface===n.surface&&(r["--sekyro-color-brand-soft"]=a.brandSoft),l&&(r["--sekyro-color-line"]=a.line,r["--sekyro-color-line-subtle"]=a.lineSubtle,r["--sekyro-color-line-strong"]=a.lineStrong,r["--sekyro-color-sunken"]=a.sunken),i.fgMuted===n.fgMuted&&i.surface===n.surface&&(r["--sekyro-color-fg-subtle"]=a.fgSubtle),e.fontFamily===L.font&&(r["--sekyro-font-display"]=L.fontDisplay),o!==null){let c=Pe[o];r["--sekyro-color-danger-soft"]=c.danger.soft,r["--sekyro-color-success-soft"]=c.success.soft,r["--sekyro-color-warning-soft"]=c.warning.soft}return r}s(fr,"flowRoles");function mt(e){let{verification:t,locale:o,strings:n,onStep:a,onResult:i}=e,{step:r,error:l}=Ge(t);xo(()=>{r!==null&&a?.(r)},[r,a]),xo(()=>i===void 0?void 0:t.on("result",i),[t,i]);let c=wo(e.colorScheme??"light"),f=r?.context.branding,k=Po(f,e.theme,c),[y,S]=xe(!1),m=`sekyro-verification${c?" sekyro-verification--dark":""}${y?" is-immersive":""}${e.className!==void 0?` ${e.className}`:""}`,E=dt(e.onClose);E.current=e.onClose;let P=dt(r);P.current=r;let D=_e(()=>{let w=P.current;E.current?.(w?.kind==="result"?{reason:"finished",result:w.result}:{reason:"cancelled"})},[]);return p(Dt,{theme:k,className:m,children:p(Ne,{locale:o,...n!==void 0?{strings:n}:{},children:p("div",{dir:e.dir??(o==="ar"?"rtl":"ltr"),lang:o,className:"sekyro-flow",style:fr(k,c,ct(f,c,e.theme)),children:p(Ft.Provider,{value:S,children:p(Oe.Provider,{value:e.onClose!==void 0?D:void 0,children:p(gr,{...e,step:r,error:l,immersive:y})})})})})})}s(mt,"SekyroVerification");function yr(e,t){if(t===void 0)return null;let o=e,n=o[`session.processing.${t}.title`],a=o[`session.processing.${t}.description`];return typeof n=="string"&&n!==""&&typeof a=="string"&&a!==""?{title:n,description:a}:null}s(yr,"processingCopyOf");function hr({error:e,retry:t}){let{t:o}=x(),n=le();return U(Ae,{tone:"danger",testId:"sekyro-error-notice",children:[p("span",{children:o(xt(e.kind))}),e.retryable?p(N,{ref:n,kind:"ghost",className:"sekyro-btn--start",onClick:t,children:o("common.retry")}):null]})}s(hr,"CameraErrorNotice");function gr(e){let{step:t,error:o,slots:n,immersive:a}=e,i=x(),{t:r}=i,[l,c]=xe(!1),[f,k]=xe(0),[y,S]=xe(null),m=t?.context.purpose??"identity",E=e.verification,P=m==="human"||t?.context.cameraUnavailableHandled===!0,D=E.reportCameraUnavailable!==void 0&&P?u=>E.reportCameraUnavailable?.(u)??Promise.resolve():void 0,w=t?.kind==="liveness"&&t.mode==="liveness"&&t.reason===void 0&&!t.attemptsExhausted,T=e.handoffUrl,K=_e((u,_)=>D===void 0?void 0:p(M,{view:"NoCameraView",i18n:i,quiet:!0,cause:_,onRetry:u,...w?{onContinue:D}:{},...T!==void 0?{handoffUrl:T}:{}}),[i,E,P,w,T]),G=_e((u,_)=>p(Wt,{start:u,context:_,human:m==="human",extra:_.canChooseFacing&&p(Rt,{value:_.facing,onChange:_.setFacing}),notice:_.permissionSettled&&_.permission==="denied"?K(u,"denied"):void 0}),[m,K]),b=_e((u,_)=>{let Q=dr(u.kind);return(Q!==void 0?K(_,Q):void 0)??U(ut,{children:[p(hr,{error:u,retry:_}),Q!==void 0&&T!==void 0?p(M,{view:"DesktopHandoffView",i18n:i,quiet:!0,url:T}):null]})},[K,T,i]),O=dt(""),C=e.livenessProps?.slots?.stageOverlay,W=_e(u=>(u.guidance!==""&&!u.coached&&(O.current=u.guidance),p(zt,{testId:"sekyro-capture-stage",video:p("video",{ref:u.videoRef,playsInline:!0,muted:!0,className:"sekyro-lm-video sekyro-fc-video","aria-hidden":"true","data-testid":"sekyro-capture-video"}),instruction:u.guidance!==""?u.guidance:O.current,note:u.note,busy:u.settled,progress:u.phase==="seeking"||u.phase==="aligning"?u.progress:1,still:u.still,live:u.live,closeLabel:r("native.close"),overlay:C?.(u.videoRef),ramp:u.ramp?.colour??null,...u.settled?{}:{onClose:s(()=>k(_=>_+1),"onClose")},end:u.switchCamera&&p("button",{type:"button",className:"sekyro-glass",onClick:u.switchCamera,"aria-label":r("capture.switchCamera"),children:p(Tt,{})})})),[r,C]),F=mr();if(o!==null)return p(Ae,{tone:"danger",children:p("span",{children:r(ce(o,i.strings))})});if(t===null)return p("p",{role:"status","aria-busy":"true",className:"sekyro-text-muted",children:r("common.loading")});let{context:H}=t,J=s(u=>{c(!0),u().finally(()=>c(!1))},"refresh"),Ie=n?.header??p(kr,{context:H,headerId:F,end:n?.headerEnd}),v,he=y===t.key&&t.context.switchable!==void 0;if(he)v=p(M,{view:"LaneChoiceView",i18n:i,step:t,onClose:()=>S(null)});else switch(t.kind){case"phone_otp":v=p(Ze,{step:t});break;case"email_otp":v=p(Je,{step:t});break;case"method":v=p(je,{step:t});break;case"registry":v=p(Be,{step:t});break;case"document":v=p(nt,{step:t,...e.documentLiveMrz!==void 0?{liveMrz:e.documentLiveMrz}:{}});break;case"liveness":{let u=e.livenessProps?.slots?.intro,_={...e.livenessProps??{},slots:{...e.livenessProps?.slots,intro:u??G,...u===void 0&&e.livenessProps?.slots?.errorPanel===void 0?{errorPanel:b}:{}},...f>0?{autoStart:!1}:{},verification:e.verification,locale:e.locale,dir:e.dir,strings:i.strings,assetBaseUrl:e.assetBaseUrl,voice:e.voice,onCaptured:e.onLivenessCaptured};v=p(Mt.Provider,{value:W,children:t.instructions==="icao"||t.livePhoto?.icao===!0?p(M,{view:"LivePhotoLiveness",i18n:i,step:t,livenessProps:_,sekyroIntro:u===void 0},f):p(Lt,{..._},f)});break}case"portrait":v=U(ut,{children:[t.retakeOnly?p(M,{view:"PortraitRetakeNotice",i18n:i,quiet:!0}):null,p(it,{step:t,...e.assetBaseUrl!==void 0?{assetBaseUrl:e.assetBaseUrl}:{}})]});break;case"contact_choice":v=p(M,{view:"ContactChoiceView",i18n:i,step:t});break;case"choice":v=p(M,{view:"GenericChoiceView",i18n:i,step:t});break;case"identity_summary":v=p(M,{view:"IdentitySummaryView",i18n:i,step:t});break;case"mobile_required":v=e.handoffUrl!==void 0?p(M,{view:"HandoffView",i18n:i,url:e.handoffUrl,refresh:t.refresh}):U(Ae,{tone:"info",children:[p("strong",{children:r("handoff.title")}),p("span",{children:r("reasons.mobile_required")}),p(N,{kind:"ghost",disabled:l,onClick:()=>J(t.refresh),children:r("common.refresh")})]});break;case"processing":{let u=yr(i.strings,t.service);v=U("section",{className:"sekyro-stack sekyro-stack--1",role:"status","aria-live":"polite",children:[p("h2",{className:"sekyro-text-body",children:u?.title??r("session.processing.title")}),p("p",{className:"sekyro-text-muted",children:u?.description??r("session.processing.description")}),t.stalled?p(N,{kind:"ghost",disabled:l,onClick:()=>J(t.refresh),children:r("common.refresh")}):null]});break}case"eid":v=p(Qe,{step:t});break;case"unsupported":{let u=t.reason==="platform_unsupported";v=U("section",{className:"sekyro-stack sekyro-stack--1",children:[p("h2",{className:"sekyro-text-body",children:r(u?"needsApp.title":"unsupported.title")}),p("p",{children:u?H.orgName!==""?r("needsApp.description",{org:H.orgName}):r("needsApp.descriptionNoOrg"):r("unsupported.description",{org:H.orgName})})]});break}case"result":v=n?.result?.(t)??p(Sr,{step:t});break;default:{let u=t;v=null}}return U(ut,{children:[a?null:Ie,!a&&t.kind!=="result"&&H.sections.length>1?p(br,{context:H,current:t.section,i18n:i}):null,!a&&!H.consentRecorded&&t.kind!=="result"?p(ko,{i18n:i,purpose:H.purpose}):null,p(Ht,{pageKey:t.key,children:v}),!a&&!he&&t.kind!=="result"&&t.context.switchable!==void 0?p(M,{view:"LaneSwitch",i18n:i,step:t,onOpen:()=>S(t.key),quiet:!0},t.key):null,a?null:n?.footer!==void 0?n.footer:H.branding?.hideAttribution===!0?null:U("a",{className:"sekyro-footer",href:"https://sekyro.ai",target:"_blank",rel:"noopener noreferrer",children:[p(q,{name:"lock"}),r("shell.verifiedBy")]})]})}s(gr,"Body");function Sr({step:e}){return p(Oe.Consumer,{children:t=>p(pt,{step:e,...t!==void 0?{onClose:t}:{}})})}s(Sr,"ResultPage");function kr({context:e,headerId:t,end:o}){let{t:n}=x(),[a,i]=xe(!1),r=a?void 0:e.branding?.logoUrl,l=e.orgName!==""?e.orgName:n(e.returning?"returning.title":"session.title");return U("header",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":t,children:[U("div",{className:"sekyro-org",children:[p("span",{className:"sekyro-org__tile","aria-hidden":"true",children:r!==void 0?p("img",{className:"sekyro-org__logo",src:r,alt:"",onError:()=>i(!0)}):bo(e.orgName)}),U("div",{className:"sekyro-org__text",children:[p("h1",{id:t,className:"sekyro-org__name",children:l}),p("p",{className:"sekyro-org__sub",children:n(e.purpose==="human"?"shell.subtitleHuman":"shell.subtitle")})]}),o!=null?p("div",{className:"sekyro-org__end",children:o}):null,p(Oe.Consumer,{children:c=>c!==void 0?p("button",{type:"button",className:"sekyro-disc sekyro-org__close","aria-label":n("native.close"),onClick:c,children:p(q,{name:"close"})}):null})]}),e.returning?p("p",{className:"sekyro-text-muted",children:n("returning.description")}):null]})}s(kr,"OrgHeader");function br({context:e,current:t,i18n:o}){let n=t===null?-1:e.sections.indexOf(t),a=e.progress,i=a!==void 0&&a.length===e.sections.length?a:e.sections.map((r,l)=>({id:r,state:l<n?"done":l===n?"current":"upcoming"}));return p("ol",{className:"sekyro-progress__bars","aria-label":o.t("session.progressLabel"),children:i.map(({id:r,state:l})=>p("li",{className:`sekyro-progress__bar${l==="done"?" is-done":l==="current"?" is-current":""}`,...l==="current"?{"aria-current":"step"}:{},children:p("span",{className:"sekyro-visually-hidden",children:o.strings[`section.${r}`]??r})},r))})}s(br,"SectionProgress");import{useEffect as Cr,useState as Io}from"react";var vr=/FBAN|FBAV|FB_IAB|FBIOS|MessengerForiOS|Instagram|WhatsApp|musical_ly|BytedanceWebview|TikTok|Snapchat|\bLine\/|LinkedInApp|Pinterest|MicroMessenger|; wv\)/i;function ft(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));return vr.test(t)}s(ft,"isInAppBrowser");import{jsx as ye}from"react/jsx-runtime";function Nr(){return typeof window>"u"?"":window.location.href.split("#")[0]??""}s(Nr,"pageUrl");function Pr({hostedUrl:e,inAppBrowser:t,...o}){let[n,a]=Io(t===!0);Cr(()=>{t===void 0&&ft()&&a(!0)},[t]);let[i,r]=Io(!1),l=o.handoffUrl??e??Nr();return n&&!i?ye(Vt,{theme:Le(Ce(void 0),o.theme),...o.className!==void 0?{className:o.className}:{},children:ye(Ne,{locale:o.locale,...o.strings!==void 0?{strings:o.strings}:{},children:ye("div",{dir:o.dir??(o.locale==="ar"?"rtl":"ltr"),lang:o.locale,className:"sekyro-stack sekyro-stack--4",children:ye(wr,{url:l,onContinue:()=>r(!0)})})})}):ye(mt,{...o,...l!==""?{handoffUrl:l}:{}})}s(Pr,"SekyroFlow");function wr({url:e,onContinue:t}){let o=x();return ye(M,{view:"InAppBrowserPrompt",i18n:o,url:e,onContinue:t})}s(wr,"Prompt");export{nt as DocumentCapture,Qe as EidStep,Je as EmailOtpStep,Be as IdNumberEntry,je as MethodChoice,Pn as NniEntry,Ze as PhoneOtpStep,it as PortraitCapture,Pr as SekyroFlow,mt as SekyroVerification,Ne as StepI18nProvider,pt as VerificationResultScreen,Oo as arSteps,Vo as enSteps,Bo as formatTemplate,Do as frSteps,ft as isInAppBrowser,Ao as loadSekyroLocale,Fo as resolveSekyroStrings,Lo as retakeHintStringKey,x as useStepI18n,Ge as useVerificationStep};
|
package/dist/verification.css
CHANGED
|
@@ -213,6 +213,9 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
213
213
|
|
|
214
214
|
/* Notices: soft tinted blocks, no heavy border. */
|
|
215
215
|
.sekyro-root .sekyro-notice { border-color: transparent; border-radius: var(--sekyro-radius); font: var(--sekyro-type-flow-label) var(--sekyro-font); }
|
|
216
|
+
/* On a partner page the notices sit on the chosen standard status set's soft surface (set by the flow); else today's tint. */
|
|
217
|
+
.sekyro-root .sekyro-notice--warning { background: var(--sekyro-color-warning-soft, color-mix(in srgb, var(--sekyro-color-warning) 10%, var(--sekyro-color-surface))); }
|
|
218
|
+
.sekyro-root .sekyro-notice--danger { background: var(--sekyro-color-danger-soft, color-mix(in srgb, var(--sekyro-color-danger) 8%, var(--sekyro-color-surface))); }
|
|
216
219
|
|
|
217
220
|
/* ── Fields: white with a hairline; a 2px ring on focus (red with an error) ── */
|
|
218
221
|
.sekyro-root .sekyro-label { font: var(--sekyro-type-flow-label) var(--sekyro-font); color: var(--sekyro-color-fg-muted); }
|
|
@@ -238,17 +241,27 @@ p.sekyro-resend { display: flex; align-items: center; min-block-size: 44px; marg
|
|
|
238
241
|
font: var(--sekyro-type-flow-input) var(--sekyro-font-display); font-variant-numeric: tabular-nums;
|
|
239
242
|
transition: border-color 150ms, box-shadow 150ms; cursor: text;
|
|
240
243
|
}
|
|
244
|
+
.sekyro-phone:has([aria-invalid="true"]) { border-color: var(--sekyro-color-danger); box-shadow: inset 0 0 0 1px var(--sekyro-color-danger); }
|
|
245
|
+
.sekyro-phone__lead { position: relative; display: flex; flex: none; align-items: center; align-self: stretch; margin-inline-start: -1rem; padding-inline-start: 1rem; }
|
|
241
246
|
.sekyro-phone__dial { display: inline-flex; align-items: center; gap: 6px; padding-inline-end: 0.75rem; border-inline-end: 1px solid var(--sekyro-color-line); color: var(--sekyro-color-fg); }
|
|
242
247
|
.sekyro-phone__flag { font-size: 1.25rem; line-height: 1; }
|
|
243
|
-
/* Several contact countries (person data spec Q16):
|
|
244
|
-
.sekyro-phone-row { display: flex; align-items: stretch; gap: 0.5rem; }
|
|
245
|
-
.sekyro-phone-row > .sekyro-phone { flex: 1; min-inline-size: 0; }
|
|
248
|
+
/* Several contact countries (person data spec Q16): a native select, transparent, over the whole segment from the field's edge. 17 px text keeps iOS from zooming on focus. */
|
|
246
249
|
.sekyro-phone__country {
|
|
247
|
-
|
|
248
|
-
border:
|
|
249
|
-
font: var(--sekyro-type-flow-body) var(--sekyro-font);
|
|
250
|
+
position: absolute; inset: 0; z-index: 1; inline-size: 100%; block-size: 100%; margin: 0; padding: 0;
|
|
251
|
+
border: 0; opacity: 0; appearance: none; cursor: pointer;
|
|
252
|
+
font: var(--sekyro-type-flow-body) var(--sekyro-font);
|
|
250
253
|
}
|
|
251
|
-
|
|
254
|
+
/* The chevron is drawn here so the JS bundle carries no extra icon; the tighter segment keeps nine digits in view at 320 px. */
|
|
255
|
+
.sekyro-phone:has(.sekyro-phone__country) { padding-inline-end: 0.5rem; }
|
|
256
|
+
/* Nine grouped digits stay in view beside the chevron on the narrowest phones (phone rules spec 2026-11-02 §4.1). */
|
|
257
|
+
@media (max-width: 359px) { .sekyro-phone:has(.sekyro-phone__country) { gap: 0.5rem; padding-inline-end: 0.25rem; } }
|
|
258
|
+
.sekyro-phone__country + .sekyro-phone__dial { gap: 4px; padding-inline-end: 0.5rem; }
|
|
259
|
+
.sekyro-phone__country + .sekyro-phone__dial::after {
|
|
260
|
+
content: ""; inline-size: 7px; block-size: 7px; margin-block-start: -4px; margin-inline-start: 2px;
|
|
261
|
+
border-block-end: 1.5px solid var(--sekyro-color-fg-muted); border-inline-end: 1.5px solid var(--sekyro-color-fg-muted);
|
|
262
|
+
transform: rotate(45deg);
|
|
263
|
+
}
|
|
264
|
+
.sekyro-phone__country:focus-visible + .sekyro-phone__dial { border-radius: 4px; outline: 2px solid var(--sekyro-color-ring); outline-offset: 2px; }
|
|
252
265
|
.sekyro-phone__input {
|
|
253
266
|
flex: 1; min-inline-size: 0; padding: 0; border: 0; outline: none; background: transparent;
|
|
254
267
|
font: inherit; font-variant-numeric: tabular-nums; color: var(--sekyro-color-fg); caret-color: var(--sekyro-color-brand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/react",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.14",
|
|
4
4
|
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (ar/fr/en, RTL-safe, WCAG AAA defaults)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"strings:steps": "node scripts/gen-step-strings.mjs"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@sekyro/web": "^0.1.0-rc.
|
|
77
|
+
"@sekyro/web": "^0.1.0-rc.17 || ^0.2.0-rc.0",
|
|
78
78
|
"react": ">=18.2",
|
|
79
79
|
"react-dom": ">=18.2"
|
|
80
80
|
},
|
package/sbom.cdx.json
CHANGED
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"type": "application",
|
|
98
98
|
"name": "react",
|
|
99
99
|
"group": "@sekyro",
|
|
100
|
-
"version": "0.1.0-rc.
|
|
101
|
-
"bom-ref": "@sekyro/react@0.1.0-rc.
|
|
100
|
+
"version": "0.1.0-rc.14",
|
|
101
|
+
"bom-ref": "@sekyro/react@0.1.0-rc.14",
|
|
102
102
|
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (ar/fr/en, RTL-safe, WCAG AAA defaults)",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"purl": "pkg:npm/%40sekyro/react@0.1.0-rc.
|
|
111
|
+
"purl": "pkg:npm/%40sekyro/react@0.1.0-rc.14?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-react",
|
|
112
112
|
"externalReferences": [
|
|
113
113
|
{
|
|
114
114
|
"url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"components": [],
|
|
148
148
|
"dependencies": [
|
|
149
149
|
{
|
|
150
|
-
"ref": "@sekyro/react@0.1.0-rc.
|
|
150
|
+
"ref": "@sekyro/react@0.1.0-rc.14"
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
}
|
package/dist/chunk-WAVBS3GL.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-34326C2I.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":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","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":"ضع الوثيقة داخل الإطار. سيتم الالتقاط تلقائيًا. للحصول على صورة أوضح، أدر هاتفك أفقيًا","dcv2.sensing":"جارٍ البحث عن الوثيقة. ضعها داخل الإطار","dcv2.too_far":"قرّب الوثيقة حتى تملأ الإطار","dcv2.too_close":"ابتعد قليلًا. أبقِ الوثيقة كاملة داخل الإطار","dcv2.edge_clipped":"أدخل الوثيقة كاملة داخل الإطار. أبقِ الحواف ظاهرة","dcv2.wrong_shape":"هذا لا يبدو صحيحًا. ضع الوثيقة مسطحة باتجاه الكاميرا مباشرة","dcv2.tilted":"أمسك الهاتف بشكل مستوٍ فوق الوثيقة. الزاوية كبيرة جدًا","dcv2.too_dark":"ابحث عن مكان أكثر إضاءة. أنر الوثيقة","dcv2.too_bright":"الإضاءة قوية جدًا. أمل الوثيقة بعيدًا عن الانعكاس","dcv2.blurry":"ثبّت هاتفك. الصورة غير واضحة","dcv2.focus_far":"قريب جدًا للتركيز. أبعد الهاتف قليلًا","dcv2.glare":"الضوء ينعكس على الوثيقة. أملها قليلًا","dcv2.hold_still":"ممتاز. لا تتحرك","dcv2.processing":"جارٍ الالتقاط…","dcv2.side_captured":"تم التقاط هذا الوجه. اقلب الوثيقة إلى الوجه الخلفي","dcv2.captured":"تم الالتقاط","session.processing.title":"جارٍ معالجة عمليات التحقق","session.processing.description":"يستغرق ذلك عادةً بضع ثوانٍ. وستظهر النتيجة هنا","handoff.title":"تابع على هاتفك","session.processing.age_estimation.title":"التحقق من عمرك","session.processing.age_estimation.description":"يستغرق ذلك بضع ثوانٍ","session.result.approved.title":"تم التحقق من هويتك","session.result.approved.description":"انتهيت. يمكنك إغلاق هذه الصفحة","session.result.review.title":"تحققك قيد المراجعة","session.result.review.description":"سيتم إرسال النتيجة إلى الجهة التي أرسلت لك هذا الرابط. لا حاجة لأي إجراء آخر.","session.result.rejected.title":"تعذّر التحقق من هويتك","session.result.rejected.description":"تواصل مع الجهة التي أرسلت إليك هذا الرابط إذا كنت تعتقد أن الأمر خطأ","session.result.expired.title":"انتهت صلاحية جلسة التحقق هذه","session.result.expired.description":"اطلب رابطًا جديدًا من الجهة التي أرسلته، ثم ابدأ من جديد","session.result.detailsMismatch":"بياناتك لا تطابق المعلومات المتوفرة لدى {org}. تواصل مع {org}.","session.result.deviceVelocity":"لا يمكن استخدام هذا الجهاز لعملية تحقق أخرى حاليًا. تواصل مع {org}.","session.result.deviceStop":"تعذّر المتابعة على هذا الجهاز. حاول مرة أخرى من جهاز أو متصفح آخر.","result.referenceLabel":"الرمز المرجعي","common.loading":"جارٍ تحميل جلسة التحقق","common.refresh":"حدّث الحالة","common.noAttemptsLeft":"لم تتبقَّ أي محاولة","session.steps.portrait.title":"التقط صورة الهوية","session.steps.portrait.description":"انظر مباشرة إلى الكاميرا بملامح محايدة، أمام جدار سادة وفاتح","portrait.coach.no_face":"ضع وجهك داخل الإطار البيضاوي","portrait.coach.multiple_faces":"تأكد من عدم وجود أي شخص آخر في الصورة","portrait.coach.center":"ضع وجهك في وسط الإطار البيضاوي","portrait.coach.too_close":"ابتعد قليلاً","portrait.coach.pose":"انظر مباشرة إلى الكاميرا","portrait.coach.eyes":"افتح عينيك أكثر قليلاً","portrait.coach.mouth":"أغلق فمك، بتعبير محايد","portrait.coach.glare":"أمِل نظارتك أو انزعها","portrait.coach.lighting":"اجعل وجهك مقابل نافذة أو مصباح","portrait.coach.lighting_side":"تجنّب الإضاءة من جانب واحد","portrait.coach.background":"قف أمام جدار فاتح اللون وسادة","portrait.coach.resolution":"اقترب قليلاً","portrait.coach.hold_still":"لا تتحرك","portrait.coach.hold":"ممتاز. لا تتحرك","portrait.criteria.face":"الوجه داخل الإطار","portrait.criteria.framing":"في الوسط","portrait.criteria.pose":"النظر مباشرة","portrait.criteria.eyes":"العينان مفتوحتان","portrait.criteria.mouth":"تعبير محايد","portrait.criteria.glare":"بلا انعكاس","portrait.criteria.lighting":"إضاءة متساوية","portrait.criteria.background":"خلفية سادة","portrait.criteria.resolution":"قريب بما يكفي","portrait.criteria.sharpness":"ثابت","portrait.report.pose":"وضعية الرأس","portrait.report.eyes":"العينان","portrait.report.mouth":"تعبير الوجه","portrait.report.occlusion":"الوجه مكشوف","portrait.report.glare":"انعكاس النظارة","portrait.report.lighting":"الإضاءة","portrait.report.background":"الخلفية","portrait.report.resolution":"المسافة","portrait.checksLabel":"فحوصات الصورة","portrait.met":"تم","portrait.notMet":"ليس بعد","portrait.starting":"جارٍ تشغيل الكاميرا…","portrait.taken":"تم التقاط الصورة","portrait.uploading":"جارٍ إرسال صورتك…","portrait.checking":"جارٍ التحقق من صورتك…","portrait.retryTitle":"لنلتقط صورتك مرة أخرى","portrait.reportTitle":"ما يجب تصحيحه","portrait.retake":"التقط الصورة مرة أخرى","portrait.uploadFailed":"تعذّر إرسال صورتك. تحقّق من اتصالك ثم أعد المحاولة.","portrait.sendAgain":"أرسل الصورة مرة أخرى","portrait.matching":"جارٍ مقارنة صورتك بوثيقة هويتك…","portrait.reviewTitle":"سنراجع صورتك","portrait.reviewDescription":"سيتحقق أحد أعضاء فريقنا من صورتك. يمكنك المتابعة.","portrait.cameraBlocked":"نحتاج إلى الكاميرا لالتقاط صورة الهوية. الوصول إلى الكاميرا محظور أو غير متاح","portrait.cameraBlockedHint":"اسمح بالوصول إلى الكاميرا لهذا الموقع من إعدادات المتصفح ثم أعد المحاولة","portrait.retryCamera":"إعادة تجربة الكاميرا","reasons.icao_pose":"انظر مباشرة إلى الكاميرا","reasons.icao_eyes":"افتح عينيك أكثر قليلاً","reasons.icao_mouth":"أغلق فمك وحافظ على ملامح محايدة","reasons.icao_occlusion":"أزل ما يغطي وجهك، وأمِل نظارتك أو انزعها","reasons.icao_lighting":"قف مقابل نافذة أو مصباح، وتجنب الضوء من جهة واحدة","reasons.icao_background":"قف أمام جدار سادة وفاتح","reasons.icao_resolution":"اقترب قليلاً من الكاميرا","reasons.portrait_not_from_liveness":"يجب أن تكون الصورة للشخص نفسه الذي أجرى فحص الوجه. التقطها بنفسك مرة أخرى","reasons.tester_document_mismatch":"هذه الوثيقة لا تخص المختبِر","reasons.tester_phone_mismatch":"استخدم رقم الهاتف الذي سجّل به المختبِر","method.national_eid":"التحقق عبر {provider}","method.national_eidGeneric":"التحقق عبر هويتك الرقمية الوطنية","consent.short":"بالمتابعة، فإنك توافق على {terms}.","consent.termsLink":"الشروط","session.progressLabel":"تقدّم التحقق","section.contact":"تحقق من وسيلة التواصل","section.identity":"تحقق من هويتك","section.live_photo":"التقط صورة حية","section.screening":"فحوصات إضافية","handoff.copied":"تم نسخ الرابط. افتحه على هاتفك","needsApp.title":"يتطلب هذا التحقق تطبيقًا على الهاتف","needsApp.description":"تطلب {org} قراءة شريحة مستندك. افتح تطبيق {org} على هاتف يدعم NFC للمتابعة.","needsApp.descriptionNoOrg":"يقرأ هذا التحقق شريحة مستندك. افتح التطبيق على هاتف يدعم NFC للمتابعة.","population.recheck.title":"تحقّق من رقمك الوطني","population.recheck.description":"لم يتطابق وجهك مع السجل الخاص بهذا الرقم. تحقّق من الرقم وأدخله مرة أخرى.","otp.phoneInvalid":"أدخل رقم هاتفك مع رمز البلد","otp.countryLabel":"البلد","otp.phonePlaceholderGeneric":"الرقم بدون رمز البلد","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.","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","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.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.countryLabel":"Country","otp.phonePlaceholderGeneric":"Number without 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.","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","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.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.countryLabel":"Pays","otp.phonePlaceholderGeneric":"Numéro sans 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-ZCAZDOMD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import{a as s}from"./chunk-2KED7D2Q.js";var a={light:{brand:"#0d3b66",brandFg:"#ffffff",fg:"#13141f",fgMuted:"#4e5270",bg:"#f6f7fb",surface:"#ffffff",ring:"#0d3b66",danger:"#ca0f07",success:"#007a5e",warning:"#735003"},dark:{brand:"#6ea2d3",brandFg:"#051a2e",fg:"#f6f7fb",fgMuted:"#cbcedc",bg:"#13141f",surface:"#1d1e2c",ring:"#6ea2d3",danger:"#ff7c7c",success:"#00c897",warning:"#ffd98a"},roles:{light:{brandSoft:"#eaf2fa",line:"#cbcedc",lineSubtle:"#e2e4ee",lineStrong:"#8c91a9",sunken:"#eeeff5",fgSubtle:"#686d8a"},dark:{brandSoft:"#092b4b",line:"#4e5270",lineSubtle:"#2b2d40",lineStrong:"#686d8a",sunken:"#0b0c14",fgSubtle:"#8c91a9"}},stage:"#051a2e",stageAccent:"#69dfef",radius:"10px",radiusLg:"16px",font:'"Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontDisplay:'"Sekyro Geist", Geist, "Sekyro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif',fontArabic:'"Sekyro Cairo", Cairo, "Sekyro Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif'};import{jsx as k}from"react/jsx-runtime";var n={colors:{...a.light},radius:a.radiusLg,fontFamily:a.font},c={brand:"--sekyro-color-brand",brandFg:"--sekyro-color-brand-fg",fg:"--sekyro-color-fg",fgMuted:"--sekyro-color-fg-muted",bg:"--sekyro-color-bg",surface:"--sekyro-color-surface",ring:"--sekyro-color-ring",danger:"--sekyro-color-danger",success:"--sekyro-color-success",warning:"--sekyro-color-warning"};function y(r={}){let o={};for(let e of Object.keys(c))o[c[e]]=r.colors?.[e]??n.colors[e];return o["--sekyro-radius"]=r.radius??n.radius,o["--sekyro-font"]=r.fontFamily??n.fontFamily,o}s(y,"themeToCssVars");var g=/^#[0-9a-f]{6}$/i,l={none:"0px",sm:"6px",md:"10px",lg:"16px",full:"9999px"},u={system:"",inter:"Inter","ibm-plex-sans-arabic":'"IBM Plex Sans Arabic"',"noto-sans-arabic":'"Noto Sans Arabic"',roboto:"Roboto"};function b(r){let o={};if(!r)return o;let e={};for(let[f,d]of Object.entries(r.colors??{}))f in c&&f!=="ring"&&g.test(d??"")&&(e[f]=d);e.brand&&(e.ring=e.brand),Object.keys(e).length&&(o.colors=e);let t=l[r.radius];t&&(o.radius=t);let i=u[r.fontFamily];return i!==void 0&&(o.fontFamily=i?`${i}, ${n.fontFamily}`:n.fontFamily),o}s(b,"brandingToTheme");function p(...r){let o={};for(let e of r)e?.colors&&(o.colors={...o.colors,...e.colors}),e?.radius&&(o.radius=e.radius),e?.fontFamily&&(o.fontFamily=e.fontFamily);return o}s(p,"mergeThemes");function h({theme:r,children:o,className:e}){let t=y(r);return k("div",{className:e===void 0?"sekyro-root":`sekyro-root ${e}`,style:t,children:o})}s(h,"SekyroThemeProvider");export{a,n as b,y as c,b as d,p as e,h as f};
|