@incodetech/welcome 1.85.0-20251031231234.0 → 1.85.0-20251103151517.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.
package/dist/onBoarding.mjs
CHANGED
|
@@ -8372,7 +8372,7 @@ class MlWasmJSApi {
|
|
|
8372
8372
|
);
|
|
8373
8373
|
}
|
|
8374
8374
|
}
|
|
8375
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8375
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251103151517.0";
|
|
8376
8376
|
function e$2(Be, Le) {
|
|
8377
8377
|
return function(Ye, tt) {
|
|
8378
8378
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -23219,14 +23219,16 @@ const initialState = {
|
|
|
23219
23219
|
} = useToggle(!1);
|
|
23220
23220
|
useEffect(() => {
|
|
23221
23221
|
It(Array.from(kt.values()));
|
|
23222
|
-
const
|
|
23223
|
-
Rt(
|
|
23222
|
+
const qt = kt.get(Be) ?? kt.get("MX");
|
|
23223
|
+
Rt(qt);
|
|
23224
23224
|
}, [Be, kt]), useLayoutEffect(() => {
|
|
23225
23225
|
Dt && Pt.current && Bt.current && (Pt.current.style.left = "0", Pt.current.style.top = `${Bt.current.offsetHeight}px`);
|
|
23226
23226
|
}, [Dt]);
|
|
23227
|
-
const Wt = (
|
|
23228
|
-
const
|
|
23229
|
-
Lt(),
|
|
23227
|
+
const Wt = (qt) => {
|
|
23228
|
+
const Ht = bt(qt);
|
|
23229
|
+
Lt(), Ht && Rt(Ht);
|
|
23230
|
+
}, $t = (qt) => {
|
|
23231
|
+
qt.preventDefault(), yt || Ot();
|
|
23230
23232
|
};
|
|
23231
23233
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PhoneContextProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(PhoneContainer$1, { className: "phone-container", children: [
|
|
23232
23234
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(PhoneSelectorWrapper, { className: "phone-container", children: [
|
|
@@ -23241,7 +23243,7 @@ const initialState = {
|
|
|
23241
23243
|
CountryButtonSelector,
|
|
23242
23244
|
{
|
|
23243
23245
|
role: "combobox",
|
|
23244
|
-
onClick:
|
|
23246
|
+
onClick: $t,
|
|
23245
23247
|
"aria-expanded": Dt,
|
|
23246
23248
|
"aria-controls": "country-list",
|
|
23247
23249
|
"aria-haspopup": "listbox",
|
|
@@ -179701,15 +179703,15 @@ const faceFlowManager = new FaceFlowManager(), useFaceFlowState = () => {
|
|
|
179701
179703
|
onClose: Le,
|
|
179702
179704
|
isLoading: Ye
|
|
179703
179705
|
}) => {
|
|
179704
|
-
const { t: tt } = useTranslation$1(), { uiConfig: nt } = useFaceFlowState();
|
|
179706
|
+
const { t: tt } = useTranslation$1(), { uiConfig: nt, captureConfiguration: ft } = useFaceFlowState();
|
|
179705
179707
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
179706
179708
|
BaseTutorial,
|
|
179707
179709
|
{
|
|
179708
|
-
title: tt("face.tutorial.title"),
|
|
179709
|
-
subtitle: tt("face.tutorial.subtitle"),
|
|
179710
|
+
title: ft.ageAssurance ? tt("face.tutorial.ageAssuranceTitle") : tt("face.tutorial.title"),
|
|
179711
|
+
subtitle: ft.ageAssurance ? tt("face.tutorial.ageAssuranceSubtitle") : tt("face.tutorial.subtitle"),
|
|
179710
179712
|
animationData: tutorialAnimationJson$2,
|
|
179711
179713
|
onContinue: Be,
|
|
179712
|
-
buttonText: tt("face.tutorial.startCapture"),
|
|
179714
|
+
buttonText: ft.ageAssurance ? tt("face.tutorial.ageAssuranceStartCapture") : tt("face.tutorial.startCapture"),
|
|
179713
179715
|
disclaimerText: tt("face.tutorial.autoCapture"),
|
|
179714
179716
|
uiConfig: nt,
|
|
179715
179717
|
onClose: Le,
|
|
@@ -180086,13 +180088,14 @@ const FaceFlowPage = (Be) => {
|
|
|
180086
180088
|
...Be
|
|
180087
180089
|
}
|
|
180088
180090
|
);
|
|
180089
|
-
}, getText = (Be, Le, Ye) => Le(Be === "capturing" ? Ye ? "idv2.capture.processing.processing" : "idv2.capture.processing.uploading" : "idv2.capture.processing.success"), CaptureOverlay$1 = ({
|
|
180091
|
+
}, getText = (Be, Le, Ye, tt) => Le(Be === "capturing" ? tt ? "idv2.capture.processing.verifying" : Ye ? "idv2.capture.processing.processing" : "idv2.capture.processing.uploading" : "idv2.capture.processing.success"), CaptureOverlay$1 = ({
|
|
180090
180092
|
detectionState: Be,
|
|
180091
180093
|
showPreview: Le,
|
|
180092
180094
|
capturedImage: Ye,
|
|
180093
|
-
captureOnly: tt
|
|
180095
|
+
captureOnly: tt,
|
|
180096
|
+
ageAssurance: nt
|
|
180094
180097
|
}) => {
|
|
180095
|
-
const
|
|
180098
|
+
const ft = useTokens(), { t: ht } = useTranslation$1();
|
|
180096
180099
|
return Be !== "capturing" && Be !== "success" ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
180097
180100
|
Flex,
|
|
180098
180101
|
{
|
|
@@ -180108,10 +180111,10 @@ const FaceFlowPage = (Be) => {
|
|
|
180108
180111
|
children: Le ? /* @__PURE__ */ jsxRuntimeExports.jsx(PreviewImage, { src: `data:image/jpeg;base64,${Ye}` }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
180109
180112
|
Text$8,
|
|
180110
180113
|
{
|
|
180111
|
-
fontSize:
|
|
180114
|
+
fontSize: ft.typography.fontSize["3xl"],
|
|
180112
180115
|
fontWeight: "bold",
|
|
180113
|
-
color:
|
|
180114
|
-
children: getText(Be,
|
|
180116
|
+
color: ft.primitives.color.gray[800],
|
|
180117
|
+
children: getText(Be, ht, tt, nt)
|
|
180115
180118
|
}
|
|
180116
180119
|
)
|
|
180117
180120
|
}
|
|
@@ -180666,7 +180669,8 @@ const StyledPath = dt.path`
|
|
|
180666
180669
|
detectionState: Wt,
|
|
180667
180670
|
showPreview: At.showPreview,
|
|
180668
180671
|
capturedImage: Ut,
|
|
180669
|
-
captureOnly: yt
|
|
180672
|
+
captureOnly: yt,
|
|
180673
|
+
ageAssurance: At.ageAssurance
|
|
180670
180674
|
}
|
|
180671
180675
|
),
|
|
180672
180676
|
It === "ready" && /* @__PURE__ */ jsxRuntimeExports.jsx(FaceOutline, { height: "100%" }),
|
|
@@ -307581,7 +307585,7 @@ const poaImage$1 = "data:image/svg+xml,%3csvg%20width='232'%20height='223'%20vie
|
|
|
307581
307585
|
const i0 = await getScaledImageFromFile(Yt.target.files[0]);
|
|
307582
307586
|
i0 && (((t0 = i0.fullImage) == null ? void 0 : t0.size) > FILE_SIZE_LIMIT$1 ? It(yt("nativeCamera.maximumSize")) : (It(""), Yt.target.value = null, Ot(i0), $t(!0)), Yt.currentTarget.value = "");
|
|
307583
307587
|
}, Ft = () => {
|
|
307584
|
-
$t(!1), vt(!1), bt(0), Rt(!1), Pt(null), Ot(null)
|
|
307588
|
+
$t(!1), vt(!1), bt(0), Rt(!1), Pt(null), Ot(null);
|
|
307585
307589
|
};
|
|
307586
307590
|
function Xt() {
|
|
307587
307591
|
ft !== -1 && Lt.current >= ft ? ht("skip") : Ft();
|