1import{a as c,o as n,g as y,f as a,m as K,c as w,w as e,d as s,k as u,t as p,F as M,h as N,n as I,x as U,e as h,I as et,K as at,X as ot,s as lt,J as B,r as V,v as st,N as P,O as it,b as rt,j as x,i as W,z as nt}from"./app-5fc1912d.js";import{_ as dt}from"./ApplicationLogo-e0d31125.js";import{_ as ct,a as ut}from"./Footer-af4780d1.js";import{I as O}from"./iconify-03d69e80.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{h as E}from"./validacaoNome-49cf0a9d.js";import{l as wt}from"./icon-df62cc88.js";import{_ as ft,a as pt,b as mt}from"./android-logo-db3b8e8d.js";const _t={components:{Icon:O},props:{color:String}};function gt(t,l,i,g,r,d){const k=c("Icon");return n(),y("div",{class:"icon-dot",style:K({color:i.color})},[a(k,{icon:"icon-park-outline:dot",width:"25"})],4)}const ht=R(_t,[["render",gt],["__scopeId","data-v-3a13dfb4"]]);const bt={components:{IconDot:ht,Icon:O},props:{vaga:Object,vagaSelecionada:Number,isVagaSalva:Function,deleteBookmarkClick:Function,handleBookmarkClick:Function,calcularDias:Function,iconColor:String,showIcon:Boolean,showSalario:Boolean},computed:{cardClasses(){return{"tw-shadow-md tw-border tw-rounded-3xl cursor-pointer tw-h-[100%]":!0,"tw-border-black":this.vaga===this.vagaSelecionada}}},methods:{emitirEventoClique(){this.$emit("clique-card",this.vaga)},getColorByStatus(t){switch(t){case"Ativo":return"primary";case"Bloqueado":return"primary";case"Selecao":return"primary";case"Inativo":return"grey";case"Rascunho":return"grey"}}}},xt=t=>(et("data-v-6f72e6ad"),t=t(),at(),t),vt={class:"tw-flex"},yt={class:"tw-flex-col"},kt={class:"tw-text-ellipsis tw-uppercase"},Vt={class:"tw-text-sm tw-text-positive tw-font-bold"},qt={class:"tw-flex tw-flex-wrap tw-mx-auto tw-mt-7 tw-mb-7"},St={class:"tw-mr-2 tw-mb-2"},Ft={class:"tw-flex tw-mt-5"},Ct={key:0},At={key:0,class:"tw-ml-12 tw-text-positive"},It=xt(()=>s("div",null,null,-1)),Lt={class:"tw-align-text-bottom tw-ml-16 tw-text-slate-600 tw-text-[11px] tw-font-medium tw-leading-none tw-tracking-wide"};function Mt(t,l,i,g,r,d){const k=c("q-avatar"),q=c("q-badge"),_=c("IconDot"),m=c("q-card-section"),f=c("q-card-actions"),F=c("q-card");return n(),w(F,{class:I(d.cardClasses),onClick:l[0]||(l[0]=S=>d.emitirEventoClique(i.vaga))},{default:e(()=>[a(m,{class:"tw-flex tw-relative"},{default:e(()=>[s("div",vt,[a(k,{class:"tw-mr-3 tw-bg-positive tw-uppercase","text-color":"white"},{default:e(()=>[u(p(i.vaga.cargo.substr(0,1)),1)]),_:1}),s("div",yt,[s("h5",kt,[u(p(i.vaga.cargo.length>40?i.vaga.cargo.slice(0,25)+"...":i.vaga.cargo.toUpperCase())+" ",1),s("p",Vt,p(i.vaga.quantidade_vaga)+" Vaga"+p(i.vaga.quantidade_vaga>
11?"s":""),1)]),s("p",null,p(i.vaga.cidade),1),s("div",qt,[(n(!0),y(M,null,N(i.vaga.grupo_vagas,(S,C)=>(n(),y("div",{class:"tw-mr-2 tw-mb-2",key:C},[a(q,{class:I(["tw-uppercase tw-bg-[#DBE1FF] tw-border-cyan-50 tw-truncate",i.vaga.status==="Rascunho"?"tw-text-[#3F484A]":"tw-text-[#0052DD]"]),outline:""},{default:e(()=>[u(p(S.diversidade.nome),1)]),_:2},1032,["class"])]))),128)),s("div",St,[a(q,{class:I(["tw-uppercase tw-bg-green-50 tw-border-none tw-truncate tw-rounded",(i.vaga.status==="Rascunho","tw-text-positive")]),outline:""},{default:e(()=>[u(p(i.vaga.formato),1)]),_:1},8,["class"])])]),s("div",Ft,[U(t.$slots,"salario",{vaga:i.vaga},()=>[i.showSalario?(n(),y("p",Ct,p(t.formatarSalario(i.vaga.valor_salario))+"/mês",1)):h("",!0)],!0),U(t.$slots,"inscritos",{vaga:i.vaga},()=>[i.showSalario?(n(),y("p",At,p(i.vaga.candidaturas.length)+" Inscritos",1)):h("",!0)],!0)])])]),s("div",null,[U(t.$slots,"bookmark-button",{vaga:i.vaga},void 0,!0)]),i.showIcon?(n(),w(_,{key:0,color:i.iconColor},null,8,["color"])):h("",!0),It]),_:3}),a(f,null,{default:e(()=>[s("p",Lt," Anunciado há "+p(i.calcularDias(i.vaga.created_at)),1)]),_:1})]),_:3},8,["class"])}const jt=R(bt,[["render",Mt],["__scopeId","data-v-6f72e6ad"]]);const Dt={components:{VagaCard:jt,Icon:O,ApplicationLogo:dt,Footer:ct,Head:ot},props:{canLogin:{type:Boolean},isLoggedIn:{type:Boolean},canRegister:{type:Boolean},laravelVersion:{type:String,required:!0},phpVersion:{type:String,required:!0},vagas:{type:Object,default:()=>[]},vagaSalva:{type:Array,default:()=>[]},profissionais:{type:Array,default:()=>[]},profissoes:{type:Array,default:()=>[]},localidades:{type:Array,default:()=>[]},candidatos:{type:Array,default:()=>[]},escolaridades:{type:Array,default:()=>[]},qtdVagasDisponiveis:{type:String,default:0},profissional_id:{type:Number},filtros:{type:Object}},setup(){return{notifications:lt(()=>B().props.auth.unreadNotifications)}},mounted(){var t,l,i,g,r,d,k,q;(t=this.configuracoes)!=null&&t.cor_primaria&&(document.documentElement.style.setProperty("--primary-color",E((l=this.configuracoes)==null?void 0:l.cor_primaria)),document.documentElement.style.setProperty("--positive-color",E((i=this.configuracoes)==null?void 0:i.cor_primaria)),document.documentElement.style.setProperty("--q-positive",(g=this.configuracoes)==null?void 0:g.cor_primaria)),(r=this.configuracoes)!=null&&r.cor_secundaria&&document.documentElement.style.setProperty("--secondary-color",E((d=this.configuracoes)==null?void 0:d.cor_secundaria)),(k=this.configuracoes)!=null&&k.cor_erro&&document.documentElement.style.setProperty("--negative-color",E((q=this.configuracoes)==null?void 0:q.cor_erro))},data(){var t,l,i,g,r,d,k,q,_,m,f,F,S,C;return{configuracoes:V(B().props.configuracoes),logo:wt,modalidade:[],tipoContrato:[],faixaSalarial:V((t=this.filtros)!=null&&t.salario?(l=this.filtros)==null?void 0:l.salario:"indiferente"),user:this.$page.props.auth.user,mostrarModal:V(!1),currentPage:V(1),top:V(""),position:V(300),showModal:V(!1),showBookmartButton:V(!1),ocupacoes:V([]),filtro:V((i=this.filtros)!=null&&i.pesquisa?(g=this.filtros)==null?void 0:g.pesquisa:""),showNotifications:V(!1),formNotification:st({id:""}),filterItems:[{key:"ocupacao",label:"Profissão",selectedValue:(r=this.filtros)!=null&&r.profissao?(d=this.filtros)==null?void 0:d.profissao:"",options:["Limpar Filtro"]},{key:"distancia",label:"Distância",selectedValue:(k=this.filtros)!=null&&k.distancia?`Até ${(q=this.filtros)==null?void 0:q.distancia}km`:"",options:["Limpar Filtro"]},{key:"localizacao",label:"Localização",selectedValue:(_=this.filtros)!=null&&_.localizacao?(m=this.filtros)==null?void 0:m.localizacao:"",options:["Limpar Filtro"]},{key:"escolaridade",label:"Escolaridade",selectedValue:(f=this.filtros)!=null&&f.escolaridade?(F=this.filtros)==null?void 0:F.escolaridade:"",options:["Assistente","Junior","Pleno","Sênior","Diretor","Executivo"]},{key:"modalidade",label:"Modalidade",selectedValue:(S=this.filtros)!=null&&S.modalidade?(C=this.filtros)==null?void 0:C.modalidade:"",options:["Limpar Filtro","Presencial","Online","HÃbrido"]}],quantidadeVagas:this.qtdVagasDisponiveis}},methods:{calcularDias(t){const l=new Date(t),g=Math.floor((new Date-l)/(1e3*60)),r
1=Math.floor(g/60),d=Math.floor(g/(60*24));return d>0?`${d} dia${d>1?"s":""}`:r>0?`${r} hora${r>1?"s":""}`:`${g} minuto${g>1?"s":""}`},readNotification(t){if(t.fixa){P.create({position:"top-right",message:"Esta notificação é fixa!",color:"primary"});return}this.formNotification.id=t.id,this.formNotification.post(route("notificacao.read"),{preserveScroll:!0,onSuccess:l=>{this.formNotification.reset(),P.create({position:"top-right",message:"Notificação marcada como lida.",color:"primary"})},onError:l=>{console.log(l),P.create({position:"top-right",message:"Não foi possÃvel marcar esta notificação como lida.",color:"negative"})}})},formatNotificationMessage(t){return t},quantidadeFiltros(){return Object.keys(this.$page.props.filtros).length},isVagaSalva(t){return this.vagaSalva&&this.vagaSalva.some(l=>l.vaga_id===t)},filterOptions(t,l){const i=l.filter(g=>g.label.toLowerCase().includes(t.toLowerCase()));return Promise.resolve(i)},limparFiltros(){this.faixaSalarial="indiferente",this.$inertia.get("/",{},{preserveScroll:!0,preserveState:!1,replace:!0}),this.fecharModal()},aplicarFiltros(){this.updateFilter("salario",this.faixaSalarial),this.fecharModal()},updateFilter(t,l){t=="ocupacao"&&(t="profissao");let i=this.$page.props.filtros;l==="Limpar Filtro"||l=="indiferente"?delete i[t]:i[t]=l,this.$inertia.get("/",{...i},{preserveScroll:!0,preserveState:!1,replace:!0})},exibirModal(){this.mostrarModal=!0},fecharModal(){this.mostrarModal=!1},abrirDetalhes(t){let l=this.$page.props.filtros;it.visit("/vaga/"+t,{data:{...l,page:this.$page.props.vagas.current_page},preserveScroll:!0,preserveState:!1,replace:!0})},redirectToLogin(){this.redirectUrl=window.location.href,window.location.href="login?redirect="+encodeURIComponent(this.redirectUrl)},logout(){this.$inertia.post("/logout")},filtroOcupacao(t,l,i){l(()=>{const g=t.toLowerCase();this.filterItems[0].options=["Limpar Filtro",...new Set(this.ocupacoes.sort().filter(r=>r.toLowerCase().indexOf(g)>-1).map(r=>r))]})},pesquisar(t){let l=this.$page.props.filtros;l.pesquisa=t,t==""&&delete l.pesquisa,this.$inertia.get("/",{...l},{preserveScroll:!0,preserveState:!1,replace:!0})}},created(){this.ocupacoes=B().props.profissoes.sort(),this.filterItems[0].options=["Limpar Filtro",...new Set(this.ocupacoes)],this.filterItems[1].options=["Limpar Filtro",10,30,50,100,200,500],this.filterItems[2].options=["Limpar Filtro",...this.localidades.sort()],this.filterItems[3].options=["Limpar Filtro",...new Set(this.escolaridades.map(t=>t.nome))],this.filterItems[4].options=["Limpar Filtro",...new Set(this.vagas.data.map(t=>t.formato))]}},Et=["href"],Nt={class:"tw-bg-white tw-border-b tw-border-gray-100"},Ut={class:"tw-max-w-[90%] md:tw-max-w-screen-2xl tw-mx-auto tw-px-4 sm:tw-px-6 lg:tw-px-8"},Bt={class:"tw-flex tw-justify-between tw-h-16"},Pt={class:"tw-flex tw-items-center"},Ot={class:"tw-shrink-0 tw-flex tw-items-center tw-mr-6"},Rt=["href"],Tt={class:"tw-flex sm:tw-items-center tw-items-center sm:tw-ml-4"},zt={key:0},Ht={class:"tw-hidden md:tw-flex"},Gt={class:"tw-flex tw-flex-1 tw-w-full tw-flex-col tw-gap-2 tw-p-4 tw-items-center tw-justify-center"},Jt={key:1,class:"sm:tw-ml-6 tw-items-center"},Wt={class:"tw-flex"},Kt=["innerHTML"],Qt=s("div",{class:"tw-w-full tw-text-positive tw-font-semibold"},"Ver todas as notificações",-1),Xt={class:""},Yt={class:"tw-max-w-[90%] md:tw-max-w-screen-2xl tw-mx-auto sm:tw-px-6 lg:tw-px-8"},Zt={class:"sm:tw-rounded-lg tw-flex tw-flex-col tw-gap-10 tw-pt-20 tw-pb-14"},$t={class:"tw-max-w-[936px] tw-flex-1 tw-bg tw-mx-auto tw-flex tw-container tw-items-center tw-justify-center tw-flex-center"},te={class:"tw-font-normal tw-text-3xl md:tw-text-5xl tw-text-white tw-w-full tw-text-center tw-leading-10"},ee={class:"tw-flex tw-flex-1 tw-flex-row tw-w-full"},ae={class:"tw-text-center tw-flex-1 font-base tw-bg tw-text-white tw-text-lg tw-font-normal tw-mx-auto tw-flex tw-container tw-items-center tw-justify-center tw-flex-center"},oe={class:"tw-bg-white tw-flex tw-items-center tw-justify-center tw-border-b tw-border-gray-200 tw-w-full"},le=["href"],se=s("h5",{class:"tw-text-lg tw-font-thin md:tw-font-bold tw-text-[#295956] tw-pr-4"},"Quer se profissionalizar? Clique aqui e faça um curso COTEC! ",-1),ie=s("img",{src:ut,class:"tw-h-10 tw-w-auto",alt:"COTEC"},null,-1),re=[se,ie],ne={class:"tw-mb-3 tw-mt-7"},de={class:"tw-flex tw-justify-center items-center tw-w-[90%] md:tw-max-w-screen-2xl tw-mx-auto"},ce={class:"tw-flex tw-w-full"},ue=s("div",{class:"text-h6 text-center"},"Mais filtros",-1),we={class:"tw-ml-32"},fe={class:"tw-w-[90%] md:tw-max-w-screen-2xl tw-grid sm:tw-grid-cols-1 md:tw-grid-cols-2 lg:tw-grid-cols-3 tw-gap-4 tw-mx-auto tw-my-7 tw-gri
1d-flow-row"},pe={class:"tw-flex tw-h-[100%] tw-w-full"},me={class:"tw-justify-between tw-flex tw-flex-col tw-h-[100%]"},_e={class:"tw-flex tw-flex-col tw-gap-1"},ge={class:"tw-line-clamp-2 tw-font-semibold tw-text-xl tw-text-gray-900 tw-text-ellipsis tw-uppercase"},he={class:"tw-text-base tw-leading-3 tw-text-green-600 tw-font-bold"},be={class:"tw-leading-3 tw-text-gray-500"},xe={class:"tw-flex tw-flex-col"},ve={class:"tw-leading-none"},ye=s("br",null,null,-1),ke={class:"tw-text-gray-900 tw-text-[11px] tw-font-semibold tw-leading-none tw-tracking-wide"},Ve={key:0},qe={class:"tw-flex tw-justify-center tw-mt-7 tw-mb-7"},Se=nt('<div class="tw-flex tw-w-full md:tw-w-auto tw-py-10 tw-justify-center tw-items-center"><div class="tw-flex tw-w-full md:tw-w-auto tw-mx-4 tw-flex-col md:tw-flex-row tw-bg-[#FFFFFF] tw-gap-10 md:tw-gap-20 tw-items-center tw-justify-center tw-px-8 tw-py-6 tw-border-2 tw-border-gray-200 tw-rounded-md"><img src="'+ft+'" class="tw-flex tw-h-16"><div class="tw-flex tw-flex-col md:tw-flex-row tw-gap-4 tw-items-center tw-justify-center"><a href="https://apps.apple.com/br/app/minha-vaga/id6462687578" target="_blank"><img src="'+pt+'" class="tw-h-12" alt="Minha Vaga! na App Store"></a><a href="https://play.google.com/store/apps/details?id=br.gov.go.minhavaga&pcampaignid=web_share" target="_blank"><img src="'+mt+'" class="tw-h-12" alt="Minha Vaga! na PlayStore"></a></div></div></div>',1);function Fe(t,l,i,g,r,d){const k=c("Head"),q=c("ApplicationLogo"),_=c("q-item-label"),m=c("q-item-section"),f=c("q-item"),F=c("q-list"),S=c("q-btn-dropdown"),C=c("q-badge"),T=c("q-icon"),Q=c("q-menu"),L=c("q-btn"),X=c("q-input"),z=c("q-select"),j=c("q-card-section"),H=c("q-separator"),A=c("q-radio"),Y=c("q-card-actions"),G=c("q-card"),Z=c("q-dialog"),J=c("Icon"),$=c("q-pagination"),tt=c("Footer"),b=rt("close-popup");return n(),y(M,null,[a(k,null,{default:e(()=>[s("link",{rel:"icon",type:"image/x-icon",href:r.logo},null,8,Et)]),_:1}),s("nav",Nt,[s("div",Ut,[s("div",Bt,[s("div",Pt,[s("div",Ot,[s("a",{href:t.route("welcome")},[a(q,{class:"tw-block md:tw-h-9 tw-h-7 tw-w-auto tw-fill-current tw-text-gray-800"})],8,Rt)])]),s("div",Tt,[i.isLoggedIn===!1?(n(),y("div",zt,[s("div",Ht,[s("button",{onClick:l[0]||(l[0]=(...o)=>d.redirectToLogin&&d.redirectToLogin(...o)),class:"tw-bg-white tw-text-[#6F797A] tw-border-[#6F797A] tw-rounded-full tw-mr-3 tw-items-center tw-px-4 tw-py-2 tw-border tw-font-semibold tw-text-xs tw-text-[[#6F797A] tw-tracking-widest tw-ease-in-out tw-duration-150"}," Login "),a(S,{rounded:"",class:"tw-bg-positive tw-font-bold","no-caps":"","text-color":"white",label:"Cadastre-se"},{default:e(()=>[a(F,null,{default:e(()=>[x((n(),w(f,{clickable:"",href:t.route("profissional.store")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Profissional")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]),x((n(),w(f,{clickable:"",href:t.route("empresa.store"),onClick:t.onItemClick},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Empresa")]),_:1})]),_:1})]),_:1},8,["href","onClick"])),[[b]])]),_:1})]),_:1})]),a(S,{class:"tw-flex md:tw-hidden",color:"white","text-color":"black",push:"",flat:"","dropdown-icon":"menu"},{default:e(()=>[s("div",Gt,[s("button",{onClick:l[1]||(l[1]=(...o)=>d.redirectToLogin&&d.redirectToLogin(...o)),class:"tw-bg-white tw-text-[#6F797A] tw-w-full tw-border-[#6F797A] tw-rounded-full tw-items-center tw-px-4 tw-py-2 tw-border tw-font-semibold tw-text-xs tw-text-[[#6F797A] tw-tracking-widest tw-ease-in-out tw-duration-150"}," Login "),a(S,{rounded:"",class:"tw-bg-positive tw-font-bold tw-w-full","no-caps":"","text-color":"white",label:"Cadastre-se"},{default:e(()=>[a(F,null,{default:e(()=>[x((n(),w(f,{clickable:"",href:t.route("profissional.store")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Profissional")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]),x((n(),w(f,{clickable:"",href:t.route("empresa.store"),onClick:t.onItemClick},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Empresa")]),_:1})]),_:1})]),_:1},8,["href","onClick"])),[[b]])]),_:1})]),_:1})])]),_:1})])):h("",!0),i.isLoggedIn===!0?(n(),y("div",Jt,[s("div",Wt,[a(L,{outline:"",dense:"",round:"",icon:"notifications_none",class:"tw-bg-white tw-text-[#6F797A] tw-border-[#6F797A] tw-rounded-full tw-mr
1-5 tw-items-center tw-px-4 tw-py-2 tw-border tw-font-semibold tw-text-xs tw-text-[#6F797A] tw-tracking-widest focus:tw-outline-none tw-ease-in-out tw-duration-150"},{default:e(()=>[a(C,{class:"tw-bg-positive",rounded:"",floating:""},{default:e(()=>[u(p(g.notifications.map(o=>({message:o.data.mensagem,id:o.id,fixa:o.data.fixa})).length),1)]),_:1}),a(Q,{modelValue:r.showNotifications,"onUpdate:modelValue":l[2]||(l[2]=o=>r.showNotifications=o),cover:"","auto-close":"",style:{width:"287px","max-height":"300px"},anchor:"bottom right",class:"tw-mt-20 tw-top-12"},{default:e(()=>[a(F,null,{default:e(()=>[(n(!0),y(M,null,N(g.notifications.map(o=>({message:o.data.mensagem,id:o.id,fixa:o.data.fixa})).slice(0,5),(o,D)=>(n(),w(f,{class:I([o.fixa&&"tw-bg-green-50 tw-text-cinza tw-font-semibold","tw-items-center tw-border-t tw-border-gray-200"]),clickable:!o.fixa,onClick:W(v=>d.readNotification(o),["prevent"]),key:D},{default:e(()=>[s("div",{innerHTML:d.formatNotificationMessage(o.message),class:"tw-w-full"},null,8,Kt),o.fixa?(n(),w(m,{key:0,avatar:"",class:"tw-items-end -tw-mr-4"},{default:e(()=>[a(T,{color:"white",name:"push_pin"})]),_:1})):h("",!0)]),_:2},1032,["class","clickable","onClick"]))),128)),a(f,{class:"tw-bg-white tw-text-positive tw-items-center tw-border-t tw-border-gray-200",href:t.route("notificacoes")},{default:e(()=>[Qt]),_:1},8,["href"])]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(S,{rounded:"",class:"tw-bg-positive tw-font-bold","no-caps":"","text-color":"white",label:"Minha Conta"},{default:e(()=>[a(F,null,{default:e(()=>[[1,5,6].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:0,clickable:"",href:t.route("admin.empresas")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Empresas")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:1,clickable:"",href:t.route("admin.empresas.pendentes")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Empresas à Validar")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:2,clickable:"",href:t.route("admin.usuarios")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Usuários")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1,5,6].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:3,clickable:"",href:t.route("admin.profissionais")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Profissionais")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1,5,6].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:4,clickable:"",href:t.route("admin.vagas")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Vagas")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1,5,6].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:5,clickable:"",href:t.route("admin.notificacoes")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Notificações")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:6,clickable:"",href:t.route("admin.geral")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>
1[u("Configurações Gerais")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1,5,6].includes(t.$page.props.auth.user.profile_id)?x((n(),w(f,{key:7,clickable:"",href:t.route("admin.perfil")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Perfil")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),[1,5,6].includes(t.$page.props.auth.user.profile_id)?h("",!0):x((n(),w(f,{key:8,clickable:"",href:t.route("profile.edit")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Perfil")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]),t.$page.props.auth.user.profile_id===2?x((n(),w(f,{key:9,clickable:"",href:t.route("candidatos.index")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Minhas Vagas")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),t.$page.props.auth.user.profile_id===4?x((n(),w(f,{key:10,clickable:"",href:t.route("vagas.index")},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Minhas Vagas")]),_:1})]),_:1})]),_:1},8,["href"])),[[b]]):h("",!0),x((n(),w(f,{clickable:"",as:"button",onClick:d.logout},{default:e(()=>[a(m,null,{default:e(()=>[a(_,null,{default:e(()=>[u("Sair")]),_:1})]),_:1})]),_:1},8,["onClick"])),[[b]])]),_:1})]),_:1})])])):h("",!0)])])])]),s("body",null,[s("div",{class:I(["tw-bg-cover tw-w-full tw-px-[16px] tw-flex-col tw-justify-center tw-co tw-items-center",r.configuracoes.banner_image?"":"bg-titulo"]),style:K(r.configuracoes.banner_image&&`background-image: url('/storage/${r.configuracoes.banner_image}')`)},[s("div",Xt,[s("div",Yt,[s("div",Zt,[s("div",$t,[s("h4",te,"Existem "+p(this.qtdVagasDisponiveis)+" vagas disponÃveis, uma delas pode ser sua!",1)]),s("div",ee,[a(X,{class:"tw-flex tw-w-full",rounded:"",outlined:"","bg-color":"white",placeholder:"Busque por uma vaga ou localização",modelValue:r.filtro,"onUpdate:modelValue":[l[3]||(l[3]=o=>r.filtro=o),d.pesquisar],debounce:"1000",clearable:""},{append:e(()=>[a(T,{name:"search"})]),_:1},8,["modelValue","onUpdate:modelValue"])]),s("div",ae,p(r.configuracoes.slogan??"A Rede Indica é um projeto do COTEC do Governo de Goiás"),1)])])])],6)]),s("div",oe,[s("a",{href:t.route("cotec-cursos"),target:"_blank",class:"tw-py-2 tw-w-[90%] md:tw-max-w-screen-2xl tw-flex-row tw-mx-auto tw-flex tw-justify-between tw-items-center"},re,8,le)]),s("div",ne,[s("div",de,[s("div",ce,[s("div",{class:I([t.$page.props.auth.user?"lg:tw-grid-cols-6":"lg:tw-grid-cols-5","tw-grid tw-grid-cols-1 md:tw-grid-cols-3 tw-gap-4 tw-w-full"])},[(n(!0),y(M,null,N(this.filterItems.filter(o=>o.key=="distancia"?!!t.$page.props.auth.user:!0),(o,D)=>(n(),y("div",{key:D},[o.key=="ocupacao"?(n(),w(z,{key:0,borderless:"",class:"tw-border tw-text-center tw-items-center tw-placeholder-[#72796F] tw-max-h-11 tw-text-ellipsis tw-overflow-hidden tw-py-0 tw-rounded-xl tw-px-2 tw-justify-center tw-border-[#b4b4b4]",color:"black","no-uppercase":"",dense:"",label:o.label,modelValue:o.selectedValue,"onUpdate:modelValue":[v=>o.selectedValue=v,v=>d.updateFilter(o.key,o.selectedValue)],"emit-value":"","map-options":"","use-input":"","input-debounce":"0",onFilter:d.filtroOcupacao,options:o.options.map(v=>({label:v,value:v}))},null,8,["label","modelValue","onUpdate:modelValue","onFilter","options"])):(n(),w(z,{key:1,borderless:"",class:"tw-border tw-text-center tw-items-center tw-placeholder-[#72796F] tw-max-h-11 tw-text-ellipsis tw-overflow-hidden tw-py-0 tw-rounded-xl tw-px-2 tw-justify-center tw-border-[#b4b4b4]",color:"black","no-uppercase":"",dense:"",label:o.label,modelValue:o.selectedValue,"onUpdate:modelValue":[v=>o.selectedValue=v,v=>d.updateFilter(o.key,o.selectedValue)],"input-style":{textAlign:"center"},"emit-value":"","map-options":"",options:o.options.map(v=>({label:o.key=="distancia"&&v!="Limpar Filtro"?`Até ${v}km`:v,value:v}))},null,8,["label","modelValue","onUpdate:modelValue","options"]))]))),128)),s("button",{onClick:l[4]||(l[4]=(...o)=>d.exibirModal&&d.exibirModal(...o)),class:"tw-border items-center tw-col-span-1 md:tw-col-span-2 lg:tw-col-span-1 tw-font-semibold tw-text-green-500 flex flex-1 tw-h-10 tw-text-ellipsis tw-overflow-hidden tw-py-0 tw-rounded-lg tw-px-2 tw-justify-center tw-border-[#72796F]"}," Mais Filtros ")],2)])])]),a(Z,{class:"",modelValue:r.mostrarModal,"onUpdate:modelValue":l[11]||(l[11]=o=>r.mostrarModal=o)},{default:e(()=>[a(G,{class:"tw-container tw-max-w-screen-md tw-mx-auto",style:{"max-width":"95vw"}},{default:e(()=>[a(j,null,{default:e(()=>[ue]),_:1}),a(H),s("div",we,[a(j,{class:"text-h6"},{default:e(()=>[u(" Faixa Salarial ")]),_:1}
1),a(j,{class:"tw-grid tw-grid-cols-2"},{default:e(()=>[a(A,{modelValue:r.faixaSalarial,"onUpdate:modelValue":l[5]||(l[5]=o=>r.faixaSalarial=o),label:"Indiferente",class:"tw-mb-10",val:"indiferente",dense:""},null,8,["modelValue"]),a(A,{modelValue:r.faixaSalarial,"onUpdate:modelValue":l[6]||(l[6]=o=>r.faixaSalarial=o),label:"Até R$ 2.000",class:"tw-mb-10",val:"<2k",dense:""},null,8,["modelValue"]),a(A,{modelValue:r.faixaSalarial,"onUpdate:modelValue":l[7]||(l[7]=o=>r.faixaSalarial=o),label:"A partir de R$ 2.000",class:"tw-mb-10",val:"2k>",dense:""},null,8,["modelValue"]),a(A,{modelValue:r.faixaSalarial,"onUpdate:modelValue":l[8]||(l[8]=o=>r.faixaSalarial=o),label:"A partir de R$ 4.000",class:"tw-mb-10",val:"4k>",dense:""},null,8,["modelValue"]),a(A,{modelValue:r.faixaSalarial,"onUpdate:modelValue":l[9]||(l[9]=o=>r.faixaSalarial=o),label:"A partir de R$ 6.000",val:"6k>",dense:""},null,8,["modelValue"]),a(A,{modelValue:r.faixaSalarial,"onUpdate:modelValue":l[10]||(l[10]=o=>r.faixaSalarial=o),label:"A partir de R$ 8.000",val:"8k>",dense:""},null,8,["modelValue"])]),_:1})]),a(H),a(Y,{class:"tw-mt-4 tw-ml-4 sm:tw-ml-8 md:tw-ml-16 lg:tw-ml-32 tw-mb-10 tw-text-positive tw-text-sm tw-text-center tw-rounded-md tw-mr-4 sm:tw-mr-8 md:tw-mr-16 lg:tw-mr-32 tw-flex tw-justify-center sm:tw-justify-between"},{default:e(()=>[a(L,{flat:"","no-caps":"",label:"Limpar filtros",class:"tw-font-semibold",onClick:d.limparFiltros},null,8,["onClick"]),a(L,{rounded:"",class:"tw-bg-positive",onClick:d.aplicarFiltros,"no-caps":"","text-color":"white"},{default:e(()=>[u(" Aplicar Filtros "+p(d.quantidadeFiltros()>0?"("+d.quantidadeFiltros()+")":""),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),s("div",null,[s("div",fe,[(n(!0),y(M,null,N(i.vagas.data,o=>(n(),y("div",{key:o.id,class:"tw-mb-4 sm:tw-mb-6 tw-grid"},[a(G,{class:"tw-shadow-md tw-border tw-w-full tw-border-slate-[#424940] tw-between tw-mb-6 tw-rounded-xl cursor-pointer tw-h-[100%]",onClick:W(D=>d.abrirDetalhes(o.id),["prevent"])},{default:e(()=>[a(j,{class:"tw-flex tw-justify-between tw-h-[100%]"},{default:e(()=>[s("div",pe,[s("div",me,[s("div",_e,[s("h5",ge,p(o.cargo.toUpperCase()),1),s("p",he,p(o.quantidade_vaga)+" Vaga"+p(o.quantidade_vaga>
11?"s":""),1),s("p",be,p(o.distancia),1)]),s("div",xe,[s("p",ve,[u(p(o.bairro)+", "+p(o.cidade)+" - "+p(o.uf)+" ",1),ye,u(" ("+p(o.formato)+")",1)]),s("p",ke," Anunciado há "+p(d.calcularDias(o.created_at)),1)])])]),!t.$page.props.auth.user||t.$page.props.auth.user.profile_id===2?(n(),y("div",Ve,[d.isVagaSalva(o.id)?(n(),w(L,{key:0,class:"tw-text-positive",flat:""},{default:e(()=>[a(J,{icon:"material-symbols:bookmark",width:"35",class:"tw-text-positive"})]),_:1})):(n(),w(L,{key:1,class:"tw-text-gray-500",flat:""},{default:e(()=>[a(J,{icon:"material-symbols:bookmark-outline",width:"35"})]),_:1}))])):h("",!0)]),_:2},1024)]),_:2},1032,["onClick"])]))),128))]),s("div",qe,[a($,{rounded:"",modelValue:i.vagas.current_page,"onUpdate:modelValue":[l[12]||(l[12]=o=>i.vagas.current_page=o),l[13]||(l[13]=o=>t.$inertia.get("/",{page:o,...i.filtros},{preserveState:!0,replace:!0}))],class:"tw-text-weight-bold tw-font-bold","text-color":"positive","text-b":"","active-color":"green-8","active-text-color":"white",min:1,size:"20px",max:i.vagas.last_page,"max-pages":10,"direction-links":""},null,8,["modelValue","max"])])]),Se,a(tt)],64)}const Ne=R(Dt,[["render",Fe]]);export{Ne 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.