@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da

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 (162) hide show
  1. package/dist/AsYouType-D1H_js4X.js +2607 -0
  2. package/dist/Trans-aTzdT_SA.js +55 -0
  3. package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
  4. package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
  5. package/dist/antifraud/antifraud.es.js +18 -17
  6. package/dist/antifraud/styles.css +1 -1
  7. package/dist/authentication/authentication.es.js +50 -28
  8. package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
  9. package/dist/back-tutorial-An9AcMSe.js +29 -0
  10. package/dist/back-vertical-hint-CNieqiCr.js +5 -0
  11. package/dist/backdevicelottie-B4NgyWmX.js +29 -0
  12. package/dist/base.css +67 -327
  13. package/dist/blurdevicelottie-_BZRug1c.js +29 -0
  14. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  15. package/dist/button-CE9kRlem.js +184 -0
  16. package/dist/cameraView-C2X7klNb.js +55 -0
  17. package/dist/captureOverlay-tCb4R4WE.js +592 -0
  18. package/dist/checkbox-B5X-mfqq.js +137 -0
  19. package/dist/chevronDown-DSHaPKbi.js +23 -0
  20. package/dist/closeIcon-9Hc97omv.js +28 -0
  21. package/dist/consent/consent.es.js +89 -82
  22. package/dist/consent/styles.css +1 -1
  23. package/dist/countries-DfLkrF0x.js +616 -0
  24. package/dist/curp-validation/curp-validation.es.js +313 -271
  25. package/dist/curp-validation/styles.css +1 -1
  26. package/dist/dateInputComposed-C7PCzh-U.js +173 -0
  27. package/dist/document-capture/styles.css +1 -1
  28. package/dist/documentCapture-C0mO-RGE.js +692 -0
  29. package/dist/dropdownComposed-BpinYlrx.js +367 -0
  30. package/dist/ekyb/styles.css +1 -1
  31. package/dist/ekybModule-Dr6LJUg-.js +357 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-C3mswduI.js +291 -0
  34. package/dist/email/email.es.js +154 -110
  35. package/dist/email/styles.css +1 -1
  36. package/dist/errorContent-Cb8nmQAE.js +44 -0
  37. package/dist/errorIcon-DEARBrGx.js +26 -0
  38. package/dist/extensibility.es.js +150 -22
  39. package/dist/face-match/styles.css +73 -147
  40. package/dist/faceMatch-DbDp7D3d.js +237 -0
  41. package/dist/fileIcon-CCSvS10T.js +52 -0
  42. package/dist/flip-animation-COR596wy.js +29 -0
  43. package/dist/flipAnimation-BqV462TA.js +2059 -0
  44. package/dist/flow/flow.es.js +2613 -2273
  45. package/dist/flow/styles.css +73 -432
  46. package/dist/formField-CP6wDdfA.js +106 -0
  47. package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
  48. package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
  49. package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
  50. package/dist/geolocation/geolocation.es.js +832 -852
  51. package/dist/geolocation/styles.css +1 -1
  52. package/dist/glaredevicelottie-DLuIStvb.js +29 -0
  53. package/dist/governmentValidation/governmentValidation.es.js +106 -100
  54. package/dist/governmentValidation/styles.css +1 -1
  55. package/dist/id/id.es.js +59 -53
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BBV3r3rz.js +29 -0
  58. package/dist/id-laser-v-BTHJaSfx.js +29 -0
  59. package/dist/id-tutorial-B-F5Q28m.js +29 -0
  60. package/dist/incodeModule-C4XIllao.js +96 -0
  61. package/dist/index.es.js +25 -4
  62. package/dist/inputComposed-fUbAGrDy.js +103 -0
  63. package/dist/instance-BWYzq8dk.js +2163 -0
  64. package/dist/loadingIcon-DmuPXh70.js +195 -0
  65. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  66. package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
  67. package/dist/numberedStep-DwUB__mh.js +5 -0
  68. package/dist/otpInput-BFXhqFRT.js +156 -0
  69. package/dist/page-SrUl0qtN.js +69 -0
  70. package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
  71. package/dist/passport-tutorial-CaYBFTqt.js +29 -0
  72. package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
  73. package/dist/permissions-DT4Fz9MR.js +709 -0
  74. package/dist/phone/phone.es.js +121 -87
  75. package/dist/phone/styles.css +1 -1
  76. package/dist/phoneInput-CGr8TxOO.js +158 -0
  77. package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
  78. package/dist/processing-szVOCQwZ.js +19 -0
  79. package/dist/redirect-to-mobile/styles.css +1 -1
  80. package/dist/richText-cspvNz2a.js +1807 -0
  81. package/dist/selfie/selfie.es.js +50 -29
  82. package/dist/selfie/styles.css +66 -170
  83. package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
  84. package/dist/signature/signature.es.js +707 -557
  85. package/dist/signature/styles.css +1 -1
  86. package/dist/spinner-DygONskw.js +60 -0
  87. package/dist/successIcon-Bjsdc4lF.js +26 -0
  88. package/dist/tutorial-Cdz1025D.js +473 -0
  89. package/dist/types/ekyb/styles.d.ts +1 -0
  90. package/dist/types/ekyc/styles.d.ts +1 -0
  91. package/dist/types/index.d.ts +8 -0
  92. package/dist/typography-BDACYR5i.js +14 -0
  93. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  94. package/dist/useMediaQuery-lJdQBmC2.js +18 -0
  95. package/dist/vendor-preact-BoMmvSgn.js +694 -0
  96. package/dist/warningIcon-DQq_MrOB.js +26 -0
  97. package/package.json +11 -8
  98. package/dist/AsYouType-DPWqJvFu.js +0 -2482
  99. package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
  100. package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
  101. package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
  102. package/dist/back-tutorial-BNTyW-1N.js +0 -14584
  103. package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
  104. package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
  105. package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
  106. package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
  107. package/dist/button-DhL5eRT3.js +0 -123
  108. package/dist/checkbox-l8NxPf4o.js +0 -85
  109. package/dist/countries-y2ydYDhN.js +0 -8323
  110. package/dist/dateInputComposed-B9WqdYx9.js +0 -2
  111. package/dist/dateInputComposed-ndsGHX1M.js +0 -94
  112. package/dist/defineProperty-brqHEHA_.js +0 -39
  113. package/dist/documentCapture-wDgRLdon.js +0 -784
  114. package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
  115. package/dist/ekyb/ekyb.es.js +0 -2
  116. package/dist/ekybModule-BBOm1y49.js +0 -2
  117. package/dist/ekybModule-fz6i9ZRt.js +0 -286
  118. package/dist/ekyc/ekyc.es.js +0 -2
  119. package/dist/ekycModule-SeTFG3AJ.js +0 -233
  120. package/dist/ekycModule-hxIcNX8n.js +0 -2
  121. package/dist/extensibility-DJihqIzM.js +0 -2248
  122. package/dist/faceMatch-DH8sLx34.js +0 -191
  123. package/dist/flip-animation-DOJzdXB-.js +0 -6983
  124. package/dist/formField-BRTbY8w9.js +0 -100
  125. package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
  126. package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
  127. package/dist/frontdevicelottie-DadDp6be.js +0 -17302
  128. package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
  129. package/dist/i18n-DZOHbK9q.js +0 -1916
  130. package/dist/icons-BHbofCgJ.js +0 -245
  131. package/dist/id-laser-h-BWyU3VgL.js +0 -467
  132. package/dist/id-laser-v-JiWXUlv0.js +0 -467
  133. package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
  134. package/dist/incodeModule-Bf6yJ8RB.js +0 -18
  135. package/dist/inputComposed-BhbfD8Ru.js +0 -77
  136. package/dist/loadingIcon-CeQt7Zgb.js +0 -146
  137. package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
  138. package/dist/numberedStep-CQVRixRP.js +0 -11
  139. package/dist/otpInput-CDIG9el7.js +0 -143
  140. package/dist/page-SvlJWUfz.js +0 -61
  141. package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
  142. package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
  143. package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
  144. package/dist/phoneInput-C9T_8FJt.js +0 -138
  145. package/dist/phoneInputComposed-B-0zieIW.js +0 -407
  146. package/dist/processing-B5zhNH6I.js +0 -15
  147. package/dist/richText-Db0PfpkE.js +0 -1973
  148. package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
  149. package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
  150. package/dist/setup-Dq2bzNKH.js +0 -15
  151. package/dist/spacer-DCljE53A.js +0 -59
  152. package/dist/spinner-Bk0YuoLu.js +0 -1
  153. package/dist/spinner-snIGzmm8.js +0 -41
  154. package/dist/successIcon-AHrfmJvv.js +0 -17
  155. package/dist/tutorial-DNOd11tg.js +0 -2780
  156. package/dist/types/ekyb.d.ts +0 -29
  157. package/dist/types/ekyc.d.ts +0 -29
  158. package/dist/typography-BNbFNFek.js +0 -1
  159. package/dist/typography-DvHeVWfY.js +0 -29
  160. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  161. package/dist/vendor-preact-D6SntenC.js +0 -958
  162. package/dist/warningIcon-Cvj-ayg1.js +0 -17
@@ -1,110 +1,154 @@
1
- import { n as e } from "../i18n-DZOHbK9q.js";
2
- import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
3
- import { c as i, r as a } from "../loadingIcon-CeQt7Zgb.js";
4
- import { t as o } from "../spacer-DCljE53A.js";
5
- import { t as s } from "../button-DhL5eRT3.js";
6
- import { t as c } from "../page-SvlJWUfz.js";
7
- import "../extensibility-DJihqIzM.js";
8
- import { t as l } from "../inputComposed-BhbfD8Ru.js";
9
- import { t as u } from "../otpInput-CDIG9el7.js";
10
- import { t as d } from "../incodeModule-Bf6yJ8RB.js";
11
- import { createEmailManager as f } from "@incodetech/core/email";
12
- //#region src/modules/email/emailInput.tsx
13
- var p = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, m = ({ prefilledEmail: i, emailError: a, label: o, disabled: s = !1, required: c = !1, onEmailChange: u }) => {
14
- let { t: d } = e(), [f, m] = n("");
15
- t(() => {
16
- if (i) {
17
- m(i);
18
- let e = p.test(i.trim());
19
- u(i.trim(), e);
20
- }
21
- }, [i, u]);
22
- let h = (e) => {
23
- let t = e.target.value;
24
- m(t);
25
- let n = t.trim();
26
- u(n, n.length > 0 && p.test(n));
27
- }, g = a ? "email-error" : void 0;
28
- return /* @__PURE__ */ r("div", {
29
- class: "IncodeEmailInput",
30
- children: /* @__PURE__ */ r("div", {
31
- class: "IncodeEmailInputContainer",
32
- children: /* @__PURE__ */ r(l, {
33
- id: "email-input",
34
- type: "email",
35
- value: f,
36
- onInput: h,
37
- placeholder: d("email.placeholder"),
38
- disabled: s,
39
- required: c,
40
- label: o,
41
- "data-testid": "email-input",
42
- "aria-label": o ? void 0 : "Email address",
43
- "aria-invalid": a ? "true" : void 0,
44
- "aria-describedby": g || void 0,
45
- autocomplete: "email",
46
- error: a,
47
- showErrorIcon: !0
48
- })
49
- })
50
- });
51
- }, h = ({ config: t, manager: a, onFinish: l, onError: d }) => {
52
- let { t: p } = e(), [h, g] = i(() => {
53
- if (a) return a;
54
- if (!t) throw Error("Email config is required");
55
- return f({ config: t });
56
- }, { manageLifecycle: !a }), [_, v] = n(!1);
57
- if (h.status === "idle" || h.status === "loadingPrefill" || h.status === "inputting" || h.status === "submitting" || h.status === "sendingInitialOtp") {
58
- let e = h.status === "idle" || h.status === "loadingPrefill" || h.status === "submitting" || h.status === "sendingInitialOtp", t = h.status === "inputting" ? h.prefilledEmail : void 0, n = h.status === "inputting" && h.emailError ? p(h.emailError) : void 0, i = h.status === "inputting" ? h.otpVerification ?? !1 : !1;
59
- return /* @__PURE__ */ r(c, {
60
- className: "IncodeEmailPage",
61
- title: p("otp.enterCodeEmail"),
62
- subtitle: i ? p("email.willSendCode") : void 0,
63
- children: [
64
- /* @__PURE__ */ r(m, {
65
- prefilledEmail: t,
66
- emailError: n,
67
- disabled: e,
68
- onEmailChange: (e, t) => {
69
- g.setEmail(e, t), v(t);
70
- }
71
- }),
72
- /* @__PURE__ */ r(o, {}),
73
- /* @__PURE__ */ r(s, {
74
- onClick: () => g.submit(),
75
- disabled: !_,
76
- isLoading: e,
77
- "data-testid": "email-submit",
78
- children: p("common.continue")
79
- })
80
- ]
81
- }, "email-input");
82
- }
83
- if (h.status === "awaitingOtp" || h.status === "verifyingOtp" || h.status === "otpError" || h.status === "resendingOtp") {
84
- let e = h.status === "verifyingOtp", t = h.status === "otpError", n = h.status === "awaitingOtp", i = h.status === "resendingOtp", a = n || t || e;
85
- return /* @__PURE__ */ r(c, {
86
- className: "IncodeEmailPage IncodeEmailOtpPage",
87
- title: p("otp.enterCodeEmail"),
88
- children: /* @__PURE__ */ r(u, {
89
- resendTimer: a ? h.resendTimer : 0,
90
- canResend: a ? h.canResend : !1,
91
- error: t ? p(h.otpError) : void 0,
92
- isLoading: e,
93
- disabled: i || e,
94
- onSubmit: (e) => g.submitOtp(e),
95
- onResend: () => g.resendOtp(),
96
- onBack: () => g.back(),
97
- backLinkText: "otp.changeEmail"
98
- })
99
- }, "email-otp");
100
- }
101
- return h.status === "finished" ? (l?.(), null) : (h.status === "error" && d?.(h.error), null);
102
- }, g = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e || t ? /* @__PURE__ */ r(h, {
103
- config: e,
104
- manager: t,
105
- onFinish: n,
106
- onError: i
107
- }) : null });
108
- d(g, "incode-email");
109
- //#endregion
110
- export { g as Email };
1
+ import { b as v, u as e, I as O, a as w, S as C } from "../loadingIcon-DmuPXh70.js";
2
+ import { createEmailManager as y } from "@incodetech/core/email";
3
+ import { d as b, y as P } from "../vendor-preact-BoMmvSgn.js";
4
+ import "@incodetech/core";
5
+ import { B as V } from "../button-CE9kRlem.js";
6
+ import { O as R } from "../otpInput-BFXhqFRT.js";
7
+ import { P as I } from "../page-SrUl0qtN.js";
8
+ import { r as S } from "../incodeModule-C4XIllao.js";
9
+ import "../instance-BWYzq8dk.js";
10
+ import "../typography-BDACYR5i.js";
11
+ import { a as k } from "../inputComposed-fUbAGrDy.js";
12
+ import "../checkbox-B5X-mfqq.js";
13
+ import "../phoneInputComposed-Cm9O2Jba.js";
14
+ import "../dateInputComposed-C7PCzh-U.js";
15
+ import "../captureOverlay-tCb4R4WE.js";
16
+ import "../manualCaptureButton-BvFmTyJe.js";
17
+ import "../countries-DfLkrF0x.js";
18
+ const h = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, L = ({
19
+ prefilledEmail: i,
20
+ emailError: s,
21
+ label: m,
22
+ disabled: c = !1,
23
+ required: a = !1,
24
+ onEmailChange: t
25
+ }) => {
26
+ const { t: l } = v(), [f, p] = b("");
27
+ P(() => {
28
+ if (i) {
29
+ p(i);
30
+ const r = h.test(i.trim());
31
+ t(i.trim(), r);
32
+ }
33
+ }, [i, t]);
34
+ const E = (r) => {
35
+ const d = r.target.value;
36
+ p(d);
37
+ const o = d.trim(), u = o.length > 0 && h.test(o);
38
+ t(o, u);
39
+ }, n = s ? "email-error" : void 0;
40
+ return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children: /* @__PURE__ */ e(
41
+ k,
42
+ {
43
+ id: "email-input",
44
+ type: "email",
45
+ value: f,
46
+ onInput: E,
47
+ placeholder: l("email.placeholder"),
48
+ disabled: c,
49
+ required: a,
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": n || void 0,
55
+ autocomplete: "email",
56
+ error: s,
57
+ showErrorIcon: !0
58
+ }
59
+ ) }) });
60
+ }, T = ({
61
+ config: i,
62
+ manager: s,
63
+ onFinish: m,
64
+ onError: c
65
+ }) => {
66
+ const { t: a } = v(), [t, l] = w(
67
+ () => {
68
+ if (s) return s;
69
+ if (!i)
70
+ throw new Error("Email config is required");
71
+ return y({ config: i });
72
+ },
73
+ { manageLifecycle: !s }
74
+ ), [f, p] = b(!1);
75
+ if (t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingInitialOtp") {
76
+ const n = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingInitialOtp", r = t.status === "inputting" ? t.prefilledEmail : void 0, g = t.status === "inputting" && t.emailError ? a(t.emailError) : void 0, d = t.status === "inputting" ? t.otpVerification ?? !1 : !1;
77
+ return /* @__PURE__ */ e(
78
+ I,
79
+ {
80
+ className: "IncodeEmailPage",
81
+ title: a("otp.enterCodeEmail"),
82
+ subtitle: d ? a("email.willSendCode") : void 0,
83
+ children: [
84
+ /* @__PURE__ */ e(
85
+ L,
86
+ {
87
+ prefilledEmail: r,
88
+ emailError: g,
89
+ disabled: n,
90
+ onEmailChange: (o, u) => {
91
+ l.setEmail(o, u), p(u);
92
+ }
93
+ }
94
+ ),
95
+ /* @__PURE__ */ e(C, {}),
96
+ /* @__PURE__ */ e(
97
+ V,
98
+ {
99
+ onClick: () => l.submit(),
100
+ disabled: !f,
101
+ isLoading: n,
102
+ "data-testid": "email-submit",
103
+ children: a("common.continue")
104
+ }
105
+ )
106
+ ]
107
+ },
108
+ "email-input"
109
+ );
110
+ }
111
+ if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError" || t.status === "resendingOtp") {
112
+ const n = t.status === "verifyingOtp", r = t.status === "otpError", g = t.status === "awaitingOtp", d = t.status === "resendingOtp", o = g || r || n;
113
+ return /* @__PURE__ */ e(
114
+ I,
115
+ {
116
+ className: "IncodeEmailPage IncodeEmailOtpPage",
117
+ title: a("otp.enterCodeEmail"),
118
+ children: /* @__PURE__ */ e(
119
+ R,
120
+ {
121
+ resendTimer: o ? t.resendTimer : 0,
122
+ canResend: o ? t.canResend : !1,
123
+ error: r ? a(t.otpError) : void 0,
124
+ isLoading: n,
125
+ disabled: d || n,
126
+ onSubmit: (u) => l.submitOtp(u),
127
+ onResend: () => l.resendOtp(),
128
+ onBack: () => l.back(),
129
+ backLinkText: "otp.changeEmail"
130
+ }
131
+ )
132
+ },
133
+ "email-otp"
134
+ );
135
+ }
136
+ return t.status === "finished" ? (m?.(), null) : (t.status === "error" && c?.(t.error), null);
137
+ }, B = ({
138
+ config: i,
139
+ manager: s,
140
+ onFinish: m,
141
+ onError: c
142
+ }) => /* @__PURE__ */ e(O, { children: i || s ? /* @__PURE__ */ e(
143
+ T,
144
+ {
145
+ config: i,
146
+ manager: s,
147
+ onFinish: m,
148
+ onError: c
149
+ }
150
+ ) : null });
151
+ S(B, "incode-email");
152
+ export {
153
+ B as Email
154
+ };
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
2
  .IncodeEmailPage .IncodePageContent {
3
3
  padding-top: var(--spacing-32, var(--spacing-32, 32px));
4
4
  padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
@@ -0,0 +1,44 @@
1
+ import { b as m, u as n, S as r } from "./loadingIcon-DmuPXh70.js";
2
+ import { A as l, y as p } from "./vendor-preact-BoMmvSgn.js";
3
+ import { B as C } from "./button-CE9kRlem.js";
4
+ import { E as f } from "./errorIcon-DEARBrGx.js";
5
+ import { W as E } from "./warningIcon-DQq_MrOB.js";
6
+ import { P as I } from "./page-SrUl0qtN.js";
7
+ import { T as h } from "./typography-BDACYR5i.js";
8
+ const b = ({
9
+ title: c,
10
+ description: s,
11
+ attemptsRemaining: e,
12
+ onButtonClick: a,
13
+ "data-testid": d
14
+ }) => {
15
+ const { t } = m(), o = e <= 0, i = l(null);
16
+ return p(() => {
17
+ i.current?.focus();
18
+ }, []), /* @__PURE__ */ n("div", { class: "IncodeErrorContent", children: /* @__PURE__ */ n(I, { "data-testid": d, children: /* @__PURE__ */ n("div", { class: "IncodeErrorContentContainer", children: [
19
+ /* @__PURE__ */ n("div", { class: "IncodeErrorContentIconContainer", children: [
20
+ o ? /* @__PURE__ */ n(f, { size: 32 }) : /* @__PURE__ */ n(E, { size: 32 }),
21
+ /* @__PURE__ */ n(r, { size: 16 }),
22
+ /* @__PURE__ */ n(
23
+ h,
24
+ {
25
+ ref: i,
26
+ id: "error-content-title",
27
+ tabIndex: -1,
28
+ className: "IncodeErrorContentTitle",
29
+ children: c
30
+ }
31
+ ),
32
+ /* @__PURE__ */ n(r, { size: 12 }),
33
+ /* @__PURE__ */ n("p", { class: "IncodeErrorContentDescription", children: s })
34
+ ] }),
35
+ /* @__PURE__ */ n("div", { class: "IncodeErrorContentAttemptsContainer", children: [
36
+ /* @__PURE__ */ n("p", { class: "IncodeErrorContentAttemptsText", children: o ? t("notifications.noAttemptsRemaining") : t("common.attemptsRemaining", { count: e }) }),
37
+ /* @__PURE__ */ n(r, { size: 24 }),
38
+ /* @__PURE__ */ n(C, { onClick: a, children: t(o ? "common.continue" : "common.tryAgain") })
39
+ ] })
40
+ ] }) }) });
41
+ };
42
+ export {
43
+ b as E
44
+ };
@@ -0,0 +1,26 @@
1
+ import { u as r } from "./loadingIcon-DmuPXh70.js";
2
+ const n = ({ size: t = 32 }) => /* @__PURE__ */ r(
3
+ "svg",
4
+ {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: t,
7
+ height: t,
8
+ viewBox: "0 0 32 32",
9
+ fill: "none",
10
+ class: "IncodeErrorIcon",
11
+ "aria-hidden": "true",
12
+ children: [
13
+ /* @__PURE__ */ r("title", { children: "Error" }),
14
+ /* @__PURE__ */ r(
15
+ "path",
16
+ {
17
+ d: "M16 0C24.8219 0 32 7.17642 32 16C32 24.8219 24.8219 32 16 32C7.17811 32 0 24.8219 0 16C0 7.17642 7.17811 0 16 0ZM13.1553 11.3701C12.6618 10.8767 11.8636 10.8767 11.3701 11.3701C10.8767 11.8636 10.8767 12.6618 11.3701 13.1553L14.4053 16.1924L11.3721 19.2256C10.8803 19.7191 10.8803 20.5173 11.3721 21.0107C11.8656 21.504 12.6658 21.5041 13.1592 21.0107L16.1924 17.9775L19.2334 21.0205C19.481 21.2664 19.8029 21.3916 20.1279 21.3916C20.4513 21.3916 20.7746 21.2664 21.0205 21.0205C21.514 20.527 21.514 19.7269 21.0205 19.2334L17.9775 16.1924L21.0107 13.1572C21.5041 12.6638 21.504 11.8639 21.0107 11.3721C20.5173 10.8786 19.7191 10.8786 19.2256 11.3721L16.1904 14.4053L13.1553 11.3701Z",
18
+ fill: "var(--icon-status-negative)"
19
+ }
20
+ )
21
+ ]
22
+ }
23
+ );
24
+ export {
25
+ n as E
26
+ };
@@ -1,22 +1,150 @@
1
- import { n as e } from "./i18n-DZOHbK9q.js";
2
- import { t } from "./uiConfig-CwpQ-IM6.js";
3
- import { c as n, i as r, r as i, s as a } from "./loadingIcon-CeQt7Zgb.js";
4
- import { t as o } from "./spacer-DCljE53A.js";
5
- import { t as s } from "./button-DhL5eRT3.js";
6
- import { t as c } from "./page-SvlJWUfz.js";
7
- import { _ as l, a as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E } from "./extensibility-DJihqIzM.js";
8
- import { a as D, i as O, n as k, o as A, s as j, t as M } from "./typography-DvHeVWfY.js";
9
- import { t as N } from "./spinner-snIGzmm8.js";
10
- import { t as P } from "./processing-B5zhNH6I.js";
11
- import { a as F, c as I, d as L, f as R, i as z, l as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q } from "./icons-BHbofCgJ.js";
12
- import { a as J, i as Y, n as X, o as Z, r as Q, s as $, t as ee } from "./tutorial-DNOd11tg.js";
13
- import { t as te } from "./successIcon-AHrfmJvv.js";
14
- import { r as ne, t as re } from "./formField-BRTbY8w9.js";
15
- import { n as ie, t as ae } from "./inputComposed-BhbfD8Ru.js";
16
- import { t as oe } from "./otpInput-CDIG9el7.js";
17
- import { t as se } from "./checkbox-l8NxPf4o.js";
18
- import { n as ce, r as le, t as ue } from "./countries-y2ydYDhN.js";
19
- import { t as de } from "./phoneInputComposed-B-0zieIW.js";
20
- import { t as fe } from "./dropdownComposed-_Ey7wJNG.js";
21
- import { t as pe } from "./dateInputComposed-ndsGHX1M.js";
22
- export { Y as BaseTutorial, s as Button, R as CalendarIcon, p as CameraFrame, L as CameraIcon, f as CameraOverlay, T as CameraOverlayHeader, _ as CameraView, q as CaptureButtonIcon, d as CaptureFooter, se as Checkbox, B as CheckmarkIcon, I as ChevronDown, G as ChevronRightIcon, H as CloseIcon, pe as DateInputComposed, fe as DropdownComposed, $ as ErrorContent, U as ErrorIcon, F as FileIcon, re as FormField, z as HelpIcon, g as IdCapture, y as IdChooser, b as IdError, u as IdExpired, w as IdFlipAnimation, S as IdTutorial, i as IncodeComponent, ie as Input, ae as InputComposed, r as LandscapeBlocker, K as LightningIcon, W as LockIcon, J as Lottie, C as ManualCapture, Z as Modal, oe as OtpInput, E as Overlay, c as Page, Q as Permissions, de as PhoneInputComposed, P as Processing, l as ProgressBar, V as SearchIcon, X as SelfieCapture, ee as SelfieTutorial, o as Spacer, N as Spinner, te as SuccessIcon, m as TextArea, h as TextAreaComposed, M as Title, k as TypographyH1, O as TypographyH3, D as TypographyH4, A as TypographyH5, j as TypographyP, x as VerificationOptionCard, v as VerificationOptionCardList, ne as VerificationResult, ue as countries, ce as getCountryByCallingCode, le as getCountryByCode, t as setUiConfig, n as useManager, a as useScreenOrientation, e as useTranslation };
1
+ import { u as t } from "./loadingIcon-DmuPXh70.js";
2
+ import { I as g, L as y, S as T, a as v, b as S } from "./loadingIcon-DmuPXh70.js";
3
+ import { u as F } from "./instance-BWYzq8dk.js";
4
+ import { P as L } from "./page-SrUl0qtN.js";
5
+ import { C as b, F as H, O as M } from "./fileIcon-CCSvS10T.js";
6
+ import { S as E } from "./spinner-DygONskw.js";
7
+ import { P as D } from "./processing-szVOCQwZ.js";
8
+ import { E as A } from "./errorContent-Cb8nmQAE.js";
9
+ import { F as U, V as j } from "./formField-CP6wDdfA.js";
10
+ import { C as q, P as z } from "./cameraView-C2X7klNb.js";
11
+ import { B as i } from "./button-CE9kRlem.js";
12
+ import { I as J, a as K } from "./inputComposed-fUbAGrDy.js";
13
+ import { O as Q } from "./otpInput-BFXhqFRT.js";
14
+ import { C as Y, a as Z } from "./checkbox-B5X-mfqq.js";
15
+ import { P as $ } from "./phoneInputComposed-Cm9O2Jba.js";
16
+ import { D as ra, S as ea } from "./dropdownComposed-BpinYlrx.js";
17
+ import { C as ta, D as sa } from "./dateInputComposed-C7PCzh-U.js";
18
+ import { b as pa, C as ia, c as ca, e as ua, d as ma, H as la, L as Ca, T as da, a as fa } from "./captureOverlay-tCb4R4WE.js";
19
+ import { d as xa, C as ha, b as ga, I as ya, c as Ta, F as va, T as Sa, S as Ba, V as Fa, a as Pa } from "./flipAnimation-BqV462TA.js";
20
+ import { L as Oa, M as ba } from "./manualCaptureButton-BvFmTyJe.js";
21
+ import { A as c, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
22
+ import { B as Ma, P as Va } from "./permissions-DT4Fz9MR.js";
23
+ import { T as ka, a as Da, b as wa, c as Aa, d as Ra, e as Ua } from "./typography-BDACYR5i.js";
24
+ import { C as Wa } from "./chevronDown-DSHaPKbi.js";
25
+ import { C as za } from "./closeIcon-9Hc97omv.js";
26
+ import { E as Ja } from "./errorIcon-DEARBrGx.js";
27
+ import { S as Na } from "./successIcon-Bjsdc4lF.js";
28
+ import { c as Xa, a as Ya, g as Za } from "./countries-DfLkrF0x.js";
29
+ import { C as $a, T as ar } from "./tutorial-Cdz1025D.js";
30
+ import { s as er } from "./uiConfig-Dnt-2YWB.js";
31
+ function l(a) {
32
+ if (a.readyState < 2 || a.videoWidth === 0 || a.videoHeight === 0)
33
+ return null;
34
+ const r = document.createElement("canvas");
35
+ r.width = a.videoWidth, r.height = a.videoHeight;
36
+ const e = r.getContext("2d");
37
+ return e ? (e.drawImage(a, 0, 0), r.toDataURL("image/jpeg", 0.92).split(",")[1] ?? null) : null;
38
+ }
39
+ const I = ({
40
+ stream: a,
41
+ onCapture: r,
42
+ disabled: e
43
+ }) => {
44
+ const o = c(null);
45
+ u(() => {
46
+ o.current && a && (o.current.srcObject = a, o.current.play().catch(() => {
47
+ }));
48
+ }, [a]);
49
+ const s = m(() => {
50
+ const n = o.current;
51
+ if (!n || e) return;
52
+ const p = l(n);
53
+ p && r(p);
54
+ }, [r, e]);
55
+ return /* @__PURE__ */ t("div", { class: "IncodeManualCapture", children: [
56
+ /* @__PURE__ */ t("div", { class: "IncodeManualCaptureVideoContainer", children: /* @__PURE__ */ t(
57
+ "video",
58
+ {
59
+ ref: o,
60
+ autoplay: !0,
61
+ playsInline: !0,
62
+ muted: !0,
63
+ class: "IncodeManualCaptureVideo",
64
+ "aria-label": "Camera stream for document capture"
65
+ }
66
+ ) }),
67
+ /* @__PURE__ */ t("div", { class: "IncodeManualCaptureButtonContainer", children: /* @__PURE__ */ t(
68
+ i,
69
+ {
70
+ variant: "primary",
71
+ size: "L",
72
+ onClick: s,
73
+ disabled: e,
74
+ class: "IncodeManualCaptureButton",
75
+ "aria-label": "Capture document",
76
+ children: "Capture"
77
+ }
78
+ ) })
79
+ ] });
80
+ };
81
+ export {
82
+ Ma as BaseTutorial,
83
+ i as Button,
84
+ ta as CalendarIcon,
85
+ pa as CameraFrame,
86
+ b as CameraIcon,
87
+ ia as CameraOverlay,
88
+ ca as CameraOverlayHeader,
89
+ q as CameraView,
90
+ ua as CaptureButtonIcon,
91
+ ma as CaptureFooter,
92
+ Y as Checkbox,
93
+ Z as CheckmarkIcon,
94
+ Wa as ChevronDown,
95
+ xa as ChevronRightIcon,
96
+ za as CloseIcon,
97
+ sa as DateInputComposed,
98
+ ra as DropdownComposed,
99
+ A as ErrorContent,
100
+ Ja as ErrorIcon,
101
+ H as FileIcon,
102
+ U as FormField,
103
+ la as HelpIcon,
104
+ ha as IdCapture,
105
+ ga as IdChooser,
106
+ ya as IdError,
107
+ Ta as IdExpired,
108
+ va as IdFlipAnimation,
109
+ Sa as IdTutorial,
110
+ g as IncodeComponent,
111
+ J as Input,
112
+ K as InputComposed,
113
+ y as LandscapeBlocker,
114
+ Ba as LightningIcon,
115
+ Ca as LockIcon,
116
+ Oa as Lottie,
117
+ I as ManualCapture,
118
+ ba as Modal,
119
+ Q as OtpInput,
120
+ M as Overlay,
121
+ L as Page,
122
+ Va as Permissions,
123
+ $ as PhoneInputComposed,
124
+ D as Processing,
125
+ z as ProgressBar,
126
+ ea as SearchIcon,
127
+ $a as SelfieCapture,
128
+ ar as SelfieTutorial,
129
+ T as Spacer,
130
+ E as Spinner,
131
+ Na as SuccessIcon,
132
+ da as TextArea,
133
+ fa as TextAreaComposed,
134
+ ka as Title,
135
+ Da as TypographyH1,
136
+ wa as TypographyH3,
137
+ Aa as TypographyH4,
138
+ Ra as TypographyH5,
139
+ Ua as TypographyP,
140
+ Fa as VerificationOptionCard,
141
+ Pa as VerificationOptionCardList,
142
+ j as VerificationResult,
143
+ Xa as countries,
144
+ Ya as getCountryByCallingCode,
145
+ Za as getCountryByCode,
146
+ er as setUiConfig,
147
+ v as useManager,
148
+ F as useScreenOrientation,
149
+ S as useTranslation
150
+ };