PageSourceSearch

https://www.trabajando.cl/_nuxt/UgYbKGta.js

js trabajando.cl collected 2026-09-25 15:18:57 UTC 2,548 bytes, 1 lines download raw bytes

1import{_ as x}from"./BwvGzVEY.js";import{f as A,ag as h,V as $,j as V,B as w,k as e,o as n,c,a as y,C as i,E as I,l as C,y as d,s as L,$ as D}from"./DFp-2ogX.js";import{u as j}from"./CFJAIz1O.js";import{a as U,c as W}from"./NUZVr9ds.js";import{T as f}from"./fnD72vvD.js";import"./jlh3cAos.js";import"./rbZGK33J.js";import"./gQ9JDcR9.js";import"./DhtGWptd.js";import"./CkKvUDht.js";const X={key:0,id:"offCanvasPreguntasMobile",class:"offcanvas offcanvas-bottom offCanvasPreguntasMobile","data-bs-backdrop":"false",tabindex:"-1","aria-labelledby":"offcanvasWithBackdropLabel"},q={class:"offcanvas-header"},z=["disabled"],F=["disabled"],G={class:"offcanvas-body"},ne={__name:"PreguntasMobile",setup(H){var g;const{$bootstrap:b}=A(),{postularOferta:P}=U(),E=j(),O=W(),{validaciones:m}=h(O),{oferta:o}=h(E),r=d(!0),a=d(0),l=d(!1),p=d(!0),v=(g=$("callbackCVPrepostulacion"))==null?void 0:g.value,N=L(()=>o.value.idOferta===(v==null?void 0:v.idOferta)),B=()=>{a.value=a.value-1,l.value=!1,a.value<0?r.value=!0:(a.value===0?r.value=!0:r.value=!1,o.value.preguntas.forEach((u,s)=>{let t=null;t=document.getElementById("pregunta_"+s),t&&(s===a.value?t.className="":t.className="d-none")}))},R=()=>{r.value=!1,o.value.preguntas.forEach((u,s)=>{let t=null;t=document.getElementById("pregunta_"+s),t&&(s===a.value+1?t.className="":t.className="d-none")}),a.value=a.value+1,o.value.preguntas.length===a.value+1&&(l.value=!0)},M=()=>{b.Offcanvas.getInstance("#offCanvasPreguntasMobile").hide(),P()},S=()=>{new b.Modal("#modalPreguntasVolver").show()},T=async()=>{p.value=!1,await D(),p.value=!0};return V(o,u=>{T(),u.preguntas&&u.preguntas.length===1&&(l.value=!0)}),w(()=>{o.value.preguntas&&o.value.preguntas.length===1&&(l.value=!0)}),(u,s)=>{var _,k;const t=x;return e(o).preguntas&&e(o).preguntas.length>0?(n(),c("div",X,[y("div",q,[e(r)?(n(),c("button",{key:0,type:"button",class:"btn btn-link cancelar-volver",onClick:S},i(e(f).CANCELAR),1)):(n(),c("button",{key:1,type:"button",class:"btn btn-link cancelar-volver",onClick:B},i(e(f).ANTERIOR),1)),e(l)?(n(),c("button",{key:2,type:"button",class:"btn primary-btn blue boton-deshabilitado",disabled:(_=e(m)[`pregunta_${e(a)}`])==null?void 0:_.$invalid,onClick:M},i(e(N)?"Completar Postulación":e(f).POSTULAR),9,z)):(n(),c("button",{key:3,type:"button",class:"btn primary-btn blue boton-deshabilitado",disabled:(k=e(m)[`pregunta_${e(a)}`])==null?void 0:k.$invalid,onClick:R},i(e(f).RESPONDER),9,F))]),y("div",G,[e(p)?(n(),I(t,{key:0,"tipo-vista":"mobile"})):C("",!0)])])):C("",!0)}}};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.