1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CFQPsItC.js","./XTRKNgXB.js","./BDnUSEef.js","./entry.CmtRqHgG.css","./sMTinhCo.js","./Modal.Dp8JVi3Y.css"])))=>i.map(i=>d[i]); 2import{_ as O,r as c,o as l,b as d,d as t,B as y,e as o,a as j,i as L,n as A,Y as F,F as k,E as N,z as S,x as B,y as z,t as R,D as T,G,H}from"./BDnUSEef.js";import{u as Y}from"./COA9nO0L.js";import{u as q}from"./BSOiNyQJ.js";import{u as J}from"./Da15_T1e.js";import"./C0Ubsy79.js";const K={class:"bg-white rounded-4 p-3 p-md-1 d-flex flex-column flex-md-row border border-opcion"},Q={class:"col-md-6 col-lg-7 my-md-2 px-md-3"},U={class:"text-primary fw-bold"},W={class:"text-primary fw-bold"},X={class:"mb-md-0 texto-principal"},Z={class:"col-md-3 d-flex flex-column justify-content-center"},ee={class:"mb-md-0 texto-principal"},te={class:"bg-ver-informe rounded-4 d-flex justify-content-center align-items-center col-md-3 col-lg-2 py-3"},oe=["disabled"],ae={__name:"Opcion",props:["informe","cargandoInforme"],emits:"abrirModal",setup(_,{emit:s}){const m=_,n=m.informe,x=c(!1),P=s,C=()=>{P("abrirModal")},u=new Date,b=i=>{const e=i.split(" ")[0].split("/");return e[2].length>2?`${e[0]} ${p[Number(e[1]-1)]} ${e[2]}`:`${e[0]} ${p[Number(e[1]-1)]} 20${e[2]}`},g=i=>i.split(" ")[1].slice(0,5),h=i=>{const a=i.split(" ")[0].split("/");return`${a[2]}-${a[1]}-${a[0]}`},p=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"];return Date.parse(u)<Date.parse(h(n==null?void 0:n.fechaExpiracionOferta))&&(x.value=!0),(i,a)=>{var e,v,$;return l(),d("div",K,[t("div",Q,[t("h3",U,y(o(n).nombreCargoOferta),1),t("h4",W,y(o(n).nombreEmpresaOferta),1),t("p",X,y(o(x)?"Aún recibiendo postulaciones":"Dejó de recibir postulaciones el "+b((e=o(n))==null?void 0:e.fechaExpiracionOferta)),1)]),t("div",Z,[a[0]||(a[0]=t("h4",{class:"texto-principal mb-2"},"Creado el",-1)),t("p",ee,y(b((v=o(n))==null?void 0:v.fechaCreacion))+" "+y(g(($=o(n))==null?void 0:$.fechaCreacion)),1)]),t("div",te,[t("button",{class:"btn btn-tertiary-blue text-primary border border-primary px-5 px-md-2",type:"button",disabled:m.cargandoInforme,onClick:C}," Ver informe ",8,oe)])])}}},se=O(ae,[["__scopeId","data-v-8615700e"]]),ne=G(()=>H(()=>import("./CFQPsItC.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(_=>_.default||_)),re={class:"container"},ie={key:0,class:"d-flex flex-column gap-3"},le={key:0,class:"text-center"},ce={key:0,class:"spinner-border spinner-border-sm",role:"status"},de={key:1,class:"mt-3"},me={class:"text-center"},ue=["src"],ve={__name:"informes-perfil-postulantes",async setup(_){let s,m;const{obtenerCandidato:n}=Y(),{obtenerListadoInformePerfilPostulantes:x,verInformePerfilPostulantes:P}=q(),{listadoVpp:C}=J(),u=j(),b=([s,m]=L(()=>n(u.obtenerLogin.id)),s=await s,m(),s),g=c(!1),h=c(!1),p=c(!1),i=c(null),a=c(0),e=c(null),v=c(null),$=async f=>{g.value=!0;const r=await P(f.idInforme),I={titulo:f.nombreCargoOferta,contenido:r,postulada:!0,expectativaRenta:b.salarioEsperado,tipoCV:b.tipoCurriculum};v.value=I,g.value=!1,i.value.mostrarModal()},M=()=>C(u.obtenerLogin.jwt,u.obtenerLogin.id,a.value),V=async()=>{h.value=!0,a.value++,(await M()).cuposDetalle.forEach(r=>{e.value.cuposDetalle.push(r)}),h.value=!1};try{e.value=([s,m]=L(()=>x(u.login.id)),s=await s,m(),s),p.value=!0}catch{p.value=!0}return(f,r)=>{var D;const I=se,E=ne;return l(),d(k,null,[A(t("section",null,[t("div",re,[r[2]||(r[2]=t("h1",{class:"fw-bold texto-titulo mb-3 mt-3"}," Mis informes de perfil de los postulantes ",-1)),o(e)?(l(),d("div",ie,[(l(!0),d(k,null,N(o(e),w=>(l(),T(I,{key:`${w.fecha}-inf`,informe:w,"cargando-informe":o(g),onAbrirModal:pe=>$(w)},null,8,["informe","cargando-informe","onAbrirModal"]))),128)),((D=o(e))==null?void 0:D.cantidadPaginas)>o(a)?(l(),d("div",le,[t("button",{class:"btn btn-principal",onClick:V},[o(h)?(l(),d("div",ce,r[0]||(r[0]=[t("span",{class:"visually-hidden"},"Loading...",-1)]))):(l(),d(k,{key:1},[S(" Cargar más ")],64))])])):B("",!0)])):(l(),d("div",de,[t("div",me,[t("img",{src:`${f.$config.public.rutaCdn}/assets/trabajando-cl/img/svg/sin-ipp.svg`,class:"img-fluid mt-2"},null,8,ue),r[1]||(r[1]=z('<div><h2 class="texto-azul-corporativo fw-bold mt-2"> Aún no tienes informes </h2><p class="mb-2"> Obtén tu primer informe en alguna de las ofertas de empleo del portal. </p></div><div class="mt-2"><a href="/trabajo-empleo"><button class="btn btn-principal mt-2" type="button"> Ver ofertas de empleo </button></a></div>',2))])]))])],512),[[F,o(p)]]),R(E,{ref_key:"modalIPP",ref:i,informe:o(v)},null,8,["informe"])],64)}}};export{ve 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.