@incodetech/web 2.2.0-rc.8 → 2.3.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 +398 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/af-ZA-DTqKc5t4.js +3041 -0
- package/dist/am-EGNy2cbo.js +3041 -0
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/ar-AE-Cb55U6s-.js +3057 -0
- package/dist/ar-EG-C8ucZII6.js +3057 -0
- package/dist/ar-MUpu33jy.js +3057 -0
- package/dist/assets/dm-sans-latin-400-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-500-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-600-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-700-normal.woff2 +0 -0
- package/dist/assets/rethink-sans-latin-800-normal.woff2 +0 -0
- package/dist/authentication/authentication.es.js +15 -11
- package/dist/{autoFocusTitle-DB-23sv_.js → autoFocusTitle-CIbcUW_x.js} +2 -2
- package/dist/az-DlXjPSya.js +3041 -0
- package/dist/{back-horizontal-hint-CjdigFZj.js → back-horizontal-hint-UQ7Nof6k.js} +1 -1
- package/dist/{back-vertical-hint-OhaKsINF.js → back-vertical-hint-Crc8ybfk.js} +1 -1
- package/dist/base.css +917 -283
- package/dist/baseTutorial-DkL0vjUa.js +172 -0
- package/dist/bn-BuTjJr44.js +3041 -0
- package/dist/bottomSheet-DtUFrIAG.js +101 -0
- package/dist/bs-DUzGtLhU.js +3045 -0
- package/dist/ca-B6SY43GQ.js +3041 -0
- package/dist/cameraOverlay-Dn0r4NR9.js +2 -0
- package/dist/cameraOverlayHeader-CsokPtuL.js +43 -0
- package/dist/cameraView-DrTBPNWX.js +49 -0
- package/dist/captureFooter-DWCaAdIU.js +67 -0
- package/dist/ceb-DmXy5txv.js +3041 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +19 -14
- package/dist/certificate-issuance/styles.css.js +1 -0
- package/dist/{checkbox-FGA-Ij-D.js → checkbox-D0wfscwg.js} +9 -8
- package/dist/{connectionError-BurQq_4R.js → connectionError-B61O7L3N.js} +4 -4
- package/dist/consent/consent.es.js +26 -33
- package/dist/consent/styles.css +4 -4
- package/dist/consent/styles.css.js +1 -0
- package/dist/countries-5e8kwG_m.js +8560 -0
- package/dist/{countrySelector-COZ7XQHp.js → countrySelector-C60Cdc5P.js} +8 -10
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/cs-CZ-Gn3ZmW27.js +3049 -0
- package/dist/cs-dsQ7umNS.js +3049 -0
- package/dist/curp-validation/curp-validation.es.js +15 -22
- package/dist/curp-validation/styles.css.js +1 -0
- package/dist/custom-fields/styles.css.js +1 -0
- package/dist/{customFields-rVMTo1Yu.js → customFields-BdnLB6L1.js} +44 -19
- package/dist/{customWatchlist-DgpXtVRf.js → customWatchlist-DzeHJAa3.js} +14 -11
- package/dist/da-DK-CFQaOERk.js +3041 -0
- package/dist/{dashboardTheme-BUDq5UYs.js → dashboardTheme-BwKtcRSO.js} +31 -7
- package/dist/{dateInputComposed-DSgV0wnb.js → dateInputComposed-BcmKKwRL.js} +5 -5
- package/dist/dateInputComposed-DPM6l_SL.js +1 -0
- package/dist/de-BqG02U9o.js +3041 -0
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +4 -4
- package/dist/document-capture/styles.css.js +1 -0
- package/dist/{documentCapture-sZj09g0I.js → documentCapture-CoMsW_gC.js} +16 -17
- package/dist/documentCapture-DMxz9eqT.js +2 -0
- package/dist/dropdownComposed-CXwC9j18.js +1 -0
- package/dist/{dropdownComposed-CEegNzG4.js → dropdownComposed-DYdI3B4r.js} +9 -9
- package/dist/{dynamicForms-t3vepXqJ.js → dynamic-forms/dynamic-forms.es.js} +24 -19
- package/dist/dynamic-forms/styles.css +5 -0
- package/dist/dynamic-forms/styles.css.js +1 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +15 -13
- package/dist/ekyb/styles.css.js +1 -0
- package/dist/{ekybModule-Dvkf5WAr.js → ekybModule-BRh9D01p.js} +17 -30
- package/dist/ekybModule-C5NPsc0F.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +17 -16
- package/dist/ekyc/styles.css.js +1 -0
- package/dist/{ekycModule-C5QXVGP7.js → ekycModule-Da6Bl3jg.js} +14 -29
- package/dist/ekycModule-DwKPvgA8.js +2 -0
- package/dist/el-BP_RmMeB.js +3041 -0
- package/dist/el-GR-9I2fVd-W.js +3041 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/electronic-signature/styles.css +62 -2
- package/dist/electronic-signature/styles.css.js +1 -0
- package/dist/{electronic-signature-CyE8F7LZ.js → electronic-signature-KFF7qbid.js} +65 -18
- package/dist/email/email.es.js +9 -8
- package/dist/email/styles.css.js +1 -0
- package/dist/{emailInput-CsT8_C01.js → emailInput-B_qAEKBC.js} +4 -4
- package/dist/en-DG-poeSJZ7W.js +3041 -0
- package/dist/en-DnIfMNS1.js +3041 -0
- package/dist/errorContent-CMNfCIo_.js +58 -0
- package/dist/es-2x55EFTs.js +3041 -0
- package/dist/es-419-DgAnO5DV.js +3041 -0
- package/dist/es-ES-BSnroYMU.js +3041 -0
- package/dist/es-MX-CfztSSs4.js +3041 -0
- package/dist/et-CPoI8fYI.js +3041 -0
- package/dist/{expiredId-BQ1uPh7b.js → expiredId-DJYL_--M.js} +22 -27
- package/dist/extensibility.es.js +701 -24
- package/dist/fa-IR-CVf6F8GG.js +3041 -0
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +76 -40
- package/dist/face-match/styles.css.js +1 -0
- package/dist/{faceMatch-Rf-MMdto.js → faceMatch-CwoYbKBB.js} +7 -8
- package/dist/faceMatch-DCkrehin.js +2 -0
- package/dist/fi-FI-A4oUFztt.js +3041 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/field-comparison/styles.css +12 -0
- package/dist/field-comparison/styles.css.js +1 -0
- package/dist/{fieldComparison-BnGj3nNp.js → fieldComparison-D2WI5cYb.js} +27 -11
- package/dist/fieldComparison-OwqIkMRe.js +2 -0
- package/dist/fieldLabelHint-CxjArYkQ.js +16 -0
- package/dist/{finalSuccessScreen-B9uB3bST.js → finalSuccessScreen-BtJ5o2pi.js} +13 -14
- package/dist/fiscal-qr/fiscal-qr.es.js +22 -9
- package/dist/fiscal-qr/styles.css +13 -1
- package/dist/fiscal-qr/styles.css.js +1 -0
- package/dist/{extensibility-C5XqL_A3.js → flipAnimation-Bb5FQVF-.js} +608 -1005
- package/dist/flow/flow.es.js +308 -62
- package/dist/flow/shell/styles.css +402 -0
- package/dist/flow/shell/styles.css.js +1 -0
- package/dist/flow/styles.css +582 -312
- package/dist/formField-CBwWQ7wD.js +60 -0
- package/dist/fr-CA-CI4CD8PC.js +3045 -0
- package/dist/fr-ON88Zj-c.js +3045 -0
- package/dist/{front-horizontal-hint-Bhz1rq-w.js → front-horizontal-hint-mgovnJf3.js} +1 -1
- package/dist/{front-vertical-hint-C4FC1ksx.js → front-vertical-hint-qXMVdLri.js} +1 -1
- package/dist/geolocation/geolocation.es.js +9 -9
- package/dist/geolocation/styles.css +4 -4
- package/dist/geolocation/styles.css.js +1 -0
- package/dist/government-validation/government-validation.es.js +38 -86
- package/dist/government-validation/styles.css +2 -38
- package/dist/government-validation/styles.css.js +1 -0
- package/dist/he-pbmbYdr4.js +3049 -0
- package/dist/hi-DUIfQ6FS.js +3041 -0
- package/dist/hmn-DL-aQCTc.js +3041 -0
- package/dist/{homeScreen-Bv9mUUOF.js → homeScreen-vLMuzGDq.js} +8 -7
- package/dist/hr-DfJZSVnR.js +3045 -0
- package/dist/ht-DkZi3f0t.js +3041 -0
- package/dist/hu-ClhgOpVy.js +3041 -0
- package/dist/{icons-ChHV5iHi.js → icons-eIgP34nj.js} +99 -11
- package/dist/id/id.es.js +575 -62
- package/dist/id/styles.css +114 -45
- package/dist/id/styles.css.js +1 -0
- package/dist/id-DzyWelEE.js +3035 -0
- package/dist/{id-back-of-card-C4XViC7W.js → id-back-of-card-B6EcmiCs.js} +1 -1
- package/dist/{id-back-of-card-vertical-DCz0rj8m.js → id-back-of-card-vertical-B3FXhPpj.js} +1 -1
- package/dist/{id-front-of-card-CUA1ocVF.js → id-front-of-card-V_BlLaZr.js} +1 -1
- package/dist/{id-front-of-card-vertical-Ddm_BwD3.js → id-front-of-card-vertical-CuZjL8kc.js} +1 -1
- package/dist/id-ocr/styles.css.js +1 -0
- package/dist/id-selfie-flow/id-selfie-flow.es.js +10 -9
- package/dist/id-selfie-flow/styles.css +40 -8
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Da1-2sWY.js → idOcr-C5R3RWuL.js} +13 -16
- package/dist/identity-reuse/identity-reuse.es.js +8 -113
- package/dist/identity-reuse/styles.css +1 -1
- package/dist/{incode-logo-DeIDDejm.js → incode-logo-BzJOZr3f.js} +1 -64
- package/dist/{incodeComponent-BtFz-bx2.js → incodeComponent-D3_BSWan.js} +192 -22
- package/dist/{incodeModule-9K8KUs61.js → incodeModule-BQgvYKyr.js} +3 -3
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-C2zTEXsp.js → inputComposed-CTZnsHLi.js} +9 -9
- package/dist/inputComposed-wy0-orhJ.js +1 -0
- package/dist/it-D_u7w6N4.js +3041 -0
- package/dist/ja-Drh4oAoU.js +3035 -0
- package/dist/ja-JP-Pdxq82Pi.js +3035 -0
- package/dist/jv-DFcKF0Jp.js +3035 -0
- package/dist/ka--2y3Ae63.js +3041 -0
- package/dist/kk-CAs7inco.js +3041 -0
- package/dist/km-BlxkLYfw.js +3035 -0
- package/dist/ko-B1XhW0dx.js +3035 -0
- package/dist/ko-KP-DO1TCCY3.js +3035 -0
- package/dist/ky-BN92RThU.js +3041 -0
- package/dist/lo-DPUo8xJT.js +3035 -0
- package/dist/lt-CYBwI4Sq.js +3049 -0
- package/dist/lv-eBlwWu05.js +3045 -0
- package/dist/{mandatoryConsent-CxShVycM.js → mandatoryConsent-D96_9XTp.js} +10 -7
- package/dist/manualCaptureButton-C9H2_SJS.js +63 -0
- package/dist/{manualCaptureButton-DzJFIEfu.js → manualCaptureButton-igyQk3Yb.js} +10 -55
- package/dist/mk-QMUTND8Y.js +3041 -0
- package/dist/mn-CCTUOA1D.js +3041 -0
- package/dist/{modal-BH2wi8Q0.js → modal-CmF_MYIK.js} +7 -6
- package/dist/{modal.hooks-DcakflQ4.js → modal.hooks-B0Wrc9s2.js} +7 -1
- package/dist/ms-BKJgaJfx.js +3035 -0
- package/dist/my-DyLbN8b0.js +3035 -0
- package/dist/nb-NO-TVHxhuqB.js +3041 -0
- package/dist/ne-gBLZraiK.js +3041 -0
- package/dist/nl-CrO6Mvej.js +3041 -0
- package/dist/{numberedStep-DqtXyT11.js → numberedStep-DYznpDKc.js} +1 -1
- package/dist/{optionAccessibleLabel-C5iZCrlq.js → optionAccessibleLabel-CqBUOBxK.js} +6 -6
- package/dist/{otpInput-CvPR3ZpP.js → otpInput-tEovwPs7.js} +8 -83
- package/dist/{passport-horizontal-hint-DzkhjC8Q.js → passport-horizontal-hint-6Ghn2EEN.js} +1 -1
- package/dist/{passport-vertical-hint-Bd0BQn2Y.js → passport-vertical-hint-UPFFpdf4.js} +1 -1
- package/dist/passwordInputComposed-DNlYgHHW.js +74 -0
- package/dist/{pdf-BUoY_2gv.js → pdf-CFubyG0B.js} +1 -1
- package/dist/{pdfViewer-TTZmPABh.js → pdfViewer-4u14PDPr.js} +4 -4
- package/dist/pdfViewer-e2o97yIv.js +2 -0
- package/dist/{manualCaptureButton-D58WsS-x.js → permissions-DowRodJj.js} +200 -105
- package/dist/phone/phone.es.js +10 -9
- package/dist/phone/styles.css +1 -1
- package/dist/phone/styles.css.js +1 -0
- package/dist/{phoneInputComposed-byyszNoS.js → phoneInputComposed-B6sv-uB2.js} +20 -8412
- package/dist/pl-Bde7cCcc.js +3049 -0
- package/dist/{processing-B2eaSGLu.js → processing-s6GfNwuL.js} +2 -2
- package/dist/pt-BR-DFr2fPNi.js +3041 -0
- package/dist/pt-DhDCeOLY.js +3041 -0
- package/dist/pt-PT-CpiPMuNf.js +3041 -0
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/radioGroupComposed-CJkzLiFc.js +1 -0
- package/dist/{radioGroupComposed-DQzTWutW.js → radioGroupComposed-DmoMukus.js} +15 -71
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -178
- package/dist/redirect-to-mobile/styles.css +2 -27
- package/dist/redirect-to-mobile/styles.css.js +1 -0
- package/dist/{registerIncodeElement-DW2PE_DX.js → registerIncodeElement-CbZczi4S.js} +1 -1
- package/dist/resendTimer-Cskll9rx.js +79 -0
- package/dist/{useModuleLoader-DxOEZ0vn.js → resolveApiKey-CB1_7ISm.js} +70 -222
- package/dist/{richText-CEwM8jib.js → richText-C8-Ny2SD.js} +9 -9
- package/dist/ro-B_ITJxYh.js +3045 -0
- package/dist/ru-Cg4U-rYv.js +3049 -0
- package/dist/ru-RU-fR_tbAfz.js +3049 -0
- package/dist/selfie/selfie.es.js +184 -8
- package/dist/selfie/styles.css +225 -36
- package/dist/selfie/styles.css.js +1 -0
- package/dist/signature/signature.es.js +8 -9
- package/dist/signature/styles.css.js +1 -0
- package/dist/sk-DbraxlnX.js +3049 -0
- package/dist/sl-DXgvmUsz.js +3049 -0
- package/dist/smsTabContent-Dado9q8t.js +172 -0
- package/dist/so-HI13bXme.js +3041 -0
- package/dist/{spacer-DLEDuWEx.js → spacer-ayyj5lMa.js} +10 -10
- package/dist/spinner-Z-5sEEDQ.js +88 -0
- package/dist/sr-DAb2JkvB.js +3045 -0
- package/dist/sr-Latn-DzSc6KyA.js +3045 -0
- package/dist/sr-YU-C9HskKa8.js +3045 -0
- package/dist/{statusPage-BF4qGjF3.js → statusPage-Bqz3Ci4f.js} +4 -4
- package/dist/sv-SE-B3X2fvQj.js +3041 -0
- package/dist/sw-BVL9Boua.js +3041 -0
- package/dist/{tabs-BGL1oRLb.js → tabs-B-ERCzA4.js} +2 -2
- package/dist/th-Cq87oDI8.js +3035 -0
- package/dist/th-TH-CY5gd6Bd.js +3035 -0
- package/dist/themes/dark.css +125 -0
- package/dist/themes/light.css +124 -0
- package/dist/tl-DUm9tRZ_.js +3041 -0
- package/dist/tl-PH-CNYNkY1M.js +3041 -0
- package/dist/tr-Cg3WJqb6.js +3041 -0
- package/dist/{tutorial-LQuJ4dse.js → tutorial-CHNfV-I3.js} +40 -226
- package/dist/types/certificate-issuance.d.ts +4 -4
- package/dist/types/dynamic-forms.d.ts +177 -0
- package/dist/types/extensibility.d.ts +75 -23
- package/dist/types/flow.d.ts +37 -0
- package/dist/types/government-validation.d.ts +2 -1
- package/dist/types/index.d.ts +28 -4
- package/dist/types/video-selfie.d.ts +6 -161
- package/dist/typography-ikD4-Z8S.js +53 -0
- package/dist/{uiConfig-Dqnjankd.js → uiConfig-C1jdTj-i.js} +184 -8
- package/dist/uk-C7hhE-77.js +3049 -0
- package/dist/uk-UA-DRsynQ5S.js +3049 -0
- package/dist/ur-BEX50SCe.js +3041 -0
- package/dist/useCoverMedia-VLw3OYN_.js +149 -0
- package/dist/useModuleLoader-DpcbSKBH.js +176 -0
- package/dist/uz-BYlUXaIK.js +3041 -0
- package/dist/{vendor-preact-BPXMFRom.js → vendor-preact-C0jX1Cbq.js} +68 -181
- package/dist/{verificationResult-q_zD_Pxh.js → verificationResult-B26DDXFT.js} +32 -25
- package/dist/vi-DddAM-WF.js +3035 -0
- package/dist/video-selfie/styles.css +51 -17
- package/dist/video-selfie/styles.css.js +1 -0
- package/dist/video-selfie/video-selfie.es.js +35 -23
- package/dist/watchlist/watchlist.es.js +7 -7
- package/dist/watchlist-for-business/styles.css.js +1 -0
- package/dist/{watchlistForBusiness-C_zqdY4P.js → watchlistForBusiness-o4F6Czxp.js} +28 -16
- package/dist/workflow/styles.css +1073 -356
- package/dist/workflow/workflow.es.js +17 -15
- package/dist/zh-CN-B8y9prPe.js +3035 -0
- package/dist/zh-HANT-ChrXbHBA.js +3035 -0
- package/dist/zh-TW-DrkMIR_e.js +3035 -0
- package/dist/zh-aG_wPYUs.js +3035 -0
- package/package.json +32 -22
- package/dist/bottomSheet-BWEUBq8m.js +0 -38
- package/dist/dateInputComposed-BGC37jC7.js +0 -1
- package/dist/documentCapture-CO9kIxru.js +0 -2
- package/dist/dropdownComposed-Bf4EcKFw.js +0 -1
- package/dist/ekybModule-uN0ComAn.js +0 -2
- package/dist/ekycModule-B7KRJ7l3.js +0 -2
- package/dist/faceMatch-DjD2hgBp.js +0 -2
- package/dist/fieldComparison-DFH4hUM_.js +0 -2
- package/dist/inputComposed-kKtrvJU5.js +0 -1
- package/dist/pdfViewer-C1B-07Wu.js +0 -2
- package/dist/requiredLabelHint-Dx0WS2cR.js +0 -17
- package/dist/snackbar-eBOj46AK.js +0 -16
- package/dist/spinner-CJCOHUKx.js +0 -95
- package/dist/successIcon-DS8BLsgy.js +0 -30
- package/dist/types/dynamic-forms/styles.d.ts +0 -1
- /package/dist/{aligndevicelottie-CfoZ5Uus.js → aligndevicelottie-B12hbVhG.js} +0 -0
- /package/dist/{back-tutorial-BHyRHyET.js → back-tutorial-XdmQ0Wml.js} +0 -0
- /package/dist/{backdevicelottie-yKkczgFy.js → backdevicelottie-m_DOD8xE.js} +0 -0
- /package/dist/{blurdevicelottie-8BbophdM.js → blurdevicelottie-DQo_hTMD.js} +0 -0
- /package/dist/{browser-ponyfill-CBjGwwPW.js → browser-ponyfill-ZkeBm4ji.js} +0 -0
- /package/dist/{defineProperty-BbpBna-2.js → defineProperty-BojnCa44.js} +0 -0
- /package/dist/{flip-animation-CvN8FLNc.js → flip-animation-VicedlT5.js} +0 -0
- /package/dist/{frontdevicelottie-CFcahVLk.js → frontdevicelottie-CyIerlMv.js} +0 -0
- /package/dist/{glaredevicelottie-Cnvah0kz.js → glaredevicelottie-QM2C6Ivp.js} +0 -0
- /package/dist/{id-laser-h-BaUHzX-d.js → id-laser-h-B0-iXcvl.js} +0 -0
- /package/dist/{id-laser-v-Dv9yEYJE.js → id-laser-v-Bqh6vimi.js} +0 -0
- /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-IhmAzrIF.js} +0 -0
- /package/dist/{lottie_light-Bv56F2Ae.js → lottie_light-CzZ3CHBk.js} +0 -0
- /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-61vlloJS.js} +0 -0
- /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-BRQ2QNxQ.js} +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as NumberedStep } from "./numberedStep-DqtXyT11.js";
|
|
1
|
+
import { a as Trans, o as useTranslation } from "./uiConfig-C1jdTj-i.js";
|
|
2
|
+
import { S as k, _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { _ as useIsMobileDeviceWidth, c as Page, d as TransitionSpinner } from "./incodeComponent-D3_BSWan.js";
|
|
4
|
+
import { i as TypographyH4, t as Title } from "./typography-ikD4-Z8S.js";
|
|
5
|
+
import { n as WarningIcon, x as Button } from "./icons-eIgP34nj.js";
|
|
6
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CIbcUW_x.js";
|
|
7
|
+
import { t as Modal } from "./modal-CmF_MYIK.js";
|
|
8
|
+
import { t as BottomSheet } from "./bottomSheet-DtUFrIAG.js";
|
|
9
|
+
import { t as NumberedStep } from "./numberedStep-DYznpDKc.js";
|
|
11
10
|
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
12
11
|
import "@incodetech/core/camera";
|
|
13
12
|
//#region src/shared/permissions/camera/boldWithArrow.tsx
|
|
@@ -673,6 +672,80 @@ var SvgCheckIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
|
673
672
|
})
|
|
674
673
|
});
|
|
675
674
|
//#endregion
|
|
675
|
+
//#region src/shared/permissions/assets/reload-icon.svg?react
|
|
676
|
+
var SvgReloadIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
677
|
+
width: 24,
|
|
678
|
+
height: 24,
|
|
679
|
+
viewBox: "0 0 24 24",
|
|
680
|
+
fill: "none",
|
|
681
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
682
|
+
...props,
|
|
683
|
+
children: /* @__PURE__ */ u("path", {
|
|
684
|
+
fillRule: "evenodd",
|
|
685
|
+
clipRule: "evenodd",
|
|
686
|
+
d: "M18.229 10.3584L17.156 12.1152C17.055 12.2803 16.89 12.3994 16.698 12.4483C16.635 12.4637 16.573 12.4714 16.509 12.4714C16.376 12.4714 16.245 12.4378 16.128 12.3715L14.311 11.3443C13.955 11.1418 13.835 10.7002 14.045 10.3584C14.254 10.0157 14.712 9.90048 15.073 10.103L15.333 10.2499C14.735 9.04896 13.461 8.208 12 8.208C10.784 8.208 9.645 8.78112 8.953 9.74112C8.717 10.0675 8.251 10.151 7.91 9.92352C7.569 9.69696 7.484 9.24864 7.72 8.92128C8.692 7.57344 10.292 6.768 12 6.768C14.146 6.768 16.005 8.05536 16.792 9.86496L16.936 9.62976C17.143 9.28608 17.602 9.17088 17.962 9.37344C18.319 9.57408 18.439 10.0157 18.229 10.3584ZM16.279 14.5987C15.307 15.9475 13.708 16.753 11.999 16.753C9.85 16.753 7.991 15.4666 7.205 13.6589L7.063 13.8912C6.924 14.1197 6.673 14.2464 6.416 14.2464C6.287 14.2464 6.157 14.2147 6.037 14.1475C5.68 13.9469 5.56 13.5053 5.77 13.1626L6.843 11.4058C6.944 11.2406 7.109 11.1206 7.301 11.0726C7.495 11.0246 7.699 11.0525 7.871 11.1494L9.688 12.1766C10.044 12.3782 10.164 12.8198 9.954 13.1626C9.744 13.5043 9.286 13.6195 8.926 13.4179L8.66 13.2672C9.256 14.4701 10.533 15.313 11.999 15.313C13.214 15.313 14.354 14.7398 15.044 13.7798C15.279 13.4534 15.744 13.3699 16.088 13.5974C16.429 13.823 16.514 14.2723 16.279 14.5987ZM15.974 2.64H8.027C4.721 2.64 2.5 4.67808 2.5 7.70976V15.8112C2.5 18.8429 4.721 20.88 8.027 20.88H15.974C19.28 20.88 21.5 18.8429 21.5 15.8112V7.70976C21.5 4.67808 19.28 2.64 15.974 2.64Z",
|
|
687
|
+
fill: "currentColor"
|
|
688
|
+
})
|
|
689
|
+
});
|
|
690
|
+
//#endregion
|
|
691
|
+
//#region src/shared/permissions/assets/person-card-icon.svg?react
|
|
692
|
+
var SvgPersonCardIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
693
|
+
width: 24,
|
|
694
|
+
height: 24,
|
|
695
|
+
viewBox: "0 0 24 24",
|
|
696
|
+
fill: "none",
|
|
697
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
698
|
+
...props,
|
|
699
|
+
children: [
|
|
700
|
+
/* @__PURE__ */ u("path", {
|
|
701
|
+
fillRule: "evenodd",
|
|
702
|
+
clipRule: "evenodd",
|
|
703
|
+
d: "M18.229 10.3584L17.156 12.1152C17.055 12.2803 16.89 12.3994 16.698 12.4483C16.635 12.4637 16.573 12.4714 16.509 12.4714C16.376 12.4714 16.245 12.4378 16.128 12.3715L14.311 11.3443C13.955 11.1418 13.835 10.7002 14.045 10.3584C14.254 10.0157 14.712 9.90048 15.073 10.103L15.333 10.2499C14.735 9.04896 13.461 8.208 12 8.208C10.784 8.208 9.645 8.78112 8.953 9.74112C8.717 10.0675 8.251 10.151 7.91 9.92352C7.569 9.69696 7.484 9.24864 7.72 8.92128C8.692 7.57344 10.292 6.768 12 6.768C14.146 6.768 16.005 8.05536 16.792 9.86496L16.936 9.62976C17.143 9.28608 17.602 9.17088 17.962 9.37344C18.319 9.57408 18.439 10.0157 18.229 10.3584ZM16.279 14.5987C15.307 15.9475 13.708 16.753 11.999 16.753C9.85 16.753 7.991 15.4666 7.205 13.6589L7.063 13.8912C6.924 14.1197 6.673 14.2464 6.416 14.2464C6.287 14.2464 6.157 14.2147 6.037 14.1475C5.68 13.9469 5.56 13.5053 5.77 13.1626L6.843 11.4058C6.944 11.2406 7.109 11.1206 7.301 11.0726C7.495 11.0246 7.699 11.0525 7.871 11.1494L9.688 12.1766C10.044 12.3782 10.164 12.8198 9.954 13.1626C9.744 13.5043 9.286 13.6195 8.926 13.4179L8.66 13.2672C9.256 14.4701 10.533 15.313 11.999 15.313C13.214 15.313 14.354 14.7398 15.044 13.7798C15.279 13.4534 15.744 13.3699 16.088 13.5974C16.429 13.823 16.514 14.2723 16.279 14.5987ZM15.974 2.64H8.027C4.721 2.64 2.5 4.67808 2.5 7.70976V15.8112C2.5 18.8429 4.721 20.88 8.027 20.88H15.974C19.28 20.88 21.5 18.8429 21.5 15.8112V7.70976C21.5 4.67808 19.28 2.64 15.974 2.64Z",
|
|
704
|
+
fill: "currentColor"
|
|
705
|
+
}),
|
|
706
|
+
/* @__PURE__ */ u("rect", {
|
|
707
|
+
x: 4,
|
|
708
|
+
y: 6,
|
|
709
|
+
width: 16,
|
|
710
|
+
height: 12,
|
|
711
|
+
fill: "currentColor"
|
|
712
|
+
}),
|
|
713
|
+
/* @__PURE__ */ u("path", {
|
|
714
|
+
d: "M16.868 7.1333H7.80131C7.17627 7.1333 6.66797 7.6416 6.66797 8.26664V15.0667C6.66797 15.6917 7.17627 16.2 7.80131 16.2H16.868C17.493 16.2 18.0013 15.6917 18.0013 15.0667V8.26664C18.0013 7.6416 17.493 7.1333 16.868 7.1333ZM10.4731 9.39998C11.1254 9.39998 11.6065 9.88108 11.6065 10.5333C11.6065 11.1855 11.1254 11.6667 10.4731 11.6667C9.82091 11.6667 9.33981 11.1855 9.33981 10.5333C9.33981 9.88108 9.82035 9.39998 10.4731 9.39998ZM12.5783 13.9333H8.36797V13.6698C8.36797 12.8918 9.31771 12.0917 10.4731 12.0917C11.6286 12.0917 12.5783 12.8918 12.5783 13.6698V13.9333ZM16.3013 13.3667H14.0347V12.2333H16.3013V13.3667ZM16.3013 11.1H13.468V9.96664H16.3013V11.1Z",
|
|
715
|
+
fill: "white"
|
|
716
|
+
})
|
|
717
|
+
]
|
|
718
|
+
});
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region src/shared/permissions/assets/check-v2-icon.svg?react
|
|
721
|
+
var SvgCheckV2Icon = (props) => /* @__PURE__ */ u("svg", {
|
|
722
|
+
width: 24,
|
|
723
|
+
height: 24,
|
|
724
|
+
viewBox: "0 0 24 24",
|
|
725
|
+
fill: "none",
|
|
726
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
727
|
+
...props,
|
|
728
|
+
children: [
|
|
729
|
+
/* @__PURE__ */ u("path", {
|
|
730
|
+
fillRule: "evenodd",
|
|
731
|
+
clipRule: "evenodd",
|
|
732
|
+
d: "M18.229 10.3584L17.156 12.1152C17.055 12.2803 16.89 12.3994 16.698 12.4483C16.635 12.4637 16.573 12.4714 16.509 12.4714C16.376 12.4714 16.245 12.4378 16.128 12.3715L14.311 11.3443C13.955 11.1418 13.835 10.7002 14.045 10.3584C14.254 10.0157 14.712 9.90048 15.073 10.103L15.333 10.2499C14.735 9.04896 13.461 8.208 12 8.208C10.784 8.208 9.645 8.78112 8.953 9.74112C8.717 10.0675 8.251 10.151 7.91 9.92352C7.569 9.69696 7.484 9.24864 7.72 8.92128C8.692 7.57344 10.292 6.768 12 6.768C14.146 6.768 16.005 8.05536 16.792 9.86496L16.936 9.62976C17.143 9.28608 17.602 9.17088 17.962 9.37344C18.319 9.57408 18.439 10.0157 18.229 10.3584ZM16.279 14.5987C15.307 15.9475 13.708 16.753 11.999 16.753C9.85 16.753 7.991 15.4666 7.205 13.6589L7.063 13.8912C6.924 14.1197 6.673 14.2464 6.416 14.2464C6.287 14.2464 6.157 14.2147 6.037 14.1475C5.68 13.9469 5.56 13.5053 5.77 13.1626L6.843 11.4058C6.944 11.2406 7.109 11.1206 7.301 11.0726C7.495 11.0246 7.699 11.0525 7.871 11.1494L9.688 12.1766C10.044 12.3782 10.164 12.8198 9.954 13.1626C9.744 13.5043 9.286 13.6195 8.926 13.4179L8.66 13.2672C9.256 14.4701 10.533 15.313 11.999 15.313C13.214 15.313 14.354 14.7398 15.044 13.7798C15.279 13.4534 15.744 13.3699 16.088 13.5974C16.429 13.823 16.514 14.2723 16.279 14.5987ZM15.974 2.64H8.027C4.721 2.64 2.5 4.67808 2.5 7.70976V15.8112C2.5 18.8429 4.721 20.88 8.027 20.88H15.974C19.28 20.88 21.5 18.8429 21.5 15.8112V7.70976C21.5 4.67808 19.28 2.64 15.974 2.64Z",
|
|
733
|
+
fill: "currentColor"
|
|
734
|
+
}),
|
|
735
|
+
/* @__PURE__ */ u("rect", {
|
|
736
|
+
x: 4,
|
|
737
|
+
y: 6,
|
|
738
|
+
width: 16,
|
|
739
|
+
height: 12,
|
|
740
|
+
fill: "currentColor"
|
|
741
|
+
}),
|
|
742
|
+
/* @__PURE__ */ u("path", {
|
|
743
|
+
d: "M12 7C9.24 7 7 9.24 7 12C7 14.76 9.24 17 12 17C14.76 17 17 14.76 17 12C17 9.24 14.76 7 12 7ZM11 14.5L8.5 12L9.205 11.295L11 13.085L14.795 9.29L15.5 10L11 14.5Z",
|
|
744
|
+
fill: "white"
|
|
745
|
+
})
|
|
746
|
+
]
|
|
747
|
+
});
|
|
748
|
+
//#endregion
|
|
676
749
|
//#region src/shared/permissions/assets/samsung-internet-icon.svg?react
|
|
677
750
|
var SvgSamsungInternetIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
678
751
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1747,6 +1820,33 @@ var DENIED_MOBILE_STEPS_PER_BROWSER_LOOKUP = {
|
|
|
1747
1820
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1748
1821
|
}
|
|
1749
1822
|
],
|
|
1823
|
+
miui_browser: [
|
|
1824
|
+
{
|
|
1825
|
+
uuid: "1",
|
|
1826
|
+
icon: SvgAndroidDotsIcon,
|
|
1827
|
+
instructionKey: "tap",
|
|
1828
|
+
boldKey: "idv2.permissions.denied.dots",
|
|
1829
|
+
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
uuid: "2",
|
|
1833
|
+
icon: SvgAndroidSettingsIcon,
|
|
1834
|
+
instructionKey: "tap",
|
|
1835
|
+
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
uuid: "3",
|
|
1839
|
+
icon: SvgAndroidToggleIcon,
|
|
1840
|
+
instructionKey: "tap",
|
|
1841
|
+
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
uuid: "4",
|
|
1845
|
+
icon: SvgChromeIcon,
|
|
1846
|
+
instructionKey: "returnPress",
|
|
1847
|
+
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1848
|
+
}
|
|
1849
|
+
],
|
|
1750
1850
|
samsung_browser: [
|
|
1751
1851
|
{
|
|
1752
1852
|
uuid: "1",
|
|
@@ -1853,6 +1953,20 @@ function DeniedMobileAdditionalText({ labelKey, boldLabelKey }) {
|
|
|
1853
1953
|
}
|
|
1854
1954
|
//#endregion
|
|
1855
1955
|
//#region src/shared/permissions/camera/deniedDesktop.tsx
|
|
1956
|
+
/**
|
|
1957
|
+
* Browsers that have their own desktop recovery copy upstream. Anything else
|
|
1958
|
+
* (Edge, Samsung Internet, unrecognised browsers) is Chromium in practice and
|
|
1959
|
+
* follows the same site-icon → Camera → Allow → refresh flow, so it borrows
|
|
1960
|
+
* Chrome's steps. Without the fallback, i18next start-cases the absent keys and
|
|
1961
|
+
* the screen reads "First Step", "Second Step", …
|
|
1962
|
+
*/
|
|
1963
|
+
var BROWSERS_WITH_DESKTOP_STEPS = new Set([
|
|
1964
|
+
"chrome",
|
|
1965
|
+
"firefox",
|
|
1966
|
+
"safari",
|
|
1967
|
+
"opera"
|
|
1968
|
+
]);
|
|
1969
|
+
var resolveStepsBrowser = (browser) => BROWSERS_WITH_DESKTOP_STEPS.has(browser) ? browser : "chrome";
|
|
1856
1970
|
var getStepKeys = (browser) => {
|
|
1857
1971
|
const baseKeys = [
|
|
1858
1972
|
`idv2.permissions.denied.${browser}.firstStep`,
|
|
@@ -1873,7 +1987,7 @@ var renderStepText = (t, stepKey) => {
|
|
|
1873
1987
|
};
|
|
1874
1988
|
var DeniedDesktop = () => {
|
|
1875
1989
|
const { t } = useTranslation();
|
|
1876
|
-
const stepKeys = getStepKeys(getBrowser());
|
|
1990
|
+
const stepKeys = getStepKeys(resolveStepsBrowser(getBrowser()));
|
|
1877
1991
|
return /* @__PURE__ */ u("div", {
|
|
1878
1992
|
class: "IncodeDeniedInstructionsContainer",
|
|
1879
1993
|
"data-testid": "denied-instructions-desktop",
|
|
@@ -1962,7 +2076,7 @@ var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId,
|
|
|
1962
2076
|
class: "IncodeLearnMoreContainer",
|
|
1963
2077
|
children: [/* @__PURE__ */ u("div", {
|
|
1964
2078
|
class: "IncodeLearnMoreTitleContainer",
|
|
1965
|
-
children: [/* @__PURE__ */ u(WarningIcon, { size:
|
|
2079
|
+
children: [/* @__PURE__ */ u(WarningIcon, { size: 32 }), /* @__PURE__ */ u(Title, {
|
|
1966
2080
|
ref: titleRef,
|
|
1967
2081
|
tabIndex: -1,
|
|
1968
2082
|
children: t("idv2.permissions.learnMorePage.title")
|
|
@@ -1997,24 +2111,20 @@ var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId,
|
|
|
1997
2111
|
};
|
|
1998
2112
|
//#endregion
|
|
1999
2113
|
//#region src/shared/permissions/camera/permissionsBottomSheet.tsx
|
|
2000
|
-
function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDenyButton = true }) {
|
|
2114
|
+
function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDenyButton = true, isRequestingPermissions = false, onClose }) {
|
|
2001
2115
|
const { t } = useTranslation();
|
|
2002
|
-
const titleRef = A(null);
|
|
2003
|
-
y(() => {
|
|
2004
|
-
titleRef.current?.focus();
|
|
2005
|
-
}, []);
|
|
2006
2116
|
return /* @__PURE__ */ u(BottomSheet, {
|
|
2007
2117
|
isOpen: true,
|
|
2008
2118
|
labelledById: "permissions-dialog-title",
|
|
2119
|
+
manageInitialFocus: false,
|
|
2120
|
+
onClose,
|
|
2009
2121
|
children: /* @__PURE__ */ u("div", {
|
|
2010
2122
|
className: "IncodePermissionsBottomSheet",
|
|
2011
2123
|
children: [/* @__PURE__ */ u("div", {
|
|
2012
2124
|
class: "IncodePermissionsBottomSheetTitleContainer",
|
|
2013
|
-
children: [/* @__PURE__ */ u(
|
|
2125
|
+
children: [/* @__PURE__ */ u(AutoFocusTitle, {
|
|
2014
2126
|
id: "permissions-dialog-title",
|
|
2015
2127
|
className: "IncodePermissionsBottomSheetTitle",
|
|
2016
|
-
ref: titleRef,
|
|
2017
|
-
tabIndex: -1,
|
|
2018
2128
|
children: t("idv2.permissions.allowPermissionsV2")
|
|
2019
2129
|
}), /* @__PURE__ */ u("p", {
|
|
2020
2130
|
className: "IncodePermissionsBottomSheetSubtitle",
|
|
@@ -2025,9 +2135,12 @@ function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDen
|
|
|
2025
2135
|
children: [showDenyButton && /* @__PURE__ */ u(Button, {
|
|
2026
2136
|
variant: "secondary",
|
|
2027
2137
|
onClick: onDenyPermissions,
|
|
2138
|
+
disabled: isRequestingPermissions,
|
|
2028
2139
|
children: t("idv2.permissions.dontAllow")
|
|
2029
2140
|
}), /* @__PURE__ */ u(Button, {
|
|
2030
2141
|
onClick: onAllowPermissions,
|
|
2142
|
+
disabled: isRequestingPermissions,
|
|
2143
|
+
isLoading: isRequestingPermissions,
|
|
2031
2144
|
children: t("idv2.permissions.allowV2")
|
|
2032
2145
|
})]
|
|
2033
2146
|
})]
|
|
@@ -2035,34 +2148,51 @@ function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDen
|
|
|
2035
2148
|
});
|
|
2036
2149
|
}
|
|
2037
2150
|
//#endregion
|
|
2038
|
-
//#region src/shared/permissions/camera/
|
|
2039
|
-
|
|
2151
|
+
//#region src/shared/permissions/camera/permissionsDialog.tsx
|
|
2152
|
+
function createHandlers(manager, canDismiss) {
|
|
2153
|
+
if (!canDismiss) return {
|
|
2154
|
+
handleDismiss: void 0,
|
|
2155
|
+
handleOpenChange: void 0,
|
|
2156
|
+
handleClose: manager.close
|
|
2157
|
+
};
|
|
2158
|
+
const handleDismiss = () => {
|
|
2159
|
+
manager.back?.();
|
|
2160
|
+
};
|
|
2161
|
+
const handleOpenChange = (open) => {
|
|
2162
|
+
if (open) return;
|
|
2163
|
+
manager.back?.();
|
|
2164
|
+
};
|
|
2165
|
+
return {
|
|
2166
|
+
handleDismiss,
|
|
2167
|
+
handleOpenChange,
|
|
2168
|
+
handleClose: void 0
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
var PermissionsDialog = ({ manager, permissionStatus, isDismissible }) => {
|
|
2040
2172
|
const isMobileWidth = useIsMobileDeviceWidth();
|
|
2041
2173
|
const { t } = useTranslation();
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
if (permissionStatus === "learnMore") return /* @__PURE__ */ u(LearnMore, {
|
|
2174
|
+
const isMotionOnly = permissionStatus === "motionOnly";
|
|
2175
|
+
const isRequestingPermissions = permissionStatus === "requesting";
|
|
2176
|
+
const canDismiss = Boolean(isDismissible) && !isRequestingPermissions;
|
|
2177
|
+
const dismissible = !isRequestingPermissions;
|
|
2178
|
+
const { handleDismiss, handleOpenChange, handleClose } = createHandlers(manager, canDismiss);
|
|
2179
|
+
if (isMobileWidth) return /* @__PURE__ */ u(PermissionsBottomSheet, {
|
|
2180
|
+
showDenyButton: !isMotionOnly,
|
|
2050
2181
|
onAllowPermissions: () => manager.requestPermission(),
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2182
|
+
onDenyPermissions: () => manager.goToLearnMore(),
|
|
2183
|
+
isRequestingPermissions,
|
|
2184
|
+
onClose: handleDismiss
|
|
2054
2185
|
});
|
|
2055
|
-
|
|
2056
|
-
onRefresh: () => window.location.reload(),
|
|
2057
|
-
"data-testid": "permissions",
|
|
2058
|
-
"data-permission-status": "denied"
|
|
2059
|
-
});
|
|
2060
|
-
const isMotionOnly = permissionStatus === "motionOnly";
|
|
2061
|
-
let ModalComponent = null;
|
|
2062
|
-
if (!isMobileWidth) ModalComponent = /* @__PURE__ */ u(Modal.Root, {
|
|
2186
|
+
return /* @__PURE__ */ u(Modal.Root, {
|
|
2063
2187
|
open: true,
|
|
2188
|
+
dismissible,
|
|
2189
|
+
onOpenChange: handleOpenChange,
|
|
2064
2190
|
children: /* @__PURE__ */ u(Modal.Content, { children: [
|
|
2065
|
-
/* @__PURE__ */ u(Modal.Close, {
|
|
2191
|
+
/* @__PURE__ */ u(Modal.Close, {
|
|
2192
|
+
"aria-label": t("common.close"),
|
|
2193
|
+
title: t("common.close"),
|
|
2194
|
+
onClick: handleClose
|
|
2195
|
+
}),
|
|
2066
2196
|
/* @__PURE__ */ u(Modal.TitleSection, { children: [/* @__PURE__ */ u(Modal.Title, {
|
|
2067
2197
|
class: "IncodePermissionsModalTitle",
|
|
2068
2198
|
children: t("idv2.permissions.allowPermissionsV2")
|
|
@@ -2070,18 +2200,38 @@ var Permissions = ({ manager, permissionStatus }) => {
|
|
|
2070
2200
|
/* @__PURE__ */ u(Modal.Actions, { children: [!isMotionOnly && /* @__PURE__ */ u(Button, {
|
|
2071
2201
|
variant: "secondary",
|
|
2072
2202
|
onClick: manager.goToLearnMore,
|
|
2203
|
+
disabled: isRequestingPermissions,
|
|
2073
2204
|
children: t("idv2.permissions.dontAllow")
|
|
2074
2205
|
}), /* @__PURE__ */ u(Button, {
|
|
2075
2206
|
variant: "primary",
|
|
2076
2207
|
onClick: manager.requestPermission,
|
|
2208
|
+
disabled: isRequestingPermissions,
|
|
2209
|
+
isLoading: isRequestingPermissions,
|
|
2077
2210
|
children: t("idv2.permissions.allowV2")
|
|
2078
2211
|
})] })
|
|
2079
2212
|
] })
|
|
2080
2213
|
});
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2214
|
+
};
|
|
2215
|
+
//#endregion
|
|
2216
|
+
//#region src/shared/permissions/camera/permissions.tsx
|
|
2217
|
+
var Permissions = ({ manager, permissionStatus }) => {
|
|
2218
|
+
if (permissionStatus === "checking") return null;
|
|
2219
|
+
if (permissionStatus === "requesting") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
2220
|
+
className: "IncodePermissionsRequestingPage",
|
|
2221
|
+
presentational: true,
|
|
2222
|
+
titleKey: "loadingCircle.holdOn",
|
|
2223
|
+
subtitleKey: "loadingCircle.preparingCamera"
|
|
2224
|
+
});
|
|
2225
|
+
if (permissionStatus === "learnMore") return /* @__PURE__ */ u(LearnMore, {
|
|
2226
|
+
onAllowPermissions: () => manager.requestPermission(),
|
|
2227
|
+
onQuitProcess: () => manager.close(),
|
|
2228
|
+
"data-testid": "permissions",
|
|
2229
|
+
"data-permission-status": "learnMore"
|
|
2230
|
+
});
|
|
2231
|
+
if (permissionStatus === "denied") return /* @__PURE__ */ u(Denied, {
|
|
2232
|
+
onRefresh: () => window.location.reload(),
|
|
2233
|
+
"data-testid": "permissions",
|
|
2234
|
+
"data-permission-status": "denied"
|
|
2085
2235
|
});
|
|
2086
2236
|
return /* @__PURE__ */ u(Page, {
|
|
2087
2237
|
className: "IncodePermissionsPage",
|
|
@@ -2089,66 +2239,11 @@ var Permissions = ({ manager, permissionStatus }) => {
|
|
|
2089
2239
|
hideFooterBranding: true,
|
|
2090
2240
|
"data-testid": "permissions",
|
|
2091
2241
|
"data-permission-status": permissionStatus,
|
|
2092
|
-
children:
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
//#endregion
|
|
2096
|
-
//#region src/modules/selfie/cameraButton.tsx
|
|
2097
|
-
var CameraButton = () => {
|
|
2098
|
-
return /* @__PURE__ */ u("div", {
|
|
2099
|
-
class: "IncodeCameraButton",
|
|
2100
|
-
children: /* @__PURE__ */ u("svg", {
|
|
2101
|
-
width: "64",
|
|
2102
|
-
height: "64",
|
|
2103
|
-
viewBox: "0 0 64 64",
|
|
2104
|
-
fill: "none",
|
|
2105
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2106
|
-
"aria-hidden": "true",
|
|
2107
|
-
children: [
|
|
2108
|
-
/* @__PURE__ */ u("circle", {
|
|
2109
|
-
cx: "32",
|
|
2110
|
-
cy: "32",
|
|
2111
|
-
r: "32",
|
|
2112
|
-
class: "IncodeCameraButtonBackground"
|
|
2113
|
-
}),
|
|
2114
|
-
/* @__PURE__ */ u("path", {
|
|
2115
|
-
d: "M55.5874 31.8191C55.5872 18.6938 44.9464 8.0537 31.821 8.0537C18.6958 8.05385 8.05581 18.6939 8.05566 31.8191C8.05566 44.9444 18.6958 55.5853 31.821 55.5854C44.9465 55.5854 55.5874 44.9445 55.5874 31.8191ZM57.5566 31.8191C57.5566 46.0321 46.034 57.5547 31.821 57.5547C17.6082 57.5545 6.08643 46.032 6.08643 31.8191C6.08657 17.6063 17.6083 6.08462 31.821 6.08447C46.0339 6.08447 57.5565 17.6062 57.5566 31.8191Z",
|
|
2116
|
-
class: "IncodeCameraButtonRing"
|
|
2117
|
-
}),
|
|
2118
|
-
/* @__PURE__ */ u("path", {
|
|
2119
|
-
d: "M35.5186 20.6768C36.887 20.677 37.995 21.777 37.9951 23.1338V24.1045H41.4766C43.0397 24.1052 44.3074 25.3626 44.3076 26.9131V38.5459C44.3076 40.0966 43.0398 41.3535 41.4766 41.3535H21.5381C19.975 41.3533 18.7081 40.0965 18.708 38.5459V26.9131C18.7083 25.3627 19.9751 24.1057 21.5381 24.1055H25.0205V23.1338C25.0206 21.7769 26.1285 20.6768 27.4971 20.6768H35.5186ZM31.5068 26.5273C28.0604 26.5273 25.2559 29.309 25.2559 32.7285C25.2559 36.148 28.0604 38.9297 31.5068 38.9297C34.954 38.9297 37.7588 36.148 37.7588 32.7285C37.7588 29.309 34.954 26.5274 31.5068 26.5273ZM31.5068 28.6348C33.7835 28.6348 35.6357 30.4728 35.6357 32.7305C35.6356 34.9887 33.7833 36.8252 31.5068 36.8252C29.2303 36.8252 27.3791 34.9887 27.3789 32.7305C27.3789 30.4721 29.2302 28.6348 31.5068 28.6348Z",
|
|
2120
|
-
class: "IncodeCameraButtonPath"
|
|
2121
|
-
})
|
|
2122
|
-
]
|
|
2242
|
+
children: /* @__PURE__ */ u(PermissionsDialog, {
|
|
2243
|
+
manager,
|
|
2244
|
+
permissionStatus
|
|
2123
2245
|
})
|
|
2124
2246
|
});
|
|
2125
2247
|
};
|
|
2126
2248
|
//#endregion
|
|
2127
|
-
|
|
2128
|
-
var ManualCaptureButton = D(({ onClick, disabled }, ref) => {
|
|
2129
|
-
const { t } = useTranslation();
|
|
2130
|
-
return /* @__PURE__ */ u("div", {
|
|
2131
|
-
class: "IncodeSelfieManualCapture",
|
|
2132
|
-
"data-testid": "manual-capture-button",
|
|
2133
|
-
children: [
|
|
2134
|
-
/* @__PURE__ */ u("p", {
|
|
2135
|
-
id: "manual-capture-instructions",
|
|
2136
|
-
class: "IncodeSelfieManualCaptureText",
|
|
2137
|
-
children: t("selfiev2.manualCapture.instructions")
|
|
2138
|
-
}),
|
|
2139
|
-
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
2140
|
-
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(Button, {
|
|
2141
|
-
ref,
|
|
2142
|
-
id: "manual-capture-button",
|
|
2143
|
-
variant: "link",
|
|
2144
|
-
onClick,
|
|
2145
|
-
disabled,
|
|
2146
|
-
class: "IncodeSelfieManualCaptureButton",
|
|
2147
|
-
"aria-label": t("selfiev2.manualCapture.captureButton"),
|
|
2148
|
-
children: /* @__PURE__ */ u(CameraButton, {})
|
|
2149
|
-
}) })
|
|
2150
|
-
]
|
|
2151
|
-
});
|
|
2152
|
-
});
|
|
2153
|
-
//#endregion
|
|
2154
|
-
export { Permissions as n, ManualCaptureButton as t };
|
|
2249
|
+
export { SvgReloadIcon as a, SvgPersonCardIcon as i, PermissionsDialog as n, SvgCheckV2Icon as r, Permissions as t };
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as Spacer } from "../spacer-
|
|
5
|
-
import {
|
|
6
|
-
import { t as OtpInput } from "../otpInput-
|
|
7
|
-
import { t as Checkbox } from "../checkbox-
|
|
8
|
-
import { t as PhoneInputComposed } from "../phoneInputComposed-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
1
|
+
import { o as useTranslation } from "../uiConfig-C1jdTj-i.js";
|
|
2
|
+
import { h as q, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, y as isTerminalModuleState } from "../incodeComponent-D3_BSWan.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-ayyj5lMa.js";
|
|
5
|
+
import { x as Button } from "../icons-eIgP34nj.js";
|
|
6
|
+
import { t as OtpInput } from "../otpInput-tEovwPs7.js";
|
|
7
|
+
import { t as Checkbox } from "../checkbox-D0wfscwg.js";
|
|
8
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-B6sv-uB2.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BQgvYKyr.js";
|
|
10
10
|
import { createPhoneManager } from "@incodetech/core/phone";
|
|
11
11
|
//#region src/modules/phone/phone.tsx
|
|
12
12
|
/**
|
|
@@ -134,6 +134,7 @@ var PhoneContent = ({ config, manager: externalManager, onFinish, onError }) =>
|
|
|
134
134
|
children: [
|
|
135
135
|
/* @__PURE__ */ u(PhoneInputComposed, {
|
|
136
136
|
id: "phone",
|
|
137
|
+
label: t("verification.labels.phone"),
|
|
137
138
|
countryCode,
|
|
138
139
|
value: prefilledPhone,
|
|
139
140
|
error: phoneError,
|
package/dist/phone/styles.css
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n.IncodePhonePage .IncodePageContent {\n padding-top: var(--spacing-32, var(--spacing-32, 32px));\n padding-bottom: var(--spacing-16, var(--spacing-16, 16px));\n align-items: center;\n}\n\n.IncodePhoneInputContainer {\n width: 100%;\n max-width: var(--incode-form-max-w);\n}\n";
|