@incodetech/web 0.0.0-dev-20260414-db434be → 0.0.0-dev-20260415-432dcaa

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 (100) hide show
  1. package/dist/{addressAutocomplete-clIKNkjY.js → addressAutocomplete-DD6kPvHx.js} +6 -6
  2. package/dist/ae-signature/ae-signature.es.js +15 -0
  3. package/dist/ae-signature/styles.css +360 -0
  4. package/dist/antifraud/antifraud.es.js +2 -2
  5. package/dist/authentication/authentication.es.js +3 -3
  6. package/dist/base.css +1 -1
  7. package/dist/{checkbox-wWm8XoSW.js → checkbox-B6sowIi8.js} +1 -1
  8. package/dist/consent/consent.es.js +5 -5
  9. package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
  10. package/dist/curp-validation/curp-validation.es.js +10 -10
  11. package/dist/{dateInputComposed-B8M1S8IE.js → dateInputComposed-B5ZRK4j-.js} +3 -3
  12. package/dist/dateInputComposed-C18XGC2n.js +1 -0
  13. package/dist/{documentCapture-C-BU1TtU.js → documentCapture-FYXhYe8p.js} +7 -7
  14. package/dist/{dropdownComposed-B7Rf3npJ.js → dropdownComposed-C6vVF6YA.js} +4 -4
  15. package/dist/dropdownComposed-DkSZPhUb.js +1 -0
  16. package/dist/ekyb/ekyb.es.js +1 -1
  17. package/dist/ekybModule-CvF-yupD.js +2 -0
  18. package/dist/{ekybModule-BsOrYRG0.js → ekybModule-azPVnACb.js} +15 -14
  19. package/dist/ekyc/ekyc.es.js +1 -1
  20. package/dist/ekycModule-CPsE-YGy.js +2 -0
  21. package/dist/{ekycModule-_vdfs1a4.js → ekycModule-D03uZnt0.js} +15 -14
  22. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  23. package/dist/electronic-signature-Ddv2SYss.js +408 -0
  24. package/dist/email/email.es.js +6 -6
  25. package/dist/{extensibility-tO37wsbP.js → extensibility-G9cRcFnB.js} +27 -26
  26. package/dist/extensibility.es.js +17 -16
  27. package/dist/face-match/face-match.es.js +1 -1
  28. package/dist/{faceMatch-D1GjnGfn.js → faceMatch-BFg_1Bof.js} +3 -3
  29. package/dist/faceMatch-CGhm0gRu.js +2 -0
  30. package/dist/flow/flow.es.js +22 -6
  31. package/dist/flow/styles.css +375 -0
  32. package/dist/formField-B7rYl3on.js +45 -0
  33. package/dist/geolocation/geolocation.es.js +3 -3
  34. package/dist/governmentValidation/governmentValidation.es.js +6 -7
  35. package/dist/home/home.es.js +4 -4
  36. package/dist/{i18n-BpEDCZi_.js → i18n-Cnoc6xWX.js} +1 -1
  37. package/dist/{icons-BQHZM1UW.js → icons-BNwTyDPs.js} +26 -14
  38. package/dist/id/id.es.js +6 -6
  39. package/dist/identity-reuse/identity-reuse.es.js +3 -3
  40. package/dist/{incodeComponent-DIb7wDAq.js → incodeComponent-BL7Lq_Hw.js} +1 -1
  41. package/dist/index.es.js +1 -1
  42. package/dist/inputComposed-D_HLqdPa.js +1 -0
  43. package/dist/{inputComposed-CE-pW9An.js → inputComposed-Z2b-ltvn.js} +4 -4
  44. package/dist/{language-BWPDK42W.js → language-Bdt6A1X5.js} +1 -1
  45. package/dist/{mandatoryConsent-BHSXliQf.js → mandatoryConsent-Y9IDP5M2.js} +5 -5
  46. package/dist/{otpInput-CmaZThVX.js → otpInput-CHisiz4N.js} +3 -3
  47. package/dist/phone/phone.es.js +6 -6
  48. package/dist/{phoneInput-BZ2_X-FN.js → phoneInput--MAZwPEw.js} +1 -1
  49. package/dist/{phoneInputComposed-DjoMRkpP.js → phoneInputComposed-CJQrAMm5.js} +4 -4
  50. package/dist/{processing-DzUxOOaV.js → processing-CfMoBRwi.js} +1 -1
  51. package/dist/qe-signature/qe-signature.es.js +15 -0
  52. package/dist/{redirectToMobile-CZ-BH-_k.js → redirectToMobile-CgJyjGgD.js} +6 -6
  53. package/dist/redirectToMobile-Dn537v_a.js +2 -0
  54. package/dist/{richText-x3PUEJXl.js → richText-MNrzpRze.js} +1 -1
  55. package/dist/selfie/selfie.es.js +4 -4
  56. package/dist/{settings-BZAx3g3s.js → settings-DDnju9SK.js} +5 -5
  57. package/dist/{setup-D7-7VjBv.js → setup-Dp1XRMxU.js} +1 -1
  58. package/dist/signature/signature.es.js +5 -5
  59. package/dist/{tutorial-BjD2xHi5.js → tutorial-B6nLj9qX.js} +7 -8
  60. package/dist/types/ae-signature.d.ts +35 -0
  61. package/dist/types/electronic-signature.d.ts +38 -0
  62. package/dist/types/extensibility.d.ts +8 -1
  63. package/dist/types/qe-signature.d.ts +35 -0
  64. package/dist/{useModuleLoader-1zMHjvrq.js → useModuleLoader-DE-NR7a6.js} +11 -7
  65. package/dist/verificationResult-H3bAOcJQ.js +81 -0
  66. package/dist/watchlist/watchlist.es.js +4 -4
  67. package/dist/workflow/workflow.es.js +5 -5
  68. package/package.json +16 -2
  69. package/dist/dateInputComposed-CMXsd3e8.js +0 -1
  70. package/dist/dropdownComposed-CxqviEIA.js +0 -1
  71. package/dist/ekybModule-sjS57QPL.js +0 -2
  72. package/dist/ekycModule-kRl81T6E.js +0 -2
  73. package/dist/faceMatch-DUwmH-m0.js +0 -2
  74. package/dist/formField-CZ3jGB7v.js +0 -104
  75. package/dist/inputComposed-CQ1wB4Ic.js +0 -1
  76. package/dist/redirectToMobile-UmMOoiLd.js +0 -2
  77. package/dist/warningIcon-DG65BSMr.js +0 -17
  78. /package/dist/{signature/styles.css → ae-signature/styles2.css} +0 -0
  79. /package/dist/{aligndevicelottie-qUSV6Le7.js → aligndevicelottie-B1CLGkxR.js} +0 -0
  80. /package/dist/{back-horizontal-hint-iEWk08tl.js → back-horizontal-hint-D4KqqktU.js} +0 -0
  81. /package/dist/{back-tutorial-BZmE2nCI.js → back-tutorial-DeDjaYJX.js} +0 -0
  82. /package/dist/{back-vertical-hint-CB37PPBM.js → back-vertical-hint-D8emR-GA.js} +0 -0
  83. /package/dist/{backdevicelottie-DFySVtix.js → backdevicelottie-DCq4mOEO.js} +0 -0
  84. /package/dist/{blurdevicelottie-Vrw4Q73g.js → blurdevicelottie-G3-Q0BsS.js} +0 -0
  85. /package/dist/{browser-ponyfill-CRq2EKxP.js → browser-ponyfill-VSeGKSP8.js} +0 -0
  86. /package/dist/{defineProperty-85sU8KgM.js → defineProperty-DXvyTpBq.js} +0 -0
  87. /package/dist/{flip-animation-C5qWdHLD.js → flip-animation-DE83SNb1.js} +0 -0
  88. /package/dist/{front-horizontal-hint-pRbh84gx.js → front-horizontal-hint-Cxr8YyxM.js} +0 -0
  89. /package/dist/{front-vertical-hint-BAKFge2R.js → front-vertical-hint-BfFYlwRS.js} +0 -0
  90. /package/dist/{frontdevicelottie-oZ1W9xZw.js → frontdevicelottie-wDAQ0uwL.js} +0 -0
  91. /package/dist/{glaredevicelottie-sI8UXrQF.js → glaredevicelottie-CQk5l0qV.js} +0 -0
  92. /package/dist/{id-laser-h-DeeqVBeU.js → id-laser-h-9vBRTgJV.js} +0 -0
  93. /package/dist/{id-laser-v-CWbE_3-e.js → id-laser-v-CF-OEQaG.js} +0 -0
  94. /package/dist/{id-tutorial-CSjRVua_.js → id-tutorial-BmTbJh7P.js} +0 -0
  95. /package/dist/{incodeModule-CXOUgU0z.js → incodeModule-Di2OUZ5_.js} +0 -0
  96. /package/dist/{passport-horizontal-hint-CKL1CfSO.js → passport-horizontal-hint-B3WOpolp.js} +0 -0
  97. /package/dist/{passport-tutorial-CfuYKkED.js → passport-tutorial-DUMT508V.js} +0 -0
  98. /package/dist/{passport-vertical-hint-BK1gSSwh.js → passport-vertical-hint-dyoMIia1.js} +0 -0
  99. /package/dist/{selfieTutorial-Cu9vXjss.js → selfieTutorial-DE1_g-Lg.js} +0 -0
  100. /package/dist/{successIcon-C4GI_9SU.js → successIcon-Dklx5JWI.js} +0 -0
@@ -1,14 +1,15 @@
1
- import { n as e } from "./i18n-BpEDCZi_.js";
1
+ import { n as e } from "./i18n-Cnoc6xWX.js";
2
2
  import { S as t, _ as n, d as r, h as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
3
- import { i as c, o as l, t as u } from "./incodeComponent-DIb7wDAq.js";
3
+ import { i as c, o as l, t as u } from "./incodeComponent-BL7Lq_Hw.js";
4
4
  import { t as d } from "./page-kB-LDkaO.js";
5
5
  import { t as f } from "./spinner-Dg3lumvu.js";
6
6
  import { t as p } from "./button-jwSm4U5l.js";
7
- import { n as m, r as h, t as g } from "./formField-CZ3jGB7v.js";
8
- import { t as _ } from "./inputComposed-CE-pW9An.js";
9
- import { t as v } from "./dropdownComposed-B7Rf3npJ.js";
10
- import { t as y } from "./incodeModule-CXOUgU0z.js";
11
- import { t as b } from "./addressAutocomplete-clIKNkjY.js";
7
+ import { t as m } from "./verificationResult-H3bAOcJQ.js";
8
+ import { t as h } from "./inputComposed-Z2b-ltvn.js";
9
+ import { n as g, t as _ } from "./formField-B7rYl3on.js";
10
+ import { t as v } from "./dropdownComposed-C6vVF6YA.js";
11
+ import { t as y } from "./incodeModule-Di2OUZ5_.js";
12
+ import { t as b } from "./addressAutocomplete-DD6kPvHx.js";
12
13
  import { DEV_ONLY_COUNTRIES as x, SUPPORTED_COUNTRIES as S, computeEkybDisplayErrors as C, createEkybManager as w } from "@incodetech/core/ekyb";
13
14
  //#region src/modules/ekyb/countrySelector.tsx
14
15
  function T(e) {
@@ -67,14 +68,14 @@ var k = ({ value: t, onChange: n }) => {
67
68
  ...e,
68
69
  label: l(e.label)
69
70
  })),
70
- error: m(l, r, i),
71
+ error: g(l, r, i),
71
72
  searchable: !0,
72
73
  onChange: (e) => o(t.name, e),
73
74
  onBlur: c ? () => c(t.name) : void 0,
74
75
  "data-testid": `ekyb-field-${t.name}`
75
76
  });
76
77
  }
77
- return /* @__PURE__ */ s(g, {
78
+ return /* @__PURE__ */ s(_, {
78
79
  name: t.name,
79
80
  label: t.label,
80
81
  displayLabel: t.displayLabel,
@@ -87,7 +88,7 @@ var k = ({ value: t, onChange: n }) => {
87
88
  onBlur: c
88
89
  });
89
90
  }, j = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, onSetField: a, onBlur: o, onAdd: c, onRemove: l }) => {
90
- let { t: u } = e(), d = (e) => m(u, n[e], r[e]);
91
+ let { t: u } = e(), d = (e) => g(u, n[e], r[e]);
91
92
  return t.length === 0 ? null : /* @__PURE__ */ s("div", {
92
93
  className: "IncodeEkybUbos",
93
94
  children: [t.map((e, t) => {
@@ -95,7 +96,7 @@ var k = ({ value: t, onChange: n }) => {
95
96
  return /* @__PURE__ */ s("div", {
96
97
  className: "IncodeEkybUboEntry",
97
98
  children: [
98
- /* @__PURE__ */ s(_, {
99
+ /* @__PURE__ */ s(h, {
99
100
  id: `ubo-${t}-name`,
100
101
  label: n,
101
102
  name: `ubo-${t}-name`,
@@ -105,7 +106,7 @@ var k = ({ value: t, onChange: n }) => {
105
106
  onBlur: o ? () => o(`ubo-${t}-name`) : void 0,
106
107
  "data-testid": `ekyb-ubo-${t}-name`
107
108
  }),
108
- /* @__PURE__ */ s(_, {
109
+ /* @__PURE__ */ s(h, {
109
110
  id: `ubo-${t}-surname`,
110
111
  label: r,
111
112
  name: `ubo-${t}-surname`,
@@ -135,14 +136,14 @@ var k = ({ value: t, onChange: n }) => {
135
136
  let { t: i } = e(), [a, o] = l(() => w({ config: t }));
136
137
  return n(() => {
137
138
  (a.status === "finished" || a.status === "closed") && r?.();
138
- }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(h, {
139
+ }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(m, {
139
140
  status: "submitting",
140
141
  submittingTitle: i("common.loading")
141
142
  }) : a.status === "submitting" ? /* @__PURE__ */ s(d, { children: /* @__PURE__ */ s(f, {
142
143
  fullScreen: !1,
143
144
  title: i("common.processing"),
144
145
  className: "IncodeEkybSpinner"
145
- }) }) : a.status === "success" ? /* @__PURE__ */ s(h, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(h, {
146
+ }) }) : a.status === "success" ? /* @__PURE__ */ s(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(m, {
146
147
  status: "failure",
147
148
  onRetry: () => o.retry()
148
149
  }) : a.status === "form" ? /* @__PURE__ */ s(F, {
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekycModule-_vdfs1a4.js";
1
+ import { t as e } from "../ekycModule-D03uZnt0.js";
2
2
  export { e as EkycModule };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekycModule-D03uZnt0.js";
2
+ export { e as EkycModule };
@@ -1,33 +1,34 @@
1
- import { n as e } from "./i18n-BpEDCZi_.js";
1
+ import { n as e } from "./i18n-Cnoc6xWX.js";
2
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, t as l } from "./incodeComponent-DIb7wDAq.js";
3
+ import { i as s, o as c, t as l } from "./incodeComponent-BL7Lq_Hw.js";
4
4
  import { t as u } from "./page-kB-LDkaO.js";
5
5
  import { t as d } from "./spinner-Dg3lumvu.js";
6
6
  import { t as f } from "./button-jwSm4U5l.js";
7
- import { n as p, r as m, t as h } from "./formField-CZ3jGB7v.js";
8
- import { t as g } from "./phoneInputComposed-DjoMRkpP.js";
9
- import { t as _ } from "./dropdownComposed-B7Rf3npJ.js";
10
- import { t as v } from "./dateInputComposed-B8M1S8IE.js";
11
- import { t as y } from "./incodeModule-CXOUgU0z.js";
12
- import { t as b } from "./addressAutocomplete-clIKNkjY.js";
7
+ import { t as p } from "./verificationResult-H3bAOcJQ.js";
8
+ import { n as m, t as h } from "./formField-B7rYl3on.js";
9
+ import { t as g } from "./phoneInputComposed-CJQrAMm5.js";
10
+ import { t as _ } from "./dropdownComposed-C6vVF6YA.js";
11
+ import { t as v } from "./dateInputComposed-B5ZRK4j-.js";
12
+ import { t as y } from "./incodeModule-Di2OUZ5_.js";
13
+ import { t as b } from "./addressAutocomplete-DD6kPvHx.js";
13
14
  import { computeEkycDisplayErrors as x, createEkycManager as S } from "@incodetech/core/ekyc";
14
15
  //#region src/modules/ekyc/ekycModule.tsx
15
16
  var C = ({ config: n, onFinish: r }) => {
16
17
  let { t: i } = e(), [a, s] = c(() => S({ config: n }));
17
18
  return t(() => {
18
19
  (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
+ }, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ o(p, {
20
21
  status: "submitting",
21
22
  submittingTitle: i("common.loading")
22
23
  }) : a.status === "submitting" ? /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(d, {
23
24
  fullScreen: !1,
24
25
  title: i("common.processing"),
25
26
  className: "IncodeEkycSpinner"
26
- }) }) : a.status === "success" ? /* @__PURE__ */ o(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ o(m, {
27
+ }) }) : a.status === "success" ? /* @__PURE__ */ o(p, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ o(p, {
27
28
  status: "failure",
28
29
  onRetry: () => s.retry(),
29
30
  onSkip: () => s.skip()
30
- }) : a.status === "misconfigured" ? /* @__PURE__ */ o(m, {
31
+ }) : a.status === "misconfigured" ? /* @__PURE__ */ o(p, {
31
32
  status: "failure",
32
33
  failureTitle: i("verification.noFormFields"),
33
34
  onSkip: () => s.close(),
@@ -43,7 +44,7 @@ var C = ({ config: n, onFinish: r }) => {
43
44
  "postalCode",
44
45
  "houseNo"
45
46
  ], T = ({ state: c, manager: l }) => {
46
- let { fields: d, values: m, errors: y, isValid: S, addressSuggestions: C, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O, submitAttempted: k } = c, { t: A } = e(), j = i(null), M = i(null), N = i(void 0), P = s(j, d.length), [F, I] = a({}), L = r((e) => {
47
+ let { fields: d, values: p, errors: y, isValid: S, addressSuggestions: C, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O, submitAttempted: k } = c, { t: A } = e(), j = i(null), M = i(null), N = i(void 0), P = s(j, d.length), [F, I] = a({}), L = r((e) => {
47
48
  I((t) => t[e] ? t : {
48
49
  ...t,
49
50
  [e]: !0
@@ -72,7 +73,7 @@ var C = ({ config: n, onFinish: r }) => {
72
73
  });
73
74
  return () => cancelAnimationFrame(n);
74
75
  }, [R.postalCode]);
75
- let U = (e, t) => p(A, t, z[e]), W;
76
+ let U = (e, t) => m(A, t, z[e]), W;
76
77
  return /* @__PURE__ */ o(u, {
77
78
  className: `IncodeEkycPage${P ? " IncodeEkycPageScrollable" : ""}`,
78
79
  title: A("verification.title"),
@@ -89,7 +90,7 @@ var C = ({ config: n, onFinish: r }) => {
89
90
  driverLicense: "verification.labels.dlDetailsSection"
90
91
  }[e.section] ?? e.section)
91
92
  }));
92
- let n = e.readonly || T[e.name], r = m[e.name] ?? "", i = R[e.name];
93
+ let n = e.readonly || T[e.name], r = p[e.name] ?? "", i = R[e.name];
93
94
  if (e.name === "street" && e.section === "address") return /* @__PURE__ */ o("div", { children: [t, /* @__PURE__ */ o(b, {
94
95
  label: e.label,
95
96
  value: r,
@@ -0,0 +1,2 @@
1
+ import { n as e, t } from "../electronic-signature-Ddv2SYss.js";
2
+ export { t as AeSignature, e as ElectronicSignature };
@@ -0,0 +1,408 @@
1
+ import { n as e, t } from "./i18n-Cnoc6xWX.js";
2
+ import { _ as n, h as r, l as i, v as a } from "./vendor-preact-D6SntenC.js";
3
+ import { o, t as s } from "./incodeComponent-BL7Lq_Hw.js";
4
+ import { t as c } from "./page-kB-LDkaO.js";
5
+ import { t as l } from "./button-jwSm4U5l.js";
6
+ import { r as u } from "./icons-BNwTyDPs.js";
7
+ import { t as d } from "./successIcon-Dklx5JWI.js";
8
+ import { t as f } from "./verificationResult-H3bAOcJQ.js";
9
+ import { t as p } from "./checkbox-B6sowIi8.js";
10
+ import { t as m } from "./incodeModule-Di2OUZ5_.js";
11
+ import { createElectronicSignatureManager as h } from "@incodetech/core/internal/electronic-signature";
12
+ //#region src/modules/electronic-signature/documentIllustration.tsx
13
+ var g = () => /* @__PURE__ */ a("svg", {
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: "233",
16
+ height: "289",
17
+ viewBox: "0 0 233 289",
18
+ fill: "none",
19
+ "aria-hidden": "true",
20
+ children: [
21
+ /* @__PURE__ */ a("g", {
22
+ filter: "url(#aes-doc-shadow)",
23
+ children: [/* @__PURE__ */ a("path", {
24
+ 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",
25
+ fill: "white"
26
+ }), /* @__PURE__ */ a("path", {
27
+ 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",
28
+ fill: "black",
29
+ "fill-opacity": "0.01"
30
+ })]
31
+ }),
32
+ /* @__PURE__ */ a("g", {
33
+ opacity: "0.5",
34
+ children: [
35
+ /* @__PURE__ */ a("path", {
36
+ "fill-rule": "evenodd",
37
+ "clip-rule": "evenodd",
38
+ 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",
39
+ fill: "#C6C8D2"
40
+ }),
41
+ /* @__PURE__ */ a("path", {
42
+ "fill-rule": "evenodd",
43
+ "clip-rule": "evenodd",
44
+ 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",
45
+ fill: "#C6C8D2"
46
+ }),
47
+ /* @__PURE__ */ a("path", {
48
+ 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",
49
+ fill: "#C6C8D2"
50
+ }),
51
+ /* @__PURE__ */ a("path", {
52
+ 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",
53
+ fill: "#C6C8D2"
54
+ }),
55
+ /* @__PURE__ */ a("path", {
56
+ 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",
57
+ fill: "#C6C8D2"
58
+ }),
59
+ /* @__PURE__ */ a("path", {
60
+ 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",
61
+ fill: "#C6C8D2"
62
+ }),
63
+ /* @__PURE__ */ a("path", {
64
+ 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",
65
+ fill: "#C6C8D2"
66
+ }),
67
+ /* @__PURE__ */ a("path", {
68
+ 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",
69
+ fill: "#C6C8D2"
70
+ })
71
+ ]
72
+ }),
73
+ /* @__PURE__ */ a("defs", { children: /* @__PURE__ */ a("filter", {
74
+ id: "aes-doc-shadow",
75
+ x: "0",
76
+ y: "0",
77
+ width: "232.757",
78
+ height: "288.421",
79
+ filterUnits: "userSpaceOnUse",
80
+ "color-interpolation-filters": "sRGB",
81
+ children: [
82
+ /* @__PURE__ */ a("feFlood", {
83
+ "flood-opacity": "0",
84
+ result: "BackgroundImageFix"
85
+ }),
86
+ /* @__PURE__ */ a("feColorMatrix", {
87
+ in: "SourceAlpha",
88
+ type: "matrix",
89
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
90
+ result: "hardAlpha"
91
+ }),
92
+ /* @__PURE__ */ a("feOffset", { dy: "3" }),
93
+ /* @__PURE__ */ a("feGaussianBlur", { stdDeviation: "12" }),
94
+ /* @__PURE__ */ a("feComposite", {
95
+ in2: "hardAlpha",
96
+ operator: "out"
97
+ }),
98
+ /* @__PURE__ */ a("feColorMatrix", {
99
+ type: "matrix",
100
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
101
+ }),
102
+ /* @__PURE__ */ a("feBlend", {
103
+ mode: "normal",
104
+ in2: "BackgroundImageFix",
105
+ result: "effect1_dropShadow"
106
+ }),
107
+ /* @__PURE__ */ a("feBlend", {
108
+ mode: "normal",
109
+ in: "SourceGraphic",
110
+ in2: "effect1_dropShadow",
111
+ result: "shape"
112
+ })
113
+ ]
114
+ }) })
115
+ ]
116
+ });
117
+ //#endregion
118
+ //#region src/modules/electronic-signature/consentItems.tsx
119
+ function _() {
120
+ return /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(t, {
121
+ i18nKey: "aes.confirmSignature.terms1.title",
122
+ components: { 2: /* @__PURE__ */ a("a", {
123
+ href: "https://psc.incode.com/repositorio/",
124
+ target: "_blank",
125
+ rel: "noopener noreferrer"
126
+ }) }
127
+ }) });
128
+ }
129
+ function v(e) {
130
+ return [
131
+ {
132
+ id: "terms",
133
+ label: /* @__PURE__ */ a(_, {})
134
+ },
135
+ {
136
+ id: "signElectronically",
137
+ label: e("aes.confirmSignature.terms2.title")
138
+ },
139
+ {
140
+ id: "signDisplayed",
141
+ label: e("aes.confirmSignature.terms3.title")
142
+ }
143
+ ];
144
+ }
145
+ function y() {
146
+ return /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(t, {
147
+ i18nKey: "qes.newTermsCheck",
148
+ components: {
149
+ 2: /* @__PURE__ */ a("a", {
150
+ href: "https://policies.incodesmile.com/terms-of-use/",
151
+ target: "_blank",
152
+ rel: "noopener noreferrer"
153
+ }),
154
+ 6: /* @__PURE__ */ a("a", {
155
+ href: "https://policies.incodesmile.com/privacy-policy/",
156
+ target: "_blank",
157
+ rel: "noopener noreferrer"
158
+ })
159
+ }
160
+ }) });
161
+ }
162
+ function b(e) {
163
+ return [
164
+ {
165
+ id: "issuance",
166
+ label: e("qes.issuanceCheck")
167
+ },
168
+ {
169
+ id: "qesAcknowledgement",
170
+ label: e("qes.qesAcknowledgementCheck")
171
+ },
172
+ {
173
+ id: "qscdConfirmation",
174
+ label: e("qes.qscdConfirmationCheck")
175
+ },
176
+ {
177
+ id: "termsAgreement",
178
+ label: /* @__PURE__ */ a(y, {})
179
+ },
180
+ {
181
+ id: "documentsReviewed",
182
+ label: e("qes.documentsReviewedCheck")
183
+ }
184
+ ];
185
+ }
186
+ function x(e, t) {
187
+ return e === "qe" ? b(t) : v(t);
188
+ }
189
+ function S(e, t) {
190
+ return e === "qe" ? {
191
+ signingTitle: t("qes.consent.title"),
192
+ signingSubtitle: t("qes.consent.text"),
193
+ signButtonLabel: t("forms.button.continue")
194
+ } : {
195
+ signingTitle: t("aes.confirmSignature.title"),
196
+ signingSubtitle: t("aes.confirmSignature.subtitle"),
197
+ signButtonLabel: t("aes.confirmSignature.finishSigning")
198
+ };
199
+ }
200
+ //#endregion
201
+ //#region src/modules/electronic-signature/electronic-signature.tsx
202
+ var C = ({ config: t, onFinish: s, onError: u }) => {
203
+ let { t: m } = e(), [_, v] = o(() => h({ config: t })), y = i(null);
204
+ n(() => {
205
+ v.load();
206
+ }, [v]);
207
+ let b = _.status === "error" ? _.errorMessage : _.status;
208
+ n(() => {
209
+ _.status === "finished" ? s?.() : _.status === "closed" ? u?.("closed") : _.status === "error" && u?.(b);
210
+ }, [
211
+ _.status,
212
+ b,
213
+ s,
214
+ u
215
+ ]);
216
+ let C = r((e) => {
217
+ let t = e.target.files?.[0];
218
+ if (!t) return;
219
+ let n = new FileReader();
220
+ n.onload = () => {
221
+ if (n.result instanceof ArrayBuffer) {
222
+ let e = URL.createObjectURL(new Blob([n.result], { type: "application/pdf" }));
223
+ v.selectFile(t.name, n.result, e);
224
+ }
225
+ }, n.readAsArrayBuffer(t);
226
+ }, [v]), T = r(() => {
227
+ y.current?.click();
228
+ }, []);
229
+ if (_.status === "finished" || _.status === "closed") return null;
230
+ if (_.status === "loading") return /* @__PURE__ */ a(f, {
231
+ status: "submitting",
232
+ submittingTitle: m("common.processing")
233
+ });
234
+ if (_.status === "uploading") return /* @__PURE__ */ a(c, {
235
+ className: "IncodeElectronicSignature",
236
+ title: m("aes.confirmSignature.uploadTitle"),
237
+ subtitle: m("aes.confirmSignature.uploadDescription"),
238
+ children: [/* @__PURE__ */ a("div", {
239
+ className: "IncodeElectronicSignatureUploadBody",
240
+ children: [/* @__PURE__ */ a("div", {
241
+ className: "IncodeElectronicSignatureIllustration",
242
+ children: /* @__PURE__ */ a(g, {})
243
+ }), /* @__PURE__ */ a("input", {
244
+ ref: y,
245
+ type: "file",
246
+ accept: "application/pdf",
247
+ className: "IncodeElectronicSignatureFileInput",
248
+ onChange: C
249
+ })]
250
+ }), /* @__PURE__ */ a("div", {
251
+ className: "IncodeElectronicSignatureFooter",
252
+ children: /* @__PURE__ */ a(l, {
253
+ onClick: T,
254
+ children: m("aes.confirmSignature.addDocument")
255
+ })
256
+ })]
257
+ });
258
+ if (_.status === "reviewing") return /* @__PURE__ */ a(w, {
259
+ state: _,
260
+ manager: v,
261
+ t: m
262
+ });
263
+ if (_.status === "processing") return /* @__PURE__ */ a(f, {
264
+ status: "submitting",
265
+ submittingTitle: m("common.processing")
266
+ });
267
+ if (_.status === "success") return _.downloadDocument ? /* @__PURE__ */ a(c, {
268
+ className: "IncodeElectronicSignature IncodeElectronicSignatureSuccess",
269
+ children: [/* @__PURE__ */ a("div", {
270
+ className: "IncodeElectronicSignatureSuccessCenter",
271
+ children: [/* @__PURE__ */ a(d, { size: 64 }), /* @__PURE__ */ a("p", {
272
+ className: "IncodeElectronicSignatureSuccessTitle",
273
+ children: m("signature.successTitle")
274
+ })]
275
+ }), /* @__PURE__ */ a("div", {
276
+ className: "IncodeElectronicSignatureFooter",
277
+ children: [/* @__PURE__ */ a(l, {
278
+ onClick: () => v.finish(),
279
+ children: m("common.continue")
280
+ }), _.signedDocuments.map((e, t) => /* @__PURE__ */ a("a", {
281
+ href: e.signedDocumentUrl,
282
+ target: "_blank",
283
+ rel: "noopener noreferrer",
284
+ className: "IncodeElectronicSignatureDownloadLink",
285
+ children: m("aes.confirmSignature.downloadDocument")
286
+ }, t))]
287
+ })]
288
+ }) : /* @__PURE__ */ a(f, {
289
+ status: "success",
290
+ successTitle: m("signature.successTitle")
291
+ });
292
+ if (_.status === "error") return /* @__PURE__ */ a(f, {
293
+ status: "warning",
294
+ warningTitle: m("aes.confirmSignature.fail"),
295
+ onRetry: () => v.retry()
296
+ });
297
+ if (_.status === "signing") {
298
+ if (_.viewingDocumentUrl) return /* @__PURE__ */ a(c, {
299
+ className: "IncodeElectronicSignature",
300
+ hideHeader: !0,
301
+ children: [/* @__PURE__ */ a("div", {
302
+ className: "IncodeElectronicSignatureDocViewHeader",
303
+ children: /* @__PURE__ */ a("button", {
304
+ type: "button",
305
+ className: "IncodeElectronicSignatureBackButton",
306
+ onClick: () => v.closeDocumentView(),
307
+ "aria-label": m("common.back"),
308
+ children: "‹"
309
+ })
310
+ }), /* @__PURE__ */ a("iframe", {
311
+ src: _.viewingDocumentUrl,
312
+ sandbox: "allow-same-origin",
313
+ className: "IncodeElectronicSignatureDocViewer",
314
+ title: m("aes.confirmSignature.viewDocument")
315
+ })]
316
+ });
317
+ let e = _.variant, t = x(e, m), n = S(e, m);
318
+ return /* @__PURE__ */ a(c, {
319
+ className: "IncodeElectronicSignature",
320
+ title: n.signingTitle,
321
+ subtitle: n.signingSubtitle,
322
+ children: [/* @__PURE__ */ a("div", {
323
+ className: "IncodeElectronicSignatureSigningTop",
324
+ children: /* @__PURE__ */ a("div", {
325
+ className: "IncodeElectronicSignatureDocContainer",
326
+ children: _.documents.map((e, t) => /* @__PURE__ */ a("div", {
327
+ className: "IncodeElectronicSignatureDocRow",
328
+ children: [/* @__PURE__ */ a("span", {
329
+ className: "IncodeElectronicSignatureDocRowName",
330
+ children: [
331
+ m("aes.confirmSignature.contract"),
332
+ " ",
333
+ t + 1
334
+ ]
335
+ }), /* @__PURE__ */ a("button", {
336
+ type: "button",
337
+ className: "IncodeElectronicSignatureDocRowAction",
338
+ onClick: () => v.viewDocument(e.documentUrl),
339
+ children: m("aes.confirmSignature.viewDocument")
340
+ })]
341
+ }, e.documentRef))
342
+ })
343
+ }), /* @__PURE__ */ a("div", {
344
+ className: "IncodeElectronicSignatureSigningBottom",
345
+ children: [/* @__PURE__ */ a("div", {
346
+ className: "IncodeElectronicSignatureConsents",
347
+ children: t.map((e) => /* @__PURE__ */ a(p, {
348
+ id: `es-${e.id}`,
349
+ label: e.label,
350
+ size: "s",
351
+ checked: !!_.consentChecks[e.id],
352
+ onChange: () => v.setConsent(e.id, !_.consentChecks[e.id])
353
+ }, e.id))
354
+ }), /* @__PURE__ */ a("div", {
355
+ className: "IncodeElectronicSignatureFooter",
356
+ children: /* @__PURE__ */ a(l, {
357
+ onClick: () => v.sign(),
358
+ disabled: !_.allConsented,
359
+ children: n.signButtonLabel
360
+ })
361
+ })]
362
+ })]
363
+ });
364
+ }
365
+ return null;
366
+ }, w = ({ state: e, manager: t, t: r }) => (n(() => () => URL.revokeObjectURL(e.fileUrl), [e.fileUrl]), /* @__PURE__ */ a(c, {
367
+ className: "IncodeElectronicSignature",
368
+ title: r("aes.reviewDocument.title"),
369
+ subtitle: r("aes.reviewDocument.subtitle"),
370
+ hideFooterBranding: !0,
371
+ children: [/* @__PURE__ */ a("div", {
372
+ className: "IncodeElectronicSignatureReviewBody",
373
+ children: [/* @__PURE__ */ a("div", {
374
+ className: "IncodeElectronicSignatureReviewCard",
375
+ children: [/* @__PURE__ */ a("div", {
376
+ className: "IncodeElectronicSignatureDocPreview",
377
+ children: /* @__PURE__ */ a("object", {
378
+ data: e.fileUrl,
379
+ type: "application/pdf",
380
+ className: "IncodeElectronicSignatureDocPreviewObject"
381
+ })
382
+ }), /* @__PURE__ */ a("p", {
383
+ className: "IncodeElectronicSignatureDocName",
384
+ children: e.fileName
385
+ })]
386
+ }), /* @__PURE__ */ a("div", {
387
+ className: "IncodeElectronicSignatureEncrypted",
388
+ children: [/* @__PURE__ */ a(u, { className: "IncodeElectronicSignatureEncryptedIcon" }), /* @__PURE__ */ a("span", { children: r("encryptionLabel.encryptedPhotos") })]
389
+ })]
390
+ }), /* @__PURE__ */ a("div", {
391
+ className: "IncodeElectronicSignatureFooter IncodeElectronicSignatureFooterRow",
392
+ children: [/* @__PURE__ */ a(l, {
393
+ variant: "secondary",
394
+ onClick: () => t.replaceFile(),
395
+ children: r("aes.review.replace")
396
+ }), /* @__PURE__ */ a(l, {
397
+ onClick: () => t.confirmFile(),
398
+ children: r("common.continue")
399
+ })]
400
+ })]
401
+ })), T = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ a(s, { children: e ? /* @__PURE__ */ a(C, {
402
+ config: e,
403
+ onFinish: t,
404
+ onError: n
405
+ }) : null }), E = T;
406
+ m(T, "incode-electronic-signature");
407
+ //#endregion
408
+ export { T as n, E as t };
@@ -1,13 +1,13 @@
1
- import { n as e } from "../i18n-BpEDCZi_.js";
1
+ import { n as e } from "../i18n-Cnoc6xWX.js";
2
2
  import { _ as t, p as n, v as r } from "../vendor-preact-D6SntenC.js";
3
- import { o as i, t as a } from "../incodeComponent-DIb7wDAq.js";
3
+ import { o as i, t as a } from "../incodeComponent-BL7Lq_Hw.js";
4
4
  import { t as o } from "../spacer-DCljE53A.js";
5
5
  import { t as s } from "../page-kB-LDkaO.js";
6
- import "../extensibility-tO37wsbP.js";
6
+ import "../extensibility-G9cRcFnB.js";
7
7
  import { t as c } from "../button-jwSm4U5l.js";
8
- import { t as l } from "../inputComposed-CE-pW9An.js";
9
- import { t as u } from "../otpInput-CmaZThVX.js";
10
- import { t as d } from "../incodeModule-CXOUgU0z.js";
8
+ import { t as l } from "../inputComposed-Z2b-ltvn.js";
9
+ import { t as u } from "../otpInput-CHisiz4N.js";
10
+ import { t as d } from "../incodeModule-Di2OUZ5_.js";
11
11
  import { createEmailManager as f } from "@incodetech/core/email";
12
12
  //#region src/modules/email/emailInput.tsx
13
13
  var p = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, m = ({ prefilledEmail: i, emailError: a, label: o, disabled: s = !1, required: c = !1, onEmailChange: u }) => {