1import{_ as u}from"./AdminLayout-CC1lEXR8.js";import{c,a as b,o as m,w as p,b as e,t as f,d as g,g as h}from"./app-C8OoB8GJ.js";/* empty css */const v={class:"mb-4 text-xl font-semibold"},x=["action"],w={key:0,type:"hidden",name:"_method",value:"PUT"},y=["value"],k={class:"lg:col-span-2 space-y-4"},_={class:"rounded-xl bg-white p-4 shadow ring-1 ring-black/5"},V=["value"],B={class:"rounded-xl bg-white p-4 shadow ring-1 ring-black/5"},T=["value"],q={class:"rounded-xl bg-white p-4 shadow ring-1 ring-black/5"},S=["value"],N={__name:"Form",props:{item:Object},setup(o){const r=c(()=>document.querySelector('meta[name="csrf-token"]').getAttribute("content"));return(A,t)=>(m(),b(u,null,{default:p(()=>{var l,i,s,d,a,n;return[e("h1",v,f((l=o.item)!=null&&l.id?"Editar VÃdeo":"Adicionar VÃdeo"),1),e("form",{action:(i=o.item)!=null&&i.id?`/admin/informativos/videos/${o.item.id}`:"/admin/informativos/videos",method:"post",enctype:"multipart/form-data",class:"grid gap-6 lg:grid-cols-3"},[(s=o.item)!=null&&s.id?(m(),g("input",w)):h("",!0),e("input",{type:"hidden",name:"_token",value:r.value},null,8,y),e("div",k,[e("div",_,[t[0]||(t[0]=e("label",{class:"block text-sm font-medium"},"TÃtulo",-1)),e("input",{name:"title",value:(d=o.item)==null?void 0:d.title,class:"mt-1 w-full rounded-md border px-3 py-2",required:""},null,8,V)]),e("div",B,[t[1]||(t[1]=e("label",{class:"block text-sm font-medium"},"Descrição",-1)),e("textarea",{name:"description",value:(a=o.item)==null?void 0:a.description,rows:"4",class:"mt-1 w-full rounded-md border px-3 py-2"},null,8,T)]),e("div",q,[t[2]||(t[2]=e("label",{class:"block text-sm font-medium"},"URL do VÃdeo (YouTube/Vimeo)",-1)),e("input",{name:"url",value:(n=o.item)==null?void 0:n.url,type:"url",class:"mt-1 w-full rounded-md border px-3 py-2",required:""},null,8,S)])]),t[3]||(t[3]=e("aside",{class:"space-y-4"},[e("div",{class:"rounded-xl bg-white p-4 shadow ring-1 ring-black/5"},[e("label",{class:"block text-sm font-medium"},"Thumbnail (opcional)"),e("input",{type:"file",name:"thumbnail",accept:"image/*",class:"mt-1 w-full rounded-md border px-3 py-2"})]),e("button",{class:"w-full rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white hover:bg-blue-700"},"Salvar")],-1))],8,x)]}),_:1}))}};export{N 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.