@lendi/navbar 7.41.1 → 7.42.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.
@@ -21,4 +21,5 @@ export declare const Container: import("styled-components").StyledComponent<"div
21
21
  export declare const MenuLogoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
22
22
  export declare const NavbarLeftWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
23
23
  export declare const NavbarRightWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
24
+ export declare const AlertBanner: import("styled-components").StyledComponent<({ variant, heading, children, ...otherProps }: import("@lendi-ui/alert").AlertProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
24
25
  export {};
@@ -11,6 +11,7 @@ var spacing = require('@lendi-ui/spacing');
11
11
  var Theme = require('@lendi/ui/Theme');
12
12
  var styled = require('styled-components');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
+ var Alert = require('@lendi-ui/alert');
14
15
  var button = require('@lendi-ui/button');
15
16
  var UnreadMessage = require('@lendi-ui/icon/UnreadMessage');
16
17
  var utils = require('@lendi-ui/utils');
@@ -57,6 +58,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
57
58
  var NavbarBase__default = /*#__PURE__*/_interopDefault(NavbarBase);
58
59
  var Logo__default = /*#__PURE__*/_interopDefault(Logo);
59
60
  var styled__default = /*#__PURE__*/_interopDefault(styled);
61
+ var Alert__default = /*#__PURE__*/_interopDefault(Alert);
60
62
  var UnreadMessage__default = /*#__PURE__*/_interopDefault(UnreadMessage);
61
63
  var MoreVert__default = /*#__PURE__*/_interopDefault(MoreVert);
62
64
  var getColour__default = /*#__PURE__*/_interopDefault(getColour);
@@ -283,6 +285,14 @@ var NavbarRightWrapper = styled__default["default"].div.withConfig({
283
285
  displayName: "styles__NavbarRightWrapper",
284
286
  componentId: "lui__sc-ej7i4l-4"
285
287
  })([""]);
288
+ var AlertBanner = styled__default["default"](Alert__default["default"]).withConfig({
289
+ displayName: "styles__AlertBanner",
290
+ componentId: "lui__sc-ej7i4l-5"
291
+ })(["", ""], spacing.my({
292
+ mobile: 'xs',
293
+ tablet: 'xs',
294
+ desktop: 'sm'
295
+ }));
286
296
 
287
297
  var _templateObject$e, _templateObject2$5;
288
298
  var TalkExpertAction$1 = styled__default["default"](button.Button).withConfig({
@@ -1812,6 +1822,7 @@ var useAHLParam = () => {
1812
1822
  }, []);
1813
1823
  };
1814
1824
 
1825
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1815
1826
  var SimpleNavbarComponent = _ref => {
1816
1827
  var {
1817
1828
  // Public props
@@ -1832,37 +1843,51 @@ var SimpleNavbarComponent = _ref => {
1832
1843
  openCommPanel: _openCommPanel,
1833
1844
  customerOwner
1834
1845
  } = _ref;
1846
+ var {
1847
+ primaryBrandCustomerAlert
1848
+ } = launchdarkly.useFlags();
1835
1849
  var session = lalaReact.useSession();
1836
1850
  var isAuthenticated = session.status === lalaReact.Status.Authenticated;
1837
1851
 
1838
- //to set AHL value in session storage for funnel1 journey
1852
+ // to set AHL value in session storage for funnel1 journey
1839
1853
  useAHLParam();
1840
- return /*#__PURE__*/jsxRuntime.jsxs(NavbarWrapper, {
1841
- isTransparent: useTransparent,
1842
- isAuthenticated: isAuthenticated,
1843
- children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
1844
- children: /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
1845
- homeURL: homeURL,
1846
- params: params,
1847
- "aria-label": "Logo",
1848
- hasHamburgerMenu: false
1849
- })
1850
- }), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
1851
- children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
1852
- hideDashboardItem: hideDashboardItem,
1853
- hideManageApplicationsItem: hideManageApplicationsItem,
1854
- onLogout: onLogout,
1855
- children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$3, {
1856
- showTalkToExpertCta: showTalkToExpertCta,
1857
- showBookanAppointmentCta: showBookanAppointmentCta,
1858
- isAuthenticated: isAuthenticated,
1859
- continueURL: continueURL,
1860
- showContinueAction: showContinueAction,
1861
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1862
- customerOwner: customerOwner,
1863
- hasUnreadMessages: hasUnread
1854
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1855
+ children: [/*#__PURE__*/jsxRuntime.jsxs(NavbarWrapper, {
1856
+ isTransparent: useTransparent,
1857
+ isAuthenticated: isAuthenticated,
1858
+ children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
1859
+ children: /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
1860
+ homeURL: homeURL,
1861
+ params: params,
1862
+ "aria-label": "Logo",
1863
+ hasHamburgerMenu: false
1864
1864
  })
1865
- })
1865
+ }), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
1866
+ children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
1867
+ hideDashboardItem: hideDashboardItem,
1868
+ hideManageApplicationsItem: hideManageApplicationsItem,
1869
+ onLogout: onLogout,
1870
+ children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$3, {
1871
+ showTalkToExpertCta: showTalkToExpertCta,
1872
+ showBookanAppointmentCta: showBookanAppointmentCta,
1873
+ isAuthenticated: isAuthenticated,
1874
+ continueURL: continueURL,
1875
+ showContinueAction: showContinueAction,
1876
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1877
+ customerOwner: customerOwner,
1878
+ hasUnreadMessages: hasUnread
1879
+ })
1880
+ })
1881
+ })]
1882
+ }), primaryBrandCustomerAlert && (session === null || session === void 0 ? void 0 : session.brand) === 'lendi' && /*#__PURE__*/jsxRuntime.jsxs(AlertBanner, {
1883
+ variant: "info",
1884
+ children: [/*#__PURE__*/jsxRuntime.jsx("b", {
1885
+ children: "Your home loan journey just got even better"
1886
+ }), "\u2014welcome to Aussie!", ' ', /*#__PURE__*/jsxRuntime.jsx(typography.Link, {
1887
+ href: "https://aussie.com.au/lp/welcome-to-aussie",
1888
+ target: "_blank",
1889
+ children: "Learn more."
1890
+ })]
1866
1891
  })]
1867
1892
  });
1868
1893
  };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
6
 
7
- var React = require("react"), NavbarBase = require("@lendi-ui/navbar-base"), analytics$1 = require("@lendi/analytics"), breakpoint = require("@lendi-ui/breakpoint"), Logo = require("@lendi-ui/logo"), spacing = require("@lendi-ui/spacing"), Theme = require("@lendi/ui/Theme"), styled = require("styled-components"), jsxRuntime = require("react/jsx-runtime"), button = require("@lendi-ui/button"), UnreadMessage = require("@lendi-ui/icon/UnreadMessage"), utils = require("@lendi-ui/utils"), MoreVert = require("@lendi-ui/icon/MoreVert"), lalaUtils = require("@lendi/lala-utils"), launchdarkly = require("@lendi/launchdarkly"), borders = require("@lendi-ui/commons/borders"), getColour = require("@lendi-ui/commons/colours"), depth = require("@lendi-ui/depth"), Launch = require("@lendi-ui/icon/Launch"), typography = require("@lendi-ui/typography"), lalaReact = require("@lendi/lala-react"), chat = require("@lendi/chat"), Close = require("@lendi-ui/icon/Close"), color = require("@lendi-ui/color"), Face = require("@lendi-ui/icon/Face"), getTypography = require("@lendi-ui/commons/typography"), utils$1 = require("@lendi-ui/commons/utils"), Phone = require("@lendi-ui/icon/Phone"), Calendar = require("@lendi-ui/icon/Calendar"), lendigroupLeadsLibrary = require("@lendi/lendigroup-leads-library"), Chat = require("@lendi-ui/icon/Chat"), KeyboardArrowDown = require("@lendi-ui/icon/KeyboardArrowDown"), KeyboardArrowRight = require("@lendi-ui/icon/KeyboardArrowRight"), KeyboardArrowLeft = require("@lendi-ui/icon/KeyboardArrowLeft"), FocusLock = require("react-focus-lock"), Menu = require("@lendi-ui/icon/Menu"), Sidebar = require("@lendi-ui/sidebar"), ArrowDropDown = require("@lendi-ui/icon/ArrowDropDown"), ExitToApp = require("@lendi-ui/icon/ExitToApp"), ExpandMore = require("@lendi-ui/icon/ExpandMore"), grid = require("@lendi-ui/grid"), ChevronDown = require("@lendi-ui/icon/ChevronDown"), ChevronUp = require("@lendi-ui/icon/ChevronUp"), Layout = require("@lendi/ui/Layout"), ArrowForward = require("@lendi-ui/icon/ArrowForward"), Typography = require("@lendi/ui/Typography"), Button = require("@lendi/ui/Button"), axios = require("axios");
7
+ var React = require("react"), NavbarBase = require("@lendi-ui/navbar-base"), analytics$1 = require("@lendi/analytics"), breakpoint = require("@lendi-ui/breakpoint"), Logo = require("@lendi-ui/logo"), spacing = require("@lendi-ui/spacing"), Theme = require("@lendi/ui/Theme"), styled = require("styled-components"), jsxRuntime = require("react/jsx-runtime"), Alert = require("@lendi-ui/alert"), button = require("@lendi-ui/button"), UnreadMessage = require("@lendi-ui/icon/UnreadMessage"), utils = require("@lendi-ui/utils"), MoreVert = require("@lendi-ui/icon/MoreVert"), lalaUtils = require("@lendi/lala-utils"), launchdarkly = require("@lendi/launchdarkly"), borders = require("@lendi-ui/commons/borders"), getColour = require("@lendi-ui/commons/colours"), depth = require("@lendi-ui/depth"), Launch = require("@lendi-ui/icon/Launch"), typography = require("@lendi-ui/typography"), lalaReact = require("@lendi/lala-react"), chat = require("@lendi/chat"), Close = require("@lendi-ui/icon/Close"), color = require("@lendi-ui/color"), Face = require("@lendi-ui/icon/Face"), getTypography = require("@lendi-ui/commons/typography"), utils$1 = require("@lendi-ui/commons/utils"), Phone = require("@lendi-ui/icon/Phone"), Calendar = require("@lendi-ui/icon/Calendar"), lendigroupLeadsLibrary = require("@lendi/lendigroup-leads-library"), Chat = require("@lendi-ui/icon/Chat"), KeyboardArrowDown = require("@lendi-ui/icon/KeyboardArrowDown"), KeyboardArrowRight = require("@lendi-ui/icon/KeyboardArrowRight"), KeyboardArrowLeft = require("@lendi-ui/icon/KeyboardArrowLeft"), FocusLock = require("react-focus-lock"), Menu = require("@lendi-ui/icon/Menu"), Sidebar = require("@lendi-ui/sidebar"), ArrowDropDown = require("@lendi-ui/icon/ArrowDropDown"), ExitToApp = require("@lendi-ui/icon/ExitToApp"), ExpandMore = require("@lendi-ui/icon/ExpandMore"), grid = require("@lendi-ui/grid"), ChevronDown = require("@lendi-ui/icon/ChevronDown"), ChevronUp = require("@lendi-ui/icon/ChevronUp"), Layout = require("@lendi/ui/Layout"), ArrowForward = require("@lendi-ui/icon/ArrowForward"), Typography = require("@lendi/ui/Typography"), Button = require("@lendi/ui/Button"), axios = require("axios");
8
8
 
9
9
  function _interopDefault(e) {
10
10
  return e && e.__esModule ? e : {
@@ -12,7 +12,7 @@ function _interopDefault(e) {
12
12
  };
13
13
  }
14
14
 
15
- var React__default = _interopDefault(React), NavbarBase__default = _interopDefault(NavbarBase), Logo__default = _interopDefault(Logo), styled__default = _interopDefault(styled), UnreadMessage__default = _interopDefault(UnreadMessage), MoreVert__default = _interopDefault(MoreVert), getColour__default = _interopDefault(getColour), Launch__default = _interopDefault(Launch), Close__default = _interopDefault(Close), Face__default = _interopDefault(Face), getTypography__default = _interopDefault(getTypography), Phone__default = _interopDefault(Phone), Calendar__default = _interopDefault(Calendar), Chat__default = _interopDefault(Chat), KeyboardArrowDown__default = _interopDefault(KeyboardArrowDown), KeyboardArrowRight__default = _interopDefault(KeyboardArrowRight), KeyboardArrowLeft__default = _interopDefault(KeyboardArrowLeft), FocusLock__default = _interopDefault(FocusLock), Menu__default = _interopDefault(Menu), Sidebar__default = _interopDefault(Sidebar), ArrowDropDown__default = _interopDefault(ArrowDropDown), ExitToApp__default = _interopDefault(ExitToApp), ExpandMore__default = _interopDefault(ExpandMore), ChevronDown__default = _interopDefault(ChevronDown), ChevronUp__default = _interopDefault(ChevronUp), ArrowForward__default = _interopDefault(ArrowForward), axios__default = _interopDefault(axios);
15
+ var React__default = _interopDefault(React), NavbarBase__default = _interopDefault(NavbarBase), Logo__default = _interopDefault(Logo), styled__default = _interopDefault(styled), Alert__default = _interopDefault(Alert), UnreadMessage__default = _interopDefault(UnreadMessage), MoreVert__default = _interopDefault(MoreVert), getColour__default = _interopDefault(getColour), Launch__default = _interopDefault(Launch), Close__default = _interopDefault(Close), Face__default = _interopDefault(Face), getTypography__default = _interopDefault(getTypography), Phone__default = _interopDefault(Phone), Calendar__default = _interopDefault(Calendar), Chat__default = _interopDefault(Chat), KeyboardArrowDown__default = _interopDefault(KeyboardArrowDown), KeyboardArrowRight__default = _interopDefault(KeyboardArrowRight), KeyboardArrowLeft__default = _interopDefault(KeyboardArrowLeft), FocusLock__default = _interopDefault(FocusLock), Menu__default = _interopDefault(Menu), Sidebar__default = _interopDefault(Sidebar), ArrowDropDown__default = _interopDefault(ArrowDropDown), ExitToApp__default = _interopDefault(ExitToApp), ExpandMore__default = _interopDefault(ExpandMore), ChevronDown__default = _interopDefault(ChevronDown), ChevronUp__default = _interopDefault(ChevronUp), ArrowForward__default = _interopDefault(ArrowForward), axios__default = _interopDefault(axios);
16
16
 
17
17
  function _toPrimitive(input, hint) {
18
18
  if ("object" != typeof input || null === input) return input;
@@ -164,7 +164,14 @@ var _templateObject$f, _templateObject$e, _templateObject2$5, StyledHeaderLogo =
164
164
  })([ "flex:1 0 auto;" ]), NavbarRightWrapper = styled__default.default.div.withConfig({
165
165
  displayName: "styles__NavbarRightWrapper",
166
166
  componentId: "lui__sc-ej7i4l-4"
167
- })([ "" ]), TalkExpertAction$1 = styled__default.default(button.Button).withConfig({
167
+ })([ "" ]), AlertBanner = styled__default.default(Alert__default.default).withConfig({
168
+ displayName: "styles__AlertBanner",
169
+ componentId: "lui__sc-ej7i4l-5"
170
+ })([ "", "" ], spacing.my({
171
+ mobile: "xs",
172
+ tablet: "xs",
173
+ desktop: "sm"
174
+ })), TalkExpertAction$1 = styled__default.default(button.Button).withConfig({
168
175
  displayName: "style__TalkExpertAction",
169
176
  componentId: "lui__sc-9anjvz-0"
170
177
  })([ "width:100%;", " ", ";min-width:180px;", "" ], spacing.mr("sm"), breakpoint.between("mobile", "desktop")(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral([ "\n border: none;\n " ]))), (_ref => {
@@ -1124,33 +1131,44 @@ var _templateObject$9, _templateObject2$4, _templateObject$8, _templateObject2$3
1124
1131
  }
1125
1132
  }), []);
1126
1133
  }, SimpleNavbarComponent = _ref => {
1127
- var {useTransparent: useTransparent = !1, showBookanAppointmentCta: showBookanAppointmentCta = !0, showTalkToExpertCta: showTalkToExpertCta = !0, homeURL: homeURL, params: params = "", continueURL: continueURL = "/", onLogout: onLogout, showContinueAction: showContinueAction = !1, hideDashboardItem: hideDashboardItem, hideManageApplicationsItem: hideManageApplicationsItem, isCommPanelOpen: isCommPanelOpen, hasUnread: hasUnread, closeCommPanel: closeCommPanel, openCommPanel: _openCommPanel, customerOwner: customerOwner} = _ref, isAuthenticated = lalaReact.useSession().status === lalaReact.Status.Authenticated;
1128
- return useAHLParam(), jsxRuntime.jsxs(NavbarWrapper, {
1129
- isTransparent: useTransparent,
1130
- isAuthenticated: isAuthenticated,
1131
- children: [ jsxRuntime.jsx(NavbarLeftWrapper, {
1132
- children: jsxRuntime.jsx(LogoComponent$1, {
1133
- homeURL: homeURL,
1134
- params: params,
1135
- "aria-label": "Logo",
1136
- hasHamburgerMenu: !1
1137
- })
1138
- }), jsxRuntime.jsx(NavbarRightWrapper, {
1139
- children: jsxRuntime.jsx(DropdownProvider, {
1140
- hideDashboardItem: hideDashboardItem,
1141
- hideManageApplicationsItem: hideManageApplicationsItem,
1142
- onLogout: onLogout,
1143
- children: jsxRuntime.jsx(CTAButtons$3, {
1144
- showTalkToExpertCta: showTalkToExpertCta,
1145
- showBookanAppointmentCta: showBookanAppointmentCta,
1146
- isAuthenticated: isAuthenticated,
1147
- continueURL: continueURL,
1148
- showContinueAction: showContinueAction,
1149
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1150
- customerOwner: customerOwner,
1151
- hasUnreadMessages: hasUnread
1134
+ var {useTransparent: useTransparent = !1, showBookanAppointmentCta: showBookanAppointmentCta = !0, showTalkToExpertCta: showTalkToExpertCta = !0, homeURL: homeURL, params: params = "", continueURL: continueURL = "/", onLogout: onLogout, showContinueAction: showContinueAction = !1, hideDashboardItem: hideDashboardItem, hideManageApplicationsItem: hideManageApplicationsItem, isCommPanelOpen: isCommPanelOpen, hasUnread: hasUnread, closeCommPanel: closeCommPanel, openCommPanel: _openCommPanel, customerOwner: customerOwner} = _ref, {primaryBrandCustomerAlert: primaryBrandCustomerAlert} = launchdarkly.useFlags(), session = lalaReact.useSession(), isAuthenticated = session.status === lalaReact.Status.Authenticated;
1135
+ return useAHLParam(), jsxRuntime.jsxs(jsxRuntime.Fragment, {
1136
+ children: [ jsxRuntime.jsxs(NavbarWrapper, {
1137
+ isTransparent: useTransparent,
1138
+ isAuthenticated: isAuthenticated,
1139
+ children: [ jsxRuntime.jsx(NavbarLeftWrapper, {
1140
+ children: jsxRuntime.jsx(LogoComponent$1, {
1141
+ homeURL: homeURL,
1142
+ params: params,
1143
+ "aria-label": "Logo",
1144
+ hasHamburgerMenu: !1
1152
1145
  })
1153
- })
1146
+ }), jsxRuntime.jsx(NavbarRightWrapper, {
1147
+ children: jsxRuntime.jsx(DropdownProvider, {
1148
+ hideDashboardItem: hideDashboardItem,
1149
+ hideManageApplicationsItem: hideManageApplicationsItem,
1150
+ onLogout: onLogout,
1151
+ children: jsxRuntime.jsx(CTAButtons$3, {
1152
+ showTalkToExpertCta: showTalkToExpertCta,
1153
+ showBookanAppointmentCta: showBookanAppointmentCta,
1154
+ isAuthenticated: isAuthenticated,
1155
+ continueURL: continueURL,
1156
+ showContinueAction: showContinueAction,
1157
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1158
+ customerOwner: customerOwner,
1159
+ hasUnreadMessages: hasUnread
1160
+ })
1161
+ })
1162
+ }) ]
1163
+ }), primaryBrandCustomerAlert && "lendi" === (null == session ? void 0 : session.brand) && jsxRuntime.jsxs(AlertBanner, {
1164
+ variant: "info",
1165
+ children: [ jsxRuntime.jsx("b", {
1166
+ children: "Your home loan journey just got even better"
1167
+ }), "—welcome to Aussie!", " ", jsxRuntime.jsx(typography.Link, {
1168
+ href: "https://aussie.com.au/lp/welcome-to-aussie",
1169
+ target: "_blank",
1170
+ children: "Learn more."
1171
+ }) ]
1154
1172
  }) ]
1155
1173
  });
1156
1174
  }, SimpleNavbar = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent)))), GuestNavbar = _ref => {
@@ -3,10 +3,11 @@ import NavbarBase, { useNavbarBaseContext } from '@lendi-ui/navbar-base';
3
3
  import { trackEvent, EventCategory, ButtonType, CustomerType } from '@lendi/analytics';
4
4
  import { gte, between, map, useBreakpoint } from '@lendi-ui/breakpoint';
5
5
  import Logo from '@lendi-ui/logo';
6
- import { mb, ml, pl, pr, mr, p, px, py, mx, mt, m, pb, pt, my } from '@lendi-ui/spacing';
6
+ import { mb, ml, pl, pr, my, mr, p, px, py, mx, mt, m, pb, pt } from '@lendi-ui/spacing';
7
7
  import { select, useTheme } from '@lendi/ui/Theme';
8
8
  import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
+ import Alert from '@lendi-ui/alert';
10
11
  import { Button, IconButton } from '@lendi-ui/button';
11
12
  import UnreadMessage from '@lendi-ui/icon/UnreadMessage';
12
13
  import { display, normalise, deriveSize } from '@lendi-ui/utils';
@@ -250,6 +251,14 @@ var NavbarRightWrapper = styled.div.withConfig({
250
251
  displayName: "styles__NavbarRightWrapper",
251
252
  componentId: "lui__sc-ej7i4l-4"
252
253
  })([""]);
254
+ var AlertBanner = styled(Alert).withConfig({
255
+ displayName: "styles__AlertBanner",
256
+ componentId: "lui__sc-ej7i4l-5"
257
+ })(["", ""], my({
258
+ mobile: 'xs',
259
+ tablet: 'xs',
260
+ desktop: 'sm'
261
+ }));
253
262
 
254
263
  var _templateObject$e, _templateObject2$5;
255
264
  var TalkExpertAction$1 = styled(Button).withConfig({
@@ -1779,6 +1788,7 @@ var useAHLParam = () => {
1779
1788
  }, []);
1780
1789
  };
1781
1790
 
1791
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1782
1792
  var SimpleNavbarComponent = _ref => {
1783
1793
  var {
1784
1794
  // Public props
@@ -1799,37 +1809,51 @@ var SimpleNavbarComponent = _ref => {
1799
1809
  openCommPanel: _openCommPanel,
1800
1810
  customerOwner
1801
1811
  } = _ref;
1812
+ var {
1813
+ primaryBrandCustomerAlert
1814
+ } = useFlags();
1802
1815
  var session = useSession();
1803
1816
  var isAuthenticated = session.status === Status.Authenticated;
1804
1817
 
1805
- //to set AHL value in session storage for funnel1 journey
1818
+ // to set AHL value in session storage for funnel1 journey
1806
1819
  useAHLParam();
1807
- return /*#__PURE__*/jsxs(NavbarWrapper, {
1808
- isTransparent: useTransparent,
1809
- isAuthenticated: isAuthenticated,
1810
- children: [/*#__PURE__*/jsx(NavbarLeftWrapper, {
1811
- children: /*#__PURE__*/jsx(LogoComponent$1, {
1812
- homeURL: homeURL,
1813
- params: params,
1814
- "aria-label": "Logo",
1815
- hasHamburgerMenu: false
1816
- })
1817
- }), /*#__PURE__*/jsx(NavbarRightWrapper, {
1818
- children: /*#__PURE__*/jsx(DropdownProvider, {
1819
- hideDashboardItem: hideDashboardItem,
1820
- hideManageApplicationsItem: hideManageApplicationsItem,
1821
- onLogout: onLogout,
1822
- children: /*#__PURE__*/jsx(CTAButtons$3, {
1823
- showTalkToExpertCta: showTalkToExpertCta,
1824
- showBookanAppointmentCta: showBookanAppointmentCta,
1825
- isAuthenticated: isAuthenticated,
1826
- continueURL: continueURL,
1827
- showContinueAction: showContinueAction,
1828
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1829
- customerOwner: customerOwner,
1830
- hasUnreadMessages: hasUnread
1820
+ return /*#__PURE__*/jsxs(Fragment, {
1821
+ children: [/*#__PURE__*/jsxs(NavbarWrapper, {
1822
+ isTransparent: useTransparent,
1823
+ isAuthenticated: isAuthenticated,
1824
+ children: [/*#__PURE__*/jsx(NavbarLeftWrapper, {
1825
+ children: /*#__PURE__*/jsx(LogoComponent$1, {
1826
+ homeURL: homeURL,
1827
+ params: params,
1828
+ "aria-label": "Logo",
1829
+ hasHamburgerMenu: false
1831
1830
  })
1832
- })
1831
+ }), /*#__PURE__*/jsx(NavbarRightWrapper, {
1832
+ children: /*#__PURE__*/jsx(DropdownProvider, {
1833
+ hideDashboardItem: hideDashboardItem,
1834
+ hideManageApplicationsItem: hideManageApplicationsItem,
1835
+ onLogout: onLogout,
1836
+ children: /*#__PURE__*/jsx(CTAButtons$3, {
1837
+ showTalkToExpertCta: showTalkToExpertCta,
1838
+ showBookanAppointmentCta: showBookanAppointmentCta,
1839
+ isAuthenticated: isAuthenticated,
1840
+ continueURL: continueURL,
1841
+ showContinueAction: showContinueAction,
1842
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
1843
+ customerOwner: customerOwner,
1844
+ hasUnreadMessages: hasUnread
1845
+ })
1846
+ })
1847
+ })]
1848
+ }), primaryBrandCustomerAlert && (session === null || session === void 0 ? void 0 : session.brand) === 'lendi' && /*#__PURE__*/jsxs(AlertBanner, {
1849
+ variant: "info",
1850
+ children: [/*#__PURE__*/jsx("b", {
1851
+ children: "Your home loan journey just got even better"
1852
+ }), "\u2014welcome to Aussie!", ' ', /*#__PURE__*/jsx(Link, {
1853
+ href: "https://aussie.com.au/lp/welcome-to-aussie",
1854
+ target: "_blank",
1855
+ children: "Learn more."
1856
+ })]
1833
1857
  })]
1834
1858
  });
1835
1859
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lendi/navbar",
3
3
  "access": "restricted",
4
- "version": "7.41.1",
4
+ "version": "7.42.0",
5
5
  "license": "ISC",
6
6
  "source": "src/index.tsx",
7
7
  "main": "dist/navbar.cjs.js",
@@ -20,6 +20,7 @@
20
20
  "styled-components": "^4"
21
21
  },
22
22
  "dependencies": {
23
+ "@lendi-ui/alert": "^4.3.0",
23
24
  "@lendi-ui/breakpoint": "^5.2.4-beta.1",
24
25
  "@lendi-ui/button": "^8.4.1-beta.0",
25
26
  "@lendi-ui/color": "^5.1.9-beta.0",