@incodetech/web 2.0.0-alpha.8 → 2.0.0-rc.0

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 (182) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +5218 -639
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -145
  50. package/dist/email/styles.css +5 -116
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +910 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +646 -542
  61. package/dist/flow/styles.css +4524 -440
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -6
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -3441
  104. package/dist/phone/styles.css +3 -297
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +42 -892
  115. package/dist/selfie/styles.css +298 -184
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +846 -151
  125. package/dist/themes/light.css +798 -116
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/consent.d.ts +41 -0
  132. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  133. package/dist/types/cross-document-data-match.d.ts +34 -0
  134. package/dist/types/curp-validation.d.ts +40 -0
  135. package/dist/types/custom-fields/styles.d.ts +1 -0
  136. package/dist/types/document-capture/styles.d.ts +1 -0
  137. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  138. package/dist/types/ekyb.d.ts +34 -0
  139. package/dist/types/ekyc.d.ts +34 -0
  140. package/dist/types/electronic-signature.d.ts +43 -0
  141. package/dist/types/email.d.ts +14 -4
  142. package/dist/types/extensibility.d.ts +981 -0
  143. package/dist/types/face-match.d.ts +59 -0
  144. package/dist/types/flow.d.ts +81 -13
  145. package/dist/types/geolocation.d.ts +41 -0
  146. package/dist/types/governmentValidation.d.ts +34 -0
  147. package/dist/types/id-ocr/styles.d.ts +1 -0
  148. package/dist/types/id-verification.d.ts +40 -0
  149. package/dist/types/id.d.ts +41 -0
  150. package/dist/types/identity-reuse.d.ts +43 -0
  151. package/dist/types/index.d.ts +6 -12
  152. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  153. package/dist/types/phone.d.ts +14 -4
  154. package/dist/types/qe-signature.d.ts +40 -0
  155. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  156. package/dist/types/selfie.d.ts +14 -4
  157. package/dist/types/signature.d.ts +40 -0
  158. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  159. package/dist/types/watchlist.d.ts +40 -0
  160. package/dist/types/workflow.d.ts +91 -0
  161. package/dist/typography-CxjaknHN.js +28 -0
  162. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  163. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  164. package/dist/vendor-preact-D6SntenC.js +958 -0
  165. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  166. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  167. package/dist/watchlist/watchlist.es.js +33 -0
  168. package/dist/watchlist-for-business/styles.css +18 -0
  169. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  170. package/dist/workflow/styles.css +4612 -0
  171. package/dist/workflow/workflow.es.js +244 -0
  172. package/package.json +211 -15
  173. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  174. package/dist/incodeModule-Dv8Qllrv.js +0 -254
  175. package/dist/instance-B-q0ZREN.js +0 -2140
  176. package/dist/otpInput-BtoZe0Wz.js +0 -151
  177. package/dist/page-D9ijzlSn.js +0 -234
  178. package/dist/selfieTutorial-C-u5GufD.js +0 -29
  179. package/dist/setup-wNL83jmW.js +0 -20
  180. package/dist/title-BfO5Dlzk.js +0 -25
  181. package/dist/uiConfig-CQ1W9cUD.js +0 -23
  182. package/dist/vendor-preact-CK0WeTOR.js +0 -584
@@ -1,145 +1,87 @@
1
- import { u as e, S as g, r as h, a as v, B as O } from "../incodeModule-Dv8Qllrv.js";
2
- import { createEmailManager as y } from "@incodetech/core/email";
3
- import { d as f, y as b, k as V } from "../vendor-preact-CK0WeTOR.js";
4
- import { I as P, P as E } from "../page-D9ijzlSn.js";
5
- import { O as k } from "../otpInput-BtoZe0Wz.js";
6
- const I = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, w = ({
7
- prefilledEmail: i,
8
- emailError: s,
9
- disabled: r = !1,
10
- onEmailChange: t
11
- }) => {
12
- const [n, o] = f("");
13
- b(() => {
14
- if (i) {
15
- o(i);
16
- const a = I.test(i.trim());
17
- t(i.trim(), a);
18
- }
19
- }, [i, t]);
20
- const m = (a) => {
21
- const u = a.target.value;
22
- o(u);
23
- const l = u.trim(), c = l.length > 0 && I.test(l);
24
- t(l, c);
25
- }, p = s ? "email-error" : void 0;
26
- return /* @__PURE__ */ e("div", { class: "IncodeEmailInput", children: /* @__PURE__ */ e("div", { class: "IncodeEmailInputContainer", children: [
27
- /* @__PURE__ */ e(
28
- "div",
29
- {
30
- class: `IncodeEmailInputWrapper ${s ? "IncodeEmailInputWrapperError" : ""} ${r ? "IncodeEmailInputWrapperDisabled" : ""}`,
31
- children: [
32
- /* @__PURE__ */ e("label", { for: "email-input", class: "IncodeEmailInputLabel", children: "Email" }),
33
- /* @__PURE__ */ e(
34
- "input",
35
- {
36
- id: "email-input",
37
- type: "email",
38
- value: n,
39
- onInput: m,
40
- placeholder: "Email",
41
- disabled: r,
42
- class: "IncodeEmailInputField",
43
- "data-testid": "email-input",
44
- "aria-label": "Email address",
45
- "aria-invalid": s ? "true" : "false",
46
- "aria-describedby": p,
47
- autocomplete: "email"
48
- }
49
- )
50
- ]
51
- }
52
- ),
53
- s && /* @__PURE__ */ e(V, { children: [
54
- /* @__PURE__ */ e(g, { size: 8 }),
55
- /* @__PURE__ */ e(
56
- "p",
57
- {
58
- id: p,
59
- class: "IncodeEmailInputError",
60
- "data-testid": "email-error",
61
- role: "alert",
62
- children: s
63
- }
64
- )
65
- ] })
66
- ] }) });
67
- }, C = ({ config: i, onFinish: s, onError: r }) => {
68
- const [t, n] = v(() => {
69
- if (!i)
70
- throw new Error("Email config is required");
71
- return y({ config: i });
72
- }), [o, m] = f(!1);
73
- if (b(() => {
74
- if (t.status === "idle" && n.load)
75
- try {
76
- n.load();
77
- } catch (a) {
78
- r?.(
79
- a instanceof Error ? a.message : "Failed to initialize email verification"
80
- );
81
- }
82
- }, []), t.status === "idle" || t.status === "loadingPrefill" || t.status === "inputting" || t.status === "submitting" || t.status === "sendingOtp") {
83
- const a = t.status === "idle" || t.status === "loadingPrefill" || t.status === "submitting" || t.status === "sendingOtp", d = t.status === "inputting" ? t.prefilledEmail : void 0, u = t.status === "inputting" ? t.emailError : void 0;
84
- return /* @__PURE__ */ e(
85
- E,
86
- {
87
- className: "IncodeEmailPage",
88
- title: "Verify Email",
89
- subtitle: i.otpVerification ? "We will send you a verification code" : void 0,
90
- children: [
91
- /* @__PURE__ */ e(
92
- w,
93
- {
94
- prefilledEmail: d,
95
- emailError: u,
96
- disabled: a,
97
- onEmailChange: (l, c) => {
98
- n.setEmail(l, c), m(c);
99
- }
100
- }
101
- ),
102
- /* @__PURE__ */ e(g, {}),
103
- /* @__PURE__ */ e(
104
- O,
105
- {
106
- onClick: () => n.submit(),
107
- disabled: !o,
108
- isLoading: a,
109
- "data-testid": "email-submit",
110
- children: "Continue"
111
- }
112
- )
113
- ]
114
- }
115
- );
116
- }
117
- if (t.status === "awaitingOtp" || t.status === "verifyingOtp" || t.status === "otpError") {
118
- const a = t.status === "verifyingOtp";
119
- return /* @__PURE__ */ e(
120
- E,
121
- {
122
- className: "IncodeEmailPage IncodeEmailOtpPage",
123
- title: "Enter Verification Code",
124
- children: /* @__PURE__ */ e(
125
- k,
126
- {
127
- resendTimer: t.status === "awaitingOtp" ? t.resendTimer : 0,
128
- canResend: t.status === "awaitingOtp" ? t.canResend : !1,
129
- error: t.status === "otpError" ? t.error : void 0,
130
- onSubmit: (d) => n.submitOtp(d),
131
- onResend: () => n.resendOtp(),
132
- onBack: () => n.back(),
133
- backLinkText: "change email address",
134
- isLoading: a
135
- }
136
- )
137
- }
138
- );
139
- }
140
- return t.status === "success" ? (s?.(), null) : (t.status === "error" && r?.(t.error), null);
141
- }, L = ({ config: i, onFinish: s, onError: r }) => /* @__PURE__ */ e(P, { children: i ? /* @__PURE__ */ e(C, { config: i, onFinish: s, onError: r }) : null });
142
- h(L, "incode-email");
143
- export {
144
- L as Email
145
- };
1
+ import { n as e } from "../i18n-9s4OSqwi.js";
2
+ import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
3
+ import { o as i } from "../hooks-BVnGysT7.js";
4
+ import { t as a } from "../incodeComponent-C1o4M0ZK.js";
5
+ import { r as o } from "../loadingIcon-BN5YRQUb.js";
6
+ import { t as s } from "../page-C1yT4DLb.js";
7
+ import { t as c } from "../button-DcCUEn2n.js";
8
+ import { t as l } from "../otpInput-DqRA_egd.js";
9
+ import { t as u } from "../incodeModule-BqCjVgEI.js";
10
+ import { t as d } from "../emailInput-DppGf9pv.js";
11
+ import { createEmailManager as f } from "@incodetech/core/email";
12
+ //#region src/modules/email/email.tsx
13
+ function p(e) {
14
+ return e === "serverError" ? "email.serverError" : e;
15
+ }
16
+ function m(e) {
17
+ return e === "invalidEmail" ? "verification.errors.emailInvalid" : e === "serverError" ? "email.serverError" : e;
18
+ }
19
+ var h = ({ config: a, manager: u, onFinish: h, onError: g }) => {
20
+ let { t: _ } = e(), [v, y] = i(() => {
21
+ if (u) return u;
22
+ if (!a) throw Error("Email config is required");
23
+ return f({ config: a });
24
+ }, { manageLifecycle: !u }), [b, x] = n(""), [S, C] = n(!1), [w, T] = n(!1), [E, D] = n(!1), O = v.status === "inputting" ? v.prefilledEmail ?? "" : "";
25
+ if (t(() => {
26
+ if (O) {
27
+ let e = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(O.trim());
28
+ x(O.trim()), C(e), y.setEmail(O.trim(), e);
29
+ }
30
+ }, [O, y]), v.status === "idle" || v.status === "loadingPrefill" || v.status === "inputting" || v.status === "submitting" || v.status === "sendingInitialOtp") {
31
+ let e = v.status === "idle" || v.status === "loadingPrefill" || v.status === "submitting" || v.status === "sendingInitialOtp", t = v.status === "inputting" && v.emailError ? _(m(v.emailError)) : void 0, n = v.status === "inputting" && w && E && !S ? _("verification.errors.emailInvalid") : void 0, i = t ?? n, a = !S || t !== void 0;
32
+ return /* @__PURE__ */ r(s, {
33
+ className: "IncodeEmailPage",
34
+ title: _("email.verify"),
35
+ subtitle: _("email.willSendCode"),
36
+ children: [
37
+ /* @__PURE__ */ r(d, {
38
+ value: b,
39
+ emailError: i,
40
+ disabled: e,
41
+ required: !0,
42
+ onEmailChange: (e, t) => {
43
+ y.setEmail(e, t), x(e), T(!0), D(!1), C(t);
44
+ },
45
+ onBlur: () => {
46
+ D(!0);
47
+ }
48
+ }),
49
+ /* @__PURE__ */ r(o, {}),
50
+ /* @__PURE__ */ r(c, {
51
+ onClick: () => y.submit(),
52
+ disabled: a,
53
+ isLoading: e,
54
+ "data-testid": "email-submit",
55
+ children: _("common.continue")
56
+ })
57
+ ]
58
+ }, "email-input");
59
+ }
60
+ if (v.status === "awaitingOtp" || v.status === "verifyingOtp" || v.status === "otpError" || v.status === "resendingOtp") {
61
+ let e = v.status === "verifyingOtp", t = v.status === "otpError", n = v.status === "awaitingOtp", i = v.status === "resendingOtp", a = n || t || e;
62
+ return /* @__PURE__ */ r(s, {
63
+ className: "IncodeEmailPage IncodeEmailOtpPage",
64
+ title: _("otp.enterCodeEmail"),
65
+ children: /* @__PURE__ */ r(l, {
66
+ resendTimer: a ? v.resendTimer : 0,
67
+ canResend: a ? v.canResend : !1,
68
+ error: t ? _(p(v.otpError)) : void 0,
69
+ isLoading: e,
70
+ disabled: i || e,
71
+ onSubmit: (e) => y.submitOtp(e),
72
+ onResend: () => y.resendOtp(),
73
+ onBack: () => y.back(),
74
+ backLinkText: "otp.changeEmail"
75
+ })
76
+ }, "email-otp");
77
+ }
78
+ return v.status === "finished" ? (h?.(), null) : (v.status === "error" && g?.(v.error), null);
79
+ }, g = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e || t ? /* @__PURE__ */ r(h, {
80
+ config: e,
81
+ manager: t,
82
+ onFinish: n,
83
+ onError: i
84
+ }) : null });
85
+ u(g, "incode-email");
86
+ //#endregion
87
+ export { g as Email };
@@ -1,123 +1,12 @@
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
- .IncodeEmailPage .IncodePageContent {
13
- padding-top: var(--spacing-32, var(--spacing-32, 32px));
14
- padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
15
- }
16
-
17
- .IncodeEmailPage .IncodeEmailInput, .IncodeEmailPage .IncodeEmailInputContainer {
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ .IncodeEmailInput, .IncodeEmailInputContainer {
18
3
  flex-direction: column;
19
4
  align-items: center;
20
5
  width: 100%;
21
6
  display: flex;
22
7
  }
23
8
 
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-active, var(--input-border-active));
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(--border-none));
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
9
+ .IncodeEmailPage .IncodePageContent {
10
+ padding-top: var(--spacing-32, var(--spacing-32, 32px));
11
+ padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
123
12
  }
@@ -0,0 +1,37 @@
1
+ import { n as e } from "./i18n-9s4OSqwi.js";
2
+ import { v as t } from "./vendor-preact-D6SntenC.js";
3
+ import "./extensibility-CzEJfRwo.js";
4
+ import { t as n } from "./inputComposed-APSw8C7o.js";
5
+ //#region src/modules/email/emailInput.tsx
6
+ var r = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/, i = ({ value: i, emailError: a, label: o, disabled: s = !1, required: c = !1, onEmailChange: l, onBlur: u }) => {
7
+ let { t: d } = e(), f = (e) => {
8
+ let t = e.target.value.trim();
9
+ l(t, t.length > 0 && r.test(t));
10
+ }, p = a ? "email-error" : void 0;
11
+ return /* @__PURE__ */ t("div", {
12
+ class: "IncodeEmailInput",
13
+ children: /* @__PURE__ */ t("div", {
14
+ class: "IncodeEmailInputContainer",
15
+ onFocusOut: u,
16
+ children: /* @__PURE__ */ t(n, {
17
+ id: "email-input",
18
+ type: "email",
19
+ value: i,
20
+ onInput: f,
21
+ placeholder: d("email.placeholder"),
22
+ disabled: s,
23
+ required: c,
24
+ label: o,
25
+ "data-testid": "email-input",
26
+ "aria-label": o ? void 0 : "Email address",
27
+ "aria-invalid": a ? "true" : void 0,
28
+ "aria-describedby": p || void 0,
29
+ autocomplete: "email",
30
+ error: a,
31
+ showErrorIcon: !0
32
+ })
33
+ })
34
+ });
35
+ };
36
+ //#endregion
37
+ export { i as t };
@@ -0,0 +1,70 @@
1
+ import { n as e } from "./i18n-9s4OSqwi.js";
2
+ import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
3
+ import { r as i } from "./loadingIcon-BN5YRQUb.js";
4
+ import { t as a } from "./page-C1yT4DLb.js";
5
+ import { t as o } from "./typography-CxjaknHN.js";
6
+ import { t as s } from "./button-DcCUEn2n.js";
7
+ //#region src/shared/icons/redStrikeIcon.tsx
8
+ var c = ({ className: e, ...t }) => /* @__PURE__ */ r("svg", {
9
+ class: e,
10
+ width: "33",
11
+ height: "32",
12
+ viewBox: "0 0 33 32",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ "aria-hidden": "true",
16
+ ...t,
17
+ children: /* @__PURE__ */ r("path", {
18
+ d: "M16.5 0C25.3219 0 32.5 7.17642 32.5 16C32.5 24.8219 25.3219 32 16.5 32C7.67811 32 0.5 24.8219 0.5 16C0.5 7.17642 7.67811 0 16.5 0ZM13.6553 11.3701C13.1618 10.8767 12.3636 10.8767 11.8701 11.3701C11.3767 11.8636 11.3767 12.6618 11.8701 13.1553L14.9053 16.1924L11.8721 19.2256C11.3803 19.7191 11.3803 20.5173 11.8721 21.0107C12.3656 21.504 13.1658 21.5041 13.6592 21.0107L16.6924 17.9775L19.7334 21.0205C19.981 21.2664 20.3029 21.3916 20.6279 21.3916C20.9513 21.3916 21.2746 21.2664 21.5205 21.0205C22.014 20.527 22.014 19.7269 21.5205 19.2334L18.4775 16.1924L21.5107 13.1572C22.0041 12.6638 22.004 11.8639 21.5107 11.3721C21.0173 10.8786 20.2191 10.8786 19.7256 11.3721L16.6904 14.4053L13.6553 11.3701Z",
19
+ fill: "#E71111"
20
+ })
21
+ }), l = ({ onRetry: l, onContinue: u, attemptsRemaining: d }) => {
22
+ let { t: f } = e(), p = n(null);
23
+ return t(() => {
24
+ p.current?.focus();
25
+ }, []), /* @__PURE__ */ r(a, {
26
+ hideHeader: !0,
27
+ hideFooterBranding: !0,
28
+ className: "IncodeIdExpiredPage",
29
+ "data-testid": "expired-id",
30
+ children: [/* @__PURE__ */ r("div", {
31
+ class: "IncodeIdExpiredContent",
32
+ role: "alert",
33
+ children: [
34
+ /* @__PURE__ */ r(c, { className: "IncodeIdExpiredIcon" }),
35
+ /* @__PURE__ */ r(o, {
36
+ ref: p,
37
+ tabIndex: -1,
38
+ className: "IncodeIdExpiredTitle",
39
+ children: f("idv2.capture.notifications.expiredId")
40
+ }),
41
+ /* @__PURE__ */ r(i, { size: 12 }),
42
+ /* @__PURE__ */ r("p", {
43
+ class: "IncodeIdExpiredSubtitle",
44
+ children: f("idv2.capture.expiredId.pleaseTryWithADifferentId")
45
+ }),
46
+ /* @__PURE__ */ r(i, { size: 80 }),
47
+ d === void 0 ? null : /* @__PURE__ */ r("p", {
48
+ class: "IncodeIdExpiredAttemptsCounter",
49
+ "data-testid": "expired-id-attempts-counter",
50
+ children: `${d} ${f("idv2.capture.processing.attemptsRemainingLabel")}`
51
+ })
52
+ ]
53
+ }), /* @__PURE__ */ r("div", {
54
+ class: "IncodeIdExpiredButtonContainer",
55
+ children: l ? /* @__PURE__ */ r(s, {
56
+ variant: "primary",
57
+ onClick: l,
58
+ "data-testid": "expired-id-retry",
59
+ children: f("idv2.capture.processing.tryAgain")
60
+ }) : u ? /* @__PURE__ */ r(s, {
61
+ variant: "primary",
62
+ onClick: u,
63
+ "data-testid": "expired-id-continue",
64
+ children: f("idv2.capture.processing.continue")
65
+ }) : null
66
+ })]
67
+ });
68
+ };
69
+ //#endregion
70
+ export { c as n, l as t };