@incodetech/welcome 1.85.0-20251103134647.0 → 1.85.0-20251103180248.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-20251103180248.0";
|
|
8376
8376
|
function e$2(Be, Le) {
|
|
8377
8377
|
return function(Ye, tt) {
|
|
8378
8378
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -179703,15 +179703,15 @@ const faceFlowManager = new FaceFlowManager(), useFaceFlowState = () => {
|
|
|
179703
179703
|
onClose: Le,
|
|
179704
179704
|
isLoading: Ye
|
|
179705
179705
|
}) => {
|
|
179706
|
-
const { t: tt } = useTranslation$1(), { uiConfig: nt } = useFaceFlowState();
|
|
179706
|
+
const { t: tt } = useTranslation$1(), { uiConfig: nt, captureConfiguration: ft } = useFaceFlowState();
|
|
179707
179707
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
179708
179708
|
BaseTutorial,
|
|
179709
179709
|
{
|
|
179710
|
-
title: tt("face.tutorial.title"),
|
|
179711
|
-
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"),
|
|
179712
179712
|
animationData: tutorialAnimationJson$2,
|
|
179713
179713
|
onContinue: Be,
|
|
179714
|
-
buttonText: tt("face.tutorial.startCapture"),
|
|
179714
|
+
buttonText: ft.ageAssurance ? tt("face.tutorial.ageAssuranceStartCapture") : tt("face.tutorial.startCapture"),
|
|
179715
179715
|
disclaimerText: tt("face.tutorial.autoCapture"),
|
|
179716
179716
|
uiConfig: nt,
|
|
179717
179717
|
onClose: Le,
|
|
@@ -180088,13 +180088,14 @@ const FaceFlowPage = (Be) => {
|
|
|
180088
180088
|
...Be
|
|
180089
180089
|
}
|
|
180090
180090
|
);
|
|
180091
|
-
}, 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 = ({
|
|
180092
180092
|
detectionState: Be,
|
|
180093
180093
|
showPreview: Le,
|
|
180094
180094
|
capturedImage: Ye,
|
|
180095
|
-
captureOnly: tt
|
|
180095
|
+
captureOnly: tt,
|
|
180096
|
+
ageAssurance: nt
|
|
180096
180097
|
}) => {
|
|
180097
|
-
const
|
|
180098
|
+
const ft = useTokens(), { t: ht } = useTranslation$1();
|
|
180098
180099
|
return Be !== "capturing" && Be !== "success" ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
180099
180100
|
Flex,
|
|
180100
180101
|
{
|
|
@@ -180110,10 +180111,10 @@ const FaceFlowPage = (Be) => {
|
|
|
180110
180111
|
children: Le ? /* @__PURE__ */ jsxRuntimeExports.jsx(PreviewImage, { src: `data:image/jpeg;base64,${Ye}` }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
180111
180112
|
Text$8,
|
|
180112
180113
|
{
|
|
180113
|
-
fontSize:
|
|
180114
|
+
fontSize: ft.typography.fontSize["3xl"],
|
|
180114
180115
|
fontWeight: "bold",
|
|
180115
|
-
color:
|
|
180116
|
-
children: getText(Be,
|
|
180116
|
+
color: ft.primitives.color.gray[800],
|
|
180117
|
+
children: getText(Be, ht, tt, nt)
|
|
180117
180118
|
}
|
|
180118
180119
|
)
|
|
180119
180120
|
}
|
|
@@ -180668,7 +180669,8 @@ const StyledPath = dt.path`
|
|
|
180668
180669
|
detectionState: Wt,
|
|
180669
180670
|
showPreview: At.showPreview,
|
|
180670
180671
|
capturedImage: Ut,
|
|
180671
|
-
captureOnly: yt
|
|
180672
|
+
captureOnly: yt,
|
|
180673
|
+
ageAssurance: At.ageAssurance
|
|
180672
180674
|
}
|
|
180673
180675
|
),
|
|
180674
180676
|
It === "ready" && /* @__PURE__ */ jsxRuntimeExports.jsx(FaceOutline, { height: "100%" }),
|
|
@@ -307583,7 +307585,7 @@ const poaImage$1 = "data:image/svg+xml,%3csvg%20width='232'%20height='223'%20vie
|
|
|
307583
307585
|
const i0 = await getScaledImageFromFile(Yt.target.files[0]);
|
|
307584
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 = "");
|
|
307585
307587
|
}, Ft = () => {
|
|
307586
|
-
$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);
|
|
307587
307589
|
};
|
|
307588
307590
|
function Xt() {
|
|
307589
307591
|
ft !== -1 && Lt.current >= ft ? ht("skip") : Ft();
|
|
@@ -382103,7 +382105,13 @@ const getDeviceRiskModuleConfiguration = async (Be) => api.get("/omni/device-ris
|
|
|
382103
382105
|
isSandbox: Le = !0,
|
|
382104
382106
|
interviewId: Ye
|
|
382105
382107
|
}) => {
|
|
382106
|
-
const { customFields: tt } = await getCustomFields({ token: Be })
|
|
382108
|
+
const { customFields: tt } = await getCustomFields({ token: Be }).catch(() => ({
|
|
382109
|
+
customFields: {
|
|
382110
|
+
SardineClientID: void 0,
|
|
382111
|
+
SardineSessionKey: void 0,
|
|
382112
|
+
SardineUserID: void 0
|
|
382113
|
+
}
|
|
382114
|
+
}));
|
|
382107
382115
|
if (shouldDoSardineContextFromSardine(tt))
|
|
382108
382116
|
return await loadSardineSDK(Le), createSardineContextFromSardine({
|
|
382109
382117
|
sardineClientId: tt.SardineClientID,
|