@lendi/navbar 7.15.1 → 7.15.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.
@@ -68,7 +68,24 @@ var getTypography__default = /*#__PURE__*/_interopDefault(getTypography);
68
68
  var ArrowForward__default = /*#__PURE__*/_interopDefault(ArrowForward);
69
69
  var axios__default = /*#__PURE__*/_interopDefault(axios);
70
70
 
71
+ function _toPrimitive(input, hint) {
72
+ if (typeof input !== "object" || input === null) return input;
73
+ var prim = input[Symbol.toPrimitive];
74
+ if (prim !== undefined) {
75
+ var res = prim.call(input, hint || "default");
76
+ if (typeof res !== "object") return res;
77
+ throw new TypeError("@@toPrimitive must return a primitive value.");
78
+ }
79
+ return (hint === "string" ? String : Number)(input);
80
+ }
81
+
82
+ function _toPropertyKey(arg) {
83
+ var key = _toPrimitive(arg, "string");
84
+ return typeof key === "symbol" ? key : String(key);
85
+ }
86
+
71
87
  function _defineProperty(obj, key, value) {
88
+ key = _toPropertyKey(key);
72
89
  if (key in obj) {
73
90
  Object.defineProperty(obj, key, {
74
91
  value: value,
@@ -79,23 +96,19 @@ function _defineProperty(obj, key, value) {
79
96
  } else {
80
97
  obj[key] = value;
81
98
  }
82
-
83
99
  return obj;
84
100
  }
85
101
 
86
102
  function ownKeys(object, enumerableOnly) {
87
103
  var keys = Object.keys(object);
88
-
89
104
  if (Object.getOwnPropertySymbols) {
90
105
  var symbols = Object.getOwnPropertySymbols(object);
91
106
  enumerableOnly && (symbols = symbols.filter(function (sym) {
92
107
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
93
108
  })), keys.push.apply(keys, symbols);
94
109
  }
95
-
96
110
  return keys;
97
111
  }
98
-
99
112
  function _objectSpread2(target) {
100
113
  for (var i = 1; i < arguments.length; i++) {
101
114
  var source = null != arguments[i] ? arguments[i] : {};
@@ -105,7 +118,6 @@ function _objectSpread2(target) {
105
118
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
106
119
  });
107
120
  }
108
-
109
121
  return target;
110
122
  }
111
123
 
@@ -128,7 +140,6 @@ function _taggedTemplateLiteral(strings, raw) {
128
140
  if (!raw) {
129
141
  raw = strings.slice(0);
130
142
  }
131
-
132
143
  return Object.freeze(Object.defineProperties(strings, {
133
144
  raw: {
134
145
  value: Object.freeze(raw)
@@ -209,7 +220,6 @@ var LogoComponent = _ref => {
209
220
  })
210
221
  });
211
222
  };
212
-
213
223
  var LogoComponent$1 = LogoComponent;
214
224
 
215
225
  var _templateObject$e;
@@ -379,11 +389,9 @@ var initialState = {
379
389
  var DropdownMenuContext = /*#__PURE__*/React__default["default"].createContext(initialState);
380
390
  var useDropdownMenu = () => {
381
391
  var state = React__default["default"].useContext(DropdownMenuContext);
382
-
383
392
  if (!state) {
384
393
  throw new Error('Please setup <DropdownMenuProvider /> as a parent component, before using useDropdownMenu().');
385
394
  }
386
-
387
395
  return state;
388
396
  };
389
397
 
@@ -395,29 +403,24 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
395
403
  reject(error);
396
404
  return;
397
405
  }
398
-
399
406
  if (info.done) {
400
407
  resolve(value);
401
408
  } else {
402
409
  Promise.resolve(value).then(_next, _throw);
403
410
  }
404
411
  }
405
-
406
412
  function _asyncToGenerator(fn) {
407
413
  return function () {
408
414
  var self = this,
409
- args = arguments;
415
+ args = arguments;
410
416
  return new Promise(function (resolve, reject) {
411
417
  var gen = fn.apply(self, args);
412
-
413
418
  function _next(value) {
414
419
  asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
415
420
  }
416
-
417
421
  function _throw(err) {
418
422
  asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
419
423
  }
420
-
421
424
  _next(undefined);
422
425
  });
423
426
  };
@@ -428,18 +431,16 @@ var RestrictionContext = /*#__PURE__*/React__default["default"].createContext({
428
431
  });
429
432
  var useRestriction = () => {
430
433
  var restrictionState = React__default["default"].useContext(RestrictionContext);
431
-
432
434
  if (!restrictionState) {
433
435
  throw new Error('Please setup <RestrictionProvider /> as a parent component, before using useRestriction().');
434
436
  }
435
-
436
437
  return restrictionState;
437
438
  };
439
+
438
440
  /**
439
441
  * RestrictionProvider check the restrictionStatus for FAB/Aussie Ready Customer.
440
442
  * @todo This should be removed after Aussire Ready.
441
443
  */
442
-
443
444
  var RestrictionProvider = _ref => {
444
445
  var {
445
446
  children
@@ -453,19 +454,18 @@ var RestrictionProvider = _ref => {
453
454
  var restrictionStatus = yield session.getRestrictionStatusForFAB();
454
455
  setIsRestricted(restrictionStatus === 'Restricted');
455
456
  });
456
-
457
457
  return function fetchStatus() {
458
458
  return _ref2.apply(this, arguments);
459
459
  };
460
460
  }();
461
+
461
462
  /**
462
463
  * For Aussie Customer, between FAB & AussieReady, we need to fetch their restriction status.
463
464
  * @todo Remove the following after Aussie Ready.
464
465
  */
465
-
466
-
467
466
  if (session.brand === lalaReact.Brand.Aussie) {
468
- fetchStatus() // make sure to catch any error
467
+ fetchStatus()
468
+ // make sure to catch any error
469
469
  .catch(console.error);
470
470
  }
471
471
  }, [session]);
@@ -571,18 +571,15 @@ var LogoutComponent = () => {
571
571
  var logoutPanel = React__default["default"].useRef();
572
572
  var hasWindow = typeof window !== 'undefined';
573
573
  var theme = Theme.useTheme();
574
-
575
574
  var closeLogoutPanel = e => {
576
575
  if (logoutPanel && logoutPanel.current && !logoutPanel.current.contains(e.target)) {
577
576
  setIsLogoutDisplay(false);
578
577
  }
579
578
  };
580
-
581
579
  React__default["default"].useEffect(() => {
582
580
  if (hasWindow) {
583
581
  window.addEventListener('mousedown', closeLogoutPanel);
584
582
  }
585
-
586
583
  return () => {
587
584
  if (hasWindow) {
588
585
  window.removeEventListener('mousedown', closeLogoutPanel);
@@ -619,12 +616,12 @@ var DEFAULT_DASHBOARD_URL = '/v2/dashboard/';
619
616
  var getSignInURL = (brand, env, returnURL) => {
620
617
  var urls = lalaUtils.getURLs(brand, lalaReact.Type.Customer, env);
621
618
  var dashboardReturnURL = brand === lalaReact.Brand.Domain ? "/loanfinder".concat(DEFAULT_DASHBOARD_URL) : DEFAULT_DASHBOARD_URL;
619
+
622
620
  /**
623
621
  * The return URL should be based on origin
624
622
  * If origin is homepage or not given, then return URL should be dashboard
625
623
  * else, whatever is given.
626
624
  */
627
-
628
625
  var newReturnURL = returnURL === undefined || returnURL === '' || returnURL === urls.origin ? dashboardReturnURL : returnURL;
629
626
  return "".concat(urls.authenticate, "?returnURL=").concat(encodeURIComponent(newReturnURL));
630
627
  };
@@ -677,10 +674,8 @@ var RenderChatOrSideBar = _ref => {
677
674
  })
678
675
  });
679
676
  };
680
-
681
677
  var RenderDesktopAction = _ref2 => {
682
678
  var _window, _window$location, _window2, _window2$location;
683
-
684
679
  var {
685
680
  dashboardVariant,
686
681
  isAuthenticated,
@@ -698,7 +693,6 @@ var RenderDesktopAction = _ref2 => {
698
693
  var signInURL = getSignInURL(brand, env, (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$location = _window2.location) === null || _window2$location === void 0 ? void 0 : _window2$location.href);
699
694
  var isDomain = brand === lalaUtils.Brand.Domain;
700
695
  var path = isDomain ? PATH_DOMAIN : PATH_LENDI;
701
-
702
696
  var renderSecondaryBtn = (utmCampaign, isAuthenticated, showBookanAppointmentCta, showContinueAction) => {
703
697
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
704
698
  children: [(utmCampaign || showContinueAction) && isAuthenticated && /*#__PURE__*/jsxRuntime.jsx(SecondaryAction, {
@@ -749,7 +743,6 @@ var RenderDesktopAction = _ref2 => {
749
743
  })]
750
744
  });
751
745
  };
752
-
753
746
  return /*#__PURE__*/jsxRuntime.jsxs(DesktopActionsWrapper, {
754
747
  children: [showTalkToExpertCta && /*#__PURE__*/jsxRuntime.jsx(RenderChatOrSideBar, {
755
748
  openCommPanel: openCommPanel,
@@ -759,7 +752,6 @@ var RenderDesktopAction = _ref2 => {
759
752
  }), renderSecondaryBtn(utmCampaign, isAuthenticated, showBookanAppointmentCta, showContinueAction), isAuthenticated && /*#__PURE__*/jsxRuntime.jsx(LogoutComponent, {})]
760
753
  });
761
754
  };
762
-
763
755
  var RenderDesktopAction$1 = RenderDesktopAction;
764
756
 
765
757
  var _templateObject$9;
@@ -770,7 +762,6 @@ var MobileActionsWrapper = styled__default["default"].div.withConfig({
770
762
 
771
763
  var RenderMobileAction = _ref => {
772
764
  var _window, _window$location, _window2, _window2$location;
773
-
774
765
  var {
775
766
  isAuthenticated,
776
767
  continueURL,
@@ -784,11 +775,8 @@ var RenderMobileAction = _ref => {
784
775
  var {
785
776
  isTransparent
786
777
  } = NavbarBase.useNavbarBaseContext();
787
-
788
778
  var needToContinue = () => isAuthenticated && showContinueAction;
789
-
790
779
  var needToSignIn = () => !isAuthenticated && utmCampaign;
791
-
792
780
  var brand = lalaUtils.getBrandFromHostname();
793
781
  var env = getEnvFromHostname((_window = window) === null || _window === void 0 ? void 0 : (_window$location = _window.location) === null || _window$location === void 0 ? void 0 : _window$location.hostname);
794
782
  var signInURL = getSignInURL(brand, env, (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$location = _window2.location) === null || _window2$location === void 0 ? void 0 : _window2$location.href);
@@ -852,7 +840,6 @@ var RenderMobileAction = _ref => {
852
840
  }), isAuthenticated && /*#__PURE__*/jsxRuntime.jsx(LogoutComponent, {})]
853
841
  });
854
842
  };
855
-
856
843
  var RenderMobileAction$1 = RenderMobileAction;
857
844
 
858
845
  var CTAButtons$2 = props => {
@@ -864,7 +851,6 @@ var CTAButtons$2 = props => {
864
851
  }, props))]
865
852
  });
866
853
  };
867
-
868
854
  var CTAButtons$3 = CTAButtons$2;
869
855
 
870
856
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -872,13 +858,11 @@ function _objectWithoutPropertiesLoose(source, excluded) {
872
858
  var target = {};
873
859
  var sourceKeys = Object.keys(source);
874
860
  var key, i;
875
-
876
861
  for (i = 0; i < sourceKeys.length; i++) {
877
862
  key = sourceKeys[i];
878
863
  if (excluded.indexOf(key) >= 0) continue;
879
864
  target[key] = source[key];
880
865
  }
881
-
882
866
  return target;
883
867
  }
884
868
 
@@ -886,10 +870,8 @@ function _objectWithoutProperties(source, excluded) {
886
870
  if (source == null) return {};
887
871
  var target = _objectWithoutPropertiesLoose(source, excluded);
888
872
  var key, i;
889
-
890
873
  if (Object.getOwnPropertySymbols) {
891
874
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
892
-
893
875
  for (i = 0; i < sourceSymbolKeys.length; i++) {
894
876
  key = sourceSymbolKeys[i];
895
877
  if (excluded.indexOf(key) >= 0) continue;
@@ -897,17 +879,15 @@ function _objectWithoutProperties(source, excluded) {
897
879
  target[key] = source[key];
898
880
  }
899
881
  }
900
-
901
882
  return target;
902
883
  }
903
884
 
904
885
  var _excluded$a = ["showTalkToExpertCta"];
905
886
  var withDomainChat = Component => _ref => {
906
887
  var {
907
- showTalkToExpertCta = true
908
- } = _ref,
909
- otherProps = _objectWithoutProperties(_ref, _excluded$a);
910
-
888
+ showTalkToExpertCta = true
889
+ } = _ref,
890
+ otherProps = _objectWithoutProperties(_ref, _excluded$a);
911
891
  var session = lalaReact.useSession();
912
892
  var isAuthenticated = session.status === lalaReact.Status.Authenticated;
913
893
  var isDomain = lalaUtils.getBrandFromHostname() === lalaUtils.Brand.Domain;
@@ -938,11 +918,9 @@ var DropdownProvider = _ref => {
938
918
  var ErrorContext = /*#__PURE__*/React__default["default"].createContext(undefined);
939
919
  var useError = () => {
940
920
  var errorState = React__default["default"].useContext(ErrorContext);
941
-
942
921
  if (!errorState) {
943
922
  throw new Error('Please setup <ErrorProvider /> as a parent component, before using useError().');
944
923
  }
945
-
946
924
  return errorState;
947
925
  };
948
926
 
@@ -965,11 +943,11 @@ var withErrorProvider = Component => props => /*#__PURE__*/jsxRuntime.jsx(ErrorP
965
943
  });
966
944
 
967
945
  var _excluded$9 = ["children", "className", "isOpen", "handleClose", "topOffset"];
968
-
969
946
  var _templateObject$8, _templateObject2$3;
970
947
  var IS_OPEN_DATA_ATTRIBUTE = 'data-slideout-isOpen';
971
948
  var slideInRight = styled.keyframes(["0%{transform:translate3d(100%,0,0);}100%{transform:translate3d(0,0,0);}"]);
972
949
  var slideOutRight = styled.keyframes(["0%{transform:translate3d(0,0,0);}100%{transform:translate3d(100%,0,0);}"]);
950
+
973
951
  /**
974
952
  * @todo z-index: tokenise z-index to make it easier to manage levels
975
953
  */
@@ -982,10 +960,11 @@ var StyledSlideoutMenu$1 = styled__default["default"].div.withConfig({
982
960
  topOffset
983
961
  } = _ref;
984
962
  return topOffset && breakpoint.map(topOffset, value => value && "top: ".concat(value));
985
- }); // Sorry, 'any' typing hack to get rid of 'not a valid JSX element' warning when using in component return block
963
+ });
964
+
965
+ // Sorry, 'any' typing hack to get rid of 'not a valid JSX element' warning when using in component return block
986
966
  // @todo this is also an issue in the Theme component with global styles
987
967
  // https://github.com/styled-components/styled-components/issues/3738
988
-
989
968
  var BodyStyles = styled.createGlobalStyle(["", ""], _ref2 => {
990
969
  var {
991
970
  isOpen
@@ -994,9 +973,7 @@ var BodyStyles = styled.createGlobalStyle(["", ""], _ref2 => {
994
973
  });
995
974
  var useSlideoutMenu = () => {
996
975
  var [showMenu, setShowMenu] = React.useState(false);
997
-
998
976
  var toggleMenu = () => setShowMenu(!showMenu);
999
-
1000
977
  return {
1001
978
  showMenu,
1002
979
  toggleMenu
@@ -1004,19 +981,19 @@ var useSlideoutMenu = () => {
1004
981
  };
1005
982
  var SlideoutMenuBase = _ref3 => {
1006
983
  var {
1007
- children,
1008
- className,
1009
- isOpen,
1010
- handleClose,
1011
- topOffset
1012
- } = _ref3,
1013
- props = _objectWithoutProperties(_ref3, _excluded$9);
1014
-
984
+ children,
985
+ className,
986
+ isOpen,
987
+ handleClose,
988
+ topOffset
989
+ } = _ref3,
990
+ props = _objectWithoutProperties(_ref3, _excluded$9);
1015
991
  var globalProps = utils$1.filterGlobalProps(props);
1016
992
  var slideoutRef = React.useRef(null);
1017
993
  var animationClassnames = isOpen ? "is-open slide-in-right" : 'slide-out-right';
1018
- var classNames = className ? "".concat(className, " ").concat(animationClassnames) : animationClassnames; // If the item is open listen for escape key
994
+ var classNames = className ? "".concat(className, " ").concat(animationClassnames) : animationClassnames;
1019
995
 
996
+ // If the item is open listen for escape key
1020
997
  React.useEffect(() => {
1021
998
  var escapeEvent = event => {
1022
999
  if (event.key === 'Escape') {
@@ -1026,22 +1003,19 @@ var SlideoutMenuBase = _ref3 => {
1026
1003
  }
1027
1004
  }
1028
1005
  };
1029
-
1030
1006
  if (isOpen) {
1031
1007
  window.addEventListener('keydown', escapeEvent);
1032
1008
  if (slideoutRef !== null && slideoutRef !== void 0 && slideoutRef.current) slideoutRef.current.style.display = 'block';
1033
1009
  }
1034
-
1035
1010
  return () => {
1036
1011
  window.removeEventListener('keydown', escapeEvent);
1037
1012
  };
1038
1013
  }, [isOpen]); // eslint-disable-line react-hooks/exhaustive-deps
1039
- // Add data attribute to body as hook for indicating a slideout menu is open
1040
1014
 
1015
+ // Add data attribute to body as hook for indicating a slideout menu is open
1041
1016
  React.useEffect(() => {
1042
1017
  var allMenus = document.querySelectorAll('[data-is-open]');
1043
1018
  var atLeastOneIsOpen = Array.from(allMenus).some(item => item.getAttribute('data-is-open') === 'true');
1044
-
1045
1019
  if (isOpen) {
1046
1020
  document.body.setAttribute(IS_OPEN_DATA_ATTRIBUTE, '');
1047
1021
  } else {
@@ -1055,18 +1029,15 @@ var SlideoutMenuBase = _ref3 => {
1055
1029
  var onAnimationEnd = () => {
1056
1030
  if (!isOpen) {
1057
1031
  var _slideoutRef$current, _slideoutRef$current$;
1058
-
1059
1032
  // happens after close
1060
1033
  slideoutRef === null || slideoutRef === void 0 ? void 0 : (_slideoutRef$current = slideoutRef.current) === null || _slideoutRef$current === void 0 ? void 0 : (_slideoutRef$current$ = _slideoutRef$current.classList) === null || _slideoutRef$current$ === void 0 ? void 0 : _slideoutRef$current$.remove("slide-out-right");
1061
1034
  if (slideoutRef !== null && slideoutRef !== void 0 && slideoutRef.current) slideoutRef.current.style.display = 'none';
1062
1035
  } else {
1063
1036
  var _slideoutRef$current2;
1064
-
1065
1037
  // happens after open
1066
1038
  slideoutRef === null || slideoutRef === void 0 ? void 0 : (_slideoutRef$current2 = slideoutRef.current) === null || _slideoutRef$current2 === void 0 ? void 0 : _slideoutRef$current2.classList.remove("slide-in-right");
1067
1039
  }
1068
1040
  };
1069
-
1070
1041
  return /*#__PURE__*/jsxRuntime.jsxs(FocusLock__default["default"], {
1071
1042
  disabled: !isOpen,
1072
1043
  returnFocus: true,
@@ -1093,7 +1064,6 @@ var CommPanelWrapper = styled__default["default"](SlideoutMenuBase).withConfig({
1093
1064
  topOffset,
1094
1065
  toTheTop
1095
1066
  } = _ref;
1096
-
1097
1067
  if (!toTheTop) {
1098
1068
  if (topOffset) {
1099
1069
  return breakpoint.map(topOffset, value => value && "top: ".concat(value, ";"));
@@ -1107,8 +1077,8 @@ var CommPanelWrapper = styled__default["default"](SlideoutMenuBase).withConfig({
1107
1077
  } = _ref2;
1108
1078
  return toTheTop && styled.css(["top:0;z-index:999;"]);
1109
1079
  });
1110
-
1111
- var withCommPanelWrapper = Component => // eslint-disable-next-line react/display-name
1080
+ var withCommPanelWrapper = Component =>
1081
+ // eslint-disable-next-line react/display-name
1112
1082
  props => {
1113
1083
  var {
1114
1084
  onException
@@ -1152,7 +1122,6 @@ props => {
1152
1122
  }))]
1153
1123
  });
1154
1124
  };
1155
-
1156
1125
  var withCommPanel = Component => commPanel.withCommPanelProvider(withCommPanelWrapper(Component));
1157
1126
 
1158
1127
  var withRestrictionProvider = Component => props => /*#__PURE__*/jsxRuntime.jsx(RestrictionProvider, {
@@ -1213,7 +1182,6 @@ var SimpleNavbarComponent = _ref => {
1213
1182
  })]
1214
1183
  });
1215
1184
  };
1216
-
1217
1185
  var SimpleNavbar = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent)))));
1218
1186
 
1219
1187
  var GuestNavbar = _ref => {
@@ -1318,7 +1286,6 @@ var MULTI_MENU_OPTIONS = [{
1318
1286
 
1319
1287
  var DesktopActions = _ref => {
1320
1288
  var _window, _window$location, _window2, _window2$location;
1321
-
1322
1289
  var {
1323
1290
  isAuthenticated,
1324
1291
  continueURL,
@@ -1379,7 +1346,6 @@ var DesktopActions = _ref => {
1379
1346
 
1380
1347
  var MobileActions = _ref => {
1381
1348
  var _window, _window$location, _window2, _window2$location;
1382
-
1383
1349
  var {
1384
1350
  isAuthenticated,
1385
1351
  continueURL,
@@ -1465,11 +1431,9 @@ var CTAButtons = props => {
1465
1431
  children: [/*#__PURE__*/jsxRuntime.jsx(DesktopActions, _objectSpread2({}, props)), /*#__PURE__*/jsxRuntime.jsx(MobileActions, _objectSpread2({}, props))]
1466
1432
  });
1467
1433
  };
1468
-
1469
1434
  var CTAButtons$1 = CTAButtons;
1470
1435
 
1471
1436
  var _templateObject$6;
1472
-
1473
1437
  var HamBurgerMenu = _ref => {
1474
1438
  var {
1475
1439
  toggleSidebar,
@@ -1509,7 +1473,6 @@ var HamBurgerMenu = _ref => {
1509
1473
  })
1510
1474
  });
1511
1475
  };
1512
-
1513
1476
  var HamBurgerWrapper = styled__default["default"].a.withConfig({
1514
1477
  displayName: "HamBurgerMenu__HamBurgerWrapper",
1515
1478
  componentId: "lui__sc-y1cjve-2"
@@ -1682,7 +1645,6 @@ var FooterCTA = _ref => {
1682
1645
  })]
1683
1646
  });
1684
1647
  };
1685
-
1686
1648
  var FooterAction = styled__default["default"](button.Button).withConfig({
1687
1649
  displayName: "FooterCTA__FooterAction",
1688
1650
  componentId: "lui__sc-uimopi-0"
@@ -1722,7 +1684,6 @@ var LeftSidebar = _ref => {
1722
1684
  })]
1723
1685
  });
1724
1686
  };
1725
-
1726
1687
  var LeftSidebar$1 = LeftSidebar;
1727
1688
 
1728
1689
  var _templateObject$5;
@@ -1820,7 +1781,6 @@ var OptionsContainer = styled__default["default"].div.withConfig({
1820
1781
  })(["width:100%;display:none;flex-direction:row;justify-content:space-between;align-items:center;", " ", ""], spacing.ml('lg'), breakpoint.gte('desktop')(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n"]))));
1821
1782
 
1822
1783
  var prevSelected = '';
1823
-
1824
1784
  var MenuOptions = props => {
1825
1785
  var {
1826
1786
  isTransparent
@@ -1839,22 +1799,18 @@ var MenuOptions = props => {
1839
1799
  if (hasWindow) {
1840
1800
  window.addEventListener('mousedown', closeDisplayPanel);
1841
1801
  }
1842
-
1843
1802
  return () => {
1844
1803
  if (hasWindow) {
1845
1804
  window.removeEventListener('mousedown', closeDisplayPanel);
1846
1805
  }
1847
1806
  };
1848
1807
  });
1849
-
1850
1808
  var closeDisplayPanel = e => {
1851
1809
  prevSelected = currentSelected;
1852
-
1853
1810
  if (displayPanel && displayPanel.current && !displayPanel.current.contains(e.target)) {
1854
1811
  setCurrentSelected('');
1855
1812
  }
1856
1813
  };
1857
-
1858
1814
  return /*#__PURE__*/jsxRuntime.jsx(OptionsContainer, {
1859
1815
  children: /*#__PURE__*/jsxRuntime.jsxs(UnOrderedList, {
1860
1816
  children: [MULTI_MENU_OPTIONS.map(_ref => {
@@ -1948,7 +1904,6 @@ var MenuOptions = props => {
1948
1904
  })
1949
1905
  });
1950
1906
  };
1951
-
1952
1907
  var onClickOption = (label, setCurrentSelected) => {
1953
1908
  if (prevSelected === label) {
1954
1909
  setCurrentSelected('');
@@ -1956,33 +1911,30 @@ var onClickOption = (label, setCurrentSelected) => {
1956
1911
  setCurrentSelected(label);
1957
1912
  }
1958
1913
  };
1959
-
1960
1914
  var MenuOptions$1 = MenuOptions;
1961
1915
 
1962
1916
  var _excluded$8 = ["useTransparent", "homeURL", "params", "continueURL", "onLogout", "application", "showContinueAction", "showTalkToExpertCta", "hideDashboardItem", "hideManageApplicationsItem", "isCommPanelOpen", "hasUnread", "closeCommPanel", "openCommPanel", "latestTeamMember"];
1963
-
1964
1917
  var MultiNavbarComponent = _ref => {
1965
1918
  var {
1966
- // Public props
1967
- useTransparent = false,
1968
- homeURL,
1969
- params = '',
1970
- continueURL = '/',
1971
- onLogout = () => {},
1972
- application,
1973
- showContinueAction,
1974
- showTalkToExpertCta,
1975
- hideDashboardItem,
1976
- hideManageApplicationsItem,
1977
- // Internal props, from ChatProps
1978
- isCommPanelOpen,
1979
- hasUnread,
1980
- closeCommPanel,
1981
- openCommPanel: _openCommPanel,
1982
- latestTeamMember
1983
- } = _ref,
1984
- otherProps = _objectWithoutProperties(_ref, _excluded$8);
1985
-
1919
+ // Public props
1920
+ useTransparent = false,
1921
+ homeURL,
1922
+ params = '',
1923
+ continueURL = '/',
1924
+ onLogout = () => {},
1925
+ application,
1926
+ showContinueAction,
1927
+ showTalkToExpertCta,
1928
+ hideDashboardItem,
1929
+ hideManageApplicationsItem,
1930
+ // Internal props, from ChatProps
1931
+ isCommPanelOpen,
1932
+ hasUnread,
1933
+ closeCommPanel,
1934
+ openCommPanel: _openCommPanel,
1935
+ latestTeamMember
1936
+ } = _ref,
1937
+ otherProps = _objectWithoutProperties(_ref, _excluded$8);
1986
1938
  var session = lalaReact.useSession();
1987
1939
  var isAuthenticated = session.status === lalaReact.Status.Authenticated;
1988
1940
  var [leftSidebarState, setLeftSidebarState] = React__default["default"].useState(false);
@@ -2034,7 +1986,6 @@ var MultiNavbarComponent = _ref => {
2034
1986
  }))]
2035
1987
  });
2036
1988
  };
2037
-
2038
1989
  var MultiNavbar = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent)))));
2039
1990
 
2040
1991
  var _templateObject$4, _templateObject2$2, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
@@ -2123,14 +2074,14 @@ var SrOnlySpan = styled__default["default"].span.withConfig({
2123
2074
  })(["", ";"], utils$1.srOnly);
2124
2075
 
2125
2076
  var _excluded$7 = ["children", "isOpen", "onClick"],
2126
- _excluded2$1 = ["children", "href", "onClick", "isActive"];
2127
-
2077
+ _excluded2$1 = ["children", "href", "onClick", "isActive"];
2128
2078
  /**
2129
2079
  * @todo Line-height: prefer to use token but the current one is not accessible here
2130
2080
  * @todo Helper functions: getTypography you have to specify each property of the font you need should this be simpler
2131
2081
  * @todo Colors: Access the color pallett or update to semantic values
2132
2082
  * @todo Remove font smoothing when wider solution reached for when we remove it globally
2133
2083
  */
2084
+
2134
2085
  var StyledNavButton = styled__default["default"].button.withConfig({
2135
2086
  displayName: "NavButtons__StyledNavButton",
2136
2087
  componentId: "lui__sc-1rf7mpw-0"
@@ -2163,12 +2114,11 @@ var StyledNavButtonText = styled__default["default"].span.withConfig({
2163
2114
  })(["margin-right:", ";"], utils$1.pxToRem(4));
2164
2115
  var NavButton = _ref5 => {
2165
2116
  var {
2166
- children,
2167
- isOpen = false,
2168
- onClick
2169
- } = _ref5,
2170
- props = _objectWithoutProperties(_ref5, _excluded$7);
2171
-
2117
+ children,
2118
+ isOpen = false,
2119
+ onClick
2120
+ } = _ref5,
2121
+ props = _objectWithoutProperties(_ref5, _excluded$7);
2172
2122
  var globalProps = utils$1.filterGlobalProps(props);
2173
2123
  return /*#__PURE__*/jsxRuntime.jsxs(StyledNavButton, _objectSpread2(_objectSpread2({
2174
2124
  type: "button",
@@ -2189,13 +2139,12 @@ var NavButton = _ref5 => {
2189
2139
  };
2190
2140
  var NavLink = _ref6 => {
2191
2141
  var {
2192
- children,
2193
- href,
2194
- onClick,
2195
- isActive
2196
- } = _ref6,
2197
- props = _objectWithoutProperties(_ref6, _excluded2$1);
2198
-
2142
+ children,
2143
+ href,
2144
+ onClick,
2145
+ isActive
2146
+ } = _ref6,
2147
+ props = _objectWithoutProperties(_ref6, _excluded2$1);
2199
2148
  var globalProps = utils$1.filterGlobalProps(props);
2200
2149
  return /*#__PURE__*/jsxRuntime.jsx(StyledNavButton, _objectSpread2(_objectSpread2({
2201
2150
  href: href,
@@ -2210,11 +2159,11 @@ var NavLink = _ref6 => {
2210
2159
  };
2211
2160
 
2212
2161
  var _excluded$6 = ["children", "align", "minWidth", "className"];
2213
-
2214
2162
  /**
2215
2163
  * @todo Border radius: Update border radius to use tokens or replace with exisiting mechanism
2216
2164
  * @todo Colors: Access the color pallett or update to semantic values
2217
2165
  */
2166
+
2218
2167
  var StyledDropdown$1 = styled__default["default"].div.withConfig({
2219
2168
  displayName: "Dropdown__StyledDropdown",
2220
2169
  componentId: "lui__sc-1mv978l-0"
@@ -2231,13 +2180,12 @@ var StyledDropdown$1 = styled__default["default"].div.withConfig({
2231
2180
  }, utils$1.pxToRem(300));
2232
2181
  var DropdownComponent = (_ref3, ref) => {
2233
2182
  var {
2234
- children,
2235
- align,
2236
- minWidth,
2237
- className
2238
- } = _ref3,
2239
- props = _objectWithoutProperties(_ref3, _excluded$6);
2240
-
2183
+ children,
2184
+ align,
2185
+ minWidth,
2186
+ className
2187
+ } = _ref3,
2188
+ props = _objectWithoutProperties(_ref3, _excluded$6);
2241
2189
  var globalProps = utils$1.filterGlobalProps(props);
2242
2190
  return /*#__PURE__*/jsxRuntime.jsx(StyledDropdown$1, _objectSpread2(_objectSpread2({
2243
2191
  className: className,
@@ -2252,14 +2200,13 @@ var DropdownComponent = (_ref3, ref) => {
2252
2200
  var Dropdown = /*#__PURE__*/React.forwardRef(DropdownComponent);
2253
2201
 
2254
2202
  var _excluded$5 = ["navSlot", "ctaSlot"];
2255
-
2256
2203
  var _templateObject$3, _templateObject2$1;
2257
2204
  var HeaderPaddingSmall = 10;
2258
2205
  var HeaderPaddingLarge = 24;
2206
+
2259
2207
  /**
2260
2208
  * @todo z-index: tokenise z-index to make it easier to manage levels
2261
2209
  */
2262
-
2263
2210
  var StyledHeader = styled__default["default"].header.withConfig({
2264
2211
  displayName: "HeaderBase__StyledHeader",
2265
2212
  componentId: "lui__sc-1ik75ai-0"
@@ -2287,11 +2234,10 @@ var StyledCtaSlot = styled__default["default"].div.withConfig({
2287
2234
  })(["margin-left:auto;order:2;@media (min-width:", "){order:3;}"], LargeTweakpoint);
2288
2235
  var HeaderBase = _ref2 => {
2289
2236
  var {
2290
- navSlot,
2291
- ctaSlot
2292
- } = _ref2,
2293
- props = _objectWithoutProperties(_ref2, _excluded$5);
2294
-
2237
+ navSlot,
2238
+ ctaSlot
2239
+ } = _ref2,
2240
+ props = _objectWithoutProperties(_ref2, _excluded$5);
2295
2241
  var globalProps = utils$1.filterGlobalProps(props);
2296
2242
  return /*#__PURE__*/jsxRuntime.jsx(StyledHeader, _objectSpread2(_objectSpread2({
2297
2243
  role: "banner"
@@ -2330,7 +2276,6 @@ var HeaderBase = _ref2 => {
2330
2276
  };
2331
2277
 
2332
2278
  var _excluded$4 = ["label", "children", "onClick", "minDropdownWidth", "align"];
2333
-
2334
2279
  var _templateObject$2;
2335
2280
  // Make dropdown content flush to the bottom of the header not it's trigger button
2336
2281
  var StyledDropdown = styled__default["default"](Dropdown).withConfig({
@@ -2344,42 +2289,37 @@ var StyledDropdown = styled__default["default"](Dropdown).withConfig({
2344
2289
  }, () => styled.css(["top:calc(100% + ", ");"], utils$1.pxToRem(HeaderPaddingSmall)), () => styled.css(["", ""], breakpoint.gte('md')(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n top: calc(100% + ", ");\n "])), utils$1.pxToRem(HeaderPaddingLarge))));
2345
2290
  var NavDropdown = _ref2 => {
2346
2291
  var {
2347
- label,
2348
- children,
2349
- onClick,
2350
- minDropdownWidth,
2351
- align = 'left'
2352
- } = _ref2,
2353
- props = _objectWithoutProperties(_ref2, _excluded$4);
2354
-
2292
+ label,
2293
+ children,
2294
+ onClick,
2295
+ minDropdownWidth,
2296
+ align = 'left'
2297
+ } = _ref2,
2298
+ props = _objectWithoutProperties(_ref2, _excluded$4);
2355
2299
  var globalProps = utils$1.filterGlobalProps(props);
2356
2300
  var dropdownRef = React.useRef(null);
2357
2301
  var [isOpen, setIsOpen] = React.useState(false);
2358
-
2359
2302
  var handleClick = event => {
2360
2303
  setIsOpen(!isOpen);
2361
2304
  onClick === null || onClick === void 0 ? void 0 : onClick(event, !isOpen);
2362
2305
  };
2363
-
2364
2306
  React.useEffect(() => {
2365
2307
  var pageClickEvent = event => {
2366
2308
  if (dropdownRef.current !== null && !dropdownRef.current.contains(event.target)) {
2367
2309
  setIsOpen(!isOpen);
2368
2310
  }
2369
2311
  };
2370
-
2371
2312
  var escapeEvent = event => {
2372
2313
  if (event.key === 'Escape' && isOpen) {
2373
2314
  setIsOpen(!isOpen);
2374
2315
  }
2375
- }; // If the item is open listen for clicks or escape key
2376
-
2316
+ };
2377
2317
 
2318
+ // If the item is open listen for clicks or escape key
2378
2319
  if (isOpen) {
2379
2320
  window.addEventListener('click', pageClickEvent);
2380
2321
  window.addEventListener('keydown', escapeEvent);
2381
2322
  }
2382
-
2383
2323
  return () => {
2384
2324
  window.removeEventListener('click', pageClickEvent);
2385
2325
  window.removeEventListener('keydown', escapeEvent);
@@ -2411,13 +2351,13 @@ var NavDropdown = _ref2 => {
2411
2351
  };
2412
2352
 
2413
2353
  var _excluded$3 = ["children", "href", "background", "isActive", "isExternal", "onClick"],
2414
- _excluded2 = ["children", "onClick"];
2415
-
2354
+ _excluded2 = ["children", "onClick"];
2416
2355
  /**
2417
2356
  * @todo Line-height: prefer to use token but the current one is not accessible here
2418
2357
  * @todo Helper functions: getTypography you have to specify each property of the font you need should this be simpler
2419
2358
  * @todo Colors: Access the color palette or update to semantic values
2420
2359
  */
2360
+
2421
2361
  var MenuItemStyles = styled.css(["padding:", " ", ";color:", ";font-family:", ";font-weight:", ";font-size:", ";line-height:1.5;text-decoration:none;&:hover{background-color:#633482;}", ""], utils$1.pxToRem(12), utils$1.pxToRem(16), _ref => {
2422
2362
  var {
2423
2363
  theme
@@ -2446,31 +2386,27 @@ var ExternalIcon = styled__default["default"].span.withConfig({
2446
2386
  })(["transform:rotate(-45deg);width:", ";height:", ";"], utils$1.pxToRem(24), utils$1.pxToRem(24));
2447
2387
  var MenuLink = _ref4 => {
2448
2388
  var {
2449
- children,
2450
- href,
2451
- background,
2452
- isActive = false,
2453
- isExternal = false,
2454
- onClick
2455
- } = _ref4,
2456
- props = _objectWithoutProperties(_ref4, _excluded$3);
2457
-
2389
+ children,
2390
+ href,
2391
+ background,
2392
+ isActive = false,
2393
+ isExternal = false,
2394
+ onClick
2395
+ } = _ref4,
2396
+ props = _objectWithoutProperties(_ref4, _excluded$3);
2458
2397
  var globalProps = utils$1.filterGlobalProps(props);
2459
2398
  var conditionalProps = {};
2460
-
2461
2399
  if (isExternal) {
2462
2400
  conditionalProps = {
2463
2401
  target: '_blank',
2464
2402
  rel: 'noopener'
2465
2403
  };
2466
2404
  }
2467
-
2468
2405
  if (isActive) {
2469
2406
  conditionalProps = {
2470
2407
  'aria-current': 'page'
2471
2408
  };
2472
2409
  }
2473
-
2474
2410
  return /*#__PURE__*/jsxRuntime.jsxs(StyledMenuLink, _objectSpread2(_objectSpread2(_objectSpread2({
2475
2411
  href: href,
2476
2412
  isActive: isActive,
@@ -2489,21 +2425,20 @@ var MenuLink = _ref4 => {
2489
2425
  })]
2490
2426
  }));
2491
2427
  };
2492
-
2493
2428
  /**
2494
2429
  * @todo Colors: Access the color palette or update to semantic values
2495
2430
  */
2431
+
2496
2432
  var StyledMenuButton = styled__default["default"].button.withConfig({
2497
2433
  displayName: "MenuLink__StyledMenuButton",
2498
2434
  componentId: "lui__sc-dpbddc-2"
2499
2435
  })(["", ";", ";text-align:left;"], () => buttonReset, () => MenuItemStyles);
2500
2436
  var MenuButton = _ref5 => {
2501
2437
  var {
2502
- children,
2503
- onClick
2504
- } = _ref5,
2505
- props = _objectWithoutProperties(_ref5, _excluded2);
2506
-
2438
+ children,
2439
+ onClick
2440
+ } = _ref5,
2441
+ props = _objectWithoutProperties(_ref5, _excluded2);
2507
2442
  var globalProps = utils$1.filterGlobalProps(props);
2508
2443
  return /*#__PURE__*/jsxRuntime.jsx(StyledMenuButton, _objectSpread2(_objectSpread2({
2509
2444
  type: "button",
@@ -2535,14 +2470,12 @@ var StyledChildrenWrapper = styled__default["default"].div.withConfig({
2535
2470
  } = _ref2;
2536
2471
  return isOpen && "height: 0.0625rem; background-color: ".concat(theme.color.text.inverse, "; margin: .75rem 1rem;");
2537
2472
  });
2538
-
2539
2473
  var MenuItem = _ref3 => {
2540
2474
  var {
2541
2475
  label,
2542
2476
  children
2543
2477
  } = _ref3;
2544
2478
  var [isOpen, setIsOpen] = React.useState(false);
2545
-
2546
2479
  var handleClick = () => {
2547
2480
  setIsOpen(!isOpen);
2548
2481
  var event = {
@@ -2554,7 +2487,6 @@ var MenuItem = _ref3 => {
2554
2487
  };
2555
2488
  analytics(event);
2556
2489
  };
2557
-
2558
2490
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2559
2491
  children: [/*#__PURE__*/jsxRuntime.jsx(NavButton, {
2560
2492
  onClick: () => handleClick(),
@@ -2566,19 +2498,16 @@ var MenuItem = _ref3 => {
2566
2498
  })]
2567
2499
  });
2568
2500
  };
2569
-
2570
2501
  var Nav = _ref4 => {
2571
2502
  var {
2572
- navOptions,
2573
- isSlideout,
2574
- isRestricted
2575
- } = _ref4,
2576
- props = _objectWithoutProperties(_ref4, _excluded$2);
2577
-
2503
+ navOptions,
2504
+ isSlideout,
2505
+ isRestricted
2506
+ } = _ref4,
2507
+ props = _objectWithoutProperties(_ref4, _excluded$2);
2578
2508
  var globalProps = utils$1.filterGlobalProps(props);
2579
2509
  var listItems = navOptions.map((item, index) => {
2580
2510
  var _item$children, _item$children2;
2581
-
2582
2511
  var hideItem = isRestricted && item.hasRestriction;
2583
2512
  var navItems = isSlideout ? /*#__PURE__*/jsxRuntime.jsx(MenuItem, {
2584
2513
  label: item.label,
@@ -2634,13 +2563,11 @@ var Nav = _ref4 => {
2634
2563
  }, index);
2635
2564
  })
2636
2565
  });
2637
-
2638
2566
  if (Object.prototype.hasOwnProperty.call(item, 'children')) {
2639
2567
  return /*#__PURE__*/jsxRuntime.jsx("li", {
2640
2568
  children: navItems
2641
2569
  }, index);
2642
2570
  }
2643
-
2644
2571
  return item.link && !hideItem && /*#__PURE__*/jsxRuntime.jsx("li", {
2645
2572
  children: /*#__PURE__*/jsxRuntime.jsx(NavLink, {
2646
2573
  href: item.link,
@@ -2670,7 +2597,6 @@ var Nav = _ref4 => {
2670
2597
  };
2671
2598
 
2672
2599
  var _excluded$1 = ["title", "children", "className", "isOpen", "hasTitleDivider", "handleClose"];
2673
-
2674
2600
  var _templateObject$1, _templateObject2, _templateObject3;
2675
2601
  var headerTokens = {
2676
2602
  size: {
@@ -2703,6 +2629,7 @@ var StyledCloseButton = styled__default["default"].button.withConfig({
2703
2629
  } = _ref2;
2704
2630
  return theme.color.text.inverse;
2705
2631
  }, utils$1.pxToRem(16), utils$1.pxToRem(16), breakpoint.gte('md')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n top: ", ";\n "])), utils$1.pxToRem(28)));
2632
+
2706
2633
  /**
2707
2634
  * @todo z-index: tokenise z-index to make it easier to manage levels
2708
2635
  */
@@ -2740,15 +2667,14 @@ var StyledSlideoutContent = styled__default["default"].div.withConfig({
2740
2667
  })(["display:flex;flex-direction:column;height:100%;"]);
2741
2668
  var SlideoutMenu = _ref6 => {
2742
2669
  var {
2743
- title,
2744
- children,
2745
- className,
2746
- isOpen,
2747
- hasTitleDivider = true,
2748
- handleClose
2749
- } = _ref6,
2750
- props = _objectWithoutProperties(_ref6, _excluded$1);
2751
-
2670
+ title,
2671
+ children,
2672
+ className,
2673
+ isOpen,
2674
+ hasTitleDivider = true,
2675
+ handleClose
2676
+ } = _ref6,
2677
+ props = _objectWithoutProperties(_ref6, _excluded$1);
2752
2678
  var globalProps = utils$1.filterGlobalProps(props);
2753
2679
  var theme = Theme.useTheme();
2754
2680
  return /*#__PURE__*/jsxRuntime.jsxs(StyledSlideoutMenu, _objectSpread2(_objectSpread2(_objectSpread2({
@@ -2784,7 +2710,6 @@ var TalkToExpertButton = _ref => {
2784
2710
  teamMember
2785
2711
  } = _ref;
2786
2712
  var buttonText = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : 'Talk to an expert';
2787
-
2788
2713
  var handleClick = () => {
2789
2714
  openCommPanel();
2790
2715
  var event = {
@@ -2797,7 +2722,6 @@ var TalkToExpertButton = _ref => {
2797
2722
  };
2798
2723
  analytics(event);
2799
2724
  };
2800
-
2801
2725
  return /*#__PURE__*/jsxRuntime.jsx(Button.Button, {
2802
2726
  variant: "secondary",
2803
2727
  isInverse: true,
@@ -2815,7 +2739,6 @@ var ApplyNowButton = _ref => {
2815
2739
  width,
2816
2740
  size
2817
2741
  } = _ref;
2818
-
2819
2742
  var handleClick = () => {
2820
2743
  onClick === null || onClick === void 0 ? void 0 : onClick();
2821
2744
  var event = {
@@ -2828,7 +2751,6 @@ var ApplyNowButton = _ref => {
2828
2751
  };
2829
2752
  analytics(event);
2830
2753
  };
2831
-
2832
2754
  return /*#__PURE__*/jsxRuntime.jsx(Button.AnchorButton, {
2833
2755
  width: width,
2834
2756
  onPress: handleClick,
@@ -2872,9 +2794,7 @@ var PrimaryCTA = _ref => {
2872
2794
  };
2873
2795
 
2874
2796
  var _excluded = ["isRestricted", "navOptions"];
2875
-
2876
2797
  var _templateObject;
2877
-
2878
2798
  var HamburgerCtaBlock = _ref => {
2879
2799
  var {
2880
2800
  handleApplyNowClick,
@@ -2895,24 +2815,21 @@ var HamburgerCtaBlock = _ref => {
2895
2815
  })
2896
2816
  });
2897
2817
  };
2898
-
2899
2818
  var StyledWrapperForButtonHack = styled__default["default"].div.withConfig({
2900
2819
  displayName: "HamburgerMenu__StyledWrapperForButtonHack",
2901
2820
  componentId: "lui__sc-302min-0"
2902
2821
  })(["button{padding:0;margin-left:0.75rem;", "}"], breakpoint.gte('sm')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-left: .25rem; // Make sure focus outline doesn't get cut off by preceding links with bg colour\n "]))));
2903
2822
  var HamburgerMenu = _ref2 => {
2904
2823
  var {
2905
- isRestricted,
2906
- navOptions
2907
- } = _ref2,
2908
- props = _objectWithoutProperties(_ref2, _excluded);
2909
-
2824
+ isRestricted,
2825
+ navOptions
2826
+ } = _ref2,
2827
+ props = _objectWithoutProperties(_ref2, _excluded);
2910
2828
  var {
2911
2829
  showMenu,
2912
2830
  toggleMenu
2913
2831
  } = useSlideoutMenu();
2914
2832
  var theme = Theme.useTheme();
2915
-
2916
2833
  var handleClick = () => {
2917
2834
  toggleMenu();
2918
2835
  var event = {
@@ -2924,7 +2841,6 @@ var HamburgerMenu = _ref2 => {
2924
2841
  };
2925
2842
  analytics(event);
2926
2843
  };
2927
-
2928
2844
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2929
2845
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledWrapperForButtonHack, {
2930
2846
  children: /*#__PURE__*/jsxRuntime.jsxs(Button.Button, {
@@ -2972,7 +2888,6 @@ var DropwdownSecondaryContent = styled__default["default"].div.withConfig({
2972
2888
  var LOGGEDIN_TEXT = 'My Account';
2973
2889
  var LOGGEDOUT_TEXT = 'Login';
2974
2890
  var MANAGE_APP_TEXT = 'Manage application';
2975
-
2976
2891
  var DropdownHeader = () => /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
2977
2892
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
2978
2893
  tag: "h2",
@@ -2981,7 +2896,6 @@ var DropdownHeader = () => /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
2981
2896
  children: "Loan application login"
2982
2897
  })
2983
2898
  });
2984
-
2985
2899
  var DropdownHeaderLoggedIn = () => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2986
2900
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
2987
2901
  tag: "h2",
@@ -2990,7 +2904,6 @@ var DropdownHeaderLoggedIn = () => /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragm
2990
2904
  children: "Manage your loan applications"
2991
2905
  }), /*#__PURE__*/jsxRuntime.jsx(StyledHR, {})]
2992
2906
  });
2993
-
2994
2907
  var LoggedInContent = _ref2 => {
2995
2908
  var {
2996
2909
  isRestricted,
@@ -3056,7 +2969,6 @@ var LoggedInContent = _ref2 => {
3056
2969
  })]
3057
2970
  });
3058
2971
  };
3059
-
3060
2972
  var MENU_LINKS = [{
3061
2973
  label: 'Aussie Select',
3062
2974
  link: 'https://online.aussie.com.au/AHL/BankFast-Username-Logon#sst'
@@ -3072,7 +2984,8 @@ var MENU_LINKS = [{
3072
2984
  }, {
3073
2985
  label: 'All online banking logins',
3074
2986
  link: 'https://www.aussie.com.au/get-in-touch/log-in-page/'
3075
- } // {
2987
+ }
2988
+ // {
3076
2989
  // label: 'Aussie IQ, Aussie Optimizer and all other Aussie Home Loans settled before 2012',
3077
2990
  // link: 'https://aussie.openportal.com.au/portal/ahl/#/',
3078
2991
  // },
@@ -3080,7 +2993,6 @@ var MENU_LINKS = [{
3080
2993
 
3081
2994
  var LoggedOutContent = () => {
3082
2995
  var _window, _window$location, _window2, _window2$location;
3083
-
3084
2996
  var brand = lalaUtils.getBrandFromHostname();
3085
2997
  var env = getEnvFromHostname((_window = window) === null || _window === void 0 ? void 0 : (_window$location = _window.location) === null || _window$location === void 0 ? void 0 : _window$location.hostname);
3086
2998
  var signInURL = getSignInURL(brand, env, (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$location = _window2.location) === null || _window2$location === void 0 ? void 0 : _window2$location.href);
@@ -3138,7 +3050,6 @@ var LoggedOutContent = () => {
3138
3050
  })]
3139
3051
  });
3140
3052
  };
3141
-
3142
3053
  var AccountDropdown = _ref3 => {
3143
3054
  var {
3144
3055
  isRestricted,
@@ -3190,7 +3101,6 @@ var AccountSlideoutMenu = _ref4 => {
3190
3101
  } = useSlideoutMenu();
3191
3102
  var isAuthenticated = (session === null || session === void 0 ? void 0 : session.status) === lalaReact.Status.Authenticated;
3192
3103
  var loggedInOutText = isAuthenticated ? LOGGEDIN_TEXT : LOGGEDOUT_TEXT;
3193
-
3194
3104
  var handleClick = () => {
3195
3105
  toggleMenu();
3196
3106
  var event = {
@@ -3202,7 +3112,6 @@ var AccountSlideoutMenu = _ref4 => {
3202
3112
  };
3203
3113
  analytics(event);
3204
3114
  };
3205
-
3206
3115
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
3207
3116
  children: [/*#__PURE__*/jsxRuntime.jsx(ShowAtMediumOnly, {
3208
3117
  children: /*#__PURE__*/jsxRuntime.jsx(NavButton, {
@@ -3300,7 +3209,6 @@ var getApplications = /*#__PURE__*/function () {
3300
3209
  });
3301
3210
  return response.data;
3302
3211
  });
3303
-
3304
3212
  return function getApplications(_x, _x2, _x3, _x4) {
3305
3213
  return _ref.apply(this, arguments);
3306
3214
  };
@@ -3314,7 +3222,6 @@ var useApplication = session => {
3314
3222
  React__default["default"].useEffect(() => {
3315
3223
  if (session.status === lalaReact.Status.Authenticated) {
3316
3224
  var _session$identity;
3317
-
3318
3225
  getApplications(session, (_session$identity = session.identity) === null || _session$identity === void 0 ? void 0 : _session$identity.id, 1, 'updatedAt').then(res => {
3319
3226
  var applications = res.data;
3320
3227
  var mostRecentlyUpdatedApplication = applications[0];
@@ -3375,12 +3282,11 @@ var HeaderWithContext = _ref => {
3375
3282
  })
3376
3283
  });
3377
3284
  };
3378
-
3379
3285
  var Header = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(HeaderWithContext))));
3380
3286
 
3381
3287
  /* eslint-disable camelcase */
3382
- exports.ApplicationStage = void 0;
3383
3288
 
3289
+ exports.ApplicationStage = void 0;
3384
3290
  (function (ApplicationStage) {
3385
3291
  ApplicationStage["started_application"] = "started_application";
3386
3292
  ApplicationStage["finished_funnel2"] = "finished_funnel2";