1"use strict";(globalThis.webpackChunkpartners_portal||=[]).push([[8329],{54247(e,t,s){s.d(t,{A:()=>w});var n=s(65043),i=s(20293),r=s(97508),o=s(82349),a=s(57066),l=s(66187),c=s(26774),d=s(17339),p=s(42555),u=s(749),h=s(81551);const m=function(e,t){return t>=600?(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fullView?70:140:60},g=(0,h.A)(e=>({appsContainer:t=>({height:`calc(100vh - ${75+m(t.navStyle,0,t)+(t.footer?70:10)}px) !important`,[e.breakpoints.up("sm")]:{height:`calc(100vh - ${75+m(t.navStyle,600)+(t.footer?70:10)}px) !important`},[e.breakpoints.up("md")]:{height:`calc(100vh - ${85+m(t.navStyle,960)+(t.footer?80:10)}px) !important`},[e.breakpoints.up("lg")]:{height:`calc(100vh - ${73+m(t.navStyle,1280)+(t.footer?80:10)}px) !important`},[e.breakpoints.up("xl")]:{height:`calc(100vh - ${94+m(t.navStyle,1920)+(t.footer?86:10)}px) !important`},display:"flex"}),appsSidebar:{height:"100%",[e.breakpoints.up("lg")]:{width:"17rem"},[e.breakpoints.up("xl")]:{width:"20rem"}},appsMainContent:t=>({width:"100%",display:"flex",flexDirection:"column",[e.breakpoints.up("lg")]:{width:`calc(100% - ${t.fullView?0:17}rem)`,paddingLeft:t.fullView?0:24},[e.breakpoints.up("xl")]:{width:`calc(100% - ${t.fullView?0:20}rem)`}}),menuButton:{marginRight:e.spacing(2)},menuIcon:{width:35,height:35},appSidebarDrawer:{width:"19rem","& .listItem":{zIndex:1305}},scLauncher:{"& .sc-header, & .sc-message--content.sent .sc-message--text, & .sc-header--close-button:hover":{backgroundColor:`${e.palette.primary.main} !important`}}}));var x=s(88910),f=s(25307),b=s(58387),v=s(70579);const j=e=>{const{isAppDrawerOpen:t,footer:s,navStyle:n,fullView:o,sidebarContent:l}=e,d=(0,r.wA)(),p=g({footer:s,navStyle:n,fullView:o});return(0,v.jsxs)(a.A,{className:p.appsSidebar,children:[(0,v.jsx)(c.A,{lgUp:!0,children:(0,v.jsx)(f.Ay,{open:t,onClose:()=>d((0,i.Wp)()),classes:{paper:(0,b.A)(p.appSidebarDrawer)},style:{position:"absolute"},children:l})}),(0,v.jsx)(c.A,{mdDown:!0,children:(0,v.jsx)(u.A,{style:{height:"100%"},children:l})})]})};var A=s(17501),y=s(44929);const w=e=>{let{title:t="",subtitle:s="",cardStyle:h,useCard:m=!0,sidebarContent:f,fullView:b=!1,fullHeight:w=!0,children:k}=e;(()=>{const{fire:e}=(0,A.z1)();(0,y.Tw)(e)})();const T=(0,r.wA)(),{isAppDrawerOpen:S}=(0,r.d4)(e=>{let{common:t}=e;return t}),{footer:C,navStyle:I}=(0,n.useContext)(x.A),_=g({footer:C,navStyle:I,fullView:b});return(0,v.jsxs)(a.A,{pt:{xl:4},flex:1,display:"flex",flexDirection:"column",children:[(0,v.jsxs)(a.A,{mb:{xs:4,lg:b?5:4},mt:{xs:b?0:-1,lg:0},justifyContent:"space-between",display:"flex",flexDirection:"row",alignItems:"center",children:[(0,v.jsxs)(a.A,{mr:b?0:8,children:[(0,v.jsx)(l.A,{variant:"h2",children:t}),s&&(0,v.jsx)(l.A,{style:{margin:"4px 0"},variant:"subtitle1",children:s})]}),b?null:(0,v.jsx)(c.A,{lgUp:!0,children:(0,v.jsx)(d.A,{size:"small","aria-label":"open drawer",className:_.menuButton,onClick:()=>T((0,i.Wp)()),color:S?"secondary":"inherit",children:(0,v.jsx)(p.A,{fontSize:"large"})})})]}),(0,v.jsxs)(a.A,{className:_.appsContainer,children:[f?(0,v.jsx)(j,{isAppDrawerOpen:S,footer:C,fullView:b,navStyle:I,sidebarContent:f}):null,(0,v.jsxs)(a.A,{className:_.appsMainContent,children:[m?(0,v.jsx)(u.A,{style:{height:w?"100%":"auto",display:"flex",flexDirection:"column",...h},children:k}):k,(0,v.jsx)(o.A,{})]})]})]})}},82349(e,t,s){s(65043);var n=s(52836),i=s(49704),r=s(97508),o=s(70579);const a=()=>{const{error:e,loading:t,message:s}=(0,r.d4)(e=>{let{common:t}=e;return t});return(0,o.jsxs)(o.Fragment,{children:[t&&(0,o.jsx)(n.A,{}),s&&(0,o.jsx)(i.A,{variant:"success",message:s.toString()}),e&&(0,o.jsx)(i.A,{variant:"error",message:e.toString()})]})};s.d(t,["A",0,a])},49704(e,t,s){var n=s(65043),i=s(58387),r=s(7991),o=s(77173),a=s(20471),l=s(83903),c=s(93250),d=s(55882),p=s(17339),u=s(56163),h=s(59031),m=s(81551),g=s(14033),x=s(70579);const f={vertical:"bottom",horizontal:"left"},b={success:r.A,warning:h.A,error:o.A,info:a.A},v=(0,m.A)(e=>({success:{backgroundColor:c.A[600]},error:{backgroundColor:e.palette.error.dark},info:{backgroundColor:e.palette.primary.main},warning:{backgroundColor:d.A[700]},icon:{fontSize:20},iconVariant:{opacity:.9,marginRight:e.spacing(1)},message:{display:"flex",alignItems:"center"}})),j=e=>{let{className:t,message:s,variant:r,anchorOrigin:o=f,onClose:a,...c}=e;const d=v(),[h,m]=n.useState(!0),j=b[r],A=()=>{m(!1),null===a||void 0===a||a()};return(0,x.jsx)(g.A,{anchorOrigin:o,open:h,autoHideDuration:6e3,onClose:A,children:(0,x.jsx)(u.A,{className:(0,i.A)(d[r],t),"aria-describedby":"
1client-snackbar",message:(0,x.jsxs)("span",{id:"client-snackbar",className:d.message,children:[(0,x.jsx)(j,{className:(0,i.A)(d.icon,d.iconVariant)}),s]}),action:[(0,x.jsx)(p.A,{"aria-label":"close",color:"inherit",onClick:A,children:(0,x.jsx)(l.A,{className:d.icon})},"close")],...c})})};s.d(t,["A",0,j])},8329(e,t,s){s.r(t),s.d(t,{default:()=>Bt});var n=s(65043),i=s(54247),r=s(49704),o=s(46623),a=s(9688),l=s(81551),c=s(18073),d=s(57066),p=s(66187),u=s(96962),h=s(30105),m=s(70567),g=s(20495),x=s(81269),f=s(68571),b=s(93697),v=s(26129),j=s(91496),A=s(58387),y=s(97),w=s(18456),k=s(26574);const T=(e,t)=>`/partners/${e}/users/${t}/hosted-trips-awareness-flow`,S=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"me";return(await k.u.get(T(t,e))).data};var C=s(17501),I=s(653),_=s(10908),N=s(35801),R=s(26774),L=s(17339),z=s(58425),B=s(83903),E=s(77299),H=s(24817);const D=[{titleId:"hostedTrips.becomeHost.step1.title",subtitleId:"hostedTrips.becomeHost.step1.subtitle"},{titleId:"hostedTrips.becomeHost.step2.title",subtitleId:"hostedTrips.becomeHost.step2.subtitle"},{titleId:"hostedTrips.becomeHost.step3.title",subtitleId:"hostedTrips.becomeHost.step3.subtitle"},{titleId:"hostedTrips.becomeHost.step4.title"},{titleId:"hostedTrips.becomeHost.step5.title"},{titleId:"hostedTrips.becomeHost.step6.title"}],M=["hostedTrips.becomeHost.success.item1","hostedTrips.becomeHost.success.item2","hostedTrips.becomeHost.success.item3","hostedTrips.becomeHost.success.item4"],$=(0,l.A)(e=>({dialog:{"& .MuiDialog-paper":{maxWidth:900,width:"100%",minHeight:560,borderRadius:16,overflow:"hidden",display:"flex",flexDirection:"row",[e.breakpoints.down("xs")]:{margin:0,maxHeight:"100%",height:"100%",borderRadius:0,minHeight:"unset",flexDirection:"column"}}},leftPanel:{width:320,flexShrink:0,position:"relative",backgroundImage:"url(/assets/images/hostedTrips/modal-bg.jpg)",backgroundSize:"cover",backgroundPosition:"center",[e.breakpoints.down("sm")]:{width:260},[e.breakpoints.down("xs")]:{width:"100%",height:220,flexShrink:0}},leftOverlay:{position:"absolute",inset:0,background:"linear-gradient(to top, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.2) 100%)"},leftContent:{position:"relative",zIndex:1,height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:e.spacing(8,0,8,8),[e.breakpoints.down("xs")]:{padding:e.spacing(4)}},leftTopRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},trLogo:{width:120,display:"block",[e.breakpoints.down("xs")]:{width:100}},closeBtnMobile:{backgroundColor:"rgba(255,255,255,0.2)",color:"#fff",width:32,height:32,"&:hover":{backgroundColor:"rgba(255,255,255,0.35)"}},leftTitle:{color:"#fff",fontSize:28,fontWeight:700,lineHeight:1.2,marginBottom:e.spacing(2)},trustpilotRow:{display:"flex",alignItems:"center",gap:4,whiteSpace:"nowrap"},trustpilotText:{color:"rgba(255,255,255,0.85)",fontSize:13,whiteSpace:"nowrap"},trustpilotBrand:{color:"rgba(255,255,255,0.85)",fontSize:13},starIcon:{color:"#00b67a",fontSize:14,verticalAlign:"middle"},rightPanel:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},stepperRow:{display:"flex",alignItems:"center",gap:e.spacing(2),padding:e.spacing(4,6,0)},stepperCounter:{fontSize:14,color:e.palette.text.secondary,whiteSpace:"nowrap",flexShrink:0},topBar:{display:"flex",justifyContent:"flex-end",padding:e.spacing(2,3,0)},closeBtn:{color:e.palette.text.secondary},stepHeader:{padding:e.spacing(2,6,0)},stepTitle:{fontSize:20,fontWeight:700,marginBottom:e.spacing(1)},stepSubtitle:{fontSize:14,marginBottom:e.spacing(4)},stepBody:{flex:1,overflowY:"auto",padding:e.spacing(4,6)},checkboxLabel:{"& .MuiFormControlLabel-label":{fontSize:15}},radioLabel:{"& .MuiFormControlLabel-label":{fontSize:15}},socialRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:e.spacing(3),[e.breakpoints.down("xs")]:{gridTemplateColumns:"1fr"}},socialInput:{"& .MuiOutlinedInput-root":{borderRadius:8}},socialIcon:{color:e.palette.text.secondary,fontSize:20,marginRight:e.spacing(1),flexShrink:0},bulletList:{paddingLeft:e.spacing(4),margin:`${e.spacing(3)}px 0 ${e.spacing(4)}px`,"& li":{fontSize:15,lineHeight:1.6,marginBottom:e.spacing(1)}},bodyText:{fontSize:15,lineHeight:1.6,marginBottom:e.spacing(3)},freeTextField:{marginTop:e.spacing(2),"& .MuiOutlinedInput-root":{borderRadius:8}},subSectionTitle:{fontSize:15,fontWeight:700,marginTop:e.spacing(4),marginBottom:e.spacing(1)},footer:{padding:e.spacing(4,6),display:"flex",justifyContent:"space-between",alignItems:"center",boxShadow:"0 -4px 20px 0 rgba(0, 0, 0, 0.06)"},backBtn:{borderRadius:24,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)},nextBtn:{borderRadius:24,paddingLeft:e.spacing(4),paddingRight:e.spacing(4),minWidth:100},successPanel:{flex:1,display:"flex",flexDirection:"column",overflowY:"auto",padding:e.spacing(8,8,6),[e.breakpoints.down("xs")]:{padding:e.spacing(5,4,4)}},successCloseRow:{display:"flex",justifyContent:"flex-end",marginBottom:e.spacing(4)},successIcon:{fontSize:40,marginBottom:e.spacing(3),lineHeight:1},successTitle:{fontSize:22,fontWeight:700,marginBottom:e.spacing(2)},successSubtitle:{fontSize:15,lineHeight:1.6,marginBottom:e.spacing(5)},successCheckList:{display:"flex",flexDirection:"column",gap:e.spacing(3),flex:1}
1,successCheckItem:{display:"flex",alignItems:"flex-start",gap:e.spacing(2)},successCheckIcon:{color:e.palette.success.main,fontSize:20,flexShrink:0,marginTop:2},successCheckText:{fontSize:14,lineHeight:1.5},successFooter:{display:"flex",justifyContent:"flex-end",paddingTop:e.spacing(6)},exploreDashboardBtn:{borderRadius:24,paddingLeft:e.spacing(5),paddingRight:e.spacing(5)}}));var F=s(7991),P=s(70579);const W=e=>{let{onClose:t}=e;const s=$();return(0,P.jsxs)(d.A,{className:s.successPanel,children:[(0,P.jsx)(R.A,{xsDown:!0,children:(0,P.jsx)(d.A,{className:s.successCloseRow,children:(0,P.jsx)(L.A,{size:"small",onClick:t,children:(0,P.jsx)(B.A,{fontSize:"small"})})})}),(0,P.jsx)(p.A,{className:s.successIcon,role:"img","aria-label":"Celebration",children:"\ud83c\udf89"}),(0,P.jsx)(p.A,{className:s.successTitle,children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.success.title"})}),(0,P.jsx)(p.A,{className:s.successSubtitle,children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.success.subtitle"})}),(0,P.jsx)(d.A,{className:s.successCheckList,children:M.map(e=>(0,P.jsxs)(d.A,{className:s.successCheckItem,children:[(0,P.jsx)(F.A,{className:s.successCheckIcon}),(0,P.jsx)(p.A,{className:s.successCheckText,children:(0,P.jsx)(a.A,{id:e})})]},e))}),(0,P.jsx)(d.A,{className:s.successFooter,children:(0,P.jsx)(h.A,{variant:"contained",color:"primary",className:s.exploreDashboardBtn,onClick:t,children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.success.exploreDashboard"})})})]})},O=e=>{try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}},G={roles:[],otherRoleText:"",instagram:"",tiktok:"",facebook:"",youtube:"",customLink:"",noSocialMedia:!1,earningFrequency:"",earningMethods:[],otherEarningText:"",understandsRole:!1,understandsPromotion:!1,understandsCancellation:!1},q=["role","community","earnings","host_role","host_promotion","host_cancellation"],U=e=>e.replace(/^@+/,"").trim(),V=e=>e.trim()?e.trim():null,X=e=>"string"===typeof e&&null!==e?e:"",Y=e=>!0===e,K=e=>Array.isArray(e)?e:[],Z=e=>{var t,s,n,i;const r=null!==(t=e.step_answers)&&void 0!==t?t:{},o={...G},a=r.role;a&&(o.roles=K(a.roles),o.otherRoleText=X(a.other_role_text));const l=r.community;l&&(o.noSocialMedia=Y(l.no_social_media),o.instagram=X(l.instagram),o.tiktok=X(l.tiktok),o.facebook=X(l.facebook),o.youtube=X(l.youtube),o.customLink=X(l.custom_url));const c=r.earnings;c&&(o.earningFrequency=X(c.frequency),o.earningMethods=K(c.methods),o.otherEarningText=X(c.other_earning_text)),Y(null===(s=r.host_role)||void 0===s?void 0:s.understands)&&(o.understandsRole=!0),Y(null===(n=r.host_promotion)||void 0===n?void 0:n.understands)&&(o.understandsPromotion=!0),Y(null===(i=r.host_cancellation)||void 0===i?void 0:i.understands)&&(o.understandsCancellation=!0);const d=e.last_completed_step?q.indexOf(e.last_completed_step):-1;return{form:o,startStep:Math.min(d+1,q.length-1)}};var J=s(84473);const Q=e=>{J.Store.addNotification({message:e,type:"danger",insert:"top",container:"top-right",dismiss:{duration:5e3,showIcon:!0}})},ee=e=>{var t,s,n,i;const r=e;return null!==(t=null!==(s=null===r||void 0===r||null===(n=r.response)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.message)&&void 0!==s?s:null===r||void 0===r?void 0:r.message)&&void 0!==t?t:"Something went wrong. Please try again."};var te=s(73083),se=s(16853);const ne=e=>{let{checked:t,onChange:s}=e;const n=$();return(0,P.jsxs)(d.A,{children:[(0,P.jsx)(p.A,{className:n.bodyText,children:"Operators require a minimum number of travelers to run a tour. If this isn\u2019t met by the deadline, the trip may be cancelled."}),(0,P.jsx)(p.A,{className:n.bodyText,children:"To avoid cancellation fees for you and your group, ensure the trip is cancelled before the deadline if the minimum isn\u2019t reached."}),(0,P.jsx)(te.A,{className:n.checkboxLabel,control:(0,P.jsx)(se.A,{checked:t,onChange:e=>s(e.target.checked),color:"primary"}),label:"Yes, I understand and agree that minimum number of travellers and cancellation policy depend on the operator."})]})};var ie=s(96632),re=s(87958),oe=s(26943);const ae=e=>{let{value:t,earningMethods:s,otherEarningText:n,onChange:i,onToggleMethod:r,onOtherEarningTextChange:o}=e;const a=$(),l="yes_regularly"===t||"occasionally"===t,c=s.includes("other");return(0,P.jsxs)(d.A,{children:[(0,P.jsx)(ie.A,{value:t,onChange:e=>i(e.target.value),children:[{value:"yes_regularly",label:"Yes, regularly"},{value:"occasionally",label:"Occasionally"},{value:"not_yet",label:"Not yet, but planning to"},{value:"no",label:"No"}].map(e=>(0,P.jsx)(te.A,{value:e.value,className:a.radioLabel,control:(0,P.jsx)(re.A,{color:"primary"}),label:e.label},e.value))}),l&&(0,P.jsxs)(d.A,{children:[(0,P.jsx)(p.A,{className:a.subSectionTitle,children:"How do you currently earn?"}),[{value:"trip_hosting",label:"Trip hosting / Retreats"},{value:"brand_partnerships",label:"Brand partnerships / Sponsorships"},{value:"affiliate_links",label:"Affiliate links"},{value:"other",label:"Other"}].map(e=>(0,P.jsx)(te.A,{className:a.checkboxLabel,control:(0,P.jsx)(se.A,{checked:s.includes(e.value),onChange:()=>r(e.value),color:"primary"}),label:e.label},e.value)),c&&(0,P.jsx)(oe.A,{autoFocus:!0,variant:"outlined",size:"small",multiline:!0,rows:3,placeholder:"e.g. Online courses, workshops, etc.",value:n,onChange:e=>o(e.target.value),className:a.freeTextField,fullWidth:!0})]})]})},le=e=>{let{checked:t,onChange:s}=e;const n=$();return(0,P.jsxs)(d.A,{children:[(0,P.jsx)(p.A,{className:n.bodyText,children:"TourRadar provides the platform and tools, but filling the trip is up to the Host. We do not guarantee participants for hosted trips."}),(0,P.jsx)(te.A,{className:n.checkboxLabel,control:(0,P.jsx)(se.A,{checked:t,onChange:e=>s(e.target.checked),color:"primary"}),label:"Yes, I understand that I am responsible for promoting my trip"})]})},ce=e=>{let{roles:t,otherRoleText:s,onToggleRole:n,onOtherRoleTextChange:i}=e;const r=$(),o=t.includes("other");return(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",children:[[{value:"travel_agent",label:"Travel Agent / Advisor"},{value:"content_creator",label:"Content Creator / Influencer"},{value:"community_leader",label:"Community Leader",hint:"e.g. yoga teacher, club organizer"},{value:"other",label:"Other"}].map(e=>(0,P.jsx)(te.A,{className:r.checkboxLabel,control:(0,P.jsx)(se.A,{checked:t.includes(e.value),onChange:()=>n(e.value),color:"primary"}),label:e.hint?(0,P.jsxs)("span",{children:[e.label," ",(0,P.jsxs)("span",{style:{color:"#888",fontStyle:"italic"},children:["(",e.hint,")"]})]}):e.label},e.value)),o&&(0,P.jsx)(oe.A,{autoFocus:!0,variant:"outlined",size:"small",multiline:!0,rows:3,placeholder:"Please specify your role",value:s,onChange:e=>i(e.target.value),className:r.freeTextField}
1)]})},de=e=>{let{checked:t,onChange:s}=e;const n=$(),i=(0,y.A)();return(0,P.jsxs)(d.A,{children:[(0,P.jsx)(p.A,{className:n.bodyText,children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.intro"})}),(0,P.jsxs)("ul",{className:n.bulletList,children:[(0,P.jsxs)("li",{children:[(0,P.jsx)("strong",{children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.host.label"})})," ",(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.host.text"})]}),(0,P.jsxs)("li",{children:[(0,P.jsx)("strong",{children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.operator.label"})})," ",(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.operator.text"})]}),(0,P.jsxs)("li",{children:[(0,P.jsx)("strong",{children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.tourradar.label"})})," ",(0,P.jsx)(a.A,{id:"hostedTrips.becomeHost.role.tourradar.text"})]})]}),(0,P.jsx)(te.A,{className:n.checkboxLabel,control:(0,P.jsx)(se.A,{checked:t,onChange:e=>s(e.target.checked),color:"primary"}),label:i.formatMessage({id:"hostedTrips.becomeHost.role.checkbox"})})]})};var pe=s(98787),ue=s(85369);const he=e=>{let{instagram:t,tiktok:s,facebook:i,youtube:r,customLink:o,noSocialMedia:a,onChange:l}=e;
1const c=$(),[p,u]=(0,n.useState)(!1),h=p&&o.trim()&&!O(o.trim())?"Please enter a valid URL including the protocol (e.g. https://yourwebsite.com)":void 0;return(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",gridGap:16,children:[(0,P.jsxs)(d.A,{className:c.socialRow,children:[(0,P.jsx)(oe.A,{variant:"outlined",size:"small",placeholder:"username",value:t,disabled:a,onChange:e=>l("instagram",e.target.value),className:c.socialInput,InputProps:{startAdornment:(0,P.jsx)(ue.ao$,{className:c.socialIcon})}}),(0,P.jsx)(oe.A,{variant:"outlined",size:"small",placeholder:"username",value:s,disabled:a,onChange:e=>l("tiktok",e.target.value),className:c.socialInput,InputProps:{startAdornment:(0,P.jsx)(ue.kkU,{className:c.socialIcon})}}),(0,P.jsx)(oe.A,{variant:"outlined",size:"small",placeholder:"username",value:i,disabled:a,onChange:e=>l("facebook",e.target.value),className:c.socialInput,InputProps:{startAdornment:(0,P.jsx)(ue.iYk,{className:c.socialIcon})}}),(0,P.jsx)(oe.A,{variant:"outlined",size:"small",placeholder:"Channel name",value:r,disabled:a,onChange:e=>l("youtube",e.target.value),className:c.socialInput,InputProps:{startAdornment:(0,P.jsx)(ue.Vk6,{className:c.socialIcon})}})]}),(0,P.jsx)(oe.A,{variant:"outlined",size:"small",placeholder:"https://yourwebsite.com",value:o,disabled:a,error:!!h,helperText:h,onChange:e=>{l("customLink",e.target.value),u(!1)},onBlur:()=>u(!0),className:c.socialInput,InputProps:{startAdornment:(0,P.jsx)(pe.A,{className:c.socialIcon,style:{fontSize:18}})}}),(0,P.jsx)(te.A,{className:c.checkboxLabel,control:(0,P.jsx)(se.A,{checked:a,onChange:e=>l("noSocialMedia",e.target.checked),color:"primary"}),label:"I don't use social media for my community"})]})};function me(e){let{open:t,onClose:s,onSuccess:i,onFlowPersisted:r,savedFlow:a,username:l,partner:c}=e;const{fire:d}=(0,C.z1)(),p=(0,o.ZY)(),u=e=>{var t;null!==p&&void 0!==p&&null!==(t=p.partner)&&void 0!==t&&t.id&&d(e)}
1,[h,m]=(0,n.useState)(0),[g,x]=(0,n.useState)(G),[f,b]=(0,n.useState)(!1),[v,j]=(0,n.useState)(!1),A=(0,n.useRef)(null),y=(0,n.useRef)(0);(0,n.useEffect)(()=>{y.current=h},[h]);const w=(0,n.useRef)(""),I=(0,n.useRef)(0),_=(0,n.useRef)(!1),N=(0,n.useRef)(null),R=(0,n.useRef)(!1),L=e=>{if(!N.current)return!1;const t=N.current;return t.instagram!==e.instagram||t.tiktok!==e.tiktok||t.facebook!==e.facebook||t.youtube!==e.youtube||t.customLink!==e.customLink||t.noSocialMedia!==e.noSocialMedia},z=e=>({session_id:w.current,...e.roles.length>0&&{role_selected:e.roles},...e.earningFrequency&&{earn_frequency:e.earningFrequency},...e.earningMethods.length>0&&{earn_methods:e.earningMethods},socials_prefilled:_.current,socials_modified:L(e)}),B=(e,t,s)=>{u({action:"step_completed",category:"Hosted Trips - Host Onboarding",ampEvent:"b2b_host_onboarding_step_completed",ampProperties:{step_number:e+1,step_name:q[e],direction:t,time_on_step_ms:Date.now()-I.current,...z(s)}})};(0,n.useEffect)(()=>{if(!t)return A.current=null,void(R.current=!1);if(w.current=crypto.randomUUID(),_.current=!1,N.current=null,R.current=!1,u({action:"opened",category:"Hosted Trips - Host Onboarding",ampEvent:"b2b_host_onboarding_opened",ampProperties:{session_id:w.current}}),null!==a&&void 0!==a&&a.last_completed_step){const{form:e,startStep:t}=Z(a);x(e),m(t),A.current=t}else A.current=0;S(l,c).then(e=>{if(!e)return;const{form:t,startStep:s}=Z(e);y.current===A.current&&(x(t),m(s),A.current=s)}).catch(()=>{})},[t]),(0,n.useEffect)(()=>{var e,s;t&&null!==A.current&&((R.current||h===A.current)&&(R.current=!0,I.current=Date.now(),s=g,1!==(e=h)||N.current||(_.current=[s.instagram,s.tiktok,s.facebook,s.youtube,s.customLink].some(e=>""!==e.trim()),N.current={instagram:s.instagram,tiktok:s.tiktok,facebook:s.facebook,youtube:s.youtube,customLink:s.customLink,noSocialMedia:s.noSocialMedia}),u({action:"step_viewed",category:"Hosted Trips - Host Onboarding",ampEvent:"b2b_host_onboarding_step_viewed",ampProperties:{step_number:e+1,step_name:q[e],...z(s)}})))},[t,h]);const E=e=>{x(t=>({...t,roles:t.roles.includes(e)?t.roles.filter(t=>t!==e):[...t.roles,e]}))};return{step:h,isSubmitting:f,showSuccess:v,renderStep:()=>{switch(h){case 0:return(0,P.jsx)(ce,{roles:g.roles,otherRoleText:g.otherRoleText,onToggleRole:E,onOtherRoleTextChange:e=>x(t=>({...t,otherRoleText:e}))});case 1:return(0,P.jsx)(he,{instagram:g.instagram,tiktok:g.tiktok,facebook:g.facebook,youtube:g.youtube,customLink:g.customLink,noSocialMedia:g.noSocialMedia,onChange:(e,t)=>
1x(s=>({...s,[e]:t}))});case 2:return(0,P.jsx)(ae,{value:g.earningFrequency,earningMethods:g.earningMethods,otherEarningText:g.otherEarningText,onChange:e=>x(t=>({...t,earningFrequency:e})),onToggleMethod:e=>x(t=>({...t,earningMethods:t.earningMethods.includes(e)?t.earningMethods.filter(t=>t!==e):[...t.earningMethods,e]})),onOtherEarningTextChange:e=>x(t=>({...t,otherEarningText:e}))});case 3:return(0,P.jsx)(de,{checked:g.understandsRole,onChange:e=>x(t=>({...t,understandsRole:e}))});case 4:return(0,P.jsx)(le,{checked:g.understandsPromotion,onChange:e=>x(t=>({...t,understandsPromotion:e}))});case 5:return(0,P.jsx)(ne,{checked:g.understandsCancellation,onChange:e=>x(t=>({...t,understandsCancellation:e}))});default:return null}},isNextEnabled:()=>{if(f)return!1;switch(h){case 0:return g.roles.length>0;case 1:{const e=g.noSocialMedia||[g.instagram,g.tiktok,g.facebook,g.youtube].some(e=>""!==e.trim())||""!==g.customLink.trim(),t=!g.customLink.trim()||O(g.customLink.trim());return e&&t}case 2:return""!==g.earningFrequency;case 3:return g.understandsRole;case 4:return g.understandsPromotion;case 5:return g.understandsCancellation;default:return!0}},handleNext:async()=>{const e=h,t=g,s=q[e],n=((e,t)=>{switch(e){case"role":return{roles:t.roles,...t.roles.includes("other")&&t.otherRoleText.trim()?{other_role_text:t.otherRoleText.trim()}:{}};case"community":return t.noSocialMedia?{instagram:null,tiktok:null,facebook:null,youtube:null,custom_url:null,no_social_media:!0}:{instagram:V(U(t.instagram)),tiktok:V(U(t.tiktok)),facebook:V(U(t.facebook)),youtube:V(U(t.youtube)),custom_url:V(t.customLink),no_social_media:!1};case"earnings":return{frequency:t.earningFrequency,...t.earningMethods.length>0?{methods:t.earningMethods}:{},...t.earningMethods.includes("other")&&t.otherEarningText.trim()?{other_earning_text:t.otherEarningText.trim()}:{}};case"host_role":case"host_promotion":case"host_cancellation":return{understands:!0};default:return{}}})(s,t),o=5===e;let a;B(e,"next",t),b(!0);try{a=await async function(e,t,s){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"me";return(await k.u.post(`${T(n,e)}/steps`,{step:t,answers:s})).data}(l,s,n,c),null===r||void 0===r||r(a)}catch(d){return Q(ee(d)),void b(!1)}if(!o)return m(e=>e+1),void b(!1);try{const e=await async function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"me";return(await k.u.post(`${T(s,e)}/submit`,{social_handles:t})).data}(l,(e=>e.noSocialMedia?{instagram:null,tiktok:null,facebook:null,youtube:null,custom_url:null}:{instagram:V(U(e.instagram)),tiktok:V(U(e.tiktok)),facebook:V(U(e.facebook)),youtube:V(U(e.youtube)),custom_url:V(e.customLink)})(t),c);null===r||void 0===r||r(e),j(!0),i(),u({action:"submitted",category:"Hosted Trips - Host Onboarding",ampEvent:"b2b_host_onboarding_submitted",ampProperties:z(t)})}catch(d){Q(ee(d))}finally{b(!1)}},handleBack:()=>{B(h,"back",g),m(e=>e-1)},handleClose:()=>{v||u({action:"abandoned",category:"Hosted Trips - Host Onboarding",ampEvent:"b2b_host_onboarding_abandoned",ampProperties:{step_number:h+1,step_name:q[h],...z(g)}}),m(0),x(G),j(!1),A.current=null,s()}}}const ge=e=>{let{open:t,onClose:s,onSuccess:n,onFlowPersisted:i,savedFlow:r,username:o="me",partner:l="me"}=e;const c=$(),{step:u,isSubmitting:m,showSuccess:g,renderStep:x,isNextEnabled:f,handleNext:b,handleBack:v,handleClose:j}=me({open:t,onClose:s,onSuccess:n,onFlowPersisted:i,savedFlow:r,username:o,partner:l});return(0,P.jsxs)(N.A,{open:t,onClose:j,TransitionComponent:H.A,className:c.dialog,maxWidth:"md",children:[(0,P.jsxs)(d.A,{className:c.leftPanel,children:[(0,P.jsx)(d.A,{className:c.leftOverlay}),(0,P.jsxs)(d.A,{className:c.leftContent,children:[(0,P.jsxs)(d.A,{className:c.leftTopRow,children:[(0,P.jsx)("img",{src:"/assets/images/hostedTrips/TR-logo.svg",alt:"TourRadar",className:c.trLogo}),(0,P.jsx)(R.A,{smUp:!0,children:(0,P.jsx)(L.A,{size:"small",className:c.closeBtnMobile,onClick:j,disabled:m,children:(0,P.jsx)(B.A,{fontSize:"small"})})})]}),(0,P.jsx)(d.A,{flex:1}),(0,P.jsx)(p.A,{className:c.leftTitle,children:"Become a Host"}
1),(0,P.jsxs)(d.A,{className:c.trustpilotRow,children:[(0,P.jsx)(p.A,{className:c.trustpilotText,children:"4.5 stars on"}),(0,P.jsx)(E.A,{className:c.starIcon}),(0,P.jsx)(p.A,{className:c.trustpilotBrand,children:"Trustpilot"}),(0,P.jsx)(p.A,{className:c.trustpilotText,children:"(5,773 Reviews)"})]})]})]}),(0,P.jsx)(d.A,{className:c.rightPanel,children:g?(0,P.jsx)(W,{onClose:j}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(R.A,{xsDown:!0,children:(0,P.jsx)(d.A,{className:c.topBar,children:(0,P.jsx)(L.A,{size:"small",className:c.closeBtn,onClick:j,disabled:m,children:(0,P.jsx)(B.A,{fontSize:"small"})})})}),(0,P.jsx)(d.A,{className:c.stepperRow,children:(0,P.jsxs)(p.A,{className:c.stepperCounter,children:[u+1," of ",6]})}),(0,P.jsxs)(d.A,{className:c.stepHeader,children:[(0,P.jsx)(p.A,{className:c.stepTitle,children:(0,P.jsx)(a.A,{id:D[u].titleId})}),D[u].subtitleId&&(0,P.jsx)(p.A,{className:c.stepSubtitle,children:(0,P.jsx)(a.A,{id:D[u].subtitleId})})]}),(0,P.jsx)(d.A,{className:c.stepBody,children:x()}),(0,P.jsxs)(d.A,{className:c.footer,children:[(0,P.jsx)(d.A,{children:u>0&&(0,P.jsx)(h.A,{variant:"outlined",className:c.backBtn,onClick:v,disabled:m,children:"Back"})}),(0,P.jsx)(h.A,{variant:"contained",color:"primary",className:c.nextBtn,onClick:b,disabled:!f(),children:m?(0,P.jsx)(z.A,{size:20,color:"inherit"}):u<5?"Next":"Submit"})]})]})})]})};var xe=s(18720),fe=s(34708),be=s(58096),ve=s(36550),je=s(49966),Ae=s(23501);const ye="/assets/images/hostedTrips",we=[{id:1,srcImg:`${ye}/egypt.jpg`,title:"Egypt Explorer. Felucca cruise & Red Sea",operator:"Timeless Tours",minGroupSize:"6 Travelers",highlights:["Pyramids of Giza & the Sphinx","Felucca Sailing on the Nile","Ancient Temples of Luxor"],price:"\u20ac576",url:"https://www.tourradar.com/t/45554"},{id:2,srcImg:`${ye}/morocco.jpg`,title:"Timeless Morocco",operator:"Timeless Tours",minGroupSize:"6 Travelers",highlights:["Sahara Desert experience","Atlas Mountains and desert valleys","Blue city of Chefchaouen"],price:"\u20ac1.087",url:"https://www.tourradar.com/t/45549"},{id:3,srcImg:`${ye}/philippines.jpg`,title:"West Philippines Classic in 10 Days",operator:"One Life Adventure",minGroupSize:"8 Travelers",highlights:["Island hopping in El Nido","Puerto Princesa Underground River","Private beach camp in Port Barton"],price:"\u20ac1.150",url:"https://www.tourradar.com/t/85982"},{id:4,srcImg:`${ye}/vietnam.jpg`,title:"Best Of Vietnam in 14 Days",operator:"Realistic Asia",minGroupSize:"6 Travelers",highlights:["Ancient temples in Hoa Lu","Hoi An lantern town","Ha Long Bay cruise"],price:"\u20ac826",url:"https://www.tourradar.com/t/136789"},{id:5,srcImg:`${ye}/Iceland.jpg`,title:"Complete Iceland",operator:"Arctic Adventures",minGroupSize:"12 Travelers",highlights:["Thingvellir National Park","Guided glacier hike","Lake M\xfdvatn geothermal region"],price:"\u20ac2.122",url:"https://www.tourradar.com/t/108772"},{id:6,srcImg:`${ye}/tokyo.jpg`,title:"Splendid Japan. Osaka to Tokyo.",operator:"Stunning Tours",minGroupSize:"12 Travelers",highlights:["Kyoto temples & bamboo forest","Mount Fuji & Lake Yamanaka","Tokyo city exploration"],price:"\u20ac1.657",url:"https://www.tourradar.com/t/230556"}],ke={dots:!1,arrows:!1,infinite:!1,speed:400,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1700,settings:{slidesToShow:2}},{breakpoint:960,settings:{slidesToShow:1}},{breakpoint:600,settings:{slidesToShow:1.2,slidesToScroll:1}}]},Te=[{src:`${ye}/peru.png`,nameId:"hostedTrips.destination.peru",path:"/srp/i-peru-hostable"},{src:`${ye}/turkey.png`,nameId:"hostedTrips.destination.turkey",path:"/srp/i-turkey-hostable"}],Se=[{src:`${ye}/india.png`,nameId:"hostedTrips.destination.india",path:"/srp/i-india-hostable"},{src:`${ye}/vietnam-destination.png`,nameId:"hostedTrips.destination.vietnam",path:"/srp/i-vietnam-hostable"},{src:`${ye}/iceland.png`,nameId:"hostedTrips.destination.iceland",path:"/srp/i-iceland-hostable"}],Ce=`${ye}/destinations.jpg`,Ie=[{src:`${ye}/host.png`,alt:"Host and travel",titleId:"hostedTrips.hostAndTravel.title",descriptionId:"hostedTrips.hostAndTravel.description"},{src:`${ye}/revenue.png`,alt:"Add revenue",titleId:"hostedTrips.addRevenue.title",descriptionId:"hostedTrips.addRevenue.description"},{src:`${ye}/content.png`,alt:"Create content",titleId:"hostedTrips.createContent.title",descriptionId:"hostedTrips.createContent.description"}],_e=[{step:1,icon:(0,P.jsx)(ve.A,{}),titleId:"hostedTrips.step1.title",descriptionId:"hostedTrips.step1.description"},{step:2,icon:(0,P.jsx)(je.A,{}),titleId:"hostedTrips.step2.title",descriptionId:"hostedTrips.step2.description"},{step:3,icon:(0,P.jsx)(fe.A,{}),titleId:"hostedTrips.step3.title",descriptionId:"hostedTrips.step3.description"},{step:4,icon:(0,P.jsx)(Ae.A,{}),titleId:"hostedTrips.step4.title",descriptionId:"hostedTrips.step4.description"}],Ne=[{step:1,titleId:"hostedTrips.journey.step1.title",descriptionId:"hostedTrips.journey.step1.description"},{step:2,icon:(0,P.jsx)(be.A,{}),titleId:"hostedTrips.journey.step2.title",descriptionId:"hostedTrips.journey.step2.description",ctaId:"hostedTrips.journey.step2.cta"},{step:3,icon:(0,P.jsx)(je.A,{}),titleId:"hostedTrips.journey.step3.title",descriptionId:"hostedTrips.journey.step3.description"},{step:4,icon:(0,P.jsx)(xe.A,{}),titleId:"hostedTrips.journey.step4.title",descriptionId:"hostedTrips.journey.step4.description"}],Re=d.A,Le=(0,l.A)(e=>({container:{gap:e.spacing(6),marginTop:e.spacing(10),[e.breakpoints.down("sm")]:{gap:0,marginTop:e.spacing(10)}},title:{fontSize:25},subtitle:{fontSize:16},bigRow:{[e.breakpoints.down("sm")]:{marginTop:e.spacing(6),"& > *:not(:first-child)":{display:"none"}}},smallRow:{[e.breakpoints.down("sm")]:{marginTop:e.spacing(3),display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:e.spacing(2)}},card:{padding:e.spacing(2),borderRadius:19,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",textDecoration:"none",cursor:"pointer",transition:"opacity 0.2s ease","&:hover":{opacity:.9}},bigCard:{height:317,[e.breakpoints.down("sm")]:{height:230,width:"100%",aspectRatio:"unset"}},smallCard:{height:151,[e.breakpoints.down("sm")]:{height:112,width:"100%",aspectRatio:"unset"}},label:{padding:e.spacing(2,4),borderRadius:100,backgroundColor:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(4px)",width:"100%"}
1,labelText:{fontSize:14,fontWeight:I.vX.BOLD,color:e.palette.common.white,lineHeight:1},labelIcon:{fontSize:16,color:e.palette.common.white},seeAllCard:{gap:e.spacing(1.5),height:151,[e.breakpoints.down("sm")]:{height:112,width:"100%"},borderRadius:19,backgroundColor:e.palette.common.white,boxShadow:"0 4px 8px 0 rgba(53, 129, 145, 0.16), 0 2px 4px 0 rgba(53, 129, 145, 0.08), 0 1px 2px 0 rgba(53, 129, 145, 0.16), 0 -1px 2px 0 rgba(53, 129, 145, 0.04)",padding:e.spacing(2),textDecoration:"none",cursor:"pointer",transition:"box-shadow 0.2s ease, transform 0.2s ease","&:hover":{boxShadow:"0 8px 16px 0 rgba(53, 129, 145, 0.2), 0 4px 8px 0 rgba(53, 129, 145, 0.12), 0 2px 4px 0 rgba(53, 129, 145, 0.2), 0 -1px 2px 0 rgba(53, 129, 145, 0.06)",transform:"translateY(-2px)"}},seeAllThumb:{height:54,objectFit:"cover",[e.breakpoints.down("sm")]:{height:45}},seeAllText:{fontSize:14,fontWeight:700,color:e.palette.primary.main,textAlign:"center"}})),ze=(0,l.A)(()=>({root:e=>{let{src:t}=e;return{backgroundImage:`url(${t})`}}})),Be=e=>{let{src:t,nameId:s,href:n,variant:i}=e;const r=Le(),o=ze({src:t});return(0,P.jsx)(Re,{component:"a",href:n,target:"_blank",rel:"noopener noreferrer",display:"flex",flex:"1 0 0",alignItems:"flex-end",justifyContent:"small"===i?"center":void 0,className:(0,A.A)(r.card,o.root,"big"===i?r.bigCard:r.smallCard),children:(0,P.jsxs)(d.A,{display:"inline-flex",alignItems:"center",justifyContent:"space-between",className:r.label,children:[(0,P.jsx)(p.A,{className:r.labelText,children:(0,P.jsx)(a.A,{id:s})}),(0,P.jsx)(x.A,{className:r.labelIcon})]})})},Ee=e=>{let{href:t}=e;const s=Le();return(0,P.jsxs)(Re,{component:"a",href:t,target:"_blank",rel:"noopener noreferrer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:"1 0 0",className:s.seeAllCard,children:[(0,P.jsx)("img",{src:Ce,alt:"",className:s.seeAllThumb}),(0,P.jsx)(p.A,{className:s.seeAllText,children:(0,P.jsx)(a.A,{id:"hostedTrips.exploreDestinations.seeAll"})})]})},He=()=>{const e=Le(),t=(0,_.A)(),s=(0,m.A)();return(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",alignSelf:"stretch",className:e.container,children:[(0,P.jsxs)(d.A,{children:[(0,P.jsx)(p.A,{variant:"h3",gutterBottom:!0,className:e.title,children:(0,P.jsx)(a.A,{id:"hostedTrips.exploreDestinations.title"})}),(0,P.jsx)(p.A,{variant:"body2",color:"textPrimary",className:e.subtitle,children:(0,P.jsx)(a.A,{id:"hostedTrips.exploreDestinations.subtitle"})})]}),(0,P.jsx)(d.A,{display:"flex",alignItems:"stretch",gridGap:s.spacing(6),alignSelf:"stretch",className:e.bigRow,children:Te.map(e=>(0,P.jsx)(Be,{...e,href:t(e.path),variant:"big"},e.nameId))}),(0,P.jsxs)(d.A,{display:"flex",alignItems:"stretch",gridGap:s.spacing(6),alignSelf:"stretch",className:e.smallRow,children:[Se.map(e=>(0,P.jsx)(Be,{...e,href:t(e.path),variant:"small"},e.nameId)),(0,P.jsx)(Ee,{href:t("srp/f-hostable")})]})]})};var De=s(77925),Me=s(38571),$e=s(93013),Fe=s(44929);const Pe="#177FA4",We="#D3ECF5",Oe="#003544",Ge="#FFFFFF",qe="#E1E9EC",Ue="#40484C",Ve="#C0D0D5",Xe="tr_tour_card",Ye={toolName:"projects/126730439651/locations/us/apps/b4eceb42-5358-480b-9fdf-53610df652b9/tools/67b6b53c-2ae4-4aff-bae1-ab04f1cbc739",toolDisplayName:"show_tour_card"},Ke="tr-tour-card__cta";function Ze(e){return String(null!==e&&void 0!==e?e:"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Je=`\n .tr-tour-card {\n font-family: inherit;\n border: 1px solid ${Ve};\n border-radius: 12px;\n overflow: hidden;\n background: ${Ge};\n }\n .tr-tour-card__cover {\n display: block;\n width: 100%;\n height: 160px;\n object-fit: cover;\n background: ${qe};\n }\n .tr-tour-card__body { padding: 12px 14px; }\n .tr-tour-card__title { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; font-weight: 600; }\n .tr-tour-card__subtitle { margin: 0 0 8px; font-size: 0.8125rem; color: ${Ue}; }\n .tr-tour-card__meta {\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 0.875rem;\n margin-bottom: 12px;\n }\n .tr-tour-card__price { font-weight: 600; }\n .tr-tour-card__rating { color: ${Ue}; }\n .${Ke} {\n width: 100%;\n padding: 10px 12px;\n border: 0;\n border-radius: 8px;\n background: ${Pe};\n color: ${"#FFFFFF"};\n font-size: 0.9375rem;\n font-weight: 500;\n cursor: pointer;\n }\n .${Ke}:hover { filter: brightness(0.92); }\n`;function Qe(){var e,t;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(e){const t=String(null!==e&&void 0!==e?e:"");return/^https?:\/\//i.test(t)?Ze(t):""}(null===(e=s.imageUris)||void 0===e?void 0:e[0]),i=Ze(s.title),r=Ze(s.rating),o=Ze(null===(t=s.review)||void 0===t?void 0:t.count);return`\n <style>${Je}</style>\n <div class="tr-tour-card" data-tour-id="${Ze(s.productId)}">\n ${n?`<img class="tr-tour-card__cover" src="${n}" alt="${i}">`:""}\n <div class="tr-tour-card__body">\n <h3 class="tr-tour-card__title">${i}</h3>\n ${s.subtitle?`<p class="tr-tour-card__subtitle">${Ze(s.subtitle)}</p>`:""}\n <div class="tr-tour-card__meta">
1\n <span class="tr-tour-card__price">${Ze(s.price)}</span>\n ${r?`<span class="tr-tour-card__rating">★ ${r}${o?` (${o})`:""}</span>`:""}\n </div>\n <button type="button" class="${Ke}">Request to Host</button>\n </div>\n </div>\n `}const et="AI Host Manager",tt="ces-messenger-sdk-script",st="ces-chat-open-changed",nt="ces-text-sent",it=["ces-text-received","ces-tool-call-received","ces-messenger-disconnected"],rt=`\n .voice-assistant-container {\n position: static !important;\n top: auto !important;\n right: auto !important;\n width: 100% !important;\n height: 100% !important;\n margin: 0 !important;\n display: flex !important;\n flex-direction: column !important;\n }\n .assistant-container {\n width: 100% !important;\n height: 100% !important;\n display: flex !important;\n flex-direction: column !important;\n }\n main {\n height: 100% !important;\n margin: 0 !important;\n border-radius: 0 !important;\n flex: 1 !important;\n }\n /* Without this, scrolling past the end of the message list chains to\n the page behind the modal instead of stopping. */\n main ul {\n overscroll-behavior: contain !important;\n }\n /* The SDK asks for 'Roboto' with no fallback, and the portal only loads\n Poppins and Material Icons, so the whole chat rendered in the\n browser's default serif. */\n main,\n main * {\n font-family: 'Poppins', sans-serif !important;\n }\n /* panelWrapper already draws the border and the shadow. */\n main {\n box-shadow: none !important;\n }\n main.light header {\n border-bottom-color: ${Ve} !important;\n }\n`,ot="host-assistant-open";const at="hide-boost-for-host-assistant",lt=(0,l.A)(e=>({fab:{position:"fixed",bottom:e.spacing(3),right:e.spacing(3),zIndex:1300,backgroundColor:We,color:Oe,boxShadow:e.shadows[2],"&:hover":{backgroundColor:We,boxShadow:e.shadows[4]}},fabLabel:{marginLeft:e.spacing(2),fontWeight:600},panelWrapper:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1300,width:"90vw",maxWidth:720,height:"85vh",maxHeight:680,borderRadius:28,overflow:"hidden",border:`1px solid ${Ve}`,boxShadow:e.shadows[3],backgroundColor:Ge},replyProgress:{position:"absolute",top:0,left:0,right:0},panelLoader:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:Ge},backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1299,backgroundColor:"rgba(0, 0, 0, 0.5)"}})),ct=e=>{let{onLauncherOpen:t}=e;
1const s=lt(),[i,r]=(0,n.useState)(!1),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),u=(0,n.useRef)(null),h=(0,n.useRef)(null),m=(0,n.useRef)(null),g=(0,n.useRef)(null),x=(0,n.useRef)(!1),f=(0,_.A)(),b=(0,n.useRef)(f);(0,n.useEffect)(()=>{b.current=f},[f]);const v=(0,o.ZY)(),j=(0,n.useCallback)(()=>{var e,t,s,n,i,r;null===(e=u.current)||void 0===e||null===(t=e.setQueryParameters)||void 0===t||t.call(e,{host_first_name:null!==(s=null===v||void 0===v||null===(n=v.user)||void 0===n?void 0:n.first_name)&&void 0!==s?s:"",partner_name:null!==(i=null===v||void 0===v||null===(r=v.partner)||void 0===r?void 0:r.name)&&void 0!==i?i:""})},[v]);(0,n.useEffect)(()=>{j()},[j]);const A=(0,n.useCallback)((e,t)=>{var s,n,i,r;if(!t.closest(`.${Ke}`))return{};const o=null!==(s=null===(n=e.payload)||void 0===n?void 0:n.context)&&void 0!==s?s:{};(0,Fe.nX)("B2B Host Assistant Request To Host Clicked",{tour_id:null!==(i=o.productId)&&void 0!==i?i:null,tour_title:null!==(r=o.title)&&void 0!==r?r:null}),window.dispatchEvent(new CustomEvent("host-assistant-request-to-host",{detail:o}));const a=function(e){if(e.uri)try{const{pathname:t,search:s}=new URL(e.uri);return`${t}${s}`.replace(/^[/\\]+/,"/")}catch{}return e.productId?`/t/${e.productId}`:null}(o);return a&&window.open(b.current(a),"_blank","noopener"),{}},[]);(0,n.useEffect)(()=>{const e=e=>{var t;const s=null===(t=e.detail)||void 0===t?void 0:t.question;s&&(h.current=s),r(!0)};return window.addEventListener(ot,e),()=>window.removeEventListener(ot,e)},[]);const y=(0,n.useCallback)(()=>{const e=u.current;null!==e&&void 0!==e&&e.registerClientSideFunction&&(j(),e.registerTemplate(Xe,Qe),e.registerRichMessageHandler(Xe,A),e.registerClientSideFunction(Ye,t=>{try{return e.insertRichMessage(Xe,t),{status:"OK"}}catch(s){return{status:"ERROR",detail:s instanceof Error?s.message:String(s)}}}))},[A,j]);(0,n.useEffect)(()=>{if(window.addEventListener("ces-messenger-loaded",y),window.addEventListener("ces-messenger-connected",y),!document.getElementById(tt)){sessionStorage.removeItem("bidi-widget-session");const e=document.createElement("script");e.id=tt,e.src="https://www.gstatic.com/ces-console/fast/ces-messenger/ces-messenger.js",document.body.appendChild(e)}return()=>{window.removeEventListener("ces-messenger-loaded",y),window.removeEventListener("ces-messenger-connected",y)}},[y]),(0,n.useEffect)(()=>{const e=()=>l(!0),t=()=>l(!1);return window.addEventListener("ces-messenger-connected",e),window.addEventListener("ces-messenger-disconnected",t),()=>{window.removeEventListener("ces-messenger-connected",e),window.removeEventListener("ces-messenger-disconnected",t)}},[]),(0,n.useEffect)(()=>{const e=()=>{null!==p.current&&(window.clearTimeout(p.current),p.current=null),d(!1)},t=()=>{d(!0),null!==p.current&&window.clearTimeout(p.current),p.current=window.setTimeout(e,6e4)};return window.addEventListener(nt,t),it.forEach(t=>{window.addEventListener(t,e)}),()=>{window.removeEventListener(nt,t),it.forEach(t=>{window.removeEventListener(t,e)}),null!==p.current&&window.clearTimeout(p.current)}},[]),(0,n.useEffect)(()=>{var e;const t=u.current;if(!t)return;if(!i){var s;if(x.current)null===(s=t.close)||void 0===s||s.call(t);return}x.current=!0,null===(e=t.open)||void 0===e||e.call(t);const n=h.current;var r,o;n&&(h.current=null,null===(r=t.insertMessage)||void 0===r||r.call(t,"USER",{text:n}),null===(o=t.sessionInput)||void 0===o||o.call(t,n))},[i]),(0,n.useEffect)(()=>{const e=e=>{var t,s,n,i;if(null===(t=e.detail)||void 0===t?void 0:t.isOpen)return;r(!1),l(!1),d(!1);const o=u.current;null===o||void 0===o||null===(s=o.endSession)||void 0===s||s.call(o),null===o||void 0===o||null===(n=o.disconnectWebStream)||void 0===n||n.call(o,"USER_REQUESTED"),null===o||void 0===o||null===(i=o.clearStorage)||void 0===i||i.call(o,{clearAuthentication:!0})};return window.addEventListener(st,e),()=>window.removeEventListener(st,e)},[]),(0,n.useEffect)(()=>{const e=e=>e.stopPropagation(),t=[m.current,g.current].filter(e=>null!==e);return t.forEach(t=>{t.addEventListener("wheel",e),t.addEventListener("touchmove",e)}),()=>{t.forEach(t=>{t.removeEventListener("wheel",e),t.removeEventListener("touchmove",e)})}},[i]),(0,n.useEffect)(()=>{const e=document.createElement("style");return e.id=at,e.textContent=".boost-trigger-button { display: none !important; }",document.head.appendChild(e),()=>{var e;null===(e=document.getElementById(at))||void 0===e||e.remove()}},[]);return(0,P.jsxs)(P.Fragment,{children:[i&&(0,P.jsx)("div",{ref:g,className:s.backdrop,onClick:()=>r(!1)}),(0,P.jsxs)("div",{ref:m,className:s.panelWrapper,style:{display:i?"block":"none","--host-primary-color":Pe},children:[(0,P.jsx)("ces-messenger",{ref:e=>{u.current=e,y()},style:{display:"block",width:"100%",height:"100%"},"deployment-id":"projects/126730439651/locations/us/apps/b4eceb42-5358-480b-9fdf-53610df652b9/deployments/1eb24934-8458-47e2-96be-86a6cae69350","token-broker-url":"MANAGED","chat-title":et,"disable-bubble":"true","disable-image-uploads":"true","audio-input-mode":"NONE","audio-output-mode":"DISABLED","initial-message":"hello","hide-initial-message":"true","input-placeholder-text":"Ask something...","custom-css":rt}),i&&a&&c&&(0,P.jsx)(De.A,{className:s.replyProgress}
1),i&&!a&&(0,P.jsx)("div",{className:s.panelLoader,children:(0,P.jsx)(z.A,{})})]}),!i&&(0,P.jsxs)(Me.A,{variant:"extended",color:"primary","aria-label":`Open ${et} chat`,className:s.fab,onClick:()=>{null===t||void 0===t||t(),r(!0)},children:[(0,P.jsx)($e.A,{}),(0,P.jsxs)("span",{className:s.fabLabel,children:["Ask ",et]})]})]})};var dt=s(8289),pt=s(34859),ut=s(99073),ht=s(2024),mt=s(92382);const gt=(0,pt.default)(e=>({navButton:{border:`1px solid ${e.palette.grey[300]}`,borderRadius:"50%",width:36,height:36,padding:0,color:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.grey[100]}},sliderWrapper:{"& .slick-track":{display:"flex"},"& .slick-slide":{padding:`0 ${e.spacing(3)}px`},"& .slick-list":{margin:`0 -${e.spacing(3)}px`},[e.breakpoints.down("xs")]:{overflow:"hidden","& .slick-list":{overflow:"visible",margin:`0 -${e.spacing(1)}px`},"& .slick-slide":{padding:`0 ${e.spacing(2)}px`}}},tourCard:{width:"100%",height:387,borderRadius:19,boxShadow:"0 1px 2px 0 rgba(3, 54, 63, 0.40), 0 -1px 2px 0 rgba(3, 54, 63, 0.04)",boxSizing:"border-box",overflow:"hidden",margin:"2px 0",[e.breakpoints.down("sm")]:{height:300},[e.breakpoints.down("xs")]:{height:484}},imgWrapper:{width:204,flexShrink:0,alignSelf:"stretch",borderRadius:15,overflow:"hidden",[e.breakpoints.down("sm")]:{width:140},[e.breakpoints.down("xs")]:{width:"100%",height:135,flexShrink:0,alignSelf:"auto"}},tourImage:{width:"100%",height:"100% !important",objectFit:"cover !important",display:"block"},tourTitle:{fontSize:20,fontWeight:I.vX.BOLD,lineHeight:1.2},infoBlock:{gap:e.spacing(2),[e.breakpoints.down("xs")]:{gap:e.spacing(1)}},fieldLabel:{fontSize:14,fontWeight:I.vX.BOLD,lineHeight:1.4},fieldValue:{fontSize:12,lineHeight:1.4},highlightsList:{margin:0,paddingLeft:e.spacing(5),"& li":{fontSize:12,lineHeight:1.4}},fromText:{fontSize:12,lineHeight:1.4},priceText:{fontSize:20,fontWeight:I.vX.BOLD,lineHeight:1.2},viewTourBtn:{padding:"0 !important",boxShadow:"none",fontWeight:I.vX.BOLD,fontSize:14,letterSpacing:"1.25px","& a":{color:"inherit",textDecoration:"none",fontWeight:"inherit","&:hover":{textDecoration:"none"}}}})),xt=()=>{const e=gt(),t=(0,m.A)(),s=(0,n.useRef)(null),i=(0,_.A)(),{fire:r}=(0,C.z1)(),l=(0,o.ZY)(),c=()=>{var e;null!==l&&void 0!==l&&null!==(e=l.partner)&&void 0!==e&&e.id&&r({ampEvent:"b2b_hosted_trips_cta_clicked",ampProperties:{cta:"explore_tours",partner_type:l.partner.role,partner_id:l.partner.id}})};return(0,P.jsxs)(d.A,{mt:{xs:7,sm:10},children:[(0,P.jsxs)(d.A,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:10,children:[(0,P.jsxs)(d.A,{children:[(0,P.jsx)(p.A,{variant:"h3",gutterBottom:!0,style:{fontSize:25},children:(0,P.jsx)(a.A,{id:"hostedTrips.trendingTours"})}),(0,P.jsx)(p.A,{variant:"body2",color:"textPrimary",style:{fontSize:16},children:(0,P.jsx)(a.A,{id:"hostedTrips.trendingTours.subtitle"})})]}),(0,P.jsxs)(d.A,{display:{xs:"none",sm:"flex"},gridGap:8,children:[(0,P.jsx)(L.A,{className:e.navButton,size:"small",onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.slickPrev()},children:(0,P.jsx)(ut.A,{fontSize:"small"})}),(0,P.jsx)(L.A,{className:e.navButton,size:"small",onClick:()=>{var e;return null===(e=s.current)||void 0===e?void 0:e.slickNext()},children:(0,P.jsx)(ht.A,{fontSize:"small"})})]})]}),(0,P.jsx)(d.A,{className:e.sliderWrapper,children:(0,P.jsx)(mt.A,{ref:s,...ke,children:we.map(s=>(0,P.jsx)(d.A,{children:(0,P.jsxs)(d.A,{className:e.tourCard,display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},alignSelf:"stretch",padding:{xs:t.spacing(2,2,4,2),sm:t.spacing(2,4,2,2)},gridGap:t.spacing(4),children:[(0,P.jsx)(d.A,{className:e.imgWrapper,children:(0,P.jsx)("img",{src:s.srcImg,alt:s.title,className:e.tourImage})}),(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 0 0",alignSelf:"stretch",minWidth:0,padding:{xs:t.spacing(0,4),sm:t.spacing(2,0)},gridGap:{xs:t.spacing(2),sm:t.spacing(4)},children:[(0,P.jsx)(p.A,{className:e.tourTitle,children:s.title}),(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 0 0",alignSelf:"stretch",className:e.infoBlock,children:[(0,P.jsx)(p.A,{className:e.fieldLabel,children:(0,P.jsx)(a.A,{id:"hostedTrips.operator",defaultMessage:"Operator"})}),(0,P.jsx)(p.A,{className:e.fieldValue,children:s.operator}),(0,P.jsx)(p.A,{className:e.fieldLabel,children:(0,P.jsx)(a.A,{id:"hostedTrips.minGroupSize",defaultMessage:"Min. group size"})}),(0,P.jsx)(p.A,{className:e.fieldValue,children:s.minGroupSize}),(0,P.jsx)(p.A,{className:e.fieldLabel,children:(0,P.jsx)(a.A,{id:"hostedTrips.tourHighlights",defaultMessage:"Tour Highlights"})}),(0,P.jsx)("ul",{className:e.highlightsList,children:s.highlights.map((e,t)=>(0,P.jsx)("li",{children:e},t))})]}),(0,P.jsxs)(d.A,{display:"flex",justifyContent:"space-between",alignItems:"flex-end",alignSelf:"stretch",children:[(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",alignItems:"flex-start",flex:"1 0 0",children:[(0,P.jsx)(p.A,{className:e.fromText,children:(0,P.jsx)(a.A,{id:"from",defaultMessage:"From"})}),(0,P.jsx)(p.A,{className:e.priceText,children:s.price})]}),(0,P.jsx)(h.A,{color:"primary",className:e.viewTourBtn,children:(0,P.jsx)(dt.A,{href:i(s.url),target:"_blank",rel:"noopener noreferrer",onClick:c,children:(0,P.jsx)(a.A,{id:"view.tour",defaultMessage:"VIEW TOUR"})})})]})]})]})},s.id))})})]})};var ft=s(26033),bt=s(33661),vt=s(43165),jt=s(32262);const At=(0,l.A)(e=>({heading:{fontSize:25,marginBottom:e.spacing(2)},subtitle:{fontSize:16,marginBottom:e.spacing(10)},accordion:{boxShadow:"none",borderBottom:`1px solid ${e.palette.divider}`,"&:before":{display:"none"},"&.Mui-expanded":{margin:0}},accordionSummary:{padding:0,minHeight:56,"&.Mui-expanded":{minHeight:56},"& .MuiAccordionSummary-content":{margin:e.spacing(4,0)},"& .MuiAccordionSummary-content.Mui-expanded":{margin:e.spacing(4,0)}}
1,questionTitle:{fontSize:16,fontWeight:I.vX.EXTRA_BOLD,lineHeight:1.5},accordionDetails:{padding:0,paddingBottom:e.spacing(4)},answerText:{fontSize:16,fontWeight:I.vX.REGULAR,lineHeight:1.75,"& a":{color:e.palette.primary.main,textDecoration:"underline"}}})),yt=Array.from({length:8},(e,t)=>{const s=t+1;return{questionKey:`hostedTrips.faq.q${s}`,answerKey:`hostedTrips.faq.a${s}`}}),wt=()=>{const e=At(),t=(0,y.A)(),s=(0,o.ZY)(),i=(0,_.A)(),r=i(null!==s&&void 0!==s&&s.user.traveller_id?`/profile/${s.user.traveller_id}`:"/profile"),l=i("/f/hostable"),[c,u]=(0,n.useState)(!1),h=e=>(t,s)=>{u(!!s&&e)};return(0,P.jsxs)(d.A,{mt:{xs:2,sm:10},children:[(0,P.jsx)(p.A,{variant:"h3",className:e.heading,children:(0,P.jsx)(a.A,{id:"hostedTrips.faq.title"})}),(0,P.jsx)(p.A,{variant:"body2",color:"textPrimary",className:e.subtitle,children:(0,P.jsx)(a.A,{id:"hostedTrips.faq.subtitle"})}),yt.map((s,n)=>{let{questionKey:i,answerKey:o}=s;const d=`panel${n}`;return(0,P.jsxs)(ft.A,{expanded:c===d,onChange:h(d),className:e.accordion,children:[(0,P.jsx)(bt.A,{expandIcon:(0,P.jsx)(jt.A,{}),className:e.accordionSummary,children:(0,P.jsx)(p.A,{className:e.questionTitle,children:(0,P.jsx)(a.A,{id:i})})}),(0,P.jsx)(vt.A,{className:e.accordionDetails,children:(0,P.jsx)(p.A,{className:e.answerText,color:"textPrimary",dangerouslySetInnerHTML:{__html:t.formatMessage({id:o}).replace(/\n/g,"<br/>").replace("{profileUrl}",r).replace("{hostableUrl}",l)}})})]},d)})]})};var kt=s(84373);const Tt=()=>(0,P.jsxs)(d.A,{children:[(0,P.jsx)(kt.A,{variant:"text",width:220,height:38}),(0,P.jsxs)(d.A,{display:"flex",gridGap:40,mt:6,mb:4,children:[(0,P.jsxs)(d.A,{flex:1,children:[(0,P.jsx)(kt.A,{variant:"rect",width:65,height:69}),(0,P.jsx)(kt.A,{variant:"text",width:"60%",style:{marginTop:16}}),(0,P.jsx)(kt.A,{variant:"text"}),(0,P.jsx)(kt.A,{variant:"text",width:"80%"})]}),(0,P.jsxs)(d.A,{flex:1,children:[(0,P.jsx)(kt.A,{variant:"rect",width:65,height:69}),(0,P.jsx)(kt.A,{variant:"text",width:"60%",style:{marginTop:16}}),(0,P.jsx)(kt.A,{variant:"text"}),(0,P.jsx)(kt.A,{variant:"text",width:"80%"})]}),(0,P.jsxs)(d.A,{flex:1,children:[(0,P.jsx)(kt.A,{variant:"rect",width:65,height:69}),(0,P.jsx)(kt.A,{variant:"text",width:"60%",style:{marginTop:16}}),(0,P.jsx)(kt.A,{variant:"text"}),(0,P.jsx)(kt.A,{variant:"text",width:"80%"})]})]}),(0,P.jsx)(kt.A,{variant:"rect",width:160,height:42,style:{borderRadius:4,marginTop:40,marginBottom:40}}),(0,P.jsx)(kt.A,{variant:"rect",height:200,style:{borderRadius:12,marginBottom:40}}),(0,P.jsx)(kt.A,{variant:"text",width:180,height:38}),(0,P.jsx)(kt.A,{variant:"text",width:"50%"}),(0,P.jsxs)(d.A,{display:"flex",gridGap:24,mt:6,children:[(0,P.jsx)(kt.A,{variant:"rect",style:{flex:1,borderRadius:12,height:140}}),(0,P.jsx)(kt.A,{variant:"rect",style:{flex:1,borderRadius:12,height:140}})]}),(0,P.jsxs)(d.A,{display:"flex",gridGap:24,mt:3,children:[(0,P.jsx)(kt.A,{variant:"rect",style:{flex:1,borderRadius:12,height:140}}),(0,P.jsx)(kt.A,{variant:"rect",style:{flex:1,borderRadius:12,height:140}})]})]}),St="#F6F8FE",Ct=(0,l.A)(e=>({featureImage:{width:65,height:69,objectFit:"contain"},becomeHostBtn:{marginTop:e.spacing(10),marginBottom:e.spacing(10),paddingLeft:e.spacing(4),paddingRight:e.spacing(4)},scheduleMeetingBtn:{marginTop:e.spacing(10),marginBottom:e.spacing(10),marginLeft:e.spacing(4),paddingLeft:e.spacing(4),paddingRight:e.spacing(4)},stepsRow:{gap:e.spacing(6),[e.breakpoints.down("xs")]:{flexDirection:"column"}},stepIconWrapper:{width:28,height:28,color:e.palette.text.secondary,"& svg":{width:28,height:28}},stepTitle:{fontSize:16,fontWeight:I.vX.EXTRA_BOLD,lineHeight:1.5},stepDescription:{fontSize:16,fontWeight:I.vX.REGULAR,lineHeight:1.5},tipBox:{backgroundColor:e.palette.grey[100],borderRadius:2*e.shape.borderRadius,padding:e.spacing(4),gap:10,marginTop:e.spacing(6)},tipIcon:{color:e.palette.text.secondary,flexShrink:0,fontSize:24,width:24,height:24},tipText:{fontSize:16},tipLink:{color:e.palette.primary.main,fontWeight:I.vX.BOLD,textDecoration:"none","&:hover":{textDecoration:"underline"}},featureGrid:{flexWrap:"nowrap",gap:e.spacing(10),[e.breakpoints.down("xs")]:{flexWrap:"wrap",gap:e.spacing(6)}},completedBadge:{gap:e.spacing(1),color:e.palette.success.main,fontSize:14,whiteSpace:"nowrap",borderRadius:"7px",padding:e.spacing(1,3),backgroundColor:e.palette.background.paper},completedIcon:{fontSize:18,color:e.palette.success.main},stepCard:{borderRadius:19,backgroundColor:St},howItWorksOuterIncomplete:{marginTop:e.spacing(7),[e.breakpoints.up("sm")]:{marginTop:e.spacing(15)}},howItWorksOuterComplete:{marginTop:e.spacing(4),[e.breakpoints.up("sm")]:{marginTop:0}},journeyRow:{display:"flex",alignItems:"stretch",alignSelf:"stretch",gap:e.spacing(2),width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}},journeyCard:{display:"flex",flexDirection:"column",flex:"1 0 0",borderRadius:19,backgroundColor:St,transition:"box-shadow 0.2s ease","&:hover":{boxShadow:e.shadows[4]}},journeyCardCompleted:{backgroundColor:"#EFF5EF","&:hover":{boxShadow:"none"}}
1,stepBadge:{width:32,height:32,fontSize:15,fontWeight:I.vX.BOLD,color:e.palette.common.white,backgroundColor:e.palette.primary.main},stepBadgeCompleted:{backgroundColor:e.palette.success.main},stepBadgeIcon:{fontSize:20},decorativeIcon:{color:e.palette.text.disabled,"& svg":{fontSize:22}},journeyCompletedLabel:{color:e.palette.success.main,fontSize:14,fontWeight:I.vX.MEDIUM,whiteSpace:"nowrap"},journeyArrow:{alignSelf:"center",flexShrink:0,color:e.palette.text.disabled,[e.breakpoints.down("sm")]:{transform:"rotate(90deg)"}},journeyCtaButton:{marginTop:e.spacing(4),alignSelf:"flex-start",textTransform:"none"},assistBox:{borderRadius:24,backgroundColor:qe,padding:e.spacing(6),marginTop:e.spacing(10)},startChattingBtn:{marginTop:e.spacing(4),backgroundColor:We,color:Oe,fontWeight:600,textTransform:"none",boxShadow:"none","&:hover":{backgroundColor:We,filter:"brightness(0.96)",boxShadow:"none"}}})),It=e=>{let{icon:t,title:s,description:n}=e;return(0,P.jsxs)(c.A,{item:!0,xs:12,sm:4,children:[(0,P.jsx)(d.A,{mb:6,children:t}),(0,P.jsx)(p.A,{variant:"h5",gutterBottom:!0,style:{fontSize:20},children:s}),(0,P.jsx)(p.A,{variant:"body2",style:{fontSize:16},children:n})]})},_t=e=>{let{step:t,icon:s,title:n,description:i,completed:r}=e;const o=Ct();return(0,P.jsxs)(d.A,{display:"flex",p:6,flexDirection:"column",alignItems:"flex-start",flex:"1 0 0",alignSelf:"stretch",className:o.stepCard,children:[(0,P.jsxs)(d.A,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,P.jsx)(d.A,{display:"flex",alignItems:"center",justifyContent:"center",className:o.stepIconWrapper,children:s}),r&&(0,P.jsxs)(d.A,{display:"flex",alignItems:"center",className:o.completedBadge,children:[(0,P.jsx)(b.A,{className:o.completedIcon}),(0,P.jsx)(a.A,{id:"hostedTrips.completed"})]})]}),(0,P.jsxs)(d.A,{display:"flex",pt:3,flexDirection:"column",alignItems:"flex-start",gridGap:2,alignSelf:"stretch",children:[(0,P.jsxs)(p.A,{className:o.stepTitle,children:[t,".\xa0",n]}),(0,P.jsx)(p.A,{className:o.stepDescription,color:"textPrimary",children:i})]})]})},Nt=e=>{let{step:t,icon:s,titleId:n,descriptionId:i,ctaId:r,hostableToursHref:o}=e;const l=Ct(),c=1===t;return(0,P.jsxs)(d.A,{p:6,className:(0,A.A)(l.journeyCard,c&&l.journeyCardCompleted),children:[(0,P.jsxs)(d.A,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",mb:3,children:[(0,P.jsx)(u.A,{className:(0,A.A)(l.stepBadge,c&&l.stepBadgeCompleted),children:c?(0,P.jsx)(f.A,{className:l.stepBadgeIcon}):t}),c?(0,P.jsx)(p.A,{className:l.journeyCompletedLabel,children:(0,P.jsx)(a.A,{id:"hostedTrips.completed"})}):(0,P.jsx)(d.A,{display:"flex",alignItems:"center",className:l.decorativeIcon,children:s})]}),(0,P.jsx)(p.A,{className:l.stepTitle,gutterBottom:!0,children:(0,P.jsx)(a.A,{id:n})}),(0,P.jsx)(p.A,{className:l.stepDescription,color:"textPrimary",children:(0,P.jsx)(a.A,{id:i})}),r&&(0,P.jsx)(h.A,{variant:"outlined",color:"primary",size:"small",className:l.journeyCtaButton,href:o,target:"_blank",rel:"noopener noreferrer",endIcon:(0,P.jsx)(j.A,{}),children:(0,P.jsx)(a.A,{id:r})})]})},Rt=e=>{let{hostableToursHref:t}=e;const s=Ct();return(0,P.jsx)(d.A,{className:s.journeyRow,mt:10,children:Ne.map((e,i)=>(0,P.jsxs)(n.Fragment,{children:[(0,P.jsx)(Nt,{...e,hostableToursHref:t}),i<Ne.length-1&&(0,P.jsx)(x.A,{className:s.journeyArrow})]},e.step))})},Lt=e=>{let{isFlowComplete:t,hostableToursHref:s,onClick:n,disabled:i}=e;const r=Ct();return t?(0,P.jsx)(h.A,{variant:"contained",color:"primary",className:r.becomeHostBtn,href:s,target:"_blank",rel:"noopener noreferrer",onClick:n,disabled:i,children:(0,P.jsx)(a.A,{id:"hostedTrips.exploreTours"})}):(0,P.jsx)(h.A,{variant:"contained",color:"primary",className:r.becomeHostBtn,onClick:n,disabled:i,children:(0,P.jsx)(a.A,{id:"hostedTrips.becomeAHost"})})},zt=e=>{let{onStartChatting:t}=e;const s=Ct();return(0,P.jsxs)(d.A,{className:s.assistBox,children:[(0,P.jsx)(p.A,{variant:"h6",style:{fontWeight:I.vX.BOLD},children:(0,P.jsx)(a.A,{id:"hostedTrips.aiHostManager.title"})}),(0,P.jsx)(p.A,{variant:"body2",color:"textSecondary",style:{marginTop:4},children:(0,P.jsx)(a.A,{id:"hostedTrips.aiHostManager.description"})}),(0,P.jsx)(p.A,{variant:"body2",color:"textSecondary",style:{marginTop:8,fontStyle:"italic"},children:(0,P.jsx)(a.A,{id:"hostedTrips.aiHostManager.examples"})}),(0,P.jsx)(h.A,{variant:"contained",className:s.startChattingBtn,onClick:t,children:(0,P.jsx)(a.A,{id:"hostedTrips.aiHostManager.cta"})})]})},Bt=()=>{const{fire:e}=(0,C.z1)(),t=(0,y.A)(),s=(0,o.ZY)(),l=(0,w.W6)(),u=Ct(),x=(0,m.A)(),[f,b]=(0,n.use
1State)(null),[j,A]=(0,n.useState)(null),[k,T]=(0,n.useState)(!0),[I,N]=(0,n.useState)(null),[R,L]=(0,n.useState)(!1),z="accepted"===f;const B=(0,n.useCallback)(e=>{N(s=>{var n;return{id:(null!==(n=null===s||void 0===s?void 0:s.id)&&void 0!==n?n:0)+1,message:t.formatMessage({id:e})}})},[t]),E=(0,_.A)(),H=E("/f/hostable"),D=E(null!==s&&void 0!==s&&s.user.traveller_id?`/profile/${s.user.traveller_id}`:"/profile");(0,n.useEffect)(()=>{if(s)return;const{pathname:e,search:t}=window.location,n=`${e}${t}`;l.replace(`/signin?redirect_uri=${encodeURIComponent(n)}`)},[s,l]);const M=(0,n.useRef)(!1);(0,n.useEffect)(()=>{var t;!M.current&&null!==s&&void 0!==s&&null!==(t=s.partner)&&void 0!==t&&t.id&&(M.current=!0,e({ampEvent:"b2b_hosted_trips_page_viewed",ampProperties:{partner_type:s.partner.role,partner_id:s.partner.id}}))},[s,e]),(0,n.useEffect)(()=>{s?S("me","me").then(e=>{var t;b(null!==(t=null===e||void 0===e?void 0:e.status)&&void 0!==t?t:null),A(e)}).catch(()=>{B("hostedTrips.error.loadAwarenessFlow")}).finally(()=>T(!1)):T(!1)},[s,B]);const $=()=>{var t;null!==s&&void 0!==s&&null!==(t=s.partner)&&void 0!==t&&t.id&&(e({ampEvent:"b2b_hosted_trips_cta_clicked",ampProperties:{cta:z?"explore_tours":"become_a_host",partner_type:s.partner.role,partner_id:s.partner.id}}),z||L(!0))},F=()=>{var t;null!==s&&void 0!==s&&null!==(t=s.partner)&&void 0!==t&&t.id&&e({ampEvent:"b2b_hosted_trips_cta_clicked",ampProperties:{cta:"schedule_meeting",partner_type:s.partner.role,partner_id:s.partner.id}})},W=t=>{var n;null!==s&&void 0!==s&&null!==(n=s.partner)&&void 0!==n&&n.id&&e({ampEvent:"hosted_trips_cta_clicked",ampProperties:{cta:t,partner_type:s.partner.role,partner_id:s.partner.id}})},O=(0,n.useCallback)(e=>{A(e),b(e.status)},[]),G=(0,n.useCallback)(()=>{L(!1),S("me","me").then(e=>{var t;A(e),b(null!==(t=null===e||void 0===e?void 0:e.status)&&void 0!==t?t:null)}).catch(()=>{})},[]);return s?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ct,{onLauncherOpen:()=>W("ai_host_manager_pill")}),(0,P.jsx)(i.A,{title:(0,P.jsx)(a.A,{id:"hostedTrips.title"}),subtitle:(0,P.jsx)(a.A,{id:"hostedTrips.subtitle"}),fullView:!0,cardStyle:{height:"auto",overflow:"unset",borderRadius:40},children:(0,P.jsx)(g.A,{elevation:0,children:(0,P.jsx)(d.A,{p:{xs:4,sm:10},children:k?(0,P.jsx)(Tt,{}):(0,P.jsxs)(P.Fragment,{children:[!z&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(d.A,{mb:10,children:(0,P.jsx)(p.A,{variant:"h3",style:{fontSize:25},children:(0,P.jsx)(a.A,{id:"hostedTrips.whyHostedTrips"})})}),(0,P.jsx)(c.A,{container:!0,className:u.featureGrid,children:Ie.map(e=>{let{src:t,alt:s,titleId:n,descriptionId:i}=e;return(0,P.jsx)(It,{icon:(0,P.jsx)("img",{src:t,alt:s,className:u.featureImage}),title:(0,P.jsx)(a.A,{id:n}),description:(0,P.jsx)(a.A,{id:i})},n)})}),(0,P.jsx)(Lt,{isFlowComplete:z,hostableToursHref:H,onClick:$}),(0,P.jsx)(h.A,{variant:"outlined",color:"primary",className:u.scheduleMeetingBtn,href:"https://calendar.app.google/hf37WbmHJ4k5dgug7",target:"_blank",rel:"noopener noreferrer",onClick:F,children:(0,P.jsx)(a.A,{id:"hostedTrips.scheduleMeeting"})}),(0,P.jsx)(xt,{})]}),(0,P.jsxs)(d.A,{className:z?u.howItWorksOuterComplete:u.howItWorksOuterIncomplete,children:[(0,P.jsx)(p.A,{variant:"h3",gutterBottom:!0,style:{fontSize:25},children:(0,P.jsx)(a.A,{id:z?"hostedTrips.startPlanning.title":"hostedTrips.howItWorks"})}),(0,P.jsx)(p.A,{variant:"body2",color:"textPrimary",style:{fontSize:16},children:(0,P.jsx)(a.A,{id:z?"hostedTrips.startPlanning.subtitle":"hostedTrips.howItWorks.subtitle"})}),z?(0,P.jsx)(Rt,{hostableToursHref:H}):(0,P.jsxs)(d.A,{display:"flex",flexDirection:"column",alignItems:"flex-start",gridGap:x.spacing(6),alignSelf:"stretch",mt:10,children:[(0,P.jsx)(d.A,{display:"flex",alignItems:"center",alignSelf:"stretch",width:"100%",className:u.stepsRow,children:_e.slice(0,2).map(e=>{let{step:t,icon:s,titleId:n,descriptionId:i}=e;return(0,P.jsx)(_t,{step:t,icon:s,title:(0,P.jsx)(a.A,{id:n}),description:(0,P.jsx)(a.A,{id:i})},t)})}),(0,P.jsx)(d.A,{display:"flex",alignItems:"center",alignSelf:"stretch",width:"100%",className:u.stepsRow,children:_e.slice(2).map(e=>{let{step:t,icon:s,titleId:n,descriptionId:i}=e;return(0,P.jsx)(_t,{step:t,icon:s,title:(0,P.jsx)(a.A,{id:n}),description:(0,P.jsx)(a.A,{id:i})},t)})})]}),z&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Lt,{isFlowComplete:z,hostableToursHref:H,onClick:$}),(0,P.jsx)(h.A,{variant:"outlined",color:"primary",className:u.scheduleMeetingBtn,href:"https://calendar.app.google/hf37WbmHJ4k5dgug7",target:"_blank",rel:"noopener noreferrer",onClick:F,children:(0,P.jsx)(a.A,{id:"hostedTrips.scheduleMeeting"})}),(0,P.jsx)(zt,{onStartChatting:()=>{var e;W("ai_host_manager_start_chatting"),window.dispatchEvent(new CustomEvent(ot,{detail:{question:e}}))}})]}),!z&&(0,P.jsx)(d.A,{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",className:u.tipBox,children:(0,P.jsxs)(d.A,{display:"flex",alignItems:"flex-start",gridGap:4,alignSelf:"stretch",children:[(0,P.jsx)(v.A,{className:u.tipIcon}),(0,P.jsxs)(p.A,{className:u.tipText,children:[(0,P.jsx)("strong",{children:(0,P.jsx)(a.A,{id:"hostedTrips.hostTip"})})," ",(0,P.jsx)(a.A,{id:"hostedTrips.hostTip.description"})," ",(0,P.jsx)("a",{href:D,className:u.tipLink,children:(0,P.jsx)(a.A,{id:"hostedTrips.hostTip.link"})})]})]})})]}),z&&(0,P.jsx)(He,{}),z&&(0,P.jsx)(d.A,{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",className:u.tipBox,children:(0,P.jsxs)(d.A,{display:"flex",alignItems:"flex-start",gridGap:4,alignSelf:"stretch",children:[(0,P.jsx)(v.A,{className:u.tipIcon}),(0,P.jsxs)(p.A,{className:u.tipText,children:[(0,P.jsx)(a.A,{id:"hostedTrips.hostTip.host.description"})," ",(0,P.jsx)("a",{href:D,className:u.tipLink,target:"_blank",rel:"noopener noreferrer",children:(0,P.jsx)(a.A,{id:"hostedTrips.hostTip.link"})})]})]})}),(0,P.jsx)(Lt,{isFlowComplete:z,hostableToursHref:H,onClick:$}),(0,P.jsx)(wt,{})]})})})}),I?(0,P.jsx)(r.A,{variant:"error",message:I.message,anchorOrigin:{vertical:"top",horizontal:"right"},onClose:()=>N(null)},I.id):null,(0,P.jsx)(ge,{open:R,onClose:G,onSuccess:()=>{b("accepted")},onFlowPersisted:O,savedFlow:j})]}):(0,P.jsx)(Tt,{})}},24817(e,t,s){var n=s(65043),i=s(50631),r=s(70579);const o=n.forwardRef((e,t)=>
1(0,r.jsx)(i.A,{direction:"up",ref:t,...e}));s.d(t,["A",0,o])}}]); 2//# sourceMappingURL=8329.59be9b0a.chunk.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.