@sekyro/react 0.1.0-rc.21 → 0.1.0-rc.23
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 +23 -0
- package/README.md +10 -1
- package/dist/{chunk-5RQLU3VM.js → chunk-27L7ID2H.js} +1 -1
- package/dist/{chunk-BGAPVTOP.js → chunk-4BY7CQFG.js} +1 -1
- package/dist/{chunk-E4OK3CB5.js → chunk-4F6N5LXM.js} +1 -1
- package/dist/{chunk-WPSVDW2G.js → chunk-COXGDEXT.js} +1 -1
- package/dist/{chunk-D65O3EVR.js → chunk-F2RWRDSA.js} +1 -1
- package/dist/{chunk-SDO324RU.js → chunk-KEHZ5EHN.js} +1 -1
- package/dist/{chunk-2I4BU32X.js → chunk-MGPT5U3O.js} +1 -1
- package/dist/{chunk-ZLA6BTHU.js → chunk-PD3O6BM5.js} +1 -1
- package/dist/{chunk-MH5E5KTI.js → chunk-PLENGD6B.js} +1 -1
- package/dist/{chunk-XQNZJ3J3.js → chunk-UTOLYKZH.js} +1 -1
- package/dist/{chunk-EGCGC7NK.js → chunk-UV6SBMT4.js} +1 -1
- package/dist/chunk-UY5FBHWX.js +2 -0
- package/dist/{chunk-FTKNXQTF.js → chunk-XIOJF6VD.js} +1 -1
- package/dist/document-capture-view-UL3ISHNS.js +2 -0
- package/dist/{eid-view-ERVRHLLD.js → eid-view-FKFEF42L.js} +1 -1
- package/dist/email-otp-view-NRZCAJJ4.js +2 -0
- package/dist/{flow-views-IGQ5MYS2.js → flow-views-N7LBFI55.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/overlay-de-KYSF3MDD.js +2 -0
- package/dist/overlay-es-36H5G6S5.js +2 -0
- package/dist/overlay-pt-EB4UDBFE.js +2 -0
- package/dist/{portrait-capture-view-TMHG2UX2.js → portrait-capture-view-6KZGPAJU.js} +1 -1
- package/dist/portrait-review-view-TBSABVSX.js +2 -0
- package/dist/proof-of-address-view-3GG3XEQK.js +2 -0
- package/dist/verification/index.cjs +1 -1
- package/dist/verification/index.d.cts +79 -2
- package/dist/verification/index.d.ts +79 -2
- package/dist/verification/index.js +1 -1
- package/dist/verification.css +15 -0
- package/package.json +2 -2
- package/sbom.cdx.json +4 -4
- package/dist/chunk-5CLPIFBP.js +0 -2
- package/dist/document-capture-view-GZX5JJ7N.js +0 -2
- package/dist/email-otp-view-B7UQ5CHL.js +0 -2
- package/dist/overlay-de-5KYN4JFO.js +0 -2
- package/dist/overlay-es-6CAERCCN.js +0 -2
- package/dist/overlay-pt-UBGXJ3C3.js +0 -2
- package/dist/portrait-review-view-XUWQ5LIN.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as O}from"./chunk-4F6N5LXM.js";import{d as B}from"./chunk-PLENGD6B.js";import"./chunk-PD3O6BM5.js";import{d as F}from"./chunk-UY5FBHWX.js";import{a as R,b as T,d as x,p as _,q as D}from"./chunk-F2RWRDSA.js";import"./chunk-XIOJF6VD.js";import{a as y}from"./chunk-4BY7CQFG.js";import{a as s}from"./chunk-2KED7D2Q.js";import{useId as Z,useRef as ee,useState as E}from"react";var H={"poa.title":"إثبات العنوان","poa.lead":"ارفع وثيقة حديثة تُظهر اسمك وعنوانك الحالي.","poa.accepted":"الوثائق المقبولة","poa.acceptedFor":"مقبول في {country}","poa.kindDated":"{kind}، صادر خلال آخر {days} يومًا","poa.kinds.utility_bill":"فاتورة كهرباء أو ماء أو غاز","poa.kinds.telecom_bill":"فاتورة هاتف أو إنترنت","poa.kinds.bank_statement":"كشف حساب بنكي","poa.kinds.tax_notice":"إشعار ضريبي","poa.kinds.rental_agreement":"عقد إيجار","poa.kinds.government_certificate":"شهادة السكن","poa.kinds.insurance_statement":"وثيقة تأمين","poa.source.camera":"التقاط صورة","poa.source.upload":"رفع ملف","poa.source.lead":"صورة للوثيقة، أو ملف PDF أو صورة من جهازك","poa.upload.hint":"PDF أو JPEG أو PNG، بحد أقصى 3 صفحات و10 ميغابايت","poa.upload.choose":"اختيار ملف","poa.upload.addPage":"إضافة صفحة","poa.upload.pages":"{count} من 3 صفحات","poa.upload.send":"إرسال الوثيقة","poa.upload.sending":"جارٍ إرسال وثيقتك…","poa.upload.unsupported":"نوع الملف هذا غير مقبول. اختر ملف PDF أو JPEG أو PNG","poa.upload.tooManyPages":"أرسل 3 صفحات على الأكثر. احذف صفحة أو اختر ملفًا أقصر","poa.upload.tooLarge":"حجم الملف يتجاوز 10 ميغابايت. اختر ملفًا أصغر","poa.upload.failed":"تعذّر إرسال الوثيقة. تحقّق من اتصالك وحاول مرة أخرى","poa.camera.lead":"ضع الوثيقة بشكل مسطّح واملأ الإطار. التقط صورة واحدة لكل صفحة","poa.camera.capture":"التقاط الصورة","poa.camera.retake":"إعادة الالتقاط","poa.camera.next":"الصفحة التالية","poa.camera.page":"الصفحة {number}","poa.letter.title":"رسالة من صاحب الفاتورة","poa.letter.lead":"الوثيقة باسم شخص آخر. أضف رسالة موقّعة من هذا الشخص تفيد بأنك تسكن في هذا العنوان","poa.letter.send":"إرسال الرسالة","poa.licence.use":"استخدام العنوان المذكور في رخصة القيادة","poa.licence.note":"قرأنا هذا العنوان من رخصتك. لا تحتاج إلى وثيقة أخرى.","poa.retry.document_too_old":"هذه الوثيقة أقدم من المسموح. ارفع وثيقة أحدث من القائمة أدناه","poa.retry.document_date_invalid":"تاريخ الوثيقة في المستقبل. ارفع وثيقة بتاريخ اليوم أو قبله","poa.retry.document_kind_not_accepted":"نوع هذه الوثيقة غير مقبول. ارفع إحدى الوثائق المذكورة أدناه","poa.retry.name_mismatch":"الاسم في الوثيقة لا يطابق اسمك. ارفع وثيقة باسمك","poa.retry.address_mismatch":"العنوان في الوثيقة لا يطابق العنوان الذي وصلنا. ارفع وثيقة لهذا العنوان","poa.retry.holder_letter_missing":"يجب أن تكون الرسالة موقّعة وأن تذكر اسمك واسم صاحب الفاتورة. ارفع رسالة كاملة","poa.retry.unreadable":"تعذّرت قراءة الوثيقة. ارفع نسخة كاملة وأكثر وضوحًا","poa.retry.pdf_protected":"أزل كلمة المرور من ملف PDF وحاول مرة أخرى","poa.retry.provider_unavailable":"تعذّر فحص الوثيقة حاليًا. حاول مرة أخرى بعد قليل","poa.hint.blurry":"الصورة غير واضحة","poa.hint.cropped":"جزء من الوثيقة مقطوع","poa.hint.glare":"يوجد انعكاس ضوء على الوثيقة","reasons.provider_unavailable":"تعذّر فحص الوثيقة حاليًا","reasons.pdf_protected":"ملف PDF محمي بكلمة مرور أو يحتوي على محتوى نشط","reasons.document_kind_not_accepted":"نوع الوثيقة غير مقبول","reasons.document_date_invalid":"تاريخ الوثيقة في المستقبل","reasons.document_too_old":"الوثيقة قديمة جدًا","reasons.document_tampered":"يبدو أن الوثيقة قد عُدّلت","reasons.holder_letter_required":"يلزم تقديم رسالة من صاحب الفاتورة","reasons.holder_letter_missing":"رسالة صاحب الفاتورة مفقودة أو غير مكتملة","reasons.address_mismatch":"العنوان لا يطابق العنوان المقدَّم"};var v={"poa.title":"Proof of address","poa.lead":"Upload a recent document that shows your name and your current address.","poa.accepted":"Accepted documents","poa.acceptedFor":"Accepted for {country}","poa.kindDated":"{kind}, dated within the last {days} days","poa.kinds.utility_bill":"Electricity, water or gas bill","poa.kinds.telecom_bill":"Phone or internet bill","poa.kinds.bank_statement":"Bank statement","poa.kinds.tax_notice":"Tax notice","poa.kinds.rental_agreement":"Rental agreement","poa.kinds.government_certificate":"Residence certificate","poa.kinds.insurance_statement":"Insurance statement","poa.source.camera":"Take a photo","poa.source.upload":"Upload a file","poa.source.lead":"A photo of the document, or a PDF or image from your device","poa.upload.hint":"PDF, JPEG or PNG, up to 3 pages and 10 MB","poa.upload.choose":"Choose a file","poa.upload.addPage":"Add a page","poa.upload.pages":"{count} of 3 pages","poa.upload.send":"Send document","poa.upload.sending":"Sending your document…","poa.upload.unsupported":"This file type is not accepted. Choose a PDF, JPEG or PNG","poa.upload.tooManyPages":"Send at most 3 pages. Remove a page or choose a shorter file","poa.upload.tooLarge":"The file is over 10 MB. Choose a smaller file","poa.upload.failed":"We could not send the document. Check your connection and try again","poa.camera.lead":"Lay the document flat and fill the frame. Take one photo per page","poa.camera.capture":"Take photo","poa.camera.retake":"Retake","poa.camera.next":"Next page","poa.camera.page":"Page {number}","poa.letter.title":"Letter from the bill holder","poa.letter.lead":"The document is in another person's name. Add a signed letter from that person saying that you live at this address","poa.letter.send":"Send letter","poa.licence.use":"Use the address on my driver's license","poa.licence.note":"We read this address from your license. You don't need another document.","poa.retry.document_too_old":"This document is older than allowed. Upload a more recent one from the list below","poa.retry.document_date_invalid":"The date on the document is in the future. Upload a document with today's date or earlier","poa.retry.document_kind_not_accepted":"This document type is not accepted. Upload one of the documents listed below","poa.retry.name_mismatch":"The name on the document does not match yours. Upload a document in your name","poa.retry.address_mismatch":"The address on the document does not match the one we were given. Upload a document for that address","poa.retry.holder_letter_missing":"The letter must be signed and name both you and the bill holder. Upload a complete letter","poa.retry.unreadable":"We could not read the document. Upload a sharper, complete copy","poa.retry.pdf_protected":"Remove the password from the PDF and try again","poa.retry.provider_unavailable":"The document could not be checked right now. Try again in a moment","poa.hint.blurry":"The image is blurry","poa.hint.cropped":"Part of the document is cut off","poa.hint.glare":"There is glare on the document","reasons.provider_unavailable":"The document could not be checked right now","reasons.pdf_protected":"The PDF is password-protected or contains active content","reasons.document_kind_not_accepted":"The document type is not accepted","reasons.document_date_invalid":"The document date is in the future","reasons.document_too_old":"The document is too old","reasons.document_tampered":"The document appears to have been edited","reasons.holder_letter_required":"A letter from the bill holder is needed","reasons.holder_letter_missing":"The letter from the bill holder is missing or incomplete","reasons.address_mismatch":"The address does not match the one supplied"};var M={"poa.title":"Justificatif de domicile","poa.lead":"Importez un document récent qui indique votre nom et votre adresse actuelle.","poa.accepted":"Documents acceptés","poa.acceptedFor":"Accepté pour {country}","poa.kindDated":"{kind}, daté des {days} derniers jours","poa.kinds.utility_bill":"Facture d'électricité, d'eau ou de gaz","poa.kinds.telecom_bill":"Facture de téléphone ou d'internet","poa.kinds.bank_statement":"Relevé bancaire","poa.kinds.tax_notice":"Avis d'imposition","poa.kinds.rental_agreement":"Bail ou quittance de loyer","poa.kinds.government_certificate":"Certificat de résidence","poa.kinds.insurance_statement":"Attestation d'assurance","poa.source.camera":"Prendre une photo","poa.source.upload":"Importer un fichier","poa.source.lead":"Une photo du document, ou un PDF ou une image depuis votre appareil","poa.upload.hint":"PDF, JPEG ou PNG, 3 pages et 10 Mo au maximum","poa.upload.choose":"Choisir un fichier","poa.upload.addPage":"Ajouter une page","poa.upload.pages":"{count} sur 3 pages","poa.upload.send":"Envoyer le document","poa.upload.sending":"Envoi de votre document…","poa.upload.unsupported":"Ce type de fichier n'est pas accepté. Choisissez un PDF, un JPEG ou un PNG","poa.upload.tooManyPages":"Envoyez 3 pages au maximum. Retirez une page ou choisissez un fichier plus court","poa.upload.tooLarge":"Le fichier dépasse 10 Mo. Choisissez un fichier plus léger","poa.upload.failed":"Nous n'avons pas pu envoyer le document. Vérifiez votre connexion et réessayez","poa.camera.lead":"Posez le document à plat et remplissez le cadre. Prenez une photo par page","poa.camera.capture":"Prendre la photo","poa.camera.retake":"Reprendre","poa.camera.next":"Page suivante","poa.camera.page":"Page {number}","poa.letter.title":"Lettre du titulaire de la facture","poa.letter.lead":"Le document est au nom d'une autre personne. Ajoutez une lettre signée de cette personne attestant que vous habitez à cette adresse","poa.letter.send":"Envoyer la lettre","poa.licence.use":"Utiliser l'adresse de mon permis de conduire","poa.licence.note":"Nous avons lu cette adresse sur votre permis. Vous n'avez pas besoin d'un autre document.","poa.retry.document_too_old":"Ce document est plus ancien que la limite. Importez un document plus récent parmi ceux de la liste ci-dessous","poa.retry.document_date_invalid":"La date du document est dans le futur. Importez un document daté d'aujourd'hui ou d'avant","poa.retry.document_kind_not_accepted":"Ce type de document n'est pas accepté. Importez l'un des documents de la liste ci-dessous","poa.retry.name_mismatch":"Le nom sur le document ne correspond pas au vôtre. Importez un document à votre nom","poa.retry.address_mismatch":"L'adresse du document ne correspond pas à celle qui nous a été transmise. Importez un document pour cette adresse","poa.retry.holder_letter_missing":"La lettre doit être signée et nommer à la fois vous et le titulaire de la facture. Importez une lettre complète","poa.retry.unreadable":"Nous n'avons pas pu lire le document. Importez une copie plus nette et complète","poa.retry.pdf_protected":"Retirez le mot de passe du PDF et réessayez","poa.retry.provider_unavailable":"Le document n'a pas pu être vérifié pour le moment. Réessayez dans un instant","poa.hint.blurry":"L'image est floue","poa.hint.cropped":"Une partie du document est coupée","poa.hint.glare":"Il y a un reflet sur le document","reasons.provider_unavailable":"Le document n'a pas pu être vérifié pour le moment","reasons.pdf_protected":"Le PDF est protégé par un mot de passe ou contient du contenu actif","reasons.document_kind_not_accepted":"Ce type de document n'est pas accepté","reasons.document_date_invalid":"La date du document est dans le futur","reasons.document_too_old":"Le document est trop ancien","reasons.document_tampered":"Le document semble avoir été modifié","reasons.holder_letter_required":"Une lettre du titulaire de la facture est nécessaire","reasons.holder_letter_missing":"La lettre du titulaire de la facture est absente ou incomplète","reasons.address_mismatch":"L'adresse ne correspond pas à celle qui a été transmise"};import{useEffect as q,useRef as G,useState as S}from"react";import{Fragment as X,jsx as i,jsxs as P}from"react/jsx-runtime";function Q({blob:o,label:a}){let[e,n]=S(void 0);return q(()=>{if(typeof URL.createObjectURL!="function")return;let r=URL.createObjectURL(o);return n(r),()=>URL.revokeObjectURL(r)},[o]),i("img",{src:e,alt:a})}s(Q,"PageThumb");function K({step:o,i18n:a,c:e,title:n,notice:r,intro:c,onUpload:p}){let h=G(null),d=G(null),[l,g]=S([]),[m,b]=S(!1),[C,L]=S("idle"),[V,A]=S(!1),w=s(u=>{b(!1),u.start().catch(()=>b(!0))},"open");q(()=>{let u=h.current;if(u===null)return;let f;try{f=o.capturePage({video:u})}catch{b(!0);return}return d.current=f,w(f),()=>{f.destroy(),d.current=null}},[]);let I=l.length>=o.maxPages,$=s(async()=>{let u=d.current;if(!(u===null||I)){L("taking"),A(!1);try{await u.takePage()}catch{}g([...u.pages]),L("idle")}},"take"),W=s(u=>{let f=d.current;f!==null&&(f.removePage(u),g([...f.pages]))},"retake"),Y=s(async()=>{let u=d.current;if(!(u===null||l.length===0)){L("sending"),A(!1);try{await u.submitPages()}catch{A(!0)}L("idle")}},"send"),N=C==="sending";return P("section",{className:"sekyro-step","data-testid":"sekyro-poa-camera",children:[i(T,{title:n,lead:e("poa.camera.lead")}),r,V?i(_,{tone:"danger",children:i("span",{children:e("poa.upload.failed")})}):null,m?P(_,{tone:"danger",children:[i("span",{children:e("doc.cameraBlocked")}),i("span",{children:e("doc.cameraBlockedHint")}),d.current!==null?i(y,{kind:"secondary",onClick:()=>d.current!==null&&w(d.current),children:e("doc.retryCamera")}):null]}):null,l.length===0?c:null,i("video",{ref:h,className:"sekyro-poa-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true"}),l.length>0?P(X,{children:[i("p",{className:"sekyro-text-muted",role:"status",children:e("poa.upload.pages",{count:l.length})}),i("ul",{className:"sekyro-poa-pages",children:l.map((u,f)=>{let z=e("poa.camera.page",{number:f+1});return P("li",{children:[i(Q,{blob:u,label:z}),i(y,{kind:"ghost",onClick:()=>W(f),disabled:N,"aria-label":`${e("poa.camera.retake")} ${z}`,children:e("poa.camera.retake")})]},f)})})]}):null,N?i("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:e("poa.upload.sending")}):null,P(x,{children:[P(y,{full:!0,kind:l.length>0?"secondary":"primary",onClick:()=>{$()},disabled:I||m||C!=="idle"||o.attemptsExhausted,"aria-busy":C==="taking"||void 0,children:[i(R,{name:"camera"}),e("poa.camera.capture")]}),l.length>0?i(y,{full:!0,onClick:()=>{Y()},disabled:C!=="idle","aria-busy":N||void 0,children:e("poa.upload.send")}):null,p!==void 0?i(y,{full:!0,kind:"ghost",onClick:p,disabled:N,children:e("poa.source.upload")}):null]})]})}s(K,"PageCamera");function J(o,a){try{let e=new Intl.DisplayNames([a],{type:"region",fallback:"code"}).of(o);return e!==void 0&&e!==""?e:o}catch{return o}}s(J,"regionName");import{Fragment as pe,jsx as t,jsxs as k}from"react/jsx-runtime";var oe={en:v,fr:M,ar:H,es:v,pt:v,de:v},te="image/jpeg,image/png,image/heic,image/heif,application/pdf";function ae(o){let a=o.strings,e=oe[o.locale];return(n,r)=>F(a[n]??e[n]??"",r)}s(ae,"poaCopy");function U({step:o,i18n:a,c:e}){if(o.reason===void 0)return null;let n=e(`poa.retry.${o.reason}`)||e(`reasons.${o.reason}`)||e("poa.retry.unreadable");return k(_,{tone:"warning",children:[t("span",{children:n}),t("span",{children:D(a,o.attemptsRemaining,o.attemptsExhausted)})]})}s(U,"RetryNotice");function j({step:o,i18n:a,c:e}){let n=Z(),{country:r}=o.rule,c=r===null?e("poa.accepted"):e("poa.acceptedFor",{country:J(r,a.locale)});return k("div",{className:"sekyro-poa-accepted",children:[t("p",{id:n,className:"sekyro-poa-accepted__title",children:c}),t("ul",{className:"sekyro-poa-list","aria-labelledby":n,children:o.rule.kinds.map(p=>t("li",{children:e("poa.kindDated",{kind:e(`poa.kinds.${p.kind}`)||p.kind,days:p.maxAgeDays})},p.kind))})]})}s(j,"AcceptedList");var ne={unsupported:"poa.upload.unsupported",tooMany:"poa.upload.tooManyPages",tooLarge:"poa.upload.tooLarge",failed:"poa.upload.failed"};function re(o){return o instanceof TypeError&&o.message==="unsupported_file"?"unsupported":o instanceof RangeError&&o.message==="file_too_large"?"tooLarge":o instanceof RangeError&&(o.message==="too_many_pages"||o.message==="no_pages")?"tooMany":"failed"}s(re,"refusalOf");function se({step:o,i18n:a,c:e,letter:n,onCamera:r}){let c=ee(null),[p,h]=E("idle"),d=p==="sending",l=s(async g=>{let m=Array.from(g.currentTarget.files??[]);if(g.currentTarget.value="",m.length!==0){if(m.length>o.maxPages){h("tooMany");return}h("sending");try{await(n?o.uploadHolderLetter(m):o.uploadPages(m)),h("idle")}catch(b){h(re(b))}}},"onFiles");return k("section",{className:"sekyro-step","data-testid":n?"sekyro-poa-letter":"sekyro-poa-upload",children:[t(T,{title:e(n?"poa.letter.title":"poa.title"),lead:e(n?"poa.letter.lead":"poa.lead")}),p==="idle"||d?t(U,{step:o,i18n:a,c:e}):null,p!=="idle"&&!d?t(_,{tone:"danger",children:t("span",{children:e(ne[p])})}):null,n?null:t(j,{step:o,i18n:a,c:e}),t("p",{className:"sekyro-text-muted",children:e("poa.upload.hint")}),d?t("p",{className:"sekyro-text-muted",role:"status","aria-busy":"true",children:e("poa.upload.sending")}):null,t("input",{ref:c,type:"file",accept:te,multiple:!0,hidden:!0,"data-testid":"sekyro-poa-file","aria-label":e(n?"poa.letter.title":"poa.title"),onChange:g=>{l(g)}}),k(x,{children:[t(y,{full:!0,onClick:()=>c.current?.click(),disabled:d||!o.photo.uploadOffered||o.attemptsExhausted,"aria-busy":d||void 0,children:e("poa.upload.choose")}),r!==void 0?k(y,{full:!0,kind:"ghost",onClick:r,disabled:d,children:[t(R,{name:o.photo.cameraOnPhone===!0?"smartphone":"camera"}),o.photo.cameraOnPhone===!0?e("capture.source.phone"):e("poa.source.camera")]}):null]})]})}s(se,"UploadScreen");function de({step:o,c:a}){let[e,n]=E("idle"),r=o.useLicenceAddress;if(r===void 0)return null;let c=s(async()=>{n("sending");try{await r(),n("idle")}catch{n("failed")}},"onUse");return k("div",{className:"sekyro-poa-licence","data-testid":"sekyro-poa-licence",children:[t("p",{className:"sekyro-text-muted",children:a("poa.licence.note")}),e==="failed"?t(_,{tone:"danger",children:t("span",{children:a("poa.upload.failed")})}):null,t(y,{full:!0,kind:"secondary",onClick:()=>{c()},disabled:e==="sending"||o.attemptsExhausted,"aria-busy":e==="sending"||void 0,children:a("poa.licence.use")})]})}s(de,"LicenceShortcut");function ze({step:o,i18n:a}){let e=ae(a),[n,r]=E(null),c=o.phase==="holder_letter",p=o.photo.source,h=p==="choice"?n??o.photo.pick:p,d=o.photo.cameraOnPhone===!0,l=o.photo.uploadOffered?()=>r("upload"):void 0,g=e(c?"poa.letter.title":"poa.title"),m;return h===null?m=t(O,{testId:"sekyro-poa-source",title:g,lead:e("poa.source.lead"),cameraLabel:e(d?"capture.source.phone":"poa.source.camera"),uploadLabel:e("poa.source.upload"),onPhone:d,notice:t(U,{step:o,i18n:a,c:e}),onCamera:()=>r("camera"),onUpload:()=>r("upload")}):h==="camera"&&d?m=t(B,{i18n:a,lead:e("handoff.lead.poa"),refresh:o.refresh,actions:l!==void 0?t(y,{kind:"ghost",full:!0,onClick:l,children:e("poa.source.upload")}):null}):h==="camera"?m=t(K,{step:o,i18n:a,c:e,title:g,notice:t(U,{step:o,i18n:a,c:e}),intro:c?null:t(j,{step:o,i18n:a,c:e}),...p==="choice"&&l!==void 0?{onUpload:l}:{}}):m=t(se,{step:o,i18n:a,c:e,letter:c,...p==="choice"?{onCamera:s(()=>r("camera"),"onCamera")}:{}}),k(pe,{children:[c?null:t(de,{step:o,c:e}),m]})}s(ze,"ProofOfAddressView");export{te as POA_UPLOAD_ACCEPT,ze as ProofOfAddressView,ae as poaCopy};
|