@lendi/navbar 7.9.0 → 7.10.0-beta.2

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.
Files changed (28) hide show
  1. package/dist/declarations/src/GuestNavbar/index.d.ts +1 -0
  2. package/dist/declarations/src/MultiNavbar/components/HamBurgerMenu/index.d.ts +1 -0
  3. package/dist/declarations/src/MultiNavbar/components/LeftSidabar/Content/index.d.ts +1 -0
  4. package/dist/declarations/src/MultiNavbar/components/LeftSidabar/FooterCTA/index.d.ts +3 -1
  5. package/dist/declarations/src/MultiNavbar/components/LeftSidabar/index.d.ts +1 -0
  6. package/dist/declarations/src/MultiNavbar/components/MultiOptions/index.d.ts +1 -0
  7. package/dist/declarations/src/MultiNavbar/components/MultiOptions/index.style.d.ts +3 -1
  8. package/dist/declarations/src/MultiNavbar/index.d.ts +2 -1
  9. package/dist/declarations/src/SimpleNavbar/components/CTA/index.d.ts +1 -0
  10. package/dist/declarations/src/SimpleNavbar/components/CTA/index.style.d.ts +8 -2
  11. package/dist/declarations/src/SimpleNavbar/components/DesktopAction/index.d.ts +1 -0
  12. package/dist/declarations/src/SimpleNavbar/components/MobileAction/index.d.ts +1 -0
  13. package/dist/declarations/src/SimpleNavbar/index.d.ts +2 -1
  14. package/dist/declarations/src/shared/RestrictionProvider/index.d.ts +11 -0
  15. package/dist/declarations/src/shared/components/CTA/DesktopActions/index.d.ts +1 -0
  16. package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/index.d.ts +1 -0
  17. package/dist/declarations/src/shared/components/CTA/LogoutComponent/DropdownMenu/style.d.ts +1 -0
  18. package/dist/declarations/src/shared/components/CTA/LogoutComponent/index.d.ts +1 -0
  19. package/dist/declarations/src/shared/components/CTA/LogoutComponent/style.d.ts +2 -1
  20. package/dist/declarations/src/shared/components/CTA/MobileActions/index.d.ts +1 -0
  21. package/dist/declarations/src/shared/components/CTA/index.d.ts +1 -0
  22. package/dist/declarations/src/shared/components/CTA/style.d.ts +12 -4
  23. package/dist/declarations/src/shared/components/Logo/index.d.ts +1 -0
  24. package/dist/declarations/src/shared/components/Logo/style.d.ts +1 -0
  25. package/dist/navbar.cjs.dev.js +195 -134
  26. package/dist/navbar.cjs.prod.js +156 -125
  27. package/dist/navbar.esm.js +201 -140
  28. package/package.json +26 -28
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { GuestNavbarProps } from '..';
2
3
  export declare const GuestNavbar: ({ useTransparent, homeURL, params }: GuestNavbarProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import Menu from '@lendi-ui/icon/Menu';
2
3
  import Close from '@lendi-ui/icon/Close';
3
4
  export interface HamBurgerMenuProps {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MenuProps } from '../index';
2
3
  export declare const LeftSidebarContent: ({ menuOptions: MENU_OPTIONS }: MenuProps) => JSX.Element;
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { Button } from '@lendi-ui/button';
1
3
  export interface FooterCTAProps {
2
4
  isAuthenticated: boolean;
3
5
  continueURL: string;
@@ -5,5 +7,5 @@ export interface FooterCTAProps {
5
7
  showContinueAction?: boolean;
6
8
  }
7
9
  declare const FooterCTA: ({ isAuthenticated, continueURL, onLogout, showContinueAction, }: FooterCTAProps) => JSX.Element;
8
- export declare const FooterAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
10
+ export declare const FooterAction: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, {}, never>;
9
11
  export default FooterCTA;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItem } from '../../menuData';
2
3
  export interface LeftSidebarProps {
3
4
  openSidebar: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface MenuOptionsProps {
2
3
  isAuthenticated: boolean;
3
4
  params: string;
@@ -1,4 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import ExpandMore from '@lendi-ui/icon/ExpandMore';
3
+ import { Button } from '@lendi-ui/button';
2
4
  export interface TransparentProps {
3
5
  isTransparent?: boolean;
4
6
  }
@@ -6,7 +8,7 @@ export interface ExpandMoreProps {
6
8
  isSelected: boolean;
7
9
  }
8
10
  export declare const PanelLink: import("styled-components").StyledComponent<(props: import("@lendi-ui/typography").LinkProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
9
- export declare const PanelButton: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
11
+ export declare const PanelButton: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, {}, never>;
10
12
  export declare const LinksGroup: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
11
13
  export declare const LinkItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
12
14
  export declare const HeadingWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { MultiNavbarProps } from '..';
2
- export declare const MultiNavbar: any;
3
+ export declare const MultiNavbar: React.FC<MultiNavbarProps & (import("..").SimpleNavbarProps | MultiNavbarProps)>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CTAProps } from '../../../shared/components/CTA';
2
3
  export interface UnReadProp {
3
4
  hasUnreadMessages?: boolean;
@@ -1,2 +1,8 @@
1
- export declare const TalkExpertAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
2
- export declare const ContinueAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
1
+ import { Button } from '@lendi-ui/button';
2
+ interface TalkActionProps {
3
+ dashboardVariant?: boolean;
4
+ continueExist?: boolean;
5
+ }
6
+ export declare const TalkExpertAction: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, TalkActionProps, never>;
7
+ export declare const ContinueAction: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, {}, never>;
8
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CTAProps } from '../../../shared/components/CTA';
2
3
  import { UnReadProp } from '../CTA';
3
4
  declare const RenderDesktopAction: ({ dashboardVariant, isAuthenticated, continueURL, showContinueAction, showTalkToExpertCta, showBookanAppointmentCta, openCommPanel, teamMember, hasUnreadMessages, utmCampaign, }: CTAProps & UnReadProp) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CTAProps } from '../../../shared/components/CTA';
2
3
  import { UnReadProp } from '../CTA';
3
4
  declare const RenderMobileAction: ({ isAuthenticated, continueURL, teamMember, openCommPanel, showContinueAction, showTalkToExpertCta, hasUnreadMessages, utmCampaign, }: CTAProps & UnReadProp) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { SimpleNavbarProps } from '..';
2
- export declare const SimpleNavbar: any;
3
+ export declare const SimpleNavbar: React.FC<SimpleNavbarProps & (SimpleNavbarProps | import("..").MultiNavbarProps)>;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface RestrictionState {
3
+ isRestricted: boolean;
4
+ }
5
+ export declare const RestrictionContext: React.Context<RestrictionState>;
6
+ export declare const useRestriction: () => RestrictionState;
7
+ /**
8
+ * RestrictionProvider check the restrictionStatus for FAB/Aussie Ready Customer.
9
+ * @todo This should be removed after Aussire Ready.
10
+ */
11
+ export declare const RestrictionProvider: React.FunctionComponent;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UnReadProp } from '../../../../SimpleNavbar/components/CTA';
2
3
  import { CTAProps } from '../index';
3
4
  export declare const DesktopActions: ({ isAuthenticated, continueURL, showContinueAction, openCommPanel, teamMember, hasUnreadMessages, showTalkToExpertCta, }: CTAProps & UnReadProp) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const DropdownMenu: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import Launch from '@lendi-ui/icon/Launch';
2
3
  export declare const LogoutWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const MyAccountTitle: any;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const LogoutComponent: () => JSX.Element;
@@ -1 +1,2 @@
1
- export declare const KebabMenu: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
1
+ import { IconButton } from '@lendi-ui/button';
2
+ export declare const KebabMenu: import("styled-components").StyledComponent<typeof IconButton, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UnReadProp } from '../../../../SimpleNavbar/components/CTA';
2
3
  import { CTAProps } from '../index';
3
4
  export declare const MobileActions: ({ isAuthenticated, continueURL, showContinueAction, openCommPanel, teamMember, hasUnreadMessages, showTalkToExpertCta, }: CTAProps & UnReadProp) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TeamMember } from '../../types';
2
3
  import { UnReadProp } from '../../../SimpleNavbar/components/CTA';
3
4
  export interface CTAProps {
@@ -1,7 +1,15 @@
1
+ import { Button } from '@lendi-ui/button';
1
2
  import UnreadMessage from '@lendi-ui/icon/UnreadMessage';
2
- export declare const TalkExpertAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
3
- export declare const TalkExpertActionMobile: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
4
- export declare const SecondaryAction: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
5
- export declare const SecondaryActionMobile: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
3
+ interface AccomodateBigLabel {
4
+ bigLabelAccomodate?: boolean;
5
+ }
6
+ export declare const TalkExpertAction: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, AccomodateBigLabel, never>;
7
+ interface TalkExpertActionMobileProp {
8
+ isContinue?: boolean;
9
+ }
10
+ export declare const TalkExpertActionMobile: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, TalkExpertActionMobileProp, never>;
11
+ export declare const SecondaryAction: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, AccomodateBigLabel, never>;
12
+ export declare const SecondaryActionMobile: import("styled-components").StyledComponent<typeof Button, import("styled-components").DefaultTheme, {}, never>;
6
13
  export declare const DesktopLogoutWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
14
  export declare const UnreadMessageWrapper: import("styled-components").StyledComponent<typeof UnreadMessage, import("styled-components").DefaultTheme, {}, never>;
15
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LogoProps {
2
3
  params?: string;
3
4
  homeURL?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface HeaderLogo {
2
3
  isHref: boolean;
3
4
  }
@@ -404,6 +404,96 @@ var useDropdownMenu = () => {
404
404
  return state;
405
405
  };
406
406
 
407
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
408
+ try {
409
+ var info = gen[key](arg);
410
+ var value = info.value;
411
+ } catch (error) {
412
+ reject(error);
413
+ return;
414
+ }
415
+
416
+ if (info.done) {
417
+ resolve(value);
418
+ } else {
419
+ Promise.resolve(value).then(_next, _throw);
420
+ }
421
+ }
422
+
423
+ function _asyncToGenerator(fn) {
424
+ return function () {
425
+ var self = this,
426
+ args = arguments;
427
+ return new Promise(function (resolve, reject) {
428
+ var gen = fn.apply(self, args);
429
+
430
+ function _next(value) {
431
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
432
+ }
433
+
434
+ function _throw(err) {
435
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
436
+ }
437
+
438
+ _next(undefined);
439
+ });
440
+ };
441
+ }
442
+
443
+ var RestrictionContext = /*#__PURE__*/React__default["default"].createContext({
444
+ isRestricted: false
445
+ });
446
+ var useRestriction = () => {
447
+ var restrictionState = React__default["default"].useContext(RestrictionContext);
448
+
449
+ if (!restrictionState) {
450
+ throw new Error('Please setup <RestrictionProvider /> as a parent component, before using useRestriction().');
451
+ }
452
+
453
+ return restrictionState;
454
+ };
455
+ /**
456
+ * RestrictionProvider check the restrictionStatus for FAB/Aussie Ready Customer.
457
+ * @todo This should be removed after Aussire Ready.
458
+ */
459
+
460
+ var RestrictionProvider = _ref => {
461
+ var {
462
+ children
463
+ } = _ref;
464
+ var [isRestricted, setIsRestricted] = React.useState(false);
465
+ var session = lalaReact.useSession();
466
+ React.useEffect(() => {
467
+ // declare the data fetching function
468
+ var fetchStatus = /*#__PURE__*/function () {
469
+ var _ref2 = _asyncToGenerator(function* () {
470
+ var restrictionStatus = yield session.getRestrictionStatusForFAB();
471
+ setIsRestricted(restrictionStatus === 'Restricted');
472
+ });
473
+
474
+ return function fetchStatus() {
475
+ return _ref2.apply(this, arguments);
476
+ };
477
+ }();
478
+ /**
479
+ * For Aussie Customer, between FAB & AussieReady, we need to fetch their restriction status.
480
+ * @todo Remove the following after Aussie Ready.
481
+ */
482
+
483
+
484
+ if (session.brand === lalaReact.Brand.Aussie) {
485
+ fetchStatus() // make sure to catch any error
486
+ .catch(console.error);
487
+ }
488
+ }, [session]);
489
+ return /*#__PURE__*/jsxRuntime.jsx(RestrictionContext.Provider, {
490
+ value: {
491
+ isRestricted
492
+ },
493
+ children: children
494
+ });
495
+ };
496
+
407
497
  var DropdownMenu = () => {
408
498
  var isDomain = lalaUtils.getBrandFromHostname() === lalaUtils.Brand.Domain;
409
499
  var path = isDomain ? PATH_DOMAIN : PATH_LENDI;
@@ -415,10 +505,13 @@ var DropdownMenu = () => {
415
505
  var {
416
506
  newPropertyReports
417
507
  } = launchdarkly.useFlags();
508
+ var {
509
+ isRestricted
510
+ } = useRestriction();
418
511
  return /*#__PURE__*/jsxRuntime.jsxs(LogoutWrapper, {
419
512
  children: [/*#__PURE__*/jsxRuntime.jsx(MyAccountTitle, {
420
513
  children: "My account"
421
- }), !hideManageApplicationsItem && /*#__PURE__*/jsxRuntime.jsx(LinkWrapper, {
514
+ }), !hideManageApplicationsItem && !isRestricted && /*#__PURE__*/jsxRuntime.jsx(LinkWrapper, {
422
515
  color: "shade.700",
423
516
  onClick: () => {
424
517
  var event = {
@@ -432,7 +525,7 @@ var DropdownMenu = () => {
432
525
  href: "".concat(path).concat(ROUTE_APPLICATIONS),
433
526
  "aria-label": LABEL_APPLICATIONS,
434
527
  children: LABEL_APPLICATIONS
435
- }), !hideDashboardItem && /*#__PURE__*/jsxRuntime.jsx(LinkWrapper, {
528
+ }), !hideDashboardItem && !isRestricted && /*#__PURE__*/jsxRuntime.jsx(LinkWrapper, {
436
529
  color: "shade.700",
437
530
  onClick: () => {
438
531
  var event = {
@@ -781,42 +874,6 @@ var CTAButtons$2 = props => {
781
874
 
782
875
  var CTAButtons$3 = CTAButtons$2;
783
876
 
784
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
785
- try {
786
- var info = gen[key](arg);
787
- var value = info.value;
788
- } catch (error) {
789
- reject(error);
790
- return;
791
- }
792
-
793
- if (info.done) {
794
- resolve(value);
795
- } else {
796
- Promise.resolve(value).then(_next, _throw);
797
- }
798
- }
799
-
800
- function _asyncToGenerator(fn) {
801
- return function () {
802
- var self = this,
803
- args = arguments;
804
- return new Promise(function (resolve, reject) {
805
- var gen = fn.apply(self, args);
806
-
807
- function _next(value) {
808
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
809
- }
810
-
811
- function _throw(err) {
812
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
813
- }
814
-
815
- _next(undefined);
816
- });
817
- };
818
- }
819
-
820
877
  // Inspiration: https://davidwalsh.name/javascript-polling - just write TS version.
821
878
  function asyncPoll(_x) {
822
879
  return _asyncPoll.apply(this, arguments);
@@ -1220,54 +1277,56 @@ var SimpleNavbarComponent = _ref => {
1220
1277
  var hasWindow = typeof window !== 'undefined';
1221
1278
  var utmCampaign = hasWindow ? new URLSearchParams(window.location.search).get('utm_campaign') : null;
1222
1279
  useEmailOpenChat(openChat, userGroupHash);
1223
- return /*#__PURE__*/jsxRuntime.jsxs(commPanel.ChatUserStatusContext.Provider, {
1280
+ return /*#__PURE__*/jsxRuntime.jsx(commPanel.ChatUserStatusContext.Provider, {
1224
1281
  value: {
1225
1282
  setHasUnReadMessage: hasUnreadMessages => setUnReadMessage(hasUnreadMessages),
1226
1283
  setStatus: status => setIsOtherUserOnline(status)
1227
1284
  },
1228
- children: [/*#__PURE__*/jsxRuntime.jsxs(SimpleNavbarWrapper, {
1229
- isTransparent: useTransparent,
1230
- isAuthenticated: isAuthenticated,
1231
- children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
1232
- children: /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
1233
- homeURL: homeURL,
1234
- params: params,
1235
- "aria-label": "Logo",
1236
- hasHamburgerMenu: false
1237
- })
1238
- }), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
1239
- children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
1240
- hideDashboardItem: hideDashboardItem,
1241
- hideManageApplicationsItem: hideManageApplicationsItem,
1242
- onLogout: onLogout,
1243
- children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$3, {
1244
- showTalkToExpertCta: showTalkToExpertCta,
1245
- showBookanAppointmentCta: showBookanAppointmentCta,
1246
- isAuthenticated: isAuthenticated,
1247
- continueURL: continueURL,
1248
- utmCampaign: utmCampaign,
1249
- showContinueAction: showContinueAction,
1250
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1251
- teamMember: latestTeamMember,
1252
- hasUnreadMessages: unReadMesage
1285
+ children: /*#__PURE__*/jsxRuntime.jsxs(RestrictionProvider, {
1286
+ children: [/*#__PURE__*/jsxRuntime.jsxs(SimpleNavbarWrapper, {
1287
+ isTransparent: useTransparent,
1288
+ isAuthenticated: isAuthenticated,
1289
+ children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
1290
+ children: /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
1291
+ homeURL: homeURL,
1292
+ params: params,
1293
+ "aria-label": "Logo",
1294
+ hasHamburgerMenu: false
1295
+ })
1296
+ }), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
1297
+ children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
1298
+ hideDashboardItem: hideDashboardItem,
1299
+ hideManageApplicationsItem: hideManageApplicationsItem,
1300
+ onLogout: onLogout,
1301
+ children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$3, {
1302
+ showTalkToExpertCta: showTalkToExpertCta,
1303
+ showBookanAppointmentCta: showBookanAppointmentCta,
1304
+ isAuthenticated: isAuthenticated,
1305
+ continueURL: continueURL,
1306
+ utmCampaign: utmCampaign,
1307
+ showContinueAction: showContinueAction,
1308
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1309
+ teamMember: latestTeamMember,
1310
+ hasUnreadMessages: unReadMesage
1311
+ })
1312
+ })
1313
+ })]
1314
+ }), /*#__PURE__*/jsxRuntime.jsx(Transition__default["default"], {
1315
+ isActive: isCommPanelOpen,
1316
+ timeout: 250,
1317
+ children: state => /*#__PURE__*/jsxRuntime.jsx(CommPanelWrapper, {
1318
+ transition: state,
1319
+ toTheTop: breakpoint$1 === 'mobile',
1320
+ children: /*#__PURE__*/jsxRuntime.jsx(commPanel.CustomerCommPanel, {
1321
+ channelId: userGroupHash,
1322
+ latestTeamMember: latestTeamMember,
1323
+ hasNew: unReadMesage,
1324
+ isOtherUserOnline: isOtherUserOnline,
1325
+ onException: onException
1253
1326
  })
1254
1327
  })
1255
1328
  })]
1256
- }), /*#__PURE__*/jsxRuntime.jsx(Transition__default["default"], {
1257
- isActive: isCommPanelOpen,
1258
- timeout: 250,
1259
- children: state => /*#__PURE__*/jsxRuntime.jsx(CommPanelWrapper, {
1260
- transition: state,
1261
- toTheTop: breakpoint$1 === 'mobile',
1262
- children: /*#__PURE__*/jsxRuntime.jsx(commPanel.CustomerCommPanel, {
1263
- channelId: userGroupHash,
1264
- latestTeamMember: latestTeamMember,
1265
- hasNew: unReadMesage,
1266
- isOtherUserOnline: isOtherUserOnline,
1267
- onException: onException
1268
- })
1269
- })
1270
- })]
1329
+ })
1271
1330
  });
1272
1331
  };
1273
1332
 
@@ -2046,70 +2105,72 @@ var MultiNavbarWithTheme = _ref => {
2046
2105
  var [userGroupHash, teamMemberId] = useUserGroup(session);
2047
2106
  var latestTeamMember = useTeamMember(session, teamMemberId);
2048
2107
  useEmailOpenChat(openChat, userGroupHash);
2049
- return /*#__PURE__*/jsxRuntime.jsxs(commPanel.ChatUserStatusContext.Provider, {
2108
+ return /*#__PURE__*/jsxRuntime.jsx(commPanel.ChatUserStatusContext.Provider, {
2050
2109
  value: {
2051
2110
  setHasUnReadMessage: hasUnreadMessages => setUnReadMessage(hasUnreadMessages),
2052
2111
  setStatus: status => setIsOtherUserOnline(status)
2053
2112
  },
2054
- children: [/*#__PURE__*/jsxRuntime.jsxs(NavbarWrapper, _objectSpread2(_objectSpread2({
2055
- isTransparent: useTransparent,
2056
- isAuthenticated: isAuthenticated
2057
- }, otherProps), {}, {
2058
- children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
2059
- children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
2060
- children: [/*#__PURE__*/jsxRuntime.jsxs(MenuLogoWrapper, {
2061
- children: [/*#__PURE__*/jsxRuntime.jsx(HamBurgerMenu$1, {
2062
- toggleSidebar: toggle => setLeftSidebarState(toggle),
2063
- leftSidebarState: leftSidebarState
2064
- }), /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
2065
- homeURL: homeURL,
2113
+ children: /*#__PURE__*/jsxRuntime.jsxs(RestrictionProvider, {
2114
+ children: [/*#__PURE__*/jsxRuntime.jsxs(NavbarWrapper, _objectSpread2(_objectSpread2({
2115
+ isTransparent: useTransparent,
2116
+ isAuthenticated: isAuthenticated
2117
+ }, otherProps), {}, {
2118
+ children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
2119
+ children: /*#__PURE__*/jsxRuntime.jsxs(Container, {
2120
+ children: [/*#__PURE__*/jsxRuntime.jsxs(MenuLogoWrapper, {
2121
+ children: [/*#__PURE__*/jsxRuntime.jsx(HamBurgerMenu$1, {
2122
+ toggleSidebar: toggle => setLeftSidebarState(toggle),
2123
+ leftSidebarState: leftSidebarState
2124
+ }), /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
2125
+ homeURL: homeURL,
2126
+ params: params
2127
+ })]
2128
+ }), /*#__PURE__*/jsxRuntime.jsx(MenuOptions$1, {
2129
+ isAuthenticated: isAuthenticated,
2130
+ continueURL: continueURL,
2066
2131
  params: params
2067
2132
  })]
2068
- }), /*#__PURE__*/jsxRuntime.jsx(MenuOptions$1, {
2069
- isAuthenticated: isAuthenticated,
2070
- continueURL: continueURL,
2071
- params: params
2072
- })]
2073
- })
2074
- }), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
2075
- children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
2076
- hideDashboardItem: hideDashboardItem,
2077
- hideManageApplicationsItem: hideManageApplicationsItem,
2078
- onLogout: onLogout,
2079
- children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$1, {
2080
- showTalkToExpertCta: showTalkToExpertCta,
2081
- isAuthenticated: isAuthenticated,
2082
- continueURL: continueURL,
2083
- showContinueAction: showContinueAction,
2084
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
2085
- teamMember: latestTeamMember,
2086
- hasUnreadMessages: unReadMesage
2133
+ })
2134
+ }), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
2135
+ children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
2136
+ hideDashboardItem: hideDashboardItem,
2137
+ hideManageApplicationsItem: hideManageApplicationsItem,
2138
+ onLogout: onLogout,
2139
+ children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$1, {
2140
+ showTalkToExpertCta: showTalkToExpertCta,
2141
+ isAuthenticated: isAuthenticated,
2142
+ continueURL: continueURL,
2143
+ showContinueAction: showContinueAction,
2144
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
2145
+ teamMember: latestTeamMember,
2146
+ hasUnreadMessages: unReadMesage
2147
+ })
2148
+ })
2149
+ })]
2150
+ })), /*#__PURE__*/jsxRuntime.jsx(Transition__default["default"], {
2151
+ isActive: isCommPanelOpen,
2152
+ timeout: 250,
2153
+ children: state => /*#__PURE__*/jsxRuntime.jsx(CommPanelWrapper, {
2154
+ transition: state,
2155
+ toTheTop: breakpoint$1 === 'mobile',
2156
+ children: /*#__PURE__*/jsxRuntime.jsx(commPanel.CustomerCommPanel, {
2157
+ channelId: userGroupHash,
2158
+ latestTeamMember: latestTeamMember,
2159
+ hasNew: unReadMesage,
2160
+ isOtherUserOnline: isOtherUserOnline,
2161
+ onException: onException
2087
2162
  })
2088
2163
  })
2164
+ }), /*#__PURE__*/jsxRuntime.jsx(LeftSidebar$1, {
2165
+ menuOptions: MULTI_MENU_OPTIONS,
2166
+ openSidebar: leftSidebarState,
2167
+ closeSidebar: () => setLeftSidebarState(false),
2168
+ isAuthenticated: isAuthenticated,
2169
+ continueURL: continueURL,
2170
+ onLogout: onLogout,
2171
+ showContinueAction: showContinueAction
2089
2172
  })]
2090
- })), /*#__PURE__*/jsxRuntime.jsx(Transition__default["default"], {
2091
- isActive: isCommPanelOpen,
2092
- timeout: 250,
2093
- children: state => /*#__PURE__*/jsxRuntime.jsx(CommPanelWrapper, {
2094
- transition: state,
2095
- toTheTop: breakpoint$1 === 'mobile',
2096
- children: /*#__PURE__*/jsxRuntime.jsx(commPanel.CustomerCommPanel, {
2097
- channelId: userGroupHash,
2098
- latestTeamMember: latestTeamMember,
2099
- hasNew: unReadMesage,
2100
- isOtherUserOnline: isOtherUserOnline,
2101
- onException: onException
2102
- })
2103
- })
2104
- }), /*#__PURE__*/jsxRuntime.jsx(LeftSidebar$1, {
2105
- menuOptions: MULTI_MENU_OPTIONS,
2106
- openSidebar: leftSidebarState,
2107
- closeSidebar: () => setLeftSidebarState(false),
2108
- isAuthenticated: isAuthenticated,
2109
- continueURL: continueURL,
2110
- onLogout: onLogout,
2111
- showContinueAction: showContinueAction
2112
- })]
2173
+ })
2113
2174
  });
2114
2175
  };
2115
2176