@incodetech/web 2.4.0 → 2.4.1-agentic.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +1 -4
- package/dist/{GeolocationPermissionDenied-NCe8TBk4.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/{af-ZA-BbU0OdlG.js → af-ZA-BKpmmWDe.js} +165 -869
- package/dist/{ageVerification-B5ownHdO.js → ageVerification-CtuJDuRV.js} +11 -8
- package/dist/{am-BuvQtV50.js → am-CW_ro5Ws.js} +165 -869
- package/dist/antifraud/antifraud.es.js +5 -4
- package/dist/applyStudioConfig-C6-Ak0q6.js +127 -0
- package/dist/{ar-AE-Bdk7NfI2.js → ar-AE-D9h8UMbm.js} +165 -869
- package/dist/{ar-Ba-wMBXP.js → ar-B5ToweVl.js} +166 -870
- package/dist/{ar-EG-C9FVwsEB.js → ar-EG-DQqE9B26.js} +165 -869
- package/dist/assertClassBrand-DJr5K93j.js +17 -0
- package/dist/asset-Ctwd_20H.js +355 -0
- package/dist/authentication/authentication.es.js +7 -5
- package/dist/{autoFocusTitle-BQltp_Nn.js → autoFocusTitle-CzaCWWW5.js} +2 -2
- package/dist/{az-DHRJfgCV.js → az-DAZq-CQj.js} +165 -869
- package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
- package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DkYLOege.js} +1 -1
- package/dist/base.css +1 -1
- package/dist/{baseTutorial-CL2A9XLh.js → baseTutorial-CF6WiVYt.js} +10 -7
- package/dist/{bn-BfE2MHPG.js → bn-DRTyq2Y9.js} +165 -869
- package/dist/{bottomSheet-DU4SrMOH.js → bottomSheet-DylE2INk.js} +3 -3
- package/dist/{bs-Ck9dCVYh.js → bs-B8q0B86-.js} +164 -868
- package/dist/{ca-yJUG5zqw.js → ca-DvsHXRB-.js} +164 -868
- package/dist/cameraOverlay-DNf0PEF4.js +2 -0
- package/dist/{cameraOverlayHeader-Bp7NCrl9.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
- package/dist/{cameraView-CLlWARBI.js → cameraView-D9ZxLKtA.js} +13 -14
- package/dist/capture-0jMDSGCE.js +762 -0
- package/dist/{tutorial-Bwt7rxfr.js → capture-BlGlXoTx.js} +212 -51
- package/dist/capture-DKBA5j5A.js +3 -0
- package/dist/capture-D_Dwrj1F.js +2 -0
- package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
- package/dist/captureFocusContext-9789qOe3.js +729 -0
- package/dist/captureFooter-B6WUFQCV.js +47 -0
- package/dist/{ceb-oov4R9JM.js → ceb-pvlomXHV.js} +165 -869
- package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
- package/dist/{check-icon-BpjpKqhJ.js → check-icon-BdHltEK6.js} +1 -1
- package/dist/{checkbox-DbYUeTao.js → checkbox-BwUQ0Rs9.js} +4 -4
- package/dist/chooser-CmG71-lh.js +1589 -0
- package/dist/connectionError-DexRpKWs.js +90 -0
- package/dist/consent/consent.es.js +19 -14
- package/dist/consent/styles.css +1 -1
- package/dist/consent/styles.css.js +1 -1
- package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CQMfCnE9.js} +1 -1
- package/dist/{countrySelector-El6_zLMs.js → countrySelector-C0OEKMqL.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
- package/dist/{cs-CZ-B9jWzmE_.js → cs-CZ-GgvnJLMj.js} +164 -868
- package/dist/{cs-ovOFxGB0.js → cs-DB5PLEdt.js} +164 -868
- package/dist/curp-validation/curp-validation.es.js +34 -19
- package/dist/curp-validation/styles.css +1 -1
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/{customFields-BlYfgYje.js → customFields-DQgRumW0.js} +17 -12
- package/dist/{customWatchlist-BsBTzCCN.js → customWatchlist-BbC0fA-6.js} +8 -7
- package/dist/{da-DK-C0l5MGWM.js → da-DK-ZhpcfE_F.js} +164 -868
- package/dist/{dashboardTheme-MVQerNVn.js → dashboardTheme-DtXsx9IK.js} +22 -23
- package/dist/{dateInputComposed-DXCc1HRe.js → dateInputComposed-1IcnucPq.js} +5 -5
- package/dist/dateInputComposed-BFlCk-sg.js +1 -0
- package/dist/{de-B0IRPjwJ.js → de-DEBjzaow.js} +164 -868
- package/dist/{denied-wXsbFjy_.js → denied-CwdVWAUw.js} +12 -9
- package/dist/devWarn-CW20j1Qd.js +9 -0
- package/dist/deviceWallet-CMjguFJO.js +37 -0
- package/dist/{digitalIdRedirect-CF7zG3wS.js → digitalIdRedirect-MNty16-5.js} +4 -4
- package/dist/{digitalIdUpload-CbPm090z.js → digitalIdUpload-CUzTaoaI.js} +39 -15
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -1
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-CgpHXm_8.js → documentCapture-BUMyJ8vw.js} +115 -44
- package/dist/documentCapture-rECLkwpi.js +2 -0
- package/dist/dropdownComposed-C9sLQE6i.js +1 -0
- package/dist/{dropdownComposed-qb9GgX5X.js → dropdownComposed-x3ewHxbT.js} +4 -4
- package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekyb/styles.css.js +1 -1
- package/dist/ekybModule-B5IEiSyi.js +2 -0
- package/dist/{ekybModule-BgZIkVVl.js → ekybModule-C5hEBLMs.js} +27 -23
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekyc/styles.css.js +1 -1
- package/dist/ekycModule-B7OFnP3H.js +2 -0
- package/dist/{ekycModule-DEVrRrnH.js → ekycModule-TVKk0qdS.js} +71 -44
- package/dist/{el-Do7wYurZ.js → el-Dplr_D5N.js} +164 -868
- package/dist/{el-GR-BZEKLkvc.js → el-GR-IZ4reOR7.js} +164 -868
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-DE6FJfvu.js → electronic-signature-BMda_cf3.js} +49 -34
- package/dist/email/email.es.js +15 -11
- package/dist/{emailInput-Cp77LavN.js → emailInput-BI8gWC0D.js} +4 -4
- package/dist/{en-DG-Cvwm0nfj.js → en-DG-C6tsWvHi.js} +165 -869
- package/dist/{en-CJ6l68pH.js → en-Db1L_u7B.js} +165 -869
- package/dist/{errorContent-YeJNVb1U.js → errorContent-pPAgyy2i.js} +10 -7
- package/dist/es-419-DxKrJq7W.js +5 -0
- package/dist/{es-rayGAvsH.js → es-C5unKsaF.js} +164 -868
- package/dist/{es-ES-B8h3jMgN.js → es-ES-sHbsufzT.js} +164 -868
- package/dist/{es-MX-DA__jQOC.js → es-MX-Cd_DCR0A.js} +164 -868
- package/dist/{et-DvX7tm-R.js → et-BoGq2cx8.js} +165 -869
- package/dist/{expiredId-CsKNCK5M.js → expiredId-DWjw94rT.js} +12 -8
- package/dist/extensibility.es.js +100 -55
- package/dist/{fa-IR-DfrzWcH0.js → fa-IR-DuUxGXrf.js} +165 -869
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -1
- package/dist/face-match/styles.css.js +1 -1
- package/dist/faceMatch-B2aMz3X2.js +2 -0
- package/dist/{faceMatch-Bqspq0cw.js → faceMatch-DV7NxYu_.js} +15 -20
- package/dist/{fi-FI-CcFDkeiE.js → fi-FI-DMOBNTjA.js} +164 -868
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-BY2XXsp3.js +2 -0
- package/dist/{fieldComparison-CmQN2MEj.js → fieldComparison-CFLU1h6n.js} +15 -11
- package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
- package/dist/{finalSuccessScreen-1Ea3wZWM.js → finalSuccessScreen-C50L96j9.js} +20 -16
- package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
- package/dist/flipAnimation-8x-qdtF_.js +33 -0
- package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
- package/dist/flow/flow.es.js +209 -186
- package/dist/flow/shell/styles.css +1 -1
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -1
- package/dist/{formField-DoXWcoL9.js → formField-CfQKYeGF.js} +19 -11
- package/dist/{fr-CA-CeL7RQc-.js → fr-CA-DZ8jlsp3.js} +164 -868
- package/dist/{fr-DtdqfaF8.js → fr-DSR-AP0e.js} +164 -868
- package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-DOphQZg2.js} +1 -1
- package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-S6PcS9_m.js} +1 -1
- package/dist/geolocation/geolocation.es.js +15 -12
- package/dist/government-validation/government-validation.es.js +7 -6
- package/dist/{he-CPeNHo0I.js → he-N5dfJeyd.js} +165 -869
- package/dist/helpButtonConfig-CjbrBQaV.js +24 -0
- package/dist/{hi-DIbkmie6.js → hi-JR6K9zbd.js} +165 -869
- package/dist/{hmn-CscGik4W.js → hmn-j2YA7FxW.js} +165 -869
- package/dist/{homeScreen-C0j_8KKD.js → homeScreen-C3pPw52y.js} +24 -13
- package/dist/{incodeComponent-CMBg2gpq.js → hooks-BFP0WaJM.js} +192 -262
- package/dist/{hr-DWUsAZnf.js → hr-8cOdwB0t.js} +164 -868
- package/dist/{ht-DgaboG3c.js → ht-DDNL4C__.js} +165 -869
- package/dist/{hu-Lz2qVC3S.js → hu-CynQQUFQ.js} +166 -870
- package/dist/i18n-Dp014ljG.js +942 -0
- package/dist/{icons-OQDvn5r2.js → icons-c-hFaG4L.js} +153 -56
- package/dist/id/id.es.js +101 -197
- package/dist/id/styles.css +1 -1
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
- package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
- package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-BJ96se7u.js} +1 -1
- package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
- package/dist/{id-C5eOEjgu.js → id-o_Yg0n8W.js} +165 -869
- package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
- package/dist/id-selfie-flow/styles.css +1 -1
- package/dist/id-verification/id-verification.es.js +6 -5
- package/dist/idFlipTransition-DXdtXYza.js +158 -0
- package/dist/{idOcr-C-kHrU_d.js → idOcr-CjqfkRJ7.js} +18 -14
- package/dist/identity-reuse/identity-reuse.es.js +28 -18
- package/dist/incodeComponent-DtKh-UUm.js +237 -0
- package/dist/incodeModule-DCHXAeYU.js +41 -0
- package/dist/index.es.js +5 -3
- package/dist/{inputComposed-CR1IW-mQ.js → inputComposed-CmVsaHOa.js} +4 -4
- package/dist/inputComposed-DvGrso7g.js +1 -0
- package/dist/{it-CQGuLrxZ.js → it-BXevrtHn.js} +165 -869
- package/dist/{ja-CBD-jOkP.js → ja-DiTXnTx-.js} +165 -869
- package/dist/{ja-JP-Dgbzh2aL.js → ja-JP-D1IRWR-p.js} +166 -870
- package/dist/{jv-C-E67yDR.js → jv-Us70GzGp.js} +164 -868
- package/dist/{ka-CcCqDmzw.js → ka-BSsWQ4yU.js} +165 -869
- package/dist/{kk-B_5WgCfa.js → kk-D5R6r4H7.js} +164 -868
- package/dist/{km-CucJh4em.js → km-CCCb2Rnt.js} +171 -875
- package/dist/{ko-KP-BSjl3hdX.js → ko-KP-JF4khv1Y.js} +165 -869
- package/dist/{ko-BEd2Jz4C.js → ko-kQioCg2w.js} +165 -869
- package/dist/{ky-Bb9MfmYr.js → ky-CLOemVjC.js} +164 -868
- package/dist/kyb-checks/kyb-checks.es.js +2 -0
- package/dist/kyb-checks/styles.css +2 -0
- package/dist/kyb-checks/styles.css.js +1 -0
- package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
- package/dist/kybChecksModule-r3MIpFhS.js +2 -0
- package/dist/{lo-CD_Ehkf5.js → lo-tzHUt1CQ.js} +165 -869
- package/dist/{lt-DHkwvJ8e.js → lt-B2ZI-Cgu.js} +165 -869
- package/dist/{lv-CPuPO_jU.js → lv-BJnxtSYw.js} +165 -869
- package/dist/{mandatoryConsent-BHMWyBUp.js → mandatoryConsent-BiQuEZRu.js} +23 -16
- package/dist/{manualCaptureButton-D_tGP6tv.js → manualCaptureButton-BRSmPTeR.js} +8 -7
- package/dist/{manualCaptureButton-D5XP3Oaf.js → manualCaptureButton-Dw0MMSkc.js} +17 -12
- package/dist/{mk-DO85nJp4.js → mk-Cj7Iw2Q4.js} +165 -869
- package/dist/{mn-D5fhne6X.js → mn-CA_rNxtz.js} +164 -868
- package/dist/{ms-D_FFGDor.js → ms-BydA1Zjz.js} +164 -868
- package/dist/{my-D1JKF20F.js → my-gFKufKaG.js} +165 -869
- package/dist/{nb-NO-oEMuavpl.js → nb-NO-CDsGQbOZ.js} +164 -868
- package/dist/{ne-Ds3QEMQ4.js → ne-Cyfi0vFI.js} +165 -869
- package/dist/{nl-DGyLucC1.js → nl-e1gbmAFO.js} +165 -869
- package/dist/{numberedStep-CvbL3ht2.js → numberedStep-CeN77hnQ.js} +1 -1
- package/dist/{optionAccessibleLabel-SwDCMYKc.js → optionAccessibleLabel-BTUieMxH.js} +8 -7
- package/dist/{otpInput-DIUf37GR.js → otpInput-D3L3QhnR.js} +24 -17
- package/dist/{page-BGUJaLaG.js → page-U6jZ7BBI.js} +85 -58
- package/dist/{incode-logo-BBYHyycP.js → pageUiConfig-Qf6ItVv9.js} +28 -4
- package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
- package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
- package/dist/{passwordInputComposed-Cd-3kyua.js → passwordInputComposed-CW_1DcB8.js} +5 -5
- package/dist/{pdf-BKHLi5Ac.js → pdf-Bd5QplFS.js} +2 -17
- package/dist/{pdfViewer-EDgSzrdc.js → pdfViewer-BrqSEtbr.js} +11 -14
- package/dist/pdfViewer-rDnnHzmw.js +2 -0
- package/dist/{permissions-Vh-QG2Tj.js → permissions-KUDhffd9.js} +36 -23
- package/dist/phone/phone.es.js +16 -12
- package/dist/{phoneInputComposed-wZaDiedP.js → phoneInputComposed-DlJMTavK.js} +49 -12
- package/dist/{pl-nEtI_VZQ.js → pl-BSMcCWS-.js} +164 -868
- package/dist/preloadableLazy-C8_OYaTC.js +37 -0
- package/dist/{processing-SzW6Mfrg.js → processing-B5EH7yNg.js} +2 -2
- package/dist/{progressBar-KEnpi8uj.js → progressBar-CSpS29pV.js} +2 -2
- package/dist/{pt-EmaaUJGm.js → pt-BNFC2quK.js} +165 -869
- package/dist/{pt-BR-BkLAWIbx.js → pt-BR-bH8DC2gH.js} +165 -869
- package/dist/{pt-PT-Py_4_Z05.js → pt-PT-B8PXmgwU.js} +165 -869
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/{radioGroupComposed-CRr_78He.js → radioGroupComposed-CW8ElYSR.js} +4 -4
- package/dist/radioGroupComposed-flIYNffL.js +1 -0
- package/dist/realtimeFeedbackConfig-tBX94SOm.js +16 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +51 -50
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-oiLvm6xq.js} +1 -1
- package/dist/{reload-icon-elAFo9-k.js → reload-icon-FD2e9Wet.js} +1 -1
- package/dist/{resendTimer-EhLnxeID.js → resendTimer-D1H3gwkI.js} +2 -2
- package/dist/richText-sUdTiRDE.js +1761 -0
- package/dist/{ro-BKmZhZl1.js → ro-DnN8QNYa.js} +165 -869
- package/dist/{ru-BYQKvZtn.js → ru-DAwUFXHq.js} +165 -869
- package/dist/{ru-RU-BdhCs3uF.js → ru-RU-Coxt0VCU.js} +164 -868
- package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-OdNh1mqY.js} +1 -1
- package/dist/selfie/selfie.es.js +36 -14
- package/dist/selfie/styles.css +1 -1
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +18 -13
- package/dist/{sk-CZipa19k.js → sk-AB8sSlNw.js} +166 -870
- package/dist/{sl-_sx3gvEv.js → sl-6Dfzfi7s.js} +165 -869
- package/dist/{smsTabContent-DHuEgl3E.js → smsTabContent-CBEKgzFv.js} +32 -23
- package/dist/{so-D3T7YyfC.js → so-X5BdrDvV.js} +165 -869
- package/dist/spacer-Jaru_3sb.js +82 -0
- package/dist/spinner-51btbot0.js +407 -0
- package/dist/{sr-D0lglPAd.js → sr-JHjMcbGs.js} +164 -868
- package/dist/{sr-Latn-Dy2rgSEv.js → sr-Latn-DgT7eTG2.js} +171 -875
- package/dist/sr-YU-BBhB_G63.js +5 -0
- package/dist/{sv-SE-VsDd4VP5.js → sv-SE-CvX8mC8T.js} +164 -868
- package/dist/{sw-D2VfTj6a.js → sw-CN0TdnY4.js} +165 -869
- package/dist/{th-BzmKSnbD.js → th-BmFntKib.js} +165 -869
- package/dist/{th-TH-BU_NqN97.js → th-TH-CWr4z3JK.js} +165 -869
- package/dist/themes/dark.css +1 -1
- package/dist/themes/light.css +1 -1
- package/dist/{tl-PH-BJJNA9rs.js → tl-PH-BRIbtBRN.js} +165 -869
- package/dist/{tl-GXkKKnzb.js → tl-rzkk5P_n.js} +165 -869
- package/dist/{tr-C1MJnwIJ.js → tr-DKuVBwqW.js} +166 -870
- package/dist/{transitionSpinner-Bkjw-WAJ.js → transitionSpinner-Di0XBAix.js} +5 -4
- package/dist/tutorial-C9psDR2i.js +28 -0
- package/dist/types/ae-signature.d.ts +10 -1
- package/dist/types/antifraud.d.ts +10 -1
- package/dist/types/authentication.d.ts +10 -1
- package/dist/types/certificate-issuance.d.ts +10 -1
- package/dist/types/consent.d.ts +10 -1
- package/dist/types/cross-document-data-match.d.ts +10 -1
- package/dist/types/curp-validation.d.ts +10 -1
- package/dist/types/document-capture.d.ts +10 -1
- package/dist/types/dynamic-forms.d.ts +10 -1
- package/dist/types/ekyb.d.ts +10 -1
- package/dist/types/ekyc.d.ts +10 -1
- package/dist/types/electronic-signature.d.ts +10 -1
- package/dist/types/email.d.ts +10 -1
- package/dist/types/extensibility.d.ts +147 -21
- package/dist/types/face-match.d.ts +10 -1
- package/dist/types/field-comparison.d.ts +10 -1
- package/dist/types/fiscal-qr.d.ts +10 -1
- package/dist/types/flow.d.ts +22 -2
- package/dist/types/geolocation.d.ts +10 -1
- package/dist/types/government-validation.d.ts +10 -1
- package/dist/types/id-selfie-flow.d.ts +10 -1
- package/dist/types/id-verification.d.ts +10 -1
- package/dist/types/id.d.ts +10 -1
- package/dist/types/identity-reuse.d.ts +10 -1
- package/dist/types/index.d.ts +92 -10
- package/dist/types/kyb-checks.d.ts +209 -0
- package/dist/types/phone.d.ts +10 -1
- package/dist/types/qe-signature.d.ts +10 -1
- package/dist/types/redirect-to-mobile.d.ts +1 -1
- package/dist/types/selfie.d.ts +10 -1
- package/dist/types/signature.d.ts +10 -1
- package/dist/types/video-selfie.d.ts +1 -1
- package/dist/types/watchlist.d.ts +10 -1
- package/dist/types/workflow.d.ts +10 -1
- package/dist/{typography-DKXgPZsU.js → typography-CiGhKJGx.js} +2 -2
- package/dist/uiConfig-BJAuZQWc.js +77 -0
- package/dist/{uk-DFL26I5l.js → uk-CXjqq4lX.js} +164 -868
- package/dist/{uk-UA-3o9Xbam-.js → uk-UA-BIE9WByU.js} +165 -869
- package/dist/{ur-DXJAfyQA.js → ur-vNGesC3r.js} +165 -869
- package/dist/useCameraPreview-Bd7AYE9h.js +93 -0
- package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
- package/dist/useIsDarkTheme-Bu9CvKxW.js +27 -0
- package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BBCNkJmc.js} +2 -2
- package/dist/{uz-BXvj8vlH.js → uz-Gmw1XRgv.js} +165 -869
- package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
- package/dist/{verificationResult-BVrKFRMf.js → verificationResult-Clxdxm_s.js} +18 -10
- package/dist/{vi-DRfsxu1a.js → vi-DTxxRUw0.js} +165 -869
- package/dist/video-selfie/styles.css +1 -1
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +103 -67
- package/dist/watchlist/watchlist.es.js +8 -7
- package/dist/{watchlistForBusiness-CyAmoIrv.js → watchlistForBusiness-CpFp2EYX.js} +44 -14
- package/dist/{withEndScreenTexts-MHocOODe.js → withEndScreenTexts-Bd3mof3s.js} +225 -45
- package/dist/workflow/styles.css +1 -1
- package/dist/workflow/workflow.es.js +32 -21
- package/dist/{zh-CN-DMfj1_Nh.js → zh-CN-aB48G_R1.js} +164 -868
- package/dist/{zh-Ct8GKGhw.js → zh-DjtyfO4e.js} +164 -868
- package/dist/{zh-HANT-NZFdeKuE.js → zh-HANT-8p8SH8C3.js} +165 -869
- package/dist/{zh-TW-8wkrOHM8.js → zh-TW-CCsz9gKq.js} +165 -869
- package/package.json +35 -10
- package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
- package/dist/cameraOverlay-CBTjtbNP.js +0 -2
- package/dist/connectionError-DX3wd4vm.js +0 -45
- package/dist/dateInputComposed-BzW0cv1o.js +0 -1
- package/dist/deviceWallet-CImevqFB.js +0 -66
- package/dist/documentCapture-CmWd-wNL.js +0 -2
- package/dist/dropdownComposed-B76j7pz9.js +0 -1
- package/dist/ekybModule-Bshc_ANM.js +0 -2
- package/dist/ekycModule-MmJYwp1l.js +0 -2
- package/dist/es-419-DlCbbvcc.js +0 -3145
- package/dist/esm-15CISqPe.js +0 -430
- package/dist/faceMatch-BVSCpwmA.js +0 -2
- package/dist/fieldComparison-nFj9pSeZ.js +0 -2
- package/dist/flipAnimation-DY9K2zel.js +0 -3048
- package/dist/incodeModule-D6oey1Mb.js +0 -68
- package/dist/inputComposed-45HxIMO0.js +0 -1
- package/dist/pdfViewer-CFkuHOV4.js +0 -2
- package/dist/radioGroupComposed-DJ71F9KK.js +0 -1
- package/dist/richText-aCnLd3j2.js +0 -1549
- package/dist/spacer-BvrtrwSF.js +0 -741
- package/dist/spinner-CkN8sW0d.js +0 -88
- package/dist/sr-YU-UEhyvXZ-.js +0 -3149
- package/dist/statusPage-3zRxvkSE.js +0 -36
- package/dist/uiConfig-BA7U_zLr.js +0 -2589
- package/dist/useCaptureHelpButton-CSG3fO48.js +0 -86
- package/dist/useCoverMedia-VLw3OYN_.js +0 -149
- /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
- /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
- /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
- /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
- /package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-RBVGM1D_.js} +0 -0
- /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-E9wRIIo9.js} +0 -0
- /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
- /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
- /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
- /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
- /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
- /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
- /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-B819EhaL.js} +0 -0
- /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
- /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-DzBNMoKS.js} +0 -0
- /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-Benduf-R.js} +0 -0
- /package/dist/{purify.es-0fCPkEV1.js → purify.es-CSPoFViI.js} +0 -0
- /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
|
@@ -0,0 +1,1589 @@
|
|
|
1
|
+
import { i as useTranslation } from "./i18n-Dp014ljG.js";
|
|
2
|
+
import { b as u, d as T, m as d, w as k } from "./vendor-preact-DHGqBGMH.js";
|
|
3
|
+
import { f as CloseIcon, p as ChevronRightIcon, t as LightningIcon, x as PrizmaButton } from "./icons-c-hFaG4L.js";
|
|
4
|
+
import { n as cn, t as Spacer } from "./spacer-Jaru_3sb.js";
|
|
5
|
+
import { t as Page } from "./page-U6jZ7BBI.js";
|
|
6
|
+
import { a as useAnimationData } from "./spinner-51btbot0.js";
|
|
7
|
+
import { t as countryDefinitions } from "./countryDefinitions-RBVGM1D_.js";
|
|
8
|
+
import { t as BaseTutorial } from "./baseTutorial-CF6WiVYt.js";
|
|
9
|
+
import "./captureFocusContext-9789qOe3.js";
|
|
10
|
+
import "./flipCapturedCardEligibility-DLr9F2g2.js";
|
|
11
|
+
import { t as countryFlagEmoji } from "./countryFlag-CQMfCnE9.js";
|
|
12
|
+
import "./captureButtonIcon-A9kn2E_m.js";
|
|
13
|
+
import { t as CountrySelector } from "./countrySelector-C0OEKMqL.js";
|
|
14
|
+
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
15
|
+
function VerificationOptionCardList({ children }) {
|
|
16
|
+
return /* @__PURE__ */ u("div", {
|
|
17
|
+
class: "IncodeVerificationOptionCardList",
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function VerificationOptionCard({ icon: Icon, iconSrc, title, description, testId, onClick, tag }) {
|
|
22
|
+
return /* @__PURE__ */ u("button", {
|
|
23
|
+
type: "button",
|
|
24
|
+
class: "IncodeVerificationOptionCard",
|
|
25
|
+
onClick,
|
|
26
|
+
"data-testid": testId,
|
|
27
|
+
"aria-labelledby": `${testId}-label`,
|
|
28
|
+
"aria-describedby": description ? `${testId}-description` : void 0,
|
|
29
|
+
children: [/* @__PURE__ */ u("span", {
|
|
30
|
+
class: "IncodeVerificationOptionCardIcon",
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
"data-testid": `${testId}-icon`,
|
|
33
|
+
children: iconSrc ? /* @__PURE__ */ u("img", {
|
|
34
|
+
class: "IncodeVerificationOptionCardImage",
|
|
35
|
+
src: iconSrc,
|
|
36
|
+
alt: "",
|
|
37
|
+
loading: "lazy",
|
|
38
|
+
decoding: "async"
|
|
39
|
+
}) : /* @__PURE__ */ u(Icon, {})
|
|
40
|
+
}), /* @__PURE__ */ u("span", {
|
|
41
|
+
class: "IncodeVerificationOptionCardContent",
|
|
42
|
+
children: [/* @__PURE__ */ u("span", {
|
|
43
|
+
class: "IncodeVerificationOptionCardText",
|
|
44
|
+
children: [/* @__PURE__ */ u("span", {
|
|
45
|
+
id: `${testId}-label`,
|
|
46
|
+
class: "IncodeVerificationOptionCardTitleTagContainer",
|
|
47
|
+
children: [/* @__PURE__ */ u("span", {
|
|
48
|
+
class: "IncodeVerificationOptionCardTitle",
|
|
49
|
+
children: title
|
|
50
|
+
}), tag && /* @__PURE__ */ u(VerificationOptionCardTag, { label: tag })]
|
|
51
|
+
}), description && /* @__PURE__ */ u("span", {
|
|
52
|
+
id: `${testId}-description`,
|
|
53
|
+
class: "IncodeVerificationOptionCardDescription",
|
|
54
|
+
"data-testid": `${testId}-description`,
|
|
55
|
+
children: description
|
|
56
|
+
})]
|
|
57
|
+
}), /* @__PURE__ */ u("span", {
|
|
58
|
+
class: "IncodeVerificationOptionCardArrow",
|
|
59
|
+
"data-testid": "chevron-right-icon",
|
|
60
|
+
children: /* @__PURE__ */ u(ChevronRightIcon, {
|
|
61
|
+
size: 24,
|
|
62
|
+
variant: "m"
|
|
63
|
+
})
|
|
64
|
+
})]
|
|
65
|
+
})]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function VerificationOptionCardTag({ label }) {
|
|
69
|
+
return /* @__PURE__ */ u("div", {
|
|
70
|
+
class: "IncodeVerificationOptionCardTag",
|
|
71
|
+
children: [/* @__PURE__ */ u(LightningIcon, {}), /* @__PURE__ */ u("span", { children: label })]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/modules/id/tutorialHelpers.ts
|
|
76
|
+
/**
|
|
77
|
+
* Resolves the tutorial's animation and copy for one document/side pairing.
|
|
78
|
+
*
|
|
79
|
+
* The three shapes are mutually exclusive, so each returns whole — passport
|
|
80
|
+
* wins over side, matching the order the screen's copy was authored in.
|
|
81
|
+
*/
|
|
82
|
+
function getTutorialContent(t, isPassport, isBack, disclaimerText) {
|
|
83
|
+
let adjustedDisclaimerText;
|
|
84
|
+
if (isBack) adjustedDisclaimerText = t("idv2.backTutorial.disclaimer");
|
|
85
|
+
else adjustedDisclaimerText = t("idv2.tutorial.v2.autocapture");
|
|
86
|
+
if (disclaimerText) adjustedDisclaimerText = disclaimerText;
|
|
87
|
+
if (isPassport) return {
|
|
88
|
+
animationKey: "id.tutorial.passport",
|
|
89
|
+
title: t("idv2.capture.passport.title"),
|
|
90
|
+
subtitle: t("idv2.capture.passport.subtitle"),
|
|
91
|
+
disclaimerText: adjustedDisclaimerText
|
|
92
|
+
};
|
|
93
|
+
if (isBack) return {
|
|
94
|
+
animationKey: "id.tutorial.back",
|
|
95
|
+
title: t("idv2.backTutorial.title"),
|
|
96
|
+
subtitle: t("idv2.backTutorial.subtitle"),
|
|
97
|
+
disclaimerText: adjustedDisclaimerText
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
animationKey: "id.tutorial.front",
|
|
101
|
+
title: t("idv2.tutorial.title"),
|
|
102
|
+
subtitle: t("idv2.tutorial.subtitle"),
|
|
103
|
+
disclaimerText: adjustedDisclaimerText
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/modules/id/tutorial.tsx
|
|
108
|
+
var Tutorial = ({ manager, documentType, mode, isLoading: isLoadingProp, actionsSlot, onContinue, disclaimerText, shouldScaleAnimationContainer = true }) => {
|
|
109
|
+
const { t } = useTranslation();
|
|
110
|
+
const [internalIsLoading, setInternalIsLoading] = d(false);
|
|
111
|
+
const isLoading = isLoadingProp ?? internalIsLoading;
|
|
112
|
+
const isPassport = documentType === "passport";
|
|
113
|
+
const tutorialContent = getTutorialContent(t, isPassport, mode === "back", disclaimerText);
|
|
114
|
+
const { data: animationData, isOverride } = useAnimationData(tutorialContent.animationKey);
|
|
115
|
+
const handleContinue = async () => {
|
|
116
|
+
if (isLoadingProp === void 0) setInternalIsLoading(true);
|
|
117
|
+
if (onContinue) {
|
|
118
|
+
onContinue();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
await manager.nextStep();
|
|
122
|
+
};
|
|
123
|
+
return /* @__PURE__ */ u(BaseTutorial, {
|
|
124
|
+
animationData,
|
|
125
|
+
recolor: !isOverride,
|
|
126
|
+
title: tutorialContent.title,
|
|
127
|
+
subtitle: tutorialContent.subtitle,
|
|
128
|
+
onContinue: handleContinue,
|
|
129
|
+
buttonText: t("idv2.tutorial.startScan"),
|
|
130
|
+
disclaimerText: tutorialContent.disclaimerText,
|
|
131
|
+
isLoading,
|
|
132
|
+
actionsSlot,
|
|
133
|
+
className: cn("IncodeIdTutorial", isPassport ? "IncodeIdTutorialPassport" : "IncodeIdTutorialId"),
|
|
134
|
+
shouldScaleAnimationContainer
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/modules/id/assets/idCardIcon.tsx
|
|
139
|
+
var IdCardIcon = () => {
|
|
140
|
+
return /* @__PURE__ */ u("svg", {
|
|
141
|
+
width: "119",
|
|
142
|
+
height: "86",
|
|
143
|
+
viewBox: "0 0 119 86",
|
|
144
|
+
fill: "none",
|
|
145
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
146
|
+
class: "IncodeIdCardIcon",
|
|
147
|
+
"aria-hidden": "true",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ u("title", { children: "ID Card" }),
|
|
150
|
+
/* @__PURE__ */ u("rect", {
|
|
151
|
+
x: "21.9619",
|
|
152
|
+
y: "21.5",
|
|
153
|
+
width: "75",
|
|
154
|
+
height: "43",
|
|
155
|
+
rx: "2",
|
|
156
|
+
fill: "white"
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ u("rect", {
|
|
159
|
+
x: "27.9619",
|
|
160
|
+
y: "28.5",
|
|
161
|
+
width: "75",
|
|
162
|
+
height: "43",
|
|
163
|
+
rx: "5",
|
|
164
|
+
fill: "#C9C9C9",
|
|
165
|
+
fillOpacity: "0.15"
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ u("path", {
|
|
168
|
+
d: "M20.462 23a3 3 0 0 1 3-3h72a3 3 0 0 1 3 3v40a3 3 0 0 1-3 3h-72a3 3 0 0 1-3-3z",
|
|
169
|
+
fill: "#C9C9C9",
|
|
170
|
+
fillOpacity: "0.8"
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ u("path", {
|
|
173
|
+
d: "M21.896 23.43a2 2 0 0 1 2-2h70.75a2 2 0 0 1 2 2v38.856a2 2 0 0 1-2 2h-70.75a2 2 0 0 1-2-2z",
|
|
174
|
+
fill: "white"
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ u("path", {
|
|
177
|
+
fillRule: "evenodd",
|
|
178
|
+
clipRule: "evenodd",
|
|
179
|
+
d: "M25.882 32.392c0-.55.447-.997.997-.997h64.783a.997.997 0 1 1 0 1.994H26.879a.997.997 0 0 1-.997-.997Z",
|
|
180
|
+
fill: "#C9C9C9",
|
|
181
|
+
fillOpacity: "0.5"
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ u("path", {
|
|
184
|
+
fillRule: "evenodd",
|
|
185
|
+
clipRule: "evenodd",
|
|
186
|
+
d: "M67.742 37.376h-17.94v2.99h17.94zm0 5.98h-17.94v2.99h17.94zm-17.94 5.98h23.92v2.99h-23.92zm7.973 5.98h-7.973v2.99h7.973z",
|
|
187
|
+
fill: "#C9C9C9",
|
|
188
|
+
fillOpacity: "0.5"
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ u("rect", {
|
|
191
|
+
x: "25.8818",
|
|
192
|
+
y: "24.4189",
|
|
193
|
+
width: "30.8967",
|
|
194
|
+
height: "3.98667",
|
|
195
|
+
rx: "1",
|
|
196
|
+
fill: "#C9C9C9",
|
|
197
|
+
fillOpacity: "0.5"
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ u("rect", {
|
|
200
|
+
x: "86.2949",
|
|
201
|
+
y: "24.4907",
|
|
202
|
+
width: "5.98",
|
|
203
|
+
height: "3.93138",
|
|
204
|
+
fill: "#EAF0F6"
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ u("rect", {
|
|
207
|
+
x: "25.9619",
|
|
208
|
+
y: "35.5",
|
|
209
|
+
width: "21",
|
|
210
|
+
height: "24",
|
|
211
|
+
rx: "2",
|
|
212
|
+
class: "IncodeIdCardIconFill"
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ u("path", {
|
|
215
|
+
d: "M33.13 52.42c-.01.776-1.359 1.025-2.265 1.9 1.577 1.135 3.855 1.9 5.432 1.9 1.834 0 3.955-.765 5.532-1.9-.907-.875-2.337-1.122-2.357-1.9 0-.296.001-3.173.003-3.468 0-4.973-6.535-7.932-6.354.08q.007 1.695.009 3.387Z",
|
|
216
|
+
fill: "url(#paint0_linear_id)"
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ u("path", {
|
|
219
|
+
fillRule: "evenodd",
|
|
220
|
+
clipRule: "evenodd",
|
|
221
|
+
d: "M46.888 58.041a2 2 0 0 1-1.926 1.459h-17a2 2 0 0 1-2-2v-1.52c1.762-1.447 6.207-2.658 6.207-2.658 0 1.039 2.58 2.665 4.14 2.691 2.174 0 4.14-1.651 4.14-2.69 0 0 4.916 1.589 5.865 3.303.212.383.404.878.574 1.415Z",
|
|
222
|
+
fill: "#CECECE"
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ u("path", {
|
|
225
|
+
d: "M41.92 45.294a.87.87 0 0 0-.616-1.069l-.091-.024a.87.87 0 0 0-1.037.521l-.697 1.76a.872.872 0 0 0 .688 1.185l.311.044a.87.87 0 0 0 .966-.637z",
|
|
226
|
+
fill: "url(#paint1_linear_id)"
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ u("path", {
|
|
229
|
+
d: "M31.003 45.294a.872.872 0 1 1 1.685-.451l.451 1.684a.872.872 0 1 1-1.685.452z",
|
|
230
|
+
fill: "url(#paint2_linear_id)"
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ u("path", {
|
|
233
|
+
d: "M41.258 45.085c0 3.82-2.694 6.915-4.796 6.915-2.3 0-4.797-3.096-4.797-6.915 0-3.402.265-7.038 4.797-7.038 4.531 0 4.796 3.557 4.796 7.038Z",
|
|
234
|
+
fill: "url(#paint3_linear_id)"
|
|
235
|
+
}),
|
|
236
|
+
/* @__PURE__ */ u("defs", { children: [
|
|
237
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
238
|
+
id: "paint0_linear_id",
|
|
239
|
+
x1: "35.8774",
|
|
240
|
+
y1: "49.2574",
|
|
241
|
+
x2: "35.8774",
|
|
242
|
+
y2: "53.7757",
|
|
243
|
+
gradientUnits: "userSpaceOnUse",
|
|
244
|
+
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
245
|
+
offset: "1",
|
|
246
|
+
stopColor: "white"
|
|
247
|
+
})]
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
250
|
+
id: "paint1_linear_id",
|
|
251
|
+
x1: "39.9447",
|
|
252
|
+
y1: "46.8213",
|
|
253
|
+
x2: "41.2507",
|
|
254
|
+
y2: "46.8737",
|
|
255
|
+
gradientUnits: "userSpaceOnUse",
|
|
256
|
+
children: [/* @__PURE__ */ u("stop", {
|
|
257
|
+
offset: "0.0416667",
|
|
258
|
+
stopColor: "#B5B5B5"
|
|
259
|
+
}), /* @__PURE__ */ u("stop", {
|
|
260
|
+
offset: "1",
|
|
261
|
+
stopColor: "white"
|
|
262
|
+
})]
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
265
|
+
id: "paint2_linear_id",
|
|
266
|
+
x1: "32.0377",
|
|
267
|
+
y1: "46.8216",
|
|
268
|
+
x2: "30.7317",
|
|
269
|
+
y2: "46.874",
|
|
270
|
+
gradientUnits: "userSpaceOnUse",
|
|
271
|
+
children: [/* @__PURE__ */ u("stop", {
|
|
272
|
+
offset: "0.0416667",
|
|
273
|
+
stopColor: "#B5B5B5"
|
|
274
|
+
}), /* @__PURE__ */ u("stop", {
|
|
275
|
+
offset: "1",
|
|
276
|
+
stopColor: "white"
|
|
277
|
+
})]
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
280
|
+
id: "paint3_linear_id",
|
|
281
|
+
x1: "31.7839",
|
|
282
|
+
y1: "45.028",
|
|
283
|
+
x2: "38.5592",
|
|
284
|
+
y2: "45.0529",
|
|
285
|
+
gradientUnits: "userSpaceOnUse",
|
|
286
|
+
children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
287
|
+
offset: "1",
|
|
288
|
+
stopColor: "white"
|
|
289
|
+
})]
|
|
290
|
+
})
|
|
291
|
+
] })
|
|
292
|
+
]
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/modules/id/assets/passportIcon.tsx
|
|
297
|
+
var PassportIcon = () => {
|
|
298
|
+
return /* @__PURE__ */ u("svg", {
|
|
299
|
+
width: "118",
|
|
300
|
+
height: "86",
|
|
301
|
+
viewBox: "0 0 118 86",
|
|
302
|
+
fill: "none",
|
|
303
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
304
|
+
class: "IncodePassportIcon",
|
|
305
|
+
"aria-hidden": "true",
|
|
306
|
+
children: [
|
|
307
|
+
/* @__PURE__ */ u("title", { children: "Passport" }),
|
|
308
|
+
/* @__PURE__ */ u("g", {
|
|
309
|
+
"clip-path": "url(#clip0_25823_31181)",
|
|
310
|
+
children: [
|
|
311
|
+
/* @__PURE__ */ u("rect", {
|
|
312
|
+
x: "29.5381",
|
|
313
|
+
y: "11",
|
|
314
|
+
width: "67",
|
|
315
|
+
height: "75",
|
|
316
|
+
rx: "5",
|
|
317
|
+
fill: "#C9C9C9",
|
|
318
|
+
"fill-opacity": "0.15"
|
|
319
|
+
}),
|
|
320
|
+
/* @__PURE__ */ u("rect", {
|
|
321
|
+
x: "26.8977",
|
|
322
|
+
y: "5.66234",
|
|
323
|
+
width: "64.3575",
|
|
324
|
+
height: "74.3225",
|
|
325
|
+
rx: "4.21024",
|
|
326
|
+
stroke: "#C9C9C9",
|
|
327
|
+
"stroke-opacity": "0.8",
|
|
328
|
+
"stroke-width": "1.24563"
|
|
329
|
+
}),
|
|
330
|
+
/* @__PURE__ */ u("path", {
|
|
331
|
+
d: "M27.434 42.295h63.197V76.34a3 3 0 0 1-3 3H30.434a3 3 0 0 1-3-3z",
|
|
332
|
+
fill: "white"
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ u("path", {
|
|
335
|
+
d: "M55.603 66.41c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296h-8.408a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296zm17-4c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296H47.195a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296zm-7-4c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296H47.195a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296zm0-4c.164 0 .296.133.296.296v1.408a.296.296 0 0 1-.296.296H47.195a.296.296 0 0 1-.296-.296v-1.408c0-.163.133-.296.296-.296z",
|
|
336
|
+
fill: "#E9E9EB"
|
|
337
|
+
}),
|
|
338
|
+
/* @__PURE__ */ u("rect", {
|
|
339
|
+
x: "80.4148",
|
|
340
|
+
y: "66.9609",
|
|
341
|
+
width: "6.44508",
|
|
342
|
+
height: "1.95402",
|
|
343
|
+
rx: "0.295996",
|
|
344
|
+
fill: "#E9E9EB"
|
|
345
|
+
}),
|
|
346
|
+
/* @__PURE__ */ u("rect", {
|
|
347
|
+
x: "80.4148",
|
|
348
|
+
y: "62.7734",
|
|
349
|
+
width: "6.44508",
|
|
350
|
+
height: "1.95402",
|
|
351
|
+
rx: "0.295996",
|
|
352
|
+
fill: "#E9E9EB"
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ u("rect", {
|
|
355
|
+
x: "80.4148",
|
|
356
|
+
y: "58.5859",
|
|
357
|
+
width: "6.44508",
|
|
358
|
+
height: "1.95402",
|
|
359
|
+
rx: "0.295996",
|
|
360
|
+
fill: "#E9E9EB"
|
|
361
|
+
}),
|
|
362
|
+
/* @__PURE__ */ u("path", {
|
|
363
|
+
d: "M27.434 71.715h63.197v4.627a3 3 0 0 1-3 3H30.434a3 3 0 0 1-3-3z",
|
|
364
|
+
fill: "#F4F4F5"
|
|
365
|
+
}),
|
|
366
|
+
/* @__PURE__ */ u("rect", {
|
|
367
|
+
x: "31.8992",
|
|
368
|
+
y: "46.4102",
|
|
369
|
+
width: "26",
|
|
370
|
+
height: "3",
|
|
371
|
+
rx: "0.295996",
|
|
372
|
+
fill: "#C9C9C9",
|
|
373
|
+
"fill-opacity": "0.5"
|
|
374
|
+
}),
|
|
375
|
+
/* @__PURE__ */ u("rect", {
|
|
376
|
+
x: "81.8992",
|
|
377
|
+
y: "46.4102",
|
|
378
|
+
width: "5",
|
|
379
|
+
height: "4",
|
|
380
|
+
rx: "0.295996",
|
|
381
|
+
fill: "#EAF0F6"
|
|
382
|
+
}),
|
|
383
|
+
/* @__PURE__ */ u("rect", {
|
|
384
|
+
x: "30.8992",
|
|
385
|
+
y: "73.4102",
|
|
386
|
+
width: "56",
|
|
387
|
+
height: "2",
|
|
388
|
+
rx: "0.295996",
|
|
389
|
+
fill: "#C9C9C9",
|
|
390
|
+
"fill-opacity": "0.5"
|
|
391
|
+
}),
|
|
392
|
+
/* @__PURE__ */ u("rect", {
|
|
393
|
+
x: "30.8992",
|
|
394
|
+
y: "76.4102",
|
|
395
|
+
width: "56",
|
|
396
|
+
height: "2",
|
|
397
|
+
rx: "0.295996",
|
|
398
|
+
fill: "#C9C9C9",
|
|
399
|
+
"fill-opacity": "0.5"
|
|
400
|
+
}),
|
|
401
|
+
/* @__PURE__ */ u("g", {
|
|
402
|
+
"clip-path": "url(#clip1_25823_31181)",
|
|
403
|
+
children: /* @__PURE__ */ u("g", {
|
|
404
|
+
"clip-path": "url(#clip2_25823_31181)",
|
|
405
|
+
children: [
|
|
406
|
+
/* @__PURE__ */ u("rect", {
|
|
407
|
+
x: "31.2175",
|
|
408
|
+
y: "52.8086",
|
|
409
|
+
width: "14.1292",
|
|
410
|
+
height: "16.9552",
|
|
411
|
+
class: "IncodePassportIconFill"
|
|
412
|
+
}),
|
|
413
|
+
/* @__PURE__ */ u("path", {
|
|
414
|
+
d: "M45.602 67.29c.649 1.16 1.023 3.84 1.023 3.84H30.26s.373-2.68 1.022-3.84c.65-1.162 4.604-2.239 4.604-2.239.35.633 1.379 1.21 2.432 1.236 1.142.028 2.313-.55 2.677-1.236 0 0 3.957 1.077 4.606 2.238Z",
|
|
415
|
+
fill: "white"
|
|
416
|
+
}),
|
|
417
|
+
/* @__PURE__ */ u("path", {
|
|
418
|
+
d: "M36.52 64.13v.026q-.01.82-1.382 1.235c1.102.8 2.204 1.44 3.306 1.44s2.204-.64 3.306-1.44q-1.362-.414-1.382-1.237l.001-2.444c.066.01.06.004 0-.013.002-.686.005.212.01-.725.003-.937-3.922-1.775-3.864.797 0 .263.002 2.064.006 2.361Z",
|
|
419
|
+
fill: "url(#paint0_linear_25823_31181)"
|
|
420
|
+
}),
|
|
421
|
+
/* @__PURE__ */ u("path", {
|
|
422
|
+
d: "M36.469 62.872c1.613-.168 3.132.53 3.132.53s-.301 1.582-3.133 1.123z",
|
|
423
|
+
fill: "#CDCDCD"
|
|
424
|
+
}),
|
|
425
|
+
/* @__PURE__ */ u("path", {
|
|
426
|
+
d: "M45.602 67.29c.649 1.16 1.023 3.84 1.023 3.84H30.26s.373-2.68 1.022-3.84c.65-1.162 4.604-2.239 4.604-2.239 0 .704 1.365 1.72 2.432 1.737 1.487 0 2.677-1.033 2.677-1.737 0 0 3.957 1.077 4.606 2.238Z",
|
|
427
|
+
fill: "#CECECE"
|
|
428
|
+
}),
|
|
429
|
+
/* @__PURE__ */ u("path", {
|
|
430
|
+
d: "M35.146 59.56c.215-.358.483-.111.59.057l.15 1.596c-.005.138-.088.227-.305.254-.271.034-.45-.704-.513-.98-.062-.276-.19-.478.078-.926Z",
|
|
431
|
+
fill: "url(#paint1_linear_25823_31181)"
|
|
432
|
+
}),
|
|
433
|
+
/* @__PURE__ */ u("path", {
|
|
434
|
+
d: "M41.639 59.655c-.212-.361-.483-.117-.592.05l-.165 1.594c.004.139.087.228.303.257.271.037.457-.7.522-.975.066-.275.196-.476-.069-.927Z",
|
|
435
|
+
fill: "url(#paint2_linear_25823_31181)"
|
|
436
|
+
}),
|
|
437
|
+
/* @__PURE__ */ u("path", {
|
|
438
|
+
d: "M41.425 59.934c0 2.307-1.67 4.178-2.974 4.178-1.426 0-2.974-1.87-2.974-4.178 0-2.056.164-4.252 2.974-4.252s2.974 2.149 2.974 4.252Z",
|
|
439
|
+
fill: "url(#paint3_linear_25823_31181)"
|
|
440
|
+
})
|
|
441
|
+
]
|
|
442
|
+
})
|
|
443
|
+
}),
|
|
444
|
+
/* @__PURE__ */ u("mask", {
|
|
445
|
+
id: "path-23-inside-1_25823_31181",
|
|
446
|
+
fill: "white",
|
|
447
|
+
children: /* @__PURE__ */ u("path", { d: "M87.629 6.285a3 3 0 0 1 3 3v33.539H27.517V9.285a3 3 0 0 1 3-3z" })
|
|
448
|
+
}),
|
|
449
|
+
/* @__PURE__ */ u("path", {
|
|
450
|
+
d: "M87.629 6.285a3 3 0 0 1 3 3v33.539H27.517V9.285a3 3 0 0 1 3-3z",
|
|
451
|
+
fill: "#F4F4F5"
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ u("path", {
|
|
454
|
+
d: "M90.629 6.285v36.539zM27.517 42.824V6.285zm0-36.539h63.112zm63.112 37.751H27.517v-2.425h63.112z",
|
|
455
|
+
fill: "#C9C9C9",
|
|
456
|
+
"fill-opacity": "0.8",
|
|
457
|
+
mask: "url(#path-23-inside-1_25823_31181)"
|
|
458
|
+
})
|
|
459
|
+
]
|
|
460
|
+
}),
|
|
461
|
+
/* @__PURE__ */ u("defs", { children: [
|
|
462
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
463
|
+
id: "paint0_linear_25823_31181",
|
|
464
|
+
x1: "38.1511",
|
|
465
|
+
y1: "61.9259",
|
|
466
|
+
x2: "38.1511",
|
|
467
|
+
y2: "65.1098",
|
|
468
|
+
gradientUnits: "userSpaceOnUse",
|
|
469
|
+
children: [/* @__PURE__ */ u("stop", { "stop-color": "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
470
|
+
offset: "1",
|
|
471
|
+
"stop-color": "white"
|
|
472
|
+
})]
|
|
473
|
+
}),
|
|
474
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
475
|
+
id: "paint1_linear_25823_31181",
|
|
476
|
+
x1: "35.7261",
|
|
477
|
+
y1: "60.3676",
|
|
478
|
+
x2: "35.2086",
|
|
479
|
+
y2: "60.4633",
|
|
480
|
+
gradientUnits: "userSpaceOnUse",
|
|
481
|
+
children: [
|
|
482
|
+
/* @__PURE__ */ u("stop", {
|
|
483
|
+
offset: "0.171875",
|
|
484
|
+
"stop-color": "#BDBDBD"
|
|
485
|
+
}),
|
|
486
|
+
/* @__PURE__ */ u("stop", {
|
|
487
|
+
offset: "0.640625",
|
|
488
|
+
"stop-color": "#E1E1E1"
|
|
489
|
+
}),
|
|
490
|
+
/* @__PURE__ */ u("stop", {
|
|
491
|
+
offset: "1",
|
|
492
|
+
"stop-color": "#DDDDDD"
|
|
493
|
+
})
|
|
494
|
+
]
|
|
495
|
+
}),
|
|
496
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
497
|
+
id: "paint2_linear_25823_31181",
|
|
498
|
+
x1: "41.0508",
|
|
499
|
+
y1: "60.4556",
|
|
500
|
+
x2: "41.5674",
|
|
501
|
+
y2: "60.5562",
|
|
502
|
+
gradientUnits: "userSpaceOnUse",
|
|
503
|
+
children: [
|
|
504
|
+
/* @__PURE__ */ u("stop", {
|
|
505
|
+
offset: "0.0416667",
|
|
506
|
+
"stop-color": "#B5B5B5"
|
|
507
|
+
}),
|
|
508
|
+
/* @__PURE__ */ u("stop", {
|
|
509
|
+
offset: "0.362488",
|
|
510
|
+
"stop-color": "#E2E2E2"
|
|
511
|
+
}),
|
|
512
|
+
/* @__PURE__ */ u("stop", {
|
|
513
|
+
offset: "1",
|
|
514
|
+
"stop-color": "white"
|
|
515
|
+
})
|
|
516
|
+
]
|
|
517
|
+
}),
|
|
518
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
519
|
+
id: "paint3_linear_25823_31181",
|
|
520
|
+
x1: "35.8426",
|
|
521
|
+
y1: "59.8572",
|
|
522
|
+
x2: "40.0436",
|
|
523
|
+
y2: "59.8731",
|
|
524
|
+
gradientUnits: "userSpaceOnUse",
|
|
525
|
+
children: [/* @__PURE__ */ u("stop", { "stop-color": "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
526
|
+
offset: "1",
|
|
527
|
+
"stop-color": "white"
|
|
528
|
+
})]
|
|
529
|
+
}),
|
|
530
|
+
/* @__PURE__ */ u("clipPath", {
|
|
531
|
+
id: "clip0_25823_31181",
|
|
532
|
+
children: /* @__PURE__ */ u("rect", {
|
|
533
|
+
width: "118",
|
|
534
|
+
height: "86",
|
|
535
|
+
fill: "white"
|
|
536
|
+
})
|
|
537
|
+
}),
|
|
538
|
+
/* @__PURE__ */ u("clipPath", {
|
|
539
|
+
id: "clip1_25823_31181",
|
|
540
|
+
children: /* @__PURE__ */ u("rect", {
|
|
541
|
+
x: "31.2625",
|
|
542
|
+
y: "52.7891",
|
|
543
|
+
width: "14.0499",
|
|
544
|
+
height: "17.0253",
|
|
545
|
+
rx: "2",
|
|
546
|
+
fill: "white"
|
|
547
|
+
})
|
|
548
|
+
}),
|
|
549
|
+
/* @__PURE__ */ u("clipPath", {
|
|
550
|
+
id: "clip2_25823_31181",
|
|
551
|
+
children: /* @__PURE__ */ u("rect", {
|
|
552
|
+
width: "18.0004",
|
|
553
|
+
height: "18.0005",
|
|
554
|
+
fill: "white",
|
|
555
|
+
transform: "translate(29.4441 52.7891)"
|
|
556
|
+
})
|
|
557
|
+
})
|
|
558
|
+
] })
|
|
559
|
+
]
|
|
560
|
+
});
|
|
561
|
+
};
|
|
562
|
+
//#endregion
|
|
563
|
+
//#region src/modules/id/assets/deviceWalletsIcon.tsx
|
|
564
|
+
var DeviceWalletsIcon = () => {
|
|
565
|
+
return /* @__PURE__ */ u("svg", {
|
|
566
|
+
width: "60",
|
|
567
|
+
height: "60",
|
|
568
|
+
viewBox: "0 0 60 60",
|
|
569
|
+
fill: "none",
|
|
570
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
571
|
+
"aria-hidden": "true",
|
|
572
|
+
focusable: "false",
|
|
573
|
+
class: "IncodeDeviceWalletsIcon",
|
|
574
|
+
children: [
|
|
575
|
+
/* @__PURE__ */ u("title", { children: "Mobile Driver License icon" }),
|
|
576
|
+
/* @__PURE__ */ u("g", {
|
|
577
|
+
clipPath: "url(#clip0_26265_2591)",
|
|
578
|
+
children: /* @__PURE__ */ u("g", {
|
|
579
|
+
clipPath: "url(#clip1_26265_2591)",
|
|
580
|
+
children: /* @__PURE__ */ u("g", {
|
|
581
|
+
clipPath: "url(#clip2_26265_2591)",
|
|
582
|
+
children: [
|
|
583
|
+
/* @__PURE__ */ u("rect", {
|
|
584
|
+
x: "24.1111",
|
|
585
|
+
y: "10.0779",
|
|
586
|
+
width: "20.52",
|
|
587
|
+
height: "42.066",
|
|
588
|
+
rx: "2.565",
|
|
589
|
+
fill: "#C9C9C9",
|
|
590
|
+
fillOpacity: "0.15"
|
|
591
|
+
}),
|
|
592
|
+
/* @__PURE__ */ u("rect", {
|
|
593
|
+
x: "18.3396",
|
|
594
|
+
y: "49.7073",
|
|
595
|
+
width: "41.8095",
|
|
596
|
+
height: "23.3415",
|
|
597
|
+
rx: "2.69325",
|
|
598
|
+
transform: "rotate(-90 18.3396 49.7073)",
|
|
599
|
+
fill: "#F7F7F7",
|
|
600
|
+
stroke: "#D4D4D4",
|
|
601
|
+
strokeWidth: "0.769499"
|
|
602
|
+
}),
|
|
603
|
+
/* @__PURE__ */ u("path", {
|
|
604
|
+
d: "M20.06 13.217c0-.85.688-1.539 1.538-1.539h16.823c.85 0 1.54.689 1.54 1.539v8.492c0 .85-.69 1.54-1.54 1.54H21.598c-.85 0-1.539-.69-1.539-1.54z",
|
|
605
|
+
fill: "#C9C9C9",
|
|
606
|
+
fillOpacity: "0.8"
|
|
607
|
+
}),
|
|
608
|
+
/* @__PURE__ */ u("path", {
|
|
609
|
+
d: "M20.522 13.167c0-.567.46-1.026 1.026-1.026H38.47c.567 0 1.026.46 1.026 1.026v8.593c0 .566-.46 1.026-1.026 1.026H21.548c-.567 0-1.026-.46-1.026-1.026z",
|
|
610
|
+
fill: "white"
|
|
611
|
+
}),
|
|
612
|
+
/* @__PURE__ */ u("path", {
|
|
613
|
+
d: "M30.244 19.75a.25.25 0 0 1 .25.25v.3a.25.25 0 0 1-.25.25h-1.63a.25.25 0 0 1-.25-.25V20a.25.25 0 0 1 .25-.25zm4.262-1.598a.25.25 0 0 1 .25.25v.3a.25.25 0 0 1-.25.25h-5.893a.25.25 0 0 1-.25-.25v-.3a.25.25 0 0 1 .25-.25zm-1.598-1.598a.25.25 0 0 1 .25.25v.3a.25.25 0 0 1-.25.25h-4.295a.25.25 0 0 1-.25-.25v-.3a.25.25 0 0 1 .25-.25zm0-1.598a.25.25 0 0 1 .25.25v.299a.25.25 0 0 1-.25.25h-4.295a.25.25 0 0 1-.25-.25v-.3a.25.25 0 0 1 .25-.25z",
|
|
614
|
+
fill: "#C9C9C9",
|
|
615
|
+
fillOpacity: "0.5"
|
|
616
|
+
}),
|
|
617
|
+
/* @__PURE__ */ u("rect", {
|
|
618
|
+
x: "21.9907",
|
|
619
|
+
y: "14.4548",
|
|
620
|
+
width: "5.61267",
|
|
621
|
+
height: "6.41448",
|
|
622
|
+
rx: "0.592504",
|
|
623
|
+
class: "IncodeDeviceWalletsIconFill"
|
|
624
|
+
}),
|
|
625
|
+
/* @__PURE__ */ u("path", {
|
|
626
|
+
d: "M23.907 18.977c-.003.207-.364.274-.606.507.422.304 1.03.508 1.452.508.49 0 1.057-.204 1.478-.508-.242-.233-.624-.3-.63-.507l.001-.927c0-1.33-1.746-2.12-1.698.022q.002.452.003.905Z",
|
|
627
|
+
fill: "url(#paint0_linear_26265_2591)"
|
|
628
|
+
}),
|
|
629
|
+
/* @__PURE__ */ u("path", {
|
|
630
|
+
d: "M25.862 19.218c.02.006 1.316.428 1.567.883.054.096.1.22.144.354a.59.59 0 0 1-.562.413h-4.427a.59.59 0 0 1-.593-.591v-.349c.471-.387 1.658-.71 1.658-.71 0 .278.69.712 1.106.719.581 0 1.107-.441 1.107-.719Z",
|
|
631
|
+
fill: "#CECECE"
|
|
632
|
+
}),
|
|
633
|
+
/* @__PURE__ */ u("path", {
|
|
634
|
+
d: "M23.907 18.142c.623-.066 1.21.444 1.21.444s-.116.627-1.21.445z",
|
|
635
|
+
fill: "#CDCDCD"
|
|
636
|
+
}),
|
|
637
|
+
/* @__PURE__ */ u("path", {
|
|
638
|
+
d: "M26.251 17.086a.247.247 0 0 0-.467-.155l-.17.43a.258.258 0 0 0 .204.35l.03.005a.26.26 0 0 0 .285-.19z",
|
|
639
|
+
fill: "url(#paint1_linear_26265_2591)"
|
|
640
|
+
}),
|
|
641
|
+
/* @__PURE__ */ u("path", {
|
|
642
|
+
d: "M23.337 17.073a.233.233 0 0 1 .45-.121l.121.45a.233.233 0 0 1-.45.12z",
|
|
643
|
+
fill: "url(#paint2_linear_26265_2591)"
|
|
644
|
+
}),
|
|
645
|
+
/* @__PURE__ */ u("path", {
|
|
646
|
+
d: "M26.08 17.017c0 1.021-.72 1.849-1.282 1.849-.615 0-1.282-.828-1.282-1.849 0-.909.07-1.88 1.282-1.88 1.21 0 1.282.95 1.282 1.88Z",
|
|
647
|
+
fill: "url(#paint3_linear_26265_2591)"
|
|
648
|
+
}),
|
|
649
|
+
/* @__PURE__ */ u("rect", {
|
|
650
|
+
x: "22.0591",
|
|
651
|
+
y: "43.936",
|
|
652
|
+
width: "15.903",
|
|
653
|
+
height: "3.078",
|
|
654
|
+
rx: "0.512999",
|
|
655
|
+
fill: "#E4E4E4"
|
|
656
|
+
})
|
|
657
|
+
]
|
|
658
|
+
})
|
|
659
|
+
})
|
|
660
|
+
}),
|
|
661
|
+
/* @__PURE__ */ u("defs", { children: [
|
|
662
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
663
|
+
id: "paint0_linear_26265_2591",
|
|
664
|
+
x1: "24.6409",
|
|
665
|
+
y1: "18.1316",
|
|
666
|
+
x2: "24.6409",
|
|
667
|
+
y2: "19.3392",
|
|
668
|
+
gradientUnits: "userSpaceOnUse",
|
|
669
|
+
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
670
|
+
offset: "1",
|
|
671
|
+
stopColor: "white"
|
|
672
|
+
})]
|
|
673
|
+
}),
|
|
674
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
675
|
+
id: "paint1_linear_26265_2591",
|
|
676
|
+
x1: "25.7267",
|
|
677
|
+
y1: "17.4809",
|
|
678
|
+
x2: "26.0758",
|
|
679
|
+
y2: "17.4949",
|
|
680
|
+
gradientUnits: "userSpaceOnUse",
|
|
681
|
+
children: [/* @__PURE__ */ u("stop", {
|
|
682
|
+
offset: "0.0416667",
|
|
683
|
+
stopColor: "#B5B5B5"
|
|
684
|
+
}), /* @__PURE__ */ u("stop", {
|
|
685
|
+
offset: "1",
|
|
686
|
+
stopColor: "white"
|
|
687
|
+
})]
|
|
688
|
+
}),
|
|
689
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
690
|
+
id: "paint2_linear_26265_2591",
|
|
691
|
+
x1: "23.614",
|
|
692
|
+
y1: "17.4808",
|
|
693
|
+
x2: "23.2649",
|
|
694
|
+
y2: "17.4948",
|
|
695
|
+
gradientUnits: "userSpaceOnUse",
|
|
696
|
+
children: [/* @__PURE__ */ u("stop", {
|
|
697
|
+
offset: "0.0416667",
|
|
698
|
+
stopColor: "#B5B5B5"
|
|
699
|
+
}), /* @__PURE__ */ u("stop", {
|
|
700
|
+
offset: "1",
|
|
701
|
+
stopColor: "white"
|
|
702
|
+
})]
|
|
703
|
+
}),
|
|
704
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
705
|
+
id: "paint3_linear_26265_2591",
|
|
706
|
+
x1: "23.5474",
|
|
707
|
+
y1: "17.0021",
|
|
708
|
+
x2: "25.3582",
|
|
709
|
+
y2: "17.0087",
|
|
710
|
+
gradientUnits: "userSpaceOnUse",
|
|
711
|
+
children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
712
|
+
offset: "1",
|
|
713
|
+
stopColor: "white"
|
|
714
|
+
})]
|
|
715
|
+
}),
|
|
716
|
+
/* @__PURE__ */ u("clipPath", {
|
|
717
|
+
id: "clip0_26265_2591",
|
|
718
|
+
children: /* @__PURE__ */ u("rect", {
|
|
719
|
+
width: "60",
|
|
720
|
+
height: "60",
|
|
721
|
+
fill: "white"
|
|
722
|
+
})
|
|
723
|
+
}),
|
|
724
|
+
/* @__PURE__ */ u("clipPath", {
|
|
725
|
+
id: "clip1_26265_2591",
|
|
726
|
+
children: /* @__PURE__ */ u("rect", {
|
|
727
|
+
width: "60",
|
|
728
|
+
height: "60",
|
|
729
|
+
fill: "white",
|
|
730
|
+
transform: "translate(0.5 0.5)"
|
|
731
|
+
})
|
|
732
|
+
}),
|
|
733
|
+
/* @__PURE__ */ u("clipPath", {
|
|
734
|
+
id: "clip2_26265_2591",
|
|
735
|
+
children: /* @__PURE__ */ u("rect", {
|
|
736
|
+
width: "60.5339",
|
|
737
|
+
height: "45.144",
|
|
738
|
+
fill: "white",
|
|
739
|
+
transform: "translate(0 7)"
|
|
740
|
+
})
|
|
741
|
+
})
|
|
742
|
+
] })
|
|
743
|
+
]
|
|
744
|
+
});
|
|
745
|
+
};
|
|
746
|
+
//#endregion
|
|
747
|
+
//#region src/modules/id/assets/digitalIdIcon.tsx
|
|
748
|
+
var DigitalIdIcon = () => {
|
|
749
|
+
return /* @__PURE__ */ u("svg", {
|
|
750
|
+
width: "61",
|
|
751
|
+
height: "61",
|
|
752
|
+
viewBox: "0 0 61 61",
|
|
753
|
+
fill: "none",
|
|
754
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
755
|
+
"aria-hidden": "true",
|
|
756
|
+
focusable: "false",
|
|
757
|
+
class: "IncodeDigitalIdIcon",
|
|
758
|
+
children: [
|
|
759
|
+
/* @__PURE__ */ u("title", { children: "Digital ID Icon" }),
|
|
760
|
+
/* @__PURE__ */ u("g", {
|
|
761
|
+
clipPath: "url(#clip0_24620_2022)",
|
|
762
|
+
children: [
|
|
763
|
+
/* @__PURE__ */ u("g", {
|
|
764
|
+
clipPath: "url(#clip1_24620_2022)",
|
|
765
|
+
children: [
|
|
766
|
+
/* @__PURE__ */ u("path", {
|
|
767
|
+
d: "M15.792 9.262c0-.752.609-1.36 1.36-1.36H44.02c.751 0 1.36.608 1.36 1.36v41.15a1.36 1.36 0 0 1-1.36 1.36H17.152a1.36 1.36 0 0 1-1.36-1.36z",
|
|
768
|
+
fill: "white"
|
|
769
|
+
}),
|
|
770
|
+
/* @__PURE__ */ u("rect", {
|
|
771
|
+
x: "31.0889",
|
|
772
|
+
y: "13.8564",
|
|
773
|
+
width: "12.9231",
|
|
774
|
+
height: "15.8138",
|
|
775
|
+
rx: "1.36032",
|
|
776
|
+
fill: "#EAF0F6"
|
|
777
|
+
}),
|
|
778
|
+
/* @__PURE__ */ u("path", {
|
|
779
|
+
fillRule: "evenodd",
|
|
780
|
+
clipRule: "evenodd",
|
|
781
|
+
d: "M36.047 19.967c0 .215-.175.39-.39.39h-1.4a.39.39 0 0 1-.39-.39v-1.4c0-.215.175-.39.39-.39h1.4a.39.39 0 0 1 .39.39zm-.39-2.708h-1.4a1.31 1.31 0 0 0-1.309 1.309v1.399a1.31 1.31 0 0 0 1.31 1.309h1.398a1.31 1.31 0 0 0 1.31-1.309v-1.4a1.31 1.31 0 0 0-1.31-1.308Z",
|
|
782
|
+
class: "IncodeDigitalIdIconFill"
|
|
783
|
+
}),
|
|
784
|
+
/* @__PURE__ */ u("path", {
|
|
785
|
+
fillRule: "evenodd",
|
|
786
|
+
clipRule: "evenodd",
|
|
787
|
+
d: "M34.957 18.809a.46.46 0 0 0-.459.461.46.46 0 0 0 .918 0v-.005a.457.457 0 0 0-.459-.456Z",
|
|
788
|
+
class: "IncodeDigitalIdIconFill"
|
|
789
|
+
}),
|
|
790
|
+
/* @__PURE__ */ u("path", {
|
|
791
|
+
fillRule: "evenodd",
|
|
792
|
+
clipRule: "evenodd",
|
|
793
|
+
d: "M34.957 23.974a.46.46 0 0 0-.459.462.46.46 0 0 0 .918 0v-.006a.457.457 0 0 0-.459-.456Z",
|
|
794
|
+
class: "IncodeDigitalIdIconFill"
|
|
795
|
+
}),
|
|
796
|
+
/* @__PURE__ */ u("path", {
|
|
797
|
+
fillRule: "evenodd",
|
|
798
|
+
clipRule: "evenodd",
|
|
799
|
+
d: "M36.047 25.132c0 .215-.175.39-.39.39h-1.4a.39.39 0 0 1-.39-.39v-1.4c0-.215.175-.39.39-.39h1.4a.39.39 0 0 1 .39.39zm-.39-2.708h-1.4a1.31 1.31 0 0 0-1.309 1.309v1.399a1.31 1.31 0 0 0 1.31 1.309h1.398a1.31 1.31 0 0 0 1.31-1.309v-1.4a1.31 1.31 0 0 0-1.31-1.308Z",
|
|
800
|
+
class: "IncodeDigitalIdIconFill"
|
|
801
|
+
}),
|
|
802
|
+
/* @__PURE__ */ u("path", {
|
|
803
|
+
fillRule: "evenodd",
|
|
804
|
+
clipRule: "evenodd",
|
|
805
|
+
d: "M41.224 25.132c0 .215-.175.39-.39.39h-1.4a.39.39 0 0 1-.39-.39v-1.4c0-.215.175-.39.39-.39h1.4a.39.39 0 0 1 .39.39zm-.39-2.708h-1.4a1.31 1.31 0 0 0-1.309 1.309v1.399a1.31 1.31 0 0 0 1.309 1.309h1.4a1.31 1.31 0 0 0 1.308-1.309v-1.4a1.31 1.31 0 0 0-1.309-1.308Z",
|
|
806
|
+
class: "IncodeDigitalIdIconFill"
|
|
807
|
+
}),
|
|
808
|
+
/* @__PURE__ */ u("path", {
|
|
809
|
+
fillRule: "evenodd",
|
|
810
|
+
clipRule: "evenodd",
|
|
811
|
+
d: "M40.118 23.966a.46.46 0 0 0-.459.459v.005c0 .253.206.456.46.456a.461.461 0 0 0 0-.92Z",
|
|
812
|
+
class: "IncodeDigitalIdIconFill"
|
|
813
|
+
}),
|
|
814
|
+
/* @__PURE__ */ u("path", {
|
|
815
|
+
fillRule: "evenodd",
|
|
816
|
+
clipRule: "evenodd",
|
|
817
|
+
d: "M38.584 18.18a.46.46 0 0 0 .46-.46v-.005a.457.457 0 0 0-.46-.456.46.46 0 0 0-.459.462c0 .253.206.459.46.459Z",
|
|
818
|
+
class: "IncodeDigitalIdIconFill"
|
|
819
|
+
}),
|
|
820
|
+
/* @__PURE__ */ u("path", {
|
|
821
|
+
fillRule: "evenodd",
|
|
822
|
+
clipRule: "evenodd",
|
|
823
|
+
d: "M40.993 17.259h-.875a.459.459 0 1 0 0 .918h.875c.119 0 .216.097.216.216v.874a.459.459 0 1 0 .918 0v-.874c0-.626-.509-1.134-1.134-1.134Z",
|
|
824
|
+
class: "IncodeDigitalIdIconFill"
|
|
825
|
+
}),
|
|
826
|
+
/* @__PURE__ */ u("path", {
|
|
827
|
+
fillRule: "evenodd",
|
|
828
|
+
clipRule: "evenodd",
|
|
829
|
+
d: "M41.668 20.355h-1.55a.46.46 0 0 0 0 .918h1.55a.46.46 0 0 0 0-.918Z",
|
|
830
|
+
class: "IncodeDigitalIdIconFill"
|
|
831
|
+
}),
|
|
832
|
+
/* @__PURE__ */ u("path", {
|
|
833
|
+
fillRule: "evenodd",
|
|
834
|
+
clipRule: "evenodd",
|
|
835
|
+
d: "M38.584 21.276a.46.46 0 0 0 .46-.459v-.874c0-.12.096-.216.215-.216h.874a.46.46 0 0 0 0-.918h-.874c-.625 0-1.134.508-1.134 1.134v.874c0 .253.206.46.46.46Z",
|
|
836
|
+
class: "IncodeDigitalIdIconFill"
|
|
837
|
+
}),
|
|
838
|
+
/* @__PURE__ */ u("rect", {
|
|
839
|
+
x: "18.0088",
|
|
840
|
+
y: "32.5596",
|
|
841
|
+
width: "10.3725",
|
|
842
|
+
height: "2.04049",
|
|
843
|
+
rx: "0.680162",
|
|
844
|
+
fill: "#EBECEF"
|
|
845
|
+
}),
|
|
846
|
+
/* @__PURE__ */ u("rect", {
|
|
847
|
+
x: "15.792",
|
|
848
|
+
y: "10.2881",
|
|
849
|
+
width: "29.587",
|
|
850
|
+
height: "2.04049",
|
|
851
|
+
fill: "#EBECEF"
|
|
852
|
+
}),
|
|
853
|
+
/* @__PURE__ */ u("rect", {
|
|
854
|
+
x: "18.0088",
|
|
855
|
+
y: "36.1318",
|
|
856
|
+
width: "10.3725",
|
|
857
|
+
height: "2.04049",
|
|
858
|
+
rx: "0.680162",
|
|
859
|
+
fill: "#EBECEF"
|
|
860
|
+
}),
|
|
861
|
+
/* @__PURE__ */ u("rect", {
|
|
862
|
+
x: "18.0088",
|
|
863
|
+
y: "39.7002",
|
|
864
|
+
width: "13.7733",
|
|
865
|
+
height: "2.04049",
|
|
866
|
+
rx: "0.680162",
|
|
867
|
+
fill: "#EBECEF"
|
|
868
|
+
})
|
|
869
|
+
]
|
|
870
|
+
}),
|
|
871
|
+
/* @__PURE__ */ u("path", {
|
|
872
|
+
d: "M44.019 7.405c1.025 0 1.856.832 1.856 1.857v41.15a1.857 1.857 0 0 1-1.856 1.856H17.152a1.857 1.857 0 0 1-1.856-1.857V9.261c0-1.024.831-1.856 1.856-1.856z",
|
|
873
|
+
stroke: "#EBECEF",
|
|
874
|
+
"stroke-width": "0.991903"
|
|
875
|
+
}),
|
|
876
|
+
/* @__PURE__ */ u("g", {
|
|
877
|
+
clipPath: "url(#clip2_24620_2022)",
|
|
878
|
+
children: [
|
|
879
|
+
/* @__PURE__ */ u("rect", {
|
|
880
|
+
x: "17.1406",
|
|
881
|
+
y: "13.9385",
|
|
882
|
+
width: "12.9231",
|
|
883
|
+
height: "15.7324",
|
|
884
|
+
rx: "0.936455",
|
|
885
|
+
class: "IncodeDigitalIdIconFill"
|
|
886
|
+
}),
|
|
887
|
+
/* @__PURE__ */ u("path", {
|
|
888
|
+
d: "M21.83 24.439v.024q-.008.76-1.28 1.143c1.021.741 2.042 1.334 3.062 1.334s2.04-.593 3.061-1.334q-1.261-.384-1.28-1.145c0-.193 0-2.07.002-2.263.06.009.055.003 0-.012.001-.635.004.196.008-.671.004-.868-3.631-1.644-3.578.738.001.243.003 1.91.006 2.186Z",
|
|
889
|
+
fill: "url(#paint0_linear_24620_2022)"
|
|
890
|
+
}),
|
|
891
|
+
/* @__PURE__ */ u("path", {
|
|
892
|
+
d: "M30.064 27.331v1.405c0 .517-.42.936-.937.936h-11.05a.936.936 0 0 1-.936-.936v-1.368c.6-1.075 4.097-2.073 4.097-2.073.324.586 1.276 1.12 2.251 1.145 1.058.026 2.142-.509 2.48-1.145 0 0 3.494.96 4.095 2.036Z",
|
|
893
|
+
fill: "#CECECE"
|
|
894
|
+
}),
|
|
895
|
+
/* @__PURE__ */ u("path", {
|
|
896
|
+
d: "M21.79 23.277c1.494-.155 2.9.492 2.9.492s-.278 1.464-2.9 1.039z",
|
|
897
|
+
fill: "#CDCDCD"
|
|
898
|
+
}),
|
|
899
|
+
/* @__PURE__ */ u("path", {
|
|
900
|
+
d: "M20.557 20.208c.2-.332.448-.104.547.052l.139 1.477c-.005.129-.082.21-.283.236-.25.032-.417-.652-.475-.908-.058-.255-.177-.442.072-.857Z",
|
|
901
|
+
fill: "url(#paint1_linear_24620_2022)"
|
|
902
|
+
}),
|
|
903
|
+
/* @__PURE__ */ u("path", {
|
|
904
|
+
d: "M26.57 20.29c-.195-.333-.446-.107-.547.048l-.153 1.476c.004.128.08.21.28.238.252.034.424-.648.484-.903s.182-.44-.063-.858Z",
|
|
905
|
+
fill: "url(#paint2_linear_24620_2022)"
|
|
906
|
+
}),
|
|
907
|
+
/* @__PURE__ */ u("path", {
|
|
908
|
+
d: "M26.368 20.554c0 2.136-1.546 3.868-2.754 3.868-1.32 0-2.754-1.732-2.754-3.868 0-1.904.152-3.938 2.754-3.938s2.754 1.99 2.754 3.938Z",
|
|
909
|
+
fill: "#FAFAFA"
|
|
910
|
+
})
|
|
911
|
+
]
|
|
912
|
+
})
|
|
913
|
+
]
|
|
914
|
+
}),
|
|
915
|
+
/* @__PURE__ */ u("defs", { children: [
|
|
916
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
917
|
+
id: "paint0_linear_24620_2022",
|
|
918
|
+
x1: "23.3405",
|
|
919
|
+
y1: "22.3978",
|
|
920
|
+
x2: "23.3405",
|
|
921
|
+
y2: "25.346",
|
|
922
|
+
gradientUnits: "userSpaceOnUse",
|
|
923
|
+
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
924
|
+
offset: "1",
|
|
925
|
+
stopColor: "white"
|
|
926
|
+
})]
|
|
927
|
+
}),
|
|
928
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
929
|
+
id: "paint1_linear_24620_2022",
|
|
930
|
+
x1: "21.0945",
|
|
931
|
+
y1: "20.9548",
|
|
932
|
+
x2: "20.6152",
|
|
933
|
+
y2: "21.0435",
|
|
934
|
+
gradientUnits: "userSpaceOnUse",
|
|
935
|
+
children: [
|
|
936
|
+
/* @__PURE__ */ u("stop", {
|
|
937
|
+
offset: "0.171875",
|
|
938
|
+
stopColor: "#BDBDBD"
|
|
939
|
+
}),
|
|
940
|
+
/* @__PURE__ */ u("stop", {
|
|
941
|
+
offset: "0.640625",
|
|
942
|
+
stopColor: "#E1E1E1"
|
|
943
|
+
}),
|
|
944
|
+
/* @__PURE__ */ u("stop", {
|
|
945
|
+
offset: "1",
|
|
946
|
+
stopColor: "#DDDDDD"
|
|
947
|
+
})
|
|
948
|
+
]
|
|
949
|
+
}),
|
|
950
|
+
/* @__PURE__ */ u("linearGradient", {
|
|
951
|
+
id: "paint2_linear_24620_2022",
|
|
952
|
+
x1: "26.0263",
|
|
953
|
+
y1: "21.0327",
|
|
954
|
+
x2: "26.5047",
|
|
955
|
+
y2: "21.1259",
|
|
956
|
+
gradientUnits: "userSpaceOnUse",
|
|
957
|
+
children: [
|
|
958
|
+
/* @__PURE__ */ u("stop", {
|
|
959
|
+
offset: "0.0416667",
|
|
960
|
+
stopColor: "#B5B5B5"
|
|
961
|
+
}),
|
|
962
|
+
/* @__PURE__ */ u("stop", {
|
|
963
|
+
offset: "0.362488",
|
|
964
|
+
stopColor: "#E2E2E2"
|
|
965
|
+
}),
|
|
966
|
+
/* @__PURE__ */ u("stop", {
|
|
967
|
+
offset: "1",
|
|
968
|
+
stopColor: "white"
|
|
969
|
+
})
|
|
970
|
+
]
|
|
971
|
+
}),
|
|
972
|
+
/* @__PURE__ */ u("clipPath", {
|
|
973
|
+
id: "clip0_24620_2022",
|
|
974
|
+
children: /* @__PURE__ */ u("rect", {
|
|
975
|
+
width: "60",
|
|
976
|
+
height: "60",
|
|
977
|
+
fill: "white",
|
|
978
|
+
transform: "translate(0.5 0.5)"
|
|
979
|
+
})
|
|
980
|
+
}),
|
|
981
|
+
/* @__PURE__ */ u("clipPath", {
|
|
982
|
+
id: "clip1_24620_2022",
|
|
983
|
+
children: /* @__PURE__ */ u("path", {
|
|
984
|
+
d: "M15.792 9.262c0-.752.609-1.36 1.36-1.36H44.02c.751 0 1.36.608 1.36 1.36v41.15a1.36 1.36 0 0 1-1.36 1.36H17.152a1.36 1.36 0 0 1-1.36-1.36z",
|
|
985
|
+
fill: "white"
|
|
986
|
+
})
|
|
987
|
+
}),
|
|
988
|
+
/* @__PURE__ */ u("clipPath", {
|
|
989
|
+
id: "clip2_24620_2022",
|
|
990
|
+
children: /* @__PURE__ */ u("rect", {
|
|
991
|
+
x: "17.1406",
|
|
992
|
+
y: "13.9385",
|
|
993
|
+
width: "12.9231",
|
|
994
|
+
height: "15.7324",
|
|
995
|
+
rx: "0.680162",
|
|
996
|
+
fill: "white"
|
|
997
|
+
})
|
|
998
|
+
})
|
|
999
|
+
] })
|
|
1000
|
+
]
|
|
1001
|
+
});
|
|
1002
|
+
};
|
|
1003
|
+
//#endregion
|
|
1004
|
+
//#region src/modules/id/chooser/chooser.constants.ts
|
|
1005
|
+
var CHOOSER_OPTIONS_LOOKUP = {
|
|
1006
|
+
digitalIdRedirect: {
|
|
1007
|
+
type: "digitalIdRedirect",
|
|
1008
|
+
icon: DigitalIdIcon,
|
|
1009
|
+
title: "idv2.chooser.digitalIdRedirectButtonTitle",
|
|
1010
|
+
testId: "verification-option-digitalIdRedirect",
|
|
1011
|
+
weight: 6
|
|
1012
|
+
},
|
|
1013
|
+
digitalIdUpload: {
|
|
1014
|
+
type: "digitalIdUpload",
|
|
1015
|
+
icon: DigitalIdIcon,
|
|
1016
|
+
title: "idv2.chooser.digitalIdUploadButtonTitle",
|
|
1017
|
+
testId: "verification-option-digitalIdUpload",
|
|
1018
|
+
weight: 2
|
|
1019
|
+
},
|
|
1020
|
+
id: {
|
|
1021
|
+
type: "id",
|
|
1022
|
+
icon: IdCardIcon,
|
|
1023
|
+
title: "idv2.chooser.idButtonTitle",
|
|
1024
|
+
testId: "verification-option-id",
|
|
1025
|
+
weight: 3
|
|
1026
|
+
},
|
|
1027
|
+
passport: {
|
|
1028
|
+
type: "passport",
|
|
1029
|
+
icon: PassportIcon,
|
|
1030
|
+
title: "idv2.chooser.passportButtonTitle",
|
|
1031
|
+
testId: "verification-option-passport",
|
|
1032
|
+
weight: 4
|
|
1033
|
+
},
|
|
1034
|
+
digitalId: {
|
|
1035
|
+
icon: DeviceWalletsIcon,
|
|
1036
|
+
title: "idv2.chooser.digitalIdButtonTitle",
|
|
1037
|
+
testId: "verification-option-digitalId",
|
|
1038
|
+
type: "digitalId",
|
|
1039
|
+
weight: 5
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
//#endregion
|
|
1043
|
+
//#region src/modules/id/chooser/digitalIdProviderLogos.ts
|
|
1044
|
+
/**
|
|
1045
|
+
* Digital-ID provider logos, keyed by provider id.
|
|
1046
|
+
*
|
|
1047
|
+
* The backend's `digitalIds.methods[].logoUrl` currently carries bare asset
|
|
1048
|
+
* file names (`idin.svg`), which would resolve against the host page and
|
|
1049
|
+
* render broken. Until it sends absolute links, the chooser card falls back to
|
|
1050
|
+
* this map. A backend-sent absolute URL always wins — see `toCardLogoSrc` in
|
|
1051
|
+
* `chooser.helpers.ts`.
|
|
1052
|
+
*
|
|
1053
|
+
* **The full Trinsic catalog is kept here on purpose**, including providers the
|
|
1054
|
+
* SDK does not offer yet, so adding one is a lookup rather than a hunt. Source:
|
|
1055
|
+
* the Trinsic integrations catalog (`content.trinsic.id/connect/integrations`).
|
|
1056
|
+
*
|
|
1057
|
+
* Keys are the Trinsic provider ids. {@link getDigitalIdProviderLogo}
|
|
1058
|
+
* normalises before looking up, so the vendor-prefixed form the SDK and
|
|
1059
|
+
* `ms-credential-verification` use (`trinsic_netherlands_idin`) finds
|
|
1060
|
+
* `netherlands-idin` too.
|
|
1061
|
+
*
|
|
1062
|
+
* `name` is the catalog's display name. It is reference data — the card shows
|
|
1063
|
+
* the backend's `displayName` — but it is what makes this list searchable by
|
|
1064
|
+
* the name a person actually knows the provider by.
|
|
1065
|
+
*/
|
|
1066
|
+
var DIGITAL_ID_PROVIDER_LOGOS = {
|
|
1067
|
+
"a-mojeid": {
|
|
1068
|
+
name: "MojeID login",
|
|
1069
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mojeid.png"
|
|
1070
|
+
},
|
|
1071
|
+
"australia-connect-id": {
|
|
1072
|
+
name: "ConnectID",
|
|
1073
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/connectid-logo.png"
|
|
1074
|
+
},
|
|
1075
|
+
"austria-valera-eudi-sandbox": {
|
|
1076
|
+
name: "Austria Valera EUDI Sandbox",
|
|
1077
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/austria-valera-eudi-sandbox.png"
|
|
1078
|
+
},
|
|
1079
|
+
"belgium-itsme": {
|
|
1080
|
+
name: "itsme",
|
|
1081
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/itsme.svg"
|
|
1082
|
+
},
|
|
1083
|
+
"brazil-cpf-lookup": {
|
|
1084
|
+
name: "Brazil CPF Check",
|
|
1085
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/cpf.png"
|
|
1086
|
+
},
|
|
1087
|
+
"brazil-digital-cnh": {
|
|
1088
|
+
name: "Brazil Digital CNH",
|
|
1089
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/cnh.png"
|
|
1090
|
+
},
|
|
1091
|
+
clear: {
|
|
1092
|
+
name: "CLEAR",
|
|
1093
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/clear.svg"
|
|
1094
|
+
},
|
|
1095
|
+
"czech-bank-id": {
|
|
1096
|
+
name: "Czech Bank iD",
|
|
1097
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/czech-bank-id.png"
|
|
1098
|
+
},
|
|
1099
|
+
"czech-republic-mojeid": {
|
|
1100
|
+
name: "MojeID Czech",
|
|
1101
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mojeid.png"
|
|
1102
|
+
},
|
|
1103
|
+
"denmark-altid": {
|
|
1104
|
+
name: "AltID",
|
|
1105
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/denmark-altid.png"
|
|
1106
|
+
},
|
|
1107
|
+
"denmark-mitid": {
|
|
1108
|
+
name: "MitID",
|
|
1109
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mitid-logo.svg"
|
|
1110
|
+
},
|
|
1111
|
+
"document-scan": {
|
|
1112
|
+
name: "Scan your government ID",
|
|
1113
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/document-scan.png"
|
|
1114
|
+
},
|
|
1115
|
+
"eudi-reference-wallet": {
|
|
1116
|
+
name: "EUDI Reference Wallet",
|
|
1117
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/eudi-reference-wallet.png"
|
|
1118
|
+
},
|
|
1119
|
+
"finnish-trust-network": {
|
|
1120
|
+
name: "Finnish Trust Network",
|
|
1121
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ftn.png"
|
|
1122
|
+
},
|
|
1123
|
+
"france-identite": {
|
|
1124
|
+
name: "France Identité",
|
|
1125
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/france-identite.png"
|
|
1126
|
+
},
|
|
1127
|
+
"france-identite-numerique": {
|
|
1128
|
+
name: "L'Identité Numérique",
|
|
1129
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/france-identite-numerique.png"
|
|
1130
|
+
},
|
|
1131
|
+
"germany-eudi-sandbox": {
|
|
1132
|
+
name: "Germany EUDI Sandbox",
|
|
1133
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/germany-eudi-sandbox.png"
|
|
1134
|
+
},
|
|
1135
|
+
"google-wallet": {
|
|
1136
|
+
name: "Google Wallet",
|
|
1137
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/google-wallet.png"
|
|
1138
|
+
},
|
|
1139
|
+
"india-digilocker-aadhaar": {
|
|
1140
|
+
name: "DigiLocker (Aadhaar)",
|
|
1141
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/aadhaar.png"
|
|
1142
|
+
},
|
|
1143
|
+
"indonesia-dukcapil-match": {
|
|
1144
|
+
name: "Indonesia Identity Verification",
|
|
1145
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/indonesia-dukcapil-match.png"
|
|
1146
|
+
},
|
|
1147
|
+
"italy-spid": {
|
|
1148
|
+
name: "SPID",
|
|
1149
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/spid.svg"
|
|
1150
|
+
},
|
|
1151
|
+
"kenya-nid-lookup-3": {
|
|
1152
|
+
name: "Kenya NID Lookup",
|
|
1153
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ke-nid.png"
|
|
1154
|
+
},
|
|
1155
|
+
"kenya-nid-match-2": {
|
|
1156
|
+
name: "Kenya NID Match",
|
|
1157
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ke-nid.png"
|
|
1158
|
+
},
|
|
1159
|
+
"mobile-id": {
|
|
1160
|
+
name: "Mobile-ID",
|
|
1161
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mobiil-id-logo.svg"
|
|
1162
|
+
},
|
|
1163
|
+
"moldova-evo-wallet": {
|
|
1164
|
+
name: "EVO Wallet",
|
|
1165
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/moldova-evo-wallet.png"
|
|
1166
|
+
},
|
|
1167
|
+
"netherlands-idin": {
|
|
1168
|
+
name: "IDIN",
|
|
1169
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/idin-logo.svg"
|
|
1170
|
+
},
|
|
1171
|
+
"nigeria-nin-lookup-2": {
|
|
1172
|
+
name: "Nigeria NIN Lookup",
|
|
1173
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
1174
|
+
},
|
|
1175
|
+
"nigeria-nin-lookup-3": {
|
|
1176
|
+
name: "Nigeria NIN Lookup",
|
|
1177
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
1178
|
+
},
|
|
1179
|
+
"nigeria-nin-match-2": {
|
|
1180
|
+
name: "Nigeria NIN Match",
|
|
1181
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
1182
|
+
},
|
|
1183
|
+
"norway-bankid": {
|
|
1184
|
+
name: "BankID Norway",
|
|
1185
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/no-bankid.png"
|
|
1186
|
+
},
|
|
1187
|
+
oneid: {
|
|
1188
|
+
name: "OneID",
|
|
1189
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/oneid-logo.svg"
|
|
1190
|
+
},
|
|
1191
|
+
"philippines-digital-national-id-qr": {
|
|
1192
|
+
name: "Digital National ID",
|
|
1193
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
1194
|
+
},
|
|
1195
|
+
"philippines-philsys-match": {
|
|
1196
|
+
name: "PhilSys Biometric Verification",
|
|
1197
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
1198
|
+
},
|
|
1199
|
+
"philippines-physical-national-id-qr": {
|
|
1200
|
+
name: "Philippines National ID",
|
|
1201
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
1202
|
+
},
|
|
1203
|
+
"singpass-login": {
|
|
1204
|
+
name: "Singpass",
|
|
1205
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/singpass-logo.png"
|
|
1206
|
+
},
|
|
1207
|
+
"singpass-myinfo": {
|
|
1208
|
+
name: "Singpass",
|
|
1209
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/singpass-logo.png"
|
|
1210
|
+
},
|
|
1211
|
+
"smart-id": {
|
|
1212
|
+
name: "Smart-ID",
|
|
1213
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/smart-id-logo.svg"
|
|
1214
|
+
},
|
|
1215
|
+
"south-africa-nid-lookup-2": {
|
|
1216
|
+
name: "South Africa NID Lookup",
|
|
1217
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/za-nid.png"
|
|
1218
|
+
},
|
|
1219
|
+
"south-africa-nid-match-2": {
|
|
1220
|
+
name: "South Africa NID Match",
|
|
1221
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/za-nid.png"
|
|
1222
|
+
},
|
|
1223
|
+
"sweden-bankid": {
|
|
1224
|
+
name: "BankID Sweden",
|
|
1225
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/se-bankid.svg"
|
|
1226
|
+
},
|
|
1227
|
+
"uganda-nid-match-2": {
|
|
1228
|
+
name: "Uganda NID",
|
|
1229
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ug-nid.png"
|
|
1230
|
+
},
|
|
1231
|
+
"uk-evisa-lookup": {
|
|
1232
|
+
name: "UK eVisa Lookup",
|
|
1233
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/uk-evisa.svg"
|
|
1234
|
+
},
|
|
1235
|
+
"usa-louisiana-wallet": {
|
|
1236
|
+
name: "LA Wallet",
|
|
1237
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/la-wallet.png"
|
|
1238
|
+
},
|
|
1239
|
+
"zimbabwe-nid-lookup-2": {
|
|
1240
|
+
name: "Zimbabwe NID Lookup",
|
|
1241
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/zw-nid.png"
|
|
1242
|
+
},
|
|
1243
|
+
"trinsic-mock-output": {
|
|
1244
|
+
name: "Mock - Output",
|
|
1245
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1246
|
+
},
|
|
1247
|
+
"trinsic-test-database-lookup": {
|
|
1248
|
+
name: "Mock - Database Lookup",
|
|
1249
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1250
|
+
},
|
|
1251
|
+
"trinsic-test-deeplink": {
|
|
1252
|
+
name: "Mock - DeeplinkToMobile",
|
|
1253
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1254
|
+
},
|
|
1255
|
+
"trinsic-test-deeplink-refresh": {
|
|
1256
|
+
name: "Mock - DeeplinkToMobile + RefreshStepContent",
|
|
1257
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1258
|
+
},
|
|
1259
|
+
"trinsic-test-delayed-results": {
|
|
1260
|
+
name: "Mock - Delayed Results",
|
|
1261
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1262
|
+
},
|
|
1263
|
+
"trinsic-test-handoff": {
|
|
1264
|
+
name: "Mock - Handoff",
|
|
1265
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1266
|
+
},
|
|
1267
|
+
"trinsic-test-offline": {
|
|
1268
|
+
name: "Mock - Offline",
|
|
1269
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1270
|
+
},
|
|
1271
|
+
"trinsic-test-redirect": {
|
|
1272
|
+
name: "Mock - Redirect",
|
|
1273
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1274
|
+
},
|
|
1275
|
+
"trinsic-test-show-content": {
|
|
1276
|
+
name: "Mock - ShowContent",
|
|
1277
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1278
|
+
},
|
|
1279
|
+
"trinsic-test-show-content-refresh": {
|
|
1280
|
+
name: "Mock - ShowContent + RefreshStepContent",
|
|
1281
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1282
|
+
},
|
|
1283
|
+
"trinsic-test-sub-providers": {
|
|
1284
|
+
name: "Mock - Sub-providers",
|
|
1285
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1288
|
+
/**
|
|
1289
|
+
* The map's key form: lowercased, `_` as `-`, and the vendor prefix dropped so
|
|
1290
|
+
* `trinsic_netherlands_idin` (what the SDK and `ms-credential-verification`
|
|
1291
|
+
* use) finds `netherlands-idin` (what Trinsic publishes).
|
|
1292
|
+
*
|
|
1293
|
+
* The `trinsic-test-*` / `trinsic-mock-*` keys keep their prefix: it is part of
|
|
1294
|
+
* the name there, and dropping only the first segment leaves `test-redirect`,
|
|
1295
|
+
* which is still distinct from every real provider.
|
|
1296
|
+
*/
|
|
1297
|
+
function toLogoKey(providerId) {
|
|
1298
|
+
return providerId.toLowerCase().replace(/_/g, "-");
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* The catalog logo for a provider id, or `undefined` when the map does not
|
|
1302
|
+
* carry it — the card then falls back to the generic digital-ID glyph.
|
|
1303
|
+
*/
|
|
1304
|
+
function getDigitalIdProviderLogo(providerId) {
|
|
1305
|
+
if (!providerId) return;
|
|
1306
|
+
const key = toLogoKey(providerId);
|
|
1307
|
+
return DIGITAL_ID_PROVIDER_LOGOS[key]?.logoUrl ?? DIGITAL_ID_PROVIDER_LOGOS[key.replace(/^trinsic-/, "")]?.logoUrl;
|
|
1308
|
+
}
|
|
1309
|
+
//#endregion
|
|
1310
|
+
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
1311
|
+
/**
|
|
1312
|
+
* The card logo: the backend's own link when it is absolute, else the catalog
|
|
1313
|
+
* logo for the provider (`digitalIdProviderLogos`), else nothing — the card
|
|
1314
|
+
* then renders the generic digital-ID glyph.
|
|
1315
|
+
*
|
|
1316
|
+
* The backend catalog still carries bare asset file names (`idin.svg`) for
|
|
1317
|
+
* some methods. Those would resolve against the host page and render broken,
|
|
1318
|
+
* so they are ignored in favour of the catalog map.
|
|
1319
|
+
*/
|
|
1320
|
+
function toCardLogoSrc(logoUrl, providerId) {
|
|
1321
|
+
if (logoUrl && /^(https?:\/\/|data:)/i.test(logoUrl)) return logoUrl;
|
|
1322
|
+
return getDigitalIdProviderLogo(providerId);
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Expands the `digitalIdRedirect` document type into one card per enabled
|
|
1326
|
+
* web-redirect provider (iDIN, FTN, …) in backend order. With no provider
|
|
1327
|
+
* options (e.g. the mDL wallet fallback) the generic redirect card is kept.
|
|
1328
|
+
*/
|
|
1329
|
+
function toDigitalIdRedirectCards(digitalIdRedirectOptions) {
|
|
1330
|
+
const base = CHOOSER_OPTIONS_LOOKUP.digitalIdRedirect;
|
|
1331
|
+
if (digitalIdRedirectOptions.length === 0) return [{
|
|
1332
|
+
...base,
|
|
1333
|
+
key: base.type
|
|
1334
|
+
}];
|
|
1335
|
+
return digitalIdRedirectOptions.map((option) => ({
|
|
1336
|
+
...base,
|
|
1337
|
+
key: `${base.type}:${option.providerId}`,
|
|
1338
|
+
testId: `${base.testId}-${option.providerId}`,
|
|
1339
|
+
providerId: option.providerId,
|
|
1340
|
+
displayName: option.displayName,
|
|
1341
|
+
iconSrc: toCardLogoSrc(option.logoUrl, option.providerId)
|
|
1342
|
+
}));
|
|
1343
|
+
}
|
|
1344
|
+
function getAvailableChooserOptions(availableDocumentTypes, digitalIdRedirectOptions = []) {
|
|
1345
|
+
const cards = [];
|
|
1346
|
+
for (const documentType of availableDocumentTypes) {
|
|
1347
|
+
if (documentType === "digitalIdRedirect") {
|
|
1348
|
+
cards.push(...toDigitalIdRedirectCards(digitalIdRedirectOptions));
|
|
1349
|
+
continue;
|
|
1350
|
+
}
|
|
1351
|
+
const chooserOption = CHOOSER_OPTIONS_LOOKUP[documentType];
|
|
1352
|
+
if (chooserOption) cards.push({
|
|
1353
|
+
...chooserOption,
|
|
1354
|
+
key: chooserOption.type
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
return cards.sort((cardA, cardB) => cardA.weight - cardB.weight);
|
|
1358
|
+
}
|
|
1359
|
+
/** Chooser cards that verify with a digital ID rather than a physical one. */
|
|
1360
|
+
var DIGITAL_ID_CARD_TYPES = new Set([
|
|
1361
|
+
"digitalId",
|
|
1362
|
+
"digitalIdUpload",
|
|
1363
|
+
"digitalIdRedirect"
|
|
1364
|
+
]);
|
|
1365
|
+
/** Position of a digital-ID card type inside the digital section. */
|
|
1366
|
+
var DIGITAL_ID_SECTION_ORDER = {
|
|
1367
|
+
digitalId: 0,
|
|
1368
|
+
digitalIdUpload: 1,
|
|
1369
|
+
digitalIdRedirect: 2
|
|
1370
|
+
};
|
|
1371
|
+
/**
|
|
1372
|
+
* Splits the sorted chooser cards into "Use your ID" and "Digital ID
|
|
1373
|
+
* verification". Never adds or drops cards: physical documents keep their
|
|
1374
|
+
* order, and the digital section is wallet → Upload Digital ID → redirect
|
|
1375
|
+
* providers (stable, so the providers keep their ranking).
|
|
1376
|
+
*/
|
|
1377
|
+
function getChooserCardSections(cards) {
|
|
1378
|
+
const useYourId = cards.filter((card) => !DIGITAL_ID_CARD_TYPES.has(card.type));
|
|
1379
|
+
const digitalId = cards.filter((card) => DIGITAL_ID_CARD_TYPES.has(card.type)).sort((cardA, cardB) => DIGITAL_ID_SECTION_ORDER[cardA.type] - DIGITAL_ID_SECTION_ORDER[cardB.type]);
|
|
1380
|
+
return {
|
|
1381
|
+
useYourId,
|
|
1382
|
+
digitalId,
|
|
1383
|
+
showTitles: cards.length > 2 && useYourId.length > 0 && digitalId.length > 0
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Description key for the Digital ID (device wallet) card, naming the wallet
|
|
1388
|
+
* the device certainly reaches. `undefined` when the OS is not certain (e.g.
|
|
1389
|
+
* macOS Chrome): the card then shows no description.
|
|
1390
|
+
*
|
|
1391
|
+
* Intentional (ENG-52842 product copy): the description names the wallet
|
|
1392
|
+
* family of the *device*, not the wallet methods enabled for the flow. Which
|
|
1393
|
+
* wallets are eligible is decided in core (`hasEligibleDeviceWallet`), and that
|
|
1394
|
+
* only decides whether the card shows at all. The card itself launches one
|
|
1395
|
+
* handshake that lets the OS offer whichever wallet holds the ID, so the copy
|
|
1396
|
+
* stays device-level. Narrowing it to the configured methods (e.g. Samsung
|
|
1397
|
+
* Internet with only Google Wallet enabled) needs new per-method copy from
|
|
1398
|
+
* product and is out of scope here.
|
|
1399
|
+
*/
|
|
1400
|
+
function getDigitalIdWalletDescriptionKey(walletDevice) {
|
|
1401
|
+
switch (walletDevice) {
|
|
1402
|
+
case "apple": return "idv2.chooser.digitalIdAppleWalletDescription";
|
|
1403
|
+
case "samsung": return "idv2.chooser.digitalIdSamsungWalletDescription";
|
|
1404
|
+
case "android": return "idv2.chooser.digitalIdGoogleOrSamsungWalletDescription";
|
|
1405
|
+
default: return;
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Description key shown under a card's title, or `undefined` for cards that
|
|
1410
|
+
* have none: the device-wallet card names the wallet for this device, and the
|
|
1411
|
+
* Upload Digital ID card explains the upload.
|
|
1412
|
+
*/
|
|
1413
|
+
function getChooserCardDescriptionKey(cardType, walletDevice) {
|
|
1414
|
+
if (cardType === "digitalId") return getDigitalIdWalletDescriptionKey(walletDevice);
|
|
1415
|
+
if (cardType === "digitalIdUpload") return "idv2.chooser.digitalIdUploadDescription";
|
|
1416
|
+
}
|
|
1417
|
+
//#endregion
|
|
1418
|
+
//#region src/modules/id/chooser/regionChooser.tsx
|
|
1419
|
+
/**
|
|
1420
|
+
* "Choose your region" — picks the country the chooser ranks digital-ID
|
|
1421
|
+
* options for. Done applies it; the close button keeps the current one.
|
|
1422
|
+
*/
|
|
1423
|
+
var RegionChooser = ({ country, providerCountries, onDone, onClose }) => {
|
|
1424
|
+
const { t } = useTranslation();
|
|
1425
|
+
const [selected, setSelected] = d(country ?? "");
|
|
1426
|
+
const countryCodes = T(() => [...new Set([
|
|
1427
|
+
...Object.keys(countryDefinitions),
|
|
1428
|
+
...providerCountries,
|
|
1429
|
+
...country ? [country] : []
|
|
1430
|
+
])], [providerCountries, country]);
|
|
1431
|
+
return /* @__PURE__ */ u(Page, {
|
|
1432
|
+
title: t("idv2.chooser.chooseRegionTitle"),
|
|
1433
|
+
"data-testid": "chooser-region-page",
|
|
1434
|
+
className: "IncodeChooserRegionPage",
|
|
1435
|
+
hideFooterBranding: true,
|
|
1436
|
+
children: [
|
|
1437
|
+
/* @__PURE__ */ u(PrizmaButton, {
|
|
1438
|
+
variant: "icon",
|
|
1439
|
+
size: "S",
|
|
1440
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonInline IncodeButtonIconOnly IncodeChooserRegionClose",
|
|
1441
|
+
"aria-label": t("common.close"),
|
|
1442
|
+
onClick: onClose,
|
|
1443
|
+
"data-testid": "chooser-region-close",
|
|
1444
|
+
children: /* @__PURE__ */ u(CloseIcon, {
|
|
1445
|
+
width: 24,
|
|
1446
|
+
height: 24
|
|
1447
|
+
})
|
|
1448
|
+
}),
|
|
1449
|
+
/* @__PURE__ */ u("div", {
|
|
1450
|
+
class: "IncodeChooserRegionContent",
|
|
1451
|
+
children: /* @__PURE__ */ u(CountrySelector, {
|
|
1452
|
+
id: "chooser-region-country",
|
|
1453
|
+
label: t("idv2.chooser.yourCountryLabel"),
|
|
1454
|
+
value: selected,
|
|
1455
|
+
onChange: setSelected,
|
|
1456
|
+
countryCodes,
|
|
1457
|
+
devOnlyCountryCodes: [],
|
|
1458
|
+
searchPlaceholder: t("idv2.chooser.searchCountryPlaceholder"),
|
|
1459
|
+
"data-testid": "chooser-region-country"
|
|
1460
|
+
})
|
|
1461
|
+
}),
|
|
1462
|
+
/* @__PURE__ */ u("div", {
|
|
1463
|
+
class: "IncodeChooserRegionFooter",
|
|
1464
|
+
children: /* @__PURE__ */ u(PrizmaButton, {
|
|
1465
|
+
variant: "primary",
|
|
1466
|
+
size: "L",
|
|
1467
|
+
className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
|
|
1468
|
+
disabled: !selected,
|
|
1469
|
+
onClick: () => onDone(selected),
|
|
1470
|
+
"data-testid": "chooser-region-done",
|
|
1471
|
+
children: t("idv2.chooser.chooseRegionDone")
|
|
1472
|
+
})
|
|
1473
|
+
})
|
|
1474
|
+
]
|
|
1475
|
+
});
|
|
1476
|
+
};
|
|
1477
|
+
//#endregion
|
|
1478
|
+
//#region src/modules/id/chooser/viewingOptionsFor.tsx
|
|
1479
|
+
/**
|
|
1480
|
+
* "Viewing options for 🇺🇸 US" — the country the digital-ID options are
|
|
1481
|
+
* ranked for. Tapping the country opens the region picker.
|
|
1482
|
+
*
|
|
1483
|
+
* The button's accessible name starts with its visible text ("US") so voice
|
|
1484
|
+
* control can target it (WCAG 2.5.3); the purpose ("Change region") follows as
|
|
1485
|
+
* visually hidden text. The flag is decorative.
|
|
1486
|
+
*/
|
|
1487
|
+
var ViewingOptionsFor = ({ country, onChangeCountry }) => {
|
|
1488
|
+
const { t } = useTranslation();
|
|
1489
|
+
return /* @__PURE__ */ u("div", {
|
|
1490
|
+
class: "IncodeChooserViewingOptions",
|
|
1491
|
+
"data-testid": "chooser-viewing-options",
|
|
1492
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1493
|
+
class: "IncodeChooserViewingOptionsLabel",
|
|
1494
|
+
children: t("idv2.chooser.viewingOptionsFor")
|
|
1495
|
+
}), /* @__PURE__ */ u(PrizmaButton, {
|
|
1496
|
+
variant: "tertiary-link",
|
|
1497
|
+
size: "L",
|
|
1498
|
+
className: "IncodeButton IncodeButtonLink IncodeButtonInline IncodeChooserViewingOptionsCountry",
|
|
1499
|
+
onClick: onChangeCountry,
|
|
1500
|
+
"data-testid": "chooser-change-country",
|
|
1501
|
+
children: country ? /* @__PURE__ */ u(k, { children: [
|
|
1502
|
+
/* @__PURE__ */ u("span", {
|
|
1503
|
+
class: "IncodeChooserViewingOptionsFlag",
|
|
1504
|
+
"aria-hidden": "true",
|
|
1505
|
+
children: countryFlagEmoji(country)
|
|
1506
|
+
}),
|
|
1507
|
+
/* @__PURE__ */ u("span", {
|
|
1508
|
+
class: "IncodeChooserViewingOptionsCode",
|
|
1509
|
+
children: country
|
|
1510
|
+
}),
|
|
1511
|
+
/* @__PURE__ */ u("span", {
|
|
1512
|
+
class: "IncodeChooserViewingOptionsHint",
|
|
1513
|
+
children: `, ${t("idv2.chooser.changeRegionAriaLabel")}`
|
|
1514
|
+
})
|
|
1515
|
+
] }) : /* @__PURE__ */ u("span", {
|
|
1516
|
+
class: "IncodeChooserViewingOptionsCode",
|
|
1517
|
+
children: t("idv2.chooser.chooseRegionLink")
|
|
1518
|
+
})
|
|
1519
|
+
})]
|
|
1520
|
+
});
|
|
1521
|
+
};
|
|
1522
|
+
//#endregion
|
|
1523
|
+
//#region src/modules/id/chooser/chooser.tsx
|
|
1524
|
+
var Chooser = ({ manager, state }) => {
|
|
1525
|
+
const { t } = useTranslation();
|
|
1526
|
+
const [isChoosingRegion, setIsChoosingRegion] = d(false);
|
|
1527
|
+
const availableChooserOptions = T(() => getAvailableChooserOptions(state.availableDocumentTypes, state.digitalIdRedirectOptions), [state.availableDocumentTypes, state.digitalIdRedirectOptions]);
|
|
1528
|
+
const sections = T(() => getChooserCardSections(availableChooserOptions), [availableChooserOptions]);
|
|
1529
|
+
const providerCountries = T(() => state.digitalIdRedirectOptions.flatMap((option) => option.country ? [option.country.toUpperCase()] : []), [state.digitalIdRedirectOptions]);
|
|
1530
|
+
const handleSelect = (card) => {
|
|
1531
|
+
if (card.providerId) {
|
|
1532
|
+
manager.selectDocument(card.type, { providerId: card.providerId });
|
|
1533
|
+
return;
|
|
1534
|
+
}
|
|
1535
|
+
manager.selectDocument(card.type);
|
|
1536
|
+
};
|
|
1537
|
+
if (isChoosingRegion) return /* @__PURE__ */ u(RegionChooser, {
|
|
1538
|
+
country: state.country,
|
|
1539
|
+
providerCountries,
|
|
1540
|
+
onClose: () => setIsChoosingRegion(false),
|
|
1541
|
+
onDone: (country) => {
|
|
1542
|
+
manager.setChooserCountry(country);
|
|
1543
|
+
setIsChoosingRegion(false);
|
|
1544
|
+
}
|
|
1545
|
+
});
|
|
1546
|
+
const describeCard = (card) => {
|
|
1547
|
+
const descriptionKey = getChooserCardDescriptionKey(card.type, state.walletDevice);
|
|
1548
|
+
return descriptionKey ? t(descriptionKey) : void 0;
|
|
1549
|
+
};
|
|
1550
|
+
const renderCards = (cards) => /* @__PURE__ */ u(VerificationOptionCardList, { children: cards.map((card) => /* @__PURE__ */ u(VerificationOptionCard, {
|
|
1551
|
+
icon: card.icon,
|
|
1552
|
+
iconSrc: card.iconSrc,
|
|
1553
|
+
title: card.displayName ?? t(card.title),
|
|
1554
|
+
description: describeCard(card),
|
|
1555
|
+
testId: card.testId,
|
|
1556
|
+
tag: card.tag ? t(card.tag) : void 0,
|
|
1557
|
+
onClick: () => handleSelect(card)
|
|
1558
|
+
}, card.key)) });
|
|
1559
|
+
const renderSection = (titleKey, cards, testId) => cards.length > 0 ? /* @__PURE__ */ u("section", {
|
|
1560
|
+
class: "IncodeChooserSection",
|
|
1561
|
+
"aria-labelledby": `${testId}-title`,
|
|
1562
|
+
"data-testid": testId,
|
|
1563
|
+
children: [/* @__PURE__ */ u("h3", {
|
|
1564
|
+
id: `${testId}-title`,
|
|
1565
|
+
class: "IncodeChooserSectionTitle",
|
|
1566
|
+
children: t(titleKey)
|
|
1567
|
+
}), renderCards(cards)]
|
|
1568
|
+
}) : null;
|
|
1569
|
+
return /* @__PURE__ */ u(Page, {
|
|
1570
|
+
title: t("idv2.chooser.chooseHowToVerifyTitle"),
|
|
1571
|
+
"data-testid": "document-chooser-page",
|
|
1572
|
+
className: "IncodeChooserPage",
|
|
1573
|
+
children: [state.countryRanked ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(ViewingOptionsFor, {
|
|
1574
|
+
country: state.country,
|
|
1575
|
+
onChangeCountry: () => setIsChoosingRegion(true)
|
|
1576
|
+
}), /* @__PURE__ */ u(Spacer, {
|
|
1577
|
+
size: 40,
|
|
1578
|
+
className: "IncodeChooserViewingOptionsSpacer"
|
|
1579
|
+
})] }) : null, /* @__PURE__ */ u("div", {
|
|
1580
|
+
class: "IncodeChooserContainer",
|
|
1581
|
+
children: sections.showTitles ? /* @__PURE__ */ u("div", {
|
|
1582
|
+
class: "IncodeChooserSections",
|
|
1583
|
+
children: [renderSection("idv2.chooser.useYourIdSectionTitle", sections.useYourId, "chooser-section-use-your-id"), renderSection("idv2.chooser.digitalIdSectionTitle", sections.digitalId, "chooser-section-digital-id")]
|
|
1584
|
+
}) : renderCards([...sections.useYourId, ...sections.digitalId])
|
|
1585
|
+
})]
|
|
1586
|
+
});
|
|
1587
|
+
};
|
|
1588
|
+
//#endregion
|
|
1589
|
+
export { VerificationOptionCardList as i, Tutorial as n, VerificationOptionCard as r, Chooser as t };
|