PageSourceSearch

https://redeindica.go.gov.br/build/assets/Vagas-bdb6e91d.js

js redeindica.go.gov.br collected 2026-10-02 00:28:54 UTC 7,491 bytes, 1 lines download raw bytes

1import{_ as U}from"./AuthenticatedLayout-aebca31e.js";import{J as R,r as v,y as j,a as c,o as u,g as m,f as i,w as r,d as e,t as a,k as o,c as D,F as J,p as E,N as p}from"./app-5fc1912d.js";import"./ApplicationLogo-e0d31125.js";import"./icon-df62cc88.js";import"./validacaoNome-49cf0a9d.js";const L={class:"tw-py-12"},O={class:"tw-max-w-7xl tw-mx-auto sm:tw-px-6 lg:tw-px-8"},Q={class:"tw-bg-white tw-overflow-hidden tw-shadow-sm sm:tw-rounded-lg"},G={key:0},K={class:"tw-inline-flex tw-items-center tw-rounded-md tw-shadow-sm"},W=["onClick"],X=["onClick"],Y=["onClick"],Z={key:1},ee={key:2},te={class:"tw-w-full tw-flex tw-justify-center tw-items-center"},ae=e("div",{class:"text-h6"},"Detalhes da Vaga",-1),oe=e("strong",null,"Empresa:",-1),ne=e("strong",null,"Salário:",-1),se=e("strong",null,"Cargo:",-1),le=e("strong",null,"Descrição:",-1),ie=e("strong",null,"Data Finalização:",-1),de=e("strong",null,"Vaga Externa:",-1),re=e("strong",null,"Links:",-1),ce=["href"],ue=e("strong",null,"Número da Vaga:",-1),_e=e("strong",null,"Idade Mínima:",-1),ve=e("strong",null,"Idade Máxima:",-1),me=e("strong",null,"Ocupação:",-1),ge=e("strong",null,"Formato:",-1),we=e("strong",null,"CEP:",-1),pe=e("strong",null,"Endereço:",-1),he=e("strong",null,"Bairro:",-1),fe=e("strong",null,"Cidade:",-1),be=e("strong",null,"Tipo de Contratação:",-1),xe=e("strong",null,"Quantidade de Vagas:",-1),ye=e("strong",null,"Escolaridade:",-1),ke=e("strong",null,"Idiomas:",-1),Ce=e("strong",null,"Horário de Trabalho:",-1),qe=e("strong",null,"PCD:",-1),Ve=e("strong",null,"Responsabilidades:",-1),Ie=e("strong",null,"Requisitos:",-1),Ne=e("strong",null,"Benefícios:",-1),$e=e("strong",null,"Status:",-1),Ae={__name:"Vagas",props:{vagas:{type:Array,default:""},candidatos:{type:Array,default:""},empresas:{type:Array,default:""}},setup(k){const h=k,f=R().props.auth.user,S=[{name:"cargo",align:"center",label:"Cargo",field:"cargo",sortable:!0},{name:"empresa",align:"center",label:"Empresa",field:l=>l,format:l=>`${l}`,sortable:!0},{name:"valor_salario",align:"center",label:"Salário",field:"valor_salario",sortable:!0},{name:"formato",align:"center",label:"Formato",field:"formato",sortable:!0},{name:"status",align:"center",label:"Situação",field:"status",sortable:!0},{name:"actions",align:"center",label:"Ações",field:"actions",sortable:!0}],b=v(""),C=v([]),F=v(h.vagas),q=v([]),g=v(!1),t=v({}),V=l=>{const s={vaga_id:l.id,profissional_id:f.id};E.post(route("candidatos.store"),s).then(()=>{p.create({type:"positive",position:"top-right",message:"Candidatura realizada com sucesso."}),setTimeout(()=>{window.location.href=window.location.href},2e3)}).catch(d=>{console.log(d),p.create({type:"negative",color:"negative",position:"top-right",message:`${d.response.data.error}`})})},I=l=>{const s=f.id,d=l.id;E.delete(route("candidatos.destroy",{candidato:s,vaga:d})).then(()=>{p.create({type:"positive",position:"top-right",message:"Candidatura cancelada com sucesso."}),setTimeout(()=>{window.location.href=window.location.href},2e3)}).catch(_=>{console.log(_),p.create({type:"negative",color:"negative",position:"top-right",message:`${_.response.data.error}`})})},B=l=>{t.value=l,g.value=!0},z=()=>{g.value=!1};j(()=>{const l=f.id,s=h.candidatos.filter(d=>{const _=h.vagas.find(x=>x.id===d.vaga_id);return d.profissional_id===l&&_!==void 0});q.value=s.map(d=>d.vaga_id)});const N=l=>q.value.includes(l.id);return(l,s)=>{const d=c("Head"),_=c("q-icon"),x=c("q-input"),A=c("q-td"),T=c("q-table"),$=c("q-card-section"),y=c("q-btn"),H=c("q-card-actions"),M=c("q-card"),P=c("q-dialog");return u(),m(J,null,[i(d,{title:"Vagas"}),i(U,null,{default:r(()=>[e("div",L,[e("div",O,[e("div",Q,[i(T,{flat:"",bordered:"",rows:F.value,columns:S,filter:b.value,"row-key":"name",selected:C.value,"onUpdate:selected":s[1]||(s[1]=n=>C.value=n),"no-data-label":"Sem dados cadastrados","no-results-label":"A sua pesquisa não retornou dados"},{"top-right":r(()=>[i(x,{borderless:"",dense:"",modelValue:b.value,"onUpdate:modelValue":s[0]||(s[0]=n=>b.value=n),placeholder:"Pesquisar",class:"tw-border tw-border-gray-400 tw-rounded-md tw-px-2"},{append:r(()=>[i(_,{name:"search"})]),_:1},8,["modelValue"])]),"body-cell":r(n=>[i(A,{props:n},{default:r(()=>[n.col.name==="actions"?(u(),m("div",G,[e("div",K,[N(n.row)?(u(),m("button",{key:0,onClick:w=>I(n.row),class:"tw-text-black-800 hover:tw-text-white-500 tw-text-sm tw-bg-red-600 hover:tw-bg-slate-100 tw-border tw-border-slate-200 tw-rounded-l-lg tw-font-medium tw-px-4 tw-py-2 tw-inline-flex tw-space-x-1 tw-items-center"}," Cancelar Inscrição ",8,W)):(u(),m("button",{key:1,onClick:w=>V(n.row),class:"tw-text-black hover:tw-text-white-500 tw-text-sm tw-bg-green-500 hover:tw-bg-slate-100 tw-border tw-border-slate-200 tw-rounded-l-lg tw-font-medium tw-px-4 tw-py-2 tw-inline-flex tw-space-x-1 tw-items-center"}," Candidatar-se ",8,X)),e("button",{onClick:w=>B(n.row),class:"tw-text-black-800 hover:tw-text-cyan-500 tw-text-sm tw-bg-white hover:tw-bg-slate-100 tw-border tw-border-slate-200 tw-font-medium tw-rounded-r-lg tw-px-4 tw-py-2 tw-inline-flex tw-space-x-1 tw-items-center"}," Visualizar Vaga ",8,Y)])])):n.col.name==="empresa"?(u(),m("div",Z,[e("span",null,a(k.empresas[0].nome_fantasia),1)])):(u(),m("div",ee,a(n.value),1))]),_:2},1032,["props"])]),"no-data":r(({icon:n,message:w,filter:De})=>[e("div",te,[e("span",null,a(w),1),i(_,{size:"2em",name:"sentiment_dissatisfied"})])]),_:1},8,["rows","filter","selected"])])])]),i(P,{modelValue:g.value,"onUpdate:modelValue":s[4]||(s[4]=n=>g.value=n),"content-class":"dialog-content"},{default:r(()=>[i(M,{class:"tw-font-sans",style:{width:"700px","max-width":"80vw"}},{default:r(()=>[i($,null,{default:r(()=>[ae]),_:1}),i($,null,{default:r(()=>[e("div",null,[oe,o(" "+a(t.value.empresa.nome_fantasia),1)]),e("div",null,[ne,o(" "+a(t.value.valor_salario),1)]),e("div",null,[se,o(" "+a(t.value.cargo),1)]),e("div",null,[le,o(" "+a(t.value.descricao),1)]),e("div",null,[ie,o(" "+a(t.value.data_finalizacao),1)]),e("div",null,[de,o(" "+a(t.value.vaga_externa?"Sim"
1:"Não"),1)]),e("div",null,[re,e("a",{href:t.value.links,target:"_blank"},a(t.value.links),9,ce)]),e("div",null,[ue,o(" "+a(t.value.numero_vaga),1)]),e("div",null,[_e,o(" "+a(t.value.idade_minima),1)]),e("div",null,[ve,o(" "+a(t.value.idade_maxima||"Não especificada"),1)]),e("div",null,[me,o(" "+a(t.value.ocupacao),1)]),e("div",null,[ge,o(" "+a(t.value.formato),1)]),e("div",null,[we,o(" "+a(t.value.cep),1)]),e("div",null,[pe,o(" "+a(t.value.endereco),1)]),e("div",null,[he,o(" "+a(t.value.bairro),1)]),e("div",null,[fe,o(" "+a(t.value.cidade),1)]),e("div",null,[be,o(" "+a(t.value.tipo_contratacao),1)]),e("div",null,[xe,o(" "+a(t.value.quantidade_vaga),1)]),e("div",null,[ye,o(" "+a(t.value.escolaridade),1)]),e("div",null,[ke,o(" "+a(t.value.idiomas),1)]),e("div",null,[Ce,o(" "+a(t.value.horario_trabalho),1)]),e("div",null,[qe,o(" "+a(t.value.pcd?"Sim":"Não"),1)]),e("div",null,[Ve,o(" "+a(t.value.responsabilidades),1)]),e("div",null,[Ie,o(" "+a(t.value.requisitos),1)]),e("div",null,[Ne,o(" "+a(t.value.beneficios),1)]),e("div",null,[$e,o(" "+a(t.value.status),1)])]),_:1}),i(H,{align:"right"},{default:r(()=>[N(t.value)?(u(),D(y,{key:0,label:"Cancelar Inscrição",color:"red",onClick:s[2]||(s[2]=n=>I(t.value))})):(u(),D(y,{key:1,label:"Candidatar-se",color:"green",onClick:s[3]||(s[3]=n=>V(t.value))})),i(y,{label:"Fechar",color:"blue",onClick:z})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})],64)}}};export{Ae 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.