@incodetech/web 2.0.0-rc.0 → 2.0.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 (178) hide show
  1. package/package.json +3 -3
  2. package/dist/ae-signature/ae-signature.es.js +0 -15
  3. package/dist/ae-signature/styles.css +0 -348
  4. package/dist/ae-signature/styles2.css +0 -107
  5. package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
  6. package/dist/antifraud/antifraud.es.js +0 -18
  7. package/dist/antifraud/styles.css +0 -2
  8. package/dist/authentication/authentication.es.js +0 -29
  9. package/dist/autoFocusTitle-QexamZ4i.js +0 -16
  10. package/dist/back-horizontal-hint-B8Brxh3U.js +0 -137
  11. package/dist/back-tutorial-1NOQobGO.js +0 -14585
  12. package/dist/back-vertical-hint-BBo36dxn.js +0 -128
  13. package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
  14. package/dist/base.css +0 -5818
  15. package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
  16. package/dist/bottomSheet-DE_8TFEC.js +0 -31
  17. package/dist/browser-ponyfill-jOkuz57z.js +0 -299
  18. package/dist/button-DcCUEn2n.js +0 -24
  19. package/dist/checkbox-Cl57ltq_.js +0 -85
  20. package/dist/consent/consent.es.js +0 -90
  21. package/dist/consent/styles.css +0 -116
  22. package/dist/countrySelector-CE-JgIsv.js +0 -58
  23. package/dist/cpf-ocr/styles.css +0 -45
  24. package/dist/cpfOcr-D_tbwbvh.js +0 -78
  25. package/dist/cross-document-data-match/cross-document-data-match.es.js +0 -18
  26. package/dist/curp-validation/curp-validation.es.js +0 -279
  27. package/dist/curp-validation/styles.css +0 -82
  28. package/dist/custom-fields/styles.css +0 -22
  29. package/dist/customFields-CW38fQUv.js +0 -127
  30. package/dist/customWatchlist-D9_yjEQd.js +0 -33
  31. package/dist/dateInputComposed-BpAGsjN6.js +0 -55
  32. package/dist/dateInputComposed-DU3o6PAV.js +0 -1
  33. package/dist/defineProperty-Dh8nSJpJ.js +0 -39
  34. package/dist/document-capture/styles.css +0 -367
  35. package/dist/documentCapture-xX-JT7ZY.js +0 -763
  36. package/dist/dropdownComposed-DFRBG22E.js +0 -284
  37. package/dist/dropdownComposed-DwTzc2YU.js +0 -1
  38. package/dist/dynamic-forms/styles.css +0 -36
  39. package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
  40. package/dist/ekyb/ekyb.es.js +0 -2
  41. package/dist/ekyb/styles.css +0 -137
  42. package/dist/ekybModule-BSs7mndb.js +0 -280
  43. package/dist/ekybModule-D9M3E2Gm.js +0 -2
  44. package/dist/ekyc/ekyc.es.js +0 -2
  45. package/dist/ekyc/styles.css +0 -106
  46. package/dist/ekycModule-CU9pt5YN.js +0 -246
  47. package/dist/ekycModule-CZw9cLno.js +0 -2
  48. package/dist/electronic-signature/electronic-signature.es.js +0 -2
  49. package/dist/electronic-signature-COYXjGdd.js +0 -410
  50. package/dist/email/email.es.js +0 -87
  51. package/dist/email/styles.css +0 -12
  52. package/dist/emailInput-DppGf9pv.js +0 -37
  53. package/dist/expiredId-BnmzE8T3.js +0 -70
  54. package/dist/extensibility-CzEJfRwo.js +0 -2586
  55. package/dist/extensibility.es.js +0 -25
  56. package/dist/face-match/face-match.es.js +0 -2
  57. package/dist/face-match/styles.css +0 -910
  58. package/dist/faceMatch-B8j0g0Yo.js +0 -2
  59. package/dist/faceMatch-BV8UD7tj.js +0 -201
  60. package/dist/flip-animation-CgwRsEmK.js +0 -6983
  61. package/dist/flow/flow.es.js +0 -661
  62. package/dist/flow/styles.css +0 -5205
  63. package/dist/front-horizontal-hint-DGGGi8e1.js +0 -380
  64. package/dist/front-vertical-hint-CNr5mE6Q.js +0 -420
  65. package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
  66. package/dist/geolocation/geolocation.es.js +0 -857
  67. package/dist/geolocation/styles.css +0 -158
  68. package/dist/glaredevicelottie-B10axYs_.js +0 -14466
  69. package/dist/governmentValidation/governmentValidation.es.js +0 -98
  70. package/dist/governmentValidation/styles.css +0 -58
  71. package/dist/homeScreen-DnP1jw9A.js +0 -227
  72. package/dist/hooks-BVnGysT7.js +0 -80
  73. package/dist/i18n-9s4OSqwi.js +0 -2010
  74. package/dist/icons-Cc7zwchP.js +0 -310
  75. package/dist/id/id.es.js +0 -832
  76. package/dist/id/styles.css +0 -1287
  77. package/dist/id-laser-h-mBAzHVOK.js +0 -467
  78. package/dist/id-laser-v-CrFg4bcJ.js +0 -483
  79. package/dist/id-ocr/styles.css +0 -46
  80. package/dist/id-tutorial-BCr42Pnn.js +0 -13153
  81. package/dist/id-verification/id-verification.es.js +0 -20
  82. package/dist/idOcr-CCjfWQvH.js +0 -94
  83. package/dist/identity-reuse/identity-reuse.es.js +0 -198
  84. package/dist/identity-reuse/styles.css +0 -163
  85. package/dist/incode-logo-DX016usY.js +0 -4
  86. package/dist/incodeComponent-C1o4M0ZK.js +0 -50
  87. package/dist/incodeModule-BqCjVgEI.js +0 -18
  88. package/dist/index.es.js +0 -16
  89. package/dist/inputComposed-APSw8C7o.js +0 -89
  90. package/dist/inputComposed-XYrarFxS.js +0 -1
  91. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  92. package/dist/mandatoryConsent-DssKMC3v.js +0 -100
  93. package/dist/modal-NMxsQHAO.js +0 -135
  94. package/dist/modal.hooks-CAjcIFZK.js +0 -126
  95. package/dist/numberedStep-CT-alrK5.js +0 -11
  96. package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
  97. package/dist/otpInput-DqRA_egd.js +0 -145
  98. package/dist/page-C1yT4DLb.js +0 -69
  99. package/dist/passport-horizontal-hint-Bgquwtac.js +0 -293
  100. package/dist/passport-tutorial-DwRwtPVX.js +0 -11689
  101. package/dist/passport-vertical-hint-BT1D5BrW.js +0 -267
  102. package/dist/pdf-BurGZ08w.js +0 -14967
  103. package/dist/pdfViewer-BGBNL1Ea.js +0 -63
  104. package/dist/phone/phone.es.js +0 -98
  105. package/dist/phone/styles.css +0 -11
  106. package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
  107. package/dist/processing-G_y3o32b.js +0 -6
  108. package/dist/qe-signature/qe-signature.es.js +0 -15
  109. package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
  110. package/dist/redirect-to-mobile/styles.css +0 -588
  111. package/dist/redirectToMobile-C3k1gloW.js +0 -1514
  112. package/dist/requiredLabelHint-BLwgqozE.js +0 -13
  113. package/dist/richText-DbJ5sl2n.js +0 -1973
  114. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  115. package/dist/selfie/selfie.es.js +0 -43
  116. package/dist/selfie/styles.css +0 -706
  117. package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
  118. package/dist/signature/signature.es.js +0 -546
  119. package/dist/snackbar-BDp8x7Cv.js +0 -14
  120. package/dist/spinner-B4dcie2T.js +0 -1
  121. package/dist/spinner-CKnjVHxw.js +0 -39
  122. package/dist/statusPage-CUI7ApcU.js +0 -28
  123. package/dist/successIcon-DbILeIz_.js +0 -28
  124. package/dist/tabs-DaPyP71c.js +0 -78
  125. package/dist/themes/dark.css +0 -1347
  126. package/dist/themes/light.css +0 -1225
  127. package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
  128. package/dist/tutorial-9vHAHvMK.js +0 -2587
  129. package/dist/types/ae-signature.d.ts +0 -40
  130. package/dist/types/antifraud.d.ts +0 -40
  131. package/dist/types/authentication.d.ts +0 -45
  132. package/dist/types/base.d.ts +0 -1
  133. package/dist/types/consent.d.ts +0 -41
  134. package/dist/types/cpf-ocr/styles.d.ts +0 -1
  135. package/dist/types/cross-document-data-match.d.ts +0 -34
  136. package/dist/types/curp-validation.d.ts +0 -40
  137. package/dist/types/custom-fields/styles.d.ts +0 -1
  138. package/dist/types/dark.d.ts +0 -1
  139. package/dist/types/document-capture/styles.d.ts +0 -1
  140. package/dist/types/dynamic-forms/styles.d.ts +0 -1
  141. package/dist/types/ekyb.d.ts +0 -34
  142. package/dist/types/ekyc.d.ts +0 -34
  143. package/dist/types/electronic-signature.d.ts +0 -43
  144. package/dist/types/email.d.ts +0 -67
  145. package/dist/types/extensibility.d.ts +0 -981
  146. package/dist/types/face-match.d.ts +0 -59
  147. package/dist/types/flow.d.ts +0 -137
  148. package/dist/types/geolocation.d.ts +0 -41
  149. package/dist/types/governmentValidation.d.ts +0 -34
  150. package/dist/types/id-ocr/styles.d.ts +0 -1
  151. package/dist/types/id-verification.d.ts +0 -40
  152. package/dist/types/id.d.ts +0 -41
  153. package/dist/types/identity-reuse.d.ts +0 -43
  154. package/dist/types/index.d.ts +0 -32
  155. package/dist/types/light.d.ts +0 -1
  156. package/dist/types/mandatory-consent/styles.d.ts +0 -1
  157. package/dist/types/phone.d.ts +0 -68
  158. package/dist/types/qe-signature.d.ts +0 -40
  159. package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
  160. package/dist/types/selfie.d.ts +0 -41
  161. package/dist/types/signature.d.ts +0 -40
  162. package/dist/types/styles.d.ts +0 -1
  163. package/dist/types/themes/dark.d.ts +0 -1
  164. package/dist/types/themes/light.d.ts +0 -1
  165. package/dist/types/watchlist-for-business/styles.d.ts +0 -1
  166. package/dist/types/watchlist.d.ts +0 -40
  167. package/dist/types/workflow.d.ts +0 -91
  168. package/dist/typography-CxjaknHN.js +0 -28
  169. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  170. package/dist/useModuleLoader-BFiVA41N.js +0 -432
  171. package/dist/vendor-preact-D6SntenC.js +0 -958
  172. package/dist/verificationResult-BrVbUJ4U.js +0 -97
  173. package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
  174. package/dist/watchlist/watchlist.es.js +0 -33
  175. package/dist/watchlist-for-business/styles.css +0 -18
  176. package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
  177. package/dist/workflow/styles.css +0 -4612
  178. package/dist/workflow/workflow.es.js +0 -244
@@ -1,246 +0,0 @@
1
- import { n as e } from "./i18n-9s4OSqwi.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 { i as s, o as c } from "./hooks-BVnGysT7.js";
4
- import { t as l } from "./incodeComponent-C1o4M0ZK.js";
5
- import { t as u } from "./page-C1yT4DLb.js";
6
- import { t as d } from "./spinner-CKnjVHxw.js";
7
- import { t as f } from "./button-DcCUEn2n.js";
8
- import { t as p } from "./verificationResult-BrVbUJ4U.js";
9
- import { i as m, r as h, t as g } from "./radioGroupComposed-BbmvxmD2.js";
10
- import { t as _ } from "./phoneInputComposed-bvWhGLFZ.js";
11
- import { t as v } from "./dropdownComposed-DFRBG22E.js";
12
- import { t as y } from "./dateInputComposed-BpAGsjN6.js";
13
- import { t as b } from "./incodeModule-BqCjVgEI.js";
14
- import { n as x, t as S } from "./requiredLabelHint-BLwgqozE.js";
15
- import { n as C, t as w } from "./optionAccessibleLabel-CzEeX3Q4.js";
16
- import { computeEkycDisplayErrors as T, createEkycManager as E } from "@incodetech/core/ekyc";
17
- //#region src/modules/ekyc/ekycModule.tsx
18
- var D = ({ config: n, onFinish: r }) => {
19
- let { t: i } = e(), [a, s] = c(() => E({ config: n }));
20
- return t(() => {
21
- (a.status === "finished" || a.status === "closed") && r?.();
22
- }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ o(p, {
23
- status: "submitting",
24
- submittingTitle: i("common.loading")
25
- }) : a.status === "submitting" ? /* @__PURE__ */ o(u, {
26
- className: "IncodeEkycPage",
27
- children: /* @__PURE__ */ o(d, {
28
- fullScreen: !1,
29
- title: i("common.processing"),
30
- className: "IncodeEkycSpinner"
31
- })
32
- }) : a.status === "success" ? /* @__PURE__ */ o(p, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ o(p, {
33
- status: "failure",
34
- onRetry: () => s.retry(),
35
- onSkip: () => s.skip()
36
- }) : a.status === "misconfigured" ? /* @__PURE__ */ o(p, {
37
- status: "failure",
38
- failureTitle: i("verification.noFormFields"),
39
- onSkip: () => s.close(),
40
- skipLabel: i("common.close")
41
- }) : a.status === "form" ? /* @__PURE__ */ o(k, {
42
- state: a,
43
- manager: s
44
- }) : null;
45
- }, O = [
46
- "street",
47
- "city",
48
- "state",
49
- "postalCode",
50
- "houseNo"
51
- ], k = ({ state: c, manager: l }) => {
52
- let { fields: d, values: p, errors: b, isValid: E, addressSuggestions: D, prefilled: k, hideEmail: A, fieldsCountry: j, submitError: M, submitAttempted: N } = c, { t: P } = e(), F = i(null), I = i(null), L = i(void 0), R = s(F, d.length), [z, B] = a({}), V = r((e) => {
53
- B((t) => t[e] ? t : {
54
- ...t,
55
- [e]: !0
56
- });
57
- }, []), { displayErrors: H, errorParams: U } = n(() => T(b, z, N, j, d), [
58
- b,
59
- z,
60
- N,
61
- j,
62
- d
63
- ]), W = r((e) => V(e), [V]), G = r((e, t) => {
64
- V(e), l.setField(e, t);
65
- }, [l, V]), K = r((e) => {
66
- for (let e of O) V(e);
67
- l.selectAddress(e);
68
- }, [l, V]), q = n(() => x(d.filter((e) => !(e.name === "email" && A)).map((e) => e.readonly || k[e.name] ? !1 : e.required)), [
69
- d,
70
- A,
71
- k
72
- ]), J = (e) => {
73
- let t = S(q, e);
74
- return t ? P(`forms.label.${t}`) : void 0;
75
- };
76
- t(() => {
77
- let e = H.postalCode, t = L.current;
78
- if (L.current = e, !e || t === e) return;
79
- let n = requestAnimationFrame(() => {
80
- let e = I.current;
81
- e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
82
- behavior: "smooth",
83
- block: "nearest"
84
- });
85
- });
86
- return () => cancelAnimationFrame(n);
87
- }, [H.postalCode]);
88
- let Y = (e, t) => m(P, t, U[e]), X;
89
- return /* @__PURE__ */ o(u, {
90
- className: `IncodeEkycPage${R ? " IncodeEkycPageScrollable" : ""}`,
91
- title: P("verification.title"),
92
- children: [/* @__PURE__ */ o("div", {
93
- ref: F,
94
- className: "IncodeEkycForm",
95
- children: d.map((e) => {
96
- if (e.name === "email" && A) return null;
97
- let t = null;
98
- e.section && e.section !== X && (X = e.section, t = /* @__PURE__ */ o("h3", {
99
- className: "IncodeEkycSectionHeader",
100
- children: P({
101
- address: "verification.labels.addressDetailsSection",
102
- driverLicense: "verification.labels.dlDetailsSection"
103
- }[e.section] ?? e.section)
104
- }));
105
- let n = e.readonly || k[e.name], r = n ? !1 : e.required, i = J(r), a = p[e.name] ?? "", s = H[e.name];
106
- if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(C, {
107
- label: e.label,
108
- labelHint: i,
109
- value: a,
110
- error: s,
111
- errorParams: U[e.name],
112
- suggestions: D,
113
- readonly: n,
114
- required: r,
115
- onChange: (e) => G("street", e),
116
- onSearch: (e) => l.searchAddress(e),
117
- onSelect: K,
118
- onBlur: () => W("street")
119
- })] }, e.name);
120
- if (e.type === "dropdown") {
121
- let c = P(e.label);
122
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(v, {
123
- id: `ekyc-${e.name}`,
124
- label: c,
125
- labelHint: i,
126
- placeholder: e.placeholder ? P(e.placeholder) : void 0,
127
- value: a,
128
- options: (e.options ?? []).map((e) => {
129
- let t = P(e.label);
130
- return {
131
- ...e,
132
- label: t,
133
- ariaLabel: w(t)
134
- };
135
- }),
136
- error: Y(e.name, s),
137
- disabled: n,
138
- required: r,
139
- searchable: !0,
140
- onChange: (t) => G(e.name, t),
141
- onBlur: () => W(e.name),
142
- "data-testid": `ekyc-field-${e.name}`
143
- })] }, e.name);
144
- }
145
- if (e.type === "date") {
146
- let c = P(e.label);
147
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(y, {
148
- id: `ekyc-${e.name}`,
149
- label: c,
150
- labelHint: i,
151
- value: a,
152
- error: Y(e.name, s),
153
- disabled: n,
154
- required: r,
155
- onInput: (t) => {
156
- let n = t.target;
157
- G(e.name, n.value);
158
- },
159
- onBlur: () => W(e.name),
160
- "data-testid": `ekyc-field-${e.name}`
161
- })] }, e.name);
162
- }
163
- if (e.type === "phone") {
164
- let c = P(e.label);
165
- return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(_, {
166
- id: `ekyc-${e.name}`,
167
- label: c,
168
- labelHint: i,
169
- countryCode: j,
170
- value: a,
171
- placeholder: e.placeholder,
172
- error: Y(e.name, s),
173
- disabled: n,
174
- disableCountrySelector: e.disableCountrySelector,
175
- required: r,
176
- onChange: (t) => G(e.name, t),
177
- onBlur: () => W(e.name),
178
- "data-testid": `ekyc-field-${e.name}`
179
- })] }, e.name);
180
- }
181
- return e.type === "radio" ? /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(g, {
182
- id: `ekyc-${e.name}`,
183
- class: "IncodeEkycRadioGroup",
184
- label: P(e.label),
185
- labelHint: i,
186
- value: a,
187
- options: (e.options ?? []).map((e) => ({
188
- value: e.value,
189
- label: P(e.label)
190
- })),
191
- error: s ? Y(e.name, s) : void 0,
192
- disabled: n,
193
- required: r,
194
- onChange: (t) => G(e.name, t),
195
- onBlur: () => W(e.name)
196
- })] }, e.name) : /* @__PURE__ */ o("div", {
197
- ref: e.name === "postalCode" ? I : void 0,
198
- children: [t, /* @__PURE__ */ o(h, {
199
- name: e.name,
200
- label: e.label,
201
- displayLabel: e.displayLabel,
202
- value: a,
203
- error: s,
204
- errorParams: U[e.name],
205
- type: e.type,
206
- placeholder: e.placeholder,
207
- placeholderParams: e.placeholderParams,
208
- required: r,
209
- labelHint: i,
210
- readonly: n,
211
- maxLength: e.maxLength,
212
- onChange: G,
213
- onBlur: W
214
- })]
215
- }, e.name);
216
- })
217
- }), /* @__PURE__ */ o("div", {
218
- className: "IncodeEkycFooter",
219
- children: [
220
- M && /* @__PURE__ */ o("p", {
221
- className: "IncodeEkycSubmitError",
222
- role: "alert",
223
- children: P(M)
224
- }),
225
- /* @__PURE__ */ o(f, {
226
- onClick: () => l.submit(),
227
- disabled: !E,
228
- "data-testid": "ekyc-submit",
229
- children: P("common.continue")
230
- }),
231
- M === "verification.errors.countryNotSupported" && /* @__PURE__ */ o(f, {
232
- variant: "link",
233
- onClick: () => l.skip(),
234
- "data-testid": "ekyc-skip",
235
- children: P("verification.labels.skip")
236
- })
237
- ]
238
- })]
239
- });
240
- }, A = ({ config: e, onFinish: t }) => /* @__PURE__ */ o(l, { children: e ? /* @__PURE__ */ o(D, {
241
- config: e,
242
- onFinish: t
243
- }) : null });
244
- b(A, "incode-ekyc");
245
- //#endregion
246
- export { A as t };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekycModule-CU9pt5YN.js";
2
- export { e as EkycModule };
@@ -1,2 +0,0 @@
1
- import { n as e, t } from "../electronic-signature-COYXjGdd.js";
2
- export { t as AeSignature, e as ElectronicSignature };
@@ -1,410 +0,0 @@
1
- import { n as e, t } from "./i18n-9s4OSqwi.js";
2
- import { _ as n, h as r, l as i, v as a } from "./vendor-preact-D6SntenC.js";
3
- import { o } from "./hooks-BVnGysT7.js";
4
- import { t as s } from "./incodeComponent-C1o4M0ZK.js";
5
- import { t as c } from "./page-C1yT4DLb.js";
6
- import { t as l } from "./button-DcCUEn2n.js";
7
- import { c as u, r as d } from "./icons-Cc7zwchP.js";
8
- import { t as f } from "./successIcon-DbILeIz_.js";
9
- import { t as p } from "./verificationResult-BrVbUJ4U.js";
10
- import { t as m } from "./checkbox-Cl57ltq_.js";
11
- import { t as h } from "./pdfViewer-BGBNL1Ea.js";
12
- import { t as g } from "./incodeModule-BqCjVgEI.js";
13
- import { createElectronicSignatureManager as _ } from "@incodetech/core/electronic-signature";
14
- //#region src/modules/electronic-signature/documentIllustration.tsx
15
- var v = () => /* @__PURE__ */ a("svg", {
16
- xmlns: "http://www.w3.org/2000/svg",
17
- width: "233",
18
- height: "289",
19
- viewBox: "0 0 233 289",
20
- fill: "none",
21
- "aria-hidden": "true",
22
- children: [
23
- /* @__PURE__ */ a("g", {
24
- filter: "url(#aes-doc-shadow)",
25
- children: [/* @__PURE__ */ a("path", {
26
- d: "M24 26C24 23.2386 26.2386 21 29 21H203.757C206.518 21 208.757 23.2386 208.757 26V256.421C208.757 259.182 206.518 261.421 203.757 261.421H29C26.2386 261.421 24 259.182 24 256.421V26Z",
27
- fill: "white"
28
- }), /* @__PURE__ */ a("path", {
29
- d: "M24 26C24 23.2386 26.2386 21 29 21H203.757C206.518 21 208.757 23.2386 208.757 26V256.421C208.757 259.182 206.518 261.421 203.757 261.421H29C26.2386 261.421 24 259.182 24 256.421V26Z",
30
- fill: "black",
31
- "fill-opacity": "0.01"
32
- })]
33
- }),
34
- /* @__PURE__ */ a("g", {
35
- opacity: "0.5",
36
- children: [
37
- /* @__PURE__ */ a("path", {
38
- "fill-rule": "evenodd",
39
- "clip-rule": "evenodd",
40
- d: "M39.7534 55.606C39.7534 55.1047 40.1599 54.6982 40.6613 54.6982H192.611C193.113 54.6982 193.519 55.1047 193.519 55.606V58.4219C193.519 58.9233 193.113 59.3297 192.611 59.3297H40.6613C40.1599 59.3297 39.7534 58.9233 39.7534 58.4219V55.606Z",
41
- fill: "#C6C8D2"
42
- }),
43
- /* @__PURE__ */ a("path", {
44
- "fill-rule": "evenodd",
45
- "clip-rule": "evenodd",
46
- d: "M39.7534 226.972C39.7534 226.47 40.1599 226.064 40.6613 226.064H192.611C193.113 226.064 193.519 226.47 193.519 226.972V229.788C193.519 230.289 193.113 230.695 192.611 230.695H40.6613C40.1599 230.695 39.7534 230.289 39.7534 229.788V226.972Z",
47
- fill: "#C6C8D2"
48
- }),
49
- /* @__PURE__ */ a("path", {
50
- d: "M39.7534 80.6165C39.7534 80.1152 40.1599 79.7087 40.6613 79.7087H100.908C101.409 79.7087 101.816 80.1152 101.816 80.6165V88.9902C101.816 89.4916 101.409 89.898 100.908 89.898H40.6613C40.1599 89.898 39.7534 89.4916 39.7534 88.9902L39.7534 80.6165Z",
51
- fill: "#C6C8D2"
52
- }),
53
- /* @__PURE__ */ a("path", {
54
- d: "M39.7534 100.069C39.7534 99.5676 40.1598 99.1612 40.6612 99.1612H100.908C101.409 99.1612 101.815 99.5676 101.815 100.069V108.443C101.815 108.944 101.409 109.35 100.908 109.35H40.6612C40.1598 109.35 39.7534 108.944 39.7534 108.443L39.7534 100.069Z",
55
- fill: "#C6C8D2"
56
- }),
57
- /* @__PURE__ */ a("path", {
58
- d: "M39.7376 119.521C39.7463 119.019 40.1598 118.62 40.6611 118.629L125.905 120.117C126.406 120.125 126.805 120.539 126.796 121.04L126.65 129.413C126.642 129.914 126.228 130.313 125.727 130.304L40.4833 128.817C39.982 128.808 39.5827 128.394 39.5914 127.893L39.7376 119.521Z",
59
- fill: "#C6C8D2"
60
- }),
61
- /* @__PURE__ */ a("path", {
62
- d: "M39.7376 138.973C39.7463 138.472 40.1598 138.072 40.6611 138.081L65.7043 138.518C66.2056 138.527 66.6049 138.941 66.5962 139.442L66.4824 145.962C66.4736 146.463 66.0602 146.862 65.5589 146.854L40.5156 146.417C40.0143 146.408 39.615 145.994 39.6238 145.493L39.7376 138.973Z",
63
- fill: "#C6C8D2"
64
- }),
65
- /* @__PURE__ */ a("path", {
66
- d: "M39.7534 32.4487C39.7534 31.9473 40.1599 31.5409 40.6613 31.5409H153.707C154.208 31.5409 154.615 31.9473 154.615 32.4487V41.7487C154.615 42.25 154.208 42.6565 153.707 42.6565H40.6613C40.1599 42.6565 39.7534 42.25 39.7534 41.7487V32.4487Z",
67
- fill: "#C6C8D2"
68
- }),
69
- /* @__PURE__ */ a("path", {
70
- d: "M170.362 31.5221C170.362 31.0208 170.768 30.6143 171.27 30.6143H192.611C193.113 30.6143 193.519 31.0208 193.519 31.5221V40.8221C193.519 41.3235 193.113 41.7299 192.611 41.7299H171.27C170.768 41.7299 170.362 41.3235 170.362 40.8221V31.5221Z",
71
- fill: "#C6C8D2"
72
- })
73
- ]
74
- }),
75
- /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ a("filter", {
76
- id: "aes-doc-shadow",
77
- x: "0",
78
- y: "0",
79
- width: "232.757",
80
- height: "288.421",
81
- filterUnits: "userSpaceOnUse",
82
- "color-interpolation-filters": "sRGB",
83
- children: [
84
- /* @__PURE__ */ a("feFlood", {
85
- "flood-opacity": "0",
86
- result: "BackgroundImageFix"
87
- }),
88
- /* @__PURE__ */ a("feColorMatrix", {
89
- in: "SourceAlpha",
90
- type: "matrix",
91
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
92
- result: "hardAlpha"
93
- }),
94
- /* @__PURE__ */ a("feOffset", { dy: "3" }),
95
- /* @__PURE__ */ a("feGaussianBlur", { stdDeviation: "12" }),
96
- /* @__PURE__ */ a("feComposite", {
97
- in2: "hardAlpha",
98
- operator: "out"
99
- }),
100
- /* @__PURE__ */ a("feColorMatrix", {
101
- type: "matrix",
102
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
103
- }),
104
- /* @__PURE__ */ a("feBlend", {
105
- mode: "normal",
106
- in2: "BackgroundImageFix",
107
- result: "effect1_dropShadow"
108
- }),
109
- /* @__PURE__ */ a("feBlend", {
110
- mode: "normal",
111
- in: "SourceGraphic",
112
- in2: "effect1_dropShadow",
113
- result: "shape"
114
- })
115
- ]
116
- }) })
117
- ]
118
- });
119
- //#endregion
120
- //#region src/modules/electronic-signature/consentItems.tsx
121
- function y() {
122
- return /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(t, {
123
- i18nKey: "aes.confirmSignature.terms1.title",
124
- components: { 2: /* @__PURE__ */ a("a", {
125
- href: "https://psc.incode.com/repositorio/",
126
- target: "_blank",
127
- rel: "noopener noreferrer"
128
- }) }
129
- }) });
130
- }
131
- function b(e) {
132
- return [
133
- {
134
- id: "terms",
135
- label: /* @__PURE__ */ a(y, {})
136
- },
137
- {
138
- id: "signElectronically",
139
- label: e("aes.confirmSignature.terms2.title")
140
- },
141
- {
142
- id: "signDisplayed",
143
- label: e("aes.confirmSignature.terms3.title")
144
- }
145
- ];
146
- }
147
- function x() {
148
- return /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(t, {
149
- i18nKey: "qes.newTermsCheck",
150
- components: {
151
- 2: /* @__PURE__ */ a("a", {
152
- href: "https://policies.incodesmile.com/terms-of-use/",
153
- target: "_blank",
154
- rel: "noopener noreferrer"
155
- }),
156
- 6: /* @__PURE__ */ a("a", {
157
- href: "https://policies.incodesmile.com/privacy-policy/",
158
- target: "_blank",
159
- rel: "noopener noreferrer"
160
- })
161
- }
162
- }) });
163
- }
164
- function S(e) {
165
- return [
166
- {
167
- id: "issuance",
168
- label: e("qes.issuanceCheck")
169
- },
170
- {
171
- id: "qesAcknowledgement",
172
- label: e("qes.qesAcknowledgementCheck")
173
- },
174
- {
175
- id: "qscdConfirmation",
176
- label: e("qes.qscdConfirmationCheck")
177
- },
178
- {
179
- id: "termsAgreement",
180
- label: /* @__PURE__ */ a(x, {})
181
- },
182
- {
183
- id: "documentsReviewed",
184
- label: e("qes.documentsReviewedCheck")
185
- }
186
- ];
187
- }
188
- function C(e, t) {
189
- return e === "qe" ? S(t) : b(t);
190
- }
191
- function w(e, t) {
192
- return e === "qe" ? {
193
- signingTitle: t("qes.consent.title"),
194
- signingSubtitle: t("qes.consent.text"),
195
- signButtonLabel: t("forms.button.continue")
196
- } : {
197
- signingTitle: t("aes.confirmSignature.title"),
198
- signingSubtitle: t("aes.confirmSignature.subtitle"),
199
- signButtonLabel: t("aes.confirmSignature.finishSigning")
200
- };
201
- }
202
- //#endregion
203
- //#region src/modules/electronic-signature/electronic-signature.tsx
204
- var T = ({ config: t, onFinish: s, onError: d }) => {
205
- let { t: g } = e(), [y, b] = o(() => _({ config: t })), x = i(null);
206
- n(() => {
207
- b.load();
208
- }, [b]);
209
- let S = y.status === "error" ? y.errorMessage : y.status;
210
- n(() => {
211
- y.status === "finished" ? s?.() : y.status === "closed" ? d?.("closed") : y.status === "error" && d?.(S);
212
- }, [
213
- y.status,
214
- S,
215
- s,
216
- d
217
- ]);
218
- let T = r((e) => {
219
- let t = e.target.files?.[0];
220
- if (!t) return;
221
- let n = new FileReader();
222
- n.onload = () => {
223
- if (n.result instanceof ArrayBuffer) {
224
- let e = URL.createObjectURL(new Blob([n.result], { type: "application/pdf" }));
225
- b.selectFile(t.name, n.result, e);
226
- }
227
- }, n.readAsArrayBuffer(t);
228
- }, [b]), D = r(() => {
229
- x.current?.click();
230
- }, []);
231
- if (y.status === "finished" || y.status === "closed") return null;
232
- if (y.status === "loading") return /* @__PURE__ */ a(p, {
233
- status: "submitting",
234
- submittingTitle: g("common.processing")
235
- });
236
- if (y.status === "uploading") return /* @__PURE__ */ a(c, {
237
- className: "IncodeElectronicSignature",
238
- title: g("aes.confirmSignature.uploadTitle"),
239
- subtitle: g("aes.confirmSignature.uploadDescription"),
240
- children: [/* @__PURE__ */ a("div", {
241
- className: "IncodeElectronicSignatureUploadBody",
242
- children: [/* @__PURE__ */ a("div", {
243
- className: "IncodeElectronicSignatureIllustration",
244
- children: /* @__PURE__ */ a(v, {})
245
- }), /* @__PURE__ */ a("input", {
246
- ref: x,
247
- type: "file",
248
- accept: "application/pdf",
249
- className: "IncodeElectronicSignatureFileInput",
250
- onChange: T
251
- })]
252
- }), /* @__PURE__ */ a("div", {
253
- className: "IncodeElectronicSignatureFooter",
254
- children: /* @__PURE__ */ a(l, {
255
- onClick: D,
256
- children: g("aes.confirmSignature.addDocument")
257
- })
258
- })]
259
- });
260
- if (y.status === "reviewing") return /* @__PURE__ */ a(E, {
261
- state: y,
262
- manager: b,
263
- t: g
264
- });
265
- if (y.status === "processing") return /* @__PURE__ */ a(p, {
266
- status: "submitting",
267
- submittingTitle: g("common.processing")
268
- });
269
- if (y.status === "success") return y.downloadDocument ? /* @__PURE__ */ a(c, {
270
- className: "IncodeElectronicSignature IncodeElectronicSignatureSuccess",
271
- children: [/* @__PURE__ */ a("div", {
272
- className: "IncodeElectronicSignatureSuccessCenter",
273
- children: [/* @__PURE__ */ a(f, { size: 64 }), /* @__PURE__ */ a("p", {
274
- className: "IncodeElectronicSignatureSuccessTitle",
275
- children: g("signature.successTitle")
276
- })]
277
- }), /* @__PURE__ */ a("div", {
278
- className: "IncodeElectronicSignatureFooter",
279
- children: [/* @__PURE__ */ a(l, {
280
- onClick: () => b.finish(),
281
- children: g("common.continue")
282
- }), y.signedDocuments.map((e, t) => /* @__PURE__ */ a("a", {
283
- href: e.signedDocumentUrl,
284
- target: "_blank",
285
- rel: "noopener noreferrer",
286
- className: "IncodeElectronicSignatureDownloadLink",
287
- children: g("aes.confirmSignature.downloadDocument")
288
- }, t))]
289
- })]
290
- }) : /* @__PURE__ */ a(p, {
291
- status: "success",
292
- successTitle: g("signature.successTitle")
293
- });
294
- if (y.status === "error") return /* @__PURE__ */ a(p, {
295
- status: "warning",
296
- warningTitle: g("aes.confirmSignature.fail"),
297
- onRetry: () => b.retry()
298
- });
299
- if (y.status === "signing") {
300
- if (y.viewingDocumentUrl) return /* @__PURE__ */ a(c, {
301
- className: "IncodeElectronicSignature",
302
- children: [/* @__PURE__ */ a("div", {
303
- className: "IncodeElectronicSignatureDocViewHeader",
304
- children: /* @__PURE__ */ a(l, {
305
- size: "M",
306
- variant: "link",
307
- class: "IncodeElectronicSignatureBackButton",
308
- icon: /* @__PURE__ */ a(u, { variant: "m" }),
309
- onClick: () => b.closeDocumentView(),
310
- "aria-label": g("common.back")
311
- })
312
- }), /* @__PURE__ */ a(h, {
313
- url: y.viewingDocumentUrl,
314
- mode: "full",
315
- className: "IncodeElectronicSignatureDocViewer",
316
- "aria-label": g("aes.confirmSignature.viewDocument")
317
- })]
318
- });
319
- let e = y.variant, t = C(e, g), n = w(e, g);
320
- return /* @__PURE__ */ a(c, {
321
- className: "IncodeElectronicSignature",
322
- title: n.signingTitle,
323
- subtitle: n.signingSubtitle,
324
- children: [/* @__PURE__ */ a("div", {
325
- className: "IncodeElectronicSignatureSigningTop",
326
- children: /* @__PURE__ */ a("div", {
327
- className: "IncodeElectronicSignatureDocContainer",
328
- children: y.documents.map((e, t) => /* @__PURE__ */ a("div", {
329
- className: "IncodeElectronicSignatureDocRow",
330
- children: [/* @__PURE__ */ a("span", {
331
- className: "IncodeElectronicSignatureDocRowName",
332
- children: [
333
- g("aes.confirmSignature.contract"),
334
- t === 0 ? "" : `${t + 1}`,
335
- ".pdf"
336
- ]
337
- }), /* @__PURE__ */ a("button", {
338
- type: "button",
339
- className: "IncodeElectronicSignatureDocRowAction",
340
- onClick: () => b.viewDocument(e.documentUrl),
341
- children: g("aes.confirmSignature.viewDocument")
342
- })]
343
- }, e.documentRef))
344
- })
345
- }), /* @__PURE__ */ a("div", {
346
- className: "IncodeElectronicSignatureSigningBottom",
347
- children: [/* @__PURE__ */ a("div", {
348
- className: "IncodeElectronicSignatureConsents",
349
- children: t.map((e) => /* @__PURE__ */ a(m, {
350
- id: `es-${e.id}`,
351
- label: e.label,
352
- size: "s",
353
- checked: !!y.consentChecks[e.id],
354
- onChange: () => b.setConsent(e.id, !y.consentChecks[e.id])
355
- }, e.id))
356
- }), /* @__PURE__ */ a("div", {
357
- className: "IncodeElectronicSignatureFooter",
358
- children: /* @__PURE__ */ a(l, {
359
- onClick: () => b.sign(),
360
- disabled: !y.allConsented,
361
- children: n.signButtonLabel
362
- })
363
- })]
364
- })]
365
- });
366
- }
367
- return null;
368
- }, E = ({ state: e, manager: t, t: r }) => (n(() => () => URL.revokeObjectURL(e.fileUrl), [e.fileUrl]), /* @__PURE__ */ a(c, {
369
- className: "IncodeElectronicSignature",
370
- title: r("aes.reviewDocument.title"),
371
- subtitle: r("aes.reviewDocument.subtitle"),
372
- children: [/* @__PURE__ */ a("div", {
373
- className: "IncodeElectronicSignatureReviewBody",
374
- children: [/* @__PURE__ */ a("div", {
375
- className: "IncodeElectronicSignatureReviewCard",
376
- children: [/* @__PURE__ */ a("div", {
377
- className: "IncodeElectronicSignatureDocPreview",
378
- children: /* @__PURE__ */ a(h, {
379
- url: e.fileUrl,
380
- mode: "thumbnail",
381
- className: "IncodeElectronicSignatureDocPreviewObject",
382
- "aria-label": e.fileName
383
- })
384
- }), /* @__PURE__ */ a("p", {
385
- className: "IncodeElectronicSignatureDocName",
386
- children: e.fileName
387
- })]
388
- }), /* @__PURE__ */ a("div", {
389
- className: "IncodeElectronicSignatureEncrypted",
390
- children: [/* @__PURE__ */ a(d, { className: "IncodeElectronicSignatureEncryptedIcon" }), /* @__PURE__ */ a("span", { children: r("encryptionLabel.encryptedPhotos") })]
391
- })]
392
- }), /* @__PURE__ */ a("div", {
393
- className: "IncodeElectronicSignatureFooter",
394
- children: [/* @__PURE__ */ a(l, {
395
- onClick: () => t.confirmFile(),
396
- children: r("common.continue")
397
- }), /* @__PURE__ */ a(l, {
398
- variant: "secondary",
399
- onClick: () => t.replaceFile(),
400
- children: r("aes.reviewDocument.replace")
401
- })]
402
- })]
403
- })), D = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ a(s, { children: e ? /* @__PURE__ */ a(T, {
404
- config: e,
405
- onFinish: t,
406
- onError: n
407
- }) : null }), O = D;
408
- g(D, "incode-electronic-signature");
409
- //#endregion
410
- export { D as n, O as t };