@incodetech/welcome 1.85.0-20251113153224.0 → 1.85.0-20251118131934.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 +304 -287
- package/dist/onBoarding.umd.js +104 -104
- package/package.json +1 -1
package/dist/onBoarding.mjs
CHANGED
|
@@ -7772,7 +7772,7 @@ function getProfile(Be) {
|
|
|
7772
7772
|
throw new Error(`Profile not found for type: ${Be}`);
|
|
7773
7773
|
return Le;
|
|
7774
7774
|
}
|
|
7775
|
-
const wasmVersion = "v2.12.
|
|
7775
|
+
const wasmVersion = "v2.12.31";
|
|
7776
7776
|
function generateBundle() {
|
|
7777
7777
|
const Be = getFeatureFlag("id_text_barcode_readability") ? PipelineProfileName.IdCapture_3_02 : getFeatureFlag("id_model_hebrew_back_id") ? PipelineProfileName.IdCapture_2_02 : PipelineProfileName.IdCapture_2_01, Le = PipelineProfileName.SelfieWithQualityMetrics, Ye = PipelineProfileName.SelfieVideoSelfie, tt = PipelineProfileName.IdVideoSelfie_2_01;
|
|
7778
7778
|
return [
|
|
@@ -8374,7 +8374,7 @@ class MlWasmJSApi {
|
|
|
8374
8374
|
);
|
|
8375
8375
|
}
|
|
8376
8376
|
}
|
|
8377
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8377
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251118131934.0";
|
|
8378
8378
|
function e$2(Be, Le) {
|
|
8379
8379
|
return function(Ye, tt) {
|
|
8380
8380
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -161755,7 +161755,266 @@ else {
|
|
|
161755
161755
|
}
|
|
161756
161756
|
};
|
|
161757
161757
|
}
|
|
161758
|
-
|
|
161758
|
+
let shouldShowCache = !mobile.isBrowserSupported();
|
|
161759
|
+
function useBrowserNotSupported() {
|
|
161760
|
+
const [Be, Le] = useState(shouldShowCache);
|
|
161761
|
+
function Ye() {
|
|
161762
|
+
Le(!1), shouldShowCache = !1;
|
|
161763
|
+
}
|
|
161764
|
+
return { shouldShow: Be, onContinue: Ye };
|
|
161765
|
+
}
|
|
161766
|
+
const isSurface$1 = isSurfaceTablet(), NotificationContainer = dt.div`
|
|
161767
|
+
border-radius: 20px;
|
|
161768
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
161769
|
+
color: white;
|
|
161770
|
+
padding: 15px 20px 15px 20px;
|
|
161771
|
+
position: fixed;
|
|
161772
|
+
top: 120px;
|
|
161773
|
+
left: 0;
|
|
161774
|
+
right: 0;
|
|
161775
|
+
display: ${(Be) => Be.isOpen ? "block" : "none"};
|
|
161776
|
+
max-width: calc(100% - 50px); // 40px are for the padding
|
|
161777
|
+
width: fit-content;
|
|
161778
|
+
margin: auto;
|
|
161779
|
+
box-sizing: content-box;
|
|
161780
|
+
|
|
161781
|
+
&:focus {
|
|
161782
|
+
outline: ${(Be) => Be.isOpen ? "auto" : "none"};
|
|
161783
|
+
}
|
|
161784
|
+
|
|
161785
|
+
&.center {
|
|
161786
|
+
font-size: 18px;
|
|
161787
|
+
|
|
161788
|
+
.icon {
|
|
161789
|
+
text-align: center;
|
|
161790
|
+
}
|
|
161791
|
+
|
|
161792
|
+
.notification-text {
|
|
161793
|
+
line-height: 1.5;
|
|
161794
|
+
margin: 0;
|
|
161795
|
+
}
|
|
161796
|
+
}
|
|
161797
|
+
|
|
161798
|
+
&.inline {
|
|
161799
|
+
display: flex;
|
|
161800
|
+
}
|
|
161801
|
+
|
|
161802
|
+
&.desktop {
|
|
161803
|
+
top: unset;
|
|
161804
|
+
padding: 0;
|
|
161805
|
+
background-color: transparent;
|
|
161806
|
+
color: #20263d;
|
|
161807
|
+
display: block;
|
|
161808
|
+
position: relative;
|
|
161809
|
+
}
|
|
161810
|
+
`, NotificationText = dt.div`
|
|
161811
|
+
text-align: center;
|
|
161812
|
+
|
|
161813
|
+
&.desktop {
|
|
161814
|
+
div {
|
|
161815
|
+
font-size: 24px;
|
|
161816
|
+
line-height: 22px;
|
|
161817
|
+
|
|
161818
|
+
&.surface {
|
|
161819
|
+
font-size: 55px;
|
|
161820
|
+
line-height: unset;
|
|
161821
|
+
}
|
|
161822
|
+
|
|
161823
|
+
div {
|
|
161824
|
+
margin-top: 10px;
|
|
161825
|
+
}
|
|
161826
|
+
}
|
|
161827
|
+
}
|
|
161828
|
+
`, DEFAULT_DURATION = 3e4, NotificationContext = createContext({}), reducer$1 = (Be, Le) => {
|
|
161829
|
+
switch (Le.type) {
|
|
161830
|
+
case "showNotification":
|
|
161831
|
+
return Be.isOpen ? Be : {
|
|
161832
|
+
...Be,
|
|
161833
|
+
children: Le.children,
|
|
161834
|
+
icon: Le.icon,
|
|
161835
|
+
isOpen: !0
|
|
161836
|
+
};
|
|
161837
|
+
case "showPriorityNotification":
|
|
161838
|
+
return window.clearTimeout(closeTimeout), {
|
|
161839
|
+
...Be,
|
|
161840
|
+
children: Le.children,
|
|
161841
|
+
icon: Le.icon,
|
|
161842
|
+
isOpen: !0
|
|
161843
|
+
};
|
|
161844
|
+
case "closeNotification":
|
|
161845
|
+
return {
|
|
161846
|
+
...Be,
|
|
161847
|
+
children: null,
|
|
161848
|
+
icon: "",
|
|
161849
|
+
isOpen: !1
|
|
161850
|
+
};
|
|
161851
|
+
default:
|
|
161852
|
+
return Be;
|
|
161853
|
+
}
|
|
161854
|
+
};
|
|
161855
|
+
let closeTimeout;
|
|
161856
|
+
const showNotification = (Be, Le) => (Ye, tt) => {
|
|
161857
|
+
Be({ type: Le, children: Ye, icon: tt }), closeTimeout = setTimeout(() => {
|
|
161858
|
+
closeNotification(Be);
|
|
161859
|
+
}, DEFAULT_DURATION);
|
|
161860
|
+
}, closeNotification = (Be) => {
|
|
161861
|
+
Be({ type: "closeNotification" });
|
|
161862
|
+
}, NotificationProvider = ({ children: Be, initialValue: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationContext.Provider, { value: useReducer(reducer$1, Le), children: Be }), useNotifications = () => {
|
|
161863
|
+
const [Be, Le] = useContext(NotificationContext);
|
|
161864
|
+
return {
|
|
161865
|
+
...Be,
|
|
161866
|
+
showNotification: useCallback(
|
|
161867
|
+
showNotification(Le, "showNotification"),
|
|
161868
|
+
[]
|
|
161869
|
+
),
|
|
161870
|
+
showPriorityNotification: useCallback(
|
|
161871
|
+
showNotification(Le, "showPriorityNotification"),
|
|
161872
|
+
[]
|
|
161873
|
+
),
|
|
161874
|
+
closeNotification: useCallback(
|
|
161875
|
+
() => closeNotification(Le),
|
|
161876
|
+
[Le]
|
|
161877
|
+
)
|
|
161878
|
+
};
|
|
161879
|
+
};
|
|
161880
|
+
function Portal({ children: Be }) {
|
|
161881
|
+
const Le = useRef(null), [, Ye] = useState();
|
|
161882
|
+
return useLayoutEffect(() => (Le.current = document.createElement("portal"), document.body.appendChild(Le.current), Ye({}), () => {
|
|
161883
|
+
Le.current && document.body.removeChild(Le.current);
|
|
161884
|
+
}), []), Le.current ? createPortal(Be, Le.current) : null;
|
|
161885
|
+
}
|
|
161886
|
+
function Notification$1({
|
|
161887
|
+
center: Be = !1,
|
|
161888
|
+
inline: Le = !0,
|
|
161889
|
+
noPortal: Ye = !1,
|
|
161890
|
+
isKiosk: tt = !1
|
|
161891
|
+
}) {
|
|
161892
|
+
const [{ isOpen: nt, children: ft }] = useContext(NotificationContext);
|
|
161893
|
+
return Ye ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
161894
|
+
NotificationContainer,
|
|
161895
|
+
{
|
|
161896
|
+
className: cx("IncodeNotificationContainer", {
|
|
161897
|
+
center: Be,
|
|
161898
|
+
inline: Le,
|
|
161899
|
+
desktop: mobile.isDesktop() || tt
|
|
161900
|
+
}),
|
|
161901
|
+
isOpen: nt,
|
|
161902
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
161903
|
+
NotificationText,
|
|
161904
|
+
{
|
|
161905
|
+
role: "alert",
|
|
161906
|
+
"aria-live": "assertive",
|
|
161907
|
+
className: cx({
|
|
161908
|
+
desktop: mobile.isDesktop() || tt,
|
|
161909
|
+
surface: isSurface$1
|
|
161910
|
+
}),
|
|
161911
|
+
children: ft
|
|
161912
|
+
}
|
|
161913
|
+
)
|
|
161914
|
+
}
|
|
161915
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
161916
|
+
NotificationContainer,
|
|
161917
|
+
{
|
|
161918
|
+
className: cx("IncodeNotificationContainer", {
|
|
161919
|
+
center: Be,
|
|
161920
|
+
inline: Le,
|
|
161921
|
+
desktop: mobile.isDesktop() || tt
|
|
161922
|
+
}),
|
|
161923
|
+
isOpen: nt,
|
|
161924
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
161925
|
+
NotificationText,
|
|
161926
|
+
{
|
|
161927
|
+
className: cx({
|
|
161928
|
+
desktop: mobile.isDesktop() || tt
|
|
161929
|
+
}),
|
|
161930
|
+
role: "alert",
|
|
161931
|
+
"aria-live": "assertive",
|
|
161932
|
+
children: ft
|
|
161933
|
+
}
|
|
161934
|
+
)
|
|
161935
|
+
}
|
|
161936
|
+
) });
|
|
161937
|
+
}
|
|
161938
|
+
const ReadyToRenderContext = createContext(void 0);
|
|
161939
|
+
function ReadyToRenderProvider({
|
|
161940
|
+
children: Be
|
|
161941
|
+
}) {
|
|
161942
|
+
const [Le, Ye] = useState(!1);
|
|
161943
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
161944
|
+
ReadyToRenderContext.Provider,
|
|
161945
|
+
{
|
|
161946
|
+
value: { isReadyToRender: Le, setisReadyToRender: Ye },
|
|
161947
|
+
children: Be
|
|
161948
|
+
}
|
|
161949
|
+
);
|
|
161950
|
+
}
|
|
161951
|
+
function useReadyToRender() {
|
|
161952
|
+
const Be = useContext(ReadyToRenderContext);
|
|
161953
|
+
if (Be === void 0)
|
|
161954
|
+
throw new Error(
|
|
161955
|
+
"useReadyToRender must be used within a ReadyToRenderProvider"
|
|
161956
|
+
);
|
|
161957
|
+
return Be;
|
|
161958
|
+
}
|
|
161959
|
+
const AppProvider = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.jsx(ot, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(I18nextProvider$1, { i18n, children: Be }) }), Container$g = dt.div`
|
|
161960
|
+
height: calc(var(--vh) * 100);
|
|
161961
|
+
width: 100vw;
|
|
161962
|
+
min-height: 500px;
|
|
161963
|
+
position: fixed;
|
|
161964
|
+
top: 0;
|
|
161965
|
+
left: 0;
|
|
161966
|
+
min-height: 100%;
|
|
161967
|
+
overflow: scroll;
|
|
161968
|
+
|
|
161969
|
+
&.is-desktop {
|
|
161970
|
+
position: relative;
|
|
161971
|
+
}
|
|
161972
|
+
|
|
161973
|
+
&.kiosk {
|
|
161974
|
+
width: 100%;
|
|
161975
|
+
height: 100%;
|
|
161976
|
+
position: relative;
|
|
161977
|
+
}
|
|
161978
|
+
|
|
161979
|
+
&.disable-full-screen {
|
|
161980
|
+
position: relative;
|
|
161981
|
+
height: 100%;
|
|
161982
|
+
}
|
|
161983
|
+
|
|
161984
|
+
* {
|
|
161985
|
+
box-sizing: border-box;
|
|
161986
|
+
}
|
|
161987
|
+
|
|
161988
|
+
.hidden {
|
|
161989
|
+
display: none;
|
|
161990
|
+
}
|
|
161991
|
+
`, App$1 = ({
|
|
161992
|
+
disableFullScreen: Be = !1,
|
|
161993
|
+
isKiosk: Le = !1,
|
|
161994
|
+
children: Ye,
|
|
161995
|
+
token: tt,
|
|
161996
|
+
style: nt,
|
|
161997
|
+
disableUnsupportedBrowserScreen: ft = !1
|
|
161998
|
+
}) => {
|
|
161999
|
+
const { isRotated: ht } = useOrientation(), { ready: gt } = useTranslation$1(), { shouldShow: At, onContinue: xt } = useBrowserNotSupported();
|
|
162000
|
+
return useResize(), useEffect(() => {
|
|
162001
|
+
tt && initialize(tt);
|
|
162002
|
+
}, [tt]), gt ? options.redirectFromUnsupportedBrowsers && At && !ft ? /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserNotSupported, { onContinue: xt, token: tt }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ReadyToRenderProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationProvider, { initialValue: { isOpen: !1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
162003
|
+
Container$g,
|
|
162004
|
+
{
|
|
162005
|
+
className: cx("IncodeDefaultComponentContainer", {
|
|
162006
|
+
"disable-full-screen": Be,
|
|
162007
|
+
"is-desktop": mobile.isDesktop(),
|
|
162008
|
+
kiosk: Le
|
|
162009
|
+
}),
|
|
162010
|
+
style: nt,
|
|
162011
|
+
children: [
|
|
162012
|
+
!!mobile.any() && !mobile.isIpad() && ht && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
|
|
162013
|
+
Ye
|
|
162014
|
+
]
|
|
162015
|
+
}
|
|
162016
|
+
) }) }) }) : null;
|
|
162017
|
+
}, UiConfigSchema = /* @__PURE__ */ object({
|
|
161759
162018
|
branding: /* @__PURE__ */ optional(
|
|
161760
162019
|
/* @__PURE__ */ object({
|
|
161761
162020
|
logo: /* @__PURE__ */ optional(
|
|
@@ -161786,7 +162045,7 @@ const UiConfigSchema = /* @__PURE__ */ object({
|
|
|
161786
162045
|
minimal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean$2())
|
|
161787
162046
|
})
|
|
161788
162047
|
)
|
|
161789
|
-
}), Container$
|
|
162048
|
+
}), Container$f = dt.div`
|
|
161790
162049
|
height: ${(Be) => Be.$height ? `${Be.$height}px` : `${window.innerHeight}px`};
|
|
161791
162050
|
width: ${(Be) => Be.$width ? `${Be.$width}px` : `${window.innerWidth}px`};
|
|
161792
162051
|
min-height: 100%;
|
|
@@ -161801,7 +162060,7 @@ const UiConfigSchema = /* @__PURE__ */ object({
|
|
|
161801
162060
|
width: Ye
|
|
161802
162061
|
}) => {
|
|
161803
162062
|
const { isRotated: tt } = useOrientation(), { ready: nt } = useTranslation$1();
|
|
161804
|
-
return nt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$
|
|
162063
|
+
return nt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$f, { $height: Le, $width: Ye, children: [
|
|
161805
162064
|
!!mobile.any() && !mobile.isIpad() && tt && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
|
|
161806
162065
|
Be
|
|
161807
162066
|
] }) : null;
|
|
@@ -172595,7 +172854,7 @@ const StyledPath = dt.path`
|
|
|
172595
172854
|
]
|
|
172596
172855
|
}
|
|
172597
172856
|
);
|
|
172598
|
-
}, Notification
|
|
172857
|
+
}, Notification = ({ detectionState: Be }) => {
|
|
172599
172858
|
const { t: Le } = useTranslation$1(), Ye = useTokens(), nt = {
|
|
172600
172859
|
noFace: Le("notifications.faceNotFound"),
|
|
172601
172860
|
tooManyFaces: Le("notifications.tooManyFaces"),
|
|
@@ -172792,7 +173051,7 @@ const StyledPath = dt.path`
|
|
|
172792
173051
|
}
|
|
172793
173052
|
),
|
|
172794
173053
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: 12, smSize: 4 }),
|
|
172795
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Notification
|
|
173054
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { detectionState: Wt }),
|
|
172796
173055
|
Wt === "manualCapture" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
172797
173056
|
CameraButtonComponent,
|
|
172798
173057
|
{
|
|
@@ -172941,13 +173200,14 @@ const StyledPath = dt.path`
|
|
|
172941
173200
|
"Expected HTMLElement"
|
|
172942
173201
|
);
|
|
172943
173202
|
function renderAuthFace(Be, Le) {
|
|
173203
|
+
var tt;
|
|
172944
173204
|
validate$2(
|
|
172945
173205
|
{ schema: HTMLElementSchema, value: Be },
|
|
172946
173206
|
{ schema: AuthFacePropsSchema, value: Le }
|
|
172947
173207
|
);
|
|
172948
173208
|
const Ye = createRoot(Be);
|
|
172949
173209
|
return customRender(
|
|
172950
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
173210
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: (tt = Le.session) == null ? void 0 : tt.token, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
172951
173211
|
AuthFace,
|
|
172952
173212
|
{
|
|
172953
173213
|
onSuccess: handleUnmountRoot(Le.onSuccess, Ye, Be),
|
|
@@ -172957,271 +173217,12 @@ function renderAuthFace(Be, Le) {
|
|
|
172957
173217
|
parentSize: Le.parentSize,
|
|
172958
173218
|
authHint: Le.authHint
|
|
172959
173219
|
}
|
|
172960
|
-
),
|
|
173220
|
+
) }),
|
|
172961
173221
|
Be,
|
|
172962
173222
|
Ye
|
|
172963
173223
|
), { close: handleUnmountRoot(emptyFunc, Ye, Be) };
|
|
172964
173224
|
}
|
|
172965
|
-
|
|
172966
|
-
function useBrowserNotSupported() {
|
|
172967
|
-
const [Be, Le] = useState(shouldShowCache);
|
|
172968
|
-
function Ye() {
|
|
172969
|
-
Le(!1), shouldShowCache = !1;
|
|
172970
|
-
}
|
|
172971
|
-
return { shouldShow: Be, onContinue: Ye };
|
|
172972
|
-
}
|
|
172973
|
-
const isSurface$1 = isSurfaceTablet(), NotificationContainer = dt.div`
|
|
172974
|
-
border-radius: 20px;
|
|
172975
|
-
background-color: rgba(0, 0, 0, 0.8);
|
|
172976
|
-
color: white;
|
|
172977
|
-
padding: 15px 20px 15px 20px;
|
|
172978
|
-
position: fixed;
|
|
172979
|
-
top: 120px;
|
|
172980
|
-
left: 0;
|
|
172981
|
-
right: 0;
|
|
172982
|
-
display: ${(Be) => Be.isOpen ? "block" : "none"};
|
|
172983
|
-
max-width: calc(100% - 50px); // 40px are for the padding
|
|
172984
|
-
width: fit-content;
|
|
172985
|
-
margin: auto;
|
|
172986
|
-
box-sizing: content-box;
|
|
172987
|
-
|
|
172988
|
-
&:focus {
|
|
172989
|
-
outline: ${(Be) => Be.isOpen ? "auto" : "none"};
|
|
172990
|
-
}
|
|
172991
|
-
|
|
172992
|
-
&.center {
|
|
172993
|
-
font-size: 18px;
|
|
172994
|
-
|
|
172995
|
-
.icon {
|
|
172996
|
-
text-align: center;
|
|
172997
|
-
}
|
|
172998
|
-
|
|
172999
|
-
.notification-text {
|
|
173000
|
-
line-height: 1.5;
|
|
173001
|
-
margin: 0;
|
|
173002
|
-
}
|
|
173003
|
-
}
|
|
173004
|
-
|
|
173005
|
-
&.inline {
|
|
173006
|
-
display: flex;
|
|
173007
|
-
}
|
|
173008
|
-
|
|
173009
|
-
&.desktop {
|
|
173010
|
-
top: unset;
|
|
173011
|
-
padding: 0;
|
|
173012
|
-
background-color: transparent;
|
|
173013
|
-
color: #20263d;
|
|
173014
|
-
display: block;
|
|
173015
|
-
position: relative;
|
|
173016
|
-
}
|
|
173017
|
-
`, NotificationText = dt.div`
|
|
173018
|
-
text-align: center;
|
|
173019
|
-
|
|
173020
|
-
&.desktop {
|
|
173021
|
-
div {
|
|
173022
|
-
font-size: 24px;
|
|
173023
|
-
line-height: 22px;
|
|
173024
|
-
|
|
173025
|
-
&.surface {
|
|
173026
|
-
font-size: 55px;
|
|
173027
|
-
line-height: unset;
|
|
173028
|
-
}
|
|
173029
|
-
|
|
173030
|
-
div {
|
|
173031
|
-
margin-top: 10px;
|
|
173032
|
-
}
|
|
173033
|
-
}
|
|
173034
|
-
}
|
|
173035
|
-
`, DEFAULT_DURATION = 3e4, NotificationContext = createContext({}), reducer$1 = (Be, Le) => {
|
|
173036
|
-
switch (Le.type) {
|
|
173037
|
-
case "showNotification":
|
|
173038
|
-
return Be.isOpen ? Be : {
|
|
173039
|
-
...Be,
|
|
173040
|
-
children: Le.children,
|
|
173041
|
-
icon: Le.icon,
|
|
173042
|
-
isOpen: !0
|
|
173043
|
-
};
|
|
173044
|
-
case "showPriorityNotification":
|
|
173045
|
-
return window.clearTimeout(closeTimeout), {
|
|
173046
|
-
...Be,
|
|
173047
|
-
children: Le.children,
|
|
173048
|
-
icon: Le.icon,
|
|
173049
|
-
isOpen: !0
|
|
173050
|
-
};
|
|
173051
|
-
case "closeNotification":
|
|
173052
|
-
return {
|
|
173053
|
-
...Be,
|
|
173054
|
-
children: null,
|
|
173055
|
-
icon: "",
|
|
173056
|
-
isOpen: !1
|
|
173057
|
-
};
|
|
173058
|
-
default:
|
|
173059
|
-
return Be;
|
|
173060
|
-
}
|
|
173061
|
-
};
|
|
173062
|
-
let closeTimeout;
|
|
173063
|
-
const showNotification = (Be, Le) => (Ye, tt) => {
|
|
173064
|
-
Be({ type: Le, children: Ye, icon: tt }), closeTimeout = setTimeout(() => {
|
|
173065
|
-
closeNotification(Be);
|
|
173066
|
-
}, DEFAULT_DURATION);
|
|
173067
|
-
}, closeNotification = (Be) => {
|
|
173068
|
-
Be({ type: "closeNotification" });
|
|
173069
|
-
}, NotificationProvider = ({ children: Be, initialValue: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationContext.Provider, { value: useReducer(reducer$1, Le), children: Be }), useNotifications = () => {
|
|
173070
|
-
const [Be, Le] = useContext(NotificationContext);
|
|
173071
|
-
return {
|
|
173072
|
-
...Be,
|
|
173073
|
-
showNotification: useCallback(
|
|
173074
|
-
showNotification(Le, "showNotification"),
|
|
173075
|
-
[]
|
|
173076
|
-
),
|
|
173077
|
-
showPriorityNotification: useCallback(
|
|
173078
|
-
showNotification(Le, "showPriorityNotification"),
|
|
173079
|
-
[]
|
|
173080
|
-
),
|
|
173081
|
-
closeNotification: useCallback(
|
|
173082
|
-
() => closeNotification(Le),
|
|
173083
|
-
[Le]
|
|
173084
|
-
)
|
|
173085
|
-
};
|
|
173086
|
-
};
|
|
173087
|
-
function Portal({ children: Be }) {
|
|
173088
|
-
const Le = useRef(null), [, Ye] = useState();
|
|
173089
|
-
return useLayoutEffect(() => (Le.current = document.createElement("portal"), document.body.appendChild(Le.current), Ye({}), () => {
|
|
173090
|
-
Le.current && document.body.removeChild(Le.current);
|
|
173091
|
-
}), []), Le.current ? createPortal(Be, Le.current) : null;
|
|
173092
|
-
}
|
|
173093
|
-
function Notification({
|
|
173094
|
-
center: Be = !1,
|
|
173095
|
-
inline: Le = !0,
|
|
173096
|
-
noPortal: Ye = !1,
|
|
173097
|
-
isKiosk: tt = !1
|
|
173098
|
-
}) {
|
|
173099
|
-
const [{ isOpen: nt, children: ft }] = useContext(NotificationContext);
|
|
173100
|
-
return Ye ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
173101
|
-
NotificationContainer,
|
|
173102
|
-
{
|
|
173103
|
-
className: cx("IncodeNotificationContainer", {
|
|
173104
|
-
center: Be,
|
|
173105
|
-
inline: Le,
|
|
173106
|
-
desktop: mobile.isDesktop() || tt
|
|
173107
|
-
}),
|
|
173108
|
-
isOpen: nt,
|
|
173109
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
173110
|
-
NotificationText,
|
|
173111
|
-
{
|
|
173112
|
-
role: "alert",
|
|
173113
|
-
"aria-live": "assertive",
|
|
173114
|
-
className: cx({
|
|
173115
|
-
desktop: mobile.isDesktop() || tt,
|
|
173116
|
-
surface: isSurface$1
|
|
173117
|
-
}),
|
|
173118
|
-
children: ft
|
|
173119
|
-
}
|
|
173120
|
-
)
|
|
173121
|
-
}
|
|
173122
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
173123
|
-
NotificationContainer,
|
|
173124
|
-
{
|
|
173125
|
-
className: cx("IncodeNotificationContainer", {
|
|
173126
|
-
center: Be,
|
|
173127
|
-
inline: Le,
|
|
173128
|
-
desktop: mobile.isDesktop() || tt
|
|
173129
|
-
}),
|
|
173130
|
-
isOpen: nt,
|
|
173131
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
173132
|
-
NotificationText,
|
|
173133
|
-
{
|
|
173134
|
-
className: cx({
|
|
173135
|
-
desktop: mobile.isDesktop() || tt
|
|
173136
|
-
}),
|
|
173137
|
-
role: "alert",
|
|
173138
|
-
"aria-live": "assertive",
|
|
173139
|
-
children: ft
|
|
173140
|
-
}
|
|
173141
|
-
)
|
|
173142
|
-
}
|
|
173143
|
-
) });
|
|
173144
|
-
}
|
|
173145
|
-
const ReadyToRenderContext = createContext(void 0);
|
|
173146
|
-
function ReadyToRenderProvider({
|
|
173147
|
-
children: Be
|
|
173148
|
-
}) {
|
|
173149
|
-
const [Le, Ye] = useState(!1);
|
|
173150
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
173151
|
-
ReadyToRenderContext.Provider,
|
|
173152
|
-
{
|
|
173153
|
-
value: { isReadyToRender: Le, setisReadyToRender: Ye },
|
|
173154
|
-
children: Be
|
|
173155
|
-
}
|
|
173156
|
-
);
|
|
173157
|
-
}
|
|
173158
|
-
function useReadyToRender() {
|
|
173159
|
-
const Be = useContext(ReadyToRenderContext);
|
|
173160
|
-
if (Be === void 0)
|
|
173161
|
-
throw new Error(
|
|
173162
|
-
"useReadyToRender must be used within a ReadyToRenderProvider"
|
|
173163
|
-
);
|
|
173164
|
-
return Be;
|
|
173165
|
-
}
|
|
173166
|
-
const AppProvider = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.jsx(ot, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(I18nextProvider$1, { i18n, children: Be }) }), Container$f = dt.div`
|
|
173167
|
-
height: calc(var(--vh) * 100);
|
|
173168
|
-
width: 100vw;
|
|
173169
|
-
min-height: 500px;
|
|
173170
|
-
position: fixed;
|
|
173171
|
-
top: 0;
|
|
173172
|
-
left: 0;
|
|
173173
|
-
min-height: 100%;
|
|
173174
|
-
overflow: scroll;
|
|
173175
|
-
|
|
173176
|
-
&.is-desktop {
|
|
173177
|
-
position: relative;
|
|
173178
|
-
}
|
|
173179
|
-
|
|
173180
|
-
&.kiosk {
|
|
173181
|
-
width: 100%;
|
|
173182
|
-
height: 100%;
|
|
173183
|
-
position: relative;
|
|
173184
|
-
}
|
|
173185
|
-
|
|
173186
|
-
&.disable-full-screen {
|
|
173187
|
-
position: relative;
|
|
173188
|
-
height: 100%;
|
|
173189
|
-
}
|
|
173190
|
-
|
|
173191
|
-
* {
|
|
173192
|
-
box-sizing: border-box;
|
|
173193
|
-
}
|
|
173194
|
-
|
|
173195
|
-
.hidden {
|
|
173196
|
-
display: none;
|
|
173197
|
-
}
|
|
173198
|
-
`, App$1 = ({
|
|
173199
|
-
disableFullScreen: Be = !1,
|
|
173200
|
-
isKiosk: Le = !1,
|
|
173201
|
-
children: Ye,
|
|
173202
|
-
token: tt,
|
|
173203
|
-
style: nt,
|
|
173204
|
-
disableUnsupportedBrowserScreen: ft = !1
|
|
173205
|
-
}) => {
|
|
173206
|
-
const { isRotated: ht } = useOrientation(), { ready: gt } = useTranslation$1(), { shouldShow: At, onContinue: xt } = useBrowserNotSupported();
|
|
173207
|
-
return useResize(), useEffect(() => {
|
|
173208
|
-
tt && initialize(tt);
|
|
173209
|
-
}, [tt]), gt ? options.redirectFromUnsupportedBrowsers && At && !ft ? /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserNotSupported, { onContinue: xt, token: tt }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ReadyToRenderProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationProvider, { initialValue: { isOpen: !1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
173210
|
-
Container$f,
|
|
173211
|
-
{
|
|
173212
|
-
className: cx("IncodeDefaultComponentContainer", {
|
|
173213
|
-
"disable-full-screen": Be,
|
|
173214
|
-
"is-desktop": mobile.isDesktop(),
|
|
173215
|
-
kiosk: Le
|
|
173216
|
-
}),
|
|
173217
|
-
style: nt,
|
|
173218
|
-
children: [
|
|
173219
|
-
!!mobile.any() && !mobile.isIpad() && ht && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
|
|
173220
|
-
Ye
|
|
173221
|
-
]
|
|
173222
|
-
}
|
|
173223
|
-
) }) }) }) : null;
|
|
173224
|
-
}, FaceFlow$1 = ({
|
|
173225
|
+
const FaceFlow$1 = ({
|
|
173225
173226
|
onSuccess: Be,
|
|
173226
173227
|
onError: Le,
|
|
173227
173228
|
session: Ye,
|
|
@@ -194847,7 +194848,7 @@ function CaptureId$3({
|
|
|
194847
194848
|
kiosk: !0
|
|
194848
194849
|
}),
|
|
194849
194850
|
children: !$0 && !Qn.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
194850
|
-
Notification,
|
|
194851
|
+
Notification$1,
|
|
194851
194852
|
{
|
|
194852
194853
|
inline: !0,
|
|
194853
194854
|
center: !0,
|
|
@@ -194995,7 +194996,7 @@ function CaptureId$3({
|
|
|
194995
194996
|
className: cx({
|
|
194996
194997
|
surface: isSurface
|
|
194997
194998
|
}),
|
|
194998
|
-
children: !$0 && !Qn.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { inline: !0, center: !0, noPortal: !0 })
|
|
194999
|
+
children: !$0 && !Qn.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification$1, { inline: !0, center: !0, noPortal: !0 })
|
|
194999
195000
|
}
|
|
195000
195001
|
),
|
|
195001
195002
|
!$0 && !Qn.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(NativeButton, { onClick: Os, className: "IncodeNeedHelpButton", children: [
|
|
@@ -195246,7 +195247,7 @@ function CaptureId$3({
|
|
|
195246
195247
|
}
|
|
195247
195248
|
),
|
|
195248
195249
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "step__video-overlay" }),
|
|
195249
|
-
!$0 && !Qn.isOpen && !a0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { inline: !1, center: !0 })
|
|
195250
|
+
!$0 && !Qn.isOpen && !a0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification$1, { inline: !1, center: !0 })
|
|
195250
195251
|
] }),
|
|
195251
195252
|
/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame" })
|
|
195252
195253
|
] });
|
|
@@ -195794,15 +195795,23 @@ const ShowInstructions = ({
|
|
|
195794
195795
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: (Le = Be.session) == null ? void 0 : Le.token, uiConfig: Be.uiConfig, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureFaceInside, { ...Be }) });
|
|
195795
195796
|
};
|
|
195796
195797
|
function renderCaptureFace(Be, { onSuccess: Le, onError: Ye, onCapture: tt, ...nt }) {
|
|
195798
|
+
var ht;
|
|
195797
195799
|
const ft = createRoot(Be);
|
|
195798
195800
|
return customRender(
|
|
195799
195801
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
195800
|
-
|
|
195802
|
+
App$1,
|
|
195801
195803
|
{
|
|
195802
|
-
|
|
195803
|
-
|
|
195804
|
-
|
|
195805
|
-
|
|
195804
|
+
token: (ht = nt.session) == null ? void 0 : ht.token,
|
|
195805
|
+
disableUnsupportedBrowserScreen: nt.disableUnsupportedBrowserScreen,
|
|
195806
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
195807
|
+
CaptureFace,
|
|
195808
|
+
{
|
|
195809
|
+
onSuccess: handleUnmountRoot(Le, ft, Be),
|
|
195810
|
+
onError: handleUnmountRoot(Ye, ft, Be),
|
|
195811
|
+
onCapture: tt ? handleUnmountRoot(tt, ft, Be) : void 0,
|
|
195812
|
+
...nt
|
|
195813
|
+
}
|
|
195814
|
+
)
|
|
195806
195815
|
}
|
|
195807
195816
|
),
|
|
195808
195817
|
Be,
|
|
@@ -259550,15 +259559,23 @@ path {
|
|
|
259550
259559
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: (Le = Be.session) == null ? void 0 : Le.token, uiConfig: Be.uiConfig, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureIdInside, { ...Be }) });
|
|
259551
259560
|
};
|
|
259552
259561
|
function renderCaptureId(Be, { onSuccess: Le, onError: Ye, onCapture: tt, ...nt }) {
|
|
259562
|
+
var ht;
|
|
259553
259563
|
const ft = createRoot$1(Be);
|
|
259554
259564
|
return customRender(
|
|
259555
259565
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
259556
|
-
|
|
259566
|
+
App$1,
|
|
259557
259567
|
{
|
|
259558
|
-
|
|
259559
|
-
|
|
259560
|
-
|
|
259561
|
-
|
|
259568
|
+
token: (ht = nt.session) == null ? void 0 : ht.token,
|
|
259569
|
+
disableUnsupportedBrowserScreen: nt.disableUnsupportedBrowserScreen,
|
|
259570
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
259571
|
+
CaptureId,
|
|
259572
|
+
{
|
|
259573
|
+
onSuccess: handleUnmountRoot(Le, ft, Be),
|
|
259574
|
+
onError: handleUnmountRoot(Ye, ft, Be),
|
|
259575
|
+
onCapture: tt ? handleUnmountRoot(tt, ft, Be) : void 0,
|
|
259576
|
+
...nt
|
|
259577
|
+
}
|
|
259578
|
+
)
|
|
259562
259579
|
}
|
|
259563
259580
|
),
|
|
259564
259581
|
Be,
|
|
@@ -304575,7 +304592,7 @@ function renderConference(Be, {
|
|
|
304575
304592
|
onError: handleUnmountRoot(Et, yt, Be)
|
|
304576
304593
|
};
|
|
304577
304594
|
return customRender(
|
|
304578
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
304595
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: Le, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
304579
304596
|
ConferenceApp,
|
|
304580
304597
|
{
|
|
304581
304598
|
token: Le,
|
|
@@ -359614,7 +359631,7 @@ function AdditionalId({
|
|
|
359614
359631
|
) }),
|
|
359615
359632
|
/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame", hidden: !0 }),
|
|
359616
359633
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
359617
|
-
Notification,
|
|
359634
|
+
Notification$1,
|
|
359618
359635
|
{
|
|
359619
359636
|
inline: !1,
|
|
359620
359637
|
center: !0,
|
|
@@ -364415,7 +364432,7 @@ function renderVideoSelfie(Be, {
|
|
|
364415
364432
|
onError: handleUnmountRoot(Tt, Pt, Be)
|
|
364416
364433
|
};
|
|
364417
364434
|
customRender(
|
|
364418
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
364435
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: Le.token, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
364419
364436
|
Recorder,
|
|
364420
364437
|
{
|
|
364421
364438
|
onBoarding: this,
|
|
@@ -364443,7 +364460,7 @@ function renderVideoSelfie(Be, {
|
|
|
364443
364460
|
questionsCount: Ct,
|
|
364444
364461
|
useOpenVidu: kt
|
|
364445
364462
|
}
|
|
364446
|
-
),
|
|
364463
|
+
) }),
|
|
364447
364464
|
Be,
|
|
364448
364465
|
Pt
|
|
364449
364466
|
);
|
|
@@ -373148,7 +373165,7 @@ function CameraPaperStatement({
|
|
|
373148
373165
|
),
|
|
373149
373166
|
/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame", hidden: !0 }),
|
|
373150
373167
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
373151
|
-
Notification,
|
|
373168
|
+
Notification$1,
|
|
373152
373169
|
{
|
|
373153
373170
|
className: "IncodeCaptureDocumentNotification",
|
|
373154
373171
|
inline: !1,
|