@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.
- package/dist/navbar.cjs.dev.js +30 -35
- package/dist/navbar.cjs.prod.js +30 -30
- package/dist/navbar.esm.js +30 -35
- package/package.json +1 -1
package/dist/navbar.cjs.dev.js
CHANGED
|
@@ -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
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
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:
|
|
4096
|
+
navSlot: navbarMenu,
|
|
4102
4097
|
ctaSlot: /*#__PURE__*/jsxRuntime.jsx(CtaNav, {
|
|
4103
4098
|
handleApplyNowClick: handleApplyNow,
|
|
4104
4099
|
application: application,
|
package/dist/navbar.cjs.prod.js
CHANGED
|
@@ -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:
|
|
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,
|
package/dist/navbar.esm.js
CHANGED
|
@@ -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
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
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:
|
|
4063
|
+
navSlot: navbarMenu,
|
|
4069
4064
|
ctaSlot: /*#__PURE__*/jsx(CtaNav, {
|
|
4070
4065
|
handleApplyNowClick: handleApplyNow,
|
|
4071
4066
|
application: application,
|