1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a783dfb6-6213-5197-b655-26de95951044")}catch(e){}}(); 3import{a as c,j as e,i as h,u as I,N as f}from"./vendor-DUCtYsFH.js";import{aJ as d,bJ as N,aI as C,aV as w,b as k,a2 as v,bj as H,bI as b,ae as J,L as g}from"./index-BjDcYlu5.js";import{u as V,I as P}from"./useTierItineraries-D0S4hJcQ.js";import{D as $,F as A,C as _,P as B}from"./index-CZSgF7WE.js";import{u as z}from"./useProfileManagement-jAAIfAqc.js";import"./vendor-capacitor-DDW69Cdi.js";import"./vendor-sentry-C0-CjQzI.js";import"./index-HQMzb8pZ.js";import"./index-DH6yQXR4.js";import"./index-DaG8Vjev.js";import"./index-D-5tviM6.js";import"./GroupIcon-CGhI_h2U.js";import"./HostCriteriaHelper-C5o0h1Il.js";import"./LicenseIcon-B_qxANnG.js";import"./MarkerIcon-B8bE3H6u.js";import"./prettyDuration-DlWiv9bN.js";import"./formatDecimalHours-CwHMTxqH.js";import"./useJoinItineraries-B8ug7pzv.js";import"./usePotentialItineraries-B-70wwwL.js";import"./candidate-UMkHhfic.js";import"./index-BWgOtdxw.js";import"./ExternalLink-De46ECXs.js";import"./openExternalLink-CMqRRxaA.js";import"./index-D4MUTjfA.js";import"./useHostStatus-Bjf1d4Rt.js";import"./useVerifications-D7cdQurQ.js";import"./useAccount-DoY4L3lu.js";const E="_FeedbackForm_fxab2_7",L="_FormTitle_fxab2_21",O="_SubmitButton_fxab2_52",p={FeedbackForm:E,FormTitle:L,SubmitButton:O};function D({onSubmit:t}){const{t:a}=c(),o=()=>{t()};return e.jsx(d,{topSpacing:!0,bottomSpacing:!0,children:e.jsxs("form",{onSubmit:o,className:p.FeedbackForm,children:[e.jsx("h3",{className:p.FormTitle,children:a("host-onboarding.feedback.prompt",{defaultValue:"If you have any suggestions, remarks or ideas for the tours:"})}),e.jsx("a",{className:p.SubmitButton,href:N("host-onboarding-feedback"),target:"_blank",rel:"noopener noreferrer",onClick:o,children:a("host-onboarding.feedback.letUsKnow",{defaultValue:"Please let us know!"})})]})})}const U="_HeaderContainer_2d8zg_7",R="_Texts_2d8zg_11",Y="_Title_2d8zg_15",G="_Explanation_2d8zg_26",n={HeaderContainer:U,Texts:R,Title:Y,Explanation:G};function K(){const{t}=c();return e.jsxs(d,{component:"header",className:n.HeaderContainer,children:[e.jsx("a",{className:n.BackButton,href:"https://www.withlocals.com/become-a-host/overview",children:e.jsx(C,{direction:"left",height:14})}),e.jsxs("div",{className:n.Texts,children:[e.jsx("h1",{className:n.Title,children:t("host-onboarding.join.title",{defaultValue:"Join Withlocals experiences you want to host"})}),e.jsx(w,{className:n.Explanation,children:t("host-onboarding.join.description",{defaultValue:"You are almost ready to join our host community and start hosting. Just select the experiences you want to join below and proceed to the next step!"})})]})]})}const M="_TierHeader_1yxbi_7",W="_Icon_1yxbi_19",q="_Texts_1yxbi_33",Q="_Title_1yxbi_38",X="_NrOfItineraries_1yxbi_51",r={TierHeader:M,Icon:W,Texts:q,Title:Q,NrOfItineraries:X},Z={city:{title:h.t("host-onboarding.tier.cityTours",{defaultValue:"City tours"}),icon:e.jsx(_,{})},food:{title:h.t("host-onboarding.tier.foodTours",{defaultValue:"Food tours"}),icon:e.jsx(A,{})},"day-trips":{title:h.t("host-onboarding.tier.dayTrips",{defaultValue:"Day trips"}),icon:e.jsx($,{})}};function ee({tier:t,size:a}){const{t:o}=c(),{title:i,icon:l}=Z[t]||{title:t,icon:e.jsx(_,{})};return e.jsx(d,{children:e.jsxs("div",{className:r.TierHeader,children:[e.jsx("figure",{className:r.Icon,children:l}),e.jsxs("div",{className:r.Texts,children:[e.jsx("h4",{className:r.NrOfItineraries,children:o("host-onboarding.tier.experienceCount",{defaultValue:"{count} experiences",count:a})}),e.jsx("h3",{className:r.Title,children:o("host-onboarding.tier.inYourCity",{defaultValue:"{title} in your city",title:i})})]})]})})}const te=(t,a)=>!!t.find(o=>o.id===a&&o.isCompleted),oe="_AlreadyJoined_hv4ky_42",ae={AlreadyJoined:oe},se={"food-tours":"food","city-tours":"city","day-trips":"day-trips"};function Ve(){const{t}=c(),a=k(),{account:o,loading:i}=v(),{status:l,data:j}=z(),{tier:u}=I(),{itineraries:x,isPending:y}=V(),{user:s,loading:m}=H();if(!o&&!i)return e.jsx(f,{to:"/login",replace:!0});if(!b((s==null?void 0:s.roles)??[],["onboarding_host","onboarding_host_webinar"])&&!m)return e.jsx(f,{to:"/host-dashboard/home/",replace:!0});if(l!==J)return e.jsx(g,{});const T=te(j,"join-originals"),S=()=>{a("/host-dashboard/onboarding/feedback")},F=()=>b((s==null?void 0:s.roles)??[],"host")?a("/host-dashboard/profile/",{replace:!0}):window.location.replace("https://www.withlocals.com/become-a-host/overview");return e.jsxs(e.Fragment,{children:[e.jsx(K,{}),y?e.jsx(g,{}):e.jsxs(e.Fragment,{children:[e.jsx(ee,{tier:u&&se[u]||u||"",size:x.length}),e.jsx(d,{children:e.jsx(P,{itineraries:x,onSuccess:F})})]}),!i&&!m&&T&&e.jsx("div",{className:ae.AlreadyJoined,children:t("host-onboarding.join.alreadyJoined",{defaultValue:"You have already joined a few tours."})}),!i&&!m&&e.jsx(D,{onSubmit:S}),e.jsx(B,{})]})}
3export{Ve as default}; 4//# sourceMappingURL=index-DnnZB1Iu.js.map 5 6//# debugId=a783dfb6-6213-5197-b655-26de95951044
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.