PageSourceSearch

https://undac.edu.pe/build/assets/Index-Cj_b_xn9.js

js undac.edu.pe collected 2026-10-02 17:39:53 UTC 2,484 bytes, 1 lines download raw bytes

1import{b as l,j as n,d as s,G as h,H as x,w as o,e,m as p,R as y,F as m,k as _,t as d,h as b,g as i,u as c,J as w,f as v,W as C}from"./app-Bg3eAqcC.js";import{_ as V}from"./AdminLayout-rn7XEq5-.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const k={class:"d-flex align-center justify-space-between"},N={class:"font-semibold text-xl text-gray-800 leading-tight d-flex align-center gap-2"},P={class:"py-12"},z={class:"max-w-7xl mx-auto sm:px-6 lg:px-8"},B={class:"font-weight-medium"},j={class:"text-center"},A={key:0},I={__name:"Index",props:{processes:Object},setup(u){const f=r=>{switch(r){case"activo":return"success";case"borrador":return"warning";case"finalizado":return"grey";default:return"primary"}},g=r=>{confirm("¿Estás seguro de eliminar este proceso de admisión?")&&C.delete(route("admin.admision.destroy",r))};return(r,t)=>(l(),n(m,null,[s(h(x),{title:"Procesos de Admisión"}),s(V,null,{header:o(()=>[e("div",k,[e("h2",N,[s(v,{color:"primary"},{default:o(()=>t[0]||(t[0]=[i("mdi-school")])),_:1}),t[1]||(t[1]=i(" Procesos de Admisión "))]),s(c,{color:"primary","prepend-icon":"mdi-plus",href:r.route("admin.admision.create")},{default:o(()=>t[2]||(t[2]=[i(" Nuevo Proceso ")])),_:1},8,["href"])])]),default:o(()=>[e("div",P,[e("div",z,[s(p,{class:"rounded-xl shadow-xl border border-gray-100",elevation:"0"},{default:o(()=>[s(y,null,{default:o(()=>[t[4]||(t[4]=e("thead",null,[e("tr",null,[e("th",{class:"text-left font-weight-bold"},"Nombre del Proceso"),e("th",{class:"text-left font-weight-bold"},"Estado"),e("th",{class:"text-left font-weight-bold"},"Fecha Creación"),e("th",{class:"text-center font-weight-bold"},"Acciones")])],-1)),e("tbody",null,[(l(!0),n(m,null,_(u.processes.data,a=>(l(),n("tr",{key:a.id},[e("td",B,d(a.name),1),e("td",null,[s(b,{color:f(a.status),size:"small",class:"text-uppercase font-weight-bold"},{default:o(()=>[i(d(a.status),1)]),_:2},1032,["color"])]),e("td",null,d(new Date(a.created_at).toLocaleDateString()),1),e("td",j,[s(c,{icon:"mdi-pencil",variant:"text",color:"primary",size:"small",href:r.route("admin.admision.edit",a.id)},null,8,["href"]),s(c,{icon:"mdi-delete",variant:"text",color:"error",size:"small",onClick:D=>g(a.id)},null,8,["onClick"])])]))),128)),u.processes.data.length===0?(l(),n("tr",A,t[3]||(t[3]=[e("td",{colspan:"4",class:"text-center py-8 text-grey-darken-1"}," No hay procesos de admisión registrados. Crea uno nuevo. ",-1)]))):w("",!0)])]),_:1})]),_:1})])])]),_:1})],64))}};export{I 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.