1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5c8b3aa1-a89c-463a-ad30-e03bd5749f77",e._sentryDebugIdIdentifier="sentry-dbid-5c8b3aa1-a89c-463a-ad30-e03bd5749f77")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4436],{14780:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ei});var i=n(31777),r=n(65013),o=n.n(r),s=n(63857),a=n(67251),l=n(23745),c=n(29898),u=n(52672),d=n(76966),p=n(42969),h=n(60180),m=n.n(h),f=n(14232),v=n(12436),g=n(37876);function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var b=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,_()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=this.props,t=e.logoAltText,n=e.siteName,i=e.logoUrl,r=t||n||"Site logo";return(0,g.jsx)("div",{className:"logo",children:!!i&&(0,g.jsx)("a",{href:"/","aria-label":n||"Home",children:(0,g.jsx)("img",{alt:r,src:(0,v.G)(i),className:"logo__image"})})})}}])}(f.Component);let k=(0,i.Ng)(function(e){return{logoUrl:e.currentSite.site.logoUrl,siteName:e.currentSite.site.name,logoAltText:e.currentSite.site.logoAltText}})(b);var x=n(28118);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var j=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,y()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return(0,g.jsxs)("div",{className:"search-bar",style:{backgroundColor:"".concat(this.props.backgroundColor)},role:"search",children:[(0,g.jsx)("form",{action:"/search",acceptCharset:"UTF-8",method:"get",children:(0,g.jsxs)("div",{className:"search-bar__container",children:[(0,g.jsx)("span",{className:"icon",children:(0,g.jsx)("i",{className:"bx bx-search"})}),(0,g.jsx)("input",{className:"search-bar__input","aria-label":this.props.t("common:common.search"),placeholder:this.props.t("common:common.search"),style:{border:"1px solid ".concat(this.props.textColor),backgroundColor:"".concat(this.props.backgroundColor)},name:"query",type:"search",defaultValue:""})]})}),(0,g.jsx)("style",{children:"\n .search-bar__input::placeholder {\n color: ".concat(this.props.textColor," !important;\n opacity: 1;\n }\n .search-bar__input:-ms-input-placeholder {\n color: ").concat(this.props.textColor," !important;\n }\n .search-bar__input::-ms-input-placeholder {\n color: ").concat(this.props.textColor," !important;\n }\n ")})]})}}])}(f.Component);let N=(0,x.withTranslation)(["admin-layout","common"])(j),C=(0,i.Ng)(function(e,t){return{textColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor}})(N);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var P=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,w()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}
1return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){if("function"==typeof MetisMenu)var e=new MetisMenu("#js-nav-links").on("shown.metisMenu",function(t){window.addEventListener("mousedown",function n(i){t.target.contains(i.target)||(e.hide(t.detail.shownElement),window.removeEventListener("mousedown",n))})})}},{key:"dropdownNode",value:function(e,t){var n=this;return e.children.length?(0,g.jsxs)("li",{className:"nav-links__list__list-item",children:[(0,g.jsx)("a",{href:e.linkableUrl,"aria-expanded":"false",className:"nav-links__list__list-item__link",children:(0,g.jsx)("span",{children:e.title})}),(0,g.jsx)("ul",{className:"nav-links__list__list-item__child",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor},children:e.children.map(function(e,t){return n.dropdownNode(e,t)})})]},t):(0,g.jsx)("li",{className:"nav-links__list__list-item",children:(0,g.jsx)("a",{href:e.linkableUrl,className:"metismenu nav-links__list__list-item__link",children:(0,g.jsx)("span",{children:e.title})})},t)}},{key:"render",value:function(){var e=this,t=this.props.navigationLinks.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)});t.map(function(e){return!e.children&&(e.children=[])});var n=t.filter(function(e){return null===e.parentId}),i=t.filter(function(e){return null!==e.parentId});return n.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t}),n.map(function(e){if(!e.children.length)return!1;e.children.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t})}),(0,g.jsx)("div",{className:"nav-links",children:(0,g.jsx)("ul",{className:"metismenu nav-links__list",id:"js-nav-links",children:n.map(function(t,n){return e.dropdownNode(t,n)})})})}}])}(f.Component);let I=(0,i.Ng)(function(e,t){return{navigationLinks:e.adminHeaderLinks.headerLinks,backgroundColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor}})(P);var M=n(96633),A=n(89099),R=n(24826);function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}var T=function(e){var t;function n(e){var t,i,r;return(0,a.default)(this,n),i=n,r=[e],i=(0,u.default)(i),(t=(0,c.default)(this,S()?Reflect.construct(i,r||[],(0,u.default)(this).constructor):i.apply(this,r))).handleClick=t.handleClick.bind(t),t}return(0,d.default)(n,e),(0,l.default)(n,[{key:"componentDidMount",value:function(){if(this.props.user.id&&this.props.user.roleName&&"function"==typeof MetisMenu)var e=new MetisMenu("#js-auth-links").on("shown.metisMenu",function(t){window.addEventListener("mousedown",function n(i){t.target.contains(i.target)||(e.hide(t.detail.shownElement),window.removeEventListener("mousedown",n))})})}},{key:"handleClick",value:(t=(0,s.A)(m().mark(function e(){var t,n,i,r,o,s;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=this.props).isSiteBlocked,i=t.currentUserRole,r=t.isSiteOnboardingEnabled,o=t.router,e.next=3,fetch("/admin/api/auth/logout",{method:"DELETE"});case 3:e.sent.ok&&(s=-1!==[M.SiteAdmin,M.PlatformAdmin,M.HubAdmin,M.ProjectAdmin].indexOf(i),n&&s&&r?o.push("/admin/login"):o.push("/login"));case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"generateProfileEditLink",value:function(){switch(this.props.user.roleName){case"platform_admin":return"/platform/profile/edit";case"site_admin":case"hub_admin":case"project_admin":return"/admin/people/administrators/".concat(this.props.user.id);default:return"/profile"}}},{key:"render",value:function(){return this.props.user.id&&this.props.user.roleName?(0,g.jsx)("div",{className:"auth-links",children:(0,g.jsx)("ul",{className:"metismenu auth-links__list",id:"js-auth-links","data-testid":"user-profile-dropdown",children:(0,g.jsxs)("li",{className:"auth-links__list__list-item",children:[(0,g.jsxs)("a",{href:"#","aria-expanded":"false",className:"metismenu profile-info",children:[(0,g.jsx)(R.H8,{}),(0,g.jsx)("span",{children:this.props.user.login})]}),(0,g.jsxs)("ul",{className:"auth-links__list__list-item__child",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor},children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:this.generateProfileEditLink(),className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.myAccount")}
1)}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(this.props.user.roleName)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/projects","aria-expanded":"false",className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.projects")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(this.props.user.roleName)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/adm","aria-expanded":"false",className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.dashboard")})}),["platform_admin","site_admin"].indexOf(this.props.user.roleName)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/sites/editors/home-page","aria-expanded":"false",className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.appearance")})}),(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"#!",onClick:this.handleClick,className:"auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.logout")})})]})]})})}):(0,g.jsxs)("ul",{className:"auth-links__list",children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signInUrl),className:"auth-links__list__list-item__link",children:"Sign in"===this.props.data.signInText?this.props.t("navigation:navigation.headerLink.signIn"):this.props.data.signInText})}),!this.props.disableSignup&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signUpUrl),className:"auth-links__list__list-item__link",children:"Register"===this.props.data.signUpText?this.props.t("navigation:navigation.headerLink.signUp"):this.props.data.signUpText})})]})}}])}(f.Component);let L=(0,x.withTranslation)(["admin-layout","navigation"])((0,A.withRouter)(T)),U=(0,i.Ng)(function(e,t){return{data:e.homePageRevision.revision.sections[t.sectionId].data[0],backgroundColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,user:e.currentUser.user,disableSignup:e.siteSettings.settings.disableSignup,isSiteBlocked:e.currentSite.site.blocked,isSiteOnboardingEnabled:e.features.features.hasOwnProperty("enable_site_onboarding")&&e.features.features.enable_site_onboarding.enabled,currentUserRole:e.currentUser.user.roleName}})(L);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}var E=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,D()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"dropdownNode",value:function(e,t){var n=this;return e.children.length?(0,g.jsxs)("li",{className:"nav-links__list__list-item bg-white user-block-child",style:{backgroundColor:"admin"===this.props.loggedInUser&&this.props.backgroundColor,color:this.props.textColor},children:[(0,g.jsx)("a",{href:e.linkableUrl,"aria-expanded":"false",className:"nav-links__list__list-item__link",style:{color:this.props.textColor},children:(0,g.jsx)("span",{children:e.title})}),(0,g.jsx)("ul",{className:"nav-links__list__list-item__child",style:{backgroundColor:"admin"===this.props.loggedInUser&&this.props.backgroundColor,color:this.props.textColor},children:e.children.map(function(e,t){return n.dropdownNode(e,t)})})]},t):(0,g.jsx)("li",{className:"nav-links__list__list-item bg-white user-block",style:{backgroundColor:"admin"===this.props.loggedInUser&&this.props.backgroundColor,color:this.props.textColor},children:(0,g.jsx)("a",{href:e.linkableUrl,"aria-expanded":"false",className:"metismenu nav-links__list__list-item__link",style:{color:this.props.textColor},children:(0,g.jsx)("span",{children:e.title})})},t)}},{key:"render",value:function(){var e=this,t=this.props.navigationLinks.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?B(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)});t.map(function(e){return!e.children&&(e.children=[])});var n=t.filter(function(e){return null===e.parentId}),i=t.filter(function(e){return null!==e.parentId});return n.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t}),n.map(function(e){if(!e.children.length)return!1;e.children.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t})}),(0,g.jsx)("div",{className:"nav-links",children:(0,g.jsx)("ul",{className:"metismenu nav-links__list",children:n.map(function(t,n){return e.dropdownNode(t,n)})})})}}])}(f.Component);let V=(0,i.Ng)(function(e,t){return{navigationLinks:e.adminHeaderLinks.headerLinks,backgroundColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor}})(E);function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F=function(){return!!e})()}var q=function(e){function t(e){var n,i;return(0,a.default)(this,t),n=t,i=[e],n=(0,u.default)(n),(0,c.default)(this,F()?Reflect.construct(n,i||[],(0,u.default)(this).constructor):n.apply(this,i))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return this.props.user.id&&this.props.user.roleName?(0,g.jsxs)("div",{className:"auth-links-container",style:{backgroundColor:this.props.backgroundColor},children:[(0,g.jsx)(V,{sectionId:this.props.sectionId,loggedInUser:"admin"}),(0,g.jsx)(C,{sectionId:this.props.sectionId,backgroundColor:this.props.backgroundColor})]}):(0,g.jsxs)("ul",{className:"auth-links__list",children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signInUrl),className:"auth-links__list__list-item__link",children:"Sign in"===this.props.data.signInText?this.props.t("navigation:navigation.headerLink.signIn"):this.props.data.signInText})}),!this.props.disableSignup&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signUpUrl),className:"auth-links__list__list-item__link",children:"Register"===this.props.data.signUpText?this.props.t("navigation:navigation.headerLink.signUp"):this.props.data.signUpText})})]})}}])}(f.Component);let H=(0,x.withTranslation)(["admin-layout","navigation"])((0,A.withRouter)(q)),W=(0,i.Ng)(function(e,t){return{data:e.homePageRevision.revision.sections[t.sectionId].data[0],backgroundColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,user:e.currentUser.user,disableSignup:e.siteSettings.settings.disableSignup,isSiteBlocked:e.currentSite.site.blocked,isSiteOnboardingEnabled:e.features.features.hasOwnProperty("enable_site_onboarding")&&e.features.features.enable_site_onboarding.enabled,currentUserRole:e.currentUser.user.roleName}})(H);var z=n(38551),G=n(49016);function K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(K=function(){return!!e})()}var J=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,K()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return document.getElementById("metismenu-container")&&document.getElementById("metismenu-container").classList.contains("display-none")&&this.props.onClick(),(0,g.jsx)("button",{className:"hamburger-icon",type:"button","aria-expanded":this.props.isMobileMenuVisible,"aria-label":this.props.t("editor:editor.toggleMainMenu"),onClick:this.props.onClick,children:this.props.isMobileMenuVisible?(0,g.jsx)("img",{src:G,alt:this.props.t("editor:editor.closeMenu"),id:"hamburger-menu",width:"35",height:"35"}):(0,g.jsx)("img",{src:z,alt:this.props.t("editor:editor.openMenu"),id:"hamburger-menu",width:"35",height:"35"})})}}])}(f.Component);let $=(0,x.withTranslation)(["editor"])(J);var Q=n(30342);let X=(0,A.withRouter)(function(e){var t,n=e.router,r=(0,x.useTranslation)(["admin-layout","navigation"]).t,o=(0,i.d4)(function(e){return e.currentSite}).site,a=(0,i.d4)(function(e){return e.features}).features,l=(0,i.d4)(function(e){return e.homePageRevision}).revision,c=null==l?void 0:l.sections[0].theme.mainNavbarBackgroun
1dColor,u=null==l?void 0:l.sections[0].theme.mainNavbarTextColor,d=(0,i.d4)(function(e){return e.currentUser}).user.roleName,p=(t=(0,s.A)(m().mark(function e(){var t,i,r;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.blocked,i=(null==a?void 0:a.enableSiteOnboarding)&&a.enableSiteOnboarding.enabled,e.next=4,fetch("/admin/api/auth/logout",{method:"DELETE"});case 4:e.sent.ok&&(r=-1!==[M.SiteAdmin,M.PlatformAdmin,M.HubAdmin,M.ProjectAdmin].indexOf(d),t&&r&&i?n.push("/admin/login"):n.push("/login"));case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,g.jsx)("div",{className:"profile-links auth-links",children:(0,g.jsx)("ul",{className:"auth-links__list",children:(0,g.jsx)("li",{className:"auth-links__list__list-item",style:{backgroundColor:c},children:(0,g.jsxs)("ul",{className:"auth-links__list__list-item__child",style:{backgroundColor:c,color:u},children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:function(){switch(d){case"platform_admin":case"site_admin":case"hub_admin":case"project_admin":return"/platform/profile/edit";default:return"/profile"}}(),className:"auth-links__list__list-item__link",children:r("navigation:navigation.myAccount")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(d)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/projects","aria-expanded":"false",className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.projects")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(d)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/adm","aria-expanded":"false",className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.dashboard")})}),["platform_admin","site_admin"].indexOf(d)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/sites/editors/home-page","aria-expanded":"false",className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.appearance")})}),(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"#!",onClick:p,className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.logout")})})]})})})})});function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Y=function(){return!!e})()}var Z=function(e){var t;function n(){var e,t;return(0,a.default)(this,n),t=n,t=(0,u.default)(t),e=(0,c.default)(this,Y()?Reflect.construct(t,[],(0,u.default)(this).constructor):t.apply(this,void 0)),(0,p.default)(e,"loadProfileMenu",function(){return e.props.user.login?(0,g.jsx)("div",{className:"ehq-participant-header ehq-participant-header__mobile-menu-items ehq-participant-mobile-over",style:{backgroundColor:e.props.backgroundColor,color:e.props.textColor,fontFamily:e.props.fontFamily},children:(0,g.jsx)(X,{})}):(0,g.jsxs)("div",{className:"ehq-participant-header__mobile-menu-items",style:{backgroundColor:e.props.backgroundColor,color:e.props.textColor,fontFamily:e.props.fontFamily},children:[(0,g.jsx)(V,{sectionId:"0",loggedInUser:"admin"}),(0,g.jsx)(W,{}),(0,g.jsx)(C,{})]})}),e.handleMobileMenuVisibility=e.handleMobileMenuVisibility.bind(e),e.handleProfileMenuVisibility=e.handleProfileMenuVisibility.bind(e),e.state={linkColor:"#1890FF",isMobileMenuVisible:!1,isProfileMenuVisible:!1},e}return(0,d.default)(n,e),(0,l.default)(n,[{key:"componentDidMount",value:function(){this.getAllLinkColor(),this.checkIsIOS()&&this.addMaximumScaleToMetaViewport()}},{key:"getAllLinkColor",value:(t=(0,s.A)(m().mark(function e(){var t,n,i,r,o,s;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=this.props).themeName,i=t.theme,r=t.revision,o=t.layout,e.next=3,(0,Q.A)(i,n,r,o);case 3:s=e.sent,this.setState({linkColor:s,brandColor:i.brandColor});case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"handleMobileMenuVisibility",value:function(){this.setState({isMobileMenuVisible:!this.state.isMobileMenuVisible,isProfileMenuVisible:!1})}},{key:"handleProfileMenuVisibility",value:function(){this.setState({isProfileMenuVisible:!this.state.isProfileMenuVisible,isMobileMenuVisible:!1})}},{key:"addMaximumScaleToMetaViewport",value:function(){console.log("Viewport loading..."),setTimeout(function(){var e=document.querySelector("meta[name=viewport]");if(null!==e){var t=e.getAttribute("content"),n=/maximum-scale=[0-9.]+/g;t=n.test(t)?t.replace(n,"maximum-scale=1.0"):[t,"maximum-scale=1.0"].join(", "),e.setAttribute("content",t)}console.log("Viewport loaded...")},5e3)}},{key:"checkIsIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"desktopAuthLinksNode",value:function(){return(0,g.jsx)(U,{sectionId:this.props.sectionId})}},{key:"desktopMenuNode",value:function(){var e=this.props.t;return(0,g.jsxs)("div",{className:"ehq-participant-header ehq-participant-header--desktop-menu",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor,fontFamily:this.props.fontFamily},children:[(0,g.jsx)("a",{href:"#homepage-main",className:"skip-to-content",children:e("common:common.skipToContent")}),(0,g.jsx)("div",{className:"ehq-participant-header__left-menu",children:(0,g.jsx)(k,{})}),(0,g.jsxs)("nav",{className:"ehq-participant-header__right-menu",children:[(0,g.jsx)(I,{sectionId:this.props.sectionId}),(0,g.jsxs)("div",{className:"ehq-participant-header__right-menu-auth-links",children:[(0,g.jsx)(C,{sectionId:this.props.sectionId}),this.desktopAuthLinksNode()]})]})]})}},{key:"mobileAuthLinksNode",value:function(){return(0,g.jsx)(W,{sectionId:this.props.sectionId})}},{key:"loadHeader",value:function(){return this.props.user.login?(0,g.jsx)("div",{className:"ehq-participant-header ehq-participant-header__mobile-menu-items ehq-participant-mobile-over",children:this.mobileAuthLinksNode()}):(0,g.jsxs)("div",{className:"ehq-participant-header__mobile-menu-items",children:[(0,g.jsx)(V,{sectionId:this.props.sectionId}),this.mobileAuthLinksNode(),(0,g.jsx)(C,{sectionId:this.props.sectionId})]})}},{key:"mobileMenuNode",value:function(){var e=this.props.t;return(0,g.jsxs)("div",{className:"ehq-participant-header ehq-participant-header--mobile-menu",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor,fontFamily:this.props.fontFamily},children:[(0,g.jsx)("a",{href:"#homepage-main",className:"skip-to-content",children:e("common:common.skipToContent")}),(0,g.jsxs)("div",{className:"ehq-participant-header__logo-container",children:[(0,g.jsx)(k,{}),(0,g.jsxs)("span",{children:[this.props.user.login&&(0,g.jsx)("button",{className:"avatar-button",onClick:this.handleProfileMenuVisibility,"aria-expanded":this.state.isProfileMenuVisible,children:(0,g.jsx)(R.H8,{})}),(0,g.jsx)($,{onClick:this.handleMobileMenuVisibility,isMobileMenuVisible:this.state.isMobileMenuVisible})]})]}),!!this.state.isMobileMenuVisible&&this.loadHeader(),!!this.state.isProfileMenuVisible&&this.loadProfileMenu()]})}},{key:"headerNode",value:function(){return(0,g.jsxs)(g.Fragment,{children:[this.desktopMenuNode(),this.mobileMenuNode()]})}},{key:"render",value:function(){return(0,g.jsxs)(g.Fragment,{children:[this.headerNode(),(0,g.jsx)("style",{children:"\n .user-dropdown a,\n .user-dropdown .link-color,\n .user-dropdown a:hover,\n .user-dropdown a:visited,\n .user-dropdown a:focus {\n color: ".concat(this.state.linkColor," !important;\n }\n .skip-to-content {\n position: absolute;\n z-index: 1000;\n left: 0;\n top: -30em;\n overflow: hidden;\n box-sizing: border-box;\n }\n\n .skip-to-content:focus {\n top: 1.4em;\n left: 1.4em;\n width: 10em;\n height: 3.5em;\n border-radius: 0.375rem;\n border-style: solid;\n font-weight:700;\n background-color: #FFF;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n text-decoration: underline;\n outline-offset: 0;\n outline: 3px solid rgba(66, 153, 225, 0.6);\n color: ").concat(this.state.brandColor," !important;\n }\n ")})]})}}])}(f.Component);let ee=(0,x.withTranslation)(["common"])(Z);var et=n(77080),en=n.n(et);let ei=(0,i.Ng)(function(e,t){var n=o()(en(),function(t){return t.key===e.theme.theme.contentFont});return{fontFamily:n&&n.name||en()[0].name,logoUrl:e.currentSite.site.logoUrl,data:e.homePageRevision.revision.sections[t.sectionId].data[0],siteName:e.currentSite.site.name,backgroundColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroun
1dColor,textColor:e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,user:e.currentUser.user,themeName:e.currentSite.site.themeName,theme:e.theme.theme,revision:e.homePageRevision.revision,layout:e.layout.layout}})(ee)},18341:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>c,Dp:()=>l});var i=n(42969);n(14232);var r=n(1971),o=n(38983),s=n(37876);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l(e){return function(t){return(0,s.jsx)(o.A,{styles:"function"==typeof e?function(n){return e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({theme:n},t))}:e})}}function c(){return r.A}},24826:(e,t,n)=>{"use strict";n.d(t,{KK:()=>f,H8:()=>k});var i=n(14232),r=n(50225),o=n(45911),s=n(31123),a=n(40553),l=n(51975),c=n(66035),u=n(21471),d=n(71858),p=n(86085),h=n(28118),m=n(37876);let f=(0,h.withTranslation)(["common","tools"])(function(e){var t,n=e.open,i=e.onClose,h=e.onConfirm,f=e.title,v=e.message,g=e.description,_=e.confirmLabel,b=e.cancelLabel,k=e.confirmColor,x=e.confirming,y=void 0!==x&&x,j=e.closeOnConfirm,N=void 0===j||j,C=e.t,O=e.maxWidth,w=e.fullWidth,P=e.dataTestId,I=e.dataTestIdActionsPrefix,M=void 0===I?void 0:I,A=e["data-testid"],R=null!=(t=null!=P?P:void 0===A?void 0:A)?t:"confirmation-dialog",S=null!=M?M:R;return(0,m.jsxs)(r.A,{open:n,onClose:function(e,t){y||i()},maxWidth:void 0===O?"xs":O,fullWidth:void 0===w||w,disableEnforceFocus:!0,disableEscapeKeyDown:y,"data-testid":R,children:[(0,m.jsxs)(o.A,{sx:{pr:6,position:"relative"},children:[f||C("common:common.confirm"),(0,m.jsx)(s.A,{"aria-label":C("common:common.close"),onClick:function(){y||i()},size:"small",disabled:y,sx:{position:"absolute",right:8,top:8},"data-testid":"".concat(S,"-closeBtn"),children:(0,m.jsx)(p.A,{fontSize:"small"})})]}),(0,m.jsxs)(a.A,{children:[(0,m.jsx)(l.A,{variant:"body1",children:v||C("tools:tools.deleteConfirmationMessage")}),(0,m.jsx)(l.A,{variant:"body1",children:(void 0===g?null:g)||C("tools:tools.deleteConfirmationDescription")})]}),(0,m.jsxs)(c.A,{sx:{px:3,pb:2},children:[(0,m.jsx)(u.A,{onClick:function(){y||i()},disabled:y,"data-testid":"".concat(S,"-cancelBtn"),children:(void 0===b?null:b)||C("common:common.cancel")}),(0,m.jsx)(u.A,{onClick:function(){!y&&(h(),N&&i())},variant:"contained",color:void 0===k?"error":k,disabled:y,startIcon:y?(0,m.jsx)(d.A,{color:"inherit",size:16}):void 0,"data-testid":"".concat(S,"-confirmBtn"),children:(void 0===_?null:_)||C("common:common.delete")})]})]})});var v=function(){return(0,m.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",className:"avatar dummy-avatar-icon",height:38,width:38,"aria-hidden":"true",children:(0,m.jsx)("path",{d:"M399 384.2C376.9 345.8 335.4 320 288 320l-64 0c-47.4 0-88.9 25.8-111 64.2c35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z"})})};let g=function(e){var t=e.src,n=(0,i.useState)(null),r=n[0],o=n[1];return t&&r!==t?(0,m.jsx)("img",{alt:"avatar",src:t,className:"avatar user-settings-avatar-small",onError:function(){return o(t)}}):(0,m.jsx)("span",{children:(0,m.jsx)(v,{})})};var _=n(31777),b=n(12436);let k=function(){var e=(0,_.d4)(function(e){return e.currentUser.user}).imageUrl;return(0,m.jsx)(g,{src:e?(0,b.G)(e):void 0})}},30342:(e,t,n)=>{"use strict";function i(e,t,n,i){if(e&&t&&n&&i)if(n.published)if(n.published&&!i.selectedColorPalette)return e.color2;else{if(!n.published||!i.selectedColorPalette)return"#1890FF";if(!i||!(Object.keys(i.colorMapping).length>0))return e.brandColor;var r=i.colorMapping.linkColor;return"$brand-color"===r?e.brandColor:r}else switch(t){case"bondi":return e.color2;case"torquay2":case"coral_bay":case"whitehaven2":return e.color3;default:return e.color1}}n.d(t,{A:()=>i})},38551:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/menu-regular-24.0e95e3a1d2168975.png"}
1,38983:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(42969);n(14232);var r=n(4189),o=n(2777),s=n(13136),a=n(37876);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let u=function(e){return(0,a.jsx)(r.A,c(c({},e),{},{defaultTheme:o.A,themeId:s.A}))}},41411:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14232);var i=n(74275),r=n(2777),o=n(13136);function s(){var e=(0,i.A)(r.A);return e[o.A]||e}},45911:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var i=n(42969),r=n(59860),o=n(14232),s=n(69241),a=n(13323),l=n(46783),c=n(37160),u=n(62241),d=n(92753),p=n(74024),h=n(37876),m=["className","id"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var v=function(e){var t=e.classes;return(0,a.A)({root:["root"]},d.t,t)},g=(0,c.Ay)(l.A,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"});let _=o.forwardRef(function(e,t){var n=(0,u.b)({props:e,name:"MuiDialogTitle"}),a=n.className,l=n.id,c=(0,r.A)(n,m),d=v(n),_=o.useContext(p.A).titleId,b=void 0===_?l:_;return(0,h.jsx)(g,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({component:"h2",className:(0,s.A)(d.root,a),ownerState:n,ref:t,variant:"h6",id:null!=l?l:b},c))})},46783:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var i=n(42969),r=n(59860),o=n(27925),s=n(44478),a=n(14232),l=n(69241),c=n(13323),u=n(18341),d=n(37160),p=n(51732),h=n(62241),m=n(64192),f=n(71342),v=n(99289),g=n(37876),_=["color"],b=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var y={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},j=(0,u.Dg)(),N=function(e){var t=e.align,n=e.gutterBottom,i=e.noWrap,r=e.paragraph,o=e.variant,s=e.classes,a={root:["root",o,"inherit"!==e.align&&"align".concat((0,m.A)(t)),n&&"gutterBottom",i&&"noWrap",r&&"paragraph"]};return(0,c.A)(a,v.y,s)},C=(0,d.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,m.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((0,p.A)(function(e){var t,n=e.theme;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}}].concat((0,s.A)(Object.entries(n.typography).filter(function(e){var t=(0,o.A)(e,2),n=t[0],i=t[1];return"inherit"!==n&&i&&"object"==typeof i}).map(function(e){var t=(0,o.A)(e,2);return{props:{variant:t[0]},style:t[1]}})),(0,s.A)(Object.entries(n.palette).filter((0,f.A)()).map(function(e){var t=(0,o.A)(e,1)[0];return{props:{color:t},style:{color:(n.vars||n).palette[t].main}}})),(0,s.A)(Object.entries((null==(t=n.palette)?void 0:t.text)||{}).filter(function(e){return"string"==typeof(0,o.A)(e,2)[1]}).map(function(e){var t=(0,o.A)(e,1)[0];return{props:{color:"text".concat((0,m.A)(t))},style:{color:(n.vars||n).palette.text[t]}}})),[{props:function(e){return"inherit"!==e.ownerState.align},style:{textAlign:"var(--Typography-textAlign)"}},{props:function(e){return e.ownerState.noWrap},style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:function(e){return e.ownerState.gutterBottom},style:{marginBottom:"0.35em"}},{props:function(e){return e.ownerState.paragraph},style:{marginBottom:16}}])}}
1)),O={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"};let w=a.forwardRef(function(e,t){var n=(0,h.b)({props:e,name:"MuiTypography"}),i=n.color,o=(0,r.A)(n,_),s=!y[i],a=j(x(x({},o),s&&{color:i})),c=a.align,u=void 0===c?"inherit":c,d=a.className,p=a.component,m=a.gutterBottom,f=a.noWrap,v=a.paragraph,k=void 0!==v&&v,w=a.variant,P=void 0===w?"body1":w,I=a.variantMapping,M=void 0===I?O:I,A=(0,r.A)(a,b),R=x(x({},a),{},{align:u,color:i,className:d,component:p,gutterBottom:void 0!==m&&m,noWrap:void 0!==f&&f,paragraph:k,variant:P,variantMapping:M}),S=p||(k?"p":M[P]||O[P])||"span",T=N(R);return(0,g.jsx)(C,x(x({as:S,ref:t,className:(0,l.A)(T.root,d)},A),{},{ownerState:R,style:x(x({},"inherit"!==u&&{"--Typography-textAlign":u}),A.style)}))})},49016:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/x-regular-24.7d9ff7ebcaa54214.png"},51975:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(59860),r=n(42969),o=n(14232),s=n(69241),a=n(13323),l=n(81700),c=n(37160),u=n(62241),d=n(46783),p=n(14457),h=n(21849);function m(e){return(0,h.Ay)("MuiDialogContentText",e)}(0,p.A)("MuiDialogContentText",["root"]);var f=n(37876),v=["children","className"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){(0,r.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=function(e){var t=e.classes,n=(0,a.A)({root:["root"]},m,t);return _(_({},t),n)},k=(0,c.Ay)(d.A,{shouldForwardProp:function(e){return(0,l.A)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root"})({});let x=o.forwardRef(function(e,t){var n=(0,u.b)({props:e,name:"MuiDialogContentText"});n.children;var r=n.className,o=(0,i.A)(n,v),a=b(o);return(0,f.jsx)(k,_(_({component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:o,className:(0,s.A)(a.root,r)},n),{},{classes:a}))})},62494:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>eo});var i=n(31777),r=n(65013),o=n.n(r),s=n(63857),a=n(67251),l=n(23745),c=n(29898),u=n(52672),d=n(76966),p=n(42969),h=n(60180),m=n.n(h),f=n(14232),v=n(12436),g=n(37876);function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var b=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,_()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return(0,g.jsx)("div",{className:"logo","data-testid":this.props.dataTestId,children:!!this.props.logoUrl&&(0,g.jsx)("a",{href:"/",children:(0,g.jsx)("img",{alt:this.props.siteName,src:(0,v.G)(this.props.logoUrl),className:"logo__image"})})})}}])}(f.Component);let k=(0,i.Ng)(function(e){return{logoUrl:e.currentSite.site.logoUrl,siteName:e.currentSite.site.name,dataTestId:"participant-hubs-views-navigations-section-logo"}})(b);var x=n(28118);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var j=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,y()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return(0,g.jsxs)("div",{className:"search-bar",style:{backgroundColor:"".concat(this.props.backgroundColor)},"data-testid":this.props.dataTestId,role:"search",children:[(0,g.jsx)("form",{action:"/search",acceptCharset:"UTF-8",method:"get",children:(0,g.jsxs)("div",{className:"search-bar__container",children:[(0,g.jsx)("span",{className:"icon",children:(0,g.jsx)("i",{className:"bx bx-search"})}),(0,g.jsx)("input",{className:"search-bar__input","aria-label":this.props.t("navigation:navigation.headerLink.search.placeholder"),placeholder:this.props.t("navigation:navigation.headerLink.search.placeholder"),style:{border:"1px solid ".concat(this.props.textColor),backgroundColor:"".concat(this.props.backgroundColor)},name:"query",type:"search",defaultValue:""})]})}),(0,g.jsx)("style",{children:"\n .search-bar__input::placeholder {\n color: ".concat(this.props.textColor," !important;\n opacity: 1;\n }\n\n .search-bar__input:-ms-input-placeholder {\n color: ").concat(this.props.textColor," !important;\n }\n\n .search-bar__input::-ms-input-placeholder {\n color: ").concat(this.props.textColor," !important;\n }\n ")})]})}}])}(f.Component);let N=(0,x.withTranslation)(["admin-layout","navigation"])(j),C=(0,i.Ng)(function(e,t){return{textColor:e.homePageRevision.revision.sections&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor||"#fff",dataTestId:"participant-hubs-views-navigations-section-search-bar"}})(N);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var P=function(e){function t(){(0,a.default)(this,t);for(var e,n,i,r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=t,i=[].concat(o),n=(0,u.default)(n),e=(0,c.default)(this,w()?Reflect.construct(n,i||[],(0,u.default)(this).constructor):n.apply(this,i)),(0,p.default)(e,"getLinkUrl",function(e){switch(e.linkableType){case"Hub":case"Project":case"StaticPage":return"/".concat(e.linkableUrl);default:return e.linkableUrl}}),e}
1return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){if("function"==typeof MetisMenu)var e=new MetisMenu("#js-nav-links").on("shown.metisMenu",function(t){window.addEventListener("click",function n(i){t.target.contains(i.target)||(e.hide(t.detail.shownElement),window.removeEventListener("click",n))})})}},{key:"dropdownNode",value:function(e,t){var n=this;return e.children.length?(0,g.jsxs)("li",{className:"nav-links__list__list-item",children:[(0,g.jsx)("a",{href:this.getLinkUrl(e),"aria-expanded":"false",className:"nav-links__list__list-item__link",children:(0,g.jsx)("span",{children:e.title})}),(0,g.jsx)("ul",{className:"nav-links__list__list-item__child",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor},children:e.children.map(function(e,t){return n.dropdownNode(e,t)})})]},t):(0,g.jsx)("li",{className:"nav-links__list__list-item",children:(0,g.jsx)("a",{href:this.getLinkUrl(e),className:"metismenu nav-links__list__list-item__link",children:(0,g.jsx)("span",{children:e.title})})},t)}},{key:"render",value:function(){var e=this,t=this.props.navigationLinks.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)});t.map(function(e){return!e.children&&(e.children=[])});var n=t.filter(function(e){return null===e.parentId}),i=t.filter(function(e){return null!==e.parentId});return n.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t}),n.map(function(e){if(!e.children.length)return!1;e.children.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t})}),(0,g.jsx)("div",{className:"nav-links","data-testid":this.props.dataTestId,children:(0,g.jsx)("ul",{className:"metismenu nav-links__list",id:"js-nav-links",children:n.map(function(t,n){return e.dropdownNode(t,n)})})})}}])}(f.Component);let I=(0,i.Ng)(function(e,t){var n=e.homePageRevision.revision.sections;return{navigationLinks:e.adminHeaderLinks.headerLinks,backgroundColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,dataTestId:"participant-hubs-views-navigations-section-nav-links"}})(P);var M=n(89099),A=n(96633),R=n(24826);function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}var T=function(e){var t;function n(e){var t,i,r;return(0,a.default)(this,n),i=n,r=[e],i=(0,u.default)(i),(t=(0,c.default)(this,S()?Reflect.construct(i,r||[],(0,u.default)(this).constructor):i.apply(this,r))).handleClick=t.handleClick.bind(t),t}return(0,d.default)(n,e),(0,l.default)(n,[{key:"componentDidMount",value:function(){if(this.props.user.id&&this.props.user.roleName&&"function"==typeof MetisMenu)var e=new MetisMenu("#js-auth-links").on("shown.metisMenu",function(t){window.addEventListener("click",function n(i){t.target.contains(i.target)||(e.hide(t.detail.shownElement),window.removeEventListener("click",n))})})}},{key:"handleClick",value:(t=(0,s.A)(m().mark(function e(){var t,n,i,r,o,s;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=this.props).isSiteBlocked,i=t.currentUserRole,r=t.isSiteOnboardingEnabled,o=t.router,e.next=3,fetch("/admin/api/auth/logout",{method:"DELETE"});case 3:e.sent.ok&&(s=-1!==[A.SiteAdmin,A.PlatformAdmin,A.HubAdmin,A.ProjectAdmin].indexOf(i),n&&s&&r?o.push("/admin/login"):o.push("/login"));case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"generateProfileEditLink",value:function(){switch(this.props.user.roleName){case"platform_admin":return"/platform/profile/edit";case"site_admin":case"hub_admin":case"project_admin":return"/admin/people/administrators/".concat(this.props.user.id);default:return"/profile"}}},{key:"render",value:function(){return this.props.user.id&&this.props.user.roleName?(0,g.jsx)("div",{className:"auth-links","data-testid":this.props.dataTestId,children:(0,g.jsx)("ul",{className:"metismenu auth-links__list",id:"js-auth-links",tabIndex:-1,
1children:(0,g.jsxs)("li",{className:"auth-links__list__list-item",tabIndex:-1,children:[(0,g.jsxs)("a",{href:"#","aria-expanded":"false",className:"metismenu profile-info",children:[(0,g.jsx)(R.H8,{}),(0,g.jsx)("span",{children:this.props.user.login})]}),(0,g.jsxs)("ul",{className:"auth-links__list__list-item__child",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor},children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:this.generateProfileEditLink(),className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.myAccount")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(this.props.user.roleName)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/projects","aria-expanded":"false",className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.projects")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(this.props.user.roleName)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/adm","aria-expanded":"false",className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.dashboard")})}),["platform_admin","site_admin"].indexOf(this.props.user.roleName)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/sites/editors/hub-page","aria-expanded":"false",className:"metismenu auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.appearance")})}),(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"#!",onClick:this.handleClick,className:"auth-links__list__list-item__link",children:this.props.t("admin-layout:adminLayout.logout")})})]})]})})}):(0,g.jsxs)("ul",{className:"auth-links__list","data-testid":this.props.dataTestId,children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signInUrl),className:"auth-links__list__list-item__link",children:"Sign in"===this.props.data.signInText?this.props.t("navigation:navigation.headerLink.signIn"):this.props.data.signInText})}),!this.props.disableSignup&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signUpUrl),className:"auth-links__list__list-item__link",children:"Register"===this.props.data.signUpText?this.props.t("navigation:navigation.headerLink.signUp"):this.props.data.signUpText})})]})}}])}(f.Component);let L=(0,x.withTranslation)(["admin-layout","navigation"])((0,M.withRouter)(T)),U=(0,i.Ng)(function(e,t){var n=e.homePageRevision.revision.sections;return{data:n&&e.homePageRevision.revision.sections[t.sectionId].data[0]||e.hubPageRevision.revision.sections[t.sectionId].data[0],backgroundColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,user:e.currentUser.user,disableSignup:e.siteSettings.settings.disableSignup,isSiteBlocked:e.currentSite.site.blocked,isSiteOnboardingEnabled:e.features.features.hasOwnProperty("enable_site_onboarding")&&e.features.features.enable_site_onboarding.enabled,currentUserRole:e.currentUser.user.roleName,dataTestId:"participant-hubs-views-navigations-section-auth-links"}})(L);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(D=function(){return!!e})()}var E=function(e){function t(){(0,a.default)(this,t);for(var e,n,i,r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=t,i=[].concat(o),n=(0,u.default)(n),e=(0,c.default)(this,D()?Reflect.construct(n,i||[],(0,u.default)(this).constructor):n.apply(this,i)),(0,p.default)(e,"getLinkUrl",function(e){switch(e.linkableType){case"Hub":case"Project":case"StaticPage":return"/".concat(e.linkableUrl);default:return e.linkableUrl}}),e}return(0,d.default)(t,e),(0,l.default)(t,[{key:"dropdownNode",value:function(e,t){var n=this;return e.children.length?(0,g.jsxs)("li",{className:"nav-links__list__list-item bg-white user-block-child",style:{backgroundColor:"admin"===this.props.loggedInUser&&this.props.backgroundColor,color:this.props.textColor},children:[(0,g.jsx)("a",{href:this.getLinkUrl(e),"aria-expanded":"false",className:"nav-links__list__list-item__link",style:{color:this.props.textColor},children:(0,g.jsx)("span",{children:e.title})}),(0,g.jsx)("ul",{className:"nav-links__list__list-item__child",style:{backgroundColor:"admin"===this.props.loggedInUser&&this.props.backgroundColor,color:this.props.textColor},children:e.children.map(function(e,t){return n.dropdownNode(e,t)})})]},t):(0,g.jsx)("li",{className:"nav-links__list__list-item bg-white user-block",style:{backgroundColor:"admin"===this.props.loggedInUser&&this.props.backgroundColor,color:this.props.textColor},children:(0,g.jsx)("a",{href:this.getLinkUrl(e),"aria-expanded":"false",className:"metismenu nav-links__list__list-item__link",style:{color:this.props.textColor},children:(0,g.jsx)("span",{children:e.title})})},t)}},{key:"render",value:function(){var e=this,t=this.props.navigationLinks.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?B(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)});t.map(function(e){return!e.children&&(e.children=[])});var n=t.filter(function(e){return null===e.parentId}),i=t.filter(function(e){return null!==e.parentId});return n.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t}),n.map(function(e){if(!e.children.length)return!1;e.children.map(function(e){var t=i.filter(function(t){return t.parentId===parseInt(e.id,10)});t.map(function(e){i.map(function(t,n){e.id===t.id&&i.splice(n,1)})}),e.children=t})}),(0,g.jsx)("div",{className:"nav-links","data-testid":this.props.dataTestId,children:(0,g.jsx)("ul",{className:"metismenu nav-links__list",children:n.map(function(t,n){return e.dropdownNode(t,n)})})})}}])}(f.Component);let V=(0,i.Ng)(function(e,t){var n=e.homePageRevision.revision.sections;return{navigationLinks:e.adminHeaderLinks.headerLinks,backgroundColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,dataTestId:"participant-hubs-views-navigations-section-nav-links"}})(E);function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F=function(){return!!e})()}var q=function(e){function t(e){var n,i;return(0,a.default)(this,t),n=t,i=[e],n=(0,u.default)(n),(0,c.default)(this,F()?Reflect.construct(n,i||[],(0,u.default)(this).constructor):n.apply(this,i))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return this.props.user.id&&this.props.user.roleName?(0,g.jsxs)("div",{className:"auth-links-container",style:{backgroundColor:this.props.backgroundColor},"data-testid":this.props.dataTestId,children:[(0,g.jsx)(V,{sectionId:this.props.sectionId,loggedInUser:"admin"}),(0,g.jsx)(C,{sectionId:this.props.sectionId,backgroundColor:this.props.backgroundColor})]}):(0,g.jsxs)("ul",{className:"auth-links__list","data-testid":this.props.dataTestId,children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signInUrl),className:"auth-links__list__list-item__link",children:"Sign in"===this.props.data.signInText?this.props.t("navigation:navigation.headerLink.signIn"):this.props.data.signInText})}),!this.props.disableSignup&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/".concat(this.props.data.signUpUrl),className:"auth-links__list__list-item__link",children:"Register"===this.props.data.signUpText?this.props.t("navigation:navigation.headerLink.signUp"):this.props.data.signUpText})})]})}}])}(f.Component);let H=(0,x.withTranslation)(["admin-layout","navigation"])((0,M.withRouter)(q)),W=(0,i.Ng)(function(e,t){var n=e.homePageRevision.revision.sections;return{data:n&&e.homePageRevision.revision.sections[t.sectionId].data[0]||e.hubPageRevision.revision.sections[t.sectionId].data[0],backgroundColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:n&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,user:e.currentUser.user,disableSignup:e.siteSettings.settings.disableSignup,isSiteBlocked:e.currentSite.site.blocked,isSiteOnboardingEnabled:e.features.features.hasOwnProperty("enable_site_onboarding")&&e.features.features.enable_site_onboarding.enabled,currentUserRole:e.currentUser.user.roleName,dataTestId:"participant-hubs-views-navigations-section-auth-links"}})(H);var z=n(47091),G=n.n(z),K=n(38551),J=n(49016);function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($=function(){return!!e})()}var Q=function(e){function t(){var e,n;return(0,a.default)(this,t),e=t,n=arguments,e=(0,u.default)(e),(0,c.default)(this,$()?Reflect.construct(e,n||[],(0,u.default)(this).constructor):e.apply(this,n))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return document.getElementById("metismenu-container")&&document.getElementById("metismenu-container").classList.contains("display-none")&&this.props.onClick(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("button",{type:"button","aria-expanded":this.props.isMobileMenuVisible,"aria-label":this.props.t("editor:editor.toggleMainMenu"),onClick:this.props.onClick,"data-testid":"admin-hub-page-hamburger-icon",className:"jsx-750192911 hamburger-icon",children:this.props.isMobileMenuVisible?(0,g.jsx)("img",{src:J,alt:this.props.t("editor:editor.closeMenu"),id:"hamburger-menu",width:"35",height:"35",className:"jsx-750192911"}):(0,g.jsx)("img",{src:K,alt:this.props.t("editor:editor.openMenu"),id:"hamburger-menu",width:"35",height:"35",className:"jsx-750192911"})}),(0,g.jsx)(G(),{id:"750192911",children:[".hamburger-icon.jsx-750192911{background-color:white;border-radius:2px;}"]})]})}}])}(f.Component);let X=(0,x.withTranslation)(["editor"])(Q);var Y=n(30342);let Z=(0,M.withRouter)(function(e){var t,n=e.router,r=(0,x.useTranslation)(["admin-layout","navigation"]).t,o=(0,i.d4)(function(e){return e.currentSite}).site,a=(0,i.d4)(function(e){return e.features}).features,l=(0,i.d4)(function(e){return e.homePageRevision}).revision,c=null==l?void 0:l.sections[0].theme.mainNavbarBackgroun
1dColor,u=null==l?void 0:l.sections[0].theme.mainNavbarTextColor,d=(0,i.d4)(function(e){return e.currentUser}).user.roleName,p=(t=(0,s.A)(m().mark(function e(){var t,i,r;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.blocked,i=(null==a?void 0:a.enableSiteOnboarding)&&a.enableSiteOnboarding.enabled,e.next=4,fetch("/admin/api/auth/logout",{method:"DELETE"});case 4:e.sent.ok&&(r=-1!==[A.SiteAdmin,A.PlatformAdmin,A.HubAdmin,A.ProjectAdmin].indexOf(d),t&&r&&i?n.push("/admin/login"):n.push("/login"));case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,g.jsx)("div",{className:"profile-links auth-links",children:(0,g.jsx)("ul",{className:"auth-links__list",children:(0,g.jsx)("li",{className:"auth-links__list__list-item",style:{backgroundColor:c},children:(0,g.jsxs)("ul",{className:"auth-links__list__list-item__child",style:{backgroundColor:c,color:u},children:[(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:function(){switch(d){case"platform_admin":case"site_admin":case"hub_admin":case"project_admin":return"/platform/profile/edit";default:return"/profile"}}(),className:"auth-links__list__list-item__link",children:r("navigation:navigation.myAccount")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(d)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/projects","aria-expanded":"false",className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.projects")})}),["platform_admin","site_admin","hub_admin","project_admin"].indexOf(d)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/adm","aria-expanded":"false",className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.dashboard")})}),["platform_admin","site_admin"].indexOf(d)>-1&&(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"/admin/sites/editors/home-page","aria-expanded":"false",className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.appearance")})}),(0,g.jsx)("li",{className:"auth-links__list__list-item",children:(0,g.jsx)("a",{href:"#!",onClick:p,className:"auth-links__list__list-item__link",children:r("admin-layout:adminLayout.logout")})})]})})})})});function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ee=function(){return!!e})()}var et=function(e){var t;function n(){var e,t;return(0,a.default)(this,n),t=n,t=(0,u.default)(t),e=(0,c.default)(this,ee()?Reflect.construct(t,[],(0,u.default)(this).constructor):t.apply(this,void 0)),(0,p.default)(e,"loadProfileMenu",function(){return e.props.user.login?(0,g.jsx)("div",{className:"ehq-participant-header ehq-participant-header__mobile-menu-items ehq-participant-mobile-over",style:{backgroundColor:e.props.backgroundColor,color:e.props.textColor,fontFamily:e.props.fontFamily},children:(0,g.jsx)(Z,{})}):(0,g.jsxs)("div",{className:"ehq-participant-header__mobile-menu-items",style:{backgroundColor:e.props.backgroundColor,color:e.props.textColor,fontFamily:e.props.fontFamily},children:[(0,g.jsx)(V,{sectionId:"0",loggedInUser:"admin"}),(0,g.jsx)(W,{}),(0,g.jsx)(C,{})]})}),e.state={linkColor:"#1890FF",isMobileMenuVisible:!1,isProfileMenuVisible:!1},e.handleMobileMenuVisibility=e.handleMobileMenuVisibility.bind(e),e.handleProfileMenuVisibility=e.handleProfileMenuVisibility.bind(e),e}return(0,d.default)(n,e),(0,l.default)(n,[{key:"componentDidMount",value:function(){this.getAllLinkColor()}},{key:"getAllLinkColor",value:(t=(0,s.A)(m().mark(function e(){var t,n,i,r,o,s;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=this.props).themeName,i=t.theme,r=t.revision,o=t.layout,e.next=3,(0,Y.A)(i,n,r,o);case 3:s=e.sent,this.setState({linkColor:s,brandColor:i.brandColor});case 5:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"handleMobileMenuVisibility",value:function(){this.setState({isMobileMenuVisible:!this.state.isMobileMenuVisible,isProfileMenuVisible:!1})}},{key:"handleProfileMenuVisibility",value:function(){this.setState({isProfileMenuVisible:!this.state.isProfileMenuVisible,isMobileMenuVisible:!1})}},{key:"desktopAuthLinksNode",value:function(){return(0,g.jsx)(U,{sectionId:this.props.sectionId})}},{key:"desktopMenuNode",value:function(){var e=this.props.t;return(0,g.jsxs)("div",{className:"ehq-participant-header ehq-participant-header--desktop-menu",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor,fontFamily:this.props.fontFamily},"data-testid":this.props.dataTestId,children:[(0,g.jsx)("a",{href:"#hubpage-main",className:"skip-to-content",children:e("common:common.skipToContent")}),(0,g.jsx)("div",{className:"ehq-participant-header__left-menu",children:(0,g.jsx)(k,{})}),(0,g.jsxs)("div",{className:"ehq-participant-header__right-menu",children:[(0,g.jsx)(I,{sectionId:this.props.sectionId}),(0,g.jsx)(C,{sectionId:this.props.sectionId}),this.desktopAuthLinksNode()]})]})}},{key:"mobileAuthLinksNode",value:function(){return(0,g.jsx)(W,{sectionId:this.props.sectionId})}},{key:"loadHeader",value:function(){return this.props.user.login?(0,g.jsx)("div",{className:"ehq-participant-header ehq-participant-header__mobile-menu-items ehq-participant-mobile-over",children:this.mobileAuthLinksNode()}):(0,g.jsxs)("div",{className:"ehq-participant-header__mobile-menu-items",children:[(0,g.jsx)(V,{sectionId:this.props.sectionId}),this.mobileAuthLinksNode(),(0,g.jsx)(C,{sectionId:this.props.sectionId})]})}},{key:"mobileMenuNode",value:function(){var e=this.props.t;return(0,g.jsxs)("div",{className:"ehq-participant-header ehq-participant-header--mobile-menu",style:{backgroundColor:this.props.backgroundColor,color:this.props.textColor,fontFamily:this.props.fontFamily},"data-testid":this.props.dataTestId,children:[(0,g.jsx)("a",{href:"#hubpage-main",className:"skip-to-content",children:e("common:common.skipToContent")}),(0,g.jsxs)("div",{className:"ehq-participant-header__logo-container",children:[(0,g.jsx)(k,{}),(0,g.jsxs)("span",{children:[this.props.user.login&&(0,g.jsx)("button",{className:"avatar-button",onClick:this.handleProfileMenuVisibility,"aria-expanded":this.state.isProfileMenuVisible,children:(0,g.jsx)(R.H8,{})}),(0,g.jsx)(X,{onClick:this.handleMobileMenuVisibility,isMobileMenuVisible:this.state.isMobileMenuVisible})]})]}),!!this.state.isMobileMenuVisible&&this.loadHeader(),!!this.state.isProfileMenuVisible&&this.loadProfileMenu()]})}},{key:"headerNode",value:function(){return(0,g.jsxs)(g.Fragment,{children:[this.desktopMenuNode(),this.mobileMenuNode()]})}},{key:"render",value:function(){return(0,g.jsxs)(g.Fragment,{children:[this.headerNode(),(0,g.jsx)("style",{children:"\n .user-dropdown a,\n .user-dropdown .link-color,\n .user-dropdown a:hover,\n .user-dropdown a:visited,\n .user-dropdown a:focus {\n color: ".concat(this.state.linkColor," !important;\n }\n .skip-to-content {\n position: absolute;\n z-index: 1000;\n left: 0;\n top: -30em;\n overflow: hidden;\n box-sizing: border-box;\n }\n\n .skip-to-content:focus {\n top: 1.4em;\n left: 1.4em;\n width: 10em;\n height: 3.5em;\n border-radius: 0.375rem;\n border-style: solid;\n font-weight:700;\n background-color: #FFF;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n text-decoration: underline;\n outline-offset: 0;\n outline: 3px solid rgba(66, 153, 225, 0.6);\n color: ").concat(this.state.brandColor," !important;\n }\n ")})]})}}])}(f.Component);let en=(0,x.withTranslation)(["common"])(et);var ei=n(77080),er=n.n(ei);let eo=(0,i.Ng)(function(e,t){var n=o()(er(),function(t){return t.key===e.theme.theme.contentFont}),i=e.homePageRevision.revision.sections;return{fontFamily:n&&n.name||er()[0].name,logoUrl:e.currentSite.site.logoUrl,data:i&&e.homePageRevision.revision.sections[t.sectionId].data[0]||e.hubPageRevision.revision.sections[t.sectionId].data[0],siteName:e.currentSite.site.name,backgroundColor:i&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroun
1dColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarBackgroundColor,textColor:i&&e.homePageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor||e.hubPageRevision.revision.sections[t.sectionId].theme.mainNavbarTextColor,user:e.currentUser.user,themeName:e.currentSite.site.themeName,theme:e.theme.theme,revision:e.homePageRevision.revision,layout:e.layout.layout,dataTestId:"participant-hubs-views-navigations-section-header"}})(en)},86085:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(96501),r=n(37876);let o=(0,i.A)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},96633:e=>{e.exports={PlatformAdmin:"platform_admin",SiteAdmin:"site_admin",HubAdmin:"hub_admin",ProjectAdmin:"project_admin",Participant:"participant",BlockedUser:"blocked_user"}},99289:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,y:()=>o});var i=n(14457),r=n(21849);function o(e){return(0,r.Ay)("MuiTypography",e)}let s=(0,i.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])}}]); 2//# sourceMappingURL=NavigationHeaderLayout.95ba19ba80a8852a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.