import{u as d,H as n,$ as i,o as f,e as V,h as m,f as r,bh as a,bi as t,i as p,V as b,bg as g,F as E,E as c}from"./index.737529e8.1750111005555.js";import{_ as C}from"./_plugin-vue_export-helper.c27b6911.1750111005555.js";import{V as v}from"./VFileInput.698fbd2b.1750111005555.js";import{V as U}from"./VTextarea.94915313.1750111005555.js";const x={data(){return{userData:d("userData").value,router:n(),form:{logo:"",empresa:"",emailEmpresa:"",telefoneEmpresa:"",estado:"",cidade:"",descricao:"",funcao:"",tipoVaga:"",salario:"",formaContrato:""}}},methods:{submitForm(){this.form.salario===""&&(this.form.salario="A Combinar");try{i(`/vagas/registrarVaga/${this.userData.id}`,{method:"POST",body:this.form}).then(()=>{this.router.push("/vagas")})}catch(s){console.error("Erro ao cadastrar vaga:",s)}console.log(this.form)}}},T=m("h1",null,"Cadastro de Vagas",-1),F={class:"form__esquerda"},y={class:"form__direita"};function _(s,e,B,D,o,u){return f(),V(E,null,[T,m("form",{class:"form",onSubmit:e[10]||(e[10]=g(l=>u.submitForm(),["prevent"]))},[m("div",F,[r(v,{label:"Logo da Empresa",counter:10}),r(a,{counter:30,label:"Nome da Empresa",modelValue:o.form.empresa,"onUpdate:modelValue":e[0]||(e[0]=l=>o.form.empresa=l)},null,8,["modelValue"]),r(a,{counter:10,label:"Email da Empresa",modelValue:o.form.emailEmpresa,"onUpdate:modelValue":e[1]||(e[1]=l=>o.form.emailEmpresa=l)},null,8,["modelValue"]),r(a,{counter:10,label:"Telefone da Empresa",modelValue:o.form.telefoneEmpresa,"onUpdate:modelValue":e[2]||(e[2]=l=>o.form.telefoneEmpresa=l)},null,8,["modelValue"]),r(a,{counter:10,label:"Estado",modelValue:o.form.estado,"onUpdate:modelValue":e[3]||(e[3]=l=>o.form.estado=l)},null,8,["modelValue"]),r(a,{counter:10,label:"Cidade",modelValue:o.form.cidade,"onUpdate:modelValue":e[4]||(e[4]=l=>o.form.cidade=l)},null,8,["modelValue"]),r(t,{label:"Modelo de Contratação",counter:10,items:["CLT","PJ"],modelValue:o.form.tipoVaga,"onUpdate:modelValue":e[5]||(e[5]=l=>o.form.tipoVaga=l)},null,8,["modelValue"]),r(t,{label:"Período de Trabalho",counter:10,items:["Híbrido","Presencial","Remoto"],modelValue:o.form.formaContrato,"onUpdate:modelValue":e[6]||(e[6]=l=>o.form.formaContrato=l)},null,8,["modelValue"])]),m("div",y,[r(a,{counter:10,label:"Cargo",modelValue:o.form.funcao,"onUpdate:modelValue":e[7]||(e[7]=l=>o.form.funcao=l)},null,8,["modelValue"]),r(a,{counter:10,label:"Valor do Salário ou deixe em branco se quiser 'A Combinar'",modelValue:o.form.salario,"onUpdate:modelValue":e[8]||(e[8]=l=>o.form.salario=l)},null,8,["modelValue"]),r(U,{label:"Descrição",counter:1500,rows:"6",modelValue:o.form.descricao,"onUpdate:modelValue":e[9]||(e[9]=l=>o.form.descricao=l)},null,8,["modelValue"]),r(b,{class:"me-4",type:"submit"},{default:p(()=>[c(" Cadastrar ")]),_:1})])],32)],64)}const w=C(x,[["render",_]]);export{w as default};
