@lendi/navbar 7.40.9 → 7.40.10

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.
@@ -4063,42 +4063,37 @@ var HeaderWithContext = _ref => {
4063
4063
  // to set AHL value in session storage for funnel1 journey
4064
4064
  useAHLParam();
4065
4065
  var textForTalkTo = cmsNavbarBrokerNameButton ? "Talk to ".concat(trimStringWithEllipsis((customerOwner === null || customerOwner === void 0 ? void 0 : customerOwner.firstName) || storeName || 'broker')) : 'Talk to a broker';
4066
- var getNavbarMenu = () => {
4067
- if (isExperiment) {
4068
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4069
- children: [/*#__PURE__*/jsxRuntime.jsx(ShowFromTweakExtraLarge, {
4070
- children: /*#__PURE__*/jsxRuntime.jsx(Nav, {
4071
- navOptions: navOptions
4072
- })
4073
- }), /*#__PURE__*/jsxRuntime.jsx(HideFromTweakExtraLarge, {
4074
- children: /*#__PURE__*/jsxRuntime.jsx(HamburgerMenu, {
4075
- handleApplyNowClick: handleApplyNow,
4076
- application: application,
4077
- talkTo: textForTalkTo,
4078
- navOptions: navOptions,
4079
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4080
- })
4081
- })]
4082
- });
4083
- }
4084
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4085
- children: [/*#__PURE__*/jsxRuntime.jsx(ShowFromTweakLarge, {
4086
- children: /*#__PURE__*/jsxRuntime.jsx(Nav, {
4087
- navOptions: navOptions
4088
- })
4089
- }), /*#__PURE__*/jsxRuntime.jsx(HideFromTweakLarge, {
4090
- children: /*#__PURE__*/jsxRuntime.jsx(HamburgerMenu, {
4091
- handleApplyNowClick: handleApplyNow,
4092
- application: application,
4093
- talkTo: textForTalkTo,
4094
- navOptions: navOptions,
4095
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4096
- })
4097
- })]
4098
- });
4099
- };
4066
+ var navbarMenu = isExperiment ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4067
+ children: [/*#__PURE__*/jsxRuntime.jsx(ShowFromTweakExtraLarge, {
4068
+ children: /*#__PURE__*/jsxRuntime.jsx(Nav, {
4069
+ navOptions: navOptions
4070
+ })
4071
+ }), /*#__PURE__*/jsxRuntime.jsx(HideFromTweakExtraLarge, {
4072
+ children: /*#__PURE__*/jsxRuntime.jsx(HamburgerMenu, {
4073
+ handleApplyNowClick: handleApplyNow,
4074
+ application: application,
4075
+ talkTo: textForTalkTo,
4076
+ navOptions: navOptions,
4077
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4078
+ })
4079
+ })]
4080
+ }) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4081
+ children: [/*#__PURE__*/jsxRuntime.jsx(ShowFromTweakLarge, {
4082
+ children: /*#__PURE__*/jsxRuntime.jsx(Nav, {
4083
+ navOptions: navOptions
4084
+ })
4085
+ }), /*#__PURE__*/jsxRuntime.jsx(HideFromTweakLarge, {
4086
+ children: /*#__PURE__*/jsxRuntime.jsx(HamburgerMenu, {
4087
+ handleApplyNowClick: handleApplyNow,
4088
+ application: application,
4089
+ talkTo: textForTalkTo,
4090
+ navOptions: navOptions,
4091
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4092
+ })
4093
+ })]
4094
+ });
4100
4095
  return /*#__PURE__*/jsxRuntime.jsx(HeaderBase, {
4101
- navSlot: () => getNavbarMenu(),
4096
+ navSlot: navbarMenu,
4102
4097
  ctaSlot: /*#__PURE__*/jsxRuntime.jsx(CtaNav, {
4103
4098
  handleApplyNowClick: handleApplyNow,
4104
4099
  application: application,
@@ -2725,37 +2725,37 @@ var getApplications = function() {
2725
2725
  }, trimStringWithEllipsis = str => str.length > 17 ? str.substring(0, 14) + "..." : str, HeaderWithContext = _ref => {
2726
2726
  var {handleApplyNow: handleApplyNow, onLogout: onLogout, navOptions: navOptions = [], isCommPanelOpen: isCommPanelOpen, closeCommPanel: closeCommPanel, openCommPanel: _openCommPanel, customerOwner: customerOwner, storeName: storeName, isExperiment: isExperiment} = _ref, session = lalaReact.useSession(), application = useApplication(session), {cmsNavbarBrokerNameButton: cmsNavbarBrokerNameButton} = launchdarkly.useFlags();
2727
2727
  useAHLParam();
2728
- var textForTalkTo = cmsNavbarBrokerNameButton ? "Talk to ".concat(trimStringWithEllipsis((null == customerOwner ? void 0 : customerOwner.firstName) || storeName || "broker")) : "Talk to a broker";
2728
+ var textForTalkTo = cmsNavbarBrokerNameButton ? "Talk to ".concat(trimStringWithEllipsis((null == customerOwner ? void 0 : customerOwner.firstName) || storeName || "broker")) : "Talk to a broker", navbarMenu = isExperiment ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
2729
+ children: [ jsxRuntime.jsx(ShowFromTweakExtraLarge, {
2730
+ children: jsxRuntime.jsx(Nav, {
2731
+ navOptions: navOptions
2732
+ })
2733
+ }), jsxRuntime.jsx(HideFromTweakExtraLarge, {
2734
+ children: jsxRuntime.jsx(HamburgerMenu, {
2735
+ handleApplyNowClick: handleApplyNow,
2736
+ application: application,
2737
+ talkTo: textForTalkTo,
2738
+ navOptions: navOptions,
2739
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
2740
+ })
2741
+ }) ]
2742
+ }) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
2743
+ children: [ jsxRuntime.jsx(ShowFromTweakLarge, {
2744
+ children: jsxRuntime.jsx(Nav, {
2745
+ navOptions: navOptions
2746
+ })
2747
+ }), jsxRuntime.jsx(HideFromTweakLarge, {
2748
+ children: jsxRuntime.jsx(HamburgerMenu, {
2749
+ handleApplyNowClick: handleApplyNow,
2750
+ application: application,
2751
+ talkTo: textForTalkTo,
2752
+ navOptions: navOptions,
2753
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
2754
+ })
2755
+ }) ]
2756
+ });
2729
2757
  return jsxRuntime.jsx(HeaderBase, {
2730
- navSlot: () => isExperiment ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
2731
- children: [ jsxRuntime.jsx(ShowFromTweakExtraLarge, {
2732
- children: jsxRuntime.jsx(Nav, {
2733
- navOptions: navOptions
2734
- })
2735
- }), jsxRuntime.jsx(HideFromTweakExtraLarge, {
2736
- children: jsxRuntime.jsx(HamburgerMenu, {
2737
- handleApplyNowClick: handleApplyNow,
2738
- application: application,
2739
- talkTo: textForTalkTo,
2740
- navOptions: navOptions,
2741
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
2742
- })
2743
- }) ]
2744
- }) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
2745
- children: [ jsxRuntime.jsx(ShowFromTweakLarge, {
2746
- children: jsxRuntime.jsx(Nav, {
2747
- navOptions: navOptions
2748
- })
2749
- }), jsxRuntime.jsx(HideFromTweakLarge, {
2750
- children: jsxRuntime.jsx(HamburgerMenu, {
2751
- handleApplyNowClick: handleApplyNow,
2752
- application: application,
2753
- talkTo: textForTalkTo,
2754
- navOptions: navOptions,
2755
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
2756
- })
2757
- }) ]
2758
- }),
2758
+ navSlot: navbarMenu,
2759
2759
  ctaSlot: jsxRuntime.jsx(CtaNav, {
2760
2760
  handleApplyNowClick: handleApplyNow,
2761
2761
  application: application,
@@ -4030,42 +4030,37 @@ var HeaderWithContext = _ref => {
4030
4030
  // to set AHL value in session storage for funnel1 journey
4031
4031
  useAHLParam();
4032
4032
  var textForTalkTo = cmsNavbarBrokerNameButton ? "Talk to ".concat(trimStringWithEllipsis((customerOwner === null || customerOwner === void 0 ? void 0 : customerOwner.firstName) || storeName || 'broker')) : 'Talk to a broker';
4033
- var getNavbarMenu = () => {
4034
- if (isExperiment) {
4035
- return /*#__PURE__*/jsxs(Fragment, {
4036
- children: [/*#__PURE__*/jsx(ShowFromTweakExtraLarge, {
4037
- children: /*#__PURE__*/jsx(Nav, {
4038
- navOptions: navOptions
4039
- })
4040
- }), /*#__PURE__*/jsx(HideFromTweakExtraLarge, {
4041
- children: /*#__PURE__*/jsx(HamburgerMenu, {
4042
- handleApplyNowClick: handleApplyNow,
4043
- application: application,
4044
- talkTo: textForTalkTo,
4045
- navOptions: navOptions,
4046
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4047
- })
4048
- })]
4049
- });
4050
- }
4051
- return /*#__PURE__*/jsxs(Fragment, {
4052
- children: [/*#__PURE__*/jsx(ShowFromTweakLarge, {
4053
- children: /*#__PURE__*/jsx(Nav, {
4054
- navOptions: navOptions
4055
- })
4056
- }), /*#__PURE__*/jsx(HideFromTweakLarge, {
4057
- children: /*#__PURE__*/jsx(HamburgerMenu, {
4058
- handleApplyNowClick: handleApplyNow,
4059
- application: application,
4060
- talkTo: textForTalkTo,
4061
- navOptions: navOptions,
4062
- openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4063
- })
4064
- })]
4065
- });
4066
- };
4033
+ var navbarMenu = isExperiment ? /*#__PURE__*/jsxs(Fragment, {
4034
+ children: [/*#__PURE__*/jsx(ShowFromTweakExtraLarge, {
4035
+ children: /*#__PURE__*/jsx(Nav, {
4036
+ navOptions: navOptions
4037
+ })
4038
+ }), /*#__PURE__*/jsx(HideFromTweakExtraLarge, {
4039
+ children: /*#__PURE__*/jsx(HamburgerMenu, {
4040
+ handleApplyNowClick: handleApplyNow,
4041
+ application: application,
4042
+ talkTo: textForTalkTo,
4043
+ navOptions: navOptions,
4044
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4045
+ })
4046
+ })]
4047
+ }) : /*#__PURE__*/jsxs(Fragment, {
4048
+ children: [/*#__PURE__*/jsx(ShowFromTweakLarge, {
4049
+ children: /*#__PURE__*/jsx(Nav, {
4050
+ navOptions: navOptions
4051
+ })
4052
+ }), /*#__PURE__*/jsx(HideFromTweakLarge, {
4053
+ children: /*#__PURE__*/jsx(HamburgerMenu, {
4054
+ handleApplyNowClick: handleApplyNow,
4055
+ application: application,
4056
+ talkTo: textForTalkTo,
4057
+ navOptions: navOptions,
4058
+ openCommPanel: () => isCommPanelOpen ? closeCommPanel() : _openCommPanel()
4059
+ })
4060
+ })]
4061
+ });
4067
4062
  return /*#__PURE__*/jsx(HeaderBase, {
4068
- navSlot: () => getNavbarMenu(),
4063
+ navSlot: navbarMenu,
4069
4064
  ctaSlot: /*#__PURE__*/jsx(CtaNav, {
4070
4065
  handleApplyNowClick: handleApplyNow,
4071
4066
  application: application,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lendi/navbar",
3
3
  "access": "restricted",
4
- "version": "7.40.9",
4
+ "version": "7.40.10",
5
5
  "license": "ISC",
6
6
  "source": "src/index.tsx",
7
7
  "main": "dist/navbar.cjs.js",