@sekyro/react 0.1.0-rc.6 → 0.1.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- "use client";
2
- import{a as K}from"./chunk-JAUZKPQO.js";import{f as _}from"./chunk-BRA6F56P.js";import{a as B,b as O,c as V}from"./chunk-YUNPD6ZB.js";import{a as E}from"./chunk-P2LX7BBE.js";import{d as z}from"./chunk-BJJZ4MO5.js";import"./chunk-65JA6YKG.js";import"./chunk-Q232JYNO.js";import"./chunk-63NUMQST.js";import{a as v}from"./chunk-BENNJ4GV.js";import{a as m,b as w,l as S}from"./chunk-4RUZQW5T.js";import{useEffect as D,useId as A,useMemo as C,useRef as se,useState as x}from"react";var q={"contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف (NNI)","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة — تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة — يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك — دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي — الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط — انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح هذه الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط — الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط — انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال"};var H={"contact.title":"How do you want to get your code?","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"National number (NNI)","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again — contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps — a religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face — no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed — only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link — copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open this page in your browser","inApp.description":"The camera doesn't work well inside this app. Open the link in Chrome or Safari to continue.","inApp.copyLink":"Copy link","inApp.copied":"Link copied — paste it in your browser","inApp.copyFailed":"We couldn't copy the link — copy this page's address instead","inApp.continueAnyway":"Continue here anyway"};var U={"contact.title":"Comment voulez-vous recevoir votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification (NNI)","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer — contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette — un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme — sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée — seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien — copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez cette page dans votre navigateur","inApp.description":"La caméra fonctionne mal dans cette application. Ouvrez le lien dans Chrome ou Safari pour continuer.","inApp.copyLink":"Copier le lien","inApp.copied":"Lien copié — collez-le dans votre navigateur","inApp.copyFailed":"Impossible de copier le lien — copiez plutôt l'adresse de cette page","inApp.continueAnyway":"Continuer ici quand même"};var L=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]],[30,[[1,50],[4,51]]],[22,[[6,36],[2,37]]],[22,[[8,37],[1,38]]],[24,[[4,40],[5,41]]],[24,[[5,41],[5,42]]],[28,[[7,45],[3,46]]],[28,[[10,46],[1,47]]],[26,[[9,43],[4,44]]],[26,[[3,44],[11,45]]],[26,[[3,41],[13,42]]]],Y=L.length,j=0,F=m(e=>(L[e-1]?.[1]??[]).reduce((t,[r,o])=>t+r*o,0),"dataCapacity");function R(e,t){let r=0;for(let o=7;o>=0;o-=1)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return r&255}m(R,"gfMul");function X(e){let t=new Array(e).fill(0);t[e-1]=1;let r=1;for(let o=0;o<e;o+=1){for(let a=0;a<e;a+=1)t[a]=R(t[a],r),a+1<e&&(t[a]=t[a]^t[a+1]);r=R(r,2)}return t}m(X,"rsDivisor");function J(e,t){let r=t.map(()=>0);for(let o of e){let a=o^r.shift();r.push(0),t.forEach((s,i)=>{r[i]=r[i]^R(s,a)})}return r}m(J,"rsRemainder");function Z(e,t){let r=[],o=m((p,d)=>{for(let b=d-1;b>=0;b-=1)r.push(p>>>b&1)},"put");o(4,4),o(e.length,t<10?8:16);for(let p of e)o(p,8);let a=F(t)*8;o(0,Math.min(4,a-r.length)),o(0,(8-r.length%8)%8);let s=[];for(let p=0;p<r.length;p+=8)s.push(r.slice(p,p+8).reduce((d,b)=>d<<1|b,0));for(let p=236;s.length<F(t);p^=253)s.push(p);let[i,n]=L[t-1],u=X(i),c=[],f=0;for(let[p,d]of n)for(let b=0;b<p;b+=1){let N=s.slice(f,f+d);f+=d,c.push({data:N,ec:J(N,u)})}let y=[],h=Math.max(...c.map(p=>p.data.length));for(let p=0;p<h;p+=1)for(let d of c)p<d.data.length&&y.push(d.data[p]);for(let p=0;p<i;p+=1)for(let d of c)y.push(d.ec[p]);return y}m(Z,"codewords");function ee(e){if(e===1)return[];let t=Math.floor(e/7)+2,r=Math.ceil((e*4+4)/(t*2-2))*2,o=[6];for(let a=e*4+10;o.length<t;a-=r)o.splice(1,0,a);return o}m(ee,"alignmentPositions");var te=[(e,t)=>(e+t)%2===0,e=>e%2===0,(e,t)=>t%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0],P=class P{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,r,o){this.dark[t*this.size+r]=o,this.fixed[t*this.size+r]=!0}get(t,r){return this.dark[t*this.size+r]===!0}};m(P,"Grid");var M=P;function oe(e,t){let r=e.size;for(let s=0;s<r;s+=1)e.set(6,s,s%2===0),e.set(s,6,s%2===0);for(let[s,i]of[[3,3],[3,r-4],[r-4,3]])for(let n=-4;n<=4;n+=1)for(let u=-4;u<=4;u+=1){let c=s+n,f=i+u;if(c<0||c>=r||f<0||f>=r)continue;let y=Math.max(Math.abs(n),Math.abs(u));e.set(c,f,y!==2&&y!==4)}let o=ee(t),a=o.length-1;if(o.forEach((s,i)=>o.forEach((n,u)=>{if(!(i===0&&u===0||i===0&&u===a||i===a&&u===0))for(let c=-2;c<=2;c+=1)for(let f=-2;f<=2;f+=1)e.set(s+c,n+f,Math.max(Math.abs(c),Math.abs(f))!==1)})),$(e,0),t>=7){let s=t;for(let n=0;n<12;n+=1)s=s<<1^(s>>>11)*7973;let i=t<<12|s;for(let n=0;n<18;n+=1){let u=(i>>>n&1)===1,c=r-11+n%3,f=Math.floor(n/3);e.set(c,f,u),e.set(f,c,u)}}}m(oe,"drawFunctionPatterns");function $(e,t){let r=e.size,o=j<<3|t,a=o;for(let n=0;n<10;n+=1)a=a<<1^(a>>>9)*1335;let s=(o<<10|a)^21522,i=m(n=>(s>>>n&1)===1,"bit");for(let n=0;n<=5;n+=1)e.set(n,8,i(n));e.set(7,8,i(6)),e.set(8,8,i(7)),e.set(8,7,i(8));for(let n=9;n<15;n+=1)e.set(8,14-n,i(n));for(let n=0;n<8;n+=1)e.set(8,r-1-n,i(n));for(let n=8;n<15;n+=1)e.set(r-15+n,8,i(n));e.set(r-8,8,!0)}m($,"drawFormat");function re(e,t){let r=e.size,o=0;for(let a=r-1;a>=1;a-=2){a===6&&(a=5);for(let s=0;s<r;s+=1)for(let i=0;i<2;i+=1){let n=a-i,c=(a+1&2)===0?r-1-s:s;e.fixed[c*r+n]!==!0&&(o<t.length*8&&(e.dark[c*r+n]=(t[o>>>3]>>>7-(o&7)&1)===1),o+=1)}}}m(re,"placeData");function ne(e,t){let r=te[t];for(let o=0;o<e.size;o+=1)for(let a=0;a<e.size;a+=1)e.fixed[o*e.size+a]!==!0&&r(o,a)&&(e.dark[o*e.size+a]=!e.dark[o*e.size+a])}m(ne,"applyMask");function ae(e){let t=e.size,r=0,o=m(s=>{let i=1;for(let n=1;n<=t;n+=1)n<t&&s(n)===s(n-1)?i+=1:(i>=5&&(r+=3+(i-5)),i=1);for(let n=0;n+10<t;n+=1){let u=[!0,!1,!0,!0,!0,!1,!0];if(!(u.every((h,p)=>s(n+p)===h)||u.every((h,p)=>s(n+4+p)===h)))continue;let f=[0,1,2,3].every(h=>!s(n+h))&&u.every((h,p)=>s(n+4+p)===h),y=u.every((h,p)=>s(n+p)===h)&&[7,8,9,10].every(h=>!s(n+h));f&&(r+=40),y&&(r+=40)}},"line");for(let s=0;s<t;s+=1)o(i=>e.get(s,i));for(let s=0;s<t;s+=1)o(i=>e.get(i,s));for(let s=0;s+1<t;s+=1)for(let i=0;i+1<t;i+=1){let n=e.get(s,i);n===e.get(s,i+1)&&n===e.get(s+1,i)&&n===e.get(s+1,i+1)&&(r+=3)}let a=e.dark.filter(Boolean).length;return r+=Math.floor(Math.abs(a*20-t*t*10)/(t*t))*10,r}m(ae,"penalty");function Q(e,t={}){let r=new TextEncoder().encode(e),o=1;for(;o<=Y&&!(4+(o<10?8:16)+r.length*8<=F(o)*8);o+=1);if(o>Y)throw new RangeError("text too long for a QR code");let a=Z(r,o),s=m(u=>{let c=new M(o*4+17);return oe(c,o),re(c,a),ne(c,u),$(c,u),c},"build"),i=null;if(t.mask!==void 0)i=s(t.mask);else{let u=Number.POSITIVE_INFINITY;for(let c=0;c<8;c+=1){let f=s(c),y=ae(f);y<u&&(u=y,i=f)}}let n=i;return{size:n.size,get:m((u,c)=>n.get(u,c),"get")}}m(Q,"encodeQr");function G(e,t=4){let r=[];for(let o=0;o<e.size;o+=1)for(let a=0;a<e.size;a+=1)e.get(o,a)&&r.push(`M${a+t} ${o+t}h1v1h-1z`);return{size:e.size+t*2,d:r.join("")}}m(G,"qrPath");import{jsx as l,jsxs as k}from"react/jsx-runtime";var ie={en:H,fr:U,ar:q},ce={en:O,fr:V,ar:B};function g(e){let t=e.strings;return(r,o)=>z(t[r]??ie[e.locale][r]??"",o)}m(g,"flowT");function T(e,t){let[r,o]=x(!1),[a,s]=x(null);return{busy:r,error:a,run:m(n=>{o(!0),s(null),n().then(()=>o(!1),u=>{o(!1),s(e.t(E(u,e.strings))),t?.(u)})},"run")}}m(T,"useAction");function Pe({step:e,i18n:t,onError:r}){let o=g(t),a=A(),s=S(),{busy:i,error:n,run:u}=T(t,r),c=m(f=>o(f==="phone"?"contact.phone":"contact.email"),"label");return k("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":a,"data-testid":"sekyro-contact-choice",children:[k("div",{className:"sekyro-stack sekyro-stack--1",children:[l("h2",{id:a,ref:s,tabIndex:-1,className:"sekyro-text-body",children:o("contact.title")}),l("p",{className:"sekyro-text-muted",children:o("contact.description")})]}),n!==null?l(v,{tone:"danger",children:l("span",{children:n})}):null,e.options.length===0?l(v,{tone:"danger",children:l("span",{children:t.t("errors.network_error")})}):null,l("div",{className:"sekyro-stack sekyro-stack--3",children:e.options.map((f,y)=>l(w,{kind:y===0?"primary":"ghost",full:!0,disabled:i,"aria-busy":i||void 0,onClick:()=>u(()=>e.select(f)),children:c(f)},f))})]})}m(Pe,"ContactChoiceView");function De({step:e,i18n:t,onError:r}){let o=g(t),{busy:a,error:s,run:i}=T(t,r);return e.canSwitch?k("div",{className:"sekyro-stack sekyro-stack--1",children:[s!==null?l(v,{tone:"danger",children:l("span",{children:s})}):null,l(w,{kind:"ghost",disabled:a,"aria-busy":a||void 0,onClick:()=>i(()=>e.switchTo()),"data-testid":"sekyro-contact-switch",children:o("contact.switch")})]}):null}m(De,"ContactSwitch");var ue=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["nniMasked","summary.nni",!0],["expiryDate","summary.expiryDate",!0]];function le(e){let[t,r]=x(null);return D(()=>{if(!e.portraitAvailable)return;let o=!0,a=null;return e.portrait().then(s=>{!o||s===null||!s.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(a=URL.createObjectURL(s),r(a))}),()=>{o=!1,a!==null&&URL.revokeObjectURL(a)}},[e.portraitAvailable]),t}m(le,"usePortraitUrl");function Te({step:e,i18n:t,onError:r}){let o=g(t),a=A(),s=S(),i=le(e),{busy:n,error:u,run:c}=T(t,r),f=e.context.orgName,y=["registry","document","chip"].find(d=>d===e.source),h=e.summaryKind==="partial",p=m(d=>t.strings[`doc.type.${d}`]??d,"documentLabel");return k("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":a,"data-testid":"sekyro-identity-summary",children:[k("div",{className:"sekyro-stack sekyro-stack--1",children:[l("h2",{id:a,ref:s,tabIndex:-1,className:"sekyro-text-body",children:o("summary.title")}),l("p",{className:"sekyro-text-muted",children:o("summary.description")}),y!==void 0?l("p",{className:"sekyro-text-muted",children:o(`summary.source.${y}`)}):null]}),k("div",{className:"sekyro-summary",children:[i!==null?l("img",{className:"sekyro-summary__portrait",src:i,alt:o("summary.portraitAlt")}):null,l("dl",{className:"sekyro-summary__list",children:ue.map(([d,b,N])=>{let I=e[d];return I===void 0?null:k("div",{className:"sekyro-summary__row",children:[l("dt",{className:"sekyro-text-muted",children:o(d==="fullName"&&h?"summary.name":b)}),l("dd",{children:N?l("bdi",{dir:"ltr",children:I}):d==="documentType"?p(I):I})]},d)})})]}),u!==null?l(v,{tone:"danger",children:l("span",{children:u})}):null,k("div",{className:"sekyro-stack sekyro-stack--3",children:[l(w,{full:!0,disabled:n,"aria-busy":n||void 0,onClick:()=>c(()=>e.confirm()),children:o("summary.confirm")}),e.retakeAvailable?l(w,{kind:"ghost",full:!0,disabled:n,onClick:()=>c(()=>e.retake()),children:o(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):l("p",{className:"sekyro-text-muted",children:o("summary.noRetake",{org:f})})]})]})}m(Te,"IdentitySummaryView");var me=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function _e({step:e,i18n:t,livenessProps:r,sekyroIntro:o}){let a=g(t),[s,i]=x(null);D(()=>e.onLivePhoto(d=>{let b=d.update?.coach;i(d.holding||b===void 0?null:t.t(`portrait.coach.${b}`))}),[e,t]);let n=e.instructions==="icao",u=e.icao?.profile==="selfie",c=C(()=>n?me.filter(d=>!u||d!=="background").map(d=>({id:d,text:a(`capture.tipsIcao.${d}`)})):void 0,[n,u,t]),f=C(()=>n&&!u?{...r.strings,"capture.tips.title":a("capture.tipsIcao.title")}:r.strings,[n,u,r.strings,t]),y=u?void 0:a("capture.tipsIcao.title"),h=C(()=>o===!0&&c!==void 0?{...r.slots,intro:m((d,b)=>l(K,{start:d,context:b,tips:c,...y!==void 0?{tipsTitle:y}:{}}),"intro")}:r.slots,[o,c,y,r.slots,t]),p=u?`${(c??[]).map(d=>d.text).join(". ")}.`:a("capture.tipsIcao.summary");return l(_,{...r,...h!==void 0?{slots:h}:{},...f!==void 0?{strings:f}:{},...c!==void 0?{tips:c,tipsSummary:p}:{},coach:s})}m(_e,"LivePhotoLiveness");function Ee({i18n:e}){let t=g(e);return k(v,{tone:"info",children:[l("strong",{children:t("portrait.retakeOnly")}),l("span",{children:t("portrait.keepCamera")})]})}m(Ee,"PortraitRetakeNotice");function Be({i18n:e,provider:t}){let r=e.strings,o=m(a=>r[a]??ce[e.locale][a]??"","pick");return l("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?z(o("eid.continueHint"),{provider:t}):o("eid.continueHintGeneric")})}m(Be,"EidContinueHint");async function pe(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}m(pe,"copy");function W({url:e,i18n:t,label:r}){let o=g(t),[a,s]=x("idle"),i=r.startsWith("inApp.")?"inApp":"handoff";return k("div",{className:"sekyro-stack sekyro-stack--1",children:[l(w,{kind:"ghost",onClick:()=>{pe(e).then(n=>s(n?"copied":"failed"))},children:o(r)}),l("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:a==="idle"?"":o(`${i}.${a==="copied"?"copied":"copyFailed"}`)})]})}m(W,"CopyLink");function Oe({url:e,i18n:t,refresh:r,footer:o}){let a=g(t),s=A(),i=C(()=>{try{return G(Q(e))}catch{return null}},[e]),n=se(r);n.current=r;let u=S();return D(()=>{let c=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&n.current?.().catch(()=>{})},5e3);return()=>clearInterval(c)},[]),k("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":s,"data-testid":"sekyro-handoff",children:[l("h2",{id:s,ref:u,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),l("p",{className:"sekyro-text-muted",children:a("handoff.description")}),i!==null?k("svg",{className:"sekyro-qr",viewBox:`0 0 ${i.size} ${i.size}`,role:"img","aria-label":a("handoff.qrAlt"),shapeRendering:"crispEdges",children:[l("rect",{width:i.size,height:i.size,className:"sekyro-qr__bg"}),l("path",{d:i.d,className:"sekyro-qr__fg"})]}):null,l(W,{url:e,i18n:t,label:"handoff.copyLink"}),l("p",{className:"sekyro-text-muted",children:a("handoff.waiting")}),o??null]})}m(Oe,"HandoffView");function Ve({url:e,i18n:t,onContinue:r}){let o=g(t),a=A(),s=S();return k("section",{className:"sekyro-stack sekyro-stack--3","aria-labelledby":a,"data-testid":"sekyro-in-app",children:[l("h2",{id:a,ref:s,tabIndex:-1,className:"sekyro-text-body",children:o("inApp.title")}),l("p",{className:"sekyro-text-muted",children:o("inApp.description")}),l(W,{url:e,i18n:t,label:"inApp.copyLink"}),l(w,{kind:"ghost",onClick:r,children:o("inApp.continueAnyway")})]})}m(Ve,"InAppBrowserPrompt");export{Pe as ContactChoiceView,De as ContactSwitch,Be as EidContinueHint,Oe as HandoffView,Te as IdentitySummaryView,Ve as InAppBrowserPrompt,_e as LivePhotoLiveness,Ee as PortraitRetakeNotice};