@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.
- package/dist/AsYouType-D1H_js4X.js +2607 -0
- package/dist/Trans-aTzdT_SA.js +55 -0
- package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
- package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
- package/dist/antifraud/antifraud.es.js +18 -17
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +50 -28
- package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
- package/dist/back-tutorial-An9AcMSe.js +29 -0
- package/dist/back-vertical-hint-CNieqiCr.js +5 -0
- package/dist/backdevicelottie-B4NgyWmX.js +29 -0
- package/dist/base.css +67 -327
- package/dist/blurdevicelottie-_BZRug1c.js +29 -0
- package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/cameraView-C2X7klNb.js +55 -0
- package/dist/captureOverlay-tCb4R4WE.js +592 -0
- package/dist/checkbox-B5X-mfqq.js +137 -0
- package/dist/chevronDown-DSHaPKbi.js +23 -0
- package/dist/closeIcon-9Hc97omv.js +28 -0
- package/dist/consent/consent.es.js +89 -82
- package/dist/consent/styles.css +1 -1
- package/dist/countries-DfLkrF0x.js +616 -0
- package/dist/curp-validation/curp-validation.es.js +313 -271
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-C7PCzh-U.js +173 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-C0mO-RGE.js +692 -0
- package/dist/dropdownComposed-BpinYlrx.js +367 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-Dr6LJUg-.js +357 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-C3mswduI.js +291 -0
- package/dist/email/email.es.js +154 -110
- package/dist/email/styles.css +1 -1
- package/dist/errorContent-Cb8nmQAE.js +44 -0
- package/dist/errorIcon-DEARBrGx.js +26 -0
- package/dist/extensibility.es.js +150 -22
- package/dist/face-match/styles.css +73 -147
- package/dist/faceMatch-DbDp7D3d.js +237 -0
- package/dist/fileIcon-CCSvS10T.js +52 -0
- package/dist/flip-animation-COR596wy.js +29 -0
- package/dist/flipAnimation-BqV462TA.js +2059 -0
- package/dist/flow/flow.es.js +2613 -2273
- package/dist/flow/styles.css +73 -432
- package/dist/formField-CP6wDdfA.js +106 -0
- package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
- package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
- package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
- package/dist/geolocation/geolocation.es.js +832 -852
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-DLuIStvb.js +29 -0
- package/dist/governmentValidation/governmentValidation.es.js +106 -100
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/id/id.es.js +59 -53
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BBV3r3rz.js +29 -0
- package/dist/id-laser-v-BTHJaSfx.js +29 -0
- package/dist/id-tutorial-B-F5Q28m.js +29 -0
- package/dist/incodeModule-C4XIllao.js +96 -0
- package/dist/index.es.js +25 -4
- package/dist/inputComposed-fUbAGrDy.js +103 -0
- package/dist/instance-BWYzq8dk.js +2163 -0
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
- package/dist/numberedStep-DwUB__mh.js +5 -0
- package/dist/otpInput-BFXhqFRT.js +156 -0
- package/dist/page-SrUl0qtN.js +69 -0
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
- package/dist/passport-tutorial-CaYBFTqt.js +29 -0
- package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
- package/dist/permissions-DT4Fz9MR.js +709 -0
- package/dist/phone/phone.es.js +121 -87
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-CGr8TxOO.js +158 -0
- package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
- package/dist/processing-szVOCQwZ.js +19 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-cspvNz2a.js +1807 -0
- package/dist/selfie/selfie.es.js +50 -29
- package/dist/selfie/styles.css +66 -170
- package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
- package/dist/signature/signature.es.js +707 -557
- package/dist/signature/styles.css +1 -1
- package/dist/spinner-DygONskw.js +60 -0
- package/dist/successIcon-Bjsdc4lF.js +26 -0
- package/dist/tutorial-Cdz1025D.js +473 -0
- package/dist/types/ekyb/styles.d.ts +1 -0
- package/dist/types/ekyc/styles.d.ts +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/typography-BDACYR5i.js +14 -0
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/useMediaQuery-lJdQBmC2.js +18 -0
- package/dist/vendor-preact-BoMmvSgn.js +694 -0
- package/dist/warningIcon-DQq_MrOB.js +26 -0
- package/package.json +11 -8
- package/dist/AsYouType-DPWqJvFu.js +0 -2482
- package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
- package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
- package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
- package/dist/back-tutorial-BNTyW-1N.js +0 -14584
- package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
- package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
- package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
- package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
- package/dist/button-DhL5eRT3.js +0 -123
- package/dist/checkbox-l8NxPf4o.js +0 -85
- package/dist/countries-y2ydYDhN.js +0 -8323
- package/dist/dateInputComposed-B9WqdYx9.js +0 -2
- package/dist/dateInputComposed-ndsGHX1M.js +0 -94
- package/dist/defineProperty-brqHEHA_.js +0 -39
- package/dist/documentCapture-wDgRLdon.js +0 -784
- package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekybModule-BBOm1y49.js +0 -2
- package/dist/ekybModule-fz6i9ZRt.js +0 -286
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekycModule-SeTFG3AJ.js +0 -233
- package/dist/ekycModule-hxIcNX8n.js +0 -2
- package/dist/extensibility-DJihqIzM.js +0 -2248
- package/dist/faceMatch-DH8sLx34.js +0 -191
- package/dist/flip-animation-DOJzdXB-.js +0 -6983
- package/dist/formField-BRTbY8w9.js +0 -100
- package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
- package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
- package/dist/frontdevicelottie-DadDp6be.js +0 -17302
- package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
- package/dist/i18n-DZOHbK9q.js +0 -1916
- package/dist/icons-BHbofCgJ.js +0 -245
- package/dist/id-laser-h-BWyU3VgL.js +0 -467
- package/dist/id-laser-v-JiWXUlv0.js +0 -467
- package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
- package/dist/incodeModule-Bf6yJ8RB.js +0 -18
- package/dist/inputComposed-BhbfD8Ru.js +0 -77
- package/dist/loadingIcon-CeQt7Zgb.js +0 -146
- package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
- package/dist/numberedStep-CQVRixRP.js +0 -11
- package/dist/otpInput-CDIG9el7.js +0 -143
- package/dist/page-SvlJWUfz.js +0 -61
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
- package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
- package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
- package/dist/phoneInput-C9T_8FJt.js +0 -138
- package/dist/phoneInputComposed-B-0zieIW.js +0 -407
- package/dist/processing-B5zhNH6I.js +0 -15
- package/dist/richText-Db0PfpkE.js +0 -1973
- package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
- package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
- package/dist/setup-Dq2bzNKH.js +0 -15
- package/dist/spacer-DCljE53A.js +0 -59
- package/dist/spinner-Bk0YuoLu.js +0 -1
- package/dist/spinner-snIGzmm8.js +0 -41
- package/dist/successIcon-AHrfmJvv.js +0 -17
- package/dist/tutorial-DNOd11tg.js +0 -2780
- package/dist/types/ekyb.d.ts +0 -29
- package/dist/types/ekyc.d.ts +0 -29
- package/dist/typography-BNbFNFek.js +0 -1
- package/dist/typography-DvHeVWfY.js +0 -29
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/warningIcon-Cvj-ayg1.js +0 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties {
|
|
3
3
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
4
|
*, :before, :after, ::backdrop {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { c as p, u as n, d as S, S as a } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { A as m, y as u, k as s } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { T as I } from "./typography-BDACYR5i.js";
|
|
4
|
+
const f = {
|
|
5
|
+
small: 24,
|
|
6
|
+
medium: 48,
|
|
7
|
+
large: 64
|
|
8
|
+
}, T = ({
|
|
9
|
+
title: e,
|
|
10
|
+
subtitle: r,
|
|
11
|
+
size: i = "medium",
|
|
12
|
+
fullScreen: d = !0,
|
|
13
|
+
className: o
|
|
14
|
+
}) => {
|
|
15
|
+
const l = f[i], c = m(null);
|
|
16
|
+
u(() => {
|
|
17
|
+
e && c.current?.focus();
|
|
18
|
+
}, [e]);
|
|
19
|
+
const t = p(
|
|
20
|
+
"IncodeSpinner",
|
|
21
|
+
d && "IncodeSpinnerFullScreen",
|
|
22
|
+
o
|
|
23
|
+
);
|
|
24
|
+
return /* @__PURE__ */ n(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
class: t,
|
|
28
|
+
"data-testid": "spinner",
|
|
29
|
+
"data-title": e,
|
|
30
|
+
"data-subtitle": r,
|
|
31
|
+
"data-size": i,
|
|
32
|
+
role: "status",
|
|
33
|
+
"aria-live": "polite",
|
|
34
|
+
children: /* @__PURE__ */ n("div", { class: "IncodeSpinnerContent", children: [
|
|
35
|
+
/* @__PURE__ */ n(S, { size: l }),
|
|
36
|
+
(e || r) && /* @__PURE__ */ n(s, { children: [
|
|
37
|
+
/* @__PURE__ */ n(a, { size: 16 }),
|
|
38
|
+
/* @__PURE__ */ n("div", { class: "IncodeSpinnerText", children: [
|
|
39
|
+
e && /* @__PURE__ */ n(
|
|
40
|
+
I,
|
|
41
|
+
{
|
|
42
|
+
ref: c,
|
|
43
|
+
tabIndex: -1,
|
|
44
|
+
className: "IncodeSpinnerTitle",
|
|
45
|
+
children: e
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
r && /* @__PURE__ */ n(s, { children: [
|
|
49
|
+
e && /* @__PURE__ */ n(a, { size: 12 }),
|
|
50
|
+
/* @__PURE__ */ n("p", { class: "IncodeSpinnerSubtitle", children: r })
|
|
51
|
+
] })
|
|
52
|
+
] })
|
|
53
|
+
] })
|
|
54
|
+
] })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
T as S
|
|
60
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { u as t } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
const i = ({ size: s = 64 }) => /* @__PURE__ */ t(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
width: s,
|
|
6
|
+
height: s,
|
|
7
|
+
viewBox: "0 0 16 17",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
class: "IncodeSuccessIcon",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ t("title", { children: "status" }),
|
|
14
|
+
/* @__PURE__ */ t(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M8 0.5C12.4182 0.500064 16 4.0818 16 8.5C16 12.9182 12.4181 16.4999 8 16.5C3.58181 16.5 3.68521e-05 12.9182 0 8.5C0 4.08176 3.58179 0.5 8 0.5ZM11.1748 6.11621C10.9423 5.88373 10.5747 5.86781 10.3242 6.06934L10.3203 6.07324L10.2764 6.1123L6.85742 9.53125L5.72656 8.40039C5.47758 8.1514 5.0732 8.1514 4.82422 8.40039C4.59169 8.63292 4.57673 9.00038 4.77832 9.25098L4.78125 9.25488L4.82031 9.29883L6.40625 10.8848C6.63867 11.117 7.00542 11.1319 7.25586 10.9307L7.26074 10.9277L7.30371 10.8877L11.1748 7.01758C11.4235 6.76863 11.4234 6.36521 11.1748 6.11621Z",
|
|
18
|
+
fill: "var(--icon-status-positive)"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
i as S
|
|
26
|
+
};
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { u as t, S as _, b as g, c as N, d as F } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { A as a, y as p, g as y, q as w, k as L, d as I } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import "./instance-BWYzq8dk.js";
|
|
4
|
+
import { B as V } from "./button-CE9kRlem.js";
|
|
5
|
+
import { S as P } from "./successIcon-Bjsdc4lF.js";
|
|
6
|
+
import { P as D } from "./page-SrUl0qtN.js";
|
|
7
|
+
import { T as v } from "./typography-BDACYR5i.js";
|
|
8
|
+
import { E as B } from "./errorContent-Cb8nmQAE.js";
|
|
9
|
+
import { a as M } from "./manualCaptureButton-BvFmTyJe.js";
|
|
10
|
+
import { S as U } from "./spinner-DygONskw.js";
|
|
11
|
+
import { B as H } from "./permissions-DT4Fz9MR.js";
|
|
12
|
+
const h = ({
|
|
13
|
+
icon: i,
|
|
14
|
+
title: n,
|
|
15
|
+
className: e
|
|
16
|
+
}) => {
|
|
17
|
+
const r = a(null);
|
|
18
|
+
return p(() => {
|
|
19
|
+
r.current?.focus();
|
|
20
|
+
}, []), /* @__PURE__ */ t(D, { className: `IncodeCaptureStatusPage ${e ?? ""}`, children: [
|
|
21
|
+
/* @__PURE__ */ t(_, { size: 40 }),
|
|
22
|
+
/* @__PURE__ */ t("div", { class: "IncodeCaptureStatusContainer", children: [
|
|
23
|
+
/* @__PURE__ */ t(_, { size: 120 }),
|
|
24
|
+
i,
|
|
25
|
+
/* @__PURE__ */ t(_, { size: 16 }),
|
|
26
|
+
/* @__PURE__ */ t(
|
|
27
|
+
v,
|
|
28
|
+
{
|
|
29
|
+
ref: r,
|
|
30
|
+
className: "IncodeCaptureStatusTitle",
|
|
31
|
+
tabIndex: -1,
|
|
32
|
+
children: n
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] })
|
|
36
|
+
] });
|
|
37
|
+
}, E = {
|
|
38
|
+
title: "Something went wrong",
|
|
39
|
+
description: "Please try again later"
|
|
40
|
+
}, x = {
|
|
41
|
+
MASK_ERROR: {
|
|
42
|
+
title: "notifications.mask",
|
|
43
|
+
description: "notifications.maskDescription"
|
|
44
|
+
},
|
|
45
|
+
BRIGHTNESS_ERROR: {
|
|
46
|
+
title: "notifications.brightness",
|
|
47
|
+
description: "notifications.brightnessDescription"
|
|
48
|
+
},
|
|
49
|
+
LIVENESS_ERROR: {
|
|
50
|
+
title: "notifications.spoof",
|
|
51
|
+
description: "notifications.spoofDescription"
|
|
52
|
+
},
|
|
53
|
+
CLOSED_EYES_ERROR: {
|
|
54
|
+
title: "notifications.closedEyes",
|
|
55
|
+
description: "notifications.closedEyesDescription"
|
|
56
|
+
},
|
|
57
|
+
HEAD_COVER_ERROR: {
|
|
58
|
+
title: "notifications.removeHeadwear",
|
|
59
|
+
description: "notifications.removeHeadwearDescription"
|
|
60
|
+
},
|
|
61
|
+
LENSES_ERROR: {
|
|
62
|
+
title: "notifications.lenses",
|
|
63
|
+
description: "notifications.lensesDescription"
|
|
64
|
+
},
|
|
65
|
+
FACE_NOT_FOUND: {
|
|
66
|
+
title: "notifications.faceNotFound",
|
|
67
|
+
description: "notifications.faceNotFoundDescription"
|
|
68
|
+
},
|
|
69
|
+
MULTIPLE_FACES: {
|
|
70
|
+
title: "notifications.multiple",
|
|
71
|
+
description: "notifications.multipleDescription"
|
|
72
|
+
},
|
|
73
|
+
TOO_BLURRY_ERROR: E,
|
|
74
|
+
TOO_DARK_ERROR: E,
|
|
75
|
+
SERVER_ERROR: E,
|
|
76
|
+
FACE_CROPPING_FAILED: E,
|
|
77
|
+
FACE_TOO_SMALL: E,
|
|
78
|
+
PROCESSING_ERROR: E,
|
|
79
|
+
BAD_REQUEST: E,
|
|
80
|
+
USER_IS_NOT_RECOGNIZED: {
|
|
81
|
+
title: "notifications.accessDenied",
|
|
82
|
+
description: "notifications.accessDeniedDescription"
|
|
83
|
+
},
|
|
84
|
+
SPOOF_ATTEMPT_DETECTED: {
|
|
85
|
+
title: "notifications.spoof",
|
|
86
|
+
description: "notifications.spoofDescription"
|
|
87
|
+
},
|
|
88
|
+
FACE_TOO_DARK: {
|
|
89
|
+
title: "notifications.brightness",
|
|
90
|
+
description: "notifications.brightnessDescription"
|
|
91
|
+
},
|
|
92
|
+
LENSES_DETECTED: {
|
|
93
|
+
title: "notifications.lenses",
|
|
94
|
+
description: "notifications.lensesDescription"
|
|
95
|
+
},
|
|
96
|
+
FACE_MASK_DETECTED: {
|
|
97
|
+
title: "notifications.mask",
|
|
98
|
+
description: "notifications.maskDescription"
|
|
99
|
+
},
|
|
100
|
+
CLOSED_EYES_DETECTED: {
|
|
101
|
+
title: "notifications.closedEyes",
|
|
102
|
+
description: "notifications.closedEyesDescription"
|
|
103
|
+
},
|
|
104
|
+
HEAD_COVER_DETECTED: {
|
|
105
|
+
title: "notifications.removeHeadwear",
|
|
106
|
+
description: "notifications.removeHeadwearDescription"
|
|
107
|
+
},
|
|
108
|
+
FACE_TOO_BLURRY: {
|
|
109
|
+
title: "notifications.spoof",
|
|
110
|
+
description: "notifications.spoofDescription"
|
|
111
|
+
},
|
|
112
|
+
BAD_PHOTO_QUALITY: {
|
|
113
|
+
title: "notifications.lowQualityImage",
|
|
114
|
+
description: "notifications.lowQualityImageDescription"
|
|
115
|
+
},
|
|
116
|
+
NONEXISTENT_CUSTOMER: {
|
|
117
|
+
title: "notifications.nonexistentCustomer",
|
|
118
|
+
description: "notifications.nonexistentCustomerDescription"
|
|
119
|
+
},
|
|
120
|
+
HINT_NOT_PROVIDED: {
|
|
121
|
+
title: "notifications.hintNotProvided",
|
|
122
|
+
description: "notifications.hintNotProvidedDescription"
|
|
123
|
+
},
|
|
124
|
+
SELFIE_IMAGE_LOW_QUALITY: {
|
|
125
|
+
title: "notifications.selfieImageLowQuality",
|
|
126
|
+
description: "notifications.selfieImageLowQualityDescription"
|
|
127
|
+
}
|
|
128
|
+
}, k = [
|
|
129
|
+
"LIVENESS_ERROR",
|
|
130
|
+
"BRIGHTNESS_ERROR",
|
|
131
|
+
"LENSES_ERROR",
|
|
132
|
+
"MASK_ERROR",
|
|
133
|
+
"CLOSED_EYES_ERROR",
|
|
134
|
+
"HEAD_COVER_ERROR",
|
|
135
|
+
"SERVER_ERROR",
|
|
136
|
+
"FACE_NOT_FOUND",
|
|
137
|
+
"MULTIPLE_FACES",
|
|
138
|
+
"TOO_BLURRY_ERROR",
|
|
139
|
+
"TOO_DARK_ERROR",
|
|
140
|
+
"USER_IS_NOT_RECOGNIZED",
|
|
141
|
+
"SPOOF_ATTEMPT_DETECTED",
|
|
142
|
+
"FACE_TOO_DARK",
|
|
143
|
+
"LENSES_DETECTED",
|
|
144
|
+
"FACE_MASK_DETECTED",
|
|
145
|
+
"CLOSED_EYES_DETECTED",
|
|
146
|
+
"HEAD_COVER_DETECTED",
|
|
147
|
+
"FACE_CROPPING_FAILED",
|
|
148
|
+
"FACE_TOO_SMALL",
|
|
149
|
+
"FACE_TOO_BLURRY",
|
|
150
|
+
"BAD_PHOTO_QUALITY",
|
|
151
|
+
"PROCESSING_ERROR",
|
|
152
|
+
"BAD_REQUEST",
|
|
153
|
+
"NONEXISTENT_CUSTOMER",
|
|
154
|
+
"HINT_NOT_PROVIDED",
|
|
155
|
+
"SELFIE_IMAGE_LOW_QUALITY"
|
|
156
|
+
], Q = (i) => {
|
|
157
|
+
const n = i.toUpperCase();
|
|
158
|
+
if (n.includes("HTTP 400") || n.includes("BAD_REQUEST"))
|
|
159
|
+
return "BAD_REQUEST";
|
|
160
|
+
if (n.includes("HTTP 500") || n.includes("SERVER_ERROR"))
|
|
161
|
+
return "SERVER_ERROR";
|
|
162
|
+
for (const e of k)
|
|
163
|
+
if (n.includes(e))
|
|
164
|
+
return e;
|
|
165
|
+
return null;
|
|
166
|
+
}, A = ({
|
|
167
|
+
error: i,
|
|
168
|
+
attemptsRemaining: n,
|
|
169
|
+
onTryAgain: e
|
|
170
|
+
}) => {
|
|
171
|
+
const { t: r } = g();
|
|
172
|
+
if (!i) return null;
|
|
173
|
+
const c = Q(i) ?? i, { title: s, description: l } = x[c] ?? E, u = r(s) ?? s, d = n <= 0 ? r("notifications.selfieCaptureFailedDescription") : r(l);
|
|
174
|
+
return /* @__PURE__ */ t(
|
|
175
|
+
B,
|
|
176
|
+
{
|
|
177
|
+
"data-testid": "face-capture-error-modal",
|
|
178
|
+
title: u,
|
|
179
|
+
description: d,
|
|
180
|
+
attemptsRemaining: n,
|
|
181
|
+
onButtonClick: e
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
}, Y = () => /* @__PURE__ */ t(
|
|
185
|
+
"svg",
|
|
186
|
+
{
|
|
187
|
+
width: "292",
|
|
188
|
+
height: "272",
|
|
189
|
+
viewBox: "0 0 292 272",
|
|
190
|
+
fill: "none",
|
|
191
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
192
|
+
class: "IncodeFaceOutline",
|
|
193
|
+
"aria-hidden": "true",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ t("title", { children: "Outline" }),
|
|
196
|
+
/* @__PURE__ */ t(
|
|
197
|
+
"path",
|
|
198
|
+
{
|
|
199
|
+
opacity: "0.8",
|
|
200
|
+
d: "M145.633 8.0625C115.606 8.06268 85.6206 26.5984 76.9712 54.293L76.771 54.9492C70.4539 76.1063 75.0139 100.802 76.8687 110.58L77.3628 113.188L75.1528 114.656C66.1187 120.66 63.5861 124.089 62.8472 126.92C62.4669 128.377 62.4644 130.035 62.8003 132.412C63.1635 134.983 63.7533 137.484 64.4233 141.347L64.5142 141.841C65.5056 146.956 68.1062 152.133 71.2749 156.618C74.5527 161.257 78.2056 164.826 80.7349 166.584L82.4517 167.777V169.869C82.4517 177.866 85.3476 186.144 89.6763 194.128C93.9906 202.085 99.5748 209.473 104.623 215.646L105.526 216.751V218.178C105.526 220.891 105.68 223.73 105.801 226.9C105.92 230.011 106.003 233.347 105.828 236.771C105.475 243.652 104.077 251.044 99.7446 258.227C91.1977 272.397 72.1081 284.401 31.8677 291.776L29.936 292.124C-41.1597 304.684 -61.4563 361.617 -63.2153 392.062H145.633V400.062H-71.3638L-71.3462 396.044C-71.2048 364.597 -50.9804 298.295 28.5444 284.246L30.4448 283.904C69.9919 276.654 86.1642 265.253 92.894 254.095C96.3216 248.412 97.5261 242.442 97.8374 236.362C97.9939 233.307 97.9241 230.262 97.8071 227.206C97.7111 224.697 97.5799 222.105 97.5396 219.615C92.5931 213.5 87.048 206.064 82.644 197.941C78.308 189.944 74.9442 181.04 74.5024 171.896C71.3932 169.387 67.8531 165.638 64.7417 161.234C61.1656 156.173 57.9337 149.942 56.6587 143.353L56.5415 142.714C55.9864 139.514 55.2491 136.155 54.8784 133.531C54.4806 130.715 54.3377 127.843 55.106 124.899C56.5344 119.427 60.7885 114.886 68.5259 109.489C66.4692 98.2995 62.7062 74.0938 69.106 52.6602L69.3345 51.9092C79.2266 20.2173 112.853 0.0626788 145.633 0.0625V8.0625ZM145.635 0.0625C178.415 0.0625 212.042 20.2172 221.934 51.9092L222.163 52.6602C228.562 74.0938 224.799 98.2996 222.743 109.489C230.48 114.886 234.734 119.427 236.163 124.899C236.931 127.843 236.788 130.715 236.39 133.531C236.019 136.155 235.282 139.514 234.727 142.714L234.61 143.353C233.335 149.942 230.103 156.173 226.527 161.234C223.415 165.638 219.875 169.387 216.766 171.896C216.324 181.04 212.961 189.944 208.625 197.941C204.221 206.064 198.676 213.5 193.729 219.615C193.689 222.105 193.557 224.697 193.461 227.206C193.344 230.262 193.275 233.307 193.431 236.362C193.742 242.442 194.947 248.412 198.375 254.095C205.104 265.253 221.277 276.654 260.824 283.904L262.724 284.246C342.249 298.294 362.473 364.597 362.615 396.044L362.632 400.062H145.635V392.062H354.484C352.725 361.616 332.429 304.683 261.333 292.124L259.401 291.776C219.161 284.401 200.071 272.397 191.524 258.227C187.192 251.044 185.793 243.652 185.441 236.771C185.266 233.347 185.348 230.011 185.467 226.9C185.589 223.73 185.743 220.891 185.743 218.178V216.751L186.646 215.646C191.694 209.473 197.278 202.085 201.592 194.128C205.921 186.144 208.817 177.866 208.817 169.869V167.777L210.534 166.584C213.063 164.826 216.716 161.257 219.994 156.618C223.162 152.133 225.763 146.956 226.754 141.841L226.845 141.347C227.515 137.484 228.105 134.983 228.468 132.412C228.804 130.034 228.802 128.377 228.421 126.92C227.682 124.089 225.15 120.66 216.116 114.656L213.906 113.188L214.4 110.58C216.255 100.802 220.815 76.1064 214.498 54.9492L214.297 54.293C205.648 26.5983 175.662 8.0625 145.635 8.0625V0.0625Z",
|
|
201
|
+
fill: "white"
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
), G = (i) => {
|
|
207
|
+
switch (i) {
|
|
208
|
+
case "success":
|
|
209
|
+
case "capturing":
|
|
210
|
+
return "var(--surface-status-positive-500)";
|
|
211
|
+
case "loading":
|
|
212
|
+
return "var(--surface-brand-500)";
|
|
213
|
+
case "error":
|
|
214
|
+
return "var(--surface-status-negative-500)";
|
|
215
|
+
case "idle":
|
|
216
|
+
return "var(--surface-neutral-100)";
|
|
217
|
+
}
|
|
218
|
+
}, b = ({
|
|
219
|
+
borderState: i = "idle"
|
|
220
|
+
}) => {
|
|
221
|
+
const n = y(), e = i === "loading" || i === "capturing", r = G(i), o = e ? `url(#${n})` : r;
|
|
222
|
+
return /* @__PURE__ */ t(
|
|
223
|
+
"div",
|
|
224
|
+
{
|
|
225
|
+
class: N("IncodeLoadingBorder", {
|
|
226
|
+
IncodeLoadingBorderSpinning: e
|
|
227
|
+
}),
|
|
228
|
+
"aria-hidden": "true",
|
|
229
|
+
children: /* @__PURE__ */ t(
|
|
230
|
+
"svg",
|
|
231
|
+
{
|
|
232
|
+
width: "100%",
|
|
233
|
+
height: "100%",
|
|
234
|
+
viewBox: "0 0 335 335",
|
|
235
|
+
fill: "none",
|
|
236
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ t("title", { children: "Loading Border" }),
|
|
239
|
+
/* @__PURE__ */ t(
|
|
240
|
+
"path",
|
|
241
|
+
{
|
|
242
|
+
"fill-rule": "evenodd",
|
|
243
|
+
"clip-rule": "evenodd",
|
|
244
|
+
d: "M335 167.5C335 260.008 260.008 335 167.5 335C74.9923 335 0 260.008 0 167.5C0 74.9923 74.9923 0 167.5 0C260.008 0 335 74.9923 335 167.5ZM167.5 325C254.485 325 325 254.485 325 167.5C325 80.5152 254.485 10 167.5 10C80.5152 10 10 80.5152 10 167.5C10 254.485 80.5152 325 167.5 325Z",
|
|
245
|
+
class: "IncodeLoadingBorderPath",
|
|
246
|
+
fill: o
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t(
|
|
250
|
+
"radialGradient",
|
|
251
|
+
{
|
|
252
|
+
id: n,
|
|
253
|
+
cx: "0",
|
|
254
|
+
cy: "0",
|
|
255
|
+
r: "1",
|
|
256
|
+
gradientUnits: "userSpaceOnUse",
|
|
257
|
+
gradientTransform: "translate(240.418 17.4369) rotate(115.674) scale(167.087)",
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ t("stop", { "stop-color": r }),
|
|
260
|
+
/* @__PURE__ */ t("stop", { offset: "1", "stop-color": r, "stop-opacity": "0" })
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
) })
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
}, z = ({
|
|
270
|
+
detectionState: i,
|
|
271
|
+
disabled: n
|
|
272
|
+
}) => {
|
|
273
|
+
const { t: e } = g(), r = a(null), o = a({
|
|
274
|
+
message: "",
|
|
275
|
+
at: 0
|
|
276
|
+
}), c = a(i), s = a(n), l = a(!1), u = a(), d = a(), C = {
|
|
277
|
+
noFace: e("notifications.faceNotFound"),
|
|
278
|
+
tooManyFaces: e("notifications.tooManyFaces"),
|
|
279
|
+
tooClose: e("notifications.moveAway"),
|
|
280
|
+
tooFar: e("notifications.moveCloser"),
|
|
281
|
+
blur: e("notifications.onBlur"),
|
|
282
|
+
dark: e("notifications.onDark"),
|
|
283
|
+
faceAngle: e("notifications.onFaceAngleV2"),
|
|
284
|
+
headWear: e("notifications.removeHeadwear"),
|
|
285
|
+
lenses: e("notifications.removeLenses"),
|
|
286
|
+
eyesClosed: e("notifications.eyesClosed"),
|
|
287
|
+
faceMask: e("notifications.mask"),
|
|
288
|
+
centerFace: e("notifications.centerFaceV2"),
|
|
289
|
+
getReady: e("notifications.getReady"),
|
|
290
|
+
capturing: e("idv2.capture.takingPhoto")
|
|
291
|
+
}[i] ?? "", f = w((R) => {
|
|
292
|
+
const S = Date.now(), O = o.current;
|
|
293
|
+
if (R === O.message && S - O.at < 200) return;
|
|
294
|
+
o.current = { message: R, at: S };
|
|
295
|
+
const m = r.current;
|
|
296
|
+
m && (clearTimeout(u.current), m.textContent = "", d.current = setTimeout(() => {
|
|
297
|
+
m.textContent = R, u.current = setTimeout(() => {
|
|
298
|
+
m.textContent = "";
|
|
299
|
+
}, 3e3);
|
|
300
|
+
}, 50));
|
|
301
|
+
}, []);
|
|
302
|
+
return p(() => {
|
|
303
|
+
const R = s.current;
|
|
304
|
+
if (s.current = n, n || i === "manualCapture") {
|
|
305
|
+
l.current = !1;
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (l.current) return;
|
|
309
|
+
const O = setTimeout(() => {
|
|
310
|
+
l.current = !0, f(e("selfiev2.autoCapture.defaultAriaInstructions"));
|
|
311
|
+
}, R ? 1e3 : 500);
|
|
312
|
+
return () => clearTimeout(O);
|
|
313
|
+
}, [i, n, f, e]), p(() => {
|
|
314
|
+
const R = c.current;
|
|
315
|
+
c.current = i, !n && R !== "manualCapture" && i === "manualCapture" && f(e("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
316
|
+
}, [f, i, e, n]), p(() => {
|
|
317
|
+
n || !C || f(C);
|
|
318
|
+
}, [C, f, n]), p(() => () => {
|
|
319
|
+
clearTimeout(d.current), clearTimeout(u.current);
|
|
320
|
+
}, []), /* @__PURE__ */ t(L, { children: [
|
|
321
|
+
/* @__PURE__ */ t(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
ref: r,
|
|
325
|
+
class: "IncodeCaptureVisuallyHidden",
|
|
326
|
+
"aria-live": "assertive",
|
|
327
|
+
"aria-atomic": "true"
|
|
328
|
+
}
|
|
329
|
+
),
|
|
330
|
+
C ? /* @__PURE__ */ t("div", { class: "IncodeNotification", "aria-hidden": "true", children: /* @__PURE__ */ t("p", { class: "IncodeNotificationText", children: C }) }) : null
|
|
331
|
+
] });
|
|
332
|
+
}, ot = ({ manager: i, state: n }) => {
|
|
333
|
+
const {
|
|
334
|
+
captureStatus: e,
|
|
335
|
+
stream: r,
|
|
336
|
+
detectionStatus: o,
|
|
337
|
+
attemptsRemaining: c,
|
|
338
|
+
uploadError: s,
|
|
339
|
+
assistedOnboarding: l
|
|
340
|
+
} = n, [u, d] = I(!1), { t: T } = g(), C = a(null);
|
|
341
|
+
if (p(() => {
|
|
342
|
+
o === "manualCapture" && C.current?.focus();
|
|
343
|
+
}, [o]), e === "initializing")
|
|
344
|
+
return /* @__PURE__ */ t(
|
|
345
|
+
U,
|
|
346
|
+
{
|
|
347
|
+
fullScreen: !0,
|
|
348
|
+
title: T("v2.selfie.camera.loading"),
|
|
349
|
+
className: "IncodeCameraLoading"
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
if (e === "detecting") {
|
|
353
|
+
if (o === "offline")
|
|
354
|
+
return /* @__PURE__ */ t(D, { title: "No internet connection" });
|
|
355
|
+
const f = () => u ? "capturing" : o === "detecting" ? "idle" : o === "getReady" ? "loading" : o === "success" ? "success" : o === "error" ? "error" : "idle";
|
|
356
|
+
return /* @__PURE__ */ t(D, { "data-testid": "capture-container", children: [
|
|
357
|
+
/* @__PURE__ */ t(v, { className: "IncodeCaptureVisuallyHidden", children: T("selfiev2.capture.title") }),
|
|
358
|
+
/* @__PURE__ */ t(_, { size: 48 }),
|
|
359
|
+
/* @__PURE__ */ t("div", { class: "IncodeCaptureContainer", children: [
|
|
360
|
+
/* @__PURE__ */ t(b, { borderState: f() }),
|
|
361
|
+
/* @__PURE__ */ t("div", { class: "IncodeCaptureFrame", children: /* @__PURE__ */ t("div", { class: "IncodeCaptureVideoWrapper", "aria-hidden": "true", children: r ? /* @__PURE__ */ t(L, { children: [
|
|
362
|
+
/* @__PURE__ */ t(K, { stream: r, mirrored: !l }),
|
|
363
|
+
/* @__PURE__ */ t("div", { class: "IncodeCaptureVideo", children: /* @__PURE__ */ t(Y, {}) })
|
|
364
|
+
] }) : null }) }),
|
|
365
|
+
/* @__PURE__ */ t(_, { size: 48 }),
|
|
366
|
+
o ? /* @__PURE__ */ t(L, { children: [
|
|
367
|
+
/* @__PURE__ */ t(
|
|
368
|
+
z,
|
|
369
|
+
{
|
|
370
|
+
detectionState: o,
|
|
371
|
+
disabled: !!s || u
|
|
372
|
+
}
|
|
373
|
+
),
|
|
374
|
+
/* @__PURE__ */ t(_, { size: 24 })
|
|
375
|
+
] }) : null,
|
|
376
|
+
o === "manualCapture" ? /* @__PURE__ */ t(
|
|
377
|
+
M,
|
|
378
|
+
{
|
|
379
|
+
ref: C,
|
|
380
|
+
onClick: () => {
|
|
381
|
+
d(!0), i.capture();
|
|
382
|
+
},
|
|
383
|
+
disabled: u
|
|
384
|
+
}
|
|
385
|
+
) : null
|
|
386
|
+
] }),
|
|
387
|
+
s ? /* @__PURE__ */ t(
|
|
388
|
+
A,
|
|
389
|
+
{
|
|
390
|
+
error: s,
|
|
391
|
+
attemptsRemaining: c,
|
|
392
|
+
onTryAgain: () => {
|
|
393
|
+
i.retryCapture(), d(!1);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
) : null
|
|
397
|
+
] });
|
|
398
|
+
}
|
|
399
|
+
return e === "capturing" ? /* @__PURE__ */ t(
|
|
400
|
+
D,
|
|
401
|
+
{
|
|
402
|
+
className: "IncodeCaptureCapturingPage",
|
|
403
|
+
title: "Capturing",
|
|
404
|
+
subtitle: "Taking photo...",
|
|
405
|
+
children: /* @__PURE__ */ t("div", { class: "IncodeCaptureCapturingActions", children: /* @__PURE__ */ t(V, { isLoading: !0, children: "Capturing..." }) })
|
|
406
|
+
}
|
|
407
|
+
) : e === "uploading" ? /* @__PURE__ */ t(
|
|
408
|
+
h,
|
|
409
|
+
{
|
|
410
|
+
className: "IncodeCaptureStatusUploading",
|
|
411
|
+
icon: /* @__PURE__ */ t(F, { size: 64 }),
|
|
412
|
+
title: T("idv2.capture.processing.uploading")
|
|
413
|
+
}
|
|
414
|
+
) : e === "uploadError" ? /* @__PURE__ */ t(
|
|
415
|
+
A,
|
|
416
|
+
{
|
|
417
|
+
error: s,
|
|
418
|
+
attemptsRemaining: c,
|
|
419
|
+
onTryAgain: () => {
|
|
420
|
+
i.retryCapture(), d(!1);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
) : e === "success" ? /* @__PURE__ */ t(
|
|
424
|
+
h,
|
|
425
|
+
{
|
|
426
|
+
icon: /* @__PURE__ */ t(P, { size: 64 }),
|
|
427
|
+
title: T("idv2.capture.processing.success")
|
|
428
|
+
}
|
|
429
|
+
) : null;
|
|
430
|
+
}, K = ({ stream: i, mirrored: n }) => {
|
|
431
|
+
const e = a(null);
|
|
432
|
+
return p(() => {
|
|
433
|
+
e.current && i && (e.current.srcObject = i);
|
|
434
|
+
}, [i]), /* @__PURE__ */ t(
|
|
435
|
+
"video",
|
|
436
|
+
{
|
|
437
|
+
ref: e,
|
|
438
|
+
autoplay: !0,
|
|
439
|
+
playsInline: !0,
|
|
440
|
+
muted: !0,
|
|
441
|
+
"aria-hidden": "true",
|
|
442
|
+
class: n ? "IncodeCaptureVideoElement IncodeCaptureVideoMirrored" : "IncodeCaptureVideoElement"
|
|
443
|
+
}
|
|
444
|
+
);
|
|
445
|
+
}, rt = ({ manager: i }) => {
|
|
446
|
+
const { t: n } = g(), [e, r] = I(!1), [o, c] = I(null);
|
|
447
|
+
p(() => {
|
|
448
|
+
import("./selfieTutorial-Dm_p0ke9.js").then((l) => {
|
|
449
|
+
c(l.default);
|
|
450
|
+
});
|
|
451
|
+
}, []);
|
|
452
|
+
const s = () => {
|
|
453
|
+
r(!0), i.nextStep();
|
|
454
|
+
};
|
|
455
|
+
return o ? /* @__PURE__ */ t(
|
|
456
|
+
H,
|
|
457
|
+
{
|
|
458
|
+
animationData: o,
|
|
459
|
+
title: n("face.tutorial.title"),
|
|
460
|
+
titleId: "face-tutorial-heading",
|
|
461
|
+
subtitle: n("face.tutorial.subtitle"),
|
|
462
|
+
onContinue: s,
|
|
463
|
+
buttonText: n("face.tutorial.startCapture"),
|
|
464
|
+
disclaimerText: n("face.tutorial.autoCapture"),
|
|
465
|
+
isLoading: e,
|
|
466
|
+
className: "IncodeSelfieTutorial"
|
|
467
|
+
}
|
|
468
|
+
) : null;
|
|
469
|
+
};
|
|
470
|
+
export {
|
|
471
|
+
ot as C,
|
|
472
|
+
rt as T
|
|
473
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28,4 +28,12 @@ export declare type UiConfig = {
|
|
|
28
28
|
hideFooterBranding?: boolean;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Hook that returns whether the device is in landscape mode on mobile (excluding iPad and desktop).
|
|
33
|
+
* Use this to show a landscape blocker overlay when true.
|
|
34
|
+
*/
|
|
35
|
+
export declare function useScreenOrientation(): {
|
|
36
|
+
isLandscapeMobile: boolean;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
export { }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { u as s, c as a } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { D as y } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
const e = y(
|
|
4
|
+
({ children: o, className: r, ...p }, c) => /* @__PURE__ */ s("h2", { ref: c, class: `IncodeTitle ${r ?? ""}`, ...p, children: o })
|
|
5
|
+
), h = ({ children: o, className: r }) => /* @__PURE__ */ s("h1", { class: a("IncodeTypographyH1", r), children: o }), T = ({ children: o, className: r }) => /* @__PURE__ */ s("h2", { class: `IncodeTypographyH2 ${r ?? ""}`, children: o }), g = ({ children: o, className: r }) => /* @__PURE__ */ s("h3", { class: a("IncodeTypographyH3", r), children: o }), H = ({ children: o, className: r }) => /* @__PURE__ */ s("h4", { class: a("IncodeTypographyH4", r), children: o }), l = ({ children: o, className: r }) => /* @__PURE__ */ s("h5", { class: a("IncodeTypographyH5", r), children: o }), d = ({ children: o, className: r }) => /* @__PURE__ */ s("p", { class: a("IncodeTypographyP", r), children: o });
|
|
6
|
+
export {
|
|
7
|
+
e as T,
|
|
8
|
+
h as a,
|
|
9
|
+
g as b,
|
|
10
|
+
H as c,
|
|
11
|
+
l as d,
|
|
12
|
+
d as e,
|
|
13
|
+
T as f
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { C as i } from "./vendor-preact-BoMmvSgn.js";
|
|
2
|
+
let e = {};
|
|
3
|
+
const t = /* @__PURE__ */ new Set();
|
|
4
|
+
function r(n) {
|
|
5
|
+
return t.add(n), () => {
|
|
6
|
+
t.delete(n);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function s() {
|
|
10
|
+
return e;
|
|
11
|
+
}
|
|
12
|
+
function f(n) {
|
|
13
|
+
e = n;
|
|
14
|
+
for (const o of t)
|
|
15
|
+
o();
|
|
16
|
+
}
|
|
17
|
+
function c() {
|
|
18
|
+
return i(r, s);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
f as s,
|
|
22
|
+
c as u
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { d, y as a } from "./vendor-preact-BoMmvSgn.js";
|
|
2
|
+
const c = "(max-width: 767px)";
|
|
3
|
+
function s(e) {
|
|
4
|
+
const [i, o] = d(
|
|
5
|
+
() => typeof window < "u" && window.matchMedia(e).matches
|
|
6
|
+
);
|
|
7
|
+
return a(() => {
|
|
8
|
+
if (typeof window > "u") return;
|
|
9
|
+
const n = window.matchMedia(e), t = () => o(n.matches);
|
|
10
|
+
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
11
|
+
}, [e]), i;
|
|
12
|
+
}
|
|
13
|
+
function h() {
|
|
14
|
+
return s(c);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
h as u
|
|
18
|
+
};
|