1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6166],{49501:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/onboarding/tech/[username]",function(){return l(2948)}])},50322:function(e,t,l){"use strict";l.d(t,{E:function(){return getDesign}});var n=l(85893);function getDesign(e){return function(t){return(0,n.jsx)(e,{children:t})}}l(67294)},20451:function(e,t,l){"use strict";l.d(t,{Y:function(){return LogoName}});var n=l(85893),i=l(25675),r=l.n(i);function LogoName(e){let{width:t=130,height:l=60,type:i="color"}=e;return(0,n.jsx)(r(),{width:t,height:l,src:"color"===i?"/assets/logos/logoName.png":"/assets/logos/logoNameWhite.png",alt:"Logo",priority:!0,style:{width:"130px",height:"50px"}})}},71651:function(e,t,l){"use strict";l.d(t,{Z:function(){return ModalRichTextEditor}});var n=l(85893),i=l(83658),r=l(88329),s=l(8186),o=l(73636),a=l(90092),c=l(38488),d=l(47533),u=l(12490),h=l(16284),p=l(87536),f=l(86893),x=l(21135),g=l(33015),m=l(74231);let j=m.Ry().shape({text:m.Z_().nullable()});function ModalRichTextEditor(e){let{isModal:t=!1,title:l="Save text",description:m="Create, edit and save.",required:y=!1,api_params:v={get_url:"",verb_update:"patch",update_url:"",field_name:"",stale_time:void 0,key:""},setDataOnboarding:w}=e,{isOpen:b,onToggle:_}=(0,i.q)({defaultIsOpen:t}),{get_url:S,update_url:k,verb_update:C,field_name:R,key:T,stale_time:D}=v,z=(0,h.o)(),X=(0,x.NL)(),{data:E}=(0,x.aM)([T],async()=>{let e=await g.h.get(S);return w&&w(e.data),e.data},{staleTime:D}),{mutate:I}=(0,x.Db)(async e=>{let{text:t}=e,l=k||S,n="patch"===C?g.h.patch:g.h.put,i=await n(l,{[R]:t});return w&&w(i.data),i.data},{onSuccess:e=>{z({title:"".concat(l),description:"Successfully saved!",status:"success"}),w&&w(e),X.setQueriesData([T],{...e})},onError:()=>{z({title:"Error with the update!",description:"Error updating description ".concat(l),status:"error"})}}),{handleSubmit:q,control:P,formState:{errors:O}}=(0,p.cI)({resolver:(0,d.X)(j)}),handleDescriptionJob=e=>{let t=(null==e?void 0:e.text)||"";if(t==(null==E?void 0:E[R]))return z({title:"".concat(l),description:"Your edition has been successfully saved!",status:"success"}),!1;if(y&&!t)return z({title:"".concat(l),description:"Required and has not been reported.",status:"warning"}),w&&w(void 0),!1;let n=document.createElement("div");n.innerHTML=t;var i=n.textContent||n.innerText;if(y||i.trim()){if(y&&!i.trim())return z({title:"".concat(l),description:"Required and has not been reported.",status:"warning"}),w&&w(void 0),!1}else t=null;let r={text:t};I(r)},onError=(e,t)=>{var l;z({title:"".concat((null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.name)||"Invalid"),description:"".concat(null==e?void 0:e.message),status:"warning"})};return(0,n.jsx)(r.k,{width:"full",borderRadius:"lg",backgroundColor:"white",direction:"column",padding:t?0:6,py:t?2:6,gap:t?8:6,as:"form",autoComplete:"off",children:(0,n.jsxs)(s.g,{spacing:4,align:"stretch",children:[(0,n.jsxs)(s.g,{width:"full",align:"flex-start",spacing:0,children:[(0,n.jsxs)(o.U,{children:[(0,n.jsx)(a.x,{fontWeight:"semibold",color:"purpleX.500",fontSize:"xl",children:l}),y&&(0,n.jsx)(a.x,{color:"red.500",fontSize:"md",children:"*"})]}),(0,n.jsx)(a.x,{fontSize:"sm",color:"grayX.200",children:m})]}),(0,n.jsx)(u.L,{name:"text",control:P,error:O.text,isRequired:y,value:(null==E?void 0:E[R])||void 0,onBlur:t?void 0:q(handleDescriptionJob,onError)}),t&&(0,n.jsx)(r.k,{justify:"flex-end",children:(0,n.jsx)(c.z,{type:"submit",onClick:q(handleDescriptionJob,onError),size:"sm",colorScheme:"purpleX",variant:"solid",leftIcon:(0,n.jsx)(f.mW3,{}),children:"Save"})})]})})}},2948:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return A},default:function(){return DevSignUp}});var n=l(85893),i=l(50322),r=l(16610),s=l(59099),o=l(88329),a=l(8186),c=l(90092),d=l(3712),u=l(73636),h=l(12553),p=l(20451),f=l(17173),x=l(86893);let g=[{step:1,name:"About"},{step:2,name:"Academic"},{step:3,name:"Experiences"},{step:4,name:"Specifications"}];var m=l(16483),j=l(45710),y=l(21909),v=l(88374),w=l(67294),b=l(38488),_=l(29193),S=l(11163),k=l(33015);function FooterSteps(e){let{isContinue:t,isButtonBack:l=!0,isLastStepTech:i=!1,next:r,back:s}=e,{user:a}=(0,_.E)();return(0,S.useRouter)(),(0,n.jsxs)(o.k,{width:"full",justifyContent:l?"space-between":"flex-end",flexDirection:["column","column","row"],gap:"1.5rem",children:[l&&(0,n.jsx)(b.z,{type:"button",onClick:s,variant:"ghost",leftIcon:(0,n.jsx)(x.Ao2,{}),color:"grayX.200",_hover:{color:"purpleX.600"},children:"Back"}),!i&&(0,n.jsx)(b.z,{type:"submit",isDisabled:!t,colorScheme:"purpleX",color:"white",onClick:r,rightIcon:(0,n.jsx)(x.Rgz,{}),children:"Continue"}),i&&(0,n.jsx)(b.z,{type:"submit",isDisabled:!t,colorScheme:"purpleX",color:"white",onClick:async()=>{try{await k.h.patch("v1/profile/complete-onboarding")}catch(e){}window.location.replace("/".concat(null==a?void 0:a.username))},rightIcon:(0,n.jsx)(x.Rgz,{}),children:"Finish"})]})}function FirstStepOnboardingTech(){let{nextStep:e}=(0,f.M6)(),[t,l]=(0,w.useState)(!1),[i,r]=(0,w.useState)(),[s,a]=(0,w.useState)(),[c,d]=(0,w.useState)();return(0,w.useEffect)(()=>{!function(){var e,t,n,r,o,a;let d=(null!==(n=null==s?void 0:null===(e=s.technology_area_ids)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>=1||(null!==(r=null==s?void 0:null===(t=s.technology_areas_obj)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>=1;(null==i?void 0:i.first_name)&&null!=c&&null!==(o=c.data)&&void 0!==o&&o.length&&(null==c?void 0:null===(a=c.data)||void 0===a?void 0:a.some(e=>"Linkedin"===e.type))&&d?l(!0):l(!1)}()},[i,c,s]),(0,n.jsxs)(o.k,{width:"full",height:"full",direction:"column",py:6,gap:6,children:[(0,n.jsx)(y.P,{}),(0,n.jsx)(m.n,{setDataOnboarding:r}),(0,n.jsx)(j.k,{setDataOnboarding:a}),(0,n.jsx)(v.X,{setDataOnboarding:d}),(0,n.jsx)(o.k,{width:"full",justifyContent:"center",alignItems:"flex-start",py:6,children:(0,n.jsx)(FooterSteps,{next:e,isContinue:t,isButtonBack:!1})})]})}var C=l(83658),R=l(71651);function CardDiversity(e){let{isModal:t=!1}=e,{isOpen:l,onToggle:i}=(0,C.q)({defaultIsOpen:t}),{user:r}
1=(0,_.E)();return(0,n.jsx)(o.k,{direction:"column",gap:7,children:(0,n.jsxs)(a.g,{width:"full",height:"full",justifyContent:"flex-start",alignItems:"flex-start",spacing:5,children:[(0,n.jsx)(R.Z,{title:"Diversity & Inclusion",description:"If you are part of any kind of diversity group, inform us about it below.",api_params:{field_name:"diversity",key:"get-v1-profile-extras",stale_time:1e4,get_url:"v1/profile/extras/".concat(null==r?void 0:r.profile_id),verb_update:"patch",update_url:"v1/profile/extras/".concat(null==r?void 0:r.profile_id)}}),(0,n.jsx)(R.Z,{title:"PCD / PWD",description:"If applicable, describe your physical, visual, hearing, intellectual, psychosocial, multiple disabilities, ECD, etc.",api_params:{field_name:"deficit",key:"get-v1-profile-extras",stale_time:1e4,get_url:"v1/profile/extras/".concat(null==r?void 0:r.profile_id),verb_update:"patch",update_url:"v1/profile/extras/".concat(null==r?void 0:r.profile_id)}})]})})}var T=l(4296),D=l(7539),z=l(47533),X=l(16284),E=l(87650),I=l(4398),q=l(87536),P=l(21135),O=l(74231);let L=O.Ry().shape({salary_pj:O.Rx().when("contract_model",{is:"pj",then:O.Rx().nullable().required("The salary is required").min(1412,"The minimum salary is R$ 1.412,00"),otherwise:O.Rx().min(1412,"The minimum salary is R$ 1.412,00").notRequired().transform(e=>isNaN(e)?void 0:e).nullable()}),salary_clt:O.Rx().when("contract_model",{is:"clt",then:O.Rx().nullable().required("The salary is required").min(1412,"The minimum salary is R$ 1.412,00"),otherwise:O.Rx().min(1412,"The minimum salary is R$ 1.412,00").notRequired().transform(e=>isNaN(e)?void 0:e).nullable()}),contract_model:O.Z_().required("The contract model is required")}),N=O.Ry().shape({salary_pj:O.Rx().when("contract_model",{is:e=>["pj","clt/pj"].includes(e),then:O.Rx().nullable().required("The salary is required").min(1412,"The minimum salary is R$ 1.412,00"),otherwise:O.Rx().nullable().notRequired()}),salary_clt:O.Rx().when("contract_model",{is:e=>["clt","clt/pj"].includes(e),then:O.Rx().nullable().required("The salary is required").min(1412,"The minimum salary is R$ 1.412,00"),otherwise:O.Rx().nullable().notRequired()}),contract_model:O.Z_().required("The contract model is required")});function CardPretenses(e){let{isModal:t=!1,jobContractType:l,setDataOnboarding:i}=e,{isOpen:r,onToggle:s}=(0,C.q)({defaultIsOpen:t}),d=(0,X.o)(),h=(0,P.NL)(),[p,f]=(0,w.useState)(null),{register:g,handleSubmit:m,reset:j,setValue:y,watch:v,formState:{errors:_}}=(0,q.cI)({resolver:(0,z.X)(l?L:N),mode:"onChange",defaultValues:{salary_clt:null,salary_pj:null}}),{data:S}=(0,P.aM)(["v1-get-preferences-tech"],async()=>{let{data:e}=await k.h.get("v1/preferences-tech/find-preferences-tech");return y("salary_clt",e.salary_clt),y("salary_pj",e.salary_pj),y("contract_model",e.contract_model),e},{refetchOnWindowFocus:!1}),handlePretenses=e=>{if("clt"===e.contract_model&&(e.salary_pj=null),"pj"===e.contract_model&&(e.salary_clt=null),"no matter"===e.contract_model&&(e.salary_clt=null,e.salary_pj=null),l&&"clt/pj"===e.contract_model){if(!e.salary_clt&&!e.salary_pj){f("Please, fill in at least one salary amount.");return}e.salary_clt=e.salary_clt||null,e.salary_pj=e.salary_pj||null}let t={...e};R(t)},createPretenses=async e=>{let{data:t}=await k.h.post("v1/preferences-tech/create-preferences-tech",e);return{...e,...t}},{mutate:R,isLoading:O}=(0,P.Db)(createPretenses,{onSuccess:e=>{d({title:"Success!",description:"Salary expectations were sucessfully saved!",status:"success"}),h.invalidateQueries(["v1-get-preferences-tech"]),i&&i(e),j()},onError:()=>{d({title:"Error!",description:"An error occurred while saving your salary expectations",status:"error"})}}),{contract_model:W,salary_clt:U,salary_pj:B}=v(),F=[{value:"clt",label:"CLT"},{value:"pj",label:"PJ"},{value:"clt/pj",label:"CLT and PJ"}];return(0,w.useEffect)(()=>{"clt/pj"!==W&&f("")},[W]),(0,n.jsx)(o.k,{width:"full",height:"full",direction:"column",children:(0,n.jsx)(o.k,{py:5,gap:5,width:"full",direction:"column",as:"form",autoComplete:"off",onSubmit:m(handlePretenses),children:(0,n.jsxs)(o.k,{width:"full",borderRadius:"lg",backgroundColor:"white",direction:"column",padding:t?0:6,gap:7,children:[(0,n.jsxs)(a.g,{width:"full",align:"flex-start",children:[(0,n.jsx)(o.k,{width:"full",justify:"space-between",children:(0,n.jsx)(c.x,{fontWeight:"semibold",color:"purpleX.500",fontSize:"xl",children:"Salary expectations"})}),(0,n.jsx)(c.x,{fontSize:"sm",color:"grayX.200",children:"We will understand more about your expectations to offer you the most al
1igned opportunities."})]}),(0,n.jsxs)(a.g,{width:"full",align:"center",gap:[6,0],children:[(0,n.jsx)(u.U,{width:"full",flexDir:["column","row"],spacing:[0,1],gap:[3,0],children:(0,n.jsx)(I.u,{label:"Salary Claim:",isRequired:!0,placeholder:"CLT ? PJ? Ambos?",error:_.contract_model,...g("contract_model"),defaultValue:v("contract_model"),children:l?F.map(e=>{let{label:t,value:i}=e;return(0,n.jsx)("option",{value:i,disabled:l&&l!==i,children:t},i)}):F.map(e=>{let{label:t,value:l}=e;return(0,n.jsx)("option",{value:l,children:t},l)})})}),"clt"===W||"clt/pj"===W?(0,n.jsxs)(a.g,{width:"full",align:"flex-start",gap:1,fontSize:"lg",pt:2,children:[(0,n.jsx)(c.x,{color:"grayX.500",fontWeight:"medium",fontSize:"md",children:"CLT Claim"}),(0,n.jsx)(u.U,{width:"full",flexDir:["column","row"],spacing:[0,1],gap:[3,0],children:(0,n.jsxs)(T.B,{children:[(0,n.jsx)(D.Ui,{children:"R$"}),(0,n.jsx)(E.I,{placeholder:"0.000,00",borderRadius:"0 5px 5px 0",type:"number",error:_.salary_clt,...g("salary_clt"),help_text:"What is the minimum you want to receive as a CLT?"})]})})]}):"","pj"===W||"clt/pj"===W?(0,n.jsxs)(a.g,{width:"full",align:"flex-start",gap:1,fontSize:"lg",pt:2,children:[(0,n.jsx)(c.x,{color:"grayX.500",fontWeight:"medium",fontSize:"md",children:"PJ Claim"}),(0,n.jsx)(u.U,{width:"full",flexDir:["column","row"],spacing:[0,1],gap:[3,0],children:(0,n.jsxs)(T.B,{children:[(0,n.jsx)(D.Ui,{children:"R$"}),(0,n.jsx)(E.I,{placeholder:"0.000,00",borderRadius:"0 5px 5px 0",type:"number",error:_.salary_pj,...g("salary_pj"),help_text:"What is the minimum you want to receive as a PJ?"})]})})]}):"",p&&(0,n.jsx)(a.g,{width:"full",mt:"2rem",align:"flex-start",children:(0,n.jsx)(c.x,{fontSize:"15px",color:"red.500",children:p})})]}),(0,n.jsx)(o.k,{width:"full",justifyContent:"end",pt:6,children:(0,n.jsxs)(u.U,{children:[(0,n.jsx)(b.z,{size:"sm",colorScheme:"purpleX",variant:"outline",leftIcon:(0,n.jsx)(x.We9,{}),onClick:()=>{j()},children:"Clear"}),(0,n.jsx)(b.z,{type:"submit",onClick:m(handlePretenses),size:"sm",colorScheme:"purpleX",variant:"solid",leftIcon:(0,n.jsx)(x.mW3,{}),isLoading:O,children:"Save"})]})})]})})})}function FourthStepOnboardingTech(){let{nextStep:e,previousStep:t}=(0,f.M6)();return(0,n.jsx)(o.k,{width:"full",height:"full",direction:"column",children:(0,n.jsxs)(o.k,{py:5,gap:4,width:"full",direction:"column",children:[(0,n.jsx)(CardPretenses,{}),(0,n.jsx)(CardDiversity,{required:!1}),(0,n.jsx)(o.k,{width:"full",justifyContent:"center",alignItems:"flex-start",children:(0,n.jsx)(FooterSteps,{next:e,isContinue:!0,isLastStepTech:!0,isButtonBack:!0,back:t})})]})})}var W=l(84713),U=l(18124),B=l(9619),F=l(97516);function SecondStepOnboardingTech(){let{nextStep:e,previousStep:t}=(0,f.M6)(),[l,i]=(0,w.useState)(!1),[r,s]=(0,w.useState)();return(0,w.useEffect)(()=>{var e;(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.length)?i(!0):i(!1)},[r]),(0,n.jsx)(o.k,{width:"full",height:"full",direction:"column",py:10,children:(0,n.jsxs)(o.k,{width:"full",direction:"column",gap:7,children:[(0,n.jsx)(W.z,{setDataOnboarding:s}),(0,n.jsx)(F.V,{}),(0,n.jsx)(U.H,{}),(0,n.jsx)(B.O,{}),(0,n.jsx)(o.k,{width:"full",justifyContent:"center",alignItems:"flex-start",children:(0,n.jsx)(FooterSteps,{next:e,isContinue:l,isButtonBack:!0,back:t})})]})})}var M=l(72100),J=l(62499),$=l(20603);function ThirdStepOnboardingTech(){let{nextStep:e,previousStep:t}=(0,f.M6)(),[l,i]=(0,w.useState)(!1),[r,s]=(0,w.useState)(),[a,c]=(0,w.useState)();return(0,w.useEffect)(()=>{var e;(null==a?void 0:a.length)&&(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.length)?i(!0):i(!1)},[a,r]),(0,n.jsx)(o.k,{width:"full",height:"full",direction:"column",children:(0,n.jsxs)(o.k,{py:7,width:"full",direction:"column",children:[(0,n.jsx)(M.I,{}),(0,n.jsx)(J._,{setDataOnboarding:s,description:"Technologies, tools and languages you have experience with."}),(0,n.jsx)($.I,{setDataOnboarding:c}),(0,n.jsx)(o.k,{width:"full",justifyContent:"center",alignItems:"flex-start",py:6,children:(0,n.jsx)(FooterSteps,{next:e,isContinue:l,isButtonBack:!0,back:t})})]})})}function DevSignUpPage(){let{currentStep:e}=(0,f.M6)();return(0,n.jsx)(o.k,{height:"full",width:"full",direction:"column",justifyContent:"space-between",children:(0,n.jsx)(o.k,{width:"full",height:"full",justifyContent:"center",children:(0,n.jsx)(o.k,{width:"800px",height:"full",justifyContent:"center",children:1===e?(0,n.jsx)(FirstStepOnboardingTech,{}):2===e?(0,n.jsx)(SecondStepOnboardingTech,{}):3===e?(0,n.jsx)(ThirdStepOnboardingTech,{}):4===e?(0,n.jsx)(FourthStepOnboardingTech,{}):(0,n.jsx)(n.Fragment,{})})})})}var A=!0;function DevSignUp(){return(0,n.jsx)(DevSignUpPage,{})}DevSignUp.getDesign=(0,i.E)(function(e){let{children:t}=e,{currentStep:l}=(0,f.M6)();return(0,n.jsxs)(r.r,{templateColumns:["repeat(1, 1fr)","repeat(1, 1fr)","repeat(7, 1fr)"],justifyContent:"center",height:"100vh",children:[(0,n.jsx)(s.P,{colSpan:2,width:"full",backgroundColor:"purpleX.500",alignItems:"center",children:(0,n.jsx)(o.k,{width:"full",direction:"column",children:(0,n.jsxs)(a.g,{spacing:2,children:[(0,n.jsxs)(o.k,{width:"full",padding:4,direction:"column",gap:4,children:[(0,n.jsx)(o.k,{width:"full",children:(0,n.jsx)(o.k,{width:"full",backgroundColor:"white",borderRadius:"xl",justify:"center",children:(0,n.jsx)(p.Y,{})})}),(0,n.jsx)(o.k,{width:"full",justifyContent:"center",children:(0,n.jsx)(c.x,{fontSize:"xl",color:"white",fontWeight:"bold",children:"Tech Registration"})})]}),(0,n.jsx)(o.k,{width:"full",direction:"column",children:(0,n.jsx)(d.K,{spacing:2,paddingLeft:2,children:g.map((e,t)=>(0,n.jsx)(o.k,{width:"full",backgroundColor:e.step===l?"grayX.50":"",padding:2,borderLeftRadius:"full",children:(0,n.jsxs)(u.U,{children:[(0,n.jsx)(o.k,{border:"1px solid",padding:2,marginLeft:4,borderRadius:"full",borderColor:e.step===l?"purpleX.500":"grayX.50",backgroundColor:e.step<l?"white":"",justifyContent:"center",alignItems:"center",textAlign:"center",children:e.step<l?(0,n.jsx)(h.J,{w:5,h:5,as:x.UgA,fontSize:"xl",color:"purpleX.500"}):e.step===l?(0,n.jsx)(h.J,{w:5,h:5,as:x.bcl,color:"purpleX.500",fontSize:"xl"}):(0,n.jsx)(c.x,{w:5,h:5,fontSize:"md",color:"white",children:""})}),(0,n.jsx)(c.x,{color:e.step<l?"grayX.50":e.step===l?"purpleX.500":"grayX.50",fontWeight:e.step<l?"normal":e.step===l?"semibold":"medium",fontSize:"lg",children:e.name})]})},t))})})]})})}),(0,n.jsx)(s.P,{colSpan:5,width:"full",children:t})]})})}},function(e){e.O(0,[5445,4885,2596,2013,5464,3471,5567,8639,4527,7919,9491,6524,8361,6605,3531,7317,2765,9651,2209,7540,9774,2888,179],function(){return e(e.s=49501)}),_N_E=e.O()}]);
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.