@incodetech/web 0.0.0-dev-20260423-9fae59d → 0.0.0-dev-20260424-0007ea4
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.
- package/dist/{addressAutocomplete-CcRXQC3B.js → addressAutocomplete-DrmyWZPD.js} +1 -1
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/ae-signature/styles.css +3 -0
- package/dist/antifraud/antifraud.es.js +1 -1
- package/dist/authentication/authentication.es.js +2 -2
- package/dist/base.css +94 -0
- package/dist/{bottomSheet-D7Bcy6_9.js → bottomSheet-My8rHmzJ.js} +1 -1
- package/dist/consent/consent.es.js +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
- package/dist/curp-validation/curp-validation.es.js +1 -1
- package/dist/{customFields-CAL5OWfs.js → customFields-0s98Jr7J.js} +1 -1
- package/dist/{customWatchlist-B1Qw2jt3.js → customWatchlist-CoRfStGb.js} +1 -1
- package/dist/{documentCapture-DkTg5Akh.js → documentCapture-DbpFqhgC.js} +4 -4
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DoyAP5zK.js → ekybModule-BN3-QREp.js} +2 -2
- package/dist/ekybModule-DVoTonIE.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-m2j6dcJ1.js → ekycModule-9h_l1v4X.js} +2 -2
- package/dist/ekycModule-BI654xAG.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/electronic-signature-D5kY_P4z.js +15735 -0
- package/dist/email/email.es.js +2 -2
- package/dist/{extensibility-Ccmjg9uF.js → extensibility-Bl2wmZwY.js} +3 -3
- package/dist/extensibility.es.js +4 -4
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/faceMatch-DUQOSi6-.js +2 -0
- package/dist/{faceMatch-Cnb0bWfn.js → faceMatch-U9FIr5n_.js} +1 -1
- package/dist/flow/flow.es.js +3 -3
- package/dist/flow/styles.css +9 -0
- package/dist/geolocation/geolocation.es.js +1 -1
- package/dist/governmentValidation/governmentValidation.es.js +1 -1
- package/dist/{homeScreen-BU7Ww_R3.js → homeScreen-ClQnTVYl.js} +25 -18
- package/dist/id/id.es.js +4 -4
- package/dist/{idOcr-DUZhj5yX.js → idOcr-BujvNiz0.js} +2 -2
- package/dist/identity-reuse/identity-reuse.es.js +1 -1
- package/dist/{mandatoryConsent-DQ8eqWpP.js → mandatoryConsent-C_KvIzI5.js} +2 -2
- package/dist/{modal-DAphmB5P.js → modal-T42EZVfc.js} +13 -13
- package/dist/{modal.hooks-B9B0KVgR.js → modal.hooks-DlvGTmPr.js} +8 -3
- package/dist/phone/phone.es.js +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-ol3TyFHX.js → redirectToMobile-DFDeJ49m.js} +1 -1
- package/dist/{richText-BNC8z_ah.js → richText-BrAQFRcy.js} +1 -1
- package/dist/selfie/selfie.es.js +2 -2
- package/dist/selfie/styles.css +4 -0
- package/dist/signature/signature.es.js +6 -6
- package/dist/{tutorial-BfhxBq_l.js → tutorial-gtZRZwcE.js} +2 -2
- package/dist/types/extensibility.d.ts +3 -1
- package/dist/{useModuleLoader-uiNUAFk3.js → useModuleLoader-BvXHG4kl.js} +12 -12
- package/dist/watchlist/watchlist.es.js +1 -1
- package/dist/{watchlistForBusiness-B5Jz59eX.js → watchlistForBusiness-CJ_yHqbu.js} +1 -1
- package/dist/workflow/styles.css +4 -0
- package/dist/workflow/workflow.es.js +3 -3
- package/package.json +3 -2
- package/dist/ekybModule-DhcMg0kt.js +0 -2
- package/dist/ekycModule-_ejFVI0K.js +0 -2
- package/dist/electronic-signature-2-BscFlG.js +0 -407
- package/dist/faceMatch-CzhtPfJ-.js +0 -2
- /package/dist/{defineProperty-DB5OmvER.js → defineProperty-Dh8nSJpJ.js} +0 -0
- /package/dist/{incodeModule-BH9gV7jI.js → incodeModule-DcwjDRyJ.js} +0 -0
|
@@ -118,7 +118,7 @@ async function E() {
|
|
|
118
118
|
}
|
|
119
119
|
//#endregion
|
|
120
120
|
//#region src/modules/flow/flowInit.ts
|
|
121
|
-
var D = () => import("./id/id.es.js").then((e) => e.Id), O = () => import("./homeScreen-
|
|
121
|
+
var D = () => import("./id/id.es.js").then((e) => e.Id), O = () => import("./homeScreen-ClQnTVYl.js").then((e) => e.HomeScreen), k;
|
|
122
122
|
function A(e) {
|
|
123
123
|
if (e === "REDIRECT_TO_MOBILE") return () => import("@incodetech/core/redirect-to-mobile").then((e) => e.redirectToMobileMachine);
|
|
124
124
|
if (e === "PHONE") return () => import("@incodetech/core/phone").then((e) => e.phoneMachine);
|
|
@@ -156,7 +156,7 @@ function j(e) {
|
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
158
|
var M = {
|
|
159
|
-
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-
|
|
159
|
+
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-DFDeJ49m.js").then((e) => e.RedirectToMobile),
|
|
160
160
|
PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
|
|
161
161
|
EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
|
|
162
162
|
SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
|
|
@@ -165,23 +165,23 @@ var M = {
|
|
|
165
165
|
ID_CAPTURE: D,
|
|
166
166
|
TUTORIAL_ID: D,
|
|
167
167
|
SECOND_ID: D,
|
|
168
|
-
FACE_MATCH: () => import("./faceMatch-
|
|
168
|
+
FACE_MATCH: () => import("./faceMatch-DUQOSi6-.js").then((e) => e.FaceMatch),
|
|
169
169
|
CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
|
|
170
170
|
GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
|
|
171
171
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
172
|
-
EXTERNAL_VERIFICATION: () => import("./ekycModule-
|
|
173
|
-
EKYB: () => import("./ekybModule-
|
|
174
|
-
DOCUMENT_CAPTURE: () => import("./documentCapture-
|
|
175
|
-
ADDRESS: () => import("./documentCapture-
|
|
172
|
+
EXTERNAL_VERIFICATION: () => import("./ekycModule-BI654xAG.js").then((e) => e.EkycModule),
|
|
173
|
+
EKYB: () => import("./ekybModule-DVoTonIE.js").then((e) => e.EkybModule),
|
|
174
|
+
DOCUMENT_CAPTURE: () => import("./documentCapture-DbpFqhgC.js").then((e) => e.DocumentCapture),
|
|
175
|
+
ADDRESS: () => import("./documentCapture-DbpFqhgC.js").then((e) => e.DocumentCapture),
|
|
176
176
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
|
|
177
|
-
MANDATORY_CONSENT: () => import("./mandatoryConsent-
|
|
177
|
+
MANDATORY_CONSENT: () => import("./mandatoryConsent-C_KvIzI5.js").then((e) => e.MandatoryConsent),
|
|
178
178
|
SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
|
|
179
|
-
ID_OCR: () => import("./idOcr-
|
|
179
|
+
ID_OCR: () => import("./idOcr-BujvNiz0.js").then((e) => e.IdOcr),
|
|
180
180
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
181
|
-
CUSTOM_FIELDS: () => import("./customFields-
|
|
181
|
+
CUSTOM_FIELDS: () => import("./customFields-0s98Jr7J.js").then((e) => e.CustomFields),
|
|
182
182
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
|
|
183
|
-
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-
|
|
184
|
-
INCODE_WATCHLIST: () => import("./customWatchlist-
|
|
183
|
+
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-CJ_yHqbu.js").then((e) => e.WatchlistForBusiness),
|
|
184
|
+
INCODE_WATCHLIST: () => import("./customWatchlist-CoRfStGb.js").then((e) => e.CustomWatchlist),
|
|
185
185
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((e) => e.AeSignature),
|
|
186
186
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
|
|
187
187
|
CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
|
|
@@ -3,7 +3,7 @@ import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
|
3
3
|
import { o as i, t as a } from "../incodeComponent-DmPlyJO-.js";
|
|
4
4
|
import { t as o } from "../loadingIcon-C-Sq5v_K.js";
|
|
5
5
|
import { t as s } from "../successIcon-Dklx5JWI.js";
|
|
6
|
-
import { t as c } from "../incodeModule-
|
|
6
|
+
import { t as c } from "../incodeModule-DcwjDRyJ.js";
|
|
7
7
|
import { t as l } from "../statusPage-IRhwu69S.js";
|
|
8
8
|
import { createWatchlistManager as u } from "@incodetech/core/watchlist";
|
|
9
9
|
//#region src/modules/watchlist/watchlist.tsx
|
|
@@ -6,7 +6,7 @@ import { t as s } from "./loadingIcon-C-Sq5v_K.js";
|
|
|
6
6
|
import { t as c } from "./button-i4SPU5G7.js";
|
|
7
7
|
import { t as l } from "./successIcon-Dklx5JWI.js";
|
|
8
8
|
import { t as u } from "./inputComposed-snw2V0ak.js";
|
|
9
|
-
import { t as d } from "./incodeModule-
|
|
9
|
+
import { t as d } from "./incodeModule-DcwjDRyJ.js";
|
|
10
10
|
import { t as f } from "./countrySelector-BXTh4LLh.js";
|
|
11
11
|
import { t as p } from "./statusPage-IRhwu69S.js";
|
|
12
12
|
import { createWatchlistForBusinessManager as m } from "@incodetech/core/watchlist-for-business";
|
package/dist/workflow/styles.css
CHANGED
|
@@ -4,14 +4,14 @@ import { t as a } from "../uiConfig-CwpQ-IM6.js";
|
|
|
4
4
|
import { o, t as s } from "../incodeComponent-DmPlyJO-.js";
|
|
5
5
|
import "../spinner-CcWzwNeZ.js";
|
|
6
6
|
import { t as c } from "../transitionSpinner-CU8-yMmE.js";
|
|
7
|
-
import { t as l } from "../incodeModule-
|
|
8
|
-
import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-
|
|
7
|
+
import { t as l } from "../incodeModule-DcwjDRyJ.js";
|
|
8
|
+
import { a as u, f as d, i as f, m as p, t as m } from "../useModuleLoader-BvXHG4kl.js";
|
|
9
9
|
import { resolveWasmConfig as h, warmupWasm as g } from "@incodetech/core/wasm";
|
|
10
10
|
import { createWorkflowManager as _ } from "@incodetech/core/workflow";
|
|
11
11
|
//#region src/modules/workflow/workflowInit.ts
|
|
12
12
|
var v = {
|
|
13
13
|
...u,
|
|
14
|
-
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-
|
|
14
|
+
REDIRECT_TO_MOBILE: () => import("../redirectToMobile-DFDeJ49m.js").then((e) => e.RedirectToMobile)
|
|
15
15
|
};
|
|
16
16
|
async function y() {
|
|
17
17
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260424-0007ea4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -224,12 +224,13 @@
|
|
|
224
224
|
"i18next-http-backend": "^3.0.2",
|
|
225
225
|
"libphonenumber-js": "^1.11.0",
|
|
226
226
|
"marked": "^17.0.5",
|
|
227
|
+
"pdfjs-dist": "^5.6.205",
|
|
227
228
|
"preact-custom-element": "^4.6.0",
|
|
228
229
|
"preact-markup": "^2.1.1",
|
|
229
230
|
"qrcode": "^1.5.4",
|
|
230
231
|
"signature_pad": "^5.1.3",
|
|
231
232
|
"tailwindcss": "^4.1.17",
|
|
232
|
-
"@incodetech/core": "0.0.0-dev-
|
|
233
|
+
"@incodetech/core": "0.0.0-dev-20260424-0007ea4"
|
|
233
234
|
},
|
|
234
235
|
"devDependencies": {
|
|
235
236
|
"@microsoft/api-extractor": "^7.53.3",
|
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./i18n-D6pCC7RL.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-DmPlyJO-.js";
|
|
4
|
-
import { t as c } from "./page-BB20C-zy.js";
|
|
5
|
-
import { t as l } from "./button-i4SPU5G7.js";
|
|
6
|
-
import { c as u, r as d } from "./icons-CR0w16NT.js";
|
|
7
|
-
import { t as f } from "./successIcon-Dklx5JWI.js";
|
|
8
|
-
import { t as p } from "./verificationResult-DJOc6_hf.js";
|
|
9
|
-
import { t as m } from "./checkbox-U9Zb6MbF.js";
|
|
10
|
-
import { t as h } from "./incodeModule-BH9gV7jI.js";
|
|
11
|
-
import { createElectronicSignatureManager as g } from "@incodetech/core/electronic-signature";
|
|
12
|
-
//#region src/modules/electronic-signature/documentIllustration.tsx
|
|
13
|
-
var _ = () => /* @__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 v() {
|
|
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 y(e) {
|
|
130
|
-
return [
|
|
131
|
-
{
|
|
132
|
-
id: "terms",
|
|
133
|
-
label: /* @__PURE__ */ a(v, {})
|
|
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 b() {
|
|
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 x(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(b, {})
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
id: "documentsReviewed",
|
|
182
|
-
label: e("qes.documentsReviewedCheck")
|
|
183
|
-
}
|
|
184
|
-
];
|
|
185
|
-
}
|
|
186
|
-
function S(e, t) {
|
|
187
|
-
return e === "qe" ? x(t) : y(t);
|
|
188
|
-
}
|
|
189
|
-
function C(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 w = ({ config: t, onFinish: s, onError: d }) => {
|
|
203
|
-
let { t: h } = e(), [v, y] = o(() => g({ config: t })), b = i(null);
|
|
204
|
-
n(() => {
|
|
205
|
-
y.load();
|
|
206
|
-
}, [y]);
|
|
207
|
-
let x = v.status === "error" ? v.errorMessage : v.status;
|
|
208
|
-
n(() => {
|
|
209
|
-
v.status === "finished" ? s?.() : v.status === "closed" ? d?.("closed") : v.status === "error" && d?.(x);
|
|
210
|
-
}, [
|
|
211
|
-
v.status,
|
|
212
|
-
x,
|
|
213
|
-
s,
|
|
214
|
-
d
|
|
215
|
-
]);
|
|
216
|
-
let w = 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
|
-
y.selectFile(t.name, n.result, e);
|
|
224
|
-
}
|
|
225
|
-
}, n.readAsArrayBuffer(t);
|
|
226
|
-
}, [y]), E = r(() => {
|
|
227
|
-
b.current?.click();
|
|
228
|
-
}, []);
|
|
229
|
-
if (v.status === "finished" || v.status === "closed") return null;
|
|
230
|
-
if (v.status === "loading") return /* @__PURE__ */ a(p, {
|
|
231
|
-
status: "submitting",
|
|
232
|
-
submittingTitle: h("common.processing")
|
|
233
|
-
});
|
|
234
|
-
if (v.status === "uploading") return /* @__PURE__ */ a(c, {
|
|
235
|
-
className: "IncodeElectronicSignature",
|
|
236
|
-
title: h("aes.confirmSignature.uploadTitle"),
|
|
237
|
-
subtitle: h("aes.confirmSignature.uploadDescription"),
|
|
238
|
-
children: [/* @__PURE__ */ a("div", {
|
|
239
|
-
className: "IncodeElectronicSignatureUploadBody",
|
|
240
|
-
children: [/* @__PURE__ */ a("div", {
|
|
241
|
-
className: "IncodeElectronicSignatureIllustration",
|
|
242
|
-
children: /* @__PURE__ */ a(_, {})
|
|
243
|
-
}), /* @__PURE__ */ a("input", {
|
|
244
|
-
ref: b,
|
|
245
|
-
type: "file",
|
|
246
|
-
accept: "application/pdf",
|
|
247
|
-
className: "IncodeElectronicSignatureFileInput",
|
|
248
|
-
onChange: w
|
|
249
|
-
})]
|
|
250
|
-
}), /* @__PURE__ */ a("div", {
|
|
251
|
-
className: "IncodeElectronicSignatureFooter",
|
|
252
|
-
children: /* @__PURE__ */ a(l, {
|
|
253
|
-
onClick: E,
|
|
254
|
-
children: h("aes.confirmSignature.addDocument")
|
|
255
|
-
})
|
|
256
|
-
})]
|
|
257
|
-
});
|
|
258
|
-
if (v.status === "reviewing") return /* @__PURE__ */ a(T, {
|
|
259
|
-
state: v,
|
|
260
|
-
manager: y,
|
|
261
|
-
t: h
|
|
262
|
-
});
|
|
263
|
-
if (v.status === "processing") return /* @__PURE__ */ a(p, {
|
|
264
|
-
status: "submitting",
|
|
265
|
-
submittingTitle: h("common.processing")
|
|
266
|
-
});
|
|
267
|
-
if (v.status === "success") return v.downloadDocument ? /* @__PURE__ */ a(c, {
|
|
268
|
-
className: "IncodeElectronicSignature IncodeElectronicSignatureSuccess",
|
|
269
|
-
children: [/* @__PURE__ */ a("div", {
|
|
270
|
-
className: "IncodeElectronicSignatureSuccessCenter",
|
|
271
|
-
children: [/* @__PURE__ */ a(f, { size: 64 }), /* @__PURE__ */ a("p", {
|
|
272
|
-
className: "IncodeElectronicSignatureSuccessTitle",
|
|
273
|
-
children: h("signature.successTitle")
|
|
274
|
-
})]
|
|
275
|
-
}), /* @__PURE__ */ a("div", {
|
|
276
|
-
className: "IncodeElectronicSignatureFooter",
|
|
277
|
-
children: [/* @__PURE__ */ a(l, {
|
|
278
|
-
onClick: () => y.finish(),
|
|
279
|
-
children: h("common.continue")
|
|
280
|
-
}), v.signedDocuments.map((e, t) => /* @__PURE__ */ a("a", {
|
|
281
|
-
href: e.signedDocumentUrl,
|
|
282
|
-
target: "_blank",
|
|
283
|
-
rel: "noopener noreferrer",
|
|
284
|
-
className: "IncodeElectronicSignatureDownloadLink",
|
|
285
|
-
children: h("aes.confirmSignature.downloadDocument")
|
|
286
|
-
}, t))]
|
|
287
|
-
})]
|
|
288
|
-
}) : /* @__PURE__ */ a(p, {
|
|
289
|
-
status: "success",
|
|
290
|
-
successTitle: h("signature.successTitle")
|
|
291
|
-
});
|
|
292
|
-
if (v.status === "error") return /* @__PURE__ */ a(p, {
|
|
293
|
-
status: "warning",
|
|
294
|
-
warningTitle: h("aes.confirmSignature.fail"),
|
|
295
|
-
onRetry: () => y.retry()
|
|
296
|
-
});
|
|
297
|
-
if (v.status === "signing") {
|
|
298
|
-
if (v.viewingDocumentUrl) return /* @__PURE__ */ a(c, {
|
|
299
|
-
className: "IncodeElectronicSignature",
|
|
300
|
-
children: [/* @__PURE__ */ a("div", {
|
|
301
|
-
className: "IncodeElectronicSignatureDocViewHeader",
|
|
302
|
-
children: /* @__PURE__ */ a(l, {
|
|
303
|
-
size: "M",
|
|
304
|
-
variant: "link",
|
|
305
|
-
class: "IncodeElectronicSignatureBackButton",
|
|
306
|
-
icon: /* @__PURE__ */ a(u, { variant: "m" }),
|
|
307
|
-
onClick: () => y.closeDocumentView(),
|
|
308
|
-
"aria-label": h("common.back")
|
|
309
|
-
})
|
|
310
|
-
}), /* @__PURE__ */ a("object", {
|
|
311
|
-
data: v.viewingDocumentUrl,
|
|
312
|
-
type: "application/pdf",
|
|
313
|
-
className: "IncodeElectronicSignatureDocViewer",
|
|
314
|
-
"aria-label": h("aes.confirmSignature.viewDocument")
|
|
315
|
-
})]
|
|
316
|
-
});
|
|
317
|
-
let e = v.variant, t = S(e, h), n = C(e, h);
|
|
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: v.documents.map((e, t) => /* @__PURE__ */ a("div", {
|
|
327
|
-
className: "IncodeElectronicSignatureDocRow",
|
|
328
|
-
children: [/* @__PURE__ */ a("span", {
|
|
329
|
-
className: "IncodeElectronicSignatureDocRowName",
|
|
330
|
-
children: [
|
|
331
|
-
h("aes.confirmSignature.contract"),
|
|
332
|
-
" ",
|
|
333
|
-
t + 1
|
|
334
|
-
]
|
|
335
|
-
}), /* @__PURE__ */ a("button", {
|
|
336
|
-
type: "button",
|
|
337
|
-
className: "IncodeElectronicSignatureDocRowAction",
|
|
338
|
-
onClick: () => y.viewDocument(e.documentUrl),
|
|
339
|
-
children: h("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(m, {
|
|
348
|
-
id: `es-${e.id}`,
|
|
349
|
-
label: e.label,
|
|
350
|
-
size: "s",
|
|
351
|
-
checked: !!v.consentChecks[e.id],
|
|
352
|
-
onChange: () => y.setConsent(e.id, !v.consentChecks[e.id])
|
|
353
|
-
}, e.id))
|
|
354
|
-
}), /* @__PURE__ */ a("div", {
|
|
355
|
-
className: "IncodeElectronicSignatureFooter",
|
|
356
|
-
children: /* @__PURE__ */ a(l, {
|
|
357
|
-
onClick: () => y.sign(),
|
|
358
|
-
disabled: !v.allConsented,
|
|
359
|
-
children: n.signButtonLabel
|
|
360
|
-
})
|
|
361
|
-
})]
|
|
362
|
-
})]
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
return null;
|
|
366
|
-
}, T = ({ 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
|
-
children: [/* @__PURE__ */ a("div", {
|
|
371
|
-
className: "IncodeElectronicSignatureReviewBody",
|
|
372
|
-
children: [/* @__PURE__ */ a("div", {
|
|
373
|
-
className: "IncodeElectronicSignatureReviewCard",
|
|
374
|
-
children: [/* @__PURE__ */ a("div", {
|
|
375
|
-
className: "IncodeElectronicSignatureDocPreview",
|
|
376
|
-
children: /* @__PURE__ */ a("object", {
|
|
377
|
-
data: e.fileUrl,
|
|
378
|
-
type: "application/pdf",
|
|
379
|
-
className: "IncodeElectronicSignatureDocPreviewObject"
|
|
380
|
-
})
|
|
381
|
-
}), /* @__PURE__ */ a("p", {
|
|
382
|
-
className: "IncodeElectronicSignatureDocName",
|
|
383
|
-
children: e.fileName
|
|
384
|
-
})]
|
|
385
|
-
}), /* @__PURE__ */ a("div", {
|
|
386
|
-
className: "IncodeElectronicSignatureEncrypted",
|
|
387
|
-
children: [/* @__PURE__ */ a(d, { className: "IncodeElectronicSignatureEncryptedIcon" }), /* @__PURE__ */ a("span", { children: r("encryptionLabel.encryptedPhotos") })]
|
|
388
|
-
})]
|
|
389
|
-
}), /* @__PURE__ */ a("div", {
|
|
390
|
-
className: "IncodeElectronicSignatureFooter IncodeElectronicSignatureFooterRow",
|
|
391
|
-
children: [/* @__PURE__ */ a(l, {
|
|
392
|
-
variant: "secondary",
|
|
393
|
-
onClick: () => t.replaceFile(),
|
|
394
|
-
children: r("aes.review.replace")
|
|
395
|
-
}), /* @__PURE__ */ a(l, {
|
|
396
|
-
onClick: () => t.confirmFile(),
|
|
397
|
-
children: r("common.continue")
|
|
398
|
-
})]
|
|
399
|
-
})]
|
|
400
|
-
})), E = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ a(s, { children: e ? /* @__PURE__ */ a(w, {
|
|
401
|
-
config: e,
|
|
402
|
-
onFinish: t,
|
|
403
|
-
onError: n
|
|
404
|
-
}) : null }), D = E;
|
|
405
|
-
h(E, "incode-electronic-signature");
|
|
406
|
-
//#endregion
|
|
407
|
-
export { E as n, D as t };
|
|
File without changes
|
|
File without changes
|