@incodetech/web 0.0.0-dev-20260320-80a2d6d → 0.0.0-dev-20260323-4991693

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.
@@ -1,8 +1,8 @@
1
1
  import { d, y as M, A as F, q as K } from "./vendor-preact--mDTxXnt.js";
2
2
  import { b as Q, u as l } from "./button-Yr39X4SE.js";
3
3
  import "./uiConfig-CKJmKRCo.js";
4
- import { t as R } from "./formField-6BHE59Av.js";
5
- import { a as q } from "./inputComposed-n2VIh213.js";
4
+ import { t as R } from "./formField-DpLYKGUE.js";
5
+ import { a as q } from "./inputComposed-BOGdXswZ.js";
6
6
  import "@incodetech/core";
7
7
  import { u as z } from "./useMediaQuery-DSN9IIfj.js";
8
8
  function J(c, f) {
@@ -8,7 +8,7 @@ import { S as D } from "../successIcon-CjkBWk8J.js";
8
8
  import { P as p } from "../page-DO2rYslN.js";
9
9
  import { S as k } from "../spinner-Djok6FY8.js";
10
10
  import { r as E } from "../incodeModule-Bxzkb7nW.js";
11
- import { a as C } from "../inputComposed-n2VIh213.js";
11
+ import { a as C } from "../inputComposed-BOGdXswZ.js";
12
12
  import { D as F } from "../dateInputComposed-CjfYBUJj.js";
13
13
  import { D as P } from "../dropdownComposed-DLZ4R_VD.js";
14
14
  const T = ({
@@ -3,13 +3,13 @@ import { SUPPORTED_COUNTRIES as M, DEV_ONLY_COUNTRIES as x, computeEkybDisplayEr
3
3
  import { T as q, y as V, A as D, d as oe, q as C, k as re } from "./vendor-preact--mDTxXnt.js";
4
4
  import "./uiConfig-CKJmKRCo.js";
5
5
  import "@incodetech/core";
6
- import { u as ne, A as se } from "./addressAutocomplete-D7g-naeA.js";
6
+ import { u as ne, A as se } from "./addressAutocomplete-C69qGh5F.js";
7
7
  import { P as K } from "./page-DO2rYslN.js";
8
8
  import { S as ae } from "./spinner-Djok6FY8.js";
9
- import { t as G, F as le, V as P } from "./formField-6BHE59Av.js";
9
+ import { t as G, F as le, V as P } from "./formField-DpLYKGUE.js";
10
10
  import { r as ce } from "./incodeModule-Bxzkb7nW.js";
11
11
  import { D as Y } from "./dropdownComposed-DLZ4R_VD.js";
12
- import { a as _ } from "./inputComposed-n2VIh213.js";
12
+ import { a as _ } from "./inputComposed-BOGdXswZ.js";
13
13
  function ue(t) {
14
14
  return [...t.toUpperCase()].map((r) => String.fromCodePoint(127462 + r.charCodeAt(0) - 65)).join("");
15
15
  }
@@ -3,14 +3,14 @@ import { computeEkycDisplayErrors as j, createEkycManager as z } from "@incodete
3
3
  import { y as q, A as F, d as J, q as E, T as Q } from "./vendor-preact--mDTxXnt.js";
4
4
  import "./uiConfig-CKJmKRCo.js";
5
5
  import "@incodetech/core";
6
- import { u as U, A as W } from "./addressAutocomplete-D7g-naeA.js";
7
- import { V as v, t as X, F as Z } from "./formField-6BHE59Av.js";
6
+ import { u as U, A as W } from "./addressAutocomplete-C69qGh5F.js";
7
+ import { V as v, t as X, F as Z } from "./formField-DpLYKGUE.js";
8
8
  import { D as f } from "./dateInputComposed-CjfYBUJj.js";
9
9
  import { D as ee } from "./dropdownComposed-DLZ4R_VD.js";
10
10
  import { P as T } from "./page-DO2rYslN.js";
11
11
  import { S as re } from "./spinner-Djok6FY8.js";
12
12
  import { r as oe } from "./incodeModule-Bxzkb7nW.js";
13
- import { P as te } from "./phoneInputComposed-C66n6e7L.js";
13
+ import { P as te } from "./phoneInputComposed-kkWl6RLT.js";
14
14
  const ae = ({ config: p, onFinish: s }) => {
15
15
  const { t: l } = $(), [a, d] = G(() => z({ config: p }));
16
16
  return q(() => {
@@ -2,7 +2,7 @@ import { u as e, S as g, I as v, b as O, a as y, B as C } from "../button-Yr39X4
2
2
  import { createEmailManager as P } from "@incodetech/core/email";
3
3
  import { d as f, y as k, k as w } from "../vendor-preact--mDTxXnt.js";
4
4
  import "@incodetech/core";
5
- import { O as L } from "../otpInput-2bT7uNnk.js";
5
+ import { O as L } from "../otpInput-BfCYQ0Km.js";
6
6
  import { P as E } from "../page-DO2rYslN.js";
7
7
  import { r as S } from "../incodeModule-Bxzkb7nW.js";
8
8
  import "../uiConfig-CKJmKRCo.js";
@@ -6,15 +6,15 @@ import { C as H, F as M, M as V } from "./fileIcon--4cgz7hZ.js";
6
6
  import { S as E, T as k, a as D, b as w, c as A, d as R, e as U } from "./spinner-Djok6FY8.js";
7
7
  import { P as W } from "./processing-BGKugkCh.js";
8
8
  import { E as z } from "./errorContent-LcOhVnBZ.js";
9
- import { F as J, V as K } from "./formField-6BHE59Av.js";
9
+ import { F as J, V as K } from "./formField-DpLYKGUE.js";
10
10
  import { a as Q, C as X, c as Y, b as Z, e as _, d as $, H as aa, L as ea, P as ra } from "./captureFooter-Dum5qpdZ.js";
11
- import { I as ta, a as sa } from "./inputComposed-n2VIh213.js";
12
- import { O as pa } from "./otpInput-2bT7uNnk.js";
11
+ import { I as ta, a as sa } from "./inputComposed-BOGdXswZ.js";
12
+ import { O as pa } from "./otpInput-BfCYQ0Km.js";
13
13
  import { C as ia, a as ua } from "./checkbox-BkW6ZbEQ.js";
14
- import { P as ma } from "./phoneInputComposed-C66n6e7L.js";
14
+ import { P as ma } from "./phoneInputComposed-kkWl6RLT.js";
15
15
  import { D as Ca, S as fa } from "./dropdownComposed-DLZ4R_VD.js";
16
16
  import { C as xa, D as ha } from "./dateInputComposed-CjfYBUJj.js";
17
- import { f as ya, C as Ta, c as Sa, I as va, d as Ba, F as Fa, b as Pa, S as La, T as ba, a as Ha, e as Ma, V as Va } from "./flipAnimation-CJfs4vnz.js";
17
+ import { f as ya, C as Ta, c as Sa, I as va, d as Ba, F as Fa, b as Pa, S as La, T as ba, a as Ha, e as Ma, V as Va } from "./flipAnimation-C5DtSdAY.js";
18
18
  import { A as i, y as u, q as l } from "./vendor-preact--mDTxXnt.js";
19
19
  import { B as Ea, L as ka, P as Da } from "./manualCaptureButton-CtHbJjgz.js";
20
20
  import { C as Aa } from "./chevronDown-CsZysK60.js";
@@ -6,9 +6,9 @@ import { T as H, S as z } from "./spinner-Djok6FY8.js";
6
6
  import { L as K, P as j, c as q, a as Q, d as J, C as X, b as Y } from "./captureFooter-Dum5qpdZ.js";
7
7
  import { L as k, B as e1 } from "./manualCaptureButton-CtHbJjgz.js";
8
8
  import "@incodetech/core";
9
- import "./inputComposed-n2VIh213.js";
9
+ import "./inputComposed-BOGdXswZ.js";
10
10
  import "./checkbox-BkW6ZbEQ.js";
11
- import "./phoneInputComposed-C66n6e7L.js";
11
+ import "./phoneInputComposed-kkWl6RLT.js";
12
12
  import "./dateInputComposed-CjfYBUJj.js";
13
13
  import { E as t1 } from "./errorIcon-DOyZZgsP.js";
14
14
  import { S as i1 } from "./successIcon-CjkBWk8J.js";
@@ -2001,8 +2001,8 @@ const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
2001
2001
  (e) => e.GovernmentValidation
2002
2002
  ),
2003
2003
  GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
2004
- EXTERNAL_VERIFICATION: () => import("../ekycModule-BggwsBOH.js").then((e) => e.EkycModule),
2005
- EKYB: () => import("../ekybModule-CmnlKxKS.js").then((e) => e.EkybModule),
2004
+ EXTERNAL_VERIFICATION: () => import("../ekycModule-Dx6rX4_y.js").then((e) => e.EkycModule),
2005
+ EKYB: () => import("../ekybModule-HZYjE90U.js").then((e) => e.EkybModule),
2006
2006
  DOCUMENT_CAPTURE: () => import("../documentCapture-DGJU-4sT.js").then(
2007
2007
  (e) => e.DocumentCapture
2008
2008
  ),
@@ -181,11 +181,6 @@
181
181
  }
182
182
  }
183
183
 
184
- .IncodeSelfieMain {
185
- width: 100%;
186
- height: 100%;
187
- }
188
-
189
184
  .IncodeCameraButton {
190
185
  justify-content: center;
191
186
  align-items: center;
@@ -387,274 +382,12 @@
387
382
  .IncodePhonePage .IncodePageContent {
388
383
  padding-top: var(--spacing-32, var(--spacing-32, 32px));
389
384
  padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
390
- }
391
-
392
- .IncodePhonePage .IncodePhoneInput, .IncodePhonePage .IncodePhoneInputContainer {
393
- flex-direction: column;
394
385
  align-items: center;
395
- width: 100%;
396
- display: flex;
397
386
  }
398
387
 
399
- .IncodePhonePage .IncodePhoneInputRow {
400
- align-items: stretch;
401
- gap: var(--spacing-8, var(--spacing-8, 8px));
388
+ .IncodePhoneInputContainer {
402
389
  width: 100%;
403
- max-width: 340px;
404
- display: flex;
405
- position: relative;
406
- }
407
-
408
- .IncodePhonePage .IncodePhoneInputWrapper {
409
- border-radius: var(--radius-small, var(--border-radius-small));
410
- border-style: var(--tw-border-style);
411
- border-width: 1px;
412
- border-color: var(--color-input-border-default, var(--input-border-default));
413
- background-color: var(--color-input-surface-default, var(--input-surface-default));
414
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
415
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
416
- transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
417
- --tw-duration: .2s;
418
- flex: 1;
419
- align-items: center;
420
- transition-duration: .2s;
421
- display: flex;
422
- }
423
-
424
- .IncodePhonePage .IncodePhoneInputWrapper:focus-within {
425
- border-color: var(--color-input-border-focused, var(--input-border-focused));
426
- }
427
-
428
- .IncodePhonePage .IncodePhoneInputWrapper.IncodePhoneInputWrapperError {
429
- border-color: var(--color-input-border-negative, var(--input-border-negative));
430
- }
431
-
432
- .IncodePhonePage .IncodePhoneInputWrapper.IncodePhoneInputWrapperDisabled {
433
- border-color: var(--color-input-border-disabled, var(--input-border-disabled));
434
- background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
435
- }
436
-
437
- .IncodePhonePage .IncodePhoneCountrySelector {
438
- border-radius: var(--radius-small, var(--border-radius-small));
439
- border-style: var(--tw-border-style);
440
- border-width: 1px;
441
- border-color: var(--color-input-border-default, var(--input-border-default));
442
- background-color: var(--color-input-surface-default, var(--input-surface-default));
443
- width: 124px;
444
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
445
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
446
- transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
447
- --tw-duration: .2s;
448
- flex-shrink: 0;
449
- transition-duration: .2s;
450
- position: static;
451
- }
452
-
453
- .IncodePhonePage .IncodePhoneCountrySelector.IncodePhoneCountrySelectorOpen {
454
- border-color: var(--color-input-border-focused, var(--input-border-focused));
455
- }
456
-
457
- .IncodePhonePage .IncodePhoneCountrySelector.IncodePhoneCountrySelectorDisabled {
458
- border-color: var(--color-input-border-disabled, var(--input-border-disabled));
459
- background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
460
- }
461
-
462
- .IncodePhonePage .IncodePhoneCountryButton {
463
- width: 100%;
464
- height: 100%;
465
- padding: var(--spacing-8, var(--spacing-8, 8px));
466
- padding-left: var(--spacing-16, var(--spacing-16, 16px));
467
- cursor: pointer;
468
- border-style: var(--tw-border-style);
469
- border-width: var(--border-width-none, var(--primitive-border-width-0));
470
- --tw-border-style: none;
471
- font-size: var(--text-18, var(--primitive-typography-size-18));
472
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
473
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
474
- color: var(--color-text-body-primary, var(--text-body-800-primary));
475
- border-radius: var(--radius-small, var(--border-radius-small));
476
- background-color: #0000;
477
- border-style: none;
478
- justify-content: center;
479
- align-items: center;
480
- font-family: inherit;
481
- display: flex;
482
- }
483
-
484
- .IncodePhonePage .IncodePhoneCountryButton:disabled {
485
- cursor: not-allowed;
486
- color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
487
- }
488
-
489
- .IncodePhonePage .IncodePhoneCountryButton:focus {
490
- --tw-outline-style: none;
491
- outline-style: none;
492
- }
493
-
494
- .IncodePhonePage .IncodePhoneCountryFlag {
495
- font-size: var(--text-24, var(--primitive-typography-size-24));
496
- --tw-leading: 1;
497
- line-height: 1;
498
- }
499
-
500
- .IncodePhonePage .IncodePhoneCountryCode {
501
- margin-left: var(--spacing-4, var(--spacing-4, 4px));
502
- font-size: var(--text-18, var(--primitive-typography-size-18));
503
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
504
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
505
- white-space: nowrap;
506
- color: var(--color-text-body-primary, var(--text-body-800-primary));
507
- }
508
-
509
- .IncodePhonePage .IncodePhoneCountryArrow {
510
- margin-left: var(--spacing-8, var(--spacing-8, 8px));
511
- height: var(--spacing-24, var(--spacing-24, 24px));
512
- width: var(--spacing-24, var(--spacing-24, 24px));
513
- color: var(--color-icon-neutral-500, var(--icon-neutral-500));
514
- transition-property: transform, translate, scale, rotate;
515
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
516
- transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
517
- --tw-duration: .2s;
518
- transition-duration: .2s;
519
- }
520
-
521
- .IncodePhonePage .IncodePhoneCountryArrowUp {
522
- rotate: 180deg;
523
- }
524
-
525
- .IncodePhonePage .IncodePhoneCountryButton:disabled .IncodePhoneCountryArrow {
526
- color: var(--color-icon-neutral-300, var(--icon-neutral-300));
527
- }
528
-
529
- .IncodePhonePage .IncodePhoneCountryDropdown {
530
- top: 100%;
531
- right: var(--spacing-0, var(--spacing-none, 0px));
532
- left: var(--spacing-0, var(--spacing-none, 0px));
533
- z-index: 50;
534
- margin-top: var(--spacing-8, var(--spacing-8, 8px));
535
- border-radius: var(--radius-small, var(--border-radius-small));
536
- border-style: var(--tw-border-style);
537
- border-width: 1px;
538
- border-color: var(--color-input-border-default, var(--input-border-default));
539
- background-color: var(--color-surface-neutral-0, var(--surface-neutral-0));
540
- max-height: 320px;
541
- padding: var(--spacing-8, var(--spacing-8, 8px));
542
- position: absolute;
543
- overflow-y: auto;
544
- box-shadow: 0 4px 16px #0000001f;
545
- }
546
-
547
- .IncodePhonePage .IncodePhoneCountryOption {
548
- cursor: pointer;
549
- align-items: center;
550
- gap: var(--spacing-12, var(--spacing-12, 12px));
551
- border-radius: var(--radius-small, var(--border-radius-small));
552
- width: 100%;
553
- padding-inline: var(--spacing-12, var(--spacing-12, 12px));
554
- padding-block: var(--spacing-12, var(--spacing-12, 12px));
555
- font-size: var(--text-16, var(--primitive-typography-size-16));
556
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
557
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
558
- color: var(--color-text-body-primary, var(--text-body-800-primary));
559
- border-style: var(--tw-border-style);
560
- border-width: var(--border-width-none, var(--primitive-border-width-0));
561
- --tw-border-style: none;
562
- text-align: left;
563
- background-color: #0000;
564
- border-style: none;
565
- font-family: inherit;
566
- display: flex;
567
- }
568
-
569
- .IncodePhonePage .IncodePhoneCountryOption:hover {
570
- background-color: var(--color-surface-neutral-100, var(--surface-neutral-100));
571
- }
572
-
573
- .IncodePhonePage .IncodePhoneCountryOption:focus {
574
- background-color: var(--color-surface-neutral-100, var(--surface-neutral-100));
575
- --tw-outline-style: none;
576
- outline-style: none;
577
- }
578
-
579
- .IncodePhonePage .IncodePhoneCountryOptionSelected, .IncodePhonePage .IncodePhoneCountryOptionSelected:hover {
580
- background-color: var(--color-surface-brand-50, var(--surface-brand-50));
581
- }
582
-
583
- .IncodePhonePage .IncodePhoneCountryOptionCode {
584
- min-width: 52px;
585
- font-size: var(--text-16, var(--primitive-typography-size-16));
586
- color: var(--color-text-body-secondary, var(--text-body-500-secondary));
587
- }
588
-
589
- .IncodePhonePage .IncodePhoneCountryOptionName {
590
- text-overflow: ellipsis;
591
- white-space: nowrap;
592
- font-size: var(--text-16, var(--primitive-typography-size-16));
593
- color: var(--color-text-body-primary, var(--text-body-800-primary));
594
- flex: 1;
595
- overflow: hidden;
596
- }
597
-
598
- .IncodePhonePage .IncodePhoneInputField {
599
- border-style: var(--tw-border-style);
600
- border-width: var(--border-width-none, var(--primitive-border-width-0));
601
- --tw-border-style: none;
602
- width: 100%;
603
- padding-inline: var(--spacing-16, var(--spacing-16, 16px));
604
- padding-block: var(--spacing-16, var(--spacing-16, 16px));
605
- font-size: var(--text-18, var(--primitive-typography-size-18));
606
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
607
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
608
- color: var(--color-input-text-field-default, var(--input-text-field-default));
609
- --tw-outline-style: none;
610
- border-radius: var(--radius-small, var(--border-radius-small));
611
- background-color: #0000;
612
- border-style: none;
613
- outline-style: none;
614
- }
615
-
616
- .IncodePhonePage .IncodePhoneInputField::placeholder {
617
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
618
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
619
- color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
620
- }
621
-
622
- .IncodePhonePage .IncodePhoneInputField:disabled {
623
- cursor: not-allowed;
624
- color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
625
- }
626
-
627
- .IncodePhonePage .IncodePhoneInputError {
628
- margin: var(--spacing-0, var(--spacing-none, 0px));
629
- text-align: center;
630
- font-size: var(--text-14, var(--primitive-typography-size-14));
631
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
632
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
633
- color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
634
- }
635
-
636
- .IncodePhonePage .IncodePhoneInputOptIn {
637
- cursor: pointer;
638
- align-items: center;
639
- gap: var(--spacing-8, var(--spacing-8, 8px));
640
- font-size: var(--text-14, var(--primitive-typography-size-14));
641
- color: var(--color-checkbox-text-default, var(--checkbox-text-default));
642
- display: flex;
643
- }
644
-
645
- .IncodePhonePage .IncodePhoneInputOptIn input[type="checkbox"] {
646
- cursor: pointer;
647
- border-radius: var(--radius-checkbox, var(--checkbox-border-radius));
648
- width: 18px;
649
- height: 18px;
650
- accent-color: var(--color-checkbox-surface-selected, var(--checkbox-surface-selected));
651
- }
652
-
653
- .IncodePhonePage .IncodePhoneInputOptIn span {
654
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
655
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
656
- -webkit-user-select: none;
657
- user-select: none;
390
+ max-width: 420px;
658
391
  }
659
392
 
660
393
  .IncodeEmailPage .IncodePageContent {
@@ -1411,11 +1144,6 @@
1411
1144
  margin-top: var(--spacing-8, var(--spacing-8, 8px));
1412
1145
  }
1413
1146
 
1414
- .IncodeIdMain {
1415
- width: 100%;
1416
- height: 100%;
1417
- }
1418
-
1419
1147
  .IncodeSrOnly {
1420
1148
  clip-path: inset(50%);
1421
1149
  white-space: nowrap;
@@ -5,7 +5,7 @@ import { E as y } from "./errorIcon-DOyZZgsP.js";
5
5
  import { S as F } from "./successIcon-CjkBWk8J.js";
6
6
  import { P as m } from "./page-DO2rYslN.js";
7
7
  import { S as E } from "./spinner-Djok6FY8.js";
8
- import { a as S } from "./inputComposed-n2VIh213.js";
8
+ import { a as S } from "./inputComposed-BOGdXswZ.js";
9
9
  const A = ({
10
10
  status: i,
11
11
  submittingTitle: t,
@@ -6,7 +6,7 @@ import "../uiConfig-CKJmKRCo.js";
6
6
  import { E as h } from "../errorIcon-DOyZZgsP.js";
7
7
  import { S as c } from "../successIcon-CjkBWk8J.js";
8
8
  import { W as I } from "../warningIcon-DgHOtF9T.js";
9
- import { O as V } from "../otpInput-2bT7uNnk.js";
9
+ import { O as V } from "../otpInput-BfCYQ0Km.js";
10
10
  import { P as r } from "../page-DO2rYslN.js";
11
11
  import { S as G } from "../spinner-Djok6FY8.js";
12
12
  import { r as S } from "../incodeModule-Bxzkb7nW.js";
package/dist/id/id.es.js CHANGED
@@ -1,40 +1,40 @@
1
- import { u as r, I as u, a as d } from "../button-Yr39X4SE.js";
2
- import { createIdCaptureManager as m } from "@incodetech/core/id";
1
+ import { u as r, I as u, a as m } from "../button-Yr39X4SE.js";
2
+ import { createIdCaptureManager as d } from "@incodetech/core/id";
3
3
  import "../vendor-preact--mDTxXnt.js";
4
4
  import "@incodetech/core";
5
- import { P as c } from "../manualCaptureButton-CtHbJjgz.js";
6
- import { r as p } from "../incodeModule-Bxzkb7nW.js";
7
- import { P as l } from "../processing-BGKugkCh.js";
8
- import { c as f, b as I, F as a, C as g, d as h, I as C } from "../flipAnimation-CJfs4vnz.js";
5
+ import { P as p } from "../manualCaptureButton-CtHbJjgz.js";
6
+ import { r as f } from "../incodeModule-Bxzkb7nW.js";
7
+ import { P as c } from "../processing-BGKugkCh.js";
8
+ import { c as l, b as I, F as a, C as g, d as h, I as C } from "../flipAnimation-C5DtSdAY.js";
9
9
  import "../uiConfig-CKJmKRCo.js";
10
10
  import "../spinner-Djok6FY8.js";
11
11
  const F = ({
12
- config: i,
13
- manager: e,
12
+ config: e,
13
+ manager: i,
14
14
  onFinish: n,
15
15
  onError: o
16
16
  }) => {
17
- const [t, s] = d(
18
- () => e ?? m({ config: i }),
19
- { manageLifecycle: !e }
17
+ const [t, s] = m(
18
+ () => i ?? d({ config: e }),
19
+ { manageLifecycle: !i }
20
20
  );
21
- return t.status === "idle" || t.status === "loading" ? null : t.status === "chooser" ? /* @__PURE__ */ r(f, { manager: s, state: t }) : t.status === "tutorial" ? /* @__PURE__ */ r(I, { manager: s, state: t }) : t.status === "permissions" ? /* @__PURE__ */ r(
22
- c,
21
+ return t.status === "idle" || t.status === "loading" ? null : t.status === "chooser" ? /* @__PURE__ */ r(l, { manager: s, state: t }) : t.status === "tutorial" ? /* @__PURE__ */ r(I, { manager: s, state: t }) : t.status === "permissions" ? /* @__PURE__ */ r(
22
+ p,
23
23
  {
24
24
  manager: s,
25
25
  permissionStatus: t.permissionStatus
26
26
  }
27
- ) : t.status === "frontFinished" ? /* @__PURE__ */ r(a, { manager: s, direction: "toBack" }) : t.status === "backFinished" ? /* @__PURE__ */ r(a, { manager: s, direction: "toFront" }) : t.status === "capture" ? /* @__PURE__ */ r(g, { manager: s, state: t, onFinish: () => n?.() }) : t.status === "processing" ? /* @__PURE__ */ r(l, {}) : t.status === "expired" ? /* @__PURE__ */ r(h, { manager: s }) : t.status === "finished" ? (n?.(), null) : t.status === "closed" ? (o?.(void 0), null) : t.status === "error" ? /* @__PURE__ */ r(C, { manager: s, state: t, onError: o }) : null;
28
- }, P = ({ config: i, manager: e, onFinish: n, onError: o }) => /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r("div", { class: "IncodeIdMain", children: i ? /* @__PURE__ */ r(
27
+ ) : t.status === "frontFinished" ? /* @__PURE__ */ r(a, { manager: s, direction: "toBack" }) : t.status === "backFinished" ? /* @__PURE__ */ r(a, { manager: s, direction: "toFront" }) : t.status === "capture" ? /* @__PURE__ */ r(g, { manager: s, state: t, onFinish: () => n?.() }) : t.status === "processing" ? /* @__PURE__ */ r(c, {}) : t.status === "expired" ? /* @__PURE__ */ r(h, { manager: s }) : t.status === "finished" ? (n?.(), null) : t.status === "closed" ? (o?.(void 0), null) : t.status === "error" ? /* @__PURE__ */ r(C, { manager: s, state: t, onError: o }) : null;
28
+ }, P = ({ config: e, manager: i, onFinish: n, onError: o }) => /* @__PURE__ */ r(u, { children: e ? /* @__PURE__ */ r(
29
29
  F,
30
30
  {
31
- config: i,
32
- manager: e,
31
+ config: e,
32
+ manager: i,
33
33
  onFinish: n,
34
34
  onError: o
35
35
  }
36
- ) : null }) });
37
- p(P, "incode-id");
36
+ ) : null });
37
+ f(P, "incode-id");
38
38
  export {
39
39
  P as Id
40
40
  };
@@ -11,11 +11,6 @@
11
11
  }
12
12
  }
13
13
 
14
- .IncodeIdMain {
15
- width: 100%;
16
- height: 100%;
17
- }
18
-
19
14
  .IncodeSrOnly {
20
15
  clip-path: inset(50%);
21
16
  white-space: nowrap;
@@ -4,13 +4,13 @@ import { C as W } from "./closeIcon-DrD_JWne.js";
4
4
  import { E as y } from "./errorIcon-DOyZZgsP.js";
5
5
  import { S as E } from "./successIcon-CjkBWk8J.js";
6
6
  const w = u((e, n) => {
7
- const { class: a, type: s = "text", ...r } = e;
7
+ const { class: a, type: t = "text", ...r } = e;
8
8
  return /* @__PURE__ */ o(
9
9
  "input",
10
10
  {
11
11
  ...r,
12
12
  ref: n,
13
- type: s,
13
+ type: t,
14
14
  class: m("IncodeInput", a)
15
15
  }
16
16
  );
@@ -19,19 +19,19 @@ const w = u((e, n) => {
19
19
  id: e,
20
20
  label: n,
21
21
  "aria-label": a,
22
- type: s,
22
+ type: t,
23
23
  error: r,
24
24
  showErrorIcon: C,
25
- helper: t,
25
+ helper: s,
26
26
  showHelperIcon: h,
27
- closeButton: p,
28
- required: l,
27
+ closeButton: l,
28
+ required: p,
29
29
  suppressMessages: d = !1,
30
30
  class: v,
31
31
  value: c,
32
32
  ...b
33
33
  }, f) => {
34
- const i = `${e}-helper`, I = `${e}-error`, $ = d ? "" : [t ? i : null, r ? I : null].filter(Boolean).join(" ");
34
+ const i = `${e}-helper`, I = `${e}-error`, $ = d ? "" : [s ? i : null, r ? I : null].filter(Boolean).join(" ");
35
35
  return /* @__PURE__ */ o("div", { class: m("IncodeInputComposed", v), children: [
36
36
  n && /* @__PURE__ */ o(
37
37
  "label",
@@ -47,25 +47,25 @@ const w = u((e, n) => {
47
47
  w,
48
48
  {
49
49
  id: e,
50
- type: s,
50
+ type: t,
51
51
  ...b,
52
52
  ref: f,
53
- required: l,
53
+ required: p,
54
54
  "data-has-value": !!(c && String(c).length > 0),
55
55
  ...!n && a ? { "aria-label": a } : {},
56
56
  "aria-describedby": $ || void 0,
57
- "aria-required": l ? "true" : void 0,
57
+ "aria-required": p ? "true" : void 0,
58
58
  "aria-invalid": r ? "true" : void 0,
59
59
  value: c
60
60
  }
61
61
  ),
62
- p?.show && /* @__PURE__ */ o(
62
+ l?.show && /* @__PURE__ */ o(
63
63
  "button",
64
64
  {
65
65
  type: "button",
66
66
  "aria-label": "Clear",
67
67
  class: "IncodeInputComposedClearButton",
68
- onClick: p.onClose,
68
+ onClick: l.onClose,
69
69
  "data-testid": `${e}-clear`,
70
70
  children: /* @__PURE__ */ o(W, {})
71
71
  }
@@ -75,6 +75,7 @@ const w = u((e, n) => {
75
75
  "div",
76
76
  {
77
77
  class: "IncodeInputComposedErrorWrapper",
78
+ role: "alert",
78
79
  "data-testid": `${e}-error-wrapper`,
79
80
  children: [
80
81
  C && /* @__PURE__ */ o("div", { class: "IncodeInputComposedIconWrapper", children: /* @__PURE__ */ o(y, { size: 17 }) }),
@@ -82,14 +83,14 @@ const w = u((e, n) => {
82
83
  ]
83
84
  }
84
85
  ),
85
- !d && t && !r && /* @__PURE__ */ o(
86
+ !d && s && !r && /* @__PURE__ */ o(
86
87
  "div",
87
88
  {
88
89
  class: "IncodeInputComposedHelperWrapper",
89
90
  "data-testid": `${e}-helper-wrapper`,
90
91
  children: [
91
92
  h && /* @__PURE__ */ o("div", { class: "IncodeInputComposedIconWrapper", children: /* @__PURE__ */ o(E, { size: 17 }) }),
92
- /* @__PURE__ */ o("p", { id: i, class: "IncodeInputComposedHelper", children: t })
93
+ /* @__PURE__ */ o("p", { id: i, class: "IncodeInputComposedHelper", children: s })
93
94
  ]
94
95
  }
95
96
  )