PageSourceSearch

https://redeindica.go.gov.br/build/assets/Cadastro-6f71c0a3.js

js redeindica.go.gov.br collected 2026-10-02 00:27:41 UTC 35,638 bytes, 1 lines download raw bytes

1import{r as u,v as Ye,D as Re,a as q,b as me,o as n,g as d,f as a,w as p,d as l,i as oe,u as s,c as te,e as _,k as P,F as L,h as X,t as x,j as pe,N as w,C as Me}from"./app-5fc1912d.js";import{_ as Qe}from"./AdminLayout-c73cece3.js";import{C as Je}from"./Card-511e1ef8.js";import{_ as v}from"./InputLabel-cab2995d.js";import{I as A}from"./iconify-03d69e80.js";import"./ApplicationLogo-e0d31125.js";import"./Footer-af4780d1.js";import"./icon-df62cc88.js";import"./validacaoNome-49cf0a9d.js";import"./_plugin-vue_export-helper-c27b6911.js";const Ge=l("title",null,"Cadastro",-1),Ke={class:"tw-py-12"},We={class:"tw-max-w-7xl tw-mx-auto sm:tw-px-6 tw-px-8 md:tw-px-0"},Xe={class:"tw-flex tw-flex-col md:tw-flex-row tw-flex-1 tw-gap-6"},et={class:"tw-flex tw-justify-between"},tt=l("h5",{class:"tw-font-bold"},"Cadastro de Profissional",-1),ot={class:"tw-flex"},at=["onClick"],lt=l("span",{class:"tw-ml-2 tw-mr-2"},"Cadastrar",-1),st=l("h2",{class:"tw-text-4xl tw-my-5 tw-ml-4 tw-font-sans tw-text-gray-900"},"Informações de Login",-1),it={key:0,class:"tw-grid tw-grid-cols-1 md:tw-grid-cols-4 tw-gap-4"},nt={class:"tw-col-span1 md:tw-col-span-4"},rt={class:"tw-col-span1 md:tw-col-span-2"},dt=l("p",{className:"tw-text-xs tw-text-gray-700 tw-mt-1"},[P(" Sua senha deve ter no mínimo 8 caracters. "),l("br"),P(" Sua senha deve conter letras e números, e pode conter caractere especial. ")],-1),ut={class:"tw-col-span1 md:tw-col-span-2"},ct=l("div",{class:"tw-flex tw-items-center tw-rounded-full tw-justify-end tw-mt-4"},null,-1),mt={key:0,class:"tw-flex tw-items-center tw-justify-center tw-py-2"},pt=l("h2",{class:"tw-text-4xl tw-my-5 tw-ml-4 tw-font-sans tw-text-gray-900"}
1,"Dados Pessoais",-1),wt={key:0,class:"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-4"},vt={class:"tw-col-span md:tw-col-span-1"},ft={class:"tw-col-span md:tw-col-span-1"},_t={class:"tw-col-span-2 md:tw-col-span-1"},gt=l("a",{class:"tw-text-blue-500 tw-flex tw-my-1 tw-font-semibold",href:"https://buscacepinter.correios.com.br/app/endereco/index.php",target:"_blank"},"Não sei o CEP",-1),bt={class:"tw-grid tw-grid-cols-2 tw-gap-4"},xt={class:"tw-col-span-1 md:tw-col-span-1"},ht={class:"tw-col-span-1 md:tw-col-span-1"},yt={class:"tw-grid tw-grid-cols-3 tw-gap-4"},Vt={class:"tw-col-span-1 md:tw-col-span-1"},kt={class:"tw-col-span-1 md:tw-col-span-1"},Ct={class:"tw-col-span-1 md:tw-col-span-1"},qt=l("h2",{class:"tw-text-4xl tw-my-5 tw-ml-4 tw-font-sans tw-text-gray-900"},"Dados Profissionais",-1),At={key:0,class:"tw-grid tw-grid-cols-1 md:tw-grid-cols-4 tw-gap-4"},It={class:"tw-col-span1 md:tw-col-span-4"},Dt={class:"tw-col-span1 md:tw-col-span-4"},Ut=l("p",{class:"tw-mt-1 tw-text-slate-600 tw-text-[13px] tw-font-medium tw-leading-none tw-tracking-wide"}," Adicione o URL do seu portfólio para que fique presente no seu perfil ",-1),Pt={class:"tw-col-span1 md:tw-col-span-4"},Et={key:0},Nt={class:"tw-flex tw-mt-5"},$t={key:1},jt={class:"tw-border-[#6F797A] tw-mt-2 tw-mr-2 tw-rounded tw-p-2 tw-border tw-text-md tw-hover:tw-bg-gray-700 tw-flex tw-flex-row"},Ft={class:"tw-flex tw-flex-1 tw-flex-col tw-w-full"},St={class:"tw-align-text-bottom tw-text-slate-600 tw-text-[11px] tw-font-medium tw-tracking-wide"},Ot={key:0},zt={key:1},Tt={class:"tw-flex-row tw-items-center tw-justify-end"},Lt=["onClick"],Ht={class:"tw-col-span1 md:tw-col-span-4"},Zt={key:0},Bt={class:"tw-flex tw-mt-5 tw-flex-1 tw-w-full tw-flex-row"},Yt={class:"tw-flex tw-flex-1 tw-gap-4 tw-flex-row w-full"},Rt=l("div",{class:"tw-flex-1"},null,-1),Mt={key:1,class:"tw-mt-5"},Qt={class:"tw-border-[#6F797A] tw-h-14 tw-mt-2 tw-mr-2 tw-flex tw-rounded tw-items-center tw-p-2 tw-border tw-text-md tw-hover:tw-bg-gray-700 justify-between"},Jt={class:"tw-flex"},Gt=l("span",{class:"tw-mx-1"},"-",-1),Kt={key:0},Wt={key:1},Xt={key:2},eo={key:3},to={key:4},oo={class:"tw-flex ml-auto"},ao=["onClick"],lo={class:"tw-col-span1 md:tw-col-span-4"},so={key:0},io={key:1},no={class:"tw-border-[#6F797A] tw-mt-2 tw-mr-2 tw-rounded tw-p-2 tw-border tw-text-md tw-hover:tw-bg-gray-700 tw-flex tw-flex-1 tw-flex-row"},ro={class:"tw-flex tw-w-full tw-flex-col"},uo={class:"tw-align-text-bottom tw-mt-5 tw-text-slate-600 tw-text-[11px] tw-font-medium tw-tracking-wide"},co={class:"tw-flex-row tw-items-center tw-justify-end"},mo=["onClick"],po={class:"tw-col-span1 md:tw-col-span-4"},wo={key:0},vo={key:1,class:"tw-mb-10"},fo={class:"tw-flex-1 tw-mr-2"},_o={class:"tw-border-[#6F797A] tw-mt-2 tw-rounded tw-p-2 tw-border tw-text-md tw-hover:tw-bg-gray-700"},go=["onClick"],bo=l("h2",{class:"tw-text-4xl tw-my-5 tw-ml-4 tw-font-sans tw-text-gray-900"},"Carreira",-1),xo={key:0,class:"tw-grid tw-grid-cols-1 md:tw-grid-cols-4 tw-gap-4"},ho={class:"tw-col-span1 md:tw-col-span-4"},yo=l("h2",{class:"tw-text-4xl tw-my-5 tw-ml-4 tw-font-sans tw-text-gray-900"},"Especificação Contrato",-1),Vo={key:0,class:"tw-grid tw-grid-cols-1 md:tw-grid-cols-4 tw-gap-4"},ko={class:"tw-col-span1 md:tw-col-span-2"},Co=["id","value","onInput"],qo={class:"tw-col-span1 md:tw-col-span-2"},Ao=l("h2",{class:"tw-text-4xl tw-my-5 tw-ml-4 tw-font-sans tw-text-gray-900"},"Carreira",-1),Io={key:0,class:"tw-grid tw-grid-cols-1 md:tw-grid-cols-4 tw-gap-4"},Do={class:"tw-col-span1 md:tw-col-span-4"},Uo={key:0},Po={key:1,class:"tw-mb-10"},Eo={class:"tw-flex-1 tw-mr-2"},No={class:"tw-border-[#6F797A] tw-mt-2 tw-h-14 tw-flex tw-items-center tw-rounded tw-p-2 tw-border tw-text-md tw-hover:tw-bg-gray-700"},$o=["onClick"],jo={class:"tw-col-span1 md:tw-col-span-4"},Fo={class:"tw-flex tw-justify-end"},So=["onClick"],Oo={props:{cbos:{type:Object,default:{}}},mounted:function(){},data(){return{searchValue:"",anoValido:[h=>/^\d{4}$/.test(h)||"Informe um ano válido (YYYY)"]}},computed:{cboOptions(){return this.$page.props.cbos.map(h=>({label:h.nome,value:h.id}))},filteredCboOptions(){const h=this.searchValue.toLowerCase();return this.cboOptions.filter(y=>y.label.toLowerCase().includes(h))}},methods:{anoValidator(h){if(!/^[0-9]{4}$/.test(h))return"O ano deve ter 4 dígitos numéricos (por exemplo, 2022)";const I=parseInt(h,10);return I<1900||I>2099?"O ano deve estar entre 1900 e 2099":!0},filterOptions(h,y){this.searchValue=h,y()}}},Jo=Object.assign(Oo,{__name:"Cadastro",props:{habilidades:{type:Array,default:()=>[]},diversidades:{type:Array,default:[]},tiposContratacao:{type:Array},genero:{type:Array},escolaridade:{type:Array},idiomas:{type:Array},experiencia:{type:Array}},setup(h){const y=h,I=u(!1),N=u(!1),$=u(!1),j=u(!1),F=u(!1),H=u(""),Z=u(""),B=u(""),Y=u(""),S=u(""),R=u(""),M=u("");u("");const Q=u(""),O=u(""),E=u(""),D=u(!1),J=u(""),G=u(""),we=u([]);u([]),u([]),u([]);const ve=u(!1),fe=u(""),K=u("");u(!1),u(!1),u("");const ee=u(null),t=Ye({cpf:"",email:"",password:"",confirmacao_senha:"",foto_perfil:[],sexo:"",nome:"",nome_social:"",possui_filhos:"",data_de_nascimento:"",nacionalidade:"",nivel_de_escolaridade:"",portfolio:"",cor_ou_raca:"",historico:"",cep:"",endereco:"",bairro:"",cidade:"",uf:"",pais:"",telefone:"",linkedIn:"",links:"",notificacao:!1,possui_deficiencia:"",tipo_de_deficiencia:"",tipo_de_contrato:"",observacoes_e_necessidades:"",profissao:"",cbo:"",nivel_experiencia:"",pretensao_salarial:"",valor_salario:"",resumo_profissional:"",informacoes_complementares:"",interesses:[],habilidades:[],nome_usuario:"",senha:"",experiencias:[],cursos:[],idiomas:[],diversidades:[],perfilExistente:!1,acceptTerms:!1,habilidadeInput:[]}),_e={decimal:",",thousands:".",prefix:"R$ ",precision:2,masked:!0},b=u(!1);async function ae(i){i.preventDefault(),await ge()?b.value=!1:t.post(route("admin.profissionais.store"),{onSuccess:o=>{w.create({type:"positive",color:"primary",position:"top-right",message:"Profissional cadastrado com sucesso."})},onError:o=>
1{console.log(o),Object.values(o).forEach(c=>{w.create({type:"negative",color:"negative",position:"top-right",message:`${c}`})})}})}async function ge(){var m;b.value=!1;const i=[{field:"cpf",message:"O campo CPF é obrigatório."},{field:"senha",message:"O campo Senha é obrigatório."},{field:"nome",message:"O campo Nome é obrigatório."},{field:"data_de_nascimento",message:"O campo Data de Nascimento é obrigatório."},{field:"telefone",message:"O campo Telefone é obrigatório."},{field:"cep",message:"O campo CEP é obrigatório."},{field:"email",message:"O campo E-mail é obrigatório."}],[o,,]=t.data_de_nascimento.split("-");console.log(t.data_de_nascimento),Number.parseInt(o)>new Date().getFullYear()-13&&(t.setError("data_de_nascimento","A idade mínima é de 14 anos."),w.create({type:"negative",color:"negative",position:"top-right",message:"A idade mínima é de 14 anos."}),b.value=!0),Number.parseInt(o)<1900&&(t.setError("data_de_nascimento","Ano de nascimento deve ser no mínimo 1900 à "+new Date().getFullYear()+"."),w.create({type:"negative",color:"negative",position:"top-right",message:"Ano de nascimento deve ser de 1900 à "+new Date().getFullYear()+"."}),b.value=!0);for(const{field:r,message:k}of i)t[r]||(w.create({type:"negative",color:"negative",position:"top-right",message:k}),b.value=!0);(t.cpf.length<10||t.cpf&&!ue(t.cpf))&&(w.create({type:"negative",color:"negative",position:"top-right",message:"CPF inválido"}),b.value=!0);const c=await axios.get(route("check.cpf"),{params:{cpf:t.cpf}});c.data||(w.create({type:"negative",color:"negative",position:"top-right",message:"Não foi possível validar o cpf, tente novamente mais tarde."}),b.value=!0),c.data.exists&&(t.errors.cpf="CPF em uso. Verifique e tente novamente",w.create({type:"negative",color:"negative",position:"top-right",message:"CPF em uso. Verifique e tente novamente"}),b.value=!0),(t.senha.length<8||!/^(?=.*[A-Za-z]{1,})(?=.*\d{1,})(?=.*[@$!%*?&])?[A-Za-z\d@$#!%*;,.?\(\)&]{8,}$/.test(t.senha))&&(w.create({type:"negative",color:"negative",position:"top-right",message:"O campo Senha deve ter no mínimo 8 caracteres, com letras e números. Caracteres especiais são opcionais.",duration:4e3}),b.value=!0),(!/[a-zA-Z]/.test(t.senha)||!/\d/.test(t.senha))&&(w.create({type:"negative",color:"negative",position:"top-right",message:"A senha deve conter pelo menos uma letra e um número."}),b.value=!0);const f=await axios.get(route("check.email"),{params:{email:t.email}});return f.data||(w.create({type:"negative",color:"negative",position:"top-right",message:"Não foi possível verificar o email informado, tente novamente."}),b.value=!0),f.data.exists&&(w.create({type:"negative",color:"negative",position:"top-right",message:"E-mail em uso. Verifique e tente novamente"}),b.value=!0),(/[^a-zA-Z]/.test(t.nome.replaceAll(" ",""))||/[^a-zA-Z]/.test((m=t.nome_social)==null?void 0:m.replaceAll(" ","")))&&(w.create({type:"negative",color:"negative",position:"top-right",message:"Não é permitido caractéres especiais ou números nos campos Nome ou Nome Social."}),b.value=!0),b.value}const be=[{label:"Sem experiência",value:0},{label:"Menos de 1 ano",value:1},{label:"1 ano",value:2},{label:"2 anos",value:3},{label:"3 anos",value:4},{label:"4 anos",value:5},{label:"5 anos ou mais",value:6}],xe=[{label:"Iniciante",value:1},{label:"Intermediário",value:2},{label:"Avançado",value:3},{label:"Fluente",value:4}],he=y.diversidades.map(i=>({label:i.nome,value:i.id})),ye=y.tiposContratacao.map(i=>({label:i.nome,value:i.nome})),V=u(!0),le=u(y.habilidades),Ve=(i,o,c)=>{o(()=>{const f=i.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");le.value=y.habilidades.filter(m=>m.nome.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(f)>-1)})};function ke(){axios.get(`/consultar-cep/${t.cep}`).then(i=>{console.log("response",i.data.erro),t.endereco=i.data.logradouro,t.bairro=i.data.bairro,t.cidade=i.data.localidade,t.uf=i.data.uf,t.pais="Brasil",i.data.erro===!0&&w.create({type:"negative",color:"negative",position:"top-right",message:"CEP não encontrado."})}).catch(()=>{t.endereco=null,t.cidade=null,t.pais=null,t.uf=null,t.errors.cep="CEP não encontrado"})}function Ce(i){t.idiomas.splice(i,1)}function qe(i){t.habilidades.splice(i,1)}function Ae(i){t.diversidades.splice(i,1)}function Ie(i){t.cursos.splice(i,1)}function De(i){t.experiencias.splice(i,1)}function Ue(){ve.value=D.value,D.value&&(console.log("aqui"),E.value="")}function se(){I.value=!I.value}function ie(){F.value=!F.value}function ne(){N.value=!N.value}function re(){$.value=!$.value}function de(){j.value=!j.value}function Pe(){I.value=!0,M.value="",Q.value="",O.value="",E.value="",D.value=!1,J.value="",I.value=!1}function Ee(){N.value=!0,fe.value="",K.value="",N.value=!1}function Ne(){j.value=!0,S.value="",R.value="",j.value=!1}function $e(){F.value=!0,G.value="",F.value=!1}function je(){$.value=!0,H.value="",Z.value="",B.value="",Y.value="",$.value=!1}Re(D,i=>
1{i&&(E.value="")});function Fe(){if(!M.value||!Q.value||!O.value||!J.value){w.create({type:"negative",color:"negative",position:"top-right",message:"Não é possível salvar campos vazios."});return}const i=new Date(O.value),o=new Date(E.value);if(i>new Date||o>new Date){w.create({type:"negative",color:"negative",position:"top-right",message:"As datas de início e de término não podem ser datas futuras."});return}if(o<=i){w.create({type:"negative",color:"negative",position:"top-right",message:"A data de término não pode ser igual ou anterior à data de início."});return}const c={cargo:M.value,nomeEmpresa:Q.value,dataInicio:O.value,dataTermino:E.value,aindaTrabalhoAqui:D.value,descricaoAtividades:J.value};we.value.some(m=>m.cargo===c.cargo&&m.nomeEmpresa===c.nomeEmpresa&&m.dataInicio===c.dataInicio&&m.dataTermino===c.dataTermino&&m.aindaTrabalhoAqui===c.aindaTrabalhoAqui&&m.descricaoAtividades===c.descricaoAtividades)?w.create({type:"negative",color:"negative",position:"top-right",message:"Experiência já existe na lista."}):(t.experiencias.push(c),I.value=!1,Pe())}function Se(){if(!H.value||!Z.value||!B.value||!Y.value){w.create({type:"negative",color:"negative",position:"top-right",message:"Não é possível salvar campos vazios."});return}const i=Y.value,o=Number.parseInt(i);new Date().getFullYear();const c=2100,f=1900;if(isNaN(o)||o<f||o>c){w.create({type:"negative",color:"negative",position:"top-right",message:`O ano deve estar entre ${f} e ${c} e não pode ser maior que o ano atual.`});return}const m={nome_curso:H.value,nome_instituicao:Z.value,nivel_escolaridade:B.value,ano_conclusao:i};t.cursos.some(k=>k.nome_curso===m.nome_curso&&k.nome_instituicao===m.nome_instituicao&&k.nivel_escolaridade===m.nivel_escolaridade&&k.ano_conclusao===m.ano_conclusao)?w.create({type:"negative",color:"negative",position:"top-right",message:"Curso já existe na lista."}):(t.cursos.push(m),$.value=!1,je())}function Oe(){if(!ee.value||!K.value){w.create({type:"negative",color:"negative",position:"top-right",message:"Não é possível salvar campos vazios."});return}const i={habilidade:ee.value.label,anos:K.value};t.habilidades.some(c=>c.habilidade===i.habilidade)?w.create({type:"negative",color:"negative",position:"top-right",message:"Habilidade já existe na lista."}):(t.habilidades.push(i),N.value=!1,Ee())}function ze(){if(!S.value||!R.value){w.create({type:"negative",color:"negative",position:"top-right",message:"Não é possível salvar campos vazios."});return}const i={idioma:S.value,nivel_fluencia:R.value};t.idiomas.some(c=>c.idioma===i.idioma||c.nivel_fluencia===i.nivel_fluencia)?w.create({type:"negative",color:"negative",position:"top-right",message:"Idioma já existe na lista."}):(t.idiomas.push(i),j.value=!1,Ne())}function Te(){if(!G.value){w.create({type:"negative",color:"negative",position:"top-right",message:"Não é possível salvar campos vazios."});return}const i={diversidade:G.value};t.diversidades.some(c=>c.diversidade.label===i.diversidade.label)?w.create({type:"negative",color:"negative",position:"top-right",message:"Diversidade já existe na lista."}):(t.diversidades.push(i),F.value=!1,$e())}function ue(i){var o=/^(?:(\d{3}).(\d{3}).(\d{3})-(\d{2}))$/;if(!o.test(i))return!1;var c=i.match(/\d/g).map(Number);if(["111.111.111-11","222.222.222-22","333.333.333-33","444.444.444-44","555.555.555-55","666.666.666-66","777.777.777-77","888.888.888-88","999.999.999-99","000.000.000-00"].includes(i))return!1;var f=c.reduce((r,k,C)=>C<9?r+k*(10-C):r,0),m=f*10%11;return(m===10||m===11)&&(m=0),!(m!==c[9]||(f=c.reduce((r,k,C)=>C<10?r+k*(11-C):r,0),m=f*10%11,(m===10||m===11)&&(m=0),m!==c[10]))}return(i,o)=>{const c=q("Head"),f=q("q-btn"),m=q("q-separator"),r=q("q-input"),k=q("q-spinner"),C=q("q-card-section"),z=q("q-form"),U=q("q-select"),W=q("q-icon"),ce=q("q-checkbox"),Le=me("money"),He=me("close-popup");return n(),d(L,null,[a(c,null,{default:p(()=>[Ge]),_:1}),a(Qe,null,{default:p(()=>[l("div",Ke,[l("div",We,[l("div",Xe,[a(Je,null,{default:p(()=>[l("div",et,[a(f,{flat:"",icon:"arrow_back",class:"tw-my-btn tw-shadow-none tw-remove-shadow",href:i.route("admin.profissionais")},null,8,["href"]),tt,l("div",ot,[l("button",{onClick:oe(ae,["prevent"]),flat:"",class:"tw-flex tw-items-center tw-justify-center tw-bg-primary tw-px-4 tw-py-2 tw-rounded-full tw-text-white"},[a(s(A),{icon:"material-symbols:add-circle"}),lt],8,at)])]),a(m,{class:"tw-mx-5"}),a(z,null,{default:p(()=>[st,a(C,null,{default:p(()=>[s(t).processing?_("",!0):(n(),d("div",it,[l("div",nt,[a(v,{for:"cpf",class:"tw-mb-2",required:"",value:"CPF"}),a(r,{outlined:"",id:"cpf",type:"text",class:"tw-mt-1 tw-block tw-w-full",label:"000.000.000-00",modelValue:s(t).cpf,"onUpdate:modelValue":o[0]||(o[0]=e=>s(t).cpf=e),mask:"###.###.###-##",maxlength:14,minlength:14,rules:[e=>!!e||"Por favor, digite o seu CPF",e=>e&&ue(e)||"CPF Inválido"]},null,8,["modelValue","rules"])]),l("div",rt,[a(v,{for:"senha",required:"",value:"Senha"}),a(r,{outlined:"",id:"senha",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).senha,"onUpdate:modelValue":o[3]||(o[3]=e=>s(t).senha=e),required:"",autocomplete:"new-password",label:"Crie uma senha",type:V.value?"password":"text","lazy-rules":"",rules:[e=>!!e||"Por favor, digite a sua senha",e=>/^(?=.*[A-Za-z]{1,})(?=.*\d{1,})(?=.*[@$!%*?&])?[A-Za-z\d@$#!%*;,.?\(\)&]{8,}$/.test(e)||"Senha não atende um ou mais requisitos"]},{append:p(()=>[V.value?(n(),te(s(A),{key:0,icon:"material-symbols:visibility-outline",class:"cursor-pointer",onClick:o[1]||(o[1]=e=>V.value=!V.value)})):(n(),te(s(A),{key:1,icon:"ic:twotone-visibility-off",class:"cursor-pointer",onClick:o[2]||(o[2]=e=>V.value=!V.value)}))]),_:1},8,["modelValue","type","rules"]),dt]),l("div",ut,[a(v,{for:"confirmacao_senha",required:"",value:"Confirme a Senha"}),a(r,{outlined:"",id:"confirmacao_senha",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).confirmacao_senha,"onUpdate:modelValue":o[6]||(o[6]=e=>s(t).confirmacao_senha=e),required:"",label:"Confirme a sua senha",autocomplete:"new-password","lazy-rules":"",type:V.value?"password":"text",rules:[e=>!!e||"Por favor, confirme a sua senha",e=>e===s(t).senha||"As senhas não correspondem"]},{append:p(()=>[V.value?(n(),te(s(A),{key:0,icon:"material-symbols:visibility-outline",class:"cursor-pointer",onClick:o[4]||(o[4]=e=>V.value=!V.value)})):(n(),te(s(A),{key:1,icon:"ic:twotone-visibility-off",class:"cursor-pointer",onClick:o[5]||(o[5]=e=>V.value=!V.value)}))]),_:1},8,["modelValue","type","rules"])]),ct,s(t).processing?(n(),d("div",mt,[a(k,{color:"primary",size:"3em"})])):_("",!0)]))]),_:1})]),_:1}),a(z,null,{default:p(()=>[pt,a(C,null,{default:p(()=>[s(t).processing?_("",!0):(n(),d("div",wt,[l("div",vt,[a(v,{for:"name",required:"",value:"Nome Completo"}),a(r,{outlined:"",id:"name",type:"text",class:"tw-block tw-w-full",modelValue:s(t).nome,"onUpdate:modelValue":o[7]||(o[7]=e=>s(t).nome=e),required:"",label:"Seu nome",autocomplete:"name",rules:[e=>!!e||"Por favor, insira o seu nome",e=>!/[^a-zA-Z]/.test(e.replaceAll(" ",""))||"Use somente letras."]},null,8,["modelValue","rules"]),a(v,{for:"name",class:"tw-mt-2",value:"Nome Social (Opcional)"}),a(r,{outlined:"",id:"nome_social",type:"text",class:"tw-block tw-w-full tw-mb-2",modelValue:s(t).nome_social,"onUpdate:modelValue":o[8]||(o[8]=e=>s(t).nome_social=e),label:"Seu nome",autocomplete:"name",rules:[e=>e&&(!/[^a-zA-Z]/.test(e.replaceAll(" ",""))||"Use somente letras.")]},null,8,["modelValue","rules"])]),l("div",ft,[a(v,{for:"sexo",class:"",value:"Como você se identifica? *"}),a(U,{outlined:"",required:"",id:"sexo",label:"Selecione seu gênero",class:"tw-block tw-w-full",modelValue:s(t).sexo,"onUpdate:modelValue":o[9]||(o[9]=e=>s(t).sexo=e),options:y.genero.map(e=>({label:e.nome,value:e.nome})),rules:[e=>!!e||"Por favor, selecione o gênero"]},null,8,["modelValue","options","rules"]),a(v,{for:"data_de_nascimento",value:"Data de nascimento",required:"",class:"tw-mt-2"}),a(r,{outlined:"",id:"data_de_nascimento",type:"date",required:"",label:"dd/mm/aaaa",max:"3000-12-31",modelValue:s(t).data_de_nascimento,"onUpdate:modelValue":o[10]||(o[10]=e=>s(t).data_de_nascimento=e),error:!!s(t).errors.data_de_nascimento,"error-message":s(t).errors.data_de_nascimento,rules:[e=>!!e||"Por favor, insira a data de nascimento"]},null,8,["modelValue","error","error-message","rules"])])])),l("div",_t,[a(v,{for:"email",class:"",required:"",value:"E-mail"}),a(r,{outlined:"",id:"email",type:"email",class:"tw-mt-1 tw-block tw-w-full",label:"[email protected]",modelValue:s(t).email,"onUpdate:modelValue":o[11]||(o[11]=e=>s(t).email=e),rules:[e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||"E-mail inválido",e=>!e||!s(t).perfilExistente||"Já existe um usuário com o e-mail cadastrado"]},null,8,["modelValue","rules"]),a(v,{for:"telefone",class:"tw-mt-2",required:"",value:"Telefone"}),a(r,{outlined:"",id:"telefone",type:"text",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).telefone,"onUpdate:modelValue":o[12]||(o[12]=e=>s(t).telefone=e),required:"",label:s(t).telefone.length<15?"(99) 9999-9999":"(99) 9 9999-9999",autocomplete:"tel",mask:s(t).telefone.length<15?"(##) ####-#####":"(##) # ####-####",rules:[e=>!!e||"Por favor, digite o telefone com DDD"]},null,8,["modelValue","label","mask","rules"]),a(v,{for:"cep",class:"tw-mt-2",required:"",value:"Cep"}),gt,a(r,{outlined:"",id:"cep",type:"text",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).cep,"onUpdate:modelValue":o[13]||(o[13]=e=>s(t).cep=e),onBlur:ke,label:"Digite seu código postal",autocomplete:"postal-code",mask:"#####-###",rules:[e=>!!e||"Por favor, insira o CEP"]},null,8,["modelValue","rules"])]),l("div",bt,[l("div",xt,[a(v,{for:"endereco",class:"tw-mt-2",required:"",value:"Endereço"}),a(r,{outlined:"",id:"endereco",type:"text",class:"tw-mt-1 tw-block tw-w-full",label:"Digite seu Endereço",modelValue:s(t).endereco,"onUpdate:modelValue":o[14]||(o[14]=e=>s(t).endereco=e),required:"",rules:[e=>!!e||"Por favor, digite o endereço"]},null,8,["modelValue","rules"])]),l("div",ht,[a(v,{for:"bairro",class:"tw-mt-2",required:"",value:"Bairro"}),a(r,{outlined:"",id:"bairro",type:"text",class:"tw-mt-1 tw-block tw-w-full",label:"Digite seu Bairro",modelValue:s(t).bairro,"onUpdate:modelValue":o[15]||(o[15]=e=>s(t).bairro=e),required:"",rules:[e=>!!e||"Por favor, digite o bairro"]},null,8,["modelValue","rules"])])]),l("div",yt,[l("div",Vt,[a(v,{for:"cidade_id",class:"tw-mt-2",required:"",value:"Cidade"}),a(r,{outlined:"",id:"cidade_id",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).cidade,"onUpdate:modelValue":o[16]||(o[16]=e=>s(t).cidade=e),disable:"",label:"Sua Cidade",rules:[e=>!!e||"Por favor, digite o cep para completar a cidade"]},null,8,["modelValue","rules"])]),l("div",kt,[a(v,{for:"uf",class:"tw-mt-2",required:"",value:"Estado"}),a(r,{outlined:"",id:"uf",class:"tw-mt-1 tw-block tw-w-full",label:"UF",modelValue:s(t).uf,"onUpdate:modelValue":o[17]||(o[17]=e=>s(t).uf=e),disable:"",rules:[e=>!!e||"Por favor, digite o cep para completar o Estado"]},null,8,["modelValue","rules"])]),l("div",Ct,[a(v,{for:"pais",class:"tw-mt-2",required:"",value:"País"}),a(r,{outlined:"",id:"pais",type:"text",class:"tw-mt-1 tw-block tw-w-full",label:"Digite o país",modelValue:s(t).pais,"onUpdate:modelValue":o[18]||(o[18]=e=>s(t).pais=e),disable:"",required:"",rules:[e=>!!e||"Por favor, digite o país"]},null,8,["modelValue","rules"])])])]),_:1})]),_:1}),a(z,null,{default:p(()=>[qt,a(C,null,{default:p(()=>[s(t).processing?_("",!0):(n(),d("div",At,[l("div",It,[a(v,{for:"linkedIn",class:"tw-mt-7",value:"LinkedIn"}),a(r,{outlined:"",clearable:"",id:"linkedIn",type:"text",label:"URL do perfil",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).linkedIn,"onUpdate:modelValue":o[19]||(o[19]=e=>s(t).linkedIn=e),autocomplete:"url",rules:[e=>!e||e.length<3||/^(www\.)?[\w\-]+(\.[\w\-]+)+[/#?]?.*$/.test(e)&&/linkedin\.com/.test(e)||"Insira um link válido do LinkedIn"]},null,8,["modelValue","rules"])]),l("div",Dt,[a(v,{for:"portfolio",class:"tw-mt-7",value:"Portifólio"}),Ut,a(r,{outlined:"",id:"portfolio",type:"text",label:"URL do portifólio",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).portfolio,"onUpdate:modelValue":o[20]||(o[20]=e=>s(t).portfolio=e),autocomplete:"url",rules:[e=>!e||e.length<3||/^(www\.)?[\w\-]+(\.[\w\-]+)+[/#?]?.*$/.test(e)||"Insira um link válido"]},null,8,["modelValue","rules"])]),l("div",Pt,[a(v,{for:"historico",class:"tw-mt-5",value:"Experiência Profissional"}),a(r,{outlined:"",id:"historico",type:"text",label:"Adicionar experiência",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).historico,"onUpdate:modelValue":o[21]||(o[21]=e=>s(t).historico=e),onClick:se},{append:p(()=>[l("button",{onClick:se},[a(W,{name:"add"})])]),_:1},8,["modelValue"]),I.value?(n(),d("div",Et,[a(r,{outlined:"",class:"tw-mt-5",label:"Cargo",modelValue:M.value,"onUpdate:modelValue":o[22]||(o[22]=e=>M.value=e)},null,8,["modelValue"]),a(r,{outlined:"",class:"tw-mt-5",label:"Nome da empresa",modelValue:Q.value,"onUpdate:modelValue":o[23]||(o[23]=e=>Q.value=e)},null,8,["modelValue"]),l("div",Nt,[a(r,{outlined:"",id:"data_de_inicio",type:"date",required:"",label:"Data de início",max:"3000-12-31",modelValue:O.value,"onUpdate:modelValue":o[24]||(o[24]=e=>O.value=e),rules:[e=>!!e||"Por favor, insira a data"]},null,8,["modelValue","rules"]),a(r,{outlined:"",class:"tw-ml-12",id:"data_de_termino",type:"date",required:"",max:"3000-12-31",label:"Data de Termino",modelValue:E.value,"onUpdate:modelValue":o[25]||(o[25]=e=>E.value=e),rules:[e=>!!e||!D.value||"Por favor, insira a data"],disable:D.value===!0},null,8,["modelValue","rules","disable"])]),a(ce,{"keep-color":"",color:"blue",modelValue:D.value,"onUpdate:modelValue":o[26]||(o[26]=e=>D.value=e),label:"Ainda Trabalho aqui",onInput:Ue},null,8,["modelValue"]),a(r,{outlined:"",type:"textarea",label:"Descrição das atividades",modelValue:J.value,"onUpdate:modelValue":o[27]||(o[27]=e=>J.value=e)},null,8,["modelValue"]),a(f,{"no-caps":"",flat:"",class:"tw-flex tw-my-2 tw-w-full tw-items-center tw-justify-center tw-bg-primary tw-px-4 tw-rounded-full tw-text-white",onClick:Fe},{default:p(()=>[P(" Adicionar Experiência ")]),_:1})])):_("",!0),s(t).experiencias.length>0?(n(),d("div",$t,[(n(!0),d(L,null,X(s(t).experiencias,(e,g)=>(n(),d("div",{key:g},[l("div",jt,[l("div",Ft,[l("div",null,x(e.cargo),1),l("div",null,x(e.nomeEmpresa),1),l("div",St,[e.dataTermino===""?(n(),d("div",Ot,[l("p",null,x(e.dataInicio.split("-").reverse().join("/"))+" a atual ",1)])):(n(),d("div",zt,[l("p",null,x(e.dataInicio.split("-").reverse().join("/"))+" a "+x(e.dataTermino.split("-").reverse().join("/")),1)]))])]),l("div",Tt,[l("button",{class:"tw-flex tw-text-end",onClick:T=>De(g)},[a(s(A),{icon:"memory:trash",class:"tw-mt-2 tw-text-red-600",width:"24px"})],8,Lt)])])]))),128))])):_("",!0)]),l("div",Ht,[a(v,{for:"habilidades",class:"tw-mt-5",value:"Profissão"}),a(r,{outlined:"",id:"habilidades",type:"select",label:"Adicionar profissão",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).habilidadeInput,"onUpdate:modelValue":o[28]||(o[28]=e=>s(t).habilidadeInput=e),onClick:ne,rules:[e=>!!e||"Por favor, insira a sua profissão"]},{append:p(()=>[l("button",{onClick:ne},[a(W,{name:"add"})])]),_:1},8,["modelValue","rules"]),N.value?(n(),d("div",Zt,[l("div",Bt,[l("div",Yt,[a(U,{outlined:"",class:"tw-flex tw-w-full",label:"Selecionar Habilidade",options:le.value.map(e=>({label:e.nome,value:e.id})),modelValue:ee.value,"onUpdate:modelValue":o[29]||(o[29]=e=>ee.value=e),"use-input":"","input-debounce":"0",onFilter:Ve},null,8,["options","modelValue"]),a(U,{outlined:"",class:"tw-flex tw-w-60",label:"Anos",options:be,modelValue:K.value,"onUpdate:modelValue":o[30]||(o[30]=e=>K.value=e)},null,8,["modelValue"])]),Rt]),a(f,{"no-caps":"",flat:"",class:"tw-flex tw-my-2 tw-w-full tw-items-center tw-justify-center tw-bg-primary tw-px-4 tw-rounded-full tw-text-white",onClick:Oe},{default:p(()=>[P(" Adicionar Profissões ")]),_:1})])):_("",!0),s(t).habilidades.length>0?(n(),d("div",Mt,[(n(!0),d(L,null,X(s(t).habilidades,(e,g)=>(n(),d("div",{class:"tw-mt-5",key:g},[l("div",Qt,[l("div",Jt,[P(x(e.habilidade)+" ",1),Gt,e.anos.value===0?(n(),d("div",Kt," Sem experiência ")):e.anos.value===1?(n(),d("div",Wt," Menos de 1 ano ")):e.anos.value===2?(n(),d("div",Xt," 1 ano ")):e.anos.value>5?(n(),d("div",eo," 5 anos ou mais ")):(n(),d("div",to,x(e.anos.value-1)+" anos ",
11))]),l("div",oo,[l("button",{onClick:oe(T=>qe(g),["prevent"])},[a(s(A),{icon:"memory:trash",class:"tw-text-red-600 tw-ml-2",width:"24px"})],8,ao)])])]))),128))])):_("",!0)]),l("div",lo,[a(v,{for:"estudo",class:"tw-mt-5",value:"Estudo"}),a(r,{outlined:"",id:"estudo",type:"select",label:"Adicionar cursos",class:"tw-mt-1 tw-block tw-w-full",onClick:re},{append:p(()=>[l("button",{onClick:re},[a(W,{name:"add"})])]),_:1}),$.value?(n(),d("div",so,[a(r,{outlined:"",class:"tw-mt-5",label:"Nome do curso",modelValue:H.value,"onUpdate:modelValue":o[31]||(o[31]=e=>H.value=e)},null,8,["modelValue"]),a(r,{outlined:"",class:"tw-mt-5",label:"Nome da Instituição",modelValue:Z.value,"onUpdate:modelValue":o[32]||(o[32]=e=>Z.value=e)},null,8,["modelValue"]),a(U,{outlined:"",class:"tw-mt-5",label:"Selecione o nível do curso",options:y.escolaridade.map(e=>({label:e.nome,value:e.nome})),modelValue:B.value,"onUpdate:modelValue":o[33]||(o[33]=e=>B.value=e)},null,8,["options","modelValue"]),a(r,{outlined:"",class:"tw-mt-5",label:"Ano de conclusão (ou previsão)",rules:[i.anoValidator],mask:"####",modelValue:Y.value,"onUpdate:modelValue":o[34]||(o[34]=e=>Y.value=e)},null,8,["rules","modelValue"]),a(f,{"no-caps":"",flat:"",class:"tw-flex tw-my-2 tw-w-full tw-items-center tw-justify-center tw-bg-primary tw-px-4 tw-rounded-full tw-text-white",onClick:Se},{default:p(()=>[P(" Adicionar Curso ")]),_:1})])):_("",!0),s(t).cursos.length>0?(n(),d("div",io,[(n(!0),d(L,null,X(s(t).cursos,(e,g)=>(n(),d("div",{key:g},[l("div",no,[l("div",ro,[l("div",null,x(e.nome_curso),1),l("div",null,x(e.nome_instituicao),1),l("div",uo,[l("div",null,x(e.nivel_escolaridade.label),1),l("p",null," Concluído em "+x(e.ano_conclusao),1)])]),l("div",co,[l("button",{class:"tw-flex tw-text-end",onClick:T=>Ie(g)},[a(s(A),{icon:"memory:trash",class:"tw-mt-2 tw-text-red-600",width:"24px"})],8,mo)])])]))),128))])):_("",!0)]),l("div",po,[a(v,{for:"idioma",class:"tw-mt-5",value:"Idioma"}),a(r,{outlined:"",id:"idioma",type:"select",label:"Adicionar Idioma",class:"tw-mt-1 tw-block tw-w-full tw-mb-10",onClick:de},{append:p(()=>[l("button",{onClick:de},[a(W,{name:"add"})])]),_:1}),j.value?(n(),d("div",wo,[a(U,{outlined:"",class:"tw-mt-5",label:"Selecione o idioma",options:y.idiomas.map(e=>({label:e.nome,value:e.nome})),modelValue:S.value,"onUpdate:modelValue":o[35]||(o[35]=e=>S.value=e)},null,8,["options","modelValue"]),a(U,{outlined:"",class:"tw-mt-5",label:"Selecione o nível",options:xe,modelValue:R.value,"onUpdate:modelValue":o[36]||(o[36]=e=>R.value=e)},null,8,["modelValue"]),a(f,{"no-caps":"",flat:"",class:"tw-flex tw-my-2 tw-w-full tw-items-center tw-justify-center tw-bg-primary tw-px-4 tw-rounded-full tw-text-white",onClick:ze},{default:p(()=>[P(" Adicionar Idioma ")]),_:1})])):_("",!0),s(t).idiomas.length>0?(n(),d("div",vo,[(n(!0),d(L,null,X(s(t).idiomas,(e,g)=>(n(),d("div",{key:g,class:"tw-flex tw-justify-between"},[l("div",fo,[l("div",_o,x(e.idioma.label)+" - "+x(e.nivel_fluencia.label),1)]),l("button",{class:"tw-text-end",onClick:T=>Ce(g)},[a(s(A),{icon:"memory:trash",class:"tw-mt-2 tw-text-red-600",width:"24px"})],8,go)]))),128))])):_("",!0)])]))]),_:1})]),_:1}),a(z,null,{default:p(()=>[bo,a(C,null,{default:p(()=>[s(t).processing?_("",!0):(n(),d("div",xo,[l("div",ho,[a(v,{for:"nivel_experiencia",class:"tw-mt-2",value:"Qual o seu nível de experiência?"}),a(U,{outlined:"",clearable:"",id:"nivel_experiencia",label:"Selecione o seu nível de experiência",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).nivel_experiencia,"onUpdate:modelValue":o[37]||(o[37]=e=>s(t).nivel_experiencia=e),options:y.experiencia.map(e=>({label:e.nome,exp:S.value.nome}))},null,8,["modelValue","options"])])]))]),_:1})]),_:1}),a(z,null,{default:p(()=>[yo,a(C,null,{default:p(()=>[s(t).processing?_("",!0):(n(),d("div",Vo,[l("div",ko,[a(v,{for:"pretensao_salarial",value:"Pretensão Salarial"}),a(r,{outlined:"",clearable:"",id:"valor_salario",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).pretensao_salarial,"onUpdate:modelValue":o[38]||(o[38]=e=>s(t).pretensao_salarial=e),label:"Defina a remuneração",mask:"R$ ###.###.###,##",maxlength:"10","reverse-fill-mask":"",prefix:"R$"},{control:p(({id:e,floatingLabel:g,modelValue:T,emitValue:Ze})=>[pe(l("input",{id:e,class:"q-field__input text-right",value:T,onInput:Be=>Ze(Be.target.value)},null,40,Co),[[Le,_e],[Me,g]])]),_:1},8,["modelValue"])]),l("div",qo,[a(v,{for:"tipo_de_contrato",value:"Modelo de Contratação"}),a(U,{outlined:"",clearable:"",id:"tipo_de_contrato",label:"Selecione o modelo de contratação",class:"tw-mt-1 tw-block tw-w-full",modelValue:s(t).tipo_de_contrato,"onUpdate:modelValue":o[39]||(o[39]=e=>s(t).tipo_de_contrato=e),options:s(ye)},null,8,["modelValue","options"])])]))]),_:1})]),_:1}),a(z,null,{default:p(()=>[Ao,a(C,null,{default:p(()=>[s(t).processing?_("",!0):(n(),d("div",Io,[l("div",Do,[a(v,{for:"diversidade",class:"tw-mt-2",value:"Diversidade"}),a(r,{outlined:"",id:"diversidade",type:"select",label:"Adicionar Diversidade",class:"tw-mt-1 tw-block tw-w-full tw-mb-1",onClick:ie},{append:p(()=>[l("button",{onClick:ie},[a(W,{name:"add"})])]),_:1}),F.value?(n(),d("div",Uo,[a(U,{outlined:"",class:"tw-mt-5",label:"Qual grupo pertence",options:s(he),modelValue:G.value,"onUpdate:modelValue":o[40]||(o[40]=e=>G.value=e)},null,8,["options","modelValue"]),a(f,{"no-caps":"",flat:"",class:"tw-flex tw-my-2 tw-w-full tw-items-center tw-justify-center tw-bg-primary tw-px-4 tw-rounded-full tw-text-white",onClick:Te},{default:p(()=>[P(" Adicionar Diversidade ")]),_:1})])):_("",!0),s(t).diversidades.length>0?(n(),d("div",Po,[(n(!0),d(L,null,X(s(t).diversidades,(e,g)=>(n(),d("div",{key:g,class:"tw-flex tw-justify-between"},[l("div",Eo,[l("div",No,x(e.diversidade.label),1)]),l("button",{class:"tw-text-end",onClick:T=>Ae(g)},[a(s(A),{icon:"memory:trash",class:"tw-mt-2 tw-text-red-600",width:"24px"})],8,$o)]))),128))])):_("",!0),l("div",jo,[a(ce,{modelValue:s(t).notificacao,"onUpdate:modelValue":o[41]||(o[41]=e=>s(t).notificacao=e),label:"Quero receber notificações de vagas com essas características por email"},null,8,["modelValue"])])])]))]),_:1})]),_:1}),l("div",Fo,[pe((n(),d("button",{clickable:"",onClick:oe(ae,["prevent"]),class:"tw-text-[14px] tw-h-10 tw-items-center tw-bg-primary tw-rounded-full tw-w-full tw-px-4 tw-py-2 tw-border tw-border-transparent tw-font-semibold tw-text-xs tw-text-white tw-tracking-widest hover:tw-transition-colors hover:tw-bg-blue-800 hover:tw-ease-in-out"},[P(" Cadastrar ")],8,So)),[[He]])])]),_:1})])])])]),_:1})],64)}}});
1export{Jo as default};

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.