@incodetech/welcome 1.85.0-rc.20251118133216 → 1.85.0-rc.20251118170350
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 +282 -265
- package/dist/onBoarding.umd.js +104 -104
- package/package.json +1 -1
package/dist/onBoarding.mjs
CHANGED
|
@@ -8374,7 +8374,7 @@ class MlWasmJSApi {
|
|
|
8374
8374
|
);
|
|
8375
8375
|
}
|
|
8376
8376
|
}
|
|
8377
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-rc.
|
|
8377
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-rc.20251118170350";
|
|
8378
8378
|
function e$2(Be, Le) {
|
|
8379
8379
|
return function(Ye, tt) {
|
|
8380
8380
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -169704,7 +169704,245 @@ else {
|
|
|
169704
169704
|
}
|
|
169705
169705
|
};
|
|
169706
169706
|
}
|
|
169707
|
-
|
|
169707
|
+
let shouldShowCache = !mobile.isBrowserSupported();
|
|
169708
|
+
function useBrowserNotSupported() {
|
|
169709
|
+
const [Be, Le] = useState(shouldShowCache);
|
|
169710
|
+
function Ye() {
|
|
169711
|
+
Le(!1), shouldShowCache = !1;
|
|
169712
|
+
}
|
|
169713
|
+
return { shouldShow: Be, onContinue: Ye };
|
|
169714
|
+
}
|
|
169715
|
+
const isSurface$1 = isSurfaceTablet(), NotificationContainer = dt.div`
|
|
169716
|
+
border-radius: 20px;
|
|
169717
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
169718
|
+
color: white;
|
|
169719
|
+
padding: 15px 20px 15px 20px;
|
|
169720
|
+
position: fixed;
|
|
169721
|
+
top: 120px;
|
|
169722
|
+
left: 0;
|
|
169723
|
+
right: 0;
|
|
169724
|
+
display: ${(Be) => Be.isOpen ? "block" : "none"};
|
|
169725
|
+
max-width: calc(100% - 50px); // 40px are for the padding
|
|
169726
|
+
width: fit-content;
|
|
169727
|
+
margin: auto;
|
|
169728
|
+
box-sizing: content-box;
|
|
169729
|
+
|
|
169730
|
+
&:focus {
|
|
169731
|
+
outline: ${(Be) => Be.isOpen ? "auto" : "none"};
|
|
169732
|
+
}
|
|
169733
|
+
|
|
169734
|
+
&.center {
|
|
169735
|
+
font-size: 18px;
|
|
169736
|
+
|
|
169737
|
+
.icon {
|
|
169738
|
+
text-align: center;
|
|
169739
|
+
}
|
|
169740
|
+
|
|
169741
|
+
.notification-text {
|
|
169742
|
+
line-height: 1.5;
|
|
169743
|
+
margin: 0;
|
|
169744
|
+
}
|
|
169745
|
+
}
|
|
169746
|
+
|
|
169747
|
+
&.inline {
|
|
169748
|
+
display: flex;
|
|
169749
|
+
}
|
|
169750
|
+
|
|
169751
|
+
&.desktop {
|
|
169752
|
+
top: unset;
|
|
169753
|
+
padding: 0;
|
|
169754
|
+
background-color: transparent;
|
|
169755
|
+
color: #20263d;
|
|
169756
|
+
display: block;
|
|
169757
|
+
position: relative;
|
|
169758
|
+
}
|
|
169759
|
+
`, NotificationText = dt.div`
|
|
169760
|
+
text-align: center;
|
|
169761
|
+
|
|
169762
|
+
&.desktop {
|
|
169763
|
+
div {
|
|
169764
|
+
font-size: 24px;
|
|
169765
|
+
line-height: 22px;
|
|
169766
|
+
|
|
169767
|
+
&.surface {
|
|
169768
|
+
font-size: 55px;
|
|
169769
|
+
line-height: unset;
|
|
169770
|
+
}
|
|
169771
|
+
|
|
169772
|
+
div {
|
|
169773
|
+
margin-top: 10px;
|
|
169774
|
+
}
|
|
169775
|
+
}
|
|
169776
|
+
}
|
|
169777
|
+
`, DEFAULT_DURATION = 3e4, NotificationContext = createContext({}), reducer$1 = (Be, Le) => {
|
|
169778
|
+
switch (Le.type) {
|
|
169779
|
+
case "showNotification":
|
|
169780
|
+
return Be.isOpen ? Be : {
|
|
169781
|
+
...Be,
|
|
169782
|
+
children: Le.children,
|
|
169783
|
+
icon: Le.icon,
|
|
169784
|
+
isOpen: !0
|
|
169785
|
+
};
|
|
169786
|
+
case "showPriorityNotification":
|
|
169787
|
+
return window.clearTimeout(closeTimeout), {
|
|
169788
|
+
...Be,
|
|
169789
|
+
children: Le.children,
|
|
169790
|
+
icon: Le.icon,
|
|
169791
|
+
isOpen: !0
|
|
169792
|
+
};
|
|
169793
|
+
case "closeNotification":
|
|
169794
|
+
return {
|
|
169795
|
+
...Be,
|
|
169796
|
+
children: null,
|
|
169797
|
+
icon: "",
|
|
169798
|
+
isOpen: !1
|
|
169799
|
+
};
|
|
169800
|
+
default:
|
|
169801
|
+
return Be;
|
|
169802
|
+
}
|
|
169803
|
+
};
|
|
169804
|
+
let closeTimeout;
|
|
169805
|
+
const showNotification = (Be, Le) => (Ye, tt) => {
|
|
169806
|
+
Be({ type: Le, children: Ye, icon: tt }), closeTimeout = setTimeout(() => {
|
|
169807
|
+
closeNotification(Be);
|
|
169808
|
+
}, DEFAULT_DURATION);
|
|
169809
|
+
}, closeNotification = (Be) => {
|
|
169810
|
+
Be({ type: "closeNotification" });
|
|
169811
|
+
}, NotificationProvider = ({ children: Be, initialValue: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationContext.Provider, { value: useReducer(reducer$1, Le), children: Be }), useNotifications = () => {
|
|
169812
|
+
const [Be, Le] = useContext(NotificationContext);
|
|
169813
|
+
return {
|
|
169814
|
+
...Be,
|
|
169815
|
+
showNotification: useCallback(
|
|
169816
|
+
showNotification(Le, "showNotification"),
|
|
169817
|
+
[]
|
|
169818
|
+
),
|
|
169819
|
+
showPriorityNotification: useCallback(
|
|
169820
|
+
showNotification(Le, "showPriorityNotification"),
|
|
169821
|
+
[]
|
|
169822
|
+
),
|
|
169823
|
+
closeNotification: useCallback(
|
|
169824
|
+
() => closeNotification(Le),
|
|
169825
|
+
[Le]
|
|
169826
|
+
)
|
|
169827
|
+
};
|
|
169828
|
+
};
|
|
169829
|
+
function Portal({ children: Be }) {
|
|
169830
|
+
const Le = useRef(null), [, Ye] = useState();
|
|
169831
|
+
return useLayoutEffect(() => (Le.current = document.createElement("portal"), document.body.appendChild(Le.current), Ye({}), () => {
|
|
169832
|
+
Le.current && document.body.removeChild(Le.current);
|
|
169833
|
+
}), []), Le.current ? createPortal(Be, Le.current) : null;
|
|
169834
|
+
}
|
|
169835
|
+
function Notification$1({
|
|
169836
|
+
center: Be = !1,
|
|
169837
|
+
inline: Le = !0,
|
|
169838
|
+
noPortal: Ye = !1,
|
|
169839
|
+
isKiosk: tt = !1
|
|
169840
|
+
}) {
|
|
169841
|
+
const [{ isOpen: nt, children: ft }] = useContext(NotificationContext);
|
|
169842
|
+
return Ye ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
169843
|
+
NotificationContainer,
|
|
169844
|
+
{
|
|
169845
|
+
className: cx("IncodeNotificationContainer", {
|
|
169846
|
+
center: Be,
|
|
169847
|
+
inline: Le,
|
|
169848
|
+
desktop: mobile.isDesktop() || tt
|
|
169849
|
+
}),
|
|
169850
|
+
isOpen: nt,
|
|
169851
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
169852
|
+
NotificationText,
|
|
169853
|
+
{
|
|
169854
|
+
role: "alert",
|
|
169855
|
+
"aria-live": "assertive",
|
|
169856
|
+
className: cx({
|
|
169857
|
+
desktop: mobile.isDesktop() || tt,
|
|
169858
|
+
surface: isSurface$1
|
|
169859
|
+
}),
|
|
169860
|
+
children: ft
|
|
169861
|
+
}
|
|
169862
|
+
)
|
|
169863
|
+
}
|
|
169864
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
169865
|
+
NotificationContainer,
|
|
169866
|
+
{
|
|
169867
|
+
className: cx("IncodeNotificationContainer", {
|
|
169868
|
+
center: Be,
|
|
169869
|
+
inline: Le,
|
|
169870
|
+
desktop: mobile.isDesktop() || tt
|
|
169871
|
+
}),
|
|
169872
|
+
isOpen: nt,
|
|
169873
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
169874
|
+
NotificationText,
|
|
169875
|
+
{
|
|
169876
|
+
className: cx({
|
|
169877
|
+
desktop: mobile.isDesktop() || tt
|
|
169878
|
+
}),
|
|
169879
|
+
role: "alert",
|
|
169880
|
+
"aria-live": "assertive",
|
|
169881
|
+
children: ft
|
|
169882
|
+
}
|
|
169883
|
+
)
|
|
169884
|
+
}
|
|
169885
|
+
) });
|
|
169886
|
+
}
|
|
169887
|
+
const AppProvider = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.jsx(ot, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(I18nextProvider$1, { i18n, children: Be }) }), Container$g = dt.div`
|
|
169888
|
+
height: calc(var(--vh) * 100);
|
|
169889
|
+
width: 100vw;
|
|
169890
|
+
min-height: 500px;
|
|
169891
|
+
position: fixed;
|
|
169892
|
+
top: 0;
|
|
169893
|
+
left: 0;
|
|
169894
|
+
min-height: 100%;
|
|
169895
|
+
overflow: scroll;
|
|
169896
|
+
|
|
169897
|
+
&.is-desktop {
|
|
169898
|
+
position: relative;
|
|
169899
|
+
}
|
|
169900
|
+
|
|
169901
|
+
&.kiosk {
|
|
169902
|
+
width: 100%;
|
|
169903
|
+
height: 100%;
|
|
169904
|
+
position: relative;
|
|
169905
|
+
}
|
|
169906
|
+
|
|
169907
|
+
&.disable-full-screen {
|
|
169908
|
+
position: relative;
|
|
169909
|
+
height: 100%;
|
|
169910
|
+
}
|
|
169911
|
+
|
|
169912
|
+
* {
|
|
169913
|
+
box-sizing: border-box;
|
|
169914
|
+
}
|
|
169915
|
+
|
|
169916
|
+
.hidden {
|
|
169917
|
+
display: none;
|
|
169918
|
+
}
|
|
169919
|
+
`, App$1 = ({
|
|
169920
|
+
disableFullScreen: Be = !1,
|
|
169921
|
+
isKiosk: Le = !1,
|
|
169922
|
+
children: Ye,
|
|
169923
|
+
token: tt,
|
|
169924
|
+
style: nt,
|
|
169925
|
+
disableUnsupportedBrowserScreen: ft = !1
|
|
169926
|
+
}) => {
|
|
169927
|
+
const { isRotated: ht } = useOrientation(), { ready: gt } = useTranslation$1(), { shouldShow: At, onContinue: xt } = useBrowserNotSupported();
|
|
169928
|
+
return useResize(), useEffect(() => {
|
|
169929
|
+
tt && initialize(tt);
|
|
169930
|
+
}, [tt]), gt ? options.redirectFromUnsupportedBrowsers && At && !ft ? /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserNotSupported, { onContinue: xt, token: tt }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationProvider, { initialValue: { isOpen: !1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
169931
|
+
Container$g,
|
|
169932
|
+
{
|
|
169933
|
+
className: cx("IncodeDefaultComponentContainer", {
|
|
169934
|
+
"disable-full-screen": Be,
|
|
169935
|
+
"is-desktop": mobile.isDesktop(),
|
|
169936
|
+
kiosk: Le
|
|
169937
|
+
}),
|
|
169938
|
+
style: nt,
|
|
169939
|
+
children: [
|
|
169940
|
+
!!mobile.any() && !mobile.isIpad() && ht && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
|
|
169941
|
+
Ye
|
|
169942
|
+
]
|
|
169943
|
+
}
|
|
169944
|
+
) }) }) : null;
|
|
169945
|
+
}, UiConfigSchema = /* @__PURE__ */ object({
|
|
169708
169946
|
branding: /* @__PURE__ */ optional(
|
|
169709
169947
|
/* @__PURE__ */ object({
|
|
169710
169948
|
logo: /* @__PURE__ */ optional(
|
|
@@ -169735,7 +169973,7 @@ const UiConfigSchema = /* @__PURE__ */ object({
|
|
|
169735
169973
|
minimal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean$2())
|
|
169736
169974
|
})
|
|
169737
169975
|
)
|
|
169738
|
-
}), Container$
|
|
169976
|
+
}), Container$f = dt.div`
|
|
169739
169977
|
height: ${(Be) => Be.$height ? `${Be.$height}px` : `${window.innerHeight}px`};
|
|
169740
169978
|
width: ${(Be) => Be.$width ? `${Be.$width}px` : `${window.innerWidth}px`};
|
|
169741
169979
|
min-height: 100%;
|
|
@@ -169750,7 +169988,7 @@ const UiConfigSchema = /* @__PURE__ */ object({
|
|
|
169750
169988
|
width: Ye
|
|
169751
169989
|
}) => {
|
|
169752
169990
|
const { isRotated: tt } = useOrientation(), { ready: nt } = useTranslation$1();
|
|
169753
|
-
return nt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$
|
|
169991
|
+
return nt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$f, { $height: Le, $width: Ye, children: [
|
|
169754
169992
|
!!mobile.any() && !mobile.isIpad() && tt && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
|
|
169755
169993
|
Be
|
|
169756
169994
|
] }) : null;
|
|
@@ -180531,7 +180769,7 @@ const StyledPath = dt.path`
|
|
|
180531
180769
|
]
|
|
180532
180770
|
}
|
|
180533
180771
|
);
|
|
180534
|
-
}, Notification
|
|
180772
|
+
}, Notification = ({ detectionState: Be }) => {
|
|
180535
180773
|
const { t: Le } = useTranslation$1(), Ye = useTokens(), nt = {
|
|
180536
180774
|
noFace: Le("notifications.faceNotFound"),
|
|
180537
180775
|
tooManyFaces: Le("notifications.tooManyFaces"),
|
|
@@ -180728,7 +180966,7 @@ const StyledPath = dt.path`
|
|
|
180728
180966
|
}
|
|
180729
180967
|
),
|
|
180730
180968
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: 12, smSize: 4 }),
|
|
180731
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Notification
|
|
180969
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { detectionState: Wt }),
|
|
180732
180970
|
Wt === "manualCapture" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
180733
180971
|
CameraButtonComponent,
|
|
180734
180972
|
{
|
|
@@ -180871,13 +181109,14 @@ const StyledPath = dt.path`
|
|
|
180871
181109
|
"Expected HTMLElement"
|
|
180872
181110
|
);
|
|
180873
181111
|
function renderAuthFace(Be, Le) {
|
|
181112
|
+
var tt;
|
|
180874
181113
|
validate$2(
|
|
180875
181114
|
{ schema: HTMLElementSchema, value: Be },
|
|
180876
181115
|
{ schema: AuthFacePropsSchema, value: Le }
|
|
180877
181116
|
);
|
|
180878
181117
|
const Ye = createRoot(Be);
|
|
180879
181118
|
return customRender(
|
|
180880
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181119
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: (tt = Le.session) == null ? void 0 : tt.token, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
180881
181120
|
AuthFace,
|
|
180882
181121
|
{
|
|
180883
181122
|
onSuccess: handleUnmountRoot(Le.onSuccess, Ye, Be),
|
|
@@ -180887,250 +181126,12 @@ function renderAuthFace(Be, Le) {
|
|
|
180887
181126
|
parentSize: Le.parentSize,
|
|
180888
181127
|
authHint: Le.authHint
|
|
180889
181128
|
}
|
|
180890
|
-
),
|
|
181129
|
+
) }),
|
|
180891
181130
|
Be,
|
|
180892
181131
|
Ye
|
|
180893
181132
|
), { close: handleUnmountRoot(emptyFunc, Ye, Be) };
|
|
180894
181133
|
}
|
|
180895
|
-
|
|
180896
|
-
function useBrowserNotSupported() {
|
|
180897
|
-
const [Be, Le] = useState(shouldShowCache);
|
|
180898
|
-
function Ye() {
|
|
180899
|
-
Le(!1), shouldShowCache = !1;
|
|
180900
|
-
}
|
|
180901
|
-
return { shouldShow: Be, onContinue: Ye };
|
|
180902
|
-
}
|
|
180903
|
-
const isSurface$1 = isSurfaceTablet(), NotificationContainer = dt.div`
|
|
180904
|
-
border-radius: 20px;
|
|
180905
|
-
background-color: rgba(0, 0, 0, 0.8);
|
|
180906
|
-
color: white;
|
|
180907
|
-
padding: 15px 20px 15px 20px;
|
|
180908
|
-
position: fixed;
|
|
180909
|
-
top: 120px;
|
|
180910
|
-
left: 0;
|
|
180911
|
-
right: 0;
|
|
180912
|
-
display: ${(Be) => Be.isOpen ? "block" : "none"};
|
|
180913
|
-
max-width: calc(100% - 50px); // 40px are for the padding
|
|
180914
|
-
width: fit-content;
|
|
180915
|
-
margin: auto;
|
|
180916
|
-
box-sizing: content-box;
|
|
180917
|
-
|
|
180918
|
-
&:focus {
|
|
180919
|
-
outline: ${(Be) => Be.isOpen ? "auto" : "none"};
|
|
180920
|
-
}
|
|
180921
|
-
|
|
180922
|
-
&.center {
|
|
180923
|
-
font-size: 18px;
|
|
180924
|
-
|
|
180925
|
-
.icon {
|
|
180926
|
-
text-align: center;
|
|
180927
|
-
}
|
|
180928
|
-
|
|
180929
|
-
.notification-text {
|
|
180930
|
-
line-height: 1.5;
|
|
180931
|
-
margin: 0;
|
|
180932
|
-
}
|
|
180933
|
-
}
|
|
180934
|
-
|
|
180935
|
-
&.inline {
|
|
180936
|
-
display: flex;
|
|
180937
|
-
}
|
|
180938
|
-
|
|
180939
|
-
&.desktop {
|
|
180940
|
-
top: unset;
|
|
180941
|
-
padding: 0;
|
|
180942
|
-
background-color: transparent;
|
|
180943
|
-
color: #20263d;
|
|
180944
|
-
display: block;
|
|
180945
|
-
position: relative;
|
|
180946
|
-
}
|
|
180947
|
-
`, NotificationText = dt.div`
|
|
180948
|
-
text-align: center;
|
|
180949
|
-
|
|
180950
|
-
&.desktop {
|
|
180951
|
-
div {
|
|
180952
|
-
font-size: 24px;
|
|
180953
|
-
line-height: 22px;
|
|
180954
|
-
|
|
180955
|
-
&.surface {
|
|
180956
|
-
font-size: 55px;
|
|
180957
|
-
line-height: unset;
|
|
180958
|
-
}
|
|
180959
|
-
|
|
180960
|
-
div {
|
|
180961
|
-
margin-top: 10px;
|
|
180962
|
-
}
|
|
180963
|
-
}
|
|
180964
|
-
}
|
|
180965
|
-
`, DEFAULT_DURATION = 3e4, NotificationContext = createContext({}), reducer$1 = (Be, Le) => {
|
|
180966
|
-
switch (Le.type) {
|
|
180967
|
-
case "showNotification":
|
|
180968
|
-
return Be.isOpen ? Be : {
|
|
180969
|
-
...Be,
|
|
180970
|
-
children: Le.children,
|
|
180971
|
-
icon: Le.icon,
|
|
180972
|
-
isOpen: !0
|
|
180973
|
-
};
|
|
180974
|
-
case "showPriorityNotification":
|
|
180975
|
-
return window.clearTimeout(closeTimeout), {
|
|
180976
|
-
...Be,
|
|
180977
|
-
children: Le.children,
|
|
180978
|
-
icon: Le.icon,
|
|
180979
|
-
isOpen: !0
|
|
180980
|
-
};
|
|
180981
|
-
case "closeNotification":
|
|
180982
|
-
return {
|
|
180983
|
-
...Be,
|
|
180984
|
-
children: null,
|
|
180985
|
-
icon: "",
|
|
180986
|
-
isOpen: !1
|
|
180987
|
-
};
|
|
180988
|
-
default:
|
|
180989
|
-
return Be;
|
|
180990
|
-
}
|
|
180991
|
-
};
|
|
180992
|
-
let closeTimeout;
|
|
180993
|
-
const showNotification = (Be, Le) => (Ye, tt) => {
|
|
180994
|
-
Be({ type: Le, children: Ye, icon: tt }), closeTimeout = setTimeout(() => {
|
|
180995
|
-
closeNotification(Be);
|
|
180996
|
-
}, DEFAULT_DURATION);
|
|
180997
|
-
}, closeNotification = (Be) => {
|
|
180998
|
-
Be({ type: "closeNotification" });
|
|
180999
|
-
}, NotificationProvider = ({ children: Be, initialValue: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationContext.Provider, { value: useReducer(reducer$1, Le), children: Be }), useNotifications = () => {
|
|
181000
|
-
const [Be, Le] = useContext(NotificationContext);
|
|
181001
|
-
return {
|
|
181002
|
-
...Be,
|
|
181003
|
-
showNotification: useCallback(
|
|
181004
|
-
showNotification(Le, "showNotification"),
|
|
181005
|
-
[]
|
|
181006
|
-
),
|
|
181007
|
-
showPriorityNotification: useCallback(
|
|
181008
|
-
showNotification(Le, "showPriorityNotification"),
|
|
181009
|
-
[]
|
|
181010
|
-
),
|
|
181011
|
-
closeNotification: useCallback(
|
|
181012
|
-
() => closeNotification(Le),
|
|
181013
|
-
[Le]
|
|
181014
|
-
)
|
|
181015
|
-
};
|
|
181016
|
-
};
|
|
181017
|
-
function Portal({ children: Be }) {
|
|
181018
|
-
const Le = useRef(null), [, Ye] = useState();
|
|
181019
|
-
return useLayoutEffect(() => (Le.current = document.createElement("portal"), document.body.appendChild(Le.current), Ye({}), () => {
|
|
181020
|
-
Le.current && document.body.removeChild(Le.current);
|
|
181021
|
-
}), []), Le.current ? createPortal(Be, Le.current) : null;
|
|
181022
|
-
}
|
|
181023
|
-
function Notification({
|
|
181024
|
-
center: Be = !1,
|
|
181025
|
-
inline: Le = !0,
|
|
181026
|
-
noPortal: Ye = !1,
|
|
181027
|
-
isKiosk: tt = !1
|
|
181028
|
-
}) {
|
|
181029
|
-
const [{ isOpen: nt, children: ft }] = useContext(NotificationContext);
|
|
181030
|
-
return Ye ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181031
|
-
NotificationContainer,
|
|
181032
|
-
{
|
|
181033
|
-
className: cx("IncodeNotificationContainer", {
|
|
181034
|
-
center: Be,
|
|
181035
|
-
inline: Le,
|
|
181036
|
-
desktop: mobile.isDesktop() || tt
|
|
181037
|
-
}),
|
|
181038
|
-
isOpen: nt,
|
|
181039
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181040
|
-
NotificationText,
|
|
181041
|
-
{
|
|
181042
|
-
role: "alert",
|
|
181043
|
-
"aria-live": "assertive",
|
|
181044
|
-
className: cx({
|
|
181045
|
-
desktop: mobile.isDesktop() || tt,
|
|
181046
|
-
surface: isSurface$1
|
|
181047
|
-
}),
|
|
181048
|
-
children: ft
|
|
181049
|
-
}
|
|
181050
|
-
)
|
|
181051
|
-
}
|
|
181052
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181053
|
-
NotificationContainer,
|
|
181054
|
-
{
|
|
181055
|
-
className: cx("IncodeNotificationContainer", {
|
|
181056
|
-
center: Be,
|
|
181057
|
-
inline: Le,
|
|
181058
|
-
desktop: mobile.isDesktop() || tt
|
|
181059
|
-
}),
|
|
181060
|
-
isOpen: nt,
|
|
181061
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
181062
|
-
NotificationText,
|
|
181063
|
-
{
|
|
181064
|
-
className: cx({
|
|
181065
|
-
desktop: mobile.isDesktop() || tt
|
|
181066
|
-
}),
|
|
181067
|
-
role: "alert",
|
|
181068
|
-
"aria-live": "assertive",
|
|
181069
|
-
children: ft
|
|
181070
|
-
}
|
|
181071
|
-
)
|
|
181072
|
-
}
|
|
181073
|
-
) });
|
|
181074
|
-
}
|
|
181075
|
-
const AppProvider = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.jsx(ot, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(I18nextProvider$1, { i18n, children: Be }) }), Container$f = dt.div`
|
|
181076
|
-
height: calc(var(--vh) * 100);
|
|
181077
|
-
width: 100vw;
|
|
181078
|
-
min-height: 500px;
|
|
181079
|
-
position: fixed;
|
|
181080
|
-
top: 0;
|
|
181081
|
-
left: 0;
|
|
181082
|
-
min-height: 100%;
|
|
181083
|
-
overflow: scroll;
|
|
181084
|
-
|
|
181085
|
-
&.is-desktop {
|
|
181086
|
-
position: relative;
|
|
181087
|
-
}
|
|
181088
|
-
|
|
181089
|
-
&.kiosk {
|
|
181090
|
-
width: 100%;
|
|
181091
|
-
height: 100%;
|
|
181092
|
-
position: relative;
|
|
181093
|
-
}
|
|
181094
|
-
|
|
181095
|
-
&.disable-full-screen {
|
|
181096
|
-
position: relative;
|
|
181097
|
-
height: 100%;
|
|
181098
|
-
}
|
|
181099
|
-
|
|
181100
|
-
* {
|
|
181101
|
-
box-sizing: border-box;
|
|
181102
|
-
}
|
|
181103
|
-
|
|
181104
|
-
.hidden {
|
|
181105
|
-
display: none;
|
|
181106
|
-
}
|
|
181107
|
-
`, App$1 = ({
|
|
181108
|
-
disableFullScreen: Be = !1,
|
|
181109
|
-
isKiosk: Le = !1,
|
|
181110
|
-
children: Ye,
|
|
181111
|
-
token: tt,
|
|
181112
|
-
style: nt,
|
|
181113
|
-
disableUnsupportedBrowserScreen: ft = !1
|
|
181114
|
-
}) => {
|
|
181115
|
-
const { isRotated: ht } = useOrientation(), { ready: gt } = useTranslation$1(), { shouldShow: At, onContinue: xt } = useBrowserNotSupported();
|
|
181116
|
-
return useResize(), useEffect(() => {
|
|
181117
|
-
tt && initialize(tt);
|
|
181118
|
-
}, [tt]), gt ? options.redirectFromUnsupportedBrowsers && At && !ft ? /* @__PURE__ */ jsxRuntimeExports.jsx(BrowserNotSupported, { onContinue: xt, token: tt }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AppProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationProvider, { initialValue: { isOpen: !1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
181119
|
-
Container$f,
|
|
181120
|
-
{
|
|
181121
|
-
className: cx("IncodeDefaultComponentContainer", {
|
|
181122
|
-
"disable-full-screen": Be,
|
|
181123
|
-
"is-desktop": mobile.isDesktop(),
|
|
181124
|
-
kiosk: Le
|
|
181125
|
-
}),
|
|
181126
|
-
style: nt,
|
|
181127
|
-
children: [
|
|
181128
|
-
!!mobile.any() && !mobile.isIpad() && ht && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
|
|
181129
|
-
Ye
|
|
181130
|
-
]
|
|
181131
|
-
}
|
|
181132
|
-
) }) }) : null;
|
|
181133
|
-
}, FaceFlow$1 = ({
|
|
181134
|
+
const FaceFlow$1 = ({
|
|
181134
181135
|
onSuccess: Be,
|
|
181135
181136
|
onError: Le,
|
|
181136
181137
|
session: Ye,
|
|
@@ -202754,7 +202755,7 @@ function CaptureId$3({
|
|
|
202754
202755
|
kiosk: !0
|
|
202755
202756
|
}),
|
|
202756
202757
|
children: !U0 && !Lr.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
202757
|
-
Notification,
|
|
202758
|
+
Notification$1,
|
|
202758
202759
|
{
|
|
202759
202760
|
inline: !0,
|
|
202760
202761
|
center: !0,
|
|
@@ -202902,7 +202903,7 @@ function CaptureId$3({
|
|
|
202902
202903
|
className: cx({
|
|
202903
202904
|
surface: isSurface
|
|
202904
202905
|
}),
|
|
202905
|
-
children: !U0 && !Lr.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { inline: !0, center: !0, noPortal: !0 })
|
|
202906
|
+
children: !U0 && !Lr.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification$1, { inline: !0, center: !0, noPortal: !0 })
|
|
202906
202907
|
}
|
|
202907
202908
|
),
|
|
202908
202909
|
!U0 && !Lr.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(NativeButton, { onClick: Fa, className: "IncodeNeedHelpButton", children: [
|
|
@@ -203153,7 +203154,7 @@ function CaptureId$3({
|
|
|
203153
203154
|
}
|
|
203154
203155
|
),
|
|
203155
203156
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "step__video-overlay" }),
|
|
203156
|
-
!U0 && !Lr.isOpen && !A0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { inline: !1, center: !0 })
|
|
203157
|
+
!U0 && !Lr.isOpen && !A0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Notification$1, { inline: !1, center: !0 })
|
|
203157
203158
|
] }),
|
|
203158
203159
|
/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame" })
|
|
203159
203160
|
] });
|
|
@@ -203701,15 +203702,23 @@ const ShowInstructions = ({
|
|
|
203701
203702
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: (Le = Be.session) == null ? void 0 : Le.token, uiConfig: Be.uiConfig, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureFaceInside, { ...Be }) });
|
|
203702
203703
|
};
|
|
203703
203704
|
function renderCaptureFace(Be, { onSuccess: Le, onError: Ye, onCapture: tt, ...nt }) {
|
|
203705
|
+
var ht;
|
|
203704
203706
|
const ft = createRoot(Be);
|
|
203705
203707
|
return customRender(
|
|
203706
203708
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203707
|
-
|
|
203709
|
+
App$1,
|
|
203708
203710
|
{
|
|
203709
|
-
|
|
203710
|
-
|
|
203711
|
-
|
|
203712
|
-
|
|
203711
|
+
token: (ht = nt.session) == null ? void 0 : ht.token,
|
|
203712
|
+
disableUnsupportedBrowserScreen: nt.disableUnsupportedBrowserScreen,
|
|
203713
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
203714
|
+
CaptureFace,
|
|
203715
|
+
{
|
|
203716
|
+
onSuccess: handleUnmountRoot(Le, ft, Be),
|
|
203717
|
+
onError: handleUnmountRoot(Ye, ft, Be),
|
|
203718
|
+
onCapture: tt ? handleUnmountRoot(tt, ft, Be) : void 0,
|
|
203719
|
+
...nt
|
|
203720
|
+
}
|
|
203721
|
+
)
|
|
203713
203722
|
}
|
|
203714
203723
|
),
|
|
203715
203724
|
Be,
|
|
@@ -266502,15 +266511,23 @@ path {
|
|
|
266502
266511
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: (Le = Be.session) == null ? void 0 : Le.token, uiConfig: Be.uiConfig, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureIdInside, { ...Be }) });
|
|
266503
266512
|
};
|
|
266504
266513
|
function renderCaptureId(Be, { onSuccess: Le, onError: Ye, onCapture: tt, ...nt }) {
|
|
266514
|
+
var ht;
|
|
266505
266515
|
const ft = createRoot$1(Be);
|
|
266506
266516
|
return customRender(
|
|
266507
266517
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
266508
|
-
|
|
266518
|
+
App$1,
|
|
266509
266519
|
{
|
|
266510
|
-
|
|
266511
|
-
|
|
266512
|
-
|
|
266513
|
-
|
|
266520
|
+
token: (ht = nt.session) == null ? void 0 : ht.token,
|
|
266521
|
+
disableUnsupportedBrowserScreen: nt.disableUnsupportedBrowserScreen,
|
|
266522
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
266523
|
+
CaptureId,
|
|
266524
|
+
{
|
|
266525
|
+
onSuccess: handleUnmountRoot(Le, ft, Be),
|
|
266526
|
+
onError: handleUnmountRoot(Ye, ft, Be),
|
|
266527
|
+
onCapture: tt ? handleUnmountRoot(tt, ft, Be) : void 0,
|
|
266528
|
+
...nt
|
|
266529
|
+
}
|
|
266530
|
+
)
|
|
266514
266531
|
}
|
|
266515
266532
|
),
|
|
266516
266533
|
Be,
|
|
@@ -312687,7 +312704,7 @@ function renderConference(Be, {
|
|
|
312687
312704
|
onError: handleUnmountRoot(yt, vt, Be)
|
|
312688
312705
|
};
|
|
312689
312706
|
return customRender(
|
|
312690
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
312707
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: Le, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
312691
312708
|
ConferenceApp,
|
|
312692
312709
|
{
|
|
312693
312710
|
token: Le,
|
|
@@ -368051,7 +368068,7 @@ function AdditionalId({
|
|
|
368051
368068
|
) }),
|
|
368052
368069
|
/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame", hidden: !0 }),
|
|
368053
368070
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
368054
|
-
Notification,
|
|
368071
|
+
Notification$1,
|
|
368055
368072
|
{
|
|
368056
368073
|
inline: !1,
|
|
368057
368074
|
center: !0,
|
|
@@ -372852,7 +372869,7 @@ function renderVideoSelfie(Be, {
|
|
|
372852
372869
|
onError: handleUnmountRoot(Tt, Dt, Be)
|
|
372853
372870
|
};
|
|
372854
372871
|
customRender(
|
|
372855
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
372872
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: Le.token, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
372856
372873
|
Recorder,
|
|
372857
372874
|
{
|
|
372858
372875
|
onBoarding: this,
|
|
@@ -372880,7 +372897,7 @@ function renderVideoSelfie(Be, {
|
|
|
372880
372897
|
questionsCount: Et,
|
|
372881
372898
|
useOpenVidu: Ct
|
|
372882
372899
|
}
|
|
372883
|
-
),
|
|
372900
|
+
) }),
|
|
372884
372901
|
Be,
|
|
372885
372902
|
Dt
|
|
372886
372903
|
);
|
|
@@ -381585,7 +381602,7 @@ function CameraPaperStatement({
|
|
|
381585
381602
|
),
|
|
381586
381603
|
/* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame", hidden: !0 }),
|
|
381587
381604
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
381588
|
-
Notification,
|
|
381605
|
+
Notification$1,
|
|
381589
381606
|
{
|
|
381590
381607
|
className: "IncodeCaptureDocumentNotification",
|
|
381591
381608
|
inline: !1,
|