@lendi/navbar 7.18.3 → 7.18.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.
|
@@ -3,6 +3,7 @@ export declare const UNREAD_MESSAGE = "YOU HAVE AN UNREAD MESSAGE";
|
|
|
3
3
|
export declare const UNREAD_MESSAGE_MOBILE = "UNREAD MESSAGE";
|
|
4
4
|
export declare const CONTACT_US = "CONTACT US";
|
|
5
5
|
export declare const LABEL_TALK_TO_EXPERT = "TALK TO AN EXPERT";
|
|
6
|
+
export declare const LABEL_TALK_TO_A_BROKER = "TALK TO A BROKER";
|
|
6
7
|
export declare const LABEL_SIGN_IN = "SIGN IN";
|
|
7
8
|
export declare const LABEL_CONTINUE = "CONTINUE";
|
|
8
9
|
export declare const LABEL_APPLICATIONS = "Applications";
|
package/dist/navbar.cjs.dev.js
CHANGED
|
@@ -333,6 +333,7 @@ var UNREAD_MESSAGE = 'YOU HAVE AN UNREAD MESSAGE';
|
|
|
333
333
|
var UNREAD_MESSAGE_MOBILE = 'UNREAD MESSAGE';
|
|
334
334
|
var CONTACT_US = 'CONTACT US';
|
|
335
335
|
var LABEL_TALK_TO_EXPERT = 'TALK TO AN EXPERT';
|
|
336
|
+
var LABEL_TALK_TO_A_BROKER = 'TALK TO A BROKER';
|
|
336
337
|
var LABEL_SIGN_IN = 'SIGN IN';
|
|
337
338
|
var LABEL_CONTINUE = 'CONTINUE';
|
|
338
339
|
var LABEL_APPLICATIONS = 'Applications';
|
|
@@ -665,7 +666,8 @@ var RenderChatOrSideBar = _ref => {
|
|
|
665
666
|
dashboardVariant,
|
|
666
667
|
hasUnreadMessages
|
|
667
668
|
} = _ref;
|
|
668
|
-
var
|
|
669
|
+
var brand = lalaUtils.getBrandFromHostname();
|
|
670
|
+
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : brand === 'aussie' ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
669
671
|
return /*#__PURE__*/jsxRuntime.jsx(TalkExpertAction, {
|
|
670
672
|
dashboardVariant: dashboardVariant,
|
|
671
673
|
size: "sm",
|
|
@@ -676,7 +678,7 @@ var RenderChatOrSideBar = _ref => {
|
|
|
676
678
|
event_name: 'Button Clicked',
|
|
677
679
|
category: analytics$1.EventCategory.NAVBAR,
|
|
678
680
|
buttonType: analytics$1.ButtonType.SECONDARY,
|
|
679
|
-
text: hasUnreadMessages ? 'You have an unread message' : 'Talk to an expert'
|
|
681
|
+
text: hasUnreadMessages ? 'You have an unread message' : brand === 'aussie' ? 'Talk to a broker' : 'Talk to an expert'
|
|
680
682
|
};
|
|
681
683
|
analytics(event);
|
|
682
684
|
},
|
|
@@ -798,7 +800,7 @@ var RenderMobileAction = _ref => {
|
|
|
798
800
|
var brand = lalaUtils.getBrandFromHostname();
|
|
799
801
|
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);
|
|
800
802
|
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);
|
|
801
|
-
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : needToContinue() ? CONTACT_US : LABEL_TALK_TO_EXPERT;
|
|
803
|
+
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : needToContinue() ? CONTACT_US : brand === 'aussie' ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
802
804
|
return /*#__PURE__*/jsxRuntime.jsxs(MobileActionsWrapper, {
|
|
803
805
|
children: [showTalkToExpertCta && /*#__PURE__*/jsxRuntime.jsx(TalkExpertAction, {
|
|
804
806
|
size: "sm",
|
|
@@ -811,7 +813,7 @@ var RenderMobileAction = _ref => {
|
|
|
811
813
|
event_name: 'Button Clicked',
|
|
812
814
|
category: analytics$1.EventCategory.NAVBAR,
|
|
813
815
|
buttonType: analytics$1.ButtonType.SECONDARY,
|
|
814
|
-
text: hasUnreadMessages ? 'You have an unread message' : 'Talk to an expert'
|
|
816
|
+
text: hasUnreadMessages ? 'You have an unread message' : brand === 'aussie' ? 'Talk to a broker' : 'Talk to an expert'
|
|
815
817
|
};
|
|
816
818
|
analytics(event);
|
|
817
819
|
},
|
|
@@ -1092,7 +1094,7 @@ var TeamMemberInfo = /*#__PURE__*/React__default["default"].memo(_ref => {
|
|
|
1092
1094
|
color: "shade.700",
|
|
1093
1095
|
mb: "sm",
|
|
1094
1096
|
mt: "sm",
|
|
1095
|
-
children: teamMember ? "I'm here to support your loan journey. Got a question? Just ask!" :
|
|
1097
|
+
children: teamMember ? "I'm here to support your loan journey. Got a question? Just ask!" : "Get in touch with one of our ".concat(brand === 'aussie' ? 'brokers' : 'experts', " who can answer all your home loan related questions.")
|
|
1096
1098
|
})]
|
|
1097
1099
|
});
|
|
1098
1100
|
});
|
|
@@ -1877,7 +1879,7 @@ var DesktopActions = _ref => {
|
|
|
1877
1879
|
var brand = lalaUtils.getBrandFromHostname();
|
|
1878
1880
|
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);
|
|
1879
1881
|
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);
|
|
1880
|
-
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : LABEL_TALK_TO_EXPERT;
|
|
1882
|
+
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : brand === 'aussie' ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
1881
1883
|
return /*#__PURE__*/jsxRuntime.jsxs(DesktopActionsWrapper, {
|
|
1882
1884
|
children: [showTalkToExpertCta && /*#__PURE__*/jsxRuntime.jsx(TalkExpertAction$1, {
|
|
1883
1885
|
variant: "secondary",
|
|
@@ -1887,7 +1889,7 @@ var DesktopActions = _ref => {
|
|
|
1887
1889
|
event_name: 'Button Clicked',
|
|
1888
1890
|
category: analytics$1.EventCategory.NAVBAR,
|
|
1889
1891
|
buttonType: analytics$1.ButtonType.SECONDARY,
|
|
1890
|
-
text: hasUnreadMessages ? 'You have an unread message' : 'Talk to an expert'
|
|
1892
|
+
text: hasUnreadMessages ? 'You have an unread message' : brand === 'aussie' ? 'Talk to a broker' : 'Talk to an expert'
|
|
1891
1893
|
};
|
|
1892
1894
|
analytics(event);
|
|
1893
1895
|
},
|
|
@@ -3289,7 +3291,7 @@ var TalkToExpertButton = _ref => {
|
|
|
3289
3291
|
openCommPanel,
|
|
3290
3292
|
teamMember
|
|
3291
3293
|
} = _ref;
|
|
3292
|
-
var buttonText = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : 'Talk to
|
|
3294
|
+
var buttonText = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : 'Talk to a broker';
|
|
3293
3295
|
var handleClick = () => {
|
|
3294
3296
|
openCommPanel();
|
|
3295
3297
|
var event = {
|
package/dist/navbar.cjs.prod.js
CHANGED
|
@@ -198,7 +198,7 @@ styled__default.default.div.withConfig({
|
|
|
198
198
|
var _templateObject$c, _templateObject$b, UnreadMessageWrapper = styled__default.default(UnreadMessage__default.default).withConfig({
|
|
199
199
|
displayName: "style__UnreadMessageWrapper",
|
|
200
200
|
componentId: "lui__sc-9anjvz-5"
|
|
201
|
-
})([ "margin-top:-0.4em;margin-right:0.5em;margin-left:-0.5em;" ]), BOOK_AN_APPOINTMENT = "BOOK AN APPOINTMENT", UNREAD_MESSAGE = "YOU HAVE AN UNREAD MESSAGE", UNREAD_MESSAGE_MOBILE = "UNREAD MESSAGE", CONTACT_US = "CONTACT US", LABEL_TALK_TO_EXPERT = "TALK TO AN EXPERT", LABEL_SIGN_IN = "SIGN IN", LABEL_CONTINUE = "CONTINUE", LABEL_APPLICATIONS = "Applications", LABEL_DASHBOARD = "Dashboard", LABEL_PROPERTY_REPORT = "Property reports", LABEL_LOG_OUT = "Sign out", LABEL_MORE_OPTIONS = "More options", DASHBOARD_V2_PATH = "/v2/dashboard", PATH_LENDI = "", PATH_DOMAIN = "/loanfinder", ROUTE_SIGN_IN = "/sign-in", ROUTE_BOOK_APPOINTMENT = "/book-appointment/", ROUTE_APPLICATIONS = "/dashboard/applications", ROUTE_PROPERTY_REPORT = "/dashboard/my-property-report", ROUTE_NEW_PROPERTY_REPORT = "/property-report/my-properties", TalkExpertAction = styled__default.default(button.Button).withConfig({
|
|
201
|
+
})([ "margin-top:-0.4em;margin-right:0.5em;margin-left:-0.5em;" ]), BOOK_AN_APPOINTMENT = "BOOK AN APPOINTMENT", UNREAD_MESSAGE = "YOU HAVE AN UNREAD MESSAGE", UNREAD_MESSAGE_MOBILE = "UNREAD MESSAGE", CONTACT_US = "CONTACT US", LABEL_TALK_TO_EXPERT = "TALK TO AN EXPERT", LABEL_TALK_TO_A_BROKER = "TALK TO A BROKER", LABEL_SIGN_IN = "SIGN IN", LABEL_CONTINUE = "CONTINUE", LABEL_APPLICATIONS = "Applications", LABEL_DASHBOARD = "Dashboard", LABEL_PROPERTY_REPORT = "Property reports", LABEL_LOG_OUT = "Sign out", LABEL_MORE_OPTIONS = "More options", DASHBOARD_V2_PATH = "/v2/dashboard", PATH_LENDI = "", PATH_DOMAIN = "/loanfinder", ROUTE_SIGN_IN = "/sign-in", ROUTE_BOOK_APPOINTMENT = "/book-appointment/", ROUTE_APPLICATIONS = "/dashboard/applications", ROUTE_PROPERTY_REPORT = "/dashboard/my-property-report", ROUTE_NEW_PROPERTY_REPORT = "/property-report/my-properties", TalkExpertAction = styled__default.default(button.Button).withConfig({
|
|
202
202
|
displayName: "indexstyle__TalkExpertAction",
|
|
203
203
|
componentId: "lui__sc-altm9z-0"
|
|
204
204
|
})([ "", ";", " min-width:202px;", ";", "" ], spacing.mr("sm"), (_ref => {
|
|
@@ -387,7 +387,7 @@ var _templateObject$a, _templateObject$9, RestrictionContext = React__default.de
|
|
|
387
387
|
var urls = lalaUtils.getURLs(brand, lalaReact.Type.Customer, env), dashboardReturnURL = brand === lalaReact.Brand.Domain ? "/loanfinder".concat(DEFAULT_DASHBOARD_URL) : DEFAULT_DASHBOARD_URL, lendiOrAussieLandingPageRoute = "".concat(urls.origin, "lp/"), hasNoReturnURL = void 0 === returnURL || "" === returnURL, isReturnURLOrigin = returnURL === urls.origin, isReturnURLLendiOrAussieLandingPage = (null == returnURL ? void 0 : returnURL.includes(lendiOrAussieLandingPageRoute)) && brand !== lalaReact.Brand.Domain, newReturnURL = hasNoReturnURL || isReturnURLOrigin || isReturnURLLendiOrAussieLandingPage ? dashboardReturnURL : returnURL;
|
|
388
388
|
return "".concat(urls.authenticate, "?returnURL=").concat(encodeURIComponent(newReturnURL));
|
|
389
389
|
}, getEnvFromHostname = hostname => null != hostname && hostname.includes("dev.") ? lalaReact.Environment.Development : null != hostname && hostname.includes("stg.") || null != hostname && hostname.includes("stage.") ? lalaReact.Environment.Staging : null != hostname && hostname.includes("preprod.") ? lalaReact.Environment.Preproduction : null != hostname && hostname.includes("lendi.com.au") || null != hostname && hostname.includes("domain.com.au") || null != hostname && hostname.includes("aussie.com.au") ? lalaReact.Environment.Production : lalaReact.Environment.Development, RenderChatOrSideBar = _ref => {
|
|
390
|
-
var {openCommPanel: openCommPanel = (() => {}), teamMember: teamMember, dashboardVariant: dashboardVariant, hasUnreadMessages: hasUnreadMessages} = _ref, primaryLabel = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : LABEL_TALK_TO_EXPERT;
|
|
390
|
+
var {openCommPanel: openCommPanel = (() => {}), teamMember: teamMember, dashboardVariant: dashboardVariant, hasUnreadMessages: hasUnreadMessages} = _ref, brand = lalaUtils.getBrandFromHostname(), primaryLabel = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : "aussie" === brand ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
391
391
|
return jsxRuntime.jsx(TalkExpertAction, {
|
|
392
392
|
dashboardVariant: dashboardVariant,
|
|
393
393
|
size: "sm",
|
|
@@ -398,7 +398,7 @@ var _templateObject$a, _templateObject$9, RestrictionContext = React__default.de
|
|
|
398
398
|
event_name: "Button Clicked",
|
|
399
399
|
category: analytics$1.EventCategory.NAVBAR,
|
|
400
400
|
buttonType: analytics$1.ButtonType.SECONDARY,
|
|
401
|
-
text: hasUnreadMessages ? "You have an unread message" : "Talk to an expert"
|
|
401
|
+
text: hasUnreadMessages ? "You have an unread message" : "aussie" === brand ? "Talk to a broker" : "Talk to an expert"
|
|
402
402
|
};
|
|
403
403
|
analytics(event);
|
|
404
404
|
},
|
|
@@ -474,7 +474,7 @@ var _templateObject$a, _templateObject$9, RestrictionContext = React__default.de
|
|
|
474
474
|
displayName: "style__MobileActionsWrapper",
|
|
475
475
|
componentId: "lui__sc-jzhj4e-0"
|
|
476
476
|
})([ "display:flex;", ";.noHover{", ";:hover{box-shadow:none;}}" ], breakpoint.gte("desktop")(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral([ "\n display: none;\n " ]))), spacing.mr("nil")), RenderMobileAction = _ref => {
|
|
477
|
-
var _window, _window$location, _window2, _window2$location, {isAuthenticated: isAuthenticated, continueURL: continueURL, teamMember: teamMember, openCommPanel: openCommPanel = (() => {}), showContinueAction: showContinueAction = !1, showTalkToExpertCta: showTalkToExpertCta = !0, hasUnreadMessages: hasUnreadMessages, utmCampaign: utmCampaign} = _ref, {isTransparent: isTransparent} = NavbarBase.useNavbarBaseContext(), needToContinue = () => isAuthenticated && showContinueAction, brand = lalaUtils.getBrandFromHostname(), env = getEnvFromHostname(null === (_window = window) || void 0 === _window || null === (_window$location = _window.location) || void 0 === _window$location ? void 0 : _window$location.hostname), signInURL = getSignInURL(brand, env, null === (_window2 = window) || void 0 === _window2 || null === (_window2$location = _window2.location) || void 0 === _window2$location ? void 0 : _window2$location.href), primaryLabel = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : needToContinue() ? CONTACT_US : LABEL_TALK_TO_EXPERT;
|
|
477
|
+
var _window, _window$location, _window2, _window2$location, {isAuthenticated: isAuthenticated, continueURL: continueURL, teamMember: teamMember, openCommPanel: openCommPanel = (() => {}), showContinueAction: showContinueAction = !1, showTalkToExpertCta: showTalkToExpertCta = !0, hasUnreadMessages: hasUnreadMessages, utmCampaign: utmCampaign} = _ref, {isTransparent: isTransparent} = NavbarBase.useNavbarBaseContext(), needToContinue = () => isAuthenticated && showContinueAction, brand = lalaUtils.getBrandFromHostname(), env = getEnvFromHostname(null === (_window = window) || void 0 === _window || null === (_window$location = _window.location) || void 0 === _window$location ? void 0 : _window$location.hostname), signInURL = getSignInURL(brand, env, null === (_window2 = window) || void 0 === _window2 || null === (_window2$location = _window2.location) || void 0 === _window2$location ? void 0 : _window2$location.href), primaryLabel = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : needToContinue() ? CONTACT_US : "aussie" === brand ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
478
478
|
return jsxRuntime.jsxs(MobileActionsWrapper, {
|
|
479
479
|
children: [ showTalkToExpertCta && jsxRuntime.jsx(TalkExpertAction, {
|
|
480
480
|
size: "sm",
|
|
@@ -487,7 +487,7 @@ var _templateObject$a, _templateObject$9, RestrictionContext = React__default.de
|
|
|
487
487
|
event_name: "Button Clicked",
|
|
488
488
|
category: analytics$1.EventCategory.NAVBAR,
|
|
489
489
|
buttonType: analytics$1.ButtonType.SECONDARY,
|
|
490
|
-
text: hasUnreadMessages ? "You have an unread message" : "Talk to an expert"
|
|
490
|
+
text: hasUnreadMessages ? "You have an unread message" : "aussie" === brand ? "Talk to a broker" : "Talk to an expert"
|
|
491
491
|
};
|
|
492
492
|
analytics(event);
|
|
493
493
|
},
|
|
@@ -685,7 +685,7 @@ var _excluded$a = [ "showTalkToExpertCta" ], withDomainChat = Component => _ref
|
|
|
685
685
|
color: "shade.700",
|
|
686
686
|
mb: "sm",
|
|
687
687
|
mt: "sm",
|
|
688
|
-
children: teamMember ? "I'm here to support your loan journey. Got a question? Just ask!" : "Get in touch with one of our experts who can answer all your home loan related questions."
|
|
688
|
+
children: teamMember ? "I'm here to support your loan journey. Got a question? Just ask!" : "Get in touch with one of our ".concat("aussie" === brand ? "brokers" : "experts", " who can answer all your home loan related questions.")
|
|
689
689
|
}) ]
|
|
690
690
|
});
|
|
691
691
|
})), theming = {
|
|
@@ -1203,7 +1203,7 @@ var _templateObject$8, _templateObject2$3, _templateObject$7, _templateObject$6,
|
|
|
1203
1203
|
link: "/inspire/category/life-at-lendi/"
|
|
1204
1204
|
} ]
|
|
1205
1205
|
} ], DesktopActions = _ref => {
|
|
1206
|
-
var _window, _window$location, _window2, _window2$location, {isAuthenticated: isAuthenticated, continueURL: continueURL, showContinueAction: showContinueAction = !1, openCommPanel: openCommPanel = (() => {}), teamMember: teamMember, hasUnreadMessages: hasUnreadMessages, showTalkToExpertCta: showTalkToExpertCta} = _ref, brand = lalaUtils.getBrandFromHostname(), env = getEnvFromHostname(null === (_window = window) || void 0 === _window || null === (_window$location = _window.location) || void 0 === _window$location ? void 0 : _window$location.hostname), signInURL = getSignInURL(brand, env, null === (_window2 = window) || void 0 === _window2 || null === (_window2$location = _window2.location) || void 0 === _window2$location ? void 0 : _window2$location.href), primaryLabel = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : LABEL_TALK_TO_EXPERT;
|
|
1206
|
+
var _window, _window$location, _window2, _window2$location, {isAuthenticated: isAuthenticated, continueURL: continueURL, showContinueAction: showContinueAction = !1, openCommPanel: openCommPanel = (() => {}), teamMember: teamMember, hasUnreadMessages: hasUnreadMessages, showTalkToExpertCta: showTalkToExpertCta} = _ref, brand = lalaUtils.getBrandFromHostname(), env = getEnvFromHostname(null === (_window = window) || void 0 === _window || null === (_window$location = _window.location) || void 0 === _window$location ? void 0 : _window$location.hostname), signInURL = getSignInURL(brand, env, null === (_window2 = window) || void 0 === _window2 || null === (_window2$location = _window2.location) || void 0 === _window2$location ? void 0 : _window2$location.href), primaryLabel = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : "aussie" === brand ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
1207
1207
|
return jsxRuntime.jsxs(DesktopActionsWrapper, {
|
|
1208
1208
|
children: [ showTalkToExpertCta && jsxRuntime.jsx(TalkExpertAction$1, {
|
|
1209
1209
|
variant: "secondary",
|
|
@@ -1213,7 +1213,7 @@ var _templateObject$8, _templateObject2$3, _templateObject$7, _templateObject$6,
|
|
|
1213
1213
|
event_name: "Button Clicked",
|
|
1214
1214
|
category: analytics$1.EventCategory.NAVBAR,
|
|
1215
1215
|
buttonType: analytics$1.ButtonType.SECONDARY,
|
|
1216
|
-
text: hasUnreadMessages ? "You have an unread message" : "Talk to an expert"
|
|
1216
|
+
text: hasUnreadMessages ? "You have an unread message" : "aussie" === brand ? "Talk to a broker" : "Talk to an expert"
|
|
1217
1217
|
};
|
|
1218
1218
|
analytics(event);
|
|
1219
1219
|
},
|
|
@@ -2183,7 +2183,7 @@ var _templateObject$3, _templateObject2$1, _templateObject$2, _templateObject$1,
|
|
|
2183
2183
|
}) ]
|
|
2184
2184
|
}));
|
|
2185
2185
|
}, TalkToExpertButton = _ref => {
|
|
2186
|
-
var {openCommPanel: openCommPanel, teamMember: teamMember} = _ref, buttonText = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : "Talk to
|
|
2186
|
+
var {openCommPanel: openCommPanel, teamMember: teamMember} = _ref, buttonText = null != teamMember && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : "Talk to a broker";
|
|
2187
2187
|
return jsxRuntime.jsx(Button.Button, {
|
|
2188
2188
|
variant: "secondary",
|
|
2189
2189
|
"data-component": "navbar-button-talk-to-expert",
|
package/dist/navbar.esm.js
CHANGED
|
@@ -300,6 +300,7 @@ var UNREAD_MESSAGE = 'YOU HAVE AN UNREAD MESSAGE';
|
|
|
300
300
|
var UNREAD_MESSAGE_MOBILE = 'UNREAD MESSAGE';
|
|
301
301
|
var CONTACT_US = 'CONTACT US';
|
|
302
302
|
var LABEL_TALK_TO_EXPERT = 'TALK TO AN EXPERT';
|
|
303
|
+
var LABEL_TALK_TO_A_BROKER = 'TALK TO A BROKER';
|
|
303
304
|
var LABEL_SIGN_IN = 'SIGN IN';
|
|
304
305
|
var LABEL_CONTINUE = 'CONTINUE';
|
|
305
306
|
var LABEL_APPLICATIONS = 'Applications';
|
|
@@ -632,7 +633,8 @@ var RenderChatOrSideBar = _ref => {
|
|
|
632
633
|
dashboardVariant,
|
|
633
634
|
hasUnreadMessages
|
|
634
635
|
} = _ref;
|
|
635
|
-
var
|
|
636
|
+
var brand = getBrandFromHostname();
|
|
637
|
+
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : brand === 'aussie' ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
636
638
|
return /*#__PURE__*/jsx(TalkExpertAction, {
|
|
637
639
|
dashboardVariant: dashboardVariant,
|
|
638
640
|
size: "sm",
|
|
@@ -643,7 +645,7 @@ var RenderChatOrSideBar = _ref => {
|
|
|
643
645
|
event_name: 'Button Clicked',
|
|
644
646
|
category: EventCategory.NAVBAR,
|
|
645
647
|
buttonType: ButtonType.SECONDARY,
|
|
646
|
-
text: hasUnreadMessages ? 'You have an unread message' : 'Talk to an expert'
|
|
648
|
+
text: hasUnreadMessages ? 'You have an unread message' : brand === 'aussie' ? 'Talk to a broker' : 'Talk to an expert'
|
|
647
649
|
};
|
|
648
650
|
analytics(event);
|
|
649
651
|
},
|
|
@@ -765,7 +767,7 @@ var RenderMobileAction = _ref => {
|
|
|
765
767
|
var brand = getBrandFromHostname();
|
|
766
768
|
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);
|
|
767
769
|
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);
|
|
768
|
-
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : needToContinue() ? CONTACT_US : LABEL_TALK_TO_EXPERT;
|
|
770
|
+
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : needToContinue() ? CONTACT_US : brand === 'aussie' ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
769
771
|
return /*#__PURE__*/jsxs(MobileActionsWrapper, {
|
|
770
772
|
children: [showTalkToExpertCta && /*#__PURE__*/jsx(TalkExpertAction, {
|
|
771
773
|
size: "sm",
|
|
@@ -778,7 +780,7 @@ var RenderMobileAction = _ref => {
|
|
|
778
780
|
event_name: 'Button Clicked',
|
|
779
781
|
category: EventCategory.NAVBAR,
|
|
780
782
|
buttonType: ButtonType.SECONDARY,
|
|
781
|
-
text: hasUnreadMessages ? 'You have an unread message' : 'Talk to an expert'
|
|
783
|
+
text: hasUnreadMessages ? 'You have an unread message' : brand === 'aussie' ? 'Talk to a broker' : 'Talk to an expert'
|
|
782
784
|
};
|
|
783
785
|
analytics(event);
|
|
784
786
|
},
|
|
@@ -1059,7 +1061,7 @@ var TeamMemberInfo = /*#__PURE__*/React.memo(_ref => {
|
|
|
1059
1061
|
color: "shade.700",
|
|
1060
1062
|
mb: "sm",
|
|
1061
1063
|
mt: "sm",
|
|
1062
|
-
children: teamMember ? "I'm here to support your loan journey. Got a question? Just ask!" :
|
|
1064
|
+
children: teamMember ? "I'm here to support your loan journey. Got a question? Just ask!" : "Get in touch with one of our ".concat(brand === 'aussie' ? 'brokers' : 'experts', " who can answer all your home loan related questions.")
|
|
1063
1065
|
})]
|
|
1064
1066
|
});
|
|
1065
1067
|
});
|
|
@@ -1844,7 +1846,7 @@ var DesktopActions = _ref => {
|
|
|
1844
1846
|
var brand = getBrandFromHostname();
|
|
1845
1847
|
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);
|
|
1846
1848
|
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);
|
|
1847
|
-
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : LABEL_TALK_TO_EXPERT;
|
|
1849
|
+
var primaryLabel = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : brand === 'aussie' ? LABEL_TALK_TO_A_BROKER : LABEL_TALK_TO_EXPERT;
|
|
1848
1850
|
return /*#__PURE__*/jsxs(DesktopActionsWrapper, {
|
|
1849
1851
|
children: [showTalkToExpertCta && /*#__PURE__*/jsx(TalkExpertAction$1, {
|
|
1850
1852
|
variant: "secondary",
|
|
@@ -1854,7 +1856,7 @@ var DesktopActions = _ref => {
|
|
|
1854
1856
|
event_name: 'Button Clicked',
|
|
1855
1857
|
category: EventCategory.NAVBAR,
|
|
1856
1858
|
buttonType: ButtonType.SECONDARY,
|
|
1857
|
-
text: hasUnreadMessages ? 'You have an unread message' : 'Talk to an expert'
|
|
1859
|
+
text: hasUnreadMessages ? 'You have an unread message' : brand === 'aussie' ? 'Talk to a broker' : 'Talk to an expert'
|
|
1858
1860
|
};
|
|
1859
1861
|
analytics(event);
|
|
1860
1862
|
},
|
|
@@ -3256,7 +3258,7 @@ var TalkToExpertButton = _ref => {
|
|
|
3256
3258
|
openCommPanel,
|
|
3257
3259
|
teamMember
|
|
3258
3260
|
} = _ref;
|
|
3259
|
-
var buttonText = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : 'Talk to
|
|
3261
|
+
var buttonText = teamMember !== null && teamMember !== void 0 && teamMember.firstName ? "Talk to ".concat(teamMember.firstName) : 'Talk to a broker';
|
|
3260
3262
|
var handleClick = () => {
|
|
3261
3263
|
openCommPanel();
|
|
3262
3264
|
var event = {
|