@incodetech/web 2.0.0-alpha.8 → 2.0.0-rc.0

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 (182) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +5218 -639
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -145
  50. package/dist/email/styles.css +5 -116
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +910 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +646 -542
  61. package/dist/flow/styles.css +4524 -440
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -6
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -3441
  104. package/dist/phone/styles.css +3 -297
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +42 -892
  115. package/dist/selfie/styles.css +298 -184
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +846 -151
  125. package/dist/themes/light.css +798 -116
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/consent.d.ts +41 -0
  132. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  133. package/dist/types/cross-document-data-match.d.ts +34 -0
  134. package/dist/types/curp-validation.d.ts +40 -0
  135. package/dist/types/custom-fields/styles.d.ts +1 -0
  136. package/dist/types/document-capture/styles.d.ts +1 -0
  137. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  138. package/dist/types/ekyb.d.ts +34 -0
  139. package/dist/types/ekyc.d.ts +34 -0
  140. package/dist/types/electronic-signature.d.ts +43 -0
  141. package/dist/types/email.d.ts +14 -4
  142. package/dist/types/extensibility.d.ts +981 -0
  143. package/dist/types/face-match.d.ts +59 -0
  144. package/dist/types/flow.d.ts +81 -13
  145. package/dist/types/geolocation.d.ts +41 -0
  146. package/dist/types/governmentValidation.d.ts +34 -0
  147. package/dist/types/id-ocr/styles.d.ts +1 -0
  148. package/dist/types/id-verification.d.ts +40 -0
  149. package/dist/types/id.d.ts +41 -0
  150. package/dist/types/identity-reuse.d.ts +43 -0
  151. package/dist/types/index.d.ts +6 -12
  152. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  153. package/dist/types/phone.d.ts +14 -4
  154. package/dist/types/qe-signature.d.ts +40 -0
  155. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  156. package/dist/types/selfie.d.ts +14 -4
  157. package/dist/types/signature.d.ts +40 -0
  158. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  159. package/dist/types/watchlist.d.ts +40 -0
  160. package/dist/types/workflow.d.ts +91 -0
  161. package/dist/typography-CxjaknHN.js +28 -0
  162. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  163. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  164. package/dist/vendor-preact-D6SntenC.js +958 -0
  165. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  166. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  167. package/dist/watchlist/watchlist.es.js +33 -0
  168. package/dist/watchlist-for-business/styles.css +18 -0
  169. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  170. package/dist/workflow/styles.css +4612 -0
  171. package/dist/workflow/workflow.es.js +244 -0
  172. package/package.json +211 -15
  173. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  174. package/dist/incodeModule-Dv8Qllrv.js +0 -254
  175. package/dist/instance-B-q0ZREN.js +0 -2140
  176. package/dist/otpInput-BtoZe0Wz.js +0 -151
  177. package/dist/page-D9ijzlSn.js +0 -234
  178. package/dist/selfieTutorial-C-u5GufD.js +0 -29
  179. package/dist/setup-wNL83jmW.js +0 -20
  180. package/dist/title-BfO5Dlzk.js +0 -25
  181. package/dist/uiConfig-CQ1W9cUD.js +0 -23
  182. package/dist/vendor-preact-CK0WeTOR.js +0 -584
@@ -0,0 +1,98 @@
1
+ import { n as e } from "../i18n-9s4OSqwi.js";
2
+ import { v as t } from "../vendor-preact-D6SntenC.js";
3
+ import { o as n } from "../hooks-BVnGysT7.js";
4
+ import { t as r } from "../incodeComponent-C1o4M0ZK.js";
5
+ import { r as i } from "../loadingIcon-BN5YRQUb.js";
6
+ import { t as a } from "../page-C1yT4DLb.js";
7
+ import { t as o } from "../spinner-CKnjVHxw.js";
8
+ import { g as s, h as c } from "../icons-Cc7zwchP.js";
9
+ import { t as l } from "../successIcon-DbILeIz_.js";
10
+ import { t as u } from "../otpInput-DqRA_egd.js";
11
+ import { t as d } from "../incodeModule-BqCjVgEI.js";
12
+ import { t as f } from "../autoFocusTitle-QexamZ4i.js";
13
+ import { createGovernmentValidationManager as p } from "@incodetech/core/government-validation";
14
+ //#region src/modules/governmentValidation/governmentValidation.tsx
15
+ var m = ({ variant: e, icon: n, title: r, subtitle: i }) => /* @__PURE__ */ t("div", {
16
+ class: `IncodeGovtValidation IncodeGovtValidation--${e}`,
17
+ children: /* @__PURE__ */ t(a, {
18
+ className: "IncodeGovtValidationPage",
19
+ children: /* @__PURE__ */ t("div", {
20
+ class: "IncodeGovtValidationStatus",
21
+ children: [
22
+ /* @__PURE__ */ t(n, { size: 64 }),
23
+ /* @__PURE__ */ t(f, { children: r }),
24
+ i ? /* @__PURE__ */ t("p", {
25
+ class: "IncodeGovtValidationText",
26
+ children: i
27
+ }) : null
28
+ ]
29
+ })
30
+ })
31
+ }), h = ({ title: e, subtitle: n }) => /* @__PURE__ */ t("div", {
32
+ class: "IncodeGovtValidation IncodeGovtValidation--loading",
33
+ children: /* @__PURE__ */ t(a, {
34
+ className: "IncodeGovtValidationPage",
35
+ children: /* @__PURE__ */ t(o, {
36
+ title: e,
37
+ subtitle: n,
38
+ fullScreen: !1
39
+ })
40
+ })
41
+ }), g = ({ config: r, onFinish: o }) => {
42
+ let { t: d } = e(), [g, _] = n(() => {
43
+ if (!r) throw Error("GovernmentValidation config is required");
44
+ return p({ config: r });
45
+ });
46
+ if (r.backgroundExecution && g.status === "finished") return o?.(), null;
47
+ if (g.status === "idle" || g.status === "loading") return /* @__PURE__ */ t(h, { title: `${d("ineCheck.verifying")} ${d("ineCheck.identity")}` });
48
+ if (g.status === "finished") return /* @__PURE__ */ t(m, {
49
+ variant: "success",
50
+ icon: l,
51
+ title: d("ineCheck.verified")
52
+ });
53
+ if (g.status === "processing") return /* @__PURE__ */ t(m, {
54
+ variant: "success",
55
+ icon: l,
56
+ title: d("ineCheck.processing")
57
+ });
58
+ if (g.status === "awaitingOtp" || g.status === "verifyingOtp") {
59
+ let e = g.status === "verifyingOtp", n = g.status === "awaitingOtp" ? g.otpError : void 0;
60
+ return /* @__PURE__ */ t("div", {
61
+ class: "IncodeGovtValidation IncodeGovtValidation--otp",
62
+ children: /* @__PURE__ */ t(a, {
63
+ className: "IncodeGovtValidationPage",
64
+ children: [
65
+ /* @__PURE__ */ t(i, { size: 16 }),
66
+ /* @__PURE__ */ t("div", {
67
+ class: "IncodeGovtValidationOtpInstructions",
68
+ children: [/* @__PURE__ */ t(f, { children: d("otp.insertSMS") }), /* @__PURE__ */ t("p", { children: d("otp.focus") })]
69
+ }),
70
+ /* @__PURE__ */ t(u, {
71
+ resendTimer: g.status === "awaitingOtp" ? g.resendTimer : 0,
72
+ canResend: g.status === "awaitingOtp" ? g.canResend : !1,
73
+ error: n,
74
+ onSubmit: (e) => _.submitOtp(e),
75
+ onResend: () => _.resendOtp(),
76
+ onBack: () => {},
77
+ isLoading: e
78
+ })
79
+ ]
80
+ })
81
+ });
82
+ }
83
+ return g.status === "error" ? /* @__PURE__ */ t(m, {
84
+ variant: "error",
85
+ icon: s,
86
+ title: `${d("ineCheck.failure1")} ${d("ineCheck.failure2")}`
87
+ }) : g.status === "unknown" ? /* @__PURE__ */ t(m, {
88
+ variant: "unknown",
89
+ icon: c,
90
+ title: d("ineCheck.unknown")
91
+ }) : null;
92
+ }, _ = ({ config: e, onFinish: n }) => /* @__PURE__ */ t(r, { children: e ? /* @__PURE__ */ t(g, {
93
+ config: e,
94
+ onFinish: n
95
+ }) : null });
96
+ d(_, "incode-government-validation");
97
+ //#endregion
98
+ export { _ as GovernmentValidation };
@@ -0,0 +1,58 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ .IncodeGovtValidation {
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ width: 100%;
7
+ height: 100%;
8
+ display: flex;
9
+ }
10
+
11
+ .IncodeGovtValidation .IncodeGovtValidationPage {
12
+ width: 100%;
13
+ height: 100%;
14
+ }
15
+
16
+ .IncodeGovtValidation .IncodeGovtValidationPage .IncodePageContent {
17
+ flex-direction: column;
18
+ flex: 1;
19
+ justify-content: center;
20
+ align-items: center;
21
+ display: flex;
22
+ }
23
+
24
+ .IncodeGovtValidation .IncodeGovtValidationStatus {
25
+ text-align: center;
26
+ flex-direction: column;
27
+ justify-content: center;
28
+ align-items: center;
29
+ display: flex;
30
+ }
31
+
32
+ .IncodeGovtValidation .IncodeGovtValidationText {
33
+ margin-top: var(--spacing-12, var(--spacing-12, 12px));
34
+ font-family: var(--typography-headline-family);
35
+ font-size: var(--typography-headline-h2-size);
36
+ font-weight: var(--typography-headline-h2-weight);
37
+ line-height: var(--typography-headline-h2-line-height);
38
+ letter-spacing: var(--typography-headline-h2-letter-spacing);
39
+ }
40
+
41
+ .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodePageContent {
42
+ flex-direction: column;
43
+ align-items: center;
44
+ display: flex;
45
+ }
46
+
47
+ .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions {
48
+ margin-bottom: var(--spacing-12, var(--spacing-12, 12px));
49
+ }
50
+
51
+ .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions p, .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions h2 {
52
+ font-family: var(--typography-input-dropdown-family);
53
+ font-size: var(--typography-input-dropdown-m-size);
54
+ font-weight: var(--typography-input-dropdown-m-weight);
55
+ line-height: var(--typography-input-dropdown-m-line-height);
56
+ letter-spacing: var(--typography-input-dropdown-m-letter-spacing);
57
+ text-wrap: nowrap;
58
+ }
@@ -0,0 +1,227 @@
1
+ import { a as e, n as t, o as n } from "./i18n-9s4OSqwi.js";
2
+ import { _ as r, d as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
3
+ import { n as c } from "./uiConfig-CwpQ-IM6.js";
4
+ import { r as l } from "./loadingIcon-BN5YRQUb.js";
5
+ import "./incode-logo-DX016usY.js";
6
+ import { t as u } from "./button-DcCUEn2n.js";
7
+ import { t as d } from "./modal-NMxsQHAO.js";
8
+ import { t as f } from "./dropdownComposed-DFRBG22E.js";
9
+ import "./dropdownComposed-DwTzc2YU.js";
10
+ //#region src/shared/homeScreen/language.ts
11
+ function p(e, t) {
12
+ let [n, ...r] = Array.from(e);
13
+ return n ? `${n.toLocaleUpperCase(t)}${r.join("")}` : e;
14
+ }
15
+ function m(t) {
16
+ let [, n] = t.split("-");
17
+ if (n && /^[A-Z]{2}$/.test(n)) return n;
18
+ let r = e(t), i = Array.from(r).map((e) => e.codePointAt(0));
19
+ if (i.length !== 2) return null;
20
+ let a = i.map((e) => !e || e < 127462 || e > 127487 ? null : String.fromCharCode(e - 127462 + 65));
21
+ return a.some((e) => e === null) ? null : a.join("");
22
+ }
23
+ function h(e, t) {
24
+ return typeof Intl < "u" && Intl.DisplayNames !== void 0 ? p(new Intl.DisplayNames([t, "en"], { type: "language" }).of(e) ?? e, t) : p(e, t);
25
+ }
26
+ function g(e, t) {
27
+ let n = e.split("-")[0] || e, r = m(e);
28
+ return `${h(n, t)}${r ? ` (${r})` : ""}`;
29
+ }
30
+ function _(t, n) {
31
+ let r = e(t), [i, a] = t.split("-"), o = i || t, s = p(new Intl.DisplayNames([n, "en"], { type: "language" }).of(o) ?? o, n);
32
+ if (a && !/^[A-Z]{2}$/.test(a)) return `${r} ${p(new Intl.DisplayNames([n, "en"], { type: "language" }).of(t) ?? t, n)}`;
33
+ if (a) return `${r} ${s} (${new Intl.DisplayNames([n, "en"], { type: "region" }).of(a) ?? a})`;
34
+ let c = m(t);
35
+ return c ? `${r} ${s} (${c})` : `${r} ${s}`;
36
+ }
37
+ function v(e, t) {
38
+ let [n, r] = e.split("-"), i = n || e, a = p(new Intl.DisplayNames([t, "en"], { type: "language" }).of(i) ?? i, t);
39
+ if (r && !/^[A-Z]{2}$/.test(r)) return p(new Intl.DisplayNames([t, "en"], { type: "language" }).of(e) ?? e, t);
40
+ if (r) return `${a} (${new Intl.DisplayNames([t, "en"], { type: "region" }).of(r) ?? r})`;
41
+ let o = m(e);
42
+ return o ? `${a} (${o})` : a;
43
+ }
44
+ function y(e) {
45
+ let t = [...new Set(n)].map((t) => ({
46
+ value: t,
47
+ label: _(t, e),
48
+ ariaLabel: v(t, e)
49
+ }));
50
+ return t.sort((e, t) => e.label.localeCompare(t.label)), t;
51
+ }
52
+ async function b(e, t) {
53
+ await e(t), typeof document < "u" && (document.documentElement.lang = t);
54
+ }
55
+ function x() {
56
+ let { i18n: n } = t(), r = n.language || "en", a = i(() => y(r), [r]);
57
+ return {
58
+ selectedLanguage: r,
59
+ selectedMainLanguageLabel: g(r, r),
60
+ selectedMainLanguageEmoji: e(r),
61
+ languageOptions: a,
62
+ changeLanguage: (e) => b(n.changeLanguage.bind(n), e)
63
+ };
64
+ }
65
+ //#endregion
66
+ //#region src/shared/homeScreen/settings.tsx
67
+ function S({ onClose: e }) {
68
+ let { t: n } = t(), { selectedLanguage: i, languageOptions: o, changeLanguage: c } = x(), p = a(null);
69
+ return r(() => {
70
+ p.current?.focus();
71
+ }, []), /* @__PURE__ */ s("section", {
72
+ class: "IncodeHomeSettingsContainer",
73
+ children: [
74
+ /* @__PURE__ */ s("div", {
75
+ class: "IncodeHomeSettingsBody",
76
+ children: [
77
+ /* @__PURE__ */ s("h1", {
78
+ ref: p,
79
+ id: "incode-modal-title",
80
+ class: "IncodeHomeSettingsTitle",
81
+ tabIndex: -1,
82
+ children: n("settings.settings")
83
+ }),
84
+ /* @__PURE__ */ s(l, { size: 32 }),
85
+ /* @__PURE__ */ s("div", {
86
+ class: "IncodeHomeSettingsBodyContent",
87
+ children: /* @__PURE__ */ s(f, {
88
+ id: "home-language",
89
+ label: n("v2.settings.language"),
90
+ value: i,
91
+ options: o,
92
+ onChange: async (e) => {
93
+ await c(e);
94
+ },
95
+ searchable: !0,
96
+ "data-testid": "home-language-select"
97
+ })
98
+ })
99
+ ]
100
+ }),
101
+ /* @__PURE__ */ s("div", {
102
+ class: "IncodeHomeSettingsFooter",
103
+ children: /* @__PURE__ */ s(u, {
104
+ onClick: e,
105
+ "data-testid": "home-settings-done-button",
106
+ children: n("settings.done")
107
+ })
108
+ }),
109
+ /* @__PURE__ */ s(d.Close, {
110
+ "aria-label": n("settings.close"),
111
+ "data-testid": "home-settings-close-button",
112
+ onClick: e
113
+ })
114
+ ]
115
+ });
116
+ }
117
+ //#endregion
118
+ //#region src/shared/homeScreen/settingsIcon.tsx
119
+ function C() {
120
+ return /* @__PURE__ */ s("svg", {
121
+ width: "30",
122
+ height: "30",
123
+ viewBox: "0 0 30 30",
124
+ fill: "none",
125
+ xmlns: "http://www.w3.org/2000/svg",
126
+ "aria-hidden": "true",
127
+ children: [
128
+ /* @__PURE__ */ s("path", {
129
+ fillRule: "evenodd",
130
+ clipRule: "evenodd",
131
+ d: "M4.5 15.3187C4.5 14.1593 5.44055 13.2188 6.6 13.2188C7.75945 13.2188 8.7 14.1593 8.7 15.3187C8.7 16.4782 7.75945 17.4187 6.6 17.4187C5.44055 17.4187 4.5 16.4782 4.5 15.3187Z",
132
+ fill: "currentColor"
133
+ }),
134
+ /* @__PURE__ */ s("path", {
135
+ fillRule: "evenodd",
136
+ clipRule: "evenodd",
137
+ d: "M12.9004 15.3187C12.9004 14.1593 13.841 13.2188 15.0004 13.2188C16.1598 13.2188 17.1004 14.1593 17.1004 15.3187C17.1004 16.4782 16.1598 17.4187 15.0004 17.4187C13.841 17.4187 12.9004 16.4782 12.9004 15.3187Z",
138
+ fill: "currentColor"
139
+ }),
140
+ /* @__PURE__ */ s("path", {
141
+ fillRule: "evenodd",
142
+ clipRule: "evenodd",
143
+ d: "M21.2998 15.3187C21.2998 14.1593 22.2404 13.2188 23.3998 13.2188C24.5592 13.2188 25.4998 14.1593 25.4998 15.3187C25.4998 16.4782 24.5592 17.4187 23.3998 17.4187C22.2404 17.4187 21.2998 16.4782 21.2998 15.3187Z",
144
+ fill: "currentColor"
145
+ })
146
+ ]
147
+ });
148
+ }
149
+ //#endregion
150
+ //#region src/shared/homeScreen/homeScreen.tsx
151
+ function w({ onContinue: e, isContinueLoading: n }) {
152
+ let { t: i } = t(), { logoSrc: f, subtitle: p } = c(), { selectedMainLanguageLabel: m, selectedMainLanguageEmoji: h } = x(), g = a(null), _ = a(null), v = f || "data:image/svg+xml,%3csvg%20width='76'%20height='20'%20viewBox='0%200%2076%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1687%206.01811C42.2312%206.01811%2043.7927%206.59655%2044.8446%207.76024C45.8919%208.91831%2046.4126%2010.5865%2046.4126%2012.7583C46.4126%2014.93%2045.8748%2016.6105%2044.794%2017.7944C43.7102%2018.9815%2042.1729%2019.5735%2040.1937%2019.5735C38.1479%2019.5735%2036.5973%2018.99%2035.5546%2017.8187L35.4273%2017.6701C34.4729%2016.5101%2033.9984%2014.871%2033.9984%2012.7583C33.9984%208.28671%2036.0703%206.01811%2040.1687%206.01811ZM69.1127%206.01781C71.1144%206.01781%2072.5953%206.66904%2073.5373%207.97333C74.4288%209.2077%2074.8837%2010.9053%2074.9066%2013.0629L74.9058%2013.5242H66.1149C66.2174%2014.6334%2066.5602%2015.4734%2067.141%2016.0538C67.7488%2016.662%2068.6195%2016.9679%2069.7639%2016.9679C70.5188%2016.9679%2071.2373%2016.8742%2071.921%2016.6862C72.6048%2016.4995%2073.2105%2016.2581%2073.735%2015.9646L73.9814%2015.8267V18.666L73.8821%2018.7093C72.5607%2019.286%2071.0464%2019.5732%2069.3379%2019.5732C67.4088%2019.5732%2065.8853%2018.986%2064.7769%2017.8093C63.6699%2016.6348%2063.1183%2014.9722%2063.1183%2012.833C63.1183%2010.6451%2063.6389%208.96055%2064.6862%207.78517C65.7359%206.60632%2067.2157%206.01781%2069.1127%206.01781ZM60.3976%201.06738V16.3832C60.3976%2017.0998%2060.0996%2017.7092%2059.5124%2018.198C58.9425%2018.6724%2058.2282%2019.0207%2057.3718%2019.2435C56.5257%2019.4635%2055.6531%2019.5731%2054.7534%2019.5731C52.9298%2019.5731%2051.4237%2019.056%2050.2406%2018.0202C49.0485%2016.9752%2048.4588%2015.1678%2048.4588%2012.6072C48.4588%2010.5545%2048.9627%208.9421%2049.9753%207.77411C50.9938%206.60175%2052.4982%206.01774%2054.4782%206.01774C54.9416%206.01774%2055.4735%206.07665%2056.0742%206.19449C56.582%206.296%2057.0453%206.43849%2057.4648%206.62252V1.06738H60.3976ZM27.911%206.04223C29.2828%206.04223%2030.5881%206.29619%2031.8264%206.80393L31.9291%206.84604V9.55797L31.6992%209.46109C30.4503%208.93473%2029.3127%208.67257%2028.2863%208.67257C27.0102%208.67257%2026.0684%208.98809%2025.4521%209.61162C24.8366%2010.2352%2024.5242%2011.2397%2024.5242%2012.6331C24.5242%2014.0959%2024.8298%2015.1535%2025.4314%2015.8092C26.029%2016.4619%2027.002%2016.7923%2028.3613%2016.7923C29.4706%2016.7923%2030.589%2016.5234%2031.7164%2015.9842L31.9534%2015.8708V18.5903L31.8552%2018.634C30.6349%2019.1773%2029.3283%2019.4483%2027.936%2019.4483C26.2154%2019.4483%2024.7637%2018.9753%2023.5868%2018.0285L23.4123%2017.8829L23.2796%2017.7636C22.1516%2016.7067%2021.5914%2015.0592%2021.5914%2012.8332C21.5914%2010.4557%2022.186%208.72379%2023.3849%207.64725C24.5757%206.57726%2026.0871%206.04223%2027.911%206.04223ZM4.11045%206.39262L4.13613%2019.1987H1.15293V6.39262H4.11045ZM13.5766%206.0423C15.365%206.0423%2016.6948%206.41948%2017.5636%207.18368C18.4372%207.95269%2018.8706%209.13902%2018.8706%2010.7331V19.1984H15.9127V11.0838C15.9127%209.42945%2014.9988%208.62337%2013.1013%208.62337C12.3086%208.62337%2011.5458%208.73548%2010.8133%208.95959L10.5401%209.04888V19.1984H7.58147V7.40579L7.67177%207.35974C8.43481%206.97061%209.36013%206.65415%2010.4506%206.40815L10.8116%206.33134C11.7692%206.13867%2012.6905%206.0423%2013.5766%206.0423ZM40.1687%208.5477C39.0014%208.5477%2038.1814%208.89722%2037.6896%209.59114C37.1869%2010.3012%2036.932%2011.3564%2036.932%2012.7583C36.932%2014.1602%2037.1948%2015.223%2037.7142%2015.9499C38.2224%2016.6613%2039.0345%2017.0182%2040.1687%2017.0182C42.3685%2017.0182%2043.4555%2015.6249%2043.4555%2012.7583C43.4555%2011.325%2043.1888%2010.2632%2042.6636%209.57056C42.1472%208.89036%2041.3203%208.5477%2040.1687%208.5477ZM54.8535%208.59807C52.5835%208.59807%2051.4659%209.9271%2051.4659%2012.6579C51.4659%2014.0276%2051.7253%2015.0917%2052.2391%2015.8527C52.7378%2016.5945%2053.6185%2016.9678%2054.9035%2016.9678C55.6556%2016.9678%2056.2834%2016.8792%2056.7876%2016.7028C57.2156%2016.553%2057.4279%2016.378%2057.4604%2016.186L57.4648%2016.1332V9.25404L57.2778%209.15611C56.9611%208.99923%2056.6189%208.87406%2056.2512%208.78123C55.7705%208.65917%2055.3045%208.59807%2054.8535%208.59807ZM69.0377%208.49888C68.192%208.49888%2067.5412%208.71795%2067.0743%209.15366C66.6631%209.5374%2066.3731%2010.1684%2066.2101%2011.0498L66.1771%2011.2425H71.8784L71.8489%2011.0453C71.7111%2010.208%2071.4421%209.58986%2071.0461%209.18626C70.5969%208.72981%2069.9303%208.49888%2069.0377%208.49888ZM4.21085%201.94156V4.64764H1.07715V1.94156H4.21085Z'%20fill='%23006AFF'/%3e%3c/svg%3e", [y, b] = o(!1);
153
+ return r(() => {
154
+ g.current?.focus();
155
+ }, [p]), /* @__PURE__ */ s("main", {
156
+ class: "IncodeHome",
157
+ children: [/* @__PURE__ */ s("div", {
158
+ class: "IncodeHomeContent",
159
+ children: [
160
+ /* @__PURE__ */ s("header", {
161
+ class: "IncodeHomeHeader",
162
+ children: [/* @__PURE__ */ s("div", {
163
+ class: "IncodeHomeLanguage",
164
+ children: [
165
+ /* @__PURE__ */ s("p", {
166
+ class: "IncodeHomeLanguageLabel",
167
+ children: i("home.language")
168
+ }),
169
+ /* @__PURE__ */ s(l, { size: 8 }),
170
+ /* @__PURE__ */ s("p", {
171
+ class: "IncodeHomeLanguageValue",
172
+ children: [/* @__PURE__ */ s("span", {
173
+ "aria-hidden": "true",
174
+ children: [h, " "]
175
+ }), m]
176
+ })
177
+ ]
178
+ }), /* @__PURE__ */ s("button", {
179
+ type: "button",
180
+ class: "IncodeHomeSettingsButton",
181
+ onClick: () => b(!0),
182
+ "aria-label": i("home.goToSettings"),
183
+ "data-testid": "home-settings-button",
184
+ children: /* @__PURE__ */ s(C, {})
185
+ })]
186
+ }),
187
+ /* @__PURE__ */ s("div", {
188
+ class: "IncodeHomeCenterSection",
189
+ children: [/* @__PURE__ */ s("div", {
190
+ class: "IncodeHomeLogoContainer",
191
+ children: /* @__PURE__ */ s("img", {
192
+ src: v,
193
+ alt: i("home.logo"),
194
+ class: "IncodeHomeLogo",
195
+ "data-testid": "home-logo",
196
+ "aria-hidden": "true"
197
+ })
198
+ }), p ? /* @__PURE__ */ s("h2", {
199
+ ref: g,
200
+ class: "IncodeHomeSubtitle",
201
+ tabIndex: -1,
202
+ children: p
203
+ }) : null]
204
+ }),
205
+ /* @__PURE__ */ s(u, {
206
+ ref: _,
207
+ onClick: () => {
208
+ e();
209
+ },
210
+ isLoading: n,
211
+ class: "IncodeHomeStartButton",
212
+ "data-testid": "home-start-button",
213
+ children: i("home.start")
214
+ })
215
+ ]
216
+ }), /* @__PURE__ */ s(d.Root, {
217
+ open: y,
218
+ onOpenChange: (e) => b(e),
219
+ returnFocusRef: _,
220
+ manageInitialFocus: !1,
221
+ class: "IncodeHomeSettingsModal",
222
+ children: /* @__PURE__ */ s(d.Content, { children: /* @__PURE__ */ s(S, { onClose: () => b(!1) }) })
223
+ })]
224
+ });
225
+ }
226
+ //#endregion
227
+ export { w as HomeScreen };
@@ -0,0 +1,80 @@
1
+ import { _ as e, p as t, s as n } from "./vendor-preact-D6SntenC.js";
2
+ import { ScreenOrientationProvider as r, createScreenOrientationObserver as i, getDeviceClass as a } from "@incodetech/core/device";
3
+ import "@incodetech/core/events";
4
+ //#region src/hooks/useManager.ts
5
+ function o(n, r = {}) {
6
+ let { autoLoad: i = !0, manageLifecycle: a = !0 } = r, [o] = t(n), [s, c] = t(() => o.getState());
7
+ return e(() => {
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 s = null;
21
+ function c() {
22
+ return s ||= i(new r(), a()), s;
23
+ }
24
+ function l() {
25
+ let [r, i] = t(!1);
26
+ return e(() => {
27
+ let e = c();
28
+ return i(e.isLandscapeMobile), e.subscribe((e) => {
29
+ n(() => i(e));
30
+ });
31
+ }, []), { isLandscapeMobile: r };
32
+ }
33
+ //#endregion
34
+ //#region src/hooks/useFormScrollable.ts
35
+ function u(n, r) {
36
+ let [i, a] = t(!1);
37
+ return e(() => {
38
+ let e = n.current;
39
+ if (!e) return;
40
+ let t = () => a(e.scrollHeight > e.clientHeight);
41
+ t();
42
+ let r = new ResizeObserver(t);
43
+ return r.observe(e), () => r.disconnect();
44
+ }, [r, n]), i;
45
+ }
46
+ //#endregion
47
+ //#region src/hooks/useMediaQuery.ts
48
+ var d = "(max-width: 767px)";
49
+ function f(n) {
50
+ let [r, i] = t(() => typeof window < "u" && window.matchMedia(n).matches);
51
+ return e(() => {
52
+ if (typeof window > "u") return;
53
+ let e = window.matchMedia(n), t = () => i(e.matches);
54
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
55
+ }, [n]), r;
56
+ }
57
+ function p() {
58
+ return f(d);
59
+ }
60
+ //#endregion
61
+ //#region src/hooks/useEventListener.ts
62
+ function m(t, n) {
63
+ e(() => (window.addEventListener(t, n), () => window.removeEventListener(t, n)), [t, n]);
64
+ }
65
+ //#endregion
66
+ //#region src/hooks/useResizeObserver.ts
67
+ function h(t, n) {
68
+ e(() => {
69
+ let e = t.current;
70
+ if (!e || typeof ResizeObserver > "u") {
71
+ n();
72
+ return;
73
+ }
74
+ n();
75
+ let r = new ResizeObserver(n);
76
+ return r.observe(e), () => r.disconnect();
77
+ }, [t, n]);
78
+ }
79
+ //#endregion
80
+ export { l as a, u as i, m as n, o, p as r, h as t };