@incodetech/web 0.0.0-dev-20260423-427a341 → 0.0.0-dev-20260423-672ea74

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.
Files changed (68) hide show
  1. package/dist/{addressAutocomplete-BnXqjo3c.js → addressAutocomplete-BXaiCXoK.js} +2 -2
  2. package/dist/authentication/authentication.es.js +1 -1
  3. package/dist/base.css +23 -1
  4. package/dist/consent/consent.es.js +47 -40
  5. package/dist/consent/styles.css +4 -0
  6. package/dist/curp-validation/curp-validation.es.js +3 -3
  7. package/dist/{customFields-D7JzF2v_.js → customFields-ByZ0CUT5.js} +2 -2
  8. package/dist/dateInputComposed-CUhIwliW.js +1 -0
  9. package/dist/{dateInputComposed-ChNk6tA6.js → dateInputComposed-DUP8vYwk.js} +2 -2
  10. package/dist/{documentCapture-BDiV75I-.js → documentCapture-BqduvRtm.js} +2 -2
  11. package/dist/ekyb/ekyb.es.js +1 -1
  12. package/dist/ekybModule-C9wpmHp1.js +2 -0
  13. package/dist/{ekybModule-DvKrNQHb.js → ekybModule-CaOzd3Sf.js} +3 -3
  14. package/dist/ekyc/ekyc.es.js +1 -1
  15. package/dist/{ekycModule-Bb686qen.js → ekycModule-DzOvujCd.js} +4 -4
  16. package/dist/ekycModule-Z2hOCcCU.js +2 -0
  17. package/dist/email/email.es.js +3 -3
  18. package/dist/{extensibility-DD-UncEc.js → extensibility-MwUYctOv.js} +19 -19
  19. package/dist/extensibility.es.js +7 -7
  20. package/dist/flow/flow.es.js +46 -29
  21. package/dist/flow/styles.css +128 -0
  22. package/dist/{formField-3l0U7wek.js → formField-B-_S6kou.js} +1 -1
  23. package/dist/governmentValidation/governmentValidation.es.js +1 -1
  24. package/dist/id/id.es.js +4 -4
  25. package/dist/id-ocr/styles.css +86 -0
  26. package/dist/idOcr-Ddb5MkER.js +95 -0
  27. package/dist/inputComposed-Cyw5Vf6f.js +1 -0
  28. package/dist/{inputComposed-C6nVSZj3.js → inputComposed-vU4G5kX-.js} +4 -1
  29. package/dist/mandatoryConsent-Cs8VVPyI.js +99 -0
  30. package/dist/{otpInput-mIxWLuT4.js → otpInput-B_ItrMcK.js} +2 -2
  31. package/dist/phone/phone.es.js +2 -2
  32. package/dist/{phoneInputComposed-CAqOlbXd.js → phoneInputComposed-CzxoNJ5b.js} +1 -1
  33. package/dist/{redirectToMobile-o24bjaIX.js → redirectToMobile-CMdQhX3j.js} +1 -1
  34. package/dist/selfie/selfie.es.js +2 -2
  35. package/dist/themes/dark.css +1 -1
  36. package/dist/themes/light.css +1 -1
  37. package/dist/{tutorial-D6avi30-.js → tutorial-CAfpDlUG.js} +1 -1
  38. package/dist/types/id-ocr/styles.d.ts +1 -0
  39. package/dist/{useModuleLoader-orDv3Be3.js → useModuleLoader-CNBI_JLP.js} +11 -9
  40. package/dist/{watchlistForBusiness-BUkAxhsg.js → watchlistForBusiness-DxiEnt9E.js} +1 -1
  41. package/dist/workflow/styles.css +128 -0
  42. package/dist/workflow/workflow.es.js +2 -2
  43. package/package.json +2 -2
  44. package/dist/dateInputComposed-Bxke8vRg.js +0 -1
  45. package/dist/ekybModule-CG0oDDSI.js +0 -2
  46. package/dist/ekycModule-Cio7auBr.js +0 -2
  47. package/dist/inputComposed-CE8ClsSG.js +0 -1
  48. package/dist/mandatoryConsent-DkPINnNR.js +0 -94
  49. /package/dist/{aligndevicelottie-m1gBGZsQ.js → aligndevicelottie-DyGJbfIE.js} +0 -0
  50. /package/dist/{back-horizontal-hint-DUuojsev.js → back-horizontal-hint-Dftn3Q4p.js} +0 -0
  51. /package/dist/{back-tutorial-DMUliF5W.js → back-tutorial-BUwYnbyp.js} +0 -0
  52. /package/dist/{back-vertical-hint-CX_hCJhV.js → back-vertical-hint-Br7YQ62I.js} +0 -0
  53. /package/dist/{backdevicelottie-WEvEwLBA.js → backdevicelottie-BJMD8fm6.js} +0 -0
  54. /package/dist/{blurdevicelottie-BNBU2EIM.js → blurdevicelottie-B7h0sSvw.js} +0 -0
  55. /package/dist/{flip-animation-Tm2zxXjs.js → flip-animation-CAoCCNZF.js} +0 -0
  56. /package/dist/{front-horizontal-hint-2RcQjgHE.js → front-horizontal-hint-CR71MdeU.js} +0 -0
  57. /package/dist/{front-vertical-hint-CRhiWbkP.js → front-vertical-hint-BGci40sf.js} +0 -0
  58. /package/dist/{frontdevicelottie-BtbZEtwd.js → frontdevicelottie-B8Qy4pSa.js} +0 -0
  59. /package/dist/{glaredevicelottie-CGQ0DCXc.js → glaredevicelottie-DWxI3Pww.js} +0 -0
  60. /package/dist/{homeScreen-DJDHFnIu.js → homeScreen-CkcAO4Ag.js} +0 -0
  61. /package/dist/{id-laser-h-oGOFXEpO.js → id-laser-h-ld67NZgZ.js} +0 -0
  62. /package/dist/{id-laser-v-DfWJik9l.js → id-laser-v-Buftc8XI.js} +0 -0
  63. /package/dist/{id-tutorial-BVIpezZ1.js → id-tutorial-DCs88Nov.js} +0 -0
  64. /package/dist/{passport-horizontal-hint-CAqrHNYZ.js → passport-horizontal-hint-CVL4ijpt.js} +0 -0
  65. /package/dist/{passport-tutorial-DhEHJZeD.js → passport-tutorial-D8ghyCv5.js} +0 -0
  66. /package/dist/{passport-vertical-hint-BHH9yd1n.js → passport-vertical-hint-BP1gMsLD.js} +0 -0
  67. /package/dist/{phoneInput-LMlmFvJD.js → phoneInput-BvMryqbJ.js} +0 -0
  68. /package/dist/{selfieTutorial-D8I_4Oam.js → selfieTutorial-CmGGVE4q.js} +0 -0
@@ -4,7 +4,7 @@ import { t as s } from "../uiConfig-CwpQ-IM6.js";
4
4
  import { o as c, t as l } from "../incodeComponent-DEt7nOim.js";
5
5
  import { t as u } from "../transitionSpinner-DLUM_WN2.js";
6
6
  import { t as d } from "../incodeModule-DcwjDRyJ.js";
7
- import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-orDv3Be3.js";
7
+ import { a as f, c as p, d as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "../useModuleLoader-CNBI_JLP.js";
8
8
  import { getDeviceClass as w } from "@incodetech/core/device";
9
9
  import { getRequiredWasmPipelines as T } from "@incodetech/core/flow";
10
10
  import { createSession as E, validateQrUuid as D } from "@incodetech/core/session";
@@ -226,7 +226,7 @@ function U(e) {
226
226
  }
227
227
  //#endregion
228
228
  //#region src/modules/flow/flow.tsx
229
- var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.HomeScreen }))), G = ({ config: n, onFinish: r, onError: a }) => {
229
+ var W = n(() => import("../homeScreen-CkcAO4Ag.js").then((e) => ({ default: e.HomeScreen }))), G = ({ config: n, onFinish: r, onError: a }) => {
230
230
  let { i18n: s } = e(), l = U({
231
231
  ...n,
232
232
  onError: a
@@ -300,7 +300,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
300
300
  });
301
301
  if (d.status === "finished") return null;
302
302
  if (d?.status === "ready") {
303
- let { currentStep: e, config: t, flow: { flowId: r } } = d;
303
+ let { currentStep: e, config: t, flow: r } = d, { flowId: i } = r;
304
304
  if (!e || !t) return /* @__PURE__ */ o("div", {
305
305
  class: "IncodeFlow",
306
306
  children: /* @__PURE__ */ o(u, {
@@ -322,10 +322,10 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
322
322
  hideText: k
323
323
  })
324
324
  }) : /* @__PURE__ */ o("div", { class: "IncodeFlow" });
325
- let { Component: i } = v;
325
+ let { Component: s } = v;
326
326
  if (e === "REDIRECT_TO_MOBILE") return /* @__PURE__ */ o("div", {
327
327
  class: "IncodeFlow",
328
- children: /* @__PURE__ */ o(i, {
328
+ children: /* @__PURE__ */ o(s, {
329
329
  config: t,
330
330
  onFinish: () => p.completeFlow(),
331
331
  onContinue: () => p.completeModule(),
@@ -334,7 +334,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
334
334
  });
335
335
  if (e === "SELFIE") return /* @__PURE__ */ o("div", {
336
336
  class: "IncodeFlow",
337
- children: /* @__PURE__ */ o(i, {
337
+ children: /* @__PURE__ */ o(s, {
338
338
  config: t,
339
339
  onFinish: () => p.completeModule(),
340
340
  onError: (e) => {
@@ -344,7 +344,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
344
344
  });
345
345
  if (e === "AUTHENTICATION") return /* @__PURE__ */ o("div", {
346
346
  class: "IncodeFlow",
347
- children: /* @__PURE__ */ o(i, {
347
+ children: /* @__PURE__ */ o(s, {
348
348
  config: {
349
349
  ...t,
350
350
  authHint: n.authHint
@@ -357,7 +357,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
357
357
  });
358
358
  if (e === "PHONE") return /* @__PURE__ */ o("div", {
359
359
  class: "IncodeFlow",
360
- children: /* @__PURE__ */ o(i, {
360
+ children: /* @__PURE__ */ o(s, {
361
361
  config: t,
362
362
  onFinish: () => p.completeModule(),
363
363
  onError: (e) => {
@@ -372,7 +372,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
372
372
  children: /* @__PURE__ */ o("div", { children: "Error: Invalid email configuration" })
373
373
  }) : /* @__PURE__ */ o("div", {
374
374
  class: "IncodeFlow",
375
- children: /* @__PURE__ */ o(i, {
375
+ children: /* @__PURE__ */ o(s, {
376
376
  config: e,
377
377
  onFinish: () => p.completeModule(),
378
378
  onError: (e) => {
@@ -385,7 +385,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
385
385
  let n = t;
386
386
  return /* @__PURE__ */ o("div", {
387
387
  class: "IncodeFlow",
388
- children: /* @__PURE__ */ o(i, {
388
+ children: /* @__PURE__ */ o(s, {
389
389
  config: e === "SECOND_ID" ? {
390
390
  ...n,
391
391
  isSecondId: !0
@@ -397,9 +397,26 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
397
397
  }, `id-${d.currentStepIndex}`)
398
398
  });
399
399
  }
400
+ if (e === "ID_OCR") {
401
+ let e = t, n = d.steps.includes("SECOND_ID");
402
+ return /* @__PURE__ */ o("div", {
403
+ class: "IncodeFlow",
404
+ children: /* @__PURE__ */ o(s, {
405
+ config: {
406
+ ...e,
407
+ secondId: e.secondId ?? n,
408
+ flowId: i
409
+ },
410
+ onFinish: () => p.completeModule(),
411
+ onError: (e) => {
412
+ a?.(e ?? "ID OCR error");
413
+ }
414
+ }, `id-ocr-${d.currentStepIndex}`)
415
+ });
416
+ }
400
417
  if (e === "FACE_MATCH") return /* @__PURE__ */ o("div", {
401
418
  class: "IncodeFlow",
402
- children: /* @__PURE__ */ o(i, {
419
+ children: /* @__PURE__ */ o(s, {
403
420
  config: t,
404
421
  onFinish: () => p.completeModule(),
405
422
  onError: (e) => {
@@ -409,7 +426,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
409
426
  });
410
427
  if (e === "CURP_VALIDATION") return /* @__PURE__ */ o("div", {
411
428
  class: "IncodeFlow",
412
- children: /* @__PURE__ */ o(i, {
429
+ children: /* @__PURE__ */ o(s, {
413
430
  config: t,
414
431
  onFinish: () => p.completeModule(),
415
432
  onError: (e) => {
@@ -419,7 +436,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
419
436
  });
420
437
  if (e === "GOVT_VALIDATION_PROVISIONING") return /* @__PURE__ */ o("div", {
421
438
  class: "IncodeFlow",
422
- children: /* @__PURE__ */ o(i, {
439
+ children: /* @__PURE__ */ o(s, {
423
440
  config: t,
424
441
  onFinish: () => p.completeModule(),
425
442
  onError: (e) => {
@@ -429,7 +446,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
429
446
  });
430
447
  if (e === "GEOLOCATION") return /* @__PURE__ */ o("div", {
431
448
  class: "IncodeFlow",
432
- children: /* @__PURE__ */ o(i, {
449
+ children: /* @__PURE__ */ o(s, {
433
450
  config: t,
434
451
  onFinish: () => p.completeModule(),
435
452
  onError: (e) => {
@@ -439,7 +456,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
439
456
  });
440
457
  if (e === "EXTERNAL_VERIFICATION") return /* @__PURE__ */ o("div", {
441
458
  class: "IncodeFlow",
442
- children: /* @__PURE__ */ o(i, {
459
+ children: /* @__PURE__ */ o(s, {
443
460
  config: { flowId: d.flow.flowId },
444
461
  onFinish: () => p.completeModule(),
445
462
  onError: (e) => {
@@ -449,7 +466,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
449
466
  });
450
467
  if (e === "DOCUMENT_CAPTURE") return /* @__PURE__ */ o("div", {
451
468
  class: "IncodeFlow",
452
- children: /* @__PURE__ */ o(i, {
469
+ children: /* @__PURE__ */ o(s, {
453
470
  config: t,
454
471
  onFinish: () => p.completeModule(),
455
472
  onError: (e) => {
@@ -459,7 +476,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
459
476
  });
460
477
  if (e === "ADDRESS") return /* @__PURE__ */ o("div", {
461
478
  class: "IncodeFlow",
462
- children: /* @__PURE__ */ o(i, {
479
+ children: /* @__PURE__ */ o(s, {
463
480
  config: {
464
481
  ...t,
465
482
  processingType: "addressStatement"
@@ -472,7 +489,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
472
489
  });
473
490
  if (e === "SIGNATURE") return /* @__PURE__ */ o("div", {
474
491
  class: "IncodeFlow",
475
- children: /* @__PURE__ */ o(i, {
492
+ children: /* @__PURE__ */ o(s, {
476
493
  config: t,
477
494
  onFinish: () => p.completeModule(),
478
495
  onError: (e) => {
@@ -484,9 +501,9 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
484
501
  let e = t;
485
502
  return /* @__PURE__ */ o("div", {
486
503
  class: "IncodeFlow",
487
- children: /* @__PURE__ */ o(i, {
504
+ children: /* @__PURE__ */ o(s, {
488
505
  config: {
489
- flowId: r,
506
+ flowId: i,
490
507
  checkBusinessName: e.checkBusinessName,
491
508
  checkAddress: e.checkAddress,
492
509
  checkTaxId: e.checkTaxId,
@@ -501,7 +518,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
501
518
  }
502
519
  if (e === "COMBINED_CONSENT") return /* @__PURE__ */ o("div", {
503
520
  class: "IncodeFlow",
504
- children: /* @__PURE__ */ o(i, {
521
+ children: /* @__PURE__ */ o(s, {
505
522
  config: t,
506
523
  onFinish: () => p.completeModule(),
507
524
  onError: (e) => {
@@ -511,7 +528,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
511
528
  });
512
529
  if (e === "MANDATORY_CONSENT") return /* @__PURE__ */ o("div", {
513
530
  class: "IncodeFlow",
514
- children: /* @__PURE__ */ o(i, {
531
+ children: /* @__PURE__ */ o(s, {
515
532
  config: t,
516
533
  onFinish: () => p.completeModule(),
517
534
  onError: (e) => {
@@ -523,7 +540,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
523
540
  let n = t, r = e === "QE_SIGNATURE" ? "qe" : "ae";
524
541
  return /* @__PURE__ */ o("div", {
525
542
  class: "IncodeFlow",
526
- children: /* @__PURE__ */ o(i, {
543
+ children: /* @__PURE__ */ o(s, {
527
544
  config: {
528
545
  uploadDocument: n.uploadDocument,
529
546
  downloadDocument: n.downloadDocument
@@ -537,7 +554,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
537
554
  }
538
555
  if (e === "ANTIFRAUD") return /* @__PURE__ */ o("div", {
539
556
  class: "IncodeFlow",
540
- children: /* @__PURE__ */ o(i, {
557
+ children: /* @__PURE__ */ o(s, {
541
558
  onFinish: () => p.completeModule(),
542
559
  onError: (e) => {
543
560
  a?.(e ?? "Antifraud check error");
@@ -546,7 +563,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
546
563
  });
547
564
  if (e === "CUSTOM_FIELDS") return /* @__PURE__ */ o("div", {
548
565
  class: "IncodeFlow",
549
- children: /* @__PURE__ */ o(i, {
566
+ children: /* @__PURE__ */ o(s, {
550
567
  config: t,
551
568
  onFinish: () => p.completeModule(),
552
569
  onError: (e) => {
@@ -556,7 +573,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
556
573
  });
557
574
  if (e === "WATCHLIST") return /* @__PURE__ */ o("div", {
558
575
  class: "IncodeFlow",
559
- children: /* @__PURE__ */ o(i, {
576
+ children: /* @__PURE__ */ o(s, {
560
577
  onFinish: () => p.completeModule(),
561
578
  onError: (e) => {
562
579
  a?.(e ?? "Watchlist check error");
@@ -565,7 +582,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
565
582
  });
566
583
  if (e === "WATCHLIST_BUSINESS") return /* @__PURE__ */ o("div", {
567
584
  class: "IncodeFlow",
568
- children: /* @__PURE__ */ o(i, {
585
+ children: /* @__PURE__ */ o(s, {
569
586
  onFinish: () => p.completeModule(),
570
587
  onError: (e) => {
571
588
  a?.(e ?? "Watchlist for business check error");
@@ -574,7 +591,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
574
591
  });
575
592
  if (e === "INCODE_WATCHLIST") return /* @__PURE__ */ o("div", {
576
593
  class: "IncodeFlow",
577
- children: /* @__PURE__ */ o(i, {
594
+ children: /* @__PURE__ */ o(s, {
578
595
  config: t,
579
596
  onFinish: () => p.completeModule(),
580
597
  onError: (e) => {
@@ -584,7 +601,7 @@ var W = n(() => import("../homeScreen-DJDHFnIu.js").then((e) => ({ default: e.Ho
584
601
  });
585
602
  if (e === "CROSS_DOCUMENT_DATA_MATCH") return /* @__PURE__ */ o("div", {
586
603
  class: "IncodeFlow",
587
- children: /* @__PURE__ */ o(i, {
604
+ children: /* @__PURE__ */ o(s, {
588
605
  onFinish: () => p.completeModule(),
589
606
  onError: (e) => {
590
607
  a?.(e ?? "Cross document data match error");
@@ -503,6 +503,11 @@
503
503
  font-weight: var(--typography-button-m-underlined-weight);
504
504
  line-height: var(--typography-button-m-underlined-line-height);
505
505
  letter-spacing: var(--typography-button-m-underlined-letter-spacing);
506
+ font-family: var(--typography-button-family);
507
+ font-size: var(--typography-button-m-underlined-size);
508
+ font-weight: var(--typography-button-m-underlined-weight);
509
+ line-height: var(--typography-button-m-underlined-line-height);
510
+ letter-spacing: var(--typography-button-m-underlined-letter-spacing);
506
511
  text-decoration-line: underline;
507
512
  text-decoration-style: solid;
508
513
  text-decoration-thickness: auto;
@@ -4613,6 +4618,51 @@
4613
4618
  }
4614
4619
  }
4615
4620
 
4621
+ @media (min-width: 40rem) {
4622
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4623
+ max-width: 40rem;
4624
+ }
4625
+ }
4626
+
4627
+ @media (min-width: 48rem) {
4628
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4629
+ max-width: 48rem;
4630
+ }
4631
+ }
4632
+
4633
+ @media (min-width: 64rem) {
4634
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4635
+ max-width: 64rem;
4636
+ }
4637
+ }
4638
+
4639
+ @media (min-width: 80rem) {
4640
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4641
+ max-width: 80rem;
4642
+ }
4643
+ }
4644
+
4645
+ @media (min-width: 96rem) {
4646
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4647
+ max-width: 96rem;
4648
+ }
4649
+ }
4650
+
4651
+ @media (min-width: 48rem) {
4652
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4653
+ max-height: var(--incode-page-max-h);
4654
+ max-width: var(--incode-page-max-w);
4655
+ }
4656
+
4657
+ @media not all and (min-width: 80rem) {
4658
+ @media (orientation: landscape) {
4659
+ .IncodeCommonIssuesFullScreen .IncodeModalContent {
4660
+ max-height: var(--incode-page-max-h-landscape);
4661
+ }
4662
+ }
4663
+ }
4664
+ }
4665
+
4616
4666
  .IncodeCommonIssuesFullScreen .IncodeModalContent {
4617
4667
  width: 100%;
4618
4668
  }
@@ -5533,6 +5583,80 @@
5533
5583
  overflow: hidden;
5534
5584
  }
5535
5585
 
5586
+ .IncodeIdOcrPage {
5587
+ width: 100%;
5588
+ height: 100%;
5589
+ margin-inline: auto;
5590
+ animation: .4s ease-out fadeIn;
5591
+ }
5592
+
5593
+ @media (min-width: 48rem) {
5594
+ .IncodeIdOcrPage.IncodePageContainer {
5595
+ align-items: stretch;
5596
+ }
5597
+ }
5598
+
5599
+ .IncodeIdOcrPage .IncodePageInner {
5600
+ height: 100%;
5601
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
5602
+ }
5603
+
5604
+ .IncodeIdOcrPage .IncodePageContent {
5605
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
5606
+ }
5607
+
5608
+ .IncodeIdOcrForm {
5609
+ margin-top: var(--spacing-32, var(--spacing-32, 32px));
5610
+ height: 100%;
5611
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
5612
+ justify-content: flex-start;
5613
+ align-items: center;
5614
+ gap: var(--spacing-16, var(--spacing-16, 16px));
5615
+ flex-direction: column;
5616
+ width: 100%;
5617
+ display: flex;
5618
+ overflow-y: auto;
5619
+ }
5620
+
5621
+ .IncodeIdOcrButton {
5622
+ bottom: var(--spacing-0, var(--spacing-none, 0px));
5623
+ width: 100%;
5624
+ padding-block: var(--spacing-16, var(--spacing-16, 16px));
5625
+ position: sticky;
5626
+ }
5627
+
5628
+ .IncodeIdOcrSpinner {
5629
+ justify-content: center;
5630
+ align-items: center;
5631
+ gap: var(--spacing-16, var(--spacing-16, 16px));
5632
+ flex-direction: column;
5633
+ flex: 1;
5634
+ display: flex;
5635
+ }
5636
+
5637
+ .IncodeIdOcrRadioGroup {
5638
+ width: 100%;
5639
+ max-width: var(--incode-form-max-w);
5640
+ gap: var(--spacing-16, var(--spacing-16, 16px));
5641
+ flex-direction: column;
5642
+ display: flex;
5643
+ }
5644
+
5645
+ .IncodeIdOcrRadioOptionsLabel {
5646
+ font-family: var(--typography-label-family);
5647
+ font-size: var(--typography-label-m-size);
5648
+ font-weight: var(--typography-label-m-weight);
5649
+ line-height: var(--typography-label-m-line-height);
5650
+ letter-spacing: var(--typography-label-m-letter-spacing);
5651
+ color: var(--color-input-text-label-default, var(--input-text-label-default));
5652
+ }
5653
+
5654
+ .IncodeIdOcrRadioOptions {
5655
+ gap: var(--spacing-20, var(--spacing-20, 20px));
5656
+ width: 100%;
5657
+ display: flex;
5658
+ }
5659
+
5536
5660
  .IncodeDocumentUploadPage {
5537
5661
  background-color: var(--color-surface-neutral-900, var(--surface-neutral-900));
5538
5662
  }
@@ -7080,6 +7204,10 @@
7080
7204
  display: inline;
7081
7205
  }
7082
7206
 
7207
+ .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText .markup a, .IncodeConsentPage .IncodeConsentCheckboxLabel .IncodeRichText a {
7208
+ color: var(--color-surface-brand-600, var(--surface-brand-600-static));
7209
+ }
7210
+
7083
7211
  .IncodeConsentPage .IncodeCheckboxRequired {
7084
7212
  margin-left: var(--spacing-0, var(--spacing-none, 0px));
7085
7213
  color: var(--color-text-body-primary, var(--text-body-800-primary));
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./i18n-BnVa5Y-_.js";
2
2
  import { v as t } from "./vendor-preact-D6SntenC.js";
3
- import { t as n } from "./inputComposed-C6nVSZj3.js";
3
+ import { t as n } from "./inputComposed-vU4G5kX-.js";
4
4
  //#region src/shared/errorParams.ts
5
5
  function r(e, t) {
6
6
  if (t?.fieldName && typeof t.fieldName == "string") {
@@ -6,7 +6,7 @@ import { t as a } from "../page-D5Mt-0zn.js";
6
6
  import { t as o } from "../spinner-DyRQfsz_.js";
7
7
  import { h as s, m as c } from "../icons-D3J-STBD.js";
8
8
  import { t as l } from "../successIcon-C4GI_9SU.js";
9
- import { t as u } from "../otpInput-mIxWLuT4.js";
9
+ import { t as u } from "../otpInput-B_ItrMcK.js";
10
10
  import { t as d } from "../incodeModule-DcwjDRyJ.js";
11
11
  import { createGovernmentValidationManager as f } from "@incodetech/core/government-validation";
12
12
  //#region src/modules/governmentValidation/governmentValidation.tsx
package/dist/id/id.es.js CHANGED
@@ -2,7 +2,7 @@ import { n as e } from "../i18n-BnVa5Y-_.js";
2
2
  import { _ as t, c as n, l as r, o as i, v as a } from "../vendor-preact-D6SntenC.js";
3
3
  import { o, t as s } from "../incodeComponent-DEt7nOim.js";
4
4
  import { t as c } from "../page-D5Mt-0zn.js";
5
- import { a as l, i as u, n as d, o as f, r as p, t as m } from "../extensibility-DD-UncEc.js";
5
+ import { a as l, i as u, n as d, o as f, r as p, t as m } from "../extensibility-MwUYctOv.js";
6
6
  import { n as h } from "../loadingIcon-wTrHZMGC.js";
7
7
  import { t as g } from "../spinner-DyRQfsz_.js";
8
8
  import "../spinner-BmFWJNHp.js";
@@ -10,7 +10,7 @@ import { t as _ } from "../transitionSpinner-DLUM_WN2.js";
10
10
  import { t as v } from "../processing-CfA0-82J.js";
11
11
  import { t as y } from "../button-4-ToV5B_.js";
12
12
  import { h as b, s as x } from "../icons-D3J-STBD.js";
13
- import { o as S, r as C } from "../tutorial-D6avi30-.js";
13
+ import { o as S, r as C } from "../tutorial-CAfpDlUG.js";
14
14
  import { t as w } from "../successIcon-C4GI_9SU.js";
15
15
  import { t as T } from "../incodeModule-DcwjDRyJ.js";
16
16
  import { t as E } from "../tabs-Iu2gptzB.js";
@@ -215,11 +215,11 @@ var j = ({ icon: e, label: t, uploaded: n, uploading: i, disabled: o, testId: s,
215
215
  });
216
216
  }, z = !1;
217
217
  function B() {
218
- z || (z = !0, import("../id-tutorial-BVIpezZ1.js"), import("../back-tutorial-DMUliF5W.js"), import("../passport-tutorial-DhEHJZeD.js"));
218
+ z || (z = !0, import("../id-tutorial-DCs88Nov.js"), import("../back-tutorial-BUwYnbyp.js"), import("../passport-tutorial-D8ghyCv5.js"));
219
219
  }
220
220
  //#endregion
221
221
  //#region src/modules/id/id.tsx
222
- var V = n(() => import("../mandatoryConsent-DkPINnNR.js").then((e) => ({ default: e.MandatoryConsent }))), H = ({ config: n, manager: r, onFinish: s, onError: c }) => {
222
+ var V = n(() => import("../mandatoryConsent-Cs8VVPyI.js").then((e) => ({ default: e.MandatoryConsent }))), H = ({ config: n, manager: r, onFinish: s, onError: c }) => {
223
223
  A();
224
224
  let { t: h } = e();
225
225
  t(() => {
@@ -0,0 +1,86 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @keyframes fadeIn {
3
+ from {
4
+ opacity: 0;
5
+ transform: translateY(8px);
6
+ }
7
+
8
+ to {
9
+ opacity: 1;
10
+ transform: translateY(0);
11
+ }
12
+ }
13
+
14
+ .IncodeIdOcrPage {
15
+ width: 100%;
16
+ height: 100%;
17
+ margin-inline: auto;
18
+ animation: .4s ease-out fadeIn;
19
+ }
20
+
21
+ @media (min-width: 48rem) {
22
+ .IncodeIdOcrPage.IncodePageContainer {
23
+ align-items: stretch;
24
+ }
25
+ }
26
+
27
+ .IncodeIdOcrPage .IncodePageInner {
28
+ height: 100%;
29
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
30
+ }
31
+
32
+ .IncodeIdOcrPage .IncodePageContent {
33
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
34
+ }
35
+
36
+ .IncodeIdOcrForm {
37
+ margin-top: var(--spacing-32, var(--spacing-32, 32px));
38
+ height: 100%;
39
+ min-height: var(--spacing-0, var(--spacing-none, 0px));
40
+ justify-content: flex-start;
41
+ align-items: center;
42
+ gap: var(--spacing-16, var(--spacing-16, 16px));
43
+ flex-direction: column;
44
+ width: 100%;
45
+ display: flex;
46
+ overflow-y: auto;
47
+ }
48
+
49
+ .IncodeIdOcrButton {
50
+ bottom: var(--spacing-0, var(--spacing-none, 0px));
51
+ width: 100%;
52
+ padding-block: var(--spacing-16, var(--spacing-16, 16px));
53
+ position: sticky;
54
+ }
55
+
56
+ .IncodeIdOcrSpinner {
57
+ justify-content: center;
58
+ align-items: center;
59
+ gap: var(--spacing-16, var(--spacing-16, 16px));
60
+ flex-direction: column;
61
+ flex: 1;
62
+ display: flex;
63
+ }
64
+
65
+ .IncodeIdOcrRadioGroup {
66
+ width: 100%;
67
+ max-width: var(--incode-form-max-w);
68
+ gap: var(--spacing-16, var(--spacing-16, 16px));
69
+ flex-direction: column;
70
+ display: flex;
71
+ }
72
+
73
+ .IncodeIdOcrRadioOptionsLabel {
74
+ font-family: var(--typography-label-family);
75
+ font-size: var(--typography-label-m-size);
76
+ font-weight: var(--typography-label-m-weight);
77
+ line-height: var(--typography-label-m-line-height);
78
+ letter-spacing: var(--typography-label-m-letter-spacing);
79
+ color: var(--color-input-text-label-default, var(--input-text-label-default));
80
+ }
81
+
82
+ .IncodeIdOcrRadioOptions {
83
+ gap: var(--spacing-20, var(--spacing-20, 20px));
84
+ width: 100%;
85
+ display: flex;
86
+ }
@@ -0,0 +1,95 @@
1
+ import { n as e } from "./i18n-BnVa5Y-_.js";
2
+ import { v as t } from "./vendor-preact-D6SntenC.js";
3
+ import { o as n, t as r } from "./incodeComponent-DEt7nOim.js";
4
+ import { t as i } from "./page-D5Mt-0zn.js";
5
+ import "./extensibility-MwUYctOv.js";
6
+ import { t as a } from "./spinner-DyRQfsz_.js";
7
+ import { t as o } from "./button-4-ToV5B_.js";
8
+ import { t as s } from "./inputComposed-vU4G5kX-.js";
9
+ import { t as c } from "./dateInputComposed-DUP8vYwk.js";
10
+ import { t as l } from "./radioButtonComposed-CPBFQBXi.js";
11
+ import { t as u } from "./incodeModule-DcwjDRyJ.js";
12
+ import { createIdOcrManager as d, getOcrFields as f } from "@incodetech/core/id-ocr";
13
+ //#region src/modules/id-ocr/idOcrForm.tsx
14
+ var p = {
15
+ text: s,
16
+ date: c
17
+ }, m = ({ fields: n, data: r, validationErrors: i, isReadonly: a, onChange: s, onBlur: c, onContinue: u }) => {
18
+ let { t: d } = e(), f = i && Object.keys(i).length > 0;
19
+ return /* @__PURE__ */ t("div", {
20
+ className: "IncodeIdOcrForm",
21
+ children: [(n.length === 1 && n[0]?.key === "documentNumber" ? n : n.filter((e) => e.key === "documentNumber" ? !!r.documentNumber : e.key === "issuingCountry" ? a === !0 : !0)).map((e) => {
22
+ let n = r[e.key] ?? "", o = i?.[e.key], u = o ? d(o) : void 0;
23
+ if (e.type === "radio") return /* @__PURE__ */ t("div", {
24
+ className: "IncodeIdOcrRadioGroup",
25
+ children: [/* @__PURE__ */ t("label", {
26
+ className: "IncodeIdOcrRadioOptionsLabel",
27
+ htmlFor: e.key,
28
+ children: `${!a && e.required ? "*" : ""}${d(e.labelKey)}`
29
+ }), /* @__PURE__ */ t("div", {
30
+ className: "IncodeIdOcrRadioOptions",
31
+ children: e.options?.map((r) => /* @__PURE__ */ t(l, {
32
+ id: `id-ocr-${e.key}`,
33
+ label: d(r.label),
34
+ checked: n === r.value,
35
+ value: r.value,
36
+ disabled: a,
37
+ onChange: () => s(e.key, r.value)
38
+ }, `${e.key}-${r.value}`))
39
+ })]
40
+ });
41
+ let f = p[e.type], m = a ? !1 : e.required, h = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
42
+ return /* @__PURE__ */ t(f, {
43
+ id: `id-ocr-${e.key}`,
44
+ label: d(e.labelKey),
45
+ value: n,
46
+ disabled: a,
47
+ required: m,
48
+ error: u,
49
+ showErrorIcon: !!u,
50
+ onInput: (t) => s(e.key, t.target.value),
51
+ onBlur: a || !c ? void 0 : () => c(e.key),
52
+ ...e.type === "date" && { max: h }
53
+ }, e.key);
54
+ }), /* @__PURE__ */ t("div", {
55
+ className: "IncodeIdOcrButton",
56
+ children: /* @__PURE__ */ t(o, {
57
+ onClick: u,
58
+ disabled: f,
59
+ children: d("common.continue")
60
+ })
61
+ })]
62
+ });
63
+ }, h = ({ config: r, onFinish: o, onError: s }) => {
64
+ let { t: c } = e(), [l, u] = n(() => d({ config: r }));
65
+ return l.status === "finished" ? (o?.(), null) : l.status === "error" ? (s?.(l.error), null) : l.status === "loading" || l.status === "submitting" ? /* @__PURE__ */ t(i, {
66
+ hideHeader: !0,
67
+ hideFooterBranding: !0,
68
+ children: /* @__PURE__ */ t("div", {
69
+ class: "IncodeIdOcrSpinner",
70
+ children: /* @__PURE__ */ t(a, {
71
+ size: "large",
72
+ title: c("common.processing")
73
+ })
74
+ })
75
+ }) : l.status === "readonly" || l.status === "inputting" ? /* @__PURE__ */ t(i, {
76
+ title: c("idOcr.title"),
77
+ className: "IncodeIdOcrPage",
78
+ children: /* @__PURE__ */ t(m, {
79
+ fields: f(r),
80
+ data: l.formData,
81
+ validationErrors: l.status === "inputting" ? l.validationErrors : void 0,
82
+ isReadonly: l.status === "readonly",
83
+ onChange: (e, t) => u.setField(e, t),
84
+ onBlur: l.status === "inputting" ? (e) => u.validateField(e) : void 0,
85
+ onContinue: () => u.continue()
86
+ }, l.ocrDocument)
87
+ }) : null;
88
+ }, g = ({ config: e, onFinish: n, onError: i }) => /* @__PURE__ */ t(r, { children: e ? /* @__PURE__ */ t(h, {
89
+ config: e,
90
+ onFinish: n,
91
+ onError: i
92
+ }) : null });
93
+ u(g, "incode-id-ocr");
94
+ //#endregion
95
+ export { g as IdOcr };
@@ -0,0 +1 @@
1
+ import "./inputComposed-vU4G5kX-.js";
@@ -20,7 +20,10 @@ var o = e((e, r) => {
20
20
  class: "IncodeInputComposedLabel",
21
21
  htmlFor: e,
22
22
  "data-testid": `${e}-label`,
23
- children: s
23
+ children: [g && /* @__PURE__ */ t("span", {
24
+ className: "IncodeInputComposedAsterics",
25
+ children: "*"
26
+ }), s]
24
27
  }),
25
28
  /* @__PURE__ */ t("div", {
26
29
  class: "IncodeInputComposedWrapper",