(self.webpackChunk=self.webpackChunk||[]).push([[6608],{28861:function(e,t,n){"use strict";n.d(t,{Q:function(){return S},A:function(){return k}});var o=n(61225),i=n(47767),r=n(11848),a=n(48043),l=n(78597),s=n(90621),c=n(21543),d=n.p+"static/app/assets/images/companion/nav-likes-ccd55a91a9721373aa47.svg",h=n.p+"static/app/assets/images/companion/nav-likes-active-45ab26fb9bcf9c6c5559.svg",p=n.p+"static/app/assets/images/companion/nav-notifications-active-88a4a4a8b00c97289e56.svg",u=n.p+"static/app/assets/images/companion/nav-notifications-151e990c2be700211683.svg",m=n(74848);const g=`${c.Bq}/likes`,f=`${c.Bq}/notifications`,b=(0,r.Ay)("div",{target:"e9k0qoq2"})("display:flex;align-items:stretch;gap:34px;margin-right:7px;margin-left:12px;",(e=>e.theme.breakpoints.down("md")),"{margin-right:27px;margin-left:0;}"),x=(0,r.Ay)("div",{target:"e9k0qoq1"})({name:"9iujih",styles:"position:relative;display:flex;align-items:center"}),w=(0,r.Ay)("div",{target:"e9k0qoq0"})("width:",(e=>e.$width),"px;height:",(e=>e.$height),"px;background-image:url(",(e=>e.$src),");&:hover{background-image:url(",(e=>e.$srcHover),");}"),S=({isMobile:e=!1,countLikes:t,countNotifications:n,pathname:o})=>(0,m.jsxs)(b,{children:[!e&&(0,m.jsx)(x,{children:(0,m.jsx)(l.A,{notified:t,right:"-4px",top:"-3px",children:(0,m.jsx)("a",{href:g,children:(0,m.jsx)(w,{$src:o.endsWith(g)?h:d,$srcHover:h,$width:33,$height:25})})})}),(0,m.jsx)(x,{children:(0,m.jsx)(l.A,{notified:n,isMobile:e,right:e?"-3px":"-4px",top:e?"0":"-3px",children:(0,m.jsx)("a",{href:f,children:(0,m.jsx)(w,{$src:o.endsWith(f)?p:u,$srcHover:p,$width:21,$height:27})})})})]});var k=({staticHeader:e=!1,guidedToursPage:t=!1})=>{const{isMobile:n,countLikes:r,countNotifications:l,headerConfig:c}=(0,o.d4)((({user:e,main:t})=>({isMobile:t.isMobile,countLikes:e.unreadLikes,countNotifications:e.newNotifications,headerConfig:t.config.header_data}))),d=(0,i.zy)();return(0,m.jsx)("div",{className:e?"header-static":"header-sticky",id:"mbnb-header",children:(0,m.jsx)(a.A,{user:c.user,isMobile:n,gay_travel_data:c.gay_travel_data,locale:c.locale,languages:c.languages,current_currency_id:c.current_currency_id,currencies:c.currencies,companion_links:c.companion_links,zendesk_link:c.zendesk_link,loyalty_program_link:c.loyalty_program_link,search_page:c.search_page,companion_page:c.companion_page,stays_search_link:c.stays_search_link,bottom_menu_mode:c.bottom_menu_mode,community_search_link:c.community_search_link,guidedToursPage:t,children:(0,s.A)()&&(0,m.jsx)(S,{isMobile:n,countLikes:r,countNotifications:l,pathname:d.pathname})})})}},90621:function(e,t){"use strict";t.A=()=>CurrentUser.user_signed_in&&!CurrentUser.soft_logged_in},70044:function(e,t,n){"use strict";var o=n(76544),i=n(92715),r=n(71023);const a=(0,o.A)({breakpoints:{values:{xs:0,smm:321,sm:768,md:960,lg:1280,x:1400,xl:1920,xxl:2560}},palette:{common:{white:"#fff",buttonShadow:"rgba(0, 0, 0, 0.09)",whiteLight:"rgba(255, 255, 255, .2)",bluishGrey:"#737373",alizarinCrimson:"#DD1818",pumpkin:"#FF7C1D",treePoppy:"#ff9f1d",lightningYellow:"#FFC91D",mantis:"#7CC250",brightOrange:"#f9b825",lime:"#51cb2a",atlantis:"#8BE42D",java:"#1bd8d6",eggBlue:"#00d8dd",pacificBlue:"#00A8BB",mineShaft:"#333",mineShaft2:"#2F2F2F",emperor:"#525252",subflower:"#ebd730",robinsEggBlue:"#02d5dc",melon:"#f3465e",purple:"#9933ff",superSilverColor:"#eeeeee",whisper:"#e7e7e7",fuchsia:"#fd02ff",charcoal:"#334145",brightTurquoise:"#1bd8d6",pear:"#d6e935",violet:"#cc92fc",black:"#000",violetGrey:"#7d7089",bridgeCoated:"#0099ad",red:"#f30000"},primary:{light:"rgba(0, 111, 133, 0.3)",descriptionLight:"rgba(0, 111, 133, 0.5)",backgroundLight:"rgba(0, 111, 133, 0.1)",main:"#006f85",contrastText:"#fff"},secondary:{main:"#9925f9",descriptionLight:"rgba(153, 37, 249, 0.5)",backgroundLight:"rgba(153, 37, 249, 0.1)"},companion:{main:"#9925f9",backgroundLight:"rgba(153, 37, 249, 0.1)"}}}),l=(0,o.A)({breakpoints:a.breakpoints,palette:a.palette,typography:{fontFamily:'"Hanken Grotesk", "Adjusted Arial Fallback", Arial, Helvetica, sans-serif',fontWeightBold:600,fontSize:16,lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal"},components:{MuiBackdrop:{styleOverrides:{root:{backgroundColor:a.palette.background.backdrop}}},MuiIconButton:{styleOverrides:{root:{boxShadow:"none",width:"60px",height:"60px","&:hover":{backgroundColor:a.palette.background.iconButtonHover}}}},MuiButton:{styleOverrides:{root:{textAlign:"center",height:"50px",minWidth:"150px",textTransform:"uppercase",cursor:"pointer",display:"inline-block",lineHeight:"normal",fontSize:"17px",fontWeight:600,borderRadius:"4px",[a.breakpoints.down("md")]:{height:"40px",minWidth:"115px"}},sizeSmall:{height:"26px",fontWeight:"normal","& $label":{fontSize:"14px"}},sizeLarge:{"& $label":{fontSize:"24px",[a.breakpoints.down("md")]:{fontSize:"17px"}}},text:{textTransform:"none",fontWeight:"normal"},contained:{boxShadow:"none"},containedPrimary:{color:a.palette.common.white,backgroundColor:a.palette.primary.main,"&:hover":{backgroundColor:a.palette.primary.light,boxShadow:"none"},"&.Mui-disabled":{color:a.palette.common.white,backgroundColor:a.palette.primary.light,boxShadow:"none"}},outlined:{height:"40px"},outlinedPrimary:{backgroundColor:a.palette.common.white,"&:hover":{color:a.palette.common.white,backgroundColor:a.palette.primary.main}},containedSecondary:{minWidth:"auto",textTransform:"none","&:hover":{color:a.palette.common.white,backgroundColor:a.palette.secondary.descriptionLight}}}},MuiTextField:{styleOverrides:{root:{[`& .${i.A.root}`]:{fontSize:"12px",fontWeight:"normal",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"right",marginBottom:"12px",color:a.palette.primary.descriptionLight},[`& .${r.A.multiline}`]:{padding:"13px 16px"}}}}}});t.A=l},11410:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var o=n(65793),i=n(14519),r=n(13487),a=n(84300),l=n(96540),s=n(46231),c=n(74848);function d({theme:e,children:t,generateClassNameOptions:n={seedCounter:"rc"}}){const d=()=>(0,c.jsxs)(o.A,{theme:e,children:[(0,c.jsx)(i.Ay,{}),t]}),h=(0,l.useMemo)((()=>(0,a.A)({key:n.seedCounter})),[n.seedCounter]);return(0,s.f)()?d():(0,c.jsx)(r.C,{value:h,children:d()})}},13716:function(e,t,n){"use strict";var o=n(96540);t.A=e=>{(0,o.useMemo)((()=>{I18nJs.load(e),Path.load(e)}),[])}},53943:function(e,t){"use strict";t.A={PersonalInfo:"personalinfo",ProfileInfo:"profileinfo",MBnbHeader:"mbnbheader",FooterLanguageCurrencySelector:"flcs",NavBar:"navbar",Homepage:"hp",GayTravelCompanionProfiles:"gtcp",GuidesHome:"guideshome",GuidesHomeAll:"guideshomeall",GuidesCategoryResults:"gcr",NewPayment:"np",Room:"rm",AccountCards:"ac"}},46231:function(e,t,n){"use strict";function o(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function i(){return!o()}n.d(t,{N:function(){return o},f:function(){return i}})},83142:function(e,t,n){"use strict";var o=n(76544),i=n(92715),r=n(71023);const a=(0,o.A)({breakpoints:{values:{xs:0,smm:376,sm:600,md:960,lg:1280,x:1400,xl:1920,xxl:2560}},palette:{common:{white:"#fff",buttonShadow:"rgba(0, 0, 0, 0.09)",whiteLight:"rgba(255, 255, 255, .2)",bluishGrey:"#737373",alizarinCrimson:"#DD1818",pumpkin:"#FF7C1D",treePoppy:"#ff9f1d",lightningYellow:"#FFC91D",mantis:"#7CC250",brightOrange:"#f9b825",lime:"#51cb2a",atlantis:"#8BE42D",java:"#1bd8d6",eggBlue:"#00d8dd",pacificBlue:"#00A8BB",mineShaft:"#333",mineShaft2:"#2F2F2F",emperor:"#525252",subflower:"#ebd730",robinsEggBlue:"#02d5dc",melon:"#f3465e",forestGreen:"#028328",thunderbird:"#db3a1a",purple:"#9933ff",superSilverColor:"#eeeeee",whisper:"#e7e7e7",fuchsia:"#fd02ff",charcoal:"#334145",brightTurquoise:"#1bd8d6",pear:"#d6e935",bridgeCoated:"#0099ad",red:"#f30000",maldives:"#00bad7"},primary:{light:"rgba(0, 111, 133, 0.3)",descriptionLight:"rgba(0, 111, 133, 0.5)",backgroundLight:"rgba(0, 111, 133, 0.1)",main:"#006f85",contrastText:"#fff"},secondary:{light:"rgba(255, 255, 255, 0.3)",main:"#fff",contrastText:"#006f85"},companion:{main:"#9925f9",backgroundLight:"rgba(153, 37, 249, 0.1)"},background:{primary:"#006f85",primaryGradient:"linear-gradient(90deg, hsl(186deg 76% 43%) 0%, hsl(188deg 90% 34%) 50%, hsl(190deg 100% 26%) 100%)",iconButtonHover:"rgba(124, 154, 156, 0.1)",backdrop:"rgba(0, 111, 133, 0.95)"}}}),l=(0,o.A)({breakpoints:a.breakpoints,palette:a.palette,shadows:["none","0 -8px 16px 0 rgb(0 111 133 / 15%)","0 0 16px 0 rgba(0, 111, 133, 0.29)"],typography:{fontFamily:'"Hanken Grotesk", "Adjusted Arial Fallback", Arial, Helvetica, sans-serif',fontWeightBold:600,fontSize:14,lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",h1:{fontWeight:"600",fontSize:"35px",lineHeight:1.09,letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"24px"},[a.breakpoints.up("xxl")]:{fontSize:"2.5vw"}},h2:{fontWeight:"normal",fontSize:"30px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"20px"},[a.breakpoints.up("xxl")]:{fontSize:"2.14vw"}},h3:{fontWeight:"normal",fontSize:"24px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"17px"},[a.breakpoints.up("xxl")]:{fontSize:"1.71vw"}},h4:{fontWeight:"normal",fontSize:"20px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"14px"},[a.breakpoints.up("xxl")]:{fontSize:"1vw"}},h5:{fontWeight:600,fontSize:"14px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.up("xxl")]:{fontSize:"0.5vw"}},subtitle1:{fontWeight:600,fontSize:"24px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"20px"},[a.breakpoints.up("xxl")]:{fontSize:"1.71vw"}},subtitle2:{fontWeight:600,fontSize:"20px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.up("xxl")]:{fontSize:"1.71vw"}},body1:{fontWeight:"normal",fontSize:"14px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.up("xxl")]:{fontSize:"1.21vw"}},body2:{fontWeight:"normal",fontSize:"35px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"24px"},[a.breakpoints.up("xxl")]:{fontSize:"2.5vw"}},caption:{fontWeight:"normal",fontSize:"17px",lineHeight:"normal",letterSpacing:"normal",fontStretch:"normal",fontStyle:"normal",[a.breakpoints.down("md")]:{fontSize:"14px"},[a.breakpoints.up("xxl")]:{fontSize:"1.21vw"}},button:{fontSize:"24px",fontStretch:"normal",fontStyle:"normal",fontWeight:600,lineHeight:"normal",letterSpacing:"normal",textTransform:"inherit",[a.breakpoints.down("md")]:{fontSize:"20px"},[a.breakpoints.up("xxl")]:{fontSize:"1.71vw"}}},mixins:{textOverflowLines:e=>({"-webkit-line-clamp":`${e}`,"text-overflow":"ellipsis",overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","word-wrap":"break-word"})},variables:{header:{height:"50px"},progressBar:{width:"50px"},progressBarSm:{width:"20px"},footerActions:{height:"80px",smHeight:"60px"}},components:{MuiMenuItem:{styleOverrides:{root:{"&:hover":{backgroundColor:"unset"}}}},MuiBackdrop:{styleOverrides:{root:{backgroundColor:a.palette.background.backdrop}}},MuiIconButton:{styleOverrides:{root:{boxShadow:"none",width:"60px",height:"60px",opacity:.5,"&:hover":{backgroundColor:a.palette.background.iconButtonHover}}}},MuiButton:{styleOverrides:{root:{textAlign:"center",height:"50px",minWidth:"150px",textTransform:"uppercase",cursor:"pointer",display:"inline-block",fontSize:"17px",fontWeight:600,borderRadius:"4px",[a.breakpoints.down("md")]:{height:"40px",minWidth:"115px"}},sizeSmall:{height:"26px",fontWeight:"normal","& $label":{fontSize:"14px"}},sizeLarge:{"& $label":{fontSize:"24px",[a.breakpoints.down("md")]:{fontSize:"17px"}}},text:{textTransform:"none",fontWeight:"normal"},contained:{boxShadow:"none"},containedPrimary:{color:a.palette.common.white,backgroundColor:a.palette.primary.main,"&:hover":{backgroundColor:a.palette.primary.light,boxShadow:"none"},"&.Mui-disabled":{color:a.palette.common.white,backgroundColor:a.palette.primary.light,boxShadow:"none"}},outlined:{height:"40px"},outlinedPrimary:{backgroundColor:a.palette.common.white,"&:hover":{color:a.palette.common.white,backgroundColor:a.palette.primary.main}},containedSecondary:{minWidth:"auto",textTransform:"none","&:hover":{color:a.palette.common.white,backgroundColor:"rgba(255, 255, 255, .2)"}}}},MuiTextField:{styleOverrides:{root:{[`& .${i.A.root}`]:{fontSize:"12px",fontWeight:"normal",fontStretch:"normal",fontStyle:"normal",lineHeight:"normal",letterSpacing:"normal",textAlign:"right",marginBottom:"12px",color:a.palette.primary.descriptionLight},[`& .${r.A.multiline}`]:{padding:"13px 16px"}}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"14px",color:a.palette.common.white,backgroundColor:a.palette.primary.main,width:"207px",padding:"11px",borderRadius:0,boxShadow:"0 5px 15px 0 rgba(0, 111, 133, 0.3)"}}},MuiMenu:{styleOverrides:{paper:{boxShadow:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)"}}}}});t.A=l},40:function(e,t,n){"use strict";n(14723),n(69640),n(97900),n(69727);var o=n(96540),i=n(83142),r=n(70044),a=n(48043),l=n(11410),s=(n(82771),n(13716)),c=n(53943),d=n(10080),h=n(28861),p=n(74848);const u=({i18nLocale:e,isMobile:t,...n})=>{var u,m,g;(0,s.A)({i18nLocale:e,isMobile:t,...n});const f=n.profile_page_from_weere,b=null===(u=n.user)||void 0===u?void 0:u.unread_companion_messages_count,x=null===(m=n.user)||void 0===m?void 0:m.new_likes_count,w=(0,o.useMemo)((()=>({profilePageFromWeere:f,useRedux:!1,messagesCount:b,likesCount:x})),[]);return(0,p.jsx)(d.A.Provider,{value:w,children:(0,p.jsx)(l.A,{theme:f?r.A:i.A,generateClassNameOptions:{seedCounter:c.A.MBnbHeader},children:(0,p.jsx)(a.A,{...n,isMobile:t,children:n.user&&f&&(0,p.jsx)(h.Q,{isMobile:t,countLikes:x,countNotifications:null===(g=n.user)||void 0===g?void 0:g.new_notifications_count,pathname:"undefined"!==typeof window?window.location.href:""})})})})};var m=e=>(0,p.jsx)(u,{...e});window.ReactOnRails=window.ReactOnRails||n(62765).default,window.ReactOnRails.register({MBnbHeader:e=>(0,p.jsx)(m,{...e})})},9143:function(e,t,n){const o={enjoyhint:()=>Promise.all([n.e(4231),n.e(895)]).then(n.bind(n,33691)),auth:()=>window.jQuery?Promise.all([n.e(9494),n.e(5375),n.e(6113),n.e(1809),n.e(992),n.e(2155),n.e(7933)]).then(n.bind(n,61296)):Promise.all([n.e(289),n.e(9595),n.e(6421)]).then(n.bind(n,49595)).then((()=>Promise.all([n.e(9494),n.e(5375),n.e(6113),n.e(1809),n.e(992),n.e(2155),n.e(7933)]).then(n.bind(n,61296))))};window.asyncLoad=o},69727:function(e,t,n){var o;n(9143),o=n(86663),this.AsyncAuth=function(){class e{static showSignInModal(e){return this.load().then((function(){return Authentication.showSignInModal(e)}))}static showSignUpModal(e){return this.load().then((function(){return Authentication.showSignUpModal(e)}))}static showRecoverPassword(e){return this.load().then((function(){return Authentication.showRecoverPassword(e)}))}static showSignIn(e){return this.load().then((function(){return Authentication.showSignIn(e)}))}static showSignUp(e){return this.load().then((function(){return Authentication.showSignUp(e)}))}static showRequestSignUpModal(e){return this.load().then((function(){return Authentication.showRequestSignUpModal({args:e,hide_welcome:!0})}))}static showFacebookAuth(e){return this.load().then((function(){return Authentication.showFacebookAuth(e)}))}static showSignUpEmailModal(e){return this.load().then((function(){return Authentication.showSignUpEmailModal()}))}static reLogin(e){return this.load(!0).then((function(){return Authentication.reLogin(e)}))}static load(e=!1){return new Promise(((t,n)=>this.loadPack().then((()=>this.loadHtml(e).then((function(){return Authentication.onLoad(),Dropzoner.onload(),Autocomplete.onload(),t()}))))))}static loadHtml(e=!1){var t;return this.loadedHtml||document.getElementById("authModal")?Promise.resolve():(t=this,new Promise(((n,i)=>{var r;return r={hosting_id:gon.h_id,visa:gon.visa,skip_verification:e},fetch(`${Path.getFor("registrations")}?${o.stringify(r)}`,{method:"GET",headers:window.apiHeaders}).then((function(e){return e.text()})).then((function(e){var o;return o=document.createRange().createContextualFragment(e),document.body.appendChild(o),t.loadedHtml=!0,requestAnimationFrame(n)})).catch((function(e){return i(e)}))})))}static loadPack(){return this.loadedJs||"undefined"!==typeof Authentication?Promise.resolve():new Promise(((e,t)=>{var n;return n=this,asyncLoad.auth().then((function(){return n.loadedJs=!0,e()}))}))}}return e.loadedHtml=null,e.loadedJs=null,e}.call(this),"undefined"!==typeof window&&(window.AsyncAuth=this.AsyncAuth)}},function(e){e.O(0,[6608],(function(){[4231,895,289,9595,6421,9494,5375,6113,1809,992,2155,7933].map(e.E)}),5);e.O(0,[4692,2765,3899,1848,2517,1083,5856,2183,2385,8905,8248,3205,72,8239,2161,5087,580,6113,2195],(function(){return t=40,e(e.s=t);var t}));e.O()}]);
//# sourceMappingURL=header-7f9b277c80e5300ffb36.js.map