@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,233 +0,0 @@
1
- import { n as e } from "./i18n-DZOHbK9q.js";
2
- import { _ as t, d as n, h as r, l as i, p as a, v as o } from "./vendor-preact-D6SntenC.js";
3
- import { c as s, o as c, r as l } from "./loadingIcon-CeQt7Zgb.js";
4
- import { t as u } from "./button-DhL5eRT3.js";
5
- import { t as d } from "./page-SvlJWUfz.js";
6
- import { t as f } from "./spinner-snIGzmm8.js";
7
- import { n as p, r as m, t as h } from "./formField-BRTbY8w9.js";
8
- import { t as g } from "./phoneInputComposed-B-0zieIW.js";
9
- import { t as _ } from "./dropdownComposed-_Ey7wJNG.js";
10
- import { t as v } from "./dateInputComposed-ndsGHX1M.js";
11
- import { t as y } from "./incodeModule-Bf6yJ8RB.js";
12
- import { t as b } from "./addressAutocomplete-B3f6PGTT.js";
13
- import { computeEkycDisplayErrors as x, createEkycManager as S } from "@incodetech/core/ekyc";
14
- //#region src/modules/ekyc/ekycModule.tsx
15
- var C = ({ config: n, onFinish: r }) => {
16
- let { t: i } = e(), [a, c] = s(() => S({ config: n }));
17
- return t(() => {
18
- (a.status === "finished" || a.status === "closed") && r?.();
19
- }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ o(m, {
20
- status: "submitting",
21
- submittingTitle: i("common.loading")
22
- }) : a.status === "submitting" ? /* @__PURE__ */ o(d, { children: /* @__PURE__ */ o(f, {
23
- fullScreen: !1,
24
- title: i("common.processing"),
25
- className: "IncodeEkycSpinner"
26
- }) }) : a.status === "success" ? /* @__PURE__ */ o(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ o(m, {
27
- status: "failure",
28
- onRetry: () => c.retry(),
29
- onSkip: () => c.skip()
30
- }) : a.status === "misconfigured" ? /* @__PURE__ */ o(m, {
31
- status: "failure",
32
- failureTitle: i("verification.noFormFields"),
33
- onSkip: () => c.close(),
34
- skipLabel: i("common.close")
35
- }) : a.status === "form" ? /* @__PURE__ */ o(T, {
36
- state: a,
37
- manager: c
38
- }) : null;
39
- }, w = [
40
- "street",
41
- "city",
42
- "state",
43
- "postalCode",
44
- "houseNo"
45
- ], T = ({ state: s, manager: l }) => {
46
- let { fields: f, values: m, errors: y, isValid: S, addressSuggestions: C, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O, submitAttempted: k } = s, { t: A } = e(), j = i(null), M = i(null), N = i(void 0), P = c(j, f.length), [F, I] = a({}), L = r((e) => {
47
- I((t) => t[e] ? t : {
48
- ...t,
49
- [e]: !0
50
- });
51
- }, []), { displayErrors: R, errorParams: z } = n(() => x(y, F, k, D, f), [
52
- y,
53
- F,
54
- k,
55
- D,
56
- f
57
- ]), B = r((e) => L(e), [L]), V = r((e, t) => {
58
- L(e), l.setField(e, t);
59
- }, [l, L]), H = r((e) => {
60
- for (let e of w) L(e);
61
- l.selectAddress(e);
62
- }, [l, L]);
63
- t(() => {
64
- let e = R.postalCode, t = N.current;
65
- if (N.current = e, !e || t === e) return;
66
- let n = requestAnimationFrame(() => {
67
- let e = M.current;
68
- e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
69
- behavior: "smooth",
70
- block: "nearest"
71
- });
72
- });
73
- return () => cancelAnimationFrame(n);
74
- }, [R.postalCode]);
75
- let U = (e, t) => p(A, t, z[e]), W;
76
- return /* @__PURE__ */ o(d, {
77
- className: `IncodeEkycPage${P ? " IncodeEkycPageScrollable" : ""}`,
78
- title: A("verification.title"),
79
- children: [/* @__PURE__ */ o("div", {
80
- ref: j,
81
- className: "IncodeEkycForm",
82
- children: f.map((e) => {
83
- if (e.name === "email" && E) return null;
84
- let t = null;
85
- e.section && e.section !== W && (W = e.section, t = /* @__PURE__ */ o("h3", {
86
- className: "IncodeEkycSectionHeader",
87
- children: A({
88
- address: "verification.labels.addressDetailsSection",
89
- driverLicense: "verification.labels.dlDetailsSection"
90
- }[e.section] ?? e.section)
91
- }));
92
- let n = e.readonly || T[e.name], r = m[e.name] ?? "", i = R[e.name];
93
- if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(b, {
94
- label: e.label,
95
- value: r,
96
- error: i,
97
- errorParams: z[e.name],
98
- suggestions: C,
99
- readonly: n,
100
- optional: !e.required,
101
- onChange: (e) => V("street", e),
102
- onSearch: (e) => l.searchAddress(e),
103
- onSelect: H,
104
- onBlur: () => B("street")
105
- })] }, e.name);
106
- if (e.type === "dropdown") {
107
- let a = A(e.label);
108
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(_, {
109
- id: `ekyc-${e.name}`,
110
- label: a,
111
- placeholder: e.placeholder ? A(e.placeholder) : void 0,
112
- value: r,
113
- options: (e.options ?? []).map((e) => ({
114
- ...e,
115
- label: A(e.label)
116
- })),
117
- error: U(e.name, i),
118
- disabled: n,
119
- searchable: !0,
120
- onChange: (t) => V(e.name, t),
121
- onBlur: () => B(e.name),
122
- "data-testid": `ekyc-field-${e.name}`
123
- })] }, e.name);
124
- }
125
- if (e.type === "date") {
126
- let a = A(e.label);
127
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(v, {
128
- id: `ekyc-${e.name}`,
129
- label: a,
130
- value: r,
131
- error: U(e.name, i),
132
- disabled: n,
133
- onInput: (t) => {
134
- let n = t.target;
135
- V(e.name, n.value);
136
- },
137
- onBlur: () => B(e.name),
138
- "data-testid": `ekyc-field-${e.name}`
139
- })] }, e.name);
140
- }
141
- if (e.type === "phone") {
142
- let a = A(e.label);
143
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(g, {
144
- id: `ekyc-${e.name}`,
145
- label: a,
146
- countryCode: D,
147
- value: r,
148
- placeholder: e.placeholder,
149
- error: U(e.name, i),
150
- disabled: n,
151
- disableCountrySelector: e.disableCountrySelector,
152
- required: !1,
153
- onChange: (t) => V(e.name, t),
154
- onBlur: () => B(e.name),
155
- "data-testid": `ekyc-field-${e.name}`
156
- })] }, e.name);
157
- }
158
- return e.type === "radio" ? /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o("div", {
159
- className: "IncodeEkycRadioGroup",
160
- children: [
161
- /* @__PURE__ */ o("label", {
162
- className: "IncodeEkycRadioLabel",
163
- children: A(e.label)
164
- }),
165
- /* @__PURE__ */ o("div", {
166
- className: "IncodeEkycRadioOptions",
167
- children: e.options?.map((t) => /* @__PURE__ */ o("label", {
168
- className: "IncodeEkycRadioOption",
169
- children: [/* @__PURE__ */ o("input", {
170
- type: "radio",
171
- name: e.name,
172
- checked: r === t.value,
173
- value: t.value,
174
- onChange: () => V(e.name, t.value),
175
- onBlur: () => B(e.name),
176
- disabled: n
177
- }), /* @__PURE__ */ o("span", { children: A(t.label) })]
178
- }, t.value))
179
- }),
180
- i && /* @__PURE__ */ o("span", {
181
- className: "IncodeEkycFieldError",
182
- children: U(e.name, i)
183
- })
184
- ]
185
- })] }, e.name) : /* @__PURE__ */ o("div", {
186
- ref: e.name === "postalCode" ? M : void 0,
187
- children: [t, /* @__PURE__ */ o(h, {
188
- name: e.name,
189
- label: e.label,
190
- value: r,
191
- error: i,
192
- errorParams: z[e.name],
193
- type: e.type,
194
- placeholder: e.placeholder,
195
- placeholderParams: e.placeholderParams,
196
- required: e.required,
197
- optional: e.optional,
198
- readonly: n,
199
- maxLength: e.maxLength,
200
- onChange: V,
201
- onBlur: B
202
- })]
203
- }, e.name);
204
- })
205
- }), /* @__PURE__ */ o("div", {
206
- className: "IncodeEkycFooter",
207
- children: [
208
- O && /* @__PURE__ */ o("p", {
209
- className: "IncodeEkycSubmitError",
210
- children: A(O)
211
- }),
212
- /* @__PURE__ */ o(u, {
213
- onClick: () => l.submit(),
214
- disabled: !S,
215
- "data-testid": "ekyc-submit",
216
- children: A("common.continue")
217
- }),
218
- O === "verification.errors.countryNotSupported" && /* @__PURE__ */ o(u, {
219
- variant: "link",
220
- onClick: () => l.skip(),
221
- "data-testid": "ekyc-skip",
222
- children: A("verification.labels.skip")
223
- })
224
- ]
225
- })]
226
- });
227
- }, E = ({ config: e, onFinish: t }) => /* @__PURE__ */ o(l, { children: e ? /* @__PURE__ */ o(C, {
228
- config: e,
229
- onFinish: t
230
- }) : null });
231
- y(E, "incode-ekyc");
232
- //#endregion
233
- export { E as t };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekycModule-SeTFG3AJ.js";
2
- export { e as EkycModule };