PageSourceSearch

https://pipharmaintelligence.com/build/assets/Edit-W-EexDuY.js

js pipharmaintelligence.com collected 2026-10-03 20:54:39 UTC 4,349 bytes, 1 lines download raw bytes

1import{e as b,b as p,l as c,g as e,u as t,h as x,f as n,i as a,j as y,v as V,x as w,m as k,p as g,k as u,F as h}from"./app-DDuj1A68.js";import{_ as U}from"./AuthenticatedLayout-eF2d6OJZ.js";import{_ as d,a as i}from"./InputLabel-b7ilR93R.js";import{P as E}from"./PrimaryButton-CbC42BTV.js";import{_ as T}from"./SecondaryButton-pO4KVDNW.js";import{_ as m}from"./TextInput-DHWM4nzH.js";import"./ApplicationLogo-CliF5As3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={class:"flex flex-wrap items-center justify-between gap-4"},D={class:"py-12"},F={class:"mx-auto max-w-4xl sm:px-6 lg:px-8"},$={class:"bg-white p-6 shadow-sm sm:rounded-lg"},j={class:"grid grid-cols-1 gap-4 sm:grid-cols-2"},C={key:0,class:"mt-3"},N=["src","alt"],P={class:"flex items-center justify-end gap-3"},X={__name:"Edit",props:{event:{type:Object,required:!0}},setup(v){const r=v,l=b({title:r.event.title??"",description:r.event.description??"",location:r.event.location??"",url:r.event.url??"",start_date:r.event.start_date??"",end_date:r.event.end_date??"",image:null}),_=()=>{l.post(route("events.update",r.event.id),{method:"post",forceFormData:!0,headers:{"X-HTTP-Method-Override":"PUT"}})};return(f,s)=>(p(),c(h,null,[e(t(x),{title:"Edit Event"}),e(U,null,{header:n(()=>[a("div",B,[s[8]||(s[8]=a("h2",{class:"text-xl font-semibold leading-tight text-gray-800"}," Edit Event ",-1)),e(t(g),{href:f.route("events.index"),class:"text-sm text-gray-600 hover:text-gray-900"},{default:n(()=>[...s[7]||(s[7]=[u(" Back to list ",-1)])]),_:1},8,["href"])])]),default:n(()=>[a("div",D,[a("div",F,[a("div",$,[a("form",{onSubmit:y(_,["prevent"]),class:"space-y-6"},[a("div",null,[e(d,{for:"title",value:"Title"}),e(m,{id:"title",modelValue:t(l).title,"onUpdate:modelValue":s[0]||(s[0]=o=>t(l).title=o),type:"text",class:"mt-1 block w-full",autocomplete:"off"},null,8,["modelValue"]),e(i,{message:t(l).errors.title,class:"mt-2"},null,8,["message"])]),a("div",null,[e(d,{for:"location",value:"Location"}),e(m,{id:"location",modelValue:t(l).location,"onUpdate:modelValue":s[1]||(s[1]=o=>t(l).location=o),type:"text",class:"mt-1 block w-full",autocomplete:"off"},null,8,["modelValue"]),e(i,{message:t(l).errors.location,class:"mt-2"},null,8,["message"])]),a("div",null,[e(d,{for:"url",value:"Event URL"}),e(m,{id:"url",modelValue:t(l).url,"onUpdate:modelValue":s[2]||(s[2]=o=>t(l).url=o),type:"url",class:"mt-1 block w-full",autocomplete:"off",placeholder:"https://example.com"},null,8,["modelValue"]),e(i,{message:t(l).errors.url,class:"mt-2"},null,8,["message"])]),a("div",j,[a("div",null,[e(d,{for:"start_date",value:"From Date"}),e(m,{id:"start_date",modelValue:t(l).start_date,"onUpdate:modelValue":s[3]||(s[3]=o=>t(l).start_date=o),type:"date",class:"mt-1 block w-full"},null,8,["modelValue"]),e(i,{message:t(l).errors.start_date,class:"mt-2"},null,8,["message"])]),a("div",null,[e(d,{for:"end_date",value:"To Date"}),e(m,{id:"end_date",modelValue:t(l).end_date,"onUpdate:modelValue":s[4]||(s[4]=o=>t(l).end_date=o),type:"date",class:"mt-1 block w-full"},null,8,["modelValue"]),e(i,{message:t(l).errors.end_date,class:"mt-2"},null,8,["message"])])]),a("div",null,[e(d,{for:"description",value:"Description"}),V(a("textarea",{id:"description","onUpdate:modelValue":s[5]||(s[5]=o=>t(l).description=o),rows:"5",class:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500"},null,512),[[w,t(l).description]]),e(i,{message:t(l).errors.description,class:"mt-2"},null,8,["message"])]),a("div",null,[e(d,{for:"image",value:"Image"}),a("input",{id:"image",type:"file",accept:"image/*",class:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500",onChange:s[6]||(s[6]=o=>t(l).image=o.target.files?.[0]??null)},null,32),e(i,{message:t(l).errors.image,class:"mt-2"},null,8,["message"]),r.event.image_url?(p(),c("div",C,[a("img",{src:r.event.image_url,alt:r.event.title,class:"h-20 w-auto rounded-md border border-gray-200"},null,8,N)])):k("",!0)]),a("div",P,[e(t(g),{href:f.route("events.index")},{default:n(()=>[e(T,{type:"button"},{default:n(()=>[...s[9]||(s[9]=[u("Cancel",-1)])]),_:1})]),_:1},8,["href"]),e(E,{type:"submit",disabled:t(l).processing},{default:n(()=>[...s[10]||(s[10]=[u(" Update Event ",-1)])]),_:1},8,["disabled"])])],32)])])])]),_:1})],64))}};export{X 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.