@incodetech/web 0.0.0-dev-20260403-eccc51c → 0.0.0-dev-20260407-4580f1c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/AsYouType-DPWqJvFu.js +2482 -0
  2. package/dist/addressAutocomplete-B3f6PGTT.js +108 -0
  3. package/dist/aligndevicelottie-C9xl1spu.js +12757 -0
  4. package/dist/antifraud/antifraud.es.js +17 -18
  5. package/dist/antifraud/styles.css +1 -1
  6. package/dist/authentication/authentication.es.js +28 -50
  7. package/dist/back-horizontal-hint-Be3dUGk6.js +137 -0
  8. package/dist/back-tutorial-BNTyW-1N.js +14584 -0
  9. package/dist/back-vertical-hint-Bz_rnhd-.js +128 -0
  10. package/dist/backdevicelottie-DBB1YCtW.js +16678 -0
  11. package/dist/base.css +327 -67
  12. package/dist/blurdevicelottie-9WvZCZ6C.js +15939 -0
  13. package/dist/browser-ponyfill-B4Qc6yfW.js +299 -0
  14. package/dist/button-DhL5eRT3.js +123 -0
  15. package/dist/checkbox-l8NxPf4o.js +85 -0
  16. package/dist/consent/consent.es.js +82 -89
  17. package/dist/consent/styles.css +1 -1
  18. package/dist/countries-y2ydYDhN.js +8323 -0
  19. package/dist/curp-validation/curp-validation.es.js +271 -313
  20. package/dist/curp-validation/styles.css +1 -1
  21. package/dist/dateInputComposed-B9WqdYx9.js +2 -0
  22. package/dist/dateInputComposed-ndsGHX1M.js +94 -0
  23. package/dist/defineProperty-brqHEHA_.js +39 -0
  24. package/dist/document-capture/styles.css +1 -1
  25. package/dist/documentCapture-wDgRLdon.js +784 -0
  26. package/dist/dropdownComposed-_Ey7wJNG.js +258 -0
  27. package/dist/ekyb/ekyb.es.js +2 -0
  28. package/dist/ekyb/styles.css +1 -1
  29. package/dist/ekybModule-BBOm1y49.js +2 -0
  30. package/dist/ekybModule-fz6i9ZRt.js +286 -0
  31. package/dist/ekyc/ekyc.es.js +2 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-SeTFG3AJ.js +233 -0
  34. package/dist/ekycModule-hxIcNX8n.js +2 -0
  35. package/dist/email/email.es.js +110 -154
  36. package/dist/email/styles.css +1 -1
  37. package/dist/extensibility-DJihqIzM.js +2248 -0
  38. package/dist/extensibility.es.js +22 -150
  39. package/dist/face-match/styles.css +147 -73
  40. package/dist/faceMatch-DH8sLx34.js +191 -0
  41. package/dist/flip-animation-DOJzdXB-.js +6983 -0
  42. package/dist/flow/flow.es.js +2273 -2613
  43. package/dist/flow/styles.css +432 -73
  44. package/dist/formField-BRTbY8w9.js +100 -0
  45. package/dist/front-horizontal-hint-aGAhadA2.js +380 -0
  46. package/dist/front-vertical-hint-DZz1VeNp.js +420 -0
  47. package/dist/frontdevicelottie-DadDp6be.js +17302 -0
  48. package/dist/geolocation/geolocation.es.js +852 -832
  49. package/dist/geolocation/styles.css +1 -1
  50. package/dist/glaredevicelottie-BfI84cPw.js +14466 -0
  51. package/dist/governmentValidation/governmentValidation.es.js +100 -106
  52. package/dist/governmentValidation/styles.css +1 -1
  53. package/dist/i18n-DZOHbK9q.js +1916 -0
  54. package/dist/icons-BHbofCgJ.js +245 -0
  55. package/dist/id/id.es.js +53 -59
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BWyU3VgL.js +467 -0
  58. package/dist/id-laser-v-JiWXUlv0.js +467 -0
  59. package/dist/id-tutorial-Cc9xg5_J.js +13152 -0
  60. package/dist/incodeModule-Bf6yJ8RB.js +18 -0
  61. package/dist/index.es.js +4 -25
  62. package/dist/inputComposed-BhbfD8Ru.js +77 -0
  63. package/dist/loadingIcon-CeQt7Zgb.js +146 -0
  64. package/dist/mandatoryConsent-LBS8E0rj.js +101 -0
  65. package/dist/numberedStep-CQVRixRP.js +11 -0
  66. package/dist/otpInput-CDIG9el7.js +143 -0
  67. package/dist/page-SvlJWUfz.js +61 -0
  68. package/dist/passport-horizontal-hint-CFsGs7Dp.js +293 -0
  69. package/dist/passport-tutorial-z0LN7Hsp.js +11688 -0
  70. package/dist/passport-vertical-hint-BnCpKWeN.js +267 -0
  71. package/dist/phone/phone.es.js +87 -121
  72. package/dist/phone/styles.css +1 -1
  73. package/dist/phoneInput-C9T_8FJt.js +138 -0
  74. package/dist/phoneInputComposed-B-0zieIW.js +407 -0
  75. package/dist/processing-B5zhNH6I.js +15 -0
  76. package/dist/redirect-to-mobile/styles.css +1 -1
  77. package/dist/richText-Db0PfpkE.js +1973 -0
  78. package/dist/rolldown-runtime-CjdbFOpI.js +13 -0
  79. package/dist/selfie/selfie.es.js +29 -50
  80. package/dist/selfie/styles.css +170 -66
  81. package/dist/selfieTutorial-B0MIyPrk.js +2676 -0
  82. package/dist/setup-Dq2bzNKH.js +15 -0
  83. package/dist/signature/signature.es.js +557 -707
  84. package/dist/signature/styles.css +1 -1
  85. package/dist/spacer-DCljE53A.js +59 -0
  86. package/dist/spinner-Bk0YuoLu.js +1 -0
  87. package/dist/spinner-snIGzmm8.js +41 -0
  88. package/dist/successIcon-AHrfmJvv.js +17 -0
  89. package/dist/tutorial-DNOd11tg.js +2780 -0
  90. package/dist/types/ekyb.d.ts +29 -0
  91. package/dist/types/ekyc.d.ts +29 -0
  92. package/dist/types/index.d.ts +0 -8
  93. package/dist/typography-BNbFNFek.js +1 -0
  94. package/dist/typography-DvHeVWfY.js +29 -0
  95. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  96. package/dist/vendor-preact-D6SntenC.js +958 -0
  97. package/dist/warningIcon-Cvj-ayg1.js +17 -0
  98. package/package.json +8 -11
  99. package/dist/AsYouType-D1H_js4X.js +0 -2607
  100. package/dist/Trans-aTzdT_SA.js +0 -55
  101. package/dist/addressAutocomplete-C8-wL1j_.js +0 -153
  102. package/dist/aligndevicelottie-DlQCRPfM.js +0 -29
  103. package/dist/back-horizontal-hint-CSlf9KI1.js +0 -5
  104. package/dist/back-tutorial-An9AcMSe.js +0 -29
  105. package/dist/back-vertical-hint-CNieqiCr.js +0 -5
  106. package/dist/backdevicelottie-B4NgyWmX.js +0 -29
  107. package/dist/blurdevicelottie-_BZRug1c.js +0 -29
  108. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  109. package/dist/button-CE9kRlem.js +0 -184
  110. package/dist/cameraView-C2X7klNb.js +0 -55
  111. package/dist/captureOverlay-tCb4R4WE.js +0 -592
  112. package/dist/checkbox-B5X-mfqq.js +0 -137
  113. package/dist/chevronDown-DSHaPKbi.js +0 -23
  114. package/dist/closeIcon-9Hc97omv.js +0 -28
  115. package/dist/countries-DfLkrF0x.js +0 -616
  116. package/dist/dateInputComposed-C7PCzh-U.js +0 -173
  117. package/dist/documentCapture-C0mO-RGE.js +0 -692
  118. package/dist/dropdownComposed-BpinYlrx.js +0 -367
  119. package/dist/ekybModule-Dr6LJUg-.js +0 -357
  120. package/dist/ekycModule-C3mswduI.js +0 -291
  121. package/dist/errorContent-Cb8nmQAE.js +0 -44
  122. package/dist/errorIcon-DEARBrGx.js +0 -26
  123. package/dist/faceMatch-DbDp7D3d.js +0 -237
  124. package/dist/fileIcon-CCSvS10T.js +0 -52
  125. package/dist/flip-animation-COR596wy.js +0 -29
  126. package/dist/flipAnimation-BqV462TA.js +0 -2059
  127. package/dist/formField-CP6wDdfA.js +0 -106
  128. package/dist/front-horizontal-hint-lRLKd7vY.js +0 -7
  129. package/dist/front-vertical-hint-qQoJXRE3.js +0 -7
  130. package/dist/frontdevicelottie-KhKxT5n9.js +0 -29
  131. package/dist/glaredevicelottie-DLuIStvb.js +0 -29
  132. package/dist/id-laser-h-BBV3r3rz.js +0 -29
  133. package/dist/id-laser-v-BTHJaSfx.js +0 -29
  134. package/dist/id-tutorial-B-F5Q28m.js +0 -29
  135. package/dist/incodeModule-C4XIllao.js +0 -96
  136. package/dist/inputComposed-fUbAGrDy.js +0 -103
  137. package/dist/instance-BWYzq8dk.js +0 -2163
  138. package/dist/loadingIcon-DmuPXh70.js +0 -195
  139. package/dist/mandatoryConsent-5xPI0cor.js +0 -94
  140. package/dist/manualCaptureButton-BvFmTyJe.js +0 -372
  141. package/dist/numberedStep-DwUB__mh.js +0 -5
  142. package/dist/otpInput-BFXhqFRT.js +0 -156
  143. package/dist/page-SrUl0qtN.js +0 -69
  144. package/dist/passport-horizontal-hint-BCtpMp1Y.js +0 -5
  145. package/dist/passport-tutorial-CaYBFTqt.js +0 -29
  146. package/dist/passport-vertical-hint-GaLnzqHP.js +0 -5
  147. package/dist/permissions-DT4Fz9MR.js +0 -709
  148. package/dist/phoneInput-CGr8TxOO.js +0 -158
  149. package/dist/phoneInputComposed-Cm9O2Jba.js +0 -206
  150. package/dist/processing-szVOCQwZ.js +0 -19
  151. package/dist/richText-cspvNz2a.js +0 -1807
  152. package/dist/selfieTutorial-Dm_p0ke9.js +0 -29
  153. package/dist/spinner-DygONskw.js +0 -60
  154. package/dist/successIcon-Bjsdc4lF.js +0 -26
  155. package/dist/tutorial-Cdz1025D.js +0 -473
  156. package/dist/types/ekyb/styles.d.ts +0 -1
  157. package/dist/types/ekyc/styles.d.ts +0 -1
  158. package/dist/typography-BDACYR5i.js +0 -14
  159. package/dist/uiConfig-Dnt-2YWB.js +0 -23
  160. package/dist/useMediaQuery-lJdQBmC2.js +0 -18
  161. package/dist/vendor-preact-BoMmvSgn.js +0 -694
  162. 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 { setup as p } from "@incodetech/core";
2
- import { DEFAULT_WASM_VERSION as U } from "@incodetech/core";
3
- import "./vendor-preact-BoMmvSgn.js";
4
- import { c as m, s as c } from "./instance-BWYzq8dk.js";
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";
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-CeQt7Zgb.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,146 @@
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";
4
+ //#region src/hooks/useManager.ts
5
+ function d(e, n = {}) {
6
+ let { autoLoad: i = !0, manageLifecycle: a = !0 } = n, [o] = r(e), [s, c] = r(() => o.getState());
7
+ return t(() => {
8
+ let e = o.subscribe(c);
9
+ return a && i && o.load && o.load(), () => {
10
+ e(), a && o.stop?.();
11
+ };
12
+ }, [
13
+ o,
14
+ i,
15
+ a
16
+ ]), [s, o];
17
+ }
18
+ //#endregion
19
+ //#region src/hooks/useScreenOrientation.ts
20
+ var f = null;
21
+ function p() {
22
+ return f ||= c(new s(), l()), f;
23
+ }
24
+ function m() {
25
+ let [e, n] = r(!1);
26
+ return t(() => {
27
+ let e = p();
28
+ return n(e.isLandscapeMobile), e.subscribe((e) => {
29
+ a(() => n(e));
30
+ });
31
+ }, []), { isLandscapeMobile: e };
32
+ }
33
+ //#endregion
34
+ //#region src/hooks/useFormScrollable.ts
35
+ function h(e, n) {
36
+ let [i, a] = r(!1);
37
+ return t(() => {
38
+ let t = e.current;
39
+ if (!t) return;
40
+ let n = () => a(t.scrollHeight > t.clientHeight);
41
+ n();
42
+ let r = new ResizeObserver(n);
43
+ return r.observe(t), () => r.disconnect();
44
+ }, [n, e]), i;
45
+ }
46
+ //#endregion
47
+ //#region src/hooks/useMediaQuery.ts
48
+ var g = "(max-width: 767px)";
49
+ function _(e) {
50
+ let [n, i] = r(() => typeof window < "u" && window.matchMedia(e).matches);
51
+ return t(() => {
52
+ if (typeof window > "u") return;
53
+ let t = window.matchMedia(e), n = () => i(t.matches);
54
+ return t.addEventListener("change", n), () => t.removeEventListener("change", n);
55
+ }, [e]), n;
56
+ }
57
+ function v() {
58
+ return _(g);
59
+ }
60
+ //#endregion
61
+ //#region src/shared/icons/rotate-icon.svg
62
+ 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";
63
+ //#endregion
64
+ //#region src/shared/landscapeBlocker/landscapeBlocker.tsx
65
+ function b() {
66
+ let [e, i] = r(null), a = n(null);
67
+ return t(() => {
68
+ let e = document.createElement("div");
69
+ return e.setAttribute("data-incode-landscape-portal", ""), document.body.appendChild(e), a.current = e, i(e), () => {
70
+ e.remove(), a.current = null;
71
+ };
72
+ }, []), e;
73
+ }
74
+ function x() {
75
+ let { t } = e(), n = b();
76
+ return n ? i(/* @__PURE__ */ o("div", {
77
+ class: "IncodeLandscapeBlocker",
78
+ children: [
79
+ /* @__PURE__ */ o("img", {
80
+ class: "IncodeLandscapeBlocker-icon",
81
+ src: y,
82
+ alt: "",
83
+ "aria-hidden": !0
84
+ }),
85
+ /* @__PURE__ */ o("p", {
86
+ class: "IncodeLandscapeBlocker-text",
87
+ children: t("common.landscape")
88
+ }),
89
+ /* @__PURE__ */ o("p", {
90
+ class: "IncodeLandscapeBlocker-text",
91
+ children: u() ? t("common.rotateIpad") : t("common.rotate")
92
+ })
93
+ ]
94
+ }), n) : null;
95
+ }
96
+ //#endregion
97
+ //#region src/shared/componentRoot/incodeComponent.tsx
98
+ function S({ children: e }) {
99
+ let { isLandscapeMobile: t } = m();
100
+ return /* @__PURE__ */ o("div", {
101
+ class: "IncodeComponent",
102
+ children: [e, t ? /* @__PURE__ */ o(x, {}) : null]
103
+ });
104
+ }
105
+ //#endregion
106
+ //#region src/styles/cn.tsx
107
+ var C = (...e) => {
108
+ let t = [];
109
+ for (let n of e) if (n) {
110
+ if (typeof n == "string") t.push(n);
111
+ else if (typeof n == "object") for (let [e, r] of Object.entries(n)) r && t.push(e);
112
+ }
113
+ return t.join(" ");
114
+ }, w = ({ size: e, className: t }) => /* @__PURE__ */ o("svg", {
115
+ width: e,
116
+ height: e,
117
+ viewBox: "0 0 31 31",
118
+ fill: "none",
119
+ xmlns: "http://www.w3.org/2000/svg",
120
+ class: C("IncodeLoadingIconPrimaryIcon", t),
121
+ "aria-hidden": "true",
122
+ 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" })
123
+ }), T = ({ size: e, className: t }) => /* @__PURE__ */ o("svg", {
124
+ width: e,
125
+ height: e,
126
+ viewBox: "0 0 31 31",
127
+ fill: "none",
128
+ xmlns: "http://www.w3.org/2000/svg",
129
+ class: C("IncodeLoadingIconSecondaryIcon", t),
130
+ "aria-hidden": "true",
131
+ 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" })]
132
+ }), E = ({ size: e = 30, secondaryClass: t, primaryClass: n }) => /* @__PURE__ */ o("div", {
133
+ class: "IncodeLoadingIcon",
134
+ children: [/* @__PURE__ */ o(T, {
135
+ size: e,
136
+ className: t
137
+ }), /* @__PURE__ */ o("div", {
138
+ class: "IncodeLoadingIconPrimary",
139
+ children: /* @__PURE__ */ o(w, {
140
+ size: e,
141
+ className: n
142
+ })
143
+ })]
144
+ });
145
+ //#endregion
146
+ 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-CeQt7Zgb.js";
4
+ import { t as a } from "./button-DhL5eRT3.js";
5
+ import { t as o } from "./page-SvlJWUfz.js";
6
+ import { t as s } from "./spinner-snIGzmm8.js";
7
+ import "./spinner-Bk0YuoLu.js";
8
+ import { t as c } from "./checkbox-l8NxPf4o.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-DhL5eRT3.js";
5
+ import { t as c } from "./inputComposed-BhbfD8Ru.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-DhL5eRT3.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 };