@incodetech/web 2.1.0-rc.1 → 2.1.0-rc.3
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/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/ae-signature/styles.css +59 -45
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/authentication/authentication.es.js +5 -4
- package/dist/{autoFocusTitle-BzkUiELM.js → autoFocusTitle-CuRu2lPg.js} +1 -1
- package/dist/base.css +100 -60
- package/dist/{bottomSheet-F1GJfQx_.js → bottomSheet-CnWbbUAM.js} +1 -1
- package/dist/{button-CM_hgyIP.js → button-Dz6AsbmF.js} +7 -2
- package/dist/cameraView-DIEzM5ru.js +47 -0
- package/dist/{tutorial-D1qaY2Tm.js → capture-CkGvdDNH.js} +23 -573
- package/dist/certificate-issuance/certificate-issuance.es.js +249 -0
- package/dist/certificate-issuance/styles.css +114 -0
- package/dist/{checkbox-BoeLHKgp.js → checkbox-1wUHSoaK.js} +2 -2
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countrySelector-mSWyHSy4.js → countrySelector-SvUOyPo0.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/cpfOcr-B79245-3.js +2 -0
- package/dist/{cpfOcr-MtpRztkG.js → cpfOcr-BhxT-lRN.js} +7 -7
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +17 -17
- package/dist/{customFields-DXXt9HGM.js → customFields-BDsXR7A-.js} +11 -11
- package/dist/{customWatchlist-DsW04UF6.js → customWatchlist-CYoRNCim.js} +6 -6
- package/dist/dateInputComposed-DRzZi6uy.js +1 -0
- package/dist/{dateInputComposed-C_mh4XBg.js → dateInputComposed-DuaofcBl.js} +3 -3
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DXYYyxZl.js +2 -0
- package/dist/{documentCapture-BDV_921m.js → documentCapture-DhbO-A-V.js} +15 -13
- package/dist/dropdownComposed-BAoxIIsE.js +1 -0
- package/dist/{dropdownComposed-_fgAlo_C.js → dropdownComposed-CoU0enG6.js} +9 -10
- package/dist/{dynamicForms-DyfnsS7E.js → dynamicForms-BifGbC9F.js} +24 -13
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-C6Nttked.js +2 -0
- package/dist/{ekybModule-CIPGmCvD.js → ekybModule-DGnTw5UV.js} +15 -15
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CDIEjI6V.js +2 -0
- package/dist/{ekycModule-BuTaC5ct.js → ekycModule-Dxpdd0ns.js} +14 -14
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-B-Q7M0wK.js → electronic-signature-Ueoffasr.js} +42 -31
- package/dist/email/email.es.js +8 -8
- package/dist/{emailInput-KZmhjOdZ.js → emailInput-DsLkDtER.js} +6 -6
- package/dist/{expiredId-Q1t6aVpk.js → expiredId-BZXLrLk-.js} +6 -6
- package/dist/{extensibility-Cs3KQQdC.js → extensibility-7sRIN0JC.js} +54 -89
- package/dist/extensibility.es.js +25 -23
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/faceMatch-B_HvxLm_.js +2 -0
- package/dist/{faceMatch--RDHJe4t.js → faceMatch-DyTBoMDm.js} +10 -10
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-DfNEuEE5.js +2 -0
- package/dist/{fieldComparison-CAF86bTC.js → fieldComparison-L_knHqgw.js} +9 -9
- package/dist/fiscal-qr/fiscal-qr.es.js +9 -8
- package/dist/flow/flow.es.js +35 -12
- package/dist/flow/styles.css +4242 -2972
- package/dist/geolocation/geolocation.es.js +190 -326
- package/dist/geolocation/styles.css +8 -0
- package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +12 -16
- package/dist/{homeScreen-BZnIEDrV.js → homeScreen-B6T0JVh8.js} +5 -5
- package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
- package/dist/{i18n-CoCO2ZuN.js → i18n-CU4xq8qC.js} +1 -1
- package/dist/{icons-Dbs9ZfYM.js → icons-CJJbIpBq.js} +2 -2
- package/dist/id/id.es.js +80 -50
- package/dist/id/styles.css +1 -9
- package/dist/id-ocr/styles.css +12 -2
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-CjGbb4dB.js → idOcr-WFBvqy3b.js} +34 -16
- package/dist/identity-reuse/identity-reuse.es.js +7 -7
- package/dist/{incodeComponent-wfnHlnXx.js → incodeComponent-CfzJGETt.js} +3 -2
- package/dist/{incodeModule-BUDoTwT9.js → incodeModule-B-4_3JrK.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/inputComposed-BaY5q9WM.js +1 -0
- package/dist/{inputComposed-CQ4AsvZg.js → inputComposed-C1R2LAa3.js} +3 -3
- package/dist/{mandatoryConsent-r0PQHmv-.js → mandatoryConsent-D0GTKu-H.js} +10 -10
- package/dist/{modal-nTSaG7nB.js → modal-OxkFuuiR.js} +2 -2
- package/dist/{optionAccessibleLabel-CnA-mNAU.js → optionAccessibleLabel-gfF-58Mv.js} +5 -5
- package/dist/{otpInput-_JmtVwa0.js → otpInput-CnDc6pQm.js} +14 -13
- package/dist/{verifiedByIncode-DjXOdCml.js → page-DidH_RkX.js} +70 -2
- package/dist/{pdf-BZA70WbM.js → pdf-BqtJTlor.js} +1 -1
- package/dist/{pdfViewer-BK-yVIve.js → pdfViewer-B97DmT9m.js} +57 -20
- package/dist/phone/phone.es.js +9 -9
- package/dist/{phoneInputComposed-DjNdsmPE.js → phoneInputComposed-DMiXfF-1.js} +5 -5
- package/dist/{processing-BM-wT-1W.js → processing-BeUMfdJJ.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{radioGroupComposed-BNuaopVr.js → radioGroupComposed-DuQxslB2.js} +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +36 -32
- package/dist/redirect-to-mobile/styles.css +3 -2
- package/dist/{richText-Cf9aMOCk.js → richText-CB1fmegc.js} +1 -1
- package/dist/selfie/selfie.es.js +8 -7
- package/dist/selfie/styles.css +133 -63
- package/dist/signature/signature.es.js +9 -9
- package/dist/spinner-BCDCoi9C.js +1 -0
- package/dist/{spinner-D8a_2LvW.js → spinner-BMeIEK1d.js} +18 -6
- package/dist/{statusPage-DMYPUwRZ.js → statusPage-Bk8nJwXV.js} +2 -2
- package/dist/themes/dark.css +24 -2
- package/dist/themes/light.css +24 -2
- package/dist/{transitionSpinner-DRRz-NV8.js → transitionSpinner-CuNCqHNi.js} +12 -8
- package/dist/tutorial-CCfPuVKX.js +706 -0
- package/dist/types/ae-signature.d.ts +23 -1
- package/dist/types/antifraud.d.ts +23 -1
- package/dist/types/authentication.d.ts +23 -1
- package/dist/types/certificate-issuance.d.ts +68 -0
- package/dist/types/consent.d.ts +23 -1
- package/dist/types/cross-document-data-match.d.ts +23 -1
- package/dist/types/curp-validation.d.ts +23 -1
- package/dist/types/document-capture.d.ts +23 -1
- package/dist/types/ekyb.d.ts +23 -1
- package/dist/types/ekyc.d.ts +23 -1
- package/dist/types/electronic-signature.d.ts +23 -1
- package/dist/types/email.d.ts +23 -1
- package/dist/types/extensibility.d.ts +40 -3
- package/dist/types/face-match.d.ts +23 -1
- package/dist/types/field-comparison.d.ts +23 -1
- package/dist/types/fiscal-qr.d.ts +23 -1
- package/dist/types/flow.d.ts +23 -1
- package/dist/types/geolocation.d.ts +27 -2
- package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
- package/dist/types/id-verification.d.ts +23 -1
- package/dist/types/id.d.ts +23 -1
- package/dist/types/identity-reuse.d.ts +23 -1
- package/dist/types/phone.d.ts +23 -1
- package/dist/types/qe-signature.d.ts +23 -1
- package/dist/types/selfie.d.ts +23 -1
- package/dist/types/signature.d.ts +23 -1
- package/dist/types/video-selfie.d.ts +72 -0
- package/dist/types/watchlist.d.ts +23 -1
- package/dist/types/workflow.d.ts +23 -1
- package/dist/{useModuleLoader-CeJ2jL25.js → useModuleLoader-Gvo9qscB.js} +42 -25
- package/dist/{verificationResult-Do5SpZ6X.js → verificationResult-BWWkmeiA.js} +8 -8
- package/dist/video-selfie/styles.css +1644 -0
- package/dist/video-selfie/video-selfie.es.js +854 -0
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/{watchlistForBusiness-BFFXC9d-.js → watchlistForBusiness-D2Uo_TwF.js} +10 -10
- package/dist/workflow/styles.css +254 -76
- package/dist/workflow/workflow.es.js +146 -17
- package/package.json +42 -5
- package/dist/cpfOcr-jJkYCfsX.js +0 -2
- package/dist/dateInputComposed-Cy6a7ymh.js +0 -1
- package/dist/documentCapture-8ypBJehw.js +0 -2
- package/dist/dropdownComposed-CEWBSdGl.js +0 -1
- package/dist/ekybModule-DFoYpheB.js +0 -2
- package/dist/ekycModule-BGzwgjl1.js +0 -2
- package/dist/faceMatch-yEKPYaym.js +0 -2
- package/dist/fieldComparison-D0an7T_g.js +0 -2
- package/dist/inputComposed-BEn7_nZd.js +0 -1
- package/dist/page-DxGQj7Gk.js +0 -71
- package/dist/spinner-B6RxGFrI.js +0 -1
- /package/dist/{aligndevicelottie-DY_bX_p8.js → aligndevicelottie-DFscByAI.js} +0 -0
- /package/dist/{back-horizontal-hint-D_8LptLm.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
- /package/dist/{back-tutorial-vb1MxlrT.js → back-tutorial-cI_4VHmE.js} +0 -0
- /package/dist/{back-vertical-hint-C1evxxq2.js → back-vertical-hint-BWWlHfX2.js} +0 -0
- /package/dist/{backdevicelottie-HypPqBz7.js → backdevicelottie-COyhTrxM.js} +0 -0
- /package/dist/{blurdevicelottie-CBXtBFiJ.js → blurdevicelottie-BLVeJHEG.js} +0 -0
- /package/dist/{browser-ponyfill-CLLvZCVg.js → browser-ponyfill-Df13Th-G.js} +0 -0
- /package/dist/{defineProperty-mefzVtTv.js → defineProperty-Qjefk7Uf.js} +0 -0
- /package/dist/{errorIcon-DJRZpd8j.js → errorIcon-BA4T6iy-.js} +0 -0
- /package/dist/{flip-animation-BGRvygw9.js → flip-animation-CZYSUtMm.js} +0 -0
- /package/dist/{front-horizontal-hint-Uf5bHCsd.js → front-horizontal-hint-B84GgTO1.js} +0 -0
- /package/dist/{front-vertical-hint-DdWNA45v.js → front-vertical-hint-Bs_avngq.js} +0 -0
- /package/dist/{frontdevicelottie-CLqitJhG.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
- /package/dist/{glaredevicelottie-BS04U6Fc.js → glaredevicelottie-D1pR73sx.js} +0 -0
- /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
- /package/dist/{id-laser-h-DX8UbVNH.js → id-laser-h-CzPegPMn.js} +0 -0
- /package/dist/{id-laser-v-DhnHdjlB.js → id-laser-v-BiUXkM4x.js} +0 -0
- /package/dist/{id-tutorial-lj4iKtYT.js → id-tutorial-DwO90SAm.js} +0 -0
- /package/dist/{lottie_light-Dp9Bz3mf.js → lottie_light-C6B2ec41.js} +0 -0
- /package/dist/{modal.hooks-D2xhIuHA.js → modal.hooks-ZrzmHAUa.js} +0 -0
- /package/dist/{numberedStep-CEtwZqLp.js → numberedStep-CEb-lFJm.js} +0 -0
- /package/dist/{passport-horizontal-hint-Bbm2mvSn.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
- /package/dist/{passport-tutorial-zT1ZoA-D.js → passport-tutorial-D9JNsMsM.js} +0 -0
- /package/dist/{passport-vertical-hint-DJbCtBiM.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
- /package/dist/{registerIncodeElement-77NGCDsy.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
- /package/dist/{requiredLabelHint-DEadtiwx.js → requiredLabelHint-D0RhuMed.js} +0 -0
- /package/dist/{selfieTutorial-CtruLyO2.js → selfieTutorial-pB-N-fj5.js} +0 -0
- /package/dist/{snackbar-CxepGC3e.js → snackbar-DS7Mv62v.js} +0 -0
- /package/dist/{successIcon-BAyDPT7I.js → successIcon-B5mGvdx1.js} +0 -0
- /package/dist/{tabs-C8npVBbk.js → tabs-C__chW-u.js} +0 -0
- /package/dist/{typography-YLgHHuao.js → typography-BZIpjo97.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as useTranslation, t as Trans } from "../i18n-
|
|
1
|
+
import { n as useTranslation, t as Trans } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
|
-
import { t as Page } from "../page-
|
|
7
|
-
import { t as Button } from "../button-
|
|
8
|
-
import { t as NumberedStep } from "../numberedStep-
|
|
9
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
6
|
+
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
+
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
8
|
+
import { t as NumberedStep } from "../numberedStep-CEb-lFJm.js";
|
|
9
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
10
10
|
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
11
11
|
import { createGeolocationManager } from "@incodetech/core/geolocation";
|
|
12
12
|
//#region src/modules/geolocation/LocationActiveIcon.tsx
|
|
@@ -330,7 +330,7 @@ var android_settings_light_default = "data:image/svg+xml,%3csvg%20width='24'%20h
|
|
|
330
330
|
var switch_icon_default = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='8'%20fill='%23FCFCFD'/%3e%3crect%20x='7'%20y='12'%20width='26'%20height='16'%20rx='8'%20fill='%23006AFF'/%3e%3ccircle%20cx='25'%20cy='20'%20r='6'%20fill='white'/%3e%3c/svg%3e";
|
|
331
331
|
//#endregion
|
|
332
332
|
//#region src/modules/geolocation/permissionDenied/GeolocationPermissionStep.tsx
|
|
333
|
-
var stripHtml = (html) => new DOMParser().parseFromString(html, "text/html").body.textContent || "";
|
|
333
|
+
var stripHtml$1 = (html) => new DOMParser().parseFromString(html, "text/html").body.textContent || "";
|
|
334
334
|
var GeolocationPermissionStep = (props) => {
|
|
335
335
|
const { icon, imgClassName } = props;
|
|
336
336
|
const { t } = useTranslation();
|
|
@@ -339,7 +339,7 @@ var GeolocationPermissionStep = (props) => {
|
|
|
339
339
|
children: [
|
|
340
340
|
/* @__PURE__ */ u("span", {
|
|
341
341
|
class: "IncodeGeolocationSrOnly",
|
|
342
|
-
children: props.i18nKey ? stripHtml(t(props.i18nKey)) : props.ariaLabel
|
|
342
|
+
children: props.i18nKey ? stripHtml$1(t(props.i18nKey)) : props.ariaLabel
|
|
343
343
|
}),
|
|
344
344
|
/* @__PURE__ */ u("div", {
|
|
345
345
|
class: "IncodeGeolocationPermissionStepIcon",
|
|
@@ -366,336 +366,195 @@ var GeolocationPermissionStep = (props) => {
|
|
|
366
366
|
//#region src/modules/geolocation/permissionDenied/GeolocationPermissionDeniedAndroid.tsx
|
|
367
367
|
var PADDED_SETTINGS = "IncodeGeolocationPermissionStepImgPaddedSettings";
|
|
368
368
|
var PADDED_BROWSER$1 = "IncodeGeolocationPermissionStepImgPaddedBrowser";
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
textKey: "geolocationv2.returnAndRefresh",
|
|
478
|
-
icon: android_settings_light_default,
|
|
479
|
-
imgClassName: PADDED_SETTINGS
|
|
480
|
-
}
|
|
481
|
-
]
|
|
482
|
-
}];
|
|
483
|
-
var sectionsByBrowser$1 = {
|
|
484
|
-
chrome: chromeSections$1,
|
|
485
|
-
firefox: firefoxSections,
|
|
486
|
-
opera: operaSections,
|
|
487
|
-
edge: chromeSections$1,
|
|
488
|
-
other: otherSections
|
|
369
|
+
var chromeSteps = [
|
|
370
|
+
{
|
|
371
|
+
textKey: "geolocationv2.openSettingsAndroid",
|
|
372
|
+
icon: android_settings_default,
|
|
373
|
+
imgClassName: PADDED_SETTINGS
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
textKey: "geolocationv2.appsChrome",
|
|
377
|
+
icon: chrome_icon_default,
|
|
378
|
+
imgClassName: PADDED_BROWSER$1
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
textKey: "geolocationv2.permissionsLocation",
|
|
382
|
+
icon: android_settings_default,
|
|
383
|
+
imgClassName: PADDED_SETTINGS
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
textKey: "geolocationv2.allowUsing",
|
|
387
|
+
icon: switch_icon_default
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
textKey: "geolocationv2.returnAndRefresh",
|
|
391
|
+
icon: chrome_icon_default,
|
|
392
|
+
imgClassName: PADDED_BROWSER$1
|
|
393
|
+
}
|
|
394
|
+
];
|
|
395
|
+
var firefoxSteps = [
|
|
396
|
+
{
|
|
397
|
+
textKey: "geolocationv2.openSettingsAndroid",
|
|
398
|
+
icon: android_settings_light_default,
|
|
399
|
+
imgClassName: PADDED_SETTINGS
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
textKey: "geolocationv2.appsFirefox",
|
|
403
|
+
icon: firefox_icon_default,
|
|
404
|
+
imgClassName: PADDED_BROWSER$1
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
textKey: "geolocationv2.permissionsLocation",
|
|
408
|
+
icon: android_settings_light_default,
|
|
409
|
+
imgClassName: PADDED_SETTINGS
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
textKey: "geolocationv2.allowUsing",
|
|
413
|
+
icon: switch_icon_default
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
textKey: "geolocationv2.returnAndRefresh",
|
|
417
|
+
icon: firefox_icon_default,
|
|
418
|
+
imgClassName: PADDED_BROWSER$1
|
|
419
|
+
}
|
|
420
|
+
];
|
|
421
|
+
var operaSteps = [
|
|
422
|
+
{
|
|
423
|
+
textKey: "geolocationv2.openSettingsAndroid",
|
|
424
|
+
icon: android_settings_light_default,
|
|
425
|
+
imgClassName: PADDED_SETTINGS
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
textKey: "geolocationv2.appsOpera",
|
|
429
|
+
icon: opera_icon_default
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
textKey: "geolocationv2.permissionsLocation",
|
|
433
|
+
icon: android_settings_light_default,
|
|
434
|
+
imgClassName: PADDED_SETTINGS
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
textKey: "geolocationv2.allowUsing",
|
|
438
|
+
icon: switch_icon_default
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
textKey: "geolocationv2.returnAndRefresh",
|
|
442
|
+
icon: opera_icon_default
|
|
443
|
+
}
|
|
444
|
+
];
|
|
445
|
+
var otherSteps = [
|
|
446
|
+
{
|
|
447
|
+
textKey: "geolocationv2.openSettingsAndroid",
|
|
448
|
+
icon: android_settings_light_default,
|
|
449
|
+
imgClassName: PADDED_SETTINGS
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
textKey: "geolocationv2.appsBrowser",
|
|
453
|
+
icon: android_settings_light_default,
|
|
454
|
+
imgClassName: PADDED_SETTINGS
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
textKey: "geolocationv2.permissionsLocation",
|
|
458
|
+
icon: android_settings_light_default,
|
|
459
|
+
imgClassName: PADDED_SETTINGS
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
textKey: "geolocationv2.allowUsing",
|
|
463
|
+
icon: switch_icon_default
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
textKey: "geolocationv2.returnAndRefresh",
|
|
467
|
+
icon: android_settings_light_default,
|
|
468
|
+
imgClassName: PADDED_SETTINGS
|
|
469
|
+
}
|
|
470
|
+
];
|
|
471
|
+
var stepsByBrowser = {
|
|
472
|
+
chrome: chromeSteps,
|
|
473
|
+
firefox: firefoxSteps,
|
|
474
|
+
opera: operaSteps,
|
|
475
|
+
edge: chromeSteps,
|
|
476
|
+
other: otherSteps
|
|
489
477
|
};
|
|
490
478
|
var GeolocationPermissionDeniedAndroid = () => {
|
|
491
479
|
return /* @__PURE__ */ u("div", {
|
|
492
480
|
class: "IncodeGeolocationPermissionSections",
|
|
493
|
-
children:
|
|
494
|
-
class: "
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
role: "list",
|
|
502
|
-
children: section.steps.map((step) => /* @__PURE__ */ u(GeolocationPermissionStep, {
|
|
503
|
-
icon: step.icon,
|
|
504
|
-
i18nKey: step.textKey,
|
|
505
|
-
imgClassName: step.imgClassName
|
|
506
|
-
}, step.textKey))
|
|
507
|
-
})]
|
|
508
|
-
}, section.titleKey || "default"))
|
|
481
|
+
children: /* @__PURE__ */ u("ol", {
|
|
482
|
+
class: "IncodeGeolocationPermissionStepsList",
|
|
483
|
+
children: (stepsByBrowser[getBrowser()] ?? otherSteps).map((step) => /* @__PURE__ */ u(GeolocationPermissionStep, {
|
|
484
|
+
icon: step.icon,
|
|
485
|
+
i18nKey: step.textKey,
|
|
486
|
+
imgClassName: step.imgClassName
|
|
487
|
+
}, step.textKey))
|
|
488
|
+
})
|
|
509
489
|
});
|
|
510
490
|
};
|
|
511
491
|
//#endregion
|
|
512
492
|
//#region src/modules/geolocation/permissionDenied/GeolocationPermissionDeniedDesktop.tsx
|
|
513
|
-
var
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
children: ariaLabel
|
|
519
|
-
}),
|
|
520
|
-
/* @__PURE__ */ u("div", {
|
|
521
|
-
class: "IncodeDeniedDesktopStepNumberColumn",
|
|
522
|
-
"aria-hidden": "true",
|
|
523
|
-
children: /* @__PURE__ */ u(NumberedStep, { number })
|
|
524
|
-
}),
|
|
525
|
-
/* @__PURE__ */ u("p", {
|
|
526
|
-
class: "IncodeDeniedStepText",
|
|
527
|
-
"aria-hidden": "true",
|
|
528
|
-
children
|
|
529
|
-
})
|
|
530
|
-
]
|
|
531
|
-
});
|
|
532
|
-
var ChromeSteps = () => /* @__PURE__ */ u(k, { children: [
|
|
533
|
-
/* @__PURE__ */ u(Step, {
|
|
534
|
-
number: 1,
|
|
535
|
-
ariaLabel: "Click the lock icon or tune icon in the address bar",
|
|
536
|
-
children: [
|
|
537
|
-
"Click the ",
|
|
538
|
-
/* @__PURE__ */ u("strong", { children: "lock icon" }),
|
|
539
|
-
" or ",
|
|
540
|
-
/* @__PURE__ */ u("strong", { children: "tune icon" }),
|
|
541
|
-
" in the address bar"
|
|
542
|
-
]
|
|
543
|
-
}),
|
|
544
|
-
/* @__PURE__ */ u(Step, {
|
|
545
|
-
number: 2,
|
|
546
|
-
ariaLabel: "Click Site settings",
|
|
547
|
-
children: ["Click ", /* @__PURE__ */ u("strong", { children: "Site settings" })]
|
|
548
|
-
}),
|
|
549
|
-
/* @__PURE__ */ u(Step, {
|
|
550
|
-
number: 3,
|
|
551
|
-
ariaLabel: "Find Location and change to Allow",
|
|
552
|
-
children: [
|
|
553
|
-
"Find ",
|
|
554
|
-
/* @__PURE__ */ u("strong", { children: "Location" }),
|
|
555
|
-
" and change to ",
|
|
556
|
-
/* @__PURE__ */ u("strong", { children: "Allow" })
|
|
557
|
-
]
|
|
558
|
-
}),
|
|
559
|
-
/* @__PURE__ */ u(Step, {
|
|
560
|
-
number: 4,
|
|
561
|
-
ariaLabel: "Return to this page and refresh",
|
|
562
|
-
children: ["Return to this page and ", /* @__PURE__ */ u("strong", { children: "refresh" })]
|
|
563
|
-
})
|
|
564
|
-
] });
|
|
565
|
-
var FirefoxSteps = () => /* @__PURE__ */ u(k, { children: [
|
|
566
|
-
/* @__PURE__ */ u(Step, {
|
|
567
|
-
number: 1,
|
|
568
|
-
ariaLabel: "Click the lock icon in the address bar",
|
|
569
|
-
children: [
|
|
570
|
-
"Click the ",
|
|
571
|
-
/* @__PURE__ */ u("strong", { children: "lock icon" }),
|
|
572
|
-
" in the address bar"
|
|
573
|
-
]
|
|
574
|
-
}),
|
|
575
|
-
/* @__PURE__ */ u(Step, {
|
|
576
|
-
number: 2,
|
|
577
|
-
ariaLabel: "Click Connection secure, then More information",
|
|
578
|
-
children: [
|
|
579
|
-
"Click ",
|
|
580
|
-
/* @__PURE__ */ u("strong", { children: "Connection secure" }),
|
|
581
|
-
", then",
|
|
582
|
-
" ",
|
|
583
|
-
/* @__PURE__ */ u("strong", { children: "More information" })
|
|
584
|
-
]
|
|
585
|
-
}),
|
|
586
|
-
/* @__PURE__ */ u(Step, {
|
|
587
|
-
number: 3,
|
|
588
|
-
ariaLabel: "Go to Permissions tab, find Access Your Location",
|
|
589
|
-
children: [
|
|
590
|
-
"Go to ",
|
|
591
|
-
/* @__PURE__ */ u("strong", { children: "Permissions" }),
|
|
592
|
-
" tab, find",
|
|
593
|
-
" ",
|
|
594
|
-
/* @__PURE__ */ u("strong", { children: "Access Your Location" })
|
|
595
|
-
]
|
|
596
|
-
}),
|
|
597
|
-
/* @__PURE__ */ u(Step, {
|
|
598
|
-
number: 4,
|
|
599
|
-
ariaLabel: "Uncheck Use Default and select Allow",
|
|
600
|
-
children: [
|
|
601
|
-
"Uncheck ",
|
|
602
|
-
/* @__PURE__ */ u("strong", { children: "Use Default" }),
|
|
603
|
-
" and select ",
|
|
604
|
-
/* @__PURE__ */ u("strong", { children: "Allow" })
|
|
605
|
-
]
|
|
606
|
-
}),
|
|
607
|
-
/* @__PURE__ */ u(Step, {
|
|
608
|
-
number: 5,
|
|
609
|
-
ariaLabel: "Return to this page and refresh",
|
|
610
|
-
children: ["Return to this page and ", /* @__PURE__ */ u("strong", { children: "refresh" })]
|
|
611
|
-
})
|
|
612
|
-
] });
|
|
613
|
-
var SafariSteps = () => /* @__PURE__ */ u(k, { children: [
|
|
614
|
-
/* @__PURE__ */ u(Step, {
|
|
615
|
-
number: 1,
|
|
616
|
-
ariaLabel: "Open Safari menu, then Settings",
|
|
617
|
-
children: [
|
|
618
|
-
"Open ",
|
|
619
|
-
/* @__PURE__ */ u("strong", { children: "Safari" }),
|
|
620
|
-
" menu, then ",
|
|
621
|
-
/* @__PURE__ */ u("strong", { children: "Settings" })
|
|
622
|
-
]
|
|
623
|
-
}),
|
|
624
|
-
/* @__PURE__ */ u(Step, {
|
|
625
|
-
number: 2,
|
|
626
|
-
ariaLabel: "Go to the Websites tab",
|
|
627
|
-
children: [
|
|
628
|
-
"Go to the ",
|
|
629
|
-
/* @__PURE__ */ u("strong", { children: "Websites" }),
|
|
630
|
-
" tab"
|
|
631
|
-
]
|
|
632
|
-
}),
|
|
633
|
-
/* @__PURE__ */ u(Step, {
|
|
634
|
-
number: 3,
|
|
635
|
-
ariaLabel: "Click Location in the sidebar",
|
|
636
|
-
children: [
|
|
637
|
-
"Click ",
|
|
638
|
-
/* @__PURE__ */ u("strong", { children: "Location" }),
|
|
639
|
-
" in the sidebar"
|
|
640
|
-
]
|
|
641
|
-
}),
|
|
642
|
-
/* @__PURE__ */ u(Step, {
|
|
643
|
-
number: 4,
|
|
644
|
-
ariaLabel: "Set this website to Allow",
|
|
645
|
-
children: ["Set this website to ", /* @__PURE__ */ u("strong", { children: "Allow" })]
|
|
646
|
-
}),
|
|
647
|
-
/* @__PURE__ */ u(Step, {
|
|
648
|
-
number: 5,
|
|
649
|
-
ariaLabel: "Return to this page and refresh",
|
|
650
|
-
children: ["Return to this page and ", /* @__PURE__ */ u("strong", { children: "refresh" })]
|
|
651
|
-
})
|
|
652
|
-
] });
|
|
653
|
-
var OperaSteps = () => /* @__PURE__ */ u(k, { children: [
|
|
654
|
-
/* @__PURE__ */ u(Step, {
|
|
655
|
-
number: 1,
|
|
656
|
-
ariaLabel: "Click the lock icon in the address bar",
|
|
657
|
-
children: [
|
|
658
|
-
"Click the ",
|
|
659
|
-
/* @__PURE__ */ u("strong", { children: "lock icon" }),
|
|
660
|
-
" in the address bar"
|
|
661
|
-
]
|
|
662
|
-
}),
|
|
663
|
-
/* @__PURE__ */ u(Step, {
|
|
664
|
-
number: 2,
|
|
665
|
-
ariaLabel: "Click Site settings",
|
|
666
|
-
children: ["Click ", /* @__PURE__ */ u("strong", { children: "Site settings" })]
|
|
667
|
-
}),
|
|
668
|
-
/* @__PURE__ */ u(Step, {
|
|
669
|
-
number: 3,
|
|
670
|
-
ariaLabel: "Find Location and change to Allow",
|
|
493
|
+
var stripHtml = (html) => new DOMParser().parseFromString(html, "text/html").body.textContent || "";
|
|
494
|
+
var Step = ({ number, i18nKey }) => {
|
|
495
|
+
const { t } = useTranslation();
|
|
496
|
+
return /* @__PURE__ */ u("li", {
|
|
497
|
+
class: "IncodeDeniedDesktopStep",
|
|
671
498
|
children: [
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
499
|
+
/* @__PURE__ */ u("span", {
|
|
500
|
+
class: "IncodeGeolocationSrOnly",
|
|
501
|
+
children: stripHtml(t(i18nKey))
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ u("div", {
|
|
504
|
+
class: "IncodeDeniedDesktopStepNumberColumn",
|
|
505
|
+
"aria-hidden": "true",
|
|
506
|
+
children: /* @__PURE__ */ u(NumberedStep, { number })
|
|
507
|
+
}),
|
|
508
|
+
/* @__PURE__ */ u("p", {
|
|
509
|
+
class: "IncodeDeniedStepText",
|
|
510
|
+
"aria-hidden": "true",
|
|
511
|
+
children: /* @__PURE__ */ u(Trans, {
|
|
512
|
+
i18nKey,
|
|
513
|
+
boldClass: "IncodeGeolocationPermissionStepTextBold"
|
|
514
|
+
})
|
|
515
|
+
})
|
|
676
516
|
]
|
|
677
|
-
})
|
|
678
|
-
/* @__PURE__ */ u(Step, {
|
|
679
|
-
number: 4,
|
|
680
|
-
ariaLabel: "Return to this page and refresh",
|
|
681
|
-
children: ["Return to this page and ", /* @__PURE__ */ u("strong", { children: "refresh" })]
|
|
682
|
-
})
|
|
683
|
-
] });
|
|
684
|
-
var stepsByBrowser = {
|
|
685
|
-
chrome: ChromeSteps,
|
|
686
|
-
firefox: FirefoxSteps,
|
|
687
|
-
safari: SafariSteps,
|
|
688
|
-
opera: OperaSteps,
|
|
689
|
-
edge: ChromeSteps,
|
|
690
|
-
other: ChromeSteps
|
|
517
|
+
});
|
|
691
518
|
};
|
|
519
|
+
var stepKeysByBrowser = {
|
|
520
|
+
chrome: [
|
|
521
|
+
"geolocationv2.desktop.chrome.step1",
|
|
522
|
+
"geolocationv2.desktop.chrome.step2",
|
|
523
|
+
"geolocationv2.desktop.chrome.step3",
|
|
524
|
+
"geolocationv2.desktop.chrome.step4"
|
|
525
|
+
],
|
|
526
|
+
firefox: [
|
|
527
|
+
"geolocationv2.desktop.firefox.step1",
|
|
528
|
+
"geolocationv2.desktop.firefox.step2",
|
|
529
|
+
"geolocationv2.desktop.firefox.step3",
|
|
530
|
+
"geolocationv2.desktop.firefox.step4",
|
|
531
|
+
"geolocationv2.desktop.firefox.step5"
|
|
532
|
+
],
|
|
533
|
+
safari: [
|
|
534
|
+
"geolocationv2.desktop.safari.step1",
|
|
535
|
+
"geolocationv2.desktop.safari.step2",
|
|
536
|
+
"geolocationv2.desktop.safari.step3",
|
|
537
|
+
"geolocationv2.desktop.safari.step4",
|
|
538
|
+
"geolocationv2.desktop.safari.step5"
|
|
539
|
+
],
|
|
540
|
+
opera: [
|
|
541
|
+
"geolocationv2.desktop.opera.step1",
|
|
542
|
+
"geolocationv2.desktop.opera.step2",
|
|
543
|
+
"geolocationv2.desktop.opera.step3",
|
|
544
|
+
"geolocationv2.desktop.opera.step4"
|
|
545
|
+
]
|
|
546
|
+
};
|
|
547
|
+
stepKeysByBrowser.edge = stepKeysByBrowser.chrome;
|
|
548
|
+
stepKeysByBrowser.other = stepKeysByBrowser.chrome;
|
|
692
549
|
var GeolocationPermissionDeniedDesktop = () => {
|
|
693
550
|
return /* @__PURE__ */ u("div", {
|
|
694
551
|
class: "IncodeGeolocationPermissionSections",
|
|
695
552
|
children: /* @__PURE__ */ u("ol", {
|
|
696
553
|
class: "IncodeDeniedDesktopContainer",
|
|
697
|
-
|
|
698
|
-
|
|
554
|
+
children: (stepKeysByBrowser[getBrowser()] ?? stepKeysByBrowser.chrome ?? []).map((key, index) => /* @__PURE__ */ u(Step, {
|
|
555
|
+
number: index + 1,
|
|
556
|
+
i18nKey: key
|
|
557
|
+
}, key))
|
|
699
558
|
})
|
|
700
559
|
});
|
|
701
560
|
};
|
|
@@ -874,11 +733,13 @@ var GeolocationPermissionDenied = ({ canSkip, onSkip, onRefresh }) => {
|
|
|
874
733
|
/* @__PURE__ */ u(Spacer, {}),
|
|
875
734
|
/* @__PURE__ */ u(Button, {
|
|
876
735
|
onClick: onRefresh,
|
|
736
|
+
"data-testid": "geolocation-refresh",
|
|
877
737
|
children: t("geolocationv2.refreshPage")
|
|
878
738
|
}),
|
|
879
739
|
canSkip ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u(Button, {
|
|
880
740
|
variant: "secondary",
|
|
881
741
|
onClick: onSkip,
|
|
742
|
+
"data-testid": "geolocation-skip",
|
|
882
743
|
children: t("geolocationv2.skip")
|
|
883
744
|
})] }) : null
|
|
884
745
|
]
|
|
@@ -902,17 +763,19 @@ var GeolocationPageLayout = ({ icon: Icon, title, subtitle, onContinue, isLoadin
|
|
|
902
763
|
onClick: onContinue,
|
|
903
764
|
"aria-label": isLoading ? t("geolocation.continue") : void 0,
|
|
904
765
|
"aria-busy": isLoading || void 0,
|
|
766
|
+
"data-testid": "geolocation-continue",
|
|
905
767
|
children: t("geolocation.continue")
|
|
906
768
|
})
|
|
907
769
|
})]
|
|
908
770
|
});
|
|
909
771
|
};
|
|
910
|
-
var GeolocationContent = ({ config, onFinish, onError: _onError }) => {
|
|
772
|
+
var GeolocationContent = ({ config, manager: externalManager, onFinish, onError: _onError }) => {
|
|
911
773
|
const { t } = useTranslation();
|
|
912
774
|
const [state, manager] = useManager(() => {
|
|
775
|
+
if (externalManager) return externalManager;
|
|
913
776
|
if (!config) throw new Error("Geolocation config is required");
|
|
914
777
|
return createGeolocationManager({ config });
|
|
915
|
-
});
|
|
778
|
+
}, { manageLifecycle: !externalManager });
|
|
916
779
|
useModuleTerminalCallbacks({
|
|
917
780
|
status: state.status === "finished" ? "finished" : "loading",
|
|
918
781
|
onFinish
|
|
@@ -938,8 +801,9 @@ var GeolocationContent = ({ config, onFinish, onError: _onError }) => {
|
|
|
938
801
|
if (state.status === "finished") return null;
|
|
939
802
|
return null;
|
|
940
803
|
};
|
|
941
|
-
var Geolocation = ({ config, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(GeolocationContent, {
|
|
804
|
+
var Geolocation = ({ config, manager, onFinish, onError }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(GeolocationContent, {
|
|
942
805
|
config,
|
|
806
|
+
manager,
|
|
943
807
|
onFinish,
|
|
944
808
|
onError
|
|
945
809
|
}) : null });
|
|
@@ -43,10 +43,18 @@
|
|
|
43
43
|
padding-block: var(--spacing-16, var(--spacing-16, 16px));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageInner {
|
|
47
|
+
max-width: 420px;
|
|
48
|
+
}
|
|
49
|
+
|
|
46
50
|
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageTitleContainer {
|
|
47
51
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodePageTitle {
|
|
55
|
+
text-align: left;
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
.IncodeGeolocationPage.IncodeGeolocationPermissionPage .IncodeGeolocationPermissionSections {
|
|
51
59
|
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
52
60
|
gap: var(--spacing-24, var(--spacing-24, 24px));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { n as useTranslation } from "../i18n-
|
|
1
|
+
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
|
-
import { t as Page } from "../page-
|
|
7
|
-
import "../extensibility-
|
|
8
|
-
import { t as AutoFocusTitle } from "../autoFocusTitle-
|
|
9
|
-
import { t as VerificationResult } from "../verificationResult-
|
|
10
|
-
import { t as OtpInput } from "../otpInput-
|
|
11
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
6
|
+
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
+
import "../extensibility-7sRIN0JC.js";
|
|
8
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-CuRu2lPg.js";
|
|
9
|
+
import { t as VerificationResult } from "../verificationResult-BWWkmeiA.js";
|
|
10
|
+
import { t as OtpInput } from "../otpInput-CnDc6pQm.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
12
12
|
import { createGovernmentValidationManager } from "@incodetech/core/government-validation";
|
|
13
|
-
//#region src/modules/
|
|
13
|
+
//#region src/modules/government-validation/governmentIncodeLogo.tsx
|
|
14
14
|
var VerifiedByGovIncodeLogo = () => {
|
|
15
15
|
return /* @__PURE__ */ u("svg", {
|
|
16
16
|
width: "390",
|
|
@@ -84,7 +84,7 @@ var VerifiedByGovIncodeLogo = () => {
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
//#endregion
|
|
87
|
-
//#region src/modules/
|
|
87
|
+
//#region src/modules/government-validation/government-validation.tsx
|
|
88
88
|
var GovernmentVerificationResult = (props) => /* @__PURE__ */ u(VerificationResult, {
|
|
89
89
|
...props,
|
|
90
90
|
hideFooterBranding: false,
|
|
@@ -103,7 +103,7 @@ var GovernmentValidationContent = ({ config, onFinish }) => {
|
|
|
103
103
|
if (config.backgroundExecution || state.status === "finished") return null;
|
|
104
104
|
const isOtpStep = state.status === "awaitingOtp" || state.status === "verifyingOtp";
|
|
105
105
|
return /* @__PURE__ */ u(k, { children: [
|
|
106
|
-
(state.status === "idle" || state.status === "loading") && /* @__PURE__ */ u(GovernmentVerificationResult, {
|
|
106
|
+
(state.status === "idle" || state.status === "loading" || state.status === "processing") && /* @__PURE__ */ u(GovernmentVerificationResult, {
|
|
107
107
|
status: "submitting",
|
|
108
108
|
submittingTitle: t("common.holdOnASec"),
|
|
109
109
|
submittingSubtitle: t("ineCheck.checkingYourInformation")
|
|
@@ -112,10 +112,6 @@ var GovernmentValidationContent = ({ config, onFinish }) => {
|
|
|
112
112
|
status: "success",
|
|
113
113
|
successTitle: t("ineCheck.verified")
|
|
114
114
|
}),
|
|
115
|
-
state.status === "processing" && /* @__PURE__ */ u(GovernmentVerificationResult, {
|
|
116
|
-
status: "success",
|
|
117
|
-
successTitle: t("ineCheck.processing")
|
|
118
|
-
}),
|
|
119
115
|
isOtpStep && (() => {
|
|
120
116
|
const isVerifying = state.status === "verifyingOtp";
|
|
121
117
|
const otpError = state.status === "awaitingOtp" ? state.otpError : void 0;
|