@incodetech/web 2.3.2 → 2.4.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +0 -3
- package/dist/GeolocationPermissionDenied-BFMCy-vh.js +444 -0
- package/dist/ae-signature/ae-signature.es.js +3 -3
- package/dist/{af-ZA-OntsEubt.js → af-ZA-BrjGHv_T.js} +33 -6
- package/dist/ageVerification-DGLniT4Y.js +77 -0
- package/dist/{am-yUcnt3vq.js → am-DE3X3yyA.js} +33 -6
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/antifraud/styles.css +0 -1
- package/dist/{ar-AE-BfxiKovT.js → ar-AE-CMTI-_Uo.js} +34 -7
- package/dist/{ar-57Dd-l4I.js → ar-BNacVOWD.js} +34 -7
- package/dist/{ar-EG-BgDjHJBi.js → ar-EG-D9uwNPoU.js} +33 -6
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{autoFocusTitle-DebebrwQ.js → autoFocusTitle-shYRUp-4.js} +1 -1
- package/dist/{az-dT363k-q.js → az-Wr9zZpTx.js} +33 -6
- 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-CyVBbj9b.js → baseTutorial-D_Jq0Kz2.js} +13 -24
- package/dist/{bn-CKZ00roT.js → bn-C_dbLk3y.js} +33 -6
- package/dist/{bottomSheet-DpSr7d9-.js → bottomSheet-Cdwz_7C5.js} +2 -2
- package/dist/{bs-BnLdLnmZ.js → bs-C30W6le2.js} +33 -6
- package/dist/{ca-D3PGkuQc.js → ca-5-jdy0XG.js} +33 -6
- package/dist/cameraOverlay-rWy5OHQK.js +2 -0
- package/dist/cameraOverlayHeader-DUwk9XJR.js +83 -0
- package/dist/{cameraView-CoWyMnTT.js → cameraView-DJhoELeE.js} +2 -2
- package/dist/{ceb-R-2VANeF.js → ceb-D91AsHCc.js} +33 -6
- 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-CNc8kQS0.js → checkbox-BCr_W3eL.js} +2 -2
- package/dist/connectionError-D4qOfYzz.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-BlC5_2rW.js → countrySelector-ck-DQ89q.js} +6 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/{cs-bm9MEri0.js → cs-C4eEOpdT.js} +33 -6
- package/dist/{cs-CZ-CEidLhWp.js → cs-CZ-DiJ5MEfY.js} +33 -6
- 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-C_iIhQYG.js → customFields-CihI8HLg.js} +10 -9
- package/dist/{customWatchlist-utPTNwCU.js → customWatchlist-avefsmET.js} +6 -6
- package/dist/{da-DK-BuSuFTsg.js → da-DK-C3zlFkKn.js} +33 -6
- package/dist/{dashboardTheme-DdWs3tlN.js → dashboardTheme-CL3jdGes.js} +1 -1
- package/dist/dateInputComposed-9c_0YlmT.js +1 -0
- package/dist/{dateInputComposed-CylyZPCj.js → dateInputComposed-BNmac2I-.js} +4 -4
- package/dist/{de-BCPdribE.js → de-BefcT58V.js} +33 -6
- package/dist/denied-Cs9yuLM4.js +1871 -0
- package/dist/deviceWallet-B0fJl22u.js +66 -0
- package/dist/digitalIdRedirect-BMakPQkG.js +162 -0
- package/dist/digitalIdUpload-D39gUOUa.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-BrhKPBNZ.js → documentCapture-64bza6r6.js} +127 -180
- package/dist/documentCapture-D_cQ0luo.js +2 -0
- package/dist/{dropdownComposed-B0WxIm-I.js → dropdownComposed-DMsLAeKB.js} +8 -14
- package/dist/dropdownComposed-MlXFSguX.js +1 -0
- 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-B1gUqxgm.js +2 -0
- package/dist/{ekybModule-BwD2ohHx.js → ekybModule-ChOhP6uM.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-Y9GYfYAt.js → ekycModule-4q3A2JP3.js} +46 -14
- package/dist/ekycModule-DTIkPJjl.js +2 -0
- package/dist/{el-60ThHM2U.js → el-BqLmhuTU.js} +34 -7
- package/dist/{el-GR-D6WIhwC3.js → el-GR-BN31SzAR.js} +33 -6
- 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-Bmn4AOpj.js → electronic-signature-Dhw2cLem.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-DgQXpURU.js → emailInput-yOCErcEc.js} +3 -3
- package/dist/{en-ISV8KwbL.js → en-CJnRQ8fU.js} +33 -6
- package/dist/{en-DG-Crvtj3p2.js → en-DG-Dx4B_KVS.js} +33 -6
- package/dist/{errorContent-XVdZTMAl.js → errorContent-mqhVNRSO.js} +5 -5
- package/dist/{es-419-pXqNpSti.js → es-419-Dl-olR1G.js} +33 -6
- package/dist/{es-1QCV_aoe.js → es-BZmJSsux.js} +33 -6
- package/dist/{es-ES-BIYzpL_B.js → es-ES-1YZMu7Kf.js} +33 -6
- package/dist/{es-MX-Cih_nZPr.js → es-MX-CyxCkl1y.js} +33 -6
- package/dist/esm-15CISqPe.js +430 -0
- package/dist/{et-CgCGIoIQ.js → et-C1S6VW9K.js} +33 -6
- package/dist/{expiredId-BhQM_AcZ.js → expiredId-DfqiC9HI.js} +6 -6
- package/dist/extensibility.es.js +38 -36
- package/dist/{fa-IR-YnGtqwsy.js → fa-IR-BPyBkaiF.js} +33 -6
- 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-BgN3CPdN.js +2 -0
- package/dist/faceMatch-UbygvNeb.js +336 -0
- package/dist/{fi-FI-3XXKPtj1.js → fi-FI-CfKLgU-O.js} +33 -6
- 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-CNaAVsGY.js +2 -0
- package/dist/{fieldComparison-D7rZ657j.js → fieldComparison-CmRsH7pg.js} +13 -7
- package/dist/finalSuccessScreen-2-RZENUP.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-BGXItWj0.js → flipAnimation-DI5Gw5Ks.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-Cf25rdkJ.js → formField-2VLEaztk.js} +2 -2
- package/dist/{fr-CA-DULWz0cf.js → fr-CA-BJlED1CS.js} +33 -6
- package/dist/{fr-BwDYP0LQ.js → fr-yKqRZbZ6.js} +33 -6
- 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-BZVxeCzZ.js → he-Dr88a3D5.js} +33 -6
- package/dist/{hi-Bp8GM653.js → hi-ac5Rf53r.js} +33 -6
- package/dist/{hmn-Bj6F8ToZ.js → hmn-bwkkfetx.js} +33 -6
- package/dist/{homeScreen-eYD0Zo8Y.js → homeScreen-BezGnGit.js} +10 -11
- package/dist/{hr-uz9DXHS8.js → hr-CHcVE152.js} +33 -6
- package/dist/{ht-BGd4L5Je.js → ht-IPMniPpi.js} +33 -6
- package/dist/{hu-BvTVDhN5.js → hu-CG5ZOzy2.js} +33 -6
- package/dist/icons-CSP6Tne6.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-D0EG-hya.js → id-DYinFjLQ.js} +33 -6
- 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-66OmIUeD.js → idOcr-DN1gTAJ7.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-DIujvtwd.js +341 -0
- package/dist/{incodeComponent--XJZ07QN.js → incodeComponent-WXvcRKkM.js} +147 -269
- package/dist/incodeModule-DsWO19Nv.js +68 -0
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-ByIWAPSr.js → inputComposed-D-WVQEpg.js} +2 -2
- package/dist/inputComposed-Dca8NJxF.js +1 -0
- package/dist/{it-DWY7_sYa.js → it-pBVnbw9L.js} +34 -7
- package/dist/{ja-z6DqLSKX.js → ja-BtG6-Vh2.js} +33 -6
- package/dist/{ja-JP-DvHAizEm.js → ja-JP-CuWo_Mj3.js} +33 -6
- package/dist/{jv-CkRJjzon.js → jv-BT_G8rCL.js} +33 -6
- package/dist/{ka-BvgWMiTW.js → ka-WxIHXEYK.js} +33 -6
- package/dist/{kk-BAYGOXZ1.js → kk-qwv1f2i0.js} +33 -6
- package/dist/{km-Bn1-UMaR.js → km-CMxgTPm2.js} +40 -13
- package/dist/{ko-CtAqOkND.js → ko-ByRDnTNU.js} +33 -6
- package/dist/{ko-KP-kVzak00f.js → ko-KP-DT8OH4nm.js} +33 -6
- package/dist/{ky-Cegtfua2.js → ky-DrRlDMWB.js} +33 -6
- package/dist/{lo-DtW4luOG.js → lo-CazQUHLa.js} +33 -6
- package/dist/{lt-CnaDc_UD.js → lt-CBMtCNcX.js} +33 -6
- package/dist/{lv-SBquFvpr.js → lv-QLEUT4Fk.js} +33 -6
- package/dist/{mandatoryConsent-BMvNiuiY.js → mandatoryConsent-B8JxEysm.js} +8 -6
- package/dist/{manualCaptureButton-6HOiu1ud.js → manualCaptureButton-CortdhZS.js} +5 -5
- package/dist/{manualCaptureButton-CI-lIiuA.js → manualCaptureButton-XLjthVmp.js} +43 -34
- package/dist/{mk-Bym8Rbmu.js → mk-DDDwwQ8b.js} +33 -6
- package/dist/{mn-C-EiXg08.js → mn-CKxduUYN.js} +33 -6
- package/dist/{ms-k_GCoKmE.js → ms-CFER5NeU.js} +33 -6
- package/dist/{my-v5GqdpqS.js → my-mmwQAfjf.js} +33 -6
- package/dist/{nb-NO-Ca1WyJtF.js → nb-NO-CGgKs8rj.js} +33 -6
- package/dist/{ne-DZ1xJQOA.js → ne-BJqy-qcj.js} +33 -6
- package/dist/{nl-DsWJVGHj.js → nl-DJr6e9c-.js} +33 -6
- package/dist/{optionAccessibleLabel-CkP9Zu6D.js → optionAccessibleLabel-Da2eL5BH.js} +5 -5
- package/dist/{otpInput-CmcE2rnQ.js → otpInput-DhyZLO7E.js} +6 -6
- package/dist/page-BksTT2IT.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-DkHtXfpN.js → passwordInputComposed-DUuchiG5.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-DI6ftHlp.js +2 -0
- package/dist/pdfViewer-jx6A8s9-.js +154 -0
- package/dist/{permissions-D85sVpRH.js → permissions-CSwqOb8W.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-B-rmar65.js +249 -0
- package/dist/{pl-B32zvfat.js → pl-eSIxcu-k.js} +33 -6
- package/dist/policyUrls-B3M8nLRh.js +7 -0
- package/dist/{processing-DB6ZtByy.js → processing-DXSGB91D.js} +1 -1
- package/dist/progressBar-CFcaF74Q.js +27 -0
- package/dist/{pt-BR-CZSBmrhf.js → pt-BR-CJA5ZG6e.js} +33 -6
- package/dist/{pt-CI9A94gT.js → pt-CmJV-wZ-.js} +33 -6
- package/dist/{pt-PT-dD8X7Uk-.js → pt-PT-BFdqErGN.js} +33 -6
- package/dist/{spacer-Csi6kZZI.js → purify.es-0fCPkEV1.js} +2 -740
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/radioGroupComposed-BDYikM_v.js +1 -0
- package/dist/{radioGroupComposed-BKEEwEPO.js → radioGroupComposed-CP8O7fH0.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-QICiM2K0.js → resendTimer-B57abKjj.js} +1 -1
- package/dist/{richText-2CpStx6w.js → richText-aCnLd3j2.js} +2 -2
- package/dist/{ro-9pJ4k0ri.js → ro-CWG17Pwq.js} +33 -6
- package/dist/{ru-RU-Bbq_NDQg.js → ru-RU-B92HlMCp.js} +33 -6
- package/dist/{ru-DU8F6ner.js → ru-ax21b71G.js} +33 -6
- 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-COjINm80.js → sk-Ds3au8Jk.js} +35 -8
- package/dist/{sl-BHEN5hgb.js → sl-B6IDJen8.js} +33 -6
- package/dist/{smsTabContent-6ehe5Tx-.js → smsTabContent-BlG83kTA.js} +6 -7
- package/dist/{so-BK_1PgA0.js → so-YhVExrIs.js} +33 -6
- package/dist/spacer-CkjGrKvv.js +741 -0
- package/dist/{spinner-C9D0Usrj.js → spinner-ceW7fzMV.js} +2 -2
- package/dist/{sr-CXHt_PCR.js → sr-DHyxTTRS.js} +33 -6
- package/dist/{sr-Latn-BBXL4zhk.js → sr-Latn-DVXk3-Ar.js} +40 -13
- package/dist/{sr-YU-D3DxWT8Q.js → sr-YU-A98YyASK.js} +33 -6
- package/dist/{statusPage-BbOa8Zsp.js → statusPage-DcunZz7q.js} +3 -3
- package/dist/{sv-SE-B6_0mJU7.js → sv-SE-BKSmMaSz.js} +33 -6
- package/dist/{sw-BUZuOFDH.js → sw-BlrxyPqO.js} +33 -6
- package/dist/{th-DZN2Iv8L.js → th-Bwohp3kt.js} +33 -6
- package/dist/{th-TH-B5S1TAOp.js → th-TH-CJpVz2u5.js} +33 -6
- package/dist/themes/dark.css +1 -1537
- package/dist/themes/light.css +1 -1413
- package/dist/{tl-DO_ExzG4.js → tl-D-896paK.js} +33 -6
- package/dist/{tl-PH-CbqgynTp.js → tl-PH-CpeFjacJ.js} +33 -6
- package/dist/{tr-DuzhV6aC.js → tr-UpF9aXXo.js} +34 -7
- package/dist/transitionSpinner-t_urdfwD.js +76 -0
- package/dist/{tutorial-CGHCyHq1.js → tutorial-Hoic1tQU.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-Ck7V6DNZ.js → typography-CjBuzXWX.js} +1 -1
- package/dist/{uiConfig-Dd7jp1PI.js → uiConfig-Bh5WEbvy.js} +256 -874
- package/dist/{uk-BLrKoj8p.js → uk-DsTY-qEZ.js} +33 -6
- package/dist/{uk-UA-D6AgqKAE.js → uk-UA-BsILxTGz.js} +33 -6
- package/dist/{ur-uciedoGK.js → ur-n9ZinGDJ.js} +33 -6
- package/dist/useCaptureHelpButton-f7JWgp_k.js +86 -0
- package/dist/useCoverMedia-VLw3OYN_.js +149 -0
- package/dist/{uz-D1RcQJml.js → uz-C-oPc-JB.js} +33 -6
- package/dist/{verificationResult-CMeZfcp-.js → verificationResult-M2YRY8Gb.js} +6 -6
- package/dist/{vi-ftDWx05b.js → vi-CwwSd-oQ.js} +33 -6
- 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-CAVtOlvf.js → watchlistForBusiness-CAUTDAJh.js} +265 -8
- package/dist/{resolveApiKey-uVJm2km3.js → withEndScreenTexts-VQlYb0bU.js} +53 -25
- package/dist/workflow/styles.css +1 -5116
- package/dist/workflow/workflow.es.js +83 -28
- package/dist/{zh-CN-C6BX8R6-.js → zh-CN-Dc3X6PNO.js} +35 -8
- package/dist/{zh-CJ974_0X.js → zh-Dgdyqejo.js} +33 -6
- package/dist/{zh-HANT-CbCj1ENS.js → zh-HANT-BDp9XkY7.js} +33 -6
- package/dist/{zh-TW-DGxz1fli.js → zh-TW-QBmOmVhc.js} +33 -6
- 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-Dp8micQ1.js +0 -2
- package/dist/cameraOverlayHeader-BMfNitmC.js +0 -43
- package/dist/captureFooter-xMZdYH2O.js +0 -67
- package/dist/connectionError-BhxGYSwy.js +0 -45
- package/dist/countries-5e8kwG_m.js +0 -8560
- package/dist/dateInputComposed-DM6MXdpn.js +0 -1
- package/dist/denied-PJnw8fbL.js +0 -2191
- package/dist/documentCapture-Bcw3g1Q1.js +0 -2
- package/dist/dropdownComposed-C2bmup-w.js +0 -1
- package/dist/ekybModule-DHJWniii.js +0 -2
- package/dist/ekycModule-5d4qgrAk.js +0 -2
- package/dist/faceMatch-B7ayVA3N.js +0 -2
- package/dist/faceMatch-Tj39bhkm.js +0 -334
- package/dist/fieldComparison-75FGbygj.js +0 -2
- package/dist/finalSuccessScreen-ikiIjPhC.js +0 -499
- package/dist/front-horizontal-hint-mgovnJf3.js +0 -380
- package/dist/icons-DO-rf5yd.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-n_Am6zwM.js +0 -31
- package/dist/inputComposed-B33LMERA.js +0 -1
- package/dist/modal-DNfrzKC7.js +0 -140
- package/dist/modal.hooks-B0Wrc9s2.js +0 -201
- package/dist/pdfViewer-CygtdQPU.js +0 -149
- package/dist/pdfViewer-Yf7ZKXLz.js +0 -2
- package/dist/phoneInputComposed-7i6GGW1B.js +0 -3751
- package/dist/radioGroupComposed-Bm3iEn-6.js +0 -1
- package/dist/tabs-CW12_glt.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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { _ as y, c as A, f as d, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { d as cn } from "./spacer-CkjGrKvv.js";
|
|
3
|
+
import { t as Spinner } from "./spinner-ceW7fzMV.js";
|
|
4
|
+
//#region src/shared/pdfViewer/pdfViewer.tsx
|
|
5
|
+
var DPR = typeof window !== "undefined" ? window.devicePixelRatio ?? 1 : 1;
|
|
6
|
+
/** `blob:` URL of the pdf.js worker, created on the first PDF render. */
|
|
7
|
+
var workerSrc;
|
|
8
|
+
async function renderPage(page, canvas, targetWidth) {
|
|
9
|
+
const scale = targetWidth / page.getViewport({ scale: 1 }).width;
|
|
10
|
+
const scaled = page.getViewport({ scale: scale * DPR });
|
|
11
|
+
canvas.width = Math.ceil(scaled.width);
|
|
12
|
+
canvas.height = Math.ceil(scaled.height);
|
|
13
|
+
canvas.style.width = `${Math.ceil(scaled.width / DPR)}px`;
|
|
14
|
+
canvas.style.height = `${Math.ceil(scaled.height / DPR)}px`;
|
|
15
|
+
const ctx = canvas.getContext("2d");
|
|
16
|
+
if (!ctx) return;
|
|
17
|
+
await page.render({
|
|
18
|
+
canvasContext: ctx,
|
|
19
|
+
viewport: scaled,
|
|
20
|
+
canvas
|
|
21
|
+
}).promise;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Extracts the page's text as a single readable string. `getTextContent`
|
|
25
|
+
* returns positioned glyph runs (`TextItem`) interleaved with structural
|
|
26
|
+
* markers (`TextMarkedContent`, which carry no `str`); we keep only the former
|
|
27
|
+
* and honour `hasEOL` so logical line breaks survive into the reading order.
|
|
28
|
+
*/
|
|
29
|
+
async function extractPageText(page) {
|
|
30
|
+
return (await page.getTextContent()).items.map((item) => "str" in item ? item.str + (item.hasEOL ? "\n" : "") : "").join("").trim();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* PDF viewer that renders directly onto `<canvas>` via `pdfjs-dist`.
|
|
34
|
+
*
|
|
35
|
+
* We deliberately avoid the browser's native PDF viewer for both modes:
|
|
36
|
+
* - Mobile browsers (iOS Safari, most Chromium on Android) do not render PDFs
|
|
37
|
+
* inline in `<iframe>` / `<object>` at all and show a tap-to-open placeholder
|
|
38
|
+
* regardless of frame size. Mobile is the primary use case for this
|
|
39
|
+
* component, so native embedding is not viable.
|
|
40
|
+
* - Desktop Chromium additionally refuses to render PDFs inline below
|
|
41
|
+
* ~200px, breaking small document thumbnails.
|
|
42
|
+
*
|
|
43
|
+
* Rendering through pdfjs gives us consistent output across every target:
|
|
44
|
+
* inline pixels we control, with no browser-supplied toolbars, download
|
|
45
|
+
* chrome, or tap-to-open overlays.
|
|
46
|
+
*
|
|
47
|
+
* `pdfjs-dist` and its worker are dynamically `import()`-ed so they don't land
|
|
48
|
+
* in the main bundle; consumers that never render a PDF pay zero download
|
|
49
|
+
* cost. Thumbnail and full-view callers share the same async chunks. The
|
|
50
|
+
* worker is imported as source text (`?raw`) and started from a `blob:` URL:
|
|
51
|
+
* a `?url` import is inlined by the library build as a base64 `data:` URL
|
|
52
|
+
* (about 1.4 MB) into every chunk that imports this file, and pdf.js loads a
|
|
53
|
+
* `data:` worker through `import()`, which a CSP without `script-src data:`
|
|
54
|
+
* blocks.
|
|
55
|
+
*
|
|
56
|
+
* Accessibility: a `<canvas>` is opaque to assistive technology, so the
|
|
57
|
+
* rendered pages are grouped under a single `role="img"` + `aria-label`
|
|
58
|
+
* (a short summary). On its own that fails WCAG 1.1.1 / 1.4.5 for a document
|
|
59
|
+
* the user must actually read — pixels are an image of text with no reading
|
|
60
|
+
* path. In `full` mode we therefore also extract each page's real text via
|
|
61
|
+
* `getTextContent()` into a visually-hidden, AT-readable layer alongside the
|
|
62
|
+
* canvases. `thumbnail` mode stays a labelled preview (no text layer): it is a
|
|
63
|
+
* decorative first-page glance whose `aria-label` is the file name.
|
|
64
|
+
*/
|
|
65
|
+
var PdfViewer = ({ url, mode = "full", "aria-label": ariaLabel, className, onError }) => {
|
|
66
|
+
const containerRef = A(null);
|
|
67
|
+
const pagesRef = A(null);
|
|
68
|
+
const textRef = A(null);
|
|
69
|
+
const [status, setStatus] = d("loading");
|
|
70
|
+
const onErrorRef = A(onError);
|
|
71
|
+
onErrorRef.current = onError;
|
|
72
|
+
y(() => {
|
|
73
|
+
let cancelled = false;
|
|
74
|
+
let loadingTask = null;
|
|
75
|
+
let pdfDoc = null;
|
|
76
|
+
setStatus("loading");
|
|
77
|
+
(async () => {
|
|
78
|
+
try {
|
|
79
|
+
const [pdfjs, { default: workerSource }] = await Promise.all([import("./pdf-BKHLi5Ac.js"), import("./pdf.worker.min-BM1b2w9V.js")]);
|
|
80
|
+
workerSrc ??= URL.createObjectURL(new Blob([workerSource], { type: "text/javascript" }));
|
|
81
|
+
pdfjs.GlobalWorkerOptions.workerSrc = workerSrc;
|
|
82
|
+
if (cancelled) return;
|
|
83
|
+
const container = containerRef.current;
|
|
84
|
+
const pagesHost = pagesRef.current;
|
|
85
|
+
const textHost = textRef.current;
|
|
86
|
+
if (!container || !pagesHost) return;
|
|
87
|
+
pagesHost.innerHTML = "";
|
|
88
|
+
if (textHost) textHost.innerHTML = "";
|
|
89
|
+
loadingTask = pdfjs.getDocument({ url });
|
|
90
|
+
pdfDoc = await loadingTask.promise;
|
|
91
|
+
if (cancelled) return;
|
|
92
|
+
const includeTextLayer = mode === "full";
|
|
93
|
+
const pageCount = mode === "thumbnail" ? 1 : pdfDoc.numPages;
|
|
94
|
+
const fallbackWidth = mode === "thumbnail" ? 113 : 320;
|
|
95
|
+
const targetWidth = container.clientWidth || fallbackWidth;
|
|
96
|
+
for (let pageNumber = 1; pageNumber <= pageCount; pageNumber++) {
|
|
97
|
+
if (cancelled) return;
|
|
98
|
+
const page = await pdfDoc.getPage(pageNumber);
|
|
99
|
+
const canvas = document.createElement("canvas");
|
|
100
|
+
canvas.className = "IncodePdfViewerCanvas";
|
|
101
|
+
pagesHost.appendChild(canvas);
|
|
102
|
+
await renderPage(page, canvas, targetWidth);
|
|
103
|
+
if (includeTextLayer && textHost) {
|
|
104
|
+
const pageText = await extractPageText(page);
|
|
105
|
+
if (cancelled) return;
|
|
106
|
+
if (pageText) {
|
|
107
|
+
const pageTextEl = document.createElement("div");
|
|
108
|
+
pageTextEl.className = "IncodePdfViewerTextPage";
|
|
109
|
+
pageTextEl.textContent = pageText;
|
|
110
|
+
textHost.appendChild(pageTextEl);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
page.cleanup();
|
|
114
|
+
}
|
|
115
|
+
if (!cancelled) setStatus("ready");
|
|
116
|
+
} catch (error) {
|
|
117
|
+
if (cancelled) return;
|
|
118
|
+
setStatus("error");
|
|
119
|
+
onErrorRef.current?.(error);
|
|
120
|
+
}
|
|
121
|
+
})();
|
|
122
|
+
return () => {
|
|
123
|
+
cancelled = true;
|
|
124
|
+
loadingTask?.destroy();
|
|
125
|
+
pdfDoc?.destroy();
|
|
126
|
+
};
|
|
127
|
+
}, [url, mode]);
|
|
128
|
+
return /* @__PURE__ */ u("div", {
|
|
129
|
+
ref: containerRef,
|
|
130
|
+
class: cn("IncodePdfViewer", mode === "thumbnail" ? "IncodePdfViewerThumbnail" : "IncodePdfViewerFull", className),
|
|
131
|
+
"aria-busy": status === "loading",
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ u("div", {
|
|
134
|
+
ref: pagesRef,
|
|
135
|
+
class: "IncodePdfViewerPages",
|
|
136
|
+
role: "img",
|
|
137
|
+
"aria-label": ariaLabel
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ u("div", {
|
|
140
|
+
ref: textRef,
|
|
141
|
+
class: "IncodePdfViewerTextLayer"
|
|
142
|
+
}),
|
|
143
|
+
status === "loading" && /* @__PURE__ */ u("div", {
|
|
144
|
+
class: "IncodePdfViewerStatus",
|
|
145
|
+
children: /* @__PURE__ */ u(Spinner, {
|
|
146
|
+
size: "small",
|
|
147
|
+
fullScreen: false
|
|
148
|
+
})
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
//#endregion
|
|
154
|
+
export { PdfViewer as t };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
2
|
-
import { _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import {
|
|
4
|
-
import { i as TypographyH4, t as Title } from "./typography-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-Bh5WEbvy.js";
|
|
2
|
+
import { _ as y, a as P, b as Q, c as A, g as x, s as z, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { h as useIsMobileDeviceWidth } from "./incodeComponent-WXvcRKkM.js";
|
|
4
|
+
import { i as TypographyH4, t as Title } from "./typography-CjBuzXWX.js";
|
|
5
|
+
import { t as TransitionSpinner } from "./transitionSpinner-t_urdfwD.js";
|
|
6
|
+
import { n as WarningIcon, x as Button } from "./icons-CSP6Tne6.js";
|
|
7
|
+
import { t as Page } from "./page-BksTT2IT.js";
|
|
8
|
+
import { n as Modal } from "./incode-logo-DIujvtwd.js";
|
|
9
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-shYRUp-4.js";
|
|
10
|
+
import { t as BottomSheet } from "./bottomSheet-Cdwz_7C5.js";
|
|
11
|
+
import { n as SvgCameraIcon, r as SvgBankCardIcon, t as SvgCheckIcon } from "./check-icon-BpjpKqhJ.js";
|
|
10
12
|
import "@incodetech/core/camera";
|
|
11
13
|
//#region src/shared/permissions/camera/learnMore.tsx
|
|
12
14
|
var learnMoreInstructions = [
|
|
@@ -73,6 +75,25 @@ var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId,
|
|
|
73
75
|
});
|
|
74
76
|
};
|
|
75
77
|
//#endregion
|
|
78
|
+
//#region src/shared/permissions/camera/permissionsContext.tsx
|
|
79
|
+
var DEFAULT_PERMISSIONS_CONTEXT = { alwaysDark: false };
|
|
80
|
+
var PermissionsContext = Q(DEFAULT_PERMISSIONS_CONTEXT);
|
|
81
|
+
/**
|
|
82
|
+
* Permissions is part of the public extensibility surface, but module-specific
|
|
83
|
+
* presentation state is private. This context preserves the public Permissions
|
|
84
|
+
* props while consumers outside the provider retain the existing defaults.
|
|
85
|
+
*/
|
|
86
|
+
var PermissionsProvider = ({ value, children }) => /* @__PURE__ */ u(PermissionsContext.Provider, {
|
|
87
|
+
value: {
|
|
88
|
+
...DEFAULT_PERMISSIONS_CONTEXT,
|
|
89
|
+
...value
|
|
90
|
+
},
|
|
91
|
+
children
|
|
92
|
+
});
|
|
93
|
+
function usePermissionsContext() {
|
|
94
|
+
return x(PermissionsContext);
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
76
97
|
//#region src/shared/permissions/camera/permissionsBottomSheet.tsx
|
|
77
98
|
function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDenyButton = true, isRequestingPermissions = false, onClose }) {
|
|
78
99
|
const { t } = useTranslation();
|
|
@@ -177,11 +198,14 @@ var PermissionsDialog = ({ manager, permissionStatus, isDismissible }) => {
|
|
|
177
198
|
};
|
|
178
199
|
//#endregion
|
|
179
200
|
//#region src/shared/permissions/camera/permissions.tsx
|
|
201
|
+
var Denied = z(() => import("./denied-Cs9yuLM4.js").then((module) => ({ default: module.Denied })));
|
|
180
202
|
var Permissions = ({ manager, permissionStatus }) => {
|
|
203
|
+
const { alwaysDark } = usePermissionsContext();
|
|
181
204
|
if (permissionStatus === "checking") return null;
|
|
182
205
|
if (permissionStatus === "requesting") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
183
206
|
className: "IncodePermissionsRequestingPage",
|
|
184
207
|
presentational: true,
|
|
208
|
+
alwaysDark,
|
|
185
209
|
titleKey: "loadingCircle.holdOn",
|
|
186
210
|
subtitleKey: "loadingCircle.preparingCamera"
|
|
187
211
|
});
|
|
@@ -191,10 +215,13 @@ var Permissions = ({ manager, permissionStatus }) => {
|
|
|
191
215
|
"data-testid": "permissions",
|
|
192
216
|
"data-permission-status": "learnMore"
|
|
193
217
|
});
|
|
194
|
-
if (permissionStatus === "denied") return /* @__PURE__ */ u(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
218
|
+
if (permissionStatus === "denied") return /* @__PURE__ */ u(P, {
|
|
219
|
+
fallback: null,
|
|
220
|
+
children: /* @__PURE__ */ u(Denied, {
|
|
221
|
+
onRefresh: () => window.location.reload(),
|
|
222
|
+
"data-testid": "permissions",
|
|
223
|
+
"data-permission-status": "denied"
|
|
224
|
+
})
|
|
198
225
|
});
|
|
199
226
|
return /* @__PURE__ */ u(Page, {
|
|
200
227
|
className: "IncodePermissionsPage",
|
|
@@ -209,4 +236,4 @@ var Permissions = ({ manager, permissionStatus }) => {
|
|
|
209
236
|
});
|
|
210
237
|
};
|
|
211
238
|
//#endregion
|
|
212
|
-
export { PermissionsDialog as n, Permissions as t };
|
|
239
|
+
export { PermissionsDialog as n, PermissionsProvider as r, Permissions as t };
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { o as useTranslation } from "../uiConfig-
|
|
1
|
+
import { o as useTranslation } from "../uiConfig-Bh5WEbvy.js";
|
|
2
2
|
import { h as q, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as Spacer } from "../spacer-
|
|
5
|
-
import { x as Button } from "../icons-
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
3
|
+
import { a as withStandaloneModuleBootstrap, t as IncodeComponent, v as isTerminalModuleState, x as useManager, y as useModuleTerminalCallbacks } from "../incodeComponent-WXvcRKkM.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-CkjGrKvv.js";
|
|
5
|
+
import { x as Button } from "../icons-CSP6Tne6.js";
|
|
6
|
+
import { t as Page } from "../page-BksTT2IT.js";
|
|
7
|
+
import { t as OtpInput } from "../otpInput-DhyZLO7E.js";
|
|
8
|
+
import { t as Checkbox } from "../checkbox-BCr_W3eL.js";
|
|
9
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-B-rmar65.js";
|
|
10
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-DsWO19Nv.js";
|
|
10
11
|
import { createPhoneManager } from "@incodetech/core/phone";
|
|
11
12
|
//#region src/modules/phone/phone.tsx
|
|
12
13
|
/**
|
package/dist/phone/styles.css
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.IncodePhonePage .IncodePageContent
|
|
3
|
-
padding-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
4
|
-
padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.IncodePhoneInputContainer {
|
|
9
|
-
width: 100%;
|
|
10
|
-
max-width: var(--incode-form-max-w);
|
|
11
|
-
}
|
|
2
|
+
.IncodePhonePage .IncodePageContent{padding-top:var(--spacing-32,var(--spacing-32,32px));padding-bottom:var(--spacing-16,var(--spacing-16,16px));align-items:center}.IncodePhoneInputContainer{width:100%;max-width:var(--incode-form-max-w)}
|
package/dist/phone/styles.css.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n.IncodePhonePage .IncodePageContent
|
|
1
|
+
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n.IncodePhonePage .IncodePageContent{padding-top:var(--spacing-32,var(--spacing-32,32px));padding-bottom:var(--spacing-16,var(--spacing-16,16px));align-items:center}.IncodePhoneInputContainer{width:100%;max-width:var(--incode-form-max-w)}";
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { S as k, _ as y, c as A, f as d, h as q, i as D, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { b as ErrorIcon, r as SuccessIcon } from "./icons-CSP6Tne6.js";
|
|
3
|
+
import { t as InputComposed } from "./inputComposed-D-WVQEpg.js";
|
|
4
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
|
|
5
|
+
import { t as countryDefinitions } from "./countryDefinitions-BO9OSKQO.js";
|
|
6
|
+
import { t as DropdownComposed } from "./dropdownComposed-DMsLAeKB.js";
|
|
7
|
+
//#region src/shared/countries/countries.ts
|
|
8
|
+
var countries = Object.entries(countryDefinitions).map(([code, data]) => ({
|
|
9
|
+
code,
|
|
10
|
+
alpha3: data.alpha3,
|
|
11
|
+
emoji: data.emoji,
|
|
12
|
+
name: data.name,
|
|
13
|
+
callingCode: data.callingCode
|
|
14
|
+
})).sort((a, b) => a.name.localeCompare(b.name));
|
|
15
|
+
function getCountryByCode(code) {
|
|
16
|
+
if (!code) return void 0;
|
|
17
|
+
return countries.find((c) => c.code === code || c.code === code.toUpperCase());
|
|
18
|
+
}
|
|
19
|
+
function getCountryByCallingCode(callingCode) {
|
|
20
|
+
const normalized = callingCode.startsWith("+") ? callingCode : `+${callingCode}`;
|
|
21
|
+
return countries.find((c) => c.callingCode === normalized);
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/shared/phoneInputComposed/phoneInputComposed.tsx
|
|
25
|
+
var HARDCODED_PLACEHOLDERS = {
|
|
26
|
+
US: "(123) 456-7890",
|
|
27
|
+
CA: "(123) 456-7890"
|
|
28
|
+
};
|
|
29
|
+
var loadedRules;
|
|
30
|
+
var rulesLoad;
|
|
31
|
+
function loadPhoneNumberRules() {
|
|
32
|
+
rulesLoad ??= import("@incodetech/core/phone-number").then((rules) => {
|
|
33
|
+
loadedRules = rules;
|
|
34
|
+
return rules;
|
|
35
|
+
}, (error) => {
|
|
36
|
+
rulesLoad = void 0;
|
|
37
|
+
throw error;
|
|
38
|
+
});
|
|
39
|
+
return rulesLoad;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns the rules once loaded, and `ensureRules` to (re)start the load. A
|
|
43
|
+
* failed load is not cached, so the field retries on the next keystroke.
|
|
44
|
+
*/
|
|
45
|
+
function usePhoneNumberRules() {
|
|
46
|
+
const [rules, setRules] = d(loadedRules);
|
|
47
|
+
const mounted = A(true);
|
|
48
|
+
y(() => () => {
|
|
49
|
+
mounted.current = false;
|
|
50
|
+
}, []);
|
|
51
|
+
const ensureRules = q(() => {
|
|
52
|
+
loadPhoneNumberRules().then((loaded) => {
|
|
53
|
+
if (mounted.current) setRules(loaded);
|
|
54
|
+
}, () => void 0);
|
|
55
|
+
}, []);
|
|
56
|
+
y(() => {
|
|
57
|
+
if (!rules) ensureRules();
|
|
58
|
+
}, [rules, ensureRules]);
|
|
59
|
+
return [rules, ensureRules];
|
|
60
|
+
}
|
|
61
|
+
function getPhonePlaceholder(code, rules) {
|
|
62
|
+
return HARDCODED_PLACEHOLDERS[code] || (rules?.formatExamplePhoneNumber(code) ?? "");
|
|
63
|
+
}
|
|
64
|
+
var PhoneInputComposed = D(({ id, label, labelHint, countryCode = "US", value, placeholder, error, showFormatHintInError = false, helper, showErrorIcon, showHelperIcon, disabled = false, disableCountrySelector = false, required, onChange, formatHintBuilder, countryAriaLabelBuilder, "aria-labelledby": ariaLabelledBy, "data-testid": dataTestId, ...restProps }, ref) => {
|
|
65
|
+
const [selectedCountryCode, setSelectedCountryCode] = d(countryCode);
|
|
66
|
+
const [localPhone, setLocalPhone] = d("");
|
|
67
|
+
const initialised = A(false);
|
|
68
|
+
const formattedWithRules = A(false);
|
|
69
|
+
const [rules, ensureRules] = usePhoneNumberRules();
|
|
70
|
+
const dropdownOptions = T(() => countries.map((c) => ({
|
|
71
|
+
value: c.code,
|
|
72
|
+
label: `${c.emoji} ${c.callingCode} ${c.name}`,
|
|
73
|
+
ariaLabel: `${c.callingCode} ${c.name}`
|
|
74
|
+
})), []);
|
|
75
|
+
const selectedCountry = T(() => getCountryByCode(selectedCountryCode) ?? getCountryByCode("US"), [selectedCountryCode]);
|
|
76
|
+
const effectivePlaceholder = T(() => placeholder ?? getPhonePlaceholder(selectedCountryCode, rules), [
|
|
77
|
+
placeholder,
|
|
78
|
+
selectedCountryCode,
|
|
79
|
+
rules
|
|
80
|
+
]);
|
|
81
|
+
const formatHintId = `${id}-phone-format-hint`;
|
|
82
|
+
const formatHintText = T(() => formatHintBuilder?.(effectivePlaceholder), [formatHintBuilder, effectivePlaceholder]);
|
|
83
|
+
const formatHintTextForSr = T(() => formatHintText?.replace(/\d/g, "$& ").trim(), [formatHintText]);
|
|
84
|
+
const showStandaloneFormatHint = !error && !!formatHintText;
|
|
85
|
+
const showErrorFormatHint = showFormatHintInError && !!error && !!formatHintText;
|
|
86
|
+
y(() => {
|
|
87
|
+
if (initialised.current || !value || !selectedCountry || !rules) return;
|
|
88
|
+
initialised.current = true;
|
|
89
|
+
const parsed = rules.parsePhoneNumber(value.startsWith("+") ? value : `+${value}`);
|
|
90
|
+
if (parsed) {
|
|
91
|
+
if (parsed.country !== selectedCountryCode) setSelectedCountryCode(parsed.country);
|
|
92
|
+
formattedWithRules.current = true;
|
|
93
|
+
setLocalPhone(parsed.national);
|
|
94
|
+
}
|
|
95
|
+
}, [
|
|
96
|
+
value,
|
|
97
|
+
selectedCountry,
|
|
98
|
+
selectedCountryCode,
|
|
99
|
+
rules
|
|
100
|
+
]);
|
|
101
|
+
const validateAndNotify = q((rawDigits, country) => {
|
|
102
|
+
const digits = rawDigits.replace(/\D/g, "");
|
|
103
|
+
const full = digits ? `${country.callingCode}${digits}` : "";
|
|
104
|
+
onChange?.(full, rules?.isValidPhoneNumber(full, country.code) ?? false);
|
|
105
|
+
}, [onChange, rules]);
|
|
106
|
+
y(() => {
|
|
107
|
+
if (!rules || formattedWithRules.current) return;
|
|
108
|
+
formattedWithRules.current = true;
|
|
109
|
+
if (!localPhone) return;
|
|
110
|
+
setLocalPhone(rules.formatPhoneAsYouType(localPhone, selectedCountry.code));
|
|
111
|
+
validateAndNotify(localPhone, selectedCountry);
|
|
112
|
+
}, [
|
|
113
|
+
rules,
|
|
114
|
+
localPhone,
|
|
115
|
+
selectedCountry,
|
|
116
|
+
validateAndNotify
|
|
117
|
+
]);
|
|
118
|
+
const handleCountryChange = q((newCode) => {
|
|
119
|
+
setSelectedCountryCode(newCode);
|
|
120
|
+
const country = getCountryByCode(newCode);
|
|
121
|
+
if (country && localPhone) validateAndNotify(localPhone, country);
|
|
122
|
+
}, [localPhone, validateAndNotify]);
|
|
123
|
+
const handlePhoneInput = q((e) => {
|
|
124
|
+
const raw = e.target.value;
|
|
125
|
+
initialised.current = true;
|
|
126
|
+
if (!selectedCountry || !rules) {
|
|
127
|
+
setLocalPhone(raw);
|
|
128
|
+
if (selectedCountry) validateAndNotify(raw, selectedCountry);
|
|
129
|
+
ensureRules();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
formattedWithRules.current = true;
|
|
133
|
+
setLocalPhone(rules.formatPhoneAsYouType(raw, selectedCountry.code));
|
|
134
|
+
validateAndNotify(raw, selectedCountry);
|
|
135
|
+
}, [
|
|
136
|
+
selectedCountry,
|
|
137
|
+
validateAndNotify,
|
|
138
|
+
rules,
|
|
139
|
+
ensureRules
|
|
140
|
+
]);
|
|
141
|
+
const countryDropdownId = `${id}-country`;
|
|
142
|
+
const phoneInputId = `${id}-phone`;
|
|
143
|
+
const helperId = `${phoneInputId}-helper`;
|
|
144
|
+
const errorId = `${phoneInputId}-error`;
|
|
145
|
+
const describedByIds = [
|
|
146
|
+
showStandaloneFormatHint ? formatHintId : null,
|
|
147
|
+
helper ? helperId : null,
|
|
148
|
+
error ? errorId : null
|
|
149
|
+
].filter(Boolean).join(" ");
|
|
150
|
+
return /* @__PURE__ */ u("div", {
|
|
151
|
+
class: "IncodePhoneInputComposed",
|
|
152
|
+
children: [
|
|
153
|
+
label && /* @__PURE__ */ u("label", {
|
|
154
|
+
class: "IncodePhoneInputComposedLabel",
|
|
155
|
+
htmlFor: phoneInputId,
|
|
156
|
+
"data-testid": `${id}-label`,
|
|
157
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
158
|
+
className: "IncodePhoneInputComposedLabelHint",
|
|
159
|
+
hint: labelHint,
|
|
160
|
+
required,
|
|
161
|
+
testId: `${id}-label-hint`
|
|
162
|
+
})]
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ u(DropdownComposed, {
|
|
165
|
+
id: countryDropdownId,
|
|
166
|
+
options: dropdownOptions,
|
|
167
|
+
value: selectedCountryCode,
|
|
168
|
+
onChange: handleCountryChange,
|
|
169
|
+
disabled: disabled || disableCountrySelector,
|
|
170
|
+
required,
|
|
171
|
+
searchable: true,
|
|
172
|
+
searchPlaceholder: "Search countries...",
|
|
173
|
+
suppressMessages: true,
|
|
174
|
+
"aria-label": countryAriaLabelBuilder?.({
|
|
175
|
+
callingCode: selectedCountry.callingCode,
|
|
176
|
+
countryName: selectedCountry.name
|
|
177
|
+
}) ?? `Country code ${selectedCountry.callingCode}, ${selectedCountry.name}`,
|
|
178
|
+
renderSelectedLabel: (option) => {
|
|
179
|
+
const c = getCountryByCode(option.value);
|
|
180
|
+
return c ? `${c.emoji} ${c.callingCode}` : option.label;
|
|
181
|
+
},
|
|
182
|
+
"data-testid": `${countryDropdownId}-selector`,
|
|
183
|
+
class: "IncodePhoneInputComposedDropdown",
|
|
184
|
+
siblingElement: /* @__PURE__ */ u(InputComposed, {
|
|
185
|
+
id: phoneInputId,
|
|
186
|
+
ref,
|
|
187
|
+
type: "tel",
|
|
188
|
+
value: localPhone,
|
|
189
|
+
onInput: handlePhoneInput,
|
|
190
|
+
placeholder: effectivePlaceholder,
|
|
191
|
+
error,
|
|
192
|
+
disabled,
|
|
193
|
+
required,
|
|
194
|
+
suppressMessages: true,
|
|
195
|
+
"aria-label": !label ? "Phone number" : void 0,
|
|
196
|
+
"aria-labelledby": ariaLabelledBy,
|
|
197
|
+
"aria-describedby": describedByIds || void 0,
|
|
198
|
+
"aria-invalid": error ? "true" : void 0,
|
|
199
|
+
"data-testid": dataTestId,
|
|
200
|
+
...restProps
|
|
201
|
+
})
|
|
202
|
+
}),
|
|
203
|
+
showStandaloneFormatHint && /* @__PURE__ */ u("span", {
|
|
204
|
+
id: formatHintId,
|
|
205
|
+
class: "IncodeSrOnly",
|
|
206
|
+
"data-testid": `${id}-format-hint`,
|
|
207
|
+
children: formatHintTextForSr
|
|
208
|
+
}),
|
|
209
|
+
error && /* @__PURE__ */ u("div", {
|
|
210
|
+
class: "IncodePhoneInputComposedErrorWrapper",
|
|
211
|
+
role: "alert",
|
|
212
|
+
"data-testid": `${id}-error-wrapper`,
|
|
213
|
+
children: [showErrorIcon && /* @__PURE__ */ u("div", {
|
|
214
|
+
class: "IncodePhoneInputComposedIconWrapper",
|
|
215
|
+
children: /* @__PURE__ */ u(ErrorIcon, { size: 16 })
|
|
216
|
+
}), /* @__PURE__ */ u("p", {
|
|
217
|
+
id: errorId,
|
|
218
|
+
class: "IncodePhoneInputComposedError",
|
|
219
|
+
children: [error, showErrorFormatHint && /* @__PURE__ */ u(k, { children: [
|
|
220
|
+
" ",
|
|
221
|
+
/* @__PURE__ */ u("span", {
|
|
222
|
+
"aria-hidden": "true",
|
|
223
|
+
children: formatHintText
|
|
224
|
+
}),
|
|
225
|
+
/* @__PURE__ */ u("span", {
|
|
226
|
+
class: "IncodeSrOnly",
|
|
227
|
+
children: formatHintTextForSr
|
|
228
|
+
})
|
|
229
|
+
] })]
|
|
230
|
+
})]
|
|
231
|
+
}),
|
|
232
|
+
helper && !error && /* @__PURE__ */ u("div", {
|
|
233
|
+
class: "IncodePhoneInputComposedHelperWrapper",
|
|
234
|
+
"data-testid": `${id}-helper-wrapper`,
|
|
235
|
+
children: [showHelperIcon && /* @__PURE__ */ u("div", {
|
|
236
|
+
class: "IncodePhoneInputComposedIconWrapper",
|
|
237
|
+
children: /* @__PURE__ */ u(SuccessIcon, { size: 16 })
|
|
238
|
+
}), /* @__PURE__ */ u("p", {
|
|
239
|
+
id: helperId,
|
|
240
|
+
class: "IncodePhoneInputComposedHelper",
|
|
241
|
+
children: helper
|
|
242
|
+
})]
|
|
243
|
+
})
|
|
244
|
+
]
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
PhoneInputComposed.displayName = "PhoneInputComposed";
|
|
248
|
+
//#endregion
|
|
249
|
+
export { getCountryByCode as i, countries as n, getCountryByCallingCode as r, PhoneInputComposed as t };
|
|
@@ -1341,12 +1341,38 @@ var pl_default = {
|
|
|
1341
1341
|
"instructions": {
|
|
1342
1342
|
"allowLocation": "Zezwalaj na uprawnienia do lokalizacji",
|
|
1343
1343
|
"allowOnlyWhileUsing": "Ustaw opcję <strong>„Zezwól tylko podczas korzystania z aplikacji</strong> ” lub <strong>„Zezwól za każdym razem</strong>”",
|
|
1344
|
+
"android": {
|
|
1345
|
+
"appsBrowserPermissions": "Przejdź do sekcji „Aplikacje” → „Twoja przeglądarka” → „Uprawnienia”",
|
|
1346
|
+
"chromePermissionsLocation": "Wybierz „Uprawnienia” → „Lokalizacja” → „Zezwól”",
|
|
1347
|
+
"chromeSiteIcon": "Dotknij ikony strony po lewej stronie paska adresu",
|
|
1348
|
+
"chromeSiteSettings": "Lub dotknij trzech kropek → Ustawienia → Ustawienia witryny → Lokalizacja",
|
|
1349
|
+
"firefoxAskToAllow": "Wybierz opcję „Poproś o zezwolenie”, a następnie zezwól na tę stronę",
|
|
1350
|
+
"firefoxMenuSettings": "Naciśnij trzy kropki w prawym dolnym rogu → Ustawienia",
|
|
1351
|
+
"firefoxSitePermissions": "Wybierz opcję „Uprawnienia do lokalizacji” → „Lokalizacja”",
|
|
1352
|
+
"locationWhileUsing": "Wybierz opcję „Lokalizacja” → „Zezwól tylko podczas korzystania z aplikacji”",
|
|
1353
|
+
"openDeviceSettings": "Otwórz ustawienia urządzenia",
|
|
1354
|
+
"operaLocationAllow": "Wybierz opcję „Pytaj za każdym razem” lub „Zezwól”",
|
|
1355
|
+
"operaProfileSettings": "Kliknij ikonę swojego profilu w prawym dolnym rogu → Ustawienia",
|
|
1356
|
+
"operaSiteSettings": "Wybierz opcję „Prywatność i bezpieczeństwo” → „Ustawienia witryny” → „Lokalizacja”",
|
|
1357
|
+
"returnAndRefresh": "Wróć i naciśnij przycisk „Odśwież stronę”",
|
|
1358
|
+
"returnHereAndRefresh": "Wróć tutaj i odśwież stronę",
|
|
1359
|
+
"samsungLocationAllow": "Wybierz „Lokalizacja” → „Znajdź miejsce” → „Zezwól”",
|
|
1360
|
+
"samsungMenuSettings": "Naciśnij przycisk Menu w prawym dolnym rogu → Ustawienia",
|
|
1361
|
+
"samsungSitePermissions": "Wybierz opcję „Witryny i pliki do pobrania” → „Uprawnienia witryn”"
|
|
1362
|
+
},
|
|
1344
1363
|
"ios": {
|
|
1345
|
-
"appsChrome": "Wybierz
|
|
1346
|
-
"appsFirefox": "Wybierz
|
|
1347
|
-
"
|
|
1348
|
-
"
|
|
1349
|
-
"
|
|
1364
|
+
"appsChrome": "Wybierz Aplikacje → Chrome → Lokalizacja",
|
|
1365
|
+
"appsFirefox": "Wybierz Aplikacje → Firefox → Lokalizacja",
|
|
1366
|
+
"appsOpera": "Wybierz „Aplikacje” → „Opera” → „Lokalizacja”",
|
|
1367
|
+
"locationWhileUsing": "Wybierz podczas korzystania z aplikacji",
|
|
1368
|
+
"openSettings": "Otwórz aplikację „Ustawienia” na swoim iPhonie",
|
|
1369
|
+
"returnAndRefresh": "Wróć i naciśnij przycisk „Odśwież stronę”",
|
|
1370
|
+
"returnToChrome": "Wróć do przeglądarki Chrome i naciśnij przycisk „Odśwież stronę”",
|
|
1371
|
+
"returnToFirefox": "Wróć do przeglądarki Firefox i naciśnij przycisk „Odśwież stronę”",
|
|
1372
|
+
"returnToOpera": "Wróć do przeglądarki Opera i naciśnij przycisk „Odśwież stronę”",
|
|
1373
|
+
"safariDeviceSettings": "Jeśli strona nie wyświetli ponownego zapytania: Ustawienia → Aplikacje → Safari → Lokalizacja",
|
|
1374
|
+
"safariPageMenu": "Naciśnij menu strony po lewej stronie paska adresu",
|
|
1375
|
+
"safariWebsiteSettings": "Wybierz „Ustawienia strony internetowej” → „Lokalizacja” → „Zezwól”"
|
|
1350
1376
|
},
|
|
1351
1377
|
"locationAllow": "Kliknij <strong>„Lokalizacja” <arrow/> Zezwól</strong>",
|
|
1352
1378
|
"locationAskToAllow": "Kliknij <strong>„Lokalizacja” <arrow/> Poproś o zezwolenie</strong>",
|
|
@@ -2283,7 +2309,7 @@ var pl_default = {
|
|
|
2283
2309
|
},
|
|
2284
2310
|
"serverError": {
|
|
2285
2311
|
"message": "Serwer ma problemy. Spróbuj ponownie później ",
|
|
2286
|
-
"title": "
|
|
2312
|
+
"title": "Wystąpił błąd"
|
|
2287
2313
|
},
|
|
2288
2314
|
"sessionFinished": {
|
|
2289
2315
|
"message": "",
|
|
@@ -3109,6 +3135,7 @@ var pl_default = {
|
|
|
3109
3135
|
"invalidSessionResponse": "Nieprawidłowa odpowiedź sesji.",
|
|
3110
3136
|
"missingFlowConfiguration": "Brak konfiguracji przepływu.",
|
|
3111
3137
|
"restartLabel": "Wznowienie procesu wdrażania nowych pracowników",
|
|
3138
|
+
"sessionExpiredMessage": "Twoja sesja wygasła. Aby kontynuować, rozpocznij proces od nowa.",
|
|
3112
3139
|
"sessionInvalidMessage": "Ta sesja weryfikacyjna nie jest już dostępna. Aby kontynuować, należy rozpocząć nową sesję.",
|
|
3113
3140
|
"sessionRestartDisabledMessage": "Ta sesja weryfikacyjna została już zakończona i nie można jej ponownie otworzyć.",
|
|
3114
3141
|
"sessionUnavailableTitle": "Sesja nie jest już dostępna",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/shared/legal/policyUrls.ts
|
|
2
|
+
/** Incode's public Privacy Policy. */
|
|
3
|
+
var INCODE_PRIVACY_POLICY_URL = "https://policies.incodesmile.com/privacy-policy/";
|
|
4
|
+
/** Incode's public Terms of Use. */
|
|
5
|
+
var INCODE_TERMS_OF_USE_URL = "https://policies.incodesmile.com/terms-of-use/";
|
|
6
|
+
//#endregion
|
|
7
|
+
export { INCODE_TERMS_OF_USE_URL as n, INCODE_PRIVACY_POLICY_URL as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as TransitionSpinner } from "./transitionSpinner-t_urdfwD.js";
|
|
3
3
|
//#region src/shared/processing/processing.tsx
|
|
4
4
|
var Processing = () => {
|
|
5
5
|
return /* @__PURE__ */ u(TransitionSpinner, {});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { S as k, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { d as cn, t as Spacer } from "./spacer-CkjGrKvv.js";
|
|
3
|
+
//#region src/shared/progressBar/progressBar.tsx
|
|
4
|
+
var ProgressBar = ({ progress, label, className, labelledById, simulated = false }) => /* @__PURE__ */ u("div", {
|
|
5
|
+
class: cn("IncodeProgressBarContainer", className),
|
|
6
|
+
children: [/* @__PURE__ */ u("div", {
|
|
7
|
+
class: "IncodeProgressBar",
|
|
8
|
+
role: "progressbar",
|
|
9
|
+
"aria-valuenow": progress,
|
|
10
|
+
"aria-valuemin": 0,
|
|
11
|
+
"aria-valuemax": 100,
|
|
12
|
+
"aria-label": labelledById ? void 0 : label,
|
|
13
|
+
"aria-labelledby": labelledById,
|
|
14
|
+
children: [simulated && /* @__PURE__ */ u("div", {
|
|
15
|
+
class: "IncodeProgressBarSimulated",
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}), /* @__PURE__ */ u("div", {
|
|
18
|
+
class: "IncodeProgressBarFill",
|
|
19
|
+
style: { width: `${progress}%` }
|
|
20
|
+
})]
|
|
21
|
+
}), label ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 24 }), /* @__PURE__ */ u("p", {
|
|
22
|
+
class: "IncodeProgressBarLabel",
|
|
23
|
+
children: label
|
|
24
|
+
})] }) : null]
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ProgressBar as t };
|