@incodetech/web 2.3.2-rc.4 → 2.4.0-rc.0
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 +0 -3
- package/dist/GeolocationPermissionDenied-ChCQ6Mhi.js +444 -0
- package/dist/ae-signature/ae-signature.es.js +3 -3
- package/dist/{af-ZA-CA6Cuvy7.js → af-ZA-B5RfX0Do.js} +1 -0
- package/dist/ageVerification-BMwwu3EI.js +77 -0
- package/dist/{am-C9PowMKj.js → am-BE3vlUmQ.js} +1 -0
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/antifraud/styles.css +0 -1
- package/dist/{ar-AE-CyVB3e6w.js → ar-AE-Dw0claA-.js} +2 -1
- package/dist/{ar-CA-xYPJY.js → ar-B3gZ5W2R.js} +1 -0
- package/dist/{ar-EG-CbZZLN4a.js → ar-EG-5pSqEbCR.js} +1 -0
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{autoFocusTitle-DIaSbuq7.js → autoFocusTitle-DTSPbDgY.js} +1 -1
- package/dist/{az-CKYeugV_.js → az-CtWu_6fI.js} +1 -0
- package/dist/back-horizontal-hint-BztyPanp.js +134 -0
- package/dist/back-vertical-hint-BSzA4QbJ.js +127 -0
- package/dist/base.css +1 -7230
- package/dist/{baseTutorial-DO4gqrJQ.js → baseTutorial-CW-zwkOM.js} +13 -24
- package/dist/{bn-DmUH7q5R.js → bn-CXOCkHeB.js} +1 -0
- package/dist/{bottomSheet-BLJeBfa5.js → bottomSheet-DmQVpuxJ.js} +2 -2
- package/dist/{bs-CWfAeJNO.js → bs-B4mczUkN.js} +1 -0
- package/dist/{ca-DWaNc0fo.js → ca-DAE1dQj9.js} +1 -0
- package/dist/cameraOverlay-Bgpa6tky.js +2 -0
- package/dist/cameraOverlayHeader-BZlR-wkk.js +83 -0
- package/dist/{cameraView-rIbhv8fs.js → cameraView-DG425WNr.js} +2 -2
- package/dist/{ceb-BG6KB0JE.js → ceb-C9GCq8zw.js} +1 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +9 -8
- package/dist/certificate-issuance/styles.css +1 -72
- package/dist/certificate-issuance/styles.css.js +1 -1
- package/dist/check-icon-BpjpKqhJ.js +48 -0
- package/dist/{checkbox-BhwI4wQM.js → checkbox-ClDWA_GP.js} +2 -2
- package/dist/connectionError-DnLv1SEA.js +45 -0
- package/dist/consent/consent.es.js +8 -6
- package/dist/consent/styles.css +1 -129
- package/dist/consent/styles.css.js +1 -1
- package/dist/countryDefinitions-BO9OSKQO.js +555 -0
- package/dist/countryFlag-2Vj85OIZ.js +67 -0
- package/dist/{countrySelector-yIGWfr2F.js → countrySelector-65mrWgRB.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/{cs-CZ-BACKrF5t.js → cs-CZ-CLmA_0jN.js} +1 -0
- package/dist/{cs-6iPoRnQs.js → cs-DJEcT5M8.js} +1 -0
- package/dist/curp-validation/curp-validation.es.js +13 -11
- package/dist/curp-validation/styles.css +1 -128
- package/dist/curp-validation/styles.css.js +1 -1
- package/dist/custom-fields/styles.css +1 -21
- package/dist/custom-fields/styles.css.js +1 -1
- package/dist/{customFields-C69ImDUR.js → customFields-BNX1AHc3.js} +10 -9
- package/dist/{customWatchlist-4DzMKHnO.js → customWatchlist-BdCLsmp2.js} +6 -6
- package/dist/{da-DK-CST8ldZv.js → da-DK-B0G-1XCN.js} +1 -0
- package/dist/{dashboardTheme-byzaKQpO.js → dashboardTheme-B3JLw1w6.js} +1 -1
- package/dist/dateInputComposed-81cxVVay.js +1 -0
- package/dist/{dateInputComposed-BJ2i31Qg.js → dateInputComposed-BwqEyZNg.js} +4 -4
- package/dist/{de-DvBX387Q.js → de-Pw3Ziz4S.js} +1 -0
- package/dist/denied-D977k8ju.js +1871 -0
- package/dist/deviceWallet-CoXT8GNt.js +66 -0
- package/dist/digitalIdRedirect-CI0JpjXY.js +162 -0
- package/dist/digitalIdUpload-DTrEj4Q3.js +496 -0
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +1 -378
- package/dist/document-capture/styles.css.js +1 -1
- package/dist/{documentCapture-BmmRBhhG.js → documentCapture-BVs_R-Aj.js} +127 -180
- package/dist/documentCapture-CE3xt7Qu.js +2 -0
- package/dist/dropdownComposed-BBeW4gkE.js +1 -0
- package/dist/{dropdownComposed-BthB9H5H.js → dropdownComposed-CB55QqNd.js} +8 -14
- package/dist/dynamic-forms/dynamic-forms.es.js +13 -12
- package/dist/dynamic-forms/styles.css +1 -104
- package/dist/dynamic-forms/styles.css.js +1 -1
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -113
- package/dist/ekyb/styles.css.js +1 -1
- package/dist/ekybModule-BiVsuQhj.js +2 -0
- package/dist/{ekybModule-C92p0vvi.js → ekybModule-Deru8qGu.js} +13 -12
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +1 -108
- package/dist/ekyc/styles.css.js +1 -1
- package/dist/ekycModule-CGS7oZAu.js +2 -0
- package/dist/{ekycModule-eBrLm0sR.js → ekycModule-Cb3HnENz.js} +46 -14
- package/dist/{el-BCSLBNUY.js → el-DlcHAcXD.js} +1 -0
- package/dist/{el-GR-DZW16R9N.js → el-GR-fXRg7fVy.js} +1 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/electronic-signature/styles.css +1 -407
- package/dist/electronic-signature/styles.css.js +1 -1
- package/dist/{electronic-signature-D1d_WObD.js → electronic-signature-Bt644x6v.js} +24 -21
- package/dist/email/email.es.js +8 -7
- package/dist/email/styles.css +1 -11
- package/dist/email/styles.css.js +1 -1
- package/dist/{emailInput-CZ-0HyRS.js → emailInput-DQlm6sys.js} +3 -3
- package/dist/{en-QnHXrrY7.js → en-BQfrZw2Q.js} +1 -0
- package/dist/{en-DG-Dlff-IsT.js → en-DG-Dbay0TVK.js} +1 -0
- package/dist/{errorContent-T3IsDggM.js → errorContent-i-XKbliC.js} +5 -5
- package/dist/{es-419-JaSs0Que.js → es-419-B494eoOQ.js} +1 -0
- package/dist/{es-xOhDko1G.js → es-CIaH0_TG.js} +1 -0
- package/dist/{es-ES-C7SEV5MS.js → es-ES-BAy8H_o4.js} +1 -0
- package/dist/{es-MX-8mD6Ru26.js → es-MX-mRlcVoSi.js} +1 -0
- package/dist/esm-15CISqPe.js +430 -0
- package/dist/{et-DVMXfkQT.js → et-BsM-KF4Y.js} +2 -1
- package/dist/{expiredId-BQukSylk.js → expiredId-Bc_tCf-R.js} +6 -6
- package/dist/extensibility.es.js +38 -36
- package/dist/{fa-IR-B7JNyhKz.js → fa-IR-DKPXxDgD.js} +1 -0
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +1 -535
- package/dist/face-match/styles.css.js +1 -1
- package/dist/faceMatch-KF3QElE7.js +2 -0
- package/dist/faceMatch-MVYGreUC.js +336 -0
- package/dist/{fi-FI-CgZFjWp0.js → fi-FI-BehaswUi.js} +1 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/field-comparison/styles.css +1 -27
- package/dist/field-comparison/styles.css.js +1 -1
- package/dist/fieldComparison-CQG-0wfE.js +2 -0
- package/dist/{fieldComparison-B79amZ7h.js → fieldComparison-D4FRpZlC.js} +13 -7
- package/dist/finalSuccessScreen-DS4fm_uM.js +500 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +28 -23
- package/dist/fiscal-qr/styles.css +1 -82
- package/dist/fiscal-qr/styles.css.js +1 -1
- package/dist/{flipAnimation-GbvrJ0-_.js → flipAnimation-NcDmqbnT.js} +643 -355
- package/dist/flow/flow.es.js +41 -24
- package/dist/flow/shell/styles.css +1 -401
- package/dist/flow/shell/styles.css.js +1 -1
- package/dist/flow/styles.css +1 -5702
- package/dist/{formField-tq_XH-Th.js → formField-D1sSXdbf.js} +2 -2
- package/dist/{fr-CA-pLsuP6oV.js → fr-CA-DZcH7XE0.js} +1 -0
- package/dist/{fr-DWhWFv0v.js → fr-DuG6kscd.js} +1 -0
- package/dist/front-horizontal-hint-DEHmtcdg.js +379 -0
- package/dist/{front-vertical-hint-qXMVdLri.js → front-vertical-hint-Cb1NO-xT.js} +71 -72
- package/dist/geolocation/geolocation.es.js +26 -459
- package/dist/geolocation/styles.css +1 -165
- package/dist/geolocation/styles.css.js +1 -1
- package/dist/government-validation/government-validation.es.js +15 -13
- package/dist/government-validation/styles.css +1 -4
- package/dist/government-validation/styles.css.js +1 -1
- package/dist/{he-BCXU1BJZ.js → he-B_PP0efY.js} +1 -0
- package/dist/{hi-DHKWk_3O.js → hi-D0rSX1o4.js} +1 -0
- package/dist/{hmn-DKxFifxf.js → hmn-DK7VD_xu.js} +1 -0
- package/dist/{homeScreen-C6n4tcTo.js → homeScreen-CKLvX3bf.js} +10 -11
- package/dist/{hr-Bb5L8s7b.js → hr-BpjWRIC0.js} +1 -0
- package/dist/{ht-NA3g5Q-7.js → ht-CG8o1xEm.js} +1 -0
- package/dist/{hu-D34RjbYg.js → hu-BmwC53l2.js} +1 -0
- package/dist/icons-Cri5P1f0.js +535 -0
- package/dist/id/id.es.js +315 -1174
- package/dist/id/styles.css +1 -1691
- package/dist/id/styles.css.js +1 -1
- package/dist/{id-lD25ONXO.js → id-CKlkbZdM.js} +1 -0
- package/dist/id-back-of-card-C7Au2tqk.js +71 -0
- package/dist/id-back-of-card-vertical-CtQBFw8w.js +74 -0
- package/dist/id-front-of-card-BmHL_keG.js +305 -0
- package/dist/id-front-of-card-vertical-DkNUn2Vx.js +253 -0
- package/dist/id-ocr/styles.css +1 -55
- package/dist/id-ocr/styles.css.js +1 -1
- package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -9
- package/dist/id-selfie-flow/styles.css +1 -780
- package/dist/id-verification/id-verification.es.js +6 -5
- package/dist/{idOcr-B1KXgAbC.js → idOcr-vWU87y1x.js} +12 -11
- package/dist/identity-reuse/identity-reuse.es.js +167 -139
- package/dist/identity-reuse/styles.css +1 -216
- package/dist/incode-logo-r5UBM52t.js +341 -0
- package/dist/{incodeComponent-CdiXt7v7.js → incodeComponent-I3JIdKa5.js} +147 -269
- package/dist/incodeModule-t2FDQ-II.js +68 -0
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-8oVJL9fW.js → inputComposed-B27kZydt.js} +2 -2
- package/dist/inputComposed-DfPNjr7W.js +1 -0
- package/dist/{it-Bjpo7bkn.js → it-Ha3KMdAw.js} +1 -0
- package/dist/{ja-G_1vszjj.js → ja-BcpfEJD1.js} +1 -0
- package/dist/{ja-JP-SAKkGA9f.js → ja-JP-6Sg-lS3C.js} +2 -1
- package/dist/{jv-BP3Kidjb.js → jv-BhDDvojx.js} +1 -0
- package/dist/{ka-Byk8FCEP.js → ka-DSEmyiG7.js} +1 -0
- package/dist/{kk-C4-RGR2p.js → kk-DfTBM0Ac.js} +1 -0
- package/dist/{km-Cz7zimk3.js → km-DSH-1ryG.js} +6 -5
- package/dist/{ko-BDxjQ_OF.js → ko-DmCEEN9O.js} +1 -0
- package/dist/{ko-KP-BknUJpo0.js → ko-KP-DxNF6PVH.js} +1 -0
- package/dist/{ky-DwIO9bLp.js → ky-BYYkLAWt.js} +1 -0
- package/dist/{lo-c59MQX2S.js → lo-Dd7cFyNu.js} +1 -0
- package/dist/{lt-BrhZu2Vj.js → lt-DJemxo6s.js} +1 -0
- package/dist/{lv-Db2rbWSh.js → lv-DV6PxXYU.js} +1 -0
- package/dist/{mandatoryConsent-BLdpQxu2.js → mandatoryConsent-CEFsoyzd.js} +8 -6
- package/dist/{manualCaptureButton-wmNH54-0.js → manualCaptureButton-DghY-ZUO.js} +5 -5
- package/dist/{manualCaptureButton-BE9SVH5c.js → manualCaptureButton-DwcLDSMN.js} +43 -34
- package/dist/{mk-Uqn_8kGi.js → mk-0GH3TF8e.js} +1 -0
- package/dist/{mn-D7Jznd1-.js → mn-DhhnhyBd.js} +1 -0
- package/dist/{ms-BfMCHUa8.js → ms-DmVYGU6Y.js} +1 -0
- package/dist/{my-DsHXgcbs.js → my-DGXxog_l.js} +1 -0
- package/dist/{nb-NO-CPRHGQCR.js → nb-NO-SMmm3cOU.js} +1 -0
- package/dist/{ne-CMjCTP-p.js → ne-DVsGmeSd.js} +1 -0
- package/dist/{nl-CnBRdS5k.js → nl-CL7EuWSC.js} +2 -1
- package/dist/{optionAccessibleLabel-CI7JZggS.js → optionAccessibleLabel-BApMWddn.js} +5 -5
- package/dist/{otpInput-DxD_x747.js → otpInput-D0RomcH9.js} +6 -6
- package/dist/page-BzEithea.js +299 -0
- package/dist/{passport-horizontal-hint-6Ghn2EEN.js → passport-horizontal-hint-DgNc6F0-.js} +48 -49
- package/dist/{passport-vertical-hint-UPFFpdf4.js → passport-vertical-hint-B-toVsfT.js} +42 -42
- package/dist/{passwordInputComposed-CIM8-Hvd.js → passwordInputComposed-DqiG9IUM.js} +4 -4
- package/dist/{pdf-CFubyG0B.js → pdf-BKHLi5Ac.js} +2 -2
- package/dist/pdf.worker.min-BM1b2w9V.js +4 -0
- package/dist/pdfViewer-6PrH9fHg.js +2 -0
- package/dist/pdfViewer-DZurXIAg.js +154 -0
- package/dist/{permissions-plW5DkaX.js → permissions-C6NE4tvm.js} +41 -14
- package/dist/phone/phone.es.js +9 -8
- package/dist/phone/styles.css +1 -10
- package/dist/phone/styles.css.js +1 -1
- package/dist/phoneInputComposed-CVDIUrRy.js +249 -0
- package/dist/{pl-Dk_XCbHn.js → pl-9hyt0nnb.js} +1 -0
- package/dist/policyUrls-B3M8nLRh.js +7 -0
- package/dist/{processing-BnNbgJs3.js → processing-Do2ee2et.js} +1 -1
- package/dist/progressBar-CNBUGgEc.js +27 -0
- package/dist/{pt-BR-BL7B4wuD.js → pt-BR-BBMw-S8O.js} +1 -0
- package/dist/{pt-PT-CNhvgKtg.js → pt-PT-fSxcH0NK.js} +1 -0
- package/dist/{pt-BLVxgywN.js → pt-WGxHmjdN.js} +1 -0
- package/dist/{spacer-BmQEPV3n.js → purify.es-0fCPkEV1.js} +2 -740
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/radioGroupComposed-Cy6hgLBE.js +1 -0
- package/dist/{radioGroupComposed-DFloG_N-.js → radioGroupComposed-FYYC8SNS.js} +2 -2
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +116 -13
- package/dist/redirect-to-mobile/styles.css +1 -323
- package/dist/redirect-to-mobile/styles.css.js +1 -1
- package/dist/reload-icon-elAFo9-k.js +70 -0
- package/dist/{resendTimer-BdmoqbO1.js → resendTimer-C0tGof4N.js} +1 -1
- package/dist/{richText-lWTHIpaP.js → richText-aCnLd3j2.js} +2 -2
- package/dist/{ro-B_y2K2EA.js → ro-CRut2TFS.js} +1 -0
- package/dist/{ru-BYq3R3Mj.js → ru-DKaZyUKL.js} +1 -0
- package/dist/{ru-RU-CRVS8j8Y.js → ru-RU-C09Xv3Yg.js} +1 -0
- package/dist/sanitizeSvg-BC-qLUgS.js +35 -0
- package/dist/selfie/selfie.es.js +9 -184
- package/dist/selfie/styles.css +1 -501
- package/dist/selfie/styles.css.js +1 -1
- package/dist/signature/signature.es.js +8 -7
- package/dist/signature/styles.css +1 -116
- package/dist/signature/styles.css.js +1 -1
- package/dist/{sk-CezkyMyH.js → sk-CRgCa4Xy.js} +1 -0
- package/dist/{sl-BWF10Icq.js → sl-BnWo7ffO.js} +1 -0
- package/dist/{smsTabContent-ok2pyDhh.js → smsTabContent-DrX3JFpW.js} +6 -7
- package/dist/{so-BrcNZ8Mr.js → so-QQqlxuIj.js} +1 -0
- package/dist/spacer-CRMb016O.js +741 -0
- package/dist/{spinner-C4do7hWX.js → spinner-B2lU14AQ.js} +2 -2
- package/dist/{sr-BnXGxOH1.js → sr-B5E7ItZS.js} +1 -0
- package/dist/{sr-Latn-6U6Ovy-Q.js → sr-Latn-DYffMLFY.js} +4 -3
- package/dist/{sr-YU-9B3BK4Ps.js → sr-YU-wTH5Bs0f.js} +1 -0
- package/dist/{statusPage-CXHHTIXA.js → statusPage-BIL3xP5F.js} +3 -3
- package/dist/{sv-SE-CpuV8J7C.js → sv-SE-CWW4jCGJ.js} +1 -0
- package/dist/{sw-BT-fzBc4.js → sw-DQMkDT3g.js} +1 -0
- package/dist/{th-D3ufVPwG.js → th-3PSK_Dsh.js} +1 -0
- package/dist/{th-TH-B4rqmZvR.js → th-TH-BT3vwWPA.js} +1 -0
- package/dist/themes/dark.css +1 -1537
- package/dist/themes/light.css +1 -1413
- package/dist/{tl-CUyJhGKF.js → tl-BjxdIajM.js} +1 -0
- package/dist/{tl-PH-D6NzZs7e.js → tl-PH-C_wJmHt1.js} +1 -0
- package/dist/{tr-BTjhr_32.js → tr-BhmOJl6w.js} +3 -2
- package/dist/transitionSpinner-CPK1gaqC.js +76 -0
- package/dist/{tutorial-BywSwy2f.js → tutorial-D9Tr_r15.js} +14 -18
- package/dist/types/ae-signature.d.ts +27 -5
- package/dist/types/antifraud.d.ts +27 -5
- package/dist/types/authentication.d.ts +27 -5
- package/dist/types/certificate-issuance.d.ts +27 -5
- package/dist/types/consent.d.ts +27 -3
- package/dist/types/cross-document-data-match.d.ts +32 -2
- package/dist/types/curp-validation.d.ts +27 -5
- package/dist/types/document-capture.d.ts +32 -2
- package/dist/types/dynamic-forms.d.ts +27 -5
- package/dist/types/ekyb.d.ts +32 -2
- package/dist/types/ekyc.d.ts +32 -2
- package/dist/types/electronic-signature.d.ts +27 -5
- package/dist/types/email.d.ts +27 -3
- package/dist/types/extensibility.d.ts +135 -27
- package/dist/types/face-match.d.ts +32 -2
- package/dist/types/field-comparison.d.ts +32 -2
- package/dist/types/fiscal-qr.d.ts +27 -3
- package/dist/types/flow.d.ts +27 -3
- package/dist/types/geolocation.d.ts +27 -3
- package/dist/types/government-validation.d.ts +32 -2
- package/dist/types/id-selfie-flow.d.ts +27 -14
- package/dist/types/id-verification.d.ts +27 -5
- package/dist/types/id.d.ts +27 -3
- package/dist/types/identity-reuse.d.ts +27 -5
- package/dist/types/index.d.ts +52 -1
- package/dist/types/phone.d.ts +27 -3
- package/dist/types/qe-signature.d.ts +27 -5
- package/dist/types/selfie.d.ts +27 -3
- package/dist/types/signature.d.ts +27 -5
- package/dist/types/video-selfie.d.ts +5 -2
- package/dist/types/watchlist.d.ts +27 -5
- package/dist/types/workflow.d.ts +50 -4
- package/dist/{typography-Cn7-Znpn.js → typography-CVggEHuL.js} +1 -1
- package/dist/{uiConfig-qMQHPoxa.js → uiConfig-CzjzpmLx.js} +256 -874
- package/dist/{uk-UA-YhEHqst_.js → uk-UA-D8etJPYS.js} +2 -1
- package/dist/{uk-ChhaHUBd.js → uk-XbgXa2Ga.js} +1 -0
- package/dist/{ur-BG91n7xX.js → ur-EvEZPGeH.js} +1 -0
- package/dist/useCaptureHelpButton-Dh2rCLy1.js +86 -0
- package/dist/useCoverMedia-VLw3OYN_.js +149 -0
- package/dist/{uz-BHE3Jn6i.js → uz-CLNoByCo.js} +1 -0
- package/dist/{verificationResult-C7wTXPts.js → verificationResult-CZbJPu23.js} +6 -6
- package/dist/{vi-BV5GRZ61.js → vi-Drg8ZYY0.js} +1 -0
- package/dist/video-selfie/styles.css +1 -864
- package/dist/video-selfie/styles.css.js +1 -1
- package/dist/video-selfie/video-selfie.es.js +15 -12
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/watchlist-for-business/styles.css +1 -17
- package/dist/watchlist-for-business/styles.css.js +1 -1
- package/dist/{watchlistForBusiness-Bjh_-5Y6.js → watchlistForBusiness-CjEsaTUW.js} +265 -8
- package/dist/{resolveApiKey-D14Dir23.js → withEndScreenTexts-CFZVBpbY.js} +53 -25
- package/dist/workflow/styles.css +1 -5116
- package/dist/workflow/workflow.es.js +83 -28
- package/dist/{zh-CN-DGW8k_EJ.js → zh-CN-DgsFb5nA.js} +3 -2
- package/dist/{zh-DNadxa_J.js → zh-D9t3i09v.js} +1 -0
- package/dist/{zh-HANT-DZvzTGaC.js → zh-HANT-DA0DsBcr.js} +1 -0
- package/dist/{zh-TW-DNQrPdBy.js → zh-TW-BjJ6hVEd.js} +1 -0
- package/package.json +8 -6
- package/dist/back-horizontal-hint-UQ7Nof6k.js +0 -137
- package/dist/back-vertical-hint-Crc8ybfk.js +0 -128
- package/dist/cameraOverlay-B_XWm0TM.js +0 -2
- package/dist/cameraOverlayHeader-DP6EP8Yu.js +0 -43
- package/dist/captureFooter-c_0jBnZ7.js +0 -67
- package/dist/connectionError-C7NJ8tzk.js +0 -45
- package/dist/countries-5e8kwG_m.js +0 -8560
- package/dist/dateInputComposed-D4OMicAE.js +0 -1
- package/dist/denied-D9PfdAvK.js +0 -2191
- package/dist/documentCapture-BSewRSbI.js +0 -2
- package/dist/dropdownComposed-09JlREPP.js +0 -1
- package/dist/ekybModule-DJhJoDkx.js +0 -2
- package/dist/ekycModule-CNshA9vz.js +0 -2
- package/dist/faceMatch-CbE3kMV1.js +0 -2
- package/dist/faceMatch-DdQuasoZ.js +0 -334
- package/dist/fieldComparison-fl8WhFZs.js +0 -2
- package/dist/finalSuccessScreen-DCG20NUQ.js +0 -499
- package/dist/front-horizontal-hint-mgovnJf3.js +0 -380
- package/dist/icons-lmBQFGnv.js +0 -533
- package/dist/id-back-of-card-B6EcmiCs.js +0 -83
- package/dist/id-back-of-card-vertical-B3FXhPpj.js +0 -88
- package/dist/id-front-of-card-V_BlLaZr.js +0 -308
- package/dist/id-front-of-card-vertical-CuZjL8kc.js +0 -278
- package/dist/incode-logo-BzJOZr3f.js +0 -4
- package/dist/incodeModule-f_OUurEl.js +0 -31
- package/dist/inputComposed-DMfj1MDU.js +0 -1
- package/dist/modal-CDsyaY_Z.js +0 -140
- package/dist/modal.hooks-B0Wrc9s2.js +0 -201
- package/dist/pdfViewer-DZpdaUDt.js +0 -149
- package/dist/pdfViewer-O6xIPlaK.js +0 -2
- package/dist/phoneInputComposed-DZMfEBok.js +0 -3751
- package/dist/radioGroupComposed-B06_2Xwu.js +0 -1
- package/dist/tabs-CaZGiNK8.js +0 -104
- /package/dist/{aligndevicelottie-B12hbVhG.js → aligndevicelottie-BARt-rhe.js} +0 -0
- /package/dist/{back-tutorial-XdmQ0Wml.js → back-tutorial-CZrMmj1_.js} +0 -0
- /package/dist/{backdevicelottie-m_DOD8xE.js → backdevicelottie-CIM3ekd8.js} +0 -0
- /package/dist/{blurdevicelottie-DQo_hTMD.js → blurdevicelottie-BRyXfLB6.js} +0 -0
- /package/dist/{browser-ponyfill-ZkeBm4ji.js → browser-ponyfill-DT11p-Ob.js} +0 -0
- /package/dist/{defineProperty-BojnCa44.js → defineProperty-CjeJoXkx.js} +0 -0
- /package/dist/{flip-animation-VicedlT5.js → flip-animation-BU5LNKYx.js} +0 -0
- /package/dist/{frontdevicelottie-CyIerlMv.js → frontdevicelottie-arpyu_Fz.js} +0 -0
- /package/dist/{glaredevicelottie-QM2C6Ivp.js → glaredevicelottie-TwTFxe7h.js} +0 -0
- /package/dist/{id-laser-h-B0-iXcvl.js → id-laser-h-Dr-hBxrq.js} +0 -0
- /package/dist/{id-laser-v-Bqh6vimi.js → id-laser-v-D_r0QNY8.js} +0 -0
- /package/dist/{id-tutorial-IhmAzrIF.js → id-tutorial-DM9Pkfs-.js} +0 -0
- /package/dist/{lottie_light-CzZ3CHBk.js → lottie_light-aMg9Q9iO.js} +0 -0
- /package/dist/{numberedStep-C8e_uPaz.js → numberedStep-CvbL3ht2.js} +0 -0
- /package/dist/{passport-tutorial-61vlloJS.js → passport-tutorial-CKZZuDf_.js} +0 -0
- /package/dist/{registerIncodeElement-CbZczi4S.js → registerIncodeElement-D_cn4dSI.js} +0 -0
- /package/dist/{selfieTutorial-BRQ2QNxQ.js → selfieTutorial-Dz6lDFMn.js} +0 -0
- /package/dist/{useModuleLoader-DpcbSKBH.js → useModuleLoader-BdIp6TNQ.js} +0 -0
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
2
|
-
import { S as k, _ as y, a as P, c as A, d as _, f as d, h as q, i as D, s as z, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { a as useAnimationData, d as cn, r as AnimatedAsset, t as Spacer } from "./spacer-
|
|
5
|
-
import { o as TypographyP, r as TypographyH3, t as Title } from "./typography-
|
|
6
|
-
import { t as Spinner } from "./spinner-
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-CzjzpmLx.js";
|
|
2
|
+
import { S as k, _ as y, a as P, b as Q, c as A, d as _, f as d, g as x, h as q, i as D, s as z, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { c as TerminalErrorPage, f as useTimeoutHandle, l as useFeatureManagement, m as useEventListener, p as useResizeObserver, u as usePresence } from "./incodeComponent-I3JIdKa5.js";
|
|
4
|
+
import { a as useAnimationData, d as cn, r as AnimatedAsset, t as Spacer } from "./spacer-CRMb016O.js";
|
|
5
|
+
import { o as TypographyP, r as TypographyH3, t as Title } from "./typography-CVggEHuL.js";
|
|
6
|
+
import { t as Spinner } from "./spinner-B2lU14AQ.js";
|
|
7
|
+
import { t as TransitionSpinner } from "./transitionSpinner-CPK1gaqC.js";
|
|
8
|
+
import { a as LockIcon, f as ChevronRightIcon, t as LightningIcon, x as Button } from "./icons-Cri5P1f0.js";
|
|
9
|
+
import { i as useCloseButton, t as Page } from "./page-BzEithea.js";
|
|
10
|
+
import { n as Modal } from "./incode-logo-r5UBM52t.js";
|
|
11
|
+
import { t as ProgressBar } from "./progressBar-CNBUGgEc.js";
|
|
12
|
+
import { n as CameraFrame, t as CameraView } from "./cameraView-DG425WNr.js";
|
|
13
|
+
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-BZlR-wkk.js";
|
|
14
|
+
import { n as CaptureFooter, t as useCaptureHelpButton } from "./useCaptureHelpButton-Dh2rCLy1.js";
|
|
15
|
+
import { t as BaseTutorial } from "./baseTutorial-CW-zwkOM.js";
|
|
16
|
+
import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-Bc_tCf-R.js";
|
|
17
|
+
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-2Vj85OIZ.js";
|
|
18
|
+
import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-DwcLDSMN.js";
|
|
19
|
+
import { eventModuleNames, recordExperimentAssignmentOnce, stateChanged } from "@incodetech/core/events";
|
|
17
20
|
import { ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, numberParam, resolveExperiment } from "@incodetech/core/feature-management";
|
|
18
|
-
import "@incodetech/core/id";
|
|
19
21
|
//#region src/shared/card/verificationOption/verificationOptionCard.tsx
|
|
20
22
|
function VerificationOptionCardList({ children }) {
|
|
21
23
|
return /* @__PURE__ */ u("div", {
|
|
@@ -23,7 +25,7 @@ function VerificationOptionCardList({ children }) {
|
|
|
23
25
|
children
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
|
-
function VerificationOptionCard({ icon: Icon, title, testId, onClick, tag }) {
|
|
28
|
+
function VerificationOptionCard({ icon: Icon, iconSrc, title, testId, onClick, tag }) {
|
|
27
29
|
return /* @__PURE__ */ u("button", {
|
|
28
30
|
type: "button",
|
|
29
31
|
class: "IncodeVerificationOptionCard",
|
|
@@ -34,7 +36,13 @@ function VerificationOptionCard({ icon: Icon, title, testId, onClick, tag }) {
|
|
|
34
36
|
class: "IncodeVerificationOptionCardIcon",
|
|
35
37
|
"aria-hidden": "true",
|
|
36
38
|
"data-testid": `${testId}-icon`,
|
|
37
|
-
children: /* @__PURE__ */ u(
|
|
39
|
+
children: iconSrc ? /* @__PURE__ */ u("img", {
|
|
40
|
+
class: "IncodeVerificationOptionCardImage",
|
|
41
|
+
src: iconSrc,
|
|
42
|
+
alt: "",
|
|
43
|
+
loading: "lazy",
|
|
44
|
+
decoding: "async"
|
|
45
|
+
}) : /* @__PURE__ */ u(Icon, {})
|
|
38
46
|
}), /* @__PURE__ */ u("span", {
|
|
39
47
|
class: "IncodeVerificationOptionCardContent",
|
|
40
48
|
children: [/* @__PURE__ */ u("span", {
|
|
@@ -58,7 +66,7 @@ function VerificationOptionCard({ icon: Icon, title, testId, onClick, tag }) {
|
|
|
58
66
|
function VerificationOptionCardTag({ label }) {
|
|
59
67
|
return /* @__PURE__ */ u("div", {
|
|
60
68
|
class: "IncodeVerificationOptionCardTag",
|
|
61
|
-
children: [/* @__PURE__ */ u(
|
|
69
|
+
children: [/* @__PURE__ */ u(LightningIcon, {}), /* @__PURE__ */ u("span", { children: label })]
|
|
62
70
|
});
|
|
63
71
|
}
|
|
64
72
|
//#endregion
|
|
@@ -74,23 +82,23 @@ var BlurIcon = ({ className }) => {
|
|
|
74
82
|
"aria-hidden": "true",
|
|
75
83
|
children: [
|
|
76
84
|
/* @__PURE__ */ u("path", {
|
|
77
|
-
d: "M12.
|
|
85
|
+
d: "M12.26 4.156a9.08 9.08 0 0 1 5.66 2.076.75.75 0 0 1-.954 1.158 7.58 7.58 0 0 0-4.717-1.734 7.56 7.56 0 0 0-4.696 1.716 12.5 12.5 0 0 0-3.49 4.639 12.3 12.3 0 0 0 3.46 4.615.75.75 0 0 1-.958 1.156 13.8 13.8 0 0 1-4.012-5.492.75.75 0 0 1 .002-.562 14 14 0 0 1 4.044-5.514l.002-.001a9.06 9.06 0 0 1 5.64-2.057z",
|
|
78
86
|
fill: "currentColor"
|
|
79
87
|
}),
|
|
80
88
|
/* @__PURE__ */ u("path", {
|
|
81
|
-
d: "M19.
|
|
89
|
+
d: "M19.396 3.806a.751.751 0 0 1 1.062 1.06l-15.35 15.35a.75.75 0 1 1-1.061-1.06z",
|
|
82
90
|
fill: "currentColor"
|
|
83
91
|
}),
|
|
84
92
|
/* @__PURE__ */ u("path", {
|
|
85
|
-
d: "M12.
|
|
93
|
+
d: "M12.429 8.184A3.82 3.82 0 0 1 14.95 9.3a.75.75 0 0 1-1.06 1.06 2.32 2.32 0 0 0-1.648-.68h0a2.325 2.325 0 0 0-2.321 2.329v.004a2.28 2.28 0 0 0 .678 1.633.75.75 0 0 1-1.056 1.066 3.79 3.79 0 0 1-1.122-2.705 3.825 3.825 0 0 1 3.817-3.827z",
|
|
86
94
|
fill: "currentColor"
|
|
87
95
|
}),
|
|
88
96
|
/* @__PURE__ */ u("path", {
|
|
89
|
-
d: "M19.
|
|
97
|
+
d: "M19.054 8.343a.75.75 0 0 1 1.048.156 15.7 15.7 0 0 1 1.84 3.214c.08.189.079.402-.003.59-1.989 4.608-5.588 7.557-9.69 7.557-.917 0-1.828-.15-2.697-.438a.75.75 0 1 1 .472-1.423c.719.239 1.47.361 2.226.361 3.231 0 6.324-2.28 8.18-6.355a14.2 14.2 0 0 0-1.533-2.614.75.75 0 0 1 .157-1.048Z",
|
|
90
98
|
fill: "currentColor"
|
|
91
99
|
}),
|
|
92
100
|
/* @__PURE__ */ u("path", {
|
|
93
|
-
d: "M14.
|
|
101
|
+
d: "M14.535 12.42a.75.75 0 1 1 1.476.269 3.83 3.83 0 0 1-3.072 3.077.75.75 0 0 1-.271-1.475 2.33 2.33 0 0 0 1.867-1.872Z",
|
|
94
102
|
fill: "currentColor"
|
|
95
103
|
})
|
|
96
104
|
]
|
|
@@ -109,19 +117,19 @@ var GlareIcon = ({ className }) => {
|
|
|
109
117
|
"aria-hidden": "true",
|
|
110
118
|
children: [
|
|
111
119
|
/* @__PURE__ */ u("path", {
|
|
112
|
-
d: "M2.25 15.
|
|
120
|
+
d: "M2.25 15.128V9.512c0-1.629.511-3.079 1.49-4.13.985-1.055 2.387-1.647 4.042-1.647h5.489l.077.004a.75.75 0 0 1 0 1.492l-.078.004H7.783c-1.283 0-2.272.45-2.944 1.17-.677.727-1.088 1.79-1.088 3.107v5.616c0 1.318.41 2.38 1.085 3.106.67.72 1.659 1.17 2.947 1.17h8.434c1.29 0 2.278-.45 2.949-1.17.676-.726 1.085-1.788 1.085-3.106v-2.67a.75.75 0 0 1 1.5 0v2.67c0 1.627-.509 3.078-1.487 4.129-.985 1.056-2.388 1.647-4.047 1.647H7.782c-1.66 0-3.062-.59-4.046-1.647-.978-1.05-1.486-2.502-1.486-4.13Z",
|
|
113
121
|
fill: "currentColor"
|
|
114
122
|
}),
|
|
115
123
|
/* @__PURE__ */ u("path", {
|
|
116
|
-
d: "M14.
|
|
124
|
+
d: "M14.27 14.412a.75.75 0 0 1 0 1.5H7.042a.75.75 0 0 1 0-1.5zm-5.31-3.76a.75.75 0 0 1 0 1.5H7.042a.75.75 0 1 1 0-1.5z",
|
|
117
125
|
fill: "currentColor"
|
|
118
126
|
}),
|
|
119
127
|
/* @__PURE__ */ u("path", {
|
|
120
|
-
d: "M18.
|
|
128
|
+
d: "M18.404 3.096a.75.75 0 0 1 .703.49l.102.273a3.01 3.01 0 0 0 1.778 1.782l.274.101a.75.75 0 0 1 0 1.406l-.274.102a3.01 3.01 0 0 0-1.717 1.629l-.061.152-.102.274a.75.75 0 0 1-1.406 0L17.6 9.03A3.01 3.01 0 0 0 15.82 7.25l-.273-.102a.75.75 0 0 1 0-1.406l.273-.101A3.01 3.01 0 0 0 17.6 3.859l.101-.273.048-.106a.75.75 0 0 1 .655-.384Zm0 2.398a4.5 4.5 0 0 1-.95.951c.362.268.683.588.95.95.268-.362.588-.682.95-.95a4.5 4.5 0 0 1-.95-.95Z",
|
|
121
129
|
fill: "currentColor"
|
|
122
130
|
}),
|
|
123
131
|
/* @__PURE__ */ u("path", {
|
|
124
|
-
d: "M13.
|
|
132
|
+
d: "M13.902 8.295a.75.75 0 0 1 .718.532c.099.326.353.58.677.679a.75.75 0 0 1 0 1.434 1.02 1.02 0 0 0-.677.68.75.75 0 0 1-1.436 0 1.02 1.02 0 0 0-.678-.68.75.75 0 0 1 0-1.434 1.02 1.02 0 0 0 .678-.679.75.75 0 0 1 .718-.532Z",
|
|
125
133
|
fill: "currentColor"
|
|
126
134
|
})
|
|
127
135
|
]
|
|
@@ -142,25 +150,25 @@ var InfoNotReadableIcon = ({ className }) => {
|
|
|
142
150
|
/* @__PURE__ */ u("path", {
|
|
143
151
|
fillRule: "evenodd",
|
|
144
152
|
clipRule: "evenodd",
|
|
145
|
-
d: "M3.
|
|
153
|
+
d: "M3.52 5.07c.843-.904 2.04-1.406 3.445-1.406h10.07c1.407 0 2.605.502 3.448 1.407.837.898 1.267 2.134 1.267 3.51v2.923a.75.75 0 0 1-1.5 0V8.58c0-1.065-.33-1.913-.865-2.487-.529-.568-1.313-.929-2.35-.929H6.965c-1.033 0-1.818.36-2.348.93-.536.574-.867 1.421-.867 2.486v6.588c0 1.067.33 1.914.865 2.488.529.568 1.313.929 2.35.929h4.157a.75.75 0 0 1 0 1.5H6.965c-1.407 0-2.605-.502-3.448-1.407-.837-.898-1.267-2.134-1.267-3.51V8.58c0-1.376.432-2.611 1.27-3.51Z",
|
|
146
154
|
fill: "currentColor"
|
|
147
155
|
}),
|
|
148
156
|
/* @__PURE__ */ u("path", {
|
|
149
157
|
fillRule: "evenodd",
|
|
150
158
|
clipRule: "evenodd",
|
|
151
|
-
d: "M2.25 9.
|
|
159
|
+
d: "M2.25 9.712a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75Z",
|
|
152
160
|
fill: "currentColor"
|
|
153
161
|
}),
|
|
154
162
|
/* @__PURE__ */ u("path", {
|
|
155
163
|
fillRule: "evenodd",
|
|
156
164
|
clipRule: "evenodd",
|
|
157
|
-
d: "M18.
|
|
165
|
+
d: "M18.436 14.397a2.171 2.171 0 1 0-3.072 3.07 2.171 2.171 0 0 0 3.072-3.07Zm-4.132-1.06a3.672 3.672 0 1 1 5.193 5.191 3.672 3.672 0 0 1-5.193-5.192Z",
|
|
158
166
|
fill: "currentColor"
|
|
159
167
|
}),
|
|
160
168
|
/* @__PURE__ */ u("path", {
|
|
161
169
|
fillRule: "evenodd",
|
|
162
170
|
clipRule: "evenodd",
|
|
163
|
-
d: "M18.436 17.
|
|
171
|
+
d: "M18.436 17.47a.75.75 0 0 1 1.06 0l1.584 1.584a.75.75 0 1 1-1.061 1.06l-1.583-1.583a.75.75 0 0 1 0-1.06Z",
|
|
164
172
|
fill: "currentColor"
|
|
165
173
|
})
|
|
166
174
|
]
|
|
@@ -183,20 +191,20 @@ var QuestionIcon = ({ className }) => {
|
|
|
183
191
|
r: "32",
|
|
184
192
|
fill: "#14151A"
|
|
185
193
|
}), /* @__PURE__ */ u("path", {
|
|
186
|
-
d: "M32
|
|
194
|
+
d: "M32 41a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0-22.5c4.69 0 8.167 3.558 8.167 8.06 0 2.276-.928 4.158-2.455 5.478-1.162 1.005-2.626 1.648-4.212 1.948V38h-3v-6.743l1.407-.087c1.607-.1 2.94-.62 3.843-1.401.874-.757 1.417-1.813 1.417-3.208 0-2.84-2.128-5.06-5.167-5.061-3.093 0-5.275 2.282-5.86 5.342l-2.947-.563C23.975 22.186 27.112 18.5 32 18.5Z",
|
|
187
195
|
fill: "white"
|
|
188
196
|
})]
|
|
189
197
|
});
|
|
190
198
|
};
|
|
191
199
|
//#endregion
|
|
192
200
|
//#region src/modules/id/commonIssues.tsx
|
|
193
|
-
var CommonIssues = ({ open, onClose, onTakeManually, portalContainer }) => {
|
|
201
|
+
var CommonIssues = ({ open, onClose, onTakeManually, onTakeAutomatically, portalContainer }) => {
|
|
194
202
|
const { t } = useTranslation();
|
|
195
203
|
const titleRef = q((el) => {
|
|
196
204
|
el?.focus();
|
|
197
205
|
}, []);
|
|
198
|
-
const
|
|
199
|
-
onTakeManually();
|
|
206
|
+
const handleSwitchCaptureMode = () => {
|
|
207
|
+
(onTakeAutomatically ?? onTakeManually)();
|
|
200
208
|
onClose();
|
|
201
209
|
};
|
|
202
210
|
return /* @__PURE__ */ u(Modal.Root, {
|
|
@@ -282,9 +290,9 @@ var CommonIssues = ({ open, onClose, onTakeManually, portalContainer }) => {
|
|
|
282
290
|
class: "IncodeCommonIssuesButtons",
|
|
283
291
|
children: [/* @__PURE__ */ u(Button, {
|
|
284
292
|
variant: "link",
|
|
285
|
-
onClick:
|
|
293
|
+
onClick: handleSwitchCaptureMode,
|
|
286
294
|
class: "IncodeCommonIssuesTakeManually",
|
|
287
|
-
children: t("commonIssues.takeManually")
|
|
295
|
+
children: t(onTakeAutomatically ? "commonIssues.takeAutomatically" : "commonIssues.takeManually")
|
|
288
296
|
}), /* @__PURE__ */ u(Button, {
|
|
289
297
|
onClick: onClose,
|
|
290
298
|
class: "IncodeCommonIssuesTryAgain",
|
|
@@ -364,10 +372,11 @@ var useCaptureResultPreview = (state) => {
|
|
|
364
372
|
* is deliberately still on screen.
|
|
365
373
|
*/
|
|
366
374
|
function getCaptureStageView(state, phase) {
|
|
367
|
-
|
|
375
|
+
const isCommitted = state.captureStatus === "capturing" || state.captureStatus === "uploading";
|
|
376
|
+
if (!state.previewImageUrl) return isCommitted ? "analyzing" : "live";
|
|
368
377
|
if (phase === "exiting") return "crossfade";
|
|
369
378
|
if (phase === "present") return "live";
|
|
370
|
-
return
|
|
379
|
+
return isCommitted ? "analyzing" : "live";
|
|
371
380
|
}
|
|
372
381
|
function getCaptureMode(state) {
|
|
373
382
|
return state.currentMode === "passport" ? "passport" : "id";
|
|
@@ -388,7 +397,8 @@ var CAMERA_PERMISSION_UX = {
|
|
|
388
397
|
CONTROL: "control",
|
|
389
398
|
PENDING: "pending",
|
|
390
399
|
PERMISSION_SHEET: "permissionSheet",
|
|
391
|
-
HOW_IT_WORKS: "howItWorks"
|
|
400
|
+
HOW_IT_WORKS: "howItWorks",
|
|
401
|
+
PERMISSION_IN_CAMERA: "permissionInCamera"
|
|
392
402
|
};
|
|
393
403
|
var ID_CAPTURE_STATUS = {
|
|
394
404
|
TUTORIAL: "tutorial",
|
|
@@ -397,7 +407,24 @@ var ID_CAPTURE_STATUS = {
|
|
|
397
407
|
CAPTURE: "capture"
|
|
398
408
|
};
|
|
399
409
|
/** Underlying machine phases core collapses into `status: 'loading'`. */
|
|
400
|
-
var ID_CAPTURE_LOADING_PHASE = {
|
|
410
|
+
var ID_CAPTURE_LOADING_PHASE = {
|
|
411
|
+
PERMISSIONS_IDLE: "permissionsIdle",
|
|
412
|
+
CHECKING_STREAM: "checkingStream",
|
|
413
|
+
INITIALIZING_DEEPSIGHT: "initializingDeepsight",
|
|
414
|
+
INITIALIZING_CAMERA: "initializingCamera"
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* The post-grant camera warm-up phases. IDC-03 is the only arm that renders
|
|
418
|
+
* across them — its shell stays mounted until live capture takes over — so
|
|
419
|
+
* `useCameraPermissionUx` (which arm may paint) and
|
|
420
|
+
* `useIdPermissionExperience` (whether the shell is retained) must agree on
|
|
421
|
+
* exactly this set.
|
|
422
|
+
*/
|
|
423
|
+
var CAMERA_WARMUP_LOADING_PHASES = new Set([
|
|
424
|
+
ID_CAPTURE_LOADING_PHASE.CHECKING_STREAM,
|
|
425
|
+
ID_CAPTURE_LOADING_PHASE.INITIALIZING_DEEPSIGHT,
|
|
426
|
+
ID_CAPTURE_LOADING_PHASE.INITIALIZING_CAMERA
|
|
427
|
+
]);
|
|
401
428
|
/** Underlying machine phases core collapses into `status: 'tutorial'`. */
|
|
402
429
|
var ID_CAPTURE_TUTORIAL_PHASE = {
|
|
403
430
|
CHECKING_PERMISSION: "checkingPermission",
|
|
@@ -464,6 +491,11 @@ var ID_EXPERIMENTS = {
|
|
|
464
491
|
module: eventModuleNames.idCapture,
|
|
465
492
|
...defineExperimentParams({ showHowItWorks: booleanParam(false) })
|
|
466
493
|
},
|
|
494
|
+
cameraPermissionInCamera: {
|
|
495
|
+
storeParam: "idcExp03PermissionInCamera",
|
|
496
|
+
module: eventModuleNames.idCapture,
|
|
497
|
+
...defineExperimentParams({ showPermissionInCamera: booleanParam(false) })
|
|
498
|
+
},
|
|
467
499
|
manualTooltip: {
|
|
468
500
|
storeParam: "idcExp08ManualTooltip",
|
|
469
501
|
module: eventModuleNames.idCapture,
|
|
@@ -621,15 +653,16 @@ var CaptureFrame = ({ orientation, mode, state, children, className }) => {
|
|
|
621
653
|
};
|
|
622
654
|
//#endregion
|
|
623
655
|
//#region src/modules/id/processing/idProcessingLayout.tsx
|
|
624
|
-
var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent, bottomContent, overlayContent, blurImage }) => {
|
|
656
|
+
var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent, bottomContent, overlayContent, imagePending = false, blurImage }) => {
|
|
625
657
|
const { t } = useTranslation();
|
|
626
658
|
const frameMode = mode === "id" ? "front" : mode;
|
|
659
|
+
const hasFrame = Boolean(imageUrl) || imagePending;
|
|
627
660
|
return /* @__PURE__ */ u(Page, {
|
|
628
661
|
hideHeader: true,
|
|
629
662
|
hideFooterBranding: true,
|
|
630
663
|
className: "IncodeIdProcessingPage",
|
|
631
664
|
children: /* @__PURE__ */ u("div", {
|
|
632
|
-
class: cn("IncodeIdProcessingLayout", !
|
|
665
|
+
class: cn("IncodeIdProcessingLayout", !hasFrame && "IncodeIdProcessingLayoutNoImage"),
|
|
633
666
|
children: /* @__PURE__ */ u("div", {
|
|
634
667
|
class: "IncodeIdProcessingLayoutContent",
|
|
635
668
|
children: [
|
|
@@ -637,11 +670,11 @@ var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent
|
|
|
637
670
|
class: "IncodeIdProcessingTopArea",
|
|
638
671
|
children: topContent
|
|
639
672
|
}),
|
|
640
|
-
|
|
673
|
+
hasFrame && /* @__PURE__ */ u(CaptureFrame, {
|
|
641
674
|
orientation,
|
|
642
675
|
mode: frameMode,
|
|
643
676
|
state: borderState,
|
|
644
|
-
children: [/* @__PURE__ */ u("img", {
|
|
677
|
+
children: imageUrl ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
|
|
645
678
|
src: imageUrl,
|
|
646
679
|
alt: "",
|
|
647
680
|
"aria-hidden": "true",
|
|
@@ -650,11 +683,14 @@ var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent
|
|
|
650
683
|
class: "IncodeIdProcessingOverlay",
|
|
651
684
|
"aria-hidden": "true",
|
|
652
685
|
children: overlayContent
|
|
653
|
-
})]
|
|
686
|
+
})] }) : /* @__PURE__ */ u("div", {
|
|
687
|
+
class: "IncodeIdProcessingPlaceholder",
|
|
688
|
+
"aria-hidden": "true"
|
|
689
|
+
})
|
|
654
690
|
}),
|
|
655
691
|
/* @__PURE__ */ u("div", {
|
|
656
692
|
class: "IncodeIdProcessingBottomArea",
|
|
657
|
-
children: [
|
|
693
|
+
children: [hasFrame && /* @__PURE__ */ u("div", {
|
|
658
694
|
class: "IncodeCaptureEncryptionLabel",
|
|
659
695
|
children: [/* @__PURE__ */ u(LockIcon, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: t("idv2.capture.allDataIsEncrypted") })]
|
|
660
696
|
}), bottomContent]
|
|
@@ -692,8 +728,9 @@ function getAnalyzingTitleKey(resultPreviewEnabled, progress) {
|
|
|
692
728
|
}
|
|
693
729
|
//#endregion
|
|
694
730
|
//#region src/modules/id/processing/idAnalyzing.tsx
|
|
695
|
-
var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true, resultPreviewEnabled = false }) => {
|
|
731
|
+
var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true, resultPreviewEnabled = false, simulatedProgressDelayMs = 0 }) => {
|
|
696
732
|
const { t } = useTranslation();
|
|
733
|
+
const [simulatedDelayMs] = d(simulatedProgressDelayMs);
|
|
697
734
|
const titleRef = A(null);
|
|
698
735
|
const isHorizontal = orientation !== "vertical";
|
|
699
736
|
const titleKey = getAnalyzingTitleKey(resultPreviewEnabled, progress);
|
|
@@ -709,9 +746,11 @@ var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocus
|
|
|
709
746
|
blurImage,
|
|
710
747
|
topContent: /* @__PURE__ */ u("div", {
|
|
711
748
|
class: "IncodeAnalyzingContent",
|
|
749
|
+
style: { "--progress-bar-simulated-delay": `${simulatedDelayMs}ms` },
|
|
712
750
|
children: [/* @__PURE__ */ u(ProgressBar, {
|
|
713
751
|
progress,
|
|
714
|
-
labelledById: "analyzing-title"
|
|
752
|
+
labelledById: "analyzing-title",
|
|
753
|
+
simulated: true
|
|
715
754
|
}), /* @__PURE__ */ u(Title, {
|
|
716
755
|
ref: titleRef,
|
|
717
756
|
id: "analyzing-title",
|
|
@@ -730,7 +769,8 @@ var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocus
|
|
|
730
769
|
loop: true,
|
|
731
770
|
autoStop: true,
|
|
732
771
|
class: "IncodeAnalyzingLottie"
|
|
733
|
-
})
|
|
772
|
+
}),
|
|
773
|
+
imagePending: !imageUrl
|
|
734
774
|
});
|
|
735
775
|
};
|
|
736
776
|
//#endregion
|
|
@@ -745,7 +785,7 @@ var GreenCheckIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
|
|
|
745
785
|
"aria-hidden": "true",
|
|
746
786
|
...rest,
|
|
747
787
|
children: /* @__PURE__ */ u("path", {
|
|
748
|
-
d: "M16
|
|
788
|
+
d: "M16 0c8.836 0 16 7.164 16 16s-7.164 16-16 16S0 24.836 0 16 7.164 0 16 0Zm6.349 11.231a1.275 1.275 0 0 0-1.7-.092l-.008.007-.087.078-6.84 6.84-2.262-2.263a1.275 1.275 0 0 0-1.895 1.701l.006.008.079.088 3.17 3.17c.466.465 1.2.496 1.7.093l.008-.006.088-.079 7.74-7.74a1.275 1.275 0 0 0 0-1.805Z",
|
|
749
789
|
fill: "#189F60"
|
|
750
790
|
})
|
|
751
791
|
});
|
|
@@ -877,7 +917,7 @@ var DriversLicenseIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
|
877
917
|
children: /* @__PURE__ */ u("path", {
|
|
878
918
|
"fill-rule": "evenodd",
|
|
879
919
|
"clip-rule": "evenodd",
|
|
880
|
-
d: "
|
|
920
|
+
d: "m4.97 7.806.776-2.154a1.21 1.21 0 0 1 .94-.795 21.2 21.2 0 0 1 6.611 0 1.21 1.21 0 0 1 .953.801l.773 2.148c-3.344.32-6.709.32-10.053 0Zm8.738 4.708a.922.922 0 0 1 0-1.842.922.922 0 0 1 0 1.842Zm-7.423 0a.922.922 0 1 1 .92-.922.92.92 0 0 1-.92.922Zm11.82-4.452a.63.63 0 0 0-.708-.532c-.364.052-.73.092-1.095.136l-.001-.004-.874-2.422a2.46 2.46 0 0 0-1.933-1.618 22.5 22.5 0 0 0-7.008 0 2.46 2.46 0 0 0-1.919 1.613l-.871 2.42-.006.01c-.365-.043-.73-.083-1.094-.135a.625.625 0 0 0-.176 1.238c.31.044.62.077.932.115l-.408.561a3.36 3.36 0 0 0-.645 1.984v4.188c0 .57.464 1.035 1.035 1.035h1.667c.57 0 1.034-.464 1.034-1.035v-.384a.43.43 0 0 1 .123-.304.43.43 0 0 1 .301-.126h7.06a.43.43 0 0 1 .3.126q.06.06.092.138.03.08.03.167v.383c0 .57.464 1.035 1.035 1.035h1.683c.57 0 1.034-.464 1.034-1.035v-4.204c0-.723-.226-1.415-.656-2.002l-.392-.527c.31-.038.62-.07.928-.115a.625.625 0 0 0 .531-.706Z",
|
|
881
921
|
fill: "var(--icon-neutral-300)"
|
|
882
922
|
})
|
|
883
923
|
});
|
|
@@ -894,7 +934,7 @@ var IdentificationCardIcon = ({ class: className }) => /* @__PURE__ */ u("svg",
|
|
|
894
934
|
children: /* @__PURE__ */ u("path", {
|
|
895
935
|
"fill-rule": "evenodd",
|
|
896
936
|
"clip-rule": "evenodd",
|
|
897
|
-
d: "M14.
|
|
937
|
+
d: "M14.789 9.394h-2.923a.686.686 0 1 1 0-1.371h2.923a.685.685 0 0 1 0 1.37Zm0 3.09h-1.82a.685.685 0 0 1 0-1.37h1.82a.685.685 0 0 1 0 1.37Zm-4.395 1.196-5.333.007a.31.31 0 0 1-.22-.09.31.31 0 0 1-.09-.219c0-1.127.92-2.264 2.976-2.264s2.977 1.133 2.977 2.256a.31.31 0 0 1-.31.31ZM7.727 6.295c1.065 0 1.93.865 1.93 1.93a1.933 1.933 0 0 1-1.93 1.932 1.933 1.933 0 0 1-1.93-1.932c0-1.065.865-1.93 1.93-1.93Zm6.48-3.127H6.04c-2.25 0-3.833 1.667-3.833 4v5.667c0 2.333 1.583 4 3.833 4h8.167c2.25 0 3.833-1.667 3.833-4V7.168c0-2.333-1.583-4-3.833-4Z",
|
|
898
938
|
fill: "var(--icon-neutral-300)"
|
|
899
939
|
})
|
|
900
940
|
});
|
|
@@ -909,12 +949,12 @@ var PassportIcon$1 = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
|
909
949
|
"aria-hidden": "true",
|
|
910
950
|
class: className,
|
|
911
951
|
children: [/* @__PURE__ */ u("path", {
|
|
912
|
-
d: "M9.
|
|
952
|
+
d: "M9.998 10.277c-.757 0-1.373.618-1.373 1.375 0 .753.615 1.367 1.373 1.367.757 0 1.372-.614 1.372-1.367 0-.757-.616-1.375-1.372-1.375Z",
|
|
913
953
|
fill: "var(--icon-neutral-300)"
|
|
914
954
|
}), /* @__PURE__ */ u("path", {
|
|
915
955
|
"fill-rule": "evenodd",
|
|
916
956
|
"clip-rule": "evenodd",
|
|
917
|
-
d: "M5.
|
|
957
|
+
d: "M5.962 17.919h8.077a2.205 2.205 0 0 0 2.204-2.2V7.86a2.205 2.205 0 0 0-1.724-2.147.2.2 0 0 0-.051-.005H6.727a.417.417 0 0 1 0-.834h7.51a.25.25 0 0 0 .25-.25v-.747c0-.56-.253-1.076-.695-1.418a1.78 1.78 0 0 0-1.546-.32L4.97 4.023a1.606 1.606 0 0 0-1.211 1.562V15.72c0 1.212.989 2.2 2.204 2.2Zm1.415-6.267A2.626 2.626 0 0 1 10 9.027a2.626 2.626 0 0 1 2.622 2.625A2.62 2.62 0 0 1 10 14.269a2.62 2.62 0 0 1-2.623-2.617Z",
|
|
918
958
|
fill: "var(--icon-neutral-300)"
|
|
919
959
|
})]
|
|
920
960
|
});
|
|
@@ -931,12 +971,12 @@ var ResidenceDocumentIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
|
|
|
931
971
|
children: [/* @__PURE__ */ u("path", {
|
|
932
972
|
"fill-rule": "evenodd",
|
|
933
973
|
"clip-rule": "evenodd",
|
|
934
|
-
d: "M11.
|
|
974
|
+
d: "M11.04 13.363c-.14-.068-.481-.068-.997-.068s-.857 0-.985.062a.6.6 0 0 0-.292.29c-.063.132-.063.473-.063.99v2.935c0 .139.112.25.25.25h2.18a.25.25 0 0 0 .25-.25v-2.935c0-.516 0-.857-.062-.988a.6.6 0 0 0-.28-.286Z",
|
|
935
975
|
fill: "var(--icon-neutral-300)"
|
|
936
976
|
}), /* @__PURE__ */ u("path", {
|
|
937
977
|
"fill-rule": "evenodd",
|
|
938
978
|
"clip-rule": "evenodd",
|
|
939
|
-
d: "
|
|
979
|
+
d: "m18.019 7.751-2.417-1.913V4.102a.833.833 0 1 0-1.667 0v.416l-2.19-1.735a2.81 2.81 0 0 0-3.489.002L1.984 7.75A.834.834 0 1 0 3.02 9.058l.105-.082v5.67a3.18 3.18 0 0 0 3.178 3.175h.905a.25.25 0 0 0 .25-.25v-2.935c0-.735 0-1.141.185-1.527a1.84 1.84 0 0 1 .887-.883c.374-.181.78-.181 1.518-.181s1.145 0 1.532.187c.372.171.687.485.874.878.184.384.184.79.184 1.526v2.936c0 .137.112.25.25.25h.814a3.18 3.18 0 0 0 3.178-3.175V8.976l.105.082a.834.834 0 1 0 1.034-1.307Z",
|
|
940
980
|
fill: "var(--icon-neutral-300)"
|
|
941
981
|
})]
|
|
942
982
|
});
|
|
@@ -1046,18 +1086,7 @@ var UnacceptedIdDocuments = ({ acceptedDocuments, countryCode }) => {
|
|
|
1046
1086
|
//#region src/modules/id/processing/idError.tsx
|
|
1047
1087
|
var IdError = ({ manager, state, blurImage, ..._rest }) => {
|
|
1048
1088
|
const { t } = useTranslation();
|
|
1049
|
-
if (state.status === "error") return /* @__PURE__ */ u(
|
|
1050
|
-
class: "IncodeIdError",
|
|
1051
|
-
role: "alert",
|
|
1052
|
-
children: [/* @__PURE__ */ u("div", {
|
|
1053
|
-
class: "IncodeIdErrorMessage",
|
|
1054
|
-
children: state.error
|
|
1055
|
-
}), /* @__PURE__ */ u(Button, {
|
|
1056
|
-
onClick: () => manager.reset(),
|
|
1057
|
-
"data-testid": "retry-button",
|
|
1058
|
-
children: t("idv2.capture.processing.tryAgain")
|
|
1059
|
-
})]
|
|
1060
|
-
});
|
|
1089
|
+
if (state.status === "error") return /* @__PURE__ */ u(TerminalErrorPage, {});
|
|
1061
1090
|
const mode = state.currentMode === "passport" ? "passport" : "id";
|
|
1062
1091
|
const unacceptableIdType = state.uploadError === "ID_TYPE_UNACCEPTABLE";
|
|
1063
1092
|
if (!unacceptableIdType && !state.previewImageUrl) return null;
|
|
@@ -1148,13 +1177,39 @@ var IdNoAttempts = ({ manager }) => {
|
|
|
1148
1177
|
});
|
|
1149
1178
|
};
|
|
1150
1179
|
//#endregion
|
|
1180
|
+
//#region src/modules/id/capture/captureResultFlash.tsx
|
|
1181
|
+
var FLASH_ANIMATION_NAME = "incodeCaptureResultFlash";
|
|
1182
|
+
/**
|
|
1183
|
+
* One-shot white "shutter" flash: on the `uxp_idc_exp05_show_result`
|
|
1184
|
+
* treatment's result preview, and at the end of the countdown. Plays on mount
|
|
1185
|
+
* (after `delayMs`) and reports `animationend` so its parent can remove and
|
|
1186
|
+
* re-arm it for the next capture.
|
|
1187
|
+
*/
|
|
1188
|
+
var CaptureResultFlash = ({ delayMs, onAnimationStart, onAnimationEnd }) => {
|
|
1189
|
+
const hasStartedRef = A(false);
|
|
1190
|
+
return /* @__PURE__ */ u("div", {
|
|
1191
|
+
class: "IncodeCaptureResultFlash",
|
|
1192
|
+
"aria-hidden": "true",
|
|
1193
|
+
style: delayMs ? { "--capture-result-flash-delay": `${delayMs}ms` } : void 0,
|
|
1194
|
+
onAnimationStart: (event) => {
|
|
1195
|
+
if (event.animationName !== FLASH_ANIMATION_NAME || hasStartedRef.current) return;
|
|
1196
|
+
hasStartedRef.current = true;
|
|
1197
|
+
onAnimationStart?.();
|
|
1198
|
+
},
|
|
1199
|
+
onAnimationEnd: (event) => {
|
|
1200
|
+
if (event.animationName !== FLASH_ANIMATION_NAME) return;
|
|
1201
|
+
onAnimationEnd?.();
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
};
|
|
1205
|
+
//#endregion
|
|
1151
1206
|
//#region src/modules/id/capture/idHint.tsx
|
|
1152
|
-
var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-
|
|
1153
|
-
var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-
|
|
1154
|
-
var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-
|
|
1155
|
-
var BackVerticalHintSvg = z(() => import("./back-vertical-hint-
|
|
1156
|
-
var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-
|
|
1157
|
-
var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-
|
|
1207
|
+
var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-DEHmtcdg.js"));
|
|
1208
|
+
var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-Cb1NO-xT.js"));
|
|
1209
|
+
var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-BztyPanp.js"));
|
|
1210
|
+
var BackVerticalHintSvg = z(() => import("./back-vertical-hint-BSzA4QbJ.js"));
|
|
1211
|
+
var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-DgNc6F0-.js"));
|
|
1212
|
+
var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-B-toVsfT.js"));
|
|
1158
1213
|
var CARD_WIDTH_IN_SVG = {
|
|
1159
1214
|
"front-horizontal": 348,
|
|
1160
1215
|
"back-horizontal": 348,
|
|
@@ -1173,8 +1228,9 @@ function computeScale(mode, orientation, width, height) {
|
|
|
1173
1228
|
if (cardHeight) return height / cardHeight;
|
|
1174
1229
|
return 1;
|
|
1175
1230
|
}
|
|
1176
|
-
var IdHint = ({ mode, orientation, onAnimationEnd }) => {
|
|
1231
|
+
var IdHint = ({ mode, orientation, onAnimationStart, onAnimationEnd }) => {
|
|
1177
1232
|
const containerRef = A(null);
|
|
1233
|
+
const hasStartedRef = A(false);
|
|
1178
1234
|
const [scale, setScale] = d(1);
|
|
1179
1235
|
y(() => {
|
|
1180
1236
|
const el = containerRef.current;
|
|
@@ -1200,8 +1256,13 @@ var IdHint = ({ mode, orientation, onAnimationEnd }) => {
|
|
|
1200
1256
|
role: "presentation",
|
|
1201
1257
|
children: /* @__PURE__ */ u("div", {
|
|
1202
1258
|
class: "IncodeIdHintAnimated",
|
|
1259
|
+
onAnimationStart: (event) => {
|
|
1260
|
+
if (event.target !== event.currentTarget || event.animationName !== "slideUpAndDown" || hasStartedRef.current) return;
|
|
1261
|
+
hasStartedRef.current = true;
|
|
1262
|
+
onAnimationStart?.();
|
|
1263
|
+
},
|
|
1203
1264
|
onAnimationEnd: (event) => {
|
|
1204
|
-
if (event.animationName === "slideUpAndDown") onAnimationEnd?.();
|
|
1265
|
+
if (event.target === event.currentTarget && event.animationName === "slideUpAndDown") onAnimationEnd?.();
|
|
1205
1266
|
},
|
|
1206
1267
|
children: /* @__PURE__ */ u(P, {
|
|
1207
1268
|
fallback: null,
|
|
@@ -1216,43 +1277,40 @@ var IdHint = ({ mode, orientation, onAnimationEnd }) => {
|
|
|
1216
1277
|
};
|
|
1217
1278
|
//#endregion
|
|
1218
1279
|
//#region src/modules/id/capture/captureLiveFrameContent.tsx
|
|
1219
|
-
var CaptureLiveFrameContent = ({
|
|
1280
|
+
var CaptureLiveFrameContent = ({ countdownStart, countdownStepMs, showIdHint, mode, orientation, onIdHintAnimationStart, onIdHintAnimationEnd, onFlashAnimationStart }) => /* @__PURE__ */ u(k, { children: [countdownStart > 0 && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
1220
1281
|
class: "IncodeCaptureCounter",
|
|
1221
|
-
|
|
1222
|
-
|
|
1282
|
+
"aria-hidden": "true",
|
|
1283
|
+
style: { "--capture-countdown-step": `${countdownStepMs}ms` },
|
|
1284
|
+
children: Array.from({ length: countdownStart }, (_, index) => /* @__PURE__ */ u("span", {
|
|
1285
|
+
class: "IncodeCaptureCounterDigit",
|
|
1286
|
+
style: { "--capture-countdown-index": index },
|
|
1287
|
+
children: countdownStart - index
|
|
1288
|
+
}, index))
|
|
1289
|
+
}), /* @__PURE__ */ u(CaptureResultFlash, {
|
|
1290
|
+
delayMs: countdownStart * countdownStepMs,
|
|
1291
|
+
onAnimationStart: onFlashAnimationStart
|
|
1292
|
+
})] }), showIdHint && /* @__PURE__ */ u(IdHint, {
|
|
1223
1293
|
mode,
|
|
1224
1294
|
orientation: orientation ?? "horizontal",
|
|
1295
|
+
onAnimationStart: onIdHintAnimationStart,
|
|
1225
1296
|
onAnimationEnd: onIdHintAnimationEnd
|
|
1226
1297
|
})] });
|
|
1227
1298
|
//#endregion
|
|
1228
|
-
//#region src/modules/id/capture/captureResultFlash.tsx
|
|
1229
|
-
var FLASH_ANIMATION_NAME = "incodeCaptureResultFlash";
|
|
1230
|
-
/**
|
|
1231
|
-
* `uxp_idc_exp05_show_result` treatment: one-shot white "shutter" flash.
|
|
1232
|
-
* Plays on mount and reports `animationend` so its parent can remove and
|
|
1233
|
-
* re-arm it for the next capture.
|
|
1234
|
-
*/
|
|
1235
|
-
var CaptureResultFlash = ({ onAnimationEnd }) => /* @__PURE__ */ u("div", {
|
|
1236
|
-
class: "IncodeCaptureResultFlash",
|
|
1237
|
-
"aria-hidden": "true",
|
|
1238
|
-
onAnimationEnd: (event) => {
|
|
1239
|
-
if (event.animationName !== FLASH_ANIMATION_NAME) return;
|
|
1240
|
-
onAnimationEnd?.();
|
|
1241
|
-
}
|
|
1242
|
-
});
|
|
1243
|
-
//#endregion
|
|
1244
1299
|
//#region src/modules/id/capture/captureResultPreview.tsx
|
|
1245
|
-
var CaptureResultPreview = ({ resultPreview, onFlashAnimationEnd }) => {
|
|
1300
|
+
var CaptureResultPreview = ({ resultPreview, onFlashAnimationStart, onFlashAnimationEnd }) => {
|
|
1246
1301
|
const [hasFlashed, setHasFlashed] = d(false);
|
|
1247
1302
|
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
|
|
1248
1303
|
src: resultPreview.imageUrl,
|
|
1249
1304
|
alt: "",
|
|
1250
1305
|
"aria-hidden": "true",
|
|
1251
1306
|
class: cn("IncodeCaptureResultImage", resultPreview.blurImage && "IncodeCaptureResultImageBlurred")
|
|
1252
|
-
}), !hasFlashed && /* @__PURE__ */ u(CaptureResultFlash, {
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1307
|
+
}), !hasFlashed && /* @__PURE__ */ u(CaptureResultFlash, {
|
|
1308
|
+
onAnimationStart: onFlashAnimationStart,
|
|
1309
|
+
onAnimationEnd: () => {
|
|
1310
|
+
setHasFlashed(true);
|
|
1311
|
+
onFlashAnimationEnd?.();
|
|
1312
|
+
}
|
|
1313
|
+
})] });
|
|
1256
1314
|
};
|
|
1257
1315
|
//#endregion
|
|
1258
1316
|
//#region src/modules/id/capture/captureOverlayHelpers.ts
|
|
@@ -1264,7 +1322,7 @@ var resolveResultView = (t) => ({
|
|
|
1264
1322
|
}
|
|
1265
1323
|
});
|
|
1266
1324
|
/** IDC-08 control/default copy — the title's shared idle vocabulary. */
|
|
1267
|
-
function
|
|
1325
|
+
function getCaptureFrameTitle(t, mode) {
|
|
1268
1326
|
if (mode === "passport") return t("idv2.capture.fillFramePassport");
|
|
1269
1327
|
else if (mode === "back") return t("idv2.capture.fillFrameBack");
|
|
1270
1328
|
return t("idv2.capture.fillFrameFront");
|
|
@@ -1290,7 +1348,7 @@ var resolveLiveView = ({ t, mode, detectionStatus, isCapturing, showManualCaptur
|
|
|
1290
1348
|
header: null
|
|
1291
1349
|
};
|
|
1292
1350
|
const isManualTooltipTreatment = showManualCapture && manualTooltipVariant !== MANUAL_TOOLTIP.CONTROL;
|
|
1293
|
-
const title = isManualTooltipTreatment ? getManualCaptureTitle(t, mode) :
|
|
1351
|
+
const title = isManualTooltipTreatment ? getManualCaptureTitle(t, mode) : getCaptureFrameTitle(t, mode);
|
|
1294
1352
|
let subtitle = t("idv2.capture.autoCapture");
|
|
1295
1353
|
if (isManualTooltipTreatment && manualTooltipVariant === MANUAL_TOOLTIP.REMOVE) subtitle = t("idv2.capture.manualCapture.pressButton");
|
|
1296
1354
|
else if (isManualCapture) subtitle = "";
|
|
@@ -1303,16 +1361,78 @@ var resolveLiveView = ({ t, mode, detectionStatus, isCapturing, showManualCaptur
|
|
|
1303
1361
|
};
|
|
1304
1362
|
};
|
|
1305
1363
|
//#endregion
|
|
1364
|
+
//#region src/modules/id/capture/captureFocusContext.tsx
|
|
1365
|
+
var CaptureAutoFocusContext = Q(true);
|
|
1366
|
+
/**
|
|
1367
|
+
* Capture is part of the public extensibility surface, but layered transitions
|
|
1368
|
+
* need to defer its focus without adding transition-only state to the public
|
|
1369
|
+
* Capture props. This private context carries that presentation signal through
|
|
1370
|
+
* Capture to CaptureOverlay while ordinary consumers retain autofocus by
|
|
1371
|
+
* default.
|
|
1372
|
+
*/
|
|
1373
|
+
var CaptureAutoFocusProvider = ({ enabled, children }) => /* @__PURE__ */ u(CaptureAutoFocusContext.Provider, {
|
|
1374
|
+
value: enabled,
|
|
1375
|
+
children
|
|
1376
|
+
});
|
|
1377
|
+
function useCaptureAutoFocus() {
|
|
1378
|
+
return x(CaptureAutoFocusContext);
|
|
1379
|
+
}
|
|
1380
|
+
//#endregion
|
|
1306
1381
|
//#region src/modules/id/capture/captureOverlay.tsx
|
|
1307
1382
|
var MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS = ["manualCaptureTooltipExit", "manualCaptureTooltipExitAutoDismiss"];
|
|
1308
|
-
|
|
1383
|
+
function reportAnimationState(mode, state) {
|
|
1384
|
+
const screen = mode === "back" ? "idCapture.backCapture" : "idCapture.frontCapture";
|
|
1385
|
+
stateChanged(eventModuleNames.idCapture, screen, { stateName: `${screen}.${state}` });
|
|
1386
|
+
}
|
|
1387
|
+
var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, countdownStart, countdownStepMs, isCapturing, showManualCapture, onCapture, onOpenHelp, helpButtonRef, captureButtonRef, hideFooterActions, trackAnimationStates = true, resultPreview, manualTooltipUx }, ref) => {
|
|
1309
1388
|
const { t } = useTranslation();
|
|
1389
|
+
const autoFocus = useCaptureAutoFocus();
|
|
1310
1390
|
usePreloadCaptureAnimations();
|
|
1391
|
+
const helpButton = useCaptureHelpButton({
|
|
1392
|
+
onOpenHelp,
|
|
1393
|
+
ariaLabel: t("idv2.needHelp.open"),
|
|
1394
|
+
buttonRef: helpButtonRef,
|
|
1395
|
+
hidden: hideFooterActions
|
|
1396
|
+
});
|
|
1397
|
+
const closeButton = useCloseButton();
|
|
1311
1398
|
const isResultPreview = resultPreview !== void 0;
|
|
1312
1399
|
const isTooltipRemoved = manualTooltipUx.variant === MANUAL_TOOLTIP.REMOVE;
|
|
1313
1400
|
const hasShownIdHintRef = A(false);
|
|
1314
1401
|
const cameraOverlayHeaderTitleRef = A(null);
|
|
1315
1402
|
const [showIdHint, setShowIdHint] = d(false);
|
|
1403
|
+
const hintStateModeRef = A();
|
|
1404
|
+
const animationStateEnabledRef = A(false);
|
|
1405
|
+
_(() => {
|
|
1406
|
+
animationStateEnabledRef.current = trackAnimationStates;
|
|
1407
|
+
if (hintStateModeRef.current === mode && trackAnimationStates && !isResultPreview && (detectionStatus === "detecting" || detectionStatus === "idle")) reportAnimationState(mode, "default");
|
|
1408
|
+
if (!trackAnimationStates || hintStateModeRef.current !== mode || detectionStatus !== "idNotDetected" || isResultPreview) hintStateModeRef.current = void 0;
|
|
1409
|
+
}, [
|
|
1410
|
+
trackAnimationStates,
|
|
1411
|
+
mode,
|
|
1412
|
+
detectionStatus,
|
|
1413
|
+
isResultPreview
|
|
1414
|
+
]);
|
|
1415
|
+
_(() => () => {
|
|
1416
|
+
animationStateEnabledRef.current = false;
|
|
1417
|
+
hintStateModeRef.current = void 0;
|
|
1418
|
+
}, []);
|
|
1419
|
+
const trackAnimationState = (state) => {
|
|
1420
|
+
if (!animationStateEnabledRef.current) return;
|
|
1421
|
+
reportAnimationState(mode, state);
|
|
1422
|
+
};
|
|
1423
|
+
const handleIdHintAnimationStart = () => {
|
|
1424
|
+
if (!animationStateEnabledRef.current || detectionStatus !== "idNotDetected" || isResultPreview) return;
|
|
1425
|
+
hintStateModeRef.current = mode;
|
|
1426
|
+
trackAnimationState("hint");
|
|
1427
|
+
};
|
|
1428
|
+
const handleIdHintAnimationEnd = () => {
|
|
1429
|
+
if (hintStateModeRef.current === mode) {
|
|
1430
|
+
hintStateModeRef.current = void 0;
|
|
1431
|
+
trackAnimationState("default");
|
|
1432
|
+
}
|
|
1433
|
+
setShowIdHint(false);
|
|
1434
|
+
};
|
|
1435
|
+
const handleFlashAnimationStart = () => trackAnimationState("flash");
|
|
1316
1436
|
const [manualCaptureTooltipDismissed, setManualCaptureTooltipDismissed] = d(isTooltipRemoved);
|
|
1317
1437
|
y(() => {
|
|
1318
1438
|
if (detectionStatus === "idNotDetected") {
|
|
@@ -1331,8 +1451,13 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1331
1451
|
setManualCaptureTooltipDismissed(true);
|
|
1332
1452
|
};
|
|
1333
1453
|
y(() => {
|
|
1454
|
+
if (!autoFocus) return;
|
|
1334
1455
|
if (showManualCapture && captureButtonRef) captureButtonRef.current?.focus();
|
|
1335
|
-
}, [
|
|
1456
|
+
}, [
|
|
1457
|
+
autoFocus,
|
|
1458
|
+
showManualCapture,
|
|
1459
|
+
captureButtonRef
|
|
1460
|
+
]);
|
|
1336
1461
|
_(() => {
|
|
1337
1462
|
if (!isResultPreview) return;
|
|
1338
1463
|
cameraOverlayHeaderTitleRef.current?.focus();
|
|
@@ -1368,6 +1493,8 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1368
1493
|
});
|
|
1369
1494
|
return /* @__PURE__ */ u(CameraOverlay, {
|
|
1370
1495
|
className: "IncodeCaptureOverlayId",
|
|
1496
|
+
floatingHelpButton: helpButton.floating,
|
|
1497
|
+
floatingCloseButton: closeButton,
|
|
1371
1498
|
children: [
|
|
1372
1499
|
/* @__PURE__ */ u("div", {
|
|
1373
1500
|
class: "IncodeCaptureTopSection",
|
|
@@ -1381,7 +1508,8 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1381
1508
|
subtitle: header?.subtitle,
|
|
1382
1509
|
visible: header !== null,
|
|
1383
1510
|
titleId: "id-capture-heading",
|
|
1384
|
-
className: cn(isResultPreview && "IncodeCaptureResultHeaderReveal")
|
|
1511
|
+
className: cn(isResultPreview && "IncodeCaptureResultHeaderReveal"),
|
|
1512
|
+
autoFocusTitle: autoFocus
|
|
1385
1513
|
})]
|
|
1386
1514
|
}),
|
|
1387
1515
|
/* @__PURE__ */ u(CameraFrame, {
|
|
@@ -1390,13 +1518,18 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1390
1518
|
orientation: frameOrientation,
|
|
1391
1519
|
frameState,
|
|
1392
1520
|
className: cn(isPassport && "IncodeCaptureFramePassport"),
|
|
1393
|
-
children: resultPreview ? /* @__PURE__ */ u(CaptureResultPreview, {
|
|
1394
|
-
|
|
1395
|
-
|
|
1521
|
+
children: resultPreview ? /* @__PURE__ */ u(CaptureResultPreview, {
|
|
1522
|
+
resultPreview,
|
|
1523
|
+
onFlashAnimationStart: handleFlashAnimationStart
|
|
1524
|
+
}) : /* @__PURE__ */ u(CaptureLiveFrameContent, {
|
|
1525
|
+
countdownStart,
|
|
1526
|
+
countdownStepMs,
|
|
1396
1527
|
showIdHint,
|
|
1397
1528
|
mode,
|
|
1398
1529
|
orientation,
|
|
1399
|
-
|
|
1530
|
+
onIdHintAnimationStart: handleIdHintAnimationStart,
|
|
1531
|
+
onIdHintAnimationEnd: handleIdHintAnimationEnd,
|
|
1532
|
+
onFlashAnimationStart: handleFlashAnimationStart
|
|
1400
1533
|
})
|
|
1401
1534
|
}),
|
|
1402
1535
|
/* @__PURE__ */ u("div", {
|
|
@@ -1411,6 +1544,8 @@ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, isCa
|
|
|
1411
1544
|
isManualCapture: showManualCapture,
|
|
1412
1545
|
captureAriaLabel,
|
|
1413
1546
|
helpButtonRef,
|
|
1547
|
+
helpAriaLabel: helpButton.footer?.ariaLabel,
|
|
1548
|
+
showHelpButton: Boolean(helpButton.footer),
|
|
1414
1549
|
captureButtonRef,
|
|
1415
1550
|
captureAriaDescribedBy: showManualCaptureNode ? "manual-capture-tooltip" : void 0,
|
|
1416
1551
|
hideActions: hideFooterActions,
|
|
@@ -1432,8 +1567,13 @@ var Capture = ({ manager, state }) => {
|
|
|
1432
1567
|
const stageView = getCaptureStageView(state, resultPreviewPhase);
|
|
1433
1568
|
const isCrossfadeStage = stageView === "crossfade";
|
|
1434
1569
|
const isLiveStage = stageView === "live";
|
|
1570
|
+
const isCapturing = !isResultPreview && (state.captureStatus === "capturing" || state.detectionStatus === "capturing");
|
|
1571
|
+
const countdownStartRef = A(0);
|
|
1572
|
+
if (!isCapturing) countdownStartRef.current = 0;
|
|
1573
|
+
else if (countdownStartRef.current === 0) countdownStartRef.current = state.counterValue;
|
|
1574
|
+
const countdownStart = countdownStartRef.current;
|
|
1575
|
+
const countdownEndMs = countdownStart * state.countdownStepMs;
|
|
1435
1576
|
if (state.captureStatus === "holdOn") return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "idv2.capture.holdOn.subtitle" });
|
|
1436
|
-
if ((state.captureStatus === "capturing" || state.captureStatus === "uploading") && !state.previewImageUrl) return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "idv2.capture.holdOn.subtitle" });
|
|
1437
1577
|
if (state.captureStatus === "success" && (state.previewImageUrl || state.barcodeFastPathCaptured)) return /* @__PURE__ */ u(IdSuccess, {
|
|
1438
1578
|
manager,
|
|
1439
1579
|
state,
|
|
@@ -1444,18 +1584,22 @@ var Capture = ({ manager, state }) => {
|
|
|
1444
1584
|
state,
|
|
1445
1585
|
blurImage: state.ageAssurance
|
|
1446
1586
|
});
|
|
1587
|
+
const isAnalyzingPending = isLiveStage && countdownStart > 0;
|
|
1588
|
+
const isAnalyzingHidden = isCrossfadeStage || isAnalyzingPending;
|
|
1447
1589
|
let idAnalyzingSlot = null;
|
|
1448
|
-
if (
|
|
1449
|
-
class: cn("IncodeIdCaptureStageAnalyzing", isCrossfadeStage && "IncodeIdCaptureStageResultEntering"),
|
|
1450
|
-
"
|
|
1451
|
-
|
|
1590
|
+
if (!isLiveStage || isAnalyzingPending) idAnalyzingSlot = /* @__PURE__ */ u("div", {
|
|
1591
|
+
class: cn("IncodeIdCaptureStageAnalyzing", isCrossfadeStage && "IncodeIdCaptureStageResultEntering", isAnalyzingPending && "IncodeIdCaptureStageAnalyzingPending"),
|
|
1592
|
+
style: isAnalyzingPending ? { "--capture-countdown-end": `${countdownEndMs}ms` } : void 0,
|
|
1593
|
+
"aria-hidden": isAnalyzingHidden || void 0,
|
|
1594
|
+
inert: isAnalyzingHidden || void 0,
|
|
1452
1595
|
children: /* @__PURE__ */ u(IdAnalyzing, {
|
|
1453
1596
|
imageUrl: state.previewImageUrl,
|
|
1454
1597
|
progress: state.uploadProgress ?? 0,
|
|
1455
1598
|
orientation: state.orientation,
|
|
1456
1599
|
mode: getCaptureMode(state),
|
|
1457
1600
|
blurImage: state.ageAssurance,
|
|
1458
|
-
autoFocusTitle: !
|
|
1601
|
+
autoFocusTitle: !isAnalyzingHidden,
|
|
1602
|
+
simulatedProgressDelayMs: countdownEndMs,
|
|
1459
1603
|
resultPreviewEnabled
|
|
1460
1604
|
})
|
|
1461
1605
|
}, "analyzing");
|
|
@@ -1466,9 +1610,11 @@ var Capture = ({ manager, state }) => {
|
|
|
1466
1610
|
children: /* @__PURE__ */ u(CaptureView, {
|
|
1467
1611
|
manager,
|
|
1468
1612
|
state,
|
|
1613
|
+
isCapturing,
|
|
1614
|
+
countdownStart,
|
|
1469
1615
|
isResultPreview,
|
|
1470
1616
|
resultPreviewImageUrl,
|
|
1471
|
-
hideFooterActions: !isLiveStage,
|
|
1617
|
+
hideFooterActions: !isLiveStage || state.captureStatus === "optimizing",
|
|
1472
1618
|
manualTooltipUx
|
|
1473
1619
|
})
|
|
1474
1620
|
}, "live");
|
|
@@ -1477,7 +1623,7 @@ var Capture = ({ manager, state }) => {
|
|
|
1477
1623
|
children: [idAnalyzingSlot, captureViewSlot]
|
|
1478
1624
|
});
|
|
1479
1625
|
};
|
|
1480
|
-
var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hideFooterActions, manualTooltipUx }) => {
|
|
1626
|
+
var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPreview, resultPreviewImageUrl, hideFooterActions, manualTooltipUx }) => {
|
|
1481
1627
|
const frameRef = A(null);
|
|
1482
1628
|
const helpButtonRef = A(null);
|
|
1483
1629
|
const captureButtonRef = A(null);
|
|
@@ -1496,16 +1642,16 @@ var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hid
|
|
|
1496
1642
|
}, [manager]);
|
|
1497
1643
|
useEventListener("resize", reportFrame);
|
|
1498
1644
|
useResizeObserver(frameRef, reportFrame);
|
|
1499
|
-
const isCapturing = !isResultPreview && (state.captureStatus === "capturing" || state.detectionStatus === "capturing");
|
|
1500
1645
|
const showManualCapture = isManualCaptureShown(state);
|
|
1501
1646
|
const resultPreview = isResultPreview && resultPreviewImageUrl ? {
|
|
1502
1647
|
imageUrl: resultPreviewImageUrl,
|
|
1503
1648
|
blurImage: state.ageAssurance
|
|
1504
1649
|
} : void 0;
|
|
1505
1650
|
const handleOpenHelp = () => {
|
|
1506
|
-
setIsHelpOpen(true);
|
|
1651
|
+
if (manager.openHelp()) setIsHelpOpen(true);
|
|
1507
1652
|
};
|
|
1508
1653
|
const handleCloseHelp = () => {
|
|
1654
|
+
manager.closeHelp();
|
|
1509
1655
|
setIsHelpOpen(false);
|
|
1510
1656
|
requestAnimationFrame(() => {
|
|
1511
1657
|
if (captureButtonRef.current) captureButtonRef.current.focus();
|
|
@@ -1513,9 +1659,11 @@ var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hid
|
|
|
1513
1659
|
});
|
|
1514
1660
|
};
|
|
1515
1661
|
const handleTakeManually = () => {
|
|
1516
|
-
setIsHelpOpen(false);
|
|
1517
1662
|
manager.switchToManualCapture();
|
|
1518
1663
|
};
|
|
1664
|
+
const handleTakeAutomatically = () => {
|
|
1665
|
+
manager.switchToAutoCapture();
|
|
1666
|
+
};
|
|
1519
1667
|
const handleCapture = () => {
|
|
1520
1668
|
manager.capture();
|
|
1521
1669
|
};
|
|
@@ -1536,6 +1684,8 @@ var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hid
|
|
|
1536
1684
|
orientation: state.orientation,
|
|
1537
1685
|
detectionStatus: state.detectionStatus,
|
|
1538
1686
|
counterValue: state.counterValue,
|
|
1687
|
+
countdownStart,
|
|
1688
|
+
countdownStepMs: state.countdownStepMs,
|
|
1539
1689
|
isCapturing,
|
|
1540
1690
|
showManualCapture,
|
|
1541
1691
|
onCapture: handleCapture,
|
|
@@ -1544,7 +1694,8 @@ var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hid
|
|
|
1544
1694
|
captureButtonRef,
|
|
1545
1695
|
resultPreview,
|
|
1546
1696
|
hideFooterActions,
|
|
1547
|
-
manualTooltipUx
|
|
1697
|
+
manualTooltipUx,
|
|
1698
|
+
trackAnimationStates: !isHelpOpen && (state.captureStatus === "detecting" || state.captureStatus === "optimizing")
|
|
1548
1699
|
})
|
|
1549
1700
|
}),
|
|
1550
1701
|
/* @__PURE__ */ u("div", { ref: portalRef }),
|
|
@@ -1552,6 +1703,7 @@ var CaptureView = ({ manager, state, isResultPreview, resultPreviewImageUrl, hid
|
|
|
1552
1703
|
open: isHelpOpen,
|
|
1553
1704
|
onClose: handleCloseHelp,
|
|
1554
1705
|
onTakeManually: handleTakeManually,
|
|
1706
|
+
onTakeAutomatically: state.detectionStatus === "manualCapture" ? handleTakeAutomatically : void 0,
|
|
1555
1707
|
portalContainer: portalRef.current
|
|
1556
1708
|
})
|
|
1557
1709
|
]
|
|
@@ -1651,25 +1803,25 @@ var IdCardIcon = () => {
|
|
|
1651
1803
|
fillOpacity: "0.15"
|
|
1652
1804
|
}),
|
|
1653
1805
|
/* @__PURE__ */ u("path", {
|
|
1654
|
-
d: "M20.
|
|
1806
|
+
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",
|
|
1655
1807
|
fill: "#C9C9C9",
|
|
1656
1808
|
fillOpacity: "0.8"
|
|
1657
1809
|
}),
|
|
1658
1810
|
/* @__PURE__ */ u("path", {
|
|
1659
|
-
d: "M21.
|
|
1811
|
+
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",
|
|
1660
1812
|
fill: "white"
|
|
1661
1813
|
}),
|
|
1662
1814
|
/* @__PURE__ */ u("path", {
|
|
1663
1815
|
fillRule: "evenodd",
|
|
1664
1816
|
clipRule: "evenodd",
|
|
1665
|
-
d: "M25.
|
|
1817
|
+
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",
|
|
1666
1818
|
fill: "#C9C9C9",
|
|
1667
1819
|
fillOpacity: "0.5"
|
|
1668
1820
|
}),
|
|
1669
1821
|
/* @__PURE__ */ u("path", {
|
|
1670
1822
|
fillRule: "evenodd",
|
|
1671
1823
|
clipRule: "evenodd",
|
|
1672
|
-
d: "M67.
|
|
1824
|
+
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",
|
|
1673
1825
|
fill: "#C9C9C9",
|
|
1674
1826
|
fillOpacity: "0.5"
|
|
1675
1827
|
}),
|
|
@@ -1698,25 +1850,25 @@ var IdCardIcon = () => {
|
|
|
1698
1850
|
class: "IncodeIdCardIconFill"
|
|
1699
1851
|
}),
|
|
1700
1852
|
/* @__PURE__ */ u("path", {
|
|
1701
|
-
d: "M33.
|
|
1853
|
+
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",
|
|
1702
1854
|
fill: "url(#paint0_linear_id)"
|
|
1703
1855
|
}),
|
|
1704
1856
|
/* @__PURE__ */ u("path", {
|
|
1705
1857
|
fillRule: "evenodd",
|
|
1706
1858
|
clipRule: "evenodd",
|
|
1707
|
-
d: "M46.
|
|
1859
|
+
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",
|
|
1708
1860
|
fill: "#CECECE"
|
|
1709
1861
|
}),
|
|
1710
1862
|
/* @__PURE__ */ u("path", {
|
|
1711
|
-
d: "M41.
|
|
1863
|
+
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",
|
|
1712
1864
|
fill: "url(#paint1_linear_id)"
|
|
1713
1865
|
}),
|
|
1714
1866
|
/* @__PURE__ */ u("path", {
|
|
1715
|
-
d: "M31.
|
|
1867
|
+
d: "M31.003 45.294a.872.872 0 1 1 1.685-.451l.451 1.684a.872.872 0 1 1-1.685.452z",
|
|
1716
1868
|
fill: "url(#paint2_linear_id)"
|
|
1717
1869
|
}),
|
|
1718
1870
|
/* @__PURE__ */ u("path", {
|
|
1719
|
-
d: "M41.
|
|
1871
|
+
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",
|
|
1720
1872
|
fill: "url(#paint3_linear_id)"
|
|
1721
1873
|
}),
|
|
1722
1874
|
/* @__PURE__ */ u("defs", { children: [
|
|
@@ -1814,11 +1966,11 @@ var PassportIcon = () => {
|
|
|
1814
1966
|
"stroke-width": "1.24563"
|
|
1815
1967
|
}),
|
|
1816
1968
|
/* @__PURE__ */ u("path", {
|
|
1817
|
-
d: "M27.
|
|
1969
|
+
d: "M27.434 42.295h63.197V76.34a3 3 0 0 1-3 3H30.434a3 3 0 0 1-3-3z",
|
|
1818
1970
|
fill: "white"
|
|
1819
1971
|
}),
|
|
1820
1972
|
/* @__PURE__ */ u("path", {
|
|
1821
|
-
d: "M55.
|
|
1973
|
+
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",
|
|
1822
1974
|
fill: "#E9E9EB"
|
|
1823
1975
|
}),
|
|
1824
1976
|
/* @__PURE__ */ u("rect", {
|
|
@@ -1846,7 +1998,7 @@ var PassportIcon = () => {
|
|
|
1846
1998
|
fill: "#E9E9EB"
|
|
1847
1999
|
}),
|
|
1848
2000
|
/* @__PURE__ */ u("path", {
|
|
1849
|
-
d: "M27.
|
|
2001
|
+
d: "M27.434 71.715h63.197v4.627a3 3 0 0 1-3 3H30.434a3 3 0 0 1-3-3z",
|
|
1850
2002
|
fill: "#F4F4F5"
|
|
1851
2003
|
}),
|
|
1852
2004
|
/* @__PURE__ */ u("rect", {
|
|
@@ -1897,31 +2049,31 @@ var PassportIcon = () => {
|
|
|
1897
2049
|
class: "IncodePassportIconFill"
|
|
1898
2050
|
}),
|
|
1899
2051
|
/* @__PURE__ */ u("path", {
|
|
1900
|
-
d: "M45.
|
|
2052
|
+
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",
|
|
1901
2053
|
fill: "white"
|
|
1902
2054
|
}),
|
|
1903
2055
|
/* @__PURE__ */ u("path", {
|
|
1904
|
-
d: "M36.
|
|
2056
|
+
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",
|
|
1905
2057
|
fill: "url(#paint0_linear_25823_31181)"
|
|
1906
2058
|
}),
|
|
1907
2059
|
/* @__PURE__ */ u("path", {
|
|
1908
|
-
d: "M36.
|
|
2060
|
+
d: "M36.469 62.872c1.613-.168 3.132.53 3.132.53s-.301 1.582-3.133 1.123z",
|
|
1909
2061
|
fill: "#CDCDCD"
|
|
1910
2062
|
}),
|
|
1911
2063
|
/* @__PURE__ */ u("path", {
|
|
1912
|
-
d: "M45.
|
|
2064
|
+
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",
|
|
1913
2065
|
fill: "#CECECE"
|
|
1914
2066
|
}),
|
|
1915
2067
|
/* @__PURE__ */ u("path", {
|
|
1916
|
-
d: "M35.
|
|
2068
|
+
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",
|
|
1917
2069
|
fill: "url(#paint1_linear_25823_31181)"
|
|
1918
2070
|
}),
|
|
1919
2071
|
/* @__PURE__ */ u("path", {
|
|
1920
|
-
d: "M41.
|
|
2072
|
+
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",
|
|
1921
2073
|
fill: "url(#paint2_linear_25823_31181)"
|
|
1922
2074
|
}),
|
|
1923
2075
|
/* @__PURE__ */ u("path", {
|
|
1924
|
-
d: "M41.
|
|
2076
|
+
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",
|
|
1925
2077
|
fill: "url(#paint3_linear_25823_31181)"
|
|
1926
2078
|
})
|
|
1927
2079
|
]
|
|
@@ -1930,14 +2082,14 @@ var PassportIcon = () => {
|
|
|
1930
2082
|
/* @__PURE__ */ u("mask", {
|
|
1931
2083
|
id: "path-23-inside-1_25823_31181",
|
|
1932
2084
|
fill: "white",
|
|
1933
|
-
children: /* @__PURE__ */ u("path", { d: "M87.
|
|
2085
|
+
children: /* @__PURE__ */ u("path", { d: "M87.629 6.285a3 3 0 0 1 3 3v33.539H27.517V9.285a3 3 0 0 1 3-3z" })
|
|
1934
2086
|
}),
|
|
1935
2087
|
/* @__PURE__ */ u("path", {
|
|
1936
|
-
d: "M87.
|
|
2088
|
+
d: "M87.629 6.285a3 3 0 0 1 3 3v33.539H27.517V9.285a3 3 0 0 1 3-3z",
|
|
1937
2089
|
fill: "#F4F4F5"
|
|
1938
2090
|
}),
|
|
1939
2091
|
/* @__PURE__ */ u("path", {
|
|
1940
|
-
d: "M90.
|
|
2092
|
+
d: "M90.629 6.285v36.539zM27.517 42.824V6.285zm0-36.539h63.112zm63.112 37.751H27.517v-2.425h63.112z",
|
|
1941
2093
|
fill: "#C9C9C9",
|
|
1942
2094
|
"fill-opacity": "0.8",
|
|
1943
2095
|
mask: "url(#path-23-inside-1_25823_31181)"
|
|
@@ -2087,16 +2239,16 @@ var DeviceWalletsIcon = () => {
|
|
|
2087
2239
|
strokeWidth: "0.769499"
|
|
2088
2240
|
}),
|
|
2089
2241
|
/* @__PURE__ */ u("path", {
|
|
2090
|
-
d: "M20.
|
|
2242
|
+
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",
|
|
2091
2243
|
fill: "#C9C9C9",
|
|
2092
2244
|
fillOpacity: "0.8"
|
|
2093
2245
|
}),
|
|
2094
2246
|
/* @__PURE__ */ u("path", {
|
|
2095
|
-
d: "M20.
|
|
2247
|
+
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",
|
|
2096
2248
|
fill: "white"
|
|
2097
2249
|
}),
|
|
2098
2250
|
/* @__PURE__ */ u("path", {
|
|
2099
|
-
d: "M30.
|
|
2251
|
+
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",
|
|
2100
2252
|
fill: "#C9C9C9",
|
|
2101
2253
|
fillOpacity: "0.5"
|
|
2102
2254
|
}),
|
|
@@ -2109,27 +2261,27 @@ var DeviceWalletsIcon = () => {
|
|
|
2109
2261
|
class: "IncodeDeviceWalletsIconFill"
|
|
2110
2262
|
}),
|
|
2111
2263
|
/* @__PURE__ */ u("path", {
|
|
2112
|
-
d: "M23.
|
|
2264
|
+
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",
|
|
2113
2265
|
fill: "url(#paint0_linear_26265_2591)"
|
|
2114
2266
|
}),
|
|
2115
2267
|
/* @__PURE__ */ u("path", {
|
|
2116
|
-
d: "M25.
|
|
2268
|
+
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",
|
|
2117
2269
|
fill: "#CECECE"
|
|
2118
2270
|
}),
|
|
2119
2271
|
/* @__PURE__ */ u("path", {
|
|
2120
|
-
d: "M23.
|
|
2272
|
+
d: "M23.907 18.142c.623-.066 1.21.444 1.21.444s-.116.627-1.21.445z",
|
|
2121
2273
|
fill: "#CDCDCD"
|
|
2122
2274
|
}),
|
|
2123
2275
|
/* @__PURE__ */ u("path", {
|
|
2124
|
-
d: "M26.
|
|
2276
|
+
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",
|
|
2125
2277
|
fill: "url(#paint1_linear_26265_2591)"
|
|
2126
2278
|
}),
|
|
2127
2279
|
/* @__PURE__ */ u("path", {
|
|
2128
|
-
d: "M23.
|
|
2280
|
+
d: "M23.337 17.073a.233.233 0 0 1 .45-.121l.121.45a.233.233 0 0 1-.45.12z",
|
|
2129
2281
|
fill: "url(#paint2_linear_26265_2591)"
|
|
2130
2282
|
}),
|
|
2131
2283
|
/* @__PURE__ */ u("path", {
|
|
2132
|
-
d: "M26.
|
|
2284
|
+
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",
|
|
2133
2285
|
fill: "url(#paint3_linear_26265_2591)"
|
|
2134
2286
|
}),
|
|
2135
2287
|
/* @__PURE__ */ u("rect", {
|
|
@@ -2230,163 +2382,6 @@ var DeviceWalletsIcon = () => {
|
|
|
2230
2382
|
});
|
|
2231
2383
|
};
|
|
2232
2384
|
//#endregion
|
|
2233
|
-
//#region src/modules/id/assets/uploadIcon.tsx
|
|
2234
|
-
var UploadIdIcon = () => {
|
|
2235
|
-
return /* @__PURE__ */ u("svg", {
|
|
2236
|
-
width: "60",
|
|
2237
|
-
height: "60",
|
|
2238
|
-
viewBox: "0 0 60 60",
|
|
2239
|
-
fill: "none",
|
|
2240
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2241
|
-
"aria-hidden": "true",
|
|
2242
|
-
focusable: "false",
|
|
2243
|
-
class: "IncodeUploadIdIcon",
|
|
2244
|
-
children: [
|
|
2245
|
-
/* @__PURE__ */ u("title", { children: "Upload document" }),
|
|
2246
|
-
/* @__PURE__ */ u("rect", {
|
|
2247
|
-
x: "5.51713",
|
|
2248
|
-
y: "15.51",
|
|
2249
|
-
width: "50.4685",
|
|
2250
|
-
height: "28.9353",
|
|
2251
|
-
rx: "1.34583",
|
|
2252
|
-
fill: "white"
|
|
2253
|
-
}),
|
|
2254
|
-
/* @__PURE__ */ u("path", {
|
|
2255
|
-
d: "M4.5 16.5187C4.5 15.4038 5.40382 14.5 6.51874 14.5L54.9682 14.5C56.0831 14.5 56.987 15.4038 56.987 16.5187L56.987 43.4353C56.987 44.5502 56.0831 45.454 54.9682 45.454L6.51874 45.454C5.40382 45.454 4.5 44.5502 4.5 43.4353L4.5 16.5187Z",
|
|
2256
|
-
stroke: "#D2D2D2",
|
|
2257
|
-
strokeLinecap: "round",
|
|
2258
|
-
strokeDasharray: "3 3"
|
|
2259
|
-
}),
|
|
2260
|
-
/* @__PURE__ */ u("path", {
|
|
2261
|
-
d: "M5.47253 16.8082C5.47253 16.065 6.07508 15.4624 6.81836 15.4624L54.427 15.4624C55.1703 15.4624 55.7728 16.0649 55.7728 16.8082L55.7728 42.9554C55.7728 43.6987 55.1703 44.3012 54.427 44.3012L6.81836 44.3012C6.07508 44.3012 5.47253 43.6987 5.47253 42.9554L5.47253 16.8082Z",
|
|
2262
|
-
fill: "white"
|
|
2263
|
-
}),
|
|
2264
|
-
/* @__PURE__ */ u("path", {
|
|
2265
|
-
d: "M46.1211 34.9621C45.8699 34.6688 45.5027 34.5 45.1165 34.5C44.7302 34.5 44.3631 34.6688 44.1118 34.9621L38.8186 41.1375C38.343 41.6923 38.4072 42.5277 38.9621 43.0033C39.517 43.479 40.3524 43.4147 40.828 42.8598L43.7932 39.4005V50.1767C43.7932 50.9075 44.3857 51.5 45.1165 51.5C45.8473 51.5 46.4398 50.9075 46.4398 50.1767V39.4005L49.405 42.8598C49.8805 43.4147 50.7159 43.479 51.2708 43.0033C51.8257 42.5277 51.8899 41.6923 51.4143 41.1375L46.1211 34.9621Z",
|
|
2266
|
-
class: "IncodeUploadIdIconFill",
|
|
2267
|
-
stroke: "white",
|
|
2268
|
-
strokeWidth: "0.953729"
|
|
2269
|
-
}),
|
|
2270
|
-
/* @__PURE__ */ u("path", {
|
|
2271
|
-
fillRule: "evenodd",
|
|
2272
|
-
clipRule: "evenodd",
|
|
2273
|
-
d: "M8.14731 22.8371C8.14748 22.4668 8.44769 22.1667 8.81798 22.1667L52.4112 22.1667C52.7816 22.1667 53.0819 22.467 53.0819 22.8374C53.0819 23.2078 52.7816 23.5081 52.4112 23.5081L8.81798 23.5081C8.44746 23.5081 8.14714 23.2076 8.14731 22.8371Z",
|
|
2274
|
-
fill: "#C9C9C9",
|
|
2275
|
-
fillOpacity: "0.5"
|
|
2276
|
-
}),
|
|
2277
|
-
/* @__PURE__ */ u("path", {
|
|
2278
|
-
d: "M29.6077 40.2766H24.2425V38.2639H29.6077V40.2766ZM35.2425 36.5002H24.2425L24.2425 34.5002H35.2425V36.5002ZM39.2425 32.5002H24.2425V30.5002L39.2425 30.5002V32.5002ZM44.2425 28.5002L24.2425 28.5002V26.5002L44.2425 26.5002V28.5002Z",
|
|
2279
|
-
fill: "#C9C9C9",
|
|
2280
|
-
fillOpacity: "0.5"
|
|
2281
|
-
}),
|
|
2282
|
-
/* @__PURE__ */ u("rect", {
|
|
2283
|
-
x: "8.147",
|
|
2284
|
-
y: "17.4744",
|
|
2285
|
-
width: "20.7908",
|
|
2286
|
-
height: "2.68268",
|
|
2287
|
-
rx: "0.672913",
|
|
2288
|
-
fill: "#C9C9C9",
|
|
2289
|
-
fillOpacity: "0.5"
|
|
2290
|
-
}),
|
|
2291
|
-
/* @__PURE__ */ u("rect", {
|
|
2292
|
-
x: "48.803",
|
|
2293
|
-
y: "17.5209",
|
|
2294
|
-
width: "4.02402",
|
|
2295
|
-
height: "2.64548",
|
|
2296
|
-
fill: "#EAF0F6"
|
|
2297
|
-
}),
|
|
2298
|
-
/* @__PURE__ */ u("rect", {
|
|
2299
|
-
x: "8.20379",
|
|
2300
|
-
y: "24.9293",
|
|
2301
|
-
width: "14.1312",
|
|
2302
|
-
height: "16.1499",
|
|
2303
|
-
rx: "1.34583",
|
|
2304
|
-
class: "IncodeUploadIdIconFill"
|
|
2305
|
-
}),
|
|
2306
|
-
/* @__PURE__ */ u("path", {
|
|
2307
|
-
d: "M13.0303 36.3159C13.0234 36.8387 12.116 37.006 11.5063 37.5943C12.5672 38.3587 14.1004 38.8729 15.1613 38.8729C16.3958 38.8729 17.8228 38.3587 18.8837 37.5943C18.274 37.006 17.311 36.8395 17.2982 36.3159C17.2982 36.1172 17.2989 34.1811 17.2998 33.9823C17.2998 30.6362 12.9027 28.6453 13.0245 34.037C13.0268 34.7966 13.0303 35.5563 13.0303 36.3159Z",
|
|
2308
|
-
fill: "url(#paint0_linear_2170_3031)"
|
|
2309
|
-
}),
|
|
2310
|
-
/* @__PURE__ */ u("path", {
|
|
2311
|
-
d: "M17.9489 36.922C17.9489 36.922 21.2577 37.9913 21.8962 39.1447C22.0394 39.4033 22.1671 39.7385 22.2819 40.1017C22.1216 40.6657 21.6044 41.0792 20.9889 41.0792H9.54949C8.80627 41.0792 8.2038 40.4767 8.20379 39.7335V38.7072C9.39205 37.7347 12.3776 36.922 12.3776 36.922C12.3777 37.6209 14.1143 38.7146 15.1637 38.7325C16.6268 38.7323 17.9488 37.6213 17.9489 36.922Z",
|
|
2312
|
-
fill: "#CECECE"
|
|
2313
|
-
}),
|
|
2314
|
-
/* @__PURE__ */ u("path", {
|
|
2315
|
-
d: "M13.0259 34.2139C14.5961 34.0465 16.0744 35.3312 16.0744 35.3312C16.0744 35.3312 15.7813 36.9113 13.0259 36.4521V34.2139Z",
|
|
2316
|
-
fill: "#CDCDCD"
|
|
2317
|
-
}),
|
|
2318
|
-
/* @__PURE__ */ u("path", {
|
|
2319
|
-
d: "M18.9402 31.5218C19.0241 31.2087 18.8383 30.8869 18.5252 30.8031L18.4636 30.7865C18.1757 30.7094 17.8757 30.8603 17.7661 31.1375L17.2974 32.322C17.1578 32.6748 17.3845 33.0653 17.7601 33.1189L17.9694 33.1488C18.2634 33.1907 18.5424 33.0065 18.6192 32.7197L18.9402 31.5218Z",
|
|
2320
|
-
fill: "url(#paint1_linear_2170_3031)"
|
|
2321
|
-
}),
|
|
2322
|
-
/* @__PURE__ */ u("path", {
|
|
2323
|
-
d: "M11.5934 31.5218C11.5095 31.2087 11.6953 30.887 12.0084 30.8031C12.3214 30.7192 12.6432 30.905 12.7271 31.218L13.0309 32.3517C13.1148 32.6648 12.929 32.9866 12.6159 33.0705C12.3028 33.1543 11.9811 32.9686 11.8972 32.6555L11.5934 31.5218Z",
|
|
2324
|
-
fill: "url(#paint2_linear_2170_3031)"
|
|
2325
|
-
}),
|
|
2326
|
-
/* @__PURE__ */ u("path", {
|
|
2327
|
-
d: "M18.4924 31.3797C18.4924 33.9496 16.6796 36.0329 15.2648 36.0329C13.7173 36.0329 12.0371 33.9496 12.0371 31.3797C12.0371 29.09 12.2152 26.6434 15.2648 26.6434C18.3144 26.6434 18.4924 29.0371 18.4924 31.3797Z",
|
|
2328
|
-
fill: "url(#paint3_linear_2170_3031)"
|
|
2329
|
-
}),
|
|
2330
|
-
/* @__PURE__ */ u("defs", { children: [
|
|
2331
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2332
|
-
id: "paint0_linear_2170_3031",
|
|
2333
|
-
x1: "14.8791",
|
|
2334
|
-
y1: "34.1881",
|
|
2335
|
-
x2: "14.8791",
|
|
2336
|
-
y2: "37.2285",
|
|
2337
|
-
gradientUnits: "userSpaceOnUse",
|
|
2338
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#B1B1B1" }), /* @__PURE__ */ u("stop", {
|
|
2339
|
-
offset: "1",
|
|
2340
|
-
stopColor: "white"
|
|
2341
|
-
})]
|
|
2342
|
-
}),
|
|
2343
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2344
|
-
id: "paint1_linear_2170_3031",
|
|
2345
|
-
x1: "17.6105",
|
|
2346
|
-
y1: "32.5499",
|
|
2347
|
-
x2: "18.4893",
|
|
2348
|
-
y2: "32.5851",
|
|
2349
|
-
gradientUnits: "userSpaceOnUse",
|
|
2350
|
-
children: [/* @__PURE__ */ u("stop", {
|
|
2351
|
-
offset: "0.0416667",
|
|
2352
|
-
stopColor: "#B5B5B5"
|
|
2353
|
-
}), /* @__PURE__ */ u("stop", {
|
|
2354
|
-
offset: "1",
|
|
2355
|
-
stopColor: "white"
|
|
2356
|
-
})]
|
|
2357
|
-
}),
|
|
2358
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2359
|
-
id: "paint2_linear_2170_3031",
|
|
2360
|
-
x1: "12.2896",
|
|
2361
|
-
y1: "32.5497",
|
|
2362
|
-
x2: "11.4108",
|
|
2363
|
-
y2: "32.585",
|
|
2364
|
-
gradientUnits: "userSpaceOnUse",
|
|
2365
|
-
children: [/* @__PURE__ */ u("stop", {
|
|
2366
|
-
offset: "0.0416667",
|
|
2367
|
-
stopColor: "#B5B5B5"
|
|
2368
|
-
}), /* @__PURE__ */ u("stop", {
|
|
2369
|
-
offset: "1",
|
|
2370
|
-
stopColor: "white"
|
|
2371
|
-
})]
|
|
2372
|
-
}),
|
|
2373
|
-
/* @__PURE__ */ u("linearGradient", {
|
|
2374
|
-
id: "paint3_linear_2170_3031",
|
|
2375
|
-
x1: "12.1171",
|
|
2376
|
-
y1: "31.3411",
|
|
2377
|
-
x2: "16.6763",
|
|
2378
|
-
y2: "31.3579",
|
|
2379
|
-
gradientUnits: "userSpaceOnUse",
|
|
2380
|
-
children: [/* @__PURE__ */ u("stop", { stopColor: "#E0E0E0" }), /* @__PURE__ */ u("stop", {
|
|
2381
|
-
offset: "1",
|
|
2382
|
-
stopColor: "white"
|
|
2383
|
-
})]
|
|
2384
|
-
})
|
|
2385
|
-
] })
|
|
2386
|
-
]
|
|
2387
|
-
});
|
|
2388
|
-
};
|
|
2389
|
-
//#endregion
|
|
2390
2385
|
//#region src/modules/id/assets/digitalIdIcon.tsx
|
|
2391
2386
|
var DigitalIdIcon = () => {
|
|
2392
2387
|
return /* @__PURE__ */ u("svg", {
|
|
@@ -2407,7 +2402,7 @@ var DigitalIdIcon = () => {
|
|
|
2407
2402
|
clipPath: "url(#clip1_24620_2022)",
|
|
2408
2403
|
children: [
|
|
2409
2404
|
/* @__PURE__ */ u("path", {
|
|
2410
|
-
d: "M15.792 9.
|
|
2405
|
+
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",
|
|
2411
2406
|
fill: "white"
|
|
2412
2407
|
}),
|
|
2413
2408
|
/* @__PURE__ */ u("rect", {
|
|
@@ -2421,61 +2416,61 @@ var DigitalIdIcon = () => {
|
|
|
2421
2416
|
/* @__PURE__ */ u("path", {
|
|
2422
2417
|
fillRule: "evenodd",
|
|
2423
2418
|
clipRule: "evenodd",
|
|
2424
|
-
d: "M36.
|
|
2419
|
+
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",
|
|
2425
2420
|
class: "IncodeDigitalIdIconFill"
|
|
2426
2421
|
}),
|
|
2427
2422
|
/* @__PURE__ */ u("path", {
|
|
2428
2423
|
fillRule: "evenodd",
|
|
2429
2424
|
clipRule: "evenodd",
|
|
2430
|
-
d: "M34.
|
|
2425
|
+
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",
|
|
2431
2426
|
class: "IncodeDigitalIdIconFill"
|
|
2432
2427
|
}),
|
|
2433
2428
|
/* @__PURE__ */ u("path", {
|
|
2434
2429
|
fillRule: "evenodd",
|
|
2435
2430
|
clipRule: "evenodd",
|
|
2436
|
-
d: "M34.
|
|
2431
|
+
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",
|
|
2437
2432
|
class: "IncodeDigitalIdIconFill"
|
|
2438
2433
|
}),
|
|
2439
2434
|
/* @__PURE__ */ u("path", {
|
|
2440
2435
|
fillRule: "evenodd",
|
|
2441
2436
|
clipRule: "evenodd",
|
|
2442
|
-
d: "M36.
|
|
2437
|
+
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",
|
|
2443
2438
|
class: "IncodeDigitalIdIconFill"
|
|
2444
2439
|
}),
|
|
2445
2440
|
/* @__PURE__ */ u("path", {
|
|
2446
2441
|
fillRule: "evenodd",
|
|
2447
2442
|
clipRule: "evenodd",
|
|
2448
|
-
d: "M41.
|
|
2443
|
+
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",
|
|
2449
2444
|
class: "IncodeDigitalIdIconFill"
|
|
2450
2445
|
}),
|
|
2451
2446
|
/* @__PURE__ */ u("path", {
|
|
2452
2447
|
fillRule: "evenodd",
|
|
2453
2448
|
clipRule: "evenodd",
|
|
2454
|
-
d: "M40.
|
|
2449
|
+
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",
|
|
2455
2450
|
class: "IncodeDigitalIdIconFill"
|
|
2456
2451
|
}),
|
|
2457
2452
|
/* @__PURE__ */ u("path", {
|
|
2458
2453
|
fillRule: "evenodd",
|
|
2459
2454
|
clipRule: "evenodd",
|
|
2460
|
-
d: "M38.
|
|
2455
|
+
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",
|
|
2461
2456
|
class: "IncodeDigitalIdIconFill"
|
|
2462
2457
|
}),
|
|
2463
2458
|
/* @__PURE__ */ u("path", {
|
|
2464
2459
|
fillRule: "evenodd",
|
|
2465
2460
|
clipRule: "evenodd",
|
|
2466
|
-
d: "M40.
|
|
2461
|
+
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",
|
|
2467
2462
|
class: "IncodeDigitalIdIconFill"
|
|
2468
2463
|
}),
|
|
2469
2464
|
/* @__PURE__ */ u("path", {
|
|
2470
2465
|
fillRule: "evenodd",
|
|
2471
2466
|
clipRule: "evenodd",
|
|
2472
|
-
d: "M41.
|
|
2467
|
+
d: "M41.668 20.355h-1.55a.46.46 0 0 0 0 .918h1.55a.46.46 0 0 0 0-.918Z",
|
|
2473
2468
|
class: "IncodeDigitalIdIconFill"
|
|
2474
2469
|
}),
|
|
2475
2470
|
/* @__PURE__ */ u("path", {
|
|
2476
2471
|
fillRule: "evenodd",
|
|
2477
2472
|
clipRule: "evenodd",
|
|
2478
|
-
d: "M38.
|
|
2473
|
+
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",
|
|
2479
2474
|
class: "IncodeDigitalIdIconFill"
|
|
2480
2475
|
}),
|
|
2481
2476
|
/* @__PURE__ */ u("rect", {
|
|
@@ -2512,7 +2507,7 @@ var DigitalIdIcon = () => {
|
|
|
2512
2507
|
]
|
|
2513
2508
|
}),
|
|
2514
2509
|
/* @__PURE__ */ u("path", {
|
|
2515
|
-
d: "M44.
|
|
2510
|
+
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",
|
|
2516
2511
|
stroke: "#EBECEF",
|
|
2517
2512
|
"stroke-width": "0.991903"
|
|
2518
2513
|
}),
|
|
@@ -2528,27 +2523,27 @@ var DigitalIdIcon = () => {
|
|
|
2528
2523
|
class: "IncodeDigitalIdIconFill"
|
|
2529
2524
|
}),
|
|
2530
2525
|
/* @__PURE__ */ u("path", {
|
|
2531
|
-
d: "M21.
|
|
2526
|
+
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",
|
|
2532
2527
|
fill: "url(#paint0_linear_24620_2022)"
|
|
2533
2528
|
}),
|
|
2534
2529
|
/* @__PURE__ */ u("path", {
|
|
2535
|
-
d: "M30.
|
|
2530
|
+
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",
|
|
2536
2531
|
fill: "#CECECE"
|
|
2537
2532
|
}),
|
|
2538
2533
|
/* @__PURE__ */ u("path", {
|
|
2539
|
-
d: "M21.79 23.
|
|
2534
|
+
d: "M21.79 23.277c1.494-.155 2.9.492 2.9.492s-.278 1.464-2.9 1.039z",
|
|
2540
2535
|
fill: "#CDCDCD"
|
|
2541
2536
|
}),
|
|
2542
2537
|
/* @__PURE__ */ u("path", {
|
|
2543
|
-
d: "M20.
|
|
2538
|
+
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",
|
|
2544
2539
|
fill: "url(#paint1_linear_24620_2022)"
|
|
2545
2540
|
}),
|
|
2546
2541
|
/* @__PURE__ */ u("path", {
|
|
2547
|
-
d: "M26.
|
|
2542
|
+
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",
|
|
2548
2543
|
fill: "url(#paint2_linear_24620_2022)"
|
|
2549
2544
|
}),
|
|
2550
2545
|
/* @__PURE__ */ u("path", {
|
|
2551
|
-
d: "M26.
|
|
2546
|
+
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",
|
|
2552
2547
|
fill: "#FAFAFA"
|
|
2553
2548
|
})
|
|
2554
2549
|
]
|
|
@@ -2624,7 +2619,7 @@ var DigitalIdIcon = () => {
|
|
|
2624
2619
|
/* @__PURE__ */ u("clipPath", {
|
|
2625
2620
|
id: "clip1_24620_2022",
|
|
2626
2621
|
children: /* @__PURE__ */ u("path", {
|
|
2627
|
-
d: "M15.792 9.
|
|
2622
|
+
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",
|
|
2628
2623
|
fill: "white"
|
|
2629
2624
|
})
|
|
2630
2625
|
}),
|
|
@@ -2651,7 +2646,7 @@ var CHOOSER_OPTIONS_LOOKUP = {
|
|
|
2651
2646
|
icon: DigitalIdIcon,
|
|
2652
2647
|
title: "idv2.chooser.digitalIdRedirectButtonTitle",
|
|
2653
2648
|
testId: "verification-option-digitalIdRedirect",
|
|
2654
|
-
weight:
|
|
2649
|
+
weight: 6
|
|
2655
2650
|
},
|
|
2656
2651
|
digitalIdUpload: {
|
|
2657
2652
|
type: "digitalIdUpload",
|
|
@@ -2680,32 +2675,324 @@ var CHOOSER_OPTIONS_LOOKUP = {
|
|
|
2680
2675
|
testId: "verification-option-digitalId",
|
|
2681
2676
|
type: "digitalId",
|
|
2682
2677
|
weight: 5
|
|
2678
|
+
}
|
|
2679
|
+
};
|
|
2680
|
+
//#endregion
|
|
2681
|
+
//#region src/modules/id/chooser/digitalIdProviderLogos.ts
|
|
2682
|
+
/**
|
|
2683
|
+
* Digital-ID provider logos, keyed by provider id.
|
|
2684
|
+
*
|
|
2685
|
+
* The backend's `digitalIds.methods[].logoUrl` currently carries bare asset
|
|
2686
|
+
* file names (`idin.svg`), which would resolve against the host page and
|
|
2687
|
+
* render broken. Until it sends absolute links, the chooser card falls back to
|
|
2688
|
+
* this map. A backend-sent absolute URL always wins — see `toCardLogoSrc` in
|
|
2689
|
+
* `chooser.helpers.ts`.
|
|
2690
|
+
*
|
|
2691
|
+
* **The full Trinsic catalog is kept here on purpose**, including providers the
|
|
2692
|
+
* SDK does not offer yet, so adding one is a lookup rather than a hunt. Source:
|
|
2693
|
+
* the Trinsic integrations catalog (`content.trinsic.id/connect/integrations`).
|
|
2694
|
+
*
|
|
2695
|
+
* Keys are the Trinsic provider ids. {@link getDigitalIdProviderLogo}
|
|
2696
|
+
* normalises before looking up, so the vendor-prefixed form the SDK and
|
|
2697
|
+
* `ms-credential-verification` use (`trinsic_netherlands_idin`) finds
|
|
2698
|
+
* `netherlands-idin` too.
|
|
2699
|
+
*
|
|
2700
|
+
* `name` is the catalog's display name. It is reference data — the card shows
|
|
2701
|
+
* the backend's `displayName` — but it is what makes this list searchable by
|
|
2702
|
+
* the name a person actually knows the provider by.
|
|
2703
|
+
*/
|
|
2704
|
+
var DIGITAL_ID_PROVIDER_LOGOS = {
|
|
2705
|
+
"a-mojeid": {
|
|
2706
|
+
name: "MojeID login",
|
|
2707
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mojeid.png"
|
|
2683
2708
|
},
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2709
|
+
"australia-connect-id": {
|
|
2710
|
+
name: "ConnectID",
|
|
2711
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/connectid-logo.png"
|
|
2712
|
+
},
|
|
2713
|
+
"austria-valera-eudi-sandbox": {
|
|
2714
|
+
name: "Austria Valera EUDI Sandbox",
|
|
2715
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/austria-valera-eudi-sandbox.png"
|
|
2716
|
+
},
|
|
2717
|
+
"brazil-cpf-lookup": {
|
|
2718
|
+
name: "Brazil CPF Check",
|
|
2719
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/cpf.png"
|
|
2720
|
+
},
|
|
2721
|
+
"brazil-digital-cnh": {
|
|
2722
|
+
name: "Brazil Digital CNH",
|
|
2723
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/cnh.png"
|
|
2724
|
+
},
|
|
2725
|
+
clear: {
|
|
2726
|
+
name: "CLEAR",
|
|
2727
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/clear.svg"
|
|
2728
|
+
},
|
|
2729
|
+
"czech-bank-id": {
|
|
2730
|
+
name: "Czech Bank iD",
|
|
2731
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/czech-bank-id.png"
|
|
2732
|
+
},
|
|
2733
|
+
"czech-republic-mojeid": {
|
|
2734
|
+
name: "MojeID Czech",
|
|
2735
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mojeid.png"
|
|
2736
|
+
},
|
|
2737
|
+
"denmark-altid": {
|
|
2738
|
+
name: "AltID",
|
|
2739
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/denmark-altid.png"
|
|
2740
|
+
},
|
|
2741
|
+
"denmark-mitid": {
|
|
2742
|
+
name: "MitID",
|
|
2743
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mitid-logo.svg"
|
|
2744
|
+
},
|
|
2745
|
+
"document-scan": {
|
|
2746
|
+
name: "Scan your government ID",
|
|
2747
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/document-scan.png"
|
|
2748
|
+
},
|
|
2749
|
+
"eudi-reference-wallet": {
|
|
2750
|
+
name: "EUDI Reference Wallet",
|
|
2751
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/eudi-reference-wallet.png"
|
|
2752
|
+
},
|
|
2753
|
+
"finnish-trust-network": {
|
|
2754
|
+
name: "Finnish Trust Network",
|
|
2755
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ftn.png"
|
|
2756
|
+
},
|
|
2757
|
+
"france-identite": {
|
|
2758
|
+
name: "France Identité",
|
|
2759
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/france-identite.png"
|
|
2760
|
+
},
|
|
2761
|
+
"germany-eudi-sandbox": {
|
|
2762
|
+
name: "Germany EUDI Sandbox",
|
|
2763
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/germany-eudi-sandbox.png"
|
|
2764
|
+
},
|
|
2765
|
+
"google-wallet": {
|
|
2766
|
+
name: "Google Wallet",
|
|
2767
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/google-wallet.png"
|
|
2768
|
+
},
|
|
2769
|
+
"indonesia-dukcapil-match": {
|
|
2770
|
+
name: "Indonesia Identity Verification",
|
|
2771
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/indonesia-dukcapil-match.png"
|
|
2772
|
+
},
|
|
2773
|
+
"italy-spid": {
|
|
2774
|
+
name: "SPID",
|
|
2775
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/spid.svg"
|
|
2776
|
+
},
|
|
2777
|
+
"kenya-nid-lookup-3": {
|
|
2778
|
+
name: "Kenya NID Lookup",
|
|
2779
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ke-nid.png"
|
|
2780
|
+
},
|
|
2781
|
+
"kenya-nid-match-2": {
|
|
2782
|
+
name: "Kenya NID Match",
|
|
2783
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ke-nid.png"
|
|
2784
|
+
},
|
|
2785
|
+
"mobile-id": {
|
|
2786
|
+
name: "Mobile-ID",
|
|
2787
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/mobiil-id-logo.svg"
|
|
2788
|
+
},
|
|
2789
|
+
"moldova-evo-wallet": {
|
|
2790
|
+
name: "EVO Wallet",
|
|
2791
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/moldova-evo-wallet.png"
|
|
2792
|
+
},
|
|
2793
|
+
"netherlands-idin": {
|
|
2794
|
+
name: "IDIN",
|
|
2795
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/idin-logo.svg"
|
|
2796
|
+
},
|
|
2797
|
+
"nigeria-nin-lookup-2": {
|
|
2798
|
+
name: "Nigeria NIN Lookup",
|
|
2799
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
2800
|
+
},
|
|
2801
|
+
"nigeria-nin-lookup-3": {
|
|
2802
|
+
name: "Nigeria NIN Lookup",
|
|
2803
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
2804
|
+
},
|
|
2805
|
+
"nigeria-nin-match-2": {
|
|
2806
|
+
name: "Nigeria NIN Match",
|
|
2807
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ng-nin.png"
|
|
2808
|
+
},
|
|
2809
|
+
"norway-bankid": {
|
|
2810
|
+
name: "BankID Norway",
|
|
2811
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/no-bankid.png"
|
|
2812
|
+
},
|
|
2813
|
+
oneid: {
|
|
2814
|
+
name: "OneID",
|
|
2815
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/oneid-logo.svg"
|
|
2816
|
+
},
|
|
2817
|
+
"philippines-digital-national-id-qr": {
|
|
2818
|
+
name: "Digital National ID",
|
|
2819
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
2820
|
+
},
|
|
2821
|
+
"philippines-philsys-match": {
|
|
2822
|
+
name: "PhilSys Biometric Verification",
|
|
2823
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
2824
|
+
},
|
|
2825
|
+
"philippines-physical-national-id-qr": {
|
|
2826
|
+
name: "Philippines National ID",
|
|
2827
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/philsys-logo.png"
|
|
2828
|
+
},
|
|
2829
|
+
"singpass-login": {
|
|
2830
|
+
name: "Singpass",
|
|
2831
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/singpass-logo.png"
|
|
2832
|
+
},
|
|
2833
|
+
"singpass-myinfo": {
|
|
2834
|
+
name: "Singpass",
|
|
2835
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/singpass-logo.png"
|
|
2836
|
+
},
|
|
2837
|
+
"smart-id": {
|
|
2838
|
+
name: "Smart-ID",
|
|
2839
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/smart-id-logo.svg"
|
|
2840
|
+
},
|
|
2841
|
+
"south-africa-nid-lookup-2": {
|
|
2842
|
+
name: "South Africa NID Lookup",
|
|
2843
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/za-nid.png"
|
|
2844
|
+
},
|
|
2845
|
+
"south-africa-nid-match-2": {
|
|
2846
|
+
name: "South Africa NID Match",
|
|
2847
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/za-nid.png"
|
|
2848
|
+
},
|
|
2849
|
+
"sweden-bankid": {
|
|
2850
|
+
name: "BankID Sweden",
|
|
2851
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/se-bankid.svg"
|
|
2852
|
+
},
|
|
2853
|
+
"uganda-nid-match-2": {
|
|
2854
|
+
name: "Uganda NID",
|
|
2855
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/ug-nid.png"
|
|
2856
|
+
},
|
|
2857
|
+
"uk-evisa-lookup": {
|
|
2858
|
+
name: "UK eVisa Lookup",
|
|
2859
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/uk-evisa.svg"
|
|
2860
|
+
},
|
|
2861
|
+
"usa-louisiana-wallet": {
|
|
2862
|
+
name: "LA Wallet",
|
|
2863
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/la-wallet.png"
|
|
2864
|
+
},
|
|
2865
|
+
"zimbabwe-nid-lookup-2": {
|
|
2866
|
+
name: "Zimbabwe NID Lookup",
|
|
2867
|
+
logoUrl: "https://content.trinsic.id/connect/integrations/zw-nid.png"
|
|
2868
|
+
},
|
|
2869
|
+
"trinsic-mock-output": {
|
|
2870
|
+
name: "Mock - Output",
|
|
2871
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2872
|
+
},
|
|
2873
|
+
"trinsic-test-database-lookup": {
|
|
2874
|
+
name: "Mock - Database Lookup",
|
|
2875
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2876
|
+
},
|
|
2877
|
+
"trinsic-test-deeplink": {
|
|
2878
|
+
name: "Mock - DeeplinkToMobile",
|
|
2879
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2880
|
+
},
|
|
2881
|
+
"trinsic-test-deeplink-refresh": {
|
|
2882
|
+
name: "Mock - DeeplinkToMobile + RefreshStepContent",
|
|
2883
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2884
|
+
},
|
|
2885
|
+
"trinsic-test-delayed-results": {
|
|
2886
|
+
name: "Mock - Delayed Results",
|
|
2887
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2888
|
+
},
|
|
2889
|
+
"trinsic-test-handoff": {
|
|
2890
|
+
name: "Mock - Handoff",
|
|
2891
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2892
|
+
},
|
|
2893
|
+
"trinsic-test-offline": {
|
|
2894
|
+
name: "Mock - Offline",
|
|
2895
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2896
|
+
},
|
|
2897
|
+
"trinsic-test-redirect": {
|
|
2898
|
+
name: "Mock - Redirect",
|
|
2899
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2900
|
+
},
|
|
2901
|
+
"trinsic-test-show-content": {
|
|
2902
|
+
name: "Mock - ShowContent",
|
|
2903
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2904
|
+
},
|
|
2905
|
+
"trinsic-test-show-content-refresh": {
|
|
2906
|
+
name: "Mock - ShowContent + RefreshStepContent",
|
|
2907
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2908
|
+
},
|
|
2909
|
+
"trinsic-test-sub-providers": {
|
|
2910
|
+
name: "Mock - Sub-providers",
|
|
2911
|
+
logoUrl: "https://content.trinsic.id/assets/logo/192x192.png"
|
|
2690
2912
|
}
|
|
2691
2913
|
};
|
|
2914
|
+
/**
|
|
2915
|
+
* The map's key form: lowercased, `_` as `-`, and the vendor prefix dropped so
|
|
2916
|
+
* `trinsic_netherlands_idin` (what the SDK and `ms-credential-verification`
|
|
2917
|
+
* use) finds `netherlands-idin` (what Trinsic publishes).
|
|
2918
|
+
*
|
|
2919
|
+
* The `trinsic-test-*` / `trinsic-mock-*` keys keep their prefix: it is part of
|
|
2920
|
+
* the name there, and dropping only the first segment leaves `test-redirect`,
|
|
2921
|
+
* which is still distinct from every real provider.
|
|
2922
|
+
*/
|
|
2923
|
+
function toLogoKey(providerId) {
|
|
2924
|
+
return providerId.toLowerCase().replace(/_/g, "-");
|
|
2925
|
+
}
|
|
2926
|
+
/**
|
|
2927
|
+
* The catalog logo for a provider id, or `undefined` when the map does not
|
|
2928
|
+
* carry it — the card then falls back to the generic digital-ID glyph.
|
|
2929
|
+
*/
|
|
2930
|
+
function getDigitalIdProviderLogo(providerId) {
|
|
2931
|
+
if (!providerId) return;
|
|
2932
|
+
const key = toLogoKey(providerId);
|
|
2933
|
+
return DIGITAL_ID_PROVIDER_LOGOS[key]?.logoUrl ?? DIGITAL_ID_PROVIDER_LOGOS[key.replace(/^trinsic-/, "")]?.logoUrl;
|
|
2934
|
+
}
|
|
2692
2935
|
//#endregion
|
|
2693
2936
|
//#region src/modules/id/chooser/chooser.helpers.ts
|
|
2694
|
-
|
|
2695
|
-
|
|
2937
|
+
/**
|
|
2938
|
+
* The card logo: the backend's own link when it is absolute, else the catalog
|
|
2939
|
+
* logo for the provider (`digitalIdProviderLogos`), else nothing — the card
|
|
2940
|
+
* then renders the generic digital-ID glyph.
|
|
2941
|
+
*
|
|
2942
|
+
* The backend catalog still carries bare asset file names (`idin.svg`) for
|
|
2943
|
+
* some methods. Those would resolve against the host page and render broken,
|
|
2944
|
+
* so they are ignored in favour of the catalog map.
|
|
2945
|
+
*/
|
|
2946
|
+
function toCardLogoSrc(logoUrl, providerId) {
|
|
2947
|
+
if (logoUrl && /^(https?:\/\/|data:)/i.test(logoUrl)) return logoUrl;
|
|
2948
|
+
return getDigitalIdProviderLogo(providerId);
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* Expands the `digitalIdRedirect` document type into one card per enabled
|
|
2952
|
+
* web-redirect provider (iDIN, FTN, …) in backend order. With no provider
|
|
2953
|
+
* options (e.g. the mDL wallet fallback) the generic redirect card is kept.
|
|
2954
|
+
*/
|
|
2955
|
+
function toDigitalIdRedirectCards(digitalIdRedirectOptions) {
|
|
2956
|
+
const base = CHOOSER_OPTIONS_LOOKUP.digitalIdRedirect;
|
|
2957
|
+
if (digitalIdRedirectOptions.length === 0) return [{
|
|
2958
|
+
...base,
|
|
2959
|
+
key: base.type
|
|
2960
|
+
}];
|
|
2961
|
+
return digitalIdRedirectOptions.map((option) => ({
|
|
2962
|
+
...base,
|
|
2963
|
+
key: `${base.type}:${option.providerId}`,
|
|
2964
|
+
testId: `${base.testId}-${option.providerId}`,
|
|
2965
|
+
providerId: option.providerId,
|
|
2966
|
+
displayName: option.displayName,
|
|
2967
|
+
iconSrc: toCardLogoSrc(option.logoUrl, option.providerId)
|
|
2968
|
+
}));
|
|
2969
|
+
}
|
|
2970
|
+
function getAvailableChooserOptions(availableDocumentTypes, digitalIdRedirectOptions = []) {
|
|
2971
|
+
const cards = [];
|
|
2972
|
+
for (const documentType of availableDocumentTypes) {
|
|
2973
|
+
if (documentType === "digitalIdRedirect") {
|
|
2974
|
+
cards.push(...toDigitalIdRedirectCards(digitalIdRedirectOptions));
|
|
2975
|
+
continue;
|
|
2976
|
+
}
|
|
2696
2977
|
const chooserOption = CHOOSER_OPTIONS_LOOKUP[documentType];
|
|
2697
|
-
if (chooserOption)
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2978
|
+
if (chooserOption) cards.push({
|
|
2979
|
+
...chooserOption,
|
|
2980
|
+
key: chooserOption.type
|
|
2981
|
+
});
|
|
2982
|
+
}
|
|
2983
|
+
return cards.sort((cardA, cardB) => cardA.weight - cardB.weight);
|
|
2701
2984
|
}
|
|
2702
2985
|
//#endregion
|
|
2703
2986
|
//#region src/modules/id/chooser/chooser.tsx
|
|
2704
2987
|
var Chooser = ({ manager, state }) => {
|
|
2705
2988
|
const { t } = useTranslation();
|
|
2706
|
-
const availableChooserOptions = T(() => getAvailableChooserOptions(state.availableDocumentTypes), [state.availableDocumentTypes]);
|
|
2707
|
-
const
|
|
2708
|
-
|
|
2989
|
+
const availableChooserOptions = T(() => getAvailableChooserOptions(state.availableDocumentTypes, state.digitalIdRedirectOptions), [state.availableDocumentTypes, state.digitalIdRedirectOptions]);
|
|
2990
|
+
const handleSelect = (card) => {
|
|
2991
|
+
if (card.providerId) {
|
|
2992
|
+
manager.selectDocument(card.type, { providerId: card.providerId });
|
|
2993
|
+
return;
|
|
2994
|
+
}
|
|
2995
|
+
manager.selectDocument(card.type);
|
|
2709
2996
|
};
|
|
2710
2997
|
return /* @__PURE__ */ u(Page, {
|
|
2711
2998
|
title: t("idv2.chooser.chooseHowToVerifyTitle"),
|
|
@@ -2713,13 +3000,14 @@ var Chooser = ({ manager, state }) => {
|
|
|
2713
3000
|
className: "IncodeChooserPage",
|
|
2714
3001
|
children: /* @__PURE__ */ u("div", {
|
|
2715
3002
|
class: "IncodeChooserContainer",
|
|
2716
|
-
children: /* @__PURE__ */ u(VerificationOptionCardList, { children: availableChooserOptions.map((
|
|
2717
|
-
icon:
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
3003
|
+
children: /* @__PURE__ */ u(VerificationOptionCardList, { children: availableChooserOptions.map((card) => /* @__PURE__ */ u(VerificationOptionCard, {
|
|
3004
|
+
icon: card.icon,
|
|
3005
|
+
iconSrc: card.iconSrc,
|
|
3006
|
+
title: card.displayName ?? t(card.title),
|
|
3007
|
+
testId: card.testId,
|
|
3008
|
+
tag: card.tag ? t(card.tag) : void 0,
|
|
3009
|
+
onClick: () => handleSelect(card)
|
|
3010
|
+
}, card.key)) })
|
|
2723
3011
|
})
|
|
2724
3012
|
});
|
|
2725
3013
|
};
|
|
@@ -2757,4 +3045,4 @@ var FlipAnimation = ({ manager, direction }) => {
|
|
|
2757
3045
|
});
|
|
2758
3046
|
};
|
|
2759
3047
|
//#endregion
|
|
2760
|
-
export {
|
|
3048
|
+
export { ID_CAPTURE_LOADING_PHASE as _, CaptureAutoFocusProvider as a, VerificationOptionCard as b, IdExpired as c, CaptureFrame as d, useIdExperiment as f, EXPERIMENT_LIFECYCLE_STATUS as g, CONTINUING_TUTORIAL_PHASES as h, Capture as i, IdError as l, CAMERA_WARMUP_LOADING_PHASES as m, Chooser as n, getCaptureFrameTitle as o, CAMERA_PERMISSION_UX as p, Tutorial as r, IdNoAttempts as s, FlipAnimation as t, canFlipCapturedCard as u, ID_CAPTURE_STATUS as v, VerificationOptionCardList as x, PERMISSION_DIALOG_STATUS as y };
|