@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da

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-D1H_js4X.js +2607 -0
  2. package/dist/Trans-aTzdT_SA.js +55 -0
  3. package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
  4. package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
  5. package/dist/antifraud/antifraud.es.js +18 -17
  6. package/dist/antifraud/styles.css +1 -1
  7. package/dist/authentication/authentication.es.js +50 -28
  8. package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
  9. package/dist/back-tutorial-An9AcMSe.js +29 -0
  10. package/dist/back-vertical-hint-CNieqiCr.js +5 -0
  11. package/dist/backdevicelottie-B4NgyWmX.js +29 -0
  12. package/dist/base.css +67 -327
  13. package/dist/blurdevicelottie-_BZRug1c.js +29 -0
  14. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  15. package/dist/button-CE9kRlem.js +184 -0
  16. package/dist/cameraView-C2X7klNb.js +55 -0
  17. package/dist/captureOverlay-tCb4R4WE.js +592 -0
  18. package/dist/checkbox-B5X-mfqq.js +137 -0
  19. package/dist/chevronDown-DSHaPKbi.js +23 -0
  20. package/dist/closeIcon-9Hc97omv.js +28 -0
  21. package/dist/consent/consent.es.js +89 -82
  22. package/dist/consent/styles.css +1 -1
  23. package/dist/countries-DfLkrF0x.js +616 -0
  24. package/dist/curp-validation/curp-validation.es.js +313 -271
  25. package/dist/curp-validation/styles.css +1 -1
  26. package/dist/dateInputComposed-C7PCzh-U.js +173 -0
  27. package/dist/document-capture/styles.css +1 -1
  28. package/dist/documentCapture-C0mO-RGE.js +692 -0
  29. package/dist/dropdownComposed-BpinYlrx.js +367 -0
  30. package/dist/ekyb/styles.css +1 -1
  31. package/dist/ekybModule-Dr6LJUg-.js +357 -0
  32. package/dist/ekyc/styles.css +1 -1
  33. package/dist/ekycModule-C3mswduI.js +291 -0
  34. package/dist/email/email.es.js +154 -110
  35. package/dist/email/styles.css +1 -1
  36. package/dist/errorContent-Cb8nmQAE.js +44 -0
  37. package/dist/errorIcon-DEARBrGx.js +26 -0
  38. package/dist/extensibility.es.js +150 -22
  39. package/dist/face-match/styles.css +73 -147
  40. package/dist/faceMatch-DbDp7D3d.js +237 -0
  41. package/dist/fileIcon-CCSvS10T.js +52 -0
  42. package/dist/flip-animation-COR596wy.js +29 -0
  43. package/dist/flipAnimation-BqV462TA.js +2059 -0
  44. package/dist/flow/flow.es.js +2613 -2273
  45. package/dist/flow/styles.css +73 -432
  46. package/dist/formField-CP6wDdfA.js +106 -0
  47. package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
  48. package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
  49. package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
  50. package/dist/geolocation/geolocation.es.js +832 -852
  51. package/dist/geolocation/styles.css +1 -1
  52. package/dist/glaredevicelottie-DLuIStvb.js +29 -0
  53. package/dist/governmentValidation/governmentValidation.es.js +106 -100
  54. package/dist/governmentValidation/styles.css +1 -1
  55. package/dist/id/id.es.js +59 -53
  56. package/dist/id/styles.css +1 -1
  57. package/dist/id-laser-h-BBV3r3rz.js +29 -0
  58. package/dist/id-laser-v-BTHJaSfx.js +29 -0
  59. package/dist/id-tutorial-B-F5Q28m.js +29 -0
  60. package/dist/incodeModule-C4XIllao.js +96 -0
  61. package/dist/index.es.js +25 -4
  62. package/dist/inputComposed-fUbAGrDy.js +103 -0
  63. package/dist/instance-BWYzq8dk.js +2163 -0
  64. package/dist/loadingIcon-DmuPXh70.js +195 -0
  65. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  66. package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
  67. package/dist/numberedStep-DwUB__mh.js +5 -0
  68. package/dist/otpInput-BFXhqFRT.js +156 -0
  69. package/dist/page-SrUl0qtN.js +69 -0
  70. package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
  71. package/dist/passport-tutorial-CaYBFTqt.js +29 -0
  72. package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
  73. package/dist/permissions-DT4Fz9MR.js +709 -0
  74. package/dist/phone/phone.es.js +121 -87
  75. package/dist/phone/styles.css +1 -1
  76. package/dist/phoneInput-CGr8TxOO.js +158 -0
  77. package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
  78. package/dist/processing-szVOCQwZ.js +19 -0
  79. package/dist/redirect-to-mobile/styles.css +1 -1
  80. package/dist/richText-cspvNz2a.js +1807 -0
  81. package/dist/selfie/selfie.es.js +50 -29
  82. package/dist/selfie/styles.css +66 -170
  83. package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
  84. package/dist/signature/signature.es.js +707 -557
  85. package/dist/signature/styles.css +1 -1
  86. package/dist/spinner-DygONskw.js +60 -0
  87. package/dist/successIcon-Bjsdc4lF.js +26 -0
  88. package/dist/tutorial-Cdz1025D.js +473 -0
  89. package/dist/types/ekyb/styles.d.ts +1 -0
  90. package/dist/types/ekyc/styles.d.ts +1 -0
  91. package/dist/types/index.d.ts +8 -0
  92. package/dist/typography-BDACYR5i.js +14 -0
  93. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  94. package/dist/useMediaQuery-lJdQBmC2.js +18 -0
  95. package/dist/vendor-preact-BoMmvSgn.js +694 -0
  96. package/dist/warningIcon-DQq_MrOB.js +26 -0
  97. package/package.json +11 -8
  98. package/dist/AsYouType-DPWqJvFu.js +0 -2482
  99. package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
  100. package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
  101. package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
  102. package/dist/back-tutorial-BNTyW-1N.js +0 -14584
  103. package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
  104. package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
  105. package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
  106. package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
  107. package/dist/button-DhL5eRT3.js +0 -123
  108. package/dist/checkbox-l8NxPf4o.js +0 -85
  109. package/dist/countries-y2ydYDhN.js +0 -8323
  110. package/dist/dateInputComposed-B9WqdYx9.js +0 -2
  111. package/dist/dateInputComposed-ndsGHX1M.js +0 -94
  112. package/dist/defineProperty-brqHEHA_.js +0 -39
  113. package/dist/documentCapture-wDgRLdon.js +0 -784
  114. package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
  115. package/dist/ekyb/ekyb.es.js +0 -2
  116. package/dist/ekybModule-BBOm1y49.js +0 -2
  117. package/dist/ekybModule-fz6i9ZRt.js +0 -286
  118. package/dist/ekyc/ekyc.es.js +0 -2
  119. package/dist/ekycModule-SeTFG3AJ.js +0 -233
  120. package/dist/ekycModule-hxIcNX8n.js +0 -2
  121. package/dist/extensibility-DJihqIzM.js +0 -2248
  122. package/dist/faceMatch-DH8sLx34.js +0 -191
  123. package/dist/flip-animation-DOJzdXB-.js +0 -6983
  124. package/dist/formField-BRTbY8w9.js +0 -100
  125. package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
  126. package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
  127. package/dist/frontdevicelottie-DadDp6be.js +0 -17302
  128. package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
  129. package/dist/i18n-DZOHbK9q.js +0 -1916
  130. package/dist/icons-BHbofCgJ.js +0 -245
  131. package/dist/id-laser-h-BWyU3VgL.js +0 -467
  132. package/dist/id-laser-v-JiWXUlv0.js +0 -467
  133. package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
  134. package/dist/incodeModule-Bf6yJ8RB.js +0 -18
  135. package/dist/inputComposed-BhbfD8Ru.js +0 -77
  136. package/dist/loadingIcon-CeQt7Zgb.js +0 -146
  137. package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
  138. package/dist/numberedStep-CQVRixRP.js +0 -11
  139. package/dist/otpInput-CDIG9el7.js +0 -143
  140. package/dist/page-SvlJWUfz.js +0 -61
  141. package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
  142. package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
  143. package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
  144. package/dist/phoneInput-C9T_8FJt.js +0 -138
  145. package/dist/phoneInputComposed-B-0zieIW.js +0 -407
  146. package/dist/processing-B5zhNH6I.js +0 -15
  147. package/dist/richText-Db0PfpkE.js +0 -1973
  148. package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
  149. package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
  150. package/dist/setup-Dq2bzNKH.js +0 -15
  151. package/dist/spacer-DCljE53A.js +0 -59
  152. package/dist/spinner-Bk0YuoLu.js +0 -1
  153. package/dist/spinner-snIGzmm8.js +0 -41
  154. package/dist/successIcon-AHrfmJvv.js +0 -17
  155. package/dist/tutorial-DNOd11tg.js +0 -2780
  156. package/dist/types/ekyb.d.ts +0 -29
  157. package/dist/types/ekyc.d.ts +0 -29
  158. package/dist/typography-BNbFNFek.js +0 -1
  159. package/dist/typography-DvHeVWfY.js +0 -29
  160. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  161. package/dist/vendor-preact-D6SntenC.js +0 -958
  162. package/dist/warningIcon-Cvj-ayg1.js +0 -17
@@ -1,18 +0,0 @@
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 };
@@ -1,77 +0,0 @@
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 };
@@ -1,146 +0,0 @@
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 };
@@ -1,101 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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 };
@@ -1,143 +0,0 @@
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 };
@@ -1,61 +0,0 @@
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 };