@incodetech/web 0.0.0-dev-20260608-c8c427ca → 0.0.0-dev-20260609-11ba3e8a
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/ae-signature/ae-signature.es.js +15 -13
- package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
- package/dist/antifraud/antifraud.es.js +22 -19
- package/dist/authentication/authentication.es.js +42 -33
- package/dist/autoFocusTitle-DM6PvgcP.js +29 -0
- package/dist/{back-horizontal-hint-DsPhKbR4.js → back-horizontal-hint-BXYix0Wj.js} +26 -26
- package/dist/back-tutorial-vb1MxlrT.js +14597 -0
- package/dist/{back-vertical-hint-BFJbYQrX.js → back-vertical-hint-DNSh6JNH.js} +27 -27
- package/dist/backdevicelottie-HypPqBz7.js +16690 -0
- package/dist/base.css +5 -0
- package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
- package/dist/bottomSheet-BuzqNQtG.js +39 -0
- package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
- package/dist/button-B-qlr4iI.js +35 -0
- package/dist/checkbox-CTPETqo5.js +96 -0
- package/dist/consent/consent.es.js +75 -64
- package/dist/countrySelector-CzyuaDIs.js +60 -0
- package/dist/cpf-ocr/cpf-ocr.es.js +2 -2
- package/dist/cpfOcr-DQVs3r8N.js +92 -0
- package/dist/cpfOcr-WNklFuxT.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -17
- package/dist/curp-validation/curp-validation.es.js +246 -211
- package/dist/customFields-B4MqqDI6.js +140 -0
- package/dist/customWatchlist-Dfqw1DQP.js +36 -0
- package/dist/dateInputComposed-BsPQHG5o.js +1 -0
- package/dist/dateInputComposed-DY97tQVK.js +69 -0
- package/dist/defineProperty-mefzVtTv.js +39 -0
- package/dist/document-capture/document-capture.es.js +2 -2
- package/dist/documentCapture-BE78MIlR.js +876 -0
- package/dist/documentCapture-BVfNZL29.js +2 -0
- package/dist/dropdownComposed-BF4L-7mJ.js +380 -0
- package/dist/dropdownComposed-mvHuRFHn.js +1 -0
- package/dist/dynamicForms-BYGGAQoc.js +352 -0
- package/dist/ekyb/ekyb.es.js +2 -2
- package/dist/ekybModule-BUPX0QhW.js +2 -0
- package/dist/ekybModule-CkTXu-4u.js +279 -0
- package/dist/ekyc/ekyc.es.js +2 -2
- package/dist/ekycModule-BWsVX39d.js +257 -0
- package/dist/ekycModule-DNDPqvUc.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -2
- package/dist/electronic-signature-BJSyzex9.js +426 -0
- package/dist/email/email.es.js +198 -78
- package/dist/emailInput-BHp4Apt4.js +39 -0
- package/dist/errorIcon-B0rmz3rw.js +26 -0
- package/dist/expiredId-C105HVKv.js +85 -0
- package/dist/extensibility-DJwVxojG.js +3070 -0
- package/dist/extensibility.es.js +26 -26
- package/dist/face-match/face-match.es.js +2 -2
- package/dist/faceMatch-BOFGxzzx.js +343 -0
- package/dist/faceMatch-CDMcFQwR.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +2 -2
- package/dist/fieldComparison-BMDmQ8eA.js +88 -0
- package/dist/fieldComparison-Z1NleSxD.js +2 -0
- package/dist/{flip-animation-CuQ57qTn.js → flip-animation-BGRvygw9.js} +4221 -4221
- package/dist/flow/flow.es.js +597 -493
- package/dist/flow/styles.css +0 -8
- package/dist/{front-horizontal-hint-CKm7PnmS.js → front-horizontal-hint-CLSU0iVo.js} +70 -70
- package/dist/{front-vertical-hint-CLHC2qoH.js → front-vertical-hint-BWq-yWQ8.js} +81 -81
- package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
- package/dist/geolocation/geolocation.es.js +485 -395
- package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
- package/dist/governmentValidation/governmentValidation.es.js +145 -64
- package/dist/governmentValidation/styles.css +0 -36
- package/dist/homeScreen-BsEYyiDB.js +264 -0
- package/dist/hooks-BtgmGvba.js +149 -0
- package/dist/i18n-gTHArCl9.js +2971 -0
- package/dist/icons-DKY3xDkf.js +360 -0
- package/dist/id/id.es.js +565 -413
- package/dist/id-laser-h-DX8UbVNH.js +467 -0
- package/dist/id-laser-v-DhnHdjlB.js +490 -0
- package/dist/id-tutorial-lj4iKtYT.js +13165 -0
- package/dist/id-verification/id-verification.es.js +21 -18
- package/dist/idOcr-BS77o1VC.js +123 -0
- package/dist/identity-reuse/identity-reuse.es.js +168 -130
- package/dist/incode-logo-57XFniXU.js +4 -0
- package/dist/incodeComponent-CDJxFZvS.js +63 -0
- package/dist/incodeModule-DkA_yd0X.js +13 -0
- package/dist/index.es.js +16 -14
- package/dist/inputComposed-5V2nLTqH.js +99 -0
- package/dist/inputComposed-BPOYwUBl.js +1 -0
- package/dist/loadingIcon-DN62ugKs.js +148 -0
- package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
- package/dist/mandatoryConsent-DP189TUn.js +107 -0
- package/dist/modal-B5QeulDu.js +153 -0
- package/dist/modal.hooks-C7K9k_pY.js +202 -0
- package/dist/numberedStep-DVAyTPv1.js +13 -0
- package/dist/optionAccessibleLabel-Czc2YC8z.js +202 -0
- package/dist/otpInput-2IQ-JCK8.js +195 -0
- package/dist/page-BZ-0eNWq.js +71 -0
- package/dist/{passport-horizontal-hint-C_le0HVU.js → passport-horizontal-hint-DfVsf4Cc.js} +55 -55
- package/dist/{passport-tutorial-BYN4T_TE.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
- package/dist/{passport-vertical-hint-H-pyICSv.js → passport-vertical-hint-DVxbTyQp.js} +49 -49
- package/dist/pdf-BZA70WbM.js +22398 -0
- package/dist/pdfViewer-Dr63sJ51.js +114 -0
- package/dist/phone/phone.es.js +214 -87
- package/dist/phoneInputComposed-D_IabWKJ.js +12142 -0
- package/dist/processing-B_u8wUB7.js +8 -0
- package/dist/qe-signature/qe-signature.es.js +15 -13
- package/dist/radioGroupComposed-DwYW-Ld-.js +215 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2099 -859
- package/dist/registerIncodeElement-BJJGzVdq.js +11 -0
- package/dist/requiredLabelHint-DEadtiwx.js +17 -0
- package/dist/richText-C7GUm0WL.js +3153 -0
- package/dist/rolldown-runtime--E5BIlTp.js +33 -0
- package/dist/selfie/selfie.es.js +54 -42
- package/dist/selfieTutorial-CtruLyO2.js +2689 -0
- package/dist/signature/signature.es.js +765 -406
- package/dist/snackbar-Dz9crm39.js +16 -0
- package/dist/spinner-BfBIZkDQ.js +42 -0
- package/dist/spinner-DEDtE7Pz.js +1 -0
- package/dist/statusPage-CVCoieyd.js +28 -0
- package/dist/successIcon-rmzr-pxu.js +30 -0
- package/dist/tabs--UMd6eEB.js +103 -0
- package/dist/transitionSpinner-CWhGcr7c.js +26 -0
- package/dist/{tutorial-QzQ536BL.js → tutorial-Jv0noW4z.js} +832 -578
- package/dist/types/extensibility.d.ts +3 -1
- package/dist/types/index.d.ts +13 -4
- package/dist/typography-BK4AmfKX.js +45 -0
- package/dist/uiConfig-sgEkFuuA.js +25 -0
- package/dist/useModuleLoader-CuhHtmgr.js +670 -0
- package/dist/vendor-preact-BH7vOa2r.js +957 -0
- package/dist/verificationResult-CJ0JyV6A.js +64 -0
- package/dist/verifiedByIncode-8QBn-kgZ.js +103 -0
- package/dist/watchlist/watchlist.es.js +31 -26
- package/dist/watchlistForBusiness-RZcnjVDb.js +80 -0
- package/dist/workflow/styles.css +0 -8
- package/dist/workflow/workflow.es.js +251 -209
- package/package.json +4 -2
- package/dist/aligndevicelottie-D8KsO77t.js +0 -12757
- package/dist/autoFocusTitle-BpYdaSUM.js +0 -16
- package/dist/back-tutorial-DhSE2FJo.js +0 -14585
- package/dist/backdevicelottie-CJWGVMdw.js +0 -16678
- package/dist/blurdevicelottie-Dxt2deEB.js +0 -15939
- package/dist/bottomSheet-QrpyatOD.js +0 -31
- package/dist/browser-ponyfill-Crda_c5R.js +0 -299
- package/dist/button-DcCUEn2n.js +0 -24
- package/dist/checkbox-DCCzBAuF.js +0 -86
- package/dist/countrySelector-CJ8egQ4C.js +0 -58
- package/dist/cpfOcr-Db06i-Lm.js +0 -2
- package/dist/cpfOcr-FixhUeMQ.js +0 -79
- package/dist/customFields-C1G9xHNX.js +0 -125
- package/dist/customWatchlist-IKEblz7u.js +0 -31
- package/dist/dateInputComposed-Cg8BvYSK.js +0 -1
- package/dist/dateInputComposed-Ddd7HLyM.js +0 -58
- package/dist/defineProperty-xczUyn-m.js +0 -39
- package/dist/documentCapture-D9I7FjGe.js +0 -2
- package/dist/documentCapture-b61wlala.js +0 -765
- package/dist/dropdownComposed-B4U0AIak.js +0 -1
- package/dist/dropdownComposed-CS2pyn-g.js +0 -293
- package/dist/dynamicForms-tYQog0kw.js +0 -298
- package/dist/ekybModule-C33C4JES.js +0 -237
- package/dist/ekybModule-LON6G2Bz.js +0 -2
- package/dist/ekycModule-BJOgtTAh.js +0 -225
- package/dist/ekycModule-BSf_DIG7.js +0 -2
- package/dist/electronic-signature-OdgTyso4.js +0 -406
- package/dist/emailInput-CU7mLB21.js +0 -37
- package/dist/errorIcon-DpHzAoAo.js +0 -24
- package/dist/expiredId-nfVAZgTL.js +0 -70
- package/dist/extensibility-BbNy3mVG.js +0 -2602
- package/dist/faceMatch-BIila4kf.js +0 -2
- package/dist/faceMatch-DJ7Mqujx.js +0 -206
- package/dist/fieldComparison-D2RSFYl-.js +0 -84
- package/dist/fieldComparison-DbUyouFd.js +0 -2
- package/dist/frontdevicelottie-65Vyfpff.js +0 -17302
- package/dist/glaredevicelottie-BEyaqtc6.js +0 -14466
- package/dist/homeScreen-CyPddxWl.js +0 -227
- package/dist/hooks-MxHtZWTS.js +0 -112
- package/dist/i18n-Kzzvkz94.js +0 -2019
- package/dist/icons-9I5g9-_1.js +0 -292
- package/dist/id-laser-h-iCPbFixz.js +0 -467
- package/dist/id-laser-v-CNzwliP2.js +0 -483
- package/dist/id-tutorial-CF4nO4oX.js +0 -13153
- package/dist/idOcr-DlMLMDqa.js +0 -97
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-BoFhgK7G.js +0 -50
- package/dist/incodeModule-BiCoAJ5k.js +0 -13
- package/dist/inputComposed-DAEey9xm.js +0 -94
- package/dist/inputComposed-eS4B0Mkh.js +0 -1
- package/dist/loadingIcon-BN5YRQUb.js +0 -104
- package/dist/lottie_light-DLqSnziX.js +0 -4419
- package/dist/mandatoryConsent-DNz2jZ43.js +0 -98
- package/dist/modal-ZqAhwiRF.js +0 -135
- package/dist/modal.hooks-LdusROLW.js +0 -126
- package/dist/numberedStep-CdLWASwL.js +0 -11
- package/dist/optionAccessibleLabel-DcygPaME.js +0 -140
- package/dist/otpInput-C4pk4BJU.js +0 -157
- package/dist/page-DA3R7q0J.js +0 -69
- package/dist/pdf-51QeiFSx.js +0 -14967
- package/dist/pdfViewer-rKzTHket.js +0 -64
- package/dist/phoneInputComposed-CjAxk2Gj.js +0 -11230
- package/dist/processing-DPktVde2.js +0 -6
- package/dist/radioGroupComposed-DRRxVk9Z.js +0 -178
- package/dist/registerIncodeElement-BHWOwdSS.js +0 -7
- package/dist/requiredLabelHint-B6FN3v88.js +0 -13
- package/dist/richText-6pIbydcz.js +0 -1973
- package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
- package/dist/selfieTutorial-Yo9AlUoT.js +0 -2677
- package/dist/snackbar-CQiiWO4p.js +0 -14
- package/dist/spinner-B4dcie2T.js +0 -1
- package/dist/spinner-CKnjVHxw.js +0 -39
- package/dist/statusPage-B8b3Jg6N.js +0 -28
- package/dist/successIcon-SlKgTSty.js +0 -28
- package/dist/tabs-D7lGst3Q.js +0 -78
- package/dist/transitionSpinner-Di3bOyOu.js +0 -17
- package/dist/typography-CxjaknHN.js +0 -28
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/useModuleLoader-Bqs7fglI.js +0 -517
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/verificationResult-DhT3hH1b.js +0 -90
- package/dist/verifiedByIncode-DpbxzO0y.js +0 -101
- package/dist/watchlistForBusiness-CRXVbH4l.js +0 -75
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-Kzzvkz94.js";
|
|
2
|
-
import { S as t, _ as n, d as r, l as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { c as o, i as s, o as c } from "./hooks-MxHtZWTS.js";
|
|
4
|
-
import { t as l } from "./incodeComponent-BoFhgK7G.js";
|
|
5
|
-
import { r as u } from "./loadingIcon-BN5YRQUb.js";
|
|
6
|
-
import { t as d } from "./page-DA3R7q0J.js";
|
|
7
|
-
import "./extensibility-BbNy3mVG.js";
|
|
8
|
-
import { t as f } from "./spinner-CKnjVHxw.js";
|
|
9
|
-
import { t as p } from "./button-DcCUEn2n.js";
|
|
10
|
-
import { t as m } from "./verificationResult-DhT3hH1b.js";
|
|
11
|
-
import { t as h } from "./inputComposed-DAEey9xm.js";
|
|
12
|
-
import { i as g, r as _ } from "./radioGroupComposed-DRRxVk9Z.js";
|
|
13
|
-
import { t as v } from "./dropdownComposed-CS2pyn-g.js";
|
|
14
|
-
import { t as y } from "./incodeModule-BiCoAJ5k.js";
|
|
15
|
-
import { n as b, t as x } from "./requiredLabelHint-B6FN3v88.js";
|
|
16
|
-
import { n as S, t as C } from "./optionAccessibleLabel-DcygPaME.js";
|
|
17
|
-
import { t as w } from "./countrySelector-CJ8egQ4C.js";
|
|
18
|
-
import { DEV_ONLY_COUNTRIES as T, SUPPORTED_COUNTRIES as E, createEkybManager as D } from "@incodetech/core/ekyb";
|
|
19
|
-
//#region src/modules/ekyb/countrySelector.tsx
|
|
20
|
-
var O = ({ value: t, onChange: n }) => {
|
|
21
|
-
let { t: r } = e();
|
|
22
|
-
return /* @__PURE__ */ a(w, {
|
|
23
|
-
id: "ekyb-country",
|
|
24
|
-
label: r("ekyb.country"),
|
|
25
|
-
value: t,
|
|
26
|
-
onChange: n,
|
|
27
|
-
countryCodes: E,
|
|
28
|
-
devOnlyCountryCodes: T,
|
|
29
|
-
"data-testid": "ekyb-country-selector"
|
|
30
|
-
});
|
|
31
|
-
}, k = ({ field: t, value: n, error: r, errorParams: i, country: o, labelHint: s, onChange: c, onBlur: l }) => {
|
|
32
|
-
let { t: u } = e();
|
|
33
|
-
return t.type === "dropdown" ? /* @__PURE__ */ a(v, {
|
|
34
|
-
id: `ekyb-${t.name}`,
|
|
35
|
-
label: u(t.label),
|
|
36
|
-
labelHint: s,
|
|
37
|
-
placeholder: t.placeholder ? u(t.placeholder) : void 0,
|
|
38
|
-
value: n,
|
|
39
|
-
options: (t.options ?? []).map((e) => {
|
|
40
|
-
let t = u(e.label);
|
|
41
|
-
return {
|
|
42
|
-
...e,
|
|
43
|
-
label: t,
|
|
44
|
-
ariaLabel: C(t)
|
|
45
|
-
};
|
|
46
|
-
}),
|
|
47
|
-
error: g(u, r, i),
|
|
48
|
-
required: t.required,
|
|
49
|
-
searchable: !0,
|
|
50
|
-
onChange: (e) => c(t.name, e),
|
|
51
|
-
onBlur: l ? () => l(t.name) : void 0,
|
|
52
|
-
"data-testid": `ekyb-field-${t.name}`
|
|
53
|
-
}) : /* @__PURE__ */ a(_, {
|
|
54
|
-
name: t.name,
|
|
55
|
-
label: t.label,
|
|
56
|
-
displayLabel: t.displayLabel,
|
|
57
|
-
value: n,
|
|
58
|
-
error: r,
|
|
59
|
-
errorParams: i,
|
|
60
|
-
required: t.required,
|
|
61
|
-
labelHint: s,
|
|
62
|
-
onChange: c,
|
|
63
|
-
onBlur: l
|
|
64
|
-
});
|
|
65
|
-
}, A = ({ ubos: t, validationErrors: n, canAddUbo: r, labelHint: i, onSetField: o, onBlur: s, onAdd: c, onRemove: l }) => {
|
|
66
|
-
let { t: u } = e(), d = (e) => g(u, e?.key, e?.params);
|
|
67
|
-
return t.length === 0 ? null : /* @__PURE__ */ a("div", {
|
|
68
|
-
className: "IncodeEkybUbos",
|
|
69
|
-
children: [t.map((e, t) => {
|
|
70
|
-
let r = t === 0 ? u("ekyb.uboName") : u("ekyb.uboNameWithNumber", { number: t + 1 }), c = t === 0 ? u("ekyb.uboSurname") : u("ekyb.uboSurnameWithNumber", { number: t + 1 }), f = t === 0;
|
|
71
|
-
return /* @__PURE__ */ a("div", {
|
|
72
|
-
className: "IncodeEkybUboEntry",
|
|
73
|
-
role: "group",
|
|
74
|
-
"aria-label": `UBO ${t + 1}`,
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ a(h, {
|
|
77
|
-
id: `ubo-${t}-name`,
|
|
78
|
-
label: r,
|
|
79
|
-
labelHint: i,
|
|
80
|
-
name: `ubo-${t}-name`,
|
|
81
|
-
value: e.name,
|
|
82
|
-
error: d(n?.[`ubo-${t}-name`]),
|
|
83
|
-
required: !0,
|
|
84
|
-
onInput: (e) => o(t, "name", e.target.value),
|
|
85
|
-
onBlur: s ? () => s(`ubo-${t}-name`) : void 0,
|
|
86
|
-
"data-testid": `ekyb-ubo-${t}-name`
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ a(h, {
|
|
89
|
-
id: `ubo-${t}-surname`,
|
|
90
|
-
label: c,
|
|
91
|
-
labelHint: i,
|
|
92
|
-
name: `ubo-${t}-surname`,
|
|
93
|
-
value: e.surname,
|
|
94
|
-
error: d(n?.[`ubo-${t}-surname`]),
|
|
95
|
-
required: !0,
|
|
96
|
-
onInput: (e) => o(t, "surname", e.target.value),
|
|
97
|
-
onBlur: s ? () => s(`ubo-${t}-surname`) : void 0,
|
|
98
|
-
"data-testid": `ekyb-ubo-${t}-surname`
|
|
99
|
-
}),
|
|
100
|
-
!f && /* @__PURE__ */ a("button", {
|
|
101
|
-
className: "IncodeEkybRemoveUbo",
|
|
102
|
-
onClick: () => l(t),
|
|
103
|
-
type: "button",
|
|
104
|
-
"aria-label": `${u("common.remove")} UBO ${t + 1}`,
|
|
105
|
-
children: u("common.remove")
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
}, e.id);
|
|
109
|
-
}), r && /* @__PURE__ */ a("button", {
|
|
110
|
-
className: "IncodeEkybAddUbo",
|
|
111
|
-
onClick: c,
|
|
112
|
-
type: "button",
|
|
113
|
-
"data-testid": "ekyb-add-ubo",
|
|
114
|
-
children: u("ekyb.addAnotherUbo")
|
|
115
|
-
})]
|
|
116
|
-
});
|
|
117
|
-
}, j = ({ config: t, onFinish: n }) => {
|
|
118
|
-
let { t: r } = e(), [i, s] = o(() => D({ config: t }));
|
|
119
|
-
return c({
|
|
120
|
-
status: i.status === "closed" ? "finished" : i.status,
|
|
121
|
-
onFinish: n
|
|
122
|
-
}), i.status === "finished" || i.status === "closed" ? null : i.status === "loading" ? /* @__PURE__ */ a(m, {
|
|
123
|
-
status: "submitting",
|
|
124
|
-
submittingTitle: r("common.loading")
|
|
125
|
-
}) : i.status === "submitting" ? /* @__PURE__ */ a(d, {
|
|
126
|
-
className: "IncodeEkybPage",
|
|
127
|
-
children: /* @__PURE__ */ a(f, {
|
|
128
|
-
fullScreen: !1,
|
|
129
|
-
title: r("common.processing"),
|
|
130
|
-
className: "IncodeEkybSpinner"
|
|
131
|
-
})
|
|
132
|
-
}) : i.status === "success" ? /* @__PURE__ */ a(m, { status: "success" }) : i.status === "error" ? /* @__PURE__ */ a(m, {
|
|
133
|
-
status: "failure",
|
|
134
|
-
onRetry: () => s.retry()
|
|
135
|
-
}) : i.status === "form" ? /* @__PURE__ */ a(N, {
|
|
136
|
-
state: i,
|
|
137
|
-
manager: s
|
|
138
|
-
}) : null;
|
|
139
|
-
}, M = new Set([
|
|
140
|
-
"street",
|
|
141
|
-
"houseNo",
|
|
142
|
-
"addressLine2",
|
|
143
|
-
"city",
|
|
144
|
-
"state",
|
|
145
|
-
"postalCode"
|
|
146
|
-
]), N = ({ state: o, manager: c }) => {
|
|
147
|
-
let { country: l, fields: f, values: m, validationErrors: h, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: C } = o, { t: w } = e(), T = i(null), E = i(null), D = i(void 0), j = s(T, f.length), N = (e) => g(w, e?.key, e?.params), P = h?.postalCode?.key;
|
|
148
|
-
n(() => {
|
|
149
|
-
let e = D.current;
|
|
150
|
-
if (D.current = P, !P || e === P) return;
|
|
151
|
-
let t = requestAnimationFrame(() => {
|
|
152
|
-
let e = E.current;
|
|
153
|
-
e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
|
|
154
|
-
behavior: "smooth",
|
|
155
|
-
block: "nearest"
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
return () => cancelAnimationFrame(t);
|
|
159
|
-
}, [P]);
|
|
160
|
-
let F = f.filter((e) => !M.has(e.name)), I = f.filter((e) => M.has(e.name)), L = r(() => b(f.map((e) => e.required)), [f]), R = (e) => {
|
|
161
|
-
let t = x(L, e);
|
|
162
|
-
return t ? w(`forms.label.${t}`) : void 0;
|
|
163
|
-
};
|
|
164
|
-
return /* @__PURE__ */ a(d, {
|
|
165
|
-
className: `IncodeEkybPage${j ? " IncodeEkybPageScrollable" : ""}`,
|
|
166
|
-
title: w("ekyb.title"),
|
|
167
|
-
children: [/* @__PURE__ */ a("div", {
|
|
168
|
-
ref: T,
|
|
169
|
-
className: "IncodeEkybForm",
|
|
170
|
-
children: [
|
|
171
|
-
/* @__PURE__ */ a(O, {
|
|
172
|
-
value: l,
|
|
173
|
-
onChange: (e) => c.setCountry(e)
|
|
174
|
-
}),
|
|
175
|
-
F.map((e) => /* @__PURE__ */ a(k, {
|
|
176
|
-
field: e,
|
|
177
|
-
value: m[e.name] ?? "",
|
|
178
|
-
error: N(h?.[e.name]),
|
|
179
|
-
country: l,
|
|
180
|
-
labelHint: R(e.required),
|
|
181
|
-
onChange: (e, t) => c.setField(e, t),
|
|
182
|
-
onBlur: (e) => c.validateField(e)
|
|
183
|
-
}, e.name)),
|
|
184
|
-
/* @__PURE__ */ a(A, {
|
|
185
|
-
ubos: v,
|
|
186
|
-
validationErrors: h,
|
|
187
|
-
canAddUbo: y,
|
|
188
|
-
labelHint: R(!0),
|
|
189
|
-
onSetField: (e, t, n) => c.setUboField(e, t, n),
|
|
190
|
-
onBlur: (e) => c.validateField(e),
|
|
191
|
-
onAdd: () => c.addUbo(),
|
|
192
|
-
onRemove: (e) => c.removeUbo(e)
|
|
193
|
-
}),
|
|
194
|
-
I.length > 0 && /* @__PURE__ */ a(t, { children: [/* @__PURE__ */ a("h3", {
|
|
195
|
-
className: "IncodeEkybSectionHeader",
|
|
196
|
-
children: w("ekyb.addressDetails")
|
|
197
|
-
}), I.map((e) => e.name === "street" ? /* @__PURE__ */ a(S, {
|
|
198
|
-
label: e.label,
|
|
199
|
-
labelHint: R(e.required),
|
|
200
|
-
value: m.street ?? "",
|
|
201
|
-
error: N(h?.street),
|
|
202
|
-
suggestions: C,
|
|
203
|
-
required: e.required,
|
|
204
|
-
onChange: (e) => c.setField("street", e),
|
|
205
|
-
onSearch: (e) => c.searchAddress(e),
|
|
206
|
-
onSelect: (e) => c.selectAddress(e),
|
|
207
|
-
onBlur: () => c.validateField("street")
|
|
208
|
-
}, e.name) : /* @__PURE__ */ a("div", {
|
|
209
|
-
ref: e.name === "postalCode" ? E : void 0,
|
|
210
|
-
children: /* @__PURE__ */ a(k, {
|
|
211
|
-
field: e,
|
|
212
|
-
value: m[e.name] ?? "",
|
|
213
|
-
error: N(h?.[e.name]),
|
|
214
|
-
country: l,
|
|
215
|
-
labelHint: R(e.required),
|
|
216
|
-
onChange: (e, t) => c.setField(e, t),
|
|
217
|
-
onBlur: (e) => c.validateField(e)
|
|
218
|
-
})
|
|
219
|
-
}, e.name))] })
|
|
220
|
-
]
|
|
221
|
-
}), /* @__PURE__ */ a("div", {
|
|
222
|
-
className: "IncodeEkybFooter",
|
|
223
|
-
children: [/* @__PURE__ */ a(p, {
|
|
224
|
-
onClick: () => c.submit(),
|
|
225
|
-
disabled: !_,
|
|
226
|
-
"data-testid": "ekyb-submit",
|
|
227
|
-
children: w("ekyb.continue")
|
|
228
|
-
}), /* @__PURE__ */ a(u, { size: 16 })]
|
|
229
|
-
})]
|
|
230
|
-
});
|
|
231
|
-
}, P = ({ config: e, onFinish: t }) => /* @__PURE__ */ a(l, { children: e ? /* @__PURE__ */ a(j, {
|
|
232
|
-
config: e,
|
|
233
|
-
onFinish: t
|
|
234
|
-
}) : null });
|
|
235
|
-
y(P, "incode-ekyb");
|
|
236
|
-
//#endregion
|
|
237
|
-
export { P as t };
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-Kzzvkz94.js";
|
|
2
|
-
import { _ as t, d as n, l as r, v as i } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { c as a, i as o, o as s } from "./hooks-MxHtZWTS.js";
|
|
4
|
-
import { t as c } from "./incodeComponent-BoFhgK7G.js";
|
|
5
|
-
import { t as l } from "./page-DA3R7q0J.js";
|
|
6
|
-
import { t as u } from "./spinner-CKnjVHxw.js";
|
|
7
|
-
import { t as d } from "./button-DcCUEn2n.js";
|
|
8
|
-
import { t as f } from "./verificationResult-DhT3hH1b.js";
|
|
9
|
-
import { i as p, r as m, t as h } from "./radioGroupComposed-DRRxVk9Z.js";
|
|
10
|
-
import { t as g } from "./phoneInputComposed-CjAxk2Gj.js";
|
|
11
|
-
import { t as _ } from "./dropdownComposed-CS2pyn-g.js";
|
|
12
|
-
import { t as v } from "./dateInputComposed-Ddd7HLyM.js";
|
|
13
|
-
import { t as y } from "./incodeModule-BiCoAJ5k.js";
|
|
14
|
-
import { n as b, t as x } from "./requiredLabelHint-B6FN3v88.js";
|
|
15
|
-
import { n as S, t as C } from "./optionAccessibleLabel-DcygPaME.js";
|
|
16
|
-
import { createEkycManager as w } from "@incodetech/core/ekyc";
|
|
17
|
-
//#region src/modules/ekyc/ekycModule.tsx
|
|
18
|
-
var T = ({ config: t, onFinish: n }) => {
|
|
19
|
-
let { t: r } = e(), [o, c] = a(() => w({ config: t }));
|
|
20
|
-
return s({
|
|
21
|
-
status: o.status === "closed" ? "finished" : o.status,
|
|
22
|
-
onFinish: n
|
|
23
|
-
}), o.status === "finished" || o.status === "closed" ? null : o.status === "loading" ? /* @__PURE__ */ i(f, {
|
|
24
|
-
status: "submitting",
|
|
25
|
-
submittingTitle: r("common.loading")
|
|
26
|
-
}) : o.status === "submitting" ? /* @__PURE__ */ i(l, {
|
|
27
|
-
className: "IncodeEkycPage",
|
|
28
|
-
children: /* @__PURE__ */ i(u, {
|
|
29
|
-
fullScreen: !1,
|
|
30
|
-
title: r("common.processing"),
|
|
31
|
-
className: "IncodeEkycSpinner"
|
|
32
|
-
})
|
|
33
|
-
}) : o.status === "success" ? /* @__PURE__ */ i(f, { status: "success" }) : o.status === "error" ? /* @__PURE__ */ i(f, {
|
|
34
|
-
status: "failure",
|
|
35
|
-
onRetry: () => c.retry(),
|
|
36
|
-
onSkip: () => c.skip()
|
|
37
|
-
}) : o.status === "misconfigured" ? /* @__PURE__ */ i(f, {
|
|
38
|
-
status: "failure",
|
|
39
|
-
failureTitle: r("verification.noFormFields"),
|
|
40
|
-
onSkip: () => c.close(),
|
|
41
|
-
skipLabel: r("common.close")
|
|
42
|
-
}) : o.status === "form" ? /* @__PURE__ */ i(E, {
|
|
43
|
-
state: o,
|
|
44
|
-
manager: c
|
|
45
|
-
}) : null;
|
|
46
|
-
}, E = ({ state: a, manager: s }) => {
|
|
47
|
-
let { fields: c, values: u, validationErrors: f, isValid: y, addressSuggestions: w, prefilled: T, hideEmail: E, fieldsCountry: D, submitError: O } = a, { t: k } = e(), A = r(null), j = r(null), M = r(void 0), N = o(A, c.length), P = n(() => b(c.filter((e) => !(e.name === "email" && E)).map((e) => e.readonly || T[e.name] ? !1 : e.required)), [
|
|
48
|
-
c,
|
|
49
|
-
E,
|
|
50
|
-
T
|
|
51
|
-
]), F = (e) => {
|
|
52
|
-
let t = x(P, e);
|
|
53
|
-
return t ? k(`forms.label.${t}`) : void 0;
|
|
54
|
-
}, I = f?.postalCode?.key;
|
|
55
|
-
t(() => {
|
|
56
|
-
let e = M.current;
|
|
57
|
-
if (M.current = I, !I || e === I) return;
|
|
58
|
-
let t = requestAnimationFrame(() => {
|
|
59
|
-
let e = j.current;
|
|
60
|
-
e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
|
|
61
|
-
behavior: "smooth",
|
|
62
|
-
block: "nearest"
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
return () => cancelAnimationFrame(t);
|
|
66
|
-
}, [I]);
|
|
67
|
-
let L = (e) => p(k, e?.key, e?.params), R;
|
|
68
|
-
return /* @__PURE__ */ i(l, {
|
|
69
|
-
className: `IncodeEkycPage${N ? " IncodeEkycPageScrollable" : ""}`,
|
|
70
|
-
title: k("verification.title"),
|
|
71
|
-
children: [/* @__PURE__ */ i("div", {
|
|
72
|
-
ref: A,
|
|
73
|
-
className: "IncodeEkycForm",
|
|
74
|
-
children: c.map((e) => {
|
|
75
|
-
if (e.name === "email" && E) return null;
|
|
76
|
-
let t = null;
|
|
77
|
-
e.section && e.section !== R && (R = e.section, t = /* @__PURE__ */ i("h3", {
|
|
78
|
-
className: "IncodeEkycSectionHeader",
|
|
79
|
-
children: k({
|
|
80
|
-
address: "verification.labels.addressDetailsSection",
|
|
81
|
-
driverLicense: "verification.labels.dlDetailsSection"
|
|
82
|
-
}[e.section] ?? e.section)
|
|
83
|
-
}));
|
|
84
|
-
let n = e.readonly || T[e.name], r = n ? !1 : e.required, a = F(r), o = u[e.name] ?? "", c = f?.[e.name];
|
|
85
|
-
if (e.name === "street" && e.section === "address") return /* @__PURE__ */ i("div", { children: [t, /* @__PURE__ */ i(S, {
|
|
86
|
-
label: e.label,
|
|
87
|
-
labelHint: a,
|
|
88
|
-
value: o,
|
|
89
|
-
error: c?.key,
|
|
90
|
-
errorParams: c?.params,
|
|
91
|
-
suggestions: w,
|
|
92
|
-
readonly: n,
|
|
93
|
-
required: r,
|
|
94
|
-
onChange: (e) => s.setField("street", e),
|
|
95
|
-
onSearch: (e) => s.searchAddress(e),
|
|
96
|
-
onSelect: (e) => s.selectAddress(e),
|
|
97
|
-
onBlur: () => s.validateField("street")
|
|
98
|
-
})] }, e.name);
|
|
99
|
-
if (e.type === "dropdown") {
|
|
100
|
-
let l = k(e.label);
|
|
101
|
-
return /* @__PURE__ */ i("div", { children: [t, /* @__PURE__ */ i(_, {
|
|
102
|
-
id: `ekyc-${e.name}`,
|
|
103
|
-
label: l,
|
|
104
|
-
labelHint: a,
|
|
105
|
-
placeholder: e.placeholder ? k(e.placeholder) : void 0,
|
|
106
|
-
value: o,
|
|
107
|
-
options: (e.options ?? []).map((e) => {
|
|
108
|
-
let t = k(e.label);
|
|
109
|
-
return {
|
|
110
|
-
...e,
|
|
111
|
-
label: t,
|
|
112
|
-
ariaLabel: C(t)
|
|
113
|
-
};
|
|
114
|
-
}),
|
|
115
|
-
error: L(c),
|
|
116
|
-
disabled: n,
|
|
117
|
-
required: r,
|
|
118
|
-
searchable: !0,
|
|
119
|
-
onChange: (t) => s.setField(e.name, t),
|
|
120
|
-
onBlur: () => s.validateField(e.name),
|
|
121
|
-
"data-testid": `ekyc-field-${e.name}`
|
|
122
|
-
})] }, e.name);
|
|
123
|
-
}
|
|
124
|
-
if (e.type === "date") {
|
|
125
|
-
let l = k(e.label);
|
|
126
|
-
return /* @__PURE__ */ i("div", { children: [t, /* @__PURE__ */ i(v, {
|
|
127
|
-
id: `ekyc-${e.name}`,
|
|
128
|
-
label: l,
|
|
129
|
-
labelHint: a,
|
|
130
|
-
value: o,
|
|
131
|
-
error: L(c),
|
|
132
|
-
disabled: n,
|
|
133
|
-
required: r,
|
|
134
|
-
onInput: (t) => {
|
|
135
|
-
let n = t.target;
|
|
136
|
-
s.setField(e.name, n.value);
|
|
137
|
-
},
|
|
138
|
-
onBlur: () => s.validateField(e.name),
|
|
139
|
-
"data-testid": `ekyc-field-${e.name}`
|
|
140
|
-
})] }, e.name);
|
|
141
|
-
}
|
|
142
|
-
if (e.type === "phone") {
|
|
143
|
-
let l = k(e.label);
|
|
144
|
-
return /* @__PURE__ */ i("div", { children: [t, /* @__PURE__ */ i(g, {
|
|
145
|
-
id: `ekyc-${e.name}`,
|
|
146
|
-
label: l,
|
|
147
|
-
labelHint: a,
|
|
148
|
-
countryCode: D,
|
|
149
|
-
value: o,
|
|
150
|
-
placeholder: e.placeholder,
|
|
151
|
-
error: L(c),
|
|
152
|
-
disabled: n,
|
|
153
|
-
disableCountrySelector: e.disableCountrySelector,
|
|
154
|
-
required: r,
|
|
155
|
-
onChange: (t) => s.setField(e.name, t),
|
|
156
|
-
onBlur: () => s.validateField(e.name),
|
|
157
|
-
"data-testid": `ekyc-field-${e.name}`
|
|
158
|
-
})] }, e.name);
|
|
159
|
-
}
|
|
160
|
-
return e.type === "radio" ? /* @__PURE__ */ i("div", { children: [t, /* @__PURE__ */ i(h, {
|
|
161
|
-
id: `ekyc-${e.name}`,
|
|
162
|
-
class: "IncodeEkycRadioGroup",
|
|
163
|
-
label: k(e.label),
|
|
164
|
-
labelHint: a,
|
|
165
|
-
value: o,
|
|
166
|
-
options: (e.options ?? []).map((e) => ({
|
|
167
|
-
value: e.value,
|
|
168
|
-
label: k(e.label)
|
|
169
|
-
})),
|
|
170
|
-
error: L(c),
|
|
171
|
-
disabled: n,
|
|
172
|
-
required: r,
|
|
173
|
-
onChange: (t) => s.setField(e.name, t),
|
|
174
|
-
onBlur: () => s.validateField(e.name)
|
|
175
|
-
})] }, e.name) : /* @__PURE__ */ i("div", {
|
|
176
|
-
ref: e.name === "postalCode" ? j : void 0,
|
|
177
|
-
children: [t, /* @__PURE__ */ i(m, {
|
|
178
|
-
name: e.name,
|
|
179
|
-
label: e.label,
|
|
180
|
-
displayLabel: e.displayLabel,
|
|
181
|
-
value: o,
|
|
182
|
-
error: c?.key,
|
|
183
|
-
errorParams: c?.params,
|
|
184
|
-
type: e.type,
|
|
185
|
-
placeholder: e.placeholder,
|
|
186
|
-
placeholderParams: e.placeholderParams,
|
|
187
|
-
required: r,
|
|
188
|
-
labelHint: a,
|
|
189
|
-
readonly: n,
|
|
190
|
-
maxLength: e.maxLength,
|
|
191
|
-
onChange: (e, t) => s.setField(e, t),
|
|
192
|
-
onBlur: (e) => s.validateField(e)
|
|
193
|
-
})]
|
|
194
|
-
}, e.name);
|
|
195
|
-
})
|
|
196
|
-
}), /* @__PURE__ */ i("div", {
|
|
197
|
-
className: "IncodeEkycFooter",
|
|
198
|
-
children: [
|
|
199
|
-
O && /* @__PURE__ */ i("p", {
|
|
200
|
-
className: "IncodeEkycSubmitError",
|
|
201
|
-
role: "alert",
|
|
202
|
-
children: k(O)
|
|
203
|
-
}),
|
|
204
|
-
/* @__PURE__ */ i(d, {
|
|
205
|
-
onClick: () => s.submit(),
|
|
206
|
-
disabled: !y,
|
|
207
|
-
"data-testid": "ekyc-submit",
|
|
208
|
-
children: k("common.continue")
|
|
209
|
-
}),
|
|
210
|
-
O === "verification.errors.countryNotSupported" && /* @__PURE__ */ i(d, {
|
|
211
|
-
variant: "link",
|
|
212
|
-
onClick: () => s.skip(),
|
|
213
|
-
"data-testid": "ekyc-skip",
|
|
214
|
-
children: k("verification.labels.skip")
|
|
215
|
-
})
|
|
216
|
-
]
|
|
217
|
-
})]
|
|
218
|
-
});
|
|
219
|
-
}, D = ({ config: e, onFinish: t }) => /* @__PURE__ */ i(c, { children: e ? /* @__PURE__ */ i(T, {
|
|
220
|
-
config: e,
|
|
221
|
-
onFinish: t
|
|
222
|
-
}) : null });
|
|
223
|
-
y(D, "incode-ekyc");
|
|
224
|
-
//#endregion
|
|
225
|
-
export { D as t };
|