@incodetech/welcome 1.85.0-20251113152710.0 → 1.85.0-20251114234341.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.
@@ -8374,7 +8374,7 @@ class MlWasmJSApi {
8374
8374
  );
8375
8375
  }
8376
8376
  }
8377
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251113152710.0";
8377
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251114234341.0";
8378
8378
  function e$2(Be, Le) {
8379
8379
  return function(Ye, tt) {
8380
8380
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -9504,7 +9504,11 @@ class DetectionSetup {
9504
9504
  localStorage.setItem(
9505
9505
  "isIPhone14OrHigher",
9506
9506
  String(
9507
- window.outerHeight === 852 && window.outerWidth === 393 || window.outerHeight === 932 && window.outerWidth === 430 || window.innerHeight === 631 && window.innerWidth === 375
9507
+ window.outerHeight === 852 && window.outerWidth === 393 || window.outerHeight === 932 && window.outerWidth === 430 || window.innerHeight === 631 && window.innerWidth === 375 || window.innerHeight === 874 && window.innerWidth === 402 || // iPhone 17
9508
+ window.outerHeight === 912 && window.outerWidth === 420 || // iPhone 17 Air
9509
+ window.outerHeight === 873 && window.outerWidth === 402 || // iPhone 17 Pro
9510
+ window.outerHeight === 956 && window.outerWidth === 440
9511
+ // iPhone 17 Pro Max
9508
9512
  )
9509
9513
  );
9510
9514
  }
@@ -161751,7 +161755,266 @@ else {
161751
161755
  }
161752
161756
  };
161753
161757
  }
161754
- const UiConfigSchema = /* @__PURE__ */ object({
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({
161755
162018
  branding: /* @__PURE__ */ optional(
161756
162019
  /* @__PURE__ */ object({
161757
162020
  logo: /* @__PURE__ */ optional(
@@ -161782,7 +162045,7 @@ const UiConfigSchema = /* @__PURE__ */ object({
161782
162045
  minimal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean$2())
161783
162046
  })
161784
162047
  )
161785
- }), Container$g = dt.div`
162048
+ }), Container$f = dt.div`
161786
162049
  height: ${(Be) => Be.$height ? `${Be.$height}px` : `${window.innerHeight}px`};
161787
162050
  width: ${(Be) => Be.$width ? `${Be.$width}px` : `${window.innerWidth}px`};
161788
162051
  min-height: 100%;
@@ -161797,7 +162060,7 @@ const UiConfigSchema = /* @__PURE__ */ object({
161797
162060
  width: Ye
161798
162061
  }) => {
161799
162062
  const { isRotated: tt } = useOrientation(), { ready: nt } = useTranslation$1();
161800
- return nt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$g, { $height: Le, $width: Ye, children: [
162063
+ return nt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$f, { $height: Le, $width: Ye, children: [
161801
162064
  !!mobile.any() && !mobile.isIpad() && tt && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
161802
162065
  Be
161803
162066
  ] }) : null;
@@ -172591,7 +172854,7 @@ const StyledPath = dt.path`
172591
172854
  ]
172592
172855
  }
172593
172856
  );
172594
- }, Notification$1 = ({ detectionState: Be }) => {
172857
+ }, Notification = ({ detectionState: Be }) => {
172595
172858
  const { t: Le } = useTranslation$1(), Ye = useTokens(), nt = {
172596
172859
  noFace: Le("notifications.faceNotFound"),
172597
172860
  tooManyFaces: Le("notifications.tooManyFaces"),
@@ -172788,7 +173051,7 @@ const StyledPath = dt.path`
172788
173051
  }
172789
173052
  ),
172790
173053
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: 12, smSize: 4 }),
172791
- /* @__PURE__ */ jsxRuntimeExports.jsx(Notification$1, { detectionState: Wt }),
173054
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Notification, { detectionState: Wt }),
172792
173055
  Wt === "manualCapture" && /* @__PURE__ */ jsxRuntimeExports.jsx(
172793
173056
  CameraButtonComponent,
172794
173057
  {
@@ -172937,13 +173200,14 @@ const StyledPath = dt.path`
172937
173200
  "Expected HTMLElement"
172938
173201
  );
172939
173202
  function renderAuthFace(Be, Le) {
173203
+ var tt;
172940
173204
  validate$2(
172941
173205
  { schema: HTMLElementSchema, value: Be },
172942
173206
  { schema: AuthFacePropsSchema, value: Le }
172943
173207
  );
172944
173208
  const Ye = createRoot(Be);
172945
173209
  return customRender(
172946
- /* @__PURE__ */ jsxRuntimeExports.jsx(
173210
+ /* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: (tt = Le.session) == null ? void 0 : tt.token, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
172947
173211
  AuthFace,
172948
173212
  {
172949
173213
  onSuccess: handleUnmountRoot(Le.onSuccess, Ye, Be),
@@ -172953,271 +173217,12 @@ function renderAuthFace(Be, Le) {
172953
173217
  parentSize: Le.parentSize,
172954
173218
  authHint: Le.authHint
172955
173219
  }
172956
- ),
173220
+ ) }),
172957
173221
  Be,
172958
173222
  Ye
172959
173223
  ), { close: handleUnmountRoot(emptyFunc, Ye, Be) };
172960
173224
  }
172961
- let shouldShowCache = !mobile.isBrowserSupported();
172962
- function useBrowserNotSupported() {
172963
- const [Be, Le] = useState(shouldShowCache);
172964
- function Ye() {
172965
- Le(!1), shouldShowCache = !1;
172966
- }
172967
- return { shouldShow: Be, onContinue: Ye };
172968
- }
172969
- const isSurface$1 = isSurfaceTablet(), NotificationContainer = dt.div`
172970
- border-radius: 20px;
172971
- background-color: rgba(0, 0, 0, 0.8);
172972
- color: white;
172973
- padding: 15px 20px 15px 20px;
172974
- position: fixed;
172975
- top: 120px;
172976
- left: 0;
172977
- right: 0;
172978
- display: ${(Be) => Be.isOpen ? "block" : "none"};
172979
- max-width: calc(100% - 50px); // 40px are for the padding
172980
- width: fit-content;
172981
- margin: auto;
172982
- box-sizing: content-box;
172983
-
172984
- &:focus {
172985
- outline: ${(Be) => Be.isOpen ? "auto" : "none"};
172986
- }
172987
-
172988
- &.center {
172989
- font-size: 18px;
172990
-
172991
- .icon {
172992
- text-align: center;
172993
- }
172994
-
172995
- .notification-text {
172996
- line-height: 1.5;
172997
- margin: 0;
172998
- }
172999
- }
173000
-
173001
- &.inline {
173002
- display: flex;
173003
- }
173004
-
173005
- &.desktop {
173006
- top: unset;
173007
- padding: 0;
173008
- background-color: transparent;
173009
- color: #20263d;
173010
- display: block;
173011
- position: relative;
173012
- }
173013
- `, NotificationText = dt.div`
173014
- text-align: center;
173015
-
173016
- &.desktop {
173017
- div {
173018
- font-size: 24px;
173019
- line-height: 22px;
173020
-
173021
- &.surface {
173022
- font-size: 55px;
173023
- line-height: unset;
173024
- }
173025
-
173026
- div {
173027
- margin-top: 10px;
173028
- }
173029
- }
173030
- }
173031
- `, DEFAULT_DURATION = 3e4, NotificationContext = createContext({}), reducer$1 = (Be, Le) => {
173032
- switch (Le.type) {
173033
- case "showNotification":
173034
- return Be.isOpen ? Be : {
173035
- ...Be,
173036
- children: Le.children,
173037
- icon: Le.icon,
173038
- isOpen: !0
173039
- };
173040
- case "showPriorityNotification":
173041
- return window.clearTimeout(closeTimeout), {
173042
- ...Be,
173043
- children: Le.children,
173044
- icon: Le.icon,
173045
- isOpen: !0
173046
- };
173047
- case "closeNotification":
173048
- return {
173049
- ...Be,
173050
- children: null,
173051
- icon: "",
173052
- isOpen: !1
173053
- };
173054
- default:
173055
- return Be;
173056
- }
173057
- };
173058
- let closeTimeout;
173059
- const showNotification = (Be, Le) => (Ye, tt) => {
173060
- Be({ type: Le, children: Ye, icon: tt }), closeTimeout = setTimeout(() => {
173061
- closeNotification(Be);
173062
- }, DEFAULT_DURATION);
173063
- }, closeNotification = (Be) => {
173064
- Be({ type: "closeNotification" });
173065
- }, NotificationProvider = ({ children: Be, initialValue: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(NotificationContext.Provider, { value: useReducer(reducer$1, Le), children: Be }), useNotifications = () => {
173066
- const [Be, Le] = useContext(NotificationContext);
173067
- return {
173068
- ...Be,
173069
- showNotification: useCallback(
173070
- showNotification(Le, "showNotification"),
173071
- []
173072
- ),
173073
- showPriorityNotification: useCallback(
173074
- showNotification(Le, "showPriorityNotification"),
173075
- []
173076
- ),
173077
- closeNotification: useCallback(
173078
- () => closeNotification(Le),
173079
- [Le]
173080
- )
173081
- };
173082
- };
173083
- function Portal({ children: Be }) {
173084
- const Le = useRef(null), [, Ye] = useState();
173085
- return useLayoutEffect(() => (Le.current = document.createElement("portal"), document.body.appendChild(Le.current), Ye({}), () => {
173086
- Le.current && document.body.removeChild(Le.current);
173087
- }), []), Le.current ? createPortal(Be, Le.current) : null;
173088
- }
173089
- function Notification({
173090
- center: Be = !1,
173091
- inline: Le = !0,
173092
- noPortal: Ye = !1,
173093
- isKiosk: tt = !1
173094
- }) {
173095
- const [{ isOpen: nt, children: ft }] = useContext(NotificationContext);
173096
- return Ye ? /* @__PURE__ */ jsxRuntimeExports.jsx(
173097
- NotificationContainer,
173098
- {
173099
- className: cx("IncodeNotificationContainer", {
173100
- center: Be,
173101
- inline: Le,
173102
- desktop: mobile.isDesktop() || tt
173103
- }),
173104
- isOpen: nt,
173105
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
173106
- NotificationText,
173107
- {
173108
- role: "alert",
173109
- "aria-live": "assertive",
173110
- className: cx({
173111
- desktop: mobile.isDesktop() || tt,
173112
- surface: isSurface$1
173113
- }),
173114
- children: ft
173115
- }
173116
- )
173117
- }
173118
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
173119
- NotificationContainer,
173120
- {
173121
- className: cx("IncodeNotificationContainer", {
173122
- center: Be,
173123
- inline: Le,
173124
- desktop: mobile.isDesktop() || tt
173125
- }),
173126
- isOpen: nt,
173127
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
173128
- NotificationText,
173129
- {
173130
- className: cx({
173131
- desktop: mobile.isDesktop() || tt
173132
- }),
173133
- role: "alert",
173134
- "aria-live": "assertive",
173135
- children: ft
173136
- }
173137
- )
173138
- }
173139
- ) });
173140
- }
173141
- const ReadyToRenderContext = createContext(void 0);
173142
- function ReadyToRenderProvider({
173143
- children: Be
173144
- }) {
173145
- const [Le, Ye] = useState(!1);
173146
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
173147
- ReadyToRenderContext.Provider,
173148
- {
173149
- value: { isReadyToRender: Le, setisReadyToRender: Ye },
173150
- children: Be
173151
- }
173152
- );
173153
- }
173154
- function useReadyToRender() {
173155
- const Be = useContext(ReadyToRenderContext);
173156
- if (Be === void 0)
173157
- throw new Error(
173158
- "useReadyToRender must be used within a ReadyToRenderProvider"
173159
- );
173160
- return Be;
173161
- }
173162
- const AppProvider = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.jsx(ot, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(I18nextProvider$1, { i18n, children: Be }) }), Container$f = dt.div`
173163
- height: calc(var(--vh) * 100);
173164
- width: 100vw;
173165
- min-height: 500px;
173166
- position: fixed;
173167
- top: 0;
173168
- left: 0;
173169
- min-height: 100%;
173170
- overflow: scroll;
173171
-
173172
- &.is-desktop {
173173
- position: relative;
173174
- }
173175
-
173176
- &.kiosk {
173177
- width: 100%;
173178
- height: 100%;
173179
- position: relative;
173180
- }
173181
-
173182
- &.disable-full-screen {
173183
- position: relative;
173184
- height: 100%;
173185
- }
173186
-
173187
- * {
173188
- box-sizing: border-box;
173189
- }
173190
-
173191
- .hidden {
173192
- display: none;
173193
- }
173194
- `, App$1 = ({
173195
- disableFullScreen: Be = !1,
173196
- isKiosk: Le = !1,
173197
- children: Ye,
173198
- token: tt,
173199
- style: nt,
173200
- disableUnsupportedBrowserScreen: ft = !1
173201
- }) => {
173202
- const { isRotated: ht } = useOrientation(), { ready: gt } = useTranslation$1(), { shouldShow: At, onContinue: xt } = useBrowserNotSupported();
173203
- return useResize(), useEffect(() => {
173204
- tt && initialize(tt);
173205
- }, [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(
173206
- Container$f,
173207
- {
173208
- className: cx("IncodeDefaultComponentContainer", {
173209
- "disable-full-screen": Be,
173210
- "is-desktop": mobile.isDesktop(),
173211
- kiosk: Le
173212
- }),
173213
- style: nt,
173214
- children: [
173215
- !!mobile.any() && !mobile.isIpad() && ht && /* @__PURE__ */ jsxRuntimeExports.jsx(LandscapeNotSupported, {}),
173216
- Ye
173217
- ]
173218
- }
173219
- ) }) }) }) : null;
173220
- }, FaceFlow$1 = ({
173225
+ const FaceFlow$1 = ({
173221
173226
  onSuccess: Be,
173222
173227
  onError: Le,
173223
173228
  session: Ye,
@@ -194843,7 +194848,7 @@ function CaptureId$3({
194843
194848
  kiosk: !0
194844
194849
  }),
194845
194850
  children: !$0 && !Qn.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(
194846
- Notification,
194851
+ Notification$1,
194847
194852
  {
194848
194853
  inline: !0,
194849
194854
  center: !0,
@@ -194991,7 +194996,7 @@ function CaptureId$3({
194991
194996
  className: cx({
194992
194997
  surface: isSurface
194993
194998
  }),
194994
- 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 })
194995
195000
  }
194996
195001
  ),
194997
195002
  !$0 && !Qn.isOpen && /* @__PURE__ */ jsxRuntimeExports.jsxs(NativeButton, { onClick: Os, className: "IncodeNeedHelpButton", children: [
@@ -195242,7 +195247,7 @@ function CaptureId$3({
195242
195247
  }
195243
195248
  ),
195244
195249
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "step__video-overlay" }),
195245
- !$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 })
195246
195251
  ] }),
195247
195252
  /* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame" })
195248
195253
  ] });
@@ -195790,15 +195795,23 @@ const ShowInstructions = ({
195790
195795
  return /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: (Le = Be.session) == null ? void 0 : Le.token, uiConfig: Be.uiConfig, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureFaceInside, { ...Be }) });
195791
195796
  };
195792
195797
  function renderCaptureFace(Be, { onSuccess: Le, onError: Ye, onCapture: tt, ...nt }) {
195798
+ var ht;
195793
195799
  const ft = createRoot(Be);
195794
195800
  return customRender(
195795
195801
  /* @__PURE__ */ jsxRuntimeExports.jsx(
195796
- CaptureFace,
195802
+ App$1,
195797
195803
  {
195798
- onSuccess: handleUnmountRoot(Le, ft, Be),
195799
- onError: handleUnmountRoot(Ye, ft, Be),
195800
- onCapture: tt ? handleUnmountRoot(tt, ft, Be) : void 0,
195801
- ...nt
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
+ )
195802
195815
  }
195803
195816
  ),
195804
195817
  Be,
@@ -259546,15 +259559,23 @@ path {
259546
259559
  return /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: (Le = Be.session) == null ? void 0 : Le.token, uiConfig: Be.uiConfig, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureIdInside, { ...Be }) });
259547
259560
  };
259548
259561
  function renderCaptureId(Be, { onSuccess: Le, onError: Ye, onCapture: tt, ...nt }) {
259562
+ var ht;
259549
259563
  const ft = createRoot$1(Be);
259550
259564
  return customRender(
259551
259565
  /* @__PURE__ */ jsxRuntimeExports.jsx(
259552
- CaptureId,
259566
+ App$1,
259553
259567
  {
259554
- onSuccess: handleUnmountRoot(Le, ft, Be),
259555
- onError: handleUnmountRoot(Ye, ft, Be),
259556
- onCapture: tt ? handleUnmountRoot(tt, ft, Be) : void 0,
259557
- ...nt
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
+ )
259558
259579
  }
259559
259580
  ),
259560
259581
  Be,
@@ -304571,7 +304592,7 @@ function renderConference(Be, {
304571
304592
  onError: handleUnmountRoot(Et, yt, Be)
304572
304593
  };
304573
304594
  return customRender(
304574
- /* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
304595
+ /* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: Le, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
304575
304596
  ConferenceApp,
304576
304597
  {
304577
304598
  token: Le,
@@ -359610,7 +359631,7 @@ function AdditionalId({
359610
359631
  ) }),
359611
359632
  /* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame", hidden: !0 }),
359612
359633
  /* @__PURE__ */ jsxRuntimeExports.jsx(
359613
- Notification,
359634
+ Notification$1,
359614
359635
  {
359615
359636
  inline: !1,
359616
359637
  center: !0,
@@ -364411,7 +364432,7 @@ function renderVideoSelfie(Be, {
364411
364432
  onError: handleUnmountRoot(Tt, Pt, Be)
364412
364433
  };
364413
364434
  customRender(
364414
- /* @__PURE__ */ jsxRuntimeExports.jsx(
364435
+ /* @__PURE__ */ jsxRuntimeExports.jsx(App$1, { token: Le.token, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
364415
364436
  Recorder,
364416
364437
  {
364417
364438
  onBoarding: this,
@@ -364439,7 +364460,7 @@ function renderVideoSelfie(Be, {
364439
364460
  questionsCount: Ct,
364440
364461
  useOpenVidu: kt
364441
364462
  }
364442
- ),
364463
+ ) }),
364443
364464
  Be,
364444
364465
  Pt
364445
364466
  );
@@ -373144,7 +373165,7 @@ function CameraPaperStatement({
373144
373165
  ),
373145
373166
  /* @__PURE__ */ jsxRuntimeExports.jsx("canvas", { id: "canvasFrame", hidden: !0 }),
373146
373167
  /* @__PURE__ */ jsxRuntimeExports.jsx(
373147
- Notification,
373168
+ Notification$1,
373148
373169
  {
373149
373170
  className: "IncodeCaptureDocumentNotification",
373150
373171
  inline: !1,