@incodetech/web 0.0.0-dev-20260325-72e1e24 → 0.0.0-dev-20260326-106dc21

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 (69) hide show
  1. package/dist/{Trans-BQctqaWi.js → Trans-BSLSJO1_.js} +2 -2
  2. package/dist/{addressAutocomplete-CnuyGGR4.js → addressAutocomplete-BhUbJEuH.js} +6 -6
  3. package/dist/authentication/authentication.es.js +5 -5
  4. package/dist/{back-horizontal-hint-CktUy0An.js → back-horizontal-hint-CSlf9KI1.js} +1 -1
  5. package/dist/{back-vertical-hint-CMOWSEsc.js → back-vertical-hint-CNieqiCr.js} +1 -1
  6. package/dist/base.css +16 -3
  7. package/dist/{button-qiC4m4lf.js → button-B2Ewo0rX.js} +2 -2
  8. package/dist/cameraView-CT9-WWcG.js +55 -0
  9. package/dist/{captureFooter-BIPDtCn6.js → captureFooter-B_3eu8kq.js} +77 -127
  10. package/dist/captureOverlay-CB8lyLgp.js +399 -0
  11. package/dist/{checkbox-KYc1FnQr.js → checkbox-CXnQVsbJ.js} +3 -3
  12. package/dist/{chevronDown-J1Yx1Jy7.js → chevronDown-DKyU4xPP.js} +1 -1
  13. package/dist/{closeIcon-C5IKfu-j.js → closeIcon-DjWL_arL.js} +1 -1
  14. package/dist/consent/consent.es.js +8 -8
  15. package/dist/curp-validation/curp-validation.es.js +11 -11
  16. package/dist/curp-validation/styles.css +12 -0
  17. package/dist/{dateInputComposed-DzB7gNed.js → dateInputComposed-DmlHvCmR.js} +4 -4
  18. package/dist/{documentCapture-B4JcCGTV.js → documentCapture-DYsIVkcU.js} +14 -13
  19. package/dist/dropdownComposed-DFrqye1c.js +367 -0
  20. package/dist/{ekybModule-ly0wrPsV.js → ekybModule-Cve2s2tf.js} +10 -10
  21. package/dist/{ekycModule-BkTDINkE.js → ekycModule-Hi5yRFs3.js} +11 -11
  22. package/dist/email/email.es.js +97 -106
  23. package/dist/email/styles.css +0 -111
  24. package/dist/{errorContent-BudafcKL.js → errorContent-CqNelsXg.js} +6 -6
  25. package/dist/{errorIcon-DbJL-4MJ.js → errorIcon-C-Zd24vb.js} +1 -1
  26. package/dist/extensibility.es.js +92 -89
  27. package/dist/{faceMatch-DylE4LWy.js → faceMatch-BVsE7czZ.js} +6 -6
  28. package/dist/{fileIcon-ClvmLl6A.js → fileIcon-DIVwt0SD.js} +1 -1
  29. package/dist/{flipAnimation-CmG-kgPi.js → flipAnimation-CQ3So9XG.js} +269 -655
  30. package/dist/flow/flow.es.js +14 -14
  31. package/dist/flow/styles.css +12 -85
  32. package/dist/{formField-CMNAU-Eh.js → formField-CPfeaz8y.js} +8 -8
  33. package/dist/{front-horizontal-hint-Ca8ux7ED.js → front-horizontal-hint-lRLKd7vY.js} +1 -1
  34. package/dist/{front-vertical-hint-Cl9a47Kq.js → front-vertical-hint-qQoJXRE3.js} +1 -1
  35. package/dist/geolocation/geolocation.es.js +6 -6
  36. package/dist/governmentValidation/governmentValidation.es.js +10 -10
  37. package/dist/id/id.es.js +16 -15
  38. package/dist/{incodeModule-DtbbjNTQ.js → incodeModule-C4XIllao.js} +1 -1
  39. package/dist/index.es.js +3 -3
  40. package/dist/{inputComposed-7r-2MfA7.js → inputComposed-CJQTXKNA.js} +5 -5
  41. package/dist/{mandatoryConsent-BcbxGZN6.js → mandatoryConsent-B2zqptlI.js} +8 -8
  42. package/dist/manualCaptureButton-CUq6VXLb.js +371 -0
  43. package/dist/otpInput-CGlYkmvB.js +148 -0
  44. package/dist/{page-CH1_PpOG.js → page-DiscPBzz.js} +2 -2
  45. package/dist/{passport-horizontal-hint-CWnj6Kh1.js → passport-horizontal-hint-BCtpMp1Y.js} +1 -1
  46. package/dist/{passport-vertical-hint-DzkQdaag.js → passport-vertical-hint-GaLnzqHP.js} +1 -1
  47. package/dist/permissions-CDir4ckn.js +707 -0
  48. package/dist/phone/phone.es.js +66 -64
  49. package/dist/{phoneInput-C9tQVoqL.js → phoneInput-TwyIF7PG.js} +3 -3
  50. package/dist/{phoneInputComposed-B4OTfqLt.js → phoneInputComposed-Dsf9ZDTj.js} +27 -27
  51. package/dist/{processing-DW3Cq3ot.js → processing-De8XWnFp.js} +4 -4
  52. package/dist/{richText-Bh30370T.js → richText-DHl4ibE9.js} +2 -2
  53. package/dist/selfie/selfie.es.js +6 -6
  54. package/dist/signature/signature.es.js +7 -7
  55. package/dist/{spinner-_-QbAnd8.js → spinner-DfUoOZN4.js} +3 -3
  56. package/dist/{successIcon-C-3-t1kz.js → successIcon-DyHNp_UT.js} +1 -1
  57. package/dist/themes/dark.css +1 -0
  58. package/dist/themes/light.css +1 -0
  59. package/dist/{tutorial-BRvI-ZLU.js → tutorial-Cx_ANvlr.js} +42 -41
  60. package/dist/types/extensibility.d.ts +1 -0
  61. package/dist/{typography-DgyeaZWI.js → typography-zMrvftfB.js} +2 -2
  62. package/dist/{uiConfig-BSR3Bl6G.js → uiConfig-DmIn-g8M.js} +1 -1
  63. package/dist/{useMediaQuery-DN93efdT.js → useMediaQuery-lJdQBmC2.js} +1 -1
  64. package/dist/{vendor-preact-BY8u4mdq.js → vendor-preact-BoMmvSgn.js} +3 -3
  65. package/dist/{warningIcon-BEDHbr3Z.js → warningIcon-MsE5PaSQ.js} +1 -1
  66. package/package.json +2 -2
  67. package/dist/dropdownComposed-LjhdF9Jx.js +0 -345
  68. package/dist/manualCaptureButton-6WD7GhPe.js +0 -1071
  69. package/dist/otpInput-cZblmynr.js +0 -124
@@ -1,113 +1,103 @@
1
- import { u as e, S as g, I as v, b as O, a as y, B as C } from "../button-qiC4m4lf.js";
1
+ import { b as v, u as e, I as O, a as C, S as w, B as y } from "../button-B2Ewo0rX.js";
2
2
  import { createEmailManager as P } from "@incodetech/core/email";
3
- import { d as f, y as k, k as w } from "../vendor-preact-BY8u4mdq.js";
3
+ import { d as b, y as S } from "../vendor-preact-BoMmvSgn.js";
4
4
  import "@incodetech/core";
5
- import { O as L } from "../otpInput-cZblmynr.js";
6
- import { P as E } from "../page-CH1_PpOG.js";
7
- import { r as S } from "../incodeModule-DtbbjNTQ.js";
8
- import "../uiConfig-BSR3Bl6G.js";
9
- const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, V = ({
5
+ import { O as V } from "../otpInput-CGlYkmvB.js";
6
+ import { P as f } from "../page-DiscPBzz.js";
7
+ import { r as k } from "../incodeModule-C4XIllao.js";
8
+ import "../uiConfig-DmIn-g8M.js";
9
+ import "../typography-zMrvftfB.js";
10
+ import { a as L } from "../inputComposed-CJQTXKNA.js";
11
+ import "../checkbox-CXnQVsbJ.js";
12
+ import "../phoneInputComposed-Dsf9ZDTj.js";
13
+ import "../dateInputComposed-DmlHvCmR.js";
14
+ import "../captureOverlay-CB8lyLgp.js";
15
+ import "../manualCaptureButton-CUq6VXLb.js";
16
+ import "../captureFooter-B_3eu8kq.js";
17
+ import "../countries-DfLkrF0x.js";
18
+ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, R = ({
10
19
  prefilledEmail: i,
11
- emailError: a,
12
- disabled: d = !1,
13
- onEmailChange: s
20
+ emailError: s,
21
+ label: m,
22
+ disabled: u = !1,
23
+ required: n = !1,
24
+ onEmailChange: t
14
25
  }) => {
15
- const [n, t] = f("");
16
- k(() => {
26
+ const { t: o } = v(), [g, p] = b("");
27
+ S(() => {
17
28
  if (i) {
18
- t(i);
19
- const u = I.test(i.trim());
20
- s(i.trim(), u);
29
+ p(i);
30
+ const a = I.test(i.trim());
31
+ t(i.trim(), a);
21
32
  }
22
- }, [i, s]);
23
- const r = (u) => {
24
- const l = u.target.value;
25
- t(l);
26
- const o = l.trim(), c = o.length > 0 && I.test(o);
27
- s(o, c);
28
- }, m = a ? "email-error" : void 0;
29
- return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children: [
30
- /* @__PURE__ */ e(
31
- "div",
32
- {
33
- class: `IncodeEmailInputWrapper ${a ? "IncodeEmailInputWrapperError" : ""} ${d ? "IncodeEmailInputWrapperDisabled" : ""}`,
34
- children: [
35
- /* @__PURE__ */ e("label", { for: "email-input", class: "IncodeEmailInputLabel", children: "Email" }),
36
- /* @__PURE__ */ e(
37
- "input",
38
- {
39
- id: "email-input",
40
- type: "email",
41
- value: n,
42
- onInput: r,
43
- placeholder: "Email",
44
- disabled: d,
45
- class: "IncodeEmailInputField",
46
- "data-testid": "email-input",
47
- "aria-label": "Email address",
48
- "aria-invalid": a ? "true" : "false",
49
- "aria-describedby": m,
50
- autocomplete: "email"
51
- }
52
- )
53
- ]
54
- }
55
- ),
56
- a && /* @__PURE__ */ e(w, { children: [
57
- /* @__PURE__ */ e(g, { size: 8 }),
58
- /* @__PURE__ */ e(
59
- "p",
60
- {
61
- id: m,
62
- class: "IncodeEmailInputError",
63
- "data-testid": "email-error",
64
- role: "alert",
65
- children: a
66
- }
67
- )
68
- ] })
69
- ] }) });
70
- }, R = ({
33
+ }, [i, t]);
34
+ const E = (a) => {
35
+ const d = a.target.value;
36
+ p(d);
37
+ const r = d.trim(), h = r.length > 0 && I.test(r);
38
+ t(r, h);
39
+ }, l = s ? "email-error" : void 0;
40
+ return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children: /* @__PURE__ */ e(
41
+ L,
42
+ {
43
+ id: "email-input",
44
+ type: "email",
45
+ value: g,
46
+ onInput: E,
47
+ placeholder: o("email.placeholder"),
48
+ disabled: u,
49
+ required: n,
50
+ label: m,
51
+ "data-testid": "email-input",
52
+ "aria-label": m ? void 0 : "Email address",
53
+ "aria-invalid": s ? "true" : void 0,
54
+ "aria-describedby": l || void 0,
55
+ autocomplete: "email",
56
+ error: s,
57
+ showErrorIcon: !0
58
+ }
59
+ ) }) });
60
+ }, T = ({
71
61
  config: i,
72
- manager: a,
73
- onFinish: d,
74
- onError: s
62
+ manager: s,
63
+ onFinish: m,
64
+ onError: u
75
65
  }) => {
76
- const { t: n } = O(), [t, r] = y(
66
+ const { t: n } = v(), [t, o] = C(
77
67
  () => {
78
- if (a) return a;
68
+ if (s) return s;
79
69
  if (!i)
80
70
  throw new Error("Email config is required");
81
71
  return P({ config: i });
82
72
  },
83
- { manageLifecycle: !a }
84
- ), [m, u] = f(!1);
85
- if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingOtp") {
86
- const l = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingOtp", o = t.status === "inputting" ? t.prefilledEmail : void 0, c = t.status === "inputting" ? t.emailError : void 0;
73
+ { manageLifecycle: !s }
74
+ ), [g, p] = b(!1);
75
+ if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
76
+ const l = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", a = t.status === "inputting" ? t.prefilledEmail : void 0, c = t.status === "inputting" && t.emailError ? n(t.emailError) : void 0;
87
77
  return /* @__PURE__ */ e(
88
- E,
78
+ f,
89
79
  {
90
80
  className: "IncodeEmailPage",
91
81
  title: n("otp.enterCodeEmail"),
92
82
  subtitle: i.otpVerification ? n("email.willSendCode") : void 0,
93
83
  children: [
94
84
  /* @__PURE__ */ e(
95
- V,
85
+ R,
96
86
  {
97
- prefilledEmail: o,
87
+ prefilledEmail: a,
98
88
  emailError: c,
99
89
  disabled: l,
100
- onEmailChange: (h, p) => {
101
- r.setEmail(h, p), u(p);
90
+ onEmailChange: (d, r) => {
91
+ o.setEmail(d, r), p(r);
102
92
  }
103
93
  }
104
94
  ),
105
- /* @__PURE__ */ e(g, {}),
95
+ /* @__PURE__ */ e(w, {}),
106
96
  /* @__PURE__ */ e(
107
- C,
97
+ y,
108
98
  {
109
- onClick: () => r.submit(),
110
- disabled: !m,
99
+ onClick: () => o.submit(),
100
+ disabled: !g,
111
101
  isLoading: l,
112
102
  "data-testid": "email-submit",
113
103
  children: n("common.continue")
@@ -117,45 +107,46 @@ const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, V = ({
117
107
  }
118
108
  );
119
109
  }
120
- if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError") {
121
- const l = t.status === "verifyingOtp";
110
+ if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
111
+ const l = t.status === "verifyingOtp", a = t.status === "otpError", c = t.status === "awaitingOtp", d = t.status === "resendingOtp";
122
112
  return /* @__PURE__ */ e(
123
- E,
113
+ f,
124
114
  {
125
115
  className: "IncodeEmailPage IncodeEmailOtpPage",
126
116
  title: n("otp.enterCodeEmail"),
127
117
  children: /* @__PURE__ */ e(
128
- L,
118
+ V,
129
119
  {
130
- resendTimer: t.status === "awaitingOtp" ? t.resendTimer : 0,
131
- canResend: t.status === "awaitingOtp" ? t.canResend : !1,
132
- error: t.status === "otpError" ? n(t.error) : void 0,
133
- onSubmit: (o) => r.submitOtp(o),
134
- onResend: () => r.resendOtp(),
135
- onBack: () => r.back(),
136
- backLinkText: "otp.changeEmail",
137
- isLoading: l
120
+ resendTimer: c || a ? t.resendTimer : 0,
121
+ canResend: c || a ? t.canResend : !1,
122
+ error: a ? n(t.otpError) : void 0,
123
+ isLoading: l,
124
+ disabled: d || l,
125
+ onSubmit: (r) => o.submitOtp(r),
126
+ onResend: () => o.resendOtp(),
127
+ onBack: () => o.back(),
128
+ backLinkText: "otp.changeEmail"
138
129
  }
139
130
  )
140
131
  }
141
132
  );
142
133
  }
143
- return t.status === "finished" ? (d?.(), null) : (t.status === "error" && s?.(t.error), null);
144
- }, T = ({
134
+ return t.status === "finished" ? (m?.(), null) : (t.status === "error" && u?.(t.error), null);
135
+ }, B = ({
145
136
  config: i,
146
- manager: a,
147
- onFinish: d,
148
- onError: s
149
- }) => /* @__PURE__ */ e(v, { children: i ? /* @__PURE__ */ e(
150
- R,
137
+ manager: s,
138
+ onFinish: m,
139
+ onError: u
140
+ }) => /* @__PURE__ */ e(O, { children: i ? /* @__PURE__ */ e(
141
+ T,
151
142
  {
152
143
  config: i,
153
- manager: a,
154
- onFinish: d,
155
- onError: s
144
+ manager: s,
145
+ onFinish: m,
146
+ onError: u
156
147
  }
157
148
  ) : null });
158
- S(T, "incode-email");
149
+ k(B, "incode-email");
159
150
  export {
160
- T as Email
151
+ B as Email
161
152
  };
@@ -1,14 +1,4 @@
1
1
  /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
- @layer properties {
3
- @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
- *, :before, :after, ::backdrop {
5
- --tw-border-style: solid;
6
- --tw-duration: initial;
7
- --tw-font-weight: initial;
8
- }
9
- }
10
- }
11
-
12
2
  .IncodeEmailPage .IncodePageContent {
13
3
  padding-top: var(--spacing-32, var(--spacing-32, 32px));
14
4
  padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
@@ -20,104 +10,3 @@
20
10
  width: 100%;
21
11
  display: flex;
22
12
  }
23
-
24
- .IncodeEmailPage .IncodeEmailInputWrapper {
25
- border-radius: var(--radius-small, var(--border-radius-small));
26
- border-style: var(--tw-border-style);
27
- border-width: 1px;
28
- border-color: var(--color-input-border-default, var(--input-border-default));
29
- background-color: var(--color-input-surface-default, var(--input-surface-default));
30
- width: 100%;
31
- max-width: 340px;
32
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
33
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
34
- transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
35
- --tw-duration: .2s;
36
- flex-direction: column;
37
- transition-duration: .2s;
38
- display: flex;
39
- }
40
-
41
- .IncodeEmailPage .IncodeEmailInputWrapper:focus-within {
42
- border-color: var(--color-input-border-focused, var(--input-border-focused));
43
- }
44
-
45
- .IncodeEmailPage .IncodeEmailInputWrapper.IncodeEmailInputWrapperError {
46
- border-color: var(--color-input-border-negative, var(--input-border-negative));
47
- }
48
-
49
- .IncodeEmailPage .IncodeEmailInputWrapper.IncodeEmailInputWrapperDisabled {
50
- border-color: var(--color-input-border-disabled, var(--input-border-disabled));
51
- background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
52
- }
53
-
54
- .IncodeEmailPage .IncodeEmailInputLabel {
55
- clip-path: inset(50%);
56
- white-space: nowrap;
57
- border-width: 0;
58
- width: 1px;
59
- height: 1px;
60
- margin: -1px;
61
- padding: 0;
62
- position: absolute;
63
- overflow: hidden;
64
- }
65
-
66
- .IncodeEmailPage .IncodeEmailInputField {
67
- border-style: var(--tw-border-style);
68
- border-width: var(--border-width-none, var(--primitive-border-width-0));
69
- --tw-border-style: none;
70
- width: 100%;
71
- padding-inline: var(--spacing-16, var(--spacing-16, 16px));
72
- padding-block: var(--spacing-16, var(--spacing-16, 16px));
73
- font-size: var(--text-18, var(--primitive-typography-size-18));
74
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
75
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
76
- color: var(--color-input-text-field-default, var(--input-text-field-default));
77
- --tw-outline-style: none;
78
- border-radius: var(--radius-small, var(--border-radius-small));
79
- background-color: #0000;
80
- border-style: none;
81
- outline-style: none;
82
- }
83
-
84
- .IncodeEmailPage .IncodeEmailInputField::placeholder {
85
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
86
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
87
- color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
88
- }
89
-
90
- .IncodeEmailPage .IncodeEmailInputField:disabled {
91
- cursor: not-allowed;
92
- color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
93
- }
94
-
95
- .IncodeEmailPage .IncodeEmailInputField:focus {
96
- --tw-outline-style: none;
97
- outline-style: none;
98
- }
99
-
100
- .IncodeEmailPage .IncodeEmailInputError {
101
- margin: var(--spacing-0, var(--spacing-none, 0px));
102
- text-align: center;
103
- font-size: var(--text-14, var(--primitive-typography-size-14));
104
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
105
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
106
- color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
107
- }
108
-
109
- @property --tw-border-style {
110
- syntax: "*";
111
- inherits: false;
112
- initial-value: solid;
113
- }
114
-
115
- @property --tw-duration {
116
- syntax: "*";
117
- inherits: false
118
- }
119
-
120
- @property --tw-font-weight {
121
- syntax: "*";
122
- inherits: false
123
- }
@@ -1,9 +1,9 @@
1
- import { b as l, u as n, S as r, B as m } from "./button-qiC4m4lf.js";
2
- import { A as p, y as C } from "./vendor-preact-BY8u4mdq.js";
3
- import { E } from "./errorIcon-DbJL-4MJ.js";
4
- import { W as I } from "./warningIcon-BEDHbr3Z.js";
5
- import { P as f } from "./page-CH1_PpOG.js";
6
- import { T as h } from "./typography-DgyeaZWI.js";
1
+ import { b as l, u as n, S as r, B as m } from "./button-B2Ewo0rX.js";
2
+ import { A as p, y as C } from "./vendor-preact-BoMmvSgn.js";
3
+ import { E } from "./errorIcon-C-Zd24vb.js";
4
+ import { W as I } from "./warningIcon-MsE5PaSQ.js";
5
+ import { P as f } from "./page-DiscPBzz.js";
6
+ import { T as h } from "./typography-zMrvftfB.js";
7
7
  const x = ({
8
8
  title: c,
9
9
  description: s,
@@ -1,4 +1,4 @@
1
- import { u as r } from "./button-qiC4m4lf.js";
1
+ import { u as r } from "./button-B2Ewo0rX.js";
2
2
  const n = ({ size: t = 32 }) => /* @__PURE__ */ r(
3
3
  "svg",
4
4
  {
@@ -1,53 +1,56 @@
1
- import { u as t, B as c } from "./button-qiC4m4lf.js";
2
- import { I as h, L as g, S as y, a as T, b as v } from "./button-qiC4m4lf.js";
3
- import { s as B, u as F } from "./uiConfig-BSR3Bl6G.js";
4
- import { P as L } from "./page-CH1_PpOG.js";
5
- import { C as b, F as H, O as M } from "./fileIcon-ClvmLl6A.js";
6
- import { S as E } from "./spinner-_-QbAnd8.js";
7
- import { P as D } from "./processing-DW3Cq3ot.js";
8
- import { E as A } from "./errorContent-BudafcKL.js";
9
- import { F as U, V as j } from "./formField-CMNAU-Eh.js";
10
- import { a as q, C as z, c as G, b as J, e as K, d as N, H as Q, L as X, P as Y } from "./captureFooter-BIPDtCn6.js";
11
- import { I as _, a as $ } from "./inputComposed-7r-2MfA7.js";
12
- import { O as ea } from "./otpInput-cZblmynr.js";
13
- import { C as oa, a as ta } from "./checkbox-KYc1FnQr.js";
14
- import { P as na } from "./phoneInputComposed-B4OTfqLt.js";
15
- import { D as ca, S as ia } from "./dropdownComposed-LjhdF9Jx.js";
16
- import { C as la, D as ma } from "./dateInputComposed-DzB7gNed.js";
17
- import { f as Ca, C as fa, d as Ia, I as xa, e as ha, F as ga, c as ya, S as Ta, T as va, a as Sa, V as Ba, b as Fa } from "./flipAnimation-CmG-kgPi.js";
18
- import { B as La, L as Oa, M as ba, P as Ha } from "./manualCaptureButton-6WD7GhPe.js";
19
- import { A as i, y as u, q as l } from "./vendor-preact-BY8u4mdq.js";
20
- import { T as Va, a as Ea, b as ka, c as Da, d as wa, e as Aa } from "./typography-DgyeaZWI.js";
21
- import { C as Ua } from "./chevronDown-J1Yx1Jy7.js";
22
- import { C as Wa } from "./closeIcon-C5IKfu-j.js";
23
- import { E as za } from "./errorIcon-DbJL-4MJ.js";
24
- import { S as Ja } from "./successIcon-C-3-t1kz.js";
25
- import { c as Na, a as Qa, g as Xa } from "./countries-DfLkrF0x.js";
26
- import { C as Za, T as _a } from "./tutorial-BRvI-ZLU.js";
27
- function m(a) {
1
+ import { u as t, B as c } from "./button-B2Ewo0rX.js";
2
+ import { I as h, L as g, S as y, a as T, b as v } from "./button-B2Ewo0rX.js";
3
+ import { s as B, u as F } from "./uiConfig-DmIn-g8M.js";
4
+ import { P as L } from "./page-DiscPBzz.js";
5
+ import { C as b, F as H, O as M } from "./fileIcon-DIVwt0SD.js";
6
+ import { S as E } from "./spinner-DfUoOZN4.js";
7
+ import { P as D } from "./processing-De8XWnFp.js";
8
+ import { E as A } from "./errorContent-CqNelsXg.js";
9
+ import { F as U, V as j } from "./formField-CPfeaz8y.js";
10
+ import { C as q, P as z } from "./cameraView-CT9-WWcG.js";
11
+ import { I as J, a as K } from "./inputComposed-CJQTXKNA.js";
12
+ import { O as Q } from "./otpInput-CGlYkmvB.js";
13
+ import { C as Y, a as Z } from "./checkbox-CXnQVsbJ.js";
14
+ import { P as $ } from "./phoneInputComposed-Dsf9ZDTj.js";
15
+ import { D as ra, S as ea } from "./dropdownComposed-DFrqye1c.js";
16
+ import { C as ta, D as sa } from "./dateInputComposed-DmlHvCmR.js";
17
+ import { T as pa, a as ca } from "./captureOverlay-CB8lyLgp.js";
18
+ import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-CQ3So9XG.js";
19
+ import { L as Ta, M as va } from "./manualCaptureButton-CUq6VXLb.js";
20
+ import { a as Ba, C as Fa, b as Pa, d as La, c as Oa, H as ba, L as Ha } from "./captureFooter-B_3eu8kq.js";
21
+ import { A as i, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
22
+ import { B as Va, P as Ea } from "./permissions-CDir4ckn.js";
23
+ import { T as Da, a as wa, b as Aa, c as Ra, d as Ua, e as ja } from "./typography-zMrvftfB.js";
24
+ import { C as qa } from "./chevronDown-DKyU4xPP.js";
25
+ import { C as Ga } from "./closeIcon-DjWL_arL.js";
26
+ import { E as Ka } from "./errorIcon-C-Zd24vb.js";
27
+ import { S as Qa } from "./successIcon-DyHNp_UT.js";
28
+ import { c as Ya, a as Za, g as _a } from "./countries-DfLkrF0x.js";
29
+ import { C as ar, T as rr } from "./tutorial-Cx_ANvlr.js";
30
+ function l(a) {
28
31
  if (a.readyState < 2 || a.videoWidth === 0 || a.videoHeight === 0)
29
32
  return null;
30
- const e = document.createElement("canvas");
31
- e.width = a.videoWidth, e.height = a.videoHeight;
32
- const r = e.getContext("2d");
33
- return r ? (r.drawImage(a, 0, 0), e.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
33
+ const r = document.createElement("canvas");
34
+ r.width = a.videoWidth, r.height = a.videoHeight;
35
+ const e = r.getContext("2d");
36
+ return e ? (e.drawImage(a, 0, 0), r.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
34
37
  }
35
38
  const f = ({
36
39
  stream: a,
37
- onCapture: e,
38
- disabled: r
40
+ onCapture: r,
41
+ disabled: e
39
42
  }) => {
40
43
  const o = i(null);
41
44
  u(() => {
42
45
  o.current && a && (o.current.srcObject = a, o.current.play().catch(() => {
43
46
  }));
44
47
  }, [a]);
45
- const s = l(() => {
48
+ const s = m(() => {
46
49
  const n = o.current;
47
- if (!n || r) return;
48
- const p = m(n);
49
- p && e(p);
50
- }, [e, r]);
50
+ if (!n || e) return;
51
+ const p = l(n);
52
+ p && r(p);
53
+ }, [r, e]);
51
54
  return /* @__PURE__ */ t("div", { class: "IncodeManualCapture", children: [
52
55
  /* @__PURE__ */ t("div", { class: "IncodeManualCaptureVideoContainer", children: /* @__PURE__ */ t(
53
56
  "video",
@@ -66,7 +69,7 @@ const f = ({
66
69
  variant: "primary",
67
70
  size: "L",
68
71
  onClick: s,
69
- disabled: r,
72
+ disabled: e,
70
73
  class: "IncodeManualCaptureButton",
71
74
  "aria-label": "Capture document",
72
75
  children: "Capture"
@@ -75,70 +78,70 @@ const f = ({
75
78
  ] });
76
79
  };
77
80
  export {
78
- La as BaseTutorial,
81
+ Va as BaseTutorial,
79
82
  c as Button,
80
- la as CalendarIcon,
81
- q as CameraFrame,
83
+ ta as CalendarIcon,
84
+ Ba as CameraFrame,
82
85
  b as CameraIcon,
83
- z as CameraOverlay,
84
- G as CameraOverlayHeader,
85
- J as CameraView,
86
- K as CaptureButtonIcon,
87
- N as CaptureFooter,
88
- oa as Checkbox,
89
- ta as CheckmarkIcon,
90
- Ua as ChevronDown,
91
- Ca as ChevronRightIcon,
92
- Wa as CloseIcon,
93
- ma as DateInputComposed,
94
- ca as DropdownComposed,
86
+ Fa as CameraOverlay,
87
+ Pa as CameraOverlayHeader,
88
+ q as CameraView,
89
+ La as CaptureButtonIcon,
90
+ Oa as CaptureFooter,
91
+ Y as Checkbox,
92
+ Z as CheckmarkIcon,
93
+ qa as ChevronDown,
94
+ ua as ChevronRightIcon,
95
+ Ga as CloseIcon,
96
+ sa as DateInputComposed,
97
+ ra as DropdownComposed,
95
98
  A as ErrorContent,
96
- za as ErrorIcon,
99
+ Ka as ErrorIcon,
97
100
  H as FileIcon,
98
101
  U as FormField,
99
- Q as HelpIcon,
100
- fa as IdCapture,
101
- Ia as IdChooser,
102
- xa as IdError,
103
- ha as IdExpired,
104
- ga as IdFlipAnimation,
105
- ya as IdTutorial,
102
+ ba as HelpIcon,
103
+ ma as IdCapture,
104
+ la as IdChooser,
105
+ Ca as IdError,
106
+ da as IdExpired,
107
+ fa as IdFlipAnimation,
108
+ Ia as IdTutorial,
106
109
  h as IncodeComponent,
107
- _ as Input,
108
- $ as InputComposed,
110
+ J as Input,
111
+ K as InputComposed,
109
112
  g as LandscapeBlocker,
110
- Ta as LightningIcon,
111
- X as LockIcon,
112
- Oa as Lottie,
113
+ xa as LightningIcon,
114
+ Ha as LockIcon,
115
+ Ta as Lottie,
113
116
  f as ManualCapture,
114
- ba as Modal,
115
- ea as OtpInput,
117
+ va as Modal,
118
+ Q as OtpInput,
116
119
  M as Overlay,
117
120
  L as Page,
118
- Ha as Permissions,
119
- na as PhoneInputComposed,
121
+ Ea as Permissions,
122
+ $ as PhoneInputComposed,
120
123
  D as Processing,
121
- Y as ProgressBar,
122
- ia as SearchIcon,
123
- Za as SelfieCapture,
124
- _a as SelfieTutorial,
124
+ z as ProgressBar,
125
+ ea as SearchIcon,
126
+ ar as SelfieCapture,
127
+ rr as SelfieTutorial,
125
128
  y as Spacer,
126
129
  E as Spinner,
127
- Ja as SuccessIcon,
128
- va as TextArea,
129
- Sa as TextAreaComposed,
130
- Va as Title,
131
- Ea as TypographyH1,
132
- ka as TypographyH3,
133
- Da as TypographyH4,
134
- wa as TypographyH5,
135
- Aa as TypographyP,
136
- Ba as VerificationOptionCard,
137
- Fa as VerificationOptionCardList,
130
+ Qa as SuccessIcon,
131
+ pa as TextArea,
132
+ ca as TextAreaComposed,
133
+ Da as Title,
134
+ wa as TypographyH1,
135
+ Aa as TypographyH3,
136
+ Ra as TypographyH4,
137
+ Ua as TypographyH5,
138
+ ja as TypographyP,
139
+ ha as VerificationOptionCard,
140
+ ga as VerificationOptionCardList,
138
141
  j as VerificationResult,
139
- Na as countries,
140
- Qa as getCountryByCallingCode,
141
- Xa as getCountryByCode,
142
+ Ya as countries,
143
+ Za as getCountryByCallingCode,
144
+ _a as getCountryByCode,
142
145
  B as setUiConfig,
143
146
  T as useManager,
144
147
  F as useScreenOrientation,