@lendi/navbar 7.14.3 → 7.14.4
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.
|
@@ -4,4 +4,4 @@ export interface PrimaryCTAProps {
|
|
|
4
4
|
handleApplyNowClick: () => void;
|
|
5
5
|
application?: Application;
|
|
6
6
|
}
|
|
7
|
-
export declare const PrimaryCTA: ({ application, handleApplyNowClick }: PrimaryCTAProps) => JSX.Element;
|
|
7
|
+
export declare const PrimaryCTA: ({ application, handleApplyNowClick }: PrimaryCTAProps) => false | JSX.Element;
|
package/dist/navbar.cjs.dev.js
CHANGED
|
@@ -1146,6 +1146,10 @@ props => {
|
|
|
1146
1146
|
|
|
1147
1147
|
var withCommPanel = Component => commPanel.withCommPanelProvider(withCommPanelWrapper(Component));
|
|
1148
1148
|
|
|
1149
|
+
var withRestrictionProvider = Component => props => /*#__PURE__*/jsxRuntime.jsx(RestrictionProvider, {
|
|
1150
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread2({}, props))
|
|
1151
|
+
});
|
|
1152
|
+
|
|
1149
1153
|
var SimpleNavbarComponent = _ref => {
|
|
1150
1154
|
var {
|
|
1151
1155
|
// Public props
|
|
@@ -1170,40 +1174,38 @@ var SimpleNavbarComponent = _ref => {
|
|
|
1170
1174
|
var isAuthenticated = session.status === lalaReact.Status.Authenticated;
|
|
1171
1175
|
var hasWindow = typeof window !== 'undefined';
|
|
1172
1176
|
var utmCampaign = hasWindow ? new URLSearchParams(window.location.search).get('utm_campaign') : null;
|
|
1173
|
-
return /*#__PURE__*/jsxRuntime.
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
children:
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
hasUnreadMessages: hasUnread
|
|
1199
|
-
})
|
|
1177
|
+
return /*#__PURE__*/jsxRuntime.jsxs(NavbarWrapper, {
|
|
1178
|
+
isTransparent: useTransparent,
|
|
1179
|
+
isAuthenticated: isAuthenticated,
|
|
1180
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(NavbarLeftWrapper, {
|
|
1181
|
+
children: /*#__PURE__*/jsxRuntime.jsx(LogoComponent$1, {
|
|
1182
|
+
homeURL: homeURL,
|
|
1183
|
+
params: params,
|
|
1184
|
+
"aria-label": "Logo",
|
|
1185
|
+
hasHamburgerMenu: false
|
|
1186
|
+
})
|
|
1187
|
+
}), /*#__PURE__*/jsxRuntime.jsx(NavbarRightWrapper, {
|
|
1188
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DropdownProvider, {
|
|
1189
|
+
hideDashboardItem: hideDashboardItem,
|
|
1190
|
+
hideManageApplicationsItem: hideManageApplicationsItem,
|
|
1191
|
+
onLogout: onLogout,
|
|
1192
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CTAButtons$3, {
|
|
1193
|
+
showTalkToExpertCta: showTalkToExpertCta,
|
|
1194
|
+
showBookanAppointmentCta: showBookanAppointmentCta,
|
|
1195
|
+
isAuthenticated: isAuthenticated,
|
|
1196
|
+
continueURL: continueURL,
|
|
1197
|
+
utmCampaign: utmCampaign,
|
|
1198
|
+
showContinueAction: showContinueAction,
|
|
1199
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
1200
|
+
teamMember: latestTeamMember,
|
|
1201
|
+
hasUnreadMessages: hasUnread
|
|
1200
1202
|
})
|
|
1201
|
-
})
|
|
1202
|
-
})
|
|
1203
|
+
})
|
|
1204
|
+
})]
|
|
1203
1205
|
});
|
|
1204
1206
|
};
|
|
1205
1207
|
|
|
1206
|
-
var SimpleNavbar = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent))));
|
|
1208
|
+
var SimpleNavbar = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent)))));
|
|
1207
1209
|
|
|
1208
1210
|
var GuestNavbar = _ref => {
|
|
1209
1211
|
var {
|
|
@@ -1975,7 +1977,7 @@ var MultiNavbarComponent = _ref => {
|
|
|
1975
1977
|
var session = lalaReact.useSession();
|
|
1976
1978
|
var isAuthenticated = session.status === lalaReact.Status.Authenticated;
|
|
1977
1979
|
var [leftSidebarState, setLeftSidebarState] = React__default["default"].useState(false);
|
|
1978
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1980
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1979
1981
|
children: [/*#__PURE__*/jsxRuntime.jsx(LeftSidebar$1, {
|
|
1980
1982
|
menuOptions: MULTI_MENU_OPTIONS,
|
|
1981
1983
|
openSidebar: leftSidebarState,
|
|
@@ -2024,7 +2026,7 @@ var MultiNavbarComponent = _ref => {
|
|
|
2024
2026
|
});
|
|
2025
2027
|
};
|
|
2026
2028
|
|
|
2027
|
-
var MultiNavbar = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent))));
|
|
2029
|
+
var MultiNavbar = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent)))));
|
|
2028
2030
|
|
|
2029
2031
|
var _templateObject$4, _templateObject2$2, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
2030
2032
|
var LargeTweakpoint = '67rem';
|
|
@@ -2877,10 +2879,13 @@ var PrimaryCTA = _ref => {
|
|
|
2877
2879
|
application,
|
|
2878
2880
|
handleApplyNowClick
|
|
2879
2881
|
} = _ref;
|
|
2882
|
+
var {
|
|
2883
|
+
isRestricted
|
|
2884
|
+
} = useRestriction();
|
|
2880
2885
|
return !(application !== null && application !== void 0 && application.id) ? /*#__PURE__*/jsxRuntime.jsx(ApplyNowButton, {
|
|
2881
2886
|
onClick: handleApplyNowClick,
|
|
2882
2887
|
width: "100%"
|
|
2883
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(Button.AnchorButton, {
|
|
2888
|
+
}) : !isRestricted && /*#__PURE__*/jsxRuntime.jsx(Button.AnchorButton, {
|
|
2884
2889
|
onPress: () => {
|
|
2885
2890
|
var event = {
|
|
2886
2891
|
event_name: 'Button Clicked',
|
|
@@ -3353,38 +3358,36 @@ var HeaderWithContext = _ref => {
|
|
|
3353
3358
|
var {
|
|
3354
3359
|
isRestricted
|
|
3355
3360
|
} = useRestriction();
|
|
3356
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
children:
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
onLogout: onLogout
|
|
3382
|
-
})
|
|
3361
|
+
return /*#__PURE__*/jsxRuntime.jsx(HeaderBase, {
|
|
3362
|
+
navSlot: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
3363
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ShowFromTweakLarge, {
|
|
3364
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Nav, {
|
|
3365
|
+
navOptions: navOptions,
|
|
3366
|
+
isRestricted: isRestricted
|
|
3367
|
+
})
|
|
3368
|
+
}), /*#__PURE__*/jsxRuntime.jsx(HideFromTweakLarge, {
|
|
3369
|
+
children: /*#__PURE__*/jsxRuntime.jsx(HamburgerMenu, {
|
|
3370
|
+
handleApplyNowClick: handleApplyNow,
|
|
3371
|
+
application: application,
|
|
3372
|
+
teamMember: latestTeamMember,
|
|
3373
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
3374
|
+
isRestricted: isRestricted
|
|
3375
|
+
})
|
|
3376
|
+
})]
|
|
3377
|
+
}),
|
|
3378
|
+
ctaSlot: /*#__PURE__*/jsxRuntime.jsx(CtaNav, {
|
|
3379
|
+
handleApplyNowClick: handleApplyNow,
|
|
3380
|
+
application: application,
|
|
3381
|
+
session: session,
|
|
3382
|
+
teamMember: latestTeamMember,
|
|
3383
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
3384
|
+
isRestricted: isRestricted,
|
|
3385
|
+
onLogout: onLogout
|
|
3383
3386
|
})
|
|
3384
3387
|
});
|
|
3385
3388
|
};
|
|
3386
3389
|
|
|
3387
|
-
var Header = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(HeaderWithContext)));
|
|
3390
|
+
var Header = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(HeaderWithContext))));
|
|
3388
3391
|
|
|
3389
3392
|
/* eslint-disable camelcase */
|
|
3390
3393
|
exports.ApplicationStage = void 0;
|
package/dist/navbar.cjs.prod.js
CHANGED
|
@@ -658,40 +658,40 @@ var _templateObject$8, _templateObject2$3, _templateObject$7, _templateObject$6,
|
|
|
658
658
|
})
|
|
659
659
|
})) ]
|
|
660
660
|
});
|
|
661
|
-
}, withCommPanel = Component => commPanel.withCommPanelProvider(withCommPanelWrapper(Component)),
|
|
661
|
+
}, withCommPanel = Component => commPanel.withCommPanelProvider(withCommPanelWrapper(Component)), withRestrictionProvider = Component => props => jsxRuntime.jsx(RestrictionProvider, {
|
|
662
|
+
children: jsxRuntime.jsx(Component, _objectSpread2({}, props))
|
|
663
|
+
}), SimpleNavbarComponent = _ref => {
|
|
662
664
|
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, latestTeamMember: latestTeamMember} = _ref, isAuthenticated = lalaReact.useSession().status === lalaReact.Status.Authenticated, utmCampaign = "undefined" != typeof window ? new URLSearchParams(window.location.search).get("utm_campaign") : null;
|
|
663
|
-
return jsxRuntime.
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
children:
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
hasUnreadMessages: hasUnread
|
|
689
|
-
})
|
|
665
|
+
return jsxRuntime.jsxs(NavbarWrapper, {
|
|
666
|
+
isTransparent: useTransparent,
|
|
667
|
+
isAuthenticated: isAuthenticated,
|
|
668
|
+
children: [ jsxRuntime.jsx(NavbarLeftWrapper, {
|
|
669
|
+
children: jsxRuntime.jsx(LogoComponent$1, {
|
|
670
|
+
homeURL: homeURL,
|
|
671
|
+
params: params,
|
|
672
|
+
"aria-label": "Logo",
|
|
673
|
+
hasHamburgerMenu: !1
|
|
674
|
+
})
|
|
675
|
+
}), jsxRuntime.jsx(NavbarRightWrapper, {
|
|
676
|
+
children: jsxRuntime.jsx(DropdownProvider, {
|
|
677
|
+
hideDashboardItem: hideDashboardItem,
|
|
678
|
+
hideManageApplicationsItem: hideManageApplicationsItem,
|
|
679
|
+
onLogout: onLogout,
|
|
680
|
+
children: jsxRuntime.jsx(CTAButtons$3, {
|
|
681
|
+
showTalkToExpertCta: showTalkToExpertCta,
|
|
682
|
+
showBookanAppointmentCta: showBookanAppointmentCta,
|
|
683
|
+
isAuthenticated: isAuthenticated,
|
|
684
|
+
continueURL: continueURL,
|
|
685
|
+
utmCampaign: utmCampaign,
|
|
686
|
+
showContinueAction: showContinueAction,
|
|
687
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
688
|
+
teamMember: latestTeamMember,
|
|
689
|
+
hasUnreadMessages: hasUnread
|
|
690
690
|
})
|
|
691
|
-
})
|
|
692
|
-
})
|
|
691
|
+
})
|
|
692
|
+
}) ]
|
|
693
693
|
});
|
|
694
|
-
}, SimpleNavbar = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent)))), GuestNavbar = _ref => {
|
|
694
|
+
}, SimpleNavbar = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent))))), GuestNavbar = _ref => {
|
|
695
695
|
var {useTransparent: useTransparent = !1, homeURL: homeURL, params: params = ""} = _ref;
|
|
696
696
|
return jsxRuntime.jsx(NavbarWrapper, {
|
|
697
697
|
isTransparent: useTransparent,
|
|
@@ -1252,7 +1252,7 @@ var _templateObject$8, _templateObject2$3, _templateObject$7, _templateObject$6,
|
|
|
1252
1252
|
setCurrentSelected(prevSelected === label ? "" : label);
|
|
1253
1253
|
}, MenuOptions$1 = MenuOptions, _excluded$8 = [ "useTransparent", "homeURL", "params", "continueURL", "onLogout", "application", "showContinueAction", "showTalkToExpertCta", "hideDashboardItem", "hideManageApplicationsItem", "isCommPanelOpen", "hasUnread", "closeCommPanel", "openCommPanel", "latestTeamMember" ], MultiNavbarComponent = _ref => {
|
|
1254
1254
|
var {useTransparent: useTransparent = !1, homeURL: homeURL, params: params = "", continueURL: continueURL = "/", onLogout: onLogout = (() => {}), application: application, showContinueAction: showContinueAction, showTalkToExpertCta: showTalkToExpertCta, hideDashboardItem: hideDashboardItem, hideManageApplicationsItem: hideManageApplicationsItem, isCommPanelOpen: isCommPanelOpen, hasUnread: hasUnread, closeCommPanel: closeCommPanel, openCommPanel: _openCommPanel, latestTeamMember: latestTeamMember} = _ref, otherProps = _objectWithoutProperties(_ref, _excluded$8), isAuthenticated = lalaReact.useSession().status === lalaReact.Status.Authenticated, [leftSidebarState, setLeftSidebarState] = React__default.default.useState(!1);
|
|
1255
|
-
return jsxRuntime.jsxs(
|
|
1255
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1256
1256
|
children: [ jsxRuntime.jsx(LeftSidebar$1, {
|
|
1257
1257
|
menuOptions: MULTI_MENU_OPTIONS,
|
|
1258
1258
|
openSidebar: leftSidebarState,
|
|
@@ -1299,7 +1299,7 @@ var _templateObject$8, _templateObject2$3, _templateObject$7, _templateObject$6,
|
|
|
1299
1299
|
}) ]
|
|
1300
1300
|
})) ]
|
|
1301
1301
|
});
|
|
1302
|
-
}, MultiNavbar = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent)))), LargeTweakpoint = "67rem", Px = styled.css([ "padding-left:", ";padding-right:", ";" ], utils$1.pxToRem(16), utils$1.pxToRem(16)), Py = styled.css([ "padding-top:", ";padding-bottom:", ";" ], utils$1.pxToRem(24), utils$1.pxToRem(24)), MenuPadding = styled__default.default.div.withConfig({
|
|
1302
|
+
}, MultiNavbar = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent))))), LargeTweakpoint = "67rem", Px = styled.css([ "padding-left:", ";padding-right:", ";" ], utils$1.pxToRem(16), utils$1.pxToRem(16)), Py = styled.css([ "padding-top:", ";padding-bottom:", ";" ], utils$1.pxToRem(24), utils$1.pxToRem(24)), MenuPadding = styled__default.default.div.withConfig({
|
|
1303
1303
|
displayName: "sharedstyles__MenuPadding",
|
|
1304
1304
|
componentId: "lui__sc-631j2u-0"
|
|
1305
1305
|
})([ "", ";", ";" ], Px, Py), listReset = styled.css([ "margin:0;list-style:none;padding:0;" ]), buttonReset = styled.css([ "border:0;border-radius:0;background:none;width:100%;white-space:nowrap;text-decoration:none;margin:0;cursor:pointer;" ]), insetFocusVisible = styled.css([ "&:focus-visible{background-color:#331745;outline:0;box-shadow:inset ", " 0.125rem 0.125rem 0 0,inset ", " -0.125rem -0.125rem 0 0,inset ", " 0.25rem 0.25rem 0 0,inset ", " -0.25rem -0.25rem 0 0;}" ], (_ref => {
|
|
@@ -1849,8 +1849,8 @@ var _templateObject$3, _templateObject2$1, _templateObject$2, _templateObject$1,
|
|
|
1849
1849
|
children: "Apply now"
|
|
1850
1850
|
});
|
|
1851
1851
|
}, PrimaryCTA = _ref => {
|
|
1852
|
-
var {application: application, handleApplyNowClick: handleApplyNowClick} = _ref;
|
|
1853
|
-
return null != application && application.id ? jsxRuntime.jsx(Button.AnchorButton, {
|
|
1852
|
+
var {application: application, handleApplyNowClick: handleApplyNowClick} = _ref, {isRestricted: isRestricted} = useRestriction();
|
|
1853
|
+
return null != application && application.id ? !isRestricted && jsxRuntime.jsx(Button.AnchorButton, {
|
|
1854
1854
|
onPress: () => {
|
|
1855
1855
|
var event = {
|
|
1856
1856
|
event_name: "Button Clicked",
|
|
@@ -2202,36 +2202,34 @@ var _templateObject$3, _templateObject2$1, _templateObject$2, _templateObject$1,
|
|
|
2202
2202
|
}), [ session, onException ]), application;
|
|
2203
2203
|
}, HeaderWithContext = _ref => {
|
|
2204
2204
|
var {handleApplyNow: handleApplyNow, onLogout: onLogout, navOptions: navOptions = [], isCommPanelOpen: isCommPanelOpen, closeCommPanel: closeCommPanel, openCommPanel: _openCommPanel, latestTeamMember: latestTeamMember} = _ref, session = lalaReact.useSession(), application = useApplication(session), {isRestricted: isRestricted} = useRestriction();
|
|
2205
|
-
return jsxRuntime.jsx(
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
children:
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
onLogout: onLogout
|
|
2231
|
-
})
|
|
2205
|
+
return jsxRuntime.jsx(HeaderBase, {
|
|
2206
|
+
navSlot: jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2207
|
+
children: [ jsxRuntime.jsx(ShowFromTweakLarge, {
|
|
2208
|
+
children: jsxRuntime.jsx(Nav, {
|
|
2209
|
+
navOptions: navOptions,
|
|
2210
|
+
isRestricted: isRestricted
|
|
2211
|
+
})
|
|
2212
|
+
}), jsxRuntime.jsx(HideFromTweakLarge, {
|
|
2213
|
+
children: jsxRuntime.jsx(HamburgerMenu, {
|
|
2214
|
+
handleApplyNowClick: handleApplyNow,
|
|
2215
|
+
application: application,
|
|
2216
|
+
teamMember: latestTeamMember,
|
|
2217
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
2218
|
+
isRestricted: isRestricted
|
|
2219
|
+
})
|
|
2220
|
+
}) ]
|
|
2221
|
+
}),
|
|
2222
|
+
ctaSlot: jsxRuntime.jsx(CtaNav, {
|
|
2223
|
+
handleApplyNowClick: handleApplyNow,
|
|
2224
|
+
application: application,
|
|
2225
|
+
session: session,
|
|
2226
|
+
teamMember: latestTeamMember,
|
|
2227
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
2228
|
+
isRestricted: isRestricted,
|
|
2229
|
+
onLogout: onLogout
|
|
2232
2230
|
})
|
|
2233
2231
|
});
|
|
2234
|
-
}, Header = withErrorProvider(launchdarkly.withLendiLDProvider(withCommPanel(HeaderWithContext)));
|
|
2232
|
+
}, Header = withErrorProvider(withRestrictionProvider(launchdarkly.withLendiLDProvider(withCommPanel(HeaderWithContext))));
|
|
2235
2233
|
|
|
2236
2234
|
exports.ApplicationStage = void 0, function(ApplicationStage) {
|
|
2237
2235
|
ApplicationStage.started_application = "started_application", ApplicationStage.finished_funnel2 = "finished_funnel2",
|
package/dist/navbar.esm.js
CHANGED
|
@@ -1119,6 +1119,10 @@ props => {
|
|
|
1119
1119
|
|
|
1120
1120
|
var withCommPanel = Component => withCommPanelProvider(withCommPanelWrapper(Component));
|
|
1121
1121
|
|
|
1122
|
+
var withRestrictionProvider = Component => props => /*#__PURE__*/jsx(RestrictionProvider, {
|
|
1123
|
+
children: /*#__PURE__*/jsx(Component, _objectSpread2({}, props))
|
|
1124
|
+
});
|
|
1125
|
+
|
|
1122
1126
|
var SimpleNavbarComponent = _ref => {
|
|
1123
1127
|
var {
|
|
1124
1128
|
// Public props
|
|
@@ -1143,40 +1147,38 @@ var SimpleNavbarComponent = _ref => {
|
|
|
1143
1147
|
var isAuthenticated = session.status === Status.Authenticated;
|
|
1144
1148
|
var hasWindow = typeof window !== 'undefined';
|
|
1145
1149
|
var utmCampaign = hasWindow ? new URLSearchParams(window.location.search).get('utm_campaign') : null;
|
|
1146
|
-
return /*#__PURE__*/
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
children:
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
hasUnreadMessages: hasUnread
|
|
1172
|
-
})
|
|
1150
|
+
return /*#__PURE__*/jsxs(NavbarWrapper, {
|
|
1151
|
+
isTransparent: useTransparent,
|
|
1152
|
+
isAuthenticated: isAuthenticated,
|
|
1153
|
+
children: [/*#__PURE__*/jsx(NavbarLeftWrapper, {
|
|
1154
|
+
children: /*#__PURE__*/jsx(LogoComponent$1, {
|
|
1155
|
+
homeURL: homeURL,
|
|
1156
|
+
params: params,
|
|
1157
|
+
"aria-label": "Logo",
|
|
1158
|
+
hasHamburgerMenu: false
|
|
1159
|
+
})
|
|
1160
|
+
}), /*#__PURE__*/jsx(NavbarRightWrapper, {
|
|
1161
|
+
children: /*#__PURE__*/jsx(DropdownProvider, {
|
|
1162
|
+
hideDashboardItem: hideDashboardItem,
|
|
1163
|
+
hideManageApplicationsItem: hideManageApplicationsItem,
|
|
1164
|
+
onLogout: onLogout,
|
|
1165
|
+
children: /*#__PURE__*/jsx(CTAButtons$3, {
|
|
1166
|
+
showTalkToExpertCta: showTalkToExpertCta,
|
|
1167
|
+
showBookanAppointmentCta: showBookanAppointmentCta,
|
|
1168
|
+
isAuthenticated: isAuthenticated,
|
|
1169
|
+
continueURL: continueURL,
|
|
1170
|
+
utmCampaign: utmCampaign,
|
|
1171
|
+
showContinueAction: showContinueAction,
|
|
1172
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
1173
|
+
teamMember: latestTeamMember,
|
|
1174
|
+
hasUnreadMessages: hasUnread
|
|
1173
1175
|
})
|
|
1174
|
-
})
|
|
1175
|
-
})
|
|
1176
|
+
})
|
|
1177
|
+
})]
|
|
1176
1178
|
});
|
|
1177
1179
|
};
|
|
1178
1180
|
|
|
1179
|
-
var SimpleNavbar = withErrorProvider(withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent))));
|
|
1181
|
+
var SimpleNavbar = withErrorProvider(withRestrictionProvider(withLendiLDProvider(withCommPanel(withDomainChat(SimpleNavbarComponent)))));
|
|
1180
1182
|
|
|
1181
1183
|
var GuestNavbar = _ref => {
|
|
1182
1184
|
var {
|
|
@@ -1948,7 +1950,7 @@ var MultiNavbarComponent = _ref => {
|
|
|
1948
1950
|
var session = useSession();
|
|
1949
1951
|
var isAuthenticated = session.status === Status.Authenticated;
|
|
1950
1952
|
var [leftSidebarState, setLeftSidebarState] = React.useState(false);
|
|
1951
|
-
return /*#__PURE__*/jsxs(
|
|
1953
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
1952
1954
|
children: [/*#__PURE__*/jsx(LeftSidebar$1, {
|
|
1953
1955
|
menuOptions: MULTI_MENU_OPTIONS,
|
|
1954
1956
|
openSidebar: leftSidebarState,
|
|
@@ -1997,7 +1999,7 @@ var MultiNavbarComponent = _ref => {
|
|
|
1997
1999
|
});
|
|
1998
2000
|
};
|
|
1999
2001
|
|
|
2000
|
-
var MultiNavbar = withErrorProvider(withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent))));
|
|
2002
|
+
var MultiNavbar = withErrorProvider(withRestrictionProvider(withLendiLDProvider(withCommPanel(withDomainChat(MultiNavbarComponent)))));
|
|
2001
2003
|
|
|
2002
2004
|
var _templateObject$4, _templateObject2$2, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
2003
2005
|
var LargeTweakpoint = '67rem';
|
|
@@ -2850,10 +2852,13 @@ var PrimaryCTA = _ref => {
|
|
|
2850
2852
|
application,
|
|
2851
2853
|
handleApplyNowClick
|
|
2852
2854
|
} = _ref;
|
|
2855
|
+
var {
|
|
2856
|
+
isRestricted
|
|
2857
|
+
} = useRestriction();
|
|
2853
2858
|
return !(application !== null && application !== void 0 && application.id) ? /*#__PURE__*/jsx(ApplyNowButton, {
|
|
2854
2859
|
onClick: handleApplyNowClick,
|
|
2855
2860
|
width: "100%"
|
|
2856
|
-
}) : /*#__PURE__*/jsx(AnchorButton, {
|
|
2861
|
+
}) : !isRestricted && /*#__PURE__*/jsx(AnchorButton, {
|
|
2857
2862
|
onPress: () => {
|
|
2858
2863
|
var event = {
|
|
2859
2864
|
event_name: 'Button Clicked',
|
|
@@ -3326,38 +3331,36 @@ var HeaderWithContext = _ref => {
|
|
|
3326
3331
|
var {
|
|
3327
3332
|
isRestricted
|
|
3328
3333
|
} = useRestriction();
|
|
3329
|
-
return /*#__PURE__*/jsx(
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
children:
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
onLogout: onLogout
|
|
3355
|
-
})
|
|
3334
|
+
return /*#__PURE__*/jsx(HeaderBase, {
|
|
3335
|
+
navSlot: /*#__PURE__*/jsxs(Fragment, {
|
|
3336
|
+
children: [/*#__PURE__*/jsx(ShowFromTweakLarge, {
|
|
3337
|
+
children: /*#__PURE__*/jsx(Nav, {
|
|
3338
|
+
navOptions: navOptions,
|
|
3339
|
+
isRestricted: isRestricted
|
|
3340
|
+
})
|
|
3341
|
+
}), /*#__PURE__*/jsx(HideFromTweakLarge, {
|
|
3342
|
+
children: /*#__PURE__*/jsx(HamburgerMenu, {
|
|
3343
|
+
handleApplyNowClick: handleApplyNow,
|
|
3344
|
+
application: application,
|
|
3345
|
+
teamMember: latestTeamMember,
|
|
3346
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
3347
|
+
isRestricted: isRestricted
|
|
3348
|
+
})
|
|
3349
|
+
})]
|
|
3350
|
+
}),
|
|
3351
|
+
ctaSlot: /*#__PURE__*/jsx(CtaNav, {
|
|
3352
|
+
handleApplyNowClick: handleApplyNow,
|
|
3353
|
+
application: application,
|
|
3354
|
+
session: session,
|
|
3355
|
+
teamMember: latestTeamMember,
|
|
3356
|
+
openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel(),
|
|
3357
|
+
isRestricted: isRestricted,
|
|
3358
|
+
onLogout: onLogout
|
|
3356
3359
|
})
|
|
3357
3360
|
});
|
|
3358
3361
|
};
|
|
3359
3362
|
|
|
3360
|
-
var Header = withErrorProvider(withLendiLDProvider(withCommPanel(HeaderWithContext)));
|
|
3363
|
+
var Header = withErrorProvider(withRestrictionProvider(withLendiLDProvider(withCommPanel(HeaderWithContext))));
|
|
3361
3364
|
|
|
3362
3365
|
/* eslint-disable camelcase */
|
|
3363
3366
|
var ApplicationStage;
|