@incodetech/web 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4677d7f
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/AsYouType-DPWqJvFu.js +2482 -0
- package/dist/addressAutocomplete-t809rK3N.js +108 -0
- package/dist/aligndevicelottie-C9xl1spu.js +12757 -0
- package/dist/antifraud/antifraud.es.js +17 -18
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +28 -50
- package/dist/back-horizontal-hint-Be3dUGk6.js +137 -0
- package/dist/back-tutorial-BNTyW-1N.js +14584 -0
- package/dist/back-vertical-hint-Bz_rnhd-.js +128 -0
- package/dist/backdevicelottie-DBB1YCtW.js +16678 -0
- package/dist/base.css +327 -67
- package/dist/blurdevicelottie-9WvZCZ6C.js +15939 -0
- package/dist/browser-ponyfill-B4Qc6yfW.js +299 -0
- package/dist/button-DrtZRYJX.js +123 -0
- package/dist/checkbox-kZerHUek.js +85 -0
- package/dist/consent/consent.es.js +82 -89
- package/dist/consent/styles.css +1 -1
- package/dist/countries-y2ydYDhN.js +8323 -0
- package/dist/curp-validation/curp-validation.es.js +271 -313
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-9zbxhNlX.js +94 -0
- package/dist/dateInputComposed-B36DI9FJ.js +2 -0
- package/dist/defineProperty-brqHEHA_.js +39 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-CY-g1OUT.js +784 -0
- package/dist/dropdownComposed-CWxUwv7E.js +258 -0
- package/dist/ekyb/ekyb.es.js +2 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-DGOhCY0S.js +286 -0
- package/dist/ekybModule-mBTq_Apn.js +2 -0
- package/dist/ekyc/ekyc.es.js +2 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-DZlqb6Bc.js +2 -0
- package/dist/ekycModule-rJxf46TS.js +233 -0
- package/dist/email/email.es.js +110 -154
- package/dist/email/styles.css +1 -1
- package/dist/extensibility-CcUfegWj.js +2248 -0
- package/dist/extensibility.es.js +22 -150
- package/dist/face-match/styles.css +147 -73
- package/dist/faceMatch-K9k9f1HF.js +191 -0
- package/dist/flip-animation-DOJzdXB-.js +6983 -0
- package/dist/flow/flow.es.js +2274 -2613
- package/dist/flow/styles.css +432 -73
- package/dist/formField-BBfAFfVZ.js +100 -0
- package/dist/front-horizontal-hint-aGAhadA2.js +380 -0
- package/dist/front-vertical-hint-DZz1VeNp.js +420 -0
- package/dist/frontdevicelottie-DadDp6be.js +17302 -0
- package/dist/geolocation/geolocation.es.js +852 -832
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-BfI84cPw.js +14466 -0
- package/dist/governmentValidation/governmentValidation.es.js +100 -106
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/i18n-DZOHbK9q.js +1916 -0
- package/dist/icons-BHbofCgJ.js +245 -0
- package/dist/id/id.es.js +53 -59
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BWyU3VgL.js +467 -0
- package/dist/id-laser-v-JiWXUlv0.js +467 -0
- package/dist/id-tutorial-Cc9xg5_J.js +13152 -0
- package/dist/incodeModule-Bf6yJ8RB.js +18 -0
- package/dist/index.es.js +4 -25
- package/dist/inputComposed-rPAh6ptN.js +77 -0
- package/dist/loadingIcon-BDMR5L6z.js +147 -0
- package/dist/mandatoryConsent-ohmxTqe7.js +101 -0
- package/dist/numberedStep-CQVRixRP.js +11 -0
- package/dist/otpInput-DRZiayDi.js +143 -0
- package/dist/page-M9yWRw73.js +61 -0
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +293 -0
- package/dist/passport-tutorial-z0LN7Hsp.js +11688 -0
- package/dist/passport-vertical-hint-BnCpKWeN.js +267 -0
- package/dist/phone/phone.es.js +87 -121
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-C9T_8FJt.js +138 -0
- package/dist/phoneInputComposed-CXTXBQ0B.js +407 -0
- package/dist/processing-yJ5QEgaC.js +15 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-Db0PfpkE.js +1973 -0
- package/dist/rolldown-runtime-CjdbFOpI.js +13 -0
- package/dist/selfie/selfie.es.js +29 -50
- package/dist/selfie/styles.css +170 -66
- package/dist/selfieTutorial-B0MIyPrk.js +2676 -0
- package/dist/setup-Dq2bzNKH.js +15 -0
- package/dist/signature/signature.es.js +557 -707
- package/dist/signature/styles.css +1 -1
- package/dist/spacer-DCljE53A.js +59 -0
- package/dist/spinner-BK2pIUzB.js +41 -0
- package/dist/spinner-DjG-sUzI.js +1 -0
- package/dist/successIcon-AHrfmJvv.js +17 -0
- package/dist/tutorial-C2kSUHWe.js +2781 -0
- package/dist/types/ekyb.d.ts +29 -0
- package/dist/types/ekyc.d.ts +29 -0
- package/dist/types/extensibility.d.ts +3 -5
- package/dist/types/flow.d.ts +1 -1
- package/dist/types/index.d.ts +2 -10
- package/dist/typography-BQrJwR60.js +1 -0
- package/dist/typography-BtyuWjzC.js +29 -0
- package/dist/uiConfig-CwpQ-IM6.js +20 -0
- package/dist/vendor-preact-D6SntenC.js +958 -0
- package/dist/warningIcon-Cvj-ayg1.js +17 -0
- package/package.json +8 -11
- package/dist/AsYouType-D1H_js4X.js +0 -2607
- package/dist/Trans-aTzdT_SA.js +0 -55
- package/dist/addressAutocomplete-C8-wL1j_.js +0 -153
- package/dist/aligndevicelottie-DlQCRPfM.js +0 -29
- package/dist/back-horizontal-hint-CSlf9KI1.js +0 -5
- package/dist/back-tutorial-An9AcMSe.js +0 -29
- package/dist/back-vertical-hint-CNieqiCr.js +0 -5
- package/dist/backdevicelottie-B4NgyWmX.js +0 -29
- package/dist/blurdevicelottie-_BZRug1c.js +0 -29
- package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
- package/dist/button-CE9kRlem.js +0 -184
- package/dist/cameraView-C2X7klNb.js +0 -55
- package/dist/captureOverlay-tCb4R4WE.js +0 -592
- package/dist/checkbox-B5X-mfqq.js +0 -137
- package/dist/chevronDown-DSHaPKbi.js +0 -23
- package/dist/closeIcon-9Hc97omv.js +0 -28
- package/dist/countries-DfLkrF0x.js +0 -616
- package/dist/dateInputComposed-C7PCzh-U.js +0 -173
- package/dist/documentCapture-C0mO-RGE.js +0 -692
- package/dist/dropdownComposed-BpinYlrx.js +0 -367
- package/dist/ekybModule-Dr6LJUg-.js +0 -357
- package/dist/ekycModule-C3mswduI.js +0 -291
- package/dist/errorContent-Cb8nmQAE.js +0 -44
- package/dist/errorIcon-DEARBrGx.js +0 -26
- package/dist/faceMatch-DbDp7D3d.js +0 -237
- package/dist/fileIcon-CCSvS10T.js +0 -52
- package/dist/flip-animation-COR596wy.js +0 -29
- package/dist/flipAnimation-BqV462TA.js +0 -2059
- package/dist/formField-CP6wDdfA.js +0 -106
- package/dist/front-horizontal-hint-lRLKd7vY.js +0 -7
- package/dist/front-vertical-hint-qQoJXRE3.js +0 -7
- package/dist/frontdevicelottie-KhKxT5n9.js +0 -29
- package/dist/glaredevicelottie-DLuIStvb.js +0 -29
- package/dist/id-laser-h-BBV3r3rz.js +0 -29
- package/dist/id-laser-v-BTHJaSfx.js +0 -29
- package/dist/id-tutorial-B-F5Q28m.js +0 -29
- package/dist/incodeModule-C4XIllao.js +0 -96
- package/dist/inputComposed-fUbAGrDy.js +0 -103
- package/dist/instance-BWYzq8dk.js +0 -2163
- package/dist/loadingIcon-DmuPXh70.js +0 -195
- package/dist/mandatoryConsent-5xPI0cor.js +0 -94
- package/dist/manualCaptureButton-BvFmTyJe.js +0 -372
- package/dist/numberedStep-DwUB__mh.js +0 -5
- package/dist/otpInput-BFXhqFRT.js +0 -156
- package/dist/page-SrUl0qtN.js +0 -69
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +0 -5
- package/dist/passport-tutorial-CaYBFTqt.js +0 -29
- package/dist/passport-vertical-hint-GaLnzqHP.js +0 -5
- package/dist/permissions-DT4Fz9MR.js +0 -709
- package/dist/phoneInput-CGr8TxOO.js +0 -158
- package/dist/phoneInputComposed-Cm9O2Jba.js +0 -206
- package/dist/processing-szVOCQwZ.js +0 -19
- package/dist/richText-cspvNz2a.js +0 -1807
- package/dist/selfieTutorial-Dm_p0ke9.js +0 -29
- package/dist/spinner-DygONskw.js +0 -60
- package/dist/successIcon-Bjsdc4lF.js +0 -26
- package/dist/tutorial-Cdz1025D.js +0 -473
- package/dist/types/ekyb/styles.d.ts +0 -1
- package/dist/types/ekyc/styles.d.ts +0 -1
- package/dist/typography-BDACYR5i.js +0 -14
- package/dist/uiConfig-Dnt-2YWB.js +0 -23
- package/dist/useMediaQuery-lJdQBmC2.js +0 -18
- package/dist/vendor-preact-BoMmvSgn.js +0 -694
- package/dist/warningIcon-DQq_MrOB.js +0 -26
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as e } from "./vendor-preact-D6SntenC.js";
|
|
2
|
+
//#region src/shared/webComponent/registerIncodeElement.ts
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
customElements.get(n) === void 0 && e(t, n, [...r], { shadow: !1 });
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/shared/webComponent/incodeModule.ts
|
|
8
|
+
var n = [
|
|
9
|
+
"config",
|
|
10
|
+
"manager",
|
|
11
|
+
"onFinish",
|
|
12
|
+
"onError"
|
|
13
|
+
];
|
|
14
|
+
function r(e, r) {
|
|
15
|
+
t(e, r, n);
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as t };
|
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import { u as w } from "./instance-BWYzq8dk.js";
|
|
6
|
-
import { s as f } from "./uiConfig-Dnt-2YWB.js";
|
|
7
|
-
async function A({
|
|
8
|
-
apiURL: s,
|
|
9
|
-
token: e,
|
|
10
|
-
customHeaders: o,
|
|
11
|
-
timeout: r,
|
|
12
|
-
wasm: n,
|
|
13
|
-
i18n: a,
|
|
14
|
-
uiConfig: t
|
|
15
|
-
}) {
|
|
16
|
-
t && f(t), await p({ apiURL: s, token: e, customHeaders: o, timeout: r, wasm: n });
|
|
17
|
-
const i = m(a);
|
|
18
|
-
c(i);
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
U as DEFAULT_WASM_VERSION,
|
|
22
|
-
f as setUiConfig,
|
|
23
|
-
A as setup,
|
|
24
|
-
w as useScreenOrientation
|
|
25
|
-
};
|
|
1
|
+
import { t as e } from "./uiConfig-CwpQ-IM6.js";
|
|
2
|
+
import { t } from "./setup-Dq2bzNKH.js";
|
|
3
|
+
import { DEFAULT_WASM_VERSION as n } from "@incodetech/core/wasm";
|
|
4
|
+
export { n as DEFAULT_WASM_VERSION, e as setUiConfig, t as setup };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { a as e, v as t } from "./vendor-preact-D6SntenC.js";
|
|
2
|
+
import { n } from "./loadingIcon-BDMR5L6z.js";
|
|
3
|
+
import { o as r, p as i } from "./icons-BHbofCgJ.js";
|
|
4
|
+
import { t as a } from "./successIcon-AHrfmJvv.js";
|
|
5
|
+
//#region src/shared/input/input.tsx
|
|
6
|
+
var o = e((e, r) => {
|
|
7
|
+
let { class: i, type: a = "text", ...o } = e;
|
|
8
|
+
return /* @__PURE__ */ t("input", {
|
|
9
|
+
...o,
|
|
10
|
+
ref: r,
|
|
11
|
+
type: a,
|
|
12
|
+
class: n("IncodeInput", i)
|
|
13
|
+
});
|
|
14
|
+
}), s = e(({ id: e, label: s, "aria-label": c, type: l, error: u, showErrorIcon: d, helper: f, showHelperIcon: p, closeButton: m, required: h, suppressMessages: g = !1, class: _, value: v, ...y }, b) => {
|
|
15
|
+
let x = `${e}-helper`, S = `${e}-error`, C = g ? "" : [f ? x : null, u ? S : null].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ t("div", {
|
|
17
|
+
class: n("IncodeInputComposed", _),
|
|
18
|
+
children: [
|
|
19
|
+
s && /* @__PURE__ */ t("label", {
|
|
20
|
+
class: "IncodeInputComposedLabel",
|
|
21
|
+
htmlFor: e,
|
|
22
|
+
"data-testid": `${e}-label`,
|
|
23
|
+
children: s
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ t("div", {
|
|
26
|
+
class: "IncodeInputComposedWrapper",
|
|
27
|
+
children: [/* @__PURE__ */ t(o, {
|
|
28
|
+
id: e,
|
|
29
|
+
type: l,
|
|
30
|
+
...y,
|
|
31
|
+
ref: b,
|
|
32
|
+
required: h,
|
|
33
|
+
"data-has-value": !!(v && String(v).length > 0),
|
|
34
|
+
...!s && c ? { "aria-label": c } : {},
|
|
35
|
+
"aria-describedby": C || void 0,
|
|
36
|
+
"aria-required": h ? "true" : void 0,
|
|
37
|
+
"aria-invalid": u ? "true" : void 0,
|
|
38
|
+
value: v
|
|
39
|
+
}), m?.show && /* @__PURE__ */ t("button", {
|
|
40
|
+
type: "button",
|
|
41
|
+
"aria-label": "Clear",
|
|
42
|
+
class: "IncodeInputComposedClearButton",
|
|
43
|
+
onClick: m.onClose,
|
|
44
|
+
"data-testid": `${e}-clear`,
|
|
45
|
+
children: /* @__PURE__ */ t(r, {})
|
|
46
|
+
})]
|
|
47
|
+
}),
|
|
48
|
+
!g && u && /* @__PURE__ */ t("div", {
|
|
49
|
+
class: "IncodeInputComposedErrorWrapper",
|
|
50
|
+
role: "alert",
|
|
51
|
+
"data-testid": `${e}-error-wrapper`,
|
|
52
|
+
children: [d && /* @__PURE__ */ t("div", {
|
|
53
|
+
class: "IncodeInputComposedIconWrapper",
|
|
54
|
+
children: /* @__PURE__ */ t(i, { size: 17 })
|
|
55
|
+
}), /* @__PURE__ */ t("p", {
|
|
56
|
+
id: S,
|
|
57
|
+
class: "IncodeInputComposedError",
|
|
58
|
+
children: u
|
|
59
|
+
})]
|
|
60
|
+
}),
|
|
61
|
+
!g && f && !u && /* @__PURE__ */ t("div", {
|
|
62
|
+
class: "IncodeInputComposedHelperWrapper",
|
|
63
|
+
"data-testid": `${e}-helper-wrapper`,
|
|
64
|
+
children: [p && /* @__PURE__ */ t("div", {
|
|
65
|
+
class: "IncodeInputComposedIconWrapper",
|
|
66
|
+
children: /* @__PURE__ */ t(a, { size: 17 })
|
|
67
|
+
}), /* @__PURE__ */ t("p", {
|
|
68
|
+
id: x,
|
|
69
|
+
class: "IncodeInputComposedHelper",
|
|
70
|
+
children: f
|
|
71
|
+
})]
|
|
72
|
+
})
|
|
73
|
+
]
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
export { o as n, s as t };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { n as e } from "./i18n-DZOHbK9q.js";
|
|
2
|
+
import { _ as t, l as n, p as r, r as i, s as a, v as o } from "./vendor-preact-D6SntenC.js";
|
|
3
|
+
import { ScreenOrientationProvider as s, createScreenOrientationObserver as c, getDeviceClass as l, isIPad as u } from "@incodetech/core/device";
|
|
4
|
+
import "@incodetech/core/events";
|
|
5
|
+
//#region src/hooks/useManager.ts
|
|
6
|
+
function d(e, n = {}) {
|
|
7
|
+
let { autoLoad: i = !0, manageLifecycle: a = !0 } = n, [o] = r(e), [s, c] = r(() => o.getState());
|
|
8
|
+
return t(() => {
|
|
9
|
+
let e = o.subscribe(c);
|
|
10
|
+
return a && i && o.load && o.load(), () => {
|
|
11
|
+
e(), a && o.stop?.();
|
|
12
|
+
};
|
|
13
|
+
}, [
|
|
14
|
+
o,
|
|
15
|
+
i,
|
|
16
|
+
a
|
|
17
|
+
]), [s, o];
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/hooks/useScreenOrientation.ts
|
|
21
|
+
var f = null;
|
|
22
|
+
function p() {
|
|
23
|
+
return f ||= c(new s(), l()), f;
|
|
24
|
+
}
|
|
25
|
+
function m() {
|
|
26
|
+
let [e, n] = r(!1);
|
|
27
|
+
return t(() => {
|
|
28
|
+
let e = p();
|
|
29
|
+
return n(e.isLandscapeMobile), e.subscribe((e) => {
|
|
30
|
+
a(() => n(e));
|
|
31
|
+
});
|
|
32
|
+
}, []), { isLandscapeMobile: e };
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/hooks/useFormScrollable.ts
|
|
36
|
+
function h(e, n) {
|
|
37
|
+
let [i, a] = r(!1);
|
|
38
|
+
return t(() => {
|
|
39
|
+
let t = e.current;
|
|
40
|
+
if (!t) return;
|
|
41
|
+
let n = () => a(t.scrollHeight > t.clientHeight);
|
|
42
|
+
n();
|
|
43
|
+
let r = new ResizeObserver(n);
|
|
44
|
+
return r.observe(t), () => r.disconnect();
|
|
45
|
+
}, [n, e]), i;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/hooks/useMediaQuery.ts
|
|
49
|
+
var g = "(max-width: 767px)";
|
|
50
|
+
function _(e) {
|
|
51
|
+
let [n, i] = r(() => typeof window < "u" && window.matchMedia(e).matches);
|
|
52
|
+
return t(() => {
|
|
53
|
+
if (typeof window > "u") return;
|
|
54
|
+
let t = window.matchMedia(e), n = () => i(t.matches);
|
|
55
|
+
return t.addEventListener("change", n), () => t.removeEventListener("change", n);
|
|
56
|
+
}, [e]), n;
|
|
57
|
+
}
|
|
58
|
+
function v() {
|
|
59
|
+
return _(g);
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/shared/icons/rotate-icon.svg
|
|
63
|
+
var y = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cg%20fill='%2320263D'%3e%3cpath%20d='M84.12%2027.54l-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158zm-5.524%208.617l-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%2001-2.22-5.351l8.925-8.925a3.138%203.138%200%20014.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%20013.136-3.113h.026a3.14%203.14%200%20013.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090h-.026zM38.115%200a3.135%203.135%200%20012.22%205.351l-8.925%208.925a3.125%203.125%200%2001-2.378.915%203.138%203.138%200%2001-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%2001-3.139%203.112h-.026a3.139%203.139%200%2001-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/g%3e%3c/svg%3e";
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/shared/landscapeBlocker/landscapeBlocker.tsx
|
|
66
|
+
function b() {
|
|
67
|
+
let [e, i] = r(null), a = n(null);
|
|
68
|
+
return t(() => {
|
|
69
|
+
let e = document.createElement("div");
|
|
70
|
+
return e.setAttribute("data-incode-landscape-portal", ""), document.body.appendChild(e), a.current = e, i(e), () => {
|
|
71
|
+
e.remove(), a.current = null;
|
|
72
|
+
};
|
|
73
|
+
}, []), e;
|
|
74
|
+
}
|
|
75
|
+
function x() {
|
|
76
|
+
let { t } = e(), n = b();
|
|
77
|
+
return n ? i(/* @__PURE__ */ o("div", {
|
|
78
|
+
class: "IncodeLandscapeBlocker",
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ o("img", {
|
|
81
|
+
class: "IncodeLandscapeBlocker-icon",
|
|
82
|
+
src: y,
|
|
83
|
+
alt: "",
|
|
84
|
+
"aria-hidden": !0
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ o("p", {
|
|
87
|
+
class: "IncodeLandscapeBlocker-text",
|
|
88
|
+
children: t("common.landscape")
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ o("p", {
|
|
91
|
+
class: "IncodeLandscapeBlocker-text",
|
|
92
|
+
children: u() ? t("common.rotateIpad") : t("common.rotate")
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
}), n) : null;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/shared/componentRoot/incodeComponent.tsx
|
|
99
|
+
function S({ children: e }) {
|
|
100
|
+
let { isLandscapeMobile: t } = m();
|
|
101
|
+
return /* @__PURE__ */ o("div", {
|
|
102
|
+
class: "IncodeComponent",
|
|
103
|
+
children: [e, t ? /* @__PURE__ */ o(x, {}) : null]
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/styles/cn.tsx
|
|
108
|
+
var C = (...e) => {
|
|
109
|
+
let t = [];
|
|
110
|
+
for (let n of e) if (n) {
|
|
111
|
+
if (typeof n == "string") t.push(n);
|
|
112
|
+
else if (typeof n == "object") for (let [e, r] of Object.entries(n)) r && t.push(e);
|
|
113
|
+
}
|
|
114
|
+
return t.join(" ");
|
|
115
|
+
}, w = ({ size: e, className: t }) => /* @__PURE__ */ o("svg", {
|
|
116
|
+
width: e,
|
|
117
|
+
height: e,
|
|
118
|
+
viewBox: "0 0 31 31",
|
|
119
|
+
fill: "none",
|
|
120
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
+
class: C("IncodeLoadingIconPrimaryIcon", t),
|
|
122
|
+
"aria-hidden": "true",
|
|
123
|
+
children: /* @__PURE__ */ o("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
|
|
124
|
+
}), T = ({ size: e, className: t }) => /* @__PURE__ */ o("svg", {
|
|
125
|
+
width: e,
|
|
126
|
+
height: e,
|
|
127
|
+
viewBox: "0 0 31 31",
|
|
128
|
+
fill: "none",
|
|
129
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
130
|
+
class: C("IncodeLoadingIconSecondaryIcon", t),
|
|
131
|
+
"aria-hidden": "true",
|
|
132
|
+
children: [/* @__PURE__ */ o("title", { children: "Spinner Outer part" }), /* @__PURE__ */ o("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })]
|
|
133
|
+
}), E = ({ size: e = 30, secondaryClass: t, primaryClass: n }) => /* @__PURE__ */ o("div", {
|
|
134
|
+
class: "IncodeLoadingIcon",
|
|
135
|
+
children: [/* @__PURE__ */ o(T, {
|
|
136
|
+
size: e,
|
|
137
|
+
className: t
|
|
138
|
+
}), /* @__PURE__ */ o("div", {
|
|
139
|
+
class: "IncodeLoadingIconPrimary",
|
|
140
|
+
children: /* @__PURE__ */ o(w, {
|
|
141
|
+
size: e,
|
|
142
|
+
className: n
|
|
143
|
+
})
|
|
144
|
+
})]
|
|
145
|
+
});
|
|
146
|
+
//#endregion
|
|
147
|
+
export { v as a, d as c, x as i, C as n, h as o, S as r, m as s, E as t };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { n as e } from "./i18n-DZOHbK9q.js";
|
|
2
|
+
import { _ as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
|
+
import { c as r, r as i } from "./loadingIcon-BDMR5L6z.js";
|
|
4
|
+
import { t as a } from "./button-DrtZRYJX.js";
|
|
5
|
+
import { t as o } from "./page-M9yWRw73.js";
|
|
6
|
+
import { t as s } from "./spinner-BK2pIUzB.js";
|
|
7
|
+
import "./spinner-DjG-sUzI.js";
|
|
8
|
+
import { t as c } from "./checkbox-kZerHUek.js";
|
|
9
|
+
import { t as l } from "./incodeModule-Bf6yJ8RB.js";
|
|
10
|
+
import { t as u } from "./richText-Db0PfpkE.js";
|
|
11
|
+
import { createMandatoryConsentManager as d } from "@incodetech/core/mandatory-consent";
|
|
12
|
+
//#region src/modules/mandatory-consent/mandatoryConsent.tsx
|
|
13
|
+
var f = ({ config: i, manager: l, onFinish: f, onError: p }) => {
|
|
14
|
+
let { t: m } = e(), [h, g] = r(() => l ?? d({ config: i }), { manageLifecycle: !l });
|
|
15
|
+
if (t(() => {
|
|
16
|
+
if (h.status === "finished") {
|
|
17
|
+
f?.();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (h.status === "closed") {
|
|
21
|
+
p?.(void 0);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
h.status === "error" && p?.(h.error);
|
|
25
|
+
}, [
|
|
26
|
+
h,
|
|
27
|
+
f,
|
|
28
|
+
p
|
|
29
|
+
]), h.status === "finished" || h.status === "closed" || h.status === "error") return null;
|
|
30
|
+
if (h.status === "idle" || h.status === "loading") return /* @__PURE__ */ n(o, {
|
|
31
|
+
className: "IncodeConsentPage",
|
|
32
|
+
children: /* @__PURE__ */ n("div", {
|
|
33
|
+
class: "IncodeConsentCentered",
|
|
34
|
+
children: /* @__PURE__ */ n(s, {})
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
let _ = h.text.split("\n").filter((e) => e.trim().length > 0).join(" ");
|
|
38
|
+
return /* @__PURE__ */ n(o, {
|
|
39
|
+
className: "IncodeConsentPage",
|
|
40
|
+
hideFooterBranding: !0,
|
|
41
|
+
hideHeader: !0,
|
|
42
|
+
children: /* @__PURE__ */ n("div", {
|
|
43
|
+
class: "IncodeConsentContent",
|
|
44
|
+
children: [/* @__PURE__ */ n("div", {
|
|
45
|
+
class: "IncodeConsentBody",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ n("h1", {
|
|
48
|
+
id: "mandatory-consent-title",
|
|
49
|
+
class: "IncodeConsentTitle",
|
|
50
|
+
children: h.title
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ n("p", {
|
|
53
|
+
class: "IncodeConsentSubtitle",
|
|
54
|
+
children: m("biometricConsent.subtitle")
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ n("div", {
|
|
57
|
+
class: "IncodeConsentCheckboxList",
|
|
58
|
+
children: /* @__PURE__ */ n(c, {
|
|
59
|
+
id: "mandatory-consent-checkbox",
|
|
60
|
+
class: "IncodeConsentCheckbox",
|
|
61
|
+
checked: h.isSigned,
|
|
62
|
+
onChange: () => g.toggle(),
|
|
63
|
+
label: /* @__PURE__ */ n("span", {
|
|
64
|
+
class: "IncodeConsentCheckboxLabel",
|
|
65
|
+
onClick: (e) => {
|
|
66
|
+
e.target.closest("a") && e.stopPropagation();
|
|
67
|
+
},
|
|
68
|
+
children: /* @__PURE__ */ n(u, {
|
|
69
|
+
content: _,
|
|
70
|
+
class: "IncodeRichText"
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
}), /* @__PURE__ */ n("div", {
|
|
77
|
+
class: "IncodeConsentActions",
|
|
78
|
+
children: [/* @__PURE__ */ n(a, {
|
|
79
|
+
"data-testid": "mandatory-consent-submit",
|
|
80
|
+
class: "IncodeConsentButton",
|
|
81
|
+
onClick: () => g.submit(),
|
|
82
|
+
disabled: !h.canSubmit,
|
|
83
|
+
isLoading: h.status === "submitting",
|
|
84
|
+
children: m("biometricConsent.button.continue")
|
|
85
|
+
}), /* @__PURE__ */ n(a, {
|
|
86
|
+
variant: "link",
|
|
87
|
+
onClick: () => g.cancel(),
|
|
88
|
+
children: m("biometricConsent.button.cancel")
|
|
89
|
+
})]
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
}, p = ({ config: e, manager: t, onFinish: r, onError: a }) => /* @__PURE__ */ n(i, { children: e ? /* @__PURE__ */ n(f, {
|
|
94
|
+
config: e,
|
|
95
|
+
manager: t,
|
|
96
|
+
onFinish: r,
|
|
97
|
+
onError: a
|
|
98
|
+
}) : null });
|
|
99
|
+
l(p, "incode-mandatory-consent");
|
|
100
|
+
//#endregion
|
|
101
|
+
export { p as MandatoryConsent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { v as e } from "./vendor-preact-D6SntenC.js";
|
|
2
|
+
//#region src/shared/permissions/camera/numberedStep.tsx
|
|
3
|
+
var t = ({ number: t }) => /* @__PURE__ */ e("div", {
|
|
4
|
+
class: "IncodeNumberedStep",
|
|
5
|
+
children: /* @__PURE__ */ e("span", {
|
|
6
|
+
class: "IncodeNumberedStepText",
|
|
7
|
+
children: t
|
|
8
|
+
})
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { n as e } from "./i18n-DZOHbK9q.js";
|
|
2
|
+
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
+
import { t as o } from "./spacer-DCljE53A.js";
|
|
4
|
+
import { t as s } from "./button-DrtZRYJX.js";
|
|
5
|
+
import { t as c } from "./inputComposed-rPAh6ptN.js";
|
|
6
|
+
//#region src/shared/otpInput/otpInput.tsx
|
|
7
|
+
var l = 6, u = (e) => `${Math.floor(e / 60)}:${(e % 60).toString().padStart(2, "0")}`, d = (e) => e.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, l), f = ({ resendTimer: f, canResend: p, error: m, onSubmit: h, onResend: g, onBack: _, backLinkText: v = "otp.changePhoneNumber", disabled: y = !1, isLoading: b = !1 }) => {
|
|
8
|
+
let { t: x } = e(), [S, C] = i(""), w = r(null), T = r(0), E = r(null), D = r(null), O = r(p), k = r(!1), A = r(), j = n((e) => {
|
|
9
|
+
let t = D.current;
|
|
10
|
+
t && (clearTimeout(A.current), t.textContent = "", A.current = setTimeout(() => {
|
|
11
|
+
t.textContent = e;
|
|
12
|
+
}, 50));
|
|
13
|
+
}, []);
|
|
14
|
+
t(() => {
|
|
15
|
+
let e = !O.current;
|
|
16
|
+
return O.current = p, e && p && j(x("otp.resendCodeAvailable")), () => clearTimeout(A.current);
|
|
17
|
+
}, [
|
|
18
|
+
p,
|
|
19
|
+
j,
|
|
20
|
+
x
|
|
21
|
+
]), t(() => {
|
|
22
|
+
m && (E.current = null, setTimeout(() => {
|
|
23
|
+
w.current?.focus();
|
|
24
|
+
}, 0));
|
|
25
|
+
}, [m]);
|
|
26
|
+
let M = n((e) => {
|
|
27
|
+
let t = d(e);
|
|
28
|
+
t.length !== l || b || E.current !== t && (E.current = t, h(t));
|
|
29
|
+
}, [b, h]);
|
|
30
|
+
t(() => {
|
|
31
|
+
if (!S) return;
|
|
32
|
+
let e = S.length === l && T.current < l;
|
|
33
|
+
T.current = S.length, e && M(S);
|
|
34
|
+
}, [S, M]);
|
|
35
|
+
let N = (e) => {
|
|
36
|
+
let t = e.target;
|
|
37
|
+
C(d(t.value));
|
|
38
|
+
}, P = (e) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
let t = d(e.clipboardData?.getData("text") || "");
|
|
41
|
+
t && (C(t), t.length === l && M(t));
|
|
42
|
+
};
|
|
43
|
+
t(() => {
|
|
44
|
+
if (p || f <= 0) {
|
|
45
|
+
k.current = !1;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (!k.current) {
|
|
49
|
+
k.current = !0, j(x("otp.timerStarted", { time: String(f) }));
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
f === 10 ? j(x("otp.timerTenSeconds")) : f === 5 && j(x("otp.timerFiveSeconds"));
|
|
53
|
+
}, [
|
|
54
|
+
f,
|
|
55
|
+
p,
|
|
56
|
+
j,
|
|
57
|
+
x
|
|
58
|
+
]);
|
|
59
|
+
let F = () => {
|
|
60
|
+
if (!p && f > 0) return /* @__PURE__ */ a("div", {
|
|
61
|
+
class: "IncodeOtpInputActions",
|
|
62
|
+
children: /* @__PURE__ */ a("p", {
|
|
63
|
+
class: "IncodeOtpInputTimerText",
|
|
64
|
+
"data-testid": "otp-timer",
|
|
65
|
+
children: x("otp.resendCountdown", { time: u(f) })
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
let e = () => {
|
|
69
|
+
E.current = null, C(""), g();
|
|
70
|
+
}, t = () => {
|
|
71
|
+
E.current = null, C(""), _();
|
|
72
|
+
};
|
|
73
|
+
return /* @__PURE__ */ a("div", {
|
|
74
|
+
class: "IncodeOtpInputActions",
|
|
75
|
+
children: /* @__PURE__ */ a("p", {
|
|
76
|
+
class: `IncodeOtpInputResendText ${y ? "IncodeOtpInputResendTextDisabled" : ""}`,
|
|
77
|
+
"data-testid": "otp-resend-section",
|
|
78
|
+
children: [
|
|
79
|
+
x("otp.didYouNotGetIt"),
|
|
80
|
+
/* @__PURE__ */ a("button", {
|
|
81
|
+
type: "button",
|
|
82
|
+
class: "IncodeOtpInputLink",
|
|
83
|
+
onClick: e,
|
|
84
|
+
disabled: y || !p,
|
|
85
|
+
"data-testid": "otp-resend",
|
|
86
|
+
children: x("otp.resendCode")
|
|
87
|
+
}),
|
|
88
|
+
` ${x("otp.or")} `,
|
|
89
|
+
/* @__PURE__ */ a("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
class: "IncodeOtpInputLink",
|
|
92
|
+
onClick: t,
|
|
93
|
+
disabled: y,
|
|
94
|
+
"data-testid": "otp-back",
|
|
95
|
+
children: x(v)
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
return /* @__PURE__ */ a("div", {
|
|
102
|
+
class: "IncodeOtpInput IncodeOtpInputComposed",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ a("div", {
|
|
105
|
+
ref: D,
|
|
106
|
+
class: "IncodeSrOnly",
|
|
107
|
+
"aria-live": "polite",
|
|
108
|
+
"aria-atomic": "true"
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ a(c, {
|
|
111
|
+
id: "otp-code",
|
|
112
|
+
type: "text",
|
|
113
|
+
inputMode: "text",
|
|
114
|
+
ref: w,
|
|
115
|
+
maxLength: l,
|
|
116
|
+
value: S,
|
|
117
|
+
error: m,
|
|
118
|
+
onInput: N,
|
|
119
|
+
onPaste: P,
|
|
120
|
+
disabled: y || b,
|
|
121
|
+
autocomplete: "one-time-code",
|
|
122
|
+
"data-testid": "otp-input-0",
|
|
123
|
+
"aria-label": x("otp.verificationCode"),
|
|
124
|
+
class: "IncodeOtpSingleInput",
|
|
125
|
+
showErrorIcon: !0
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ a(o, {}),
|
|
128
|
+
/* @__PURE__ */ a(s, {
|
|
129
|
+
onClick: () => {
|
|
130
|
+
M(S);
|
|
131
|
+
},
|
|
132
|
+
disabled: S.length < l || b,
|
|
133
|
+
isLoading: b,
|
|
134
|
+
"data-testid": "otp-submit",
|
|
135
|
+
children: x("common.continue")
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ a(o, { size: 12 }),
|
|
138
|
+
F()
|
|
139
|
+
]
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
export { f as t };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { S as e, _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
2
|
+
import { t as i } from "./spacer-DCljE53A.js";
|
|
3
|
+
import { i as a, n as o, r as s } from "./button-DrtZRYJX.js";
|
|
4
|
+
//#region src/shared/page/page.tsx
|
|
5
|
+
var c = ({ title: c, titleId: l, subtitle: u, className: d, logo: f, children: p, hideHeader: m, hideFooterBranding: h, "data-testid": g, "data-permission-status": _ }) => {
|
|
6
|
+
let v = n(null);
|
|
7
|
+
t(() => {
|
|
8
|
+
v.current?.focus();
|
|
9
|
+
}, []);
|
|
10
|
+
let y = s({
|
|
11
|
+
hideHeader: m,
|
|
12
|
+
hideFooterBranding: h,
|
|
13
|
+
logo: f,
|
|
14
|
+
defaultLogoSrc: a
|
|
15
|
+
}), b = c || u;
|
|
16
|
+
return /* @__PURE__ */ r("div", {
|
|
17
|
+
class: `IncodePageContainer ${d ?? ""}`,
|
|
18
|
+
"data-testid": g,
|
|
19
|
+
"data-permission-status": _,
|
|
20
|
+
children: /* @__PURE__ */ r("main", {
|
|
21
|
+
class: "IncodePageInner",
|
|
22
|
+
children: [
|
|
23
|
+
!y.hideHeader && /* @__PURE__ */ r("header", {
|
|
24
|
+
class: "IncodePageHeader",
|
|
25
|
+
children: /* @__PURE__ */ r("img", {
|
|
26
|
+
src: y.logoSrc,
|
|
27
|
+
height: y.logoHeightPx,
|
|
28
|
+
class: "IncodePageLogo",
|
|
29
|
+
"aria-hidden": "true"
|
|
30
|
+
})
|
|
31
|
+
}),
|
|
32
|
+
b ? /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r(i, { size: y.hideHeader ? 40 : 24 }), /* @__PURE__ */ r("div", {
|
|
33
|
+
class: "IncodePageTitleContainer",
|
|
34
|
+
children: [c ? /* @__PURE__ */ r("h2", {
|
|
35
|
+
ref: v,
|
|
36
|
+
id: l,
|
|
37
|
+
class: "IncodePageTitle",
|
|
38
|
+
tabIndex: -1,
|
|
39
|
+
children: c
|
|
40
|
+
}) : null, u ? /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r(i, { size: 12 }), /* @__PURE__ */ r("p", {
|
|
41
|
+
class: "IncodePageSubtitle",
|
|
42
|
+
children: u
|
|
43
|
+
})] }) : null]
|
|
44
|
+
})] }) : null,
|
|
45
|
+
/* @__PURE__ */ r("div", {
|
|
46
|
+
class: "IncodePageContent",
|
|
47
|
+
children: p
|
|
48
|
+
}),
|
|
49
|
+
y.hideFooterBranding ? null : /* @__PURE__ */ r("div", {
|
|
50
|
+
class: "IncodePageFooter",
|
|
51
|
+
children: /* @__PURE__ */ r("div", {
|
|
52
|
+
class: "IncodePageFooterInner",
|
|
53
|
+
children: /* @__PURE__ */ r(o, {})
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { c as t };
|