PageSourceSearch

https://www.trabajaenccu.cl/_nuxt/dU-vKUd2.js

js trabajaenccu.cl collected 2026-10-06 18:27:46 UTC 2,414 bytes, 1 lines download raw bytes

1import{a as k,I as $,u as j,a2 as R,r as c,h as L,i as P,e as l,b as u,d as a,F as f,q as S,x as z,M as B,o as d}from"./BDnUSEef.js";import{u as E}from"./CwNjdzJ-.js";const N={key:0,class:"margin-pagina-mitad w-100 d-flex fondoColorPrincipal"},q={class:"w-100 d-flex fondoColorPrincipal"},A={class:"container position-relative"},T={class:"formContainer col-12 bg-white px-3 py-3 px-lg-5 py-lg-5 mx-auto",style:{"border-radius":"16px"}},V={class:"text-center"},D=["src"],F=["disabled"],I="Tu email ha sido confirmado, por favor ingresa con tu usuario y contraseña",K={__name:"[jwt]",async setup(G){let o,p;const g=k(),s=$(),v=j();g.guardarLogin(null);const{confirmarCuenta:b,reenvioConfirmacionCuenta:y}=E(),w=R("email-confirmado"),n=c(!1),m=c(!1),r=c(!1),{$bus:i}=L();if(s.params.jwt){const{data:t}=([o,p]=P(()=>B("confirmar-cuenta",()=>b(s.params.jwt))),o=await o,p(),o);t.value==1?(w.value=I,n.value=!1,setTimeout(()=>{v.replace("/ingresa-a-tu-cuenta")})):t.value==3?(n.value=!0,m.value=!0):n.value=!0}const x=async()=>{r.value=!0,i.$emit("showLoading"),await y(C(s.params.jwt,"idCandidatoGlobal"))?i.$emit("alertSuccess","Se ha reenviado el correo de confirmación."):i.$emit("alertDanger","Hubo un problema al reenviar el correo de confirmación."),i.$emit("hideLoading"),r.value=!1},C=(t,e)=>{if(s.params.jwt){const[_,h,H]=t.split(".");return JSON.parse(atob(h.replace(/-/g,"+").replace(/_/g,"/")))[e]}return null};return(t,e)=>l(n)?(d(),u("div",N,[a("section",q,[a("div",A,[a("div",T,[a("div",V,[a("img",{src:`${t.$config.public.rutaCdn}/assets/trabajando-cl/img/svg/alert-warning-icon.svg`,class:"img-responsive",width:"120"},null,8,D),l(m)?(d(),u(f,{key:0},[e[1]||(e[1]=a("h1",{class:"fw-bolder texto-titulo"},"El enlace ya fue utilizado",-1)),e[2]||(e[2]=a("p",{class:"texto-principal"}," Puedes ingresar al portal para comenzar. ",-1)),e[3]||(e[3]=a("a",{href:"/ingresa-a-tu-cuenta",class:"btn btn-principal",type:"button"}," Ir al portal ",-1))],64)):(d(),u(f,{key:1},[e[4]||(e[4]=a("h1",{class:"fw-bolder texto-titulo"},"El enlace ya no es válido",-1)),e[5]||(e[5]=a("p",{class:"texto-principal"}," Tendrás que solicitar nuevamente el correo con el enlace y comenzar nuevamente el proceso. ",-1)),a("button",{disabled:l(r),class:S(["btn",l(r)?"btn-secundario":"btn-principal"]),type:"button",onClick:e[0]||(e[0]=_=>x())}," Reenviar el email ",10,F)],64))])])])])])):z("",!0)}};export{K 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.