@incodetech/web 2.0.0-alpha.5 → 2.0.0-alpha.7
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/base.css +230 -0
- package/dist/email/email.es.js +10 -10
- package/dist/flow/flow.es.js +537 -7
- package/dist/flow/styles.css +419 -189
- package/dist/incodeModule-Dv8Qllrv.js +254 -0
- package/dist/index.es.js +4 -99
- package/dist/{title-ng7q7YDh.js → instance-B-q0ZREN.js} +194 -215
- package/dist/{otpInput-BUrV4IAF.js → otpInput-BtoZe0Wz.js} +1 -1
- package/dist/{incodeModule-DFQUQvfY.js → page-CSoG4tGT.js} +50 -59
- package/dist/phone/phone.es.js +11 -12
- package/dist/selfie/selfie.es.js +70 -70
- package/dist/selfie/styles.css +267 -787
- package/dist/setup-wNL83jmW.js +20 -0
- package/dist/themes/dark.css +3 -3
- package/dist/themes/light.css +3 -3
- package/dist/title-BfO5Dlzk.js +25 -0
- package/dist/types/email.d.ts +7 -1
- package/dist/types/flow.d.ts +29 -6
- package/dist/types/index.d.ts +2 -187
- package/dist/types/phone.d.ts +7 -1
- package/dist/types/selfie.d.ts +7 -1
- package/dist/types/styles.d.ts +1 -0
- package/dist/uiConfig-CQ1W9cUD.js +23 -0
- package/package.json +10 -9
- package/dist/button-DeMZ_34N.js +0 -266
- package/dist/button.css +0 -335
- package/dist/flow-ZK6OBsa3.js +0 -568
- package/dist/incodeModule.css +0 -119
- package/dist/otpInput.css +0 -167
- package/dist/successIcon.css +0 -4
- package/dist/title.css +0 -38
- package/dist/types/email/email.d.ts +0 -2
- package/dist/types/flow/flow.d.ts +0 -2
- package/dist/types/phone/phone.d.ts +0 -2
- package/dist/types/selfie/selfie.d.ts +0 -2
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
|
-
import { u as e, S as c, B as C,
|
|
2
|
-
import { createSelfieManager as
|
|
3
|
-
import { u as d, T as
|
|
4
|
-
import { P as u, g as
|
|
1
|
+
import { u as e, S as c, B as C, c as _, L as w, r as O, a as M } from "../incodeModule-Dv8Qllrv.js";
|
|
2
|
+
import { createSelfieManager as y } from "@incodetech/core/selfie";
|
|
3
|
+
import { u as d, T as A } from "../title-BfO5Dlzk.js";
|
|
4
|
+
import { P as u, g as P, r as x, I as b } from "../page-CSoG4tGT.js";
|
|
5
5
|
import { getBrowser as B, getDeviceClass as N } from "@incodetech/core";
|
|
6
6
|
import { k as E, g as K, d as v, A as T, y as I } from "../vendor-preact-CK0WeTOR.js";
|
|
7
|
-
|
|
8
|
-
const F =
|
|
7
|
+
import "../instance-B-q0ZREN.js";
|
|
8
|
+
const F = ({ size: i = 64 }) => /* @__PURE__ */ e(
|
|
9
|
+
"svg",
|
|
10
|
+
{
|
|
11
|
+
width: i,
|
|
12
|
+
height: i,
|
|
13
|
+
viewBox: "0 0 16 17",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
class: "IncodeSuccessIcon",
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ e("title", { children: "status" }),
|
|
20
|
+
/* @__PURE__ */ e(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
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",
|
|
24
|
+
fill: "var(--icon-status-positive-static)"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
), V = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/permissions-img-83924a96.svg", k = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/android-dots-icon-846d605c.svg", H = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/android-settings-icon-8bd49c8d.svg", U = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/android-toggle-icon-03e22d7a.svg", z = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/chrome-icon-4c3b130c.svg", Z = () => /* @__PURE__ */ e(
|
|
9
30
|
"svg",
|
|
10
31
|
{
|
|
11
32
|
class: "IncodeBoldWithArrowIcon",
|
|
@@ -23,35 +44,35 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
23
44
|
}
|
|
24
45
|
)
|
|
25
46
|
}
|
|
26
|
-
),
|
|
47
|
+
), W = ({ i18nKey: i }) => {
|
|
27
48
|
const { t: n } = d(), s = n(i).split(/<arrow\s*\/?>/gi);
|
|
28
49
|
return /* @__PURE__ */ e("span", { class: "IncodeBoldWithArrow", children: s.map((o, r) => /* @__PURE__ */ e("span", { children: [
|
|
29
50
|
o,
|
|
30
|
-
r < s.length - 1 ? /* @__PURE__ */ e(
|
|
51
|
+
r < s.length - 1 ? /* @__PURE__ */ e(Z, {}) : null
|
|
31
52
|
] }, r)) });
|
|
32
|
-
}, D = ({ icon: i, title: n }) => /* @__PURE__ */ e("div", { class: "IncodeIconWrapper", children: /* @__PURE__ */ e("img", { src: i, alt: n, class: "IncodeIconWrapperImage" }) }),
|
|
53
|
+
}, D = ({ icon: i, title: n }) => /* @__PURE__ */ e("div", { class: "IncodeIconWrapper", children: /* @__PURE__ */ e("img", { src: i, alt: n, class: "IncodeIconWrapperImage" }) }), $ = () => {
|
|
33
54
|
const { t: i } = d(), n = [
|
|
34
55
|
{
|
|
35
|
-
icon:
|
|
56
|
+
icon: k,
|
|
36
57
|
iconTitle: i("idv2.permissions.denied.settings"),
|
|
37
58
|
instructionKey: "tap",
|
|
38
59
|
boldKey: "idv2.permissions.denied.dots",
|
|
39
60
|
additionalText: ` ${i("idv2.permissions.denied.topRight")}`
|
|
40
61
|
},
|
|
41
62
|
{
|
|
42
|
-
icon:
|
|
63
|
+
icon: H,
|
|
43
64
|
iconTitle: i("idv2.permissions.denied.browser"),
|
|
44
65
|
instructionKey: "tap",
|
|
45
66
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
46
67
|
},
|
|
47
68
|
{
|
|
48
|
-
icon:
|
|
69
|
+
icon: U,
|
|
49
70
|
iconTitle: i("idv2.permissions.denied.camera"),
|
|
50
71
|
instructionKey: "tap",
|
|
51
72
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
52
73
|
},
|
|
53
74
|
{
|
|
54
|
-
icon:
|
|
75
|
+
icon: z,
|
|
55
76
|
iconTitle: i("idv2.permissions.denied.toggle"),
|
|
56
77
|
instructionKey: "returnPress",
|
|
57
78
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
@@ -62,11 +83,11 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
62
83
|
/* @__PURE__ */ e("p", { class: "IncodeDeniedStepText", children: [
|
|
63
84
|
i(`idv2.permissions.denied.${t.instructionKey}`),
|
|
64
85
|
" ",
|
|
65
|
-
/* @__PURE__ */ e(
|
|
86
|
+
/* @__PURE__ */ e(W, { i18nKey: t.boldKey }),
|
|
66
87
|
t.additionalText ? t.additionalText : null
|
|
67
88
|
] })
|
|
68
89
|
] }, t.boldKey)) }) });
|
|
69
|
-
},
|
|
90
|
+
}, Q = ({ number: i }) => /* @__PURE__ */ e("div", { class: "IncodeNumberedStep", children: /* @__PURE__ */ e("span", { class: "IncodeNumberedStepText", children: i }) }), Y = (i) => {
|
|
70
91
|
const n = [
|
|
71
92
|
`idv2.permissions.denied.${i}.firstStep`,
|
|
72
93
|
`idv2.permissions.denied.${i}.secondStep`,
|
|
@@ -75,25 +96,25 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
75
96
|
`idv2.permissions.denied.${i}.fifthStep`
|
|
76
97
|
];
|
|
77
98
|
return i === "safari" && n.push(`idv2.permissions.denied.${i}.sixthStep`), n;
|
|
78
|
-
},
|
|
99
|
+
}, G = (i, n) => i(n).split(/(<strong>[^<]+<\/strong>)/g).map((o, r) => {
|
|
79
100
|
if (o.startsWith("<strong>") && o.endsWith("</strong>")) {
|
|
80
101
|
const a = o.slice(8, -9);
|
|
81
102
|
return /* @__PURE__ */ e("span", { class: "IncodeDeniedStepTextBold", children: a }, r);
|
|
82
103
|
}
|
|
83
104
|
return o;
|
|
84
|
-
}),
|
|
85
|
-
const { t: i } = d(), n = B(), t =
|
|
105
|
+
}), j = () => {
|
|
106
|
+
const { t: i } = d(), n = B(), t = Y(n);
|
|
86
107
|
return /* @__PURE__ */ e("div", { class: "IncodeDeniedInstructionsContainer", children: /* @__PURE__ */ e("div", { class: "IncodeDeniedDesktopContainer", children: t.map((s, o) => /* @__PURE__ */ e(E, { children: [
|
|
87
108
|
/* @__PURE__ */ e("div", { class: "IncodeDeniedDesktopStep", children: [
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
/* @__PURE__ */ e("p", { class: "IncodeDeniedStepText", children:
|
|
109
|
+
/* @__PURE__ */ e(Q, { number: o + 1 }),
|
|
110
|
+
/* @__PURE__ */ e("p", { class: "IncodeDeniedStepText", children: G(i, s) })
|
|
90
111
|
] }),
|
|
91
112
|
o < t.length - 1 ? /* @__PURE__ */ e("div", { class: "IncodeNumberedStepConnector" }) : null
|
|
92
113
|
] }, s)) }) });
|
|
93
|
-
},
|
|
114
|
+
}, q = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/camera-ios-9eac3be1.svg", R = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/safari-icon-7823d73d.svg", X = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/settings-icon-9743cbda.svg", J = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/toggle-icon-351f86ce.svg", ee = () => {
|
|
94
115
|
const { t: i } = d(), n = [
|
|
95
116
|
{
|
|
96
|
-
icon:
|
|
117
|
+
icon: X,
|
|
97
118
|
iconTitle: i("idv2.permissions.denied.settings"),
|
|
98
119
|
instructionKey: "open",
|
|
99
120
|
boldKey: "settings"
|
|
@@ -105,13 +126,13 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
105
126
|
boldKey: "yourBrowser"
|
|
106
127
|
},
|
|
107
128
|
{
|
|
108
|
-
icon:
|
|
129
|
+
icon: q,
|
|
109
130
|
iconTitle: i("idv2.permissions.denied.camera"),
|
|
110
131
|
instructionKey: "tap",
|
|
111
132
|
boldKey: "camera"
|
|
112
133
|
},
|
|
113
134
|
{
|
|
114
|
-
icon:
|
|
135
|
+
icon: J,
|
|
115
136
|
iconTitle: i("idv2.permissions.denied.toggle"),
|
|
116
137
|
instructionKey: "changeTo",
|
|
117
138
|
boldKey: "allow",
|
|
@@ -140,36 +161,36 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
140
161
|
] }) : null
|
|
141
162
|
] })
|
|
142
163
|
] }, t.boldKey)) }) });
|
|
143
|
-
},
|
|
164
|
+
}, ie = () => {
|
|
144
165
|
const i = N();
|
|
145
|
-
return i === "ios" ? /* @__PURE__ */ e(
|
|
146
|
-
},
|
|
166
|
+
return i === "ios" ? /* @__PURE__ */ e(ee, {}) : i === "android" ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(j, {});
|
|
167
|
+
}, ne = ({ onRefresh: i }) => {
|
|
147
168
|
const { t: n } = d();
|
|
148
169
|
return /* @__PURE__ */ e(u, { hideHeader: !0, className: "IncodeDeniedPage", children: [
|
|
149
170
|
/* @__PURE__ */ e(c, { size: 24 }),
|
|
150
171
|
/* @__PURE__ */ e("p", { class: "IncodeDeniedTitle", children: n("idv2.permissions.denied.title") }),
|
|
151
172
|
/* @__PURE__ */ e(c, { size: 64 }),
|
|
152
|
-
/* @__PURE__ */ e(
|
|
173
|
+
/* @__PURE__ */ e(ie, {}),
|
|
153
174
|
/* @__PURE__ */ e("div", { class: "IncodeDeniedActions", children: /* @__PURE__ */ e(C, { onClick: i, children: n("idv2.permissions.denied.refreshPage") }) })
|
|
154
175
|
] });
|
|
155
|
-
},
|
|
176
|
+
}, te = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/bank-card-icon-6af62350.svg", se = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/camera-icon-b2fc4c1c.svg", oe = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/check-icon-b1d1ddd8.svg", re = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/password-icon-f5257b0b.svg", ce = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.7/assets/warning-icon-f3eadd0b.svg", ae = [
|
|
156
177
|
{
|
|
157
|
-
icon:
|
|
178
|
+
icon: se,
|
|
158
179
|
textKey: "idv2.permissions.learnMorePage.instructions.1"
|
|
159
180
|
},
|
|
160
181
|
{
|
|
161
|
-
icon:
|
|
182
|
+
icon: te,
|
|
162
183
|
textKey: "idv2.permissions.learnMorePage.instructions.2"
|
|
163
184
|
},
|
|
164
185
|
{
|
|
165
|
-
icon:
|
|
186
|
+
icon: re,
|
|
166
187
|
textKey: "idv2.permissions.learnMorePage.instructions.3"
|
|
167
188
|
},
|
|
168
189
|
{
|
|
169
|
-
icon:
|
|
190
|
+
icon: oe,
|
|
170
191
|
textKey: "idv2.permissions.learnMorePage.instructions.4"
|
|
171
192
|
}
|
|
172
|
-
],
|
|
193
|
+
], de = ({
|
|
173
194
|
onAllowPermissions: i,
|
|
174
195
|
onQuitProcess: n
|
|
175
196
|
}) => {
|
|
@@ -180,7 +201,7 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
180
201
|
/* @__PURE__ */ e(
|
|
181
202
|
"img",
|
|
182
203
|
{
|
|
183
|
-
src:
|
|
204
|
+
src: ce,
|
|
184
205
|
alt: t("idv2.permissions.learnMorePage.warning"),
|
|
185
206
|
class: "IncodeLearnMoreImage"
|
|
186
207
|
}
|
|
@@ -188,7 +209,7 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
188
209
|
/* @__PURE__ */ e(c, { size: 12 }),
|
|
189
210
|
/* @__PURE__ */ e("p", { class: "IncodeLearnMoreTitle", children: t("idv2.permissions.learnMorePage.title") }),
|
|
190
211
|
/* @__PURE__ */ e(c, { size: 32 }),
|
|
191
|
-
/* @__PURE__ */ e("div", { class: "IncodeLearnMoreInstructions", children:
|
|
212
|
+
/* @__PURE__ */ e("div", { class: "IncodeLearnMoreInstructions", children: ae.map((s) => /* @__PURE__ */ e("div", { class: "IncodeLearnMoreInstruction", children: [
|
|
192
213
|
/* @__PURE__ */ e("div", { class: "IncodeLearnMoreInstructionIcon", children: /* @__PURE__ */ e(
|
|
193
214
|
"img",
|
|
194
215
|
{
|
|
@@ -206,18 +227,18 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
206
227
|
/* @__PURE__ */ e(C, { variant: "link", onClick: n, children: t("idv2.permissions.learnMorePage.quitProcess") })
|
|
207
228
|
] })
|
|
208
229
|
] });
|
|
209
|
-
},
|
|
230
|
+
}, le = ({
|
|
210
231
|
manager: i,
|
|
211
232
|
permissionStatus: n
|
|
212
233
|
}) => {
|
|
213
234
|
const { t } = d();
|
|
214
235
|
return n === "requesting" ? /* @__PURE__ */ e(u, { className: "IncodePermissionsRequestingPage", hideHeader: !0 }) : n === "learnMore" ? /* @__PURE__ */ e(
|
|
215
|
-
|
|
236
|
+
de,
|
|
216
237
|
{
|
|
217
238
|
onAllowPermissions: () => i.requestPermission(),
|
|
218
239
|
onQuitProcess: () => i.close()
|
|
219
240
|
}
|
|
220
|
-
) : n === "denied" ? /* @__PURE__ */ e(
|
|
241
|
+
) : n === "denied" ? /* @__PURE__ */ e(ne, { onRefresh: () => window.location.reload() }) : /* @__PURE__ */ e(
|
|
221
242
|
u,
|
|
222
243
|
{
|
|
223
244
|
className: "IncodePermissionsPage",
|
|
@@ -229,7 +250,7 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
229
250
|
/* @__PURE__ */ e("div", { class: "IncodePermissionsImageContainer", children: /* @__PURE__ */ e(
|
|
230
251
|
"img",
|
|
231
252
|
{
|
|
232
|
-
src:
|
|
253
|
+
src: V,
|
|
233
254
|
alt: t("idv2.permissions.alertAlt"),
|
|
234
255
|
class: "IncodePermissionsImage"
|
|
235
256
|
}
|
|
@@ -244,28 +265,7 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
244
265
|
]
|
|
245
266
|
}
|
|
246
267
|
);
|
|
247
|
-
},
|
|
248
|
-
"svg",
|
|
249
|
-
{
|
|
250
|
-
width: i,
|
|
251
|
-
height: i,
|
|
252
|
-
viewBox: "0 0 16 17",
|
|
253
|
-
fill: "none",
|
|
254
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
255
|
-
class: "IncodeSuccessIcon",
|
|
256
|
-
"aria-hidden": "true",
|
|
257
|
-
children: [
|
|
258
|
-
/* @__PURE__ */ e("title", { children: "status" }),
|
|
259
|
-
/* @__PURE__ */ e(
|
|
260
|
-
"path",
|
|
261
|
-
{
|
|
262
|
-
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",
|
|
263
|
-
fill: "var(--icon-status-positive-static)"
|
|
264
|
-
}
|
|
265
|
-
)
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
), S = ({
|
|
268
|
+
}, S = ({
|
|
269
269
|
title: i,
|
|
270
270
|
description: n,
|
|
271
271
|
attemptsText: t,
|
|
@@ -750,9 +750,9 @@ const F = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.5/assets/permis
|
|
|
750
750
|
}
|
|
751
751
|
) : s === "success" ? /* @__PURE__ */ e(u, { className: "IncodeCaptureSuccessPage", children: /* @__PURE__ */ e("div", { class: "IncodeCaptureSuccessContainer", children: [
|
|
752
752
|
/* @__PURE__ */ e(c, { size: 160 }),
|
|
753
|
-
/* @__PURE__ */ e(
|
|
753
|
+
/* @__PURE__ */ e(F, { size: 64 }),
|
|
754
754
|
/* @__PURE__ */ e(c, { size: 16 }),
|
|
755
|
-
/* @__PURE__ */ e(
|
|
755
|
+
/* @__PURE__ */ e(A, { children: f("idv2.capture.processing.success") })
|
|
756
756
|
] }) }) : null;
|
|
757
757
|
}, Se = ({ stream: i }) => {
|
|
758
758
|
const n = T(null);
|
|
@@ -826,12 +826,12 @@ const Me = ({
|
|
|
826
826
|
disclaimerText: r,
|
|
827
827
|
isLoading: a
|
|
828
828
|
}) => {
|
|
829
|
-
const l =
|
|
829
|
+
const l = P("--surface-brand-500");
|
|
830
830
|
return /* @__PURE__ */ e(u, { className: "IncodeTutorialPage", title: n, subtitle: t, children: [
|
|
831
831
|
/* @__PURE__ */ e("div", { class: "IncodeBaseTutorialContainer", children: /* @__PURE__ */ e("div", { class: "IncodeBaseTutorialAnimationContainer", children: /* @__PURE__ */ e(
|
|
832
832
|
Oe,
|
|
833
833
|
{
|
|
834
|
-
animationData:
|
|
834
|
+
animationData: x(
|
|
835
835
|
i,
|
|
836
836
|
l ?? "#006aff"
|
|
837
837
|
),
|
|
@@ -878,16 +878,16 @@ const Me = ({
|
|
|
878
878
|
onFinish: n,
|
|
879
879
|
onError: t
|
|
880
880
|
}) => {
|
|
881
|
-
const [s, o] =
|
|
881
|
+
const [s, o] = M(() => y({ config: i }));
|
|
882
882
|
return s.status === "idle" || s.status === "loading" ? null : s.status === "tutorial" ? /* @__PURE__ */ e(ye, { manager: o }) : s.status === "permissions" ? /* @__PURE__ */ e(
|
|
883
|
-
|
|
883
|
+
le,
|
|
884
884
|
{
|
|
885
885
|
manager: o,
|
|
886
886
|
permissionStatus: s.permissionStatus
|
|
887
887
|
}
|
|
888
888
|
) : s.status === "capture" ? /* @__PURE__ */ e(De, { manager: o, state: s, onFinish: () => n?.() }) : s.status === "finished" ? (n?.(), null) : s.status === "closed" ? (t?.(void 0), null) : (s.status === "error" && t?.(s.error), null);
|
|
889
|
-
}, Pe = ({ config: i, onFinish: n, onError: t }) => /* @__PURE__ */ e(
|
|
890
|
-
|
|
889
|
+
}, Pe = ({ config: i, onFinish: n, onError: t }) => /* @__PURE__ */ e(b, { children: i ? /* @__PURE__ */ e(Ae, { config: i, onFinish: n, onError: t }) : null });
|
|
890
|
+
O(Pe, "incode-selfie");
|
|
891
891
|
export {
|
|
892
892
|
Pe as Selfie
|
|
893
893
|
};
|