PageSourceSearch

https://comedor.unap.edu.pe/build/assets/publicar-86951cdb.js

js unap.edu.pe collected 2026-09-24 09:15:44 UTC 9,841 bytes, 1 lines download raw bytes

1import{s as C}from"./index-ae1e630d.js";import{s as E}from"./index-e39b3e6c.js";import{s as q}from"./index-c7165125.js";/* empty css                  */import{s as J}from"./index-3ebeef9d.js";import{s as K}from"./index-1231617c.js";import{s as P}from"./index-750ae019.js";import{b as a,u as W,h as X,o as n,c as d,a as l,w as r,e as i,F as p,p as V,d as o,m as v,t as c,f as Z,aC as ee,aN as oe}from"./app-6ed58267.js";import{s as j}from"./index-b28e72c9.js";import{a as se,b as O,c as te,s as le}from"./index-a371a390.js";import{s as R}from"./index-e6275d93.js";import{s as ae}from"./index-5e659547.js";import{s as ie}from"./index-c8b5d168.js";import re from"./requisito-04201660.js";import ne from"./encuesta-9abc2027.js";import{_ as de}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-4f1a1003.js";import"./index-436de0c3.js";import"./index-c557876d.js";import"./index-ed020d5c.js";import"./index-55e269b0.js";import"./index-c8b5756d.js";import"./index-f70ab45e.js";import"./index-7c3585f6.js";import"./index-b52d18eb.js";import"./index-8e4eceb4.js";import"./index-0314fef6.js";import"./index-f41a547c.js";import"./index-b59fe04c.js";import"./index-8da8b573.js";import"./index-b5e3c9e2.js";import"./index-30c42bcf.js";import"./index-59a2cf61.js";import"./index-98e96822.js";import"./index-11435656.js";import"./index-5457146d.js";import"./index-0eca41d0.js";import"./requisitoAceptado-2cec2b81.js";import"./index-0601d356.js";const ue={class:"grid mt-2"},ce={class:"flex justify-center",style:{height:"30px"}},pe={style:{"text-align":"center"}},me={style:{"font-size":".9rem","text-transform":"capitalize"}},ve={class:"categorias-grid mt-2"},fe={class:"flex justify-center",style:{height:"30px"}},be={style:{"text-align":"center"}},ye={style:{"font-size":".9rem","text-transform":"capitalize"}},_e={class:"flex justify-between"},ge={style:{"font-size":"1rem","text-transform":"uppercase"}},xe={class:"m-0"},we={class:"flex justify-between"},he={style:{"font-size":"1rem","text-transform":"uppercase"}},Ce={class:"flex justify-end pb-4"},Ee={class:"flex justify-between align-items-center"},qe={class:"grid"},Ve={class:"col-12 sm:col-12 lg:col-12"},$e={class:"col-12 sm:col-12 lg:col-12"},ke={class:"col-12 sm:col-6 lg:col-2"},Ie={class:"p-1 border-round-sm bg-primary font-bold"},Se={class:"mt-3 flex justify-end gap-2"},je={class:"grid mt-2"},Oe={class:"flex justify-center",style:{height:"30px"}},Re={style:{"text-align":"center"}},Fe={style:{"font-size":".9rem","text-transform":"capitalize"}},Ue={class:"mt-4 mb-4"},Ne={class:"mt-4"},ze={class:"card flex justify-left"},Le={class:"flex flex-col gap-4"},Ae=["for"],Te={class:"mt-4"},De={__name:"publicar",props:["convocatoria"],emits:["myEvent"],setup(F,{emit:Me}){const _=F,$=a(!1),k=a(!1),g=a(!1);a(),a(""),a(1),a(50),a(!1),a(1),a([]);const b=a([]),x=a([]),U=W(),u=a({id:null,fec_inicio:"",fec_fin:"",observacion:"",estado:1}),w=a({}),N=a([{name:"Activo",value:1},{name:"Inactivo",value:0}]),z=async()=>{try{const t=await axios.post("/coordinador/save-publicacion",u.value);t.data.estado==!0?(f(t.data.tipo,t.data.titulo,t.data.mensaje),visible.value=!1,getConvocatorias()):f("error","ERROR:",error.response.data.message)}catch(t){console.error("Error al obtener los usuarios:",t),f("error","ERROR:",t.response.data.message)}},m=a([]),h=a(null),I=a([]),L=async()=>{try{const t=await axios.post("get-select-requisitos");b.value=t.data.datos}catch(t){console.error("Error fetching requisitos:",t)}};(async()=>{const t=await axios.post("get-select-modalidades");x.value=t.data.datos})();const A=t=>{const e=t.query.toLowerCase();I.value=ee.filter(b.value,["label"],e,oe.CONTAINS)};X(()=>{L()});const f=(t,e,s)=>{U.add({severity:t,summary:e,detail:s,life:3e3})},T=t=>{w.value=t.value,D(h.value)},D=t=>{t.label&&t.value&&(m.value.some(s=>s.label===t.label&&s.value===t.value)?f("error","EL REQUISITO YA FUE SELECCIONADO"):(m.value.push({...t}),Q(t.value),w.value=t.value,g.value=!0))},M=a([]),B=async()=>{const t=await axios.get("/convocatoria-configuracion");M.value=t.data},G=a({});a({}),B();const S=a([]),Q=async t=>{try{const e=await axios.post("/coordinador/get-tipos-requisito",{id_requisito:t});e.data.estado==!0?S.value=e.data.datos.data:f(e.data.tipo,e.data.titulo,e.data.mensaje)}catch(e){console.error("Error al obtener los usuarios:",e)}},y=a([]),Y=async()=>{await axios.post("/save-configuracion-requisito",{documentos_aceptados:y.value,requisito_seleccionado:w.value,convocatoria_seleccionad
1a:_.convocatoria.id,modalidad_seleccionada:G.value})};return(t,e)=>(n(),d(p,null,[l(i(le),{value:"0",style:{"margin-top":"-10px"}},{default:r(()=>[l(i(se),null,{default:r(()=>[l(i(O),{value:"0"},{default:r(()=>e[12]||(e[12]=[V("Configurar requisitos")])),_:1}),l(i(O),{value:"1"},{default:r(()=>e[13]||(e[13]=[V("Configurar encuesta")])),_:1})]),_:1}),l(i(te),null,{default:r(()=>[l(i(R),{value:"0"},{default:r(()=>[o("div",ue,[(n(!0),d(p,null,v(m.value,s=>(n(),d("div",{key:s,class:"col-12 sm:col-12 lg:col-2"},[l(i(E),null,{header:r(()=>e[14]||(e[14]=[o("div",{style:{"border-radius":"10px 10px 0px 0px",overflow:"hidden"}},[o("img",{alt:"user header",src:"https://www.graniteworldlondon.co.uk/wp-content/uploads/2018/12/plomo-quartz.jpg"})],-1)])),content:r(()=>[o("div",ce,[o("div",pe,[o("span",me,c(s.label.toLowerCase()),1)])])]),_:2},1024)]))),128))]),o("div",ve,[(n(!0),d(p,null,v(m.value,s=>(n(),Z(i(E),{key:s,class:"categoria-item"},{header:r(()=>e[15]||(e[15]=[o("div",{style:{"border-radius":"10px 10px 0px 0px",overflow:"hidden"}},[o("img",{alt:"user header",src:"https://www.graniteworldlondon.co.uk/wp-content/uploads/2018/12/plomo-quartz.jpg"})],-1)])),content:r(()=>[o("div",fe,[o("div",be,[o("span",ye,c(s.label.toLowerCase()),1)])])]),_:2},1024))),128))]),(n(!0),d(p,null,v(x.value,s=>(n(),d("div",{key:s,class:"mt-4 mb-6"},[o("div",_e,[o("div",null,[o("span",ge,c(s.label),1)])]),e[16]||(e[16]=o("div",{class:"mt-1",style:{"border-bottom":"solid 1px #6E40FF",width:"100%"}},null,-1)),o("div",null,[l(re,{modalidad:s,convocatoria:_.convocatoria,requisitos:b.value},null,8,["modalidad","convocatoria","requisitos"])]),e[17]||(e[17]=o("div",null,null,-1))]))),128))]),_:1}),l(i(R),{value:"1"},{default:r(()=>[o("p",xe,[(n(!0),d(p,null,v(x.value,s=>(n(),d("div",{key:s,class:"mt-4 mb-6"},[o("div",we,[o("div",null,[o("span",he,c(s.label),1)])]),e[18]||(e[18]=o("div",{class:"mt-1",style:{"border-bottom":"solid 1px #6E40FF",width:"100%"}},null,-1)),o("div",null,[l(ne,{modalidad:s,convocatoria:_.convocatoria,requisitos:b.value},null,8,["modalidad","convocatoria","requisitos"])]),e[19]||(e[19]=o("div",null,null,-1))]))),128))])]),_:1})]),_:1})]),_:1}),l(i(q),{visible:$.value,"onUpdate:visible":e[6]||(e[6]=s=>$.value=s),modal:"",header:"Configurar convocatoria",style:{width:"25rem"},closeOnEscape:!1},{default:r(()=>[o("div",Ce,[o("div",Ee,[e[20]||(e[20]=o("span",{class:"mr-3"},"Estado: ",-1)),l(i(J),{modelValue:u.value.estado,"onUpdate:modelValue":e[0]||(e[0]=s=>u.value.estado=s),optionLabel:"name",optionValue:"value",options:N.value},null,8,["modelValue","options"])])]),o("div",qe,[o("div",Ve,[e[21]||(e[21]=o("div",{class:"p-1 border-round-sm bg-primary font-bold"},[o("label",{for:""},"Fecha de inicio:")],-1)),o("div",null,[l(i(j),{modelValue:u.value.fec_inicio,"onUpdate:modelValue":e[1]||(e[1]=s=>u.value.fec_inicio=s),showIcon:"",dateFormat:"dd/mm/yy",style:{width:"100%"}},null,8,["modelValue"])])]),o("div",$e,[e[22]||(e[22]=o("div",{class:"p-1 border-round-sm bg-primary font-bold"},[o("label",{for:""},"Fecha de fin:")],-1)),o("div",null,[l(i(j),{modelValue:u.value.fec_fin,"onUpdate:modelValue":e[2]||(e[2]=s=>u.value.fec_fin=s),showIcon:"",dateFormat:"dd/mm/yy",style:{width:"100%"}},null,8,["modelValue"])])]),o("div",ke,[o("div",Ie,[e[23]||(e[23]=o("label",{for:""},"Observación",-1)),l(i(K),{style:{width:"22rem","font-weight":"400"},modelValue:u.value.observacion,"onUpdate:modelValue":e[3]||(e[3]=s=>u.value.observacion=s)},null,8,["modelValue"])])])]),o("div",Se,[l(i(C),{type:"button",label:"Cancelar",severity:"secondary",onClick:e[4]||(e[4]=s=>t.visible=!1)}),l(i(C),{type:"button",label:"Guardar",onClick:e[5]||(e[5]=s=>z())})])]),_:1},8,["visible"]),l(i(q),{visible:k.value,"onUpdate:visible":e[8]||(e[8]=s=>k.value=s),modal:"",header:"REQUISITOS GENERALES",style:{width:"75rem"},closeOnEscape:!1},{default:r(()=>[l(i(ae),{modelValue:h.value,"onUpdate:modelValue":[e[7]||(e[7]=s=>h.value=s),T],suggestions:I.value,onComplete:A,optionLabel:"label",style:{width:"100%"},placeholder:"Selecciona un requisito",dropdown:""},null,8,["modelValue","suggestions"]),o("div",je,[(n(!0),d(p,null,v(m.value,s=>(n(),d("div",{key:s,class:"col-12 sm:col-12 lg:col-2"},[l(i(E),null,{header:r(()=>e[24]||(e[24]=[o("div",{style:{"border-radius":"10px 10px 0px 0px",overflow:"hidden"}},[o("img",{alt:"user header",src:"https://www.graniteworldlondon.co.uk/wp-content/uploads/2018/12/plomo-quartz.jpg"})],-1)])),content:r(()=>[o("div",Oe,[o("div",Re,[o("span",Fe,c(s.label.toLowerCase()),1)])])]),_:2},1024)]))),128))]),o("div",null,[o("div",Ue,c(m.value),1),o("div",Ne,c(y.value),1)])]),_:1},8,["visible"]),l(i(q),{visible:g.value,"onUpdate:visible":e[11]||(e[11]=s=>g.value=s),modal:"",header:"DOCUMENTO NACIONAL DE IDENTIDAD",closable:!1,dismissableMask:!1,closeOnEscape:!1,style:{width:"75rem"}},{default:r(()=>[o("div",ze,[o("div",Le,[(n(!0),d(p,null,v(S.value,s=>(n(),d("div",{key:s.id,class:"flex items-center"},[l(i(ie),{modelValue:y.value,"onUpdate:modelValue":e[9]||(e[9]=H=>y.value=H),inputId:s.id,name:"category",value:s.id},null,8,["modelValue","inputId","value"]),o("label",{for:s.id},c(s.nombre),9,Ae)]))),128))])]),o("div",Te,[l(i(C),{onClick:e[10]||(e[10]=s=>Y())},{default:r(()=>e[25]||(e[25]=[V("Guardar")])),_:1})])]),_:1},8,["visible"]),l(i(P))],64))}},So=de(De,[["__scopeId","data-v-198261e8"]]);export{So 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.