1import{F as u}from"./FormHeader-d334e261.js";import{n,m as c,c as i}from"./index-4a0a96ce.js";import{F as d}from"./FormTags-692eb90f.js";import{B as g,P as v}from"./ProfilePictureCropper-bd9fe07e.js";import{a as o}from"./axios-be910e95.js";import{F as b,a as _}from"./FormTextArea-24818eba.js";import{F as p}from"./FormInput-827d940d.js";import"./LogoWithTextDark-1bf5d363.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="33d52998-e89c-482e-85fd-048dcf55114c",r._sentryDebugIdIdentifier="sentry-dbid-33d52998-e89c-482e-85fd-048dcf55114c")}catch{}})();const h={name:"ProgressBar",props:{value:{type:Number,required:!0},maxSteps:{type:Number,required:!0}},computed:{localStep:{get(){return this.value},set:function(r){this.$emit("input",r)}}},methods:{makeCompleted(){this.active=!this.active},prev(){this.value>0&&this.localStep--},next(){this.value<this.maxSteps&&this.localStep++}}};var y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"stepper-wrapper"},[t("div",{staticClass:"stepper-item",class:{completed:e.value>0,active:e.value===0}},[t("div",{staticClass:"step-counter"}),t("div",{staticClass:"step-name text-center"},[e._v(" Services ")])]),t("div",{staticClass:"stepper-item",class:{completed:e.value>1,active:e.value===1,"text-muted":e.value<1}},[t("div",{staticClass:"step-counter"}),t("div",{staticClass:"step-name text-center"},[e._v(" Contact ")])]),t("div",{staticClass:"stepper-item",class:{completed:e.value>2,active:e.value===2,"text-muted":e.value<2}},[t("div",{staticClass:"step-counter"}),t("div",{staticClass:"step-name text-center"},[e._v(" Personalization ")])])])},f=[],F=n(h,y,f,!1,null,"d3901cf7",null,null);const C=F.exports;const x={"Recruitment planning":1,"Market research":2,"Acquisition strategy":3,Sourcing:4,"Screening calls":5,Interviewing:6,"Pipeline management":7,"Recruitment marketing":8,"Employer branding":9,"Salary negotiations":10,"Recruitment software implementation":11,"Recruitment process development":12},w={Entry:1,Junior:2,"Mid-level":3,Senior:4,Expert:5},k={name:"RecruiterSignupDetailsStep1",props:{errors:{type:Object,default:()=>({})}},components:{FormTags:d,BadgeCheckbox:g,FormSelect:b,FormInput:p},data(){return{countryOptions:[],servicesOptions:[],seniorityOptions:[],pricingModelOptions:[],typeOptions:[{text:"Agency",value:"Agency"},{text:"Recruiter",value:"Freelancer"}],languageOptions:[],employeesOptions:[{text:"2-10",value:"2-10"},{text:"11-50",value:"11-50"},{text:"51-200",value:"51-200"},{text:"201-500",value:"201-500"},{text:"501-1000",value:"501-1000"},{text:"1001-5000",value:"1001-5000"},{text:"5001-10000",value:"5001-10000"},{text:"10000+",value:"10000+"}]}},computed:{...c(i,["signupForm"]),displaynamePlaceholder(){return this.signupForm.type==="Agency"?"Agency name":`${this.signupForm.first_name} ${this.signupForm.last_name}`}},watch:{"signupForm.type":function(r){r==="Freelancer"?this.signupForm.employees="":this.signupForm.seniority=""}},created(){o.get("/public/v2/values/languages").then(({data:r})=>{let e=this.mapValues(r);e=e.sort((t,s)=>t.label>s.label?1:-1),this.languageOptions=e}),o.get("/public/v2/values/pricing_models").then(({data:r})=>{let e=this.mapValues(r);e=e.map(t=>t),e=e.filter(t=>t.label!=="Other"),this.pricingModelOptions=e}),o.get("/public/v2/values/seniorities").then(({data:r})=>{let e=this.mapValues(r.filter(t=>t.label!=="Not important"),!0);e=e.map(t=>(t.order=w[t.label],t)),e=e.sort((t,s)=>t.order>s.order?1:-1),this.seniorityOptions=e}),o.get("/public/v2/values/countries").then(({data:r})=>{let e=this.mapValues(r);e=e.sort((t,s)=>t.label>s.label?1:-1),e.unshift({value:null,text:"Select country"}),this.countryOptions=e}),o.get("/public/v2/values/services").then(({data:r})=>{let e=this.mapValues(r);e=e.map(t=>(t.order=x[t.label],t)),e=e.sort((t,s)=>t.order>s.order?1:-1),this.servicesOptions=e})},methods:{mapValues(r){return r.map(e=>(e.value=e.id,e.text=e.label,e))}}};var S=function(){var e=this,t=e._self._c;return t("b-row",[t("b-col",[t("b-row",{staticClass:"mt-3 mb-5"}
1,[t("b-col",{staticClass:"text-center h7"},[e._v(" Services overview ")])],1),t("b-row",{staticClass:"m-0 main-row p-3"},[t("b-col",{staticClass:"mt-3 mb-4"},[t("b-col",{staticClass:"mb-4",attrs:{cols:"12",lg:"7"}},[t("label",{staticClass:"h8"},[e._v("Profile type "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("BadgeCheckbox",{attrs:{name:"type",options:e.typeOptions,required:"",limit:1},model:{value:e.signupForm.type,callback:function(s){e.$set(e.signupForm,"type",s)},expression:"signupForm.type"}})],1),e.signupForm.type==="Agency"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",lg:"7"}},[t("label",{staticClass:"h8"},[e._v("# of employees "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("BadgeCheckbox",{attrs:{name:"employees",options:e.employeesOptions,required:"",limit:1},model:{value:e.signupForm.employees,callback:function(s){e.$set(e.signupForm,"employees",s)},expression:"signupForm.employees"}}),e.errors.employees?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.employees)+" ")])]):e._e()],1):e._e(),e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",lg:"7"}},[t("label",{staticClass:"h8"},[e._v("Seniority "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("BadgeCheckbox",{attrs:{name:"type",options:e.seniorityOptions,required:"",limit:1},model:{value:e.signupForm.seniority,callback:function(s){e.$set(e.signupForm,"seniority",s)},expression:"signupForm.seniority"}}),e.errors.seniority?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.seniority)+" ")])]):e._e()],1):e._e(),e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",lg:"7"}},[t("FormInput",{attrs:{label:"Display name",name:"displayname",placeholder:e.displaynamePlaceholder},model:{value:e.signupForm.displayname,callback:function(s){e.$set(e.signupForm,"displayname",s)},expression:"signupForm.displayname"}})],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",lg:"7"}},[t("FormInput",{attrs:{label:"Agency name",name:"displayname",placeholder:e.displaynamePlaceholder},model:{value:e.signupForm.displayname,callback:function(s){e.$set(e.signupForm,"displayname",s)},expression:"signupForm.displayname"}})],1):e._e(),t("b-col",{staticClass:"mb-4",attrs:{cols:"12",lg:"7"}},[e.signupForm.type==="Freelancer"?t("label",{staticClass:"h8"},[e._v(" Where are you based? "),t("span",{staticClass:"text-primary"},[e._v("*")])]):e._e(),e.signupForm.type==="Agency"?t("label",{staticClass:"h8"},[e._v(" Where is your agency based? "),t("span",{staticClass:"text-primary"},[e._v("*")])]):e._e(),t("FormSelect",{staticClass:"select-small-font",attrs:{options:e.countryOptions,placeholder:"Select country"},model:{value:e.signupForm.country,callback:function(s){e.$set(e.signupForm,"country",s)},expression:"signupForm.country"}}),e.errors.country?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.country)+" ")])]):e._e()],1),t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[e.signupForm.type==="Freelancer"?t("label",{staticClass:"h8"},[e._v("Services provided â how can you help companies? "),t("span",{staticClass:"text-primary"},[e._v("*")])]):e._e(),e.signupForm.type==="Agency"?t("label",{staticClass:"h8"},[e._v("Services provided â how can your agency help companies? "),t("span",{staticClass:"text-primary"},[e._v("*")])]):e._e(),t("FormTags",{staticClass:"borderless-tags",attrs:{name:"services",options:e.servicesOptions,"button-text":"Choose all services that apply",required:""},model:{value:e.signupForm.services,callback:function(s){e.$set(e.signupForm,"services",s)},expression:"signupForm.services"}}),e.errors.services?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}
1),e._v(" "+e._s(e.errors.services)+" ")])]):e._e()],1),t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"12"}},[t("label",{staticClass:"h8"},[e._v("Preferred compensation model? "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("p",{staticClass:"h9"},[e._v(" Select as many as suitable. ")]),t("BadgeCheckbox",{attrs:{name:"pricing_models",options:e.pricingModelOptions,required:""},model:{value:e.signupForm.pricing_models,callback:function(s){e.$set(e.signupForm,"pricing_models",s)},expression:"signupForm.pricing_models"}}),e.errors.pricing_models?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.pricing_models)+" ")])]):e._e()],1),t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("label",{staticClass:"h8"},[e._v("Working languages "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("FormTags",{staticClass:"borderless-tags",attrs:{name:"languages",options:e.languageOptions,"button-text":"Add languages",required:""},model:{value:e.signupForm.languages,callback:function(s){e.$set(e.signupForm,"languages",s)},expression:"signupForm.languages"}}),e.errors.languages?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.languages)+" ")])]):e._e()],1)],1)],1)],1)],1)},$=[],A=n(k,S,$,!1,null,"c84eb9d1",null,null);const I=A.exports;const O={name:"RecruiterSignupDetailsStep3",props:{errors:{type:Object,default:()=>({})}},components:{FormInput:p},data(){return{checkIconColor:"#39364F"}},computed:{...c(i,["signupForm"]),disabled(){return this.signupForm.availability!=="Available from"}},methods:{onSubmit(r){r.preventDefault()},validateField(r){this.$refs[r].$el.reportValidity()}}};var P=function(){var e=this,t=e._self._c;return t("b-container",{staticClass:"main-container d-flex justify-content-center mt-5"}
1,[t("b-form",{staticClass:"w-100",on:{submit:e.onSubmit}},[t("b-row",{staticClass:"mt-3 mb-5"},[t("b-col",{staticClass:"text-center h7"},[e._v(" Availability & contact details ")])],1),t("b-row",{staticClass:"main-row pl-3 pr-3"},[t("b-col",[t("b-row",[t("b-col",{staticClass:"col-md-7 mt-3"},[t("label",{staticClass:"h8"},[e._v(" Availability "),t("span",{staticClass:"text-primary"},[e._v("*")])]),e.signupForm.type==="Freelancer"?t("p",{staticClass:"h9"},[e._v(" Are you currently available to take on new clients? ")]):e._e(),e.signupForm.type==="Agency"?t("p",{staticClass:"h9"},[e._v(" Is your agency available to take on new clients? ")]):e._e(),t("b-form-group",[t("b-form-radio-group",{staticClass:"test",model:{value:e.signupForm.availability,callback:function(s){e.$set(e.signupForm,"availability",s)},expression:"signupForm.availability"}},[t("b-form-radio",{attrs:{value:"Available"}},[t("p",{staticClass:"pt-1 h9"},[e._v(" Available ")])]),t("b-form-radio",{attrs:{value:"Not available"}},[t("p",{staticClass:"pt-1 h9"},[e._v(" Not available ")])]),t("b-form-radio",{attrs:{value:"Available from"}},[t("p",{staticClass:"pt-1 h9"},[e._v(" Available from ")])])],1)],1),e.errors.availability?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.availability)+" ")])]):e._e(),e.signupForm.availability==="Available from"?t("b-form-datepicker",{staticClass:"datepicker",attrs:{name:"datepicker",disabled:e.disabled,size:"sm",placeholder:"Choose Date","date-format-options":{year:"numeric",month:"numeric",day:void 0}},model:{value:e.signupForm.available_from,callback:function(s){e.$set(e.signupForm,"available_from",s)},expression:"signupForm.available_from"}}):e._e()],1)],1),e.signupForm.type==="Agency"?t("b-row",[t("b-col",{staticClass:"col-xl-7 my-3"},[t("b-row",[t("b-col",{staticClass:"tip px-3 py-3"},[t("span",{style:{fill:e.checkIconColor}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"18"}},[t("g",[t("path",{attrs:{fill:"none",d:"M0 0h24v24H0z"}}),t("path",{attrs:{d:"M9.973 18H11v-5h2v5h1.027c.132-1.202.745-2.194 1.74-3.277.113-.122.832-.867.917-.973a6 6 0 1 0-9.37-.002c.086.107.807.853.918.974.996 1.084 1.609 2.076 1.741 3.278zM10 20v1h4v-1h-4zm-4.246-5a8 8 0 1 1 12.49.002C17.624 15.774 16 17 16 18.5V21a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-2.5C8 17 6.375 15.774 5.754 15z"}})])])]),t("label",{staticClass:"h8 ml-1"},[e._v("Tip from Relancer: agency contact details")]),t("p",{staticClass:"h9 mb-0"},[e._v(" We highly recommend providing your agency's primary contact person's LinkedIn URL, email, and phone number ("),t("strong",[e._v("not")]),e._v(" the agency's general contact details) since clients prefer connecting with a real person rather than a generic profile or email. ")])])],1)],1)],1):e._e(),t("b-row",[e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"col-xl-7 mt-3"},[t("FormInput",{attrs:{type:"url",label:"Your LinkedIn profile (URL)",placeholder:"https://www.linkedin.com/in/","instant-validate":!0,error:!!e.errors.linkedin,hint:e.errors.linkedin},model:{value:e.signupForm.linkedin,callback:function(s){e.$set(e.signupForm,"linkedin",s)},expression:"signupForm.linkedin"}})],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"col-xl-7 mt-3"},[t("FormInput",{attrs:{type:"url",label:"Contact person's LinkedIn profile (URL)",placeholder:"https://www.linkedin.com/in/","instant-validate":!0,error:!!e.errors.linkedin},model:{value:e.signupForm.linkedin,callback:function(s){e.$set(e.signupForm,"linkedin",s)},expression:"signupForm.linkedin"}}),e.errors.linkedin?t("div",{staticClass:"text-danger small mt-1"},[e._v(" "+e._s(e.errors.linkedin)+" ")]):e._e()],1):e._e()],1),t("b-row",[e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"col-xl-7 mt-4"},[t("FormInput",{attrs:{label:"Contact email",type:"email",placeholder:"[email protected]","instant-validate":!0,error:!!e.errors.contact_email,hint:e.errors.contact_email},model:{value:e.signupForm.contact_email,callback:function(s){e.$set(e.signupForm,"contact_email",s)},expression:"signupForm.contact_email"}}
1)],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"col-xl-7 mt-4"},[t("FormInput",{attrs:{label:"Contact person's email",type:"email",placeholder:"[email protected]","instant-validate":!0,error:!!e.errors.contact_email,hint:e.errors.contact_email},model:{value:e.signupForm.contact_email,callback:function(s){e.$set(e.signupForm,"contact_email",s)},expression:"signupForm.contact_email"}})],1):e._e()],1),t("b-row",[e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"col-xl-7 mt-4"},[t("FormInput",{attrs:{label:"Contact phone number",placeholder:"Country code + phone number"},model:{value:e.signupForm.contact_phone,callback:function(s){e.$set(e.signupForm,"contact_phone",s)},expression:"signupForm.contact_phone"}})],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"col-xl-7 mt-4"},[t("FormInput",{attrs:{label:"Contact person's phone number",placeholder:"Country code + phone number"},model:{value:e.signupForm.contact_phone,callback:function(s){e.$set(e.signupForm,"contact_phone",s)},expression:"signupForm.contact_phone"}})],1):e._e()],1),t("b-row",[e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"col-xl-7 mt-4 mb-5"},[t("FormInput",{attrs:{type:"url",label:"Your website (URL)",placeholder:"https://eepos.ee/","instant-validate":!0,error:!!e.errors.website,hint:e.errors.website},model:{value:e.signupForm.website,callback:function(s){e.$set(e.signupForm,"website",s)},expression:"signupForm.website"}})],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"col-xl-7 mt-4 mb-5"},[t("FormInput",{attrs:{type:"url",label:"Agency website (URL)",placeholder:"https://eepos.ee/","instant-validate":!0,error:!!e.errors.website,hint:e.errors.website},model:{value:e.signupForm.website,callback:function(s){e.$set(e.signupForm,"website",s)},expression:"signupForm.website"}})],1):e._e()],1)],1)],1)],1)],1)},R=[],D=n(O,P,R,!1,null,"2bdb178b",null,null);const E=D.exports;const q={name:"RecruiterSignupDetailsStep4",components:{FormTextArea:_,FormInput:p,ProfilePictureCropper:v},props:{errors:{type:Object,default:()=>({})}},computed:{...c(i,["signupForm"])},methods:{onSubmit(r){r.preventDefault()}}};var T=function(){var e=this,t=e._self._c;return t("b-container",{staticClass:"main-container d-flex justify-content-center mt-5"}
1,[t("b-form",{on:{submit:e.onSubmit}},[t("b-row",{staticClass:"mt-3 mb-5"},[e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"text-center h7"},[e._v(" About you ")]):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"text-center h7"},[e._v(" About the agency ")]):e._e()],1),t("b-row",{staticClass:"main-row pl-3 pr-3"},[t("b-col",{staticClass:"mt-5 mb-4"},[t("b-row",[e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("FormTextArea",{attrs:{label:"Your title or one-liner",name:"title",required:"",maxlength:255,rows:2,placeholder:"e.g. Sales & Marketing Recruiter | North America & LATAM"},model:{value:e.signupForm.title,callback:function(s){e.$set(e.signupForm,"title",s)},expression:"signupForm.title"}}),e.errors.title?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.title)+" ")])]):e._e()],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("FormTextArea",{attrs:{label:"Agency title or one-liner",name:"title",required:"",maxlength:255,rows:2,placeholder:"e.g. Tech & Engineering Recruitment Firm | EMEA & APAC"},model:{value:e.signupForm.title,callback:function(s){e.$set(e.signupForm,"title",s)},expression:"signupForm.title"}}),e.errors.title?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.title)+" ")])]):e._e()],1):e._e()],1),t("b-row",[t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("label",{staticClass:"h8"},[e._v(" "+e._s(e.signupForm.type==="Agency"?"Agency logo":"Profile picture")+" ")]),t("ProfilePictureCropper",{attrs:{placeholder:e.signupForm.type==="Agency"?"/images/upload_agency_logo.svg":"/images/file_upload.svg"},model:{value:e.signupForm.profile_picture,callback:function(s){e.$set(e.signupForm,"profile_picture",s)},expression:"signupForm.profile_picture"}})],1)],1),e.signupForm.type==="Freelancer"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("label",{staticClass:"h8"},[e._v(" Description "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("p",{staticClass:"h9"},[e._v(" What makes you special? Describe your superskills and distinctive experiences with 3-5 sentences. Good luck! ðª ")]),t("FormTextArea",{attrs:{name:"description",required:"",rows:5,maxlength:1e3,placeholder:"e.g. I'm the recruiter who finds the people others can't. I fill tech roles in 1 week, sales teams in 2, and once hired a CFO on a beach call. I love fast hiring, good coffee, and beating agency benchmarks by miles."},model:{value:e.signupForm.description,callback:function(s){e.$set(e.signupForm,"description",s)},expression:"signupForm.description"}}),e.errors.description?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.description)+" ")])]):e._e()],1):e._e(),e.signupForm.type==="Agency"?t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("label",{staticClass:"h8"},[e._v(" Description "),t("span",{staticClass:"text-primary"},[e._v("*")])]),t("p",{staticClass:"h9"},[e._v(" What makes your agency special? Describe the superskills and distinctive experiences with 3-5 sentences. Good luck! ðª ")]),t("FormTextArea",{attrs:{name:"description",required:"",rows:5,maxlength:1e3,placeholder:"e.g. We're a boutique recruitment firm specializing in tech, sales, and executive roles across Europe and Asia. With over 10 years of experience and a 90% placement success rate, we help startups and global companies hire top talent fast."},model:{value:e.signupForm.description,callback:function(s){e.$set(e.signupForm,"description",s)},expression:"signupForm.description"}}),e.errors.description?t("div",{staticClass:"form-input error"},[t("label",{staticClass:"hint"},[t("i",{staticClass:"vertical-bottom ri-error-warning-line"}),e._v(" "+e._s(e.errors.description)+" ")])]):e._e()],1):e._e(),t("b-col",{staticClass:"mb-4",attrs:{cols:"12",xl:"7"}},[t("label",{staticClass:"h8 d-inline"},[e._v(" Stand out with a video intro (URL) ")]),t("p",{staticClass:"h9"},[e._v(" Adding a video intro is optional. See "),t("a",{staticClass:"text-underline",attrs:{target:"_blank",href:"https://relancer.com/blog/optimize-relancer-profile/#video-introduction-optional"}}
1,[e._v(" our guide ")]),e._v(" for content. ")]),t("FormInput",{attrs:{placeholder:"https://www.loom.com/embed/","instant-validate":!0,error:!!e.errors.video,hint:e.errors.video},model:{value:e.signupForm.video,callback:function(s){e.$set(e.signupForm,"video",s)},expression:"signupForm.video"}})],1)],1)],1)],1)],1)},M=[],N=n(q,T,M,!1,null,"39d36cee",null,null);const B=N.exports;const V={name:"FormFooter",props:{value:{type:Number,required:!0},maxSteps:{type:Number,required:!0}},data(){return{submitting:!1}},computed:{...c(i,["signupForm"])},methods:{validate(){const r={},e=this.signupForm;return this.value===0&&(e.type==="Agency"&&!e.employees&&(r.employees="Please select number of employees"),e.type==="Freelancer"&&!e.seniority&&(r.seniority="Please select your seniority level"),e.country||(r.country="Please select a country"),e.services.length||(r.services="Please select at least one service"),e.pricing_models.length||(r.pricing_models="Please select at least one pricing model"),e.languages.length||(r.languages="Please select at least one language")),this.value===1&&(e.availability||(r.availability="Please select your availability")),this.value===2&&(e.title||(r.title="Title is required"),e.description||(r.description="Description is required")),Object.keys(r).length?r:null},prev(){if(this.value>0){const r=this.value-1;this.$emit("input",r),window.scrollTo(0,0)}else this.value===0&&this.$router.push("/signup/recruiter/goals?token="+this.$route.query.token)},async next(){var e,t;if(this.submitting||this.value>=this.maxSteps)return;const r=this.validate();if(r){this.$emit("validate-errors",r);return}this.submitting=!0;try{await i().updateSignup(this.$route.query.token),this.$posthog.capture(`signup_details_step${this.value+1}_completed`),this.$emit("input",this.value+1),window.scrollTo(0,0)}catch(s){const a=(t=(e=s==null?void 0:s.response)==null?void 0:e.data)==null?void 0:t.errors;if(a&&a.length){const l={};a.forEach(m=>{l[m.field]=m.message}),this.$emit("validate-errors",l)}else this.$bvToast.toast("Something went wrong. Please try again.",{title:"Error",variant:"danger",autoHideDelay:3e3,solid:!0})}finally{this.submitting=!1}},submit(){const r=this.validate();if(r){this.$emit("validate-errors",r);return}this.$emit("submit")}}};var L=function(){var e=this,t=e._self._c;return t("b-navbar",{staticClass:"mt-3 mb-5 footer-color container",staticStyle:{"max-width":"800px",padding:"0 15px"},attrs:{toggleable:"false"}},[t("b-navbar-nav",{},[t("b-nav-item",{staticClass:"h9 small-btn mt-1 px-0",on:{click:e.prev}},[e._v(" Previous step ")])],1),t("b-navbar-nav",{staticClass:"right-navbar"},[e.value<e.maxSteps?t("b-btn",{staticClass:"next-btn",attrs:{variant:"ghost",disabled:e.submitting},on:{click:e.next}},[e._v(" Next Step ")]):e._e(),e.value===e.maxSteps?t("b-btn",{staticClass:"submit-btn",attrs:{disabled:e.submitting,variant:"primary"},on:{click:e.submit}},[e._v(" Submit profile ")]):e._e()],1)],1)},z=[],W=n(V,L,z,!1,null,"e979ca0b",null,null);const j=W.exports;const U={name:"SignupForm",components:{FormHeader:u,ProgressBar:C,DetailsStep1:I,DetailsStep3:E,DetailsStep4:B,SignupFooter:j},data(){return{activeStep:0,maxSteps:2,submitting:!1,submitError:null,errors:{}}},computed:{...c(i,["signupForm"])},watch:{activeStep(){this.errors={}},"signupForm.employees":function(){this.$delete(this.errors,"employees")},"signupForm.seniority":function(){this.$delete(this.errors,"seniority")},"signupForm.country":function(){this.$delete(this.errors,"country")},"signupForm.services":function(){this.$delete(this.errors,"services")},"signupForm.pricing_models":function(){this.$delete(this.errors,"pricing_models")},"signupForm.languages":function(){this.$delete(this.errors,"languages")},"signupForm.availability":function(){this.$delete(this.errors,"availability")},"signupForm.linkedin":function(){this.$delete(this.errors,"linkedin")},"signupForm.website":function(){this.$delete(this.errors,"website")},"signupForm.contact_email":function(){this.$delete(this.errors,"contact_email")},"signupForm.title":function(){this.$delete(this.errors,"title")},"signupForm.description":function(){this.$delete(this.errors,"description")}},methods:{onValidateErrors(r){this.errors=r},onSubmit(){this.submitting||(this.submitting=!0,this.submitError=null,i().updateSignup(this.$route.query.token).then(()=>{this.$posthog.capture("signup_completed"),this.$router.push("/login")}
1).catch(r=>{var t,s;const e=(s=(t=r==null?void 0:r.response)==null?void 0:t.data)==null?void 0:s.errors;if(e&&e.length){const a={};e.forEach(l=>{a[l.field]=l.message}),this.errors=a,this.submitError="Please fix the errors and try again."}else this.submitError="Something went wrong. Please check your details and try again."}).finally(()=>{this.submitting=!1}))}}};var H=function(){var e=this,t=e._self._c;return t("b-container",{staticClass:"p-0",staticStyle:{background:"#F8F6F7"},attrs:{fluid:""}},[t("FormHeader"),t("b-container",{staticClass:"main-container d-flex justify-content-center mt-5"},[t("b-form",{staticClass:"w-100",on:{submit:e.onSubmit}},[t("b-row",[t("b-col",{staticClass:"ml-2 mr-2 mb-3"},[t("ProgressBar",{attrs:{"max-steps":e.maxSteps},model:{value:e.activeStep,callback:function(s){e.activeStep=s},expression:"activeStep"}})],1)],1),e.submitError?t("b-alert",{staticClass:"mt-3",attrs:{variant:"danger",show:""}},[e._v(" "+e._s(e.submitError)+" ")]):e._e(),t("keep-alive",[e.activeStep===0?t("DetailsStep1",{attrs:{errors:e.errors}}):e._e(),e.activeStep===1?t("DetailsStep3",{attrs:{errors:e.errors}}):e._e(),e.activeStep===2?t("DetailsStep4",{attrs:{errors:e.errors}}):e._e()],1)],1)],1),t("SignupFooter",{attrs:{"max-steps":e.maxSteps},on:{"validate-errors":e.onValidateErrors,submit:e.onSubmit},model:{value:e.activeStep,callback:function(s){e.activeStep=s},expression:"activeStep"}})],1)},Y=[],G=n(U,H,Y,!1,null,"8a761a8b",null,null);const re=G.exports;export{re as default}; 2//# sourceMappingURL=SignupForm-a1b35fba.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.