1import{o as g,T as h,c as l,a as d,u as a,w as i,F as _,b as n,Z as v,d as e,g as u,v as c,t as m,h as p,f as b}from"./app-BUTSNkrE.js";import{_ as w}from"./AuthenticatedLayout-u42c0Y5d.js";import{l as k,X as y,H as V}from"./tw-elements.es.min-GfT-yuW7.js";import"./NavLink-Cw23BFjm.js";const D={class:"py-12"},N={class:"max-w-screen-2xl mx-auto sm:px-6 lg:px-8"},B={class:"bg-white shadow-sm sm:rounded-lg p-4 col-span-3"},C={class:"grid gap-4 grid-cols-3"},E={class:"flex items-center"},F={key:0,class:"text-xs text-red-500"},M={class:"flex items-center"},T={key:0,class:"text-xs text-red-500"},j={class:"flex justify-end"},$={__name:"Edit",props:{template:{type:Object,defaut:()=>({})}},setup(x){g(()=>{k({Dropdown:y,Ripple:V})});const r=x,s=h({name:r.template.name,template_url:r.template.template_url,_method:"put"}),f=()=>{s.post(route("admin.templates.update",r.template.id))};return(A,t)=>(n(),l(_,null,[d(a(v),{title:"Actualizar - Plantilla"}),d(w,null,{header:i(()=>t[3]||(t[3]=[e("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Dashboard / Editar / Plantilla",-1)])),default:i(()=>[e("div",D,[e("div",N,[e("div",B,[e("div",C,[e("div",E,[t[4]||(t[4]=e("p",null,"Nombre",-1)),u(e("input",{class:"ms-2 w-full border-none bg-gray-100 rounded-sm",type:"text","onUpdate:modelValue":t[0]||(t[0]=o=>a(s).name=o)},null,512),[[c,a(s).name]]),a(s).errors.name?(n(),l("div",F,m(a(s).errors.name),1)):p("",!0)]),e("div",M,[t[5]||(t[5]=e("p",null,"Ruta del archivo",-1)),u(e("input",{placeholder:"Admin/Template/File",class:"ms-2 w-full border-none bg-gray-100 rounded-sm",type:"text","onUpdate:modelValue":t[1]||(t[1]=o=>a(s).template_url=o)},null,512),[[c,a(s).template_url]]),a(s).errors.template_url?(n(),l("div",T,m(a(s).errors.template_url),1)):p("",!0)]),e("div",j,[e("button",{onClick:t[2]||(t[2]=b(o=>f(),["prevent"])),type:"subtmit",class:"inline-block rounded bg-success px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-success-3 transition duration-150 ease-in-out hover:bg-success-accent-300 hover:shadow-success-2 focus:bg-success-accent-300 focus:shadow-success-2 focus:outline-none focus:ring-0 active:bg-success-600 active:shadow-success-2 motion-reduce:transition-none dark:shadow-black/30 dark:hover:shadow-dark-strong dark:focus:shadow-dark-strong dark:active:shadow-dark-strong"},"Guardar")])])])])])]),_:1})],64))}};export{$ 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.