@sekyro/elements 0.1.0-rc.3 → 0.1.0-rc.30

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.
Files changed (140) hide show
  1. package/CHANGELOG.md +256 -0
  2. package/README.md +9 -10
  3. package/custom-elements.json +2 -2
  4. package/dist/cdn/chunks/barcode-detect-C5IOXMKI-ZOZ2WOWU.js +1 -0
  5. package/dist/cdn/chunks/{camera-trait-V4UAOPIQ-TFCPOCSU.js → camera-trait-DELAK3YN-4I2GHAFU.js} +1 -1
  6. package/dist/cdn/chunks/capture-session-doc-NJKFAWHW-5ISANLWB.js +1 -0
  7. package/dist/cdn/chunks/challenge-frame-LWDSKM5K-J3CNO3XT.js +1 -0
  8. package/dist/cdn/chunks/chunk-2HKOE6CN.js +25 -0
  9. package/dist/cdn/chunks/chunk-37BKUH3E.js +1 -0
  10. package/dist/cdn/chunks/chunk-4GDGJEJ6.js +1 -0
  11. package/dist/cdn/chunks/{chunk-QOZB3DLY.js → chunk-4H47RI64.js} +1 -1
  12. package/dist/cdn/chunks/{chunk-POHYEXNR.js → chunk-52X5ZO4S.js} +1 -1
  13. package/dist/cdn/chunks/{chunk-UQKRYXN5.js → chunk-5JSOPXYS.js} +1 -1
  14. package/dist/cdn/chunks/{chunk-UNQ3QO4U.js → chunk-5KTQLZKN.js} +1 -1
  15. package/dist/cdn/chunks/{chunk-WPRIGJHG.js → chunk-5Y7NCFTK.js} +1 -1
  16. package/dist/cdn/chunks/chunk-6MYG4HWP.js +1 -0
  17. package/dist/cdn/chunks/chunk-7UCVVWRT.js +1 -0
  18. package/dist/cdn/chunks/{chunk-CXQO6QMQ.js → chunk-DEDYOTBZ.js} +1 -1
  19. package/dist/cdn/chunks/{chunk-H22YHQ6V.js → chunk-FOPIRIC2.js} +1 -1
  20. package/dist/cdn/chunks/chunk-GORELL4J.js +1 -0
  21. package/dist/cdn/chunks/{chunk-5K4YQOZN.js → chunk-GR6JK2ML.js} +1 -1
  22. package/dist/cdn/chunks/chunk-IAPQGT6L.js +1 -0
  23. package/dist/cdn/chunks/chunk-IWRPGU4X.js +1 -0
  24. package/dist/cdn/chunks/chunk-JB27ZDFD.js +1 -0
  25. package/dist/cdn/chunks/{chunk-FV4TIWHC.js → chunk-JU4XNPJJ.js} +1 -1
  26. package/dist/cdn/chunks/{chunk-RKH7O2P5.js → chunk-KEO772AF.js} +1 -1
  27. package/dist/cdn/chunks/chunk-KPUG7TMO.js +33 -0
  28. package/dist/cdn/chunks/chunk-LNE2P3TV.js +1 -0
  29. package/dist/cdn/chunks/chunk-PND4F7JQ.js +1 -0
  30. package/dist/cdn/chunks/chunk-RVL4N5KZ.js +1 -0
  31. package/dist/cdn/chunks/chunk-SIBJ56BG.js +1 -0
  32. package/dist/cdn/chunks/chunk-SLLJX5QK.js +1 -0
  33. package/dist/cdn/chunks/{chunk-LA2MA2UQ.js → chunk-TBQUAM5Z.js} +1 -1
  34. package/dist/cdn/chunks/chunk-W2IBE5PM.js +1 -0
  35. package/dist/cdn/chunks/chunk-W5WWCOOW.js +1 -0
  36. package/dist/cdn/chunks/chunk-X6SULJS2.js +3 -0
  37. package/dist/cdn/chunks/chunk-XKZZC74I.js +1 -0
  38. package/dist/cdn/chunks/chunk-XZKF2U76.js +1 -0
  39. package/dist/cdn/chunks/chunk-YZWLMKXA.js +1 -0
  40. package/dist/cdn/chunks/create-document-capture-3DB2Y3GP-SMSQUDH2.js +1 -0
  41. package/dist/cdn/chunks/{create-portrait-capture-5VGYZUOK-N3333DJC.js → create-portrait-capture-5VGYZUOK-KTCFCHTN.js} +1 -1
  42. package/dist/cdn/chunks/{detector-scanic-23DAYT3H-AJXQA7H4.js → detector-scanic-3VQFGZAA-NF7AFUUP.js} +1 -1
  43. package/dist/cdn/chunks/document-capture-view-SCXJCJET-YFWA53XE.js +1 -0
  44. package/dist/cdn/chunks/eid-view-F75DTWPK-AE6YBJNY.js +1 -0
  45. package/dist/cdn/chunks/email-otp-view-T3NRXENJ-K6FY5XVU.js +1 -0
  46. package/dist/cdn/chunks/flow-views-TVG4PFSE-2UL4L6TO.js +1 -0
  47. package/dist/cdn/chunks/form-view-7NPB2AJE-TCOF3XPH.js +1 -0
  48. package/dist/cdn/chunks/icons-form-R366YPMB-6C7SJPCB.js +1 -0
  49. package/dist/cdn/chunks/mrz-band-IH54XO42-AE4D3F2E.js +1 -0
  50. package/dist/cdn/chunks/overlay-de-SYWE2LZE-AZG4RYMA.js +1 -0
  51. package/dist/cdn/chunks/overlay-es-D43QR7EF-ZODSTOP2.js +1 -0
  52. package/dist/cdn/chunks/overlay-pt-2YUWBZX7-UTMWWMN7.js +1 -0
  53. package/dist/cdn/chunks/plan-runner-432VPNQW-OBQFQCWK.js +1 -0
  54. package/dist/cdn/chunks/portrait-capture-view-4HUAQUIA-G3YLZEHM.js +1 -0
  55. package/dist/cdn/chunks/{portrait-review-view-TBSABVSX-5SVU25AE.js → portrait-review-view-VKRWP4HK-6NZPPDWZ.js} +1 -1
  56. package/dist/cdn/chunks/print-DCYX3CZD-DLQCPZZE.js +11 -0
  57. package/dist/cdn/chunks/proof-of-address-view-BXQ4O2CU-RFNWZRUP.js +1 -0
  58. package/dist/cdn/chunks/reader-652D2CK6.js +2 -0
  59. package/dist/cdn/define.js +1 -1
  60. package/dist/cdn/index.js +1 -1
  61. package/dist/{chunk-2FHYNKUL.js → chunk-2XRKOCPR.js} +1 -1
  62. package/dist/chunk-3SFLN33V.js +1 -0
  63. package/dist/chunk-4BQSPVSM.js +33 -0
  64. package/dist/{chunk-JCCTKW23.js → chunk-5MOE4EK4.js} +1 -1
  65. package/dist/{chunk-UZJG5SPC.js → chunk-7GCPE3LG.js} +1 -1
  66. package/dist/chunk-CX7T4ADY.js +1 -0
  67. package/dist/{chunk-CFERAKA2.js → chunk-D2KOFFZS.js} +1 -1
  68. package/dist/chunk-HBK2ROSI.js +1 -0
  69. package/dist/{chunk-PMIO3U3J.js → chunk-L7NFG55Y.js} +1 -1
  70. package/dist/chunk-P223YKM3.js +1 -0
  71. package/dist/{chunk-PNTIMH72.js → chunk-Q47EK3FL.js} +1 -1
  72. package/dist/{chunk-JUB6FRPB.js → chunk-QDHTMKLS.js} +1 -1
  73. package/dist/chunk-RSXZISUG.js +25 -0
  74. package/dist/chunk-SCZ22CNO.js +1 -0
  75. package/dist/chunk-XXCBLQ53.js +1 -0
  76. package/dist/{chunk-UXPM24JI.js → chunk-YHJQJMRS.js} +1 -1
  77. package/dist/{chunk-YPBTBTOU.js → chunk-ZG77WO25.js} +1 -1
  78. package/dist/define.cjs +6 -6
  79. package/dist/define.js +1 -1
  80. package/dist/document-capture-view-SCXJCJET-WFZYQEU2.js +1 -0
  81. package/dist/{eid-view-FKFEF42L-ZXQWPIIA.js → eid-view-F75DTWPK-QMS64USC.js} +1 -1
  82. package/dist/{email-otp-view-NRZCAJJ4-RANTR7SO.js → email-otp-view-T3NRXENJ-WF5ZRHQS.js} +1 -1
  83. package/dist/flow-views-TVG4PFSE-OWVBXJ2R.js +1 -0
  84. package/dist/form-view-7NPB2AJE-5GEBWQJ7.js +1 -0
  85. package/dist/icons-form-R366YPMB-KUTXHC7X.js +1 -0
  86. package/dist/index.cjs +6 -6
  87. package/dist/index.d.cts +169 -17
  88. package/dist/index.d.ts +169 -17
  89. package/dist/index.js +1 -1
  90. package/dist/overlay-de-SYWE2LZE-QIFDHKT6.js +1 -0
  91. package/dist/overlay-es-D43QR7EF-FZNYZGGS.js +1 -0
  92. package/dist/overlay-pt-2YUWBZX7-4AFNZWV2.js +1 -0
  93. package/dist/{portrait-capture-view-6KZGPAJU-LAGNB7A4.js → portrait-capture-view-4HUAQUIA-LYTXJIEX.js} +1 -1
  94. package/dist/{portrait-review-view-TBSABVSX-MLNZZBL5.js → portrait-review-view-VKRWP4HK-4XFARABZ.js} +1 -1
  95. package/dist/proof-of-address-view-BXQ4O2CU-455UQJ3O.js +1 -0
  96. package/dist/styles.css +172 -20
  97. package/package.json +2 -2
  98. package/sbom.cdx.json +4 -4
  99. package/dist/cdn/chunks/capture-session-doc-WZMI5XPE-AZDHR6MQ.js +0 -1
  100. package/dist/cdn/chunks/challenge-frame-NUGPTWFP-V3GGQN65.js +0 -1
  101. package/dist/cdn/chunks/chunk-2FETDQV5.js +0 -1
  102. package/dist/cdn/chunks/chunk-2T6RLTDQ.js +0 -1
  103. package/dist/cdn/chunks/chunk-434MMEWK.js +0 -1
  104. package/dist/cdn/chunks/chunk-6BRQUKUP.js +0 -1
  105. package/dist/cdn/chunks/chunk-7MV4CI4L.js +0 -1
  106. package/dist/cdn/chunks/chunk-CW56KMMH.js +0 -1
  107. package/dist/cdn/chunks/chunk-EWTKC2C2.js +0 -1
  108. package/dist/cdn/chunks/chunk-KVTY4E6J.js +0 -1
  109. package/dist/cdn/chunks/chunk-L22GFJQV.js +0 -1
  110. package/dist/cdn/chunks/chunk-MJEQ5ANO.js +0 -1
  111. package/dist/cdn/chunks/chunk-SGUCIULX.js +0 -3
  112. package/dist/cdn/chunks/chunk-SIPFHN7E.js +0 -25
  113. package/dist/cdn/chunks/chunk-TKJVGZWP.js +0 -33
  114. package/dist/cdn/chunks/chunk-YRTHQZAW.js +0 -1
  115. package/dist/cdn/chunks/chunk-ZMHEKDRM.js +0 -1
  116. package/dist/cdn/chunks/chunk-ZYZPLDA2.js +0 -1
  117. package/dist/cdn/chunks/create-document-capture-OXPLKHOF-GVCM77EK.js +0 -1
  118. package/dist/cdn/chunks/document-capture-view-UL3ISHNS-WZLR5RSQ.js +0 -1
  119. package/dist/cdn/chunks/eid-view-FKFEF42L-2OQYMKAB.js +0 -1
  120. package/dist/cdn/chunks/email-otp-view-NRZCAJJ4-BJNXOVUF.js +0 -1
  121. package/dist/cdn/chunks/flow-views-N7LBFI55-27RU7EZG.js +0 -1
  122. package/dist/cdn/chunks/mrz-band-VYHOTDHY-VEZ2J5IL.js +0 -1
  123. package/dist/cdn/chunks/overlay-de-KYSF3MDD-XORYFTYU.js +0 -1
  124. package/dist/cdn/chunks/overlay-es-36H5G6S5-22UFLFPZ.js +0 -1
  125. package/dist/cdn/chunks/overlay-pt-EB4UDBFE-CWJXQDCQ.js +0 -1
  126. package/dist/cdn/chunks/plan-runner-EP26JU6A-LU7KJ6JU.js +0 -1
  127. package/dist/cdn/chunks/portrait-capture-view-6KZGPAJU-2O54W4SR.js +0 -1
  128. package/dist/cdn/chunks/print-SEWS3VHQ-HWJTHADG.js +0 -11
  129. package/dist/cdn/chunks/proof-of-address-view-3GG3XEQK-CPQ2AQEQ.js +0 -1
  130. package/dist/chunk-A75VY7L7.js +0 -1
  131. package/dist/chunk-APM7FCA2.js +0 -25
  132. package/dist/chunk-LYFBZCIH.js +0 -33
  133. package/dist/chunk-WBXQX6DQ.js +0 -1
  134. package/dist/chunk-YZ6YGLNN.js +0 -1
  135. package/dist/document-capture-view-UL3ISHNS-K636D7VR.js +0 -1
  136. package/dist/flow-views-N7LBFI55-DZ3PH2EP.js +0 -1
  137. package/dist/overlay-de-KYSF3MDD-2ZNXM2N7.js +0 -1
  138. package/dist/overlay-es-36H5G6S5-VQWD57TO.js +0 -1
  139. package/dist/overlay-pt-EB4UDBFE-6VWPTFO2.js +0 -1
  140. package/dist/proof-of-address-view-3GG3XEQK-FWM7OQ4K.js +0 -1
@@ -0,0 +1 @@
1
+ "use client";import{a as ot}from"./chunk-FOPIRIC2.js";import{a as We}from"./chunk-7UCVVWRT.js";import"./chunk-SIBJ56BG.js";import{a as nt}from"./chunk-RVL4N5KZ.js";import{a as Je,b as et,c as tt}from"./chunk-GR6JK2ML.js";import{h as Xe}from"./chunk-X6SULJS2.js";import"./chunk-4H47RI64.js";import{d as at}from"./chunk-JU4XNPJJ.js";import"./chunk-TBQUAM5Z.js";import{E as je,F as Qe,G as Ze,I as qe,K as Q,L as le,a as Bt,b as Et,c as A,o as Ye,q as Ke,v as D,w as _e,y as Ce}from"./chunk-2HKOE6CN.js";import"./chunk-LNE2P3TV.js";import"./chunk-W2IBE5PM.js";import"./chunk-GORELL4J.js";import"./chunk-P7K7ELYZ.js";import{a as s}from"./chunk-5QL6W6FW.js";import"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as l,c as Ge}from"./chunk-4FHWXBOB.js";var i=Ge(Bt(),1),n=Ge(Et(),1);var Vt={image:'<path d="M2 12C2 7.29 2 4.93 3.46 3.46C4.93 2 7.29 2 12 2C16.71 2 19.07 2 20.54 3.46C22 4.93 22 7.29 22 12C22 16.71 22 19.07 20.54 20.54C19.07 22 16.71 22 12 22C7.29 22 4.93 22 3.46 20.54C2 19.07 2 16.71 2 12Z" stroke="currentColor"/><path d="M14 8A2 2 0 1 0 18 8A2 2 0 1 0 14 8Z" stroke="currentColor"/><path d="M2 12.5L3.75 10.97C4.66 10.17 6.04 10.22 6.89 11.07L11.18 15.36C11.87 16.05 12.95 16.14 13.75 15.58L14.04 15.37C15.19 14.57 16.74 14.66 17.78 15.6L21 18.5" stroke="currentColor" stroke-linecap="round"/>',flashlight:'<path d="M9 11.66V19C9 19.93 9 20.4 9.15 20.77C9.36 21.26 9.74 21.64 10.23 21.85C10.6 22 11.07 22 12 22C12.93 22 13.4 22 13.77 21.85C14.26 21.64 14.64 21.26 14.85 20.77C15 20.4 15 19.93 15 19V11.66C15 10.84 15 10.43 15.15 10.06C15.3 9.7 15.59 9.41 16.17 8.83L16.17 8.83L19.41 5.59C19.7 5.3 19.85 5.15 19.92 4.97C20 4.78 20 4.58 20 4.17V4C20 3.06 20 2.59 19.71 2.29C19.41 2 18.94 2 18 2H6C5.06 2 4.59 2 4.29 2.29C4 2.59 4 3.06 4 4V4.17C4 4.58 4 4.78 4.08 4.97C4.15 5.15 4.3 5.3 4.59 5.59L7.83 8.83C8.41 9.41 8.7 9.7 8.85 10.06C9 10.43 9 10.84 9 11.66Z" stroke="currentColor" stroke-linecap="round"/><path d="M15 10H9" stroke="currentColor" stroke-linecap="round"/><path d="M12 13V15" stroke="currentColor" stroke-linecap="round"/><path d="M4.5 5H19.5" stroke="currentColor" stroke-linecap="round"/>'},Ft={"dcv3.mrz.searching":"ضع صفحة جواز السفر كاملة داخل الإطار","dcv3.mrz.showMrzSide":"اعرض الوجه الذي يحتوي على سطرين أو ثلاثة أسطر من الحروف","dcv3.mrz.reading":"جارٍ قراءة الوثيقة… ثبّتها","dcv3.mrz.moveCloser":"اقترب حتى تملأ أسطر الحروف الإطار","dcv3.mrz.turnSideways":"أدر هاتفك أفقيًا لقراءة أسطر الحروف","dcv3.mrz.glare":"أمِل الوثيقة لإزالة الانعكاس","dcv3.mrz.holdStill":"لا تتحرك","dcv3.mrz.valid":"تمت قراءة الوثيقة. جارٍ التقاط الصورة","dcv3.mrz.looksLikePassport":"يبدو أن هذا جواز سفر","dcv3.mrz.looksLikeCard":"يبدو أن هذه بطاقة تعريف أو بطاقة إقامة"},ce={"dcv3.mrz.searching":"Fit the whole passport page in the frame","dcv3.mrz.showMrzSide":"Show the side with the two or three lines of characters","dcv3.mrz.reading":"Reading the document… hold it steady","dcv3.mrz.moveCloser":"Move closer so the lines of characters fill the frame","dcv3.mrz.turnSideways":"Turn your phone sideways to read the lines of characters","dcv3.mrz.glare":"Tilt the document to remove the reflection","dcv3.mrz.holdStill":"Hold still","dcv3.mrz.valid":"Document read. Taking the photo","dcv3.mrz.looksLikePassport":"This looks like a passport","dcv3.mrz.looksLikeCard":"This looks like an identity card or residence permit"},Gt={"dcv3.mrz.searching":"Cadrez toute la page du passeport","dcv3.mrz.showMrzSide":"Montrez la face avec les deux ou trois lignes de caractères","dcv3.mrz.reading":"Lecture du document… tenez-le immobile","dcv3.mrz.moveCloser":"Rapprochez-vous pour que les lignes de caractères remplissent le cadre","dcv3.mrz.turnSideways":"Tournez votre téléphone à l’horizontale pour lire les lignes de caractères","dcv3.mrz.glare":"Inclinez le document pour supprimer le reflet","dcv3.mrz.holdStill":"Ne bougez plus","dcv3.mrz.valid":"Document lu. Prise de la photo","dcv3.mrz.looksLikePassport":"Ceci ressemble à un passeport","dcv3.mrz.looksLikeCard":"Ceci ressemble à une carte d’identité ou un titre de séjour"},Xt={"doc.uploadInstead":"رفع صورة بدلًا من ذلك","doc.uploadTitle":"ارفع صورة لوثيقتك","doc.uploadHint":"صورة واضحة للوثيقة كاملة، ملتقطة بكاميرا.","doc.uploadUnsupported":"اختر صورة للوثيقة بصيغة JPEG أو PNG أو HEIC.","doc.uploadFailed":"تعذّر إرسال هذه الصورة. أعد المحاولة.","doc.source.title":"كيف تريد إضافة وثيقتك؟","doc.source.description":"التقط صورة بالكاميرا، أو ارفع صورة للوثيقة من هذا الجهاز.","doc.source.camera":"التقاط صورة","doc.source.upload":"رفع صورة"},de={"doc.uploadInstead":"Upload a photo instead","doc.uploadTitle":"Upload a photo of your document","doc.uploadHint":"A clear photo of the whole document, taken with a camera.","doc.uploadUnsupported":"Choose a JPEG, PNG or HEIC photo of the document.","doc.uploadFailed":"We could not send this photo. Try again.","doc.source.title":"How do you want to add your document?","doc.source.description":"Take a photo with the camera, or upload a photo of the document from this device.","doc.source.camera":"Take a photo","doc.source.upload":"Upload a photo"},Wt={"doc.uploadInstead":"Téléverser une photo à la place","doc.uploadTitle":"Téléversez une photo de votre document","doc.uploadHint":"Une photo nette du document entier, prise avec un appareil photo.","doc.uploadUnsupported":"Choisissez une photo JPEG, PNG ou HEIC du document.","doc.uploadFailed":"Nous n'avons pas pu envoyer cette photo. Réessayez.","doc.source.title":"Comment voulez-vous ajouter votre document ?","doc.source.description":"Prenez une photo avec la caméra, ou importez une photo du document depuis cet appareil.","doc.source.camera":"Prendre une photo","doc.source.upload":"Importer une photo"},Yt={"native.doc.introTitle":"سنلتقط صورة لوثيقتك","native.doc.introLead":"تُلتقط الصورة تلقائيًا عندما تكون الوثيقة داخل الإطار.","native.doc.tip.flat":"ضع الوثيقة مسطحة على سطح داكن.","native.doc.tip.glare":"تجنّب انعكاسات الضوء.","native.doc.tip.frame":"أبقِ الوثيقة كاملة داخل الإطار.","native.doc.openCamera":"افتح الكاميرا","native.doc.changeDocument":"تغيير الوثيقة","native.doc.titleOf.carte_identite":"صوّر بطاقة هويتك","native.doc.titleOf.passport":"صوّر جواز سفرك","native.doc.titleOf.residence_permit":"صوّر بطاقة إقامتك","native.doc.titleOf.drivers_license":"صوّر رخصة قيادتك","native.doc.onlyType.carte_identite":"{country}: تُقبل بطاقة الهوية فقط هنا.","native.doc.onlyType.passport":"{country}: يُقبل جواز السفر فقط هنا.","native.doc.onlyType.residence_permit":"{country}: تُقبل بطاقة الإقامة فقط هنا.","native.doc.onlyType.drivers_license":"{country}: تُقبل رخصة القيادة فقط هنا.","native.scan.closer":"اقترب قليلًا","native.scan.farther":"ابتعد قليلًا","native.scan.glare":"أمِل البطاقة قليلًا لإبعاد الانعكاس.","native.scan.dark":"الإضاءة ضعيفة. انتقل إلى مكان أفضل إضاءة أو شغّل المصباح.","native.scan.darkNoLight":"الإضاءة ضعيفة. انتقل إلى مكان أفضل إضاءة.","native.scan.blurry":"الصورة غير واضحة. ثبّت الهاتف.","native.scan.holdStill":"لا تتحرك","native.scan.reading":"جارٍ التحقق من وثيقتك…","native.scan.putDown":"يمكنك وضع وثيقتك جانبًا.","native.scan.retry":"لنحاول مرة أخرى","native.scan.seenPassport":"يبدو أن هذا جواز سفر","native.scan.seenCard":"يبدو أن هذه بطاقة هوية أو بطاقة إقامة","native.scan.showInstead.carte_identite":"أظهر بطاقة هويتك بدلًا منها","native.scan.showInstead.passport":"أظهر صفحة الصورة في جواز سفرك بدلًا منها","native.scan.showInstead.residence_permit":"أظهر بطاقة إقامتك بدلًا منها","native.scan.showInstead.drivers_license":"أظهر رخصة قيادتك بدلًا منها","native.scan.expired":"انتهت صلاحية هذه الوثيقة. امسح وثيقة سارية.","native.scan.surface":"الحواف غير واضحة. ضع البطاقة على سطح أغمق."},ue={"native.doc.introTitle":"Photograph your document","native.doc.introLead":"The photo is taken by itself once the document is in the frame.","native.doc.tip.flat":"Lay it flat on a dark surface.","native.doc.tip.glare":"Avoid glare from lights.","native.doc.tip.frame":"Keep all of it in the frame.","native.doc.openCamera":"Open the camera","native.doc.changeDocument":"Change document","native.doc.titleOf.carte_identite":"Photograph your identity card","native.doc.titleOf.passport":"Photograph your passport","native.doc.titleOf.residence_permit":"Photograph your residence permit","native.doc.titleOf.drivers_license":"Photograph your driver's license","native.doc.onlyType.carte_identite":"{country}: only an identity card is accepted here.","native.doc.onlyType.passport":"{country}: only a passport is accepted here.","native.doc.onlyType.residence_permit":"{country}: only a residence permit is accepted here.","native.doc.onlyType.drivers_license":"{country}: only a driver's license is accepted here.","native.scan.closer":"Move a little closer","native.scan.farther":"Move back a little","native.scan.glare":"Tilt the card a little to move the reflection.","native.scan.dark":"Too dark. Move to better light or turn on the light.","native.scan.darkNoLight":"Too dark. Move to better light.","native.scan.blurry":"Blurry image. Hold the phone still.","native.scan.holdStill":"Hold still","native.scan.reading":"Checking your document…","native.scan.putDown":"You can put your document down.","native.scan.retry":"Let's try that again","native.scan.seenPassport":"This looks like a passport","native.scan.seenCard":"This looks like an identity card or residence permit","native.scan.showInstead.carte_identite":"Show your identity card instead","native.scan.showInstead.passport":"Show the photo page of your passport instead","native.scan.showInstead.residence_permit":"Show your residence permit instead","native.scan.showInstead.drivers_license":"Show your driver's license instead","native.scan.expired":"This document has expired. Scan a valid document.","native.scan.surface":"The edges are hard to see. Put the card on a darker surface."},Kt={"native.doc.introTitle":"Photographiez votre pièce","native.doc.introLead":"La photo se prend toute seule quand la pièce est bien cadrée.","native.doc.tip.flat":"Posez la pièce à plat sur fond sombre.","native.doc.tip.glare":"Évitez les reflets de lumière.","native.doc.tip.frame":"Gardez toute la pièce dans le cadre.","native.doc.openCamera":"Ouvrir la caméra","native.doc.changeDocument":"Changer de document","native.doc.titleOf.carte_identite":"Photographiez votre carte d'identité","native.doc.titleOf.passport":"Photographiez votre passeport","native.doc.titleOf.residence_permit":"Photographiez votre titre de séjour","native.doc.titleOf.drivers_license":"Photographiez votre permis de conduire","native.doc.onlyType.carte_identite":"{country} : seule la carte d'identité est acceptée ici.","native.doc.onlyType.passport":"{country} : seul le passeport est accepté ici.","native.doc.onlyType.residence_permit":"{country} : seul le titre de séjour est accepté ici.","native.doc.onlyType.drivers_license":"{country} : seul le permis de conduire est accepté ici.","native.scan.closer":"Approchez un peu","native.scan.farther":"Reculez un peu","native.scan.glare":"Inclinez un peu la carte pour déplacer le reflet.","native.scan.dark":"Trop sombre. Allez dans un endroit mieux éclairé ou allumez la lampe.","native.scan.darkNoLight":"Trop sombre. Allez dans un endroit mieux éclairé.","native.scan.blurry":"Image floue. Tenez le téléphone immobile.","native.scan.holdStill":"Ne bougez plus","native.scan.reading":"Vérification de votre document…","native.scan.putDown":"Vous pouvez poser votre pièce.","native.scan.retry":"Réessayons","native.scan.seenPassport":"Ceci ressemble à un passeport","native.scan.seenCard":"Ceci ressemble à une carte d'identité ou un titre de séjour","native.scan.showInstead.carte_identite":"Montrez plutôt votre carte d'identité","native.scan.showInstead.passport":"Montrez plutôt la page photo de votre passeport","native.scan.showInstead.residence_permit":"Montrez plutôt votre titre de séjour","native.scan.showInstead.drivers_license":"Montrez plutôt votre permis de conduire","native.scan.expired":"Ce document a expiré. Scannez un document valide.","native.scan.surface":"Les bords se voient mal. Posez la carte sur une surface plus sombre."},G,rt=(G=class{constructor(){this.shown=null,this.shownAt=0,this.yielded=null,this.shownPhotos=0}present(t,a,o,r,m=0){(t===null||t.key!==this.yielded)&&(this.yielded=null);let y=this.shown;return t!==null&&this.yielded===null?y?.kind==="problem"&&y.key===t.key&&y.action===t.action?(this.shownPhotos=m,!t.blocking&&a!==null&&r-this.shownAt>=3e3?(this.yielded=t.key,this.show({kind:"hint",key:a,action:null},r,m)):y):this.show({kind:"problem",key:t.key,action:t.action},r,m):y?.kind==="problem"&&t===null&&m===this.shownPhotos&&(o||r-this.shownAt<3e3)?y:a===null?this.show(null,r):y?.kind==="hint"&&y.key===a?y:this.show({kind:"hint",key:a,action:null},r)}show(t,a,o=this.shownPhotos){return this.shown=t,this.shownAt=a,this.shownPhotos=o,t}},l(G,"_e"),G);s(rt,"NoticeBand");var jt=rt,Qt=["locking","capturing"],X,it=(X=class{constructor(){this.shown={hint:null,locking:!1,card:null,manualShutter:!1},this.candidate=null,this.candidateSince=0,this.hintShownAt=0,this.lockLostAt=null,this.detectedSince=null,this.lostSince=null,this.shutterSince=null}present(t,a){return this.presentHint(t,a),this.presentLock(t,a),this.presentCard(t,a),this.shutterSince=t.manualShutter?this.shutterSince??a:null,this.shown={...this.shown,manualShutter:this.shutterSince!==null&&a-this.shutterSince>=1e3},this.shown}presentHint(t,a){let o=t.phase==="framing"&&!(t.hint==="blurry"&&t.card===null)?t.hint:null;if(t.phase!=="framing"){this.shown={...this.shown,hint:null},this.candidate=null;return}if(o!==this.candidate&&(this.candidate=o,this.candidateSince=a),o===this.shown.hint)return;let r=a-this.candidateSince>=(o===null?0:350),m=this.shown.hint===null||a-this.hintShownAt>=2500;r&&m&&(this.shown={...this.shown,hint:o},this.hintShownAt=a)}presentLock(t,a){if(Qt.includes(t.phase)){this.shown={...this.shown,locking:!0},this.lockLostAt=null;return}if(this.shown.locking){if(t.phase!=="framing"){this.shown={...this.shown,locking:!1},this.lockLostAt=null;return}this.lockLostAt??(this.lockLostAt=a),a-this.lockLostAt>=300&&(this.shown={...this.shown,locking:!1},this.lockLostAt=null)}}presentCard(t,a){let o=t.card;if(o===null||t.phase!=="framing"){if(t.phase!=="framing"){this.shown={...this.shown,card:null},this.detectedSince=null,this.lostSince=null;return}this.detectedSince=null,this.lostSince??(this.lostSince=a),a-this.lostSince>=300&&(this.shown={...this.shown,card:null});return}if(this.lostSince=null,this.detectedSince??(this.detectedSince=a),a-this.detectedSince<250)return;let r=this.shown.card;if(r===null){this.shown={...this.shown,card:{...o}};return}let m=.35;this.shown={...this.shown,card:{fill:r.fill+(o.fill-r.fill)*m,offsetX:r.offsetX+(o.offsetX-r.offsetX)*m,offsetY:r.offsetY+(o.offsetY-r.offsetY)*m}}}},l(X,"Ce"),X);s(it,"ScanPresenter");var Zt=it,qt={en:ue,fr:Kt,ar:Yt,es:ue,pt:ue,de:ue},Jt=450,Ne=s(e=>(t,a)=>nt(e.strings[t]??qt[e.locale][t]??"",a),"useScanCopy");function st(e,t){try{return new Intl.DisplayNames([t],{type:"region"}).of(e)??e}catch{return e}}l(st,"Ut");s(st,"regionName");function lt(e){let t=e.documentType,a=t===null?"native.doc.introTitle":`native.doc.titleOf.${t}`,o=t!==null&&e.issuer!==null&&Xe(e.documents,e.issuer).length===1;return{titleKey:a,onlyKey:o?`native.doc.onlyType.${t}`:null}}l(lt,"Et");s(lt,"introCopy");function Z({name:e}){return(0,n.jsx)("svg",{className:"sekyro-glyph",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:Vt[e]}})}l(Z,"me");s(Z,"ScanGlyph");var en={en:ce,fr:Gt,ar:Ft,es:ce,pt:ce,de:ce},tn={en:de,fr:Wt,ar:Xt,es:de,pt:de,de},nn="image/jpeg,image/png,image/heic,image/heif";function B(e){let t=e.strings,a=s(o=>t[o]??tn[e.locale][o],"text");return{t:s(o=>a(o)??"","t")}}l(B,"G");s(B,"uploadCopy");function ct(e,t){return e===null||e.state==="fallback"||e.state==="mismatch"||e.state==="expired"?null:e.state==="searching"?t?"dcv3.mrz.searching":"dcv3.mrz.showMrzSide":e.state==="valid"?"dcv3.mrz.valid":e.coach==="holdStill"?"dcv3.mrz.holdStill":"dcv3.mrz.reading"}l(ct,"Vt");s(ct,"mrzInstruction");function dt(e){return e?.state==="reading"&&e.coach!==void 0&&e.coach!=="holdStill"?`mrz:${e.coach}`:null}l(dt,"Yt");s(dt,"mrzHint");function ut(e){return e==="carte_identite"||e==="passport"||e==="residence_permit"||e==="drivers_license"?`native.scan.showInstead.${e}`:null}l(ut,"Gt");s(ut,"showInsteadKey");var an={document_type_mismatch:"doc.reason_document_type_mismatch",document_number_invalid:"doc.reason_document_number_invalid",provider_unavailable:"doc.reason_provider_unavailable",document_type_not_supported:"doc.reason_document_type_not_supported",document_sides_mismatch:"doc.reason_document_sides_mismatch",document_side_not_read:"doc.reason_document_side_not_read",document_too_dark:"doc.reason_document_too_dark",document_glare:"doc.reason_document_glare"};function he(e){if(e.reason==="unreadable")return"doc.reason_unreadable";let t=e.reason!==void 0?an[e.reason]:void 0;return t!==void 0?t:e.reason==="tester_mismatch"?"sandboxMode.mismatchDocument":e.reason!==void 0&&e.reason!=="side_missing"?Ke(e.reason):null}l(he,"xe");s(he,"reasonOf");var ht=new Set(["document_type_not_accepted","tester_mismatch","document_type_mismatch","provider_unavailable","document_type_not_supported","document_sides_mismatch","document_side_not_read"]);function on({step:e,i18n:t,liveMrz:a,barcodeAssetBaseUrl:o,ageLead:r,...m}){let[y,h]=(0,i.useState)(!1),k=(0,i.useRef)(-1),[w,_]=(0,i.useState)("idle"),$=(0,i.useRef)(null),S=typeof e.uploadDocument=="function",b=S?e.photo?.source??"camera":"camera",M=S&&b!=="camera"&&e.photo?.uploadOffered===!0,[f,E]=(0,i.useState)(null),I=b==="upload"?"upload":b==="choice"?f??e.photo?.pick??"source":"camera",O=w==="sending"?void 0:()=>$.current?.click(),g=s(async V=>{let Y=V.currentTarget.files?.[0];if(V.currentTarget.value="",Y!==void 0){h(!1),_("sending");try{await e.uploadDocument(Y),_("idle")}catch(J){_(J instanceof TypeError&&J.message==="unsupported_file"?"unsupported":"failed")}}},"onFile"),q=M?(0,n.jsx)("input",{ref:$,type:"file",accept:nn,hidden:!0,"data-testid":"sekyro-doc-upload","aria-label":B(t).t("doc.uploadTitle"),onChange:l(V=>{g(V)},"onChange")}):null,z=B(t),W=e.photo?.cameraOnPhone===!0;return I==="camera"&&W?(0,n.jsx)(at,{i18n:t,lead:t.t("handoff.lead.document"),refresh:e.refresh,actions:(0,n.jsx)(A,{kind:"ghost",full:!0,onClick:l(()=>E("upload"),"onClick"),children:z.t("doc.source.upload")})}):I==="source"?(0,n.jsx)(ot,{testId:"sekyro-doc-source",title:z.t("doc.source.title"),lead:z.t("doc.source.description"),cameraLabel:W?t.t("capture.source.phone"):z.t("doc.source.camera"),onPhone:W,uploadLabel:z.t("doc.source.upload"),notice:(0,n.jsx)(pe,{step:e,i18n:t}),onCamera:l(()=>E("camera"),"onCamera"),onUpload:l(()=>E("upload"),"onUpload")}):I==="upload"?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(vt,{step:e,i18n:t,ageLead:r===!0,upload:w,offered:M,onPick:l(()=>$.current?.click(),"onPick"),...b==="choice"?{onCamera:s(()=>E("camera"),"onCamera")}:{},...m}),q]}):(0,n.jsxs)(n.Fragment,{children:[y?(0,n.jsx)(yt,{step:e,i18n:t,attempts:k,...a!==void 0?{liveMrz:a}:{},...o!==void 0?{barcodeAssetBaseUrl:o}:{},...M&&O!==void 0?{onUpload:O}:{},onClose:l(()=>h(!1),"onClose")}):(0,n.jsx)(mt,{step:e,i18n:t,ageLead:r===!0,onOpen:l(()=>h(!0),"onOpen"),upload:w,...M&&O!==void 0?{onUpload:O}:{},...m}),q]})}l(on,"Xn");s(on,"DocumentCaptureView");function Se({passport:e}){let t=Math.round(228/(e?1.42:1.586));return(0,n.jsxs)("svg",{className:`sekyro-mark sekyro-mark--card${e?" sekyro-mark--passport":""}`,viewBox:`-12 ${e?-22:-12} 252 ${t+(e?34:24)}`,"aria-hidden":"true",focusable:"false",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"sekyro-card-clip",children:(0,n.jsx)("rect",{width:228,height:t,rx:"12.5"})})}),e?(0,n.jsx)("rect",{className:"sekyro-mark__page",x:"10",y:"-14",width:208,height:t,rx:"10"}):null,(0,n.jsx)("rect",{className:"sekyro-mark__card",width:228,height:t,rx:"12.5"}),(0,n.jsx)("rect",{className:"sekyro-mark__photo",x:"17",y:"17",width:"55",height:t*(e?.5:.62),rx:"6"}),[0,1,2].map(a=>(0,n.jsx)("rect",{className:"sekyro-mark__text",x:"88",y:23+a*t*.12,width:100-a*20,height:"6",rx:"3"},a)),e?[0,1].map(a=>(0,n.jsx)("line",{className:"sekyro-mark__code",x1:"17",x2:211,y1:t*.75+a*11,y2:t*.75+a*11},a)):(0,n.jsx)("rect",{className:"sekyro-mark__text",x:"88",y:23+3*t*.12,width:"60",height:"6",rx:"3"}),(0,n.jsx)("g",{clipPath:"url(#sekyro-card-clip)",children:(0,n.jsx)("g",{className:"sekyro-mark__read",style:{"--sekyro-read-w":"228px"},children:(0,n.jsx)("rect",{x:"-1",width:"2",height:t,className:"sekyro-mark__beam"})})}),(0,n.jsx)("path",{className:"sekyro-mark__brackets",d:pt(-10,-10,248,t+20,16,30)})]})}l(Se,"ht");s(Se,"ScanMark");function pt(e,t,a,o,r,m){let y=Math.min(r,m*.6);return[[e,t,1,1],[e+a,t,-1,1],[e,t+o,1,-1],[e+a,t+o,-1,-1]].map(([h,k,w,_])=>`M${h} ${k+_*m}V${k+_*y}Q${h} ${k} ${h+w*y} ${k}H${h+w*m}`).join("")}l(pt,"Xt");s(pt,"brackets");function mt({step:e,i18n:t,ageLead:a,onOpen:o,onChangeCountry:r,onChangeDocument:m,upload:y,onUpload:h}){let k=Ne(t),w=B(t),_=e.documentType==="passport",$=lt(e),S=he(e),b=y==="sending",M=(0,i.useContext)(Qe)?.busy===!0,f=We(e.acceptedNationalities,t);return(0,n.jsxs)("section",{className:"sekyro-step sekyro-step--doc-intro","data-testid":"sekyro-document",children:[(0,n.jsx)(Se,{passport:_}),(0,n.jsx)(_e,{title:k($.titleKey)||k("native.doc.introTitle"),lead:a?t.t("doc.ageStepUp"):k("native.doc.introLead")}),$.onlyKey!==null&&e.issuer!==null?(0,n.jsx)("p",{className:"sekyro-text-muted sekyro-doc-only",children:k($.onlyKey,{country:st(e.issuer,t.locale)})}):null,f!==null?(0,n.jsx)(Q,{tone:"info",children:f}):null,(0,n.jsx)(pe,{step:e,i18n:t}),e.reason!==void 0&&ht.has(e.reason)?null:(0,n.jsxs)("ul",{className:"sekyro-tiprows",children:[(0,n.jsxs)("li",{children:[(0,n.jsx)(D,{name:_?"passport":"card"}),k("native.doc.tip.flat")]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(D,{name:"light"}),k("native.doc.tip.glare")]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(Z,{name:"image"}),k("native.doc.tip.frame")]})]}),(0,n.jsx)(xe,{i18n:t,...m!==void 0?{onChangeDocument:m}:{},...r!==void 0?{onChangeCountry:r}:{}}),(0,n.jsx)($e,{i18n:t,upload:y}),b?(0,n.jsx)("p",{className:"sekyro-text-muted",role:"status",children:t.t("doc.uploading")}):h!==void 0?(0,n.jsx)("p",{className:"sekyro-text-muted",children:w.t("doc.uploadHint")}):null,(0,n.jsxs)(Ce,{children:[(0,n.jsxs)(A,{full:!0,onClick:o,disabled:b||M,children:[(0,n.jsx)(D,{name:"camera"}),k("native.doc.openCamera")]}),h!==void 0?(0,n.jsxs)(A,{full:!0,kind:"ghost",onClick:h,children:[(0,n.jsx)(Z,{name:"image"}),w.t("doc.uploadInstead")]}):null]})]})}l(mt,"Wt");s(mt,"DocumentIntro");function pe({step:e,i18n:t}){let a=he(e);return a===null&&e.reasonHidden===!0?(0,n.jsx)(Q,{tone:"info",children:(0,n.jsx)("span",{children:le(t,e.attemptsRemaining,e.attemptsExhausted)})}):a===null?null:(0,n.jsxs)(Q,{tone:"warning",children:[(0,n.jsx)("span",{children:t.t(a)}),(0,n.jsx)("span",{children:le(t,e.attemptsRemaining,e.attemptsExhausted)})]})}l(pe,"Le");s(pe,"ReasonNotice");function xe({i18n:e,onChangeCountry:t,onChangeDocument:a}){let o=Ne(e);return a===void 0&&t===void 0?null:(0,n.jsxs)("div",{className:"sekyro-links",children:[a!==void 0?(0,n.jsx)("button",{type:"button",className:"sekyro-link",onClick:a,children:o("native.doc.changeDocument")}):null,t!==void 0?(0,n.jsx)("button",{type:"button",className:"sekyro-link",onClick:t,children:e.t("native.doc.changeCountry")}):null]})}l(xe,"ft");s(xe,"ChangeLinks");function $e({i18n:e,upload:t}){return t!=="unsupported"&&t!=="failed"?null:(0,n.jsx)(Q,{tone:"warning",children:(0,n.jsx)("span",{children:B(e).t(t==="unsupported"?"doc.uploadUnsupported":"doc.uploadFailed")})})}l($e,"yt");s($e,"UploadNotice");function vt({step:e,i18n:t,ageLead:a,upload:o,offered:r,onPick:m,onCamera:y,onChangeCountry:h,onChangeDocument:k}){let w=B(t),_=o==="sending";return(0,n.jsxs)("section",{className:"sekyro-step","data-testid":"sekyro-doc-upload-screen",children:[(0,n.jsx)(Se,{passport:e.documentType==="passport"}),(0,n.jsx)(_e,{title:w.t("doc.uploadTitle"),lead:a?t.t("doc.ageStepUp"):w.t("doc.uploadHint")}),a?(0,n.jsx)("p",{className:"sekyro-text-muted",children:w.t("doc.uploadHint")}):null,(0,n.jsx)(pe,{step:e,i18n:t}),(0,n.jsx)(xe,{i18n:t,...k!==void 0?{onChangeDocument:k}:{},...h!==void 0?{onChangeCountry:h}:{}}),(0,n.jsx)($e,{i18n:t,upload:o}),_?(0,n.jsx)("p",{className:"sekyro-text-muted",role:"status",children:t.t("doc.uploading")}):null,(0,n.jsxs)(Ce,{children:[(0,n.jsxs)(A,{full:!0,onClick:m,disabled:_||!r||e.attemptsExhausted,children:[(0,n.jsx)(Z,{name:"image"}),w.t("doc.source.upload")]}),y!==void 0?(0,n.jsxs)(A,{full:!0,kind:"ghost",onClick:y,disabled:_,children:[(0,n.jsx)(D,{name:"camera"}),w.t("doc.source.camera")]}):null]})]})}l(vt,"jt");s(vt,"DocumentUploadScreen");function ze(e,t,a){let o=e*.88,r=o/a;return{x:(e-o)/2,y:t*.42-r/2,w:o,h:r}}l(ze,"ut");s(ze,"guideRect");var rn={"mrz:moveCloser":"dcv3.mrz.moveCloser","mrz:turnSideways":"dcv3.mrz.turnSideways","mrz:glare":"dcv3.mrz.glare",too_far:"native.scan.closer",too_close:"native.scan.farther",focus_far:"native.scan.farther",glare:"native.scan.glare",too_bright:"native.scan.glare",too_dark:"native.scan.dark",blurry:"native.scan.blurry",low_contrast:"native.scan.surface"},sn=s(()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,"reduceMotion");function yt({step:e,i18n:t,liveMrz:a,barcodeAssetBaseUrl:o,onClose:r,attempts:m,onUpload:y}){let h=Ne(t),k=(0,i.useContext)(Je),w=(0,i.useRef)(k);w.current=k;let _=(0,i.useRef)(null),$=(0,i.useRef)(null),S=(0,i.useRef)(null),[b,M]=(0,i.useState)("idle"),[f,E]=(0,i.useState)(null),[I,O]=(0,i.useState)(null),[g,q]=(0,i.useState)({w:0,h:0}),[z,W]=(0,i.useState)({hint:null,locking:!1,card:null,manualShutter:!1}),[V,Y]=(0,i.useState)({}),[J,Te]=(0,i.useState)({}),[Me,Le]=(0,i.useState)(null),[Pe,zt]=(0,i.useState)(null),[Ie,He]=(0,i.useState)(0),[me,Ae]=(0,i.useState)(null),[ve,Nt]=(0,i.useState)(null),[ee,St]=(0,i.useState)(0),te=(0,i.useRef)(0);te.current=ee;let[xt,De]=(0,i.useState)(0),Oe=(0,i.useRef)(0),ne=(0,i.useRef)(null);(0,i.useEffect)(()=>{De(te.current)},[e.reason,e.attemptsRemaining]);let R=e.documentType==="passport",ae=R?1.42:1.586;je(!0),(0,i.useLayoutEffect)(()=>{let d=_.current;if(d===null)return;let v=s(()=>q({w:d.clientWidth,h:d.clientHeight}),"measure");if(v(),typeof ResizeObserver>"u")return;let p=new ResizeObserver(v);return p.observe(d),()=>p.disconnect()},[]);let c=ze(g.w,g.h,ae);(0,i.useEffect)(()=>{g.w===0||g.h===0||S.current?.setGuide?.({viewAspect:g.w/g.h,rect:{x:c.x/g.w,y:c.y/g.h,width:c.w/g.w,height:c.h/g.h}})},[g.w,g.h,c.x,c.y,c.w,c.h]),(0,i.useEffect)(()=>{let d=$.current;if(d===null)return;let v=e.capture({video:d,...a!==void 0?{liveMrz:a}:{},...o!==void 0?{barcodeAssetBaseUrl:o}:{}});S.current=v,Y({}),Te({}),Le(null);let p=_.current;if(p!==null&&p.clientWidth>0&&p.clientHeight>0){let u=ze(p.clientWidth,p.clientHeight,ae);v.setGuide?.({viewAspect:p.clientWidth/p.clientHeight,rect:{x:u.x/p.clientWidth,y:u.y/p.clientHeight,width:u.w/p.clientWidth,height:u.h/p.clientHeight}})}let T=new Zt,N={scan:null,feedback:null,gate:null,mrz:null},H=s(u=>{N={...N,...u};let C=N.gate?.guide,Ut={phase:N.scan?.phase??"framing",hint:N.feedback?.reticle==="coaching"?N.feedback.key:e.documentType==="drivers_license"?null:dt(N.mrz),card:C?.detected?{fill:C.fill,offsetX:C.offsetX,offsetY:C.offsetY}:null,manualShutter:N.scan?.manualShutter??!1},K=T.present(Ut,performance.now());W(j=>j.hint===K.hint&&j.locking===K.locking&&j.manualShutter===K.manualShutter&&Ct(j.card,K.card)?j:K)},"present"),Rt=[v.on("state",M),v.on("feedback",u=>H({feedback:u})),v.on("gate",u=>H({gate:u})),v.on("scan",u=>{u.captured.length===0&&Oe.current>0&&De(te.current),Oe.current=u.captured.length,ne.current=(ne.current??u.captured).filter(C=>u.captured.includes(C)),E(u),H({scan:u})}),v.on("captured",u=>{St(C=>C+1),Y(C=>({...C,[wt(u.side,R,C)]:u.previewDataUrl})),u.photo!==void 0&&Te(C=>({...C,[u.photo]:u.previewDataUrl})),Le(u.previewDataUrl),zt(bt(d))}),v.on("error",u=>{O(u);let C=w.current;C!==null&&tt(C,et("document",u,Math.max(0,m.current)))}),v.on("mrz",u=>{u.state==="mismatch"?Nt({format:u.format??null,at:te.current}):(Ae(u),H({mrz:u}))})];return m.current+=1,v.start().catch(()=>{}),()=>{ne.current=null;for(let u of Rt)u();v.destroy(),S.current=null}},[e.issuer,e.documentType]);let L=f?.phase??"framing",P=L==="reading"||L==="result",oe=L==="flipCue"||L==="reaskRecto",U=z.locking,Re=f?.captured.length??0;(0,i.useEffect)(()=>{U&&He(d=>d+1)},[U]),(0,i.useEffect)(()=>{Re>0&&He(d=>d+1)},[Re]);let $t=f?.expected??null;(0,i.useEffect)(()=>{Ae(null)},[$t]);let ye=oe||P||e.documentType==="drivers_license"?null:ct(me,R),Ue=s(d=>t.strings[d]??en[t.locale][d],"liveText"),Tt=s(d=>d.startsWith("dcv3.")?Ue(d):h(d),"copy"),ke=ye!==null?Ue(ye):h(L==="flipCue"?"doc.flip":L==="reaskRecto"?"doc.reaskRecto":P?"native.scan.reading":L==="locking"||L==="capturing"||U?"native.scan.holdStill":R?"doc.showPage":"doc.showSide"),re=e.browserCheck??null,fe=re!==null&&P,ie=he(e),Be=s(d=>({key:h(d),action:le(t,e.attemptsRemaining,e.attemptsExhausted),blocking:e.reason!==void 0&&ht.has(e.reason)}),"reasonProblem"),Ee=ut(e.documentType),Mt=me?.state==="expired"&&!oe&&!P?{key:h("native.scan.expired"),action:null,blocking:!0}:ve!==null&&ee<=ve.at+1?{key:h(ve.format==="TD3"?"native.scan.seenPassport":"native.scan.seenCard"),action:Ee===null?null:h(Ee),blocking:!0}:f?.notice==="same_face"?{key:h("doc.sameFace"),action:null,blocking:!1}:f?.notice==="reread"?ie!==null?Be(ie):{key:h("doc.reread"),action:null,blocking:!1}:f?.notice==="technical"?{key:h("native.scan.retry"),action:null,blocking:!1}:f?.notice==="blurry"?{key:h("native.scan.blurry"),action:null,blocking:!1}:ie!==null&&ee===xt?Be(ie):null,Lt=f?.torchAvailable===!0&&f.torch!==!0?"native.scan.dark":"native.scan.darkNoLight",Pt=z.hint===null?null:Tt(z.hint==="too_dark"?Lt:rn[z.hint]??`dcv2.${z.hint}`),It=z.hint==="too_dark"&&f?.torch!==!0,Ve=kt(Mt,Pt,U||L==="capturing"||P,ee),F=z.card,x=c;if(!U&&F!==null&&F.fill>=.45&&F.fill<=1.25&&!sn()){let d=c.w*F.fill,v=d/ae,p=c.x+c.w/2+c.w*Math.max(-.25,Math.min(.25,F.offsetX)),T=c.y+c.h/2+c.h*Math.max(-.25,Math.min(.25,F.offsetY));x={x:p-d/2,y:T-v/2,w:d,h:v}}let se=c.w*.045,ge=28,Fe=Math.min(se,ge*.6),Ht=[[x.x,x.y,1,1],[x.x+x.w,x.y,-1,1],[x.x,x.y+x.h,1,-1],[x.x+x.w,x.y+x.h,-1,-1]],At=U?"is-locked":Ve!==null?"is-coaching":"",Dt=R?[{side:"single",label:"doc.progressPage"}]:[{side:"recto",label:"doc.progressFront"},{side:"verso",label:"doc.progressBack"}],Ot=c.y+c.h+16,we={insetInlineStart:c.x,insetBlockStart:c.y,inlineSize:c.w,blockSize:c.h,borderRadius:se};return(0,n.jsx)("section",{className:"sekyro-lm","aria-label":ke,"data-testid":"sekyro-document",children:(0,n.jsxs)("div",{ref:_,className:`sekyro-lm-stage${P?" is-reading":""}${oe?" is-flip":""}`,style:{"--sekyro-guide-w":`${c.w}px`},children:[(0,n.jsx)("video",{ref:$,className:"sekyro-lm-video",playsInline:!0,muted:!0,autoPlay:!0,"aria-hidden":"true",onPointerUp:l(d=>{let v=d.currentTarget,p=v.getBoundingClientRect(),T=Math.max(p.width/(v.videoWidth||1),p.height/(v.videoHeight||1)),N=v.videoWidth*T,H=v.videoHeight*T;N>0&&H>0&&S.current?.focusAt((d.clientX-p.left+(N-p.width)/2)/N,(d.clientY-p.top+(H-p.height)/2)/H)},"onPointerUp")}),g.w>0?(0,n.jsxs)(n.Fragment,{children:[P&&Pe!==null?(0,n.jsx)("img",{className:"sekyro-lm-scene",src:Pe,alt:""}):null,P&&Me!==null?(0,n.jsx)("img",{className:"sekyro-lm-frozen",src:Me,alt:"",style:we}):null,(0,n.jsxs)("svg",{className:"sekyro-lm-overlay",viewBox:`0 0 ${g.w} ${g.h}`,"aria-hidden":"true",focusable:"false",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"sekyro-lm-top",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0.85"}),(0,n.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0"})]}),(0,n.jsxs)("linearGradient",{id:"sekyro-lm-bottom",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0",className:"sekyro-lm-ink",stopOpacity:"0"}),(0,n.jsx)("stop",{offset:"1",className:"sekyro-lm-ink",stopOpacity:"0.9"})]})]}),(0,n.jsx)("path",{className:"sekyro-lm-scrim",fillRule:"evenodd",d:`M0 0H${g.w}V${g.h}H0Z${_t(c,se)}`}),(0,n.jsx)("rect",{width:g.w,height:Math.max(0,c.y),fill:"url(#sekyro-lm-top)"}),(0,n.jsx)("rect",{y:c.y+c.h,width:g.w,height:Math.max(0,g.h-c.y-c.h),fill:"url(#sekyro-lm-bottom)"}),(0,n.jsx)("g",{className:`sekyro-lm-brackets ${At}`,children:Ht.map(([d,v,p,T],N)=>(0,n.jsx)("path",{style:{transform:`translate(${d}px, ${v}px) scale(${p}, ${T})`},d:`M0 ${ge}V${Fe}Q0 0 ${Fe} 0H${ge}`},N))}),U?(0,n.jsx)("rect",{className:"sekyro-lm-trace",x:c.x,y:c.y,width:c.w,height:c.h,rx:se,pathLength:"1",style:{animationDuration:`${Jt}ms`}}):null]}),(0,n.jsx)("div",{className:"sekyro-lm-slot",style:we,"aria-hidden":"true",children:P?(0,n.jsx)("span",{className:"sekyro-lm-read is-repeating"}):Ie>0?(0,n.jsx)("span",{className:"sekyro-lm-read"},Ie):null})]}):null,ye!==null?(0,n.jsx)("div",{className:"sekyro-lm-slot",style:we,"aria-hidden":"true",children:(0,n.jsx)("span",{"data-testid":"sekyro-mrz-strip",className:`sekyro-lm-mrz${R?" is-page":""}${me?.state==="valid"?" is-valid":""}`})}):null,(0,n.jsx)("div",{className:"sekyro-lm-instruction",style:{insetBlockStart:c.y-64},children:(0,n.jsx)("div",{role:"status","aria-live":"polite","data-testid":"sekyro-scan-instruction",children:fe?null:(0,n.jsx)(qe,{swapKey:ke,className:"sekyro-lm-line",children:ke})})}),(0,n.jsxs)("div",{className:"sekyro-lm-below",style:{insetBlockStart:Ot,inlineSize:c.w,insetInlineStart:c.x},children:[(0,n.jsx)(ft,{band:Ve}),fe?null:P?(0,n.jsxs)("p",{className:"sekyro-lm-note",children:[(0,n.jsx)("span",{className:"sekyro-lm-spinner","aria-hidden":"true"}),h("native.scan.putDown")]}):oe?(0,n.jsx)("div",{className:`sekyro-lm-flip${L==="reaskRecto"?" is-toFront":""}`,"data-testid":"sekyro-flip-cue","aria-hidden":"true",children:(0,n.jsxs)("span",{className:"sekyro-lm-flip-card",style:{aspectRatio:String(ae)},children:[(0,n.jsx)("span",{className:"sekyro-lm-flip-front"}),(0,n.jsx)("span",{className:"sekyro-lm-flip-back"})]})}):null]}),(0,n.jsxs)("div",{className:"sekyro-lm-controls",children:[(0,n.jsxs)("div",{className:"sekyro-lm-bar",children:[(0,n.jsx)("button",{type:"button",className:"sekyro-glass","aria-label":t.t("native.close"),onClick:r,children:(0,n.jsx)(D,{name:"close"})}),f?.torchAvailable?(0,n.jsx)("button",{type:"button",className:`sekyro-glass${f.torch?" is-on":""}${It?" is-cue":""}`,"aria-label":t.t("doc.torchOn"),"aria-pressed":f.torch,onClick:l(()=>S.current?.setTorch(!f.torch),"onClick"),children:(0,n.jsx)(Z,{name:"flashlight"})}):null]}),I!==null?(0,n.jsxs)("div",{className:"sekyro-lm-error",role:"alert",children:[(0,n.jsx)("p",{children:t.t("doc.cameraBlocked")}),(0,n.jsx)("p",{children:t.t(I.kind==="permission"?"doc.cameraBlockedHint":Ye(I.kind))}),(0,n.jsx)(A,{onClick:l(()=>{O(null),m.current+=1,S.current?.retry()},"onClick"),children:t.t("doc.retryCamera")})]}):null,re!==null&&I===null?(0,n.jsxs)("div",{className:"sekyro-lm-error",role:"alert","data-testid":"sekyro-doc-browser-check",children:[(0,n.jsx)("p",{children:t.t(re.code==="clock_wrong"?"errors.device_clock":"errors.attestation_invalid")}),(0,n.jsx)(A,{onClick:re.retry,children:t.t("common.retry")})]}):null,z.manualShutter?(0,n.jsx)("button",{type:"button",className:"sekyro-shutter","aria-label":t.t("doc.shutter"),onClick:l(()=>S.current?.shutter(),"onClick")}):null,(0,n.jsx)("ol",{className:"sekyro-lm-tray",children:Dt.map(({side:d,label:v})=>{let p=f?.captured.includes(d)??!1,T=gt(d,f,J,V);return(0,n.jsxs)("li",{className:p?"is-done":void 0,"aria-current":!p&&(R||f?.expected===d)?"step":void 0,children:[p?(0,n.jsxs)("span",{className:"sekyro-lm-thumb",children:[T!==void 0?(0,n.jsx)("img",{src:T,alt:""}):(0,n.jsx)(D,{name:"card"}),(0,n.jsx)("svg",{className:"sekyro-lm-check",viewBox:"0 0 18 18","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M5 9.2l2.6 2.6L13 6.4"})})]}):null,h(v),p&&T===void 0&&ne.current?.includes(d)?(0,n.jsx)("span",{className:"sekyro-lm-received",children:h("doc.sideReceived")}):null]},d)})}),y!==void 0?(0,n.jsx)("button",{type:"button",className:"sekyro-lm-upload",onClick:y,children:B(t).t("doc.uploadInstead")}):null,b==="uploading"||b==="checking"?null:(0,n.jsx)(Ze,{onStop:r})]}),!fe&&(b==="uploading"||b==="checking")?(0,n.jsx)("span",{className:"sekyro-visually-hidden",role:"status",children:b==="uploading"?t.t("doc.uploading"):h("native.scan.reading")}):null]})})}l(yt,"Jt");s(yt,"LumiereScan");function kt(e,t,a,o){let r=(0,i.useRef)(null);r.current??(r.current=new jt);let[m,y]=(0,i.useState)(null),h=(0,i.useRef)({problem:e,hint:t,busy:a,photos:o});h.current={problem:e,hint:t,busy:a,photos:o};let k=e===null?null:`${e.blocking}|${e.key}|${e.action??""}`;return(0,i.useEffect)(()=>{let w=s(()=>{let{problem:$,hint:S,busy:b,photos:M}=h.current;y(r.current?.present($,S,b,performance.now(),M)??null)},"run");w();let _=setInterval(w,250);return()=>clearInterval(_)},[k,t,a,o]),m}l(kt,"qt");s(kt,"useNoticeBand");function ft({band:e}){let[t,a]=(0,i.useState)(e);(0,i.useEffect)(()=>{e!==null&&a(e)},[e]);let o=e??t;return(0,n.jsx)("div",{className:`sekyro-lm-band${e!==null?" is-open":""}`,"data-testid":"sekyro-scan-notice",children:(0,n.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",children:o!==null?(0,n.jsxs)("div",{className:"sekyro-notice sekyro-notice--warning","data-kind":o.kind,"aria-hidden":e===null||void 0,children:[(0,n.jsx)("span",{className:"sekyro-notice__icon","aria-hidden":"true",children:(0,n.jsx)(D,{name:"warning"})}),(0,n.jsxs)("div",{className:"sekyro-notice__body",children:[(0,n.jsx)("span",{children:o.key}),o.action!==null&&o.action!==""?(0,n.jsx)("span",{children:o.action}):null]})]}):null})})}l(ft,"en");s(ft,"NoticeBandView");function gt(e,t,a,o){if(t?.photos===void 0)return o[e];let r=t.photos[e];return r===void 0?void 0:a[r]}l(gt,"tn");s(gt,"thumbOf");function wt(e,t,a){return t?"single":e==="recto"||e==="verso"?e:a.recto===void 0?"recto":"verso"}l(wt,"nn");s(wt,"slotOf");function _t({x:e,y:t,w:a,h:o},r){return`M${e+r} ${t}H${e+a-r}Q${e+a} ${t} ${e+a} ${t+r}V${t+o-r}Q${e+a} ${t+o} ${e+a-r} ${t+o}H${e+r}Q${e} ${t+o} ${e} ${t+o-r}V${t+r}Q${e} ${t} ${e+r} ${t}Z`}l(_t,"on");s(_t,"roundedRect");var be=.004;function Ct(e,t){return e===null||t===null?e===t:Math.abs(e.fill-t.fill)<be&&Math.abs(e.offsetX-t.offsetX)<be&&Math.abs(e.offsetY-t.offsetY)<be}l(Ct,"rn");s(Ct,"sameCard");function bt(e){let t=Math.round(e.videoWidth/4),a=Math.round(e.videoHeight/4);if(t===0||a===0||typeof document>"u")return null;try{let o=document.createElement("canvas");o.width=t,o.height=a;let r=o.getContext("2d");return r===null?null:(r.drawImage(e,0,0,t,a),o.toDataURL("image/jpeg",.7))}catch{return null}}l(bt,"an");s(bt,"sceneSnapshot");export{on as DocumentCaptureView,Jt as LOCK_TRACE_MS,nn as UPLOAD_ACCEPT,ze as guideRect,lt as introCopy,dt as mrzHint,ct as mrzInstruction,Ct as sameCard,ut as showInsteadKey,wt as slotOf,gt as thumbOf};
@@ -0,0 +1 @@
1
+ "use client";import{a as O,b as v,c as W}from"./chunk-YVQ6LFN4.js";import{a as q,b as J,c as K}from"./chunk-KEO772AF.js";import{a as z}from"./chunk-XZKF2U76.js";import{a as w}from"./chunk-RVL4N5KZ.js";import{f as T,g as A}from"./chunk-X6SULJS2.js";import"./chunk-4H47RI64.js";import{H as j,K as E,a as oe,b as ce,c as N,t as U,y as R}from"./chunk-2HKOE6CN.js";import"./chunk-LNE2P3TV.js";import"./chunk-W2IBE5PM.js";import"./chunk-GORELL4J.js";import"./chunk-P7K7ELYZ.js";import{a as o}from"./chunk-5QL6W6FW.js";import"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as u,c as P}from"./chunk-4FHWXBOB.js";var a=P(oe(),1),i=P(ce(),1);var Q={en:v,fr:W,ar:O,es:v,pt:v,de:v},C=6,pe=new Set(["eid_identifier_invalid","eid_code_invalid","eid_locked","eid_not_enrolled"]),X=o((e,d)=>{if(e===void 0)return 0;let h=Date.parse(e)-d;return Number.isFinite(h)?Math.max(0,Math.ceil(h/1e3)):0},"secondsUntil"),me=o(e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,"mmss");function ue({step:e,i18n:d,className:h,onError:Y}){let I=d.strings,r=o((n,t)=>w(I[n]??Q[d.locale][n]??"",t),"t"),B=o((n,t)=>{let le=new Intl.PluralRules(d.locale).select(t),L=`${n}.${le}`,te=I[L]??Q[d.locale][L]??r(`${n}.other`);return w(te,{count:new Intl.NumberFormat(d.locale).format(t)})},"plural"),y=o(n=>e.providerName?r(`eid.${n}`,{provider:e.providerName}):r(`eid.${n}Generic`),"named"),[S,Z]=(0,a.useState)(""),[f,_]=(0,a.useState)(""),[c,D]=(0,a.useState)(!1),[b,p]=(0,a.useState)(null),s=e.phase==="code",F=K(s),l=(0,a.useId)(),ee=U(),[ie,ne]=q(e.reason==="eid_code_invalid",e.codeAttemptsRemaining??0,()=>_("")),m=o(async n=>{D(!0),p(null);try{await n()}catch(t){p(z(t,d.strings)),Y?.(t)}finally{D(!1)}},"run"),M=(0,a.useRef)(!1);(0,a.useEffect)(()=>{!e.identifierBound||s||e.reason!==void 0||M.current||(M.current=!0,m(()=>e.start()))},[e.identifierBound,s,e.reason]),(0,a.useEffect)(()=>{(e.reason==="eid_code_invalid"||e.codeExpiresAt!==void 0)&&_("")},[e.reason,e.codeExpiresAt,e.codeAttemptsRemaining]);let H=(0,a.useRef)(s);(0,a.useEffect)(()=>{s&&!H.current&&document.getElementById(`${l}-code`)?.focus(),H.current=s},[s,l]);let k=e.reason==="eid_locked",V=X(e.codeExpiresAt,F),x=s&&e.codeExpiresAt!==void 0&&V===0,$=X(e.resendAvailableAt,F),G=e.resendsRemaining===0||e.reason==="eid_resend_limit",re=o(n=>{if(n.preventDefault(),s){f.length===C&&!k&&m(()=>e.verify(f));return}if(e.identifierBound){m(()=>e.start());return}let t=A(S);if(e.country==="MR"){if(!/^\d{10}$/.test(t))return p("population.invalid");if(!T(t))return p("population.reason_nni_invalid")}m(()=>e.start(t))},"onSubmit"),g=e.reason?.startsWith("eid_")?e.reason:void 0,ae=(0,i.jsxs)(i.Fragment,{children:[g!==void 0?(0,i.jsxs)(E,{tone:pe.has(g)?"danger":"warning",children:[(0,i.jsx)("span",{children:r(`reasons.${g}`)}),g==="eid_code_invalid"&&e.codeAttemptsRemaining!==void 0?(0,i.jsx)("span",{children:B("eid.codeAttemptsRemaining",e.codeAttemptsRemaining)}):null,e.canUseCamera?(0,i.jsx)(N,{kind:"secondary",disabled:c,onClick:u(()=>{m(()=>e.useCamera())},"onClick"),children:r("eid.useCamera")}):null]}):null,b!==null?(0,i.jsx)(E,{tone:"danger",children:(0,i.jsx)("span",{children:d.t(b)})}):null]}),[de,se]=s?[y("codeTitle"),y("codeHelp")]:[y("identifierTitle"),y(e.identifierBound?"boundDescription":"identifierDescription")];return(0,i.jsxs)("form",{className:`sekyro-step sekyro-otp${h?` ${h}`:""}`,"aria-labelledby":l,onSubmit:re,noValidate:!0,"data-testid":"sekyro-eid",children:[(0,i.jsxs)("div",{className:"sekyro-heading",children:[(0,i.jsx)("h2",{id:l,ref:ee,tabIndex:-1,className:"sekyro-text-body",children:de}),(0,i.jsx)("p",{className:"sekyro-text-muted",children:s&&e.context.simulation!==void 0?(0,i.jsx)(j,{template:d.t("sandbox.otpHint"),code:e.context.simulation.otpCode}):se}),e.afterPass==="continue"?(0,i.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:e.providerName?r("eid.continueHint",{provider:e.providerName}):r("eid.continueHintGeneric")}):null]}),ae,s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"sekyro-field",children:[(0,i.jsx)("label",{className:"sekyro-label",htmlFor:`${l}-code`,children:r("eid.codeLabel")}),k?(0,i.jsx)("input",{id:`${l}-code`,className:"sekyro-input sekyro-input--number",dir:"ltr",value:f,disabled:!0,readOnly:!0}):(0,i.jsx)(J,{id:`${l}-code`,value:f,length:C,invalid:ie,onChange:u(n=>{p(null),n!==""&&ne(),_(n)},"onChange")}),e.codeExpiresAt!==void 0?(0,i.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${x?" is-danger":""}`,children:x?r("eid.expired"):r("eid.expiresIn",{time:me(V)})}):null]}),(0,i.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:x?r("eid.expired"):""}),(0,i.jsxs)(R,{children:[(0,i.jsx)(N,{type:"submit",full:!0,disabled:c||f.length!==C||k,"aria-busy":c||void 0,children:r("eid.verify")}),(0,i.jsx)("div",{className:"sekyro-resend-row",children:G?(0,i.jsx)("p",{className:"sekyro-resend is-waiting",children:r("eid.noResendsLeft")}):(0,i.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:c||$>0||k,onClick:u(()=>{m(()=>e.resend())},"onClick"),children:$>0?r("eid.resendIn",{seconds:$}):r("eid.resend")})}),!G&&e.resendsRemaining!==void 0?(0,i.jsx)("p",{className:"sekyro-help sekyro-center",children:B("eid.resendsRemaining",e.resendsRemaining)}):null]})]}):(0,i.jsxs)(i.Fragment,{children:[e.identifierBound?null:(0,i.jsxs)("div",{className:"sekyro-field",children:[(0,i.jsx)("label",{className:"sekyro-label",htmlFor:`${l}-nni`,children:d.t("population.label")}),(0,i.jsx)("input",{id:`${l}-nni`,className:"sekyro-input sekyro-input--number",dir:"ltr",inputMode:"numeric",autoComplete:"off",placeholder:d.t("population.placeholder"),value:S,"aria-describedby":`${l}-nni-help`,"aria-invalid":b==="population.invalid"||b==="population.reason_nni_invalid"||void 0,onChange:u(n=>{p(null),Z(A(n.target.value).replace(/\D/g,"").slice(0,10))},"onChange")}),(0,i.jsx)("span",{id:`${l}-nni-help`,className:"sekyro-help",children:d.t("population.helper")})]}),(0,i.jsx)(R,{children:(0,i.jsx)(N,{type:"submit",full:!0,disabled:c,"aria-busy":c||void 0,children:r("eid.start")})})]})]})}u(ue,"Ae");o(ue,"EidView");export{ue as EidView};
@@ -0,0 +1 @@
1
+ "use client";import{a as G,b as J,c as K}from"./chunk-KEO772AF.js";import{a as Y}from"./chunk-XZKF2U76.js";import{a as B}from"./chunk-RVL4N5KZ.js";import"./chunk-X6SULJS2.js";import"./chunk-4H47RI64.js";import{A as P,H as j,K as h,L as U,a as de,b as me,c as x,w as F,y as T}from"./chunk-2HKOE6CN.js";import{G as W}from"./chunk-LNE2P3TV.js";import"./chunk-W2IBE5PM.js";import"./chunk-GORELL4J.js";import"./chunk-P7K7ELYZ.js";import{a as n}from"./chunk-5QL6W6FW.js";import"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as p,c as A}from"./chunk-4FHWXBOB.js";var s=A(de(),1),e=A(me(),1);var pe={"emailOtp.reason_otp_daily_cap_reached":"لا يمكننا إرسال رمز إلى بريدك الإلكتروني اليوم. اختر طريقة أخرى للتحقق إن كانت متاحة، أو حاول مرة أخرى لاحقًا.","emailOtp.reason_payment_method_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","emailOtp.reason_spend_cap_reached":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","emailOtp.reason_insufficient_balance":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","emailOtp.reason_account_verification_required":"طريقة التحقق هذه غير متاحة حاليًا. اختر طريقة أخرى للتحقق إن كانت متاحة.","emailOtp.sendTitle":"تحقّق من بريدك الإلكتروني","emailOtp.sendDescription":"سنرسل إليك عبر البريد الإلكتروني رمزًا يُستخدم مرة واحدة لتأكيد أن هذا العنوان يخصّك","emailOtp.prefilledNotice":"سنرسل رمز تحقّق إلى بريدك الإلكتروني المسجّل.","emailOtp.emailLabel":"البريد الإلكتروني","emailOtp.emailHelper":"سنرسل رمزًا يُستخدم مرة واحدة إلى هذا العنوان","emailOtp.emailPlaceholder":"عنوان بريدك الإلكتروني","emailOtp.emailInvalid":"أدخل عنوان بريد إلكتروني صالحًا","emailOtp.send":"أرسل لي رمزًا عبر البريد الإلكتروني","emailOtp.verifyTitle":"أدخل الرمز","emailOtp.verifyDescription":"أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى بريدك الإلكتروني لإتمام التحقّق من عنوانك","emailOtp.sentTo":"أرسلنا رمزًا مكوّنًا من 6 أرقام إلى {email}","emailOtp.codeLabel":"رمز التحقّق","emailOtp.codeHelper":"أدخل الرمز المكوّن من 6 أرقام الوارد في الرسالة","emailOtp.verify":"تحقّق من الرمز","emailOtp.resend":"إعادة إرسال الرمز","emailOtp.resendIn":"إعادة إرسال الرمز خلال {seconds} ثانية","emailOtp.expiresIn":"ينتهي الرمز خلال {time}","emailOtp.expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد","emailOtp.reason_otp_mismatch":"الرمز غير صحيح. تحقّق منه وأعد إدخاله","emailOtp.reason_otp_expired":"انتهت صلاحية الرمز. أعد إرسال رمز جديد للمتابعة","emailOtp.reason_otp_send_failed":"تعذّر إرسال الرسالة. أعد المحاولة لاحقًا. إذا تكرر ذلك، فتواصل مع الجهة التي طلبت منك التحقق.","emailOtp.reason_otp_rate_limited":"طُلبت رموز كثيرة لهذا العنوان. أعد المحاولة لاحقًا أو أدخل عنوانًا آخر.","emailOtp.reason_email_invalid":"لا يمكننا الإرسال إلى هذا العنوان. تحقّق منه أو أدخل عنوانًا آخر","emailOtp.reason_email_disposable":"استخدم بريدًا إلكترونيًا دائمًا، وليس عنوانًا مؤقتًا","emailOtp.changeEmail":"تغيير البريد الإلكتروني","emailOtp.backToCode":"العودة إلى الرمز","emailOtp.reason_otp_resend_limit":"لا يمكنك طلب رموز أخرى. أدخل آخر رمز وصلك"},b={"emailOtp.reason_otp_daily_cap_reached":"We can't email you a code today. Choose another way to verify if one is offered, or try again later.","emailOtp.reason_payment_method_required":"This verification method is not available right now. Choose another way to verify if one is offered.","emailOtp.reason_spend_cap_reached":"This verification method is not available right now. Choose another way to verify if one is offered.","emailOtp.reason_insufficient_balance":"This verification method is not available right now. Choose another way to verify if one is offered.","emailOtp.reason_account_verification_required":"This verification method is not available right now. Choose another way to verify if one is offered.","emailOtp.sendTitle":"Verify your email address","emailOtp.sendDescription":"We'll email you a one-time code to confirm this address is yours","emailOtp.prefilledNotice":"We'll send a verification code to your registered email address.","emailOtp.emailLabel":"Email address","emailOtp.emailHelper":"We'll send a one-time code to this address","emailOtp.emailPlaceholder":"Your email address","emailOtp.emailInvalid":"Enter a valid email address","emailOtp.send":"Email me a code","emailOtp.verifyTitle":"Enter the code","emailOtp.verifyDescription":"Type the 6-digit code we emailed you to finish verifying your address","emailOtp.sentTo":"We sent a 6-digit code to {email}","emailOtp.codeLabel":"Verification code","emailOtp.codeHelper":"Enter the 6-digit code from the email","emailOtp.verify":"Verify code","emailOtp.resend":"Resend code","emailOtp.resendIn":"Resend code in {seconds}s","emailOtp.expiresIn":"Code expires in {time}","emailOtp.expired":"That code has expired. Resend a new one","emailOtp.reason_otp_mismatch":"That code was incorrect. Check it and enter it again","emailOtp.reason_otp_expired":"That code has expired. Resend a new code to continue","emailOtp.reason_otp_send_failed":"We couldn't send the email. Try again later. If it keeps happening, contact the organization that asked you to verify.","emailOtp.reason_otp_rate_limited":"Too many codes were requested for this address. Try again later, or enter another address.","emailOtp.reason_email_invalid":"We can't send to this address. Check it or enter another one","emailOtp.reason_email_disposable":"Use a permanent email address, not a temporary one","emailOtp.changeEmail":"Change email","emailOtp.backToCode":"Back to code","emailOtp.reason_otp_resend_limit":"You can't get more codes. Enter the last code you received"},ce={"emailOtp.reason_otp_daily_cap_reached":"Nous ne pouvons pas vous envoyer de code par e-mail aujourd'hui. Choisissez une autre méthode si elle est proposée, ou réessayez plus tard.","emailOtp.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.","emailOtp.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.","emailOtp.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.","emailOtp.reason_account_verification_required":"Cette méthode de vérification n'est pas disponible pour le moment. Choisissez une autre méthode si elle est proposée.","emailOtp.sendTitle":"Vérifiez votre e-mail","emailOtp.sendDescription":"Nous vous enverrons par e-mail un code à usage unique pour confirmer que cette adresse vous appartient","emailOtp.prefilledNotice":"Nous enverrons un code de vérification à votre adresse e-mail enregistrée.","emailOtp.emailLabel":"Adresse e-mail","emailOtp.emailHelper":"Nous enverrons un code à usage unique à cette adresse","emailOtp.emailPlaceholder":"Votre adresse e-mail","emailOtp.emailInvalid":"Saisissez une adresse e-mail valide","emailOtp.send":"M'envoyer un code par e-mail","emailOtp.verifyTitle":"Saisissez le code","emailOtp.verifyDescription":"Saisissez le code à 6 chiffres que nous vous avons envoyé par e-mail pour finaliser la vérification de votre adresse","emailOtp.sentTo":"Nous avons envoyé un code à 6 chiffres à {email}","emailOtp.codeLabel":"Code de vérification","emailOtp.codeHelper":"Saisissez le code à 6 chiffres reçu par e-mail","emailOtp.verify":"Vérifier le code","emailOtp.resend":"Renvoyer le code","emailOtp.resendIn":"Renvoyer le code dans {seconds} s","emailOtp.expiresIn":"Le code expire dans {time}","emailOtp.expired":"Ce code a expiré. Renvoyez-en un nouveau","emailOtp.reason_otp_mismatch":"Ce code est incorrect. Vérifiez-le et saisissez-le à nouveau","emailOtp.reason_otp_expired":"Ce code a expiré. Renvoyez un nouveau code pour continuer","emailOtp.reason_otp_send_failed":"Nous n'avons pas pu envoyer l'e-mail. Réessayez plus tard. Si le problème continue, contactez l'organisation qui vous a demandé de vous vérifier.","emailOtp.reason_otp_rate_limited":"Trop de codes ont été demandés pour cette adresse. Réessayez plus tard ou saisissez une autre adresse.","emailOtp.reason_email_invalid":"Nous ne pouvons pas envoyer à cette adresse. Vérifiez-la ou saisissez-en une autre","emailOtp.reason_email_disposable":"Utilisez une adresse e-mail permanente, pas une adresse temporaire","emailOtp.changeEmail":"Changer d'adresse e-mail","emailOtp.backToCode":"Retour au code","emailOtp.reason_otp_resend_limit":"Vous ne pouvez plus demander de code. Saisissez le dernier code reçu"},ue={en:b,fr:ce,ar:pe,es:b,pt:b,de:b},Q=n((a,l,O)=>{if(a===void 0)return 0;let _=Date.parse(a)-l;return Number.isFinite(_)?Math.min(O,Math.max(0,Math.ceil(_/1e3))):0},"secondsUntil"),he=600,Oe=60,_e=n(a=>`${Math.floor(a/60)}:${String(a%60).padStart(2,"0")}`,"mmss"),X=new Set(["otp_expired","otp_send_failed","otp_rate_limited","otp_resend_limit","email_invalid","email_disposable","otp_daily_cap_reached","payment_method_required","spend_cap_reached","insufficient_balance","account_verification_required"]);function fe({step:a,i18n:l,className:O,defaultEmail:_="",onError:Z}){let i=n((t,o)=>B(l.strings[t]??ue[l.locale][t],o),"t"),[N,ee]=(0,s.useState)(_),[f,E]=(0,s.useState)(""),[r,z]=(0,s.useState)(!1),[w,q]=(0,s.useState)(null),[g,c]=(0,s.useState)(!1),[I,ae]=(0,s.useState)(null),u=(0,s.useRef)(null),v=a.phase==="verify",m=v&&!g,R=K(v),d=(0,s.useId)(),[ie,te]=G(a.reason==="otp_mismatch",a.attemptsRemaining,()=>E("")),V=v?a.codeExpiresAt??"sent":null;(0,s.useEffect)(()=>{V!==null&&(c(!1),u.current!==null&&!X.has(a.reason??"")&&ae(u.current),u.current=null)},[V]);let S=n(async t=>{z(!0),q(null);try{await t()}catch(o){q(o instanceof W&&o.field==="email"?i("emailOtp.emailInvalid"):l.t(Y(o,l.strings))),Z?.(o)}finally{z(!1)}},"run"),$=n(t=>{let o=a.needsEmail?t?I:N.trim():null;u.current=o,S(async()=>{try{await a.send(o!==null?{email:o}:{})}catch(ne){throw u.current=null,ne}})},"send"),D=n(t=>{S(()=>a.verify(t))},"submitCode"),se=n(t=>{t.preventDefault(),m?D(f):$(!1)},"onSubmit"),k=Q(a.codeExpiresAt,R,he),C=Q(a.resendAvailableAt,R,Oe),y=m&&a.codeExpiresAt!==void 0&&k===0,L=a.needsEmail&&!a.attemptsExhausted,H=v&&(a.codeExpiresAt===void 0||k>0);P(m&&L?()=>c(!0):g&&H?()=>c(!1):null,r);let[oe,le]=i("emailOtp.sentTo").split("{email}"),M=a.context.simulation?.otpCode,re=a.reason==="otp_mismatch"?(0,e.jsxs)(h,{tone:"danger",children:[(0,e.jsx)("span",{children:i("emailOtp.reason_otp_mismatch")}),(0,e.jsx)("span",{children:U(l,a.attemptsRemaining,a.attemptsExhausted)})]}):a.reason!==void 0&&X.has(a.reason)?(0,e.jsx)(h,{tone:"warning",children:(0,e.jsx)("span",{children:i(`emailOtp.reason_${a.reason}`)})}):a.reason==="tester_mismatch"?(0,e.jsx)(h,{tone:"warning",children:(0,e.jsx)("span",{children:l.t("sandboxMode.mismatchEmail")})}):null;return(0,e.jsxs)("form",{className:`sekyro-step sekyro-otp${O?` ${O}`:""}`,"aria-labelledby":d,onSubmit:se,noValidate:!0,children:[(0,e.jsx)(F,{id:d,title:i(m?"emailOtp.verifyTitle":"emailOtp.sendTitle"),lead:m&&M!==void 0?(0,e.jsx)(j,{template:l.t("sandbox.otpHint"),code:M}):m?(0,e.jsxs)(e.Fragment,{children:[oe,(0,e.jsx)("bdi",{dir:"ltr",className:"sekyro-mono",children:I??a.sentToMasked}),le]}):i("emailOtp.sendDescription")}),re,w!==null?(0,e.jsx)(h,{tone:"danger",children:(0,e.jsx)("span",{children:w})}):null,m?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"sekyro-field",children:[(0,e.jsx)("label",{className:"sekyro-label",htmlFor:`${d}-code`,children:i("emailOtp.codeLabel")}),(0,e.jsx)(J,{id:`${d}-code`,value:f,invalid:ie,onChange:p(t=>{t!==""&&te(),E(t),t.length===6&&f.length!==6&&!r&&!a.attemptsExhausted&&D(t)},"onChange")}),(0,e.jsx)("span",{className:`sekyro-help sekyro-otp-expiry${y?" is-danger":""}`,"aria-hidden":!y||void 0,children:y?i("emailOtp.expired"):i("emailOtp.expiresIn",{time:_e(k)})})]}),(0,e.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:y?i("emailOtp.expired"):""}),(0,e.jsxs)(T,{children:[(0,e.jsx)(x,{type:"submit",full:!0,disabled:r||f.length!==6,"aria-busy":r||void 0,children:i("emailOtp.verify")}),(0,e.jsxs)("div",{className:"sekyro-resend-row",children:[(0,e.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:r||C>0,onClick:p(()=>$(!0),"onClick"),children:C>0?i("emailOtp.resendIn",{seconds:C}):i("emailOtp.resend")}),L?(0,e.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:r,onClick:p(()=>c(!0),"onClick"),"data-testid":"sekyro-otp-change",children:i("emailOtp.changeEmail")}):null]})]})]}):(0,e.jsxs)(e.Fragment,{children:[a.needsEmail?(0,e.jsxs)("div",{className:"sekyro-field",children:[(0,e.jsx)("label",{className:"sekyro-label",htmlFor:`${d}-email`,children:i("emailOtp.emailLabel")}),(0,e.jsx)("input",{id:`${d}-email`,className:"sekyro-input",type:"email",dir:"ltr",inputMode:"email",autoComplete:"email",autoCapitalize:"none",spellCheck:!1,placeholder:i("emailOtp.emailPlaceholder"),value:N,"aria-describedby":`${d}-email-help`,onChange:p(t=>ee(t.target.value),"onChange")}),(0,e.jsx)("span",{id:`${d}-email-help`,className:"sekyro-help",children:i("emailOtp.emailHelper")})]}):(0,e.jsx)("p",{className:"sekyro-text-muted",children:i("emailOtp.prefilledNotice")}),(0,e.jsxs)(T,{children:[(0,e.jsx)(x,{type:"submit",full:!0,disabled:r,"aria-busy":r||void 0,children:i("emailOtp.send")}),g&&H?(0,e.jsx)("button",{type:"button",className:"sekyro-link sekyro-resend",disabled:r,onClick:p(()=>c(!1),"onClick"),"data-testid":"sekyro-otp-back-to-code",children:i("emailOtp.backToCode")}):null]})]})]})}p(fe,"Ve");n(fe,"EmailOtpView");export{fe as EmailOtpView};
@@ -0,0 +1 @@
1
+ "use client";import{a as Ae,b as O,c as Ce}from"./chunk-YVQ6LFN4.js";import{a as H,e as W,f as ge,g as Q,h as E,i as ke,j as ve,k as be,l as Z}from"./chunk-IAPQGT6L.js";import{a as fe}from"./chunk-XZKF2U76.js";import{a as j}from"./chunk-RVL4N5KZ.js";import"./chunk-5KTQLZKN.js";import"./chunk-GR6JK2ML.js";import"./chunk-X6SULJS2.js";import"./chunk-4H47RI64.js";import{a as N}from"./chunk-TBQUAM5Z.js";import{K as S,a as $e,b as Ue,c as w,t as L,v as z,w as ye,y as B}from"./chunk-2HKOE6CN.js";import{a as q}from"./chunk-LNE2P3TV.js";import"./chunk-W2IBE5PM.js";import"./chunk-GORELL4J.js";import"./chunk-P7K7ELYZ.js";import{a as h}from"./chunk-5QL6W6FW.js";import{c as D,f as he}from"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as y,c as me}from"./chunk-4FHWXBOB.js";var k=me($e(),1),r=me(Ue(),1);var Fe={"consent.human.terms.intro":"تؤكد Sekyro AI أن شخصًا حقيقيًا يُجري هذه الخطوة، نيابةً عن الجهة التي طلبتها.","consent.human.terms.data":"تلتقط Sekyro AI تسجيلًا قصيرًا لوجهك.","consent.human.terms.processing":"يُفحص هذا التسجيل للتأكد من أنك شخص حقيقي وحاضر، وقد يُقارَن بالوجوه التي سبق التحقق منها لدى هذه الجهة.","consent.human.terms.sharing":"تُبلَّغ الجهة التي طلبت هذا التحقق بنتيجته.","consent.human.terms.retention":"تُخزَّن بياناتك مشفّرة ولا يُحتفظ بها إلا للمدة التي يقتضيها القانون وإعدادات الجهة. لممارسة حقوقك المتعلقة بحماية البيانات، تواصل مع الجهة التي طلبت هذا التحقق.","capture.noCamera.title":"تتطلب هذه الخطوة كاميرا","capture.noCamera.body":"اسمح بالوصول إلى الكاميرا وحاول مرة أخرى، أو تابع على هاتف مزوّد بكاميرا.","capture.noCamera.continue":"المتابعة بدون كاميرا","capture.noCamera.deniedTitle":"اسمح بالوصول إلى الكاميرا","capture.noCamera.deniedBody":"حظر متصفحك الوصول إلى الكاميرا في هذه الصفحة. اسمح به من إعدادات الموقع ثم أعد المحاولة.","capture.noCamera.stepsChrome":"في Chrome، اضغط على الرمز الموجود بجانب العنوان، ثم الأذونات، وفعّل الكاميرا.","capture.noCamera.stepsSamsung":"في Samsung Internet، افتح القائمة، ثم الإعدادات، المواقع والتنزيلات، أذونات المواقع، الكاميرا، واسمح لهذا الموقع.","capture.noCamera.stepsSafari":"في Safari، اضغط على زر aA في شريط العنوان، ثم إعدادات موقع الويب، واضبط الكاميرا على السماح.","capture.noCamera.stepsDesktop":"انقر على الرمز الموجود بجانب العنوان واسمح بالكاميرا لهذا الموقع.","capture.noCamera.stepsSystem":"ما زالت محظورة؟ تحقق في إعدادات هاتفك من أن متصفحك مسموح له باستخدام الكاميرا.","capture.noCamera.stillBlocked":"ما زالت الكاميرا محظورة. اتبع الخطوات أعلاه ثم أعد المحاولة.","capture.noCamera.inAppTitle":"افتح هذه الصفحة في متصفحك","capture.noCamera.inAppBody":"لا يمكن لمتصفح هذا التطبيق استخدام الكاميرا. افتح الصفحة في Chrome أو Safari للمتابعة.","choice.title":"كيف تريد المتابعة؟","choice.description":"اختر خيارًا واحدًا.","choice.switch":"استخدم خيارًا آخر","choice.changeMethod":"تغيير الطريقة","contact.title":"كيف تريد استلام الرمز؟","contact.description":"اختر خيارًا واحدًا.","contact.phone":"عبر الهاتف (واتساب أو رسالة نصية)","contact.email":"عبر البريد الإلكتروني","contact.switch":"استخدم خيارًا آخر","summary.title":"تحقق من بياناتك","summary.description":"تأكد من أن هذه بياناتك قبل الصورة الحية.","summary.fullName":"الاسم الكامل","summary.birthDate":"تاريخ الميلاد","summary.nationality":"الجنسية","summary.documentType":"الوثيقة","summary.documentNumber":"رقم الوثيقة","summary.nni":"الرقم الوطني للتعريف الموريتاني (NNI)","summary.id_number":"رقم الهوية","summary.expiryDate":"تاريخ الانتهاء","summary.portraitAlt":"الصورة المسجلة","summary.source.registry":"من سجل الحالة المدنية","summary.source.document":"مقروءة من وثيقتك","summary.source.chip":"مقروءة من شريحة وثيقتك","summary.name":"الاسم","summary.birthYear":"سنة الميلاد","summary.confirm":"تأكيد ومتابعة","summary.retakeDocument":"مسح وثيقتي مرة أخرى","summary.retakeNationalNumber":"إدخال رقمي مرة أخرى","summary.noRetake":"لم يعد بإمكانك إعادة المحاولة. تواصل مع {org} إذا كانت هذه البيانات غير صحيحة","capture.tipsIcao.title":"لصورة الهوية:","capture.tipsIcao.glasses":"انزع نظارتك","capture.tipsIcao.headwear":"انزع القبعة. يُقبل غطاء الرأس الديني إذا كان الوجه ظاهرًا بالكامل","capture.tipsIcao.expression":"حافظ على تعبير محايد وفمك مغلق","capture.tipsIcao.faceCamera":"انظر مباشرة إلى الكاميرا وعيناك مفتوحتان","capture.tipsIcao.background":"قف أمام خلفية سادة فاتحة اللون","capture.tipsIcao.lighting":"استخدم إضاءة متساوية على وجهك: دون ظلال","capture.tipsIcao.hair":"أبعد شعرك عن وجهك وعينيك","capture.tipsIcao.summary":"قف أمام جدار سادة فاتح اللون مع إضاءة متساوية على وجهك. انزع نظارتك وأي قبعة. أبعد شعرك عن وجهك، وانظر مباشرة إلى الكاميرا وعيناك مفتوحتان، وحافظ على تعبير محايد وفمك مغلق، وابقَ ثابتًا.","portrait.retakeOnly":"نجح التحقق الحي. الصورة فقط تحتاج إلى محاولة أخرى","portrait.keepCamera":"ابقَ أمام الكاميرا","handoff.description":"امسح الرمز بهاتفك للمتابعة","handoff.qrAlt":"رمز QR يفتح عملية التحقق هذه على هاتفك","handoff.copyLink":"نسخ الرابط","handoff.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة من متصفحك بدلًا من ذلك","handoff.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة على هاتفك","inApp.title":"افتح الصفحة في متصفحك","inApp.description":"لا تعمل الكاميرا جيدًا داخل هذا التطبيق. افتح الرابط في Chrome أو Safari للمتابعة.","inApp.copyLink":"نسخ الرابط","inApp.copied":"تم نسخ الرابط. الصقه في متصفحك","inApp.copyFailed":"تعذّر نسخ الرابط. انسخ عنوان هذه الصفحة بدلًا من ذلك","inApp.continueAnyway":"المتابعة هنا على أي حال","needsApp.capture.title":"تابع في التطبيق","needsApp.capture.description":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org}.","needsApp.capture.descriptionSekyro":"تلتقط {org} صور هذا التحقق في تطبيق للهاتف. افتحه في تطبيق {org} أو في تطبيق Sekyro AI.","needsApp.capture.descriptionNoOrg":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في التطبيق الذي أُعطي لك.","needsApp.capture.descriptionNoOrgSekyro":"يلتقط هذا التحقق الصور في تطبيق للهاتف. افتحه في تطبيق Sekyro AI.","needsApp.capture.openSekyro":"افتح في تطبيق Sekyro AI","needsApp.capture.getApp":"احصل على تطبيق Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"امسح الرمز بهاتفك لفتح هذا التحقق في التطبيق.","needsApp.capture.qrAlt":"رمز QR يفتح هذا التحقق في التطبيق","needsApp.capture.waiting":"ستنتقل هذه الصفحة تلقائيًا بعد أن تُكمل الخطوة في التطبيق","inApp.openBrowser":"افتح في المتصفح","testerGate.title":"إجراء فحوصات حقيقية بصفتي مختبِرًا","testerGate.body":"انظر إلى الكاميرا. يجب أن يتطابق وجهك مع أحد المختبِرين المسجَّلين لدى المؤسسة. بعد ذلك تُجري الجلسة فحوصات حقيقية.","testerGate.notice":"يُقارَن وجهك بوجوه المختبِرين المسجَّلين لدى المؤسسة. يُحتفظ بالفيديو والنتيجة مع هذه الجلسة، ويمكن للمؤسسة الاطلاع عليهما.","testerGate.start":"ابدأ","testerGate.checking":"جارٍ التحقق من وجهك","testerGate.boundTitle":"الفحوصات الحقيقية مفعّلة","testerGate.boundBody":"تم التعرّف عليك كمختبِر مسجَّل. ستُجري الخطوات التالية فحوصات حقيقية.","testerGate.missTitle":"لا يوجد مختبِر مسجَّل مطابق","testerGate.missBody":"يُحتفظ بالفيديو والنتيجة مع هذه الجلسة. يمكنك إعادة المحاولة.","testerGate.retakeTitle":"تعذّر علينا التحقق من وجهك بوضوح","testerGate.retakeBody":"لا تُحتسب هذه المحاولة. يُحتفظ بالفيديو مع هذه الجلسة. واجه الكاميرا في إضاءة جيدة، وابقَ ثابتًا، ثم أعد المحاولة.","testerGate.livenessTitle":"لم يتم تأكيد الوجه الحي","testerGate.livenessBody":"يُحتفظ بالفيديو والنتيجة مع هذه الجلسة. يمكنك إعادة المحاولة.","testerGate.retry":"أعد المحاولة","testerGate.continue":"متابعة","testerGate.checkUnavailableTitle":"تعذّر إجراء فحص الأمان","testerGate.checkUnavailableBody":"حظر هذا المتصفح أو هذه الشبكة فحص الأمان، لذا لا يمكن بدء الفحوص الحقيقية هنا. أعد المحاولة أو افتح الرابط في متصفح آخر.","sandboxMode.title":"كيف تريد الاختبار؟","sandboxMode.testDataBody":"لا يُفحص أي شيء حقيقي. النتائج قيم اختبار.","sandboxMode.testerTitle":"فحوصات حقيقية (مختبِر مسجَّل)","sandboxMode.testerBody":"يُتحقق من وجهك أولًا. بعد ذلك يجب أن تطابق كل خطوة بيانات تسجيلك.","sandboxMode.noTestersTitle":"لا يوجد مختبِر مسجَّل","sandboxMode.noTestersBody":"لا يوجد أي مختبِر مسجَّل في هذه المؤسسة. اطلب من أحد المسؤولين أن يرسل إليك رابط تسجيل مختبِر من لوحة التحكم.","sandboxMode.continueTestData":"المتابعة باستخدام بيانات الاختبار","sandboxMode.boundTitle":"الفحوصات الحقيقية مفعّلة لـ {name}","sandboxMode.summaryTestDataBody":"هذه الهوية وهمية. وهي لا تطابق الرقم الذي أدخلته."},$={"consent.human.terms.intro":"Sekyro AI confirms that a real person is completing this step, on behalf of the organization that asked for it.","consent.human.terms.data":"Sekyro AI collects a short capture of your face.","consent.human.terms.processing":"The capture is checked to confirm that you are a real person who is present. It may be compared with faces already verified for this organization.","consent.human.terms.sharing":"The organization that requested this verification learns its outcome.","consent.human.terms.retention":"Your data is stored encrypted and kept only as long as the law and the organization's settings require. To exercise your data-protection rights, contact the organization that requested this verification.","capture.noCamera.title":"This step needs a camera","capture.noCamera.body":"Allow camera access and try again, or continue on a phone with a camera.","capture.noCamera.continue":"Continue without a camera","capture.noCamera.deniedTitle":"Allow camera access","capture.noCamera.deniedBody":"Your browser blocked the camera for this page. Allow it in the site settings, then try again.","capture.noCamera.stepsChrome":"In Chrome, tap the icon to the left of the address, then Permissions, and turn on Camera.","capture.noCamera.stepsSamsung":"In Samsung Internet, open the menu, then Settings, Sites and downloads, Site permissions, Camera, and allow this site.","capture.noCamera.stepsSafari":"In Safari, tap the aA button in the address bar, then Website Settings, and set Camera to Allow.","capture.noCamera.stepsDesktop":"Click the icon to the left of the address and allow the camera for this site.","capture.noCamera.stepsSystem":"Still blocked? In your phone's settings, check that your browser may use the camera.","capture.noCamera.stillBlocked":"The camera is still blocked. Follow the steps above, then try again.","capture.noCamera.inAppTitle":"Open this page in your browser","capture.noCamera.inAppBody":"This app's browser can't use your camera. Open the page in Chrome or Safari to continue.","choice.title":"Choose how to continue","choice.description":"Choose one option.","choice.switch":"Use another option","choice.changeMethod":"Change method","contact.title":"Where to send your code","contact.description":"Choose one option.","contact.phone":"By phone (WhatsApp or SMS)","contact.email":"By email","contact.switch":"Use another option","summary.title":"Check your details","summary.description":"Make sure this is you before the live photo.","summary.fullName":"Full name","summary.birthDate":"Date of birth","summary.nationality":"Nationality","summary.documentType":"Document","summary.documentNumber":"Document number","summary.nni":"Mauritanian national ID number (NNI)","summary.id_number":"ID number","summary.expiryDate":"Expiry date","summary.portraitAlt":"Photo on record","summary.source.registry":"From the civil registry","summary.source.document":"Read from your document","summary.source.chip":"Read from your document's chip","summary.name":"Name","summary.birthYear":"Year of birth","summary.confirm":"Confirm and continue","summary.retakeDocument":"Scan my document again","summary.retakeNationalNumber":"Enter my number again","summary.noRetake":"You can't try again. Contact {org} if these details are wrong","capture.tipsIcao.title":"For your ID photo:","capture.tipsIcao.glasses":"Remove your glasses","capture.tipsIcao.headwear":"Remove hats and caps. A religious head covering is fine if your whole face shows","capture.tipsIcao.expression":"Keep a neutral expression with your mouth closed","capture.tipsIcao.faceCamera":"Look straight at the camera with your eyes open","capture.tipsIcao.background":"Stand in front of a plain, light background","capture.tipsIcao.lighting":"Use even light on your face: no shadows","capture.tipsIcao.hair":"Keep your hair away from your face and eyes","capture.tipsIcao.summary":"Stand in front of a plain, light wall with even light on your face. Remove your glasses and any hat. Keep your hair off your face, look straight at the camera with your eyes open, keep a neutral expression with your mouth closed, and hold still.","portrait.retakeOnly":"Your live check passed. Only the photo needs another try","portrait.keepCamera":"Stay in front of the camera","handoff.description":"Scan with your phone to continue","handoff.qrAlt":"QR code that opens this verification on your phone","handoff.copyLink":"Copy link","handoff.copyFailed":"We couldn't copy the link. Copy this page's address from your browser instead","handoff.waiting":"This page moves on by itself once you finish on your phone","inApp.title":"Open 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","needsApp.capture.title":"Continue in the app","needsApp.capture.description":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app.","needsApp.capture.descriptionSekyro":"{org} takes the photos for this verification in a mobile app. Open it in {org}'s app or in the Sekyro AI app.","needsApp.capture.descriptionNoOrg":"This verification takes the photos in a mobile app. Open it in the app you were given.","needsApp.capture.descriptionNoOrgSekyro":"This verification takes the photos in a mobile app. Open it in the Sekyro AI app.","needsApp.capture.openSekyro":"Open in the Sekyro AI app","needsApp.capture.getApp":"Get the Sekyro AI app","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scan with your phone to open this verification in the app.","needsApp.capture.qrAlt":"QR code that opens this verification in the app","needsApp.capture.waiting":"This page moves on when you finish in the app","inApp.openBrowser":"Open in browser","testerGate.title":"Run real checks as a tester","testerGate.body":"Look at the camera. Your face must match one of the organization's enrolled testers. Then the session runs real checks.","testerGate.notice":"Your face is compared with the organization's enrolled testers. The video and the result are kept with this session, and the organization can see them.","testerGate.start":"Start","testerGate.checking":"Checking your face","testerGate.boundTitle":"Real checks are on","testerGate.boundBody":"You were recognised as an enrolled tester. The next steps run real checks.","testerGate.missTitle":"No enrolled tester matched","testerGate.missBody":"The video and the result are kept with this session. You can try again.","testerGate.retakeTitle":"We couldn't check your face clearly","testerGate.retakeBody":"This try doesn't count. The video is kept with this session. Face the camera in good light, keep still, and try again.","testerGate.livenessTitle":"Live face not confirmed","testerGate.livenessBody":"The video and the result are kept with this session. You can try again.","testerGate.retry":"Try again","testerGate.continue":"Continue","testerGate.checkUnavailableTitle":"The security check could not run","testerGate.checkUnavailableBody":"This browser or network blocked the security check, so real checks cannot start here. Try again, or open the link in another browser.","sandboxMode.title":"How do you want to test?","sandboxMode.testDataBody":"Nothing real is checked. The results are test values.","sandboxMode.testerTitle":"Real checks (enrolled tester)","sandboxMode.testerBody":"Your face is checked first. Then every step must match your enrollment details.","sandboxMode.noTestersTitle":"No enrolled tester","sandboxMode.noTestersBody":"No tester is enrolled in this organization. Ask an admin to send you a tester enrollment link from the dashboard.","sandboxMode.continueTestData":"Continue with test data","sandboxMode.boundTitle":"Real checks are on for {name}","sandboxMode.summaryTestDataBody":"This identity is made up. It doesn't match the number you typed."},Ye={"consent.human.terms.intro":"Sekyro AI confirme qu'une personne réelle effectue cette étape, pour le compte de l'organisme qui l'a demandée.","consent.human.terms.data":"Sekyro AI recueille une courte capture de votre visage.","consent.human.terms.processing":"La capture est analysée pour confirmer que vous êtes une personne réelle et présente. Elle peut être comparée aux visages déjà vérifiés pour cet organisme.","consent.human.terms.sharing":"L'organisme qui a demandé cette vérification est informé de son résultat.","consent.human.terms.retention":"Vos données sont stockées chiffrées et conservées uniquement pendant la durée exigée par la loi et les paramètres de l'organisme. Pour exercer vos droits en matière de protection des données, contactez l'organisme qui a demandé cette vérification.","capture.noCamera.title":"Une caméra est nécessaire","capture.noCamera.body":"Autorisez l'accès à la caméra et réessayez, ou continuez sur un téléphone équipé d'une caméra.","capture.noCamera.continue":"Continuer sans caméra","capture.noCamera.deniedTitle":"Autorisez la caméra","capture.noCamera.deniedBody":"Votre navigateur a bloqué la caméra pour cette page. Autorisez-la dans les paramètres du site, puis réessayez.","capture.noCamera.stepsChrome":"Dans Chrome, touchez l'icône à gauche de l'adresse, puis Autorisations, et activez Caméra.","capture.noCamera.stepsSamsung":"Dans Samsung Internet, ouvrez le menu, puis Paramètres, Sites et téléchargements, Autorisations des sites, Appareil photo, et autorisez ce site.","capture.noCamera.stepsSafari":"Dans Safari, touchez le bouton aA de la barre d'adresse, puis Réglages du site web, et réglez Caméra sur Autoriser.","capture.noCamera.stepsDesktop":"Cliquez sur l'icône à gauche de l'adresse et autorisez la caméra pour ce site.","capture.noCamera.stepsSystem":"Toujours bloquée ? Dans les réglages du téléphone, vérifiez que votre navigateur peut utiliser la caméra.","capture.noCamera.stillBlocked":"La caméra est toujours bloquée. Suivez les étapes ci-dessus, puis réessayez.","capture.noCamera.inAppTitle":"Ouvrez cette page dans votre navigateur","capture.noCamera.inAppBody":"Le navigateur de cette application ne peut pas utiliser votre caméra. Ouvrez la page dans Chrome ou Safari pour continuer.","choice.title":"Comment continuer ?","choice.description":"Choisissez une option.","choice.switch":"Utiliser une autre option","choice.changeMethod":"Changer de méthode","contact.title":"Où envoyer votre code ?","contact.description":"Choisissez une option.","contact.phone":"Par téléphone (WhatsApp ou SMS)","contact.email":"Par e-mail","contact.switch":"Utiliser une autre option","summary.title":"Vérifiez vos informations","summary.description":"Assurez-vous qu'il s'agit bien de vous avant la photo en direct.","summary.fullName":"Nom complet","summary.birthDate":"Date de naissance","summary.nationality":"Nationalité","summary.documentType":"Document","summary.documentNumber":"Numéro du document","summary.nni":"Numéro national d'identification mauritanien (NNI)","summary.id_number":"Numéro d'identité","summary.expiryDate":"Date d'expiration","summary.portraitAlt":"Photo enregistrée","summary.source.registry":"Issu de l'état civil","summary.source.document":"Lu sur votre document","summary.source.chip":"Lu sur la puce de votre document","summary.name":"Nom","summary.birthYear":"Année de naissance","summary.confirm":"Confirmer et continuer","summary.retakeDocument":"Scanner à nouveau mon document","summary.retakeNationalNumber":"Saisir à nouveau mon numéro","summary.noRetake":"Vous ne pouvez plus réessayer. Contactez {org} si ces informations sont incorrectes","capture.tipsIcao.title":"Pour votre photo d'identité :","capture.tipsIcao.glasses":"Retirez vos lunettes","capture.tipsIcao.headwear":"Retirez chapeau et casquette. Un couvre-chef religieux est accepté si tout le visage est visible","capture.tipsIcao.expression":"Gardez une expression neutre, la bouche fermée","capture.tipsIcao.faceCamera":"Regardez la caméra bien en face, les yeux ouverts","capture.tipsIcao.background":"Placez-vous devant un fond uni et clair","capture.tipsIcao.lighting":"Éclairez votre visage de façon uniforme : sans ombres","capture.tipsIcao.hair":"Dégagez vos cheveux du visage et des yeux","capture.tipsIcao.summary":"Placez-vous devant un mur uni et clair, le visage éclairé de façon uniforme. Retirez vos lunettes et tout chapeau. Dégagez vos cheveux du visage, regardez la caméra bien en face, les yeux ouverts, gardez une expression neutre, la bouche fermée, et ne bougez plus.","portrait.retakeOnly":"Votre vérification en direct est validée. Seule la photo est à refaire","portrait.keepCamera":"Restez face à la caméra","handoff.description":"Scannez avec votre téléphone pour continuer","handoff.qrAlt":"Code QR qui ouvre cette vérification sur votre téléphone","handoff.copyLink":"Copier le lien","handoff.copyFailed":"Nous n'avons pas pu copier le lien. Copiez plutôt l'adresse de cette page depuis votre navigateur","handoff.waiting":"Cette page avancera d’elle-même une fois l’étape terminée sur votre téléphone","inApp.title":"Ouvrez dans le 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","needsApp.capture.title":"Continuez dans l’application","needsApp.capture.description":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org}.","needsApp.capture.descriptionSekyro":"{org} prend les photos de cette vérification dans une application mobile. Ouvrez-la dans l’application de {org} ou dans l’application Sekyro AI.","needsApp.capture.descriptionNoOrg":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application que l’on vous a indiquée.","needsApp.capture.descriptionNoOrgSekyro":"Cette vérification prend les photos dans une application mobile. Ouvrez-la dans l’application Sekyro AI.","needsApp.capture.openSekyro":"Ouvrir dans l’application Sekyro AI","needsApp.capture.getApp":"Obtenir l’application Sekyro AI","needsApp.capture.appStore":"App Store","needsApp.capture.googlePlay":"Google Play","needsApp.capture.scan":"Scannez avec votre téléphone pour ouvrir cette vérification dans l’application.","needsApp.capture.qrAlt":"QR code qui ouvre cette vérification dans l’application","needsApp.capture.waiting":"Cette page avancera d’elle-même une fois l’étape terminée dans l’application","inApp.openBrowser":"Ouvrir dans le navigateur","testerGate.title":"Lancer de vrais contrôles en tant que testeur","testerGate.body":"Regardez la caméra. Votre visage doit correspondre à l'un des testeurs inscrits de l'organisation. Ensuite, la session lance de vrais contrôles.","testerGate.notice":"Votre visage est comparé à ceux des testeurs inscrits de l'organisation. La vidéo et le résultat sont conservés avec cette session, et l'organisation peut les voir.","testerGate.start":"Commencer","testerGate.checking":"Vérification de votre visage","testerGate.boundTitle":"Les vrais contrôles sont activés","testerGate.boundBody":"Vous avez été reconnu comme testeur inscrit. Les étapes suivantes lancent de vrais contrôles.","testerGate.missTitle":"Aucun testeur inscrit ne correspond","testerGate.missBody":"La vidéo et le résultat sont conservés avec cette session. Vous pouvez réessayer.","testerGate.retakeTitle":"Nous n'avons pas pu vérifier votre visage clairement","testerGate.retakeBody":"Cet essai ne compte pas. La vidéo est conservée avec cette session. Placez-vous face à la caméra, dans un endroit bien éclairé, restez immobile et réessayez.","testerGate.livenessTitle":"Visage en direct non confirmé","testerGate.livenessBody":"La vidéo et le résultat sont conservés avec cette session. Vous pouvez réessayer.","testerGate.retry":"Réessayer","testerGate.continue":"Continuer","testerGate.checkUnavailableTitle":"Le contrôle de sécurité n’a pas pu s’exécuter","testerGate.checkUnavailableBody":"Ce navigateur ou ce réseau a bloqué le contrôle de sécurité, les vérifications réelles ne peuvent donc pas démarrer ici. Réessayez ou ouvrez le lien dans un autre navigateur.","sandboxMode.title":"Comment voulez-vous tester ?","sandboxMode.testDataBody":"Rien de réel n'est contrôlé. Les résultats sont des valeurs de test.","sandboxMode.testerTitle":"Vrais contrôles (testeur inscrit)","sandboxMode.testerBody":"Votre visage est vérifié d'abord. Ensuite chaque étape doit correspondre à vos données d'inscription.","sandboxMode.noTestersTitle":"Aucun testeur inscrit","sandboxMode.noTestersBody":"Aucun testeur n'est inscrit dans cette organisation. Demandez à un administrateur de vous envoyer un lien d'inscription testeur depuis le tableau de bord.","sandboxMode.continueTestData":"Continuer avec des données de test","sandboxMode.boundTitle":"Vrais contrôles activés pour {name}","sandboxMode.summaryTestDataBody":"Cette identité est fictive. Elle ne correspond pas au numéro saisi."},Te={M:{perBlock:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26],blocks:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16],formatBits:0},H:{perBlock:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28],blocks:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25],formatBits:2}},xe=20;function Se(e){let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}y(Se,"Pe");h(Se,"rawDataModules");function X(e,t){let{perBlock:n,blocks:a}=Te[t],o=n[e-1],c=a[e-1],l=Math.floor(Se(e)/8),s=c-l%c,i=Math.floor(l/c)-o;return[o,s===c?[[c,i]]:[[s,i],[c-s,i+1]]]}y(X,"Ne");h(X,"blockLayout");var K=h((e,t)=>X(e,t)[1].reduce((n,[a,o])=>n+a*o,0),"dataCapacity");function U(e,t){let n=0;for(let a=7;a>=0;a-=1)n=n<<1^(n>>>7)*285,n^=(t>>>a&1)*e;return n&255}y(U,"X");h(U,"gfMul");function Ne(e){let t=new Array(e).fill(0);t[e-1]=1;let n=1;for(let a=0;a<e;a+=1){for(let o=0;o<e;o+=1)t[o]=U(t[o],n),o+1<e&&(t[o]=t[o]^t[o+1]);n=U(n,2)}return t}y(Ne,"Re");h(Ne,"rsDivisor");function Ie(e,t){let n=t.map(()=>0);for(let a of e){let o=a^n.shift();n.push(0),t.forEach((c,l)=>{n[l]=n[l]^U(c,o)})}return n}y(Ie,"Ve");h(Ie,"rsRemainder");function Me(e,t,n){let a=[],o=h((d,u)=>{for(let b=u-1;b>=0;b-=1)a.push(d>>>b&1)},"put");o(4,4),o(e.length,t<10?8:16);for(let d of e)o(d,8);let c=K(t,n)*8;o(0,Math.min(4,c-a.length)),o(0,(8-a.length%8)%8);let l=[];for(let d=0;d<a.length;d+=8)l.push(a.slice(d,d+8).reduce((u,b)=>u<<1|b,0));for(let d=236;l.length<K(t,n);d^=253)l.push(d);let[s,i]=X(t,n),p=Ne(s),m=[],f=0;for(let[d,u]of i)for(let b=0;b<d;b+=1){let A=l.slice(f,f+u);f+=u,m.push({data:A,ec:Ie(A,p)})}let g=[],v=Math.max(...m.map(d=>d.data.length));for(let d=0;d<v;d+=1)for(let u of m)d<u.data.length&&g.push(u.data[d]);for(let d=0;d<s;d+=1)for(let u of m)g.push(u.ec[d]);return g}y(Me,"Le");h(Me,"codewords");function J(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Math.ceil((e*4+4)/(t*2-2))*2,a=[6];for(let o=e*4+10;a.length<t;o-=n)a.splice(1,0,o);return a}y(J,"Ie");h(J,"alignmentPositions");var We=[(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],G,_e=(G=class{constructor(t){this.size=t,this.dark=new Array(t*t).fill(!1),this.fixed=new Array(t*t).fill(!1)}set(t,n,a){this.dark[t*this.size+n]=a,this.fixed[t*this.size+n]=!0}get(t,n){return this.dark[t*this.size+n]===!0}},y(G,"re"),G);h(_e,"Grid");var je=_e;function ze(e,t){let n=e.size;for(let c=0;c<n;c+=1)e.set(6,c,c%2===0),e.set(c,6,c%2===0);for(let[c,l]of[[3,3],[3,n-4],[n-4,3]])for(let s=-4;s<=4;s+=1)for(let i=-4;i<=4;i+=1){let p=c+s,m=l+i;if(p<0||p>=n||m<0||m>=n)continue;let f=Math.max(Math.abs(s),Math.abs(i));e.set(p,m,f!==2&&f!==4)}let a=J(t),o=a.length-1;if(a.forEach((c,l)=>a.forEach((s,i)=>{if(!(l===0&&i===0||l===0&&i===o||l===o&&i===0))for(let p=-2;p<=2;p+=1)for(let m=-2;m<=2;m+=1)e.set(c+p,s+m,Math.max(Math.abs(p),Math.abs(m))!==1)})),ee(e,0),t>=7){let c=t;for(let s=0;s<12;s+=1)c=c<<1^(c>>>11)*7973;let l=t<<12|c;for(let s=0;s<18;s+=1){let i=(l>>>s&1)===1,p=n-11+s%3,m=Math.floor(s/3);e.set(p,m,i),e.set(m,p,i)}}}y(ze,"De");h(ze,"drawFunctionPatterns");function ee(e,t,n=0){let a=e.size,o=n<<3|t,c=o;for(let i=0;i<10;i+=1)c=c<<1^(c>>>9)*1335;let l=(o<<10|c)^21522,s=h(i=>(l>>>i&1)===1,"bit");for(let i=0;i<=5;i+=1)e.set(i,8,s(i));e.set(7,8,s(6)),e.set(8,8,s(7)),e.set(8,7,s(8));for(let i=9;i<15;i+=1)e.set(8,14-i,s(i));for(let i=0;i<8;i+=1)e.set(8,a-1-i,s(i));for(let i=8;i<15;i+=1)e.set(a-15+i,8,s(i));e.set(a-8,8,!0)}y(ee,"Te");h(ee,"drawFormat");function Ee(e,t){let n=e.size,a=0;for(let o=n-1;o>=1;o-=2){o===6&&(o=5);for(let c=0;c<n;c+=1)for(let l=0;l<2;l+=1){let s=o-l,i=(o+1&2)===0?n-1-c:c;e.fixed[i*n+s]!==!0&&(a<t.length*8&&(e.dark[i*n+s]=(t[a>>>3]>>>7-(a&7)&1)===1),a+=1)}}}y(Ee,"Fe");h(Ee,"placeData");function Ge(e,t){let n=We[t];for(let a=0;a<e.size;a+=1)for(let o=0;o<e.size;o+=1)e.fixed[a*e.size+o]!==!0&&n(a,o)&&(e.dark[a*e.size+o]=!e.dark[a*e.size+o])}y(Ge,"He");h(Ge,"applyMask");function Re(e){let t=e.size,n=0,a=h(c=>{let l=1;for(let s=1;s<=t;s+=1)s<t&&c(s)===c(s-1)?l+=1:(l>=5&&(n+=3+(l-5)),l=1);for(let s=0;s+10<t;s+=1){let i=[!0,!1,!0,!0,!0,!1,!0];if(!(i.every((f,g)=>c(s+g)===f)||i.every((f,g)=>c(s+4+g)===f)))continue;let p=[0,1,2,3].every(f=>!c(s+f))&&i.every((f,g)=>c(s+4+g)===f),m=i.every((f,g)=>c(s+g)===f)&&[7,8,9,10].every(f=>!c(s+f));p&&(n+=40),m&&(n+=40)}},"line");for(let c=0;c<t;c+=1)a(l=>e.get(c,l));for(let c=0;c<t;c+=1)a(l=>e.get(l,c));for(let c=0;c+1<t;c+=1)for(let l=0;l+1<t;l+=1){let s=e.get(c,l);s===e.get(c,l+1)&&s===e.get(c+1,l)&&s===e.get(c+1,l+1)&&(n+=3)}let o=e.dark.filter(Boolean).length;return n+=Math.floor(Math.abs(o*20-t*t*10)/(t*t))*10,n}y(Re,"Ee");h(Re,"penalty");function te(e,t={}){let n=t.ecl??"M",a=new TextEncoder().encode(e),o=1;for(;o<=xe&&!(4+(o<10?8:16)+a.length*8<=K(o,n)*8);o+=1);if(o>xe)throw new RangeError("text too long for a QR code");let c=Me(a,o,n),l=h(p=>{let m=new je(o*4+17);return ze(m,o),Ee(m,c),Ge(m,p),ee(m,p,Te[n].formatBits),m},"build"),s=null;if(t.mask!==void 0)s=l(t.mask);else{let p=Number.POSITIVE_INFINITY;for(let m=0;m<8;m+=1){let f=l(m),g=Re(f);g<p&&(p=g,s=f)}}let i=s;return{size:i.size,get:h((p,m)=>i.get(p,m),"get")}}y(te,"ee");h(te,"encodeQr");var De={viewBox:"0 0 100 100",d:"M22.37,0H77.63A22.37,22.37 0 0 1 100,22.37V77.63A22.37,22.37 0 0 1 77.63,100H22.37A22.37,22.37 0 0 1 0,77.63V22.37A22.37,22.37 0 0 1 22.37,0ZM48.067,21H38.308A17.308,17.308 0 0 0 21,38.308V42.543A19.886,19.886 0 0 0 40.886,62.429H60.219V57.641A4.419,4.419 0 0 0 55.8,53.222H43.463A11.416,11.416 0 0 1 32.048,41.806V38.308A8.102,8.102 0 0 1 40.149,30.206H43.648A4.419,4.419 0 0 0 48.067,25.787ZM38.676,79H59.114A19.886,19.886 0 0 0 79,59.114V57.457A19.886,19.886 0 0 0 59.114,37.571H38.676V42.359A4.419,4.419 0 0 0 43.095,46.778H56.537A11.416,11.416 0 0 1 67.952,58.194V58.378A11.416,11.416 0 0 1 56.537,69.794H43.095A4.419,4.419 0 0 0 38.676,74.213ZM51.933,21H79V37.571H69.794V30.206H51.933ZM21,71.543A7.457,7.457 0 1 0 35.914,71.543A7.457,7.457 0 1 0 21,71.543Z"},P=.42,Qe=.2,C=h(e=>{let t=Math.round(e*1e3)/1e3;return String(t===0?0:t)},"num");function M(e,t,n,a){let o=`A${C(a)} ${C(a)} 0 0 1 `;return`M${C(e+a)} ${C(t)}H${C(e+n-a)}${o}${C(e+n)} ${C(t+a)}V${C(t+n-a)}${o}${C(e+n-a)} ${C(t+n)}H${C(e+a)}${o}${C(e)} ${C(t+n-a)}V${C(t+a)}${o}${C(e+a)} ${C(t)}Z`}y(M,"_");h(M,"roundedSquare");function Le(e){let t=(e-17)/4,n=J(t),a=n.length-1,o=[];return n.forEach((c,l)=>n.forEach((s,i)=>{l===0&&i===0||l===0&&i===a||l===a&&i===0||o.push([c,s])})),o}y(Le,"qe");h(Le,"alignmentCentres");function ae(e,{quiet:t=4,logo:n=!1}={}){let a=e.size,o=h((d,u)=>d<7&&u<7||d<7&&u>=a-7||d>=a-7&&u<7,"isFinder"),c=Math.floor(a*Qe),l=n?c%2===0?c-1:c:0,s=(a-l)/2,i=h((d,u)=>l>0&&d>=s&&d<s+l&&u>=s&&u<s+l,"inZone"),p=Le(a).filter(([d,u])=>!i(d,u)),m=h((d,u)=>p.some(([b,A])=>Math.abs(d-b)<=2&&Math.abs(u-A)<=2),"isAlign"),f=`a${C(P)} ${C(P)} 0 1 0 `,g="";for(let d=0;d<a;d+=1)for(let u=0;u<a;u+=1)!e.get(d,u)||o(d,u)||m(d,u)||i(d,u)||(g+=`M${C(u+t+.5-P)} ${C(d+t+.5)}${f}${C(2*P)} 0${f}${C(-2*P)} 0Z`);let v="";for(let[d,u]of[[0,0],[0,a-7],[a-7,0]]){let b=u+t,A=d+t;v+=M(b,A,7,1.6)+M(b+1,A+1,5,.6)+M(b+2,A+2,3,.6)}for(let[d,u]of p){let b=u-2+t,A=d-2+t;v+=M(b,A,5,1.2)+M(b+1,A+1,3,.5)+M(b+2,A+2,1,.5)}return{size:a+t*2,dots:g,finders:v,logo:l>0?{x:s+t+.5,y:s+t+.5,size:l-1}:null}}y(ae,"oe");h(ae,"styledQr");function re(e){let t=Math.round(e.size/100*1e5)/1e5;return`translate(${C(e.x)} ${C(e.y)}) scale(${t})`}y(re,"ne");h(re,"qrLogoTransform");var Ze={en:$,fr:Ye,ar:Fe,es:$,pt:$,de:$},Ke={en:O,fr:Ce,ar:Ae,es:O,pt:O,de:O};function x(e){let t=e.strings;return(n,a)=>j(t[n]??Ze[e.locale][n]??"",a)}y(x,"A");h(x,"flowT");function oe(e,t){let n=x(t);return e.flatMap(a=>{let o=a.service==="phone_otp"?n("contact.phone"):a.service==="email_otp"?n("contact.email"):Q(a,t),c=ge[a.service];return o===null?[]:[{id:a.id,label:o,...c!==void 0?{glyph:(0,r.jsx)(z,{name:c})}:{}}]})}y(oe,"ze");h(oe,"labelled");function ne({step:e,i18n:t,onError:n}){let a=x(t),{busy:o,error:c,run:l}=E(t,n),s=e.kind==="contact_choice";return(0,r.jsx)(H,{title:a(s?"contact.title":"choice.title"),description:a(s?"contact.description":"choice.description"),options:oe(e.choice.options,t),busy:o,error:c,focus:!0,testId:s?"sekyro-contact-choice":"sekyro-choice",onChoose:y(i=>l(()=>e.choose(i)),"onChoose")})}y(ne,"Be");h(ne,"PlanChoiceView");var Ot=ne,Pt=ne;function Xe({step:e,i18n:t,onError:n,onOpen:a}){let o=x(t),{busy:c,error:l,run:s}=E(t,n),i=e,p=e.context.switchable,m=p===void 0?[]:p.options.filter(A=>A.id!==p.current),f=i.kind==="registry"&&(i.reason==="nni_not_found"||i.reason==="registry_record_not_found")&&i.canUseDocument||i.kind==="eid"&&i.reason?.startsWith("eid_")&&i.canUseCamera;if(p===void 0||m.length===0||i.chooseOption===void 0||f)return null;let g=p.kind==="identity_method",v=!g&&m.length===1?m[0]:void 0,d=v!==void 0&&(v.service==="phone_otp"||v.service==="email_otp"),u=v===void 0?void 0:d&&i.canSwitch&&i.switchTo!==void 0?()=>i.switchTo.call(e):()=>i.chooseOption.call(e,v.id),b=g?o("choice.changeMethod"):v===void 0?o("choice.switch"):d?o("contact.switch"):Q(v,t);return b===null?null:(0,r.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[l!==null?(0,r.jsx)(S,{tone:"danger",children:(0,r.jsx)("span",{children:l})}):null,(0,r.jsx)(w,{kind:"secondary",disabled:c,"aria-busy":c||void 0,onClick:y(()=>u===void 0?a():s(u),"onClick"),"data-testid":d?"sekyro-contact-switch":g?"sekyro-change-method":"sekyro-lane-switch",children:b})]})}y(Xe,"Rt");h(Xe,"LaneSwitch");function Je({step:e,i18n:t,onError:n,onClose:a}){let o=x(t),{busy:c,error:l,run:s}=E(t,n),i=e.context.switchable,p=e.chooseOption,m=i===void 0?[]:oe(i.options,t),f=m.length>1;if((0,k.useEffect)(()=>{f||a()},[f,a]),i===void 0||p===void 0||!f)return null;let[g,v]=i.kind==="identity_method"?[t.t("method.heading"),t.t("method.lead")]:i.kind==="contact"?[o("contact.title"),o("contact.description")]:[o("choice.title"),o("choice.description")];return(0,r.jsx)(H,{title:g,description:v,options:m,...i.current!==null?{marked:i.current}:{},busy:c,error:l,focus:!0,testId:"sekyro-lane-choice",onChoose:y(d=>d===i.current?a():s(()=>p.call(e,d)),"onChoose")})}y(Je,"Vt");h(Je,"LaneChoiceView");var et=[["fullName","summary.fullName",!1],["birthDate","summary.birthDate",!0],["birthYear","summary.birthYear",!0],["nationality","summary.nationality",!0],["documentType","summary.documentType",!1],["documentNumberMasked","summary.documentNumber",!0],["idNumberMasked","summary.id_number",!0],["expiryDate","summary.expiryDate",!0]];function Be(e){let[t,n]=(0,k.useState)(null);return(0,k.useEffect)(()=>{if(!e.portraitAvailable)return;let a=!0,o=null;return e.portrait().then(c=>{!a||c===null||!c.type.startsWith("image/")||typeof URL.createObjectURL!="function"||(o=URL.createObjectURL(c),n(o))}),()=>{a=!1,o!==null&&URL.revokeObjectURL(o)}},[e.portraitAvailable]),t}y(Be,"We");h(Be,"usePortraitUrl");var tt=h(e=>/^\d{4}-\d{2}-\d{2}$/.test(e),"isoDate");function Oe(e,t){try{return new Intl.DateTimeFormat(t==="ar"?"ar-u-nu-latn":t,{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`))}catch{return e}}y(Oe,"je");h(Oe,"formatDate");function at({step:e,i18n:t,onError:n}){let a=x(t),o=(0,k.useId)(),c=L(),l=Be(e),{busy:s,error:i,run:p}=E(t,n),m=e.context.orgName,f=["registry","document","chip"].find(A=>A===e.source),g=e.summaryKind==="partial",v=e.fullNameAr,d=t.locale==="ar"?v??e.fullName:e.fullName??v,u=h(A=>t.strings[`doc.type.${A}`]??A,"documentLabel"),b=e.context.sandbox&&(e.context.sandboxRun?.mode==="simulated"||e.context.sandboxRun===void 0&&e.context.simulation!==void 0);return(0,r.jsxs)("section",{className:"sekyro-step","aria-labelledby":o,"data-testid":"sekyro-identity-summary",children:[(0,r.jsxs)("div",{className:"sekyro-heading",children:[(0,r.jsx)("h2",{id:o,ref:c,tabIndex:-1,className:"sekyro-text-body",children:a("summary.title")}),(0,r.jsx)("p",{className:"sekyro-text-muted",children:a("summary.description")})]}),f!==void 0?(0,r.jsx)("p",{className:"sekyro-summary__source",children:a(`summary.source.${f}`)}):null,b?(0,r.jsxs)(S,{tone:"warning",children:[(0,r.jsx)("strong",{children:t.t("sandboxMode.testData")}),(0,r.jsx)("span",{children:a("sandboxMode.summaryTestDataBody")})]}):null,(0,r.jsxs)("div",{className:"sekyro-summary",children:[l!==null?(0,r.jsx)("img",{className:"sekyro-summary__portrait",src:l,alt:a("summary.portraitAlt")}):null,(0,r.jsx)("dl",{className:"sekyro-summary__list",children:et.map(([A,I,_])=>{let T=A==="idNumberMasked"?e.idNumberMasked??e.nniMasked:A==="fullName"?d:e[A];return T===void 0?null:(0,r.jsxs)("div",{className:"sekyro-summary__row",children:[(0,r.jsx)("dt",{className:"sekyro-text-muted",children:a(A==="fullName"&&g?"summary.name":I)}),(0,r.jsx)("dd",{children:tt(T)?Oe(T,t.locale):_||T===v?(0,r.jsx)("bdi",{dir:_?"ltr":"rtl",children:T}):A==="documentType"?u(T):T})]},A)})})]}),i!==null?(0,r.jsx)(S,{tone:"danger",children:(0,r.jsx)("span",{children:i})}):null,e.retakeAvailable?null:(0,r.jsx)("p",{className:"sekyro-text-muted",children:a("summary.noRetake",{org:m})}),(0,r.jsxs)(B,{children:[(0,r.jsx)(w,{full:!0,disabled:s,"aria-busy":s||void 0,onClick:y(()=>p(()=>e.confirm()),"onClick"),children:a("summary.confirm")}),e.retakeAvailable?(0,r.jsx)(w,{kind:"secondary",full:!0,disabled:s,onClick:y(()=>p(()=>e.retake()),"onClick"),children:a(e.retakeTarget==="national_number"?"summary.retakeNationalNumber":"summary.retakeDocument")}):null]})]})}y(at,"Lt");h(at,"IdentitySummaryView");var rt=["glasses","headwear","expression","faceCamera","background","lighting","hair"];function ot({step:e,i18n:t,livenessProps:n,sekyroIntro:a}){let o=x(t),[c,l]=(0,k.useState)(null);(0,k.useEffect)(()=>e.onLivePhoto(u=>{let b=u.update?.coach;l(u.holding||b===void 0?null:t.t(`portrait.coach.${b}`))}),[e,t]);let s=e.instructions==="icao",i=(0,k.useMemo)(()=>ke(e),[e]),p=e.icao?.profile==="selfie",m=(0,k.useMemo)(()=>s?rt.filter(u=>!p||u!=="background").map(u=>({id:u,text:o(`capture.tipsIcao.${u}`)})):void 0,[s,p,t]),f=(0,k.useMemo)(()=>s&&!p?{...n.strings,"capture.tips.title":o("capture.tipsIcao.title")}:n.strings,[s,p,n.strings,t]),g=p?void 0:o("capture.tipsIcao.title"),v=(0,k.useMemo)(()=>a===!0&&m!==void 0?{...n.slots,intro:h((u,b)=>(0,r.jsx)(ve,{start:u,context:b,tips:m,...g!==void 0?{tipsTitle:g}:{},...i!==void 0?{retry:i}:{}}),"intro")}:n.slots,[a,m,g,i,n.slots,t]),d=p?`${(m??[]).map(u=>u.text).join(". ")}.`:o("capture.tipsIcao.summary");return(0,r.jsx)(W,{...n,...v!==void 0?{slots:v}:{},...f!==void 0?{strings:f}:{},...m!==void 0?{tips:m,tipsSummary:d}:{},coach:c})}y(ot,"Ot");h(ot,"LivePhotoLiveness");function nt({i18n:e}){let t=x(e);return(0,r.jsxs)(S,{tone:"info",children:[(0,r.jsx)("strong",{children:t("portrait.retakeOnly")}),(0,r.jsx)("span",{children:t("portrait.keepCamera")})]})}y(nt,"Dt");h(nt,"PortraitRetakeNotice");function st({i18n:e,provider:t}){let n=e.strings,a=h(o=>n[o]??Ke[e.locale][o]??"","pick");return(0,r.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-eid-continue",children:t?j(a("eid.continueHint"),{provider:t}):a("eid.continueHintGeneric")})}y(st,"Ft");h(st,"EidContinueHint");async function Pe(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}y(Pe,"Je");h(Pe,"copy");function F({url:e,i18n:t,label:n,primary:a}){let o=x(t),[c,l]=(0,k.useState)("idle"),s=n.startsWith("inApp.")?"inApp":"handoff";return(0,r.jsxs)("div",{className:"sekyro-stack sekyro-stack--1",children:[(0,r.jsx)(w,{kind:a?"primary":"secondary",full:!0,onClick:y(()=>{Pe(e).then(i=>l(i?"copied":"failed"))},"onClick"),children:o(n)}),(0,r.jsx)("p",{role:"status","aria-live":"polite",className:"sekyro-text-muted",children:c==="idle"?"":o(`${s}.${c==="copied"?"copied":"copyFailed"}`)})]})}y(F,"ie");h(F,"CopyLink");function se({url:e,i18n:t,refresh:n,footer:a,lead:o}){let c=x(t),l=(0,k.useId)(),s=(0,k.useMemo)(()=>{try{return ae(te(e,{ecl:"H"}),{logo:!0})}catch{return null}},[e]),i=(0,k.useRef)(n);i.current=n;let p=L();return(0,k.useEffect)(()=>{let m=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&i.current?.().catch(()=>{})},5e3);return()=>clearInterval(m)},[]),(0,r.jsxs)("section",{className:"sekyro-step sekyro-handoff","aria-labelledby":l,"data-testid":"sekyro-handoff",children:[(0,r.jsxs)("div",{className:"sekyro-heading",children:[(0,r.jsx)("h2",{id:l,ref:p,tabIndex:-1,className:"sekyro-text-body",children:t.t("handoff.title")}),o!==void 0?(0,r.jsx)("p",{children:o}):null,(0,r.jsx)("p",{className:"sekyro-text-muted",children:c("handoff.description")})]}),s!==null?(0,r.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${s.size} ${s.size}`,role:"img","aria-label":c("handoff.qrAlt"),children:[(0,r.jsx)("rect",{width:s.size,height:s.size,className:"sekyro-qr__bg"}),(0,r.jsx)("path",{d:s.dots,className:"sekyro-qr__fg"}),(0,r.jsx)("path",{d:s.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),s.logo!==null?(0,r.jsx)("path",{d:De.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:re(s.logo),"data-qr-mark":""}):null]}):null,(0,r.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,r.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),c("handoff.waiting")]}),(0,r.jsxs)(B,{children:[(0,r.jsx)(F,{url:e,i18n:t,label:"handoff.copyLink"}),a??null]})]})}y(se,"Ge");h(se,"HandoffView");var we={appStore:"https://apps.apple.com/app/id6826858033",googlePlay:"https://play.google.com/store/apps/details?id=ai.sekyro.app"};function it({i18n:e,org:t,nativeApp:n,fallbackUrl:a,refresh:o,footer:c}){let l=x(e),s=(0,k.useMemo)(()=>!D(),[]),i=n.link??a,p=(0,k.useMemo)(()=>{if(!s||i===void 0||i==="")return null;try{return ae(te(i,{ecl:"H"}),{logo:!0})}catch{return null}},[s,i]),m=(0,k.useRef)(o);m.current=o,(0,k.useEffect)(()=>{let b=setInterval(()=>{(typeof document>"u"||document.visibilityState!=="hidden")&&m.current?.().catch(()=>{})},5e3);return()=>clearInterval(b)},[]);let[f,g]=(0,k.useState)(!1),v=h(()=>{o!==void 0&&(g(!0),o().catch(()=>{}).finally(()=>g(!1)))},"again"),d=n.sekyroApp,u=t!==""?l(d?"needsApp.capture.descriptionSekyro":"needsApp.capture.description",{org:t}):l(d?"needsApp.capture.descriptionNoOrgSekyro":"needsApp.capture.descriptionNoOrg");return(0,r.jsxs)(N,{tone:"brand",icon:"smartphone",title:l("needsApp.capture.title"),testId:"sekyro-native-app",actions:(0,r.jsxs)(r.Fragment,{children:[!s&&d&&n.sekyroAppLink!==void 0?(0,r.jsx)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:n.sekyroAppLink,"data-testid":"sekyro-open-sekyro-app",children:l("needsApp.capture.openSekyro")}):null,o!==void 0?(0,r.jsx)(w,{kind:"secondary",full:!0,disabled:f,onClick:v,children:e.t("common.refresh")}):null,c??null]}),children:[(0,r.jsx)("p",{children:u}),p!==null?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("svg",{className:"sekyro-qr",viewBox:`0 0 ${p.size} ${p.size}`,role:"img","aria-label":l("needsApp.capture.qrAlt"),children:[(0,r.jsx)("rect",{width:p.size,height:p.size,className:"sekyro-qr__bg"}),(0,r.jsx)("path",{d:p.dots,className:"sekyro-qr__fg"}),(0,r.jsx)("path",{d:p.finders,className:"sekyro-qr__fg",fillRule:"evenodd"}),p.logo!==null?(0,r.jsx)("path",{d:De.d,className:"sekyro-qr__fg",fillRule:"evenodd",transform:re(p.logo),"data-qr-mark":""}):null]}),(0,r.jsx)("p",{className:"sekyro-text-muted",children:l("needsApp.capture.scan")})]}):null,d?(0,r.jsxs)("p",{className:"sekyro-text-muted","data-testid":"sekyro-app-stores",children:[l("needsApp.capture.getApp")," ",(0,r.jsx)("a",{href:we.appStore,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.appStore")})," · ",(0,r.jsx)("a",{href:we.googlePlay,target:"_blank",rel:"noopener noreferrer",children:l("needsApp.capture.googlePlay")})]}):null,(0,r.jsxs)("p",{className:"sekyro-handoff__waiting",role:"status",children:[(0,r.jsx)("span",{className:"sekyro-handoff__pulse","aria-hidden":"true"}),l("needsApp.capture.waiting")]})]})}y(it,"Ht");h(it,"NativeAppView");var ct=["intro","data","processing","sharing","retention"];function lt({i18n:e}){let t=x(e);return(0,r.jsx)(r.Fragment,{children:ct.map(n=>(0,r.jsx)("p",{children:t(`consent.human.terms.${n}`)},n))})}y(lt,"Et");h(lt,"HumanConsentTerms");function dt({url:e,i18n:t}){return(0,k.useMemo)(()=>!D(),[])?(0,r.jsx)(se,{url:e,i18n:t}):null}y(dt,"$t");h(dt,"DesktopHandoffView");function Ve(e){let t=e??(typeof navigator>"u"?"":String(navigator.userAgent??""));if(be(t))return"in_app";if(/SamsungBrowser/i.test(t))return"samsung";let n=typeof navigator<"u"&&/Macintosh/.test(t)&&(navigator.maxTouchPoints??0)>1;return/iPhone|iPad|iPod/i.test(t)||n?"ios":/Android/i.test(t)?"chrome_android":"desktop"}y(Ve,"tt");h(Ve,"cameraHelpPlatform");var ut={samsung:"capture.noCamera.stepsSamsung",chrome_android:"capture.noCamera.stepsChrome",ios:"capture.noCamera.stepsSafari",desktop:"capture.noCamera.stepsDesktop"};function pt({i18n:e,cause:t,onRetry:n,onContinue:a,handoffUrl:o,repeated:c=!1,platform:l}){let s=x(e),i=(0,k.useId)(),p=L(),[m,f]=(0,k.useState)("idle"),g=(0,k.useMemo)(()=>o!==void 0&&!D(),[o]),v=t==="denied",d=(0,k.useMemo)(()=>l??Ve(),[l]),u=v&&d==="in_app",[b,A]=(0,k.useState)(!1),I=(0,k.useRef)(!1),_=(0,k.useRef)(!0);(0,k.useEffect)(()=>(_.current=!0,()=>{_.current=!1}),[]);let T=h(()=>{if(!v){n();return}I.current||(I.current=!0,he().catch(()=>"unknown").then(V=>{I.current=!1,_.current&&(V==="denied"&&!b&&!c?A(!0):n())}))},"retry"),He=h(()=>{a!==void 0&&(f("busy"),a(t).then(()=>f("idle"),V=>f(V instanceof q&&V.code==="check_out_of_order"?"idle":"failed")))},"end"),R=typeof window>"u"?"":window.location.href.split("#")[0]??"",Y=(0,k.useMemo)(()=>u&&R!==""?Z(R):null,[u,R]),ie=(0,r.jsxs)(r.Fragment,{children:[u&&Y!==null?(0,r.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:Y,"data-testid":"sekyro-open-browser",children:[(0,r.jsx)(z,{name:"external"}),s("inApp.openBrowser")]}):null,u&&R!==""?(0,r.jsx)(F,{url:R,i18n:e,label:"inApp.copyLink",primary:Y===null}):null,(0,r.jsx)(w,{full:!0,kind:!u&&(v||a===void 0)?"primary":"secondary",onClick:T,children:e.t("common.retry")}),a!==void 0?(0,r.jsx)(w,{full:!0,kind:v?"secondary":"primary",disabled:m==="busy","aria-busy":m==="busy"||void 0,onClick:He,children:s("capture.noCamera.continue")}):null]}),ce=m==="failed"?(0,r.jsx)(S,{tone:"danger",children:(0,r.jsx)("span",{children:e.t("errors.network_error")})}):null,le=s(u?"capture.noCamera.inAppTitle":v?"capture.noCamera.deniedTitle":"capture.noCamera.title"),de=s(u?"capture.noCamera.inAppBody":v?"capture.noCamera.deniedBody":"capture.noCamera.body"),ue=v&&!u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{"data-testid":"sekyro-camera-steps","data-platform":d,children:s(ut[d])}),d!=="desktop"?(0,r.jsx)("p",{className:"sekyro-text-muted",children:s("capture.noCamera.stepsSystem")}):null]}):null,pe=v&&(b||c)?(0,r.jsx)(S,{tone:"warning",children:(0,r.jsx)("span",{role:"status","data-testid":"sekyro-camera-still-blocked",children:s("capture.noCamera.stillBlocked")})}):null;return g&&o!==void 0?(0,r.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":i,"data-testid":"sekyro-no-camera","data-cause":t,children:[(0,r.jsx)(se,{url:o,i18n:e}),(0,r.jsx)("h2",{id:i,ref:p,tabIndex:-1,className:"sekyro-text-body",children:le}),(0,r.jsx)("p",{className:"sekyro-text-muted",children:de}),ue,pe,ce,(0,r.jsx)("div",{className:"sekyro-stack sekyro-stack--3",children:ie})]}):(0,r.jsxs)(N,{tone:v?"warning":"neutral",icon:"camera",titleId:i,title:le,testId:"sekyro-no-camera",actions:ie,children:[(0,r.jsx)("p",{children:de}),ue,pe,ce]})}y(pt,"qt");h(pt,"NoCameraView");function mt({url:e,i18n:t,onContinue:n}){let a=x(t),o=(0,k.useId)(),c=(0,k.useMemo)(()=>Z(e),[e]);return(0,r.jsx)(N,{tone:"brand",icon:"external",titleId:o,title:a("inApp.title"),testId:"sekyro-in-app",actions:(0,r.jsxs)(r.Fragment,{children:[c!==null?(0,r.jsxs)("a",{className:"sekyro-btn sekyro-btn--primary sekyro-btn--full",href:c,"data-testid":"sekyro-open-browser",children:[(0,r.jsx)(z,{name:"external"}),a("inApp.openBrowser")]}):null,(0,r.jsx)(F,{url:e,i18n:t,label:"inApp.copyLink",primary:c===null}),(0,r.jsx)(w,{kind:"ghost",full:!0,onClick:n,children:a("inApp.continueAnyway")})]}),children:(0,r.jsx)("p",{children:a("inApp.description")})})}y(mt,"Ut");h(mt,"InAppBrowserPrompt");var ht={retake:{title:"testerGate.retakeTitle",body:"testerGate.retakeBody"},liveness:{title:"testerGate.livenessTitle",body:"testerGate.livenessBody"},no_match:{title:"testerGate.missTitle",body:"testerGate.missBody"}};function qe(e){return e instanceof q?e.code==="attestation_invalid":e instanceof Error&&e.name==="AttestationUnavailableError"}y(qe,"rt");h(qe,"isCheckUnavailable");function yt({step:e,i18n:t,verification:n,onError:a}){let o=x(t),c=(0,k.useId)(),l=L(),{busy:s,error:i,run:p}=E(t,a),[m,f]=(0,k.useState)(!1),g=n.chooseSandboxMode,v=h(d=>{if(g!==void 0){if(d==="tester"&&!e.testersAvailable){f(!0);return}p(()=>g.call(n,d).catch(u=>{if(u instanceof q&&u.code==="no_testers")return f(!0);throw u}))}},"pick");return m?(0,r.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":c,"data-testid":"sekyro-sandbox-no-testers",children:[(0,r.jsxs)("div",{className:"sekyro-heading",children:[(0,r.jsx)("h2",{id:c,ref:l,tabIndex:-1,className:"sekyro-text-body",children:o("sandboxMode.noTestersTitle")}),(0,r.jsx)("p",{className:"sekyro-text-muted",children:o("sandboxMode.noTestersBody")})]}),i!==null?(0,r.jsx)(S,{tone:"danger",children:(0,r.jsx)("span",{children:i})}):null,(0,r.jsxs)(B,{children:[(0,r.jsx)(w,{full:!0,disabled:s||g===void 0,"aria-busy":s||void 0,onClick:y(()=>v("simulated"),"onClick"),children:o("sandboxMode.continueTestData")}),(0,r.jsx)(w,{full:!0,kind:"secondary",disabled:s,onClick:y(()=>f(!1),"onClick"),children:t.t("common.back")})]})]}):(0,r.jsx)(H,{title:o("sandboxMode.title"),options:[{id:"simulated",label:t.t("sandboxMode.testData"),sub:o("sandboxMode.testDataBody"),glyph:(0,r.jsx)(z,{name:"info"})},{id:"tester",label:o("sandboxMode.testerTitle"),sub:o("sandboxMode.testerBody"),glyph:(0,r.jsx)(z,{name:"face"})}],busy:s||g===void 0,error:i,focus:!0,testId:"sekyro-sandbox-mode",onChoose:y(d=>v(d==="tester"?"tester":"simulated"),"onChoose")})}y(yt,"Yt");h(yt,"SandboxModeView");function ft({i18n:e,testerName:t,onContinue:n}){let a=x(e);return(0,r.jsx)(N,{tone:"success",icon:"success",title:t!==void 0?a("sandboxMode.boundTitle",{name:t}):a("testerGate.boundTitle"),testId:"sekyro-tester-gate-bound",actions:(0,r.jsx)(w,{full:!0,onClick:n,children:a("testerGate.continue")}),children:(0,r.jsx)("p",{children:a("testerGate.boundBody")})})}y(ft,"Qt");h(ft,"TesterBoundView");function gt({i18n:e,verification:t,attemptsLeft:n,livenessProps:a}){let o=x(e),c=(0,k.useId)(),[l,s]=(0,k.useState)("intro"),[i,p]=(0,k.useState)(null),[m,f]=(0,k.useState)("no_match"),g=t.testerGate,v=o("testerGate.notice"),d=h(b=>{g!==void 0&&(s("checking"),g.call(t,b,{evidenceNotice:v.trim()!==""}).then(({bound:A,missReason:I})=>{A||(f(I??"no_match"),s("miss"))},A=>{if(qe(A)){p(null),s("unavailable");return}p(e.t(fe(A,e.strings))),s("failed")}))},"captured"),u=(0,r.jsx)(w,{full:!0,onClick:y(()=>s("capture"),"onClick"),"data-testid":"sekyro-tester-gate-retry",children:o("testerGate.retry")});if(l==="capture")return(0,r.jsx)(W,{...a,onCaptured:d});if(l==="checking")return(0,r.jsx)(N,{tone:"brand",icon:"face",busy:!0,live:!0,title:o("testerGate.checking"),testId:"sekyro-tester-gate-checking"});if(l==="unavailable")return(0,r.jsx)(N,{tone:"warning",icon:"info",title:o("testerGate.checkUnavailableTitle"),testId:"sekyro-tester-gate-unavailable",actions:u,children:(0,r.jsx)("p",{children:o("testerGate.checkUnavailableBody")})});if(l==="miss"||l==="failed"){let b=ht[m],A=l==="failed"||m==="retake"||n>0;return(0,r.jsx)(N,{tone:"warning",icon:"info",title:o(l==="miss"?b.title:"testerGate.title"),testId:"sekyro-tester-gate-miss",actions:A?u:void 0,children:(0,r.jsx)("p",{children:l==="miss"?o(b.body):i})})}return(0,r.jsxs)("section",{className:"sekyro-stack sekyro-stack--4","aria-labelledby":c,"data-testid":"sekyro-tester-gate",children:[(0,r.jsx)(ye,{id:c,title:o("testerGate.title"),lead:o("testerGate.body")}),(0,r.jsx)("p",{className:"sekyro-text-muted","data-testid":"sekyro-tester-gate-notice",children:v}),(0,r.jsx)(B,{children:(0,r.jsx)(w,{full:!0,onClick:y(()=>s("capture"),"onClick"),disabled:g===void 0,"data-testid":"sekyro-tester-gate-start",children:o("testerGate.start")})})]})}y(gt,"Kt");h(gt,"TesterGateView");export{Ot as ContactChoiceView,dt as DesktopHandoffView,st as EidContinueHint,Pt as GenericChoiceView,se as HandoffView,lt as HumanConsentTerms,at as IdentitySummaryView,mt as InAppBrowserPrompt,Je as LaneChoiceView,Xe as LaneSwitch,ot as LivePhotoLiveness,it as NativeAppView,pt as NoCameraView,nt as PortraitRetakeNotice,yt as SandboxModeView,ft as TesterBoundView,gt as TesterGateView,Ve as cameraHelpPlatform};
@@ -0,0 +1 @@
1
+ "use client";import{a as re,b as be,c as ve,d as ge,e as ke}from"./chunk-4GDGJEJ6.js";import{a as J}from"./chunk-SIBJ56BG.js";import{a as ye}from"./chunk-RVL4N5KZ.js";import{b as Z,c as me}from"./chunk-X6SULJS2.js";import"./chunk-4H47RI64.js";import{K as pe,a as X,b as ee,c as ue,w as fe,y as he}from"./chunk-2HKOE6CN.js";import{E as ce}from"./chunk-LNE2P3TV.js";import"./chunk-W2IBE5PM.js";import"./chunk-GORELL4J.js";import"./chunk-P7K7ELYZ.js";import{a as c}from"./chunk-5QL6W6FW.js";import"./chunk-6MYG4HWP.js";import"./chunk-JS2IXPNL.js";import"./chunk-SLLJX5QK.js";import{a as s,c as U}from"./chunk-4FHWXBOB.js";var S=U(X(),1),E=U(X(),1),f=U(ee(),1);var F=U(X(),1),g=U(ee(),1),l=U(ee(),1);var Oe={"form.title":"بضعة أسئلة","form.lead":"تطلب منك {org} الإجابة عن هذه الأسئلة.","form.optional":"اختياري","form.continue":"متابعة","form.sending":"جارٍ إرسال إجاباتك…","form.yes":"نعم","form.no":"لا","form.chooseAny":"اختر كل ما ينطبق","form.choose":"اختر","form.openLink":"يُفتح في علامة تبويب جديدة","form.consents":"موافقتك","form.remote.other":"أخرى","form.remote.otherField":"إجابتك","form.remote.filter":"ابحث في الخيارات","form.remote.noMatch":"لا يوجد خيار يطابق بحثك","form.date.day":"اليوم","form.date.month":"الشهر","form.date.year":"السنة","form.fields.full_name.label":"الاسم الكامل","form.fields.full_name.help":"اسمك واسم عائلتك كما تكتبهما عادةً","form.fields.birth_date.label":"تاريخ الميلاد","form.fields.email.label":"البريد الإلكتروني","form.fields.phone.label":"رقم الهاتف","form.fields.address.label":"العنوان","form.fields.address.help":"مكان سكنك الحالي","form.fields.country.label":"البلد","form.fields.occupation.label":"المهنة","form.address.line1":"الشارع والرقم","form.address.line2":"تفاصيل إضافية للعنوان","form.address.city":"المدينة","form.address.postcode":"الرمز البريدي","form.address.country":"البلد","form.address.addLine":"أضف سطرًا","form.phoneCountry":"رمز البلد","form.errors.summary":"راجع الإجابات المشار إليها أدناه.","form.errors.required":"أجب عن هذا السؤال للمتابعة","form.errors.choiceRequired":"اختر إجابة للمتابعة","form.errors.consentRequired":"حدّد هذا المربع للمتابعة","form.errors.tooLong":"اختصر إجابتك إلى {max} حرفًا أو أقل","form.errors.tooShort":"أدخل {min} أحرف على الأقل","form.errors.email":"أدخل عنوان بريد إلكتروني كاملًا يتضمن @ ونطاقًا","form.errors.phone":"أدخل الرقم دون رمز البلد، بالأرقام فقط","form.errors.date":"أدخل تاريخًا صحيحًا: اليوم والشهر والسنة","form.errors.datePast":"أدخل تاريخًا في الماضي","form.errors.dateFuture":"أدخل تاريخًا في المستقبل","form.errors.dateMin":"أدخل تاريخًا في {date} أو بعده","form.errors.dateMax":"أدخل تاريخًا في {date} أو قبله","form.errors.number":"أدخل عددًا بالأرقام","form.errors.numberInteger":"أدخل عددًا صحيحًا","form.errors.numberDecimals":"استخدم منزلتين عشريتين على الأكثر","form.errors.numberMin":"أدخل {min} أو أكثر","form.errors.numberMax":"أدخل {max} أو أقل","form.errors.choice":"اختر إحدى الإجابات المعروضة","form.errors.cardNumber":"لا تُدخل رقم بطاقة هنا.","form.errors.address":"أدخل الشارع والمدينة والبلد","form.errors.failed":"تعذّر إرسال إجاباتك. تحقّق من اتصالك وحاول مرة أخرى","form.remote.results.one":"خيار واحد","form.remote.results.two":"خياران","form.remote.results.few":"{count} خيارات","form.remote.results.many":"{count} خيارًا","form.remote.results.other":"{count} خيار"},H={"form.title":"A few questions","form.lead":"{org} asks you to answer these questions.","form.optional":"optional","form.continue":"Continue","form.sending":"Sending your answers…","form.yes":"Yes","form.no":"No","form.chooseAny":"Choose all that apply","form.choose":"Choose","form.openLink":"Opens in a new tab","form.consents":"Your consent","form.remote.other":"Other","form.remote.otherField":"Your answer","form.remote.filter":"Search the options","form.remote.noMatch":"No option matches your search","form.date.day":"Day","form.date.month":"Month","form.date.year":"Year","form.fields.full_name.label":"Full name","form.fields.full_name.help":"Your first and last names, as you usually write them","form.fields.birth_date.label":"Date of birth","form.fields.email.label":"Email address","form.fields.phone.label":"Phone number","form.fields.address.label":"Address","form.fields.address.help":"Where you live now","form.fields.country.label":"Country","form.fields.occupation.label":"Occupation","form.address.line1":"Street and number","form.address.line2":"More address details","form.address.city":"City or town","form.address.postcode":"Postal code","form.address.country":"Country","form.address.addLine":"Add a line","form.phoneCountry":"Country code","form.errors.summary":"Check the answers marked below.","form.errors.required":"Answer this question to continue","form.errors.choiceRequired":"Choose an answer to continue","form.errors.consentRequired":"Tick this box to continue","form.errors.tooLong":"Shorten your answer to {max} characters or fewer","form.errors.tooShort":"Enter at least {min} characters","form.errors.email":"Enter a full email address, with @ and a domain","form.errors.phone":"Enter the number without the country code, digits only","form.errors.date":"Enter a real date: day, month and year","form.errors.datePast":"Enter a date in the past","form.errors.dateFuture":"Enter a date in the future","form.errors.dateMin":"Enter a date on or after {date}","form.errors.dateMax":"Enter a date on or before {date}","form.errors.number":"Enter a number, using digits","form.errors.numberInteger":"Enter a whole number","form.errors.numberDecimals":"Use at most 2 decimals","form.errors.numberMin":"Enter {min} or more","form.errors.numberMax":"Enter {max} or less","form.errors.choice":"Choose one of the answers listed","form.errors.cardNumber":"Do not enter a card number here.","form.errors.address":"Enter the street, the city and the country","form.errors.failed":"We could not send your answers. Check your connection and try again","form.remote.results.one":"{count} option","form.remote.results.other":"{count} options"},Re={"form.title":"Quelques questions","form.lead":"{org} vous demande de répondre à ces questions.","form.optional":"facultatif","form.continue":"Continuer","form.sending":"Envoi de vos réponses…","form.yes":"Oui","form.no":"Non","form.chooseAny":"Choisissez toutes les réponses qui s’appliquent","form.choose":"Choisir","form.openLink":"S’ouvre dans un nouvel onglet","form.consents":"Votre consentement","form.remote.other":"Autre","form.remote.otherField":"Votre réponse","form.remote.filter":"Rechercher parmi les options","form.remote.noMatch":"Aucune option ne correspond à votre recherche","form.date.day":"Jour","form.date.month":"Mois","form.date.year":"Année","form.fields.full_name.label":"Nom complet","form.fields.full_name.help":"Vos prénoms et nom, comme vous les écrivez d’habitude","form.fields.birth_date.label":"Date de naissance","form.fields.email.label":"Adresse e-mail","form.fields.phone.label":"Numéro de téléphone","form.fields.address.label":"Adresse","form.fields.address.help":"Là où vous habitez aujourd’hui","form.fields.country.label":"Pays","form.fields.occupation.label":"Profession","form.address.line1":"Rue et numéro","form.address.line2":"Complément d’adresse","form.address.city":"Ville","form.address.postcode":"Code postal","form.address.country":"Pays","form.address.addLine":"Ajouter une ligne","form.phoneCountry":"Indicatif du pays","form.errors.summary":"Vérifiez les réponses signalées ci-dessous.","form.errors.required":"Répondez à cette question pour continuer","form.errors.choiceRequired":"Choisissez une réponse pour continuer","form.errors.consentRequired":"Cochez cette case pour continuer","form.errors.tooLong":"Raccourcissez votre réponse à {max} caractères au plus","form.errors.tooShort":"Saisissez au moins {min} caractères","form.errors.email":"Saisissez une adresse e-mail complète, avec @ et un domaine","form.errors.phone":"Saisissez le numéro sans l’indicatif, en chiffres seulement","form.errors.date":"Saisissez une date réelle : jour, mois et année","form.errors.datePast":"Saisissez une date passée","form.errors.dateFuture":"Saisissez une date à venir","form.errors.dateMin":"Saisissez une date à partir du {date}","form.errors.dateMax":"Saisissez une date jusqu’au {date}","form.errors.number":"Saisissez un nombre, en chiffres","form.errors.numberInteger":"Saisissez un nombre entier","form.errors.numberDecimals":"Utilisez au plus 2 décimales","form.errors.numberMin":"Saisissez {min} ou plus","form.errors.numberMax":"Saisissez {max} ou moins","form.errors.choice":"Choisissez une des réponses proposées","form.errors.cardNumber":"N’indiquez pas de numéro de carte ici.","form.errors.address":"Indiquez la rue, la ville et le pays","form.errors.failed":"Nous n’avons pas pu envoyer vos réponses. Vérifiez votre connexion et réessayez","form.remote.results.one":"{count} option","form.remote.results.other":"{count} options"};function Y(e){return e.replace(/[٠-٩۰-۹]/g,r=>String((r.charCodeAt(0)&15)%10))}s(Y,"G");c(Y,"westernDigits");function se(){let e=(0,E.useId)();return{control:`${e}-c`,help:`${e}-h`,error:`${e}-e`}}s(se,"ee");c(se,"useFieldIds");function D(e,r,o){return[r?e.help:null,o?e.error:null].filter(t=>t!==null).join(" ")||void 0}s(D,"E");c(D,"describedBy");function K({text:e,lang:r,optional:o}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{lang:r?.lang,dir:r?.dir,children:e}),o!==null?(0,f.jsx)("span",{className:"sekyro-form-optional",children:` (${o})`}):null]})}s(K,"Z");c(K,"LabelText");function de({ids:e,help:r,helpLang:o,error:t}){return(0,f.jsxs)(f.Fragment,{children:[r!==void 0?(0,f.jsx)("span",{className:"sekyro-help",id:e.help,lang:o?.lang,dir:o?.dir,children:r}):null,t?(0,f.jsx)("span",{className:"sekyro-help is-danger",id:e.error,role:"alert",children:t}):null]})}s(de,"re");c(de,"FieldNotes");function R({ids:e,label:r,children:o,notes:t}){return(0,f.jsxs)("div",{className:"sekyro-field sekyro-form-q",children:[(0,f.jsx)("label",{className:"sekyro-label",id:`${e.control}-l`,htmlFor:e.control,children:r}),o,t]})}s(R,"T");c(R,"Field");function V({legend:e,children:r,notes:o,invalid:t,describedby:n}){return(0,f.jsxs)("fieldset",{className:`sekyro-form-q sekyro-form-group${t?" is-invalid":""}`,"aria-describedby":n,children:[(0,f.jsx)("legend",{className:"sekyro-label",children:e}),r,o]})}s(V,"V");c(V,"Group");function Ce(e){let r={ArrowDown:1,ArrowUp:-1,ArrowRight:1,ArrowLeft:-1}[e.key];if(r===void 0)return;getComputedStyle(e.currentTarget).direction==="rtl"&&(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(r=-r);let o=e.currentTarget.closest("fieldset"),t=o===null?[]:Array.from(o.querySelectorAll('input[type="checkbox"]')),n=t.indexOf(e.currentTarget),a=t[(n+r+t.length)%t.length];a!==void 0&&(e.preventDefault(),a.focus())}s(Ce,"Ie");c(Ce,"moveInGroup");function te({name:e,type:r,options:o,value:t,onChange:n,required:a,invalid:m,describedby:k}){let q=Array.isArray(t)?t:t===null?[]:[t];return(0,f.jsx)("div",{className:"sekyro-form-choices",children:o.map(h=>{let i=q.includes(h.value);return(0,f.jsxs)("label",{className:"sekyro-form-choice",children:[(0,f.jsx)("input",{type:r,name:e,value:h.value,checked:i,required:r==="radio"?a:void 0,"aria-invalid":m||void 0,"aria-describedby":k,onKeyDown:r==="checkbox"?Ce:void 0,onChange:s(()=>{n(r==="radio"?h.value:i?q.filter(y=>y!==h.value):[...q,h.value])},"onChange")}),(0,f.jsx)("span",{lang:h.lang?.lang,dir:h.lang?.dir,children:h.label})]},h.value)})})}s(te,"oe");c(te,"ChoiceList");function ne(e){let[r,o,t]=[e.day,e.month,e.year].map(n=>Y(n).trim());if(!(r===""&&o===""&&t===""))return`${(t??"").padStart(4,"0")}-${(o??"").padStart(2,"0")}-${(r??"").padStart(2,"0")}`}s(ne,"ne");c(ne,"dateValue");function ae(e){let r=typeof e=="string"?/^(\d{4})-(\d{2})-(\d{2})$/.exec(e):null;return r===null?{day:"",month:"",year:""}:{day:String(Number(r[3])),month:String(Number(r[2])),year:r[1]}}s(ae,"te");c(ae,"dateParts");function Ne(e,r,o,t=new Date().getUTCFullYear()){if(r==="")return!1;let n=Number(r);return e==="day"?!(n>=1&&n<=31):e==="month"?!(n>=1&&n<=12):r.length!==4||n<1900||n>(o?t:2100)}s(Ne,"xe");c(Ne,"datePartBad");function le({ids:e,parts:r,onChange:o,labels:t,required:n,invalid:a,birthday:m,onPartBlur:k,onLeave:q}){let h=c(y=>{let _=y.target.dataset.part;_!==void 0&&k(_),y.currentTarget.contains(y.relatedTarget)||q()},"onBlur"),i=c((y,_)=>(0,f.jsxs)("div",{className:`sekyro-form-date__${y}`,children:[(0,f.jsx)("label",{className:"sekyro-help",htmlFor:`${e.control}-${y}`,children:t[y]}),(0,f.jsx)("input",{id:`${e.control}-${y}`,"data-part":y,className:"sekyro-input",type:"text",inputMode:"numeric",dir:"ltr",maxLength:_,autoComplete:m?`bday-${y}`:"off",required:n,"aria-invalid":a||void 0,"aria-describedby":D(e,!1,a),value:r[y],onChange:s(A=>o({...r,[y]:Y(A.target.value).replace(/\D/g,"")}),"onChange")})]}),"cell");return(0,f.jsxs)("div",{className:"sekyro-form-date",onBlur:h,children:[i("day",2),i("month",2),i("year",4)]})}s(le,"se");c(le,"DateInputs");function qe(e){return(0,E.useMemo)(()=>{let r=[];for(let t=65;t<=90;t++)for(let n=65;n<=90;n++){let a=String.fromCharCode(t,n);re(a)!==void 0&&a!=="AC"&&a!=="TA"&&r.push(a)}let o=new Intl.Collator(e);return r.map(t=>({code:t,name:J(t,e)})).sort((t,n)=>o.compare(t.name,n.name))},[e])}s(qe,"Me");c(qe,"useCountries");function ie({id:e,labelId:r,value:o,onChange:t,locale:n,placeholder:a,searchLabel:m,searchPlaceholder:k,noMatch:q,invalid:h,describedby:i}){let y=qe(n),[_,A]=(0,E.useState)(!1),z=(0,E.useRef)(null),P=(0,E.useRef)(null),p=(0,E.useId)(),M=`${e}-v`,L=y.find(b=>b.code===o),O=c(()=>{A(!1),requestAnimationFrame(()=>z.current?.focus())},"close");return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("button",{ref:z,id:e,type:"button",className:"sekyro-input sekyro-form-country","aria-labelledby":`${r} ${M}`,"aria-expanded":_,"aria-controls":_?p:void 0,"aria-invalid":h||void 0,"aria-describedby":i,onClick:s(()=>{A(b=>!b),_||requestAnimationFrame(()=>P.current?.focus())},"onClick"),children:L!==void 0?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"sekyro-row-btn__flag","aria-hidden":"true",children:ve(L.code)}),(0,f.jsx)("span",{className:"sekyro-form-country__name",id:M,children:L.name})]}):(0,f.jsx)("span",{className:"sekyro-form-country__name is-empty",id:M,children:a})}),_?(0,f.jsx)("div",{id:p,className:"sekyro-form-country__list",onKeyDown:s(b=>{b.key==="Escape"&&(b.preventDefault(),O())},"onKeyDown"),children:(0,f.jsx)(be,{countries:y,label:(0,f.jsx)("span",{className:"sekyro-visually-hidden",children:m}),searchPlaceholder:k,noMatch:q,selected:o,searchRef:P,scroll:!0,onPick:s(b=>{t(b),O()},"onPick")})}):null]})}s(ie,"ae");c(ie,"CountryField");var T="\0other",_e,oe;function xe(e){let[r,o]=(0,F.useState)(_e);return(0,F.useEffect)(()=>{if(!e||r!==void 0)return;let t=!0;return oe??(oe=import("./icons-form-R366YPMB-6C7SJPCB.js").then(n=>_e=n.FORM_OPTION_ICON_PATHS)),oe.then(n=>t&&o(n)).catch(()=>{}),()=>{t=!1}},[e,r]),r}s(xe,"Te");c(xe,"useOptionIcons");function we({icon:e,imageUrl:r,icons:o}){let[t,n]=(0,F.useState)(!1);if(r!==void 0&&!t)return(0,g.jsx)("img",{className:"sekyro-form-card__picture",src:r,alt:"",loading:"lazy",decoding:"async",onError:s(()=>n(!0),"onError")});let a=e!==void 0?o?.[e]:void 0;return a===void 0?null:(0,g.jsx)("span",{className:"sekyro-form-card__icon","aria-hidden":"true",children:(0,g.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,focusable:"false",dangerouslySetInnerHTML:{__html:a}})})}s(we,"qe");c(we,"OptionPicture");function Se({name:e,labelId:r,remote:o,draft:t,onChange:n,required:a,invalid:m,describedby:k,client:q,copy:h}){let[i,y]=(0,F.useState)(""),_=(0,F.useId)(),A=(0,F.useId)(),z=(0,F.useRef)(null),[P,p]=(0,F.useState)(!1),M=o.options.length>Z.remoteFilterAbove,L=(0,F.useMemo)(()=>M?me(o.options,i):o.options,[o.options,i,M]),O=o.otherLabel??h.other,b=xe(o.options.some(u=>u.icon!==void 0));(0,F.useEffect)(()=>{P&&(z.current?.focus(),p(!1))},[P]);let x=c(u=>{u===T?(n({pick:T,other:t.other}),p(!0)):n({pick:u,other:""})},"pick");return(0,g.jsxs)("div",{className:"sekyro-form-remote",children:[M?(0,g.jsxs)("div",{className:"sekyro-field sekyro-form-remote__filter",children:[(0,g.jsx)("label",{className:"sekyro-help",htmlFor:_,children:h.filter}),(0,g.jsx)("input",{id:_,className:"sekyro-input",type:"search",autoComplete:"off",value:i,onChange:s(u=>y(u.target.value),"onChange")}),(0,g.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:i.trim()===""?"":h.results(L.length)})]}):null,(0,g.jsxs)("div",{className:"sekyro-form-cards",role:"radiogroup","aria-labelledby":r,"aria-required":a||void 0,"aria-invalid":m||void 0,"aria-describedby":k,children:[L.map(u=>{let I=t.pick===u.value;return(0,g.jsxs)("label",{className:"sekyro-form-card","data-value":u.value,children:[(0,g.jsx)("input",{type:"radio",name:e,value:u.value,checked:I,required:a,"aria-invalid":m||void 0,onChange:s(()=>x(u.value),"onChange")}),(0,g.jsx)(we,{icon:u.icon,imageUrl:u.imageUrl,icons:b}),(0,g.jsxs)("span",{className:"sekyro-form-card__text",lang:q.lang,children:[u.title!==void 0?(0,g.jsx)("span",{className:"sekyro-form-card__title",dir:"auto",children:u.title}):null,(0,g.jsx)("span",{className:"sekyro-form-card__label",dir:"auto",children:u.label}),u.description!==void 0?(0,g.jsx)("span",{className:"sekyro-form-card__description",dir:"auto",children:u.description}):null]})]},u.value)}),M&&L.length===0&&!o.allowOther?(0,g.jsx)("p",{className:"sekyro-help sekyro-form-remote__none",children:h.noMatch}):null,o.allowOther?(0,g.jsxs)("label",{className:"sekyro-form-card sekyro-form-card--other",children:[(0,g.jsx)("input",{type:"radio",name:e,value:T,checked:t.pick===T,required:a,"aria-invalid":m||void 0,onChange:s(()=>x(T),"onChange")}),(0,g.jsx)("span",{className:"sekyro-form-card__text",children:(0,g.jsx)("span",{className:"sekyro-form-card__label",dir:"auto",lang:o.otherLabel!==void 0?q.lang:void 0,children:O})})]}):null]}),t.pick===T?(0,g.jsxs)("div",{className:"sekyro-field sekyro-form-remote__other",children:[(0,g.jsx)("label",{className:"sekyro-help",htmlFor:A,children:o.otherLabel??h.otherField}),(0,g.jsx)("input",{id:A,ref:z,className:"sekyro-input",type:"text",autoComplete:"off",maxLength:Z.remoteOther,required:a,"aria-invalid":m||void 0,"aria-describedby":k,value:t.other,onChange:s(u=>n({pick:T,other:u.target.value}),"onChange")})]}):null]})}s(Se,"Se");c(Se,"OptionCardList");var De={en:H,fr:Re,ar:Oe,es:H,pt:H,de:H};function Me(e){let r=e.strings,o=De[e.locale];return(t,n)=>ye(r[t]??o[t]??"",n)}s(Me,"Be");c(Me,"formCopy");var Te=new Set(["single_choice","multiple_choice","yes_no","remote_choice"]),je=c(e=>e.kind==="field"?e.field==="country":Te.has(e.type),"isChoice");function Ae(e,r,o){if(e.kind==="field")switch(e.field){case"birth_date":return ae(r);case"phone":return typeof r=="string"?r:"";case"address":{let t=typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{};return{line1:t.lines?.[0]??"",line2:t.lines?.slice(1).join(", ")??"",city:t.city??"",postcode:t.postcode??"",country:t.country??o}}default:return typeof r=="string"?r:""}switch(e.type){case"multiple_choice":return Array.isArray(r)?r:[];case"yes_no":return typeof r=="boolean"?r:null;case"single_choice":return typeof r=="string"?r:null;case"date":return ae(r);case"number":return typeof r=="number"?String(r):"";case"remote_choice":return{pick:null,other:""};default:return typeof r=="string"?r:""}}s(Ae,"Ke");c(Ae,"draftOf");function Fe(e,r){if(e.kind==="field")switch(e.field){case"birth_date":return ne(r);case"phone":return r||void 0;case"address":{let o=r,t=[o.line1,o.line2].map(n=>n.trim()).filter(n=>n!=="");return t.length===0&&o.city.trim()===""&&o.postcode.trim()===""?void 0:{country:o.country,city:o.city.trim(),lines:t,...o.postcode.trim()!==""?{postcode:o.postcode.trim()}:{}}}case"email":return r.trim().toLowerCase()||void 0;default:return r.trim()||void 0}switch(e.type){case"multiple_choice":return r.length>0?r:void 0;case"yes_no":return typeof r=="boolean"?r:void 0;case"single_choice":return typeof r=="string"?r:void 0;case"date":return ne(r);case"remote_choice":{let o=r;return o.pick===null?void 0:o.pick===T?{other:o.other.trim()}:o.pick}case"number":{let o=Y(r).replace(/[\s  ]/g,"").replace(/[,٫]/g,".");if(o==="")return;let t=Number(o);return Number.isFinite(t)&&/^-?\d+(\.\d+)?$/.test(o)?t:Number.NaN}default:return r.trim()||void 0}}s(Fe,"Ye");c(Fe,"answerOf");function $e(e,r,o,t){let n=c(m=>{try{return new Intl.DateTimeFormat(t,{dateStyle:"long",timeZone:"UTC"}).format(new Date(`${String(m)}T00:00:00Z`))}catch{return String(m)}},"date"),a=e.params??{};switch(e.code){case"required":return o(r!==void 0&&je(r)?"form.errors.choiceRequired":"form.errors.required");case"consent_required":return o("form.errors.consentRequired");case"too_long":return o("form.errors.tooLong",{max:Number(a.max??0)});case"too_short":return o("form.errors.tooShort",{min:Number(a.min??0)});case"email_invalid":return o("form.errors.email");case"phone_invalid":return o("form.errors.phone");case"date_invalid":return o("form.errors.date");case"date_not_past":return o("form.errors.datePast");case"date_not_future":return o("form.errors.dateFuture");case"date_too_early":return o("form.errors.dateMin",{date:n(a.date)});case"date_too_late":return o("form.errors.dateMax",{date:n(a.date)});case"number_invalid":return o("form.errors.number");case"number_not_integer":return o("form.errors.numberInteger");case"number_decimals":return o("form.errors.numberDecimals");case"number_too_small":return o("form.errors.numberMin",{min:new Intl.NumberFormat(t).format(Number(a.min??0))});case"number_too_large":return o("form.errors.numberMax",{max:new Intl.NumberFormat(t).format(Number(a.max??0))});case"address_invalid":return o("form.errors.address");case"card_number":return o("form.errors.cardNumber");default:return o("form.errors.choice")}}s($e,"Ue");c($e,"issueText");var W={full_name:200,occupation:120,email:254,short_text:120,long_text:1e3};function Le(e,r){let o=new Intl.PluralRules(r);return{other:e("form.remote.other"),otherField:e("form.remote.otherField"),filter:e("form.remote.filter"),results:c(t=>e(`form.remote.results.${o.select(t)}`,{count:t})||e("form.remote.results.other",{count:t}),"results"),noMatch:e("form.remote.noMatch")}}s(Le,"je");c(Le,"remoteCopy");function Ve({step:e,i18n:r,onError:o}){let t=Me(r),{form:n}=e,a={lang:n.locale,dir:e.dir},m=typeof n.prefill?.country=="string"?n.prefill.country:"",[k,q]=(0,S.useState)(()=>Object.fromEntries(n.questions.map(d=>[d.id,Ae(d,n.prefill?.[d.id],m)]))),[h,i]=(0,S.useState)({}),[y,_]=(0,S.useState)([]),[A,z]=(0,S.useState)(!1),[P,p]=(0,S.useState)(!1),[M,L]=(0,S.useState)(0),O=(0,S.useRef)(null),b=(0,S.useId)();(0,S.useEffect)(()=>{M!==0&&O.current?.querySelector('[aria-invalid="true"]')?.focus()},[M]);let x=c(d=>{let N=y.find(C=>C.id===d);return N===void 0?null:$e(N,n.questions.find(C=>C.id===d),t,r.locale)},"errorOf"),u=c((d,N)=>{q(C=>({...C,[d]:N})),_(C=>C.filter($=>$.id!==d))},"set"),I=c(()=>{let d={};for(let N of n.questions){let C=Fe(N,k[N.id]??null);C!==void 0&&(d[N.id]=C)}return{answers:d,consents:Object.fromEntries(n.consents.map(N=>[N.id,h[N.id]===!0]))}},"input"),j=c(d=>{let N=e.validate(I()).filter(C=>C.id===d&&C.code!=="required");_(C=>[...C.filter($=>$.id!==d),...N])},"checkOne"),v=c(d=>{if(d.preventDefault(),A)return;let N=I(),C=e.validate(N);if(C.length>0){_(C),L($=>$+1);return}z(!0),p(!1),e.submit(N).catch($=>{o?.($);let B=($ instanceof ce||$?.name==="FormAnswersError"?$.issues:null)?.filter(G=>n.questions.some(Q=>Q.id===G.id)||n.consents.some(Q=>Q.id===G.id))??[];B.length>0?(_(B),L(G=>G+1)):p(!0)}).finally(()=>z(!1))},"onSubmit"),w=c(d=>d?null:t("form.optional"),"optional");return(0,l.jsxs)("form",{ref:O,className:"sekyro-step sekyro-form","aria-labelledby":b,onSubmit:v,noValidate:!0,"data-testid":"sekyro-form-step",children:[(0,l.jsx)(fe,{id:b,title:n.title??t("form.title"),lead:n.intro??t("form.lead",{org:e.context.orgName}),lang:{...n.title!==void 0?{title:n.locale}:{},...n.intro!==void 0?{lead:n.locale}:{},dir:e.dir}}),P?(0,l.jsx)(pe,{tone:"danger",children:(0,l.jsx)("span",{children:t("form.errors.failed")})}):null,(0,l.jsx)("div",{className:"sekyro-form-questions",children:n.questions.map(d=>(0,l.jsx)(ze,{q:d,draft:k[d.id]??null,onChange:s(N=>u(d.id,N),"onChange"),error:x(d.id),optional:w(d.required),c:t,locale:r.locale,client:a,fallbackCountry:m,onCheck:s(()=>j(d.id),"onCheck")},d.id))}),n.consents.length>0?(0,l.jsxs)("fieldset",{className:"sekyro-form-q sekyro-form-group sekyro-form-consents",children:[(0,l.jsx)("legend",{className:"sekyro-label",children:t("form.consents")}),n.consents.map(d=>(0,l.jsx)(Ie,{id:d.id,text:d.text,link:d.link,required:d.required,checked:h[d.id]===!0,onChange:s(N=>{i(C=>({...C,[d.id]:N})),_(C=>C.filter($=>$.id!==d.id))},"onChange"),error:x(d.id),optional:w(d.required),openLink:t("form.openLink"),client:a},d.id))]}):null,(0,l.jsxs)(he,{children:[(0,l.jsx)(ue,{type:"submit",full:!0,disabled:A,"aria-busy":A||void 0,"data-testid":"sekyro-form-continue",children:t(A?"form.sending":"form.continue")}),(0,l.jsx)("span",{className:"sekyro-visually-hidden",role:"status","aria-live":"polite",children:A?t("form.sending"):""})]})]})}s(Ve,"Mr");c(Ve,"FormView");function Ie({id:e,text:r,link:o,required:t,checked:n,onChange:a,error:m,optional:k,openLink:q,client:h}){let i=se();return(0,l.jsxs)("div",{className:"sekyro-form-consent","data-consent":e,children:[(0,l.jsxs)("div",{className:"sekyro-form-choice sekyro-form-consent__row",children:[(0,l.jsx)("input",{id:i.control,type:"checkbox",checked:n,required:t,"aria-invalid":m!==null||void 0,"aria-describedby":D(i,!1,m!==null),onChange:s(y=>a(y.target.checked),"onChange")}),(0,l.jsxs)("span",{className:"sekyro-form-consent__text",children:[(0,l.jsx)("label",{htmlFor:i.control,children:(0,l.jsx)(K,{text:r,lang:h,optional:k})}),o!==void 0?(0,l.jsxs)("a",{className:"sekyro-link sekyro-form-consent__link",href:o.url,target:"_blank",rel:"noopener noreferrer",lang:h.lang,dir:h.dir,children:[o.label,(0,l.jsxs)("span",{className:"sekyro-visually-hidden",children:[" (",q,")"]})]}):null]})]}),(0,l.jsx)(de,{ids:i,error:m})]})}s(Ie,"We");c(Ie,"Consent");function ze({q:e,draft:r,onChange:o,error:t,optional:n,c:a,locale:m,client:k,fallbackCountry:q,onCheck:h}){let i=se(),[y,_]=(0,S.useState)(()=>new Set),A=e.kind==="field"&&e.field==="birth_date",z=(A||e.kind==="custom"&&e.type==="date")&&[...y].some(v=>Ne(v,Y(r[v]??""),A)),P=t??(z?a("form.errors.date"):null),p=P!==null,M=e.kind==="custom"?e:null,L=M!==null?M.help:e.kind==="field"&&(e.field==="full_name"||e.field==="address")?a(`form.fields.${e.field}.help`):void 0,O=M!==null?k:void 0,b=M!==null?(0,l.jsx)(K,{text:M.label,lang:k,optional:n}):(0,l.jsx)(K,{text:a(`form.fields.${e.kind==="field"?e.field:""}.label`),optional:n}),x=(0,l.jsx)(de,{ids:i,help:L,helpLang:O,error:P}),u=D(i,L!==void 0,p),I=c(v=>v.long===!0?(0,l.jsx)("textarea",{id:i.control,className:"sekyro-input sekyro-form-textarea",rows:4,maxLength:v.max,required:e.required,"aria-invalid":p||void 0,"aria-describedby":u,value:r,onChange:s(w=>o(w.target.value),"onChange")}):(0,l.jsx)("input",{id:i.control,className:"sekyro-input",type:v.type??"text",inputMode:v.inputMode,autoComplete:v.autoComplete??"off",dir:v.dir,maxLength:v.max,required:e.required,"aria-invalid":p||void 0,"aria-describedby":u,value:r,onChange:s(w=>o(w.target.value),"onChange")}),"text");if(e.kind==="field")switch(e.field){case"full_name":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:I({autoComplete:"name",max:W.full_name})});case"occupation":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:I({autoComplete:"organization-title",max:W.occupation})});case"email":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:I({type:"email",inputMode:"email",autoComplete:"email",dir:"ltr",max:W.email})});case"country":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:(0,l.jsx)(ie,{id:i.control,labelId:`${i.control}-l`,value:r??"",onChange:o,locale:m,placeholder:a("form.choose"),searchLabel:a("doc.countrySearch"),searchPlaceholder:a("doc.countrySearch"),noMatch:a("doc.noCountryMatch"),invalid:p,describedby:u})});case"phone":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:(0,l.jsx)(Ee,{id:i.control,value:r,onChange:o,locale:m,c:a,fallbackCountry:q,required:e.required,invalid:p,describedby:u})});case"birth_date":return(0,l.jsx)(V,{legend:b,notes:x,invalid:p,describedby:u,children:(0,l.jsx)(le,{ids:i,parts:r,onChange:o,labels:{day:a("form.date.day"),month:a("form.date.month"),year:a("form.date.year")},required:e.required,invalid:p,birthday:!0,onPartBlur:s(v=>_(w=>new Set(w).add(v)),"onPartBlur"),onLeave:h})});case"address":{let v=r,w=c((d,N,C,$)=>(0,l.jsxs)("div",{className:"sekyro-field",children:[(0,l.jsx)("label",{className:"sekyro-help",id:`${i.control}-${d}-l`,htmlFor:`${i.control}-${d}`,children:a(N)}),d==="country"?(0,l.jsx)(ie,{id:`${i.control}-${d}`,labelId:`${i.control}-${d}-l`,value:v.country,onChange:s(B=>o({...v,country:B}),"onChange"),locale:m,placeholder:a("form.choose"),searchLabel:a("doc.countrySearch"),searchPlaceholder:a("doc.countrySearch"),noMatch:a("doc.noCountryMatch"),invalid:p,describedby:D(i,!1,p)}):(0,l.jsx)("input",{id:`${i.control}-${d}`,className:"sekyro-input",type:"text",autoComplete:C,maxLength:$,required:e.required&&d!=="line2"&&d!=="postcode","aria-invalid":p||void 0,"aria-describedby":D(i,!1,p),value:v[d],onChange:s(B=>o({...v,[d]:B.target.value}),"onChange")})]}),"part");return(0,l.jsx)(V,{legend:b,notes:x,invalid:p,describedby:u,children:(0,l.jsxs)("div",{className:"sekyro-form-address",children:[w("line1","form.address.line1","address-line1",120),w("line2","form.address.line2","address-line2",120),w("city","form.address.city","address-level2",80),w("postcode","form.address.postcode","postal-code",16),w("country","form.address.country","country",2)]})})}default:return null}let j=e;switch(j.type){case"short_text":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:I({max:W.short_text})});case"long_text":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:I({max:W.long_text,long:!0})});case"number":return(0,l.jsx)(R,{ids:i,label:b,notes:x,children:I({inputMode:"decimal",dir:"ltr",max:20})});case"date":return(0,l.jsx)(V,{legend:b,notes:x,invalid:p,describedby:u,children:(0,l.jsx)(le,{ids:i,parts:r,onChange:o,labels:{day:a("form.date.day"),month:a("form.date.month"),year:a("form.date.year")},required:e.required,invalid:p,birthday:!1,onPartBlur:s(v=>_(w=>new Set(w).add(v)),"onPartBlur"),onLeave:h})});case"yes_no":return(0,l.jsx)(V,{legend:b,notes:x,invalid:p,describedby:u,children:(0,l.jsx)(te,{name:i.control,type:"radio",options:[{value:"yes",label:a("form.yes")},{value:"no",label:a("form.no")}],value:r===!0?"yes":r===!1?"no":null,onChange:s(v=>o(v==="yes"),"onChange"),required:e.required,invalid:p,describedby:D(i,!1,p)})});case"remote_choice":return j.remote===void 0?null:(0,l.jsx)(V,{legend:(0,l.jsx)("span",{id:`${i.control}-l`,children:b}),notes:x,invalid:p,describedby:u,children:(0,l.jsx)(Se,{name:i.control,labelId:`${i.control}-l`,remote:j.remote,draft:r,onChange:o,required:e.required,invalid:p,describedby:D(i,!1,p),client:k,copy:Le(a,m)})});case"single_choice":case"multiple_choice":{let v=j.type==="multiple_choice";return(0,l.jsx)(V,{legend:b,notes:(0,l.jsxs)(l.Fragment,{children:[v?(0,l.jsx)("span",{className:"sekyro-help",children:a("form.chooseAny")}):null,x]}),invalid:p,describedby:u,children:(0,l.jsx)(te,{name:i.control,type:v?"checkbox":"radio",options:(j.choices??[]).map(w=>({value:w.value,label:w.label,lang:k})),value:r,onChange:o,required:e.required,invalid:p,describedby:D(i,!1,p)})})}default:return null}}s(ze,"Ze");c(ze,"Question");function Pe(e,r){let o=[];for(let a=65;a<=90;a++)for(let m=65;m<=90;m++){let k=String.fromCharCode(a,m),q=re(k);q!==void 0&&k!=="AC"&&k!=="TA"&&o.push({code:k,dial:`+${q}`})}let t=new Intl.Collator(r),n=new Map(o.map(a=>[a.code,J(a.code,r)]));return o.sort((a,m)=>a.code===e?-1:m.code===e?1:t.compare(n.get(a.code)??"",n.get(m.code)??"")),o}s(Pe,"Je");c(Pe,"phoneCountries");function Ee({id:e,value:r,onChange:o,locale:t,c:n,fallbackCountry:a,required:m,invalid:k,describedby:q}){let h=(0,S.useMemo)(()=>Pe(a||"MR",t),[a,t]),[i]=(0,S.useState)(()=>r||(h[0]?.dial??"")),y=ge({countries:h,international:!1,closed:!1,defaultPhone:i}),_=y.empty?"":y.typed??y.phone;return(0,S.useEffect)(()=>{_!==r&&o(_)},[_]),(0,l.jsx)(ke,{field:y,id:e,locale:t,t:n,required:m,invalid:k,describedby:q,compact:!0})}s(Ee,"Xe");c(Ee,"FormPhone");export{Ve as FormView,Me as formCopy};
@@ -0,0 +1 @@
1
+ "use client";import"./chunk-5QL6W6FW.js";import"./chunk-4FHWXBOB.js";var r={wallet:'<path d="M6 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.83 11H18.23C16.45 11 15 12.34 15 14C15 15.66 16.45 17 18.23 17H20.83C20.92 17 20.96 17 20.99 17C21.53 16.96 21.96 16.57 22 16.07C22 16.03 22 15.99 22 15.92V12.08C22 12.01 22 11.97 22 11.93C21.96 11.43 21.53 11.04 20.99 11C20.96 11 20.92 11 20.83 11Z" stroke="currentColor"/><path d="M20.96 11C20.89 9.13 20.64 7.98 19.83 7.17C18.66 6 16.77 6 13 6H10C6.23 6 4.34 6 3.17 7.17C2 8.34 2 10.23 2 14C2 17.77 2 19.66 3.17 20.83C4.34 22 6.23 22 10 22H13C16.77 22 18.66 22 19.83 20.83C20.64 20.02 20.89 18.87 20.96 17" stroke="currentColor"/><path d="M6 6L9.74 3.52C10.79 2.83 12.21 2.83 13.26 3.52L17 6" stroke="currentColor" stroke-linecap="round"/><path d="M17.99 14H18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',card:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M10 16H6" stroke="currentColor" stroke-linecap="round"/><path d="M14 16H12.5" stroke="currentColor" stroke-linecap="round"/><path d="M2 10L22 10" stroke="currentColor" stroke-linecap="round"/>',bank:'<path d="M22 22L2 22" stroke="currentColor" stroke-linecap="round"/><path d="M21 22V6C21 4.11 21 3.17 20.41 2.59C19.83 2 18.89 2 17 2H15C13.11 2 12.17 2 11.59 2.59C11.11 3.06 11.02 3.76 11 5" stroke="currentColor"/><path d="M15 22V9C15 7.11 15 6.17 14.41 5.59C13.83 5 12.89 5 11 5H7C5.11 5 4.17 5 3.59 5.59C3 6.17 3 7.11 3 9V22" stroke="currentColor"/><path d="M9 22V19" stroke="currentColor" stroke-linecap="round"/><path d="M6 8H12" stroke="currentColor" stroke-linecap="round"/><path d="M6 11H12" stroke="currentColor" stroke-linecap="round"/><path d="M6 14H12" stroke="currentColor" stroke-linecap="round"/>',home:'<path d="M14 6H10C8.64 6 7.53 6 6.61 6.05C4.97 6.15 3.92 6.42 3.17 7.17C2 8.34 2 10.23 2 14C2 17.77 2 19.66 3.17 20.83C4.34 22 6.23 22 10 22H14C17.77 22 19.66 22 20.83 20.83C22 19.66 22 17.77 22 14C22 10.23 22 8.34 20.83 7.17C20.08 6.42 19.03 6.15 17.39 6.05C16.47 6 15.36 6 14 6Z" stroke="currentColor"/><path d="M6.61 6.05C7.43 6.03 8.16 5.45 8.44 4.68C8.45 4.66 8.46 4.63 8.47 4.58L8.5 4.5C8.54 4.37 8.56 4.31 8.59 4.25C8.87 3.54 9.55 3.05 10.32 3C10.38 3 10.45 3 10.58 3H13.42C13.55 3 13.62 3 13.68 3C14.45 3.05 15.13 3.54 15.41 4.25C15.44 4.31 15.46 4.37 15.5 4.5L15.53 4.58C15.54 4.63 15.55 4.66 15.56 4.68C15.84 5.45 16.57 6.03 17.39 6.05" stroke="currentColor"/><path d="M21.66 8.72C18.65 10.68 17.15 11.65 15.56 12.15C13.24 12.87 10.76 12.87 8.44 12.15C6.85 11.65 5.35 10.68 2.34 8.72" stroke="currentColor" stroke-linecap="round"/><path d="M8 11V13" stroke="currentColor" stroke-linecap="round"/><path d="M16 11V13" stroke="currentColor" stroke-linecap="round"/>',store:'<path d="M3.5 11V14C3.5 17.77 3.5 19.66 4.67 20.83C5.84 22 7.73 22 11.5 22H12.5C16.27 22 18.16 22 19.33 20.83C20.5 19.66 20.5 17.77 20.5 14V11" stroke="currentColor"/><path d="M9.5 2H14.5L15.15 8.52C15.34 10.38 13.87 12 12 12C10.13 12 8.66 10.38 8.85 8.52L9.5 2Z" stroke="currentColor"/><path d="M3.33 5.35C3.51 4.46 3.6 4.02 3.78 3.65C4.16 2.89 4.85 2.33 5.67 2.11C6.06 2 6.51 2 7.42 2H9.5L8.78 9.25C8.62 10.81 7.3 12 5.73 12C3.8 12 2.35 10.23 2.73 8.34L3.33 5.35Z" stroke="currentColor"/><path d="M20.67 5.35C20.49 4.46 20.4 4.02 20.22 3.65C19.84 2.89 19.15 2.33 18.33 2.11C17.94 2 17.49 2 16.58 2H14.5L15.22 9.25C15.38 10.81 16.7 12 18.27 12C20.2 12 21.65 10.23 21.27 8.34L20.67 5.35Z" stroke="currentColor"/><path d="M9.5 21.5V18.5C9.5 17.57 9.5 17.1 9.7 16.75C9.83 16.52 10.02 16.33 10.25 16.2C10.6 16 11.07 16 12 16C12.93 16 13.4 16 13.75 16.2C13.98 16.33 14.17 16.52 14.3 16.75C14.5 17.1 14.5 17.57 14.5 18.5V21.5" stroke="currentColor" stroke-linecap="round"/>',org:'<path d="M22 22L2 22" stroke="currentColor" stroke-linecap="round"/><path d="M17 22V6C17 4.11 17 3.17 16.41 2.59C15.83 2 14.89 2 13 2H11C9.11 2 8.17 2 7.59 2.59C7 3.17 7 4.11 7 6V22" stroke="currentColor"/><path d="M21 22V11.5C21 10.1 21 9.39 20.66 8.89C20.52 8.67 20.33 8.48 20.11 8.34C19.61 8 18.9 8 17.5 8" stroke="currentColor"/><path d="M3 22V11.5C3 10.1 3 9.39 3.34 8.89C3.48 8.67 3.67 8.48 3.89 8.34C4.39 8 5.1 8 6.5 8" stroke="currentColor"/><path d="M12 22V19" stroke="currentColor" stroke-linecap="round"/><path d="M10 5H14" stroke="currentColor" stroke-linecap="round"/><path d="M10 8H14" stroke="currentColor" stroke-linecap="round"/><path d="M10 11H14" stroke="currentColor" stroke-linecap="round"/><path d="M10 14H14" stroke="currentColor" stroke-linecap="round"/>',profile:'<path d="M9 9A3 3 0 1 0 15 9A3 3 0 1 0 9 9Z" stroke="currentColor"/><path d="M2 12A10 10 0 1 0 22 12A10 10 0 1 0 2 12Z" stroke="currentColor"/><path d="M17.97 20C17.81 17.11 16.92 15 12 15C7.08 15 6.19 17.11 6.03 20" stroke="currentColor" stroke-linecap="round"/>',team:'<path d="M5 6A4 4 0 1 0 13 6A4 4 0 1 0 5 6Z" stroke="currentColor"/><path d="M15 9C16.66 9 18 7.66 18 6C18 4.34 16.66 3 15 3" stroke="currentColor" stroke-linecap="round"/><path d="M2 17A7 4 0 1 0 16 17A7 4 0 1 0 2 17Z" stroke="currentColor"/><path d="M18 14C19.75 14.38 21 15.36 21 16.5C21 17.53 19.99 18.42 18.5 18.87" stroke="currentColor" stroke-linecap="round"/>',phone:'<path d="M18.68 19.96C19.19 19.91 19.64 19.63 20 19.25L21.42 17.76C22.38 16.75 22.11 15.02 20.88 14.31L18.97 13.21C18.17 12.75 17.19 12.88 16.56 13.55L16.1 14.03C16.1 14.03 15.02 15.17 12.06 12.06C9.11 8.94 10.19 7.81 10.19 7.81L10.48 7.5C11.18 6.76 11.25 5.56 10.63 4.69L9.37 2.91C8.61 1.83 7.14 1.69 6.26 2.61L4.69 4.26C4.26 4.72 3.97 5.31 4 5.97C4.09 7.65 4.81 11.26 8.82 15.48C13.06 19.95 17.05 20.12 18.68 19.96Z" stroke="currentColor" stroke-linecap="round"/>',email:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12C22 15.77 22 17.66 20.83 18.83C19.66 20 17.77 20 14 20H10C6.23 20 4.34 20 3.17 18.83C2 17.66 2 15.77 2 12Z" stroke="currentColor"/><path d="M6 8L8.16 9.8C10 11.33 10.91 12.09 12 12.09C13.09 12.09 14 11.33 15.84 9.8L18 8" stroke="currentColor" stroke-linecap="round"/>',document:'<path d="M18.18 8.04L18.64 7.58C19.41 6.81 20.66 6.81 21.42 7.58C22.19 8.34 22.19 9.59 21.42 10.36L20.96 10.82M18.18 8.04C18.18 8.04 18.24 9.02 19.11 9.89C19.98 10.76 20.96 10.82 20.96 10.82M20.96 10.82L16.7 15.08C16.41 15.37 16.27 15.51 16.11 15.64C15.92 15.78 15.72 15.91 15.5 16.01C15.32 16.1 15.13 16.16 14.74 16.29L13.5 16.71L13.1 16.84L12.7 16.97C12.51 17.04 12.3 16.99 12.16 16.84C12.01 16.7 11.96 16.49 12.03 16.3L12.16 15.9L12.29 15.5L12.71 14.26C12.84 13.87 12.9 13.68 12.99 13.5C13.09 13.28 13.22 13.08 13.36 12.89C13.49 12.73 13.63 12.59 13.92 12.3L18.18 8.04M13.1 16.84L12.16 15.9" stroke="currentColor"/><path d="M8 13H10.5" stroke="currentColor" stroke-linecap="round"/><path d="M8 9H14.5" stroke="currentColor" stroke-linecap="round"/><path d="M8 17H9.5" stroke="currentColor" stroke-linecap="round"/><path d="M19.83 3.17C18.66 2 16.77 2 13 2H11C7.23 2 5.34 2 4.17 3.17C3 4.34 3 6.23 3 10V14C3 17.77 3 19.66 4.17 20.83C5.34 22 7.23 22 11 22H13C16.77 22 18.66 22 19.83 20.83C20.77 19.89 20.96 18.48 20.99 16" stroke="currentColor" stroke-linecap="round"/>',id:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linejoin="round"/><path d="M9 13A3 3 0 1 0 15 13A3 3 0 1 0 9 13Z" stroke="currentColor"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',passport:'<path d="M4 6H17C18.66 6 20 7.34 20 9V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V6ZM4 6V5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 13A3 3 0 1 1 9 13A3 3 0 1 1 15 13Z" stroke="currentColor" stroke-linecap="round"/><path d="M18 6H5.07C4.48 6 4 5.52 4 4.93C4 4.4 4.39 3.94 4.92 3.87L15.72 2.33C16.92 2.15 18 3.09 18 4.31V6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 19H14" stroke="currentColor" stroke-linecap="round"/>',delivery:'<path d="M15.58 3.38L17.58 4.43C19.73 5.56 20.81 6.13 21.4 7.14C22 8.15 22 9.42 22 11.94V12.06C22 14.58 22 15.85 21.4 16.86C20.81 17.87 19.73 18.44 17.58 19.57L15.58 20.62C13.82 21.54 12.94 22 12 22C11.06 22 10.18 21.54 8.42 20.62L6.42 19.57C4.27 18.44 3.19 17.87 2.6 16.86C2 15.85 2 14.58 2 12.06V11.94C2 9.42 2 8.15 2.6 7.14C3.19 6.13 4.27 5.56 6.42 4.43L8.42 3.38C10.18 2.46 11.06 2 12 2C12.94 2 13.82 2.46 15.58 3.38Z" stroke="currentColor" stroke-linecap="round"/><path d="M21 7.5L17 9.5M12 12L3 7.5M12 12V21.5M12 12C12 12 14.74 10.63 16.5 9.75C16.7 9.65 17 9.5 17 9.5M17 9.5V13M17 9.5L7.5 4.5" stroke="currentColor" stroke-linecap="round"/>',cart:'<path d="M7.5 18C8.33 18 9 18.67 9 19.5C9 20.33 8.33 21 7.5 21C6.67 21 6 20.33 6 19.5C6 18.67 6.67 18 7.5 18Z" stroke="currentColor"/><path d="M16.5 18C17.33 18 18 18.67 18 19.5C18 20.33 17.33 21 16.5 21C15.67 21 15 20.33 15 19.5C15 18.67 15.67 18 16.5 18Z" stroke="currentColor"/><path d="M2 3L2.26 3.09C3.56 3.55 4.21 3.78 4.59 4.32C4.96 4.87 4.96 5.59 4.96 7.04V9.76C4.96 12.7 5.02 13.67 5.89 14.59C6.75 15.5 8.15 15.5 10.94 15.5H16.24C17.8 15.5 18.58 15.5 19.13 15.05C19.69 14.6 19.84 13.84 20.16 12.31L20.66 9.88C21 8.14 21.18 7.27 20.73 6.7C20.29 6.12 18.77 6.12 17.09 6.12H4.96" stroke="currentColor" stroke-linecap="round"/>',product:'<path d="M3.79 12.03C4.33 9.34 4.6 8 5.49 7.14C5.65 6.98 5.83 6.83 6.02 6.7C7.04 6 8.41 6 11.15 6H12.85C15.59 6 16.96 6 17.98 6.7C18.17 6.83 18.35 6.98 18.51 7.14C19.4 8 19.67 9.34 20.21 12.03C20.98 15.89 21.36 17.81 20.48 19.18C20.31 19.43 20.13 19.66 19.92 19.86C18.75 21 16.78 21 12.85 21H11.15C7.22 21 5.25 21 4.08 19.86C3.87 19.66 3.69 19.43 3.53 19.18C2.64 17.81 3.02 15.89 3.79 12.03Z" stroke="currentColor"/><path d="M9 6V5C9 3.34 10.34 2 12 2C13.66 2 15 3.34 15 5V6" stroke="currentColor" stroke-linecap="round"/><path d="M9 9H9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 9H15" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',globe:'<path d="M22 12C22 13.31 21.74 14.61 21.24 15.83C20.74 17.04 20 18.14 19.07 19.07C18.14 20 17.04 20.74 15.83 21.24C14.61 21.74 13.31 22 12 22C10.69 22 9.39 21.74 8.17 21.24C6.96 20.74 5.86 20 4.93 19.07C4 18.14 3.26 17.04 2.76 15.83C2.26 14.61 2 13.31 2 12C2 10.69 2.26 9.39 2.76 8.17C3.26 6.96 4 5.86 4.93 4.93C5.86 4 6.96 3.26 8.17 2.76C9.39 2.26 10.69 2 12 2C13.31 2 14.61 2.26 15.83 2.76C17.04 3.26 18.14 4 19.07 4.93C20 5.86 20.74 6.96 21.24 8.17C21.74 9.39 22 10.69 22 12L22 12Z" stroke="currentColor"/><path d="M16 12C16 13.31 15.9 14.61 15.7 15.83C15.49 17.04 15.2 18.14 14.83 19.07C14.46 20 14.02 20.74 13.53 21.24C13.05 21.74 12.53 22 12 22C11.47 22 10.95 21.74 10.47 21.24C9.98 20.74 9.54 20 9.17 19.07C8.8 18.14 8.51 17.04 8.3 15.83C8.1 14.61 8 13.31 8 12C8 10.69 8.1 9.39 8.3 8.17C8.51 6.96 8.8 5.86 9.17 4.93C9.54 4 9.98 3.26 10.47 2.76C10.95 2.26 11.47 2 12 2C12.53 2 13.05 2.26 13.53 2.76C14.02 3.26 14.46 4 14.83 4.93C15.2 5.86 15.49 6.96 15.7 8.17C15.9 9.39 16 10.69 16 12L16 12Z" stroke="currentColor"/><path d="M2 12H22" stroke="currentColor" stroke-linecap="round"/>',location:'<path d="M4 10.14C4 5.65 7.58 2 12 2C16.42 2 20 5.65 20 10.14C20 14.61 17.45 19.81 13.46 21.67C12.53 22.11 11.47 22.11 10.54 21.67C6.55 19.81 4 14.61 4 10.14Z" stroke="currentColor"/><path d="M9 10A3 3 0 1 0 15 10A3 3 0 1 0 9 10Z" stroke="currentColor"/>',calendar:'<path d="M2 12C2 8.23 2 6.34 3.17 5.17C4.34 4 6.23 4 10 4H14C17.77 4 19.66 4 20.83 5.17C22 6.34 22 8.23 22 12V14C22 17.77 22 19.66 20.83 20.83C19.66 22 17.77 22 14 22H10C6.23 22 4.34 22 3.17 20.83C2 19.66 2 17.77 2 14V12Z" stroke="currentColor"/><path d="M7 4V2.5" stroke="currentColor" stroke-linecap="round"/><path d="M17 4V2.5" stroke="currentColor" stroke-linecap="round"/><path d="M2.5 9H21.5" stroke="currentColor" stroke-linecap="round"/><path d="M17 13H17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 13H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 13H7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M17 17.02H17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 17.02H12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 17.02H7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',award:'<path d="M6 9A6 6 0 1 0 18 9A6 6 0 1 0 6 9Z" stroke="currentColor"/><path d="M9.75 9A2.25 2.25 0 1 0 14.25 9A2.25 2.25 0 1 0 9.75 9Z" stroke="currentColor"/><path d="M8.5 13.9L7 21L12 18.5L17 21L15.5 13.9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>',receipt:'<path d="M16.75 2H7.25C6.09 2 5.51 2 5.04 2.16C4.15 2.47 3.46 3.19 3.16 4.1C3 4.58 3 5.18 3 6.37V20.37C3 21.23 3.98 21.69 4.61 21.12C4.97 20.78 5.53 20.78 5.89 21.12L6.38 21.56C7.02 22.15 7.98 22.15 8.63 21.56C9.27 20.97 10.23 20.97 10.88 21.56C11.52 22.15 12.48 22.15 13.13 21.56C13.77 20.97 14.73 20.97 15.38 21.56C16.02 22.15 16.98 22.15 17.63 21.56L18.11 21.12C18.47 20.78 19.03 20.78 19.39 21.12C20.02 21.69 21 21.23 21 20.37V6.37C21 5.18 21 4.58 20.84 4.1C20.54 3.19 19.85 2.47 18.96 2.16C18.49 2 17.91 2 16.75 2Z" stroke="currentColor"/><path d="M10.5 11L17 11" stroke="currentColor" stroke-linecap="round"/><path d="M7 11H7.5" stroke="currentColor" stroke-linecap="round"/><path d="M7 7.5H7.5" stroke="currentColor" stroke-linecap="round"/><path d="M7 14.5H7.5" stroke="currentColor" stroke-linecap="round"/><path d="M10.5 7.5H17" stroke="currentColor" stroke-linecap="round"/><path d="M10.5 14.5H17" stroke="currentColor" stroke-linecap="round"/>',key:'<path d="M8.86 19.33L7.62 20.57C7.3 20.88 6.86 21.04 6.41 20.99L4.32 20.76C4.1 20.73 3.89 20.63 3.73 20.48L3.52 20.27C3.37 20.11 3.27 19.9 3.24 19.68L3.01 17.59C2.96 17.14 3.12 16.7 3.43 16.38L7.15 12.67C7.41 12.4 7.5 12 7.4 11.63C6.82 9.34 7.42 6.81 9.21 5.02C11.91 2.33 16.28 2.33 18.98 5.02C21.67 7.72 21.67 12.09 18.98 14.79C17.19 16.58 14.66 17.18 12.37 16.6C12 16.5 11.6 16.58 11.33 16.85L8.86 19.33ZM8.86 19.33L7.11 17.6M12.59 8.59C13.37 7.8 14.63 7.8 15.41 8.59C16.2 9.37 16.2 10.63 15.41 11.41C14.63 12.2 13.37 12.2 12.59 11.41C11.8 10.63 11.8 9.37 12.59 8.59Z" stroke="currentColor" stroke-linecap="round"/>',devices:'<path d="M4 10C4 6.23 4 4.34 5.17 3.17C6.34 2 8.23 2 12 2C15.77 2 17.66 2 18.83 3.17C20 4.34 20 6.23 20 10V14C20 17.77 20 19.66 18.83 20.83C17.66 22 15.77 22 12 22C8.23 22 6.34 22 5.17 20.83C4 19.66 4 17.77 4 14V10Z" stroke="currentColor"/><path d="M15 19H9" stroke="currentColor" stroke-linecap="round"/>',support:'<path d="M12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2C6.48 2 2 6.48 2 12C2 13.6 2.38 15.11 3.04 16.45C3.22 16.81 3.28 17.22 3.18 17.6L2.58 19.83C2.32 20.79 3.21 21.68 4.17 21.42L6.4 20.82C6.78 20.72 7.19 20.78 7.55 20.96C8.89 21.62 10.4 22 12 22Z" stroke="currentColor"/><path d="M8 10.5H16" stroke="currentColor" stroke-linecap="round"/><path d="M8 14H13.5" stroke="currentColor" stroke-linecap="round"/>'};export{r as FORM_OPTION_ICON_PATHS};
@@ -0,0 +1 @@
1
+ import{a,b as r,c as s,d as t}from"./chunk-W5WWCOOW.js";import"./chunk-4FHWXBOB.js";export{a as MRZ_BAND_DEFAULTS,s as MRZ_LINES_DEFAULTS,r as detectMrzBand,t as isMrzLayout};